@arcgis/map-components 6.0.0-next.21 → 6.0.0-next.22
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/{G56N6RF4.js → 2S6RQ6Q4.js} +1 -1
- package/dist/cdn/{FDESUDJ5.js → AIF4MCBB.js} +1 -1
- package/dist/cdn/CNJSDHZI.js +2 -0
- package/dist/cdn/{SDLZ4BNM.js → EVWWTIEQ.js} +1 -1
- package/dist/cdn/FRX4ZT35.js +2 -0
- package/dist/cdn/IQGL3AGV.js +2 -0
- package/dist/cdn/MW27GSDX.js +2 -0
- package/dist/cdn/{4LNXCEM5.js → NORQIOSX.js} +1 -1
- package/dist/cdn/PFMWLSWQ.js +2 -0
- package/dist/cdn/{WTAAQHO3.js → TM4FFRX5.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/components/arcgis-basemap-layer-list-next/customElement.js +88 -86
- package/dist/components/arcgis-daylight/customElement.js +2 -1
- package/dist/components/arcgis-layer-list-item-indicator/customElement.js +2 -2
- package/dist/components/arcgis-layer-list-item-panel/customElement.js +9 -9
- package/dist/components/arcgis-layer-list-next/customElement.js +97 -95
- package/dist/components/arcgis-oriented-imagery-viewer/customElement.js +5 -5
- package/dist/components/arcgis-sketch/customElement.d.ts +308 -30
- package/dist/components/arcgis-sketch/customElement.js +47 -20
- package/dist/components/arcgis-table-list-next/customElement.js +55 -54
- package/dist/components/arcgis-time-slider/customElement.d.ts +2 -2
- 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/loader.js +1 -1
- package/dist/types/lumina.d.ts +1 -1
- package/dist/types/preact.d.ts +1 -1
- package/dist/types/react.d.ts +1 -1
- package/dist/types/stencil.d.ts +1 -1
- package/package.json +6 -6
- package/dist/cdn/ED2T4ASN.js +0 -2
- package/dist/cdn/MBLS5ES4.js +0 -2
- package/dist/cdn/PHVKEWZ7.js +0 -2
- package/dist/cdn/QKGJVGXJ.js +0 -2
- package/dist/cdn/UPCWZNTA.js +0 -2
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
2
|
+
import { c as N } from "../../chunks/runtime.js";
|
|
3
3
|
import { html as h } from "lit";
|
|
4
|
-
import { keyed as
|
|
5
|
-
import { repeat as
|
|
6
|
-
import
|
|
4
|
+
import { keyed as w } from "lit/directives/keyed.js";
|
|
5
|
+
import { repeat as k } from "lit/directives/repeat.js";
|
|
6
|
+
import B from "@arcgis/core/layerList/LayerListModel.js";
|
|
7
7
|
import { classes as S } from "@arcgis/toolkit/dom";
|
|
8
8
|
import { generateGuid as U } from "@arcgis/toolkit/string";
|
|
9
|
-
import { createRef as
|
|
9
|
+
import { createRef as b, ref as _ } from "lit/directives/ref.js";
|
|
10
10
|
import { u as G } from "../../chunks/useT9n.js";
|
|
11
11
|
import { m as H } from "../../chunks/useViewModel.js";
|
|
12
12
|
import { g as $ } from "../../chunks/globalCss.js";
|
|
13
|
-
import { c as
|
|
14
|
-
import { g as m, a as
|
|
13
|
+
import { c as y } from "../../chunks/css.js";
|
|
14
|
+
import { g as m, a as F, m as V, b as j, r as T, s as q, c as z, d as J, e as K } from "../../chunks/layer-list-utils.js";
|
|
15
15
|
import p from "@arcgis/core/core/Collection.js";
|
|
16
16
|
import { on as C, watch as A } from "@arcgis/core/core/reactiveUtils.js";
|
|
17
17
|
import { LitElement as Q, createEvent as I, renderElement as D, safeClassMap as E, nothing as O } from "@arcgis/lumina";
|
|
@@ -22,19 +22,19 @@ import { ArcgisLayerListItem as Z } from "./layer-list-item/customElement.js";
|
|
|
22
22
|
import { s as ee, a as te } from "../../chunks/layer-list-next.js";
|
|
23
23
|
import { i as se, h as ie, r as ae } from "../../chunks/utils.js";
|
|
24
24
|
import "../arcgis-layer-list-item-indicator/customElement.js";
|
|
25
|
-
const P = "nested",
|
|
26
|
-
class
|
|
25
|
+
const P = "nested", le = H(B);
|
|
26
|
+
class re extends Q {
|
|
27
27
|
constructor() {
|
|
28
|
-
super(...arguments), this
|
|
29
|
-
const i = a === "pull" ? this.listItemCanGiveFunction : this.listItemCanReceiveFunction,
|
|
30
|
-
if (!
|
|
28
|
+
super(...arguments), this.#s = null, this._rootListRef = b(), this._layerFlowItemRef = b(), this._panelFlowItemRef = b(), this._selectedDragItemLayerUid = null, this._rootGroupUid = `operational-${U()}`, this.#i = null, this.messages = G(), this._canMove = ({ dragEl: e, fromEl: t, toEl: s }, a) => {
|
|
29
|
+
const i = a === "pull" ? this.listItemCanGiveFunction : this.listItemCanReceiveFunction, l = m(e, this.operationalItems);
|
|
30
|
+
if (!l?.sortable)
|
|
31
31
|
return !1;
|
|
32
|
-
const
|
|
33
|
-
selected:
|
|
32
|
+
const r = this.#e(t), o = this.#e(s), n = this.#t(r), d = F(r), g = this.#t(o), u = F(o), L = !!d && !!u && d === u, f = {
|
|
33
|
+
selected: l,
|
|
34
34
|
from: n,
|
|
35
35
|
to: g
|
|
36
|
-
},
|
|
37
|
-
return
|
|
36
|
+
}, v = r?.group, c = o?.group, R = n?.layer?.type ?? "", x = g?.layer?.type ?? "", M = /* @__PURE__ */ new Set(["map-image", "catalog", "knowledge-graph"]);
|
|
37
|
+
return v && c && typeof i == "function" ? i(f) : L && !M.has(R) && !M.has(x) && l?.layer?.type !== "sublayer";
|
|
38
38
|
}, this._onCatalogOpen = (e) => {
|
|
39
39
|
this.openedLayers.push(e.layer?.parent);
|
|
40
40
|
}, this._onTablesOpen = (e) => {
|
|
@@ -46,9 +46,9 @@ class oe extends Q {
|
|
|
46
46
|
}, this._setActiveItem = (e) => {
|
|
47
47
|
if (this.visibilityAppearance !== "default")
|
|
48
48
|
return;
|
|
49
|
-
const t = Array.from(e.composedPath()).find((a) => a.classList?.contains(
|
|
49
|
+
const t = Array.from(e.composedPath()).find((a) => a.classList?.contains(y.item)), s = m(t, this.operationalItems);
|
|
50
50
|
this._activeItem = s;
|
|
51
|
-
}, this.viewModel =
|
|
51
|
+
}, this.viewModel = le(this), this.arcgisClose = Y(this), this._activeItem = null, this._onTooltipReferenceChange = (e, t) => {
|
|
52
52
|
t ? this._tooltipReferenceMap.set(e, t) : this._tooltipReferenceMap.delete(e);
|
|
53
53
|
}, this._onSelectedDragItemLayerUidChange = (e) => {
|
|
54
54
|
this._selectedDragItemLayerUid = e;
|
|
@@ -62,6 +62,8 @@ class oe extends Q {
|
|
|
62
62
|
static {
|
|
63
63
|
this.styles = [ee, te];
|
|
64
64
|
}
|
|
65
|
+
#s;
|
|
66
|
+
#i;
|
|
65
67
|
get _totalItems() {
|
|
66
68
|
return this.viewModel.operationalItems.flatten((t) => t.children.filter((s) => s.layer?.type !== "catalog-dynamic-group")).length;
|
|
67
69
|
}
|
|
@@ -79,7 +81,7 @@ class oe extends Q {
|
|
|
79
81
|
}
|
|
80
82
|
get _renderedOpenLayerFlowItems() {
|
|
81
83
|
const { openedLayers: e } = this;
|
|
82
|
-
return e.toArray().map((t, s) => this
|
|
84
|
+
return e.toArray().map((t, s) => this.#b(t, s === e.length - 1));
|
|
83
85
|
}
|
|
84
86
|
get catalogLayerList() {
|
|
85
87
|
return this._catalogLayerList;
|
|
@@ -88,16 +90,16 @@ class oe extends Q {
|
|
|
88
90
|
return this._tableList;
|
|
89
91
|
}
|
|
90
92
|
async destroy() {
|
|
91
|
-
await this.manager.destroy(), this
|
|
93
|
+
await this.manager.destroy(), this.#c(), this._tooltipReferenceMap.clear();
|
|
92
94
|
}
|
|
93
95
|
loaded() {
|
|
94
96
|
this.manager.onLifecycle(() => [
|
|
95
97
|
C(() => this.openedLayers, "change", () => {
|
|
96
|
-
this
|
|
98
|
+
this.#n();
|
|
97
99
|
}, { initial: !0 }),
|
|
98
|
-
C(() => this.viewModel.operationalItems, "change", () =>
|
|
100
|
+
C(() => this.viewModel.operationalItems, "change", () => T(this.selectedItems), { initial: !0 }),
|
|
99
101
|
A(() => this.operationalItems.flatten((e) => e.children).map((e) => e.uid).join(","), () => {
|
|
100
|
-
|
|
102
|
+
T(this.selectedItems), this.requestUpdate();
|
|
101
103
|
}, { initial: !0 }),
|
|
102
104
|
C(() => this.selectedItems, "change", () => this.arcgisSelectedItemsChange.emit()),
|
|
103
105
|
A(() => [this.filterPredicate, this._rootListRef.value], () => q(this._rootListRef.value, this.filterPredicate, this.operationalItems))
|
|
@@ -106,7 +108,7 @@ class oe extends Q {
|
|
|
106
108
|
triggerAction(e, t) {
|
|
107
109
|
return this.viewModel.triggerAction(e, t);
|
|
108
110
|
}
|
|
109
|
-
|
|
111
|
+
#e(e) {
|
|
110
112
|
if (!e)
|
|
111
113
|
return null;
|
|
112
114
|
if (e.matches("calcite-list"))
|
|
@@ -114,11 +116,11 @@ class oe extends Q {
|
|
|
114
116
|
const t = e.closest("calcite-list[data-item]");
|
|
115
117
|
return t || (this._rootListRef.value?.contains(e) ? this._rootListRef.value : null);
|
|
116
118
|
}
|
|
117
|
-
|
|
119
|
+
#t(e) {
|
|
118
120
|
const t = e?.getAttribute("data-item");
|
|
119
|
-
return t ? this
|
|
121
|
+
return t ? this.#r(t) : null;
|
|
120
122
|
}
|
|
121
|
-
|
|
123
|
+
#r(e) {
|
|
122
124
|
const t = this.operationalItems?.toArray() ?? [];
|
|
123
125
|
for (; t.length; ) {
|
|
124
126
|
const s = t.shift();
|
|
@@ -131,35 +133,35 @@ class oe extends Q {
|
|
|
131
133
|
}
|
|
132
134
|
return null;
|
|
133
135
|
}
|
|
134
|
-
async
|
|
136
|
+
async #o(e, t) {
|
|
135
137
|
const { _layerListMap: s } = this, a = s.get(e);
|
|
136
138
|
if (a)
|
|
137
139
|
return a;
|
|
138
|
-
const i = e.type === "catalog" ? await this
|
|
140
|
+
const i = e.type === "catalog" ? await this.#h(e) : await this.#m(e);
|
|
139
141
|
return t.aborted || s.set(e, i), i;
|
|
140
142
|
}
|
|
141
|
-
async
|
|
143
|
+
async #n() {
|
|
142
144
|
const { _layerListMap: e, openedLayers: t, openedLayerLists: s } = this;
|
|
143
|
-
this
|
|
145
|
+
this.#i?.abort();
|
|
144
146
|
const a = new AbortController(), { signal: i } = a;
|
|
145
|
-
this
|
|
146
|
-
t.includes(n) || (
|
|
147
|
+
this.#i = a, e.forEach((o, n) => {
|
|
148
|
+
t.includes(n) || (o?.destroy?.(), e.delete(n));
|
|
147
149
|
});
|
|
148
|
-
const
|
|
150
|
+
const l = await Promise.all(t.map((o) => this.#o(o, i)));
|
|
149
151
|
if (i.aborted)
|
|
150
152
|
return;
|
|
151
|
-
s.removeAll(), s.addMany(
|
|
152
|
-
const
|
|
153
|
-
|
|
153
|
+
s.removeAll(), s.addMany(l);
|
|
154
|
+
const r = s.at(-1);
|
|
155
|
+
r ? "catalogLayer" in r ? (this._catalogLayerList = r, this._tableList = void 0) : (this._catalogLayerList = void 0, this._tableList = r) : (this._catalogLayerList = void 0, this._tableList = void 0), this.arcgisOpenedLayersChange.emit();
|
|
154
156
|
}
|
|
155
|
-
|
|
157
|
+
#c() {
|
|
156
158
|
this.openedLayerLists.destroyAll(), this.openedLayers.removeAll(), this._layerListMap.clear();
|
|
157
159
|
}
|
|
158
|
-
async
|
|
159
|
-
const { headingLevel: t, catalogOptions: s, filterPlaceholder: a, listItemCreatedFunction: i, minFilterItems:
|
|
160
|
-
return D(h`<arcgis-catalog-layer-list-next .headingLevel=${t} .filterPlaceholder=${s?.filterPlaceholder ?? a} .listItemCreatedFunction=${s?.listItemCreatedFunction ?? i} .minFilterItems=${s?.minFilterItems ??
|
|
160
|
+
async #h(e) {
|
|
161
|
+
const { headingLevel: t, catalogOptions: s, filterPlaceholder: a, listItemCreatedFunction: i, minFilterItems: l, selectionMode: r, visibilityAppearance: o } = this;
|
|
162
|
+
return D(h`<arcgis-catalog-layer-list-next .headingLevel=${t} .filterPlaceholder=${s?.filterPlaceholder ?? a} .listItemCreatedFunction=${s?.listItemCreatedFunction ?? i} .minFilterItems=${s?.minFilterItems ?? l} .selectionMode=${s?.selectionMode ?? r} .visibilityAppearance=${s?.visibilityAppearance ?? o} .showErrors=${s?.showErrors ?? this.showErrors} .showFilter=${s?.showFilter ?? this.showFilter} .hideStatusIndicators=${s?.hideStatusIndicators ?? this.hideStatusIndicators} .showTemporaryLayerIndicators=${s?.showTemporaryLayerIndicators ?? this.showTemporaryLayerIndicators} .messageOverrides=${this.messageOverrides} @arcgisReady=${(n) => n.stopPropagation()} .catalogLayer=${e} .view=${this.view} .referenceElement=${this.referenceElement} @catalogOpen=${this._onCatalogOpen} @tablesOpen=${this._onTablesOpen}></arcgis-catalog-layer-list-next>`);
|
|
161
163
|
}
|
|
162
|
-
|
|
164
|
+
#d(e) {
|
|
163
165
|
switch (e.type) {
|
|
164
166
|
case "knowledge-graph":
|
|
165
167
|
return { ...this.knowledgeGraphOptions, tables: e.tables };
|
|
@@ -177,23 +179,23 @@ class oe extends Q {
|
|
|
177
179
|
return null;
|
|
178
180
|
}
|
|
179
181
|
}
|
|
180
|
-
async
|
|
181
|
-
const { headingLevel: t, selectionMode: s, dragEnabled: a } = this, i = this
|
|
182
|
-
return D(h`<arcgis-table-list-next .headingLevel=${i?.headingLevel ?? t} .selectionMode=${i?.selectionMode ?? s} .dragEnabled=${i?.dragEnabled ?? a} .collapsed=${i?.collapsed} .filterPlaceholder=${i?.filterPlaceholder} .filterText=${i?.filterText} .icon=${i?.icon ?? void 0} .label=${i?.label ?? void 0} .listItemCreatedFunction=${i?.listItemCreatedFunction} .messageOverrides=${this.messageOverrides} .tables=${i?.tables} .referenceElement=${this.referenceElement} @arcgisReady=${(
|
|
182
|
+
async #m(e) {
|
|
183
|
+
const { headingLevel: t, selectionMode: s, dragEnabled: a } = this, i = this.#d(e);
|
|
184
|
+
return D(h`<arcgis-table-list-next .headingLevel=${i?.headingLevel ?? t} .selectionMode=${i?.selectionMode ?? s} .dragEnabled=${i?.dragEnabled ?? a} .collapsed=${i?.collapsed} .filterPlaceholder=${i?.filterPlaceholder} .filterText=${i?.filterText} .icon=${i?.icon ?? void 0} .label=${i?.label ?? void 0} .listItemCreatedFunction=${i?.listItemCreatedFunction} .messageOverrides=${this.messageOverrides} .tables=${i?.tables} .referenceElement=${this.referenceElement} @arcgisReady=${(l) => l.stopPropagation()}></arcgis-table-list-next>`);
|
|
183
185
|
}
|
|
184
|
-
|
|
186
|
+
#p(e) {
|
|
185
187
|
e.open = !1;
|
|
186
188
|
}
|
|
187
|
-
|
|
188
|
-
const i = this
|
|
189
|
-
a == null || !
|
|
189
|
+
#g({ toEl: e, fromEl: t, dragEl: s, newIndex: a }) {
|
|
190
|
+
const i = this.#e(e), l = this.#e(t), r = m(s, this.operationalItems), o = this.#t(i), n = this.#t(l);
|
|
191
|
+
a == null || !r || (this.viewModel.moveItem(r, n, o, a), ae(
|
|
190
192
|
this,
|
|
191
|
-
|
|
193
|
+
r.uid,
|
|
192
194
|
// Make sure we have the current node and not a stale one
|
|
193
|
-
(d) => d !== s && this
|
|
195
|
+
(d) => d !== s && this.#e(d.parentElement) === i
|
|
194
196
|
));
|
|
195
197
|
}
|
|
196
|
-
|
|
198
|
+
#u(e) {
|
|
197
199
|
const { fromEl: t, toEl: s, dragEl: a, oldIndex: i } = e;
|
|
198
200
|
if (t !== s) {
|
|
199
201
|
a.remove();
|
|
@@ -201,27 +203,27 @@ class oe extends Q {
|
|
|
201
203
|
}
|
|
202
204
|
i == null || !t || !a || t.insertBefore(a, t.children[i]);
|
|
203
205
|
}
|
|
204
|
-
|
|
205
|
-
const
|
|
206
|
-
if (!(!i || !
|
|
207
|
-
if (this
|
|
206
|
+
#f(e) {
|
|
207
|
+
const t = this.#s, { dragEl: s, newIndex: a } = e, i = this.#e(e.fromEl), l = this.#e(e.toEl), r = t?.newIndex === a && t?.dragEl === s && t?.toEl === l && t?.fromEl === i;
|
|
208
|
+
if (!(!i || !l || r)) {
|
|
209
|
+
if (this.#s = {
|
|
208
210
|
...e,
|
|
209
211
|
fromEl: i,
|
|
210
|
-
toEl:
|
|
211
|
-
}, this._selectedDragItemLayerUid = s.value, i ===
|
|
212
|
-
const
|
|
213
|
-
this
|
|
212
|
+
toEl: l
|
|
213
|
+
}, this._selectedDragItemLayerUid = s.value, i === l) {
|
|
214
|
+
const o = Array.from(i.children).filter((n) => n?.matches("calcite-list-item")).map((n) => n.value.layer?.uid ?? "");
|
|
215
|
+
this.#y(i, o);
|
|
214
216
|
return;
|
|
215
217
|
}
|
|
216
|
-
this
|
|
217
|
-
toEl:
|
|
218
|
+
this.#g({
|
|
219
|
+
toEl: l,
|
|
218
220
|
fromEl: i,
|
|
219
221
|
dragEl: s,
|
|
220
222
|
newIndex: a
|
|
221
223
|
});
|
|
222
224
|
}
|
|
223
225
|
}
|
|
224
|
-
|
|
226
|
+
#y(e, t) {
|
|
225
227
|
if (e)
|
|
226
228
|
if (e === this._rootListRef.value)
|
|
227
229
|
z(this.el.view?.map?.layers, t);
|
|
@@ -232,11 +234,11 @@ class oe extends Q {
|
|
|
232
234
|
J(s, t);
|
|
233
235
|
}
|
|
234
236
|
}
|
|
235
|
-
|
|
237
|
+
#I(e) {
|
|
236
238
|
const { selectionMode: t, selectedItems: s } = this;
|
|
237
239
|
if (t === "none")
|
|
238
240
|
return;
|
|
239
|
-
const i = e.target.selectedItems.map((
|
|
241
|
+
const i = e.target.selectedItems.map((l) => m(l, this.operationalItems)).filter(Boolean);
|
|
240
242
|
s.removeAll(), s.addMany(i);
|
|
241
243
|
}
|
|
242
244
|
render() {
|
|
@@ -244,57 +246,57 @@ class oe extends Q {
|
|
|
244
246
|
[$.hidden]: e === "loading",
|
|
245
247
|
[$.disabled]: e === "disabled"
|
|
246
248
|
};
|
|
247
|
-
return h`<div class=${E(S($.widget, t))}>${this._visibleItems?.length ? this
|
|
249
|
+
return h`<div class=${E(S($.widget, t))}>${this._visibleItems?.length ? this.#v() : null}${this.#$()}</div>`;
|
|
248
250
|
}
|
|
249
|
-
|
|
251
|
+
#L(e) {
|
|
250
252
|
const { _tooltipReferenceMap: t, messages: s } = this;
|
|
251
253
|
return e ? h`<calcite-tooltip overlay-positioning=fixed .referenceElement=${t.get(e.layer?.uid ?? "")}>${s.layerIncompatibleTooltip}</calcite-tooltip>` : null;
|
|
252
254
|
}
|
|
253
|
-
|
|
255
|
+
#a(e) {
|
|
254
256
|
if (e.incompatible)
|
|
255
|
-
return this
|
|
256
|
-
const t = e.children?.filter((s) => !s.hidden).toArray().map((s) => this
|
|
257
|
+
return this.#L(e);
|
|
258
|
+
const t = e.children?.filter((s) => !s.hidden).toArray().map((s) => this.#a(s)) ?? [];
|
|
257
259
|
return t.length ? t : null;
|
|
258
260
|
}
|
|
259
|
-
|
|
260
|
-
return this._visibleItems?.toArray().map((t) => this
|
|
261
|
+
#v() {
|
|
262
|
+
return this._visibleItems?.toArray().map((t) => this.#a(t));
|
|
261
263
|
}
|
|
262
|
-
|
|
264
|
+
#l() {
|
|
263
265
|
return h`<div slot=message>${this.messages.noItemsToDisplay}</div>`;
|
|
264
266
|
}
|
|
265
|
-
|
|
266
|
-
return this.hideNoItemsNotice ? null : h`<div class=${E(
|
|
267
|
+
#w() {
|
|
268
|
+
return this.hideNoItemsNotice ? null : h`<div class=${E(y.itemMessage)}><calcite-notice icon=information kind=info open width=full>${this.#l()}</calcite-notice></div>`;
|
|
267
269
|
}
|
|
268
|
-
|
|
270
|
+
#b(e, t) {
|
|
269
271
|
const { messages: s, openedLayers: a } = this, i = e.title || this.messages.untitledLayer;
|
|
270
|
-
return
|
|
271
|
-
|
|
272
|
-
}} ${
|
|
272
|
+
return w(e?.uid ?? i, h`<calcite-flow-item data-layer-uid=${e?.uid ?? "" ?? O} .description=${i} .heading=${s[e.type === "catalog" ? "catalogLayers" : "tables"]} .headingLevel=${this.headingLevel} .selected=${t} @calciteFlowItemBack=${(l) => {
|
|
273
|
+
l.preventDefault(), a.pop(), a.at(-1) && this._layerFlowItemRef.value?.setFocus();
|
|
274
|
+
}} ${_(this._layerFlowItemRef)}>${this._layerListMap.get(e)}</calcite-flow-item>`);
|
|
273
275
|
}
|
|
274
|
-
|
|
276
|
+
#_() {
|
|
275
277
|
const { _openedPanelItems: e, openedLayers: t } = this;
|
|
276
|
-
return
|
|
277
|
-
const { panel:
|
|
278
|
-
return h`<calcite-flow-item .description=${
|
|
279
|
-
n.preventDefault(),
|
|
280
|
-
}} ${
|
|
278
|
+
return k(e.toArray(), (a) => a.uid, (a, i) => {
|
|
279
|
+
const { panel: l, title: r } = a, o = () => this.#p(l);
|
|
280
|
+
return h`<calcite-flow-item .description=${r} .heading=${l.title} .headingLevel=${this.headingLevel} .selected=${!t.length && i === e.length - 1} @calciteFlowItemBack=${(n) => {
|
|
281
|
+
n.preventDefault(), o();
|
|
282
|
+
}} ${_(this._panelFlowItemRef)}><arcgis-layer-list-item-panel .item=${a} .view=${this.view}></arcgis-layer-list-item-panel><calcite-button appearance=transparent @click=${o} slot=footer-actions width=full>${this.messages.back}</calcite-button></calcite-flow-item>`;
|
|
281
283
|
});
|
|
282
284
|
}
|
|
283
|
-
|
|
284
|
-
const { collapsed: e, _visibleItems: t, _openedPanelItems: s, _filterEnabled: a, _rootGroupUid: i, showCloseButton:
|
|
285
|
-
h`<calcite-flow-item .closable=${
|
|
285
|
+
#$() {
|
|
286
|
+
const { collapsed: e, _visibleItems: t, _openedPanelItems: s, _filterEnabled: a, _rootGroupUid: i, showCloseButton: l, showCollapseButton: r, showHeading: o, _dragEnabled: n, selectionMode: d, filterText: g, openedLayers: u, filterPlaceholder: L, messages: f } = this, v = [
|
|
287
|
+
h`<calcite-flow-item .closable=${l} .closed=${this.closed} .collapsed=${e} .collapsible=${r} .heading=${o ? f.componentLabel : void 0} .headingLevel=${this.headingLevel} .selected=${!u.length && !s.length} @calciteFlowItemClose=${() => this.closed = !1}>${t?.length ? h`<calcite-list @focusin=${this._setActiveItem} @focusout=${this._clearActiveItem} .canPull=${(c) => this._canMove(c, "pull")} .canPut=${(c) => this._canMove(c, "put")} data-layer-type=${i ?? O} .displayMode=${P} .dragEnabled=${n} .filterEnabled=${a} .filterPlaceholder=${L} .filterProps=${K} .filterText=${a ? g : ""} .group=${i} .label=${f.componentLabel} @mouseleave=${this._clearActiveItem} @mouseover=${this._setActiveItem} selection-appearance=highlight .selectionMode=${d} @calciteListChange=${this.#I} @calciteListFilter=${(c) => {
|
|
286
288
|
this.filterText = c.currentTarget?.filterText ?? "", this.arcgisFilterChange.emit();
|
|
287
|
-
}} @calciteListOrderChange=${(c) => this
|
|
288
|
-
this
|
|
289
|
+
}} @calciteListOrderChange=${(c) => this.#f(c.detail)} @calciteListDragEnd=${(c) => this.#u(c.detail)} ${_(this._rootListRef)}>${t.toArray().map((c) => this.#C(c))}${a && !this.hideNoFilterResultsNotice ? h`<div class=${E(y.filterNoResults)} slot=filter-no-results><calcite-notice kind=info open width=full>${this.#l()}</calcite-notice></div>` : null}</calcite-list>` : this.#w()}</calcite-flow-item>`,
|
|
290
|
+
this.#_(),
|
|
289
291
|
this._renderedOpenLayerFlowItems
|
|
290
292
|
];
|
|
291
|
-
return this.closed ? null :
|
|
293
|
+
return this.closed ? null : w("root-flow", h`<calcite-flow>${v}</calcite-flow>`);
|
|
292
294
|
}
|
|
293
|
-
|
|
294
|
-
return
|
|
295
|
+
#C(e, t, s) {
|
|
296
|
+
return w(e.uid, Z({ activeItem: this._activeItem, canMove: this._canMove, css: y, displayMode: P, dragEnabled: this.dragEnabled, hideStatusIndicators: this.hideStatusIndicators, hideCatalogLayerList: this.hideCatalogLayerList, item: e, messages: this.messages, layerTablesEnabled: this.layerTablesEnabled, listModeDisabled: this.viewModel.listModeDisabled, operationalItems: this.operationalItems, parent: t, parentTitles: s, rootGroupUid: this._rootGroupUid, selectedDragItemLayerUid: this._selectedDragItemLayerUid, selectedItems: this.selectedItems, selectionMode: this.selectionMode, setCurrentActiveItem: this._setCurrentActiveItem, showTemporaryLayerIndicators: this.showTemporaryLayerIndicators, showCloseButton: this.showCloseButton, showCollapseButton: this.showCollapseButton, showErrors: this.showErrors, showHeading: this.showHeading, showFilter: this.showFilter, clearActiveItem: this._clearActiveItem, visibilityAppearance: this.visibilityAppearance, handleAction: this._onTriggerAction, handleCatalogOpen: this._onCatalogOpen, handleSelectedDragItemLayerUidChange: this._onSelectedDragItemLayerUidChange, handleTablesOpen: this._onTablesOpen, handleTooltipReferenceChange: this._onTooltipReferenceChange, view: this.view }));
|
|
295
297
|
}
|
|
296
298
|
}
|
|
297
|
-
|
|
299
|
+
N("arcgis-layer-list-next", re);
|
|
298
300
|
export {
|
|
299
|
-
|
|
301
|
+
re as ArcgisLayerListNext
|
|
300
302
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
2
|
+
import { c as t } from "../../chunks/runtime.js";
|
|
3
3
|
import { usePropertyChange as o } from "@arcgis/lumina/controllers";
|
|
4
4
|
import a from "@arcgis/core/layers/OrientedImageryLayer.js";
|
|
5
5
|
import s from "@arcgis/core/widgets/OrientedImageryViewer.js";
|
|
@@ -9,7 +9,7 @@ import { m as g } from "../../chunks/useWidget.js";
|
|
|
9
9
|
import { css as c } from "lit";
|
|
10
10
|
import { s as m } from "../../chunks/esri-main.js";
|
|
11
11
|
import { u as h } from "../../chunks/useLayerById.js";
|
|
12
|
-
const v = c`:host{--esri-oriented-imagery-viewer-min-width: var(--arcgis-oriented-imagery-viewer-min-width, 288px);--esri-oriented-imagery-viewer-min-height: var(--arcgis-oriented-imagery-viewer-min-height, 348px);inline-size:100%;block-size:100%}.esri-image-viewer{width:100%;height:100%}.esri-image-viewer__slider-container{--calcite-block-padding: 0;box-sizing:border-box;box-shadow:none;padding-inline:var(--calcite-spacing-md);background-color:#0000;border:none;width:100%;margin:0;overflow:hidden}.esri-image-viewer__slider-container calcite-slider{width:100%}.esri-oriented-imagery-viewer{--esri-oriented-imagery-viewer-action-icon-size: 8px;--calcite-dialog-size-x: 210px;--calcite-dialog-min-size-y: 90px;--calcite-font-weight-medium: $font-weight;--calcite-font-size-0: $font-size;--calcite-icon-size: var(--esri-oriented-imagery-viewer-action-icon-size);box-sizing:border-box;z-index:1;container-type:size;width:100%;min-width:var(--esri-oriented-imagery-viewer-min-width);height:100%;min-height:var(--esri-oriented-imagery-viewer-min-height);flex-direction:column;align-items:flex-start;display:flex;overflow:hidden}.esri-oriented-imagery-viewer:has(.esri-widget .esri-oriented-imagery-viewer__image-overlays-no-result){--esri-oriented-imagery-viewer-min-height: 420px}.esri-oriented-imagery-viewer__body{flex-direction:column;flex:1 0 auto;order:1;align-self:stretch;height:100%;display:flex}.esri-oriented-imagery-viewer__body-current-coverage{--calcite-icon-color: var(--calcite-color-status-danger)}.esri-oriented-imagery-viewer__body-additional-camera-locations{--calcite-icon-color: var(--calcite-color-brand)}.esri-oriented-imagery-viewer__body-additional-coverage{--calcite-icon-color: var(--calcite-color-status-info)}.esri-oriented-imagery-viewer__body-footprint{--calcite-icon-color: var(--calcite-color-status-success)}.esri-oriented-imagery-viewer__carousel{z-index:1;border:1px solid var(--calcite-color-border-2);align-items:center;width:98%;height:140px;margin:auto 1% 0;position:absolute;bottom:0;box-shadow:0 0 1px #0000004d}.esri-oriented-imagery-viewer__carousel-container{height:auto;display:inline-block;overflow:auto hidden}.esri-oriented-imagery-viewer__carousel header{--calcite-font-weight-medium: $font-weight--light;--calcite-font-size-0: $font-size--tiny}.esri-oriented-imagery-viewer__carousel-item{width:100px;height:70px}.esri-oriented-imagery-viewer__carousel-item-wrapper{box-sizing:border-box;justify-content:center;align-items:center;width:106px;height:78px;margin:auto 10px;display:flex;box-shadow:0 1px 2px #0000004d}.esri-oriented-imagery-viewer__carousel-item-wrapper--selected{box-sizing:border-box;border:2px solid var(--calcite-color-brand);justify-content:center;align-items:center;width:106px;height:78px;margin:auto 10px;display:flex;box-shadow:0 1px 2px #0000004d}.esri-oriented-imagery-viewer__carousel-content{display:flex}.esri-oriented-imagery-viewer__close{background:var(--calcite-color-foreground-1);flex-direction:row;flex-grow:0;order:7;justify-content:center;align-items:center;width:48px;height:59px;display:flex}.esri-oriented-imagery-viewer__image-enhancement-wrapper{z-index:1;border:1px solid var(--calcite-color-border-2);align-items:center;width:98%;height:140px;margin:auto 1% 0;position:absolute;bottom:0;box-shadow:0 0 1px #0000004d}.esri-oriented-imagery-viewer__image-enhancement-tools{display:flex}.esri-oriented-imagery-viewer__image-enhancement-tool-container{width:50%;margin-block:2px;padding-inline:.75rem}.esri-oriented-imagery-viewer__superimpose-tools{box-shadow:none;width:100%;height:auto;margin:0}.esri-oriented-imagery-viewer__superimpose-tools .esri-oriented-imagery-viewer__image-enhancement-tool-container{padding-block:var(--calcite-spacing-sm) var(--calcite-spacing-md);width:100%;margin-block:0}.esri-oriented-imagery-viewer__image-overlays{z-index:1;margin:auto 1% 0;border:1px solid var(--calcite-color-border-2);align-items:center;width:98%;height:140px;position:absolute;bottom:0;overflow-y:auto;box-shadow:0 0 1px #0000004d}.esri-oriented-imagery-viewer__image-overlays-layer-list,.esri-oriented-imagery-viewer__image-overlays-switch{padding:0 var(--calcite-spacing-md)}.esri-oriented-imagery-viewer__image-overlays-container{height:auto;display:flex}.esri-oriented-imagery-viewer__image-overlays-no-result{z-index:1;border:1px solid var(--calcite-color-border-2);align-items:center;width:98%;height:auto;margin:auto 1% 0;position:absolute;bottom:0;overflow-y:auto;box-shadow:0 0 1px #0000004d}.esri-oriented-imagery-viewer__image-overlays-no-result-layer-list,.esri-oriented-imagery-viewer__image-overlays-no-result-switch{padding:0 var(--calcite-spacing-md)}.esri-oriented-imagery-viewer__image-overlays-increased-height{z-index:1;border:1px solid var(--calcite-color-border-2);align-items:center;width:98%;height:200px;margin:auto 1% 0;position:absolute;bottom:0;overflow-y:auto;box-shadow:0 0 1px #0000004d}.esri-oriented-imagery-viewer__image-overlays-increased-height-layer-list,.esri-oriented-imagery-viewer__image-overlays-increased-height-switch{padding:0 var(--calcite-spacing-md)}.esri-oriented-imagery-viewer__measurement-results{width:auto;height:fit-content}.esri-oriented-imagery-viewer__measurements-table{margin-block-start:var(--calcite-spacing-sm)}.esri-oriented-imagery-viewer__measurements-bar{flex-wrap:nowrap;display:flex}.esri-oriented-imagery-viewer__measurements-button{display:flex}.esri-oriented-imagery-viewer__measurement-display{text-align:center;margin-block-end:var(--calcite-spacing-xxs)}.esri-oriented-imagery-viewer__viewer{cursor:url(data:text/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20height%3D%2226%22%20width%3D%2226%22%3E%0A%3Cpath%20stroke%3D%22%23000%22%20stroke-width%3D%221px%22%20fill%3D%22%23fff%22%20d%3D%22m15.3%2020.5s6.38-6.73%204.64-8.24-3.47%201.01-3.47%201.01%203.61-5.72%201.41-6.49c-2.2-0.769-3.33%204.36-3.33%204.36s0.873-5.76-1.06-5.76-1.58%205.39-1.58%205.39-0.574-4.59-2.18-4.12c-1.61%200.468-0.572%205.51-0.572%205.51s-1.58-4.89-2.93-3.79c-1.35%201.11%200.258%205.25%200.572%206.62%200.836%202.43%202.03%202.94%202.17%205.55%22%2F%3E%0A%3C%2Fsvg%3E%0A);flex-grow:1;width:100%;margin:0;display:flex}.esri-oriented-imagery-viewer__viewer--hidden{display:none}.esri-oriented-imagery-viewer__viewer-container{border-top:1px solid var(--calcite-color-border-3);background:var(--calcite-color-foreground-1);flex:1 0 auto;order:1;align-self:stretch;width:100%;height:100%;display:flex}.esri-oriented-imagery-viewer__alert{inset-block-end:var(--calcite-spacing-md);inset-inline:var(--calcite-spacing-md);position:absolute}.esri-oriented-imagery-viewer__alert>[slot=message]{display:block}@container (width <= 386px) or (height <= 348px){.esri-oriented-imagery-viewer__alert>[slot=message]{display:none}}.esri-oriented-imagery-viewer-container-measurement{border-top:var(--calcite-border-width-sm) solid var(--calcite-color-border-3);background:var(--calcite-color-foreground-1);flex:1 0 auto;order:1;align-self:stretch;width:100%;height:50%;display:flex}@keyframes rotateOrientedImageryNavigationTool{0%{transform:rotate(var(--oi-navigation-tool-rotation-from, 0deg))}to{transform:rotate(var(--oi-navigation-tool-rotation-to, 0deg))}}.esri-oriented-imagery-viewer__navigation{transform:rotate(var(--oi-navigation-tool-rotation-to, 0deg))}.esri-oriented-imagery-viewer__navigation-animate{animation:.7s linear forwards rotateOrientedImageryNavigationTool}.esri-oriented-imagery-viewer__navigation-feature{fill:var(--calcite-color-brand);stroke:var(--calcite-color-foreground-1);stroke-width:1px}.esri-oriented-imagery-viewer__navigation-feature.selected{fill:var(--calcite-color-status-danger)}.esri-oriented-imagery-viewer__navigation-feature-path{pointer-events:none}.esri-oriented-imagery-viewer__navigation-feature-path-stop-offset-0{stop-color:var(--calcite-color-status-danger);stop-opacity:.4}.esri-oriented-imagery-viewer__navigation-feature-path-stop-offset-1{stop-color:var(--calcite-color-status-danger);stop-opacity:.2}.esri-oriented-imagery-viewer__navigation-pointer{fill:var(--calcite-color-foreground-1);fill-rule:evenodd;stroke:#0000;stroke-dasharray:none;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-width:0}.esri-oriented-imagery-viewer__navigation-pointer-north{fill:var(--calcite-color-status-danger)}.esri-oriented-imagery-viewer__navigation-wrapper{z-index:1;position:absolute;bottom:0;right:0;overflow:hidden}.esri-oriented-imagery-viewer__navigation-wrapper--video{inset-block-end:calc(var(--calcite-spacing-xxxl) * 3)}.esri-oriented-imagery-viewer__navigation-wrapper--zoomed{transform-origin:100% 100%;transform:scale(1.5)}.esri-oriented-imagery-viewer__navigation-wrapper-boundary{fill:var(--calcite-color-foreground-1);fill-opacity:.25;stroke:var(--calcite-color-border-2)}.esri-oriented-imagery-viewer__navigation-sector{fill:none}.esri-oriented-imagery-viewer__navigation-sector-separator{stroke:var(--calcite-color-border-2);stroke-width:1px}.esri-oriented-imagery-viewer__navigation-sector-cross{stroke:var(--calcite-color-status-danger);stroke-width:1px}.esri-oriented-imagery-viewer__navigation-sector-enabled{fill:var(--calcite-color-foreground-1);stroke:var(--calcite-color-border-2);stroke-width:1px}.esri-oriented-imagery-viewer__navigation-sector-disabled{fill:var(--calcite-color-foreground-3);stroke:var(--calcite-color-border-2);stroke-width:1px}.esri-oriented-imagery-viewer__navigation-sector-outer{fill:var(--calcite-color-foreground-1);fill-opacity:.4;stroke:none}.esri-oriented-imagery-viewer__pro .esri-oriented-imagery-viewer{width:100%;max-width:unset;height:100%;max-height:unset;position:static}.esri-oriented-imagery-viewer__sketch-tools{justify-content:center;align-items:center;width:100%;display:flex;position:absolute;bottom:0}.esri-oriented-imagery-viewer--notice{margin-block:auto}.esri-oriented-imagery-viewer__navigation-ui{box-sizing:border-box;transform-style:preserve-3d;z-index:var(--calcite-z-index-overlay);aspect-ratio:1;pointer-events:none;flex-direction:column;align-items:center;width:50%;max-width:330px;display:flex;position:absolute;inset-block-end:0;inset-inline:50%;overflow:hidden;translate:-50%}.esri-oriented-imagery-viewer__navigation-ui__direction{--esri-oriented-imagery-viewer__navigation-ui-direction-color: wheat;--calcite-icon-color: var(--esri-oriented-imagery-viewer__navigation-ui-direction-color);transform-origin:top;transform-style:preserve-3d;cursor:not-allowed;border:3px solid #bfc5cc;border-radius:50%;width:4.5em;height:4.5em;transition:border-color .15s;position:absolute}.esri-oriented-imagery-viewer__navigation-ui__direction:not([disabled]){cursor:pointer;pointer-events:auto}.esri-oriented-imagery-viewer__navigation-ui__direction:not([disabled]):hover{--calcite-icon-color: var(--calcite-color-brand);border-color:var(--calcite-color-brand)}.esri-oriented-imagery-viewer__navigation-ui__direction-pad{box-sizing:border-box;filter:drop-shadow(0 2px 1px #00000080);width:100%;height:100%;transform:perspective(400px) rotateX(60deg)}.esri-oriented-imagery-viewer__navigation-settings-ui [slot=content-bottom]{padding:.5rem;display:none}.esri-oriented-imagery-viewer__navigation-settings-ui [selected]>[slot=content-bottom]{display:block}.esri-panoramic-viewer{width:100%;height:100%;overflow-x:hidden}.esri-panoramic-viewer__slider-container{--calcite-block-padding: 0;box-sizing:border-box;box-shadow:none;padding-inline:var(--calcite-spacing-md);background-color:#0000;border:none;width:100%;margin:0;overflow:hidden}.esri-panoramic-viewer__slider-container calcite-slider{width:100%}`, w = g(s), p = "map-components:arcgis-oriented-imagery-viewer";
|
|
12
|
+
const v = c`:host{--esri-oriented-imagery-viewer-min-width: var(--arcgis-oriented-imagery-viewer-min-width, 288px);--esri-oriented-imagery-viewer-min-height: var(--arcgis-oriented-imagery-viewer-min-height, 348px);inline-size:100%;block-size:100%}.esri-image-viewer{width:100%;height:100%}.esri-image-viewer__slider-container{--calcite-block-padding: 0;box-sizing:border-box;box-shadow:none;padding-inline:var(--calcite-spacing-md);background-color:#0000;border:none;width:100%;margin:0;overflow:hidden}.esri-image-viewer__slider-container calcite-slider{width:100%}.esri-oriented-imagery-viewer{--esri-oriented-imagery-viewer-action-icon-size: 8px;--calcite-dialog-size-x: 210px;--calcite-dialog-min-size-y: 90px;--calcite-font-weight-medium: $font-weight;--calcite-font-size-0: $font-size;--calcite-icon-size: var(--esri-oriented-imagery-viewer-action-icon-size);box-sizing:border-box;z-index:1;container-type:size;width:100%;min-width:var(--esri-oriented-imagery-viewer-min-width);height:100%;min-height:var(--esri-oriented-imagery-viewer-min-height);flex-direction:column;align-items:flex-start;display:flex;overflow:hidden}.esri-oriented-imagery-viewer:has(.esri-widget .esri-oriented-imagery-viewer__image-overlays-no-result){--esri-oriented-imagery-viewer-min-height: 420px}.esri-oriented-imagery-viewer__body{flex-direction:column;flex:1 0 auto;order:1;align-self:stretch;height:100%;display:flex}.esri-oriented-imagery-viewer__body-current-coverage{--calcite-icon-color: var(--calcite-color-status-danger)}.esri-oriented-imagery-viewer__body-additional-camera-locations{--calcite-icon-color: var(--calcite-color-brand)}.esri-oriented-imagery-viewer__body-additional-coverage{--calcite-icon-color: var(--calcite-color-status-info)}.esri-oriented-imagery-viewer__body-footprint{--calcite-icon-color: var(--calcite-color-status-success)}.esri-oriented-imagery-viewer__carousel{z-index:1;border:1px solid var(--calcite-color-border-2);align-items:center;width:98%;height:140px;margin:auto 1% 0;position:absolute;bottom:0;box-shadow:0 0 1px #0000004d}.esri-oriented-imagery-viewer__carousel-container{height:auto;display:inline-block;overflow:auto hidden}.esri-oriented-imagery-viewer__carousel header{--calcite-font-weight-medium: $font-weight--light;--calcite-font-size-0: $font-size--tiny}.esri-oriented-imagery-viewer__carousel-item{width:100px;height:70px}.esri-oriented-imagery-viewer__carousel-item-wrapper{box-sizing:border-box;justify-content:center;align-items:center;width:106px;height:78px;margin:auto 10px;display:flex;box-shadow:0 1px 2px #0000004d}.esri-oriented-imagery-viewer__carousel-item-wrapper--selected{box-sizing:border-box;border:2px solid var(--calcite-color-brand);justify-content:center;align-items:center;width:106px;height:78px;margin:auto 10px;display:flex;box-shadow:0 1px 2px #0000004d}.esri-oriented-imagery-viewer__carousel-content{display:flex}.esri-oriented-imagery-viewer__close{background:var(--calcite-color-foreground-1);flex-direction:row;flex-grow:0;order:7;justify-content:center;align-items:center;width:48px;height:59px;display:flex}.esri-oriented-imagery-viewer__image-enhancement-wrapper,.esri-oriented-imagery-viewer__submenu{z-index:1;border:1px solid var(--calcite-color-border-2);align-items:center;width:98%;height:140px;margin:auto 1% 0;position:absolute;bottom:0;box-shadow:0 0 1px #0000004d}.esri-oriented-imagery-viewer__image-enhancement-tools{display:flex}.esri-oriented-imagery-viewer__image-enhancement-tool-container{width:50%;margin-block:2px;padding-inline:.75rem}.esri-oriented-imagery-viewer__submenu{height:auto}.esri-oriented-imagery-viewer__superimpose-tools{box-shadow:none;width:100%;height:auto;margin:0}.esri-oriented-imagery-viewer__superimpose-tools .esri-oriented-imagery-viewer__image-enhancement-tool-container{padding-block:var(--calcite-spacing-sm) var(--calcite-spacing-md);width:100%;margin-block:0}.esri-oriented-imagery-viewer__image-overlays{z-index:1;margin:auto 1% 0;border:1px solid var(--calcite-color-border-2);align-items:center;width:98%;height:140px;position:absolute;bottom:0;overflow-y:auto;box-shadow:0 0 1px #0000004d}.esri-oriented-imagery-viewer__image-overlays-layer-list,.esri-oriented-imagery-viewer__image-overlays-switch{padding:0 var(--calcite-spacing-md)}.esri-oriented-imagery-viewer__image-overlays-container{height:auto;display:flex}.esri-oriented-imagery-viewer__image-overlays-no-result{z-index:1;border:1px solid var(--calcite-color-border-2);align-items:center;width:98%;height:auto;margin:auto 1% 0;position:absolute;bottom:0;overflow-y:auto;box-shadow:0 0 1px #0000004d}.esri-oriented-imagery-viewer__image-overlays-no-result-layer-list,.esri-oriented-imagery-viewer__image-overlays-no-result-switch{padding:0 var(--calcite-spacing-md)}.esri-oriented-imagery-viewer__image-overlays-increased-height{z-index:1;border:1px solid var(--calcite-color-border-2);align-items:center;width:98%;height:200px;margin:auto 1% 0;position:absolute;bottom:0;overflow-y:auto;box-shadow:0 0 1px #0000004d}.esri-oriented-imagery-viewer__image-overlays-increased-height-layer-list,.esri-oriented-imagery-viewer__image-overlays-increased-height-switch{padding:0 var(--calcite-spacing-md)}.esri-oriented-imagery-viewer__measurement-results{width:auto;height:fit-content}.esri-oriented-imagery-viewer__measurements-table{margin-block-start:var(--calcite-spacing-sm)}.esri-oriented-imagery-viewer__measurements-bar{flex-wrap:nowrap;display:flex}.esri-oriented-imagery-viewer__measurements-button{display:flex}.esri-oriented-imagery-viewer__measurement-display{text-align:center;margin-block-end:var(--calcite-spacing-xxs)}.esri-oriented-imagery-viewer__viewer{cursor:url(data:text/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20height%3D%2226%22%20width%3D%2226%22%3E%0A%3Cpath%20stroke%3D%22%23000%22%20stroke-width%3D%221px%22%20fill%3D%22%23fff%22%20d%3D%22m15.3%2020.5s6.38-6.73%204.64-8.24-3.47%201.01-3.47%201.01%203.61-5.72%201.41-6.49c-2.2-0.769-3.33%204.36-3.33%204.36s0.873-5.76-1.06-5.76-1.58%205.39-1.58%205.39-0.574-4.59-2.18-4.12c-1.61%200.468-0.572%205.51-0.572%205.51s-1.58-4.89-2.93-3.79c-1.35%201.11%200.258%205.25%200.572%206.62%200.836%202.43%202.03%202.94%202.17%205.55%22%2F%3E%0A%3C%2Fsvg%3E%0A);flex-grow:1;width:100%;margin:0;display:flex}.esri-oriented-imagery-viewer__viewer--hidden{display:none}.esri-oriented-imagery-viewer__viewer-container{border-top:1px solid var(--calcite-color-border-3);background:var(--calcite-color-foreground-1);flex:1 0 auto;order:1;align-self:stretch;width:100%;height:100%;display:flex}.esri-oriented-imagery-viewer__alert{inset-block-end:var(--calcite-spacing-md);inset-inline:var(--calcite-spacing-md);position:absolute}.esri-oriented-imagery-viewer__alert>[slot=message]{display:block}@container (width <= 386px) or (height <= 348px){.esri-oriented-imagery-viewer__alert>[slot=message]{display:none}}.esri-oriented-imagery-viewer-container-measurement{border-top:var(--calcite-border-width-sm) solid var(--calcite-color-border-3);background:var(--calcite-color-foreground-1);flex:1 0 auto;order:1;align-self:stretch;width:100%;height:50%;display:flex}@keyframes rotateOrientedImageryNavigationTool{0%{transform:rotate(var(--oi-navigation-tool-rotation-from, 0deg))}to{transform:rotate(var(--oi-navigation-tool-rotation-to, 0deg))}}.esri-oriented-imagery-viewer__navigation{transform:rotate(var(--oi-navigation-tool-rotation-to, 0deg))}.esri-oriented-imagery-viewer__navigation-animate{animation:.7s linear forwards rotateOrientedImageryNavigationTool}.esri-oriented-imagery-viewer__navigation-feature{fill:var(--calcite-color-brand);stroke:var(--calcite-color-foreground-1);stroke-width:1px}.esri-oriented-imagery-viewer__navigation-feature.selected{fill:var(--calcite-color-status-danger)}.esri-oriented-imagery-viewer__navigation-feature-path{pointer-events:none}.esri-oriented-imagery-viewer__navigation-feature-path-stop-offset-0{stop-color:var(--calcite-color-status-danger);stop-opacity:.4}.esri-oriented-imagery-viewer__navigation-feature-path-stop-offset-1{stop-color:var(--calcite-color-status-danger);stop-opacity:.2}.esri-oriented-imagery-viewer__navigation-pointer{fill:var(--calcite-color-foreground-1);fill-rule:evenodd;stroke:#0000;stroke-dasharray:none;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-width:0}.esri-oriented-imagery-viewer__navigation-pointer-north{fill:var(--calcite-color-status-danger)}.esri-oriented-imagery-viewer__navigation-wrapper{z-index:1;position:absolute;bottom:0;right:0;overflow:hidden}.esri-oriented-imagery-viewer__navigation-wrapper--video{inset-block-end:calc(var(--calcite-spacing-xxxl) * 3)}.esri-oriented-imagery-viewer__navigation-wrapper--zoomed{transform-origin:100% 100%;transform:scale(1.5)}.esri-oriented-imagery-viewer__navigation-wrapper-boundary{fill:var(--calcite-color-foreground-1);fill-opacity:.25;stroke:var(--calcite-color-border-2)}.esri-oriented-imagery-viewer__navigation-sector{fill:none}.esri-oriented-imagery-viewer__navigation-sector-separator{stroke:var(--calcite-color-border-2);stroke-width:1px}.esri-oriented-imagery-viewer__navigation-sector-cross{stroke:var(--calcite-color-status-danger);stroke-width:1px}.esri-oriented-imagery-viewer__navigation-sector-enabled{fill:var(--calcite-color-foreground-1);stroke:var(--calcite-color-border-2);stroke-width:1px}.esri-oriented-imagery-viewer__navigation-sector-disabled{fill:var(--calcite-color-foreground-3);stroke:var(--calcite-color-border-2);stroke-width:1px}.esri-oriented-imagery-viewer__navigation-sector-outer{fill:var(--calcite-color-foreground-1);fill-opacity:.4;stroke:none}.esri-oriented-imagery-viewer__pro .esri-oriented-imagery-viewer{width:100%;max-width:unset;height:100%;max-height:unset;position:static}.esri-oriented-imagery-viewer__sketch-tools{justify-content:center;align-items:center;width:100%;display:flex;position:absolute;bottom:0}.esri-oriented-imagery-viewer--notice{margin-block:auto}.esri-oriented-imagery-viewer__navigation-ui{box-sizing:border-box;transform-style:preserve-3d;z-index:var(--calcite-z-index-overlay);aspect-ratio:1;pointer-events:none;flex-direction:column;align-items:center;width:50%;max-width:330px;display:flex;position:absolute;inset-block-end:0;inset-inline:50%;overflow:hidden;translate:-50%}.esri-oriented-imagery-viewer__navigation-ui__direction{--esri-oriented-imagery-viewer__navigation-ui-direction-color: wheat;--calcite-icon-color: var(--esri-oriented-imagery-viewer__navigation-ui-direction-color);transform-origin:top;transform-style:preserve-3d;cursor:not-allowed;border:3px solid #bfc5cc;border-radius:50%;width:4.5em;height:4.5em;transition:border-color .15s;position:absolute}.esri-oriented-imagery-viewer__navigation-ui__direction:not([disabled]){cursor:pointer;pointer-events:auto}.esri-oriented-imagery-viewer__navigation-ui__direction:not([disabled]):hover{--calcite-icon-color: var(--calcite-color-brand);border-color:var(--calcite-color-brand)}.esri-oriented-imagery-viewer__navigation-ui__direction-pad{box-sizing:border-box;filter:drop-shadow(0 2px 1px #00000080);width:100%;height:100%;transform:perspective(400px) rotateX(60deg)}.esri-oriented-imagery-viewer__navigation-settings-ui [slot=content-bottom]{padding:.5rem;display:none}.esri-oriented-imagery-viewer__navigation-settings-ui [selected]>[slot=content-bottom]{display:block}.esri-panoramic-viewer{width:100%;height:100%;overflow-x:hidden}.esri-panoramic-viewer__slider-container{--calcite-block-padding: 0;box-sizing:border-box;box-shadow:none;padding-inline:var(--calcite-spacing-md);background-color:#0000;border:none;width:100%;margin:0;overflow:hidden}.esri-panoramic-viewer__slider-container calcite-slider{width:100%}`, w = g(s), p = "map-components:arcgis-oriented-imagery-viewer";
|
|
13
13
|
class y extends n {
|
|
14
14
|
constructor() {
|
|
15
15
|
super(...arguments), this.widget = w(this), this._hasOrientedImageryLayerToAdd = !1, this.viewModel = this.widget.viewModel, this.view = this.widget.view, this.autoDestroyDisabled = !1, this.actionBarPosition = this.widget.actionBarPosition, this.currentCoverageVisible = this.widget.currentCoverageVisible, this.dataCaptureEnabled = this.widget.dataCaptureEnabled, this.disabled = this.widget.disabled, this.galleryOpened = this.widget.galleryOpened, this.hideAdditionalCameraLocationsToggle = this.widget.visibleElements.additionalCameraLocationsToggle, this.hideAdditionalFootprintsToggle = this.widget.visibleElements.additionalFootprintToggle, this.hideCurrentFootprintToggle = this.widget.visibleElements.currentFootprintToggle, this.hideDirectionalNavigationToggle = this.widget.visibleElements.directionalNavigation, this.hideEnhancementToolToggle = this.widget.visibleElements.enhancementTool, this.hideExploreImagesToggle = this.widget.visibleElements.exploreImages, this.hideExploreImages3dToggle = this.widget.visibleElements.exploreImages3D, this.hideHeader = this.widget.visibleElements.header, this.hideMenu = this.widget.visibleElements.menu, this.hideImageGalleryToggle = this.widget.visibleElements.imageGallery, this.hideImageNavigationGroup = this.widget.visibleElements.imageNavigationTools, this.hideImageOverlaysToggle = this.widget.visibleElements.imageOverlays, this.hideMapImageLocationToolToggle = this.widget.visibleElements.mapImageConversionTool, this.hideImageMeasurementToolsGroup = this.widget.visibleElements.measurementTools, this.hideNavigationToolToggle = this.widget.visibleElements.navigationTool, this.hideOverlaysGroup = this.widget.visibleElements.overlays, this.hideSearchGroup = this.widget.visibleElements.searchTools, this.hideSequentialNavigationToggle = this.widget.visibleElements.sequentialNavigation, this.hideDisplayImageToggle = this.widget.visibleElements.showSelectedImage, this.hidePopupsAction = this.widget.visibleElements.showPopupsAction, this.hideSuperimposeViewToggle = this.widget.visibleElements.superimpose, this.hideUtilitiesGroup = this.widget.visibleElements.utilityTools, this.icon = this.widget.icon, this.imageEnhancementToolActive = this.widget.imageEnhancementToolActive, this.imageGalleryEnabled = this.widget.imageGalleryEnabled, this.imageOverlaysOpened = this.widget.imageOverlaysOpened, this.isAdditionalCoverageVisible = this.widget.isAdditionalCoverageVisible, this.isAdditionalPointSourcesVisible = this.widget.isAdditionalPointSourcesVisible, this.label = this.widget.label, this.layer = this.widget.layer, this.mapLayerId = h(this, (e) => {
|
|
@@ -41,8 +41,8 @@ class y extends n {
|
|
|
41
41
|
if (e.has("orientedImageryLayerItemId")) {
|
|
42
42
|
const i = this.orientedImageryLayerItemId;
|
|
43
43
|
if (i && this.widget) {
|
|
44
|
-
const
|
|
45
|
-
this.layer = new a(
|
|
44
|
+
const r = { portalItem: { id: i } };
|
|
45
|
+
this.layer = new a(r), this.widget.view ? this.widget.view.map?.add(this.layer) : this._hasOrientedImageryLayerToAdd = !0;
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
48
|
}
|
|
@@ -56,7 +56,7 @@ class y extends n {
|
|
|
56
56
|
e && (this.widget.view?.map?.add(e), this._hasOrientedImageryLayerToAdd = !1);
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
|
-
|
|
59
|
+
t("arcgis-oriented-imagery-viewer", y);
|
|
60
60
|
export {
|
|
61
61
|
y as ArcgisOrientedImageryViewer
|
|
62
62
|
};
|