@arcgis/map-components 6.0.0-next.32 → 6.0.0-next.34
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/4UCQJWD2.js +2 -0
- package/dist/cdn/6UMEQS35.js +2 -0
- package/dist/cdn/7OLHJCFT.js +2 -0
- package/dist/cdn/AMRSK274.js +2 -0
- package/dist/cdn/D4UNIFIZ.js +2 -0
- package/dist/cdn/JKE3FA4Q.js +2 -0
- package/dist/cdn/JZTCF52M.js +2 -0
- package/dist/cdn/NZK2LVFA.js +2 -0
- package/dist/cdn/PTHNXKEA.js +2 -0
- package/dist/cdn/QCZQCLAT.js +2 -0
- package/dist/cdn/QVIQ66LA.js +2 -0
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/layer-list-next.js +49 -4
- package/dist/components/arcgis-basemap-layer-list-next/customElement.d.ts +3 -0
- package/dist/components/arcgis-basemap-layer-list-next/customElement.js +102 -101
- package/dist/components/arcgis-catalog-layer-list-next/customElement.d.ts +3 -0
- package/dist/components/arcgis-catalog-layer-list-next/customElement.js +87 -86
- package/dist/components/arcgis-expand/customElement.js +13 -13
- package/dist/components/arcgis-layer-list-next/customElement.d.ts +1 -0
- package/dist/components/arcgis-layer-list-next/customElement.js +72 -71
- package/dist/components/arcgis-sketch/customElement.d.ts +6 -4
- package/dist/components/arcgis-sketch/customElement.js +177 -167
- package/dist/components/arcgis-table-list-next/customElement.d.ts +3 -0
- package/dist/components/arcgis-table-list-next/customElement.js +44 -43
- package/dist/components/arcgis-utility-network-picker/customElement.js +32 -31
- package/dist/components/arcgis-utility-network-trace-configuration-picker/customElement.d.ts +10 -4
- package/dist/components/arcgis-utility-network-trace-configuration-picker/customElement.js +10 -9
- package/dist/components/arcgis-utility-network-trace-inputs/customElement.d.ts +3 -0
- package/dist/components/arcgis-utility-network-trace-inputs/customElement.js +7 -7
- package/dist/components/arcgis-utility-network-trace-results/customElement.d.ts +1 -1
- package/dist/components/arcgis-view-popover/customElement.d.ts +65 -33
- package/dist/components/arcgis-view-popover/customElement.js +196 -108
- package/dist/components/arcgis-view-popover/index.js +1 -1
- 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 +7 -7
- package/dist/cdn/3NUN6DK3.js +0 -2
- package/dist/cdn/6FJUKYNB.js +0 -2
- package/dist/cdn/7Y6PADB5.js +0 -2
- package/dist/cdn/I5F7MVDT.js +0 -2
- package/dist/cdn/P5U37XIA.js +0 -2
- package/dist/cdn/PD4ELTMF.js +0 -2
- package/dist/cdn/RAADOJWX.js +0 -2
- package/dist/cdn/TY4XRXLB.js +0 -2
- package/dist/cdn/UZ4VANCL.js +0 -2
- package/dist/cdn/W4BA3ECA.js +0 -2
- package/dist/cdn/ZEQHIKTN.js +0 -2
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import { c as N } from "../../chunks/runtime.js";
|
|
3
3
|
import { html as h } from "lit";
|
|
4
4
|
import { keyed as w } from "lit/directives/keyed.js";
|
|
5
|
-
import { repeat as
|
|
6
|
-
import
|
|
7
|
-
import { classes as
|
|
5
|
+
import { repeat as S } from "lit/directives/repeat.js";
|
|
6
|
+
import k from "@arcgis/core/layerList/LayerListModel.js";
|
|
7
|
+
import { classes as B } from "@arcgis/toolkit/dom";
|
|
8
8
|
import { generateGuid as U } from "@arcgis/toolkit/string";
|
|
9
9
|
import { createRef as b, ref as _ } from "lit/directives/ref.js";
|
|
10
10
|
import { u as G } from "../../chunks/useT9n.js";
|
|
@@ -18,23 +18,23 @@ import { LitElement as Q, createEvent as I, renderElement as D, safeClassMap as
|
|
|
18
18
|
import { usePropertyChange as W } from "@arcgis/lumina/controllers";
|
|
19
19
|
import { reEmitEvent as X } from "@arcgis/lumina-toolkit/reEmitEvent";
|
|
20
20
|
import { u as Y } from "../../chunks/useCloseEvent.js";
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import { i as
|
|
21
|
+
import { u as Z, s as ee, a as te } from "../../chunks/layer-list-next.js";
|
|
22
|
+
import { ArcgisLayerListItem as se } from "./layer-list-item/customElement.js";
|
|
23
|
+
import { i as ie, h as ae, r as le } from "../../chunks/utils.js";
|
|
24
24
|
import "../arcgis-layer-list-item-indicator/customElement.js";
|
|
25
|
-
const P = "nested",
|
|
25
|
+
const P = "nested", oe = H(k);
|
|
26
26
|
class re extends Q {
|
|
27
27
|
constructor() {
|
|
28
|
-
super(...arguments), this.#s = null, this._rootListRef = b(), this._layerFlowItemRef = b(), this._panelFlowItemRef = b(), this._selectedDragItemLayerUid = null, this._rootGroupUid = `operational-${U()}`, this.#
|
|
28
|
+
super(...arguments), this.#s = Z(this), this.#i = null, this._rootListRef = b(), this._layerFlowItemRef = b(), this._panelFlowItemRef = b(), this._selectedDragItemLayerUid = null, this._rootGroupUid = `operational-${U()}`, this.#a = null, this.messages = G(), this._canMove = ({ dragEl: e, fromEl: t, toEl: s }, a) => {
|
|
29
29
|
const i = a === "pull" ? this.listItemCanGiveFunction : this.listItemCanReceiveFunction, l = m(e, this.operationalItems);
|
|
30
30
|
if (!l?.sortable)
|
|
31
31
|
return !1;
|
|
32
|
-
const
|
|
32
|
+
const o = this.#e(t), r = this.#e(s), n = this.#t(o), d = F(o), g = this.#t(r), u = F(r), f = !!d && !!u && d === u, L = {
|
|
33
33
|
selected: l,
|
|
34
34
|
from: n,
|
|
35
35
|
to: g
|
|
36
|
-
}, v =
|
|
37
|
-
return v && c && typeof i == "function" ? i(
|
|
36
|
+
}, v = o?.group, c = r?.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(L) : f && !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) => {
|
|
@@ -48,7 +48,7 @@ class re extends Q {
|
|
|
48
48
|
return;
|
|
49
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 = oe(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;
|
|
@@ -64,6 +64,7 @@ class re extends Q {
|
|
|
64
64
|
}
|
|
65
65
|
#s;
|
|
66
66
|
#i;
|
|
67
|
+
#a;
|
|
67
68
|
get _totalItems() {
|
|
68
69
|
return this.viewModel.operationalItems.flatten((t) => t.children.filter((s) => s.layer?.type !== "catalog-dynamic-group")).length;
|
|
69
70
|
}
|
|
@@ -71,7 +72,7 @@ class re extends Q {
|
|
|
71
72
|
return this.operationalItems?.filter((e) => !e.hidden && (this.showErrors || !e.error));
|
|
72
73
|
}
|
|
73
74
|
get _openedPanelItems() {
|
|
74
|
-
return this._visibleItems.flatten((e) => e.children).filter((e) => !e.hidden && e.panel?.open && !e.panel.disabled && e.panel.flowEnabled && (!
|
|
75
|
+
return this._visibleItems.flatten((e) => e.children).filter((e) => !e.hidden && e.panel?.open && !e.panel.disabled && e.panel.flowEnabled && (!ie(e) || ae(e)));
|
|
75
76
|
}
|
|
76
77
|
get _dragEnabled() {
|
|
77
78
|
return this._totalItems >= this.minDragEnabledItems && this.dragEnabled;
|
|
@@ -81,7 +82,7 @@ class re extends Q {
|
|
|
81
82
|
}
|
|
82
83
|
get _renderedOpenLayerFlowItems() {
|
|
83
84
|
const { openedLayers: e } = this;
|
|
84
|
-
return e.toArray().map((t, s) => this.#
|
|
85
|
+
return e.toArray().map((t, s) => this.#_(t, s === e.length - 1));
|
|
85
86
|
}
|
|
86
87
|
get catalogLayerList() {
|
|
87
88
|
return this._catalogLayerList;
|
|
@@ -90,12 +91,12 @@ class re extends Q {
|
|
|
90
91
|
return this._tableList;
|
|
91
92
|
}
|
|
92
93
|
async destroy() {
|
|
93
|
-
await this.manager.destroy(), this.#
|
|
94
|
+
await this.manager.destroy(), this.#h(), this._tooltipReferenceMap.clear();
|
|
94
95
|
}
|
|
95
96
|
loaded() {
|
|
96
97
|
this.manager.onLifecycle(() => [
|
|
97
98
|
C(() => this.openedLayers, "change", () => {
|
|
98
|
-
this.#
|
|
99
|
+
this.#c();
|
|
99
100
|
}, { initial: !0 }),
|
|
100
101
|
C(() => this.viewModel.operationalItems, "change", () => T(this.selectedItems), { initial: !0 }),
|
|
101
102
|
A(() => this.operationalItems.flatten((e) => e.children).map((e) => e.uid).join(","), () => {
|
|
@@ -133,35 +134,35 @@ class re extends Q {
|
|
|
133
134
|
}
|
|
134
135
|
return null;
|
|
135
136
|
}
|
|
136
|
-
async #
|
|
137
|
+
async #n(e, t) {
|
|
137
138
|
const { _layerListMap: s } = this, a = s.get(e);
|
|
138
139
|
if (a)
|
|
139
140
|
return a;
|
|
140
|
-
const i = e.type === "catalog" ? await this.#
|
|
141
|
+
const i = e.type === "catalog" ? await this.#d(e) : await this.#p(e);
|
|
141
142
|
return t.aborted || s.set(e, i), i;
|
|
142
143
|
}
|
|
143
|
-
async #
|
|
144
|
+
async #c() {
|
|
144
145
|
const { _layerListMap: e, openedLayers: t, openedLayerLists: s } = this;
|
|
145
|
-
this.#
|
|
146
|
+
this.#a?.abort();
|
|
146
147
|
const a = new AbortController(), { signal: i } = a;
|
|
147
|
-
this.#
|
|
148
|
-
t.includes(n) || (
|
|
148
|
+
this.#a = a, e.forEach((r, n) => {
|
|
149
|
+
t.includes(n) || (r?.destroy?.(), e.delete(n));
|
|
149
150
|
});
|
|
150
|
-
const l = await Promise.all(t.map((
|
|
151
|
+
const l = await Promise.all(t.map((r) => this.#n(r, i)));
|
|
151
152
|
if (i.aborted)
|
|
152
153
|
return;
|
|
153
154
|
s.removeAll(), s.addMany(l);
|
|
154
|
-
const
|
|
155
|
-
|
|
155
|
+
const o = s.at(-1);
|
|
156
|
+
o ? "catalogLayer" in o ? (this._catalogLayerList = o, this._tableList = void 0) : (this._catalogLayerList = void 0, this._tableList = o) : (this._catalogLayerList = void 0, this._tableList = void 0), this.arcgisOpenedLayersChange.emit();
|
|
156
157
|
}
|
|
157
|
-
#
|
|
158
|
+
#h() {
|
|
158
159
|
this.openedLayerLists.destroyAll(), this.openedLayers.removeAll(), this._layerListMap.clear();
|
|
159
160
|
}
|
|
160
|
-
async #
|
|
161
|
-
const { headingLevel: t, catalogOptions: s, filterPlaceholder: a, listItemCreatedFunction: i, minFilterItems: l, selectionMode:
|
|
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 ??
|
|
161
|
+
async #d(e) {
|
|
162
|
+
const { headingLevel: t, catalogOptions: s, filterPlaceholder: a, listItemCreatedFunction: i, minFilterItems: l, selectionMode: o, visibilityAppearance: r } = this;
|
|
163
|
+
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 ?? o} .visibilityAppearance=${s?.visibilityAppearance ?? r} .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>`);
|
|
163
164
|
}
|
|
164
|
-
#
|
|
165
|
+
#m(e) {
|
|
165
166
|
switch (e.type) {
|
|
166
167
|
case "knowledge-graph":
|
|
167
168
|
return { ...this.knowledgeGraphOptions, tables: e.tables };
|
|
@@ -179,23 +180,23 @@ class re extends Q {
|
|
|
179
180
|
return null;
|
|
180
181
|
}
|
|
181
182
|
}
|
|
182
|
-
async #
|
|
183
|
-
const { headingLevel: t, selectionMode: s, dragEnabled: a } = this, i = this.#
|
|
183
|
+
async #p(e) {
|
|
184
|
+
const { headingLevel: t, selectionMode: s, dragEnabled: a } = this, i = this.#m(e);
|
|
184
185
|
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>`);
|
|
185
186
|
}
|
|
186
|
-
#
|
|
187
|
+
#g(e) {
|
|
187
188
|
e.open = !1;
|
|
188
189
|
}
|
|
189
|
-
#
|
|
190
|
-
const i = this.#e(e), l = this.#e(t),
|
|
191
|
-
a == null || !
|
|
190
|
+
#u({ toEl: e, fromEl: t, dragEl: s, newIndex: a }) {
|
|
191
|
+
const i = this.#e(e), l = this.#e(t), o = m(s, this.operationalItems), r = this.#t(i), n = this.#t(l);
|
|
192
|
+
a == null || !o || (this.viewModel.moveItem(o, n, r, a), le(
|
|
192
193
|
this,
|
|
193
|
-
|
|
194
|
+
o.uid,
|
|
194
195
|
// Make sure we have the current node and not a stale one
|
|
195
196
|
(d) => d !== s && this.#e(d.parentElement) === i
|
|
196
197
|
));
|
|
197
198
|
}
|
|
198
|
-
#
|
|
199
|
+
#f(e) {
|
|
199
200
|
const { fromEl: t, toEl: s, dragEl: a, oldIndex: i } = e;
|
|
200
201
|
if (t !== s) {
|
|
201
202
|
a.remove();
|
|
@@ -203,19 +204,19 @@ class re extends Q {
|
|
|
203
204
|
}
|
|
204
205
|
i == null || !t || !a || t.insertBefore(a, t.children[i]);
|
|
205
206
|
}
|
|
206
|
-
#
|
|
207
|
-
const t = this.#
|
|
208
|
-
if (!(!i || !l ||
|
|
209
|
-
if (this.#
|
|
207
|
+
#y(e) {
|
|
208
|
+
const t = this.#i, { dragEl: s, newIndex: a } = e, i = this.#e(e.fromEl), l = this.#e(e.toEl), o = t?.newIndex === a && t?.dragEl === s && t?.toEl === l && t?.fromEl === i;
|
|
209
|
+
if (!(!i || !l || o)) {
|
|
210
|
+
if (this.#i = {
|
|
210
211
|
...e,
|
|
211
212
|
fromEl: i,
|
|
212
213
|
toEl: l
|
|
213
214
|
}, this._selectedDragItemLayerUid = s.value, i === l) {
|
|
214
|
-
const
|
|
215
|
-
this.#
|
|
215
|
+
const r = Array.from(i.children).filter((n) => n?.matches("calcite-list-item")).map((n) => n.value.layer?.uid ?? "");
|
|
216
|
+
this.#I(i, r);
|
|
216
217
|
return;
|
|
217
218
|
}
|
|
218
|
-
this.#
|
|
219
|
+
this.#u({
|
|
219
220
|
toEl: l,
|
|
220
221
|
fromEl: i,
|
|
221
222
|
dragEl: s,
|
|
@@ -223,7 +224,7 @@ class re extends Q {
|
|
|
223
224
|
});
|
|
224
225
|
}
|
|
225
226
|
}
|
|
226
|
-
#
|
|
227
|
+
#I(e, t) {
|
|
227
228
|
if (e)
|
|
228
229
|
if (e === this._rootListRef.value)
|
|
229
230
|
z(this.el.view?.map?.layers, t);
|
|
@@ -234,7 +235,7 @@ class re extends Q {
|
|
|
234
235
|
J(s, t);
|
|
235
236
|
}
|
|
236
237
|
}
|
|
237
|
-
#
|
|
238
|
+
#L(e) {
|
|
238
239
|
const { selectionMode: t, selectedItems: s } = this;
|
|
239
240
|
if (t === "none")
|
|
240
241
|
return;
|
|
@@ -246,54 +247,54 @@ class re extends Q {
|
|
|
246
247
|
[$.hidden]: e === "loading",
|
|
247
248
|
[$.disabled]: e === "disabled"
|
|
248
249
|
};
|
|
249
|
-
return h`<div class=${E(
|
|
250
|
+
return h`<div class=${E(B($.widget, t))}>${this._visibleItems?.length ? this.#w() : null}${this.#C()}</div>`;
|
|
250
251
|
}
|
|
251
|
-
#
|
|
252
|
+
#v(e) {
|
|
252
253
|
const { _tooltipReferenceMap: t, messages: s } = this;
|
|
253
254
|
return e ? h`<calcite-tooltip overlay-positioning=fixed .referenceElement=${t.get(e.layer?.uid ?? "")}>${s.layerIncompatibleTooltip}</calcite-tooltip>` : null;
|
|
254
255
|
}
|
|
255
|
-
#
|
|
256
|
+
#l(e) {
|
|
256
257
|
if (e.incompatible)
|
|
257
|
-
return this.#
|
|
258
|
-
const t = e.children?.filter((s) => !s.hidden).toArray().map((s) => this.#
|
|
258
|
+
return this.#v(e);
|
|
259
|
+
const t = e.children?.filter((s) => !s.hidden).toArray().map((s) => this.#l(s)) ?? [];
|
|
259
260
|
return t.length ? t : null;
|
|
260
261
|
}
|
|
261
|
-
#
|
|
262
|
-
return this._visibleItems?.toArray().map((t) => this.#
|
|
262
|
+
#w() {
|
|
263
|
+
return this._visibleItems?.toArray().map((t) => this.#l(t));
|
|
263
264
|
}
|
|
264
|
-
#
|
|
265
|
+
#o() {
|
|
265
266
|
return h`<div slot=message>${this.messages.noItemsToDisplay}</div>`;
|
|
266
267
|
}
|
|
267
|
-
#
|
|
268
|
-
return this.hideNoItemsNotice ? null : h`<div class=${E(y.itemMessage)}><calcite-notice icon=information kind=info open width=full>${this.#
|
|
268
|
+
#b() {
|
|
269
|
+
return this.hideNoItemsNotice ? null : h`<div class=${E(y.itemMessage)}><calcite-notice icon=information kind=info open width=full>${this.#o()}</calcite-notice></div>`;
|
|
269
270
|
}
|
|
270
|
-
#
|
|
271
|
+
#_(e, t) {
|
|
271
272
|
const { messages: s, openedLayers: a } = this, i = e.title || this.messages.untitledLayer;
|
|
272
273
|
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
274
|
l.preventDefault(), a.pop(), a.at(-1) && this._layerFlowItemRef.value?.setFocus();
|
|
274
275
|
}} ${_(this._layerFlowItemRef)}>${this._layerListMap.get(e)}</calcite-flow-item>`);
|
|
275
276
|
}
|
|
276
|
-
|
|
277
|
+
#$() {
|
|
277
278
|
const { _openedPanelItems: e, openedLayers: t } = this;
|
|
278
|
-
return
|
|
279
|
-
const { panel: l, title:
|
|
280
|
-
return h`<calcite-flow-item .description=${
|
|
281
|
-
n.preventDefault(),
|
|
282
|
-
}} ${_(this._panelFlowItemRef)}><arcgis-layer-list-item-panel .item=${a} .view=${this.view}></arcgis-layer-list-item-panel><calcite-button appearance=transparent @click=${
|
|
279
|
+
return S(e.toArray(), (a) => a.uid, (a, i) => {
|
|
280
|
+
const { panel: l, title: o } = a, r = () => this.#g(l);
|
|
281
|
+
return h`<calcite-flow-item .description=${o} .heading=${l.title} .headingLevel=${this.headingLevel} .selected=${!t.length && i === e.length - 1} @calciteFlowItemBack=${(n) => {
|
|
282
|
+
n.preventDefault(), r();
|
|
283
|
+
}} ${_(this._panelFlowItemRef)}><arcgis-layer-list-item-panel .item=${a} .view=${this.view}></arcgis-layer-list-item-panel><calcite-button appearance=transparent @click=${r} slot=footer-actions width=full>${this.messages.back}</calcite-button></calcite-flow-item>`;
|
|
283
284
|
});
|
|
284
285
|
}
|
|
285
|
-
|
|
286
|
-
const { collapsed: e, _visibleItems: t, _openedPanelItems: s, _filterEnabled: a, _rootGroupUid: i, showCloseButton: l, showCollapseButton:
|
|
287
|
-
h`<calcite-flow-item .closable=${l} .closed=${this.closed} .collapsed=${e} .collapsible=${
|
|
286
|
+
#C() {
|
|
287
|
+
const { collapsed: e, _visibleItems: t, _openedPanelItems: s, _filterEnabled: a, _rootGroupUid: i, showCloseButton: l, showCollapseButton: o, showHeading: r, _dragEnabled: n, filterText: d, openedLayers: g, filterPlaceholder: u, messages: f } = this, L = this.#s.selectionMode, v = [
|
|
288
|
+
h`<calcite-flow-item .closable=${l} .closed=${this.closed} .collapsed=${e} .collapsible=${o} .heading=${r ? f.componentLabel : void 0} .headingLevel=${this.headingLevel} .selected=${!g.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=${u} .filterProps=${K} .filterText=${a ? d : ""} .group=${i} .label=${f.componentLabel} @mouseleave=${this._clearActiveItem} @mouseover=${this._setActiveItem} selection-appearance=highlight .selectionMode=${L} @calciteListChange=${this.#L} @calciteListFilter=${(c) => {
|
|
288
289
|
this.filterText = c.currentTarget?.filterText ?? "", this.arcgisFilterChange.emit();
|
|
289
|
-
}} @calciteListOrderChange=${(c) => this.#
|
|
290
|
-
this
|
|
290
|
+
}} @calciteListOrderChange=${(c) => this.#y(c.detail)} @calciteListDragEnd=${(c) => this.#f(c.detail)} ${_(this._rootListRef)}>${t.toArray().map((c) => this.#E(c))}${a && !this.hideNoFilterResultsNotice ? h`<div class=${E(y.filterNoResults)} slot=filter-no-results><calcite-notice kind=info open width=full>${this.#o()}</calcite-notice></div>` : null}</calcite-list>` : this.#b()}</calcite-flow-item>`,
|
|
291
|
+
this.#$(),
|
|
291
292
|
this._renderedOpenLayerFlowItems
|
|
292
293
|
];
|
|
293
294
|
return this.closed ? null : w("root-flow", h`<calcite-flow>${v}</calcite-flow>`);
|
|
294
295
|
}
|
|
295
|
-
#
|
|
296
|
-
return w(e.uid,
|
|
296
|
+
#E(e, t, s) {
|
|
297
|
+
return w(e.uid, se({ 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.#s.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 }));
|
|
297
298
|
}
|
|
298
299
|
}
|
|
299
300
|
N("arcgis-layer-list-next", re);
|
|
@@ -733,8 +733,10 @@ export abstract class ArcgisSketch extends LitElement {
|
|
|
733
733
|
*/
|
|
734
734
|
accessor referenceElement: ArcgisReferenceElement | string | undefined;
|
|
735
735
|
/**
|
|
736
|
-
* Relative position is used to control the appearance of elements rendered by `arcgis-sketch`. If used
|
|
737
|
-
* the slots of an `arcgis-map` or `arcgis-scene` component,
|
|
736
|
+
* Relative position is used to control the appearance of elements rendered by `arcgis-sketch`. If used
|
|
737
|
+
* directly within the slots of an `arcgis-map` or `arcgis-scene` component,
|
|
738
|
+
* you do not need to manually set this value. If using custom layouts, or dynamically moving layouts between
|
|
739
|
+
* slots, prefer explicitly setting this property.
|
|
738
740
|
*
|
|
739
741
|
* Examples of elements that depend on relative position include the split button chevrons (in vertical layout), the settings
|
|
740
742
|
* popover, and tooltips.
|
|
@@ -818,8 +820,8 @@ export abstract class ArcgisSketch extends LitElement {
|
|
|
818
820
|
/**
|
|
819
821
|
* Controls the appearance of the sketch component, allowing the toolbar to adapt its appearance appropriately based on context.
|
|
820
822
|
*
|
|
821
|
-
* Set this to `docked` for use within the Expand component, or any other situation
|
|
822
|
-
* where Sketch is not floating within a
|
|
823
|
+
* Set this to `docked` for use within the Expand component, a panel, or any other situation
|
|
824
|
+
* where Sketch is not floating within a larger canvas (like a map or scene).
|
|
823
825
|
*
|
|
824
826
|
* @default "floating"
|
|
825
827
|
* @since 4.32
|