@arcgis/map-components 6.0.0-next.21 → 6.0.0-next.23

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 (134) hide show
  1. package/dist/cdn/{G56N6RF4.js → 2S6RQ6Q4.js} +1 -1
  2. package/dist/cdn/{WUWF6ZDM.js → 2Z36ICJZ.js} +1 -1
  3. package/dist/cdn/{2NM6UWC4.js → 47CFYOUT.js} +1 -1
  4. package/dist/cdn/4N4XDCDQ.js +2 -0
  5. package/dist/cdn/{7ZWBGSCM.js → 4NG7CALI.js} +1 -1
  6. package/dist/cdn/{UFK7DHVC.js → 4WZ7Y57Q.js} +1 -1
  7. package/dist/cdn/{NTHSQXKG.js → 5DEJDR4W.js} +1 -1
  8. package/dist/cdn/{LUW2PXWZ.js → 5PPYHS6V.js} +1 -1
  9. package/dist/cdn/{M5OK7RKI.js → 66GRDX36.js} +1 -1
  10. package/dist/cdn/{SAQ5BNZJ.js → 6CKQPMJB.js} +1 -1
  11. package/dist/cdn/6GGKA7MT.js +2 -0
  12. package/dist/cdn/{XPBFBRSY.js → 6K4IASNK.js} +1 -1
  13. package/dist/cdn/{7LO6ACC7.js → 6VV5SX76.js} +1 -1
  14. package/dist/cdn/{Y3E2FJPQ.js → 74WM2EIB.js} +1 -1
  15. package/dist/cdn/{3GN3DAON.js → A7YFCO3R.js} +1 -1
  16. package/dist/cdn/{FDESUDJ5.js → AIF4MCBB.js} +1 -1
  17. package/dist/cdn/{3SXQLU4S.js → APFZ2FVO.js} +1 -1
  18. package/dist/cdn/{VLHURRRU.js → BM3FQ4OG.js} +1 -1
  19. package/dist/cdn/{LWVYNWD5.js → CGE6E3O3.js} +1 -1
  20. package/dist/cdn/{JUYPQUPQ.js → E5CGORXN.js} +1 -1
  21. package/dist/cdn/EJVFK7JX.js +2 -0
  22. package/dist/cdn/{SDLZ4BNM.js → EVWWTIEQ.js} +1 -1
  23. package/dist/cdn/{BUH3AQ7E.js → FTLNYN3G.js} +1 -1
  24. package/dist/cdn/{BJ35LPCU.js → G7BWEBJH.js} +1 -1
  25. package/dist/cdn/GIQT67VT.js +2 -0
  26. package/dist/cdn/{AOGDXJ2J.js → H66E4VOY.js} +1 -1
  27. package/dist/cdn/{BDZHLGVT.js → HL6WL2YA.js} +1 -1
  28. package/dist/cdn/{GQQTIX2X.js → HQXC5XLE.js} +1 -1
  29. package/dist/cdn/HTONXZBP.js +2 -0
  30. package/dist/cdn/{F2DTKJTK.js → HUWIY53T.js} +1 -1
  31. package/dist/cdn/{UE6EBLH3.js → IKVGZFZ6.js} +1 -1
  32. package/dist/cdn/{NKFAPBY3.js → JRO4IBJP.js} +1 -1
  33. package/dist/cdn/KXDLX4RE.js +2 -0
  34. package/dist/cdn/{4I6F64B2.js → LKKCTKMQ.js} +1 -1
  35. package/dist/cdn/MW27GSDX.js +2 -0
  36. package/dist/cdn/{LXJURAXP.js → NLG5U5ZN.js} +1 -1
  37. package/dist/cdn/{4LNXCEM5.js → NORQIOSX.js} +1 -1
  38. package/dist/cdn/{BLYXYNGB.js → PPGKQRNY.js} +1 -1
  39. package/dist/cdn/{DS6EUOYE.js → PW3QCZXY.js} +1 -1
  40. package/dist/cdn/{7EIN5VCY.js → Q2GYNZYQ.js} +1 -1
  41. package/dist/cdn/{SJGQALDG.js → Q2ZQOGM2.js} +1 -1
  42. package/dist/cdn/{NHMHVWNB.js → QKNHYZYS.js} +1 -1
  43. package/dist/cdn/{ZC5YVHZ3.js → QQLN6RWA.js} +1 -1
  44. package/dist/cdn/{BJJZGYBG.js → R6ARQKAY.js} +1 -1
  45. package/dist/cdn/RFO3M46K.js +2 -0
  46. package/dist/cdn/{YBXCTOS7.js → RQPOCDJS.js} +1 -1
  47. package/dist/cdn/SLWZHNVT.js +2 -0
  48. package/dist/cdn/TKIWKCDA.js +2 -0
  49. package/dist/cdn/{WTAAQHO3.js → TM4FFRX5.js} +1 -1
  50. package/dist/cdn/{SKAZPI3A.js → TTERKXN5.js} +1 -1
  51. package/dist/cdn/{LKGURYDH.js → TTWQ7RNF.js} +1 -1
  52. package/dist/cdn/{VHZM25YV.js → UB6BQW3G.js} +1 -1
  53. package/dist/cdn/{DGSTI5DI.js → UJURQACP.js} +1 -1
  54. package/dist/cdn/V3J5GQHD.js +2 -0
  55. package/dist/cdn/{UHDJ2SI5.js → VW35MSDL.js} +1 -1
  56. package/dist/cdn/{3B4VHD67.js → XN3MG6YU.js} +1 -1
  57. package/dist/cdn/XWBR6FXI.js +2 -0
  58. package/dist/cdn/{B2TICPHR.js → Y5ZZCA3R.js} +1 -1
  59. package/dist/cdn/{4IG6WUCI.js → YTZZRJ7Z.js} +1 -1
  60. package/dist/cdn/{OQ6SYZBT.js → YXIJXXTK.js} +1 -1
  61. package/dist/cdn/{L6FLCEH6.js → Z3674FMT.js} +1 -1
  62. package/dist/cdn/ZF7NUFAT.js +2 -0
  63. package/dist/cdn/assets/video-player/t9n/messages.en.json +1 -1
  64. package/dist/cdn/index.js +1 -1
  65. package/dist/cdn/main.css +1 -1
  66. package/dist/chunks/useArcgisViewReadyError.js +155 -151
  67. package/dist/chunks/useViewModel.js +7 -7
  68. package/dist/components/arcgis-basemap-layer-list-next/customElement.js +88 -86
  69. package/dist/components/arcgis-daylight/customElement.js +2 -1
  70. package/dist/components/arcgis-feature-attachments/customElement.js +18 -18
  71. package/dist/components/arcgis-feature-next/customElement.d.ts +1 -1
  72. package/dist/components/arcgis-features-next/customElement.js +14 -15
  73. package/dist/components/arcgis-layer-list-item-indicator/customElement.js +2 -2
  74. package/dist/components/arcgis-layer-list-item-panel/customElement.js +9 -9
  75. package/dist/components/arcgis-layer-list-next/customElement.js +97 -95
  76. package/dist/components/arcgis-oriented-imagery-viewer/customElement.js +5 -5
  77. package/dist/components/arcgis-search/customElement.d.ts +12 -0
  78. package/dist/components/arcgis-search/customElement.js +3 -0
  79. package/dist/components/arcgis-sketch/customElement.d.ts +308 -30
  80. package/dist/components/arcgis-sketch/customElement.js +48 -21
  81. package/dist/components/arcgis-swipe/customElement.d.ts +0 -22
  82. package/dist/components/arcgis-swipe/customElement.js +45 -63
  83. package/dist/components/arcgis-table-list-next/customElement.js +55 -54
  84. package/dist/components/arcgis-time-bar/customElement.d.ts +484 -409
  85. package/dist/components/arcgis-time-bar/types.d.ts +36 -15
  86. package/dist/components/arcgis-time-bar-slider/customElement.d.ts +179 -162
  87. package/dist/components/arcgis-time-slider/customElement.d.ts +2 -2
  88. package/dist/components/arcgis-track/customElement.d.ts +12 -3
  89. package/dist/components/arcgis-utility-network-trace-analysis/customElement.d.ts +42 -2
  90. package/dist/components/arcgis-utility-network-trace-analysis/customElement.js +20 -17
  91. package/dist/components/arcgis-utility-network-trace-results/customElement.d.ts +2 -70
  92. package/dist/components/arcgis-utility-network-trace-results-pane/customElement.d.ts +161 -2
  93. package/dist/components/arcgis-video-player/customElement.d.ts +18 -0
  94. package/dist/components/arcgis-video-player/customElement.js +72 -72
  95. package/dist/components/arcgis-video-player/index.js +4 -4
  96. package/dist/components/arcgis-video-player-action-bar/customElement.js +1 -1
  97. package/dist/components/arcgis-video-player-previews/customElement.js +159 -0
  98. package/dist/components/arcgis-video-player-settings/customElement.js +17 -16
  99. package/dist/components/arcgis-video-player-slider/customElement.js +23 -12
  100. package/dist/components/arcgis-video-player-slider/index.js +1 -0
  101. package/dist/docs/api.json +1 -1
  102. package/dist/docs/docs.json +1 -1
  103. package/dist/docs/vscode.html-custom-data.json +1 -1
  104. package/dist/docs/web-types.json +1 -1
  105. package/dist/index.d.ts +0 -20
  106. package/dist/loader.js +4 -5
  107. package/dist/types/lumina.d.ts +3 -24
  108. package/dist/types/preact.d.ts +3 -26
  109. package/dist/types/react.d.ts +3 -28
  110. package/dist/types/stencil.d.ts +3 -24
  111. package/package.json +6 -6
  112. package/dist/cdn/COSETVX4.js +0 -2
  113. package/dist/cdn/ED2T4ASN.js +0 -2
  114. package/dist/cdn/F74YQZ2X.js +0 -2
  115. package/dist/cdn/KXD4VEKE.js +0 -2
  116. package/dist/cdn/MBLS5ES4.js +0 -2
  117. package/dist/cdn/OJJSIN3V.js +0 -2
  118. package/dist/cdn/P3565WG3.js +0 -2
  119. package/dist/cdn/PHVKEWZ7.js +0 -2
  120. package/dist/cdn/QAOT2TJ6.js +0 -2
  121. package/dist/cdn/QKGJVGXJ.js +0 -2
  122. package/dist/cdn/QVJ2FUNW.js +0 -2
  123. package/dist/cdn/UI4IEVSV.js +0 -2
  124. package/dist/cdn/UPCWZNTA.js +0 -2
  125. package/dist/cdn/VEV3AAVP.js +0 -2
  126. package/dist/components/arcgis-scale-range-slider/customElement.d.ts +0 -158
  127. package/dist/components/arcgis-scale-range-slider/customElement.js +0 -26
  128. package/dist/components/arcgis-scale-range-slider/index.d.ts +0 -1
  129. package/dist/components/arcgis-time-bar/TimeBarViewModel.d.ts +0 -73
  130. package/dist/components/arcgis-value-picker-legacy/customElement.d.ts +0 -642
  131. package/dist/components/arcgis-value-picker-legacy/customElement.js +0 -39
  132. package/dist/components/arcgis-value-picker-legacy/index.d.ts +0 -1
  133. package/dist/components/arcgis-value-picker-legacy/index.js +0 -1
  134. /package/dist/components/{arcgis-scale-range-slider → arcgis-video-player-previews}/index.js +0 -0
@@ -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";
@@ -3,16 +3,16 @@ import { c as k } from "../../chunks/runtime.js";
3
3
  import { css as I, html as i } from "lit";
4
4
  import _ from "@arcgis/core/rest/query/support/AttachmentInfo.js";
5
5
  import L from "@arcgis/core/rest/support/AttachmentQuery.js";
6
- import T from "@arcgis/core/core/Collection.js";
6
+ import P from "@arcgis/core/core/Collection.js";
7
7
  import y from "@arcgis/core/core/Error.js";
8
- import { LitElement as P, nothing as d, safeClassMap as b, safeStyleMap as A } from "@arcgis/lumina";
8
+ import { LitElement as T, nothing as p, safeClassMap as b, safeStyleMap as A } from "@arcgis/lumina";
9
9
  import { bypassReadOnly as S } from "@arcgis/lumina/controllers";
10
10
  import { classes as $ } from "@arcgis/toolkit/dom";
11
11
  import { g as v, i as w } from "../../chunks/attachment-utils.js";
12
12
  import { g as f } from "../../chunks/feature-utils.js";
13
13
  import { watch as C } from "@arcgis/core/core/reactiveUtils.js";
14
- const x = I`:host([empty]){display:none}.item-link{display:flex;flex-grow:1;color:var(--calcite-color-text-3)}.item-link:visited,.item-link:hover,.item-link:focus-visible,.item-link:active{color:var(--calcite-color-text-1)}.item-link img{max-width:100%;max-height:100%;object-fit:contain}.item-link--list{align-items:center;justify-content:center;width:64px;max-height:64px;overflow:hidden;border-radius:var(--calcite-corner-radius-sm)}.item-link--list img{border-radius:var(--calcite-corner-radius-sm)}.item-link--list-icon{border:var(--calcite-border-width-sm) solid var(--calcite-color-border-3)}.item-link--list calcite-icon{margin:var(--calcite-spacing-lg)}.item-link--preview{align-items:center;justify-content:center}.item-link--preview calcite-icon{margin-block:var(--calcite-spacing-lg)}.item-description{text-align:center;word-wrap:break-word;word-break:break-word}calcite-link{--calcite-link-text-color: var(--calcite-color-text-3);padding-inline:var(--calcite-spacing-sm);word-wrap:break-word;word-break:break-word}calcite-card{width:100%}calcite-card:hover,calcite-card:focus,calcite-card:focus-within{--calcite-card-border-color: var(--calcite-color-text-1)}`, z = T.ofType(_);
15
- class E extends P {
14
+ const x = I`:host([empty]){display:none}.loading-content{min-height:4rem;min-width:4rem}.item-link{display:flex;flex-grow:1;color:var(--calcite-color-text-3)}.item-link:visited,.item-link:hover,.item-link:focus-visible,.item-link:active{color:var(--calcite-color-text-1)}.item-link img{max-width:100%;max-height:100%;object-fit:contain}.item-link--list{align-items:center;justify-content:center;width:64px;max-height:64px;overflow:hidden;border-radius:var(--calcite-corner-radius-sm)}.item-link--list img{border-radius:var(--calcite-corner-radius-sm)}.item-link--list-icon{border:var(--calcite-border-width-sm) solid var(--calcite-color-border-3)}.item-link--list calcite-icon{margin:var(--calcite-spacing-lg)}.item-link--preview{align-items:center;justify-content:center}.item-link--preview calcite-icon{margin-block:var(--calcite-spacing-lg)}.item-description{text-align:center;word-wrap:break-word;word-break:break-word}calcite-link{--calcite-link-text-color: var(--calcite-color-text-3);padding-inline:var(--calcite-spacing-sm);word-wrap:break-word;word-break:break-word}calcite-card{width:100%}calcite-card:hover,calcite-card:focus,calcite-card:focus-within{--calcite-card-border-color: var(--calcite-color-text-1)}`, z = P.ofType(_);
15
+ class E extends T {
16
16
  constructor() {
17
17
  super(...arguments), this._attachmentLayer = null, this._supportsImageOrientation = window?.CSS?.supports("image-orientation", "from-image"), this.hideSection = !1, this._attachmentInfos = new z(), this.headingLevel = 2, this.hidePreviewImageAttachmentName = !1, this.empty = !1;
18
18
  }
@@ -49,22 +49,22 @@ class E extends P {
49
49
  ]);
50
50
  }
51
51
  async getAttachments() {
52
- const { _attachmentLayer: e, _attachmentInfos: t, orderByFields: s, attachmentTypes: n, attachmentKeywords: c, _supportsTypeWildcard: o } = this;
52
+ const { _attachmentLayer: e, _attachmentInfos: t, orderByFields: s, attachmentTypes: r, attachmentKeywords: c, _supportsTypeWildcard: o } = this;
53
53
  if (!e || typeof e.queryAttachments != "function")
54
54
  throw new y("invalid-layer", "getAttachments(): A valid layer is required.");
55
55
  const l = this.graphic?.getObjectId();
56
56
  if (typeof l != "number")
57
57
  throw new y("invalid-object-id", "getAttachments(): Numeric object id is required");
58
- const g = s?.map((a) => `${a.field} ${a.order === "descending" ? "DESC" : "ASC"}`), r = new L({
58
+ const g = s?.map((a) => `${a.field} ${a.order === "descending" ? "DESC" : "ASC"}`), n = new L({
59
59
  objectIds: [l],
60
60
  returnMetadata: !0,
61
61
  orderByFields: g,
62
- attachmentTypes: o ? n?.filter(Boolean).map((a) => `${a}/*`) : void 0,
62
+ attachmentTypes: o ? r?.filter(Boolean).map((a) => `${a}/*`) : void 0,
63
63
  keywords: c
64
- }), m = [], h = e.queryAttachments(r).then((a) => a[l] || m).catch(() => m);
64
+ }), m = [], h = e.queryAttachments(n).then((a) => a[l] || m).catch(() => m);
65
65
  this.getAttachmentsPromise = h, this._setEmpty(!1);
66
- const p = await h;
67
- t.destroyAll(), p.length && t.addMany(p), this.getAttachmentsPromise = null, this._setEmpty(!this._hasContent);
66
+ const d = await h;
67
+ t.destroyAll(), d.length && t.addMany(d), this.getAttachmentsPromise = null, this._setEmpty(!this._hasContent);
68
68
  }
69
69
  _setEmpty(e) {
70
70
  S(() => this.empty = e);
@@ -93,28 +93,28 @@ class E extends P {
93
93
  return this.empty ? null : i`<div class="root"><arcgis-feature-element-info .heading=${this.heading} .description=${this.description} .headingLevel=${this.headingLevel}></arcgis-feature-element-info>${this.renderAttachments()}</div>`;
94
94
  }
95
95
  renderAttachmentsList(e) {
96
- return i`<calcite-list .loading=${!!this.getAttachmentsPromise} .label=${this.messages?.componentLabel ?? ""} interaction-mode=static selection-mode=none>${e.toArray().filter(Boolean).map((t) => this.renderAttachmentListItem(t))}</calcite-list>`;
96
+ return i`<calcite-list .loading=${!!this.getAttachmentsPromise} .label=${this.messages?.componentLabel ?? ""} interaction-mode=static selection-mode=none>${this.getAttachmentsPromise ? i`<div class="loading-content"></div>` : e.toArray().filter(Boolean).map((t) => this.renderAttachmentListItem(t))}</calcite-list>`;
97
97
  }
98
98
  renderAttachmentsPreview(e) {
99
- return i`<calcite-card-group .label=${this.messages?.componentLabel ?? ""}>${this.getAttachmentsPromise ? i`<calcite-card loading></calcite-card>` : e.toArray().filter(Boolean).map((t) => this.renderAttachmentPreviewItem(t))}</calcite-card-group>`;
99
+ return i`<calcite-card-group .label=${this.messages?.componentLabel ?? ""}>${this.getAttachmentsPromise ? i`<calcite-card loading><div class="loading-content"></div></calcite-card>` : e.toArray().filter(Boolean).map((t) => this.renderAttachmentPreviewItem(t))}</calcite-card-group>`;
100
100
  }
101
101
  renderAttachmentsCarousel(e) {
102
102
  const t = e.toArray().filter(Boolean);
103
- return i`<calcite-carousel .paginationDisabled=${t.length < 2} .label=${this.messages?.componentLabel ?? ""} pagination-position=top>${this.getAttachmentsPromise ? i`<calcite-carousel-item .label=${this.messages?.componentLabel ?? ""}><calcite-card loading></calcite-card></calcite-carousel-item>` : t.map((s) => i`<calcite-carousel-item .label=${s.name || this.messages?.noTitle || ""}>${this.renderAttachmentPreviewItem(s, !0)}</calcite-carousel-item>`)}</calcite-carousel>`;
103
+ return i`<calcite-carousel .paginationDisabled=${t.length < 2} .label=${this.messages?.componentLabel ?? ""} pagination-position=top>${this.getAttachmentsPromise ? i`<calcite-carousel-item .label=${this.messages?.componentLabel ?? ""}><calcite-card loading><div class="loading-content"></div></calcite-card></calcite-carousel-item>` : t.map((s) => i`<calcite-carousel-item .label=${s.name || this.messages?.noTitle || ""}>${this.renderAttachmentPreviewItem(s, !0)}</calcite-carousel-item>`)}</calcite-carousel>`;
104
104
  }
105
105
  renderAttachments() {
106
106
  const { effectiveDisplayType: e, _attachmentInfos: t } = this;
107
107
  return e === "carousel" ? this.renderAttachmentsCarousel(t) : e === "preview" ? this.renderAttachmentsPreview(t) : this.renderAttachmentsList(t);
108
108
  }
109
109
  renderAttachmentListItem(e) {
110
- const { supportsResizeAttachments: t } = this, { contentType: s, name: n, url: c, size: o } = e, l = 64, g = n || this.messages?.noTitle, r = v(s), m = this.getCSSTransform(e), h = m ? { transform: m, "image-orientation": "none" } : {}, p = t && w(s), a = i`<a class=${b($("item-link", "item-link--list", {
111
- "item-link--list-icon": !p
112
- }))} slot=content-start href=${c ?? void 0 ?? d} rel=noreferrer target=_blank>${p ? i`<img alt=${n ?? d} src=${`${c}${c?.includes("?") ? "&" : "?"}w=${l}&s=${o}`} style=${A(h)} title=${n ?? d}>` : i`<calcite-icon .icon=${r}></calcite-icon>`}</a>`, u = i`<calcite-link slot=content .href=${c ?? void 0} rel=noreferrer target=_blank>${g}</calcite-link>`;
110
+ const { supportsResizeAttachments: t } = this, { contentType: s, name: r, url: c, size: o } = e, l = 64, g = r || this.messages?.noTitle, n = v(s), m = this.getCSSTransform(e), h = m ? { transform: m, "image-orientation": "none" } : {}, d = t && w(s), a = i`<a class=${b($("item-link", "item-link--list", {
111
+ "item-link--list-icon": !d
112
+ }))} slot=content-start href=${c ?? void 0 ?? p} rel=noreferrer target=_blank>${d ? i`<img alt=${r ?? p} src=${`${c}${c?.includes("?") ? "&" : "?"}w=${l}&s=${o}`} style=${A(h)} title=${r ?? p}>` : i`<calcite-icon .icon=${n}></calcite-icon>`}</a>`, u = i`<calcite-link slot=content .href=${c ?? void 0} rel=noreferrer target=_blank>${g}</calcite-link>`;
113
113
  return i`<calcite-list-item .label=${g}>${a}${u}</calcite-list-item>`;
114
114
  }
115
115
  renderAttachmentPreviewItem(e, t = !1) {
116
- const { supportsResizeAttachments: s } = this, { contentType: n, name: c, url: o, size: l } = e, g = 225, r = c || this.messages?.noTitle, m = v(n), h = this.getCSSTransform(e), p = h ? { transform: h, "image-orientation": "none" } : {}, a = s && w(n), u = i`<a class=${b($("item-link", "item-link--preview"))} slot=thumbnail href=${o ?? void 0 ?? d} rel=noreferrer target=_blank aria-label=${r ?? d} title=${r ?? d}>${a ? i`<img alt=${r ?? d} src=${`${o}${o?.includes("?") ? "&" : "?"}w=${g}&s=${l}`} style=${A(p)}>` : i`<calcite-icon scale=l .icon=${m}></calcite-icon>`}</a>`;
117
- return i`<calcite-card .label=${r}>${u}${(t || this.hidePreviewImageAttachmentName) && a ? null : i`<span class="item-description" slot=description>${r}</span>`}</calcite-card>`;
116
+ const { supportsResizeAttachments: s } = this, { contentType: r, name: c, url: o, size: l } = e, g = 225, n = c || this.messages?.noTitle, m = v(r), h = this.getCSSTransform(e), d = h ? { transform: h, "image-orientation": "none" } : {}, a = s && w(r), u = i`<a class=${b($("item-link", "item-link--preview"))} slot=thumbnail href=${o ?? void 0 ?? p} rel=noreferrer target=_blank aria-label=${n ?? p} title=${n ?? p}>${a ? i`<img alt=${n ?? p} src=${`${o}${o?.includes("?") ? "&" : "?"}w=${g}&s=${l}`} style=${A(d)}>` : i`<calcite-icon scale=l .icon=${m}></calcite-icon>`}</a>`;
117
+ return i`<calcite-card .label=${n}>${u}${(t || this.hidePreviewImageAttachmentName) && a ? null : i`<span class="item-description" slot=description>${n}</span>`}</calcite-card>`;
118
118
  }
119
119
  }
120
120
  k("arcgis-feature-attachments", E);
@@ -13,7 +13,7 @@ import type { State } from "@arcgis/core/popup/types.js";
13
13
 
14
14
  /**
15
15
  * > [!WARNING]
16
- * > The Feature (next) component is the successor to the Feature component, provided to you early for testing and feedback. In version 6.0, the implementation of [arcgis-feature](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-feature/) will be updated under the hood to that of [arcgis-feature-next](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-feature-next/), and this component will be removed. To update at version 6.0, simply remove `-next` from the component name.
16
+ * > The Feature (next) component is the successor to the Feature component, provided to you early for testing and feedback. It uses the new [FeatureModel](https://developers.arcgis.com/javascript/latest/references/core/popup/FeatureModel) to manage feature data and interactions, with action-related properties and improved accessibility features. In version 6.0, the implementation of [arcgis-feature](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-feature/) will be updated under the hood to that of [arcgis-feature-next](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-feature-next/), and this component will be removed. To update at version 6.0, simply remove `-next` from the component name.
17
17
  *
18
18
  * The Feature (next) component displays a graphic according to its [PopupTemplate](https://developers.arcgis.com/javascript/latest/references/core/PopupTemplate/).
19
19
  * This component is useful in instances where you want to display information about a graphic but without
@@ -14,7 +14,7 @@ import { initializeProjection as K } from "@arcgis/core/applications/Components/
14
14
  import { t as j } from "../../chunks/action-utils.js";
15
15
  import { m as G } from "../../chunks/useViewModel.js";
16
16
  import { renderingSanitizer as w } from "@arcgis/core/applications/Components/sanitizerUtils.js";
17
- import { stripHTML as M } from "@arcgis/core/applications/Components/stringUtils.js";
17
+ import { stripHTML as b } from "@arcgis/core/applications/Components/stringUtils.js";
18
18
  import { substitute as u, formatNumber as C } from "@arcgis/core/intl.js";
19
19
  import { u as W } from "../../chunks/useT9n.js";
20
20
  import { when as X, watch as h } from "@arcgis/core/core/reactiveUtils.js";
@@ -73,7 +73,7 @@ class oe extends V {
73
73
  }
74
74
  get _headingLabel() {
75
75
  const e = this._selectedFeatureHeading ?? this.heading;
76
- return e ? M(e) : void 0;
76
+ return e ? b(e) : void 0;
77
77
  }
78
78
  get _backLabel() {
79
79
  const e = this._headingLabel, { messages: t } = this;
@@ -161,12 +161,8 @@ class oe extends V {
161
161
  this._selectedFeatureLoading = e;
162
162
  }
163
163
  }),
164
- X(() => [this.initialDisplayMode === "list" && !!this.viewModel?.selectedFeature, this.viewModel?.active], () => {
165
- this.setFocus();
166
- }),
167
- h(() => [this.flowItems?.length, this.featureMenuOpen], () => {
168
- this.setFocus();
169
- }),
164
+ X(() => [this.initialDisplayMode === "list" && !!this.viewModel?.selectedFeature, this.viewModel?.active], () => this._setFocusIfTrapEnabled()),
165
+ h(() => [this.flowItems?.length, this.featureMenuOpen], () => this._setFocusIfTrapEnabled()),
170
166
  h(() => this.viewModel?.selectedFeatureIndex, (e, t) => this._selectedFeatureIndexUpdated(e, t)),
171
167
  h(() => this.viewModel?.view?.scale, () => this._viewScaleChange()),
172
168
  h(() => this.viewModel?.view, (e, t) => t && this._viewChange()),
@@ -202,6 +198,9 @@ class oe extends V {
202
198
  const { viewModel: e } = this, { featurePage: t, featuresPerPage: i, features: s } = e;
203
199
  e.open && (this.initialDisplayMode === "list" || this.featureMenuOpen) && t != null && t * i < s.length && (e.featurePage = t + 1);
204
200
  }
201
+ _setFocusIfTrapEnabled() {
202
+ this.focusTrapEnabled && this.setFocus();
203
+ }
205
204
  _resolveSetFocusAnimationFrame() {
206
205
  const e = this._setFocusAnimationFrameResolve;
207
206
  this._setFocusAnimationFrameResolve = null, e?.();
@@ -288,7 +287,7 @@ class oe extends V {
288
287
  _getActionLabel(e, t) {
289
288
  if (e.id !== "zoom-to-feature")
290
289
  return null;
291
- const { messages: i } = this, s = t?.heading, a = t ? s && M(s) : this._headingLabel;
290
+ const { messages: i } = this, s = t?.heading, a = t ? s && b(s) : this._headingLabel;
292
291
  return a ? u(i.zoomLabel ?? "", {
293
292
  messages: i,
294
293
  title: a
@@ -442,14 +441,14 @@ class oe extends V {
442
441
  return this.headerActions.map((e) => this._renderHeaderAction(e)).toArray();
443
442
  }
444
443
  _renderContentFeature(e) {
445
- const { headingLevel: t, hideCloseButton: i, _isCollapsed: s, _collapseEnabled: a, featureNavigationTop: o, initialDisplayMode: r, selectedFeature: l, hideHeading: d } = this, { active: c, selectedFeatureItem: f, content: b } = this.viewModel, p = this._getHeading();
444
+ const { headingLevel: t, hideCloseButton: i, _isCollapsed: s, _collapseEnabled: a, featureNavigationTop: o, initialDisplayMode: r, selectedFeature: l, hideHeading: d } = this, { active: c, selectedFeatureItem: f, content: M } = this.viewModel, p = this._getHeading();
446
445
  if (r === "list" && !l)
447
446
  return null;
448
- const F = !this._selectedFeaturePending && (f ? !f.content : !b);
447
+ const F = !this._selectedFeaturePending && (f ? !f.content : !M);
449
448
  return n`<calcite-flow-item .focusTrapEnabled=${this.focusTrapEnabled} class=${x(I({
450
449
  "content-feature": !0,
451
450
  "flow-item-collapsed": s
452
- }))} .closable=${!i} .closed=${!c} .collapsed=${s} .collapseDirection=${this.collapseDirection ?? (o ? "down" : "up")} .collapsible=${a} .headingLevel=${t} .selected=${e} .messageOverrides=${{ collapse: this.messages.collapse, expand: this.messages.expand }} @calciteFlowItemBack=${this._handleFeatureBack} .loading=${!!this._openRelatedFeatureAbortController || this._selectedFeatureLoading} @calciteFlowItemClose=${this._handleClose} @calciteFlowItemToggle=${this._handleCollapseToggle} @keydown=${this._onMainKeydown} .heading=${!d && p ? M(p) : void 0} ${m(this._rootFlowItemNode)}>${this._renderHeader()}${!d && p ? n`<div slot=heading><div .innerHTML=${w.sanitize(p ?? "") ?? ""}></div></div>` : null}${this._renderHeaderActions()}${this._renderActionBar()}<div class=${x(I("container", "content-container", {
451
+ }))} .closable=${!i} .closed=${!c} .collapsed=${s} .collapseDirection=${this.collapseDirection ?? (o ? "down" : "up")} .collapsible=${a} .headingLevel=${t} .selected=${e} .messageOverrides=${{ collapse: this.messages.collapse, expand: this.messages.expand }} @calciteFlowItemBack=${this._handleFeatureBack} .loading=${!!this._openRelatedFeatureAbortController || this._selectedFeatureLoading} @calciteFlowItemClose=${this._handleClose} @calciteFlowItemToggle=${this._handleCollapseToggle} @keydown=${this._onMainKeydown} .heading=${!d && p ? b(p) : void 0} ${m(this._rootFlowItemNode)}>${this._renderHeader()}${!d && p ? n`<div slot=heading><div .innerHTML=${w.sanitize(p ?? "") ?? ""}></div></div>` : null}${this._renderHeaderActions()}${this._renderActionBar()}<div class=${x(I("container", "content-container", {
453
452
  "content-hidden": F
454
453
  }))}>${this._renderContent()}</div>${this._renderFooter()}</calcite-flow-item>`;
455
454
  }
@@ -470,13 +469,13 @@ class oe extends V {
470
469
  return i?.size ? n`<calcite-notice class="diagnostics-notice" open kind=info scale=s><span slot=title>${e.maxRecordCountHeading}</span><div slot=message>${i.size <= ne ? this._renderDiagnosticsList(i) : this._renderDiagnosticsMultipleLayers()}</div></calcite-notice>` : null;
471
470
  }
472
471
  _renderFeatureMenuContainer() {
473
- const { viewModel: e, hideCloseButton: t, featureMenuTitle: i, messages: s, initialDisplayMode: a, featureMenuOpen: o, _featureFlowItemSelected: r, _collapseEnabled: l, _isCollapsed: d, featureNavigationTop: c, headingLevel: f } = this, { active: b, features: p, streamingFeatures: F } = e, $ = i ?? s.selectFeature, A = this._backLabel;
472
+ const { viewModel: e, hideCloseButton: t, featureMenuTitle: i, messages: s, initialDisplayMode: a, featureMenuOpen: o, _featureFlowItemSelected: r, _collapseEnabled: l, _isCollapsed: d, featureNavigationTop: c, headingLevel: f } = this, { active: M, features: p, streamingFeatures: F } = e, $ = i ?? s.selectFeature, A = this._backLabel;
474
473
  if (a === "feature" && !o)
475
474
  return null;
476
475
  const O = !r;
477
476
  return n`<calcite-flow-item .focusTrapEnabled=${this.focusTrapEnabled} class=${x(I({
478
477
  "flow-item-collapsed": d
479
- }))} .closable=${!t} .closed=${!b} .collapsed=${a === "list" && d} .collapseDirection=${this.collapseDirection ?? (c ? "down" : "up")} .collapsible=${a === "list" && l} .messageOverrides=${{ collapse: this.messages.collapse, expand: this.messages.expand, back: A }} .description=${this.hideFeatureMenuHeading ? void 0 : u(s.total ?? "", {
478
+ }))} .closable=${!t} .closed=${!M} .collapsed=${a === "list" && d} .collapseDirection=${this.collapseDirection ?? (c ? "down" : "up")} .collapsible=${a === "list" && l} .messageOverrides=${{ collapse: this.messages.collapse, expand: this.messages.expand, back: A }} .description=${this.hideFeatureMenuHeading ? void 0 : u(s.total ?? "", {
480
479
  total: p.length
481
480
  })} .heading=${this.hideFeatureMenuHeading ? void 0 : $} .headingLevel=${f} .loading=${e.waitingForResult} .selected=${O} @calciteFlowItemBack=${(N) => {
482
481
  N.preventDefault(), this._handleFeatureMenuBack();
@@ -488,7 +487,7 @@ class oe extends V {
488
487
  }, () => {
489
488
  this._aggregatedFeaturesComponent.value?.next();
490
489
  })}${this._renderFeaturePaginationText(this._aggregatedFeatureCount, this._selectedAggregatedFeatureIndex)}</div>` : null;
491
- return n`<calcite-flow-item .closable=${!i} .closed=${!s} .focusTrapEnabled=${this.focusTrapEnabled} class="flow-item-drill-in" .description=${M(this._getDrillInFlowItemDescription(e) ?? "")} .heading=${a ? void 0 : M(e.heading ?? "")} .selected=${t} @calciteFlowItemBack=${($) => {
490
+ return n`<calcite-flow-item .closable=${!i} .closed=${!s} .focusTrapEnabled=${this.focusTrapEnabled} class="flow-item-drill-in" .description=${b(this._getDrillInFlowItemDescription(e) ?? "")} .heading=${a ? void 0 : b(e.heading ?? "")} .selected=${t} @calciteFlowItemBack=${($) => {
492
491
  $.preventDefault(), this._handleDrillInBackClick();
493
492
  }} .loading=${!!this._openRelatedFeatureAbortController} @calciteFlowItemClose=${this._handleClose}>${a ? null : n`<div slot=heading><div .innerHTML=${w.sanitize(e.heading ?? "") ?? ""}></div></div>`}<div slot=description><div .innerHTML=${w.sanitize(this._getDrillInFlowItemDescription(e) ?? "") ?? ""}></div></div><calcite-action class="action-exit" icon=move-up @click=${this._removeFlowItems} slot=header-actions-start .text=${l ?? ""} title=${l ?? "" ?? g}></calcite-action>${p ? n`<calcite-action icon=zoom-to-object @click=${() => this._openRelatedFeature(e)} slot=header-actions-end .text=${d ?? ""} title=${d ?? g}></calcite-action>` : null}${f && this._renderActionBar(e) || ""}<div class="container">${e}</div>${F}</calcite-flow-item>`;
494
493
  }
@@ -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);