@arcgis/map-components 5.1.0-next.128 → 5.1.0-next.129
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/{GSSYRVP6.js → 23QRQ72P.js} +1 -1
- package/dist/cdn/2HF62GLH.js +2 -0
- package/dist/cdn/{B7DNJSCN.js → 5HO3VI5Q.js} +1 -1
- package/dist/cdn/AUDWBCSP.js +2 -0
- package/dist/cdn/CGD5GENR.js +2 -0
- package/dist/cdn/E4GRYYZA.js +2 -0
- package/dist/cdn/{WYDUTSDC.js → IL5K5FGZ.js} +1 -1
- package/dist/cdn/{7CENB7GZ.js → IXFUVPOA.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/components/arcgis-bookmarks/customElement.js +38 -38
- package/dist/components/arcgis-daylight/customElement.js +59 -52
- package/dist/components/arcgis-expand/customElement.js +5 -5
- package/dist/components/arcgis-layer-list-next/customElement.js +2 -2
- package/dist/components/arcgis-print/customElement.d.ts +1 -1
- package/dist/components/arcgis-search/customElement.d.ts +2 -2
- package/dist/components/arcgis-sketch-tooltip-controls/customElement.js +1 -1
- package/dist/components/arcgis-unit-radio-button-group/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-trace-analysis/customElement.d.ts +1 -1
- package/dist/components/arcgis-utility-network-trace-inputs/customElement.js +1 -2
- package/dist/components/arcgis-utility-network-trace-location/customElement.js +16 -16
- 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/package.json +4 -4
- package/dist/cdn/4C4DRKA5.js +0 -2
- package/dist/cdn/A5MKHCZ4.js +0 -2
- package/dist/cdn/SNOTVPX5.js +0 -2
- package/dist/cdn/YY7OOTKK.js +0 -2
|
@@ -23,51 +23,51 @@ import { usePropertyChange as j } from "@arcgis/lumina/controllers";
|
|
|
23
23
|
import { u as M } from "../../chunks/useT9n.js";
|
|
24
24
|
import { u as G } from "../../chunks/useView.js";
|
|
25
25
|
import { watch as $ } from "@arcgis/core/core/reactiveUtils.js";
|
|
26
|
-
var J = Object.defineProperty, K = Object.getOwnPropertyDescriptor, u = (
|
|
27
|
-
for (var r = i > 1 ? void 0 : i ? K(e, t) : e, o =
|
|
28
|
-
(n =
|
|
26
|
+
var J = Object.defineProperty, K = Object.getOwnPropertyDescriptor, u = (l, e, t, i) => {
|
|
27
|
+
for (var r = i > 1 ? void 0 : i ? K(e, t) : e, o = l.length - 1, n; o >= 0; o--)
|
|
28
|
+
(n = l[o]) && (r = (i ? n(e, t, r) : n(r)) || r);
|
|
29
29
|
return i && r && J(e, t, r), r;
|
|
30
30
|
};
|
|
31
31
|
let m = class extends V {
|
|
32
|
-
constructor(
|
|
33
|
-
super(
|
|
32
|
+
constructor(l) {
|
|
33
|
+
super(l);
|
|
34
34
|
}
|
|
35
35
|
get editedBookmark() {
|
|
36
|
-
const { bookmark:
|
|
37
|
-
return
|
|
36
|
+
const { bookmark: l } = this;
|
|
37
|
+
return l ? this._get("editedBookmark") || l.clone() : null;
|
|
38
38
|
}
|
|
39
39
|
get customUrl() {
|
|
40
40
|
if (this._customUrl)
|
|
41
41
|
return this._customUrl;
|
|
42
|
-
const
|
|
43
|
-
return
|
|
42
|
+
const l = this.editedBookmark?.thumbnail?.url ?? "";
|
|
43
|
+
return l ?? (_(l) ? l : null);
|
|
44
44
|
}
|
|
45
|
-
set customUrl(
|
|
46
|
-
this._customUrl =
|
|
45
|
+
set customUrl(l) {
|
|
46
|
+
this._customUrl = l;
|
|
47
47
|
}
|
|
48
48
|
get screenshotUrl() {
|
|
49
49
|
if (this._screenshotUrl)
|
|
50
50
|
return this._screenshotUrl;
|
|
51
|
-
const
|
|
52
|
-
return
|
|
51
|
+
const l = this.editedBookmark?.thumbnail?.url ?? "";
|
|
52
|
+
return l ?? (T(l) ? l : null);
|
|
53
53
|
}
|
|
54
|
-
set screenshotUrl(
|
|
55
|
-
this._screenshotUrl =
|
|
54
|
+
set screenshotUrl(l) {
|
|
55
|
+
this._screenshotUrl = l;
|
|
56
56
|
}
|
|
57
57
|
get state() {
|
|
58
58
|
return this._get("state");
|
|
59
59
|
}
|
|
60
|
-
set state(
|
|
61
|
-
this.validationState = void 0, this.creatingBookmark = void 0, this._set("state",
|
|
60
|
+
set state(l) {
|
|
61
|
+
this.validationState = void 0, this.creatingBookmark = void 0, this._set("state", l);
|
|
62
62
|
}
|
|
63
63
|
get thumbnailState() {
|
|
64
64
|
if (this._thumbnailState)
|
|
65
65
|
return this._thumbnailState;
|
|
66
|
-
const
|
|
67
|
-
return
|
|
66
|
+
const l = this.editedBookmark?.thumbnail?.url;
|
|
67
|
+
return l ? _(l) ? "url" : "screenshot" : "none";
|
|
68
68
|
}
|
|
69
|
-
set thumbnailState(
|
|
70
|
-
this._thumbnailState =
|
|
69
|
+
set thumbnailState(l) {
|
|
70
|
+
this._thumbnailState = l;
|
|
71
71
|
}
|
|
72
72
|
};
|
|
73
73
|
u([
|
|
@@ -184,7 +184,7 @@ class Y extends z {
|
|
|
184
184
|
const { view: t, defaultCreateOptions: i } = this;
|
|
185
185
|
if (!t)
|
|
186
186
|
throw new b("create-bookmark:invalid-view", "Cannot create a bookmark without a view.");
|
|
187
|
-
const { takeScreenshot: r, screenshotSettings: o, captureViewpoint: n, captureRotation:
|
|
187
|
+
const { takeScreenshot: r, screenshotSettings: o, captureViewpoint: n, captureRotation: s, captureScale: c, captureTimeExtent: h } = {
|
|
188
188
|
...i,
|
|
189
189
|
...e
|
|
190
190
|
}, d = r ? await this._createThumbnail(o) : void 0, p = !this.timeDisabled && h && t.timeExtent != null ? t.timeExtent.clone() : void 0;
|
|
@@ -192,7 +192,7 @@ class Y extends z {
|
|
|
192
192
|
...d && { thumbnail: d },
|
|
193
193
|
...h && { timeExtent: p },
|
|
194
194
|
...n && {
|
|
195
|
-
viewpoint: this._createViewpoint({ view: t, captureScale: c, captureRotation:
|
|
195
|
+
viewpoint: this._createViewpoint({ view: t, captureScale: c, captureRotation: s })
|
|
196
196
|
}
|
|
197
197
|
});
|
|
198
198
|
}
|
|
@@ -202,11 +202,11 @@ class Y extends z {
|
|
|
202
202
|
const { view: i, defaultEditOptions: r } = this;
|
|
203
203
|
if (!i)
|
|
204
204
|
throw new b("edit-bookmark:invalid-view", "Cannot edit a bookmark without a view.");
|
|
205
|
-
const { takeScreenshot: o, screenshotSettings: n, captureViewpoint:
|
|
205
|
+
const { takeScreenshot: o, screenshotSettings: n, captureViewpoint: s, captureRotation: c, captureScale: h, captureTimeExtent: d } = {
|
|
206
206
|
...r,
|
|
207
207
|
...t
|
|
208
208
|
}, p = o ? await this._createThumbnail(n) : void 0;
|
|
209
|
-
return p && (e.thumbnail = p),
|
|
209
|
+
return p && (e.thumbnail = p), s && (e.viewpoint = this._createViewpoint({ view: i, captureScale: h, captureRotation: c })), d && i.timeExtent != null && (e.timeExtent = i.timeExtent.clone()), this.arcgisBookmarkEdit.emit({ bookmark: e }), e;
|
|
210
210
|
}
|
|
211
211
|
async _createThumbnail(e) {
|
|
212
212
|
const { view: t } = this;
|
|
@@ -243,11 +243,11 @@ class Y extends z {
|
|
|
243
243
|
const { hideTime: t } = this, { timeExtent: i } = e;
|
|
244
244
|
if (!i)
|
|
245
245
|
return {};
|
|
246
|
-
const { start: r, end: o } = i, n = o != null && r?.getTime() !== o.getTime(),
|
|
246
|
+
const { start: r, end: o } = i, n = o != null && r?.getTime() !== o.getTime(), s = r ? this._formatDate(r) : "", c = r && !t ? this._formatTime(r) : "";
|
|
247
247
|
if (!n)
|
|
248
|
-
return { startDate:
|
|
248
|
+
return { startDate: s, startTime: c };
|
|
249
249
|
const h = this._formatDate(o), d = t ? "" : this._formatTime(o);
|
|
250
|
-
return { startDate:
|
|
250
|
+
return { startDate: s, startTime: c, endDate: h, endTime: d };
|
|
251
251
|
}
|
|
252
252
|
_handleUrlEditInputChange() {
|
|
253
253
|
const { _userState: e, _urlEditInputNode: t } = this, i = t?.value;
|
|
@@ -279,10 +279,10 @@ class Y extends z {
|
|
|
279
279
|
});
|
|
280
280
|
}
|
|
281
281
|
_onCalciteListOrderChange(e) {
|
|
282
|
-
const { _lastDragDetail: t, bookmarks: i } = this, { toEl: r, fromEl: o, dragEl: n, newIndex:
|
|
282
|
+
const { _lastDragDetail: t, bookmarks: i } = this, { toEl: r, fromEl: o, dragEl: n, newIndex: s } = e;
|
|
283
283
|
if (!i.length)
|
|
284
284
|
return;
|
|
285
|
-
const c = t?.newIndex ===
|
|
285
|
+
const c = t?.newIndex === s && t?.dragEl === n && t?.toEl === r && t?.fromEl === o;
|
|
286
286
|
if (!o || !r || c)
|
|
287
287
|
return;
|
|
288
288
|
this._lastDragDetail = e;
|
|
@@ -401,7 +401,7 @@ class Y extends z {
|
|
|
401
401
|
}
|
|
402
402
|
_handleCalciteListDragEnd(e) {
|
|
403
403
|
const { fromEl: t, dragEl: i, oldIndex: r } = e;
|
|
404
|
-
t.insertBefore(i, t.children[r]);
|
|
404
|
+
r == null || !t || !i || t.insertBefore(i, t.children[r]);
|
|
405
405
|
}
|
|
406
406
|
render() {
|
|
407
407
|
return a`<div class="root"><div class="sr-only" aria-live=polite>${this._bookmarkSelectedMessage}</div>${this._renderBookmarksContainer()}</div>`;
|
|
@@ -418,7 +418,7 @@ class Y extends z {
|
|
|
418
418
|
return e ? e.toArray().map((t) => this._renderBookmark(t)) : [];
|
|
419
419
|
}
|
|
420
420
|
_renderBookmarksContainer() {
|
|
421
|
-
const { _state: e, bookmarks: t, dragEnabled: i, messages: r, disabled: o, filterPlaceholder: n, filterText:
|
|
421
|
+
const { _state: e, bookmarks: t, dragEnabled: i, messages: r, disabled: o, filterPlaceholder: n, filterText: s, closed: c, headingLevel: h } = this, d = t.filter((k) => k != null), w = d.length ? a`<calcite-list class="list" display-mode=flat .dragEnabled=${i} .filterEnabled=${this.showFilter} .filterPlaceholder=${n} .filterProps=${["label", "description", "metadata"]} .filterText=${s} .group=${`bookmarks-${this._guid}`} .label=${r.componentLabel ?? ""} selection-appearance=border selection-mode=none @calciteListDragEnd=${(k) => this._handleCalciteListDragEnd(k.detail)} @calciteListFilter=${(k) => this.filterText = k.currentTarget?.filterText ?? ""} @calciteListOrderChange=${(k) => this._onCalciteListOrderChange(k.detail)}>${this._renderBookmarkItems(d)}${this.showFilter ? a`<div class="filter-no-results" slot=filter-no-results><calcite-notice kind=info open width=full><div slot=message>${r.noBookmarksHeading}</div>;</calcite-notice></div>` : null}</calcite-list>` : null, v = [
|
|
422
422
|
a`<calcite-flow-item .closable=${this.showCloseButton} .closed=${c} .collapsible=${this.showCollapseButton} .disabled=${o} .heading=${this.showHeading ? r.componentLabel : void 0} .headingLevel=${h} .loading=${e === "loading"} .selected=${!this._userStateValue} @calciteFlowItemClose=${this._handleClose} ${f(this._storeRootFlowItem)}>${this._renderNoBookmarksContainer(d)}${w}${this._renderAddBookmarkButton()}</calcite-flow-item>`,
|
|
423
423
|
this._renderAddingBookmark(),
|
|
424
424
|
this._renderEditBookmarkFlowItems()
|
|
@@ -449,12 +449,12 @@ class Y extends z {
|
|
|
449
449
|
const { startDate: t, startTime: i, endDate: r, endTime: o } = this._getTimeExtentStrings(e);
|
|
450
450
|
if (!t)
|
|
451
451
|
return "";
|
|
452
|
-
const n = `${t} ${i}`,
|
|
453
|
-
return r ? `${n} - ${
|
|
452
|
+
const n = `${t} ${i}`, s = `${r} ${o}`;
|
|
453
|
+
return r ? `${n} - ${s}` : n;
|
|
454
454
|
}
|
|
455
455
|
_renderBookmarkTimeExtent(e, t = !1) {
|
|
456
|
-
const { messages: i } = this, { startDate: r, startTime: o, endDate: n, endTime:
|
|
457
|
-
return r ? a`<calcite-table .caption=${i.timeExtent ?? ""} scale=s>${c}<calcite-table-row><calcite-table-cell>${r} ${o ? [a`<br>`, o] : null}</calcite-table-cell>${n ? a`<calcite-table-cell>${n}${
|
|
456
|
+
const { messages: i } = this, { startDate: r, startTime: o, endDate: n, endTime: s } = this._getTimeExtentStrings(e), c = t ? null : a`<calcite-table-row slot=table-header><calcite-table-header .heading=${i.startDate}></calcite-table-header>${n ? a`<calcite-table-header .heading=${i.endDate}></calcite-table-header>` : null}</calcite-table-row>`;
|
|
457
|
+
return r ? a`<calcite-table .caption=${i.timeExtent ?? ""} scale=s>${c}<calcite-table-row><calcite-table-cell>${r} ${o ? [a`<br>`, o] : null}</calcite-table-cell>${n ? a`<calcite-table-cell>${n}${s ? [a`<br>`, s] : null}</calcite-table-cell>` : null}</calcite-table-row></calcite-table>` : null;
|
|
458
458
|
}
|
|
459
459
|
_renderBookmarkActiveScrim(e, t) {
|
|
460
460
|
return this._activeBookmark === e && t ? a`<calcite-scrim loading></calcite-scrim>` : null;
|
|
@@ -507,8 +507,8 @@ class Y extends z {
|
|
|
507
507
|
}} width=full>${t.updateThumbnail}</calcite-button>` : null;
|
|
508
508
|
}
|
|
509
509
|
_renderEditingBookmarkUrlInput(e) {
|
|
510
|
-
const { messages: t, _userValidationState: i, _userThumbnailState: r } = this, o = e.thumbnail?.url ?? "", n = _(o) ? o : void 0,
|
|
511
|
-
return r === "url" ? a`<calcite-label><calcite-input name=bookmark-thumbnail-url pattern=https://.* .placeholder=${t ? `https://<${t.imageUrlPlaceholder}>` : void 0} required title=${t.imageUrlTooltip ?? B} type=text .value=${n} @calciteInputChange=${this._handleUrlEditInputChange} @calciteInputInput=${this._handleUrlEditInputChange} ${f(this._storeUrlEditInput)}></calcite-input>${
|
|
510
|
+
const { messages: t, _userValidationState: i, _userThumbnailState: r } = this, o = e.thumbnail?.url ?? "", n = _(o) ? o : void 0, s = o && i === "absolute-url-required";
|
|
511
|
+
return r === "url" ? a`<calcite-label><calcite-input name=bookmark-thumbnail-url pattern=https://.* .placeholder=${t ? `https://<${t.imageUrlPlaceholder}>` : void 0} required title=${t.imageUrlTooltip ?? B} type=text .value=${n} @calciteInputChange=${this._handleUrlEditInputChange} @calciteInputInput=${this._handleUrlEditInputChange} ${f(this._storeUrlEditInput)}></calcite-input>${s ? a`<calcite-input-message icon=exclamation-mark-triangle status=invalid>${t.invalidImageUrl}</calcite-input-message>` : null}</calcite-label>` : null;
|
|
512
512
|
}
|
|
513
513
|
_renderThumbnailSelector() {
|
|
514
514
|
const { hideThumbnail: e, messages: t, _userThumbnailState: i } = this;
|
|
@@ -36,29 +36,29 @@ function ne(r, e) {
|
|
|
36
36
|
return (r % e + e) % e;
|
|
37
37
|
}
|
|
38
38
|
class $e {
|
|
39
|
-
#
|
|
40
|
-
#
|
|
41
|
-
#
|
|
42
|
-
this.#
|
|
39
|
+
#e;
|
|
40
|
+
#i;
|
|
41
|
+
#r = Te(() => {
|
|
42
|
+
this.#t();
|
|
43
43
|
});
|
|
44
44
|
constructor(e) {
|
|
45
|
-
this.#
|
|
45
|
+
this.#i = e;
|
|
46
46
|
let t;
|
|
47
|
-
Z(this.#
|
|
47
|
+
Z(this.#r, () => {
|
|
48
48
|
t = e();
|
|
49
|
-
}), this.#
|
|
49
|
+
}), this.#e = ke(t);
|
|
50
50
|
}
|
|
51
|
-
#
|
|
52
|
-
const e = this.#
|
|
53
|
-
Z(this.#
|
|
54
|
-
this.#
|
|
51
|
+
#t() {
|
|
52
|
+
const e = this.#e.value;
|
|
53
|
+
Z(this.#r, () => {
|
|
54
|
+
this.#e.value = this.#i(e);
|
|
55
55
|
});
|
|
56
56
|
}
|
|
57
57
|
mutate(e) {
|
|
58
|
-
this.#
|
|
58
|
+
this.#e.value = e;
|
|
59
59
|
}
|
|
60
60
|
get value() {
|
|
61
|
-
return this.#
|
|
61
|
+
return this.#e.value;
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
64
|
function A(r) {
|
|
@@ -236,7 +236,7 @@ const Ke = be`.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0
|
|
|
236
236
|
};
|
|
237
237
|
class Xe extends _e {
|
|
238
238
|
constructor() {
|
|
239
|
-
super(...arguments), this.messages = ve({ blocking: !0 }), this.#
|
|
239
|
+
super(...arguments), this.messages = ve({ blocking: !0 }), this.#i = "none", this.#r = null, this.#l = q(), this.#g = q(), this.#u = 200, this.#p = 200, this.#c = !1, this.#o = {}, this._offset = A((e) => p(this._lighting) ? this._lighting.displayUTCOffset ?? e : e), this._timesliderPosition = A((e) => {
|
|
240
240
|
if (p(this._lighting)) {
|
|
241
241
|
const t = this._lighting.displayUTCOffset ?? this.utcOffset ?? 0, i = this._lighting.date;
|
|
242
242
|
if (Y(i)) {
|
|
@@ -257,32 +257,39 @@ class Xe extends _e {
|
|
|
257
257
|
get _view() {
|
|
258
258
|
return this.view?.type === "3d" ? this.view : void 0;
|
|
259
259
|
}
|
|
260
|
-
#
|
|
261
|
-
#r;
|
|
262
|
-
#n;
|
|
260
|
+
#e;
|
|
263
261
|
#i;
|
|
262
|
+
#r;
|
|
263
|
+
#t;
|
|
264
264
|
#l;
|
|
265
|
-
#
|
|
265
|
+
#g;
|
|
266
266
|
#u;
|
|
267
267
|
#p;
|
|
268
268
|
#c;
|
|
269
|
-
#
|
|
270
|
-
return this.#a || this.#c ? !1 : (this.#
|
|
269
|
+
#n(e, t) {
|
|
270
|
+
return this.#a || this.#c ? !1 : (this.#o[e] = t, !0);
|
|
271
271
|
}
|
|
272
272
|
#m() {
|
|
273
|
-
|
|
273
|
+
const { utcOffset: e, timeSliderPosition: t, localDate: i, directShadowsDisabled: n, sunlightingDisabled: s } = this.#o;
|
|
274
|
+
if (this.#c = !0, e != null)
|
|
275
|
+
if (t == null && i == null) {
|
|
276
|
+
const o = this._lighting;
|
|
277
|
+
p(o) ? (o.displayUTCOffset = e, this.#h(e, o)) : this._offset.mutate(e);
|
|
278
|
+
} else
|
|
279
|
+
this.utcOffset = e;
|
|
280
|
+
t != null && (this.timeSliderPosition = t), i && (this.localDate = i), n != null && (this._directShadowsDisabled = n), s != null && (this._sunlightingDisabled = s), this.#o = {}, this.#c = !1;
|
|
274
281
|
}
|
|
275
282
|
#d() {
|
|
276
|
-
if (this.#
|
|
283
|
+
if (this.#t)
|
|
277
284
|
return;
|
|
278
285
|
const e = xe(() => {
|
|
279
|
-
if (this.#
|
|
286
|
+
if (this.#t?.remove(), p(this._lighting)) {
|
|
280
287
|
const t = this.utcOffset ?? 0, i = this.timeSliderPosition ?? 0, n = this.localDate, s = i - t * 60, o = T(n, s, "minutes");
|
|
281
288
|
this._lighting.date = o, this._lighting.displayUTCOffset = t;
|
|
282
289
|
}
|
|
283
290
|
}, { timeout: this.#u });
|
|
284
|
-
this.#
|
|
285
|
-
De(e), this.#
|
|
291
|
+
this.#t = N(() => {
|
|
292
|
+
De(e), this.#t = void 0;
|
|
286
293
|
});
|
|
287
294
|
}
|
|
288
295
|
#f({ scale: e, disabled: t }) {
|
|
@@ -300,18 +307,18 @@ class Xe extends _e {
|
|
|
300
307
|
this._stopPlaying(), this.currentSeason = n.currentTarget.value;
|
|
301
308
|
} })}</calcite-label>`;
|
|
302
309
|
}
|
|
303
|
-
#
|
|
310
|
+
#o;
|
|
304
311
|
get #b() {
|
|
305
|
-
return this.#
|
|
312
|
+
return this.#g?.value?.startTime;
|
|
306
313
|
}
|
|
307
314
|
get localDateAsString() {
|
|
308
315
|
return this._localDate.value ?? void 0;
|
|
309
316
|
}
|
|
310
317
|
get _playingState() {
|
|
311
|
-
return this.#
|
|
318
|
+
return this.#i;
|
|
312
319
|
}
|
|
313
320
|
set _playingState(e) {
|
|
314
|
-
this.#
|
|
321
|
+
this.#i = e, this.#s?.remove(), e === "none" ? this.#e?.remove() : (this._play(e), this._emitUserDateTimeChangeEvent());
|
|
315
322
|
}
|
|
316
323
|
get _lighting() {
|
|
317
324
|
return this._view?.environment?.lighting;
|
|
@@ -320,12 +327,12 @@ class Xe extends _e {
|
|
|
320
327
|
return !p(this._lighting);
|
|
321
328
|
}
|
|
322
329
|
set _sunlightingDisabled(e) {
|
|
323
|
-
this.#
|
|
330
|
+
this.#n("sunlightingDisabled", e);
|
|
324
331
|
const t = this._view?.environment;
|
|
325
332
|
if (t == null)
|
|
326
333
|
return;
|
|
327
|
-
const i = t.lighting, n = this.#
|
|
328
|
-
this.#
|
|
334
|
+
const i = t.lighting, n = this.#r;
|
|
335
|
+
this.#r = i;
|
|
329
336
|
const s = {
|
|
330
337
|
directShadowsEnabled: i.directShadowsEnabled,
|
|
331
338
|
glow: i.glow
|
|
@@ -361,26 +368,26 @@ class Xe extends _e {
|
|
|
361
368
|
return !this._lighting?.directShadowsEnabled;
|
|
362
369
|
}
|
|
363
370
|
set _directShadowsDisabled(e) {
|
|
364
|
-
this.#
|
|
371
|
+
this.#n("directShadowsDisabled", e), this._lighting && (this._lighting.directShadowsEnabled = !e);
|
|
365
372
|
}
|
|
366
373
|
get utcOffset() {
|
|
367
374
|
return this._offset.value;
|
|
368
375
|
}
|
|
369
376
|
set utcOffset(e) {
|
|
370
|
-
this._offset.mutate(e), !this.#
|
|
377
|
+
this._offset.mutate(e), !this.#n("utcOffset", e) && this.#d();
|
|
371
378
|
}
|
|
372
379
|
get timeSliderPosition() {
|
|
373
380
|
return this._timesliderPosition.value;
|
|
374
381
|
}
|
|
375
382
|
set timeSliderPosition(e) {
|
|
376
|
-
this._timesliderPosition.mutate(ne(e ?? 0, Be)), !this.#
|
|
383
|
+
this._timesliderPosition.mutate(ne(e ?? 0, Be)), !this.#n("timeSliderPosition", e) && this.#d();
|
|
377
384
|
}
|
|
378
385
|
get localDate() {
|
|
379
386
|
return this._localDate.value != null ? new Date(this._localDate.value) : /* @__PURE__ */ new Date();
|
|
380
387
|
}
|
|
381
388
|
set localDate(e) {
|
|
382
389
|
if (typeof e == "string" && /^\d{4}-\d{2}-\d{2}$/u.test(e)) {
|
|
383
|
-
if (this._localDate.mutate(e), this.#
|
|
390
|
+
if (this._localDate.mutate(e), this.#n("localDate", e))
|
|
384
391
|
return;
|
|
385
392
|
this.#d();
|
|
386
393
|
return;
|
|
@@ -389,7 +396,7 @@ class Xe extends _e {
|
|
|
389
396
|
if (Y(t)) {
|
|
390
397
|
t.setUTCFullYear(t.getFullYear(), t.getMonth(), t.getDate());
|
|
391
398
|
const i = t.toISOString().slice(0, 10);
|
|
392
|
-
if (this._localDate.mutate(i), this.#
|
|
399
|
+
if (this._localDate.mutate(i), this.#n("localDate", i))
|
|
393
400
|
return;
|
|
394
401
|
this.#d();
|
|
395
402
|
}
|
|
@@ -420,7 +427,7 @@ class Xe extends _e {
|
|
|
420
427
|
this.requestUpdate();
|
|
421
428
|
})
|
|
422
429
|
]), this.manager.onDisconnected(() => {
|
|
423
|
-
this.#
|
|
430
|
+
this.#e?.remove(), this.#t?.remove(), this.#s?.remove();
|
|
424
431
|
});
|
|
425
432
|
}
|
|
426
433
|
willUpdate(e) {
|
|
@@ -438,26 +445,26 @@ class Xe extends _e {
|
|
|
438
445
|
}
|
|
439
446
|
})), await Se(ue(() => this._view?.ready, { signal: e.signal }).then(() => {
|
|
440
447
|
const t = this._lighting, i = this._view?.camera?.position;
|
|
441
|
-
if (this.#
|
|
448
|
+
if (this.#o.utcOffset == null && p(t) && t.displayUTCOffset == null && i) {
|
|
442
449
|
const s = K(i);
|
|
443
|
-
this.#
|
|
450
|
+
this.#h(s, t);
|
|
444
451
|
}
|
|
445
452
|
this.#m();
|
|
446
453
|
const n = this._playingState;
|
|
447
|
-
n !== "none" && this.#
|
|
454
|
+
n !== "none" && this.#e == null && this._play(n);
|
|
448
455
|
})), this.#a = !0;
|
|
449
456
|
}
|
|
450
457
|
#v(e, t) {
|
|
451
458
|
const i = this._lighting;
|
|
452
459
|
if (!(!this.#a || !p(i) || !i.cameraTrackingEnabled || e == null)) {
|
|
453
460
|
if (t == null && i.displayUTCOffset == null) {
|
|
454
|
-
this.#
|
|
461
|
+
this.#h(e, i);
|
|
455
462
|
return;
|
|
456
463
|
}
|
|
457
|
-
i.displayUTCOffset != null && (i.displayUTCOffset = e), this.#
|
|
464
|
+
i.displayUTCOffset != null && (i.displayUTCOffset = e), this.#h(e, i);
|
|
458
465
|
}
|
|
459
466
|
}
|
|
460
|
-
#
|
|
467
|
+
#h(e, t) {
|
|
461
468
|
this._offset.mutate(e);
|
|
462
469
|
const { minutesSinceMidnight: i, localDate: n } = P(t.date, e);
|
|
463
470
|
this._timesliderPosition.mutate(i), this._localDate.mutate(n), this.requestUpdate();
|
|
@@ -468,16 +475,16 @@ class Xe extends _e {
|
|
|
468
475
|
_stopPlaying() {
|
|
469
476
|
this._playingState = "none";
|
|
470
477
|
}
|
|
471
|
-
#
|
|
478
|
+
#s;
|
|
472
479
|
#w(e) {
|
|
473
|
-
if (this.#
|
|
480
|
+
if (this.#s)
|
|
474
481
|
return;
|
|
475
482
|
const t = setTimeout(() => {
|
|
476
483
|
const i = e.displayUTCOffset ?? 0, n = e.date, { minutesSinceMidnight: s } = P(n, i);
|
|
477
|
-
this._timesliderPosition.mutate(s), this.#
|
|
484
|
+
this._timesliderPosition.mutate(s), this.#s?.remove();
|
|
478
485
|
}, this.#p);
|
|
479
|
-
this.#
|
|
480
|
-
clearTimeout(t), this.#
|
|
486
|
+
this.#s = N(() => {
|
|
487
|
+
clearTimeout(t), this.#s = void 0;
|
|
481
488
|
const i = this._lighting;
|
|
482
489
|
if (p(i)) {
|
|
483
490
|
const n = i.displayUTCOffset ?? 0, s = i.date, { minutesSinceMidnight: o } = P(s, n);
|
|
@@ -486,7 +493,7 @@ class Xe extends _e {
|
|
|
486
493
|
});
|
|
487
494
|
}
|
|
488
495
|
_play(e) {
|
|
489
|
-
this.#
|
|
496
|
+
this.#e?.remove();
|
|
490
497
|
const t = this._view;
|
|
491
498
|
if (t == null || this._sunlightingDisabled)
|
|
492
499
|
return;
|
|
@@ -494,7 +501,7 @@ class Xe extends _e {
|
|
|
494
501
|
if (!p(i))
|
|
495
502
|
return;
|
|
496
503
|
let n = 0;
|
|
497
|
-
this.#
|
|
504
|
+
this.#e = Ze({
|
|
498
505
|
mode: e,
|
|
499
506
|
lighting: i,
|
|
500
507
|
beforeProgress: () => {
|
|
@@ -520,7 +527,7 @@ class Xe extends _e {
|
|
|
520
527
|
const o = (this.utcOffset ?? 0) * 60, a = this.view?.ready === !0, c = Array.isArray(this.timeSliderSteps) ? this.timeSliderSteps.at(0) : this.timeSliderSteps;
|
|
521
528
|
return W({ class: { root: !0, loading: !a }, label: e.componentLabel, title: e.title, hideHeader: this.hideHeader, headingLevel: this.headingLevel, children: m`${a ? void 0 : m`<calcite-scrim loading></calcite-scrim>`}<div class="time-configuration" style=${V({ columnGap: this.hidePlayButtons ? "0" : void 0 })}><calcite-label class="slider-container" .scale=${n}>${e.timeSliderLabel}<arcgis-time-of-day-slider class="slider" .disabled=${this._sunlightingDisabled} mode=single .startTime=${this.timeSliderPosition ?? 0} .steps=${c} style=${V({ gridArea: "slider" })} @arcgisTimeChange=${({ currentTarget: d }) => {
|
|
522
529
|
this._stopPlaying(), this._emitUserDateTimeChangeEvent(), this.timeSliderPosition = d.startTime;
|
|
523
|
-
}} ${G(this.#
|
|
530
|
+
}} ${G(this.#g)}></arcgis-time-of-day-slider></calcite-label>${D({ hidden: this.hidePlayButtons, children: re({ disabled: this._sunlightingDisabled, playing: this.dayPlaying, label: e.playDay, onClick: () => {
|
|
524
531
|
this._playingState === "day" ? this._stopPlaying() : this._playingState = "day";
|
|
525
532
|
}, scale: n }) })}${D({ hidden: this.hideTimezone, children: m`<calcite-label .scale=${n} class="timezone-input-container">${e.timezone}<calcite-input-time-zone mode=offset overlay-positioning=fixed .scale=${n} .disabled=${this._sunlightingDisabled} .value=${`${o}`} .referenceDate=${this.localDateAsString} @calciteInputTimeZoneChange=${(d) => {
|
|
526
533
|
const l = +d.target.value;
|
|
@@ -8,8 +8,8 @@ import { createRef as g, ref as h } from "lit/directives/ref.js";
|
|
|
8
8
|
import C from "@arcgis/core/core/Accessor.js";
|
|
9
9
|
import { property as p, subclass as D } from "@arcgis/core/core/accessorSupport/decorators.js";
|
|
10
10
|
import { usePropertyChange as T } from "@arcgis/lumina/controllers";
|
|
11
|
-
import { m as
|
|
12
|
-
import { LitElement as
|
|
11
|
+
import { m as I } from "../../chunks/useViewModel.js";
|
|
12
|
+
import { LitElement as k, createEvent as H, safeClassMap as u, nothing as M } from "@arcgis/lumina";
|
|
13
13
|
import { classes as m } from "@arcgis/toolkit/dom";
|
|
14
14
|
var P = Object.defineProperty, O = Object.getOwnPropertyDescriptor, c = (i, e, t, a) => {
|
|
15
15
|
for (var s = a > 1 ? void 0 : a ? O(e, t) : e, n = i.length - 1, l; n >= 0; n--)
|
|
@@ -117,8 +117,8 @@ c([
|
|
|
117
117
|
o = c([
|
|
118
118
|
D("map-components.expand.ExpandViewModel")
|
|
119
119
|
], o);
|
|
120
|
-
const S = y`:host{display:flex;pointer-events:auto;--arcgis-internal-expand-icon-number-spacing-left: none;--arcgis-internal-expand-icon-number-spacing-right: none}arcgis-expand>.content-expanded{background-color:var(--calcite-color-background)}.root{--esri-widget-panel-max-height: 95svh;--calcite-sheet-max-height: var(--esri-widget-panel-max-height);--calcite-sheet-height: auto
|
|
121
|
-
class z extends
|
|
120
|
+
const S = y`:host{display:flex;pointer-events:auto;--arcgis-internal-expand-icon-number-spacing-left: none;--arcgis-internal-expand-icon-number-spacing-right: none}arcgis-expand>.content-expanded{background-color:var(--calcite-color-background)}.root{--esri-widget-panel-max-height: 95svh;--calcite-sheet-max-height: var(--esri-widget-panel-max-height);--calcite-sheet-height: auto}.action{cursor:pointer;text-align:center;color:var(--calcite-color-text-2);justify-content:center;align-items:center;margin:0;padding:0;font-size:var(--calcite-font-size);transition:background-color .125s ease-in-out;display:flex;flex-direction:column;overflow:hidden}.toggle{position:relative}.popover-content{flex-direction:column;display:flex;max-height:var(--arcgis-internal-expand-max-height, 95svh);::slotted(*){max-height:var(--arcgis-internal-expand-max-height, 95svh);overflow-y:auto}::slotted(arcgis-sketch){--arcgis-internal-sketch-gap: var(--calcite-spacing-none)}::slotted(:is(arcgis-area-measurement-2d,arcgis-area-measurement-3d,arcgis-basemap-gallery,arcgis-basemap-layer-list,arcgis-bookmarks,arcgis-building-explorer,arcgis-catalog-layer-list,arcgis-directions,arcgis-direct-line-measurement-3d,arcgis-distance-measurement-2d,arcgis-editor,arcgis-feature-form,arcgis-features,arcgis-layer-list,arcgis-layer-list-next,arcgis-legend,arcgis-line-of-sight,arcgis-print,arcgis-shadow-cast,arcgis-slice,arcgis-table-list,arcgis-utility-network-trace,arcgis-grid-controls)){width:var(--arcgis-internal-panel-width);min-width:var(--calcite-spacing-xxxl);min-height:var(--calcite-spacing-xxxl);transition:max-height .25s ease-in-out}}.popover-content .esri-widget--panel{width:300px}.panel{max-height:var(--esri-widget-panel-max-height)}.panel-content{::slotted(*){width:100%}::slotted(:is(arcgis-area-measurement-2d,arcgis-area-measurement-3d,arcgis-basemap-gallery,arcgis-basemap-layer-list,arcgis-bookmarks,arcgis-building-explorer,arcgis-catalog-layer-list,arcgis-directions,arcgis-direct-line-measurement-3d,arcgis-distance-measurement-2d,arcgis-editor,arcgis-feature-form,arcgis-features,arcgis-layer-list,arcgis-layer-list-next,arcgis-legend,arcgis-line-of-sight,arcgis-print,arcgis-shadow-cast,arcgis-slice,arcgis-table-list,arcgis-utility-network-trace,arcgis-grid-controls)){overflow-y:auto}}.panel-content .esri-widget{width:auto}.panel-content .esri-widget--panel{flex:auto}.arcgis-map-container-ui__element .popover-content .esri-widget,.arcgis-map-container-ui__element .popover-content .esri-widget.esri-component,.arcgis-map-container-ui__element .panel-content .esri-widget,.arcgis-map-container-ui__element .panel-content .esri-widget.esri-component,.popover-content .esri-widget,.popover-content .esri-widget.esri-component,.panel-content .esri-widget,.panel-content .esri-widget.esri-component{box-sizing:border-box;box-shadow:none;margin-bottom:0}.panel-content,.content-container{background-color:var(--calcite-color-foreground-1);flex-direction:column;flex:auto;justify-content:stretch;display:flex}.sheet .panel-content,.sheet .content-container{overflow:hidden}.panel-icon-number{align-self:center}.icon{display:flex}calcite-button:not(:hover) .icon:not(calcite-icon){color:var(--calcite-color-text-3)}.icon-flip{transform:var(--arcgis-internal-collapse-icon-flip)}.icon-number{transform-origin:50%;color:var(--calcite-color-text-inverse);pointer-events:none;background-color:var(--calcite-color-text-3);border-radius:var(--calcite-spacing-xl);justify-content:center;align-items:center;height:var(--calcite-spacing-lg);padding:.125em .333em;font-size:var(--calcite-font-size-sm);line-height:1em;display:flex;position:absolute;top:-6px;left:var(--arcgis-internal-expand-icon-number-spacing-left);right:var(--arcgis-internal-expand-icon-number-spacing-right)}`, f = "chevrons-left", x = "chevrons-right", V = I(o);
|
|
121
|
+
class z extends k {
|
|
122
122
|
constructor() {
|
|
123
123
|
super(...arguments), this.popoverEl = g(), this.messages = E({}), this.viewModel = V(this), this.toggleActionEl = g(), this.view = this.viewModel.view, this.state = this.viewModel.state, this.autoDestroyDisabled = !1, this.autoCollapse = this.viewModel.autoCollapse, this.closeOnEscDisabled = !1, this.content = "", this.expanded = this.viewModel.expanded, this.expandTooltip = "", this.collapseTooltip = "", this.focusTrapDisabled = !1, this.group = this.viewModel.group, this.iconNumber = 0, this.mode = "auto", this.topLayerDisabled = !1, this.visualScale = "m", this.arcgisPropertyChange = T()("expanded"), this.arcgisReady = H();
|
|
124
124
|
}
|
|
@@ -216,7 +216,7 @@ class z extends I {
|
|
|
216
216
|
}
|
|
217
217
|
_renderToggleButton() {
|
|
218
218
|
const { expanded: e, expandTitle: t, expandIcon: a, collapseIcon: s } = this, n = e ? s : a;
|
|
219
|
-
return r`<calcite-action class=${u(m("action", "icon", { "icon-flip": n === f || n === x }))} @click=${this.toggle} .text=${t} title=${t ?? M} .icon=${n} .scale=${this.visualScale} ${h(this.toggleActionEl)}></calcite-action>`;
|
|
219
|
+
return r`<calcite-action class=${u(m("action", "icon", { "icon-flip": n === f || n === x }))} @click=${this.toggle} .text=${t} title=${t ?? M} .icon=${n} .scale=${this.visualScale} appearance=solid ${h(this.toggleActionEl)}></calcite-action>`;
|
|
220
220
|
}
|
|
221
221
|
_renderToggle() {
|
|
222
222
|
return r`<div class="toggle">${this._renderToggleButton()}${this._renderBadgeNumber()}</div>`;
|
|
@@ -155,11 +155,11 @@ class ie extends Z {
|
|
|
155
155
|
}
|
|
156
156
|
_moveLayerFromChildList({ toEl: e, fromEl: t, dragEl: i, newIndex: r }) {
|
|
157
157
|
const o = p(i, this.operationalItems), a = p(e, this.operationalItems), s = p(t, this.operationalItems);
|
|
158
|
-
this.viewModel.moveListItem(o, s, a, r);
|
|
158
|
+
r == null || !o || !a || !s || this.viewModel.moveListItem(o, s, a, r);
|
|
159
159
|
}
|
|
160
160
|
_onCalciteListDragEnd(e) {
|
|
161
161
|
const { fromEl: t, dragEl: i, oldIndex: r } = e;
|
|
162
|
-
t.insertBefore(i, t.children[r]);
|
|
162
|
+
r == null || !t || !i || t.insertBefore(i, t.children[r]);
|
|
163
163
|
}
|
|
164
164
|
_onCalciteListOrderChange(e) {
|
|
165
165
|
const { _lastDragDetail: t } = this, { toEl: i, fromEl: r, dragEl: o, newIndex: a } = e, s = t?.newIndex === a && t?.dragEl === o && t?.toEl === i && t?.fromEl === r;
|
|
@@ -498,7 +498,7 @@ export abstract class ArcgisPrint extends LitElement {
|
|
|
498
498
|
*/
|
|
499
499
|
accessor outSpatialReference: SpatialReference | null | undefined;
|
|
500
500
|
/**
|
|
501
|
-
* It is possible to search a specified portal instance's [locator services](https://
|
|
501
|
+
* It is possible to search a specified portal instance's [locator services](https://doc.esri.com/en/arcgis-enterprise/latest/administer/configure-portal-to-geocode-addresses.html).
|
|
502
502
|
* Use this property to set this [ArcGIS Portal](https://enterprise.arcgis.com/en/portal/) instance to search.
|
|
503
503
|
* This is especially helpful when working with a [custom template](https://developers.arcgis.com/javascript/latest/references/core/widgets/Print/CustomTemplate/).
|
|
504
504
|
*
|
|
@@ -105,7 +105,7 @@ export abstract class ArcgisSearch extends LitElement {
|
|
|
105
105
|
* of [LayerSearchSource](https://developers.arcgis.com/javascript/latest/references/core/widgets/Search/LayerSearchSource/)
|
|
106
106
|
* and/or [LocatorSearchSource](https://developers.arcgis.com/javascript/latest/references/core/widgets/Search/LocatorSearchSource/). This property
|
|
107
107
|
* may contain [ArcGIS Portal](https://enterprise.arcgis.com/en/portal/)
|
|
108
|
-
* [locators](
|
|
108
|
+
* [locators](https://doc.esri.com/en/arcgis-enterprise/latest/administer/geocode-services.html)
|
|
109
109
|
* and any web map or web scene [configurable search sources](http://doc.arcgis.com/en/arcgis-online/create-maps/configure-feature-search.htm).
|
|
110
110
|
* Web maps or web scenes may contain
|
|
111
111
|
* [map](https://developers.arcgis.com/javascript/latest/references/core/layers/MapImageLayer/)/[feature](https://developers.arcgis.com/javascript/latest/references/core/layers/FeatureLayer/) service feature
|
|
@@ -269,7 +269,7 @@ export abstract class ArcgisSearch extends LitElement {
|
|
|
269
269
|
*/
|
|
270
270
|
accessor popupTemplate: PopupTemplate | null | undefined;
|
|
271
271
|
/**
|
|
272
|
-
* It is possible to search a specified portal instance's [locator services](
|
|
272
|
+
* It is possible to search a specified portal instance's [locator services](https://doc.esri.com/en/arcgis-enterprise/latest/administer/configure-portal-to-geocode-addresses.html)
|
|
273
273
|
* Use this property to set this [ArcGIS Portal](https://enterprise.arcgis.com/en/portal/) instance to search.
|
|
274
274
|
*
|
|
275
275
|
* @since 4.8
|
|
@@ -39,7 +39,7 @@ class p extends c {
|
|
|
39
39
|
this.sketchOptions.values.directionMode = e;
|
|
40
40
|
}
|
|
41
41
|
_onDirectionModeChange(e) {
|
|
42
|
-
this.sketchOptions.values.directionMode = e.currentTarget.selectedItem
|
|
42
|
+
this.sketchOptions.values.directionMode = e.currentTarget.selectedItem?.value;
|
|
43
43
|
}
|
|
44
44
|
render() {
|
|
45
45
|
const { label: e, messages: t } = this, o = e ?? t.componentLabel;
|
|
@@ -29,7 +29,7 @@ class p extends m {
|
|
|
29
29
|
arcgisUnitSelectChange: c
|
|
30
30
|
} = this;
|
|
31
31
|
return e`<calcite-radio-button-group layout=vertical .name=${i} @calciteRadioButtonGroupChange=${(t) => {
|
|
32
|
-
c.emit(t.target.selectedItem
|
|
32
|
+
c.emit(t.target.selectedItem?.value);
|
|
33
33
|
}} .scale=${this.scale}>${s.map((t) => e`<calcite-label layout=inline .scale=${this.scale}>${n(t, e`<calcite-radio-button .checked=${t === r} .scale=${this.scale} .value=${t}></calcite-radio-button>`)}${d(t) ? a.systems?.[t] : a.units?.[t]?.pluralCapitalized}</calcite-label>`)}</calcite-radio-button-group>`;
|
|
34
34
|
}
|
|
35
35
|
}
|
|
@@ -40,7 +40,7 @@ import type { UtilityNetworkTraceAnalysisState } from "@arcgis/core/networks/Uti
|
|
|
40
40
|
* > 1. Proxied feature services or feature services that utilize stored credentials.
|
|
41
41
|
* > 2. The `circuit` trace type or the `paths` and `circuits` result types.
|
|
42
42
|
* > 3. Setting grouping properties `firstUnit` and `lastUnit` for trace locations in a [telecom domain network](https://pro.arcgis.com/en/pro-app/latest/help/data/utility-network/telecom-domain-networks.htm).
|
|
43
|
-
* > If a [grouped object](https://
|
|
43
|
+
* > If a [grouped object](https://doc.esri.com/en/arcgis-pro/latest/help/data/utility-network/grouping.html) is used as a trace location, its `firstUnit` and `lastUnit` attributes are not used in the trace.
|
|
44
44
|
*
|
|
45
45
|
* ## Working with nonspatial objects
|
|
46
46
|
*
|