@arcgis/map-components 5.2.0-next.86 → 5.2.0-next.88
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/2GQ6KVNI.js +2 -0
- package/dist/cdn/3CFRD2EN.js +2 -0
- package/dist/cdn/{YXA3DG4H.js → 3W4IH5LQ.js} +1 -1
- package/dist/cdn/5L5UYV3H.js +2 -0
- package/dist/cdn/{7IWMEBK6.js → 6BNYO33V.js} +1 -1
- 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/JXBEE5GW.js +2 -0
- package/dist/cdn/JZC42PXS.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/NB5DQKQY.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/TPG3TU6B.js +2 -0
- package/dist/cdn/TRFWUKXA.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-area-measurement-2d/customElement.d.ts +10 -0
- package/dist/components/arcgis-area-measurement-3d/customElement.d.ts +10 -0
- package/dist/components/arcgis-attachments/customElement.d.ts +10 -0
- package/dist/components/arcgis-basemap-gallery/customElement.d.ts +10 -0
- package/dist/components/arcgis-basemap-layer-list/customElement.d.ts +23 -0
- package/dist/components/arcgis-basemap-layer-list-next/customElement.d.ts +604 -51
- package/dist/components/arcgis-basemap-layer-list-next/customElement.js +2 -2
- package/dist/components/arcgis-basemap-layer-list-next/types.d.ts +39 -0
- package/dist/components/arcgis-basemap-toggle/customElement.d.ts +10 -0
- package/dist/components/arcgis-bookmarks/customElement.d.ts +20 -0
- package/dist/components/arcgis-bookmarks/customElement.js +0 -1
- package/dist/components/arcgis-building-explorer/customElement.d.ts +10 -0
- package/dist/components/arcgis-catalog-layer-list/customElement.d.ts +23 -0
- package/dist/components/arcgis-catalog-layer-list-next/customElement.d.ts +433 -59
- package/dist/components/arcgis-catalog-layer-list-next/customElement.js +2 -2
- package/dist/components/arcgis-catalog-layer-list-next/types.d.ts +41 -6
- package/dist/components/arcgis-compass/customElement.d.ts +10 -0
- package/dist/components/arcgis-coordinate-conversion/customElement.d.ts +10 -0
- package/dist/components/arcgis-coordinate-conversion-next/customElement.d.ts +10 -0
- package/dist/components/arcgis-daylight/customElement.d.ts +10 -0
- package/dist/components/arcgis-direct-line-measurement-3d/customElement.d.ts +10 -0
- package/dist/components/arcgis-directional-pad/customElement.d.ts +10 -0
- package/dist/components/arcgis-directions/customElement.d.ts +10 -0
- package/dist/components/arcgis-distance-measurement-2d/customElement.d.ts +10 -0
- package/dist/components/arcgis-editor/customElement.d.ts +10 -0
- package/dist/components/arcgis-elevation-profile/customElement.d.ts +10 -0
- package/dist/components/arcgis-expand/customElement.d.ts +10 -0
- package/dist/components/arcgis-feature/customElement.d.ts +10 -0
- package/dist/components/arcgis-feature-form/customElement.d.ts +10 -0
- package/dist/components/arcgis-feature-next/customElement.d.ts +32 -1
- package/dist/components/arcgis-feature-next/customElement.js +4 -4
- package/dist/components/arcgis-feature-table/customElement.d.ts +10 -0
- package/dist/components/arcgis-feature-templates/customElement.d.ts +10 -0
- package/dist/components/arcgis-feature-templates-legacy/customElement.d.ts +10 -0
- package/dist/components/arcgis-features/customElement.d.ts +20 -0
- package/dist/components/arcgis-features/customElement.js +3 -3
- package/dist/components/arcgis-features-next/customElement.d.ts +32 -1
- package/dist/components/arcgis-features-next/customElement.js +98 -86
- package/dist/components/arcgis-features-next/index.js +0 -1
- package/dist/components/arcgis-floor-filter/customElement.d.ts +10 -0
- package/dist/components/arcgis-grid-controls/customElement.d.ts +10 -0
- package/dist/components/arcgis-grid-controls/customElement.js +1 -1
- package/dist/components/arcgis-histogram-range-slider/customElement.d.ts +10 -0
- package/dist/components/arcgis-home/customElement.d.ts +10 -0
- package/dist/components/arcgis-layer-list/customElement.d.ts +20 -0
- package/dist/components/arcgis-layer-list-next/customElement.d.ts +285 -123
- package/dist/components/arcgis-layer-list-next/customElement.js +2 -3
- package/dist/components/arcgis-layer-list-next/types.d.ts +44 -6
- package/dist/components/arcgis-legend/customElement.d.ts +10 -0
- package/dist/components/arcgis-line-of-sight/customElement.d.ts +10 -0
- package/dist/components/arcgis-link-chart/customElement.d.ts +19 -5
- package/dist/components/arcgis-link-chart/customElement.js +24 -18
- package/dist/components/arcgis-link-chart-layout-switcher/customElement.d.ts +10 -0
- package/dist/components/arcgis-link-chart-nonspatial-visibility-toggle/customElement.d.ts +10 -0
- package/dist/components/arcgis-locate/customElement.d.ts +10 -0
- package/dist/components/arcgis-map/customElement.d.ts +19 -5
- package/dist/components/arcgis-map/customElement.js +19 -13
- package/dist/components/arcgis-measurement/customElement.d.ts +10 -0
- package/dist/components/arcgis-multi-feature-form/customElement.d.ts +25 -1
- package/dist/components/arcgis-navigation-toggle/customElement.d.ts +10 -0
- package/dist/components/arcgis-oriented-imagery-viewer/customElement.d.ts +10 -0
- 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-oriented-imagery-viewer-panoramic-viewer-zoom/customElement.d.ts +10 -0
- package/dist/components/arcgis-paste/customElement.d.ts +10 -0
- package/dist/components/arcgis-paste/customElement.js +0 -1
- package/dist/components/arcgis-popup/customElement.d.ts +27 -7
- package/dist/components/arcgis-popup/customElement.js +11 -14
- package/dist/components/arcgis-presentation/PresentationViewModel.d.ts +6 -0
- package/dist/components/arcgis-presentation/customElement.d.ts +18 -6
- package/dist/components/arcgis-presentation/customElement.js +197 -157
- 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-print/customElement.d.ts +10 -0
- package/dist/components/arcgis-scale-bar/customElement.d.ts +10 -0
- package/dist/components/arcgis-scale-range-slider/customElement.d.ts +10 -0
- package/dist/components/arcgis-scene/customElement.d.ts +19 -5
- package/dist/components/arcgis-scene/customElement.js +21 -15
- package/dist/components/arcgis-search/customElement.d.ts +10 -0
- package/dist/components/arcgis-search-result-renderer/customElement.d.ts +10 -0
- package/dist/components/arcgis-selection-toolbar/customElement.d.ts +10 -0
- package/dist/components/arcgis-shadow-cast/customElement.d.ts +10 -0
- package/dist/components/arcgis-sketch/customElement.d.ts +10 -0
- package/dist/components/arcgis-slice/customElement.d.ts +10 -0
- package/dist/components/arcgis-slider-binary-color-size-legacy/customElement.d.ts +10 -0
- package/dist/components/arcgis-slider-classed-color-legacy/customElement.d.ts +10 -0
- package/dist/components/arcgis-slider-classed-size-legacy/customElement.d.ts +10 -0
- package/dist/components/arcgis-slider-color-legacy/customElement.d.ts +10 -0
- package/dist/components/arcgis-slider-color-size-legacy/customElement.d.ts +10 -0
- package/dist/components/arcgis-slider-heatmap-legacy/customElement.d.ts +10 -0
- package/dist/components/arcgis-slider-opacity-legacy/customElement.d.ts +10 -0
- package/dist/components/arcgis-slider-scale-range/customElement.d.ts +10 -0
- package/dist/components/arcgis-slider-size-legacy/customElement.d.ts +10 -0
- package/dist/components/arcgis-snapping-controls/customElement.d.ts +10 -0
- package/dist/components/arcgis-swipe/customElement.d.ts +10 -0
- package/dist/components/arcgis-table-list/customElement.d.ts +102 -15
- package/dist/components/arcgis-table-list-next/customElement.d.ts +310 -44
- package/dist/components/arcgis-table-list-next/customElement.js +2 -3
- package/dist/components/arcgis-table-list-next/types.d.ts +37 -0
- package/dist/components/arcgis-template-image/customElement.js +0 -1
- package/dist/components/arcgis-time-bar/customElement.d.ts +10 -0
- package/dist/components/arcgis-time-bar/customElement.js +1 -1
- package/dist/components/arcgis-time-bar-slider/customElement.d.ts +10 -0
- package/dist/components/arcgis-time-slider/customElement.d.ts +10 -0
- package/dist/components/arcgis-track/customElement.d.ts +10 -0
- package/dist/components/arcgis-utility-network-aggregated-geometry/customElement.d.ts +10 -0
- package/dist/components/arcgis-utility-network-aggregated-geometry-result-item/customElement.d.ts +10 -0
- package/dist/components/arcgis-utility-network-associations/customElement.d.ts +10 -0
- 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/customElement.d.ts +10 -0
- package/dist/components/arcgis-utility-network-trace-analysis/customElement.d.ts +10 -0
- package/dist/components/arcgis-utility-network-trace-analysis/customElement.js +0 -1
- package/dist/components/arcgis-utility-network-trace-analysis-next/customElement.d.ts +10 -0
- package/dist/components/arcgis-utility-network-trace-analysis-next/customElement.js +0 -1
- package/dist/components/arcgis-utility-network-trace-inputs/customElement.d.ts +10 -0
- package/dist/components/arcgis-utility-network-trace-inputs-next/customElement.d.ts +10 -0
- 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-location/customElement.d.ts +10 -0
- package/dist/components/arcgis-utility-network-trace-location-next/customElement.d.ts +10 -0
- package/dist/components/arcgis-utility-network-trace-results/customElement.d.ts +10 -0
- package/dist/components/arcgis-utility-network-trace-results/customElement.js +0 -2
- package/dist/components/arcgis-utility-network-trace-results-next/customElement.d.ts +10 -0
- 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-utility-network-validate-topology/customElement.d.ts +10 -0
- package/dist/components/arcgis-value-picker-legacy/customElement.d.ts +10 -0
- package/dist/components/arcgis-version-management/customElement.d.ts +10 -0
- package/dist/components/arcgis-version-management-service-item/customElement.js +3 -4
- package/dist/components/arcgis-video/customElement.d.ts +15 -3
- package/dist/components/arcgis-video-player/customElement.d.ts +10 -0
- 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/components/arcgis-volume-measurement/customElement.d.ts +22 -1
- package/dist/components/arcgis-weather/customElement.d.ts +10 -0
- package/dist/components/arcgis-zoom/customElement.d.ts +10 -0
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/index.d.ts +10 -0
- package/dist/loader.js +5 -3
- package/dist/types/lumina.d.ts +10 -3
- package/dist/types/preact.d.ts +11 -3
- package/dist/types/react.d.ts +12 -3
- package/dist/types/stencil.d.ts +10 -3
- package/package.json +7 -7
- package/dist/cdn/3UUQJCZL.js +0 -2
- 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/FZHWZNBO.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/TUTTPXC5.js +0 -2
- package/dist/cdn/W5WXJT7N.js +0 -2
- package/dist/cdn/YTC3XBSZ.js +0 -2
|
@@ -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
|
}
|
package/dist/components/arcgis-oriented-imagery-viewer-panoramic-viewer-zoom/customElement.d.ts
CHANGED
|
@@ -16,6 +16,16 @@ export abstract class ArcgisOrientedImageryViewerPanoramicViewerZoom extends Lit
|
|
|
16
16
|
* prevent memory leaks.
|
|
17
17
|
*
|
|
18
18
|
* @default false
|
|
19
|
+
* @example
|
|
20
|
+
*
|
|
21
|
+
* ```html
|
|
22
|
+
* <arcgis-oriented-imagery-viewer-panoramic-viewer-zoom auto-destroy-disabled></arcgis-oriented-imagery-viewer-panoramic-viewer-zoom>
|
|
23
|
+
* ```
|
|
24
|
+
*
|
|
25
|
+
* ```js
|
|
26
|
+
* orientedImageryViewerPanoramicViewerZoomElement.autoDestroyDisabled = true;
|
|
27
|
+
* ```
|
|
28
|
+
*
|
|
19
29
|
*/
|
|
20
30
|
accessor autoDestroyDisabled: boolean;
|
|
21
31
|
get hfov(): number | undefined;
|
|
@@ -158,6 +158,16 @@ export abstract class ArcgisPaste extends LitElement {
|
|
|
158
158
|
* prevent memory leaks.
|
|
159
159
|
*
|
|
160
160
|
* @default false
|
|
161
|
+
* @example
|
|
162
|
+
*
|
|
163
|
+
* ```html
|
|
164
|
+
* <arcgis-paste auto-destroy-disabled></arcgis-paste>
|
|
165
|
+
* ```
|
|
166
|
+
*
|
|
167
|
+
* ```js
|
|
168
|
+
* pasteElement.autoDestroyDisabled = true;
|
|
169
|
+
* ```
|
|
170
|
+
*
|
|
161
171
|
*/
|
|
162
172
|
accessor autoDestroyDisabled: boolean;
|
|
163
173
|
/** Called before the the paste is applied. */
|
|
@@ -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";
|
|
@@ -175,6 +174,16 @@ export abstract class ArcgisPopup extends LitElement {
|
|
|
175
174
|
* prevent memory leaks.
|
|
176
175
|
*
|
|
177
176
|
* @default false
|
|
177
|
+
* @example
|
|
178
|
+
*
|
|
179
|
+
* ```html
|
|
180
|
+
* <arcgis-popup auto-destroy-disabled></arcgis-popup>
|
|
181
|
+
* ```
|
|
182
|
+
*
|
|
183
|
+
* ```js
|
|
184
|
+
* popupElement.autoDestroyDisabled = true;
|
|
185
|
+
* ```
|
|
186
|
+
*
|
|
178
187
|
*/
|
|
179
188
|
accessor autoDestroyDisabled: boolean;
|
|
180
189
|
/**
|
|
@@ -302,6 +311,12 @@ export abstract class ArcgisPopup extends LitElement {
|
|
|
302
311
|
* ```
|
|
303
312
|
*/
|
|
304
313
|
accessor features: Array<Graphic>;
|
|
314
|
+
/**
|
|
315
|
+
* Streams features into the component as they become available.
|
|
316
|
+
*
|
|
317
|
+
* @internal
|
|
318
|
+
*/
|
|
319
|
+
accessor featureStream: AsyncGenerator<Graphic, any, any> | null | undefined;
|
|
305
320
|
/**
|
|
306
321
|
* When `true`, this prevents the popup from trapping focus when opened.
|
|
307
322
|
* 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.
|
|
@@ -403,6 +418,16 @@ export abstract class ArcgisPopup extends LitElement {
|
|
|
403
418
|
* Indicates whether to hide the component's [heading](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-popup/#heading).
|
|
404
419
|
*
|
|
405
420
|
* @default false
|
|
421
|
+
* @example
|
|
422
|
+
*
|
|
423
|
+
* ```html
|
|
424
|
+
* <arcgis-popup hide-heading></arcgis-popup>
|
|
425
|
+
* ```
|
|
426
|
+
*
|
|
427
|
+
* ```js
|
|
428
|
+
* popupElement.hideHeading = true;
|
|
429
|
+
* ```
|
|
430
|
+
*
|
|
406
431
|
*/
|
|
407
432
|
accessor hideHeading: boolean;
|
|
408
433
|
/**
|
|
@@ -588,11 +613,6 @@ export abstract class ArcgisPopup extends LitElement {
|
|
|
588
613
|
* @see [open](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-popup/#open)
|
|
589
614
|
*/
|
|
590
615
|
fetchFeatures(screenPoint?: ScreenPoint, options?: FetchFeaturesOptions): Promise<void>;
|
|
591
|
-
/**
|
|
592
|
-
* @param event
|
|
593
|
-
* @internal
|
|
594
|
-
*/
|
|
595
|
-
handleViewClick(event: ClickEvent): Promise<PopupOpenOptions>;
|
|
596
616
|
/**
|
|
597
617
|
* Selects the feature at the next index in relation to the selected feature.
|
|
598
618
|
*
|
|
@@ -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,9 +335,9 @@ 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
|
-
}))} .ariaHidden=${!n} .ariaLabel=${T(this.heading ?? "")}
|
|
340
|
+
}))} .ariaHidden=${!n} .ariaLabel=${T(this.heading ?? "")} popover=manual ${m(this._containerNode)}>${this._renderMainContainer()}${this._renderPointer()}</div>`;
|
|
344
341
|
}
|
|
345
342
|
_renderPointer() {
|
|
346
343
|
return !this.dockEnabled || !this.active ? w`<div class="pointer" role=presentation><div class=${y(x("pointer-direction", "shadow"))} ${m(this._pointerNode)}></div></div>` : null;
|
|
@@ -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
|
}>;
|
|
@@ -40,6 +42,16 @@ export abstract class ArcgisPresentation extends LitElement {
|
|
|
40
42
|
* prevent memory leaks.
|
|
41
43
|
*
|
|
42
44
|
* @default false
|
|
45
|
+
* @example
|
|
46
|
+
*
|
|
47
|
+
* ```html
|
|
48
|
+
* <arcgis-presentation auto-destroy-disabled></arcgis-presentation>
|
|
49
|
+
* ```
|
|
50
|
+
*
|
|
51
|
+
* ```js
|
|
52
|
+
* presentationElement.autoDestroyDisabled = true;
|
|
53
|
+
* ```
|
|
54
|
+
*
|
|
43
55
|
*/
|
|
44
56
|
accessor autoDestroyDisabled: boolean;
|
|
45
57
|
/**
|
|
@@ -56,12 +68,6 @@ export abstract class ArcgisPresentation extends LitElement {
|
|
|
56
68
|
* @default false
|
|
57
69
|
*/
|
|
58
70
|
accessor navigationHidden: boolean;
|
|
59
|
-
/**
|
|
60
|
-
* specifies the size of the component
|
|
61
|
-
*
|
|
62
|
-
* @default "m"
|
|
63
|
-
*/
|
|
64
|
-
accessor scale: "l" | "m" | "s";
|
|
65
71
|
/**
|
|
66
72
|
* Show the slice analysis of a slide interactive so manipulators will be displayed, allowing users to click and drag to edit the analysis.
|
|
67
73
|
* Per default interactive is set to false.
|
|
@@ -99,6 +105,12 @@ export abstract class ArcgisPresentation extends LitElement {
|
|
|
99
105
|
* > **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
106
|
*/
|
|
101
107
|
accessor view: SceneView | undefined;
|
|
108
|
+
/**
|
|
109
|
+
* specifies the size of the component
|
|
110
|
+
*
|
|
111
|
+
* @default "m"
|
|
112
|
+
*/
|
|
113
|
+
accessor visualScale: "l" | "m" | "s";
|
|
102
114
|
/** Permanently destroy the component */
|
|
103
115
|
destroy(): Promise<void>;
|
|
104
116
|
/**
|