@arcgis/map-components 5.1.0-next.120 → 5.1.0-next.122
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/{ZZORY2UI.js → 2GDVOK6V.js} +1 -1
- package/dist/cdn/3M2OCTTN.js +2 -0
- package/dist/cdn/43B43AY2.js +2 -0
- package/dist/cdn/{A6P7RDWG.js → 4AQ43ENS.js} +1 -1
- package/dist/cdn/{BQDL5AKD.js → 6RUN7OSM.js} +1 -1
- package/dist/cdn/{6OHXFH4A.js → 6SY6H3FZ.js} +1 -1
- package/dist/cdn/{JA7RPLTP.js → 6WV5RHUP.js} +2 -2
- package/dist/cdn/{QZMJWS2B.js → ADWNNODV.js} +1 -1
- package/dist/cdn/CH6EZH77.js +2 -0
- package/dist/cdn/CNNVHQTZ.js +4 -0
- package/dist/cdn/CPQRCYUD.js +2 -0
- package/dist/cdn/CRJEQWDO.js +2 -0
- package/dist/cdn/DCNSXS23.js +2 -0
- package/dist/cdn/DZMN2UH5.js +2 -0
- package/dist/cdn/EJAWFQRM.js +2 -0
- package/dist/cdn/FKJU4SJG.js +2 -0
- package/dist/cdn/FWSLFWOH.js +2 -0
- package/dist/cdn/{Q4753YCY.js → GD7MA2TO.js} +1 -1
- package/dist/cdn/HBE3W2BQ.js +2 -0
- package/dist/cdn/IJYN5YEP.js +2 -0
- package/dist/cdn/JOOGE4FT.js +2 -0
- package/dist/cdn/{VRLY2I2M.js → MASUN7EL.js} +1 -1
- package/dist/cdn/{X5TD4KCW.js → MZBCMFYH.js} +1 -1
- package/dist/cdn/{FMTWGY6C.js → NJHOCKLL.js} +1 -1
- package/dist/cdn/OZJJULKI.js +2 -0
- package/dist/cdn/{J4TYGEI3.js → RIRETHHL.js} +1 -1
- package/dist/cdn/{PO3NMPKS.js → SXWQBHG3.js} +1 -1
- package/dist/cdn/TCUFYIIZ.js +2 -0
- package/dist/cdn/VHJSRDE4.js +2 -0
- package/dist/cdn/{7I7G7KRT.js → W4SQ3QCZ.js} +1 -1
- package/dist/cdn/WFL2WTJK.js +2 -0
- package/dist/cdn/X5UAYUNL.js +2 -0
- package/dist/cdn/{L77C4X4F.js → XYUG5M3W.js} +1 -1
- package/dist/cdn/assets/feature-templates/t9n/messages.ar.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.bg.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.bs.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.ca.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.cs.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.da.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.de.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.el.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.en.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.es.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.et.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.fi.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.fr.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.he.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.hr.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.hu.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.id.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.it.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.ja.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.ko.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.lt.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.lv.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.nl.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.no.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.pl.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.pt-BR.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.pt-PT.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.ro.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.ru.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.sk.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.sl.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.sr.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.sv.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.th.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.tr.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.uk.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.vi.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.zh-HK.json +1 -0
- package/dist/cdn/assets/feature-templates/t9n/messages.zh-TW.json +1 -0
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/main.css +1 -1
- package/dist/chunks/useArcgisViewReadyError.js +60 -111
- package/dist/components/arcgis-daylight/customElement.d.ts +1 -0
- package/dist/components/arcgis-daylight/customElement.js +98 -112
- package/dist/components/arcgis-feature-table/customElement.d.ts +8 -0
- package/dist/components/arcgis-feature-table/customElement.js +28 -28
- package/dist/components/arcgis-feature-templates/TemplateItem.d.ts +33 -0
- package/dist/components/arcgis-feature-templates/customElement.d.ts +275 -0
- package/dist/components/arcgis-feature-templates/customElement.js +560 -0
- package/dist/components/arcgis-feature-templates/index.d.ts +1 -0
- package/dist/components/arcgis-feature-templates/index.js +13 -0
- package/dist/components/arcgis-features-next/customElement.d.ts +2 -0
- package/dist/components/arcgis-features-next/customElement.js +69 -63
- package/dist/components/arcgis-features-next/index.js +1 -0
- package/dist/components/arcgis-layer-list-next/layer-list-item/customElement.js +23 -23
- package/dist/components/arcgis-link-chart/customElement.d.ts +11 -4
- package/dist/components/arcgis-link-chart/customElement.js +11 -11
- package/dist/components/arcgis-map/customElement.d.ts +10 -3
- package/dist/components/arcgis-map/customElement.js +9 -9
- package/dist/components/arcgis-oriented-imagery-viewer/customElement.js +3 -3
- package/dist/components/arcgis-paste/PasteViewModel.d.ts +1 -1
- package/dist/components/arcgis-paste/customElement.js +27 -38
- package/dist/components/arcgis-paste/index.js +1 -1
- package/dist/components/arcgis-popup/customElement.d.ts +2 -0
- package/dist/components/arcgis-popup/customElement.js +9 -9
- package/dist/components/arcgis-scene/customElement.d.ts +10 -3
- package/dist/components/arcgis-scene/customElement.js +24 -24
- package/dist/components/arcgis-search/customElement.js +6 -6
- package/dist/components/arcgis-template-image/customElement.d.ts +14 -0
- package/dist/components/arcgis-template-image/customElement.js +119 -0
- package/dist/components/arcgis-template-image/index.d.ts +1 -0
- package/dist/components/arcgis-template-image/index.js +1 -0
- package/dist/components/arcgis-video/customElement.d.ts +15 -2
- package/dist/components/arcgis-video/customElement.js +5 -5
- package/dist/components/arcgis-video-player/customElement.d.ts +7 -0
- package/dist/components/arcgis-video-player/customElement.js +14 -11
- package/dist/components/arcgis-video-player-controls-group/customElement.js +19 -17
- package/dist/components/arcgis-video-player-settings/customElement.js +20 -18
- package/dist/components/arcgis-video-player-settings/index.js +1 -0
- 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 +14 -0
- package/dist/loader.js +10 -8
- package/dist/types/lumina.d.ts +18 -4
- package/dist/types/preact.d.ts +20 -4
- package/dist/types/react.d.ts +22 -4
- package/dist/types/stencil.d.ts +18 -4
- package/package.json +4 -4
- package/dist/cdn/3X33RWNO.js +0 -2
- package/dist/cdn/5QATVROE.js +0 -2
- package/dist/cdn/CLFGHCMB.js +0 -2
- package/dist/cdn/COKJF3EH.js +0 -2
- package/dist/cdn/E33LBHQA.js +0 -4
- package/dist/cdn/E6IL4F2M.js +0 -2
- package/dist/cdn/G56TPBPA.js +0 -2
- package/dist/cdn/GCFIJLPC.js +0 -2
- package/dist/cdn/JUIA2RF6.js +0 -2
- package/dist/cdn/L4RTHLN4.js +0 -2
- package/dist/cdn/OYP56BNC.js +0 -2
- package/dist/cdn/QKPKTEN4.js +0 -2
- package/dist/cdn/R45DWBFZ.js +0 -2
- package/dist/cdn/RPMEM4UV.js +0 -2
- package/dist/cdn/RZHHKFQG.js +0 -2
- package/dist/cdn/SM4Y3DFU.js +0 -2
- package/dist/cdn/ZVTOXQKI.js +0 -2
- /package/dist/cdn/{GJ5TOPT3.js → 2CZRXPMB.js} +0 -0
- /package/dist/cdn/{DPU3VHST.js → 2RIDZVJS.js} +0 -0
- /package/dist/cdn/{SUNN2JJ2.js → 3DVOY4BQ.js} +0 -0
- /package/dist/cdn/{NDMFLRTB.js → 3NSVHKCX.js} +0 -0
- /package/dist/cdn/{O6LYJEON.js → 3WCEFKJX.js} +0 -0
- /package/dist/cdn/{MC2YUGXZ.js → 3X2K6TOS.js} +0 -0
- /package/dist/cdn/{KCP3JSEI.js → 5U45EC5U.js} +0 -0
- /package/dist/cdn/{OKNXBCUX.js → 6TIWCGNI.js} +0 -0
- /package/dist/cdn/{U3TSRIEI.js → ACZBI3TS.js} +0 -0
- /package/dist/cdn/{L54L4XXE.js → BALE27RC.js} +0 -0
- /package/dist/cdn/{W52ULASU.js → CSLP3Y5Q.js} +0 -0
- /package/dist/cdn/{URTOVAT4.js → FVOWGP5P.js} +0 -0
- /package/dist/cdn/{772IZDK4.js → HHVQ6PZP.js} +0 -0
- /package/dist/cdn/{7LWMV5A2.js → IIQPDHOL.js} +0 -0
- /package/dist/cdn/{KDLK5QD5.js → KODINAEM.js} +0 -0
- /package/dist/cdn/{KRMRVJFP.js → KOSOMJZF.js} +0 -0
- /package/dist/cdn/{7IB6AI2V.js → LCL6A5WY.js} +0 -0
- /package/dist/cdn/{VUQCK6IF.js → M3RQA7LC.js} +0 -0
- /package/dist/cdn/{GNOAUTDK.js → NFC5RKO7.js} +0 -0
- /package/dist/cdn/{NRMPFAXY.js → NY56F774.js} +0 -0
- /package/dist/cdn/{IL63OQEZ.js → OKZBZTFG.js} +0 -0
- /package/dist/cdn/{XUZ43MBE.js → PFWDUC5T.js} +0 -0
- /package/dist/cdn/{KOZ67YXN.js → PS4ID2TE.js} +0 -0
- /package/dist/cdn/{AVFPVB7U.js → QBLPJW3F.js} +0 -0
- /package/dist/cdn/{UHA7OYN5.js → R6G7YQAK.js} +0 -0
- /package/dist/cdn/{TKKD4742.js → RT5PKDE3.js} +0 -0
- /package/dist/cdn/{H76ZEZDT.js → S372YWXF.js} +0 -0
- /package/dist/cdn/{3MSBRZSL.js → S6ARJLXF.js} +0 -0
- /package/dist/cdn/{GMSP2RYI.js → ST4PUEOI.js} +0 -0
- /package/dist/cdn/{ZRRRSIMH.js → SYVTOG2B.js} +0 -0
- /package/dist/cdn/{FV53P5VQ.js → U5WUAQYQ.js} +0 -0
- /package/dist/cdn/{F6ZBUVU3.js → UGILYDTR.js} +0 -0
- /package/dist/cdn/{NI4PVDRC.js → VOI7MTIP.js} +0 -0
- /package/dist/cdn/{QGYTLHWY.js → VZLSY2HC.js} +0 -0
- /package/dist/cdn/{KAJYVAAI.js → WDDHDMHF.js} +0 -0
- /package/dist/cdn/{HEP3BHHQ.js → XPGK3YXK.js} +0 -0
- /package/dist/cdn/{2KBFRAA3.js → XQ5DUVE2.js} +0 -0
- /package/dist/cdn/{LSPV526S.js → XVEQWFE4.js} +0 -0
- /package/dist/cdn/{CK5XEDZS.js → YDOV4SQ2.js} +0 -0
- /package/dist/cdn/{PZSA4K32.js → YGVTAUE6.js} +0 -0
- /package/dist/cdn/{7D5T777O.js → YSJ2NU2N.js} +0 -0
- /package/dist/cdn/{OWF5OCZY.js → ZHJBZYZ4.js} +0 -0
|
@@ -11,9 +11,9 @@ import { s as g } from "../../chunks/esri-main.js";
|
|
|
11
11
|
import { s as d } from "../../chunks/slots.js";
|
|
12
12
|
import { C as w } from "../../chunks/resources.js";
|
|
13
13
|
import { p as y, i as f } from "../../chunks/component-utils.js";
|
|
14
|
-
import { U as b,
|
|
15
|
-
import
|
|
16
|
-
const
|
|
14
|
+
import { U as b, u as V, a as C } from "../../chunks/useArcgisViewReadyError.js";
|
|
15
|
+
import E from "@arcgis/core/core/Collection.js";
|
|
16
|
+
const A = p(
|
|
17
17
|
v,
|
|
18
18
|
/**
|
|
19
19
|
* Since omitProps is only needed for typing, not runtime, `{} as { ... }` is
|
|
@@ -25,9 +25,9 @@ const _ = p(
|
|
|
25
25
|
*/
|
|
26
26
|
{}
|
|
27
27
|
), R = p(c, {});
|
|
28
|
-
class
|
|
28
|
+
class _ extends m {
|
|
29
29
|
constructor() {
|
|
30
|
-
super(), this._containerRef = n(), this._mapRef = n(), this._uiController = new b(this), this.
|
|
30
|
+
super(), this._containerRef = n(), this._mapRef = n(), this._uiController = new b(this), this.extraContent = new E(), this.arcgisLoadError = V(this), this.arcgisViewReadyError = C(this), this._map = A(this), this.view = R(this), this.animationsDisabled = this.view.animationsEnabled, this.allLayerViews = this.view.allLayerViews, this.analyses = this.view.analyses, this.attributionMode = this.view.attributionMode, this.autoDestroyDisabled = !1, this.background = this.view.background, this.basemap = this._map.basemap, this.basemapView = this.view.basemapView, this.canZoomIn = this.view.canZoomIn, this.canZoomOut = this.view.canZoomOut, this.constraints = this.view.constraints, this.displayFilterDisabled = this.view.displayFilterEnabled, this.fatalError = this.view.fatalError, this.floors = this.view.floors, this.graphics = this.view.graphics, this.ground = this._map.ground, this.highlights = this.view.highlights, this.ipsInfo = this._map.ipsInfo, 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.ready = this.view.ready, this.resizeAlign = this.view.resizeAlign, this.resolution = this.view.resolution, this.rotation = this.view.rotation, this.selectionManager = this.view.selectionManager, this.slotGroupRefs = this._uiController.slotGroupRefs, this.spatialReference = this.view.spatialReference, this.spatialReferenceLocked = this.view.spatialReferenceLocked, this.suspended = this.view.suspended, this.theme = this.view.theme, this.timeExtent = this.view.timeExtent, this.timeZone = this.view.timeZone, this.updating = this.view.updating, this.visibleArea = this.view.visibleArea, this.arcgisViewAnalysisViewCreate = e(() => this.view, "analysis-view-create"), this.arcgisViewAnalysisViewCreateError = e(() => this.view, "analysis-view-create-error"), this.arcgisViewAnalysisViewDestroy = e(() => this.view, "analysis-view-destroy"), this.arcgisViewChange = r(), this.arcgisViewClick = e(() => this.view, "click"), this.arcgisViewDoubleClick = e(() => this.view, "double-click"), this.arcgisViewDoubleTapDrag = e(() => this.view, "double-tap-drag"), this.arcgisViewDrag = e(() => this.view, "drag"), this.arcgisViewHold = e(() => this.view, "hold"), this.arcgisViewImmediateClick = e(() => this.view, "immediate-click"), this.arcgisViewImmediateDoubleClick = e(() => this.view, "immediate-double-click"), this.arcgisViewKeyDown = e(() => this.view, "key-down"), this.arcgisViewKeyUp = e(() => this.view, "key-up"), this.arcgisViewLayerviewCreate = e(() => this.view, "layerview-create"), this.arcgisViewLayerviewCreateError = e(() => this.view, "layerview-create-error"), this.arcgisViewLayerviewDestroy = e(() => this.view, "layerview-destroy"), this.arcgisViewMouseWheel = e(() => this.view, "mouse-wheel"), this.arcgisViewPointerDown = e(() => this.view, "pointer-down"), this.arcgisViewPointerEnter = e(() => this.view, "pointer-enter"), this.arcgisViewPointerLeave = e(() => this.view, "pointer-leave"), this.arcgisViewPointerMove = e(() => this.view, "pointer-move"), this.arcgisViewPointerUp = e(() => this.view, "pointer-up"), this.arcgisViewReadyChange = r(), this.arcgisViewVerticalTwoFingerDrag = e(() => this.view, "vertical-two-finger-drag"), this.view.ui = {
|
|
31
31
|
components: []
|
|
32
32
|
};
|
|
33
33
|
}
|
|
@@ -116,8 +116,8 @@ class D extends m {
|
|
|
116
116
|
async closePopup() {
|
|
117
117
|
this._uiController.closePopup();
|
|
118
118
|
}
|
|
119
|
-
async
|
|
120
|
-
this.
|
|
119
|
+
async fetchPopupFeatures(i, t) {
|
|
120
|
+
return this.view.fetchPopupFeatures(i, t);
|
|
121
121
|
}
|
|
122
122
|
async destroy() {
|
|
123
123
|
await this.manager.destroy();
|
|
@@ -178,7 +178,7 @@ class D extends m {
|
|
|
178
178
|
return a`${this.renderMain()}<section class=${o(w.containerUI)} ${h(this._containerRef)}>${this._uiController.render()}${this.extraContent}</section>`;
|
|
179
179
|
}
|
|
180
180
|
}
|
|
181
|
-
l("arcgis-map",
|
|
181
|
+
l("arcgis-map", _);
|
|
182
182
|
export {
|
|
183
|
-
|
|
183
|
+
_ as ArcgisMap
|
|
184
184
|
};
|
|
@@ -9,11 +9,11 @@ import { m as g } from "../../chunks/useWidget.js";
|
|
|
9
9
|
import { css as c } from "lit";
|
|
10
10
|
import { s as m } from "../../chunks/esri-main.js";
|
|
11
11
|
import { u as v } from "../../chunks/useLayerById.js";
|
|
12
|
-
const h = c`.esri-imagery-viewer{width:100%;height:100%}.esri-oriented-imagery-viewer{--esri-oriented-imagery-viewer-action-icon-size: 8px;--esri-oriented-imagery-viewer-min-width: 288px;--esri-oriented-imagery-viewer-min-height: 348px;--calcite-dialog-size-x: 210px;--calcite-dialog-min-size-y: 90px;--calcite-icon-size: var(--esri-oriented-imagery-viewer-action-icon-size);box-sizing:border-box;z-index:1;width:100%;min-width:var(--esri-oriented-imagery-viewer-min-width);height:100%;min-height:var(--esri-oriented-imagery-viewer-min-height);flex-direction:column;align-items:flex-start;display:flex;overflow:hidden}.esri-oriented-imagery-viewer:has(.esri-widget .esri-oriented-imagery-viewer__image-overlays-no-result){--esri-oriented-imagery-viewer-min-height: 420px}.esri-oriented-imagery-viewer__body{flex-direction:column;flex:1 0 auto;order:1;align-self:stretch;height:100%;display:flex}.esri-oriented-imagery-viewer__body-current-coverage{--calcite-icon-color: var(--calcite-color-status-danger)}.esri-oriented-imagery-viewer__body-additional-camera-locations{--calcite-icon-color: var(--calcite-color-brand)}.esri-oriented-imagery-viewer__body-additional-coverage{--calcite-icon-color: var(--calcite-color-status-info)}.esri-oriented-imagery-viewer__body-footprint{--calcite-icon-color: var(--calcite-color-status-success)}.esri-oriented-imagery-viewer__carousel{z-index:1;border:1px solid var(--calcite-color-border-2);align-items:center;width:98%;height:140px;margin:auto 1% 0;position:absolute;bottom:0;box-shadow:0 0 1px #0000004d}.esri-oriented-imagery-viewer__carousel-container{height:auto;display:inline-block;overflow:auto hidden}.esri-oriented-imagery-viewer__carousel header{--calcite-font-weight-medium: $font-weight--light;--calcite-font-size-0: $font-size--tiny}.esri-oriented-imagery-viewer__carousel-item{width:100px;height:70px}.esri-oriented-imagery-viewer__carousel-item-wrapper{box-sizing:border-box;justify-content:center;align-items:center;width:106px;height:78px;margin:auto 10px;display:flex;box-shadow:0 1px 2px #0000004d}.esri-oriented-imagery-viewer__carousel-item-wrapper--selected{box-sizing:border-box;border:2px solid var(--calcite-color-brand);justify-content:center;align-items:center;width:106px;height:78px;margin:auto 10px;display:flex;box-shadow:0 1px 2px #0000004d}.esri-oriented-imagery-viewer__carousel-content{display:flex}.esri-oriented-imagery-viewer__close{background:var(--calcite-color-foreground-1);flex-direction:row;flex-grow:0;order:7;justify-content:center;align-items:center;width:48px;height:59px;display:flex}.esri-oriented-imagery-viewer__image-enhancement-wrapper{z-index:1;border:1px solid var(--calcite-color-border-2);align-items:center;width:98%;height:140px;margin:auto 1% 0;position:absolute;bottom:0;box-shadow:0 0 1px #0000004d}.esri-oriented-imagery-viewer__image-enhancement-tools{display:flex}.esri-oriented-imagery-viewer__image-enhancement-tool-container{width:50%;margin-block:2px;padding-inline:.75rem}.esri-oriented-imagery-viewer__image-overlays{z-index:1;margin:auto;border:1px solid var(--calcite-color-border-2);align-items:center;width:100%;position:absolute;bottom:0;overflow-y:auto;box-shadow:0 0 1px #0000004d}.esri-oriented-imagery-viewer__image-overlays-layer-list,.esri-oriented-imagery-viewer__image-overlays-switch{padding:0 var(--calcite-spacing-md)}.esri-oriented-imagery-viewer__image-overlays-container{height:auto;display:flex}.esri-oriented-imagery-viewer__image-overlays-no-result{z-index:1;border:1px solid var(--calcite-color-border-2);align-items:center;width:98%;height:auto;margin:auto 1% 0;position:absolute;bottom:0;overflow-y:auto;box-shadow:0 0 1px #0000004d}.esri-oriented-imagery-viewer__image-overlays-no-result-layer-list,.esri-oriented-imagery-viewer__image-overlays-no-result-switch{padding:0 var(--calcite-spacing-md)}.esri-oriented-imagery-viewer__image-overlays-increased-height{z-index:1;border:1px solid var(--calcite-color-border-2);align-items:center;width:98%;height:200px;margin:auto 1% 0;position:absolute;bottom:0;overflow-y:auto;box-shadow:0 0 1px #0000004d}.esri-oriented-imagery-viewer__image-overlays-increased-height-layer-list,.esri-oriented-imagery-viewer__image-overlays-increased-height-switch{padding:0 var(--calcite-spacing-md)}.esri-oriented-imagery-viewer__measurement-results{width:auto;height:fit-content}.esri-oriented-imagery-viewer__measurements-table{margin-block-start:var(--calcite-spacing-sm)}.esri-oriented-imagery-viewer__measurements-bar{flex-wrap:nowrap;display:flex}.esri-oriented-imagery-viewer__measurements-button{display:flex}.esri-oriented-imagery-viewer__measurement-display{text-align:center;margin-block-end:var(--calcite-spacing-xxs)}.esri-oriented-imagery-viewer__viewer{cursor:url(data:text/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20height%3D%2226%22%20width%3D%2226%22%3E%0A%3Cpath%20stroke%3D%22%23000%22%20stroke-width%3D%221px%22%20fill%3D%22%23fff%22%20d%3D%22m15.3%2020.5s6.38-6.73%204.64-8.24-3.47%201.01-3.47%201.01%203.61-5.72%201.41-6.49c-2.2-0.769-3.33%204.36-3.33%204.36s0.873-5.76-1.06-5.76-1.58%205.39-1.58%205.39-0.574-4.59-2.18-4.12c-1.61%200.468-0.572%205.51-0.572%205.51s-1.58-4.89-2.93-3.79c-1.35%201.11%200.258%205.25%200.572%206.62%200.836%202.43%202.03%202.94%202.17%205.55%22%2F%3E%0A%3C%2Fsvg%3E%0A);flex-grow:1;width:100%;margin:0;display:flex}.esri-oriented-imagery-viewer__viewer--hidden{display:none}.esri-oriented-imagery-viewer__viewer-container{border-top:1px solid var(--calcite-color-border-3);background:var(--calcite-color-foreground-1);border-radius:0 0 3px 3px;flex:1 0 auto;order:1;align-self:stretch;width:100%;height:100%;display:flex}.esri-oriented-imagery-viewer__alert{inset-block-end:var(--calcite-spacing-md);inset-inline:var(--calcite-spacing-md);position:absolute}@keyframes rotateOrientedImageryNavigationTool{0%{transform:rotate(var(--oi-navigation-tool-rotation-from, 0deg))}to{transform:rotate(var(--oi-navigation-tool-rotation-to, 0deg))}}.esri-oriented-imagery-viewer__message-box{text-align:center;word-break:break-word;justify-content:center;align-items:center;width:100%;height:100%;padding:0 25%;font-size:var(--calcite-font-size-sm);display:flex;position:relative}.esri-oriented-imagery-viewer__navigation{transform:rotate(var(--oi-navigation-tool-rotation-to, 0deg))}.esri-oriented-imagery-viewer__navigation-animate{animation:.7s linear forwards rotateOrientedImageryNavigationTool}.esri-oriented-imagery-viewer__navigation-feature{fill:var(--calcite-color-brand);stroke:var(--calcite-color-foreground-1);stroke-width:1px}.esri-oriented-imagery-viewer__navigation-feature.selected{fill:var(--calcite-color-status-danger)}.esri-oriented-imagery-viewer__navigation-feature-path{pointer-events:none}.esri-oriented-imagery-viewer__navigation-feature-path-stop-offset-0{stop-color:var(--calcite-color-status-danger);stop-opacity:.4}.esri-oriented-imagery-viewer__navigation-feature-path-stop-offset-1{stop-color:var(--calcite-color-status-danger);stop-opacity:.2}.esri-oriented-imagery-viewer__navigation-pointer{fill:var(--calcite-color-foreground-1);fill-rule:evenodd;stroke:#0000;stroke-dasharray:none;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-width:0}.esri-oriented-imagery-viewer__navigation-pointer-north{fill:var(--calcite-color-status-danger)}.esri-oriented-imagery-viewer__navigation-wrapper{z-index:1;position:absolute;bottom:0;right:0;overflow:hidden}.esri-oriented-imagery-viewer__navigation-wrapper--zoomed{transform-origin:100% 100%;transform:scale(1.5)}.esri-oriented-imagery-viewer__navigation-wrapper-boundary{fill:var(--calcite-color-foreground-1);fill-opacity:.25;stroke:var(--calcite-color-border-2)}.esri-oriented-imagery-viewer__navigation-sector{fill:none}.esri-oriented-imagery-viewer__navigation-sector-separator{stroke:var(--calcite-color-border-2);stroke-width:1px}.esri-oriented-imagery-viewer__navigation-sector-cross{stroke:var(--calcite-color-status-danger);stroke-width:1px}.esri-oriented-imagery-viewer__navigation-sector-enabled{fill:var(--calcite-color-foreground-1);stroke:var(--calcite-color-border-2);stroke-width:1px}.esri-oriented-imagery-viewer__navigation-sector-disabled{fill:var(--calcite-color-foreground-3);stroke:var(--calcite-color-border-2);stroke-width:1px}.esri-oriented-imagery-viewer__navigation-sector-outer{fill:var(--calcite-color-foreground-1);fill-opacity:.4;stroke:none}.esri-oriented-imagery-viewer__pro .esri-oriented-imagery-viewer{width:100%;max-width:unset;height:100%;max-height:unset;position:static}.esri-oriented-imagery-viewer__sketch-tools{justify-content:center;align-items:center;width:100%;display:flex;position:absolute;bottom:0}.esri-oriented-imagery-viewer__navigation-ui{box-sizing:border-box;inset-block-end:var(--calcite-spacing-md);inset-inline:var(--calcite-spacing-md);transform-style:preserve-3d;z-index:var(--calcite-z-index-overlay);pointer-events:none;flex-direction:column;align-items:center;display:flex;position:absolute;overflow:hidden}.esri-oriented-imagery-viewer__navigation-ui__direction{--esri-oriented-imagery-viewer__navigation-ui-direction-color: wheat;--calcite-icon-color: var(--esri-oriented-imagery-viewer__navigation-ui-direction-color);cursor:not-allowed;width:160px;height:160px;position:absolute}.esri-oriented-imagery-viewer__navigation-ui__direction:not([disabled]){cursor:pointer;pointer-events:auto}.esri-oriented-imagery-viewer__navigation-ui__direction:not([disabled]):hover{--calcite-icon-color: var(--calcite-color-brand);background-color:rgba(var(--calcite-color-brand),var(--calcite-opacity-half));border-radius:50%}.esri-oriented-imagery-viewer__navigation-ui__direction-pad{box-sizing:border-box;transform:perspective(400px) rotateX(60deg) var(--rotate-transform);filter:drop-shadow(0 2px 1px #00000080);width:330px;height:330px}.esri-oriented-imagery-viewer__navigation-ui__direction--top{transform-style:preserve-3d;top:0;left:50%;transform:translate(-50%)}.esri-oriented-imagery-viewer__navigation-ui__direction--bottom{transform-style:preserve-3d;bottom:0;left:50%;transform:translate(-50%)}.esri-oriented-imagery-viewer__navigation-ui__direction--left{transform-style:preserve-3d;top:50%;left:0;transform:translateY(-50%)}.esri-oriented-imagery-viewer__navigation-ui__direction--right{transform-style:preserve-3d;top:50%;right:0;transform:translateY(-50%)}.esri-panoramic-viewer{z-index:1;position:relative;width:100%;height:100%}`, y = g(n), w = "map-components:arcgis-oriented-imagery-viewer";
|
|
12
|
+
const h = c`:host{--esri-oriented-imagery-viewer-min-width: var(--arcgis-oriented-imagery-viewer-min-width, 288px);--esri-oriented-imagery-viewer-min-height: var(--arcgis-oriented-imagery-viewer-min-height, 348px)}.esri-imagery-viewer{width:100%;height:100%}.esri-oriented-imagery-viewer{--esri-oriented-imagery-viewer-action-icon-size: 8px;--calcite-dialog-size-x: 210px;--calcite-dialog-min-size-y: 90px;--calcite-icon-size: var(--esri-oriented-imagery-viewer-action-icon-size);box-sizing:border-box;z-index:1;width:100%;min-width:var(--esri-oriented-imagery-viewer-min-width);height:100%;min-height:var(--esri-oriented-imagery-viewer-min-height);flex-direction:column;align-items:flex-start;display:flex;overflow:hidden}.esri-oriented-imagery-viewer:has(.esri-widget .esri-oriented-imagery-viewer__image-overlays-no-result){--esri-oriented-imagery-viewer-min-height: 420px}.esri-oriented-imagery-viewer__body{flex-direction:column;flex:1 0 auto;order:1;align-self:stretch;height:100%;display:flex}.esri-oriented-imagery-viewer__body-current-coverage{--calcite-icon-color: var(--calcite-color-status-danger)}.esri-oriented-imagery-viewer__body-additional-camera-locations{--calcite-icon-color: var(--calcite-color-brand)}.esri-oriented-imagery-viewer__body-additional-coverage{--calcite-icon-color: var(--calcite-color-status-info)}.esri-oriented-imagery-viewer__body-footprint{--calcite-icon-color: var(--calcite-color-status-success)}.esri-oriented-imagery-viewer__carousel{z-index:1;border:1px solid var(--calcite-color-border-2);align-items:center;width:98%;height:140px;margin:auto 1% 0;position:absolute;bottom:0;box-shadow:0 0 1px #0000004d}.esri-oriented-imagery-viewer__carousel-container{height:auto;display:inline-block;overflow:auto hidden}.esri-oriented-imagery-viewer__carousel header{--calcite-font-weight-medium: $font-weight--light;--calcite-font-size-0: $font-size--tiny}.esri-oriented-imagery-viewer__carousel-item{width:100px;height:70px}.esri-oriented-imagery-viewer__carousel-item-wrapper{box-sizing:border-box;justify-content:center;align-items:center;width:106px;height:78px;margin:auto 10px;display:flex;box-shadow:0 1px 2px #0000004d}.esri-oriented-imagery-viewer__carousel-item-wrapper--selected{box-sizing:border-box;border:2px solid var(--calcite-color-brand);justify-content:center;align-items:center;width:106px;height:78px;margin:auto 10px;display:flex;box-shadow:0 1px 2px #0000004d}.esri-oriented-imagery-viewer__carousel-content{display:flex}.esri-oriented-imagery-viewer__close{background:var(--calcite-color-foreground-1);flex-direction:row;flex-grow:0;order:7;justify-content:center;align-items:center;width:48px;height:59px;display:flex}.esri-oriented-imagery-viewer__image-enhancement-wrapper{z-index:1;border:1px solid var(--calcite-color-border-2);align-items:center;width:98%;height:140px;margin:auto 1% 0;position:absolute;bottom:0;box-shadow:0 0 1px #0000004d}.esri-oriented-imagery-viewer__image-enhancement-tools{display:flex}.esri-oriented-imagery-viewer__image-enhancement-tool-container{width:50%;margin-block:2px;padding-inline:.75rem}.esri-oriented-imagery-viewer__image-overlays{z-index:1;margin:auto;border:1px solid var(--calcite-color-border-2);align-items:center;width:100%;position:absolute;bottom:0;overflow-y:auto;box-shadow:0 0 1px #0000004d}.esri-oriented-imagery-viewer__image-overlays-layer-list,.esri-oriented-imagery-viewer__image-overlays-switch{padding:0 var(--calcite-spacing-md)}.esri-oriented-imagery-viewer__image-overlays-container{height:auto;display:flex}.esri-oriented-imagery-viewer__image-overlays-no-result{z-index:1;border:1px solid var(--calcite-color-border-2);align-items:center;width:98%;height:auto;margin:auto 1% 0;position:absolute;bottom:0;overflow-y:auto;box-shadow:0 0 1px #0000004d}.esri-oriented-imagery-viewer__image-overlays-no-result-layer-list,.esri-oriented-imagery-viewer__image-overlays-no-result-switch{padding:0 var(--calcite-spacing-md)}.esri-oriented-imagery-viewer__image-overlays-increased-height{z-index:1;border:1px solid var(--calcite-color-border-2);align-items:center;width:98%;height:200px;margin:auto 1% 0;position:absolute;bottom:0;overflow-y:auto;box-shadow:0 0 1px #0000004d}.esri-oriented-imagery-viewer__image-overlays-increased-height-layer-list,.esri-oriented-imagery-viewer__image-overlays-increased-height-switch{padding:0 var(--calcite-spacing-md)}.esri-oriented-imagery-viewer__measurement-results{width:auto;height:fit-content}.esri-oriented-imagery-viewer__measurements-table{margin-block-start:var(--calcite-spacing-sm)}.esri-oriented-imagery-viewer__measurements-bar{flex-wrap:nowrap;display:flex}.esri-oriented-imagery-viewer__measurements-button{display:flex}.esri-oriented-imagery-viewer__measurement-display{text-align:center;margin-block-end:var(--calcite-spacing-xxs)}.esri-oriented-imagery-viewer__viewer{cursor:url(data:text/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20height%3D%2226%22%20width%3D%2226%22%3E%0A%3Cpath%20stroke%3D%22%23000%22%20stroke-width%3D%221px%22%20fill%3D%22%23fff%22%20d%3D%22m15.3%2020.5s6.38-6.73%204.64-8.24-3.47%201.01-3.47%201.01%203.61-5.72%201.41-6.49c-2.2-0.769-3.33%204.36-3.33%204.36s0.873-5.76-1.06-5.76-1.58%205.39-1.58%205.39-0.574-4.59-2.18-4.12c-1.61%200.468-0.572%205.51-0.572%205.51s-1.58-4.89-2.93-3.79c-1.35%201.11%200.258%205.25%200.572%206.62%200.836%202.43%202.03%202.94%202.17%205.55%22%2F%3E%0A%3C%2Fsvg%3E%0A);flex-grow:1;width:100%;margin:0;display:flex}.esri-oriented-imagery-viewer__viewer--hidden{display:none}.esri-oriented-imagery-viewer__viewer-container{border-top:1px solid var(--calcite-color-border-3);background:var(--calcite-color-foreground-1);border-radius:0 0 3px 3px;flex:1 0 auto;order:1;align-self:stretch;width:100%;height:100%;display:flex}.esri-oriented-imagery-viewer__alert{inset-block-end:var(--calcite-spacing-md);inset-inline:var(--calcite-spacing-md);position:absolute}@keyframes rotateOrientedImageryNavigationTool{0%{transform:rotate(var(--oi-navigation-tool-rotation-from, 0deg))}to{transform:rotate(var(--oi-navigation-tool-rotation-to, 0deg))}}.esri-oriented-imagery-viewer__message-box{text-align:center;word-break:break-word;justify-content:center;align-items:center;width:100%;height:100%;padding:0 25%;font-size:var(--calcite-font-size-sm);display:flex;position:relative}.esri-oriented-imagery-viewer__navigation{transform:rotate(var(--oi-navigation-tool-rotation-to, 0deg))}.esri-oriented-imagery-viewer__navigation-animate{animation:.7s linear forwards rotateOrientedImageryNavigationTool}.esri-oriented-imagery-viewer__navigation-feature{fill:var(--calcite-color-brand);stroke:var(--calcite-color-foreground-1);stroke-width:1px}.esri-oriented-imagery-viewer__navigation-feature.selected{fill:var(--calcite-color-status-danger)}.esri-oriented-imagery-viewer__navigation-feature-path{pointer-events:none}.esri-oriented-imagery-viewer__navigation-feature-path-stop-offset-0{stop-color:var(--calcite-color-status-danger);stop-opacity:.4}.esri-oriented-imagery-viewer__navigation-feature-path-stop-offset-1{stop-color:var(--calcite-color-status-danger);stop-opacity:.2}.esri-oriented-imagery-viewer__navigation-pointer{fill:var(--calcite-color-foreground-1);fill-rule:evenodd;stroke:#0000;stroke-dasharray:none;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-width:0}.esri-oriented-imagery-viewer__navigation-pointer-north{fill:var(--calcite-color-status-danger)}.esri-oriented-imagery-viewer__navigation-wrapper{z-index:1;position:absolute;bottom:0;right:0;overflow:hidden}.esri-oriented-imagery-viewer__navigation-wrapper--zoomed{transform-origin:100% 100%;transform:scale(1.5)}.esri-oriented-imagery-viewer__navigation-wrapper-boundary{fill:var(--calcite-color-foreground-1);fill-opacity:.25;stroke:var(--calcite-color-border-2)}.esri-oriented-imagery-viewer__navigation-sector{fill:none}.esri-oriented-imagery-viewer__navigation-sector-separator{stroke:var(--calcite-color-border-2);stroke-width:1px}.esri-oriented-imagery-viewer__navigation-sector-cross{stroke:var(--calcite-color-status-danger);stroke-width:1px}.esri-oriented-imagery-viewer__navigation-sector-enabled{fill:var(--calcite-color-foreground-1);stroke:var(--calcite-color-border-2);stroke-width:1px}.esri-oriented-imagery-viewer__navigation-sector-disabled{fill:var(--calcite-color-foreground-3);stroke:var(--calcite-color-border-2);stroke-width:1px}.esri-oriented-imagery-viewer__navigation-sector-outer{fill:var(--calcite-color-foreground-1);fill-opacity:.4;stroke:none}.esri-oriented-imagery-viewer__pro .esri-oriented-imagery-viewer{width:100%;max-width:unset;height:100%;max-height:unset;position:static}.esri-oriented-imagery-viewer__sketch-tools{justify-content:center;align-items:center;width:100%;display:flex;position:absolute;bottom:0}.esri-oriented-imagery-viewer__navigation-ui{box-sizing:border-box;inset-block-end:var(--calcite-spacing-md);inset-inline:var(--calcite-spacing-md);transform-style:preserve-3d;z-index:var(--calcite-z-index-overlay);pointer-events:none;flex-direction:column;align-items:center;display:flex;position:absolute;overflow:hidden}.esri-oriented-imagery-viewer__navigation-ui__direction{--esri-oriented-imagery-viewer__navigation-ui-direction-color: wheat;--calcite-icon-color: var(--esri-oriented-imagery-viewer__navigation-ui-direction-color);cursor:not-allowed;width:160px;height:160px;position:absolute}.esri-oriented-imagery-viewer__navigation-ui__direction:not([disabled]){cursor:pointer;pointer-events:auto}.esri-oriented-imagery-viewer__navigation-ui__direction:not([disabled]):hover{--calcite-icon-color: var(--calcite-color-brand);background-color:rgba(var(--calcite-color-brand),var(--calcite-opacity-half));border-radius:50%}.esri-oriented-imagery-viewer__navigation-ui__direction-pad{box-sizing:border-box;transform:perspective(400px) rotateX(60deg) var(--rotate-transform);filter:drop-shadow(0 2px 1px #00000080);width:330px;height:330px}.esri-oriented-imagery-viewer__navigation-ui__direction--top{transform-style:preserve-3d;top:0;left:50%;transform:translate(-50%)}.esri-oriented-imagery-viewer__navigation-ui__direction--bottom{transform-style:preserve-3d;bottom:0;left:50%;transform:translate(-50%)}.esri-oriented-imagery-viewer__navigation-ui__direction--left{transform-style:preserve-3d;top:50%;left:0;transform:translateY(-50%)}.esri-oriented-imagery-viewer__navigation-ui__direction--right{transform-style:preserve-3d;top:50%;right:0;transform:translateY(-50%)}.esri-panoramic-viewer{z-index:1;position:relative;width:100%;height:100%}`, w = g(n), y = "map-components:arcgis-oriented-imagery-viewer";
|
|
13
13
|
class p extends s {
|
|
14
14
|
constructor() {
|
|
15
|
-
super(...arguments), this.widget =
|
|
16
|
-
e && (e.type === "oriented-imagery" ? this.layer = e : l("warn", this, `${
|
|
15
|
+
super(...arguments), this.widget = w(this), this._hasOrientedImageryLayerToAdd = !1, this.viewModel = this.widget.viewModel, this.view = this.widget.view, this.autoDestroyDisabled = !1, this.currentCoverageVisible = this.widget.currentCoverageVisible, this.dataCaptureEnabled = this.widget.dataCaptureEnabled, this.disabled = this.widget.disabled, this.galleryOpened = this.widget.galleryOpened, this.hideHeader = this.widget.visibleElements.header, this.hideMenu = this.widget.visibleElements.menu, this.icon = this.widget.icon, this.imageEnhancementToolActive = this.widget.imageEnhancementToolActive, this.imageGalleryEnabled = this.widget.imageGalleryEnabled, this.imageOverlaysOpened = this.widget.imageOverlaysOpened, this.isAdditionalCoverageVisible = this.widget.isAdditionalCoverageVisible, this.isAdditionalPointSourcesVisible = this.widget.isAdditionalPointSourcesVisible, this.label = this.widget.label, this.layer = this.widget.layer, this.mapLayerId = v(this, (e) => {
|
|
16
|
+
e && (e.type === "oriented-imagery" ? this.layer = e : l("warn", this, `${y} - layer with id ${this.mapLayerId} is not a valid Oriented Imagery Layer`));
|
|
17
17
|
}), this.mapImageConversionToolState = this.widget.mapImageConversionToolState, this.navigationToolActive = this.widget.navigationToolActive, this.preloadMedia = this.widget.preloadMedia, this.referencePoint = this.widget.referencePoint, this.arcgisPropertyChange = a()("imageGalleryEnabled", "layer"), this.arcgisReady = d();
|
|
18
18
|
}
|
|
19
19
|
static {
|
|
@@ -8,8 +8,8 @@ import type Collection from "@arcgis/core/core/Collection.js";
|
|
|
8
8
|
import type SceneView from "@arcgis/core/views/SceneView.js";
|
|
9
9
|
import type MapView from "@arcgis/core/views/MapView.js";
|
|
10
10
|
import type SubtypeSublayer from "@arcgis/core/layers/support/SubtypeSublayer.js";
|
|
11
|
-
import type TemplateItem from "@arcgis/core/widgets/FeatureTemplates/TemplateItem.js";
|
|
12
11
|
import type BatchAttributeFormViewModel from "@arcgis/core/widgets/BatchAttributeForm/BatchAttributeFormViewModel.js";
|
|
12
|
+
import type TemplateItem from "../arcgis-feature-templates/TemplateItem.js";
|
|
13
13
|
import type { EsriClipboard, ClipboardItem as EsriClipboardItem } from "@arcgis/core/applications/Components/clipboard.js";
|
|
14
14
|
import type { ApplySet, ApplySetLayerEditResult, ApplySetServiceEditResult } from "@arcgis/core/applications/Components/applySetUtils.js";
|
|
15
15
|
import type { ClipboardMove } from "./ClipboardMove.js";
|
|
@@ -43,7 +43,7 @@ function Ee(e, t, i, a, s, o) {
|
|
|
43
43
|
const g = o.objectIdField ?? "";
|
|
44
44
|
return e.forEach((m) => {
|
|
45
45
|
if (m.name !== g && !h.includes(m.name) && !p.includes(m.name) && !s.includes(m.name) && m.type !== "global-id" && (u === "" || u !== m.name)) {
|
|
46
|
-
const f =
|
|
46
|
+
const f = Oe(m, t);
|
|
47
47
|
f.match && f.targetField && (l[f.targetField?.name] = i[m.name]);
|
|
48
48
|
}
|
|
49
49
|
}), l;
|
|
@@ -68,7 +68,7 @@ function Te(e, t) {
|
|
|
68
68
|
return !1;
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
|
-
function
|
|
71
|
+
function Oe(e, t) {
|
|
72
72
|
const i = { match: !1, sourceField: null, targetField: null };
|
|
73
73
|
for (const a of t)
|
|
74
74
|
if (Te(e, a)) {
|
|
@@ -82,7 +82,7 @@ async function se(e, t, i, a) {
|
|
|
82
82
|
let s = !0;
|
|
83
83
|
const o = { hasAsyncArcadeExpressions: !1 }, l = e.items.filter((h) => h.type === "add");
|
|
84
84
|
for (const h of l) {
|
|
85
|
-
const p = h.graphic.clone(), u =
|
|
85
|
+
const p = h.graphic.clone(), u = Ge(
|
|
86
86
|
h.graphic,
|
|
87
87
|
h.layer
|
|
88
88
|
);
|
|
@@ -109,7 +109,7 @@ async function se(e, t, i, a) {
|
|
|
109
109
|
}
|
|
110
110
|
return s;
|
|
111
111
|
}
|
|
112
|
-
function
|
|
112
|
+
function Ge(e, t) {
|
|
113
113
|
if (t.type === "feature" || t.type === "subtype-sublayer")
|
|
114
114
|
return t;
|
|
115
115
|
const i = t.findSublayerForFeature(e);
|
|
@@ -416,7 +416,7 @@ A([
|
|
|
416
416
|
v = A([
|
|
417
417
|
C("components.paste.commands.PasteCommand")
|
|
418
418
|
], v);
|
|
419
|
-
var Be = Object.defineProperty, je = Object.getOwnPropertyDescriptor,
|
|
419
|
+
var Be = Object.defineProperty, je = Object.getOwnPropertyDescriptor, O = (e, t, i, a) => {
|
|
420
420
|
for (var s = a > 1 ? void 0 : a ? je(t, i) : t, o = e.length - 1, l; o >= 0; o--)
|
|
421
421
|
(l = e[o]) && (s = (a ? l(t, i, s) : l(s)) || s);
|
|
422
422
|
return a && s && Be(t, i, s), s;
|
|
@@ -533,25 +533,25 @@ let F = class extends v {
|
|
|
533
533
|
return e.pasteAppendTitle;
|
|
534
534
|
}
|
|
535
535
|
};
|
|
536
|
-
|
|
536
|
+
O([
|
|
537
537
|
r()
|
|
538
538
|
], F.prototype, "id", 1);
|
|
539
|
-
|
|
539
|
+
O([
|
|
540
540
|
r()
|
|
541
541
|
], F.prototype, "icon", 1);
|
|
542
|
-
|
|
542
|
+
O([
|
|
543
543
|
r()
|
|
544
544
|
], F.prototype, "immediate", 1);
|
|
545
|
-
|
|
545
|
+
O([
|
|
546
546
|
r()
|
|
547
547
|
], F.prototype, "mustShowOnCommandPage", 1);
|
|
548
|
-
|
|
548
|
+
O([
|
|
549
549
|
r()
|
|
550
550
|
], F.prototype, "commandEnabled", 1);
|
|
551
|
-
F =
|
|
551
|
+
F = O([
|
|
552
552
|
C("components.paste.commands.PasteAppendCommand")
|
|
553
553
|
], F);
|
|
554
|
-
var We = Object.defineProperty, Re = Object.getOwnPropertyDescriptor,
|
|
554
|
+
var We = Object.defineProperty, Re = Object.getOwnPropertyDescriptor, G = (e, t, i, a) => {
|
|
555
555
|
for (var s = a > 1 ? void 0 : a ? Re(t, i) : t, o = e.length - 1, l; o >= 0; o--)
|
|
556
556
|
(l = e[o]) && (s = (a ? l(t, i, s) : l(s)) || s);
|
|
557
557
|
return a && s && We(t, i, s), s;
|
|
@@ -669,22 +669,22 @@ let _ = class extends v {
|
|
|
669
669
|
return e.pasteSubtractTitle;
|
|
670
670
|
}
|
|
671
671
|
};
|
|
672
|
-
|
|
672
|
+
G([
|
|
673
673
|
r()
|
|
674
674
|
], _.prototype, "id", 1);
|
|
675
|
-
|
|
675
|
+
G([
|
|
676
676
|
r()
|
|
677
677
|
], _.prototype, "icon", 1);
|
|
678
|
-
|
|
678
|
+
G([
|
|
679
679
|
r()
|
|
680
680
|
], _.prototype, "immediate", 1);
|
|
681
|
-
|
|
681
|
+
G([
|
|
682
682
|
r()
|
|
683
683
|
], _.prototype, "mustShowOnCommandPage", 1);
|
|
684
|
-
|
|
684
|
+
G([
|
|
685
685
|
r()
|
|
686
686
|
], _.prototype, "commandEnabled", 1);
|
|
687
|
-
_ =
|
|
687
|
+
_ = G([
|
|
688
688
|
C("components.paste.commands.PasteSubtractCommand")
|
|
689
689
|
], _);
|
|
690
690
|
var Ne = Object.defineProperty, Ue = Object.getOwnPropertyDescriptor, k = (e, t, i, a) => {
|
|
@@ -1690,25 +1690,14 @@ class st extends he {
|
|
|
1690
1690
|
if (!this._templateGallery.value || this.viewModel.activeFlowPage !== "gallery-page")
|
|
1691
1691
|
return;
|
|
1692
1692
|
const t = this._templateGallery.value;
|
|
1693
|
-
if (t.state !== "ready")
|
|
1694
|
-
return;
|
|
1695
1693
|
if (this.viewModel.pasteTemplateIsValid || (this.viewModel.pasteTemplate = void 0), this.viewModel.pasteTemplate !== void 0) {
|
|
1696
|
-
t.
|
|
1694
|
+
t.selectedTemplateId !== this.viewModel.pasteTemplate.id && (t.selectedTemplateId = this.viewModel.pasteTemplate.id);
|
|
1697
1695
|
return;
|
|
1698
1696
|
}
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
i = a.items[0];
|
|
1704
|
-
break;
|
|
1705
|
-
}
|
|
1706
|
-
continue;
|
|
1707
|
-
}
|
|
1708
|
-
i = a;
|
|
1709
|
-
break;
|
|
1710
|
-
}
|
|
1711
|
-
i && t.select(i);
|
|
1697
|
+
if (t.effectiveTemplates.length === 0)
|
|
1698
|
+
return;
|
|
1699
|
+
const i = t.effectiveTemplates[0].templates[0];
|
|
1700
|
+
i && (this.viewModel.pasteTemplate = i, t.selectedTemplateId = i.id);
|
|
1712
1701
|
});
|
|
1713
1702
|
}
|
|
1714
1703
|
_renderFlowCommandStart(t) {
|
|
@@ -1775,11 +1764,11 @@ class st extends he {
|
|
|
1775
1764
|
this.viewModel.activeFlowPage = "merge-page";
|
|
1776
1765
|
}} title=${this._messages.seeMergeOptions ?? ue}>${this._messages.seeMergeOptions}</calcite-link>` : null}</calcite-notice></div>` : null}${this.viewModel.clipboardAndTemplateSupportAttributes && this.viewModel.pasteTemplate ? this._renderAttributeCheckbox(!this.viewModel.clipboardAndTemplateSupportAttributes) : null}${this.viewModel.clipboardAndTemplateSupportAttributes ? null : this._renderAttributeCheckbox(!1)}</div><calcite-list .hidden=${this.viewModel.activeCommand !== "paste-merge"} .label=${this._messages.pasteCommandChoices ?? ""} selection-mode=none selection-appearance=border><calcite-list-item .label=${this._messages.mergeOptionsTitle} .description=${this._messages.mergeOptionsDesc} .disabled=${this.viewModel.updating} @click=${() => {
|
|
1777
1766
|
this.viewModel.activeFlowPage = "merge-page";
|
|
1778
|
-
}}><calcite-icon slot=content-start icon=configure></calcite-icon><calcite-icon slot=content-end icon=chevron-right></calcite-icon></calcite-list-item></calcite-list><div>${this.viewModel.workingLayers.length > 0 ? d`<arcgis-feature-templates
|
|
1767
|
+
}}><calcite-icon slot=content-start icon=configure></calcite-icon><calcite-icon slot=content-end icon=chevron-right></calcite-icon></calcite-list-item></calcite-list><div>${this.viewModel.workingLayers.length > 0 ? d`<arcgis-feature-templates .applicationDisabledFunction=${(i) => !!(i.template && ie(i.template) && i.template.type !== "feature")} class="paste-feature-templates" .layers=${this.viewModel.workingLayers} @arcgisTemplatesChanged=${() => {
|
|
1779
1768
|
this._checkAndUpdateInitialPasteTemplate();
|
|
1780
|
-
}} @
|
|
1781
|
-
this.viewModel.pasteTemplate = i.detail.
|
|
1782
|
-
}} .view=${this.viewModel.view} .referenceElement=${this.referenceElement} ${D(this._templateGallery)}></arcgis-feature-templates
|
|
1769
|
+
}} @arcgisSelectTemplate=${(i) => {
|
|
1770
|
+
this.viewModel.pasteTemplate = i.detail.template;
|
|
1771
|
+
}} .view=${this.viewModel.view} .referenceElement=${this.referenceElement} ${D(this._templateGallery)}></arcgis-feature-templates>` : d`<calcite-notice open icon=exclamation-point kind=warning><div slot=message>${b(this._messages.noMatchingEditableLayers ?? "", { num: this.maximumFeatureCount })}</div></calcite-notice>`}</div></div></calcite-panel>${this._renderApplying()}</calcite-flow-item>`) : w("paste-gallery", d`<calcite-flow-item .selected=${t} .heading=${this._messages.componentLabel} @calciteFlowItemBack=${(i) => {
|
|
1783
1772
|
i.preventDefault(), this.viewModel.hasPasteCommandsPage && (this.viewModel.activeFlowPage = "commands-page");
|
|
1784
1773
|
}}>${this._renderFlowCommandStart(!this.viewModel.hasPasteCommandsPage)}</calcite-flow-item>`);
|
|
1785
1774
|
}
|
|
@@ -10,7 +10,7 @@ import "@esri/calcite-components/components/calcite-link";
|
|
|
10
10
|
import "@esri/calcite-components/components/calcite-list";
|
|
11
11
|
import "@esri/calcite-components/components/calcite-list-item";
|
|
12
12
|
import "@esri/calcite-components/components/calcite-icon";
|
|
13
|
-
import "../arcgis-feature-templates
|
|
13
|
+
import "../arcgis-feature-templates/index.js";
|
|
14
14
|
import "../arcgis-feature-title/index.js";
|
|
15
15
|
import "../arcgis-feature-image/index.js";
|
|
16
16
|
import "@esri/calcite-components/components/calcite-chip";
|
|
@@ -299,6 +299,8 @@ export abstract class ArcgisPopup extends LitElement {
|
|
|
299
299
|
* ```
|
|
300
300
|
*/
|
|
301
301
|
accessor features: Array<Graphic>;
|
|
302
|
+
/** @default false */
|
|
303
|
+
accessor focusTrapDisabled: boolean;
|
|
302
304
|
/**
|
|
303
305
|
* 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.
|
|
304
306
|
*
|
|
@@ -3,8 +3,8 @@ import { c as A } from "../../chunks/runtime.js";
|
|
|
3
3
|
import { css as E, html as w } from "lit";
|
|
4
4
|
import P from "@arcgis/core/popup/Features.js";
|
|
5
5
|
import { u as F } from "../../chunks/useT9n.js";
|
|
6
|
-
import { useDirection as O, usePropertyChange as
|
|
7
|
-
import { m as
|
|
6
|
+
import { useDirection as O, usePropertyChange as $ } from "@arcgis/lumina/controllers";
|
|
7
|
+
import { m as N } from "../../chunks/useViewModel.js";
|
|
8
8
|
import { LitElement as L, createEvent as _, safeStyleMap as S, safeClassMap as y } from "@arcgis/lumina";
|
|
9
9
|
import { stripHTML as T } from "@arcgis/core/applications/Components/stringUtils.js";
|
|
10
10
|
import { classes as x } from "@arcgis/toolkit/dom";
|
|
@@ -17,7 +17,7 @@ const B = E`:host{display:contents;--arcgis-internal-popup-pointer-size: 12px;--
|
|
|
17
17
|
function f(b) {
|
|
18
18
|
return b && Number.parseInt(b.replaceAll(/[^-\d.]/gu, ""), 10) || 0;
|
|
19
19
|
}
|
|
20
|
-
const I =
|
|
20
|
+
const I = N(P), C = {
|
|
21
21
|
buttonEnabled: !0,
|
|
22
22
|
position: "auto",
|
|
23
23
|
breakpoint: {
|
|
@@ -28,10 +28,10 @@ class j extends L {
|
|
|
28
28
|
constructor() {
|
|
29
29
|
super(...arguments), this._direction = O(), this._featuresComponent = g(), this._dockAction = new V({ id: "popup-dock-action" }), this._mainContainerNode = g(), this._pointerNode = g(), this.messages = F(), this.viewModel = I(this), this._containerNode = g(), this._popupResizeObserver = new ResizeObserver(() => this._positionContainer()), this._positionContainer = () => {
|
|
30
30
|
this.positionStyle = this._calculatePositionStyle();
|
|
31
|
-
}, this.screenLocation = H(this), this.actions = this.viewModel.actions, this.active = this.viewModel.active, this.alignment = "auto", this.autoCloseEnabled = !1, this.autoDestroyDisabled = !1, this.collapsed = !1, this.content = this.viewModel.content, this.defaultPopupTemplateEnabled = this.viewModel.defaultPopupTemplateEnabled, this.dockEnabled = !1, this.effectiveHeading = this.viewModel.effectiveHeading, this.featureCount = this.viewModel.featureCount, this.featureMenuOpen = !1, this.features = this.viewModel.features, this.goToOverride = this.viewModel.goToOverride, this.heading = this.viewModel.heading, this.headingLevel = 2, this.hideActionBar = !1, this.hideCloseButton = !1, this.hideCollapseButton = !1, this.hideFeatureMenuHeading = !1, this.hideFeatureNavigation = !1, this.hideFeatureListLayerTitle = !1, this.hideHeading = !1, this.hideSpinner = !1, this.highlightDisabled = this.viewModel.highlightEnabled, this.includeDefaultActionsDisabled = this.viewModel.includeDefaultActions, this.initialDisplayMode = this.viewModel.initialDisplayMode, this.location = this.viewModel.location, this.open = this.viewModel.open, this.promises = this.viewModel.promises, this.selectedFeature = this.viewModel.selectedFeature, this.selectedFeatureIndex = this.viewModel.selectedFeatureIndex, this.state = this.viewModel.state, this.topLayerDisabled = !1, this.updateLocationEnabled = this.viewModel.updateLocationEnabled, this.view = this.viewModel.view, this.arcgisPropertyChange =
|
|
31
|
+
}, this.screenLocation = H(this), this.actions = this.viewModel.actions, this.active = this.viewModel.active, this.alignment = "auto", this.autoCloseEnabled = !1, this.autoDestroyDisabled = !1, this.collapsed = !1, this.content = this.viewModel.content, this.defaultPopupTemplateEnabled = this.viewModel.defaultPopupTemplateEnabled, this.dockEnabled = !1, this.effectiveHeading = this.viewModel.effectiveHeading, this.featureCount = this.viewModel.featureCount, this.featureMenuOpen = !1, this.features = this.viewModel.features, this.focusTrapDisabled = !1, this.goToOverride = this.viewModel.goToOverride, this.heading = this.viewModel.heading, this.headingLevel = 2, this.hideActionBar = !1, this.hideCloseButton = !1, this.hideCollapseButton = !1, this.hideFeatureMenuHeading = !1, this.hideFeatureNavigation = !1, this.hideFeatureListLayerTitle = !1, this.hideHeading = !1, this.hideSpinner = !1, this.highlightDisabled = this.viewModel.highlightEnabled, this.includeDefaultActionsDisabled = this.viewModel.includeDefaultActions, this.initialDisplayMode = this.viewModel.initialDisplayMode, this.location = this.viewModel.location, this.open = this.viewModel.open, this.promises = this.viewModel.promises, this.selectedFeature = this.viewModel.selectedFeature, this.selectedFeatureIndex = this.viewModel.selectedFeatureIndex, this.state = this.viewModel.state, this.topLayerDisabled = !1, this.updateLocationEnabled = this.viewModel.updateLocationEnabled, this.view = this.viewModel.view, this.arcgisPropertyChange = $()("active", "collapsed", "currentAlignment", "dockEnabled", "effectiveHeading", "featureCount", "featureMenuOpen", "features", "promises", "selectedDrillInFeature", "selectedFeature", "selectedFeatureComponent", "selectedFeatureIndex", "state", "open"), this.arcgisReady = _(), this.arcgisClose = _(), this.arcgisTriggerAction = _();
|
|
32
32
|
}
|
|
33
33
|
static {
|
|
34
|
-
this.properties = { screenLocation: 16, positionStyle: 16, _featureNavigationTop: 16, actions: 0, active: 0, alignment: 1, autoCloseEnabled: 5, autoDestroyDisabled: 5, collapsed: 5, content: 1, currentAlignment: 32, currentDockPosition: 32, defaultPopupTemplateEnabled: 5, dockEnabled: 5, dockOptions: 0, effectiveHeading: 32, featureCount: 0, featureMenuOpen: 5, featureMenuTitle: 1, features: 0, goToOverride: 0, heading: 1, headingLevel: 9, hideActionBar: 5, hideCloseButton: 5, hideCollapseButton: 5, hideFeatureMenuHeading: 5, hideFeatureNavigation: 5, hideFeatureListLayerTitle: 5, hideHeading: 5, hideSpinner: 5, highlightDisabled: 5, includeDefaultActionsDisabled: 5, initialDisplayMode: 1, label: 1, location: 0, messageOverrides: 0, open: 5, promises: 0, referenceElement: 1, selectedDrillInFeature: 32, selectedFeature: 0, selectedFeatureComponent: 32, selectedFeatureIndex: 9, state: 32, topLayerDisabled: 5, updateLocationEnabled: 5, view: 0 };
|
|
34
|
+
this.properties = { screenLocation: 16, positionStyle: 16, _featureNavigationTop: 16, actions: 0, active: 0, alignment: 1, autoCloseEnabled: 5, autoDestroyDisabled: 5, collapsed: 5, content: 1, currentAlignment: 32, currentDockPosition: 32, defaultPopupTemplateEnabled: 5, dockEnabled: 5, dockOptions: 0, effectiveHeading: 32, featureCount: 0, featureMenuOpen: 5, featureMenuTitle: 1, features: 0, focusTrapDisabled: 5, goToOverride: 0, heading: 1, headingLevel: 9, hideActionBar: 5, hideCloseButton: 5, hideCollapseButton: 5, hideFeatureMenuHeading: 5, hideFeatureNavigation: 5, hideFeatureListLayerTitle: 5, hideHeading: 5, hideSpinner: 5, highlightDisabled: 5, includeDefaultActionsDisabled: 5, initialDisplayMode: 1, label: 1, location: 0, messageOverrides: 0, open: 5, promises: 0, referenceElement: 1, selectedDrillInFeature: 32, selectedFeature: 0, selectedFeatureComponent: 32, selectedFeatureIndex: 9, state: 32, topLayerDisabled: 5, updateLocationEnabled: 5, view: 0 };
|
|
35
35
|
}
|
|
36
36
|
static {
|
|
37
37
|
this.styles = B;
|
|
@@ -163,7 +163,7 @@ class j extends L {
|
|
|
163
163
|
screenLocation: n,
|
|
164
164
|
side: "right",
|
|
165
165
|
view: s
|
|
166
|
-
}),
|
|
166
|
+
}), D = this._isOutsideView({
|
|
167
167
|
popupHeight: u,
|
|
168
168
|
popupWidth: h,
|
|
169
169
|
screenLocation: n,
|
|
@@ -175,14 +175,14 @@ class j extends L {
|
|
|
175
175
|
screenLocation: n,
|
|
176
176
|
side: "top",
|
|
177
177
|
view: s
|
|
178
|
-
}),
|
|
178
|
+
}), M = this._isOutsideView({
|
|
179
179
|
popupHeight: u,
|
|
180
180
|
popupWidth: h,
|
|
181
181
|
screenLocation: n,
|
|
182
182
|
side: "bottom",
|
|
183
183
|
view: s
|
|
184
184
|
});
|
|
185
|
-
return
|
|
185
|
+
return D ? v ? "bottom-right" : "top-right" : z ? v ? "bottom-left" : "top-left" : v ? M ? "top-center" : "bottom-center" : "top-center";
|
|
186
186
|
}
|
|
187
187
|
_callCurrentAlignment(t) {
|
|
188
188
|
return typeof t == "function" ? t.call(this) : t;
|
|
@@ -352,7 +352,7 @@ class j extends L {
|
|
|
352
352
|
const t = {
|
|
353
353
|
shadow: this.dockEnabled
|
|
354
354
|
};
|
|
355
|
-
return w`<div class=${y(x("main-container", t))} ${m(this._mainContainerNode)}><arcgis-features-next .collapsed=${this.collapsed} .autoDestroyDisabled=${this.autoDestroyDisabled} .featureNavigationTop=${this._featureNavigationTop} .headingLevel=${this.headingLevel} .hideActionBar=${this.hideActionBar} .hideCloseButton=${this.hideCloseButton} .hideFeatureListLayerTitle=${this.hideFeatureListLayerTitle} .hideFeatureMenuHeading=${this.hideFeatureMenuHeading} .hideFeatureNavigation=${this.hideFeatureNavigation} .hideHeading=${this.hideHeading} .hideSpinner=${this.hideSpinner} @arcgisPropertyChange=${this._handleArcgisPropertyChange} @arcgisTriggerAction=${this._handleArcgisTriggerAction} @arcgisClose=${this._handleClose} .messageOverrides=${{ collapse: this.messages.collapse, expand: this.messages.expand }} .referenceElement=${this.referenceElement} .responsiveActionsEnabled=${!0} .showCollapseButton=${!this.hideCollapseButton} .viewModel=${this.viewModel} ${m(this._featuresComponent)}><slot name=actions-start slot=actions-start></slot><slot name=actions-end slot=actions-end></slot></arcgis-features-next></div>`;
|
|
355
|
+
return w`<div class=${y(x("main-container", t))} ${m(this._mainContainerNode)}><arcgis-features-next .collapsed=${this.collapsed} .autoDestroyDisabled=${this.autoDestroyDisabled} .featureNavigationTop=${this._featureNavigationTop} .focusTrapEnabled=${!this.focusTrapDisabled} .headingLevel=${this.headingLevel} .hideActionBar=${this.hideActionBar} .hideCloseButton=${this.hideCloseButton} .hideFeatureListLayerTitle=${this.hideFeatureListLayerTitle} .hideFeatureMenuHeading=${this.hideFeatureMenuHeading} .hideFeatureNavigation=${this.hideFeatureNavigation} .hideHeading=${this.hideHeading} .hideSpinner=${this.hideSpinner} @arcgisPropertyChange=${this._handleArcgisPropertyChange} @arcgisTriggerAction=${this._handleArcgisTriggerAction} @arcgisClose=${this._handleClose} .messageOverrides=${{ collapse: this.messages.collapse, expand: this.messages.expand }} .referenceElement=${this.referenceElement} .responsiveActionsEnabled=${!0} .showCollapseButton=${!this.hideCollapseButton} .viewModel=${this.viewModel} ${m(this._featuresComponent)}><slot name=actions-start slot=actions-start></slot><slot name=actions-end slot=actions-end></slot></arcgis-features-next></div>`;
|
|
356
356
|
}
|
|
357
357
|
}
|
|
358
358
|
A("arcgis-popup", j);
|
|
@@ -12,13 +12,13 @@ import type GamepadSettings from "@arcgis/core/views/input/gamepad/GamepadSettin
|
|
|
12
12
|
import type FocusAreas from "@arcgis/core/effects/FocusAreas.js";
|
|
13
13
|
import type Basemap from "@arcgis/core/Basemap.js";
|
|
14
14
|
import type Map from "@arcgis/core/Map.js";
|
|
15
|
+
import type Graphic from "@arcgis/core/Graphic.js";
|
|
15
16
|
import type Collection from "@arcgis/core/core/Collection.js";
|
|
16
17
|
import type BasemapView from "@arcgis/core/views/BasemapView.js";
|
|
17
18
|
import type Extent from "@arcgis/core/geometry/Extent.js";
|
|
18
19
|
import type Constraints from "@arcgis/core/views/3d/constraints/Constraints.js";
|
|
19
20
|
import type Environment from "@arcgis/core/views/3d/environment/Environment.js";
|
|
20
21
|
import type Error from "@arcgis/core/core/Error.js";
|
|
21
|
-
import type Graphic from "@arcgis/core/Graphic.js";
|
|
22
22
|
import type GroundView from "@arcgis/core/views/GroundView.js";
|
|
23
23
|
import type HighlightOptions from "@arcgis/core/views/support/HighlightOptions.js";
|
|
24
24
|
import type Magnifier from "@arcgis/core/views/Magnifier.js";
|
|
@@ -37,7 +37,7 @@ import type { LayerView3DFor } from "@arcgis/core/views/3d/types.js";
|
|
|
37
37
|
import type { DoubleTapDragEvent, VerticalTwoFingerDragEvent, PointerUpEvent, PointerMoveEvent, PointerLeaveEvent, PointerEnterEvent, PointerDownEvent, ViewMouseWheelEvent, LayerViewDestroyEvent, LayerViewCreateErrorEvent, LayerViewCreateEvent, KeyUpEvent, KeyDownEvent, ImmediateDoubleClickEvent, ImmediateClickEvent, HoldEvent, DragEvent, DoubleClickEvent, ClickEvent } from "@arcgis/core/views/input/types.js";
|
|
38
38
|
import type { AnalysisViewDestroyEvent, AnalysisViewCreateErrorEvent, AnalysisViewCreateEvent, HitTestOptions3D, Screenshot, UserSettings, SceneViewHitTestResult, GoToOptions3D, GoToTarget3D } from "@arcgis/core/views/types.js";
|
|
39
39
|
import type { ScreenPoint, ScreenRect } from "@arcgis/core/core/types.js";
|
|
40
|
-
import type { ViewPopupOpenOptions } from "@arcgis/core/views/PopupView.js";
|
|
40
|
+
import type { FetchPopupFeaturesOptions, ViewPopupOpenOptions } from "@arcgis/core/views/PopupView.js";
|
|
41
41
|
import type { ReadonlyCollection } from "@arcgis/core/core/Collection.js";
|
|
42
42
|
import type { ViewPadding } from "@arcgis/core/views/ui/types.js";
|
|
43
43
|
import type { SlotGroupRefs } from "../../support/slots.js";
|
|
@@ -894,7 +894,14 @@ export abstract class ArcgisScene extends LitElement {
|
|
|
894
894
|
* and removes components or other UI DOM elements added to it.
|
|
895
895
|
*/
|
|
896
896
|
destroy(): Promise<void>;
|
|
897
|
-
|
|
897
|
+
/**
|
|
898
|
+
* Use this method to query for features at a given screen location. These features come from origins (layers and sublayers) configured with a [PopupTemplate](https://developers.arcgis.com/javascript/latest/references/core/PopupTemplate/) and have its [FeatureLayer.popupEnabled](https://developers.arcgis.com/javascript/latest/references/core/layers/FeatureLayer/#popupEnabled) set. One example could be a custom side panel that displays feature-specific information based on an end user's click location. This method allows a developer to control how the input location is handled, and then subsequently, what to do with the results.
|
|
899
|
+
*
|
|
900
|
+
* @param hitTarget
|
|
901
|
+
* @param options
|
|
902
|
+
* @since 5.1
|
|
903
|
+
*/
|
|
904
|
+
fetchPopupFeatures(hitTarget: ScreenPoint | ScreenRect, options?: FetchPopupFeaturesOptions): Promise<AsyncGenerator<Graphic>>;
|
|
898
905
|
/**
|
|
899
906
|
* Sets the view to a given target.
|
|
900
907
|
*
|
|
@@ -1,23 +1,23 @@
|
|
|
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 u from "@arcgis/core/views/SceneView.js";
|
|
8
8
|
import g from "@arcgis/core/WebScene.js";
|
|
9
|
-
import { LitElement as d, createEvent as r, safeClassMap as
|
|
9
|
+
import { LitElement as d, createEvent as r, safeClassMap as n } from "@arcgis/lumina";
|
|
10
10
|
import { reEmitEvent as t, reCreateAccessor as y, makeAccessorController as w } from "@arcgis/lumina/controllers/accessor";
|
|
11
|
-
import { createRef as
|
|
12
|
-
import { U as f,
|
|
13
|
-
import { s as
|
|
11
|
+
import { createRef as o, ref as h } from "lit/directives/ref.js";
|
|
12
|
+
import { U as f, u as b, a as V } from "../../chunks/useArcgisViewReadyError.js";
|
|
13
|
+
import { s as C } from "../../chunks/esri-main.js";
|
|
14
14
|
import { s as E } from "../../chunks/slots.js";
|
|
15
15
|
import { C as c } from "../../chunks/resources.js";
|
|
16
|
-
import { b as
|
|
17
|
-
const
|
|
18
|
-
class
|
|
16
|
+
import { b as _, c as P, p as A, i as R } from "../../chunks/component-utils.js";
|
|
17
|
+
const D = w(g, {}), I = w(u, {});
|
|
18
|
+
class M extends d {
|
|
19
19
|
constructor() {
|
|
20
|
-
super(), this._containerRef =
|
|
20
|
+
super(), this._containerRef = o(), this._mapRef = o(), this._uiController = new f(this), this._cameraProperties = {}, this.arcgisLoadError = b(this), this.arcgisViewReadyError = V(this), this._map = D(this), this.view = I(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.selectionManager = this.view.selectionManager, this.slotGroupRefs = this._uiController.slotGroupRefs, 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 = {
|
|
21
21
|
components: []
|
|
22
22
|
};
|
|
23
23
|
}
|
|
@@ -25,7 +25,7 @@ class k extends d {
|
|
|
25
25
|
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, selectionManager: 32, scale: 9, slotGroupRefs: 32, spatialReference: 0, stationary: 32, suspended: 39, theme: 0, timeExtent: 0, updating: 36, viewingMode: 1, viewpoint: 0, visibleArea: 32, zoom: 9, loadErrorSources: 0 };
|
|
26
26
|
}
|
|
27
27
|
static {
|
|
28
|
-
this.styles = [
|
|
28
|
+
this.styles = [C, E];
|
|
29
29
|
}
|
|
30
30
|
get aria() {
|
|
31
31
|
return this.view?.aria ?? null;
|
|
@@ -40,7 +40,7 @@ class k extends d {
|
|
|
40
40
|
return this.view.camera;
|
|
41
41
|
}
|
|
42
42
|
set camera(i) {
|
|
43
|
-
|
|
43
|
+
_(this.camera, i) || (this.view.camera = i);
|
|
44
44
|
}
|
|
45
45
|
get cameraFov() {
|
|
46
46
|
const { view: i } = this;
|
|
@@ -68,9 +68,9 @@ class k extends d {
|
|
|
68
68
|
return e ? new v(e) : void 0;
|
|
69
69
|
}
|
|
70
70
|
set cameraPosition(i) {
|
|
71
|
-
const e =
|
|
72
|
-
e && this._mutateCamera((
|
|
73
|
-
|
|
71
|
+
const e = P(this.view.camera?.position, i);
|
|
72
|
+
e && this._mutateCamera((m) => {
|
|
73
|
+
m.position = e;
|
|
74
74
|
});
|
|
75
75
|
}
|
|
76
76
|
get cameraTilt() {
|
|
@@ -86,7 +86,7 @@ class k extends d {
|
|
|
86
86
|
return this.view.center;
|
|
87
87
|
}
|
|
88
88
|
set center(i) {
|
|
89
|
-
const e =
|
|
89
|
+
const e = A(i, this.view);
|
|
90
90
|
e && (this.view.center = e);
|
|
91
91
|
}
|
|
92
92
|
get extent() {
|
|
@@ -147,7 +147,7 @@ class k extends d {
|
|
|
147
147
|
return this.view.viewpoint;
|
|
148
148
|
}
|
|
149
149
|
set viewpoint(i) {
|
|
150
|
-
|
|
150
|
+
R(this.viewpoint, i) && (this.view.viewpoint = i);
|
|
151
151
|
}
|
|
152
152
|
get zoom() {
|
|
153
153
|
return this.view.zoom;
|
|
@@ -158,8 +158,8 @@ class k extends d {
|
|
|
158
158
|
async closePopup() {
|
|
159
159
|
this._uiController.closePopup();
|
|
160
160
|
}
|
|
161
|
-
async
|
|
162
|
-
this.
|
|
161
|
+
async fetchPopupFeatures(i, e) {
|
|
162
|
+
return this.view.fetchPopupFeatures(i, e);
|
|
163
163
|
}
|
|
164
164
|
async destroy() {
|
|
165
165
|
await this.manager.destroy();
|
|
@@ -220,17 +220,17 @@ class k extends d {
|
|
|
220
220
|
i(this._cameraProperties);
|
|
221
221
|
return;
|
|
222
222
|
}
|
|
223
|
-
const e = this.view.camera?.clone() ?? new
|
|
223
|
+
const e = this.view.camera?.clone() ?? new l();
|
|
224
224
|
i(e), this.camera = e;
|
|
225
225
|
}
|
|
226
226
|
renderMain() {
|
|
227
|
-
return a`<div class=${
|
|
227
|
+
return a`<div class=${n(c.base)} ${h(this._mapRef)}></div>`;
|
|
228
228
|
}
|
|
229
229
|
render() {
|
|
230
|
-
return a`${this.renderMain()}<section class=${
|
|
230
|
+
return a`${this.renderMain()}<section class=${n(c.containerUI)} ${h(this._containerRef)}>${this._uiController.render()}</section>`;
|
|
231
231
|
}
|
|
232
232
|
}
|
|
233
|
-
|
|
233
|
+
p("arcgis-scene", M);
|
|
234
234
|
export {
|
|
235
|
-
|
|
235
|
+
M as ArcgisScene
|
|
236
236
|
};
|