@arcgis/map-components 4.34.0-next.20 → 4.34.0-next.22
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/{FMHODF2P.js → 25YX3VJ4.js} +2 -2
- package/dist/cdn/{Q6H72XC6.js → 2FWLSG35.js} +2 -2
- package/dist/cdn/{OF2ETBRA.js → 2GUKPC66.js} +2 -2
- package/dist/cdn/{EM5YT262.js → 2UFYBD2U.js} +1 -1
- package/dist/cdn/{ULK3ELJZ.js → 2WVNYSEX.js} +2 -2
- package/dist/cdn/{NA5XNR6C.js → 2YDE3VZK.js} +2 -2
- package/dist/cdn/{7FIG5C46.js → 3P72CQUA.js} +2 -2
- package/dist/cdn/{LBIFHUDZ.js → 3UJXY5CM.js} +2 -2
- package/dist/cdn/{A2OIDY5B.js → 4T6LS676.js} +2 -2
- package/dist/cdn/{TVKSSFHU.js → 4U3WDWUW.js} +2 -2
- package/dist/cdn/{Q3ISTJOO.js → 4YN6VAUU.js} +2 -2
- package/dist/cdn/{BUUMZNCV.js → 552DOJ2A.js} +2 -2
- package/dist/cdn/{MAD2J6QQ.js → 55PCGFRY.js} +2 -2
- package/dist/cdn/{37OOSZJN.js → 56B22H6M.js} +2 -2
- package/dist/cdn/5KL7Q2I7.js +4 -0
- package/dist/cdn/{TOK4URPS.js → 5NJPPRVO.js} +2 -2
- package/dist/cdn/{HRGZVM26.js → 5RQ356NJ.js} +2 -2
- package/dist/cdn/{3JZFTPDS.js → 6HWJXVFY.js} +2 -2
- package/dist/cdn/{CTVODY2L.js → 726PFCAV.js} +2 -2
- package/dist/cdn/{XEWUFL5A.js → 7ETKBQFF.js} +1 -1
- package/dist/cdn/{ZA6LS2DT.js → 7GVJPUR7.js} +2 -2
- package/dist/cdn/{YROEKDLY.js → 7JZ2MOKZ.js} +2 -2
- package/dist/cdn/{R4TRCPYE.js → 7K2TEWE5.js} +1 -1
- package/dist/cdn/{XTOCNPIF.js → ADFWMOOF.js} +2 -2
- package/dist/cdn/{TP2UXACR.js → AFPI56ST.js} +2 -2
- package/dist/cdn/{GIAR3I4T.js → AIQBFOZW.js} +2 -2
- package/dist/cdn/{T5CZQJOU.js → AY3IVWND.js} +2 -2
- package/dist/cdn/{WRW2ZSOO.js → BA2W3PDL.js} +2 -2
- package/dist/cdn/{6IO6EDU6.js → BBJX2JVB.js} +2 -2
- package/dist/cdn/{5W5GGIWL.js → BETMBDBD.js} +2 -2
- package/dist/cdn/{KMWZKUYI.js → CEONUUPY.js} +2 -2
- package/dist/cdn/{5ZFQYKDQ.js → CHLWLN7B.js} +2 -2
- package/dist/cdn/{WERCUHHX.js → CSVOP2IL.js} +2 -2
- package/dist/cdn/{GBHPLHDP.js → CZM3NKU7.js} +2 -2
- package/dist/cdn/{5F4KKKR2.js → DBWZSRM5.js} +2 -2
- package/dist/cdn/{KP2PRNMR.js → DIAZ3DOA.js} +2 -2
- package/dist/cdn/{KYAT2EEX.js → DT673XVS.js} +2 -2
- package/dist/cdn/{S6JGYQ4Y.js → DXVGDEDP.js} +2 -2
- package/dist/cdn/{YCEOOMPS.js → DXXMCV42.js} +2 -2
- package/dist/cdn/{3COE2Z3B.js → E6RYARX2.js} +1 -1
- package/dist/cdn/{HBJ2ZDE6.js → EEJF2Z2K.js} +2 -2
- package/dist/cdn/{ZUD7WKRS.js → EGQAY4UW.js} +2 -2
- package/dist/cdn/{7CEESMMF.js → EHAGDRQK.js} +2 -2
- package/dist/cdn/{6HAPOXM4.js → EJNBY7MG.js} +2 -2
- package/dist/cdn/{TVWHW67R.js → EVCAUJA6.js} +2 -2
- package/dist/cdn/{5N3A2V7I.js → FC7NWW2H.js} +2 -2
- package/dist/cdn/{BEBNYXEO.js → G67QY2KK.js} +2 -2
- package/dist/cdn/{YTHUO5OY.js → GCAPZZ6M.js} +2 -2
- package/dist/cdn/{6YVLN2P3.js → GT2NFOKO.js} +1 -1
- package/dist/cdn/{MWU37I6K.js → H253A4J4.js} +2 -2
- package/dist/cdn/{W4YLM5Q7.js → HGQOTV4T.js} +2 -2
- package/dist/cdn/{TZW53V7V.js → HKB6BUEQ.js} +2 -2
- package/dist/cdn/{53VD6INF.js → HOSMZZ2I.js} +1 -1
- package/dist/cdn/{WAA675KF.js → HS7OXW73.js} +2 -2
- package/dist/cdn/{BSLJTO5W.js → I5OUHIAV.js} +2 -2
- package/dist/cdn/{3XFKPFZ6.js → IIDFCCUV.js} +2 -2
- package/dist/cdn/{BCW2OD35.js → ILNGOPLK.js} +2 -2
- package/dist/cdn/{L4NZQKEH.js → IPNLECA6.js} +2 -2
- package/dist/cdn/{7QSEE732.js → J4NHTJMU.js} +2 -2
- package/dist/cdn/{66WLGZBK.js → JNNQQAAI.js} +2 -2
- package/dist/cdn/{VIZKBNB3.js → JVWLA3M3.js} +2 -2
- package/dist/cdn/{6YA5EHG3.js → K6BNCUPD.js} +2 -2
- package/dist/cdn/{BNSB5DBF.js → KFE4TIWZ.js} +2 -2
- package/dist/cdn/{XRFFTEP7.js → LHZTD7D5.js} +2 -2
- package/dist/cdn/{3FHU5J5V.js → LWRNDHG7.js} +2 -2
- package/dist/cdn/{XNV22S4H.js → LX3GEZ7F.js} +2 -2
- package/dist/cdn/{QD4I6M3K.js → M7NMAEXW.js} +2 -2
- package/dist/cdn/{JWUDTAKH.js → MAKSSUXI.js} +2 -2
- package/dist/cdn/{KHLYVIBR.js → MVFLZYZT.js} +2 -2
- package/dist/cdn/{OVBHUV5Z.js → NBYLBYD7.js} +2 -2
- package/dist/cdn/{JXDNAFBS.js → NLTOGDO2.js} +2 -2
- package/dist/cdn/{WLZQNP7J.js → NPOX3RWA.js} +2 -2
- package/dist/cdn/{YMCFBT2L.js → OAXSAOP5.js} +2 -2
- package/dist/cdn/OKTT7PXA.js +4 -0
- package/dist/cdn/{NKRS33IA.js → OS4NVE5Z.js} +2 -2
- package/dist/cdn/{GNWBPZXN.js → P67TJWE4.js} +2 -2
- package/dist/cdn/{W44LCN2B.js → P67WZNA5.js} +2 -2
- package/dist/cdn/{BMQSD5DM.js → PK7MU53P.js} +2 -2
- package/dist/cdn/{DPJONPCK.js → PKEFD3M4.js} +2 -2
- package/dist/cdn/{K2V4Y6OT.js → PZRD4FGG.js} +2 -2
- package/dist/cdn/{2WYOLZ2S.js → QIHWD5QJ.js} +2 -2
- package/dist/cdn/{FJUUINMO.js → QTX3CY5Q.js} +1 -1
- package/dist/cdn/{JRDPLJJ2.js → QYSFXCB3.js} +2 -2
- package/dist/cdn/{XHWF5J4T.js → S3I4HKYA.js} +2 -2
- package/dist/cdn/{6PKZGLPN.js → SAVOAY46.js} +2 -2
- package/dist/cdn/{32BNVHFB.js → SJTQOJEZ.js} +2 -2
- package/dist/cdn/{5YIGSG3W.js → SLZZJRFR.js} +2 -2
- package/dist/cdn/{GM5SPCJW.js → SQ34NFA5.js} +2 -2
- package/dist/cdn/{QBOTK4ZT.js → SRJECCTT.js} +2 -2
- package/dist/cdn/{XIQPDWHH.js → SXXDZ2ZC.js} +2 -2
- package/dist/cdn/{42RDF2D7.js → SYSR6VPW.js} +2 -2
- package/dist/cdn/{UBDHT42U.js → TCIRPN2N.js} +2 -2
- package/dist/cdn/{6W5JZE6P.js → TCRPXFHC.js} +2 -2
- package/dist/cdn/{H673H72F.js → TITMVOVH.js} +2 -2
- package/dist/cdn/{ENR5OCHD.js → TSVDDDSC.js} +2 -2
- package/dist/cdn/{YSBU56II.js → UKPKO5SI.js} +2 -2
- package/dist/cdn/{IFK2ZTSD.js → USQULHSG.js} +2 -2
- package/dist/cdn/{7WH4STWU.js → UUHL2MHB.js} +2 -2
- package/dist/cdn/{Y3ZQAMRW.js → V7SPYRAH.js} +2 -2
- package/dist/cdn/{JQ63WQ5N.js → VGR5OFZW.js} +2 -2
- package/dist/cdn/{BQIFQSW3.js → VUUYBPXL.js} +2 -2
- package/dist/cdn/{SKMKH5YG.js → WAKRN2ZO.js} +2 -2
- package/dist/cdn/{I2FMQPO7.js → WR7MFPII.js} +2 -2
- package/dist/cdn/{CMKO5P4W.js → WV6I6WVY.js} +2 -2
- package/dist/cdn/{57BL5AOQ.js → XHG7FPG7.js} +2 -2
- package/dist/cdn/{WPILVNC3.js → XMUYBHY2.js} +2 -2
- package/dist/cdn/{NJMTMY57.js → XSCH4NDR.js} +2 -2
- package/dist/cdn/{QJZTOJZ7.js → XVFO5GER.js} +2 -2
- package/dist/cdn/{PG7FQ7KL.js → XX5PCY54.js} +2 -2
- package/dist/cdn/{7ARDNPNQ.js → Y4VEY2IV.js} +2 -2
- package/dist/cdn/{6UECA53W.js → YJXH3TGO.js} +2 -2
- package/dist/cdn/{E5FAANO2.js → YOQTRLAP.js} +2 -2
- package/dist/cdn/{SGEYUE62.js → YQIEM4E4.js} +2 -2
- package/dist/cdn/{MBBASR7O.js → YWAD7NK2.js} +2 -2
- package/dist/cdn/{LWUM7FWM.js → ZEVN4FAP.js} +2 -2
- package/dist/cdn/{Y7WZVBSC.js → ZGDY26SD.js} +1 -1
- package/dist/cdn/{XF6S3AC3.js → ZLRYK5GL.js} +2 -2
- package/dist/cdn/{T2JV2ISV.js → ZM2LP2PK.js} +2 -2
- package/dist/cdn/{Y7TD4V23.js → ZXCDUPJ4.js} +2 -2
- package/dist/cdn/{EROQMNHF.js → ZZUJUUAR.js} +2 -2
- package/dist/cdn/index.js +2 -2
- package/dist/cdn/main.css +1 -1
- package/dist/chunks/AnalysisViewModel.js +1 -1
- package/dist/chunks/async-utils.js +1 -1
- package/dist/chunks/basemap-gallery-resources.js +1 -1
- package/dist/chunks/component-utils.js +1 -1
- package/dist/chunks/createCloseEvent.js +1 -1
- package/dist/chunks/globalCss.js +1 -1
- package/dist/chunks/heading.js +1 -1
- package/dist/chunks/layer-list.js +1 -1
- 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.js +1 -1
- package/dist/components/arcgis-area-measurement-3d/customElement.js +1 -1
- package/dist/components/arcgis-attachments/customElement.js +1 -1
- package/dist/components/arcgis-basemap-gallery/customElement.js +1 -1
- package/dist/components/arcgis-basemap-gallery-item/customElement.js +1 -1
- package/dist/components/arcgis-basemap-layer-list/customElement.js +1 -1
- package/dist/components/arcgis-basemap-toggle/customElement.js +1 -1
- package/dist/components/arcgis-bookmarks/customElement.d.ts +1 -3
- package/dist/components/arcgis-bookmarks/customElement.js +1 -1
- package/dist/components/arcgis-building-explorer/customElement.js +1 -1
- package/dist/components/arcgis-catalog-layer-list/customElement.js +1 -1
- package/dist/components/arcgis-compass/customElement.js +1 -1
- package/dist/components/arcgis-coordinate-conversion/customElement.js +1 -1
- package/dist/components/arcgis-daylight/customElement.js +1 -1
- package/dist/components/arcgis-direct-line-measurement-3d/customElement.js +1 -1
- package/dist/components/arcgis-directional-pad/customElement.js +1 -1
- package/dist/components/arcgis-directions/customElement.js +1 -1
- package/dist/components/arcgis-distance-measurement-2d/customElement.js +1 -1
- package/dist/components/arcgis-editor/customElement.js +1 -1
- package/dist/components/arcgis-elevation-profile/customElement.js +1 -1
- package/dist/components/arcgis-expand/customElement.d.ts +1 -0
- package/dist/components/arcgis-expand/customElement.js +1 -1
- package/dist/components/arcgis-feature/customElement.js +1 -1
- package/dist/components/arcgis-feature-content/customElement.d.ts +25 -0
- package/dist/components/arcgis-feature-content/customElement.js +92 -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-form/customElement.d.ts +1 -1
- package/dist/components/arcgis-feature-form/customElement.js +1 -1
- package/dist/components/arcgis-feature-table/customElement.js +1 -1
- package/dist/components/arcgis-feature-templates/customElement.js +1 -1
- package/dist/components/arcgis-features/customElement.js +1 -1
- package/dist/components/arcgis-floor-filter/customElement.js +1 -1
- package/dist/components/arcgis-fullscreen/customElement.js +1 -1
- package/dist/components/arcgis-grid-controls/customElement.js +1 -1
- package/dist/components/arcgis-histogram-range-slider/customElement.js +1 -1
- package/dist/components/arcgis-home/customElement.js +1 -1
- package/dist/components/arcgis-labeled-switch/customElement.js +1 -1
- package/dist/components/arcgis-layer-list/customElement.js +1 -1
- package/dist/components/arcgis-layer-list-item/customElement.js +1 -1
- package/dist/components/arcgis-legend/customElement.js +1 -1
- package/dist/components/arcgis-line-of-sight/customElement.js +1 -1
- package/dist/components/arcgis-link-chart/customElement.d.ts +11 -2
- package/dist/components/arcgis-link-chart/customElement.js +1 -1
- package/dist/components/arcgis-link-chart-layout-switcher/customElement.d.ts +1 -1
- package/dist/components/arcgis-link-chart-layout-switcher/customElement.js +1 -1
- package/dist/components/arcgis-locate/customElement.d.ts +3 -4
- package/dist/components/arcgis-locate/customElement.js +29 -29
- package/dist/components/arcgis-map/customElement.d.ts +12 -2
- package/dist/components/arcgis-map/customElement.js +1 -1
- package/dist/components/arcgis-measurement/customElement.js +1 -1
- package/dist/components/arcgis-measurement-content/customElement.js +1 -1
- package/dist/components/arcgis-navigation-toggle/customElement.js +1 -1
- package/dist/components/arcgis-oriented-imagery-viewer/customElement.js +1 -1
- package/dist/components/arcgis-placement/customElement.js +1 -1
- package/dist/components/arcgis-print/customElement.d.ts +3 -3
- package/dist/components/arcgis-print/customElement.js +1 -1
- package/dist/components/arcgis-print-custom-text-elements/customElement.js +1 -1
- package/dist/components/arcgis-print-dpi-input/customElement.js +1 -1
- package/dist/components/arcgis-print-export-button/customElement.js +1 -1
- package/dist/components/arcgis-print-exported-link/customElement.js +1 -1
- package/dist/components/arcgis-print-exports-panel/customElement.js +1 -1
- package/dist/components/arcgis-print-format-select/customElement.js +1 -1
- package/dist/components/arcgis-print-layout-advanced-options/customElement.js +1 -1
- package/dist/components/arcgis-print-layout-panel/customElement.js +1 -1
- package/dist/components/arcgis-print-main-panel/customElement.js +1 -1
- package/dist/components/arcgis-print-map-only-advanced-options/customElement.js +1 -1
- package/dist/components/arcgis-print-map-only-panel/customElement.js +1 -1
- package/dist/components/arcgis-print-out-spatial-reference-input/customElement.js +1 -1
- package/dist/components/arcgis-print-preview-input/customElement.js +1 -1
- package/dist/components/arcgis-print-scale-section/customElement.js +1 -1
- package/dist/components/arcgis-print-template-select/customElement.js +1 -1
- package/dist/components/arcgis-print-template-selector/customElement.js +1 -1
- package/dist/components/arcgis-scale-bar/customElement.js +1 -1
- package/dist/components/arcgis-scale-range-slider/customElement.js +1 -1
- package/dist/components/arcgis-scene/customElement.d.ts +12 -2
- package/dist/components/arcgis-scene/customElement.js +1 -1
- package/dist/components/arcgis-search/customElement.js +10 -7
- package/dist/components/arcgis-search-result-renderer/customElement.js +1 -1
- package/dist/components/arcgis-shadow-cast/customElement.js +1 -1
- package/dist/components/arcgis-sketch/customElement.js +1 -1
- package/dist/components/arcgis-slice/customElement.js +1 -1
- package/dist/components/arcgis-slider/customElement.js +1 -1
- package/dist/components/arcgis-swipe/customElement.js +1 -1
- package/dist/components/arcgis-table-list/customElement.js +1 -1
- package/dist/components/arcgis-time-slider/customElement.js +1 -1
- package/dist/components/arcgis-time-zone-label/customElement.js +1 -1
- package/dist/components/arcgis-track/customElement.js +1 -1
- package/dist/components/arcgis-unit-select/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-associations/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-trace/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-validate-topology/customElement.js +1 -1
- package/dist/components/arcgis-value-picker/customElement.js +1 -1
- package/dist/components/arcgis-version-management/customElement.js +1 -1
- package/dist/components/arcgis-version-management-service-item/customElement.js +1 -1
- package/dist/components/arcgis-version-management-version-item/customElement.js +1 -1
- package/dist/components/arcgis-version-management-version-list/customElement.js +1 -1
- package/dist/components/arcgis-version-management-version-properties/customElement.js +1 -1
- package/dist/components/arcgis-video/customElement.js +1 -1
- package/dist/components/arcgis-video-player/customElement.js +1 -1
- package/dist/components/arcgis-video-player-action-bar/customElement.js +1 -1
- package/dist/components/arcgis-video-player-actions-group/customElement.js +1 -1
- package/dist/components/arcgis-video-player-controls-group/customElement.js +1 -1
- package/dist/components/arcgis-video-player-metadata/customElement.js +1 -1
- package/dist/components/arcgis-video-player-settings/customElement.js +1 -1
- package/dist/components/arcgis-video-player-slider/customElement.js +1 -1
- package/dist/components/arcgis-weather/customElement.js +1 -1
- package/dist/components/arcgis-zoom/customElement.js +1 -1
- package/dist/controllers/Handles.d.ts +2 -2
- package/dist/controllers/useHandles.d.ts +4 -4
- package/dist/docs/api.json +238 -19
- package/dist/docs/docs.json +241 -16
- package/dist/docs/vscode.html-custom-data.json +22 -5
- package/dist/docs/web-types.json +59 -9
- package/dist/geolocation/GeolocationPositioning.d.ts +5 -6
- package/dist/index.d.ts +19 -0
- package/dist/index.js +1 -1
- package/dist/loader.js +2 -1
- package/dist/types/lumina.d.ts +6 -0
- package/dist/types/preact.d.ts +7 -0
- package/dist/types/react.d.ts +8 -0
- package/dist/types/stencil.d.ts +6 -0
- package/dist/utils/feature-utils.d.ts +10 -0
- package/package.json +4 -4
- package/dist/cdn/JLC7B3OG.js +0 -4
|
@@ -6,7 +6,7 @@ import { m as h } from "../../chunks/useWidget.js";
|
|
|
6
6
|
import { css as l } from "@lit/reactive-element/css-tag.js";
|
|
7
7
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
8
8
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
9
|
-
v4.34.0-next.
|
|
9
|
+
v4.34.0-next.22 */
|
|
10
10
|
const r = l`@layer{arcgis-feature{display:block}}`, c = h(n);
|
|
11
11
|
class m extends a {
|
|
12
12
|
constructor() {
|
|
@@ -0,0 +1,25 @@
|
|
|
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
|
+
/** [Read more...](https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-feature-content/) */
|
|
7
|
+
export declare class ArcgisFeatureContent extends LitElement {
|
|
8
|
+
creator?: __esri.PopupTemplateContentCreator;
|
|
9
|
+
destroyer?: __esri.PopupTemplateContentCreator;
|
|
10
|
+
graphic?: __esri.Graphic;
|
|
11
|
+
/**
|
|
12
|
+
* If true, the component will not be destroyed automatically when it is
|
|
13
|
+
* disconnected from the document. This is useful when you want to move the
|
|
14
|
+
* component to a different place on the page, or temporarily hide it. If this
|
|
15
|
+
* is set, make sure to call the [destroy](https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-feature-content/#destroy) method when you are done to
|
|
16
|
+
* prevent memory leaks.
|
|
17
|
+
*
|
|
18
|
+
* @default false
|
|
19
|
+
*/
|
|
20
|
+
autoDestroyDisabled: boolean;
|
|
21
|
+
/** Permanently destroy the component. */
|
|
22
|
+
destroy(): Promise<void>;
|
|
23
|
+
/** Emitted when the component associated with a map or scene view is is ready to be interacted with. */
|
|
24
|
+
readonly arcgisReady: TargetedEvent<this, void>;
|
|
25
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { c as g } from "../../chunks/runtime.js";
|
|
2
|
+
import { html as i } from "lit-html";
|
|
3
|
+
import { ref as f } from "lit-html/directives/ref.js";
|
|
4
|
+
import { LitElement as d, createEvent as h, noShadowRoot as u, safeClassMap as n } from "@arcgis/lumina";
|
|
5
|
+
import { css as m } from "@lit/reactive-element/css-tag.js";
|
|
6
|
+
import { watch as p } 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.22 */
|
|
10
|
+
const v = m`@layer{arcgis-feature-content{.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)}}}`, _ = /^(?:mailto:|tel:)/u;
|
|
11
|
+
function y(a = "") {
|
|
12
|
+
if (a)
|
|
13
|
+
return !_.test(a.trim().toLowerCase());
|
|
14
|
+
}
|
|
15
|
+
async function c({
|
|
16
|
+
type: a,
|
|
17
|
+
value: t,
|
|
18
|
+
event: e
|
|
19
|
+
}) {
|
|
20
|
+
try {
|
|
21
|
+
return typeof t == "function" ? t(e) : await t;
|
|
22
|
+
} catch (r) {
|
|
23
|
+
console.error(`[arcgis-feature] An error occurred when calling the "${a}" function`, {
|
|
24
|
+
error: r,
|
|
25
|
+
graphic: e.graphic,
|
|
26
|
+
value: t
|
|
27
|
+
});
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
const o = "arcgis-feature-content", s = {
|
|
32
|
+
base: o,
|
|
33
|
+
loaderContainer: `${o}__loader-container`
|
|
34
|
+
};
|
|
35
|
+
class w extends d {
|
|
36
|
+
constructor() {
|
|
37
|
+
super(...arguments), this.autoDestroyDisabled = !1, this.arcgisReady = h();
|
|
38
|
+
}
|
|
39
|
+
static {
|
|
40
|
+
this.properties = { _loadingPromise: 16, _created: 16, creator: 0, destroyer: 0, graphic: 0, autoDestroyDisabled: 5 };
|
|
41
|
+
}
|
|
42
|
+
static {
|
|
43
|
+
this.styles = v;
|
|
44
|
+
}
|
|
45
|
+
static {
|
|
46
|
+
this.shadowRootOptions = u;
|
|
47
|
+
}
|
|
48
|
+
async destroy() {
|
|
49
|
+
await this.manager.destroy();
|
|
50
|
+
}
|
|
51
|
+
loaded() {
|
|
52
|
+
this.manager.onLifecycle(() => p(() => this.creator, (t) => {
|
|
53
|
+
this._destroyContent(), this._createContent(t);
|
|
54
|
+
}, { initial: !0 }));
|
|
55
|
+
}
|
|
56
|
+
async _createContent(t) {
|
|
57
|
+
const { graphic: e } = this;
|
|
58
|
+
if (!e || !t)
|
|
59
|
+
return;
|
|
60
|
+
const r = c({
|
|
61
|
+
type: "content",
|
|
62
|
+
value: t,
|
|
63
|
+
event: { graphic: e }
|
|
64
|
+
});
|
|
65
|
+
this._loadingPromise = r;
|
|
66
|
+
const l = await r;
|
|
67
|
+
r === this._loadingPromise && (this._loadingPromise = void 0, this._created = l);
|
|
68
|
+
}
|
|
69
|
+
_destroyContent() {
|
|
70
|
+
const { _created: t, graphic: e, destroyer: r } = this;
|
|
71
|
+
t && e && (c({ type: "content", value: r, event: { graphic: e } }), this._created = null);
|
|
72
|
+
}
|
|
73
|
+
_addTargetToAnchors(t) {
|
|
74
|
+
Array.from(t.querySelectorAll("a")).forEach((e) => {
|
|
75
|
+
y(e.href) && !e.hasAttribute("target") && e.setAttribute("target", "_blank");
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
render() {
|
|
79
|
+
return i`<div class=${n(s.base)}>${this._loadingPromise ? this._renderLoading() : this._renderCreated()}</div>`;
|
|
80
|
+
}
|
|
81
|
+
_renderLoading() {
|
|
82
|
+
return i`<div class=${n(s.loaderContainer)}><calcite-loader inline label></calcite-loader></div>`;
|
|
83
|
+
}
|
|
84
|
+
_renderCreated() {
|
|
85
|
+
const { _created: t } = this;
|
|
86
|
+
return t instanceof HTMLElement ? t : typeof t == "string" ? i`<div .innerHTML=${t ?? ""} ${f(this._addTargetToAnchors)}></div>` : null;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
g("arcgis-feature-content", w);
|
|
90
|
+
export {
|
|
91
|
+
w as ArcgisFeatureContent
|
|
92
|
+
};
|
|
@@ -80,7 +80,7 @@ export declare class ArcgisFeatureForm extends LitElement {
|
|
|
80
80
|
*
|
|
81
81
|
* [Read more...](https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-FeatureForm.html#layer)
|
|
82
82
|
*/
|
|
83
|
-
layer: nullish | __esri.FeatureLayer | __esri.SceneLayer | __esri.GeoJSONLayer | __esri.OrientedImageryLayer | __esri.SubtypeSublayer;
|
|
83
|
+
layer: nullish | __esri.FeatureLayer | __esri.SceneLayer | __esri.GeoJSONLayer | __esri.OrientedImageryLayer | __esri.SubtypeSublayer | __esri.KnowledgeGraphSublayer;
|
|
84
84
|
/** @default "bottom-left" */
|
|
85
85
|
position: __esri.UIPosition;
|
|
86
86
|
referenceElement?: ArcgisReferenceElement | string;
|
|
@@ -7,7 +7,7 @@ import { m as h } from "../../chunks/useWidget.js";
|
|
|
7
7
|
import { css as m } from "@lit/reactive-element/css-tag.js";
|
|
8
8
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
9
9
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
10
|
-
v4.34.0-next.
|
|
10
|
+
v4.34.0-next.22 */
|
|
11
11
|
const l = m`@layer{arcgis-feature-form{display:block}}`, g = h(s);
|
|
12
12
|
class n extends r {
|
|
13
13
|
constructor() {
|
|
@@ -9,7 +9,7 @@ import { e as m, g as c } from "../../chunks/component-utils.js";
|
|
|
9
9
|
import { css as u } from "@lit/reactive-element/css-tag.js";
|
|
10
10
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
11
11
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
12
|
-
v4.34.0-next.
|
|
12
|
+
v4.34.0-next.22 */
|
|
13
13
|
const w = u`@layer{arcgis-feature-table{display:block}.arcgis-feature-table{width:100%;height:100%}}`, p = g(a);
|
|
14
14
|
class b extends d {
|
|
15
15
|
constructor() {
|
|
@@ -7,7 +7,7 @@ import { m as a } from "../../chunks/useWidget.js";
|
|
|
7
7
|
import { css as h } from "@lit/reactive-element/css-tag.js";
|
|
8
8
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
9
9
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
10
|
-
v4.34.0-next.
|
|
10
|
+
v4.34.0-next.22 */
|
|
11
11
|
const n = h`@layer{arcgis-feature-templates{display:block}}`, c = a(s);
|
|
12
12
|
class d extends o {
|
|
13
13
|
constructor() {
|
|
@@ -8,7 +8,7 @@ import { css as l } from "@lit/reactive-element/css-tag.js";
|
|
|
8
8
|
import { c } from "../../chunks/createCloseEvent.js";
|
|
9
9
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
10
10
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
11
|
-
v4.34.0-next.
|
|
11
|
+
v4.34.0-next.22 */
|
|
12
12
|
const g = l`@layer{arcgis-features{display:flex;flex-direction:column;overflow:hidden;.esri-features{flex:1 1 auto;overflow:hidden}}}`, u = d(o);
|
|
13
13
|
class w extends r {
|
|
14
14
|
constructor() {
|
|
@@ -5,7 +5,7 @@ import { m as a } from "../../chunks/useWidget.js";
|
|
|
5
5
|
import { css as r } from "@lit/reactive-element/css-tag.js";
|
|
6
6
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
7
7
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
8
|
-
v4.34.0-next.
|
|
8
|
+
v4.34.0-next.22 */
|
|
9
9
|
const h = r`@layer{arcgis-floor-filter{display:block}}`, n = a(i);
|
|
10
10
|
class c extends s {
|
|
11
11
|
constructor() {
|
|
@@ -9,7 +9,7 @@ import { css as p } from "@lit/reactive-element/css-tag.js";
|
|
|
9
9
|
import { u as h } from "../../chunks/useView.js";
|
|
10
10
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
11
11
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
12
|
-
v4.34.0-next.
|
|
12
|
+
v4.34.0-next.22 */
|
|
13
13
|
const g = p`arcgis-fullscreen{display:block}`, E = {
|
|
14
14
|
base: "esri-fullscreen"
|
|
15
15
|
};
|
|
@@ -15,7 +15,7 @@ import { watch as D } from "@arcgis/core/core/reactiveUtils.js";
|
|
|
15
15
|
import L from "@arcgis/core/widgets/support/GridControls/GridControlsViewModel.js";
|
|
16
16
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
17
17
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
18
|
-
v4.34.0-next.
|
|
18
|
+
v4.34.0-next.22 */
|
|
19
19
|
function B(s) {
|
|
20
20
|
if (s == null || Number.isNaN(s))
|
|
21
21
|
return 0;
|
|
@@ -6,7 +6,7 @@ import { m as n } from "../../chunks/useWidget.js";
|
|
|
6
6
|
import { css as d } from "@lit/reactive-element/css-tag.js";
|
|
7
7
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
8
8
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
9
|
-
v4.34.0-next.
|
|
9
|
+
v4.34.0-next.22 */
|
|
10
10
|
const h = d`@layer{arcgis-histogram-range-slider{display:block}}`, l = n(s);
|
|
11
11
|
class g extends a {
|
|
12
12
|
constructor() {
|
|
@@ -11,7 +11,7 @@ import { g as a } from "../../chunks/globalCss.js";
|
|
|
11
11
|
import { css as u } from "@lit/reactive-element/css-tag.js";
|
|
12
12
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
13
13
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
14
|
-
v4.34.0-next.
|
|
14
|
+
v4.34.0-next.22 */
|
|
15
15
|
const b = u`@layer{arcgis-home{display:block}}`, y = {
|
|
16
16
|
base: "esri-home"
|
|
17
17
|
}, M = f(d);
|
|
@@ -6,7 +6,7 @@ import { LitElement as m, createEvent as b, safeClassMap as c } from "@arcgis/lu
|
|
|
6
6
|
import { css as f } from "@lit/reactive-element/css-tag.js";
|
|
7
7
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
8
8
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
9
|
-
v4.34.0-next.
|
|
9
|
+
v4.34.0-next.22 */
|
|
10
10
|
const g = f`.label{--calcite-label-margin-bottom: 0}.label-content{display:flex;flex:1;gap:var(--calcite-spacing-sm);align-items:center;text-wrap:balance}.label-content>div{flex-grow:1}.icon{margin-top:-1px;&.info{color:var(--calcite-color-status-info)}&.warning{color:var(--calcite-color-status-warning)}}.tooltip{text-wrap:wrap}`, e = {
|
|
11
11
|
label: "label",
|
|
12
12
|
labelContent: "label-content",
|
|
@@ -8,7 +8,7 @@ import { s as n } from "../../chunks/layer-list.js";
|
|
|
8
8
|
import { c as g } from "../../chunks/createCloseEvent.js";
|
|
9
9
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
10
10
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
11
|
-
v4.34.0-next.
|
|
11
|
+
v4.34.0-next.22 */
|
|
12
12
|
const c = d(a);
|
|
13
13
|
class m extends r {
|
|
14
14
|
constructor() {
|
|
@@ -10,7 +10,7 @@ import { s as E } from "../../chunks/layer-list.js";
|
|
|
10
10
|
import { u as x } from "../../chunks/useT9n.js";
|
|
11
11
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
12
12
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
13
|
-
v4.34.0-next.
|
|
13
|
+
v4.34.0-next.22 */
|
|
14
14
|
const D = {
|
|
15
15
|
hideChildren: "hide-children"
|
|
16
16
|
};
|
|
@@ -6,7 +6,7 @@ import { m as o } from "../../chunks/useWidget.js";
|
|
|
6
6
|
import { css as n } from "@lit/reactive-element/css-tag.js";
|
|
7
7
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
8
8
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
9
|
-
v4.34.0-next.
|
|
9
|
+
v4.34.0-next.22 */
|
|
10
10
|
const l = n`@layer{arcgis-legend{display:block}}`, d = o(i);
|
|
11
11
|
class h extends s {
|
|
12
12
|
constructor() {
|
|
@@ -11,7 +11,7 @@ import x from "@arcgis/core/analysis/LineOfSightAnalysis.js";
|
|
|
11
11
|
import { property as O, subclass as A } from "@arcgis/core/core/accessorSupport/decorators.js";
|
|
12
12
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
13
13
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
14
|
-
v4.34.0-next.
|
|
14
|
+
v4.34.0-next.22 */
|
|
15
15
|
const C = w`@layer{arcgis-line-of-sight{display:block}.arcgis-line-of-sight__container{display:flex;position:relative;flex-flow:column;gap:var(--calcite-spacing-md);padding:var(--esri-widget-padding);overflow-y:auto}.arcgis-line-of-sight__error{color:var(--calcite-color-status-danger)}.arcgis-line-of-sight__hint{display:flex;flex-direction:column;gap:var(--calcite-spacing-md)}.arcgis-line-of-sight__error,.arcgis-line-of-sight__hint{overflow:hidden;animation:arcgis-line-of-sight-fade-in .25s ease-in-out;p{margin:0;padding:0}}.arcgis-line-of-sight__actions{display:flex;flex-flow:column;gap:var(--calcite-spacing-xxs);justify-content:center}@keyframes arcgis-line-of-sight-fade-in{0%{opacity:0}25%{opacity:0}to{opacity:1}}}`, a = "arcgis-line-of-sight", r = {
|
|
16
16
|
base: a,
|
|
17
17
|
actions: `${a}__actions`,
|
|
@@ -308,8 +308,17 @@ export declare class ArcgisLinkChart extends LitElement {
|
|
|
308
308
|
/** Gets the LayerView created on the view for the given layer. */
|
|
309
309
|
whenLayerView(layer: __esri.Layer): Promise<__esri.LayerView>;
|
|
310
310
|
/**
|
|
311
|
-
* `viewOnReady()` may be leveraged once an instance of the component is created and ready.
|
|
312
|
-
* This method takes two input parameters
|
|
311
|
+
* `viewOnReady()` may be leveraged once an instance of the component and its underlying [view](https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-link-chart/#view) is created and ready.
|
|
312
|
+
* This method takes two input parameters, a `callback` function and an `errback` function, and returns a promise. The `callback` executes when the promise resolves, and the `errback` executes if the promise is rejected.
|
|
313
|
+
*
|
|
314
|
+
* @since 4.33
|
|
315
|
+
* @see [Watch for changes - waiting for components or views to be ready](https://developers.arcgis.com/javascript/latest/watch-for-changes/#waiting-for-components-or-views-to-be-ready)
|
|
316
|
+
* @example
|
|
317
|
+
* ```js
|
|
318
|
+
* const viewElement = document.querySelector("arcgis-link-chart");
|
|
319
|
+
* await viewElement.viewOnReady();
|
|
320
|
+
* // The view is now ready to be used.
|
|
321
|
+
* ```
|
|
313
322
|
*/
|
|
314
323
|
viewOnReady(callback?: () => void, errback?: (error: Error) => void): Promise<void>;
|
|
315
324
|
/**
|
|
@@ -8,7 +8,7 @@ import { c as v, i as l } from "../../chunks/component-utils.js";
|
|
|
8
8
|
import { css as m } from "@lit/reactive-element/css-tag.js";
|
|
9
9
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
10
10
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
11
|
-
v4.34.0-next.
|
|
11
|
+
v4.34.0-next.22 */
|
|
12
12
|
const g = m`@layer{arcgis-link-chart{display:block;height:100%;.esri-view{height:100%;width:100%}}}`, d = r(
|
|
13
13
|
w,
|
|
14
14
|
/**
|
|
@@ -54,7 +54,7 @@ export declare class ArcgisLinkChartLayoutSwitcher extends LitElement {
|
|
|
54
54
|
/**
|
|
55
55
|
* Icon displayed in the component's button, when `appearance` is `dropdown`.
|
|
56
56
|
*
|
|
57
|
-
* @see [Calcite Icon Search](https://
|
|
57
|
+
* @see [Calcite Icon Search](https://developers.arcgis.com/calcite-design-system/icons/)
|
|
58
58
|
* @default "nodes-link"
|
|
59
59
|
*/
|
|
60
60
|
icon?: string;
|
|
@@ -11,7 +11,7 @@ import { LitElement as b, createEvent as f, noShadowRoot as v, safeClassMap as c
|
|
|
11
11
|
import { css as $ } from "@lit/reactive-element/css-tag.js";
|
|
12
12
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
13
13
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
14
|
-
v4.34.0-next.
|
|
14
|
+
v4.34.0-next.22 */
|
|
15
15
|
const L = $`@layer{arcgis-link-chart-layout-switcher{display:block}}`, l = {
|
|
16
16
|
basicLayoutCategory: [
|
|
17
17
|
"basic-grid"
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/// <reference types="@arcgis/core/interfaces.d.ts" />
|
|
2
2
|
/// <reference types="../../index.d.ts" />
|
|
3
3
|
import { Use } from '@arcgis/lumina/controllers';
|
|
4
|
-
import { Nil } from '@arcgis/components-utils';
|
|
5
4
|
import { JsxNode, PublicLitElement as LitElement, TargetedEvent } from '@arcgis/lumina';
|
|
6
5
|
import { ArcgisReferenceElement } from '../../utils/component-utils';
|
|
7
6
|
import { default as LocateViewModel } from './LocateViewModel';
|
|
@@ -23,14 +22,14 @@ export declare class ArcgisLocate extends LitElement {
|
|
|
23
22
|
* @default false
|
|
24
23
|
*/
|
|
25
24
|
autoDestroyDisabled: boolean;
|
|
26
|
-
geolocationOptions:
|
|
25
|
+
geolocationOptions: PositionOptions | undefined;
|
|
27
26
|
/**
|
|
28
27
|
* Indicates whether to navigate the view to the position and scale of the geolocated result.
|
|
29
28
|
*
|
|
30
29
|
* @default false
|
|
31
30
|
*/
|
|
32
31
|
goToLocationDisabled: boolean;
|
|
33
|
-
goToOverride:
|
|
32
|
+
goToOverride: __esri.GoToOverride | undefined;
|
|
34
33
|
/** The graphic used to show the user's location on the map. */
|
|
35
34
|
graphic: __esri.Graphic;
|
|
36
35
|
/** @default "gps-off" */
|
|
@@ -54,7 +53,7 @@ export declare class ArcgisLocate extends LitElement {
|
|
|
54
53
|
*
|
|
55
54
|
* @default null
|
|
56
55
|
*/
|
|
57
|
-
scale: number |
|
|
56
|
+
scale: number | undefined;
|
|
58
57
|
/** The current state of the component. */
|
|
59
58
|
state: "ready" | "disabled" | "error" | "feature-unsupported" | "locating";
|
|
60
59
|
/**
|
|
@@ -27,7 +27,7 @@ import { project as te } from "@arcgis/core/rest/geometryService.js";
|
|
|
27
27
|
import oe from "@arcgis/core/rest/support/ProjectParameters.js";
|
|
28
28
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
29
29
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
30
|
-
v4.34.0-next.
|
|
30
|
+
v4.34.0-next.22 */
|
|
31
31
|
const ie = K`@layer{arcgis-locate{display:block}}`;
|
|
32
32
|
let M = !1;
|
|
33
33
|
const re = {
|
|
@@ -46,7 +46,7 @@ function se() {
|
|
|
46
46
|
function ne() {
|
|
47
47
|
return ae() && se();
|
|
48
48
|
}
|
|
49
|
-
function
|
|
49
|
+
function ce(e) {
|
|
50
50
|
return e ??= re, new Promise((o, r) => {
|
|
51
51
|
setTimeout(
|
|
52
52
|
() => r(new u("geolocation:timeout", "getting the current geolocation position timed out")),
|
|
@@ -54,7 +54,7 @@ function le(e) {
|
|
|
54
54
|
), navigator.geolocation.getCurrentPosition(o, r, e ?? void 0);
|
|
55
55
|
});
|
|
56
56
|
}
|
|
57
|
-
function
|
|
57
|
+
function le(e, t) {
|
|
58
58
|
const { position: o, view: r } = e, a = pe(o)?.coords;
|
|
59
59
|
if (!a)
|
|
60
60
|
throw new u("geometry-service:no-coords", "Geolocation has no coordinates");
|
|
@@ -263,11 +263,11 @@ const L = {
|
|
|
263
263
|
]
|
|
264
264
|
}
|
|
265
265
|
});
|
|
266
|
-
let
|
|
266
|
+
let c = class extends B {
|
|
267
267
|
constructor() {
|
|
268
|
-
super(...arguments), this._geolocationUsable = !0, this.
|
|
268
|
+
super(...arguments), this._geolocationUsable = !0, this.goToLocationEnabled = !0, this.graphic = new O({
|
|
269
269
|
symbol: we
|
|
270
|
-
}), this.
|
|
270
|
+
}), this.rotationEnabled = !0;
|
|
271
271
|
}
|
|
272
272
|
//#region Lifecycle
|
|
273
273
|
initialize() {
|
|
@@ -282,7 +282,7 @@ let l = class extends B {
|
|
|
282
282
|
]);
|
|
283
283
|
}
|
|
284
284
|
destroy() {
|
|
285
|
-
this._clearGraphic(), this.view =
|
|
285
|
+
this._clearGraphic(), this.view = void 0;
|
|
286
286
|
}
|
|
287
287
|
//#endregion
|
|
288
288
|
//#region Private Methods
|
|
@@ -351,7 +351,7 @@ let l = class extends B {
|
|
|
351
351
|
}
|
|
352
352
|
async updatePosition(e, t) {
|
|
353
353
|
try {
|
|
354
|
-
const o = this.view, r = await
|
|
354
|
+
const o = this.view, r = await le({ position: e, view: o }, { signal: t.signal }), { graphic: i } = this, { timestamp: a, coords: s } = e, { accuracy: g, altitude: h, altitudeAccuracy: N, latitude: D, longitude: x, speed: R } = s, v = this._getHeading(e, o), U = {
|
|
355
355
|
timestamp: a,
|
|
356
356
|
accuracy: g,
|
|
357
357
|
altitude: h,
|
|
@@ -376,33 +376,33 @@ let l = class extends B {
|
|
|
376
376
|
};
|
|
377
377
|
p([
|
|
378
378
|
n()
|
|
379
|
-
],
|
|
379
|
+
], c.prototype, "_geolocationUsable", 2);
|
|
380
380
|
p([
|
|
381
381
|
n()
|
|
382
|
-
],
|
|
382
|
+
], c.prototype, "geolocationOptions", 2);
|
|
383
383
|
p([
|
|
384
384
|
n()
|
|
385
|
-
],
|
|
385
|
+
], c.prototype, "goToLocationEnabled", 2);
|
|
386
386
|
p([
|
|
387
387
|
n()
|
|
388
|
-
],
|
|
388
|
+
], c.prototype, "goToOverride", 2);
|
|
389
389
|
p([
|
|
390
390
|
n({
|
|
391
391
|
type: O
|
|
392
392
|
})
|
|
393
|
-
],
|
|
393
|
+
], c.prototype, "graphic", 2);
|
|
394
394
|
p([
|
|
395
395
|
n()
|
|
396
|
-
],
|
|
396
|
+
], c.prototype, "scale", 2);
|
|
397
397
|
p([
|
|
398
398
|
n()
|
|
399
|
-
],
|
|
399
|
+
], c.prototype, "rotationEnabled", 2);
|
|
400
400
|
p([
|
|
401
401
|
n()
|
|
402
|
-
],
|
|
403
|
-
|
|
402
|
+
], c.prototype, "view", 2);
|
|
403
|
+
c = p([
|
|
404
404
|
S("map-components.geolocation.GeolocationPositioning")
|
|
405
|
-
],
|
|
405
|
+
], c);
|
|
406
406
|
var be = Object.defineProperty, Ae = Object.getOwnPropertyDescriptor, d = (e, t, o, r) => {
|
|
407
407
|
for (var i = r > 1 ? void 0 : r ? Ae(t, o) : t, a = e.length - 1, s; a >= 0; a--)
|
|
408
408
|
(s = e[a]) && (i = (r ? s(t, o, i) : s(i)) || i);
|
|
@@ -490,7 +490,7 @@ function Me(e) {
|
|
|
490
490
|
]
|
|
491
491
|
});
|
|
492
492
|
}
|
|
493
|
-
let
|
|
493
|
+
let l = class extends c {
|
|
494
494
|
//#region Lifecycle
|
|
495
495
|
constructor(e) {
|
|
496
496
|
super(e), this._locateController = null, this.currentPosition = null, this.error = void 0, this.messages = null, this.popupEnabled = !0, this.locate = this.locate.bind(this);
|
|
@@ -521,7 +521,7 @@ let c = class extends l {
|
|
|
521
521
|
const e = new AbortController();
|
|
522
522
|
this._locateController = e, this.error = void 0;
|
|
523
523
|
try {
|
|
524
|
-
const t = await
|
|
524
|
+
const t = await ce(this.geolocationOptions);
|
|
525
525
|
if (await this.updatePosition(t, e), this._locateController !== e)
|
|
526
526
|
return null;
|
|
527
527
|
const { graphic: o } = this;
|
|
@@ -547,28 +547,28 @@ let c = class extends l {
|
|
|
547
547
|
};
|
|
548
548
|
d([
|
|
549
549
|
n()
|
|
550
|
-
],
|
|
550
|
+
], l.prototype, "_locateController", 2);
|
|
551
551
|
d([
|
|
552
552
|
n()
|
|
553
|
-
],
|
|
553
|
+
], l.prototype, "currentPosition", 2);
|
|
554
554
|
d([
|
|
555
555
|
n()
|
|
556
|
-
],
|
|
556
|
+
], l.prototype, "error", 2);
|
|
557
557
|
d([
|
|
558
558
|
n()
|
|
559
|
-
],
|
|
559
|
+
], l.prototype, "messages", 2);
|
|
560
560
|
d([
|
|
561
561
|
n()
|
|
562
|
-
],
|
|
562
|
+
], l.prototype, "popupEnabled", 2);
|
|
563
563
|
d([
|
|
564
564
|
n({ readOnly: !0 })
|
|
565
|
-
],
|
|
566
|
-
|
|
565
|
+
], l.prototype, "state", 1);
|
|
566
|
+
l = d([
|
|
567
567
|
S("map-components.locate.LocateViewModel")
|
|
568
|
-
],
|
|
568
|
+
], l);
|
|
569
569
|
const Ce = {
|
|
570
570
|
base: "esri-locate"
|
|
571
|
-
}, C = "gps-off", Se = k(
|
|
571
|
+
}, C = "gps-off", Se = k(l);
|
|
572
572
|
class Ee extends z {
|
|
573
573
|
constructor() {
|
|
574
574
|
super(...arguments), this.messages = V(), this.viewModel = Se(this), this.autoDestroyDisabled = !1, this.geolocationOptions = this.viewModel.geolocationOptions, this.goToLocationDisabled = this.viewModel.goToLocationEnabled, this.goToOverride = this.viewModel.goToOverride, this.graphic = this.viewModel.graphic, this.icon = C, this.popupDisabled = this.viewModel.popupEnabled, this.position = "top-left", this.scale = this.viewModel.scale, this.state = this.viewModel.state, this.arcgisError = f(), this.arcgisPropertyChange = G()("state"), this.arcgisReady = f(), this.arcgisSuccess = f();
|
|
@@ -387,8 +387,18 @@ export declare class ArcgisMap extends LitElement {
|
|
|
387
387
|
/** Gets the LayerView created on the view for the given layer. */
|
|
388
388
|
whenLayerView(layer: __esri.Layer): Promise<__esri.LayerView>;
|
|
389
389
|
/**
|
|
390
|
-
* `viewOnReady()` may be leveraged once an instance of the component is created and ready.
|
|
391
|
-
* This method takes two input parameters
|
|
390
|
+
* `viewOnReady()` may be leveraged once an instance of the component and its underlying [view](https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-map/#view) is created and ready.
|
|
391
|
+
* This method takes two input parameters, a `callback` function and an `errback` function, and returns a promise. The `callback` executes when the promise resolves, and the `errback` executes if the promise is rejected.
|
|
392
|
+
*
|
|
393
|
+
* @since 4.33
|
|
394
|
+
* @see [Watch for changes - waiting for components or views to be ready](https://developers.arcgis.com/javascript/latest/watch-for-changes/#waiting-for-components-or-views-to-be-ready)
|
|
395
|
+
* @example
|
|
396
|
+
* ```js
|
|
397
|
+
* const viewElement = document.querySelector("arcgis-map");
|
|
398
|
+
* await viewElement.viewOnReady();
|
|
399
|
+
* // The view is now ready to be used.
|
|
400
|
+
* viewElement.map.add(new FeatureLayer({...}));
|
|
401
|
+
* ```
|
|
392
402
|
*/
|
|
393
403
|
viewOnReady(callback?: () => void, errback?: (error: Error) => void): Promise<void>;
|
|
394
404
|
/**
|
|
@@ -8,7 +8,7 @@ import { c as v, i as l } from "../../chunks/component-utils.js";
|
|
|
8
8
|
import { css as m } from "@lit/reactive-element/css-tag.js";
|
|
9
9
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
10
10
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
11
|
-
v4.34.0-next.
|
|
11
|
+
v4.34.0-next.22 */
|
|
12
12
|
const g = m`@layer{arcgis-map{display:block;height:100%;.esri-view{height:100%;width:100%}}}`, d = r(
|
|
13
13
|
w,
|
|
14
14
|
/**
|
|
@@ -6,7 +6,7 @@ import { m as r } from "../../chunks/useWidget.js";
|
|
|
6
6
|
import { css as n } from "@lit/reactive-element/css-tag.js";
|
|
7
7
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
8
8
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
9
|
-
v4.34.0-next.
|
|
9
|
+
v4.34.0-next.22 */
|
|
10
10
|
const c = n`@layer{arcgis-measurement{display:block}}`, l = r(i);
|
|
11
11
|
class h extends s {
|
|
12
12
|
constructor() {
|
|
@@ -6,7 +6,7 @@ import { f as l } from "../../chunks/measurementUtils.js";
|
|
|
6
6
|
import { css as m } from "@lit/reactive-element/css-tag.js";
|
|
7
7
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
8
8
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
9
|
-
v4.34.0-next.
|
|
9
|
+
v4.34.0-next.22 */
|
|
10
10
|
const u = m`:host,.hint,.error,.section,.actions,.item{display:flex;flex-direction:column;gap:var(--calcite-spacing-md);animation:esri-fade-in .25s ease-in-out}.error{color:var(--calcite-color-status-danger)}.error,.hint{overflow:hidden;p{margin:0;padding:0}}.item-disabled{color:var(--calcite-color-text-1);opacity:var(--calcite-opacity-light)}.item-value{font-weight:var(--calcite-font-weight-semibold)}.actions{justify-content:center}`, e = {
|
|
11
11
|
error: "error",
|
|
12
12
|
hint: "hint",
|
|
@@ -9,7 +9,7 @@ import { g as b } from "../../chunks/globalCss.js";
|
|
|
9
9
|
import { css as M } from "@lit/reactive-element/css-tag.js";
|
|
10
10
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
11
11
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
12
|
-
v4.34.0-next.
|
|
12
|
+
v4.34.0-next.22 */
|
|
13
13
|
const $ = "arcgis-navigation-toggle", w = {
|
|
14
14
|
base: $
|
|
15
15
|
}, x = M`@layer{.arcgis-navigation-toggle{display:flex;box-shadow:0 1px 2px #0000004d;inline-size:fit-content;block-size:fit-content}}`, e = { pan: "move", rotate: "rotate" };
|
|
@@ -7,7 +7,7 @@ import { m as l } from "../../chunks/useWidget.js";
|
|
|
7
7
|
import { css as g } from "@lit/reactive-element/css-tag.js";
|
|
8
8
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
9
9
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
10
|
-
v4.34.0-next.
|
|
10
|
+
v4.34.0-next.22 */
|
|
11
11
|
const h = g`@layer{arcgis-oriented-imagery-viewer{display:block}}`, m = l(r);
|
|
12
12
|
class y extends o {
|
|
13
13
|
constructor() {
|
|
@@ -4,7 +4,7 @@ import { LitElement as l, createEvent as a, noShadowRoot as c } from "@arcgis/lu
|
|
|
4
4
|
import { css as h } from "@lit/reactive-element/css-tag.js";
|
|
5
5
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
6
6
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
7
|
-
v4.34.0-next.
|
|
7
|
+
v4.34.0-next.22 */
|
|
8
8
|
const d = h`@layer{arcgis-placement{display:flex;pointer-events:auto;box-shadow:none}.arcgis-placement__container{display:block}}`;
|
|
9
9
|
class m extends l {
|
|
10
10
|
constructor() {
|