@arcgis/map-components 5.2.0-next.116 → 5.2.0-next.118
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/{YPLDGIGU.js → 2Y5HBYMR.js} +1 -1
- package/dist/cdn/{7YQT4TAV.js → 3IICULHW.js} +1 -1
- package/dist/cdn/4X5447LA.js +2 -0
- package/dist/cdn/{AYA4YPGJ.js → 5GTE6AB7.js} +1 -1
- package/dist/cdn/67VFYB4A.js +2 -0
- package/dist/cdn/CXDU7XEL.js +2 -0
- package/dist/cdn/{KFZLFT6Z.js → GZQXMBK6.js} +1 -1
- package/dist/cdn/{RIVFCEGS.js → H6IR3FJ4.js} +1 -1
- package/dist/cdn/{AAMXNZ5S.js → HM37S3XP.js} +1 -1
- package/dist/cdn/{L5U6EHCA.js → J2BAJI7A.js} +1 -1
- package/dist/cdn/{XUNBAMHK.js → KZUMKDRC.js} +1 -1
- package/dist/cdn/{IYZBLJYE.js → LBXIC75T.js} +1 -1
- package/dist/cdn/{ZVD5QL4J.js → P5JSHW4U.js} +1 -1
- package/dist/cdn/{2IXK6FXU.js → P7G6JCDO.js} +1 -1
- package/dist/cdn/PQINPHI6.js +2 -0
- package/dist/cdn/QNO6SSDQ.js +2 -0
- package/dist/cdn/QYIXFX7A.js +2 -0
- package/dist/cdn/RWMU7NT7.js +2 -0
- package/dist/cdn/{2ZQLKYCJ.js → S25QU4HS.js} +1 -1
- package/dist/cdn/{EBONLIVF.js → S5TTVLIS.js} +1 -1
- package/dist/cdn/{MBK37J6O.js → STPGQ6FX.js} +1 -1
- package/dist/cdn/{7TRI2EBZ.js → TLNCTHYZ.js} +1 -1
- package/dist/cdn/{PV7UBH65.js → TN5QHOVX.js} +1 -1
- package/dist/cdn/{F47RXPBG.js → VXKWVXTO.js} +1 -1
- package/dist/cdn/X5P6K573.js +2 -0
- package/dist/cdn/{3HPTS3JC.js → XJZJWNYP.js} +1 -1
- package/dist/cdn/assets/feature/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/feature/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/feature/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/feature/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/feature/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/feature/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/feature/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/feature/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/feature/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/feature/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/feature/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/feature/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/feature/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/feature/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/feature/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/feature/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/feature/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/feature/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/feature/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/feature/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/feature/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/feature/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/feature/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/feature/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/feature/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/feature/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/feature/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/feature/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/feature/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/feature/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/feature/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/feature/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/feature/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/feature/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/feature/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/feature/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/feature/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/feature/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/feature/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/assets/file-picker/t9n/messages.ar.json +1 -0
- package/dist/cdn/assets/file-picker/t9n/messages.bg.json +1 -0
- package/dist/cdn/assets/file-picker/t9n/messages.ca.json +1 -0
- package/dist/cdn/assets/file-picker/t9n/messages.cs.json +1 -0
- package/dist/cdn/assets/file-picker/t9n/messages.da.json +1 -0
- package/dist/cdn/assets/file-picker/t9n/messages.de.json +1 -0
- package/dist/cdn/assets/file-picker/t9n/messages.el.json +1 -0
- package/dist/cdn/assets/file-picker/t9n/messages.es.json +1 -0
- package/dist/cdn/assets/file-picker/t9n/messages.et.json +1 -0
- package/dist/cdn/assets/file-picker/t9n/messages.fi.json +1 -0
- package/dist/cdn/assets/file-picker/t9n/messages.fr.json +1 -0
- package/dist/cdn/assets/file-picker/t9n/messages.he.json +1 -0
- package/dist/cdn/assets/file-picker/t9n/messages.hr.json +1 -0
- package/dist/cdn/assets/file-picker/t9n/messages.hu.json +1 -0
- package/dist/cdn/assets/file-picker/t9n/messages.id.json +1 -0
- package/dist/cdn/assets/file-picker/t9n/messages.it.json +1 -0
- package/dist/cdn/assets/file-picker/t9n/messages.ja.json +1 -0
- package/dist/cdn/assets/file-picker/t9n/messages.ko.json +1 -0
- package/dist/cdn/assets/file-picker/t9n/messages.lt.json +1 -0
- package/dist/cdn/assets/file-picker/t9n/messages.lv.json +1 -0
- package/dist/cdn/assets/file-picker/t9n/messages.nl.json +1 -0
- package/dist/cdn/assets/file-picker/t9n/messages.no.json +1 -0
- package/dist/cdn/assets/file-picker/t9n/messages.pl.json +1 -0
- package/dist/cdn/assets/file-picker/t9n/messages.pt-BR.json +1 -0
- package/dist/cdn/assets/file-picker/t9n/messages.pt-PT.json +1 -0
- package/dist/cdn/assets/file-picker/t9n/messages.ro.json +1 -0
- package/dist/cdn/assets/file-picker/t9n/messages.ru.json +1 -0
- package/dist/cdn/assets/file-picker/t9n/messages.sk.json +1 -0
- package/dist/cdn/assets/file-picker/t9n/messages.sl.json +1 -0
- package/dist/cdn/assets/file-picker/t9n/messages.sr.json +1 -0
- package/dist/cdn/assets/file-picker/t9n/messages.sv.json +1 -0
- package/dist/cdn/assets/file-picker/t9n/messages.th.json +1 -0
- package/dist/cdn/assets/file-picker/t9n/messages.tr.json +1 -0
- package/dist/cdn/assets/file-picker/t9n/messages.uk.json +1 -0
- package/dist/cdn/assets/file-picker/t9n/messages.vi.json +1 -0
- package/dist/cdn/assets/file-picker/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/file-picker/t9n/messages.zh-TW.json +1 -0
- package/dist/cdn/assets/volume-measurement/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/volume-measurement/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/volume-measurement/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/volume-measurement/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/volume-measurement/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/volume-measurement/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/volume-measurement/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/volume-measurement/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/volume-measurement/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/volume-measurement/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/volume-measurement/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/volume-measurement/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/volume-measurement/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/volume-measurement/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/volume-measurement/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/volume-measurement/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/volume-measurement/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/volume-measurement/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/volume-measurement/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/volume-measurement/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/volume-measurement/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/volume-measurement/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/volume-measurement/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/volume-measurement/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/volume-measurement/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/volume-measurement/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/volume-measurement/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/volume-measurement/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/volume-measurement/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/volume-measurement/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/volume-measurement/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/volume-measurement/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/volume-measurement/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/volume-measurement/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/volume-measurement/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/volume-measurement/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/volume-measurement/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/volume-measurement/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/volume-measurement/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/AnalysisViewModel.js +78 -75
- package/dist/chunks/GeolocationPositioning.js +67 -67
- package/dist/chunks/screenLocation.js +8 -8
- package/dist/chunks/useLayerById.js +13 -12
- package/dist/components/arcgis-area-measurement-2d/customElement.d.ts +2 -2
- package/dist/components/arcgis-area-measurement-2d/customElement.js +1 -1
- package/dist/components/arcgis-basemap-layer-list-next/customElement.d.ts +1 -1
- package/dist/components/arcgis-bookmarks/customElement.d.ts +30 -3
- package/dist/components/arcgis-building-level-picker/customElement.js +22 -22
- package/dist/components/arcgis-catalog-layer-list-next/customElement.d.ts +1 -1
- package/dist/components/arcgis-distance-measurement-2d/customElement.d.ts +2 -2
- package/dist/components/arcgis-distance-measurement-2d/customElement.js +1 -1
- package/dist/components/arcgis-editor/customElement.d.ts +4 -4
- package/dist/components/arcgis-expand/customElement.js +1 -1
- package/dist/components/arcgis-exploratory-analysis/customElement.d.ts +1 -1
- package/dist/components/arcgis-features/customElement.js +30 -30
- package/dist/components/arcgis-grid-controls/customElement.d.ts +1 -1
- package/dist/components/arcgis-layer-list-next/customElement.d.ts +1 -1
- package/dist/components/arcgis-paste/customElement.js +30 -25
- package/dist/components/arcgis-reverse-geocode-list/customElement.js +30 -30
- package/dist/components/arcgis-sketch/customElement.d.ts +4 -4
- package/dist/components/arcgis-sketch-tooltip-controls/customElement.d.ts +2 -2
- package/dist/components/arcgis-snapping-controls/customElement.d.ts +1 -1
- package/dist/components/arcgis-table-list/customElement.d.ts +1 -1
- package/dist/components/arcgis-table-list-next/customElement.d.ts +1 -1
- package/dist/components/arcgis-value-picker-legacy/customElement.d.ts +2 -1
- package/dist/components/arcgis-video-player/VideoPlayerViewModel.d.ts +52 -0
- package/dist/components/arcgis-video-player/customElement.d.ts +4 -6
- package/dist/components/arcgis-video-player/customElement.js +241 -33
- 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 +5 -5
- package/dist/cdn/HC2C4ZYW.js +0 -2
- package/dist/cdn/L3V32U4F.js +0 -2
- package/dist/cdn/M4BXOW2Q.js +0 -2
- package/dist/cdn/NE7E7YHO.js +0 -2
- package/dist/cdn/O7UYGS63.js +0 -2
- package/dist/cdn/T6NUABZU.js +0 -2
- package/dist/cdn/TQOCUWMD.js +0 -2
- package/dist/cdn/XMDFKE47.js +0 -2
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import { forceInteractive as
|
|
3
|
-
import
|
|
4
|
-
import { property as
|
|
2
|
+
import { forceInteractive as f } from "@arcgis/core/applications/Components/analysisUtils.js";
|
|
3
|
+
import _ from "@arcgis/core/core/Accessor.js";
|
|
4
|
+
import { property as r, subclass as V } from "@arcgis/core/core/accessorSupport/decorators.js";
|
|
5
5
|
import { ignoreAbortErrors as v } from "@arcgis/core/core/promiseUtils.js";
|
|
6
6
|
import { when as m, watch as w, on as A, whenOnce as g } from "@arcgis/core/core/reactiveUtils.js";
|
|
7
7
|
import { log as p } from "@arcgis/toolkit/log";
|
|
8
8
|
import { c as u, i as O, t as I, a as b } from "./async-utils.js";
|
|
9
9
|
import { a as h } from "./maybe.js";
|
|
10
10
|
import { getDefaultUnitForView as F } from "@arcgis/core/applications/Components/getDefaultUnits.js";
|
|
11
|
-
var T = Object.defineProperty, R = Object.getOwnPropertyDescriptor,
|
|
12
|
-
for (var
|
|
13
|
-
(c = e[l]) && (
|
|
14
|
-
return
|
|
11
|
+
var T = Object.defineProperty, R = Object.getOwnPropertyDescriptor, a = (e, s, n, i) => {
|
|
12
|
+
for (var o = i > 1 ? void 0 : i ? R(s, n) : s, l = e.length - 1, c; l >= 0; l--)
|
|
13
|
+
(c = e[l]) && (o = (i ? c(s, n, o) : c(o)) || o);
|
|
14
|
+
return i && o && T(s, n, o), o;
|
|
15
15
|
};
|
|
16
16
|
const y = /* @__PURE__ */ Symbol("interactiveHandle");
|
|
17
|
-
let
|
|
17
|
+
let t = class extends _ {
|
|
18
18
|
// #region Lifecycle
|
|
19
19
|
// Intentionally keep constructor side-effect free: callers may set properties in any order after instantiation.
|
|
20
20
|
constructor() {
|
|
@@ -49,9 +49,9 @@ let i = class extends f {
|
|
|
49
49
|
ready: !!this.view?.ready,
|
|
50
50
|
supported: this.supported
|
|
51
51
|
}),
|
|
52
|
-
({ view: s },
|
|
53
|
-
const
|
|
54
|
-
s !==
|
|
52
|
+
({ view: s }, n) => {
|
|
53
|
+
const i = n?.view;
|
|
54
|
+
s !== i && (this._userOperationInfo = h(this._userOperationInfo), this._disconnectFromView(i)), this._scheduleViewReconnect();
|
|
55
55
|
},
|
|
56
56
|
{ sync: !0, initial: !0 }
|
|
57
57
|
)
|
|
@@ -112,16 +112,16 @@ let i = class extends f {
|
|
|
112
112
|
task: null,
|
|
113
113
|
abort: null,
|
|
114
114
|
state: "pending"
|
|
115
|
-
},
|
|
116
|
-
if (s.state = "wait-for-view-ready", await g(() => this.ready,
|
|
115
|
+
}, n = u(async (i) => {
|
|
116
|
+
if (s.state = "wait-for-view-ready", await g(() => this.ready, i), s.state = "running", !this.analysisView || !this.view)
|
|
117
117
|
return;
|
|
118
118
|
this.operationState = "active";
|
|
119
|
-
const
|
|
120
|
-
await v(
|
|
119
|
+
const o = e?.operation?.({ signal: i }) ?? this.place({ signal: i });
|
|
120
|
+
await v(o);
|
|
121
121
|
});
|
|
122
|
-
return
|
|
122
|
+
return n.promise.finally(() => {
|
|
123
123
|
(this._userOperationInfo === s || !this._userOperationInfo) && (this.operationState = "inactive");
|
|
124
|
-
}), s.task =
|
|
124
|
+
}), s.task = n, s.abort = () => n.abort(), this._userOperationInfo = s, await n.promise;
|
|
125
125
|
}
|
|
126
126
|
/**
|
|
127
127
|
* Stop the active user operation, if any.
|
|
@@ -160,12 +160,12 @@ let i = class extends f {
|
|
|
160
160
|
const e = u(async (s) => {
|
|
161
161
|
try {
|
|
162
162
|
await this._reconnectView(s);
|
|
163
|
-
} catch (
|
|
164
|
-
if (I(s), !b(
|
|
165
|
-
p("warn", this, `Failed to use analysis in view model. ${String(
|
|
163
|
+
} catch (n) {
|
|
164
|
+
if (I(s), !b(n)) {
|
|
165
|
+
p("warn", this, `Failed to use analysis in view model. ${String(n)}`);
|
|
166
166
|
return;
|
|
167
167
|
}
|
|
168
|
-
throw
|
|
168
|
+
throw n;
|
|
169
169
|
} finally {
|
|
170
170
|
e === this._reconnectViewTask && (this._reconnectViewTask = void 0);
|
|
171
171
|
}
|
|
@@ -177,16 +177,19 @@ let i = class extends f {
|
|
|
177
177
|
* Aborts active operations that are past the "waiting for view" phase.
|
|
178
178
|
*/
|
|
179
179
|
async _reconnectView(e) {
|
|
180
|
-
const { view: s } = this,
|
|
181
|
-
if (this._userOperationInfo = d(this._userOperationInfo), this._disconnectFromView(s), !
|
|
180
|
+
const { view: s } = this, n = s?.ready && this.supported, i = this.analysis;
|
|
181
|
+
if (this._userOperationInfo = d(this._userOperationInfo), this._disconnectFromView(s), !n || !s || !i)
|
|
182
182
|
return;
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
if (
|
|
183
|
+
if (this._ownsAnalysis)
|
|
184
|
+
this._changeFromReconnect = !0, s.analyses.add(i);
|
|
185
|
+
else if (!("parent" in i) || i.parent == null)
|
|
186
|
+
return;
|
|
187
|
+
const o = await s.whenAnalysisView(i);
|
|
188
|
+
if (this.analysisView = o, O(e)) {
|
|
186
189
|
this._userOperationInfo = d(this._userOperationInfo);
|
|
187
190
|
return;
|
|
188
191
|
}
|
|
189
|
-
|
|
192
|
+
o.visible = !this.hideVisualization, this.shouldForceInteractive && this.addHandles(f(o), y), this.onConnectToAnalysisView(o);
|
|
190
193
|
}
|
|
191
194
|
/**
|
|
192
195
|
* Disconnect the analysis from the given view.
|
|
@@ -202,57 +205,57 @@ let i = class extends f {
|
|
|
202
205
|
}
|
|
203
206
|
// #endregion
|
|
204
207
|
};
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
],
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
],
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
],
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
],
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
],
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
],
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
],
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
],
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
],
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
],
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
],
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
],
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
],
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
],
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
],
|
|
250
|
-
|
|
208
|
+
a([
|
|
209
|
+
r()
|
|
210
|
+
], t.prototype, "defaultMeasurementSystem", 1);
|
|
211
|
+
a([
|
|
212
|
+
r()
|
|
213
|
+
], t.prototype, "active", 1);
|
|
214
|
+
a([
|
|
215
|
+
r()
|
|
216
|
+
], t.prototype, "analysis", 1);
|
|
217
|
+
a([
|
|
218
|
+
r()
|
|
219
|
+
], t.prototype, "connectingToView", 1);
|
|
220
|
+
a([
|
|
221
|
+
r()
|
|
222
|
+
], t.prototype, "disabled", 1);
|
|
223
|
+
a([
|
|
224
|
+
r()
|
|
225
|
+
], t.prototype, "hideVisualization", 1);
|
|
226
|
+
a([
|
|
227
|
+
r()
|
|
228
|
+
], t.prototype, "operationState", 2);
|
|
229
|
+
a([
|
|
230
|
+
r()
|
|
231
|
+
], t.prototype, "ready", 1);
|
|
232
|
+
a([
|
|
233
|
+
r()
|
|
234
|
+
], t.prototype, "supported", 1);
|
|
235
|
+
a([
|
|
236
|
+
r()
|
|
237
|
+
], t.prototype, "view", 2);
|
|
238
|
+
a([
|
|
239
|
+
r()
|
|
240
|
+
], t.prototype, "_ownsAnalysis", 2);
|
|
241
|
+
a([
|
|
242
|
+
r()
|
|
243
|
+
], t.prototype, "_viewHasAnalysis", 1);
|
|
244
|
+
a([
|
|
245
|
+
r()
|
|
246
|
+
], t.prototype, "_reconnectViewTask", 2);
|
|
247
|
+
a([
|
|
248
|
+
r()
|
|
249
|
+
], t.prototype, "analysisView", 2);
|
|
250
|
+
a([
|
|
251
|
+
r()
|
|
252
|
+
], t.prototype, "shouldForceInteractive", 2);
|
|
253
|
+
t = a([
|
|
251
254
|
V("esri.components.support.AnalysisViewModel")
|
|
252
|
-
],
|
|
255
|
+
], t);
|
|
253
256
|
function d(e) {
|
|
254
257
|
return e?.state === "running" ? (e.abort(), null) : e;
|
|
255
258
|
}
|
|
256
259
|
export {
|
|
257
|
-
|
|
260
|
+
t as A
|
|
258
261
|
};
|
|
@@ -1,52 +1,52 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import
|
|
3
|
-
import { property as l, subclass as
|
|
2
|
+
import E from "@arcgis/core/core/Accessor.js";
|
|
3
|
+
import { property as l, subclass as R } from "@arcgis/core/core/accessorSupport/decorators.js";
|
|
4
4
|
import p from "@arcgis/core/core/Error.js";
|
|
5
|
-
import { watch as
|
|
6
|
-
import
|
|
5
|
+
import { watch as U } from "@arcgis/core/core/reactiveUtils.js";
|
|
6
|
+
import m from "@arcgis/core/Graphic.js";
|
|
7
7
|
import T from "@arcgis/core/symbols/CIMSymbol.js";
|
|
8
|
-
import { g as x, t as
|
|
8
|
+
import { g as x, t as O, a as G } from "./async-utils.js";
|
|
9
9
|
import I from "@arcgis/core/geometry/Point.js";
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import { geographicToWebMercator as
|
|
13
|
-
import
|
|
14
|
-
import { project as
|
|
15
|
-
import
|
|
16
|
-
import { log as
|
|
17
|
-
let
|
|
18
|
-
const
|
|
10
|
+
import { projectIsLoaded as N, projectExecute as D } from "@arcgis/core/geometry/operators/projectOperator.js";
|
|
11
|
+
import g from "@arcgis/core/config.js";
|
|
12
|
+
import { geographicToWebMercator as L } from "@arcgis/core/geometry/support/webMercatorUtils.js";
|
|
13
|
+
import F from "@arcgis/core/portal/Portal.js";
|
|
14
|
+
import { project as j } from "@arcgis/core/rest/geometryService.js";
|
|
15
|
+
import z from "@arcgis/core/rest/support/ProjectParameters.js";
|
|
16
|
+
import { log as h } from "@arcgis/toolkit/log";
|
|
17
|
+
let d = !1;
|
|
18
|
+
const Q = {
|
|
19
19
|
maximumAge: 0,
|
|
20
20
|
timeout: 15e3,
|
|
21
21
|
enableHighAccuracy: !0
|
|
22
22
|
};
|
|
23
|
-
function
|
|
23
|
+
function k(e) {
|
|
24
24
|
const t = "geolocation" in navigator;
|
|
25
|
-
return t ||
|
|
25
|
+
return t || h("warn", e, "Geolocation is not supported by this browser."), t;
|
|
26
26
|
}
|
|
27
|
-
function
|
|
27
|
+
function K(e) {
|
|
28
28
|
const t = window.isSecureContext;
|
|
29
|
-
return t ||
|
|
29
|
+
return t || d || (d = !0, h("warn", e, "Geolocation requires a secure origin.")), t;
|
|
30
30
|
}
|
|
31
|
-
function
|
|
32
|
-
return
|
|
31
|
+
function H(e) {
|
|
32
|
+
return k(e) && K(e);
|
|
33
33
|
}
|
|
34
|
-
function
|
|
35
|
-
return e ??=
|
|
34
|
+
function ye(e) {
|
|
35
|
+
return e ??= Q, new Promise((o, r) => {
|
|
36
36
|
setTimeout(
|
|
37
37
|
() => r(new p("geolocation:timeout", "getting the current geolocation position timed out")),
|
|
38
38
|
x(e?.timeout ?? 15e3)
|
|
39
39
|
), navigator.geolocation.getCurrentPosition(o, r, e ?? void 0);
|
|
40
40
|
});
|
|
41
41
|
}
|
|
42
|
-
function
|
|
43
|
-
const { position: o, view: r } = e, n =
|
|
42
|
+
function J(e, t) {
|
|
43
|
+
const { position: o, view: r } = e, n = V(o)?.coords;
|
|
44
44
|
if (!n)
|
|
45
45
|
throw new p("geometry-service:no-coords", "Geolocation has no coordinates");
|
|
46
|
-
const a =
|
|
47
|
-
return
|
|
46
|
+
const a = q(n);
|
|
47
|
+
return W(a, r, t);
|
|
48
48
|
}
|
|
49
|
-
function
|
|
49
|
+
function V(e) {
|
|
50
50
|
const t = e?.coords || {}, o = {
|
|
51
51
|
accuracy: t.accuracy,
|
|
52
52
|
altitude: t.altitude,
|
|
@@ -67,7 +67,7 @@ function J(e) {
|
|
|
67
67
|
}
|
|
68
68
|
};
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function q({ longitude: e, latitude: t, altitude: o }) {
|
|
71
71
|
return new I({
|
|
72
72
|
longitude: e,
|
|
73
73
|
latitude: t,
|
|
@@ -77,37 +77,37 @@ function V({ longitude: e, latitude: t, altitude: o }) {
|
|
|
77
77
|
}
|
|
78
78
|
});
|
|
79
79
|
}
|
|
80
|
-
async function
|
|
80
|
+
async function W(e, t, o) {
|
|
81
81
|
if (!t)
|
|
82
82
|
return await Promise.resolve(e);
|
|
83
83
|
const r = t.spatialReference;
|
|
84
|
-
return r.isWGS84 ? await Promise.resolve(e) : r.isWebMercator ? await Promise.resolve(
|
|
84
|
+
return r.isWGS84 ? await Promise.resolve(e) : r.isWebMercator ? await Promise.resolve(L(e)) : N() ? D(e, r) : await X(o).then(async (i) => {
|
|
85
85
|
if (!i)
|
|
86
86
|
throw new p("geometry-service:missing-url", "Geometry service URL is missing");
|
|
87
|
-
const n = new
|
|
87
|
+
const n = new z({
|
|
88
88
|
geometries: [e],
|
|
89
89
|
outSpatialReference: r
|
|
90
90
|
});
|
|
91
|
-
return (await
|
|
91
|
+
return (await j(i, n, o))[0];
|
|
92
92
|
});
|
|
93
93
|
}
|
|
94
|
-
async function
|
|
95
|
-
if (
|
|
96
|
-
return await Promise.resolve(
|
|
97
|
-
const t =
|
|
94
|
+
async function X(e) {
|
|
95
|
+
if (g.geometryServiceUrl)
|
|
96
|
+
return await Promise.resolve(g.geometryServiceUrl);
|
|
97
|
+
const t = F.getDefault();
|
|
98
98
|
try {
|
|
99
99
|
await t.load(e);
|
|
100
100
|
} catch {
|
|
101
101
|
}
|
|
102
102
|
return t.helperServices?.geometry?.url;
|
|
103
103
|
}
|
|
104
|
-
var
|
|
105
|
-
for (var i = r > 1 ? void 0 : r ?
|
|
104
|
+
var B = Object.defineProperty, Z = Object.getOwnPropertyDescriptor, c = (e, t, o, r) => {
|
|
105
|
+
for (var i = r > 1 ? void 0 : r ? Z(t, o) : t, n = e.length - 1, a; n >= 0; n--)
|
|
106
106
|
(a = e[n]) && (i = (r ? a(t, o, i) : a(i)) || i);
|
|
107
|
-
return r && i &&
|
|
107
|
+
return r && i && B(t, o, i), i;
|
|
108
108
|
};
|
|
109
|
-
const
|
|
110
|
-
function
|
|
109
|
+
const Y = 2500;
|
|
110
|
+
function y(e) {
|
|
111
111
|
const t = {
|
|
112
112
|
type: "CIMVectorMarker",
|
|
113
113
|
enable: !0,
|
|
@@ -198,7 +198,7 @@ function f(e) {
|
|
|
198
198
|
};
|
|
199
199
|
return e === "background" && (t.offsetX = 0, t.offsetY = -1), t;
|
|
200
200
|
}
|
|
201
|
-
const
|
|
201
|
+
const f = {
|
|
202
202
|
type: "CIMPictureMarker",
|
|
203
203
|
primitiveName: "headingOverride",
|
|
204
204
|
enable: !0,
|
|
@@ -214,12 +214,12 @@ const A = {
|
|
|
214
214
|
scaleX: 1,
|
|
215
215
|
textureFilter: "Picture",
|
|
216
216
|
url: "data:image/png;base64,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"
|
|
217
|
-
},
|
|
217
|
+
}, _ = y("layer"), $ = y("background"), ee = new T({
|
|
218
218
|
data: {
|
|
219
219
|
type: "CIMSymbolReference",
|
|
220
220
|
symbol: {
|
|
221
221
|
type: "CIMPointSymbol",
|
|
222
|
-
symbolLayers: [
|
|
222
|
+
symbolLayers: [_, $, f],
|
|
223
223
|
angleAlignment: "Map"
|
|
224
224
|
},
|
|
225
225
|
primitiveOverrides: [
|
|
@@ -248,16 +248,16 @@ const A = {
|
|
|
248
248
|
]
|
|
249
249
|
}
|
|
250
250
|
});
|
|
251
|
-
let s = class extends
|
|
251
|
+
let s = class extends E {
|
|
252
252
|
constructor() {
|
|
253
|
-
super(...arguments), this._geolocationUsable = !0, this.goToLocationEnabled = !0, this.graphic = new
|
|
254
|
-
symbol:
|
|
253
|
+
super(...arguments), this._geolocationUsable = !0, this.goToLocationEnabled = !0, this.graphic = new m({
|
|
254
|
+
symbol: ee
|
|
255
255
|
}), this.rotationEnabled = !0;
|
|
256
256
|
}
|
|
257
257
|
//#region Lifecycle
|
|
258
258
|
initialize() {
|
|
259
|
-
|
|
260
|
-
|
|
259
|
+
H(this) || (this._geolocationUsable = !1), this.addHandles([
|
|
260
|
+
U(
|
|
261
261
|
() => this.view?.type,
|
|
262
262
|
() => this._handleViewTypeChange(),
|
|
263
263
|
{
|
|
@@ -286,7 +286,7 @@ let s = class extends R {
|
|
|
286
286
|
!e?.graphics || !t || e.graphics.includes(t) || e.graphics.push(t);
|
|
287
287
|
}
|
|
288
288
|
_handleViewTypeChange() {
|
|
289
|
-
|
|
289
|
+
f.enable = this.view?.type === "2d";
|
|
290
290
|
}
|
|
291
291
|
_getScaleWithinConstraints(e, t) {
|
|
292
292
|
if (!t)
|
|
@@ -298,7 +298,7 @@ let s = class extends R {
|
|
|
298
298
|
return e;
|
|
299
299
|
}
|
|
300
300
|
_getScale(e) {
|
|
301
|
-
const { scale: t } = this, o = typeof t == "number" ? t :
|
|
301
|
+
const { scale: t } = this, o = typeof t == "number" ? t : Y;
|
|
302
302
|
return this._getScaleWithinConstraints(o, e);
|
|
303
303
|
}
|
|
304
304
|
_getHeading(e, t) {
|
|
@@ -329,7 +329,7 @@ let s = class extends R {
|
|
|
329
329
|
view: i
|
|
330
330
|
});
|
|
331
331
|
const a = { signal: r.signal };
|
|
332
|
-
if (
|
|
332
|
+
if (O(a), this.goToOverride && i)
|
|
333
333
|
return await this.goToOverride(i, {
|
|
334
334
|
target: n,
|
|
335
335
|
options: a
|
|
@@ -338,21 +338,21 @@ let s = class extends R {
|
|
|
338
338
|
}
|
|
339
339
|
async updatePosition(e, t) {
|
|
340
340
|
try {
|
|
341
|
-
const o = this.view, r = await
|
|
341
|
+
const o = this.view, r = await J({ position: e, view: o }, { signal: t.signal }), { graphic: i } = this, { timestamp: n, coords: a } = e, { accuracy: A, altitude: w, altitudeAccuracy: v, latitude: b, longitude: S, speed: P } = a, u = this._getHeading(e, o), C = {
|
|
342
342
|
timestamp: n,
|
|
343
|
-
accuracy:
|
|
344
|
-
altitude:
|
|
345
|
-
altitudeAccuracy:
|
|
343
|
+
accuracy: A,
|
|
344
|
+
altitude: w,
|
|
345
|
+
altitudeAccuracy: v,
|
|
346
346
|
heading: u,
|
|
347
|
-
latitude:
|
|
347
|
+
latitude: b,
|
|
348
348
|
longitude: S,
|
|
349
|
-
speed:
|
|
349
|
+
speed: P
|
|
350
350
|
};
|
|
351
|
-
i && (i.geometry = r, i.attributes =
|
|
352
|
-
const
|
|
353
|
-
await this._animatePoint(r,
|
|
351
|
+
i && (i.geometry = r, i.attributes = C);
|
|
352
|
+
const M = this._getScale(o);
|
|
353
|
+
await this._animatePoint(r, M, u, t);
|
|
354
354
|
} catch (o) {
|
|
355
|
-
if (!
|
|
355
|
+
if (!G(o))
|
|
356
356
|
throw new p("geolocation-positioning:invalid-point", "Cannot position invalid point", {
|
|
357
357
|
error: o
|
|
358
358
|
});
|
|
@@ -375,7 +375,7 @@ c([
|
|
|
375
375
|
], s.prototype, "goToOverride", 2);
|
|
376
376
|
c([
|
|
377
377
|
l({
|
|
378
|
-
type:
|
|
378
|
+
type: m
|
|
379
379
|
})
|
|
380
380
|
], s.prototype, "graphic", 2);
|
|
381
381
|
c([
|
|
@@ -388,10 +388,10 @@ c([
|
|
|
388
388
|
l()
|
|
389
389
|
], s.prototype, "view", 2);
|
|
390
390
|
s = c([
|
|
391
|
-
|
|
391
|
+
R("map-components.geolocation.GeolocationPositioning")
|
|
392
392
|
], s);
|
|
393
|
-
const
|
|
393
|
+
const fe = s;
|
|
394
394
|
export {
|
|
395
|
-
|
|
396
|
-
|
|
395
|
+
fe as G,
|
|
396
|
+
ye as g
|
|
397
397
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import { proxyExports as
|
|
2
|
+
import { proxyExports as n, GenericController as r } from "@arcgis/lumina/controllers";
|
|
3
3
|
import { watch as i } from "@arcgis/core/core/reactiveUtils.js";
|
|
4
|
-
import
|
|
5
|
-
class
|
|
4
|
+
import { projectIsLoaded as a, projectLoad as s, projectExecute as p } from "@arcgis/core/geometry/operators/projectOperator.js";
|
|
5
|
+
class l extends r {
|
|
6
6
|
constructor(o) {
|
|
7
7
|
super(o), this.exports = void 0;
|
|
8
8
|
}
|
|
@@ -22,13 +22,13 @@ class s extends a {
|
|
|
22
22
|
}
|
|
23
23
|
async _updateScreenLocation() {
|
|
24
24
|
{
|
|
25
|
-
|
|
26
|
-
const { location: o, view: t } = this.component, e = t?.spatialReference,
|
|
27
|
-
this.exports = this.component.trackLocation &&
|
|
25
|
+
a() || await s();
|
|
26
|
+
const { location: o, view: t } = this.component, e = t?.spatialReference, c = e && o ? p(o, e) : null;
|
|
27
|
+
this.exports = this.component.trackLocation && c && t?.ready ? t.toScreen(c) : null;
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
|
-
const
|
|
31
|
+
const h = n(l);
|
|
32
32
|
export {
|
|
33
|
-
|
|
33
|
+
h as t
|
|
34
34
|
};
|
|
@@ -1,22 +1,23 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import { watch as
|
|
3
|
-
import { makeController as
|
|
4
|
-
function
|
|
5
|
-
return
|
|
6
|
-
() =>
|
|
2
|
+
import { watch as f } from "@arcgis/core/core/reactiveUtils.js";
|
|
3
|
+
import { makeController as u } from "@arcgis/lumina/controllers";
|
|
4
|
+
function l(r, i) {
|
|
5
|
+
return u((m, t) => (t.onLifecycle(
|
|
6
|
+
() => f(
|
|
7
7
|
() => ({
|
|
8
8
|
layerId: r.mapLayerId,
|
|
9
9
|
viewReady: r.view?.ready
|
|
10
10
|
}),
|
|
11
|
-
({ layerId:
|
|
12
|
-
if (!
|
|
11
|
+
({ layerId: e, viewReady: d }) => {
|
|
12
|
+
if (!d)
|
|
13
13
|
return;
|
|
14
|
-
const
|
|
15
|
-
if (!
|
|
16
|
-
|
|
14
|
+
const a = r.view;
|
|
15
|
+
if (!e) {
|
|
16
|
+
i(void 0);
|
|
17
17
|
return;
|
|
18
18
|
}
|
|
19
|
-
|
|
19
|
+
const y = a?.map?.findLayerById(e) ?? a?.map?.findTableById(e);
|
|
20
|
+
i(y);
|
|
20
21
|
},
|
|
21
22
|
{
|
|
22
23
|
initial: !0
|
|
@@ -25,5 +26,5 @@ function v(r, e) {
|
|
|
25
26
|
), r.mapLayerId));
|
|
26
27
|
}
|
|
27
28
|
export {
|
|
28
|
-
|
|
29
|
+
l as u
|
|
29
30
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference path="../../index.d.ts" />
|
|
2
2
|
import type MapView from "@arcgis/core/views/MapView.js";
|
|
3
3
|
import type AreaMeasurementAnalysis from "@arcgis/core/analysis/AreaMeasurementAnalysis.js";
|
|
4
|
-
import type SnappingOptions from "@arcgis/core/views/interactive/
|
|
4
|
+
import type SnappingOptions from "@arcgis/core/views/interactive/options/SnappingOptions.js";
|
|
5
5
|
import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
6
6
|
import type { ArcgisReferenceElement } from "../types.js";
|
|
7
7
|
import type { AreaMeasurement2DState } from "./types.js";
|
|
@@ -196,7 +196,7 @@ export abstract class ArcgisAreaMeasurement2d extends LitElement {
|
|
|
196
196
|
*/
|
|
197
197
|
accessor referenceElement: ArcgisReferenceElement | string | undefined;
|
|
198
198
|
/**
|
|
199
|
-
* The [SnappingOptions](https://developers.arcgis.com/javascript/latest/references/core/views/interactive/
|
|
199
|
+
* The [SnappingOptions](https://developers.arcgis.com/javascript/latest/references/core/views/interactive/options/SnappingOptions/) for measuring.
|
|
200
200
|
*
|
|
201
201
|
* @since 4.28
|
|
202
202
|
*/
|
|
@@ -11,7 +11,7 @@ import { V as g } from "../../chunks/visible-element.js";
|
|
|
11
11
|
import V from "@arcgis/core/analysis/AreaMeasurementAnalysis.js";
|
|
12
12
|
import { property as n, subclass as S } from "@arcgis/core/core/accessorSupport/decorators.js";
|
|
13
13
|
import { watch as u } from "@arcgis/core/core/reactiveUtils.js";
|
|
14
|
-
import _ from "@arcgis/core/views/interactive/
|
|
14
|
+
import _ from "@arcgis/core/views/interactive/options/SnappingOptions.js";
|
|
15
15
|
import { A as $ } from "../../chunks/AnalysisViewModel.js";
|
|
16
16
|
import { g as U, a as A, b as m, r as C, m as h, c as E } from "../../chunks/measurementUtils.js";
|
|
17
17
|
const D = v`.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}.esri-widget--panel{min-width:300px;min-height:32px;padding:var(--arcgis-internal-padding);transition:max-height .25s ease-in-out;overflow-y:auto}.esri-unit-select{width:100%}.esri-unit-select__label{--calcite-label-margin-bottom: 0;width:100%}:host{display:block}.esri-measurement-widget-content{padding:var(--arcgis-internal-padding);flex-direction:column;gap:var(--calcite-spacing-xxl);display:flex;position:relative;overflow-y:auto}.esri-measurement-widget-content__error{color:var(--calcite-color-status-danger)}.esri-measurement-widget-content__error,.esri-measurement-widget-content__hint{overflow:hidden}.esri-measurement-widget-content__error p,.esri-measurement-widget-content__hint p{margin:0;padding:0}.esri-measurement-widget-content__hint,.esri-measurement-widget-content__error,.esri-measurement-widget-content__measurement,.esri-measurement-widget-content__measurement-item{flex-direction:column;gap:var(--calcite-spacing-md);animation:.25s ease-in-out esri-fade-in;display:flex}.esri-measurement-widget-content__measurement-item--disabled{color:var(--calcite-color-border-ghost)}.esri-measurement-widget-content__measurement-item__value{font-weight:var(--calcite-font-weight-semibold)}.esri-measurement-widget-content__actions{flex-direction:column;justify-content:center;gap:var(--calcite-spacing-xs);display:flex}:host{.esri-widget--panel{min-width:0}}`;
|
|
@@ -650,7 +650,7 @@ export abstract class ArcgisBasemapLayerListNext extends LitElement {
|
|
|
650
650
|
*/
|
|
651
651
|
accessor selectionMode: List["selectionMode"];
|
|
652
652
|
/**
|
|
653
|
-
* This property provides the ability to show or hide the close button.
|
|
653
|
+
* This property provides the ability to show or hide the close button. When the close button is shown, the `ESC` key can be used to close the component via keyboard when the focus is within the component.
|
|
654
654
|
*
|
|
655
655
|
* @default false
|
|
656
656
|
* @example
|