@arcgis/map-components 5.2.0-next.23 → 5.2.0-next.25
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/32XG4IQO.js +2 -0
- package/dist/cdn/{BXK5DVDN.js → 4BJSMXKG.js} +1 -1
- package/dist/cdn/5P3LF4QU.js +2 -0
- package/dist/cdn/5RXWVXJA.js +2 -0
- package/dist/cdn/7TE4BSW7.js +2 -0
- package/dist/cdn/{23VXN3VB.js → AASOO75T.js} +1 -1
- package/dist/cdn/B56MNMJP.js +2 -0
- package/dist/cdn/BGWYOIKY.js +2 -0
- package/dist/cdn/BV6DN77M.js +2 -0
- package/dist/cdn/BXDVZQ2A.js +3 -0
- package/dist/cdn/CXHORYLL.js +2 -0
- package/dist/cdn/DKG4Q4BC.js +2 -0
- package/dist/cdn/{MJ2AUX7N.js → F7ZQA7S5.js} +1 -1
- package/dist/cdn/{HFDHHI2B.js → FHL4L2ZY.js} +1 -1
- package/dist/cdn/{2BESNRQI.js → FPX4MV2U.js} +1 -1
- package/dist/cdn/FWRUNJU5.js +2 -0
- package/dist/cdn/HUBIN764.js +2 -0
- package/dist/cdn/KLKFMZ7U.js +2 -0
- package/dist/cdn/NR6V3DTH.js +2 -0
- package/dist/cdn/P3U6DQN6.js +2 -0
- package/dist/cdn/{UA3OPWND.js → PGCAY24R.js} +1 -1
- package/dist/cdn/{Z257GCMR.js → Q4PNCUBK.js} +1 -1
- package/dist/cdn/{XVNU3EUN.js → UCEBZVNP.js} +1 -1
- package/dist/cdn/{XPD6NXPE.js → UGOZSFW2.js} +1 -1
- package/dist/cdn/VZVNKP6W.js +2 -0
- package/dist/cdn/W67QMPVV.js +2 -0
- package/dist/cdn/XDKYOMSQ.js +2 -0
- package/dist/cdn/{6HLRQHTF.js → YKNC7IPO.js} +1 -1
- package/dist/cdn/ZAYZVEUD.js +2 -0
- package/dist/cdn/assets/basemap-layer-list-next/t9n/messages.en.json +1 -0
- package/dist/cdn/assets/catalog-layer-list-next/t9n/messages.en.json +1 -0
- package/dist/cdn/assets/table-list-next/t9n/messages.en.json +1 -0
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/main.css +1 -1
- package/dist/chunks/keyboard-utils.js +15 -0
- package/dist/chunks/layer-list-item-indicator.js +1 -1
- package/dist/chunks/layer-list-item.js +6 -0
- package/dist/chunks/layer-list-utils.js +6 -6
- package/dist/chunks/slots.js +1 -1
- package/dist/components/arcgis-basemap-gallery/customElement.js +33 -32
- package/dist/components/arcgis-basemap-layer-list-next/customElement.d.ts +241 -0
- package/dist/components/arcgis-basemap-layer-list-next/customElement.js +329 -0
- package/dist/components/arcgis-basemap-layer-list-next/index.d.ts +1 -0
- package/dist/components/arcgis-basemap-layer-list-next/index.js +14 -0
- package/dist/components/arcgis-catalog-layer-list-next/customElement.d.ts +179 -0
- package/dist/components/arcgis-catalog-layer-list-next/customElement.js +263 -0
- package/dist/components/arcgis-catalog-layer-list-next/index.d.ts +1 -0
- package/dist/components/arcgis-catalog-layer-list-next/index.js +10 -0
- package/dist/components/arcgis-catalog-layer-list-next/types.d.ts +6 -0
- package/dist/components/arcgis-editor/customElement.js +18 -6
- package/dist/components/arcgis-expand/customElement.js +1 -1
- package/dist/components/arcgis-feature-media/customElement.js +45 -44
- package/dist/components/arcgis-features/customElement.js +26 -25
- package/dist/components/arcgis-features-next/customElement.js +22 -21
- package/dist/components/arcgis-floor-filter/customElement.js +3 -3
- package/dist/components/arcgis-layer-list-next/customElement.d.ts +9 -9
- package/dist/components/arcgis-layer-list-next/customElement.js +67 -66
- package/dist/components/arcgis-layer-list-next/index.js +2 -2
- package/dist/components/arcgis-layer-list-next/layer-list-item/customElement.js +1 -1
- package/dist/components/arcgis-navigation-toggle/customElement.js +45 -26
- package/dist/components/arcgis-navigation-toggle/index.js +1 -0
- package/dist/components/arcgis-paste/PasteViewModel.d.ts +3 -1
- package/dist/components/arcgis-paste/customElement.d.ts +6 -0
- package/dist/components/arcgis-paste/customElement.js +9 -6
- package/dist/components/arcgis-popup/customElement.d.ts +2 -3
- package/dist/components/arcgis-popup/customElement.js +27 -27
- package/dist/components/arcgis-presentation/customElement.d.ts +18 -0
- package/dist/components/arcgis-presentation/customElement.js +90 -88
- package/dist/components/arcgis-sketch/customElement.d.ts +16 -1
- package/dist/components/arcgis-sketch/customElement.js +25 -19
- package/dist/components/arcgis-table-list-next/customElement.d.ts +235 -0
- package/dist/components/arcgis-table-list-next/customElement.js +200 -0
- package/dist/components/arcgis-table-list-next/index.d.ts +1 -0
- package/dist/components/arcgis-table-list-next/index.js +7 -0
- package/dist/components/arcgis-weather/customElement.js +105 -110
- 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 +30 -0
- package/dist/loader.js +6 -3
- package/dist/types/lumina.d.ts +30 -1
- package/dist/types/preact.d.ts +33 -1
- package/dist/types/react.d.ts +36 -1
- package/dist/types/stencil.d.ts +30 -1
- package/dist/utils/layer-list-utils.d.ts +10 -0
- package/package.json +4 -4
- package/dist/cdn/6LACZH6O.js +0 -2
- package/dist/cdn/BMJ6NYIZ.js +0 -2
- package/dist/cdn/GQF32YL2.js +0 -2
- package/dist/cdn/HTCDJDRI.js +0 -2
- package/dist/cdn/I6IJUCE6.js +0 -2
- package/dist/cdn/IHDXJ4C3.js +0 -2
- package/dist/cdn/IJZYN6XT.js +0 -2
- package/dist/cdn/IYEZB6EU.js +0 -2
- package/dist/cdn/QJSXXDUJ.js +0 -2
- package/dist/cdn/SFSNTAYE.js +0 -2
- package/dist/cdn/T5KVNE3U.js +0 -3
- package/dist/cdn/WLMFCIBM.js +0 -2
- package/dist/cdn/XTGCV3LY.js +0 -2
- /package/dist/cdn/{T4OPNOZJ.js → OTZMVWAB.js} +0 -0
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { c as O } from "../../chunks/runtime.js";
|
|
3
3
|
import { css as z, html as u } from "lit";
|
|
4
|
-
import { GenericController as
|
|
5
|
-
import { LitElement as R, createEvent as
|
|
4
|
+
import { GenericController as P, proxyExports as M, useDirection as $ } from "@arcgis/lumina/controllers";
|
|
5
|
+
import { LitElement as R, createEvent as g, nothing as m } from "@arcgis/lumina";
|
|
6
6
|
import { u as G } from "../../chunks/useT9n.js";
|
|
7
7
|
import { m as N } from "../../chunks/useViewModel.js";
|
|
8
8
|
import { property as d, subclass as B } from "@arcgis/core/core/accessorSupport/decorators.js";
|
|
9
9
|
import E from "@arcgis/core/core/Accessor.js";
|
|
10
|
-
import
|
|
10
|
+
import _ from "@arcgis/core/core/Collection.js";
|
|
11
11
|
import { ignoreAbortErrors as T } from "@arcgis/core/core/promiseUtils.js";
|
|
12
|
-
import { watch as
|
|
12
|
+
import { watch as S, on as D, whenOnce as y } from "@arcgis/core/core/reactiveUtils.js";
|
|
13
13
|
import H from "@arcgis/core/Graphic.js";
|
|
14
14
|
import V from "@arcgis/core/layers/Layer.js";
|
|
15
15
|
import k from "@arcgis/core/graphic/CSVGraphicOrigin.js";
|
|
@@ -18,15 +18,15 @@ import W from "@arcgis/core/graphic/SceneGraphicOrigin.js";
|
|
|
18
18
|
import K from "@arcgis/core/graphic/WFSGraphicOrigin.js";
|
|
19
19
|
import U from "@arcgis/core/graphic/BuildingGraphicOrigin.js";
|
|
20
20
|
import Q from "@arcgis/core/graphic/FeatureGraphicOrigin.js";
|
|
21
|
-
import { fetchPopupFeaturesFromGraphics as
|
|
22
|
-
import { s as
|
|
21
|
+
import { fetchPopupFeaturesFromGraphics as C } from "@arcgis/core/applications/SceneViewer/sceneViewerUtils.js";
|
|
22
|
+
import { s as x } from "../../chunks/resources.js";
|
|
23
23
|
const q = z`:host{width:100%;height:100%;padding:var(--calcite-spacing-none);margin:var(--calcite-spacing-none);display:flex;--internal-attribution-height: 16px;--arcgis-internal-presentation-padding-start: unset;--arcgis-internal-presentation-padding-end: unset;--arcgis-internal-presentation-cover-padding-top: unset;--arcgis-internal-presentation-cover-padding-bottom: unset;--arcgis-internal-presentation-cover-padding-start: unset;--arcgis-internal-presentation-cover-padding-end: unset}p{padding:0;margin:0}.root{display:flex;flex-direction:column;justify-content:space-between;width:100%;height:100%}.presentation-content{display:flex;width:100%;justify-content:flex-end;padding-top:var(--calcite-spacing-lg);padding-inline-start:calc(var(--calcite-spacing-lg) + var(--arcgis-internal-presentation-padding-start));padding-inline-end:calc(var(--calcite-spacing-lg) + var(--arcgis-internal-presentation-padding-end))}.navigation{width:fit-content;pointer-events:auto;display:flex;align-items:center;gap:var(--calcite-spacing-sm);background-color:var(--calcite-color-foreground-1);box-shadow:var(--arcgis-internal-box-shadow);margin-block:auto calc(var(--calcite-spacing-lg) + var(--internal-attribution-height));margin-inline-start:var(--calcite-spacing-lg)}.slide-counter-text{display:flex;align-items:center;justify-content:center;gap:var(--calcite-spacing-base);min-width:64px}.slide-counter-text-element{box-sizing:border-box;max-width:28px;margin:0;padding:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-variant-numeric:tabular-nums}.legend{pointer-events:all;box-shadow:var(--calcite-shadow-sm);max-width:300px;height:auto;max-height:calc(100vh - 136px);overflow:hidden auto}`;
|
|
24
24
|
var J = Object.defineProperty, X = Object.getOwnPropertyDescriptor, l = (i, e, t, s) => {
|
|
25
|
-
for (var n = s > 1 ? void 0 : s ? X(e, t) : e, r = i.length - 1,
|
|
26
|
-
(
|
|
25
|
+
for (var n = s > 1 ? void 0 : s ? X(e, t) : e, r = i.length - 1, a; r >= 0; r--)
|
|
26
|
+
(a = i[r]) && (n = (s ? a(e, t, n) : a(n)) || n);
|
|
27
27
|
return s && n && J(e, t, n), n;
|
|
28
28
|
};
|
|
29
|
-
let
|
|
29
|
+
let o = class extends E {
|
|
30
30
|
//endregion
|
|
31
31
|
//#region Lifecycle
|
|
32
32
|
constructor(i) {
|
|
@@ -43,7 +43,7 @@ let a = class extends E {
|
|
|
43
43
|
}
|
|
44
44
|
initialize() {
|
|
45
45
|
this.addHandles(
|
|
46
|
-
|
|
46
|
+
S(
|
|
47
47
|
() => this.view?.map,
|
|
48
48
|
(i, e) => {
|
|
49
49
|
if (this.hasHandles("sceneLoaded") && this.removeHandles("sceneLoaded"), e) {
|
|
@@ -51,7 +51,7 @@ let a = class extends E {
|
|
|
51
51
|
t && t.length > 0 && this._unsubscribeToSlideEvents(t);
|
|
52
52
|
}
|
|
53
53
|
i && this.addHandles(
|
|
54
|
-
|
|
54
|
+
S(
|
|
55
55
|
() => i.loaded,
|
|
56
56
|
(t) => {
|
|
57
57
|
t && (this.removeHandles("sceneLoaded"), this._startWatchSlides(), this._slideId && this._applySlideById(this._slideId));
|
|
@@ -75,10 +75,10 @@ let a = class extends E {
|
|
|
75
75
|
i === void 0 || !this.view?.map?.loaded ? this._slideId = i : this._applySlideById(i);
|
|
76
76
|
}
|
|
77
77
|
get visibleSlides() {
|
|
78
|
-
return this.view?.map?.presentation?.slides?.filter((i) => !i.hidden) ?? new
|
|
78
|
+
return this.view?.map?.presentation?.slides?.filter((i) => !i.hidden) ?? new _();
|
|
79
79
|
}
|
|
80
80
|
get slides() {
|
|
81
|
-
return this.view?.map?.presentation?.slides ?? new
|
|
81
|
+
return this.view?.map?.presentation?.slides ?? new _();
|
|
82
82
|
}
|
|
83
83
|
get lastSlideSelected() {
|
|
84
84
|
return this.getSlideIndexBySlideId(this.slideId) === this.visibleSlides.length - 1;
|
|
@@ -108,8 +108,8 @@ let a = class extends E {
|
|
|
108
108
|
const t = ["ArrowLeft", "ArrowRight", "PageUp", "PageDown"];
|
|
109
109
|
if (document.activeElement?.nodeName.toLowerCase() === "arcgis-scene" || !t.includes(i.code))
|
|
110
110
|
return;
|
|
111
|
-
const n = e === "rtl" ? "ArrowRight" : "ArrowLeft",
|
|
112
|
-
this.navigateInPresentation(
|
|
111
|
+
const n = e === "rtl" ? "ArrowRight" : "ArrowLeft", a = i.code === n || i.code === "PageUp" ? -1 : 1;
|
|
112
|
+
this.navigateInPresentation(a);
|
|
113
113
|
}
|
|
114
114
|
async setSliceAnalysisInteractive() {
|
|
115
115
|
if (!this.view?.analyses?.length)
|
|
@@ -144,7 +144,7 @@ let a = class extends E {
|
|
|
144
144
|
() => this.slides,
|
|
145
145
|
"change",
|
|
146
146
|
(i) => {
|
|
147
|
-
this._subscribeToSlideEvents(new
|
|
147
|
+
this._subscribeToSlideEvents(new _(i.added)), this._unsubscribeToSlideEvents(new _(i.removed));
|
|
148
148
|
},
|
|
149
149
|
{
|
|
150
150
|
onListenerAdd: this._subscribeToSlideEvents,
|
|
@@ -166,63 +166,63 @@ let a = class extends E {
|
|
|
166
166
|
};
|
|
167
167
|
l([
|
|
168
168
|
d()
|
|
169
|
-
],
|
|
169
|
+
], o.prototype, "_slideId", 2);
|
|
170
170
|
l([
|
|
171
171
|
d()
|
|
172
|
-
],
|
|
172
|
+
], o.prototype, "view", 2);
|
|
173
173
|
l([
|
|
174
174
|
d()
|
|
175
|
-
],
|
|
175
|
+
], o.prototype, "slideId", 1);
|
|
176
176
|
l([
|
|
177
177
|
d()
|
|
178
|
-
],
|
|
178
|
+
], o.prototype, "transitionActive", 2);
|
|
179
179
|
l([
|
|
180
180
|
d()
|
|
181
|
-
],
|
|
181
|
+
], o.prototype, "showLegend", 2);
|
|
182
182
|
l([
|
|
183
183
|
d()
|
|
184
|
-
],
|
|
184
|
+
], o.prototype, "keyboardNavigationEnabled", 2);
|
|
185
185
|
l([
|
|
186
186
|
d()
|
|
187
|
-
],
|
|
187
|
+
], o.prototype, "visibleSlides", 1);
|
|
188
188
|
l([
|
|
189
189
|
d()
|
|
190
|
-
],
|
|
190
|
+
], o.prototype, "slides", 1);
|
|
191
191
|
l([
|
|
192
192
|
d()
|
|
193
|
-
],
|
|
193
|
+
], o.prototype, "lastSlideSelected", 1);
|
|
194
194
|
l([
|
|
195
195
|
d()
|
|
196
|
-
],
|
|
196
|
+
], o.prototype, "firstSlideSelected", 1);
|
|
197
197
|
l([
|
|
198
198
|
d()
|
|
199
|
-
],
|
|
199
|
+
], o.prototype, "slideSelected", 1);
|
|
200
200
|
l([
|
|
201
201
|
d()
|
|
202
|
-
],
|
|
202
|
+
], o.prototype, "hasOnlyOneSlide", 1);
|
|
203
203
|
l([
|
|
204
204
|
d()
|
|
205
|
-
],
|
|
205
|
+
], o.prototype, "onApplySlideStart", 2);
|
|
206
206
|
l([
|
|
207
207
|
d()
|
|
208
|
-
],
|
|
208
|
+
], o.prototype, "onApplySlideComplete", 2);
|
|
209
209
|
l([
|
|
210
210
|
d()
|
|
211
|
-
],
|
|
211
|
+
], o.prototype, "onApplySlideCancel", 2);
|
|
212
212
|
l([
|
|
213
213
|
d()
|
|
214
|
-
],
|
|
215
|
-
|
|
214
|
+
], o.prototype, "getSlideIndexBySlideId", 1);
|
|
215
|
+
o = l([
|
|
216
216
|
B("components.presentation.PresentationViewModel")
|
|
217
|
-
],
|
|
218
|
-
class Y extends
|
|
217
|
+
], o);
|
|
218
|
+
class Y extends P {
|
|
219
219
|
constructor(e) {
|
|
220
220
|
super(e);
|
|
221
221
|
}
|
|
222
222
|
hostLoaded() {
|
|
223
223
|
this.component.manager.onLifecycle(() => {
|
|
224
224
|
const e = this.component;
|
|
225
|
-
|
|
225
|
+
y(() => e.referenceElement).then((t) => {
|
|
226
226
|
this._isArcgisScene(t) && (this._sceneRef = t);
|
|
227
227
|
});
|
|
228
228
|
});
|
|
@@ -255,15 +255,15 @@ class Y extends C {
|
|
|
255
255
|
const n = t.features?.getItemAt(t.selectedFeatureIndex)?.layerReference;
|
|
256
256
|
if (n?.layerId == null)
|
|
257
257
|
return { success: !1, features: s };
|
|
258
|
-
const { layer: r, sublayer:
|
|
258
|
+
const { layer: r, sublayer: a } = this._getLayersFromView(e, n.layerId, n?.sublayerId);
|
|
259
259
|
if (!r)
|
|
260
260
|
return { success: !1, features: s };
|
|
261
|
-
const c =
|
|
261
|
+
const c = a ?? r;
|
|
262
262
|
if (!c || !this._layerTypeSupportsCapturePopup(c))
|
|
263
263
|
return { success: !1, features: s };
|
|
264
|
-
if (s = await this._fetchFeaturesFromQueryable(e, t, r,
|
|
264
|
+
if (s = await this._fetchFeaturesFromQueryable(e, t, r, a, c), s && this._featureHasBeenFilledWithAttributes(s)) {
|
|
265
265
|
const p = s[0];
|
|
266
|
-
return this._setFallbackPopupTemplate(p,
|
|
266
|
+
return this._setFallbackPopupTemplate(p, a, r), this._setFallbackGeometry(p, t?.location), { success: !0, features: s, popupInfo: t };
|
|
267
267
|
}
|
|
268
268
|
debugger;
|
|
269
269
|
return { success: !1, features: s };
|
|
@@ -282,16 +282,16 @@ class Y extends C {
|
|
|
282
282
|
return e && e.length > 0 && e[0].attributes && Object.entries(e[0].attributes)?.length > 1;
|
|
283
283
|
}
|
|
284
284
|
async _fetchFeaturesFromQueryable(e, t, s, n, r) {
|
|
285
|
-
const
|
|
286
|
-
if (
|
|
285
|
+
const a = t.features?.getItemAt(t.selectedFeatureIndex);
|
|
286
|
+
if (a?.id == null)
|
|
287
287
|
return await Promise.resolve([]);
|
|
288
288
|
const c = await e.whenLayerView(s);
|
|
289
|
-
await
|
|
289
|
+
await y(() => !c.updating);
|
|
290
290
|
const h = this._tryGetBuildingComponentSublayerView(s, n, c) ?? c;
|
|
291
|
-
await
|
|
292
|
-
const
|
|
293
|
-
let
|
|
294
|
-
return this._featureHasBeenFilledWithAttributes(
|
|
291
|
+
await y(() => !h.updating);
|
|
292
|
+
const w = this._createFeatureGraphic(s, n, r, a.id);
|
|
293
|
+
let I = await C(h, [w]);
|
|
294
|
+
return this._featureHasBeenFilledWithAttributes(I) || (await y(() => !e.updating), I = await C(h, [w])), I;
|
|
295
295
|
}
|
|
296
296
|
_tryGetBuildingComponentSublayerView(e, t, s) {
|
|
297
297
|
let n;
|
|
@@ -314,8 +314,8 @@ class Y extends C {
|
|
|
314
314
|
e.geometry == null && t && (e.geometry = t.clone());
|
|
315
315
|
}
|
|
316
316
|
_createFeatureGraphic(e, t, s, n) {
|
|
317
|
-
const r = this._getGlobalIdFieldNameFromLayer(s),
|
|
318
|
-
return p.attributes[
|
|
317
|
+
const r = this._getGlobalIdFieldNameFromLayer(s), a = n.type === "global-id" && r ? r : s.objectIdField, c = this._getGraphicOrigin(e, t), p = new H({ attributes: {}, layer: e, origin: c });
|
|
318
|
+
return p.attributes[a] = n.value, p;
|
|
319
319
|
}
|
|
320
320
|
_getGraphicOrigin(e, t) {
|
|
321
321
|
switch (e.type) {
|
|
@@ -349,13 +349,13 @@ class Y extends C {
|
|
|
349
349
|
}
|
|
350
350
|
//#endregion
|
|
351
351
|
}
|
|
352
|
-
const Z = (i) => new Y(i),
|
|
353
|
-
topCenter: { ...
|
|
354
|
-
topLeft: { ...
|
|
355
|
-
topRight: { ...
|
|
356
|
-
bottomCenter: { ...
|
|
357
|
-
bottomLeft: { ...
|
|
358
|
-
bottomRight: { ...
|
|
352
|
+
const Z = (i) => new Y(i), v = Object.freeze({ width: 0, height: 0 }), f = /* @__PURE__ */ new WeakMap(), b = () => ({
|
|
353
|
+
topCenter: { ...v },
|
|
354
|
+
topLeft: { ...v },
|
|
355
|
+
topRight: { ...v },
|
|
356
|
+
bottomCenter: { ...v },
|
|
357
|
+
bottomLeft: { ...v },
|
|
358
|
+
bottomRight: { ...v }
|
|
359
359
|
}), L = (i) => ({
|
|
360
360
|
topCenter: { ...i.topCenter },
|
|
361
361
|
topLeft: { ...i.topLeft },
|
|
@@ -364,35 +364,35 @@ const Z = (i) => new Y(i), g = Object.freeze({ width: 0, height: 0 }), y = /* @_
|
|
|
364
364
|
bottomLeft: { ...i.bottomLeft },
|
|
365
365
|
bottomRight: { ...i.bottomRight }
|
|
366
366
|
}), F = (i) => {
|
|
367
|
-
let e =
|
|
367
|
+
let e = f.get(i);
|
|
368
368
|
return e || (e = {
|
|
369
369
|
observedGroups: /* @__PURE__ */ new Map(),
|
|
370
370
|
observedSizes: b(),
|
|
371
371
|
subscribers: /* @__PURE__ */ new Set()
|
|
372
|
-
},
|
|
372
|
+
}, f.set(i, e)), e;
|
|
373
373
|
}, ee = (i) => {
|
|
374
|
-
const e = i?.topCenter.value, t = i?.topLeft.value, s = i?.topRight.value, n = i?.bottomCenter.value, r = i?.bottomLeft.value,
|
|
375
|
-
return e && t && s && n && r &&
|
|
374
|
+
const e = i?.topCenter.value, t = i?.topLeft.value, s = i?.topRight.value, n = i?.bottomCenter.value, r = i?.bottomLeft.value, a = i?.bottomRight.value;
|
|
375
|
+
return e && t && s && n && r && a ? {
|
|
376
376
|
topCenter: e,
|
|
377
377
|
topLeft: t,
|
|
378
378
|
topRight: s,
|
|
379
379
|
bottomCenter: n,
|
|
380
380
|
bottomLeft: r,
|
|
381
|
-
bottomRight:
|
|
381
|
+
bottomRight: a
|
|
382
382
|
} : null;
|
|
383
|
-
}, te = (i, e) =>
|
|
383
|
+
}, te = (i, e) => x.every((t) => i.get(t) === e[t]), ie = (i) => {
|
|
384
384
|
const e = L(i.observedSizes);
|
|
385
385
|
i.subscribers.forEach((t) => t(e));
|
|
386
386
|
}, se = (i, e) => {
|
|
387
|
-
const t =
|
|
387
|
+
const t = f.get(i);
|
|
388
388
|
if (!t)
|
|
389
389
|
return;
|
|
390
390
|
let s = !1;
|
|
391
391
|
e.forEach((n) => {
|
|
392
|
-
const r =
|
|
392
|
+
const r = x.find((w) => t.observedGroups.get(w) === n.target);
|
|
393
393
|
if (!r)
|
|
394
394
|
return;
|
|
395
|
-
const { width:
|
|
395
|
+
const { width: a, height: c } = n.contentRect, p = { width: a, height: c }, h = t.observedSizes[r];
|
|
396
396
|
h.width === p.width && h.height === p.height || (t.observedSizes[r] = p, s = !0);
|
|
397
397
|
}), s && ie(t);
|
|
398
398
|
}, A = (i, e) => {
|
|
@@ -405,18 +405,18 @@ const Z = (i) => new Y(i), g = Object.freeze({ width: 0, height: 0 }), y = /* @_
|
|
|
405
405
|
t.observedGroups.size > 0 && (t.resizeObserver.disconnect(), t.observedGroups.clear());
|
|
406
406
|
return;
|
|
407
407
|
}
|
|
408
|
-
te(t.observedGroups, s) || (t.resizeObserver.disconnect(), t.observedGroups.clear(),
|
|
408
|
+
te(t.observedGroups, s) || (t.resizeObserver.disconnect(), t.observedGroups.clear(), x.forEach((n) => {
|
|
409
409
|
const r = s[n];
|
|
410
410
|
t.observedGroups.set(n, r), t.resizeObserver?.observe(r);
|
|
411
411
|
}));
|
|
412
412
|
}, ne = (i, e) => {
|
|
413
413
|
const t = F(i);
|
|
414
414
|
return t.subscribers.add(e), e(L(t.observedSizes)), () => {
|
|
415
|
-
const s =
|
|
416
|
-
s && (s.subscribers.delete(e), s.subscribers.size === 0 && (s.resizeObserver?.disconnect(), s.observedGroups.clear(),
|
|
415
|
+
const s = f.get(i);
|
|
416
|
+
s && (s.subscribers.delete(e), s.subscribers.size === 0 && (s.resizeObserver?.disconnect(), s.observedGroups.clear(), f.delete(i)));
|
|
417
417
|
};
|
|
418
418
|
};
|
|
419
|
-
class re extends
|
|
419
|
+
class re extends P {
|
|
420
420
|
// References to the slot group elements owned by the host component.
|
|
421
421
|
#t;
|
|
422
422
|
#e;
|
|
@@ -434,7 +434,7 @@ class re extends C {
|
|
|
434
434
|
}
|
|
435
435
|
hostLifecycle() {
|
|
436
436
|
return [
|
|
437
|
-
|
|
437
|
+
S(
|
|
438
438
|
() => this.#s(),
|
|
439
439
|
(t) => {
|
|
440
440
|
if (this.#e !== t) {
|
|
@@ -449,7 +449,7 @@ class re extends C {
|
|
|
449
449
|
},
|
|
450
450
|
{ sync: !0, initial: !0 }
|
|
451
451
|
),
|
|
452
|
-
|
|
452
|
+
S(
|
|
453
453
|
() => this.#s()?.slotGroupRefs,
|
|
454
454
|
(t) => {
|
|
455
455
|
this.#t = t, this.#e && t && A(this.#e, t);
|
|
@@ -468,22 +468,24 @@ class re extends C {
|
|
|
468
468
|
// Compares the newly measured sizes against the currently exported values.
|
|
469
469
|
#n(e) {
|
|
470
470
|
const t = this.exports ?? b();
|
|
471
|
-
return
|
|
471
|
+
return x.every((s) => {
|
|
472
472
|
const n = t[s], r = e[s];
|
|
473
473
|
return n.width === r.width && n.height === r.height;
|
|
474
474
|
});
|
|
475
475
|
}
|
|
476
476
|
}
|
|
477
|
-
const
|
|
477
|
+
const ae = M(re), oe = N(o);
|
|
478
478
|
class le extends R {
|
|
479
479
|
constructor() {
|
|
480
|
-
super(...arguments), this._messages = G(), this.viewModel =
|
|
480
|
+
super(...arguments), this._messages = G(), this.viewModel = oe(this), this._direction = $(), this._captureArrowKeysForNavigation = (e) => {
|
|
481
481
|
this.viewModel.captureArrowKeysForNavigation(e, this._direction);
|
|
482
|
-
}, this._useFeatureRefPopup = Z(this), this._handleApplySlideStart = () => {
|
|
483
|
-
this._useFeatureRefPopup.closePopup();
|
|
482
|
+
}, this._useFeatureRefPopup = Z(this), this._handleApplySlideStart = (e) => {
|
|
483
|
+
this._useFeatureRefPopup.closePopup(), this.arcgisSlideApplyStart.emit({ slide: e });
|
|
484
484
|
}, this._handleApplySlideComplete = (e) => {
|
|
485
|
-
this._useFeatureRefPopup.openPopup(e), this.sliceAnalysisInteractive && this.viewModel.setSliceAnalysisInteractive();
|
|
486
|
-
}, this.
|
|
485
|
+
this._useFeatureRefPopup.openPopup(e), this.sliceAnalysisInteractive && this.viewModel.setSliceAnalysisInteractive(), this.arcgisSlideApplyComplete.emit({ slide: e });
|
|
486
|
+
}, this._handleApplySlideCancel = (e) => {
|
|
487
|
+
this.arcgisSlideApplyCancel.emit({ slide: e });
|
|
488
|
+
}, this.autoDestroyDisabled = !1, this.view = this.viewModel.view, this.scale = "m", this.keyboardNavigationEnabled = !1, this.slidePopupDisabled = !1, this.slideCaptionsDisabled = !1, this.slideLegendDisabled = !1, this.sliceAnalysisInteractive = !1, this.arcgisPopupFeatureNotFound = g(), this.arcgisPopupFeaturesRetrieved = g(), this.arcgisSlideApplyStart = g(), this.arcgisSlideApplyCancel = g(), this.arcgisSlideApplyComplete = g(), this.arcgisReady = g();
|
|
487
489
|
}
|
|
488
490
|
static {
|
|
489
491
|
this.properties = { _slotSizesController: 16, slideId: 1, autoDestroyDisabled: 5, view: 0, scale: 1, keyboardNavigationEnabled: 5, slidePopupDisabled: 5, slideCaptionsDisabled: 5, slideLegendDisabled: 5, sliceAnalysisInteractive: 5 };
|
|
@@ -502,12 +504,12 @@ class le extends R {
|
|
|
502
504
|
}
|
|
503
505
|
loaded() {
|
|
504
506
|
this.manager.onLifecycle(() => {
|
|
505
|
-
this.viewModel.onApplySlideStart = this._handleApplySlideStart, this.viewModel.onApplySlideComplete = this._handleApplySlideComplete, this._keyboardHandle =
|
|
507
|
+
this.viewModel.onApplySlideStart = this._handleApplySlideStart, this.viewModel.onApplySlideComplete = this._handleApplySlideComplete, this.viewModel.onApplySlideCancel = this._handleApplySlideCancel, this._keyboardHandle = S(() => this.keyboardNavigationEnabled, (t) => {
|
|
506
508
|
document.removeEventListener("keydown", this._captureArrowKeysForNavigation), t && document.addEventListener("keydown", this._captureArrowKeysForNavigation);
|
|
507
509
|
}, { initial: !0 });
|
|
508
510
|
const e = this;
|
|
509
|
-
|
|
510
|
-
this._isArcgisScene(t) && (this._slotSizesController =
|
|
511
|
+
y(() => e.referenceElement).then((t) => {
|
|
512
|
+
this._isArcgisScene(t) && (this._slotSizesController = ae(this), this._watchSceneViewSlotSizes());
|
|
511
513
|
}), this.manager.onDisconnected(() => {
|
|
512
514
|
document.removeEventListener("keydown", this._captureArrowKeysForNavigation), this._keyboardHandle?.remove();
|
|
513
515
|
});
|
|
@@ -517,13 +519,13 @@ class le extends R {
|
|
|
517
519
|
return e === void 0 || typeof e == "string" ? !1 : "tagName" in e && e.tagName === "ARCGIS-SCENE";
|
|
518
520
|
}
|
|
519
521
|
_watchSceneViewSlotSizes() {
|
|
520
|
-
return
|
|
522
|
+
return S(() => this._slotSizesController, (e) => this._updatePresentationCaptionsPadding(e?.topLeft, e?.topRight, e?.bottomLeft, e?.bottomRight), { initial: !0 });
|
|
521
523
|
}
|
|
522
524
|
_updatePresentationCaptionsPadding(e, t, s, n) {
|
|
523
|
-
const r = this._direction === "ltr" ? e?.width ?? 0 : t?.width ?? 0,
|
|
524
|
-
r > 0 ? this.el.style.setProperty("--arcgis-internal-presentation-padding-start", `calc(var(--calcite-spacing-lg) + ${r.toString()}px)`) : this.el.style.setProperty("--arcgis-internal-presentation-padding-start", "0px"),
|
|
525
|
-
const h = r <= Math.max(c, p) &&
|
|
526
|
-
this.el.style.setProperty("--arcgis-internal-presentation-cover-padding-top", h ? "0" : `${c}px`), this.el.style.setProperty("--arcgis-internal-presentation-cover-padding-bottom", h ? "0" : `${p}px`), this.el.style.setProperty("--arcgis-internal-presentation-cover-padding-start", h ? `${r}px` : "0"), this.el.style.setProperty("--arcgis-internal-presentation-cover-padding-end", h ? `${
|
|
525
|
+
const r = this._direction === "ltr" ? e?.width ?? 0 : t?.width ?? 0, a = this._direction === "ltr" ? t?.width ?? 0 : e?.width ?? 0, c = Math.max(e?.height ?? 0, t?.height ?? 0), p = Math.max(s?.height ?? 0, n?.height ?? 0);
|
|
526
|
+
r > 0 ? this.el.style.setProperty("--arcgis-internal-presentation-padding-start", `calc(var(--calcite-spacing-lg) + ${r.toString()}px)`) : this.el.style.setProperty("--arcgis-internal-presentation-padding-start", "0px"), a > 0 ? this.el.style.setProperty("--arcgis-internal-presentation-padding-end", `calc(var(--calcite-spacing-lg) + ${a.toString()}px)`) : this.el.style.setProperty("--arcgis-internal-presentation-padding-end", "0px");
|
|
527
|
+
const h = r <= Math.max(c, p) && a <= Math.max(c, p);
|
|
528
|
+
this.el.style.setProperty("--arcgis-internal-presentation-cover-padding-top", h ? "0" : `${c}px`), this.el.style.setProperty("--arcgis-internal-presentation-cover-padding-bottom", h ? "0" : `${p}px`), this.el.style.setProperty("--arcgis-internal-presentation-cover-padding-start", h ? `${r}px` : "0"), this.el.style.setProperty("--arcgis-internal-presentation-cover-padding-end", h ? `${a}px` : "0");
|
|
527
529
|
}
|
|
528
530
|
render() {
|
|
529
531
|
if (this.viewModel.visibleSlides.length === 0)
|
|
@@ -533,11 +535,11 @@ class le extends R {
|
|
|
533
535
|
}
|
|
534
536
|
_renderNavigation() {
|
|
535
537
|
const e = this.viewModel.lastSlideSelected && !this.viewModel.hasOnlyOneSlide, t = this._direction === "rtl", s = t ? "chevron-right" : "chevron-left", n = t ? "chevron-left" : "chevron-right";
|
|
536
|
-
return u`<div class="navigation"><calcite-button appearance=transparent icon-start=${s ??
|
|
538
|
+
return u`<div class="navigation"><calcite-button appearance=transparent icon-start=${s ?? m} kind=neutral .scale=${this.scale} .disabled=${this.viewModel.firstSlideSelected || !this.viewModel.slideSelected} .label=${this._messages.previous} title=${this._messages.previous ?? m} @click=${() => this.viewModel.navigateInPresentation(-1)}></calcite-button><div class="slide-counter-text">${this._renderSlideCounter()}</div><calcite-button appearance=transparent icon-start=${(e ? "reset" : n) ?? m} kind=neutral .scale=${this.scale} .label=${e ? this._messages.restart : this._messages.next} title=${(e ? this._messages.restart : this._messages.next) ?? m} @click=${() => this.viewModel.navigateInPresentation(1)}></calcite-button></div>`;
|
|
537
539
|
}
|
|
538
540
|
_renderSlideCounter() {
|
|
539
541
|
const e = this.viewModel.slideIndex + 1, t = this._messages?.slideNavAriaText?.replace("${index}", e.toString()).replace("${numberOfSlides}", this.viewModel.visibleSlides.length.toString());
|
|
540
|
-
return this.viewModel.slideSelected ? u`<p role=banner aria-label=${t ??
|
|
542
|
+
return this.viewModel.slideSelected ? u`<p role=banner aria-label=${t ?? m} aria-live=polite><div class="slide-counter-text-element" data-testId=arcgis-map-presentation-slideIndex>${e}</div><div class="slide-counter-text-element">/</div><p class="slide-counter-text-element" data-testId=arcgis-map-presentation-numberOfSlides>${this.viewModel.visibleSlides.length}</p></p>` : u`<p role=banner data-testId=arcgis-map-presentation-numberOfSlides>${this.viewModel.visibleSlides?.length} ${this._messages?.slides}</p>`;
|
|
541
543
|
}
|
|
542
544
|
_renderCaptions(e) {
|
|
543
545
|
return this.slideCaptionsDisabled ? null : u`<arcgis-presentation-captions .slide=${e} .transitionActive=${this.viewModel.transitionActive}></arcgis-presentation-captions>`;
|
|
@@ -11,7 +11,7 @@ import type Collection from "@arcgis/core/core/Collection.js";
|
|
|
11
11
|
import type { SketchGroupName } from "@arcgis/core/applications/ExperienceBuilder/sketchUtils.js";
|
|
12
12
|
import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
13
13
|
import type { ArcgisReferenceElement, IconName } from "../types.js";
|
|
14
|
-
import type { CreateOptions, CreateTool, UpdateEvent, UndoEvent, RedoEvent, DeleteEvent, CreateEvent, CustomToolOptions, CustomActionProperties, SketchTool, SelectionTool, CreationMode, UpdateOptions, Layout, SketchPointSymbol, SketchPolygonSymbol, SketchPolylineSymbol, State, ToolbarKind } from "@arcgis/core/widgets/Sketch/types.js";
|
|
14
|
+
import type { CreateOptions, CreateTool, UpdateEvent, UndoEvent, DuplicateEvent, RedoEvent, DeleteEvent, CreateEvent, CustomToolOptions, CustomActionProperties, SketchTool, SelectionTool, CreationMode, UpdateOptions, Layout, SketchPointSymbol, SketchPolygonSymbol, SketchPolylineSymbol, State, ToolbarKind } from "@arcgis/core/widgets/Sketch/types.js";
|
|
15
15
|
import type { MapViewOrSceneView } from "@arcgis/core/views/MapViewOrSceneView.js";
|
|
16
16
|
import type { Icon } from "@esri/calcite-components/components/calcite-icon";
|
|
17
17
|
import type { Button as Button } from "@esri/calcite-components/components/calcite-button";
|
|
@@ -550,6 +550,12 @@ export abstract class ArcgisSketch extends LitElement {
|
|
|
550
550
|
dismissFloatingElements(): Promise<void>;
|
|
551
551
|
duplicate(): Promise<void>;
|
|
552
552
|
redo(): Promise<void>;
|
|
553
|
+
/**
|
|
554
|
+
* @param location
|
|
555
|
+
* @internal
|
|
556
|
+
* @since 5.1
|
|
557
|
+
*/
|
|
558
|
+
setContextualToolLocation(location: "inline-end" | "inline" | "separate"): Promise<void>;
|
|
553
559
|
/**
|
|
554
560
|
* @param createToolOptions
|
|
555
561
|
* @param customActionOptions
|
|
@@ -563,6 +569,12 @@ export abstract class ArcgisSketch extends LitElement {
|
|
|
563
569
|
* @since 5.1
|
|
564
570
|
*/
|
|
565
571
|
setGroupAllowCollapseOptions(options: Map<SketchGroupName, boolean>): Promise<void>;
|
|
572
|
+
/**
|
|
573
|
+
* @param priorities
|
|
574
|
+
* @internal
|
|
575
|
+
* @since 5.1
|
|
576
|
+
*/
|
|
577
|
+
setGroupCollapsePriorities(priorities: Map<SketchGroupName, number> | null): Promise<void>;
|
|
566
578
|
/**
|
|
567
579
|
* @param graphic
|
|
568
580
|
* @param updateOptions
|
|
@@ -576,6 +588,8 @@ export abstract class ArcgisSketch extends LitElement {
|
|
|
576
588
|
readonly arcgisCreate: import("@arcgis/lumina").TargetedEvent<this, CreateEvent>;
|
|
577
589
|
/** Fires when a user deletes selected graphics by clicking the Delete feature button on the Sketch widget or when the `delete()` method is called. */
|
|
578
590
|
readonly arcgisDelete: import("@arcgis/lumina").TargetedEvent<this, DeleteEvent>;
|
|
591
|
+
/** Fires when the user duplicates selected graphics. */
|
|
592
|
+
readonly arcgisDuplicate: import("@arcgis/lumina").TargetedEvent<this, DuplicateEvent>;
|
|
579
593
|
/** Emitted when the value of a property is changed. Use this to listen to changes to properties. */
|
|
580
594
|
readonly arcgisPropertyChange: import("@arcgis/lumina").TargetedEvent<this, { name: "state"; }>;
|
|
581
595
|
/** Emitted when the component associated with a map or scene view is ready to be interacted with. */
|
|
@@ -589,6 +603,7 @@ export abstract class ArcgisSketch extends LitElement {
|
|
|
589
603
|
readonly "@eventTypes": {
|
|
590
604
|
arcgisCreate: ArcgisSketch["arcgisCreate"]["detail"];
|
|
591
605
|
arcgisDelete: ArcgisSketch["arcgisDelete"]["detail"];
|
|
606
|
+
arcgisDuplicate: ArcgisSketch["arcgisDuplicate"]["detail"];
|
|
592
607
|
arcgisPropertyChange: ArcgisSketch["arcgisPropertyChange"]["detail"];
|
|
593
608
|
arcgisReady: ArcgisSketch["arcgisReady"]["detail"];
|
|
594
609
|
arcgisRedo: ArcgisSketch["arcgisRedo"]["detail"];
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { c as o } from "../../chunks/runtime.js";
|
|
3
|
-
import { dismissFloatingElements as l, setCustomTools as n, setGroupAllowCollapse as r } from "@arcgis/core/applications/ExperienceBuilder/sketchUtils.js";
|
|
4
|
-
import { usePropertyChange as
|
|
5
|
-
import { reEmitEvent as
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import { LitElement as
|
|
9
|
-
import { m as
|
|
10
|
-
import { css as
|
|
11
|
-
import { watch as
|
|
12
|
-
const
|
|
13
|
-
class
|
|
3
|
+
import { dismissFloatingElements as l, setCustomTools as n, setGroupAllowCollapse as r, setContextualToolLocation as a, setGroupCollapsePriorities as c } from "@arcgis/core/applications/ExperienceBuilder/sketchUtils.js";
|
|
4
|
+
import { usePropertyChange as p } from "@arcgis/lumina/controllers";
|
|
5
|
+
import { reEmitEvent as i } from "@arcgis/lumina/controllers/accessor";
|
|
6
|
+
import d from "@arcgis/core/layers/GraphicsLayer.js";
|
|
7
|
+
import h from "@arcgis/core/widgets/Sketch.js";
|
|
8
|
+
import { LitElement as g, createEvent as m } from "@arcgis/lumina";
|
|
9
|
+
import { m as b } from "../../chunks/useWidget.js";
|
|
10
|
+
import { css as u } from "lit";
|
|
11
|
+
import { watch as w } from "@arcgis/core/core/reactiveUtils.js";
|
|
12
|
+
const v = u`calcite-block>.esri-grid-controls{background:0 0;padding:0}.esri-grid-controls{-webkit-user-select:none;user-select:none;padding:var(--arcgis-internal-padding);flex-flow:column wrap;display:flex;calcite-label.esri-labeled-switch__label{margin-block-end:var(--calcite-spacing-sm, .5rem)}}.esri-grid-controls__switch--bordered{border-width:0 0 var(--calcite-spacing-px) 0;border-style:solid;border-color:var(--calcite-color-border-1)}.esri-grid-controls__container{gap:var(--calcite-spacing-sm);flex-direction:column;flex:auto;display:flex}.esri-grid-controls__tilegroup{column-gap:var(--calcite-spacing-sm);align-items:start;display:flex;flex-wrap:wrap}.esri-grid-controls__tile__content{row-gap:var(--calcite-spacing-md);padding:var(--calcite-spacing-md);color:var(--calcite-color-text-2);flex-direction:column;align-items:center;display:flex}.esri-grid-controls__tile__content calcite-label{margin-bottom:calc(0px - var(--calcite-label-margin-bottom, .75rem));font-weight:var(--calcite-font-weight-medium)}.esri-grid-controls__tile{position:relative}.esri-grid-controls__tile:focus-within{outline:2px solid var(--calcite-color-brand);outline-offset:2px}.esri-grid-controls__tile--disabled{opacity:var(--calcite-opacity-disabled)}.esri-grid-controls__tile input[type=radio]{appearance:none;opacity:.001;border:var(--calcite-spacing-px) solid transparent;cursor:pointer;position:absolute;inset:0}.esri-grid-controls__tile input[type=radio]:checked+.esri-grid-controls__tile__content{border:var(--calcite-spacing-px) solid var(--calcite-color-brand)}.esri-grid-controls__tile input[type=radio]+.esri-grid-controls__tile__content{border:var(--calcite-spacing-px) solid transparent}.esri-grid-controls__numeric-inputs__container{gap:var(--calcite-spacing-sm);grid-auto-columns:1fr;grid-auto-flow:column;display:grid}.esri-grid-controls__inline-icon{margin-left:var(--calcite-spacing-xs);vertical-align:top;color:var(--calcite-color-status-warning)}:host{--response-toolbar-vert-width: 0;--response-toolbar-vert-height: 100%;--response-toolbar-horiz-width: 100%;--response-toolbar-horiz-height: 0}.esri-responsive-toolbar__ruler{opacity:0;pointer-events:none;position:absolute}.esri-responsive-toolbar__ruler--bar{visibility:hidden;height:0;display:block;position:absolute;top:0;left:0;right:0}.esri-responsive-toolbar__ruler--bar--vertical,.esri-responsive-toolbar__ruler--pad--vertical{width:var(--response-toolbar-vert-width);height:var(--response-toolbar-vert-height)}.esri-responsive-toolbar__ruler--pad--horizontal{width:var(--response-toolbar-horiz-width);height:var(--response-toolbar-horiz-height)}.esri-responsive-toolbar__bar>div{display:contents}.esri-responsive-toolbar__bar--horizontal{min-width:100%}.esri-responsive-toolbar__bar--vertical{min-height:100%}.esri-responsive-toolbar__pad{width:min-content;display:contents}.esri-responsive-toolbar__pad>div{display:contents}.esri-responsive-toolbar__ruler--pad--vertical{width:0;height:min(100vh - 120px,100cqh - 120px)}.esri-responsive-toolbar__ruler--pad--horizontal{width:min(100vw - 60px,100cqw - 60px);height:0}.esri-split-button--split-part--vertical--s{--calcite-size-sm: 16px;max-height:16px}.esri-split-button--split-part--vertical--m{--calcite-size-md: 24px;max-height:24px}.esri-split-button--split-part--vertical--l{--calcite-size-l: 40px;max-height:40px}.esri-split-button--split-part--horizontal--s,.esri-split-button--split-part--horizontal--m{max-width:16px}.esri-split-button--split-part--horizontal--l{max-width:24px}.esri-snapping-controls__toggle-block{min-width:100%;margin:0}.esri-snapping-controls__layer-list-block{border-bottom:none;min-width:225px}.esri-snapping-controls__layer-list-block[open]{margin-block:0}.esri-snapping-controls__layer-list{overflow:auto}.esri-snapping-controls__layer-list__filter{margin-bottom:10px}.esri-snapping-controls__layer-list__button{margin-bottom:6px}.esri-snapping-controls__layer-list__item calcite-accordion-item calcite-icon,.esri-snapping-controls__layer-list__item calcite-action calcite-icon{margin-inline-start:0}.esri-snapping-controls__layer-list__item calcite-icon{color:var(--calcite-color-brand);margin-inline-start:var(--calcite-list-item-spacing-indent, 1em)}.esri-snapping-controls{flex-flow:column wrap;display:flex}.esri-snapping-controls__container{flex-direction:column;flex:auto;display:flex}.esri-snapping-controls__container :only-child{border-block-end:none}.esri-snapping-controls__panel{width:320px}.esri-snapping-controls__item{border:1px solid #adadad4d;cursor:pointer;background-color:var(--calcite-color-foreground-2);border-color:var(--calcite-color-border-1);border-radius:2px;justify-content:space-between;margin:3px 0;padding:3px;transition:border-color .125s ease-in-out;display:flex;box-shadow:0 1px #adadad4d}.esri-snapping-controls__item-action-icon{flex:0 0 16px;width:16px;height:16px;margin-top:.1em;font-size:var(--calcite-font-size-md);display:inline-block}.esri-snapping-controls__action-toggle{opacity:1;cursor:pointer;border:1px solid var(--calcite-color-border-1);flex-flow:row-reverse;justify-content:space-between;align-items:flex-start;width:100%;margin:0;padding:6px 15px;font-size:var(--calcite-font-size-sm);transition:opacity .25s ease-in-out .25s,background-color .25s ease-in-out;display:flex}.esri-snapping-controls__action-toggle .esri-snapping-controls__item-action-title{margin-left:0}.esri-snapping-controls__action-toggle .esri-snapping-controls__item-action-icon{background-color:var(--calcite-color-foreground-1);border-radius:16px;flex:0 0 28px;width:16px;height:16px;padding:0;transition:background-color .125s ease-in-out;position:relative;overflow:hidden;box-shadow:0 0 0 1px #adadad}.esri-snapping-controls__action-toggle .esri-snapping-controls__item-action-icon:before{content:"";background-color:var(--calcite-color-foreground-2);border-radius:100%;width:12px;height:12px;margin:2px;transition:background-color .125s ease-in-out,left .125s ease-in-out;display:block;position:absolute;top:0;left:0;box-shadow:0 0 0 1px #242424}.esri-snapping-controls__action-toggle--on .esri-snapping-controls__item-action-icon{background-color:var(--calcite-color-foreground-1);box-shadow:0 0 0 1px #adadad}.esri-snapping-controls__action-toggle--on .esri-snapping-controls__item-action-icon:before{background-color:var(--calcite-color-foreground-3);left:12px}.esri-snapping-controls__nested-container{flex-direction:column;gap:6px;display:flex}.esri-snapping-controls__nested-container:not(:empty){padding-top:6px;padding-inline-start:1em}.esri-labeled-switch__label{--calcite-label-margin-bottom: 0}.esri-labeled-switch__label-content{text-wrap:balance;flex:1;align-items:center;gap:7px;display:flex}.esri-labeled-switch__label-content>div{flex-grow:1}.esri-labeled-switch__icon{margin-top:-1px}.esri-labeled-switch__icon_info{color:var(--calcite-color-status-info)}.esri-labeled-switch__icon_warning{color:var(--calcite-color-status-warning)}.esri-labeled-switch__tooltip{text-wrap:wrap}:host{display:flex;max-width:100%;justify-content:flex-end;pointer-events:none;--sketch-pad-flex-flow: wrap;--sketch-view-height-offset: 63px ;--sketch-view-margin-offset: 30px;--sketch-popover-header-offset: 49px}:host([scale="s"]){--sketch-view-height-offset: 47px ;--sketch-view-margin-offset: 30px;--sketch-popover-header-offset: 33px}:host([scale="l"]){--sketch-view-height-offset: 79px ;--sketch-view-margin-offset: 30px;--sketch-popover-header-offset: 65px}div:has(>.esri-sketch){display:contents}.esri-sketch{-webkit-user-select:none;user-select:none;pointer-events:none;display:flex}.esri-sketch-pad{gap:var(--arcgis-internal-sketch-gap, var(--calcite-spacing-sm));flex-flow:var(--sketch-pad-flex-flow);justify-content:var(--arcgis-internal-sketch-justify-content, flex-start)}.esri-sketch-pad:dir(rtl){flex-flow:row-reverse wrap}.esri-sketch-pad.esri-sketch--vertical{flex-flow:var(--sketch-pad-flex-flow, column wrap);justify-content:flex-start;--sketch-view-height-offset: 30px;--sketch-view-margin-offset: 15px}.esri-sketch-pad.esri-sketch--vertical:dir(rtl){flex-flow:var(--sketch-pad-flex-flow, column wrap-reverse)}.esri-sketch-pad.esri-sketch--vertical .esri-selection-toolbar__container{flex-direction:column}.esri-sketch>*{pointer-events:initial;display:flex}.esri-sketch-bar{flex-direction:column;gap:0;margin:0;flex-basis:100%}.esri-sketch-bar.esri-sketch--vertical{flex-flow:row}.esri-sketch__popover-wrapper{inline-size:max-content;min-inline-size:300px;max-height:calc(100cqh - (var(--sketch-view-height-offset, 90px)) - var(--sketch-view-margin-offset, 15px) - var(--sketch-popover-header-offset, 1000px));-webkit-user-select:none;user-select:none;max-inline-size:400px;overflow-y:auto}.esri-sketch__popover-wrapper .esri-sketch-tooltip-controls:not(:only-child) calcite-block{border-block-end-width:1px;border-style:solid;border-color:var(--calcite-color-border-3)}.esri-sketch__selection-count-chip--horizontal{margin-block:var(--calcite-spacing-xxs);margin-inline:var(--calcite-spacing-xs);align-self:center}.esri-sketch__selection-count-chip--vertical{margin-block:calc(var(--calcite-spacing-md) * var(--sketch-chip-margin-scale-factor, 1));scale:var(--sketch-chip-rescale, 1);align-self:center;margin-inline:0}.esri-sketch__selection-count-chip--vertical--s{--sketch-chip-rescale: .8;--sketch-chip-margin-scale-factor: .5}.esri-sketch--vertical{max-height:min(100vh - 120px,100cqh - 120px)}.esri-expand__popover-content .esri-sketch{gap:0}.esri-sketch-tooltip-controls{flex-flow:column wrap;min-width:100%;display:flex}.esri-sketch-tooltip-controls__block{border-block-end:none;margin:0}.esri-sketch-tooltip-controls__block-content{flex-direction:column;gap:6px;display:flex}.esri-sketch-tooltip-controls__radio-button-label-wrapper{align-items:center;gap:2px;display:flex}.esri-sketch-tooltip-controls calcite-label:last-child{--calcite-label-margin-bottom: 0}`, _ = b(h);
|
|
13
|
+
class f extends g {
|
|
14
14
|
constructor() {
|
|
15
|
-
super(), this._visualScale = "m", this.widget =
|
|
15
|
+
super(), this._visualScale = "m", this.widget = _(this), this.viewModel = this.widget.viewModel, this._defaultGraphicsLayer = null, this.view = this.widget.view, this.activeTool = this.widget.activeTool, this.autoDestroyDisabled = !1, this.availableCreateTools = this.widget.availableCreateTools, this.createGraphic = this.widget.createGraphic, this.creationMode = this.widget.creationMode, this.defaultCreateOptions = this.widget.defaultCreateOptions, this.defaultGraphicsLayerDisabled = !1, this.defaultUpdateOptions = this.widget.defaultUpdateOptions, this.hideCreateToolsCircle = this.widget.visibleElements.createTools.circle, this.hideCreateToolsMultipoint = this.widget.visibleElements.createTools.multipoint, this.hideCreateToolsPoint = this.widget.visibleElements.createTools.point, this.hideCreateToolsPolygon = this.widget.visibleElements.createTools.polygon, this.hideCreateToolsPolyline = this.widget.visibleElements.createTools.polyline, this.hideCreateToolsRectangle = this.widget.visibleElements.createTools.rectangle, this.hideDuplicateButton = this.widget.visibleElements.duplicateButton, this.hideDeleteButton = this.widget.visibleElements.deleteButton, this.hideSelectionCountLabel = this.widget.visibleElements.selectionCountLabel, this.hideLabelsToggle = this.widget.visibleElements.labelsToggle, this.hideSelectionToolsLassoSelection = this.widget.visibleElements.selectionTools["lasso-selection"], this.hideSelectionToolsRectangleSelection = this.widget.visibleElements.selectionTools["rectangle-selection"], this.hideSettingsMenu = this.widget.visibleElements.settingsMenu, this.hideSnappingControls = this.widget.visibleElements.snappingControls, this.hideSnappingControlsElementsEnabledToggle = this.widget.visibleElements.snappingControlsElements.enabledToggle, this.hideSnappingControlsElementsFeatureEnabledToggle = this.widget.visibleElements.snappingControlsElements.featureEnabledToggle, this.hideSnappingControlsElementsLayerList = this.widget.visibleElements.snappingControlsElements.layerList, this.hideSnappingControlsElementsSelfEnabledToggle = this.widget.visibleElements.snappingControlsElements.selfEnabledToggle, this.hideSnappingControlsElementsGridEnabledToggle = this.widget.visibleElements.snappingControlsElements.gridEnabledToggle, this.hideSnappingControlsElementsGridControls = this.widget.visibleElements.snappingControlsElements.gridControls, this.hideSnappingControlsElementsGridControlsElementsColorSelection = this.widget.visibleElements.snappingControlsElements.gridControlsElements.colorSelection, this.hideSnappingControlsElementsGridControlsElementsDynamicScaleToggle = this.widget.visibleElements.snappingControlsElements.gridControlsElements.dynamicScaleToggle, this.hideSnappingControlsElementsGridControlsElementsLineIntervalInput = this.widget.visibleElements.snappingControlsElements.gridControlsElements.lineIntervalInput, this.hideSnappingControlsElementsGridControlsElementsNumericInputs = this.widget.visibleElements.snappingControlsElements.gridControlsElements.numericInputs, this.hideSnappingControlsElementsGridControlsElementsOutOfScaleWarning = this.widget.visibleElements.snappingControlsElements.gridControlsElements.outOfScaleWarning, this.hideSnappingControlsElementsGridControlsElementsPlacementButtons = this.widget.visibleElements.snappingControlsElements.gridControlsElements.placementButtons, this.hideSnappingControlsElementsGridControlsElementsRotateWithMapToggle = this.widget.visibleElements.snappingControlsElements.gridControlsElements.rotateWithMapToggle, this.hideTooltipsToggle = this.widget.visibleElements.tooltipsToggle, this.hideUndoRedoMenu = this.widget.visibleElements.undoRedoMenu, this.icon = this.widget.icon, this.label = this.widget.label, this.labelOptions = this.widget.labelOptions, this.layer = this.widget.layer, this.layout = this.widget.layout, this.pointSymbol = this.viewModel.pointSymbol, this.polygonSymbol = this.viewModel.polygonSymbol, this.polylineSymbol = this.viewModel.polylineSymbol, this.showSnappingControlsElementsHeader = this.widget.visibleElements.snappingControlsElements.header, this.showCreateToolsFreehandPolygon = this.widget.visibleElements.createTools.freehandPolygon, this.showCreateToolsFreehandPolyline = this.widget.visibleElements.createTools.freehandPolyline, this.showCreateToolsText = this.widget.visibleElements.createTools.text, this.snappingOptions = this.widget.snappingOptions, this.state = this.widget.state, this.textSymbol = this.viewModel.textSymbol, this.toolbarKind = this.widget.toolbarKind, this.tooltipOptions = this.widget.tooltipOptions, this.useLegacyCreateTools = this.viewModel.useLegacyCreateTools, this.updateOnGraphicClickDisabled = this.viewModel.updateOnGraphicClick, this.updateGraphics = this.widget.updateGraphics, this.arcgisCreate = i(() => this.widget, "create"), this.arcgisDelete = i(() => this.widget, "delete"), this.arcgisPropertyChange = p()("state"), this.arcgisReady = m(), this.arcgisRedo = i(() => this.widget, "redo"), this.arcgisUndo = i(() => this.widget, "undo"), this.arcgisUpdate = i(() => this.widget, "update"), this.arcgisDuplicate = i(() => this.widget, "duplicate"), this.listen("arcgisReady", this._arcgisReadyHandler);
|
|
16
16
|
}
|
|
17
17
|
static {
|
|
18
18
|
this.properties = { view: 0, activeTool: 35, autoDestroyDisabled: 5, availableCreateTools: 0, createGraphic: 32, creationMode: 1, defaultCreateOptions: 0, defaultGraphicsLayerDisabled: 5, defaultUpdateOptions: 0, hideCreateToolsCircle: 5, hideCreateToolsMultipoint: 5, hideCreateToolsPoint: 5, hideCreateToolsPolygon: 5, hideCreateToolsPolyline: 5, hideCreateToolsRectangle: 5, hideDuplicateButton: 5, hideDeleteButton: 5, hideSelectionCountLabel: 5, hideLabelsToggle: 5, hideSelectionToolsLassoSelection: 5, hideSelectionToolsRectangleSelection: 5, hideSettingsMenu: 5, hideSnappingControls: 5, hideSnappingControlsElementsEnabledToggle: 5, hideSnappingControlsElementsFeatureEnabledToggle: 5, hideSnappingControlsElementsLayerList: 5, hideSnappingControlsElementsSelfEnabledToggle: 5, hideSnappingControlsElementsGridEnabledToggle: 5, hideSnappingControlsElementsGridControls: 5, hideSnappingControlsElementsGridControlsElementsColorSelection: 5, hideSnappingControlsElementsGridControlsElementsDynamicScaleToggle: 5, hideSnappingControlsElementsGridControlsElementsLineIntervalInput: 5, hideSnappingControlsElementsGridControlsElementsNumericInputs: 5, hideSnappingControlsElementsGridControlsElementsOutOfScaleWarning: 5, hideSnappingControlsElementsGridControlsElementsPlacementButtons: 5, hideSnappingControlsElementsGridControlsElementsRotateWithMapToggle: 5, hideTooltipsToggle: 5, hideUndoRedoMenu: 5, icon: 1, label: 1, labelOptions: 0, layer: 0, layout: 1, pointSymbol: 0, polygonSymbol: 0, polylineSymbol: 0, referenceElement: 1, scale: 1, visualScale: 1, showSnappingControlsElementsHeader: 5, showCreateToolsFreehandPolygon: 5, showCreateToolsFreehandPolyline: 5, showCreateToolsText: 5, snappingOptions: 0, state: 32, textSymbol: 0, toolbarKind: 1, tooltipOptions: 0, useLegacyCreateTools: 5, updateOnGraphicClickDisabled: 5, updateGraphics: 32 };
|
|
19
19
|
}
|
|
20
20
|
static {
|
|
21
|
-
this.styles =
|
|
21
|
+
this.styles = v;
|
|
22
22
|
}
|
|
23
23
|
get scale() {
|
|
24
24
|
return this._visualScale;
|
|
@@ -62,6 +62,12 @@ class v extends d {
|
|
|
62
62
|
async setGroupAllowCollapseOptions(e) {
|
|
63
63
|
r(this.widget, e);
|
|
64
64
|
}
|
|
65
|
+
async setContextualToolLocation(e) {
|
|
66
|
+
a(this.widget, e);
|
|
67
|
+
}
|
|
68
|
+
async setGroupCollapsePriorities(e) {
|
|
69
|
+
c(this.widget, e);
|
|
70
|
+
}
|
|
65
71
|
async triggerUpdate(e, t) {
|
|
66
72
|
this.widget?.update(e, t);
|
|
67
73
|
}
|
|
@@ -69,7 +75,7 @@ class v extends d {
|
|
|
69
75
|
this.widget?.undo();
|
|
70
76
|
}
|
|
71
77
|
_arcgisReadyHandler() {
|
|
72
|
-
this.defaultGraphicsLayerDisabled || (this._defaultGraphicsLayer = new
|
|
78
|
+
this.defaultGraphicsLayerDisabled || (this._defaultGraphicsLayer = new d({ title: "Sketch Layer" }), this.widget.availableCreateTools = [
|
|
73
79
|
"point",
|
|
74
80
|
"polyline",
|
|
75
81
|
"freehandPolyline",
|
|
@@ -77,15 +83,15 @@ class v extends d {
|
|
|
77
83
|
"freehandPolygon",
|
|
78
84
|
"rectangle",
|
|
79
85
|
"circle"
|
|
80
|
-
], this.widget.layer = this._defaultGraphicsLayer, this.el.view?.map?.add(this.widget.layer), this.manager.onLifecycle(() =>
|
|
81
|
-
const
|
|
82
|
-
!
|
|
86
|
+
], this.widget.layer = this._defaultGraphicsLayer, this.el.view?.map?.add(this.widget.layer), this.manager.onLifecycle(() => w(() => this.el.view?.map, (e, t) => {
|
|
87
|
+
const s = this._defaultGraphicsLayer;
|
|
88
|
+
!s || this.widget.layer !== s || (t?.allLayers.includes(s) && t.remove(s), e?.add(s));
|
|
83
89
|
})), this.manager.onDestroy(() => {
|
|
84
90
|
this._defaultGraphicsLayer && this.el.view?.map?.allLayers.includes(this._defaultGraphicsLayer) && this.el.view?.map?.remove(this._defaultGraphicsLayer), this._defaultGraphicsLayer?.destroy(), this._defaultGraphicsLayer = null;
|
|
85
91
|
}));
|
|
86
92
|
}
|
|
87
93
|
}
|
|
88
|
-
o("arcgis-sketch",
|
|
94
|
+
o("arcgis-sketch", f);
|
|
89
95
|
export {
|
|
90
|
-
|
|
96
|
+
f as ArcgisSketch
|
|
91
97
|
};
|