@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.
Files changed (36) hide show
  1. package/dist/cdn/{G56N6RF4.js → 2S6RQ6Q4.js} +1 -1
  2. package/dist/cdn/{FDESUDJ5.js → AIF4MCBB.js} +1 -1
  3. package/dist/cdn/CNJSDHZI.js +2 -0
  4. package/dist/cdn/{SDLZ4BNM.js → EVWWTIEQ.js} +1 -1
  5. package/dist/cdn/FRX4ZT35.js +2 -0
  6. package/dist/cdn/IQGL3AGV.js +2 -0
  7. package/dist/cdn/MW27GSDX.js +2 -0
  8. package/dist/cdn/{4LNXCEM5.js → NORQIOSX.js} +1 -1
  9. package/dist/cdn/PFMWLSWQ.js +2 -0
  10. package/dist/cdn/{WTAAQHO3.js → TM4FFRX5.js} +1 -1
  11. package/dist/cdn/index.js +1 -1
  12. package/dist/components/arcgis-basemap-layer-list-next/customElement.js +88 -86
  13. package/dist/components/arcgis-daylight/customElement.js +2 -1
  14. package/dist/components/arcgis-layer-list-item-indicator/customElement.js +2 -2
  15. package/dist/components/arcgis-layer-list-item-panel/customElement.js +9 -9
  16. package/dist/components/arcgis-layer-list-next/customElement.js +97 -95
  17. package/dist/components/arcgis-oriented-imagery-viewer/customElement.js +5 -5
  18. package/dist/components/arcgis-sketch/customElement.d.ts +308 -30
  19. package/dist/components/arcgis-sketch/customElement.js +47 -20
  20. package/dist/components/arcgis-table-list-next/customElement.js +55 -54
  21. package/dist/components/arcgis-time-slider/customElement.d.ts +2 -2
  22. package/dist/docs/api.json +1 -1
  23. package/dist/docs/docs.json +1 -1
  24. package/dist/docs/vscode.html-custom-data.json +1 -1
  25. package/dist/docs/web-types.json +1 -1
  26. package/dist/loader.js +1 -1
  27. package/dist/types/lumina.d.ts +1 -1
  28. package/dist/types/preact.d.ts +1 -1
  29. package/dist/types/react.d.ts +1 -1
  30. package/dist/types/stencil.d.ts +1 -1
  31. package/package.json +6 -6
  32. package/dist/cdn/ED2T4ASN.js +0 -2
  33. package/dist/cdn/MBLS5ES4.js +0 -2
  34. package/dist/cdn/PHVKEWZ7.js +0 -2
  35. package/dist/cdn/QKGJVGXJ.js +0 -2
  36. package/dist/cdn/UPCWZNTA.js +0 -2
@@ -1,12 +1,12 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
2
  import { c as O } from "../../chunks/runtime.js";
3
- import { css as x, html as l } from "lit";
3
+ import { css as D, html as r } from "lit";
4
4
  import { keyed as d } from "lit/directives/keyed.js";
5
5
  import { repeat as k } from "lit/directives/repeat.js";
6
6
  import N from "@arcgis/core/layerList/BasemapLayerListModel.js";
7
- import y from "@arcgis/core/core/Collection.js";
7
+ import L from "@arcgis/core/core/Collection.js";
8
8
  import { on as S, watch as U } from "@arcgis/core/core/reactiveUtils.js";
9
- import { LitElement as G, createEvent as L, renderElement as $, safeClassMap as f, nothing as I } from "@arcgis/lumina";
9
+ import { LitElement as G, createEvent as b, renderElement as $, safeClassMap as f, nothing as y } from "@arcgis/lumina";
10
10
  import { usePropertyChange as H } from "@arcgis/lumina/controllers";
11
11
  import { reEmitEvent as V } from "@arcgis/lumina-toolkit/reEmitEvent";
12
12
  import { classes as q } from "@arcgis/toolkit/dom";
@@ -15,7 +15,7 @@ import { createRef as m, ref as u } from "lit/directives/ref.js";
15
15
  import { u as z } from "../../chunks/useCloseEvent.js";
16
16
  import { u as J } from "../../chunks/useT9n.js";
17
17
  import { m as K } from "../../chunks/useViewModel.js";
18
- import { g as b } from "../../chunks/globalCss.js";
18
+ import { g as _ } from "../../chunks/globalCss.js";
19
19
  import { g as h, a as F, b as Q, r as W, s as T, c as X, d as Y, e as Z } from "../../chunks/layer-list-utils.js";
20
20
  import { ArcgisLayerListItem as ee } from "../arcgis-layer-list-next/layer-list-item/customElement.js";
21
21
  import { s as te, a as se } from "../../chunks/layer-list-next.js";
@@ -28,15 +28,15 @@ const p = {
28
28
  section: "section",
29
29
  editing: "editing",
30
30
  editingForm: "editing-form"
31
- }, re = x`:host{--arcgis-layer-list-visibility-icon: hidden}.editing-form{display:flex;height:100%;flex:1}.editing{padding-block:var(--calcite-spacing-sm);padding-inline:var(--calcite-spacing-sm)}`, C = "nested", le = ".*\\S+.*", E = "data-basemap-layer-type", oe = K(N);
31
+ }, le = D`:host{--arcgis-layer-list-visibility-icon: hidden}.editing-form{display:flex;height:100%;flex:1}.editing{padding-block:var(--calcite-spacing-sm);padding-inline:var(--calcite-spacing-sm)}`, E = "nested", re = ".*\\S+.*", M = "data-basemap-layer-type", oe = K(N);
32
32
  class ne extends G {
33
33
  constructor() {
34
- super(...arguments), this._baseListRef = m(), this._referenceListRef = m(), this._editTitleInputRef = m(), this._layerFlowItemRef = m(), this._panelFlowItemRef = m(), this._rootFlowItemRef = m(), this._editingFlowItemRef = m(), this._lastDragDetail = null, this._selectedDragItemLayerUid = null, this._rootGroupUid = `basemap-${j()}`, this._openedLayersController = null, this._focusRootFlowItem = !1, this._focusPanelFlowItem = !1, this._focusLayerFlowItem = null, this._focusEditingFlowItem = !1, this.messages = J(), this.viewModel = oe(this), this.arcgisClose = z(this), this._canMove = ({ dragEl: e, fromEl: t, toEl: s }, i) => {
34
+ super(...arguments), this._baseListRef = m(), this._referenceListRef = m(), this._editTitleInputRef = m(), this._layerFlowItemRef = m(), this._panelFlowItemRef = m(), this._rootFlowItemRef = m(), this._editingFlowItemRef = m(), this.#t = null, this._selectedDragItemLayerUid = null, this._rootGroupUid = `basemap-${j()}`, this.#s = null, this._focusRootFlowItem = !1, this._focusPanelFlowItem = !1, this._focusLayerFlowItem = null, this._focusEditingFlowItem = !1, this.messages = J(), this.viewModel = oe(this), this.arcgisClose = z(this), this._canMove = ({ dragEl: e, fromEl: t, toEl: s }, i) => {
35
35
  const a = i === "pull" ? this.listItemCanGiveFunction : this.listItemCanReceiveFunction, o = h(e, this._allItems);
36
36
  if (!o?.sortable)
37
37
  return !1;
38
- const r = h(t, this._allItems), n = F(t), c = h(s, this._allItems), g = F(s), _ = !!n && !!g && n === g, R = { selected: o, from: r, to: c }, A = t.group, P = s.group, B = r?.layer?.type ?? "", D = c?.layer?.type ?? "", v = /* @__PURE__ */ new Set(["map-image", "catalog", "knowledge-graph"]);
39
- return A && P && typeof a == "function" ? a(R) : _ && !v.has(B) && !v.has(D) && o.layer?.type !== "sublayer";
38
+ const l = h(t, this._allItems), n = F(t), c = h(s, this._allItems), g = F(s), I = !!n && !!g && n === g, R = { selected: o, from: l, to: c }, A = t.group, P = s.group, B = l?.layer?.type ?? "", x = c?.layer?.type ?? "", w = /* @__PURE__ */ new Set(["map-image", "catalog", "knowledge-graph"]);
39
+ return A && P && typeof a == "function" ? a(R) : I && !w.has(B) && !w.has(x) && o.layer?.type !== "sublayer";
40
40
  }, this._onTriggerAction = (e, t) => {
41
41
  this.triggerAction(e, t);
42
42
  }, this._onTooltipReferenceChange = (e, t) => {
@@ -65,14 +65,16 @@ class ne extends G {
65
65
  e.preventDefault();
66
66
  const t = this._editTitleInputRef.value?.value;
67
67
  t?.trim() && (this.basemapTitle = t), this._toggleEditingTitle();
68
- }, this._activeItem = null, this._tooltipReferenceMap = /* @__PURE__ */ new Map(), this._layerListMap = /* @__PURE__ */ new Map(), this.openedLayerLists = new y(), this.autoDestroyDisabled = !1, this.baseFilterText = "", this.baseItemCreatedFunction = this.viewModel.baseItemCreatedFunction, this.basemapTitle = this.viewModel.basemapTitle, this.closed = !1, this.collapsed = !1, this.dragEnabled = !1, this.editingTitle = !1, this.filterPlaceholder = "", this.headingLevel = 2, this.hideBaseLayers = !1, this.hideCatalogLayerList = !1, this.hideHeading = !1, this.hideNoFilterResultsNotice = !1, this.hideNoItemsNotice = !1, this.hideReferenceLayers = !1, this.hideStatusIndicators = !1, this.icon = "layers", this.layerTablesEnabled = new y(["knowledge-graph"]), this.listModeDisabled = this.viewModel.listModeDisabled, this.minFilterItems = Q, this.openedLayers = new y(), this.referenceFilterText = "", this.referenceItemCreatedFunction = this.viewModel.referenceItemCreatedFunction, this.selectedItems = new y(), this.selectionMode = "none", this.showCloseButton = !1, this.showCollapseButton = !1, this.showEditTitleButton = !1, this.showErrors = !1, this.showFilter = !1, this.showTemporaryLayerIndicators = !1, this.state = this.viewModel.state, this.view = this.viewModel.view, this.visibilityAppearance = "default", this.arcgisBaseFilterChange = L(), this.arcgisOpenedLayersChange = L(), this.arcgisPropertyChange = H()("state"), this.arcgisReady = L(), this.arcgisReferenceFilterChange = L(), this.arcgisTriggerAction = V(() => this.viewModel, "trigger-action");
68
+ }, this._activeItem = null, this._tooltipReferenceMap = /* @__PURE__ */ new Map(), this._layerListMap = /* @__PURE__ */ new Map(), this.openedLayerLists = new L(), this.autoDestroyDisabled = !1, this.baseFilterText = "", this.baseItemCreatedFunction = this.viewModel.baseItemCreatedFunction, this.basemapTitle = this.viewModel.basemapTitle, this.closed = !1, this.collapsed = !1, this.dragEnabled = !1, this.editingTitle = !1, this.filterPlaceholder = "", this.headingLevel = 2, this.hideBaseLayers = !1, this.hideCatalogLayerList = !1, this.hideHeading = !1, this.hideNoFilterResultsNotice = !1, this.hideNoItemsNotice = !1, this.hideReferenceLayers = !1, this.hideStatusIndicators = !1, this.icon = "layers", this.layerTablesEnabled = new L(["knowledge-graph"]), this.listModeDisabled = this.viewModel.listModeDisabled, this.minFilterItems = Q, this.openedLayers = new L(), this.referenceFilterText = "", this.referenceItemCreatedFunction = this.viewModel.referenceItemCreatedFunction, this.selectedItems = new L(), this.selectionMode = "none", this.showCloseButton = !1, this.showCollapseButton = !1, this.showEditTitleButton = !1, this.showErrors = !1, this.showFilter = !1, this.showTemporaryLayerIndicators = !1, this.state = this.viewModel.state, this.view = this.viewModel.view, this.visibilityAppearance = "default", this.arcgisBaseFilterChange = b(), this.arcgisOpenedLayersChange = b(), this.arcgisPropertyChange = H()("state"), this.arcgisReady = b(), this.arcgisReferenceFilterChange = b(), this.arcgisTriggerAction = V(() => this.viewModel, "trigger-action");
69
69
  }
70
70
  static {
71
71
  this.properties = { _activeItem: 16, _catalogLayerList: 16, _tableList: 16, _tooltipReferenceMap: 16, _layerListMap: 16, openedLayerLists: 16, _allItems: 16, _visibleBaseItems: 16, _visibleReferenceItems: 16, _openedPanelItems: 16, _totalBaseItems: 16, _totalReferenceItems: 16, _baseFilterEnabled: 16, _referenceFilterEnabled: 16, _renderedOpenLayerFlowItems: 16, autoDestroyDisabled: 5, baseFilterPredicate: 0, baseFilterText: 1, baseItemCreatedFunction: 0, baseItems: 32, basemapTitle: 1, catalogLayerList: 32, catalogOptions: 0, closed: 5, collapsed: 7, dragEnabled: 5, editingTitle: 5, filterPlaceholder: 1, headingLevel: 9, hideBaseLayers: 5, hideCatalogLayerList: 5, hideHeading: 5, hideNoFilterResultsNotice: 5, hideNoItemsNotice: 5, hideReferenceLayers: 5, hideStatusIndicators: 5, icon: 1, knowledgeGraphOptions: 0, label: 1, layerTablesEnabled: 0, listItemCanGiveFunction: 0, listItemCanReceiveFunction: 0, listModeDisabled: 5, mapImageOptions: 0, messageOverrides: 0, minFilterItems: 9, openedLayers: 32, referenceElement: 1, referenceFilterPredicate: 0, referenceFilterText: 1, referenceItems: 32, referenceItemCreatedFunction: 0, selectedItems: 0, selectionMode: 1, showCloseButton: 5, showCollapseButton: 5, showEditTitleButton: 5, showErrors: 5, showFilter: 5, showTemporaryLayerIndicators: 5, state: 32, tableList: 32, tileOptions: 0, view: 0, visibilityAppearance: 1 };
72
72
  }
73
73
  static {
74
- this.styles = [te, re, se];
74
+ this.styles = [te, le, se];
75
75
  }
76
+ #t;
77
+ #s;
76
78
  get _allItems() {
77
79
  return this.referenceItems.concat(this.baseItems);
78
80
  }
@@ -98,7 +100,7 @@ class ne extends G {
98
100
  return this._totalReferenceItems >= this.minFilterItems && this.showFilter;
99
101
  }
100
102
  get _renderedOpenLayerFlowItems() {
101
- return this.openedLayers.toArray().map((e, t) => this._renderLayerFlowItem(e, t === this.openedLayers.length - 1));
103
+ return this.openedLayers.toArray().map((e, t) => this.#w(e, t === this.openedLayers.length - 1));
102
104
  }
103
105
  get baseItems() {
104
106
  return this.viewModel.baseItems;
@@ -113,12 +115,12 @@ class ne extends G {
113
115
  return this._tableList;
114
116
  }
115
117
  async destroy() {
116
- await this.manager.destroy(), this._destroyOpenedLayerLists(), this._tooltipReferenceMap.clear();
118
+ await this.manager.destroy(), this.#n(), this._tooltipReferenceMap.clear();
117
119
  }
118
120
  loaded() {
119
121
  this.manager.onLifecycle(() => [
120
122
  S(() => this.openedLayers, "change", () => {
121
- this._handleOpenedLayersChange();
123
+ this.#o();
122
124
  }, { initial: !0 }),
123
125
  U(() => [this.viewModel.referenceItems.toArray(), this.viewModel.baseItems.toArray()], () => W(this.selectedItems), { initial: !0 })
124
126
  ]);
@@ -129,35 +131,35 @@ class ne extends G {
129
131
  triggerAction(e, t) {
130
132
  this.viewModel.triggerAction(e, t);
131
133
  }
132
- async _createFlowList(e, t) {
134
+ async #r(e, t) {
133
135
  const s = this._layerListMap.get(e);
134
136
  if (s)
135
137
  return s;
136
- const i = e.type === "catalog" ? await this._createCatalogLayerList(e) : await this._createTableList(e);
138
+ const i = e.type === "catalog" ? await this.#c(e) : await this._createTableList(e);
137
139
  return t.aborted || this._layerListMap.set(e, i), i;
138
140
  }
139
- async _handleOpenedLayersChange() {
141
+ async #o() {
140
142
  const { _layerListMap: e, openedLayers: t, openedLayerLists: s } = this;
141
- this._openedLayersController?.abort();
143
+ this.#s?.abort();
142
144
  const i = new AbortController(), { signal: a } = i;
143
- this._openedLayersController = i, e.forEach((n, c) => {
145
+ this.#s = i, e.forEach((n, c) => {
144
146
  t.includes(c) || (n?.destroy?.(), e.delete(c));
145
147
  });
146
- const o = await Promise.all(t.map((n) => this._createFlowList(n, a)));
148
+ const o = await Promise.all(t.map((n) => this.#r(n, a)));
147
149
  if (a.aborted)
148
150
  return;
149
151
  s.removeAll(), s.addMany(o);
150
- const r = s.at(-1);
151
- 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();
152
+ const l = s.at(-1);
153
+ l ? "catalogLayer" in l ? (this._catalogLayerList = l, this._tableList = void 0) : (this._catalogLayerList = void 0, this._tableList = l) : (this._catalogLayerList = void 0, this._tableList = void 0), this.arcgisOpenedLayersChange.emit();
152
154
  }
153
- _destroyOpenedLayerLists() {
155
+ #n() {
154
156
  this.openedLayerLists.destroyAll(), this.openedLayers.removeAll(), this._layerListMap.clear();
155
157
  }
156
- async _createCatalogLayerList(e) {
157
- const { headingLevel: t, catalogOptions: s, filterPlaceholder: i, minFilterItems: a, selectionMode: o, visibilityAppearance: r, layerTablesEnabled: n } = this;
158
- return $(l`<arcgis-catalog-layer-list-next .headingLevel=${t} .filterPlaceholder=${s?.filterPlaceholder ?? i} .listItemCreatedFunction=${s?.listItemCreatedFunction} .minFilterItems=${s?.minFilterItems ?? a} .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} @arcgisReady=${(c) => c.stopPropagation()} .catalogLayer=${e} .layerTablesEnabled=${n} .view=${this.view} .referenceElement=${this.referenceElement} @catalogOpen=${this._onCatalogOpen} @tablesOpen=${this._onTablesOpen}></arcgis-catalog-layer-list-next>`);
158
+ async #c(e) {
159
+ const { headingLevel: t, catalogOptions: s, filterPlaceholder: i, minFilterItems: a, selectionMode: o, visibilityAppearance: l, layerTablesEnabled: n } = this;
160
+ return $(r`<arcgis-catalog-layer-list-next .headingLevel=${t} .filterPlaceholder=${s?.filterPlaceholder ?? i} .listItemCreatedFunction=${s?.listItemCreatedFunction} .minFilterItems=${s?.minFilterItems ?? a} .selectionMode=${s?.selectionMode ?? o} .visibilityAppearance=${s?.visibilityAppearance ?? l} .showErrors=${s?.showErrors ?? this.showErrors} .showFilter=${s?.showFilter ?? this.showFilter} .hideStatusIndicators=${s?.hideStatusIndicators ?? this.hideStatusIndicators} .showTemporaryLayerIndicators=${s?.showTemporaryLayerIndicators ?? this.showTemporaryLayerIndicators} @arcgisReady=${(c) => c.stopPropagation()} .catalogLayer=${e} .layerTablesEnabled=${n} .view=${this.view} .referenceElement=${this.referenceElement} @catalogOpen=${this._onCatalogOpen} @tablesOpen=${this._onTablesOpen}></arcgis-catalog-layer-list-next>`);
159
161
  }
160
- _getTableListParams(e) {
162
+ #h(e) {
161
163
  switch (e.type) {
162
164
  case "knowledge-graph":
163
165
  return { ...this.knowledgeGraphOptions, tables: e.tables };
@@ -170,24 +172,24 @@ class ne extends G {
170
172
  }
171
173
  }
172
174
  async _createTableList(e) {
173
- const t = this._getTableListParams(e);
174
- return $(l`<arcgis-table-list-next .headingLevel=${t?.headingLevel ?? this.headingLevel} .selectionMode=${t?.selectionMode ?? this.selectionMode} .dragEnabled=${t?.dragEnabled ?? this.dragEnabled} .collapsed=${t?.collapsed} .filterPlaceholder=${t?.filterPlaceholder} .filterText=${t?.filterText} .icon=${t?.icon ?? void 0} .label=${t?.label ?? void 0} .listItemCreatedFunction=${t?.listItemCreatedFunction} .tables=${t?.tables} .referenceElement=${this.referenceElement} @arcgisReady=${(s) => s.stopPropagation()}></arcgis-table-list-next>`);
175
+ const t = this.#h(e);
176
+ return $(r`<arcgis-table-list-next .headingLevel=${t?.headingLevel ?? this.headingLevel} .selectionMode=${t?.selectionMode ?? this.selectionMode} .dragEnabled=${t?.dragEnabled ?? this.dragEnabled} .collapsed=${t?.collapsed} .filterPlaceholder=${t?.filterPlaceholder} .filterText=${t?.filterText} .icon=${t?.icon ?? void 0} .label=${t?.label ?? void 0} .listItemCreatedFunction=${t?.listItemCreatedFunction} .tables=${t?.tables} .referenceElement=${this.referenceElement} @arcgisReady=${(s) => s.stopPropagation()}></arcgis-table-list-next>`);
175
177
  }
176
- _handlePanelFlowItemBack(e) {
178
+ #d(e) {
177
179
  e.open = !1, this._focusRootFlowItem = !0;
178
180
  }
179
- _moveLayerFromChildList({ toEl: e, fromEl: t, dragEl: s, newIndex: i }) {
180
- const a = h(s, this._allItems), o = e.hasAttribute("data-item") ? h(e, this._allItems) : null, r = t.hasAttribute("data-item") ? h(t, this._allItems) : null, n = M(t), c = M(e);
181
+ #m({ toEl: e, fromEl: t, dragEl: s, newIndex: i }) {
182
+ const a = h(s, this._allItems), o = e.hasAttribute("data-item") ? h(e, this._allItems) : null, l = t.hasAttribute("data-item") ? h(t, this._allItems) : null, n = C(t), c = C(e);
181
183
  i == null || !a || !n || !c || (this.viewModel.moveItem({
182
184
  targetItem: a,
183
- fromParentItem: r,
185
+ fromParentItem: l,
184
186
  toParentItem: o,
185
187
  newIndex: i,
186
188
  from: n,
187
189
  to: c
188
190
  }), ie(this, a.uid, (g) => g.parentElement?.closest("calcite-list") === e));
189
191
  }
190
- _handleCalciteListDragEnd(e) {
192
+ #p(e) {
191
193
  const { fromEl: t, toEl: s, dragEl: i, oldIndex: a } = e;
192
194
  if (t !== s) {
193
195
  i.remove();
@@ -196,17 +198,17 @@ class ne extends G {
196
198
  a == null || !t || !i || t.insertBefore(i, t.children[a]);
197
199
  }
198
200
  _onCalciteListOrderChange(e) {
199
- const { _lastDragDetail: t } = this, { toEl: s, fromEl: i, dragEl: a, newIndex: o } = e, r = t?.newIndex === o && t?.dragEl === a && t?.toEl === s && t?.fromEl === i;
200
- if (!i || !s || r)
201
+ const t = this.#t, { toEl: s, fromEl: i, dragEl: a, newIndex: o } = e, l = t?.newIndex === o && t?.dragEl === a && t?.toEl === s && t?.fromEl === i;
202
+ if (!i || !s || l)
201
203
  return;
202
- this._lastDragDetail = e, this._selectedDragItemLayerUid = a.value.layer?.uid ?? null;
204
+ this.#t = e, this._selectedDragItemLayerUid = a.value.layer?.uid ?? null;
203
205
  const n = i, c = s;
204
206
  if (n === c) {
205
- const g = Array.from(i.children).filter((_) => _?.matches("calcite-list-item")).map((_) => _.value.layer?.uid ?? "");
207
+ const g = Array.from(i.children).filter((I) => I?.matches("calcite-list-item")).map((I) => I.value.layer?.uid ?? "");
206
208
  this._sortLayers(n, g);
207
209
  return;
208
210
  }
209
- this._moveLayerFromChildList({ toEl: c, fromEl: n, dragEl: a, newIndex: o });
211
+ this.#m({ toEl: c, fromEl: n, dragEl: a, newIndex: o });
210
212
  }
211
213
  _sortLayers(e, t) {
212
214
  if (e === this._referenceListRef.value || e === this._baseListRef.value) {
@@ -217,99 +219,99 @@ class ne extends G {
217
219
  const s = h(e, this._allItems);
218
220
  s && Y(s, t);
219
221
  }
220
- _handleCalciteListChange(e) {
222
+ #g(e) {
221
223
  if (this.selectionMode === "none")
222
224
  return;
223
225
  const t = e.target.selectedItems.map((s) => h(s, this._allItems)).filter(Boolean);
224
226
  this.selectedItems.removeAll(), this.selectedItems.addMany(t);
225
227
  }
226
- _focusFlowItem(e, t) {
228
+ #e(e, t) {
227
229
  return !t || !e ? t : (e.setFocus(), !1);
228
230
  }
229
231
  render() {
230
232
  const e = {
231
- [b.hidden]: this.state === "loading",
232
- [b.disabled]: this.state === "disabled"
233
+ [_.hidden]: this.state === "loading",
234
+ [_.disabled]: this.state === "disabled"
233
235
  };
234
- return l`<div class=${f(q(b.widget, b.panel, e))}>${this._renderItems()}${this._renderItemTooltips()}</div>`;
236
+ return r`<div class=${f(q(_.widget, _.panel, e))}>${this.#_()}${this.#u()}</div>`;
235
237
  }
236
- _renderItemTooltip(e) {
237
- return e ? l`<calcite-tooltip overlay-positioning=fixed .referenceElement=${this._tooltipReferenceMap.get(e.layer?.uid ?? "")}>${this.messages.layerIncompatibleTooltip}</calcite-tooltip>` : null;
238
+ #f(e) {
239
+ return e ? r`<calcite-tooltip overlay-positioning=fixed .referenceElement=${this._tooltipReferenceMap.get(e.layer?.uid ?? "")}>${this.messages.layerIncompatibleTooltip}</calcite-tooltip>` : null;
238
240
  }
239
- _renderItemTooltipNodes(e) {
241
+ #i(e) {
240
242
  if (e.incompatible)
241
- return this._renderItemTooltip(e);
242
- const t = e.children?.filter((s) => !s.hidden).toArray().map((s) => this._renderItemTooltipNodes(s));
243
+ return this.#f(e);
244
+ const t = e.children?.filter((s) => !s.hidden).toArray().map((s) => this.#i(s));
243
245
  return t?.length ? t : null;
244
246
  }
245
- _renderItemTooltips() {
246
- return this._visibleReferenceItems.concat(this._visibleBaseItems).toArray().map((e) => this._renderItemTooltipNodes(e));
247
+ #u() {
248
+ return this._visibleReferenceItems.concat(this._visibleBaseItems).toArray().map((e) => this.#i(e));
247
249
  }
248
- _renderNoLayersInfoMessage(e) {
249
- return l`<div slot=message>${e}</div>`;
250
+ #a(e) {
251
+ return r`<div slot=message>${e}</div>`;
250
252
  }
251
- _renderNoLayersInfo(e, t) {
252
- return this.hideNoItemsNotice ? null : l`<div class=${f(p.itemMessage)}>${d(t, l`<calcite-notice icon=information kind=info open width=full>${this._renderNoLayersInfoMessage(e)}</calcite-notice>`)}</div>`;
253
+ #I(e, t) {
254
+ return this.hideNoItemsNotice ? null : r`<div class=${f(p.itemMessage)}>${d(t, r`<calcite-notice icon=information kind=info open width=full>${this.#a(e)}</calcite-notice>`)}</div>`;
253
255
  }
254
- _renderEditingInput() {
255
- return l`<div class=${f(p.editing)}><calcite-label>${this.messages.basemapTitle}<calcite-input .label=${this.messages.basemapTitle} name=basemaptitle .pattern=${le} .placeholder=${this.messages.basemapTitle} required title=${this.messages.basemapTitle ?? I} type=text .value=${this.viewModel.basemapTitle ?? void 0} ${u(this._editTitleInputRef)}></calcite-input></calcite-label></div>`;
256
+ #y() {
257
+ return r`<div class=${f(p.editing)}><calcite-label>${this.messages.basemapTitle}<calcite-input .label=${this.messages.basemapTitle} name=basemaptitle .pattern=${re} .placeholder=${this.messages.basemapTitle} required title=${this.messages.basemapTitle ?? y} type=text .value=${this.viewModel.basemapTitle ?? void 0} ${u(this._editTitleInputRef)}></calcite-input></calcite-label></div>`;
256
258
  }
257
- _renderEditingForm() {
258
- return this.editingTitle ? l`<calcite-flow-item .heading=${this.hideHeading ? void 0 : this.messages.basemapTitle} .headingLevel=${this.headingLevel} .selected=${!this.openedLayers.length && !this._openedPanelItems.length} @calciteFlowItemBack=${(e) => {
259
+ #L() {
260
+ return this.editingTitle ? r`<calcite-flow-item .heading=${this.hideHeading ? void 0 : this.messages.basemapTitle} .headingLevel=${this.headingLevel} .selected=${!this.openedLayers.length && !this._openedPanelItems.length} @calciteFlowItemBack=${(e) => {
259
261
  e.preventDefault(), this._toggleEditingTitle();
260
- }} ${u(this._editingFlowItemRef)}>${this._renderEditingInput()}<calcite-button appearance=outline @click=${this._toggleEditingTitle} slot=footer-actions width=full>${this.messages.cancel}</calcite-button><calcite-button slot=footer-actions type=submit width=full>${this.messages.ok}</calcite-button></calcite-flow-item>` : null;
262
+ }} ${u(this._editingFlowItemRef)}>${this.#y()}<calcite-button appearance=outline @click=${this._toggleEditingTitle} slot=footer-actions width=full>${this.messages.cancel}</calcite-button><calcite-button slot=footer-actions type=submit width=full>${this.messages.ok}</calcite-button></calcite-flow-item>` : null;
261
263
  }
262
- _renderEditTitleButton() {
263
- return this.showEditTitleButton && !this.editingTitle ? l`<calcite-action icon=pencil @click=${this._toggleEditingTitle} slot=header-actions-end .text=${this.messages.edit ?? ""} title=${this.messages.edit ?? I}></calcite-action>` : null;
264
+ #b() {
265
+ return this.showEditTitleButton && !this.editingTitle ? r`<calcite-action icon=pencil @click=${this._toggleEditingTitle} slot=header-actions-end .text=${this.messages.edit ?? ""} title=${this.messages.edit ?? y}></calcite-action>` : null;
264
266
  }
265
- _renderItems() {
267
+ #_() {
266
268
  const e = [
267
- d("root-flow-item", l`<calcite-flow-item .closable=${this.showCloseButton} .closed=${this.closed} .collapsed=${this.collapsed} .collapsible=${this.showCollapseButton} .heading=${this.hideHeading ? void 0 : this.viewModel.basemapTitle ?? this.messages.componentLabel} .headingLevel=${this.headingLevel} .selected=${!this.editingTitle && !this.openedLayers.length && !this._openedPanelItems.length} @calciteFlowItemClose=${() => {
269
+ d("root-flow-item", r`<calcite-flow-item .closable=${this.showCloseButton} .closed=${this.closed} .collapsed=${this.collapsed} .collapsible=${this.showCollapseButton} .heading=${this.hideHeading ? void 0 : this.viewModel.basemapTitle ?? this.messages.componentLabel} .headingLevel=${this.headingLevel} .selected=${!this.editingTitle && !this.openedLayers.length && !this._openedPanelItems.length} @calciteFlowItemClose=${() => {
268
270
  this.closed = !0;
269
- }} ${u(this._rootFlowItemRef)}>${this._renderEditTitleButton()}${this._renderReferenceSection()}${this._renderBaseSection()}</calcite-flow-item>`),
270
- this._renderEditingForm(),
271
- this._renderPanelFlowItems(),
271
+ }} ${u(this._rootFlowItemRef)}>${this.#b()}${this.#F()}${this.#$()}</calcite-flow-item>`),
272
+ this.#L(),
273
+ this.#v(),
272
274
  this._renderedOpenLayerFlowItems
273
275
  ];
274
- this._focusRootFlowItem = this._focusFlowItem(this._rootFlowItemRef.value, this._focusRootFlowItem), this._focusEditingFlowItem = this._focusFlowItem(this._editingFlowItemRef.value, this._focusEditingFlowItem);
275
- const t = d("root-flow", l`<calcite-flow>${e}</calcite-flow>`);
276
- return this.closed ? null : this.editingTitle ? l`<form class=${f(p.editingForm)} @submit=${this._formSubmit}>${t}</form>` : t;
276
+ this._focusRootFlowItem = this.#e(this._rootFlowItemRef.value, this._focusRootFlowItem), this._focusEditingFlowItem = this.#e(this._editingFlowItemRef.value, this._focusEditingFlowItem);
277
+ const t = d("root-flow", r`<calcite-flow>${e}</calcite-flow>`);
278
+ return this.closed ? null : this.editingTitle ? r`<form class=${f(p.editingForm)} @submit=${this._formSubmit}>${t}</form>` : t;
277
279
  }
278
- _renderPanelFlowItems() {
280
+ #v() {
279
281
  return k(this._openedPanelItems.toArray(), (e) => e.uid, (e, t) => {
280
- const { panel: s, title: i } = e, a = () => this._handlePanelFlowItemBack(s);
281
- return this._focusPanelFlowItem = this._focusFlowItem(this._panelFlowItemRef.value, this._focusPanelFlowItem), l`<calcite-flow-item .description=${i} .heading=${s.title} .headingLevel=${this.headingLevel} .selected=${!this.openedLayers.length && t === this._openedPanelItems.length - 1} @calciteFlowItemBack=${(o) => {
282
+ const { panel: s, title: i } = e, a = () => this.#d(s);
283
+ return this._focusPanelFlowItem = this.#e(this._panelFlowItemRef.value, this._focusPanelFlowItem), r`<calcite-flow-item .description=${i} .heading=${s.title} .headingLevel=${this.headingLevel} .selected=${!this.openedLayers.length && t === this._openedPanelItems.length - 1} @calciteFlowItemBack=${(o) => {
282
284
  o.preventDefault(), a();
283
285
  }} ${u(this._panelFlowItemRef)}><arcgis-layer-list-item-panel .item=${e} .view=${this.view}></arcgis-layer-list-item-panel><calcite-button appearance=transparent @click=${a} slot=footer-actions width=full>${this.messages.back}</calcite-button></calcite-flow-item>`;
284
286
  });
285
287
  }
286
- _renderLayerFlowItem(e, t) {
288
+ #w(e, t) {
287
289
  const s = e.title || this.messages.untitledLayer;
288
- return this._focusLayerFlowItem === e.uid && (this._focusLayerFlowItem = this._focusFlowItem(this._layerFlowItemRef.value, !0) ? e.uid : null), d(e.uid, l`<calcite-flow-item data-layer-uid=${e.uid ?? I} .description=${s} .heading=${this.messages[e.type === "catalog" ? "catalogLayers" : "tables"]} .headingLevel=${this.headingLevel} .selected=${t} @calciteFlowItemBack=${(i) => {
290
+ return this._focusLayerFlowItem === e.uid && (this._focusLayerFlowItem = this.#e(this._layerFlowItemRef.value, !0) ? e.uid : null), d(e.uid, r`<calcite-flow-item data-layer-uid=${e.uid ?? y} .description=${s} .heading=${this.messages[e.type === "catalog" ? "catalogLayers" : "tables"]} .headingLevel=${this.headingLevel} .selected=${t} @calciteFlowItemBack=${(i) => {
289
291
  i.preventDefault(), this.openedLayers.pop();
290
292
  const a = this.openedLayers.at(-1);
291
293
  a ? this._focusLayerFlowItem = a.uid : this._focusRootFlowItem = !0;
292
294
  }} ${u(this._layerFlowItemRef)}>${this._layerListMap.get(e)}</calcite-flow-item>`);
293
295
  }
294
- _renderList(e, t, s) {
296
+ #l(e, t, s) {
295
297
  const i = t === "reference" ? this._referenceFilterEnabled : this._baseFilterEnabled, a = t === "reference" ? this.referenceFilterText : this.baseFilterText, o = (t === "reference" ? this.messages.noReferenceLayers : this.messages.noBaseLayers) ?? this.messages.noItemsToDisplay ?? "";
296
- return d(`block-${t}`, l`<calcite-block class=${f(p.section)} expandable expanded .heading=${t === "reference" ? this.messages.referenceHeading : this.messages.baseHeading} .headingLevel=${this.headingLevel + 1}>${e?.length ? null : this._renderNoLayersInfo(o, t)}${d(`list-${t}`, l`<calcite-list @focusin=${this._setActiveItem} @focusout=${this._clearActiveItem} .canPull=${(r) => this._canMove(r, "pull")} .canPut=${(r) => this._canMove(r, "put")} data-basemap-layer-type=${t ?? I} data-layer-type=${this._rootGroupUid ?? I} .displayMode=${C} .dragEnabled=${this.dragEnabled} .filterEnabled=${i} .filterPlaceholder=${this.filterPlaceholder} .filterProps=${Z} .filterText=${i ? a : ""} .group=${this._rootGroupUid} .label=${this.messages.componentLabel ?? ""} @mouseleave=${this._clearActiveItem} @mouseover=${this._setActiveItem} selection-appearance=border .selectionMode=${this.selectionMode} @calciteListChange=${this._handleCalciteListChange} @calciteListDragEnd=${(r) => this._handleCalciteListDragEnd(r.detail)} @calciteListFilter=${(r) => {
297
- const n = r.currentTarget?.filterText ?? "";
298
+ return d(`block-${t}`, r`<calcite-block class=${f(p.section)} expandable expanded .heading=${t === "reference" ? this.messages.referenceHeading : this.messages.baseHeading} .headingLevel=${this.headingLevel + 1}>${e?.length ? null : this.#I(o, t)}${d(`list-${t}`, r`<calcite-list @focusin=${this._setActiveItem} @focusout=${this._clearActiveItem} .canPull=${(l) => this._canMove(l, "pull")} .canPut=${(l) => this._canMove(l, "put")} data-basemap-layer-type=${t ?? y} data-layer-type=${this._rootGroupUid ?? y} .displayMode=${E} .dragEnabled=${this.dragEnabled} .filterEnabled=${i} .filterPlaceholder=${this.filterPlaceholder} .filterProps=${Z} .filterText=${i ? a : ""} .group=${this._rootGroupUid} .label=${this.messages.componentLabel ?? ""} @mouseleave=${this._clearActiveItem} @mouseover=${this._setActiveItem} selection-appearance=border .selectionMode=${this.selectionMode} @calciteListChange=${this.#g} @calciteListDragEnd=${(l) => this.#p(l.detail)} @calciteListFilter=${(l) => {
299
+ const n = l.currentTarget?.filterText ?? "";
298
300
  this[t === "reference" ? "referenceFilterText" : "baseFilterText"] = n, t === "base" ? this.arcgisBaseFilterChange.emit() : this.arcgisReferenceFilterChange.emit();
299
- }} @calciteListOrderChange=${(r) => this._onCalciteListOrderChange(r.detail)} ${u(t === "reference" ? this._referenceListRef : this._baseListRef)}>${e?.toArray().map((r) => this._renderItem(r, s))}${i && !this.hideNoFilterResultsNotice ? l`<div class=${f(p.filterNoResults)} slot=filter-no-results><calcite-notice kind=info open width=full>${this._renderNoLayersInfoMessage(o)}</calcite-notice></div>` : null}</calcite-list>`)}</calcite-block>`);
301
+ }} @calciteListOrderChange=${(l) => this._onCalciteListOrderChange(l.detail)} ${u(t === "reference" ? this._referenceListRef : this._baseListRef)}>${e?.toArray().map((l) => this.#T(l, s))}${i && !this.hideNoFilterResultsNotice ? r`<div class=${f(p.filterNoResults)} slot=filter-no-results><calcite-notice kind=info open width=full>${this.#a(o)}</calcite-notice></div>` : null}</calcite-list>`)}</calcite-block>`);
300
302
  }
301
- _renderBaseSection() {
302
- return this.hideBaseLayers ? null : this._renderList(this._visibleBaseItems, "base", this._visibleBaseItems.length === 1);
303
+ #$() {
304
+ return this.hideBaseLayers ? null : this.#l(this._visibleBaseItems, "base", this._visibleBaseItems.length === 1);
303
305
  }
304
- _renderReferenceSection() {
305
- return this.hideReferenceLayers ? null : this._renderList(this._visibleReferenceItems, "reference", !1);
306
+ #F() {
307
+ return this.hideReferenceLayers ? null : this.#l(this._visibleReferenceItems, "reference", !1);
306
308
  }
307
- _renderItem(e, t, s, i) {
308
- return d(e.uid, ee({ activeItem: this._activeItem, canMove: this._canMove, css: p, displayMode: C, dragEnabled: this.dragEnabled && !t, hideCatalogLayerList: this.hideCatalogLayerList, hideStatusIndicators: this.hideStatusIndicators, item: e, layerTablesEnabled: this.layerTablesEnabled, listModeDisabled: this.viewModel.listModeDisabled, messages: this.messages, operationalItems: this._allItems, parent: s, parentTitles: i, rootGroupUid: this._rootGroupUid, selectedDragItemLayerUid: this._selectedDragItemLayerUid, selectedItems: this.selectedItems, selectionMode: this.selectionMode, setCurrentActiveItem: this._setCurrentActiveItem, clearActiveItem: this._clearActiveItem, showErrors: this.showErrors, showTemporaryLayerIndicators: this.showTemporaryLayerIndicators, visibilityAppearance: this.visibilityAppearance, handleAction: this._onTriggerAction, handleCatalogOpen: this._onCatalogOpen, handlePanelOpen: this._onPanelOpen, handleSelectedDragItemLayerUidChange: this._onSelectedDragItemLayerUidChange, handleTablesOpen: this._onTablesOpen, handleTooltipReferenceChange: this._onTooltipReferenceChange, view: this.view }));
309
+ #T(e, t, s, i) {
310
+ return d(e.uid, ee({ activeItem: this._activeItem, canMove: this._canMove, css: p, displayMode: E, dragEnabled: this.dragEnabled && !t, hideCatalogLayerList: this.hideCatalogLayerList, hideStatusIndicators: this.hideStatusIndicators, item: e, layerTablesEnabled: this.layerTablesEnabled, listModeDisabled: this.viewModel.listModeDisabled, messages: this.messages, operationalItems: this._allItems, parent: s, parentTitles: i, rootGroupUid: this._rootGroupUid, selectedDragItemLayerUid: this._selectedDragItemLayerUid, selectedItems: this.selectedItems, selectionMode: this.selectionMode, setCurrentActiveItem: this._setCurrentActiveItem, clearActiveItem: this._clearActiveItem, showErrors: this.showErrors, showTemporaryLayerIndicators: this.showTemporaryLayerIndicators, visibilityAppearance: this.visibilityAppearance, handleAction: this._onTriggerAction, handleCatalogOpen: this._onCatalogOpen, handlePanelOpen: this._onPanelOpen, handleSelectedDragItemLayerUidChange: this._onSelectedDragItemLayerUidChange, handleTablesOpen: this._onTablesOpen, handleTooltipReferenceChange: this._onTooltipReferenceChange, view: this.view }));
309
311
  }
310
312
  }
311
- function M(w) {
312
- const e = w.closest(`[${E}]`)?.getAttribute(E);
313
+ function C(v) {
314
+ const e = v.closest(`[${M}]`)?.getAttribute(M);
313
315
  return e === "base" || e === "reference" ? e : null;
314
316
  }
315
317
  O("arcgis-basemap-layer-list-next", ne);
@@ -316,7 +316,8 @@ class lt extends Se {
316
316
  this.#h = i;
317
317
  const n = {
318
318
  directShadowsEnabled: i.directShadowsEnabled,
319
- glow: i.glow
319
+ glow: i.glow,
320
+ globalIllumination: i.globalIllumination
320
321
  };
321
322
  h(i) && (n.cameraTrackingEnabled = i.cameraTrackingEnabled);
322
323
  const a = e ? "virtual" : "sun";
@@ -21,7 +21,7 @@ class v extends g {
21
21
  async destroy() {
22
22
  await this.manager.destroy();
23
23
  }
24
- _setIconEl(i) {
24
+ #t(i) {
25
25
  this._iconEl = i;
26
26
  }
27
27
  getTooltipText(i, o, s, t) {
@@ -45,7 +45,7 @@ class v extends g {
45
45
  const i = "publishing" in this.item && this.item.publishing, o = "updating" in this.item && this.item.updating && !this.parent, s = "connectionStatus" in this.item ? this.item.connectionStatus : void 0, t = !!s, e = i || o || t ? f({ connectionStatus: s, publishing: i }) : "blank", { messages: c } = this, r = this.getTooltipText(i, o, s, c);
46
46
  return a`<calcite-icon class=${d(y(n.statusIndicator, { [n.publishing]: i }, "updating" in n && { [n.updating]: o }, "connectionStatus" in n && { [n.connectionStatus]: t }, "connectionStatusConnected" in n && {
47
47
  [n.connectionStatusConnected]: t && s === "connected"
48
- }))} title=${c?.connectionStatus ?? h} .icon=${e} scale=s ${p(this._setIconEl)}></calcite-icon>${this._iconEl ? a`<calcite-tooltip placement=top .referenceElement=${this._iconEl}>${r}</calcite-tooltip>` : null}`;
48
+ }))} title=${c?.connectionStatus ?? h} .icon=${e} scale=s ${p(this.#t)}></calcite-icon>${this._iconEl ? a`<calcite-tooltip placement=top .referenceElement=${this._iconEl}>${r}</calcite-tooltip>` : null}`;
49
49
  }
50
50
  }
51
51
  l("arcgis-layer-list-item-indicator", v);
@@ -49,27 +49,27 @@ class h extends p {
49
49
  await this.manager.destroy();
50
50
  }
51
51
  updated() {
52
- this._loadLegend();
52
+ this.#e();
53
53
  }
54
- async _loadLegend() {
55
- this._canCreateLegend && (this._legendElement || (this._legendElement = this._createLegendElement()));
54
+ async #e() {
55
+ this._canCreateLegend && (this._legendElement || (this._legendElement = this.#i()));
56
56
  }
57
- _createLegendElement() {
57
+ #i() {
58
58
  return g(l`<arcgis-legend .view=${this.view} @arcgisReady=${(e) => e.stopPropagation()} .layerInfos=${this._legendLayerInfo ? [this._legendLayerInfo] : []}></arcgis-legend>`);
59
59
  }
60
60
  render() {
61
- return this._renderContents();
61
+ return this.#r();
62
62
  }
63
- _renderContent(e) {
63
+ #t(e) {
64
64
  const { disabled: t } = this;
65
- return !e || t || !this.item?.panel?.open ? null : e === "legend" ? (this._legendElement || this._loadLegend(), this._legendElement) : e instanceof HTMLElement || typeof e == "string" ? e : null;
65
+ return !e || t || !this.item?.panel?.open ? null : e === "legend" ? (this._legendElement || this.#e(), this._legendElement) : e instanceof HTMLElement || typeof e == "string" ? e : null;
66
66
  }
67
- _renderContents() {
67
+ #r() {
68
68
  const { open: e } = this.item?.panel ?? {};
69
69
  if (!e)
70
70
  return null;
71
71
  const t = a(this.item) ? m(this.item.panel.content) : this.item?.panel?.content;
72
- return Array.isArray(t) ? t.map((i) => this._renderContent(i)) : this._renderContent(t);
72
+ return Array.isArray(t) ? t.map((i) => this.#t(i)) : this.#t(t);
73
73
  }
74
74
  }
75
75
  n("arcgis-layer-list-item-panel", h);