@arcgis/map-components 5.2.0-next.148 → 5.2.0-next.149
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/2SNOYPTJ.js +2 -0
- package/dist/cdn/{QOQRNYM5.js → 6YP2FZDY.js} +1 -1
- package/dist/cdn/{7UWE25UH.js → BOJOJ5VV.js} +1 -1
- package/dist/cdn/J7YDON4X.js +2 -0
- package/dist/cdn/KVN3M4C6.js +2 -0
- package/dist/cdn/{MACS56SF.js → X3DYJCL3.js} +1 -1
- package/dist/cdn/ZPWEX7I6.js +2 -0
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/useArcgisViewReadyError.js +120 -106
- package/dist/components/arcgis-catalog-layer-list-next/customElement.d.ts +3 -3
- package/dist/components/arcgis-elevation-profile/customElement.js +93 -89
- package/dist/components/arcgis-features/customElement.d.ts +1 -1
- package/dist/components/arcgis-features-next/customElement.d.ts +2 -2
- package/dist/components/arcgis-layer-list-next/customElement.d.ts +1 -1
- package/dist/components/arcgis-link-chart/customElement.d.ts +20 -10
- package/dist/components/arcgis-link-chart/customElement.js +5 -5
- package/dist/components/arcgis-map/customElement.d.ts +20 -10
- package/dist/components/arcgis-map/customElement.js +9 -9
- package/dist/components/arcgis-popup/customElement.d.ts +2 -2
- package/dist/components/arcgis-popup/customElement.js +7 -7
- package/dist/components/arcgis-scene/customElement.d.ts +20 -10
- package/dist/components/arcgis-scene/customElement.js +9 -9
- package/dist/components/arcgis-table-list-next/customElement.d.ts +1 -1
- package/dist/components/arcgis-video/customElement.js +6 -6
- 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 +3 -3
- package/dist/types/lumina.d.ts +3 -3
- package/dist/types/preact.d.ts +3 -3
- package/dist/types/react.d.ts +3 -3
- package/dist/types/stencil.d.ts +3 -3
- package/package.json +6 -6
- package/dist/cdn/63FA3UEL.js +0 -2
- package/dist/cdn/AENNGCAE.js +0 -2
- package/dist/cdn/IETZFE3P.js +0 -2
- package/dist/cdn/NBDQBLRI.js +0 -2
|
@@ -464,28 +464,38 @@ export abstract class ArcgisMap extends LitElement {
|
|
|
464
464
|
*/
|
|
465
465
|
accessor floors: Collection<string>;
|
|
466
466
|
/**
|
|
467
|
-
* The screen rectangle of the active focus region, or `null` when [
|
|
467
|
+
* The screen rectangle of the active focus region, or `null` when [focusRegionVisible](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-map/#focusRegionVisible) is `false`.
|
|
468
468
|
* This screen rectangle represents the area of the view that is currently in focus and can be used with methods that require a screen rectangle as input, such as `hitTest()`.
|
|
469
469
|
*
|
|
470
470
|
* | Action | Keyboard Shortcut / Property |
|
|
471
471
|
* |--------|----------------------------|
|
|
472
|
-
* | Enable or disable focus region | Use the `Shift` + `Alt`/`Option` + `O` keyboard shortcut while the view component is in focus or set the [
|
|
472
|
+
* | Enable or disable focus region | Use the `Shift` + `Alt`/`Option` + `O` keyboard shortcut while the view component is in focus or set the [focusRegionVisible](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-map/#focusRegionVisible) property to `true` or `false`. |
|
|
473
473
|
* | Resize focus region | Use the `Shift` + `Alt`/`Option` + Up/Down arrow keys while the focus region is enabled. |
|
|
474
474
|
* | Open the [popup](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-popup/) for features in the focus region | Press `Enter` or `Spacebar` while the focus region is enabled. |
|
|
475
475
|
*
|
|
476
|
-
* **Notes:**
|
|
476
|
+
* **Notes:**
|
|
477
477
|
* - To know when this focus region is selected, listen for the [@arcgisViewFocusRegionSelect](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-map/#event-arcgisViewFocusRegionSelect) event. The default behavior of the popup component opening with features in the focus region can be prevented by calling `event.preventDefault()` within the event handler.
|
|
478
478
|
* - The styling of the focus region can be customized using the [--arcgis-focus-region-outer-border-color](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-map/#--arcgis-focus-region-outer-border-color), [--arcgis-focus-region-inner-border-color](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-map/#--arcgis-focus-region-inner-border-color), and [--arcgis-focus-region-border-width](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-map/#--arcgis-focus-region-border-width) CSS variables.
|
|
479
|
-
* - When the [
|
|
479
|
+
* - When the [focusRegionVisible](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-map/#focusRegionVisible) is `true`, the opened [popupElement](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-map/#popupElement) or slotted [popup component](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-popup/) will be docked with the dock button hidden by default to prevent it from overlapping the focus region.
|
|
480
480
|
*
|
|
481
481
|
* @since 5.2
|
|
482
|
-
* @see [
|
|
482
|
+
* @see [focusRegionVisible](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-map/#focusRegionVisible)
|
|
483
483
|
* @see [@arcgisViewFocusRegionSelect](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-map/#event-arcgisViewFocusRegionSelect)
|
|
484
484
|
*/
|
|
485
485
|
get focusRegion(): MapView["focusRegion"];
|
|
486
486
|
/**
|
|
487
|
-
*
|
|
488
|
-
*
|
|
487
|
+
* Enables the keyboard shortcut for showing the focus region. When undefined, the shortcut
|
|
488
|
+
* is enabled only when a popup component is available and [popupDisabled](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-map/#popupDisabled) is false.
|
|
489
|
+
* Set to true to handle focus-region selection in a custom application, or false to disable
|
|
490
|
+
* the shortcut. When false, the shortcut does not change focus-region visibility.
|
|
491
|
+
*
|
|
492
|
+
* @default false
|
|
493
|
+
* @since 5.2
|
|
494
|
+
*/
|
|
495
|
+
accessor focusRegionShortcutEnabled: boolean | undefined;
|
|
496
|
+
/**
|
|
497
|
+
* Indicates whether the [focusRegion](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-map/#focusRegion) is visible. Set this property to `true` to show the centered focus region, or `false` to hide it.
|
|
498
|
+
* The focus region can also be shown or hidden by focusing on the ArcgisMap component and pressing the `Shift` + `Alt`/`Option` + `O` keyboard shortcut. By default, this shortcut is available only when a popup component is available and [popupDisabled](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-map/#popupDisabled) is `false`. Use [focusRegionShortcutEnabled](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-map/#focusRegionShortcutEnabled) to explicitly enable or disable it.
|
|
489
499
|
*
|
|
490
500
|
* **Note:** When the focus region is enabled, the [popupElement](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-map/#popupElement) or slotted [popup component](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-popup/) will be docked with the dock button hidden by default to prevent it from overlapping the focus region.
|
|
491
501
|
*
|
|
@@ -494,7 +504,7 @@ export abstract class ArcgisMap extends LitElement {
|
|
|
494
504
|
* @see [focusRegion](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-map/#focusRegion)
|
|
495
505
|
* @see [@arcgisViewFocusRegionSelect](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-map/#event-arcgisViewFocusRegionSelect)
|
|
496
506
|
*/
|
|
497
|
-
accessor
|
|
507
|
+
accessor focusRegionVisible: boolean;
|
|
498
508
|
/** Gamepad input specific configuration settings. */
|
|
499
509
|
get gamepad(): GamepadSettings;
|
|
500
510
|
/**
|
|
@@ -1344,12 +1354,12 @@ export abstract class ArcgisMap extends LitElement {
|
|
|
1344
1354
|
readonly arcgisViewDrag: import("@arcgis/lumina").TargetedEvent<this, DragEvent>;
|
|
1345
1355
|
/**
|
|
1346
1356
|
* Fires when the focus region is selected using the `Enter` or `Space` key. Use this event to react to the selection of the [focusRegion](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-map/#focusRegion) via keyboard input and perform any necessary actions based on that selection, such as performing a `hitTest()` on the [focusRegion](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-map/#focusRegion) and passing the returned graphics to the [selectionManager](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-map/#selectionManager).
|
|
1347
|
-
*
|
|
1357
|
+
*
|
|
1348
1358
|
* Call `event.detail.preventDefault()` to suppress the default behavior of the [popup](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-popup/) opening with the features in the focus region.
|
|
1349
1359
|
*
|
|
1350
1360
|
* @since 5.2
|
|
1351
1361
|
* @see [focusRegion](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-map/#focusRegion)
|
|
1352
|
-
* @see [
|
|
1362
|
+
* @see [focusRegionVisible](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-map/#focusRegionVisible)
|
|
1353
1363
|
* @example
|
|
1354
1364
|
* ```js
|
|
1355
1365
|
* viewElement.addEventListener("arcgisViewFocusRegionSelect", async (event) => {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { c as p } from "../../chunks/runtime.js";
|
|
3
|
-
import { html as
|
|
3
|
+
import { html as r } from "lit";
|
|
4
4
|
import { watch as s } from "@arcgis/core/core/reactiveUtils.js";
|
|
5
5
|
import l from "@arcgis/core/views/MapView.js";
|
|
6
6
|
import u from "@arcgis/core/WebMap.js";
|
|
7
|
-
import { LitElement as v, createEvent as
|
|
7
|
+
import { LitElement as v, createEvent as a, safeClassMap as o } from "@arcgis/lumina";
|
|
8
8
|
import { reEmitEvent as e } from "@arcgis/lumina-toolkit/reEmitEvent";
|
|
9
9
|
import { makeAccessorController as c, reCreateAccessor as m } from "@arcgis/lumina-toolkit/useAccessor";
|
|
10
10
|
import { createRef as n, ref as h } from "lit/directives/ref.js";
|
|
@@ -12,7 +12,7 @@ import { U as g, u as d, a as y, b as f } from "../../chunks/useArcgisViewReadyE
|
|
|
12
12
|
import { s as b } from "../../chunks/esri-main.js";
|
|
13
13
|
import { s as V } from "../../chunks/slots.js";
|
|
14
14
|
import { C as w } from "../../chunks/resources.js";
|
|
15
|
-
import { b as
|
|
15
|
+
import { b as C, c as E, p as R, i as _ } from "../../chunks/component-utils.js";
|
|
16
16
|
import A from "@arcgis/core/core/Collection.js";
|
|
17
17
|
const M = c(
|
|
18
18
|
u,
|
|
@@ -28,12 +28,12 @@ const M = c(
|
|
|
28
28
|
), D = c(l, {});
|
|
29
29
|
class k extends v {
|
|
30
30
|
constructor() {
|
|
31
|
-
super(), this._attributionMode = null, this._containerRef = n(), this._mapRef = n(), this._uiController = new g(this), this.extraContent = new A(), this.arcgisLoadError = d(this), this.arcgisViewReadyError = y(this), this._map = M(this), this.view = D(this), this.animationsDisabled = this.view.animationsEnabled, this.allLayerViews = this.view.allLayerViews, this.analyses = this.view.analyses, 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.options = this.view.options, 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.
|
|
31
|
+
super(), this._attributionMode = null, this._containerRef = n(), this._mapRef = n(), this._uiController = new g(this), this.extraContent = new A(), this.arcgisLoadError = d(this), this.arcgisViewReadyError = y(this), this._map = M(this), this.view = D(this), this.animationsDisabled = this.view.animationsEnabled, this.allLayerViews = this.view.allLayerViews, this.analyses = this.view.analyses, 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.options = this.view.options, 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.focusRegionVisible = this.view.focusRegionVisible, 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.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 = a(), this.arcgisViewClick = e(() => this.view, "click"), this.arcgisViewDoubleClick = e(() => this.view, "double-click"), this.arcgisViewDoubleTapDrag = e(() => this.view, "double-tap-drag"), this.arcgisViewFocusRegionSelect = e(() => this.view, "focus-region-select"), 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 = a(), this.arcgisViewVerticalTwoFingerDrag = e(() => this.view, "vertical-two-finger-drag"), f(this), this.view.ui = {
|
|
32
32
|
components: []
|
|
33
33
|
};
|
|
34
34
|
}
|
|
35
35
|
static {
|
|
36
|
-
this.properties = { _map: 16, view: 32, animationsDisabled: 5, aria: 0, allLayerViews: 32, analyses: 0, attributionItems: 32, attributionMode: 1, autoDestroyDisabled: 5, background: 0, basemap: 1, basemapView: 0, canZoomIn: 36, canZoomOut: 36, center: 1, constraints: 0, displayFilterDisabled: 5, extent: 0, fatalError: 0, floors: 0, focusAreas: 0, gamepad: 32, graphics: 0, ground: 1, hideAttribution: 5, highlights: 0, interacting: 32, ipsInfo: 0, itemId: 3, layerViews: 32, magnifier: 32, map: 0, navigating: 32, navigation: 0, options: 0, padding: 0, popup: 0, popupElement: 32, popupDisabled: 5, popupComponentEnabled: 5, ready: 36, resizeAlign: 1, resolution: 40, rotation: 9, scale: 9, selectionManager: 32,
|
|
36
|
+
this.properties = { _map: 16, view: 32, animationsDisabled: 5, aria: 0, allLayerViews: 32, analyses: 0, attributionItems: 32, attributionMode: 1, autoDestroyDisabled: 5, background: 0, basemap: 1, basemapView: 0, canZoomIn: 36, canZoomOut: 36, center: 1, constraints: 0, displayFilterDisabled: 5, extent: 0, fatalError: 0, floors: 0, focusAreas: 0, gamepad: 32, graphics: 0, ground: 1, hideAttribution: 5, highlights: 0, interacting: 32, ipsInfo: 0, itemId: 3, layerViews: 32, magnifier: 32, map: 0, navigating: 32, navigation: 0, options: 0, padding: 0, popup: 0, popupElement: 32, popupDisabled: 5, popupComponentEnabled: 5, ready: 36, resizeAlign: 1, resolution: 40, rotation: 9, scale: 9, selectionManager: 32, focusRegionVisible: 5, focusRegionShortcutEnabled: 5, focusRegion: 32, slotGroupRefs: 32, spatialReference: 0, spatialReferenceLocked: 5, stationary: 32, suspended: 39, theme: 0, timeExtent: 0, timeZone: 1, updating: 32, viewpoint: 0, visibleArea: 32, zoom: 9, loadErrorSources: 0 };
|
|
37
37
|
}
|
|
38
38
|
static {
|
|
39
39
|
this.styles = [b, V];
|
|
@@ -60,9 +60,9 @@ class k extends v {
|
|
|
60
60
|
return this.view.center;
|
|
61
61
|
}
|
|
62
62
|
set center(i) {
|
|
63
|
-
if (
|
|
63
|
+
if (C(i, this._center))
|
|
64
64
|
return;
|
|
65
|
-
this._center =
|
|
65
|
+
this._center = E(i);
|
|
66
66
|
const t = R(i, this.view);
|
|
67
67
|
t && (this.view.center = t);
|
|
68
68
|
}
|
|
@@ -191,10 +191,10 @@ class k extends v {
|
|
|
191
191
|
]);
|
|
192
192
|
}
|
|
193
193
|
renderMain() {
|
|
194
|
-
return
|
|
194
|
+
return r`<div class=${o(w.base)} ${h(this._mapRef)}></div>`;
|
|
195
195
|
}
|
|
196
196
|
render() {
|
|
197
|
-
return
|
|
197
|
+
return r`${this.renderMain()}<section class=${o(w.containerUI)} ${h(this._containerRef)}>${this._uiController.render()}${this.extraContent}</section>`;
|
|
198
198
|
}
|
|
199
199
|
}
|
|
200
200
|
p("arcgis-map", k);
|
|
@@ -296,7 +296,7 @@ export abstract class ArcgisPopup extends LitElement {
|
|
|
296
296
|
accessor featureMenuTitle: string | undefined;
|
|
297
297
|
/**
|
|
298
298
|
* An array of graphics associated with the component. Each graphic in this array must have a valid [PopupTemplate](https://developers.arcgis.com/javascript/latest/references/core/PopupTemplate/) set. They may share the same [PopupTemplate](https://developers.arcgis.com/javascript/latest/references/core/PopupTemplate/) or have unique [PopupTemplates](https://developers.arcgis.com/javascript/latest/references/core/PopupTemplate/) depending on their attributes. The [content](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-popup/#content) and [heading](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-popup/#heading) of the component is set based on the `content` and `title` properties of each graphic's respective [PopupTemplate](https://developers.arcgis.com/javascript/latest/references/core/PopupTemplate/).
|
|
299
|
-
*
|
|
299
|
+
*
|
|
300
300
|
* When more than one graphic exists in this array, the current content of the component is set based on the value of the [selectedFeature](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-popup/#selectedFeature).
|
|
301
301
|
*
|
|
302
302
|
* This value is `null` if no features are associated with the component.
|
|
@@ -465,7 +465,7 @@ export abstract class ArcgisPopup extends LitElement {
|
|
|
465
465
|
accessor includeDefaultActionsDisabled: boolean;
|
|
466
466
|
/**
|
|
467
467
|
* Indicates whether to initially display a list of features, or the content for one feature.
|
|
468
|
-
* By default, a list is displayed when the associated view has `
|
|
468
|
+
* By default, a list is displayed when the associated view has `focusRegionVisible` enabled; otherwise, the content for one feature is displayed.
|
|
469
469
|
*/
|
|
470
470
|
accessor initialDisplayMode: InitialDisplayOptions;
|
|
471
471
|
/** The component's default label. */
|
|
@@ -11,9 +11,9 @@ import { classes as x } from "@arcgis/toolkit/dom";
|
|
|
11
11
|
import { createRef as g, ref as m } from "lit/directives/ref.js";
|
|
12
12
|
import { watch as h } from "@arcgis/core/core/reactiveUtils.js";
|
|
13
13
|
import H from "@arcgis/core/support/actions/ActionButton.js";
|
|
14
|
-
import { t as
|
|
14
|
+
import { t as V } from "../../chunks/screenLocation.js";
|
|
15
15
|
import "../arcgis-search-result-renderer/customElement.js";
|
|
16
|
-
const
|
|
16
|
+
const B = A`:host{display:contents;--arcgis-internal-popup-pointer-size: 12px;--arcgis-internal-popup-content-small-size: 280px;--arcgis-internal-popup-content-medium-size: 340px;--arcgis-internal-popup-content-large-size: 400px;--arcgis-internal-popup-content-x-large-size: 460px;--arcgis-internal-popup-content-min-size-y: 48px;--arcgis-internal-popup-pointer-size-half: calc(var(--arcgis-internal-popup-pointer-size) / 2);--arcgis-internal-popup-pointer-size-half-negative: calc(var(--arcgis-internal-popup-pointer-size-half) * -1)}.root{display:flex;position:absolute;flex-flow:column nowrap;z-index:401;pointer-events:none;border:none;overflow:visible;padding:0;width:auto;height:auto;background-color:transparent}.hidden{visibility:hidden}.root:popover-open{display:flex;position:fixed;flex-flow:column nowrap;margin:0}arcgis-features{flex:1;width:100%}.shadow{box-shadow:var(--calcite-shadow-sm)}.aligned-top-center{transform-origin:50% 100%}.aligned-bottom-center{transform-origin:50% -5%}.aligned-top-left,.aligned-bottom-left{transform-origin:100% 50%}.aligned-top-right,.aligned-bottom-right{transform-origin:-5% 50%}.aligned-top-center,.aligned-top-left,.aligned-top-right{animation:popup-intro-animation-down .2s ease-in-out}.aligned-bottom-center,.aligned-bottom-left,.aligned-bottom-right{animation:popup-intro-animation-up .2s ease-in-out}.main-container{display:flex;position:relative;z-index:1;background-color:var(--calcite-color-foreground-1);width:var(--arcgis-internal-popup-content-medium-size);min-height:var(--arcgis-internal-popup-content-min-size-y);max-height:var(--arcgis-internal-popup-content-medium-size);overflow:hidden;pointer-events:auto}.pointer{position:absolute;width:0;height:0}.pointer-direction{position:absolute;width:var(--arcgis-internal-popup-pointer-size);height:var(--arcgis-internal-popup-pointer-size);content:"";background-color:var(--calcite-color-foreground-1)}.aligned-top-center .pointer{top:100%;left:50%;margin:0 0 0 var(--arcgis-internal-popup-pointer-size-half-negative)}.aligned-bottom-center .pointer{bottom:100%;left:50%;margin:0 0 0 var(--arcgis-internal-popup-pointer-size-half-negative)}.aligned-top-left .pointer{right:var(--arcgis-internal-popup-pointer-size-half);bottom:var(--arcgis-internal-popup-pointer-size-half);transform:rotate(-45deg)}.aligned-bottom-left .pointer{top:var(--arcgis-internal-popup-pointer-size-half);right:var(--arcgis-internal-popup-pointer-size-half);transform:rotate(45deg)}.aligned-top-right .pointer{bottom:var(--arcgis-internal-popup-pointer-size-half);left:var(--arcgis-internal-popup-pointer-size-half);transform:rotate(45deg)}.aligned-bottom-right .pointer{top:var(--arcgis-internal-popup-pointer-size-half);left:var(--arcgis-internal-popup-pointer-size-half);transform:rotate(-45deg)}.aligned-top-center .pointer-direction,.aligned-bottom-center .pointer-direction{transform:scale(.75,2) rotate(45deg)}.aligned-top-left .pointer-direction,.aligned-bottom-left .pointer-direction,.aligned-top-right .pointer-direction,.aligned-bottom-right .pointer-direction{top:var(--arcgis-internal-popup-pointer-size-half-negative);left:var(--arcgis-internal-popup-pointer-size-half-negative);transform:scale(.75,2.5) rotate(45deg)}.aligned-top-center .pointer-direction{top:var(--arcgis-internal-popup-pointer-size-half-negative);left:0}.aligned-bottom-center .pointer-direction{bottom:var(--arcgis-internal-popup-pointer-size-half-negative);left:0}.is-xl-width-breakpoint .main-container{width:var(--arcgis-internal-popup-content-x-large-size)}.is-lg-width-breakpoint .main-container{width:var(--arcgis-internal-popup-content-large-size)}.is-md-width-breakpoint .main-container{width:var(--arcgis-internal-popup-content-medium-size)}.is-sm-width-breakpoint .main-container,.is-xs-width-breakpoint .main-container{width:var(--arcgis-internal-popup-content-small-size)}.is-xs-width-breakpoint.is-docked-top-center,.is-xs-width-breakpoint.is-docked-bottom-center{margin:0;width:auto}.is-xs-width-breakpoint.is-docked-top-center .main-container,.is-xs-width-breakpoint.is-docked-bottom-center .main-container{position:absolute;right:0;left:0;width:100%;max-height:75%}.is-xs-width-breakpoint.is-docked-bottom-center .main-container{bottom:0}.is-xs-width-breakpoint.is-docked-top-center .main-container{top:0}.is-xl-height-breakpoint .main-container{max-height:var(--arcgis-internal-popup-content-x-large-size)}.is-lg-height-breakpoint .main-container{max-height:var(--arcgis-internal-popup-content-large-size)}.is-sm-height-breakpoint .main-container,.is-xs-height-breakpoint .main-container{max-height:var(--arcgis-internal-popup-content-small-size)}.is-docked{flex-flow:row nowrap;inset:0;margin:var(--arcgis-layout-overlay-space-top, 0) var(--arcgis-layout-overlay-space-right, 0) var(--arcgis-layout-overlay-space-bottom, 0) var(--arcgis-layout-overlay-space-left, 0);padding:var(--calcite-spacing-lg) var(--calcite-spacing-lg) var(--calcite-spacing-xxxl) var(--calcite-spacing-lg);animation:docking-animation .25s ease-out}.is-docked-top-left,.is-docked-top-center,.is-docked-top-right,.is-docked-top-start,.is-docked-top-end{align-items:flex-start}.is-docked-bottom-left,.is-docked-bottom-center,.is-docked-bottom-right,.is-docked-bottom-start,.is-docked-bottom-end{align-items:flex-end}.is-docked-top-left,.is-docked-bottom-left,.is-docked-top-start,.is-docked-bottom-start{justify-content:flex-start}.is-docked-top-center,.is-docked-bottom-center{justify-content:center}.is-docked-top-right,.is-docked-bottom-right,.is-docked-top-end,.is-docked-bottom-end{justify-content:flex-end}.is-docked-top-left.is-rtl,.is-docked-top-right.is-rtl,.is-docked-bottom-left.is-rtl,.is-docked-bottom-right.is-rtl{flex-direction:row-reverse}.is-docked-top-left .main-container,.is-docked-top-right .main-container,.is-docked-bottom-left .main-container,.is-docked-bottom-right .main-container,.is-docked-top-start .main-container,.is-docked-top-end .main-container,.is-docked-bottom-start .main-container,.is-docked-bottom-end .main-container{max-height:80%}.is-docked-top-center .main-container,.is-docked-bottom-center .main-container{max-height:40%}@media(prefers-reduced-motion){.aligned-top-center,.aligned-top-left,.aligned-top-right,.aligned-bottom-center,.aligned-bottom-left,.aligned-bottom-right{animation:none}}@media(prefers-reduced-motion){.is-docked{animation:none}}@keyframes docking-animation{0%{opacity:0}25%{opacity:0}to{opacity:1}}@keyframes popup-intro-animation-down{0%{transform:translateY(calc(var(--calcite-spacing-xs) * -1));opacity:0}to{transform:translate(0);opacity:1}}@keyframes popup-intro-animation-up{0%{transform:translateY(var(--calcite-spacing-xs));opacity:0}to{transform:translate(0);opacity:1}}`;
|
|
17
17
|
function f(b) {
|
|
18
18
|
return b && Number.parseInt(b.replaceAll(/[^-\d.]/gu, ""), 10) || 0;
|
|
19
19
|
}
|
|
@@ -28,13 +28,13 @@ class R extends T {
|
|
|
28
28
|
constructor() {
|
|
29
29
|
super(...arguments), this._direction = F(), this._headingText = { html: "", text: "" }, this._featuresComponent = g(), this._dockAction = new H({ id: "popup-dock-action" }), this._mainContainerNode = g(), this._pointerNode = g(), this.messages = O(), this.viewModel = I(this), this._containerNode = g(), this._popupResizeObserver = new ResizeObserver(() => this._positionContainer()), this._positionContainer = () => {
|
|
30
30
|
this.positionStyle = this._calculatePositionStyle();
|
|
31
|
-
}, this.screenLocation =
|
|
31
|
+
}, this.screenLocation = V(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.diagnostics = this.viewModel.diagnostics, 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.featureStream = this.viewModel.featureStream, 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.hideEmptyRelationshipContent = !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.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", "selectedDrillInFeature", "selectedFeature", "selectedFeatureComponent", "selectedFeatureIndex", "state", "open"), this.arcgisReady = _(), this.arcgisClose = _(), this.arcgisTriggerAction = _();
|
|
32
32
|
}
|
|
33
33
|
static {
|
|
34
34
|
this.properties = { screenLocation: 16, positionStyle: 16, _featureNavigationTop: 16, _effectiveDockEnabled: 16, actions: 0, active: 0, alignment: 1, autoCloseEnabled: 5, autoDestroyDisabled: 5, collapsed: 5, content: 1, diagnostics: 32, currentAlignment: 32, currentDockPosition: 32, defaultPopupTemplateEnabled: 5, dockEnabled: 5, dockOptions: 0, effectiveHeading: 32, featureCount: 0, featureMenuOpen: 5, featureMenuTitle: 1, features: 0, featureStream: 0, focusTrapDisabled: 5, goToOverride: 0, heading: 1, headingLevel: 9, hideActionBar: 5, hideCloseButton: 5, hideCollapseButton: 5, hideFeatureMenuHeading: 5, hideFeatureNavigation: 5, hideFeatureListLayerTitle: 5, hideEmptyRelationshipContent: 5, hideHeading: 5, hideSpinner: 5, highlightDisabled: 5, includeDefaultActionsDisabled: 5, initialDisplayMode: 1, label: 1, location: 0, messageOverrides: 0, open: 5, referenceElement: 1, selectedDrillInFeature: 32, selectedFeature: 0, selectedFeatureComponent: 32, selectedFeatureIndex: 9, state: 32, topLayerDisabled: 5, updateLocationEnabled: 5, view: 0 };
|
|
35
35
|
}
|
|
36
36
|
static {
|
|
37
|
-
this.styles =
|
|
37
|
+
this.styles = B;
|
|
38
38
|
}
|
|
39
39
|
get trackLocation() {
|
|
40
40
|
return this.active && !this._effectiveDockEnabled;
|
|
@@ -44,7 +44,7 @@ class R extends T {
|
|
|
44
44
|
return t === "bottom-left" || t === "bottom-center" || t === "bottom-right" || t === "bottom-start" || t === "bottom-end" || e === "top-left" || e === "top-center" || e === "top-right" || e === "top-start" || e === "top-end";
|
|
45
45
|
}
|
|
46
46
|
get _effectiveDockEnabled() {
|
|
47
|
-
return this.viewModel?.view?.
|
|
47
|
+
return this.viewModel?.view?.focusRegionVisible ? !0 : this.dockEnabled;
|
|
48
48
|
}
|
|
49
49
|
get currentAlignment() {
|
|
50
50
|
return this._getCurrentAlignment();
|
|
@@ -92,9 +92,9 @@ class R extends T {
|
|
|
92
92
|
this.manager.onLifecycle(() => [
|
|
93
93
|
h(() => [this.viewModel?.view?.widthBreakpoint, this._effectiveDockEnabled, this._direction], () => this._handleDockIcon(), { initial: !0 }),
|
|
94
94
|
h(() => [this._effectiveDockEnabled, this.messages?.undock, this.messages?.dock], () => this._handleDockEnabled(), { initial: !0 }),
|
|
95
|
-
h(() => [this.dockOptions, this._featuresComponent.value, this.viewModel?.view?.
|
|
95
|
+
h(() => [this.dockOptions, this._featuresComponent.value, this.viewModel?.view?.focusRegionVisible], () => {
|
|
96
96
|
const { _dockAction: t, dockOptions: e } = this, o = this._featuresComponent.value?.headerActions;
|
|
97
|
-
o?.remove(t), e.buttonEnabled && !this.viewModel?.view?.
|
|
97
|
+
o?.remove(t), e.buttonEnabled && !this.viewModel?.view?.focusRegionVisible && o?.add(t);
|
|
98
98
|
}, { initial: !0 }),
|
|
99
99
|
h(() => [
|
|
100
100
|
this._pointerNode.value,
|
|
@@ -449,28 +449,38 @@ export abstract class ArcgisScene extends LitElement {
|
|
|
449
449
|
*/
|
|
450
450
|
accessor focusAreas: FocusAreas;
|
|
451
451
|
/**
|
|
452
|
-
* The screen rectangle of the active focus region, or `null` when [
|
|
452
|
+
* The screen rectangle of the active focus region, or `null` when [focusRegionVisible](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-scene/#focusRegionVisible) is `false`.
|
|
453
453
|
* This screen rectangle represents the area of the view that is currently in focus and can be used with methods that require a screen rectangle as input, such as `hitTest()`.
|
|
454
454
|
*
|
|
455
455
|
* | Action | Keyboard Shortcut / Property |
|
|
456
456
|
* |--------|----------------------------|
|
|
457
|
-
* | Enable or disable focus region | Use the `Shift` + `Alt`/`Option` + `O` keyboard shortcut while the view component is in focus or set the [
|
|
457
|
+
* | Enable or disable focus region | Use the `Shift` + `Alt`/`Option` + `O` keyboard shortcut while the view component is in focus or set the [focusRegionVisible](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-scene/#focusRegionVisible) property to `true` or `false`. |
|
|
458
458
|
* | Resize focus region | Use the `Shift` + `Alt`/`Option` + Up/Down arrow keys while the focus region is enabled. |
|
|
459
459
|
* | Open the [popup](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-popup/) for features in the focus region | Press `Enter` or `Spacebar` while the focus region is enabled. |
|
|
460
460
|
*
|
|
461
|
-
* **Notes:**
|
|
461
|
+
* **Notes:**
|
|
462
462
|
* - To know when this focus region is selected, listen for the [@arcgisViewFocusRegionSelect](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-scene/#event-arcgisViewFocusRegionSelect) event. The default behavior of the popup component opening with features in the focus region can be prevented by calling `event.preventDefault()` within the event handler.
|
|
463
463
|
* - The styling of the focus region can be customized using the [--arcgis-focus-region-outer-border-color](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-scene/#--arcgis-focus-region-outer-border-color), [--arcgis-focus-region-inner-border-color](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-scene/#--arcgis-focus-region-inner-border-color), and [--arcgis-focus-region-border-width](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-scene/#--arcgis-focus-region-border-width) CSS variables.
|
|
464
|
-
* - When the [
|
|
464
|
+
* - When the [focusRegionVisible](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-scene/#focusRegionVisible) is `true`, the opened [popupElement](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-scene/#popupElement) or slotted [popup component](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-popup/) will be docked with the dock button hidden by default to prevent it from overlapping the focus region.
|
|
465
465
|
*
|
|
466
466
|
* @since 5.2
|
|
467
|
-
* @see [
|
|
467
|
+
* @see [focusRegionVisible](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-scene/#focusRegionVisible)
|
|
468
468
|
* @see [@arcgisViewFocusRegionSelect](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-scene/#event-arcgisViewFocusRegionSelect)
|
|
469
469
|
*/
|
|
470
470
|
get focusRegion(): SceneView["focusRegion"];
|
|
471
471
|
/**
|
|
472
|
-
*
|
|
473
|
-
*
|
|
472
|
+
* Enables the keyboard shortcut for showing the focus region. When undefined, the shortcut
|
|
473
|
+
* is enabled only when a popup component is available and [popupDisabled](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-scene/#popupDisabled) is false.
|
|
474
|
+
* Set to true to handle focus-region selection in a custom application, or false to disable
|
|
475
|
+
* the shortcut. When false, the shortcut does not change focus-region visibility.
|
|
476
|
+
*
|
|
477
|
+
* @default false
|
|
478
|
+
* @since 5.2
|
|
479
|
+
*/
|
|
480
|
+
accessor focusRegionShortcutEnabled: boolean | undefined;
|
|
481
|
+
/**
|
|
482
|
+
* Indicates whether the [focusRegion](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-scene/#focusRegion) is visible. Set this property to `true` to show the centered focus region, or `false` to hide it.
|
|
483
|
+
* The focus region can also be shown or hidden by focusing on the ArcgisScene component and pressing the `Shift` + `Alt`/`Option` + `O` keyboard shortcut. By default, this shortcut is available only when a popup component is available and [popupDisabled](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-scene/#popupDisabled) is `false`. Use [focusRegionShortcutEnabled](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-scene/#focusRegionShortcutEnabled) to explicitly enable or disable it.
|
|
474
484
|
*
|
|
475
485
|
* **Note:** When the focus region is enabled, the [popupElement](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-scene/#popupElement) or slotted [popup component](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-popup/) will be docked with the dock button hidden by default to prevent it from overlapping the focus region.
|
|
476
486
|
*
|
|
@@ -479,7 +489,7 @@ export abstract class ArcgisScene extends LitElement {
|
|
|
479
489
|
* @see [focusRegion](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-scene/#focusRegion)
|
|
480
490
|
* @see [@arcgisViewFocusRegionSelect](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-scene/#event-arcgisViewFocusRegionSelect)
|
|
481
491
|
*/
|
|
482
|
-
accessor
|
|
492
|
+
accessor focusRegionVisible: boolean;
|
|
483
493
|
/** Gamepad input specific configuration settings. */
|
|
484
494
|
get gamepad(): GamepadSettings;
|
|
485
495
|
/**
|
|
@@ -1241,12 +1251,12 @@ export abstract class ArcgisScene extends LitElement {
|
|
|
1241
1251
|
readonly arcgisViewDrag: import("@arcgis/lumina").TargetedEvent<this, DragEvent>;
|
|
1242
1252
|
/**
|
|
1243
1253
|
* Fires when the focus region is selected using the `Enter` or `Space` key. Use this event to react to the selection of the [focusRegion](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-scene/#focusRegion) via keyboard input and perform any necessary actions based on that selection, such as performing a `hitTest()` on the [focusRegion](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-scene/#focusRegion) and passing the returned graphics to the [selectionManager](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-scene/#selectionManager).
|
|
1244
|
-
*
|
|
1254
|
+
*
|
|
1245
1255
|
* Call `event.detail.preventDefault()` to suppress the default behavior of the [popup](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-popup/) opening with the features in the focus region.
|
|
1246
1256
|
*
|
|
1247
1257
|
* @since 5.2
|
|
1248
1258
|
* @see [focusRegion](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-scene/#focusRegion)
|
|
1249
|
-
* @see [
|
|
1259
|
+
* @see [focusRegionVisible](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-scene/#focusRegionVisible)
|
|
1250
1260
|
* @example
|
|
1251
1261
|
* ```js
|
|
1252
1262
|
* viewElement.addEventListener("arcgisViewFocusRegionSelect", async (event) => {
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
2
|
+
import { c as l } from "../../chunks/runtime.js";
|
|
3
3
|
import { html as a } from "lit";
|
|
4
|
-
import
|
|
4
|
+
import p 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
9
|
import { LitElement as d, createEvent as r, safeClassMap as o } from "@arcgis/lumina";
|
|
10
10
|
import { reEmitEvent as t } from "@arcgis/lumina-toolkit/reEmitEvent";
|
|
11
|
-
import { makeAccessorController as w, reCreateAccessor as
|
|
11
|
+
import { makeAccessorController as w, reCreateAccessor as f } from "@arcgis/lumina-toolkit/useAccessor";
|
|
12
12
|
import { createRef as n, ref as h } from "lit/directives/ref.js";
|
|
13
|
-
import { U as
|
|
13
|
+
import { U as y, u as b, a as V, b as C } from "../../chunks/useArcgisViewReadyError.js";
|
|
14
14
|
import { s as _ } from "../../chunks/esri-main.js";
|
|
15
15
|
import { s as E } from "../../chunks/slots.js";
|
|
16
16
|
import { C as c } from "../../chunks/resources.js";
|
|
@@ -18,12 +18,12 @@ import { d as R, e as P, b as A, c as M, p as D, i as I } from "../../chunks/com
|
|
|
18
18
|
const S = w(g, {}), k = w(u, {});
|
|
19
19
|
class F extends d {
|
|
20
20
|
constructor() {
|
|
21
|
-
super(), this._attributionMode = null, this._containerRef = n(), this._mapRef = n(), this._uiController = new
|
|
21
|
+
super(), this._attributionMode = null, this._containerRef = n(), this._mapRef = n(), this._uiController = new y(this), this._cameraProperties = {}, this.arcgisLoadError = b(this), this.arcgisViewReadyError = V(this), this._map = S(this), this.view = k(this), this.allLayerViews = this.view.allLayerViews, this.alphaCompositingEnabled = this.view.alphaCompositingEnabled, this.analyses = this.view.analyses, this.animationsDisabled = this.view.animationsEnabled, 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.options = this.view.options, 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.focusRegionVisible = this.view.focusRegionVisible, 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.timeZone = this.view.timeZone, this.viewingMode = this.view.viewingMode, 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.arcgisViewFocusRegionSelect = t(() => this.view, "focus-region-select"), 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"), C(this), this.view.ui = {
|
|
22
22
|
components: []
|
|
23
23
|
};
|
|
24
24
|
}
|
|
25
25
|
static {
|
|
26
|
-
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, options: 0, padding: 0, performanceInfo: 32, popup: 0, popupElement: 32, popupDisabled: 5, popupComponentEnabled: 5, qualityProfile: 1, ready: 36, resolution: 32, selectionManager: 32,
|
|
26
|
+
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, options: 0, padding: 0, performanceInfo: 32, popup: 0, popupElement: 32, popupDisabled: 5, popupComponentEnabled: 5, qualityProfile: 1, ready: 36, resolution: 32, selectionManager: 32, focusRegionVisible: 5, focusRegionShortcutEnabled: 5, focusRegion: 32, scale: 9, slotGroupRefs: 32, spatialReference: 0, stationary: 32, suspended: 39, theme: 0, timeExtent: 0, timeZone: 1, updating: 32, viewingMode: 1, viewpoint: 0, visibleArea: 32, zoom: 9, loadErrorSources: 0 };
|
|
27
27
|
}
|
|
28
28
|
static {
|
|
29
29
|
this.styles = [_, E];
|
|
@@ -133,7 +133,7 @@ class F extends d {
|
|
|
133
133
|
return this._map.portalItem?.id;
|
|
134
134
|
}
|
|
135
135
|
set itemId(i) {
|
|
136
|
-
|
|
136
|
+
f(this._map, this), this._map.portalItem = { id: i }, this.view.map = this._map;
|
|
137
137
|
}
|
|
138
138
|
get navigating() {
|
|
139
139
|
return this.view.navigating;
|
|
@@ -242,7 +242,7 @@ class F extends d {
|
|
|
242
242
|
i(this._cameraProperties);
|
|
243
243
|
return;
|
|
244
244
|
}
|
|
245
|
-
const e = this.view.camera?.clone() ?? new
|
|
245
|
+
const e = this.view.camera?.clone() ?? new p();
|
|
246
246
|
i(e), this.camera = e;
|
|
247
247
|
}
|
|
248
248
|
renderMain() {
|
|
@@ -252,7 +252,7 @@ class F extends d {
|
|
|
252
252
|
return a`${this.renderMain()}<section class=${o(c.containerUI)} ${h(this._containerRef)}>${this._uiController.render()}</section>`;
|
|
253
253
|
}
|
|
254
254
|
}
|
|
255
|
-
|
|
255
|
+
l("arcgis-scene", F);
|
|
256
256
|
export {
|
|
257
257
|
F as ArcgisScene
|
|
258
258
|
};
|
|
@@ -218,7 +218,7 @@ export abstract class ArcgisTableListNext extends LitElement {
|
|
|
218
218
|
*
|
|
219
219
|
* // Wait for the layer to load and the item title to become available
|
|
220
220
|
* await item.layer.when();
|
|
221
|
-
*
|
|
221
|
+
*
|
|
222
222
|
* // If the item's title matches "US Demographics", customize the list item
|
|
223
223
|
* if (item.title === "US Demographics") {
|
|
224
224
|
* // open the list item in the LayerList component
|
|
@@ -8,10 +8,10 @@ import { LitElement as c, createEvent as m, safeClassMap as d } from "@arcgis/lu
|
|
|
8
8
|
import { makeAccessorController as f } from "@arcgis/lumina-toolkit/useAccessor";
|
|
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 p, s as y, S as
|
|
12
|
-
import { s as
|
|
13
|
-
const
|
|
14
|
-
omitProps: ["container", "
|
|
11
|
+
import { c as p, s as y, S as u } from "../../chunks/slots.js";
|
|
12
|
+
import { s as w } from "../../chunks/esri-main.js";
|
|
13
|
+
const v = h`:host{width:100%;height:100%}`, R = f(l, {
|
|
14
|
+
omitProps: ["container", "focusRegionVisible", "focusRegionShortcutEnabled", "navigation", "scale", "ui"]
|
|
15
15
|
});
|
|
16
16
|
class g extends c {
|
|
17
17
|
constructor() {
|
|
@@ -21,7 +21,7 @@ class g extends c {
|
|
|
21
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
|
-
this.styles = [
|
|
24
|
+
this.styles = [w, y, v];
|
|
25
25
|
}
|
|
26
26
|
get aria() {
|
|
27
27
|
return this.view?.aria;
|
|
@@ -47,7 +47,7 @@ class g extends c {
|
|
|
47
47
|
return e`<div class=${`root ${r.base}`} ${a(this._mapRef)}></div>`;
|
|
48
48
|
}
|
|
49
49
|
render() {
|
|
50
|
-
return e`${this.renderMain()}<section class=${d(r.containerUI)} ${a(this._containerRef)}>${
|
|
50
|
+
return e`${this.renderMain()}<section class=${d(r.containerUI)} ${a(this._containerRef)}>${u({ direction: this._direction, slotGroupRefs: this._slotGroupRefs })}</section>`;
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
o("arcgis-video", g);
|