@arcgis/map-components 5.2.0-next.1 → 5.2.0-next.3
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/24UHFJSD.js +2 -0
- package/dist/cdn/2MJTTQRU.js +2 -0
- package/dist/cdn/{CXNLXDLW.js → 2THVOG4Y.js} +1 -1
- package/dist/cdn/6N233F4I.js +2 -0
- package/dist/cdn/{BDDXZ4ML.js → A7P3DUN2.js} +1 -1
- package/dist/cdn/AEV7DYPK.js +2 -0
- package/dist/cdn/{CZ3FVANK.js → AOC4VUP6.js} +1 -1
- package/dist/cdn/{ZNYLFGEB.js → CUMFJ3AY.js} +1 -1
- package/dist/cdn/{D5CSONNZ.js → FT2LXOKH.js} +1 -1
- package/dist/cdn/FZNGDLO6.js +2 -0
- package/dist/cdn/{ICMAOGTU.js → GRF2FJN5.js} +1 -1
- package/dist/cdn/{IAPVYBIO.js → JBRTOHPW.js} +1 -1
- package/dist/cdn/JBWWGDI5.js +2 -0
- package/dist/cdn/JQVWY2TG.js +2 -0
- package/dist/cdn/L5DJYP26.js +2 -0
- package/dist/cdn/P2YOSZ4V.js +2 -0
- package/dist/cdn/{MJYIEJPU.js → P3TXSVMD.js} +2 -2
- package/dist/cdn/PYZZBY6S.js +2 -0
- package/dist/cdn/QM2RBDFO.js +4 -0
- package/dist/cdn/QY5F7WAO.js +2 -0
- package/dist/cdn/RL5PFJGE.js +2 -0
- package/dist/cdn/S37FED24.js +2 -0
- package/dist/cdn/THRRGHTM.js +2 -0
- package/dist/cdn/{UHHTJK2I.js → WA7JHFV4.js} +1 -1
- package/dist/cdn/{RMW557ZN.js → XKPUIYHL.js} +1 -1
- package/dist/cdn/{GSMQDS7C.js → Y27ZQGV5.js} +1 -1
- package/dist/cdn/{Y4LAL4D3.js → Y3B5PQ5E.js} +1 -1
- package/dist/cdn/{SITKA5S5.js → YABPKPDP.js} +1 -1
- package/dist/cdn/ZF7CLHYV.js +2 -0
- package/dist/cdn/index.js +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 +2 -2
- 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-link-chart/customElement.d.ts +10 -3
- 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-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-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/loader.js +8 -8
- package/dist/types/lumina.d.ts +4 -4
- package/dist/types/preact.d.ts +4 -4
- package/dist/types/react.d.ts +4 -4
- package/dist/types/stencil.d.ts +4 -4
- package/package.json +4 -4
- package/dist/cdn/4XR7RDUC.js +0 -2
- package/dist/cdn/65P3TECS.js +0 -2
- package/dist/cdn/6NEHIRSM.js +0 -2
- package/dist/cdn/7HVDHWKE.js +0 -2
- package/dist/cdn/7LPXFLXF.js +0 -2
- package/dist/cdn/CPQQEWKH.js +0 -2
- package/dist/cdn/CWWTUOR7.js +0 -2
- package/dist/cdn/FNOJC6RY.js +0 -2
- package/dist/cdn/J6G5UUNA.js +0 -2
- package/dist/cdn/JH45FDUO.js +0 -2
- package/dist/cdn/KRJOFH5A.js +0 -4
- package/dist/cdn/NEXYYXWU.js +0 -2
- package/dist/cdn/QZPKGHKG.js +0 -2
- package/dist/cdn/TFLKRVDZ.js +0 -2
- package/dist/cdn/X4COPBRD.js +0 -2
- package/dist/cdn/ZCULSTYU.js +0 -2
- /package/dist/cdn/{EACNQTOQ.js → 24HADOKV.js} +0 -0
- /package/dist/cdn/{VF6C5V2D.js → 27HHZNMM.js} +0 -0
- /package/dist/cdn/{NBH6PROL.js → 2G4VQVBD.js} +0 -0
- /package/dist/cdn/{IJMXE77N.js → 2LKEXUGD.js} +0 -0
- /package/dist/cdn/{M63QHTM6.js → 3JU2AHMP.js} +0 -0
- /package/dist/cdn/{DXLEA2EP.js → 3YVA4NJL.js} +0 -0
- /package/dist/cdn/{6R766RG6.js → 6FT2R5PB.js} +0 -0
- /package/dist/cdn/{RKUTQD6Q.js → 744JVRBH.js} +0 -0
- /package/dist/cdn/{73S5NFVN.js → A4S3GECZ.js} +0 -0
- /package/dist/cdn/{W2JV27PM.js → ADD3R54T.js} +0 -0
- /package/dist/cdn/{HGQ44436.js → AK2M26FE.js} +0 -0
- /package/dist/cdn/{PE2SVZDC.js → APMRTXPD.js} +0 -0
- /package/dist/cdn/{R2EB7EHT.js → AT6DOX43.js} +0 -0
- /package/dist/cdn/{ECVDZYOP.js → BRANLHXP.js} +0 -0
- /package/dist/cdn/{RVUYYH7M.js → CDAV4NEB.js} +0 -0
- /package/dist/cdn/{UPU33OD4.js → CTMF7NFP.js} +0 -0
- /package/dist/cdn/{NT3F6SCH.js → FUTB3TZA.js} +0 -0
- /package/dist/cdn/{527J47AJ.js → FYDZH6BL.js} +0 -0
- /package/dist/cdn/{4JEJXGJU.js → GLRISNYR.js} +0 -0
- /package/dist/cdn/{3N4S6FME.js → HH3DMGSF.js} +0 -0
- /package/dist/cdn/{2EP5VXD6.js → HQPBHWPK.js} +0 -0
- /package/dist/cdn/{WP4KFUY3.js → HUYCG6D3.js} +0 -0
- /package/dist/cdn/{342CXNII.js → IA3NCWIB.js} +0 -0
- /package/dist/cdn/{3X7ZHD6L.js → IBGSVDSQ.js} +0 -0
- /package/dist/cdn/{XX2NQ7F7.js → KEGLDP4A.js} +0 -0
- /package/dist/cdn/{GIM5WRSV.js → KIZ3ARHJ.js} +0 -0
- /package/dist/cdn/{AXN2DJ6L.js → MLV3GXE7.js} +0 -0
- /package/dist/cdn/{COD4GW2E.js → NYHNV75B.js} +0 -0
- /package/dist/cdn/{2TRD5SF7.js → O2CLPWU5.js} +0 -0
- /package/dist/cdn/{TBYXPWDW.js → PMWIRBWT.js} +0 -0
- /package/dist/cdn/{3IBA2E3M.js → Q5PJLESJ.js} +0 -0
- /package/dist/cdn/{E4CZXX27.js → QI5WIEJM.js} +0 -0
- /package/dist/cdn/{VQSQJFKX.js → SOOQCCHH.js} +0 -0
- /package/dist/cdn/{M7EKIG3O.js → SWYSBYOY.js} +0 -0
- /package/dist/cdn/{7EFRKXP6.js → TIRTPJYQ.js} +0 -0
- /package/dist/cdn/{7NPPDW6X.js → UUUPIG6P.js} +0 -0
- /package/dist/cdn/{7JIQFRV4.js → VHB2BYFO.js} +0 -0
- /package/dist/cdn/{7RZWWLDN.js → WFJH7WES.js} +0 -0
- /package/dist/cdn/{YDJ7YXWL.js → XPS7ZSFJ.js} +0 -0
- /package/dist/cdn/{SMZ3OJKR.js → XVY5OKH2.js} +0 -0
- /package/dist/cdn/{IYDUUPIY.js → YJPDBYVX.js} +0 -0
- /package/dist/cdn/{V4CD5PGC.js → ZX5J6SMV.js} +0 -0
|
@@ -9,12 +9,12 @@ import type Ground from "@arcgis/core/Ground.js";
|
|
|
9
9
|
import type GamepadSettings from "@arcgis/core/views/input/gamepad/GamepadSettings.js";
|
|
10
10
|
import type Basemap from "@arcgis/core/Basemap.js";
|
|
11
11
|
import type Map from "@arcgis/core/Map.js";
|
|
12
|
+
import type Graphic from "@arcgis/core/Graphic.js";
|
|
12
13
|
import type LayerView from "@arcgis/core/views/layers/LayerView.js";
|
|
13
14
|
import type ColorBackground from "@arcgis/core/webmap/background/ColorBackground.js";
|
|
14
15
|
import type BasemapView from "@arcgis/core/views/BasemapView.js";
|
|
15
16
|
import type MapViewConstraints from "@arcgis/core/views/2d/MapViewConstraints.js";
|
|
16
17
|
import type Error from "@arcgis/core/core/Error.js";
|
|
17
|
-
import type Graphic from "@arcgis/core/Graphic.js";
|
|
18
18
|
import type HighlightOptions from "@arcgis/core/views/support/HighlightOptions.js";
|
|
19
19
|
import type IPSInfo from "@arcgis/core/webdoc/IPSInfo.js";
|
|
20
20
|
import type Magnifier from "@arcgis/core/views/Magnifier.js";
|
|
@@ -33,7 +33,7 @@ import type { DoubleClickEvent, DoubleTapDragEvent, VerticalTwoFingerDragEvent,
|
|
|
33
33
|
import type { AnalysisViewDestroyEvent, AnalysisViewCreateErrorEvent, AnalysisViewCreateEvent, ToScreenOptions2D, Screenshot, UserSettings, ViewHitTestResult, HitTestOptions, GoToOptions2D, GoToTarget2D } from "@arcgis/core/views/types.js";
|
|
34
34
|
import type { AnalysisView2DUnion } from "@arcgis/core/views/2d/analysis/types.js";
|
|
35
35
|
import type { ScreenPoint, ScreenRect } from "@arcgis/core/core/types.js";
|
|
36
|
-
import type { ViewPopupOpenOptions } from "@arcgis/core/views/PopupView.js";
|
|
36
|
+
import type { FetchPopupFeaturesOptions, ViewPopupOpenOptions } from "@arcgis/core/views/PopupView.js";
|
|
37
37
|
import type { ReadonlyCollection } from "@arcgis/core/core/Collection.js";
|
|
38
38
|
import type { ViewPadding } from "@arcgis/core/views/ui/types.js";
|
|
39
39
|
import type { SlotGroupRefs } from "../../support/slots.js";
|
|
@@ -911,7 +911,14 @@ export abstract class ArcgisMap extends LitElement {
|
|
|
911
911
|
closePopup(): Promise<void>;
|
|
912
912
|
/** Destroys the view, and any associated resources, including its map, popup, and UI elements. */
|
|
913
913
|
destroy(): Promise<void>;
|
|
914
|
-
|
|
914
|
+
/**
|
|
915
|
+
* 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.
|
|
916
|
+
*
|
|
917
|
+
* @param screenPoint
|
|
918
|
+
* @param options
|
|
919
|
+
* @since 5.1
|
|
920
|
+
*/
|
|
921
|
+
fetchPopupFeatures(screenPoint: ScreenPoint, options?: FetchPopupFeaturesOptions): Promise<AsyncGenerator<Graphic>>;
|
|
915
922
|
/**
|
|
916
923
|
* Sets the view to a given target.
|
|
917
924
|
*
|
|
@@ -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 {
|
|
@@ -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 screenPoint
|
|
901
|
+
* @param options
|
|
902
|
+
* @since 5.1
|
|
903
|
+
*/
|
|
904
|
+
fetchPopupFeatures(screenPoint: ScreenPoint, 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.2/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
|
};
|
|
@@ -10,10 +10,10 @@ import { classes as y } from "@arcgis/toolkit/dom";
|
|
|
10
10
|
import { g as C } from "../../chunks/globalCss.js";
|
|
11
11
|
import { isAbortError as $ } from "@arcgis/core/core/promiseUtils.js";
|
|
12
12
|
import { m as R } from "../../chunks/useViewModel.js";
|
|
13
|
-
import { s as
|
|
13
|
+
import { s as k } from "../../chunks/sr.js";
|
|
14
14
|
import { substitute as g } from "@arcgis/core/intl.js";
|
|
15
|
-
import { usePropertyChange as
|
|
16
|
-
import { u as
|
|
15
|
+
import { usePropertyChange as D } from "@arcgis/lumina/controllers";
|
|
16
|
+
import { u as E } from "../../chunks/useT9n.js";
|
|
17
17
|
import { watch as u, on as T } from "@arcgis/core/core/reactiveUtils.js";
|
|
18
18
|
const A = _`.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__heading{word-break:break-word}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}.esri-hidden{display:none!important}:host{width:240px}.root{--arcgis-internal-search-width: 240px;display:flex;flex-flow:row nowrap;align-items:center;justify-content:center;width:100%}.dropdown{--calcite-color-border-1: var(--calcite-color-border-input);--calcite-dropdown-width: var(--arcgis-internal-search-width);width:31px}.dropdown calcite-button{--calcite-offset-invert-focus: 1}.autocomplete{flex:1}.container{display:flex;position:relative;flex:1 0 100%;flex-flow:row nowrap;align-items:stretch}.form{display:flex;flex:1 0;flex-flow:row nowrap;align-items:stretch;margin:0;padding:0}.submit-button{position:absolute;margin:-1px;border-width:0;padding:0;width:1px;height:1px;overflow:hidden;white-space:nowrap;clip:rect(0,0,0,0)}`, L = R(w);
|
|
19
19
|
function p(n) {
|
|
@@ -24,13 +24,13 @@ class z extends f {
|
|
|
24
24
|
super(...arguments), this.viewModel = L(this), this._currentLocationValue = "search-use-current-location", this._autocompleteEl = void 0, this._searchResultRendererEl = void 0, this._searchResultRendererContentEl = void 0, this._suggestController = void 0, this._searchController = void 0, this._lastSearchTerm = "", this._handleSelectResult = (e) => {
|
|
25
25
|
const { name: t } = e.detail.result;
|
|
26
26
|
this._selectedMessage = g(this.messages.resultSelected, { resultName: t });
|
|
27
|
-
}, this.messages =
|
|
27
|
+
}, this.messages = E({ blocking: !0 }), this._locateFailed = !1, this._showNoResults = !1, this.view = this.viewModel.view, this.goToOverride = this.viewModel.goToOverride, this.icon = "search", this.hideSourcesMenu = !1, this.activeMenu = "none", this.activeSourceIndex = this.viewModel.activeSourceIndex, this.allPlaceholder = this.viewModel.allPlaceholder, this.allSources = this.viewModel.allSources, this.autoNavigateDisabled = this.viewModel.autoNavigate, this.autoSelectDisabled = this.viewModel.autoSelect, this.defaultSources = this.viewModel.defaultSources, this.disabled = !1, this.includeDefaultSourcesDisabled = this.viewModel.includeDefaultSources, this.locationDisabled = this.viewModel.locationEnabled, this.maxResults = this.viewModel.maxResults, this.maxSuggestions = this.viewModel.maxSuggestions, this.minSuggestCharacters = this.viewModel.minSuggestCharacters, this.popupDisabled = this.viewModel.popupEnabled, this.popupTemplate = this.viewModel.popupTemplate, this.portal = this.viewModel.portal, this.resultGraphic = this.viewModel.resultGraphic, this.resultGraphicDisabled = this.viewModel.resultGraphicEnabled, this.results = this.viewModel.results, this.searchAllDisabled = this.viewModel.searchAllEnabled, this.searchTerm = this.viewModel.searchTerm, this.selectedResult = this.viewModel.selectedResult, this.sources = this.viewModel.sources, this.suggestions = this.viewModel.suggestions, this.suggestionsDisabled = this.viewModel.suggestionsEnabled, this.topLayerDisabled = !1, this.autoDestroyDisabled = !1, this.state = this.viewModel.state, this.arcgisPropertyChange = D()("state"), this.arcgisReady = b(), this.arcgisSearchClear = a(() => this.viewModel, "search-clear"), this.arcgisSearchComplete = a(() => this.viewModel, "search-complete"), this.arcgisSearchStart = a(() => this.viewModel, "search-start"), this.arcgisSelectResult = a(() => this.viewModel, "select-result"), this.arcgisSuggestComplete = a(() => this.viewModel, "suggest-complete"), this.arcgisSuggestStart = a(() => this.viewModel, "suggest-start");
|
|
28
28
|
}
|
|
29
29
|
static {
|
|
30
30
|
this.properties = { _selectedMessage: 16, messages: 16, _locateFailed: 16, _showNoResults: 16, _isDisabled: 16, _showCurrentLocation: 16, _effectiveActiveMenu: 16, view: 0, referenceElement: 1, goToOverride: 0, icon: 1, hideSourcesMenu: 5, activeMenu: 1, activeSource: 32, activeSourceIndex: 9, allPlaceholder: 1, allSources: 0, autoNavigateDisabled: 5, autoSelectDisabled: 5, defaultSources: 0, disabled: 5, includeDefaultSourcesDisabled: 5, locationDisabled: 5, maxResults: 9, maxSuggestions: 9, minSuggestCharacters: 9, popupDisabled: 5, popupTemplate: 0, portal: 0, resultGraphic: 0, resultGraphicDisabled: 5, results: 0, searchAllDisabled: 5, searchTerm: 1, selectedResult: 0, sources: 0, suggestions: 32, suggestionsDisabled: 5, topLayerDisabled: 5, autoDestroyDisabled: 5, messageOverrides: 0, label: 1, state: 32 };
|
|
31
31
|
}
|
|
32
32
|
static {
|
|
33
|
-
this.styles = [A,
|
|
33
|
+
this.styles = [A, k];
|
|
34
34
|
}
|
|
35
35
|
get _isDisabled() {
|
|
36
36
|
const { state: e } = this.viewModel;
|
|
@@ -106,7 +106,7 @@ class z extends f {
|
|
|
106
106
|
_openPopup() {
|
|
107
107
|
if (p(this.referenceElement)) {
|
|
108
108
|
const { resultGraphic: e, resultLocation: t } = this.viewModel, i = { features: e ? [e] : [], location: t };
|
|
109
|
-
this.referenceElement?.openPopup(i)
|
|
109
|
+
this.referenceElement?.openPopup(i);
|
|
110
110
|
} else if (this.view) {
|
|
111
111
|
const { resultGraphic: e, resultLocation: t } = this.viewModel;
|
|
112
112
|
this.view.openPopup({
|
|
@@ -64,13 +64,26 @@ export abstract class ArcgisVideo extends LitElement {
|
|
|
64
64
|
* @since 5.0
|
|
65
65
|
*/
|
|
66
66
|
accessor attributionMode: "dark" | "light" | null | undefined;
|
|
67
|
-
/**
|
|
67
|
+
/**
|
|
68
|
+
* If true, the component will not be destroyed automatically when it is
|
|
69
|
+
* disconnected from the document. This is useful when you want to move the
|
|
70
|
+
* component to a different place on the page, or temporarily hide it. If this
|
|
71
|
+
* is set, make sure to call the [destroy()](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-video/#destroy) method when you are done to
|
|
72
|
+
* prevent memory leaks.
|
|
73
|
+
*
|
|
74
|
+
* @default false
|
|
75
|
+
*/
|
|
68
76
|
accessor autoDestroyDisabled: boolean;
|
|
69
77
|
/** The [VideoLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/VideoLayer/) to display in the view. */
|
|
70
78
|
accessor layer: VideoLayer | null | undefined;
|
|
71
79
|
/** A reference to the associated [Map](https://developers.arcgis.com/javascript/latest/references/core/Map/) or [WebMap](https://developers.arcgis.com/javascript/latest/references/core/WebMap/). */
|
|
72
80
|
accessor map: Map | WebMap | null | undefined;
|
|
73
|
-
/**
|
|
81
|
+
/**
|
|
82
|
+
* Indicates whether map graphics from the reference map element are overlaid on the video player's content.
|
|
83
|
+
*
|
|
84
|
+
* @default false
|
|
85
|
+
* @since 5.1
|
|
86
|
+
*/
|
|
74
87
|
accessor operationalDataVisible: boolean;
|
|
75
88
|
/**
|
|
76
89
|
* When `true`, this property indicates whether the view successfully satisfied all dependencies,
|
|
@@ -5,20 +5,20 @@ import { useDirection as n } from "@arcgis/lumina/controllers";
|
|
|
5
5
|
import { watch as e } from "@arcgis/core/core/reactiveUtils.js";
|
|
6
6
|
import l from "@arcgis/core/views/VideoView.js";
|
|
7
7
|
import { LitElement as c, createEvent as m, safeClassMap as d } from "@arcgis/lumina";
|
|
8
|
-
import { makeAccessorController as
|
|
8
|
+
import { makeAccessorController as p } from "@arcgis/lumina/controllers/accessor";
|
|
9
9
|
import { createRef as s, ref as a } from "lit/directives/ref.js";
|
|
10
10
|
import { C as r } from "../../chunks/resources.js";
|
|
11
|
-
import { c as
|
|
11
|
+
import { c as f, s as y, S as w } from "../../chunks/slots.js";
|
|
12
12
|
import { s as v } from "../../chunks/esri-main.js";
|
|
13
|
-
const u = h`:host{width:100%;height:100%}`, R =
|
|
13
|
+
const u = h`:host{width:100%;height:100%}`, R = p(l, {
|
|
14
14
|
omitProps: ["container", "navigation", "scale", "ui"]
|
|
15
15
|
});
|
|
16
16
|
class g extends c {
|
|
17
17
|
constructor() {
|
|
18
|
-
super(), this._containerRef = s(), this._direction = n(), this._mapRef = s(), this._slotGroupRefs =
|
|
18
|
+
super(), this._containerRef = s(), this._direction = n(), this._mapRef = s(), this._slotGroupRefs = f(), this.autoDestroyDisabled = !1, this.view = R(this), this.attributionMode = this.view.attributionMode, this.ready = this.view.ready, this.layer = this.view.layer, this.map = this.view.map, this.operationalDataVisible = this.view.operationalDataVisible, this.arcgisViewReadyChange = m();
|
|
19
19
|
}
|
|
20
20
|
static {
|
|
21
|
-
this.properties = { autoDestroyDisabled: 5,
|
|
21
|
+
this.properties = { autoDestroyDisabled: 5, view: 32, aria: 0, attributionMode: 1, ready: 36, layer: 0, map: 0, operationalDataVisible: 5 };
|
|
22
22
|
}
|
|
23
23
|
static {
|
|
24
24
|
this.styles = [v, y, u];
|
|
@@ -227,6 +227,13 @@ export abstract class ArcgisVideoPlayer extends LitElement {
|
|
|
227
227
|
video: string;
|
|
228
228
|
videoPlayer: string;
|
|
229
229
|
}>;
|
|
230
|
+
/**
|
|
231
|
+
* Indicates whether map graphics from the reference map element are overlaid on the video player's content.
|
|
232
|
+
*
|
|
233
|
+
* @default false
|
|
234
|
+
* @since 5.1
|
|
235
|
+
*/
|
|
236
|
+
accessor operationalDataVisible: boolean;
|
|
230
237
|
/**
|
|
231
238
|
* By assigning the `id` attribute of the Map or Scene component to this property, you can position a child component anywhere in the DOM while still maintaining a connection to the Map or Scene.
|
|
232
239
|
*
|