@arcgis/map-components 5.2.0-next.85 → 5.2.0-next.87
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/3IY3D62Z.js +2 -0
- package/dist/cdn/{YXA3DG4H.js → 3W4IH5LQ.js} +1 -1
- package/dist/cdn/5L5UYV3H.js +2 -0
- package/dist/cdn/6NGRUK5C.js +2 -0
- package/dist/cdn/BPHJ4VBC.js +2 -0
- package/dist/cdn/CFB4ZR5F.js +2 -0
- package/dist/cdn/D6MRDGUC.js +2 -0
- package/dist/cdn/EFUTKX2O.js +2 -0
- package/dist/cdn/{PNSES5YC.js → EGUVICJF.js} +1 -1
- package/dist/cdn/FXK4G4VK.js +2 -0
- package/dist/cdn/GNVPXNTX.js +2 -0
- package/dist/cdn/HTEIMRY6.js +2 -0
- package/dist/cdn/I2D75Q7M.js +2 -0
- package/dist/cdn/IMG5GOJB.js +2 -0
- package/dist/cdn/IOZ5U2X7.js +2 -0
- package/dist/cdn/K3N6NHJW.js +2 -0
- package/dist/cdn/KN4PG54T.js +2 -0
- package/dist/cdn/{56NINR5L.js → KNMMVZVV.js} +1 -1
- package/dist/cdn/M66G67OC.js +2 -0
- package/dist/cdn/MQX2F54G.js +2 -0
- package/dist/cdn/NFWFRHUT.js +2 -0
- package/dist/cdn/PCEAIDCB.js +2 -0
- package/dist/cdn/PMU2DO3P.js +2 -0
- package/dist/cdn/{LTGPFC6N.js → PWEF6IKF.js} +1 -1
- package/dist/cdn/{HWLBIEGO.js → RS5BEGC5.js} +1 -1
- package/dist/cdn/{K4V76SMR.js → TAIZWQYU.js} +1 -1
- package/dist/cdn/TCMRGJTC.js +2 -0
- package/dist/cdn/TPG3TU6B.js +2 -0
- package/dist/cdn/TSZ26CSX.js +2 -0
- package/dist/cdn/V4W4ZP6M.js +2 -0
- package/dist/cdn/XM2OBGXW.js +2 -0
- package/dist/cdn/assets/presentation/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/utility-network-picker/t9n/messages.en.json +1 -0
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/main.css +1 -1
- package/dist/chunks/constants2.js +6 -0
- package/dist/chunks/useArcgisViewReadyError.js +42 -27
- package/dist/components/arcgis-aggregated-features/customElement.js +0 -1
- package/dist/components/arcgis-bookmarks/customElement.js +0 -1
- package/dist/components/arcgis-feature-next/customElement.js +4 -4
- package/dist/components/arcgis-features/customElement.js +3 -3
- package/dist/components/arcgis-features-next/customElement.js +98 -86
- package/dist/components/arcgis-features-next/index.js +0 -1
- package/dist/components/arcgis-grid-controls/customElement.js +1 -1
- package/dist/components/arcgis-link-chart/customElement.d.ts +9 -5
- package/dist/components/arcgis-link-chart/customElement.js +24 -18
- package/dist/components/arcgis-map/customElement.d.ts +9 -5
- package/dist/components/arcgis-map/customElement.js +19 -13
- package/dist/components/arcgis-oriented-imagery-viewer-non-panoramic-viewer/customElement.js +0 -2
- package/dist/components/arcgis-oriented-imagery-viewer-panoramic-viewer/customElement.js +15 -16
- package/dist/components/arcgis-paste/customElement.js +0 -1
- package/dist/components/arcgis-popup/customElement.d.ts +7 -7
- package/dist/components/arcgis-popup/customElement.js +10 -13
- package/dist/components/arcgis-presentation/PresentationViewModel.d.ts +6 -0
- package/dist/components/arcgis-presentation/customElement.d.ts +8 -6
- package/dist/components/arcgis-presentation/customElement.js +206 -165
- package/dist/components/arcgis-presentation/index.js +2 -0
- package/dist/components/arcgis-presentation-captions/customElement.js +4 -4
- package/dist/components/arcgis-presentation-slide-list/customElement.js +49 -0
- package/dist/components/arcgis-presentation-slide-list/index.js +3 -0
- package/dist/components/arcgis-scene/customElement.d.ts +9 -5
- package/dist/components/arcgis-scene/customElement.js +21 -15
- package/dist/components/arcgis-template-image/customElement.js +0 -1
- package/dist/components/arcgis-time-bar/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-picker/customElement.d.ts +56 -0
- package/dist/components/arcgis-utility-network-picker/customElement.js +91 -0
- package/dist/components/arcgis-utility-network-picker/index.d.ts +1 -0
- package/dist/components/arcgis-utility-network-picker/index.js +7 -0
- package/dist/components/arcgis-utility-network-trace-analysis/customElement.js +0 -1
- package/dist/components/arcgis-utility-network-trace-analysis-next/customElement.js +0 -1
- package/dist/components/arcgis-utility-network-trace-inputs-next/customElement.js +123 -140
- package/dist/components/arcgis-utility-network-trace-inputs-next/index.js +2 -1
- package/dist/components/arcgis-utility-network-trace-results/customElement.js +0 -2
- package/dist/components/arcgis-utility-network-trace-results-next/customElement.js +0 -2
- package/dist/components/arcgis-utility-network-validate-network-topology/customElement.js +0 -2
- package/dist/components/arcgis-version-management-service-item/customElement.js +3 -4
- package/dist/components/arcgis-video/customElement.d.ts +5 -3
- package/dist/components/arcgis-video-player-actions-group/customElement.js +6 -6
- package/dist/components/arcgis-video-player-controls-group/customElement.js +1 -1
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/index.d.ts +10 -0
- package/dist/loader.js +4 -2
- package/dist/types/lumina.d.ts +9 -2
- package/dist/types/preact.d.ts +10 -2
- package/dist/types/react.d.ts +11 -2
- package/dist/types/stencil.d.ts +9 -2
- package/package.json +7 -7
- package/dist/cdn/42TPQKQZ.js +0 -2
- package/dist/cdn/4T6ECCFH.js +0 -2
- package/dist/cdn/4UBDCXSK.js +0 -2
- package/dist/cdn/6MEC4BFN.js +0 -2
- package/dist/cdn/AJ7XRBWN.js +0 -2
- package/dist/cdn/ARVN7QLQ.js +0 -2
- package/dist/cdn/BVDQQOCR.js +0 -2
- package/dist/cdn/DKBC3UMW.js +0 -2
- package/dist/cdn/DSIL7TYR.js +0 -2
- package/dist/cdn/G2PAKIMS.js +0 -2
- package/dist/cdn/JOOHHKWH.js +0 -2
- package/dist/cdn/KS5TQB2A.js +0 -2
- package/dist/cdn/NAQYIBE5.js +0 -2
- package/dist/cdn/NBYN44GP.js +0 -2
- package/dist/cdn/NGB5WVIG.js +0 -2
- package/dist/cdn/PBNP6WFU.js +0 -2
- package/dist/cdn/RDARV7HC.js +0 -2
- package/dist/cdn/RXAUCQQC.js +0 -2
- package/dist/cdn/S22ZRUS7.js +0 -2
- package/dist/cdn/SVOAX4K6.js +0 -2
- package/dist/cdn/TI4BX367.js +0 -2
- package/dist/cdn/W5WXJT7N.js +0 -2
- package/dist/cdn/YTC3XBSZ.js +0 -2
|
@@ -181,13 +181,15 @@ export abstract class ArcgisMap extends LitElement {
|
|
|
181
181
|
*/
|
|
182
182
|
get attributionItems(): MapView["attributionItems"];
|
|
183
183
|
/**
|
|
184
|
-
* The
|
|
185
|
-
*
|
|
186
|
-
*
|
|
184
|
+
* The display mode used for the attribution. Defaults to null.
|
|
185
|
+
*
|
|
186
|
+
* Set this property to "auto" to automatically synchronize the attribution with the nearest [Calcite mode](https://developers.arcgis.com/calcite-design-system/core-concepts/#modes). If no Calcite mode is detected, the attribution defaults to light mode. **The "auto" mode was added in version 5.2.**
|
|
187
|
+
*
|
|
188
|
+
* Set this property to "light" or "dark" to explicitly use that mode without synchronization.
|
|
187
189
|
*
|
|
188
190
|
* @since 5.0
|
|
189
191
|
*/
|
|
190
|
-
accessor attributionMode:
|
|
192
|
+
accessor attributionMode: AttributionMode;
|
|
191
193
|
/**
|
|
192
194
|
* If true, the component will not be destroyed automatically when it is
|
|
193
195
|
* disconnected from the document. This is useful when you want to move the
|
|
@@ -1409,4 +1411,6 @@ export abstract class ArcgisMap extends LitElement {
|
|
|
1409
1411
|
arcgisViewReadyError: ArcgisMap["arcgisViewReadyError"]["detail"];
|
|
1410
1412
|
arcgisViewVerticalTwoFingerDrag: ArcgisMap["arcgisViewVerticalTwoFingerDrag"]["detail"];
|
|
1411
1413
|
};
|
|
1412
|
-
}
|
|
1414
|
+
}
|
|
1415
|
+
|
|
1416
|
+
export type AttributionMode = MapView["attributionMode"] | "auto";
|
|
@@ -7,13 +7,13 @@ import v from "@arcgis/core/WebMap.js";
|
|
|
7
7
|
import { LitElement as m, createEvent as r, safeClassMap as o } from "@arcgis/lumina";
|
|
8
8
|
import { makeAccessorController as p, reEmitEvent as e, reCreateAccessor as u } from "@arcgis/lumina/controllers/accessor";
|
|
9
9
|
import { createRef as n, ref as h } from "lit/directives/ref.js";
|
|
10
|
-
import {
|
|
11
|
-
import { s as
|
|
10
|
+
import { U as g, u as d, a as y, b as f } from "../../chunks/useArcgisViewReadyError.js";
|
|
11
|
+
import { s as b } from "../../chunks/esri-main.js";
|
|
12
|
+
import { s as V } from "../../chunks/slots.js";
|
|
12
13
|
import { C as w } from "../../chunks/resources.js";
|
|
13
|
-
import { p as
|
|
14
|
-
import
|
|
15
|
-
|
|
16
|
-
const A = p(
|
|
14
|
+
import { p as C, i as E } from "../../chunks/component-utils.js";
|
|
15
|
+
import A from "@arcgis/core/core/Collection.js";
|
|
16
|
+
const _ = p(
|
|
17
17
|
v,
|
|
18
18
|
/**
|
|
19
19
|
* Since omitProps is only needed for typing, not runtime, `{} as { ... }` is
|
|
@@ -25,9 +25,9 @@ const A = p(
|
|
|
25
25
|
*/
|
|
26
26
|
{}
|
|
27
27
|
), R = p(c, {});
|
|
28
|
-
class
|
|
28
|
+
class M extends m {
|
|
29
29
|
constructor() {
|
|
30
|
-
super(), this._containerRef = n(), this._mapRef = n(), this._uiController = new
|
|
30
|
+
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 = _(this), this.view = R(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.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"), f(this), this.view.ui = {
|
|
31
31
|
components: []
|
|
32
32
|
};
|
|
33
33
|
}
|
|
@@ -35,7 +35,7 @@ class _ extends m {
|
|
|
35
35
|
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, padding: 0, popup: 0, popupElement: 32, popupDisabled: 5, popupComponentEnabled: 5, ready: 36, resizeAlign: 1, resolution: 40, rotation: 9, scale: 9, selectionManager: 32, slotGroupRefs: 32, spatialReference: 0, spatialReferenceLocked: 5, stationary: 32, suspended: 39, theme: 0, timeExtent: 0, timeZone: 1, updating: 36, viewpoint: 0, visibleArea: 32, zoom: 9, loadErrorSources: 0 };
|
|
36
36
|
}
|
|
37
37
|
static {
|
|
38
|
-
this.styles = [
|
|
38
|
+
this.styles = [b, V];
|
|
39
39
|
}
|
|
40
40
|
get aria() {
|
|
41
41
|
return this.view?.aria;
|
|
@@ -46,11 +46,17 @@ class _ extends m {
|
|
|
46
46
|
get attributionItems() {
|
|
47
47
|
return this.view?.attributionItems ?? [];
|
|
48
48
|
}
|
|
49
|
+
get attributionMode() {
|
|
50
|
+
return this._attributionMode;
|
|
51
|
+
}
|
|
52
|
+
set attributionMode(i) {
|
|
53
|
+
this._attributionMode = i, i !== "auto" && (this.view.attributionMode = i);
|
|
54
|
+
}
|
|
49
55
|
get center() {
|
|
50
56
|
return this.view.center;
|
|
51
57
|
}
|
|
52
58
|
set center(i) {
|
|
53
|
-
const t =
|
|
59
|
+
const t = C(i, this.view);
|
|
54
60
|
t && (this.view.center = t);
|
|
55
61
|
}
|
|
56
62
|
get extent() {
|
|
@@ -105,7 +111,7 @@ class _ extends m {
|
|
|
105
111
|
return this.view.viewpoint;
|
|
106
112
|
}
|
|
107
113
|
set viewpoint(i) {
|
|
108
|
-
|
|
114
|
+
E(this.viewpoint, i) && (this.view.viewpoint = i);
|
|
109
115
|
}
|
|
110
116
|
get zoom() {
|
|
111
117
|
return this.view.zoom;
|
|
@@ -178,7 +184,7 @@ class _ extends m {
|
|
|
178
184
|
return a`${this.renderMain()}<section class=${o(w.containerUI)} ${h(this._containerRef)}>${this._uiController.render()}${this.extraContent}</section>`;
|
|
179
185
|
}
|
|
180
186
|
}
|
|
181
|
-
l("arcgis-map",
|
|
187
|
+
l("arcgis-map", M);
|
|
182
188
|
export {
|
|
183
|
-
|
|
189
|
+
M as ArcgisMap
|
|
184
190
|
};
|
package/dist/components/arcgis-oriented-imagery-viewer-non-panoramic-viewer/customElement.js
CHANGED
|
@@ -7,13 +7,11 @@ import { property as h, subclass as C } from "@arcgis/core/core/accessorSupport/
|
|
|
7
7
|
import * as M from "@arcgis/toolkit/log";
|
|
8
8
|
import V from "@arcgis/core/core/Accessor.js";
|
|
9
9
|
import w from "@arcgis/core/geometry/Extent.js";
|
|
10
|
-
import "@arcgis/core/views/MapView.js";
|
|
11
10
|
import b from "@arcgis/core/geometry/SpatialReference.js";
|
|
12
11
|
import { watch as p } from "@arcgis/core/core/reactiveUtils.js";
|
|
13
12
|
import { rotateDimensions as S, registerPanConstraint as F } from "@arcgis/core/applications/Components/OrientedImageryViewer/ImageViewer/utils.js";
|
|
14
13
|
import H from "@arcgis/core/layers/support/TileInfo.js";
|
|
15
14
|
import { u as L } from "../../chunks/useT9n.js";
|
|
16
|
-
import "@arcgis/core/Graphic.js";
|
|
17
15
|
import { G as z } from "../../chunks/graphicsLayerController.js";
|
|
18
16
|
import { createRef as I, ref as T } from "lit/directives/ref.js";
|
|
19
17
|
const O = x`:host{height:100%;--arcgis-view-color-focus: none}`, R = {
|
|
@@ -7,7 +7,6 @@ import { G as ne } from "../../chunks/graphicsLayerController.js";
|
|
|
7
7
|
import { u as le } from "../../chunks/useT9n.js";
|
|
8
8
|
import H from "@arcgis/core/geometry/SpatialReference.js";
|
|
9
9
|
import Q from "@arcgis/core/Graphic.js";
|
|
10
|
-
import "@arcgis/core/Camera.js";
|
|
11
10
|
import he from "@arcgis/core/views/3d/environment/Environment.js";
|
|
12
11
|
import { on as ce, when as me, watch as k } from "@arcgis/core/core/reactiveUtils.js";
|
|
13
12
|
import { once as K, on as J } from "@arcgis/core/applications/Components/baUtils.js";
|
|
@@ -18,17 +17,17 @@ import pe from "@arcgis/core/Ground.js";
|
|
|
18
17
|
import fe from "@arcgis/core/core/Accessor.js";
|
|
19
18
|
import { property as C, subclass as _e } from "@arcgis/core/core/accessorSupport/decorators.js";
|
|
20
19
|
import we from "@arcgis/core/core/Error.js";
|
|
21
|
-
import ge from "
|
|
22
|
-
import {
|
|
23
|
-
import
|
|
24
|
-
import Me from "@arcgis/core/geometry/
|
|
25
|
-
import xe from "@arcgis/core/layers/ImageryTileLayer.js";
|
|
20
|
+
import { t as z, c as ge, a as ve } from "../../chunks/async-utils.js";
|
|
21
|
+
import { guessExtensionFromURI as ye } from "../../chunks/urlUtils.js";
|
|
22
|
+
import be from "@arcgis/core/geometry/Extent.js";
|
|
23
|
+
import Me from "@arcgis/core/geometry/Mesh.js";
|
|
26
24
|
import X from "@arcgis/core/geometry/support/MeshComponent.js";
|
|
27
25
|
import Y from "@arcgis/core/geometry/support/MeshMaterialMetallicRoughness.js";
|
|
28
26
|
import U from "@arcgis/core/geometry/support/MeshTexture.js";
|
|
29
|
-
import
|
|
27
|
+
import xe from "@arcgis/core/geometry/support/MeshVertexAttributes.js";
|
|
30
28
|
import W from "@arcgis/core/geometry/Point.js";
|
|
31
|
-
import { createSphere as
|
|
29
|
+
import { createSphere as Ce } from "@arcgis/core/geometry/support/meshUtils.js";
|
|
30
|
+
import Te from "@arcgis/core/layers/ImageryTileLayer.js";
|
|
32
31
|
import Se from "@arcgis/core/symbols/Font.js";
|
|
33
32
|
import { c as ze, b as Ie, f as Pe } from "../../chunks/utils3.js";
|
|
34
33
|
import Le from "@arcgis/core/symbols/TextSymbol.js";
|
|
@@ -69,7 +68,7 @@ function O({
|
|
|
69
68
|
}) {
|
|
70
69
|
const s = e.clone();
|
|
71
70
|
s.z = -t / 2;
|
|
72
|
-
const n =
|
|
71
|
+
const n = Ce(s, {
|
|
73
72
|
size: t,
|
|
74
73
|
densificationFactor: 2,
|
|
75
74
|
vertexSpace: "georeferenced",
|
|
@@ -243,12 +242,12 @@ class We {
|
|
|
243
242
|
});
|
|
244
243
|
return y.set({
|
|
245
244
|
trustSourceNormals: !0
|
|
246
|
-
}), this._baseMesh = new
|
|
245
|
+
}), this._baseMesh = new Me({
|
|
247
246
|
components: [
|
|
248
247
|
// Dummy component keeps the mesh valid before any tile component is attached.
|
|
249
248
|
y
|
|
250
249
|
],
|
|
251
|
-
vertexAttributes: new
|
|
250
|
+
vertexAttributes: new xe({ position: g, normal: w, uv: v }),
|
|
252
251
|
spatialReference: { wkid: 3857 }
|
|
253
252
|
}), this._baseMesh;
|
|
254
253
|
}
|
|
@@ -471,7 +470,7 @@ class je {
|
|
|
471
470
|
(g + 1) * this._meshBuilder.imageSize[1] / u,
|
|
472
471
|
this._meshBuilder.imageSize[1]
|
|
473
472
|
), T = await this._layer.fetchPixels(
|
|
474
|
-
new
|
|
473
|
+
new be({
|
|
475
474
|
xmin: w - 0.5,
|
|
476
475
|
ymin: 0.5 - f,
|
|
477
476
|
xmax: y - 0.5,
|
|
@@ -613,7 +612,7 @@ let b = class extends fe {
|
|
|
613
612
|
if (this.type === "video")
|
|
614
613
|
return await this.loadVideoMesh(r);
|
|
615
614
|
let e = this.extension;
|
|
616
|
-
if (e || (e =
|
|
615
|
+
if (e || (e = ye(this.url)), !e || !tt.has(e))
|
|
617
616
|
throw new we(
|
|
618
617
|
"unsupported-format",
|
|
619
618
|
this.uiStrings["unsupported-format"] ?? "Unsupported image format: {extension}",
|
|
@@ -625,7 +624,7 @@ let b = class extends fe {
|
|
|
625
624
|
}
|
|
626
625
|
async loadOptimizedImageMesh(r) {
|
|
627
626
|
this._panoramicTileSource?.destroy();
|
|
628
|
-
const e = new
|
|
627
|
+
const e = new Te({
|
|
629
628
|
url: this.url,
|
|
630
629
|
// @ts-ignore - datasetFormat is not part of the official ImageryTileLayer properties, but is used in the custom ioConfig for loading the image and is necessary to pass along the format information.
|
|
631
630
|
datasetFormat: this.extension,
|
|
@@ -877,7 +876,7 @@ class at extends ae {
|
|
|
877
876
|
};
|
|
878
877
|
}, (e) => {
|
|
879
878
|
e && (this._tileUpdateDebounceHandle != null && clearTimeout(this._tileUpdateDebounceHandle), this._tileUpdateDebounceHandle = window.setTimeout(() => {
|
|
880
|
-
this._tileUpdateTask?.abort(), this._tileUpdateTask =
|
|
879
|
+
this._tileUpdateTask?.abort(), this._tileUpdateTask = ge(async (t) => {
|
|
881
880
|
await this._updateTilesForCurrentView(e, t);
|
|
882
881
|
}), this._tileUpdateDebounceHandle = void 0;
|
|
883
882
|
}, 150));
|
|
@@ -964,7 +963,7 @@ class at extends ae {
|
|
|
964
963
|
const f = await i.fetchTileImageData(_, g, w, v.signal);
|
|
965
964
|
z(t), m.desiredKeySet.has(u) && !this.tileCache.has(u) && (i.loadComponent(_, g, w, f), i.markTileLoaded(u), this._attachTileLabel(i, u), this.tileCache.add(u));
|
|
966
965
|
} catch (f) {
|
|
967
|
-
|
|
966
|
+
ve(f) || Re("error", this, "Failed loading panoramic tile component", { detail: { key: u, error: f } });
|
|
968
967
|
} finally {
|
|
969
968
|
t.removeEventListener("abort", y), i.markTileInflightResolved(u);
|
|
970
969
|
}
|
|
@@ -21,7 +21,6 @@ import { c as xe, f as ee } from "../../chunks/layer-utils.js";
|
|
|
21
21
|
import { substitute as b } from "@arcgis/core/intl.js";
|
|
22
22
|
import { usePropertyChange as Pe } from "@arcgis/lumina/controllers";
|
|
23
23
|
import { createRef as V, ref as D } from "lit/directives/ref.js";
|
|
24
|
-
import "../arcgis-multi-feature-form/customElement.js";
|
|
25
24
|
import { createGraphicsMover as $e } from "@arcgis/core/applications/Components/editUtils.js";
|
|
26
25
|
const Ae = pe`.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-hidden{display:none!important}.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}:host{display:flex}.arcgis-paste{height:var(--arcgis-paste-height, 300px);width:var(--arcgis-paste-width, 300px);flex:1}.hidden{display:none}.flex-row{flex-direction:row}.justify-center{justify-content:center}.h-full{height:100%}.w-full{width:100%}.flex{display:flex}.text-center{text-align:center}.pad-contents{padding:var(--arcgis-paste-blocks-padding, var(--calcite-spacing-md))}.merge-feature-form{padding-left:var(--arcgis-paste-blocks-padding, var(--calcite-spacing-md));padding-right:var(--arcgis-paste-blocks-padding, var(--calcite-spacing-md));padding-bottom:var(--arcgis-paste-blocks-padding, var(--calcite-spacing-md))}.pad-start-end{padding-left:var(--arcgis-paste-blocks-padding, var(--calcite-spacing-md));padding-right:var(--arcgis-paste-blocks-padding, var(--calcite-spacing-md))}.gallery-content{padding-top:var(--arcgis-paste-blocks-padding, var(--calcite-spacing-md));padding-bottom:var(--arcgis-paste-blocks-padding, var(--calcite-spacing-md));display:flex;row-gap:var(--arcgis-paste-blocks-padding, var(--calcite-spacing-md));flex-direction:column}.chip-indent{margin-left:5px;margin-right:5px}.merge-split-view-container{display:flex;flex-direction:column;height:100%}.merge-split-view-items{flex:0 1 auto;max-height:50%;overflow-y:scroll}.merge-split-view-attributes{flex:1;overflow-y:scroll}.choose-feature{position:absolute;width:100%;max-height:100%;z-index:2;overflow-y:auto}.bau-pick{display:flex;flex-direction:row;align-items:center;gap:4px}.danger-icon-warning{--calcite-icon-color: var(--calcite-color-status-danger)}.paste-feature-templates{--arcgis-feature-templates-max-list-height: 100%}`;
|
|
27
26
|
async function Ee(e, t = {}) {
|
|
@@ -5,9 +5,8 @@ import type Point from "@arcgis/core/geometry/Point.js";
|
|
|
5
5
|
import type { ArcgisReferenceElement, HeadingLevel } from "../types.js";
|
|
6
6
|
import type { Alignment, DockOptions, PopupPositionResult, FetchFeaturesOptions } from "./types.js";
|
|
7
7
|
import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
8
|
-
import type { ActionEvent
|
|
8
|
+
import type { ActionEvent } from "@arcgis/core/widgets/Popup/types.js";
|
|
9
9
|
import type { ScreenPoint } from "@arcgis/core/core/types.js";
|
|
10
|
-
import type { ClickEvent } from "@arcgis/core/views/input/types.js";
|
|
11
10
|
import type { ArcgisFeaturesNext } from "../arcgis-features-next/customElement.js";
|
|
12
11
|
import type { ArcgisFeatureNext } from "../arcgis-feature-next/customElement.js";
|
|
13
12
|
import type { T9nMeta } from "@arcgis/lumina/controllers";
|
|
@@ -302,6 +301,12 @@ export abstract class ArcgisPopup extends LitElement {
|
|
|
302
301
|
* ```
|
|
303
302
|
*/
|
|
304
303
|
accessor features: Array<Graphic>;
|
|
304
|
+
/**
|
|
305
|
+
* Streams features into the component as they become available.
|
|
306
|
+
*
|
|
307
|
+
* @internal
|
|
308
|
+
*/
|
|
309
|
+
accessor featureStream: AsyncGenerator<Graphic, any, any> | null | undefined;
|
|
305
310
|
/**
|
|
306
311
|
* When `true`, this prevents the popup from trapping focus when opened.
|
|
307
312
|
* Preventing focus trapping can be used in scenarios where interactions are expected within the user interface, such as when the popup resides in a panel.
|
|
@@ -588,11 +593,6 @@ export abstract class ArcgisPopup extends LitElement {
|
|
|
588
593
|
* @see [open](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-popup/#open)
|
|
589
594
|
*/
|
|
590
595
|
fetchFeatures(screenPoint?: ScreenPoint, options?: FetchFeaturesOptions): Promise<void>;
|
|
591
|
-
/**
|
|
592
|
-
* @param event
|
|
593
|
-
* @internal
|
|
594
|
-
*/
|
|
595
|
-
handleViewClick(event: ClickEvent): Promise<PopupOpenOptions>;
|
|
596
596
|
/**
|
|
597
597
|
* Selects the feature at the next index in relation to the selected feature.
|
|
598
598
|
*
|
|
@@ -5,15 +5,15 @@ import P from "@arcgis/core/popup/FeatureContentCollection.js";
|
|
|
5
5
|
import { u as O } from "../../chunks/useT9n.js";
|
|
6
6
|
import { useDirection as F, usePropertyChange as $ } from "@arcgis/lumina/controllers";
|
|
7
7
|
import { m as N } from "../../chunks/useViewModel.js";
|
|
8
|
-
import { LitElement as
|
|
8
|
+
import { LitElement as S, createEvent as _, safeStyleMap as L, 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";
|
|
11
11
|
import { createRef as g, ref as m } from "lit/directives/ref.js";
|
|
12
12
|
import { watch as p } from "@arcgis/core/core/reactiveUtils.js";
|
|
13
|
-
import
|
|
14
|
-
import { t as
|
|
13
|
+
import H from "@arcgis/core/support/actions/ActionButton.js";
|
|
14
|
+
import { t as B } from "../../chunks/screenLocation.js";
|
|
15
15
|
import "../arcgis-search-result-renderer/customElement.js";
|
|
16
|
-
const
|
|
16
|
+
const V = E`: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
|
}
|
|
@@ -24,17 +24,17 @@ const I = N(P), C = {
|
|
|
24
24
|
width: 544
|
|
25
25
|
}
|
|
26
26
|
};
|
|
27
|
-
class j extends
|
|
27
|
+
class j extends S {
|
|
28
28
|
constructor() {
|
|
29
|
-
super(...arguments), this._direction = F(), this._featuresComponent = g(), this._dockAction = new
|
|
29
|
+
super(...arguments), this._direction = F(), 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 = B(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.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.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, 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 };
|
|
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, featureStream: 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
|
-
this.styles =
|
|
37
|
+
this.styles = V;
|
|
38
38
|
}
|
|
39
39
|
get trackLocation() {
|
|
40
40
|
return this.active && !this.dockEnabled;
|
|
@@ -64,9 +64,6 @@ class j extends L {
|
|
|
64
64
|
get selectedFeatureComponent() {
|
|
65
65
|
return this._featuresComponent.value?.selectedFeatureComponent ?? null;
|
|
66
66
|
}
|
|
67
|
-
async handleViewClick(t) {
|
|
68
|
-
return this.viewModel.handleViewClick(t);
|
|
69
|
-
}
|
|
70
67
|
async clear() {
|
|
71
68
|
this.viewModel.clear();
|
|
72
69
|
}
|
|
@@ -338,7 +335,7 @@ class j extends L {
|
|
|
338
335
|
"is-sm-height-breakpoint": d === "small",
|
|
339
336
|
"is-xs-height-breakpoint": d === "xsmall"
|
|
340
337
|
};
|
|
341
|
-
return w`<div style=${
|
|
338
|
+
return w`<div style=${L(s)} class=${y(x("root", v, {
|
|
342
339
|
hidden: !n || !s && !e
|
|
343
340
|
}))} .ariaHidden=${!n} .ariaLabel=${T(this.heading ?? "")} role=dialog popover=manual ${m(this._containerNode)}>${this._renderMainContainer()}${this._renderPointer()}</div>`;
|
|
344
341
|
}
|
|
@@ -32,6 +32,12 @@ export default class PresentationViewModel extends Accessor {
|
|
|
32
32
|
accessor transitionActive: boolean;
|
|
33
33
|
accessor view: SceneView | undefined;
|
|
34
34
|
get visibleSlides(): Collection<Slide>;
|
|
35
|
+
/**
|
|
36
|
+
* @param slide
|
|
37
|
+
* @param doubleClick
|
|
38
|
+
* @param abortcontroller
|
|
39
|
+
*/
|
|
40
|
+
applySlide(slide: Slide, doubleClick?: boolean, abortcontroller?: AbortController): Promise<void>;
|
|
35
41
|
/**
|
|
36
42
|
* @param event
|
|
37
43
|
* @param direction
|
|
@@ -21,6 +21,7 @@ export abstract class ArcgisPresentation extends LitElement {
|
|
|
21
21
|
slideNavAriaText: string;
|
|
22
22
|
previous: string;
|
|
23
23
|
next: string;
|
|
24
|
+
slideList: string;
|
|
24
25
|
restart: string;
|
|
25
26
|
legend: string;
|
|
26
27
|
}> & T9nMeta<{
|
|
@@ -29,6 +30,7 @@ export abstract class ArcgisPresentation extends LitElement {
|
|
|
29
30
|
slideNavAriaText: string;
|
|
30
31
|
previous: string;
|
|
31
32
|
next: string;
|
|
33
|
+
slideList: string;
|
|
32
34
|
restart: string;
|
|
33
35
|
legend: string;
|
|
34
36
|
}>;
|
|
@@ -56,12 +58,6 @@ export abstract class ArcgisPresentation extends LitElement {
|
|
|
56
58
|
* @default false
|
|
57
59
|
*/
|
|
58
60
|
accessor navigationHidden: boolean;
|
|
59
|
-
/**
|
|
60
|
-
* specifies the size of the component
|
|
61
|
-
*
|
|
62
|
-
* @default "m"
|
|
63
|
-
*/
|
|
64
|
-
accessor scale: "l" | "m" | "s";
|
|
65
61
|
/**
|
|
66
62
|
* Show the slice analysis of a slide interactive so manipulators will be displayed, allowing users to click and drag to edit the analysis.
|
|
67
63
|
* Per default interactive is set to false.
|
|
@@ -99,6 +95,12 @@ export abstract class ArcgisPresentation extends LitElement {
|
|
|
99
95
|
* > **Note:** The recommended approach is to fully migrate applications to use map and scene components and avoid using MapView and SceneView directly. However, if you are migrating a large application from widgets to components, you might prefer a more gradual transition. To support this use case, the SDK includes this `view` property which connects a component to a MapView or SceneView. Ultimately, once migration is complete, the arcgis-presentation component will be associated with a map or scene component rather than using the `view` property.
|
|
100
96
|
*/
|
|
101
97
|
accessor view: SceneView | undefined;
|
|
98
|
+
/**
|
|
99
|
+
* specifies the size of the component
|
|
100
|
+
*
|
|
101
|
+
* @default "m"
|
|
102
|
+
*/
|
|
103
|
+
accessor visualScale: "l" | "m" | "s";
|
|
102
104
|
/** Permanently destroy the component */
|
|
103
105
|
destroy(): Promise<void>;
|
|
104
106
|
/**
|