@arcgis/map-components 5.2.0-next.65 → 5.2.0-next.67

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 (173) hide show
  1. package/dist/cdn/{RMKRRXJS.js → 3B3RGT2G.js} +1 -1
  2. package/dist/cdn/{5KBFECNZ.js → 6NWYETZO.js} +1 -1
  3. package/dist/cdn/{54DPKOI2.js → AKQ23RYL.js} +1 -1
  4. package/dist/cdn/{FWYUKFIR.js → AOGPP4VX.js} +1 -1
  5. package/dist/cdn/{HRJIMMTW.js → DY6AWYYR.js} +1 -1
  6. package/dist/cdn/ERZ355Q7.js +2 -0
  7. package/dist/cdn/{FBCMR23T.js → FUISFUR3.js} +1 -1
  8. package/dist/cdn/GP76UUFG.js +2 -0
  9. package/dist/cdn/{SHNSCLFF.js → IGORAGVE.js} +2 -2
  10. package/dist/cdn/{WP6ZYNAK.js → KHIHHUKA.js} +1 -1
  11. package/dist/cdn/{DTR5I2KQ.js → L254HFGW.js} +1 -1
  12. package/dist/cdn/{ARVSEV26.js → MFRZNKMQ.js} +1 -1
  13. package/dist/cdn/{LH246IIL.js → N34R2VNP.js} +1 -1
  14. package/dist/cdn/NCSFZ67G.js +2 -0
  15. package/dist/cdn/{34HQ4DIU.js → ORO4OWNH.js} +1 -1
  16. package/dist/cdn/OXJ6JBJF.js +2 -0
  17. package/dist/cdn/{FOHSM4R7.js → PT33LZD5.js} +1 -1
  18. package/dist/cdn/QGWMP6TU.js +2 -0
  19. package/dist/cdn/SRNGMDBR.js +2 -0
  20. package/dist/cdn/{BYZRGKOW.js → U5NYFDPL.js} +1 -1
  21. package/dist/cdn/{VC4FPVTG.js → UAFLVW2D.js} +1 -1
  22. package/dist/cdn/{4IOVE754.js → UDZLCLOW.js} +1 -1
  23. package/dist/cdn/UJAX7TII.js +2 -0
  24. package/dist/cdn/USMSBMGF.js +2 -0
  25. package/dist/cdn/{RWDCU2CO.js → VFFB35S6.js} +1 -1
  26. package/dist/cdn/XKC3DFCU.js +2 -0
  27. package/dist/cdn/{3K7YV4SA.js → XVUJEFQE.js} +1 -1
  28. package/dist/cdn/ZGGP2PLT.js +2 -0
  29. package/dist/cdn/ZHA4C7BC.js +2 -0
  30. package/dist/cdn/assets/area-measurement-2d/t9n/messages.en.json +1 -1
  31. package/dist/cdn/assets/basemap-toggle/t9n/messages.en.json +1 -1
  32. package/dist/cdn/assets/selection-toolbar/t9n/messages.en.json +1 -0
  33. package/dist/cdn/index.js +1 -1
  34. package/dist/cdn/main.css +1 -1
  35. package/dist/chunks/layer-list-item.js +170 -0
  36. package/dist/chunks/layer-list-next.js +1 -1
  37. package/dist/chunks/slots.js +10 -10
  38. package/dist/chunks/useArcgisViewReadyError.js +35 -30
  39. package/dist/components/arcgis-area-measurement-2d/customElement.d.ts +2 -0
  40. package/dist/components/arcgis-area-measurement-2d/customElement.js +42 -42
  41. package/dist/components/arcgis-attachments/customElement.d.ts +1 -1
  42. package/dist/components/arcgis-basemap-layer-list/customElement.d.ts +1 -1
  43. package/dist/components/arcgis-basemap-layer-list-next/customElement.d.ts +8 -0
  44. package/dist/components/arcgis-basemap-layer-list-next/customElement.js +61 -61
  45. package/dist/components/arcgis-basemap-toggle/customElement.d.ts +6 -0
  46. package/dist/components/arcgis-basemap-toggle/customElement.js +30 -22
  47. package/dist/components/arcgis-catalog-layer-list/customElement.d.ts +1 -1
  48. package/dist/components/arcgis-catalog-layer-list-next/customElement.d.ts +8 -0
  49. package/dist/components/arcgis-catalog-layer-list-next/customElement.js +17 -17
  50. package/dist/components/arcgis-feature-table/customElement.d.ts +1 -1
  51. package/dist/components/arcgis-feature-templates-legacy/customElement.d.ts +1 -1
  52. package/dist/components/arcgis-layer-list/customElement.d.ts +1 -1
  53. package/dist/components/arcgis-layer-list-next/customElement.d.ts +8 -0
  54. package/dist/components/arcgis-layer-list-next/customElement.js +27 -27
  55. package/dist/components/arcgis-layer-list-next/layer-list-item/customElement.js +10 -154
  56. package/dist/components/{arcgis-oriented-imagery-viewer-image-viewer → arcgis-oriented-imagery-viewer-non-panoramic-viewer}/customElement.d.ts +9 -3
  57. package/dist/components/arcgis-oriented-imagery-viewer-non-panoramic-viewer/customElement.js +411 -0
  58. package/dist/components/{arcgis-oriented-imagery-viewer-image-viewer → arcgis-oriented-imagery-viewer-non-panoramic-viewer}/index.js +1 -0
  59. package/dist/components/{arcgis-oriented-imagery-viewer-image-viewer → arcgis-oriented-imagery-viewer-non-panoramic-viewer}/support/NonPanoramicMedia.d.ts +12 -3
  60. package/dist/components/arcgis-selection-toolbar/customElement.d.ts +379 -0
  61. package/dist/components/arcgis-selection-toolbar/customElement.js +191 -0
  62. package/dist/components/arcgis-selection-toolbar/index.d.ts +1 -0
  63. package/dist/components/arcgis-selection-toolbar/index.js +10 -0
  64. package/dist/components/arcgis-selection-toolbar/types.d.ts +8 -0
  65. package/dist/components/arcgis-table-list/customElement.d.ts +1 -1
  66. package/dist/components/arcgis-table-list-next/customElement.d.ts +8 -0
  67. package/dist/components/arcgis-table-list-next/customElement.js +12 -12
  68. package/dist/docs/api.json +1 -1
  69. package/dist/docs/docs.json +1 -1
  70. package/dist/docs/vscode.html-custom-data.json +1 -1
  71. package/dist/docs/web-types.json +1 -1
  72. package/dist/index.d.ts +13 -3
  73. package/dist/loader.js +6 -5
  74. package/dist/types/lumina.d.ts +18 -8
  75. package/dist/types/preact.d.ts +20 -9
  76. package/dist/types/react.d.ts +22 -10
  77. package/dist/types/stencil.d.ts +18 -8
  78. package/package.json +6 -6
  79. package/dist/cdn/2CRPXLAY.js +0 -2
  80. package/dist/cdn/3EYX5DTH.js +0 -2
  81. package/dist/cdn/74IVEAEO.js +0 -2
  82. package/dist/cdn/EF7LH4GQ.js +0 -2
  83. package/dist/cdn/GBLPYWL2.js +0 -2
  84. package/dist/cdn/JA3PSEUL.js +0 -2
  85. package/dist/cdn/KAXVBIZ7.js +0 -2
  86. package/dist/cdn/QNQQA4BU.js +0 -2
  87. package/dist/cdn/VAISR7CN.js +0 -2
  88. package/dist/cdn/XCCZTOXH.js +0 -2
  89. package/dist/components/arcgis-oriented-imagery-viewer-image-viewer/customElement.js +0 -231
  90. /package/dist/cdn/{M5YTVQ3E.js → 2ROKOM2Z.js} +0 -0
  91. /package/dist/cdn/{JYWV4RJT.js → 37VIO2V5.js} +0 -0
  92. /package/dist/cdn/{RDWKI3KP.js → 3RVEVJVG.js} +0 -0
  93. /package/dist/cdn/{57URHW23.js → 4O5BM5AI.js} +0 -0
  94. /package/dist/cdn/{UHL5U7GJ.js → 4XAKKTWP.js} +0 -0
  95. /package/dist/cdn/{Y3QCO64W.js → 55GK5OAA.js} +0 -0
  96. /package/dist/cdn/{CGM2YWJH.js → 5KSNV3AD.js} +0 -0
  97. /package/dist/cdn/{GJRDLFOY.js → 6CHIESQS.js} +0 -0
  98. /package/dist/cdn/{3J2BDZNE.js → 6TPIG3XC.js} +0 -0
  99. /package/dist/cdn/{INJXVNS3.js → 6WOUFI3X.js} +0 -0
  100. /package/dist/cdn/{I62OLA5J.js → 73PS6B6H.js} +0 -0
  101. /package/dist/cdn/{SMOBVQX6.js → CBHZA2RM.js} +0 -0
  102. /package/dist/cdn/{VXYZPWDK.js → D4LXZSJU.js} +0 -0
  103. /package/dist/cdn/{3XZU4KZX.js → ETAL67B5.js} +0 -0
  104. /package/dist/cdn/{EAN2ER5F.js → EW7KQ7UM.js} +0 -0
  105. /package/dist/cdn/{7IA62IHQ.js → FQS7XRHV.js} +0 -0
  106. /package/dist/cdn/{KU2D7B6L.js → FRNAEEL2.js} +0 -0
  107. /package/dist/cdn/{F3MJCQ74.js → J3LAIXMY.js} +0 -0
  108. /package/dist/cdn/{A4LOY55I.js → JOPE2HA7.js} +0 -0
  109. /package/dist/cdn/{YKVEZBMI.js → LIKCZBSN.js} +0 -0
  110. /package/dist/cdn/{SKVY2FTI.js → LKS3BW4E.js} +0 -0
  111. /package/dist/cdn/{MUMLZBK2.js → LNV4R7FO.js} +0 -0
  112. /package/dist/cdn/{UT4Y7W2I.js → LYVEFTG5.js} +0 -0
  113. /package/dist/cdn/{YYY2B7Z3.js → M5RPB52H.js} +0 -0
  114. /package/dist/cdn/{2WS6ADGC.js → QDOF7WAJ.js} +0 -0
  115. /package/dist/cdn/{3PLX2VZZ.js → QG5I2LDY.js} +0 -0
  116. /package/dist/cdn/{4WTMWS4L.js → RCXLHOT5.js} +0 -0
  117. /package/dist/cdn/{KUGHB56Z.js → RMUOAQL7.js} +0 -0
  118. /package/dist/cdn/{OCYNG6CZ.js → SMGBVJDQ.js} +0 -0
  119. /package/dist/cdn/{5D5K4ODL.js → SWUDJD3D.js} +0 -0
  120. /package/dist/cdn/{TDMJD6KE.js → TXH2FVPB.js} +0 -0
  121. /package/dist/cdn/{ULVWM2Z5.js → TXLEUQGC.js} +0 -0
  122. /package/dist/cdn/{6D7LJWC3.js → URSO4VYE.js} +0 -0
  123. /package/dist/cdn/{Z5KZ3J36.js → VISNMKBR.js} +0 -0
  124. /package/dist/cdn/{WLNDY4AF.js → VM2FDVMM.js} +0 -0
  125. /package/dist/cdn/{ZIHLJCFU.js → VZMX6AAC.js} +0 -0
  126. /package/dist/cdn/{4B2SV3DL.js → W3ELQQ2T.js} +0 -0
  127. /package/dist/cdn/{FFKWCM3U.js → XNUG4O7M.js} +0 -0
  128. /package/dist/cdn/{6IZPSVRK.js → YNAWY2DP.js} +0 -0
  129. /package/dist/cdn/{SF5BNNTL.js → ZDEXTEYL.js} +0 -0
  130. /package/dist/cdn/{BSA3D7EV.js → ZTCPBOG3.js} +0 -0
  131. /package/dist/cdn/{POCKSTPT.js → ZUKUN26H.js} +0 -0
  132. /package/dist/cdn/{X7DC4UOR.js → ZWWCLNZL.js} +0 -0
  133. /package/dist/cdn/assets/{oriented-imagery-viewer-image-viewer → oriented-imagery-viewer-non-panoramic-viewer}/t9n/messages.ar.json +0 -0
  134. /package/dist/cdn/assets/{oriented-imagery-viewer-image-viewer → oriented-imagery-viewer-non-panoramic-viewer}/t9n/messages.bg.json +0 -0
  135. /package/dist/cdn/assets/{oriented-imagery-viewer-image-viewer → oriented-imagery-viewer-non-panoramic-viewer}/t9n/messages.bs.json +0 -0
  136. /package/dist/cdn/assets/{oriented-imagery-viewer-image-viewer → oriented-imagery-viewer-non-panoramic-viewer}/t9n/messages.ca.json +0 -0
  137. /package/dist/cdn/assets/{oriented-imagery-viewer-image-viewer → oriented-imagery-viewer-non-panoramic-viewer}/t9n/messages.cs.json +0 -0
  138. /package/dist/cdn/assets/{oriented-imagery-viewer-image-viewer → oriented-imagery-viewer-non-panoramic-viewer}/t9n/messages.da.json +0 -0
  139. /package/dist/cdn/assets/{oriented-imagery-viewer-image-viewer → oriented-imagery-viewer-non-panoramic-viewer}/t9n/messages.de.json +0 -0
  140. /package/dist/cdn/assets/{oriented-imagery-viewer-image-viewer → oriented-imagery-viewer-non-panoramic-viewer}/t9n/messages.el.json +0 -0
  141. /package/dist/cdn/assets/{oriented-imagery-viewer-image-viewer → oriented-imagery-viewer-non-panoramic-viewer}/t9n/messages.en.json +0 -0
  142. /package/dist/cdn/assets/{oriented-imagery-viewer-image-viewer → oriented-imagery-viewer-non-panoramic-viewer}/t9n/messages.es.json +0 -0
  143. /package/dist/cdn/assets/{oriented-imagery-viewer-image-viewer → oriented-imagery-viewer-non-panoramic-viewer}/t9n/messages.et.json +0 -0
  144. /package/dist/cdn/assets/{oriented-imagery-viewer-image-viewer → oriented-imagery-viewer-non-panoramic-viewer}/t9n/messages.fi.json +0 -0
  145. /package/dist/cdn/assets/{oriented-imagery-viewer-image-viewer → oriented-imagery-viewer-non-panoramic-viewer}/t9n/messages.fr.json +0 -0
  146. /package/dist/cdn/assets/{oriented-imagery-viewer-image-viewer → oriented-imagery-viewer-non-panoramic-viewer}/t9n/messages.he.json +0 -0
  147. /package/dist/cdn/assets/{oriented-imagery-viewer-image-viewer → oriented-imagery-viewer-non-panoramic-viewer}/t9n/messages.hr.json +0 -0
  148. /package/dist/cdn/assets/{oriented-imagery-viewer-image-viewer → oriented-imagery-viewer-non-panoramic-viewer}/t9n/messages.hu.json +0 -0
  149. /package/dist/cdn/assets/{oriented-imagery-viewer-image-viewer → oriented-imagery-viewer-non-panoramic-viewer}/t9n/messages.id.json +0 -0
  150. /package/dist/cdn/assets/{oriented-imagery-viewer-image-viewer → oriented-imagery-viewer-non-panoramic-viewer}/t9n/messages.it.json +0 -0
  151. /package/dist/cdn/assets/{oriented-imagery-viewer-image-viewer → oriented-imagery-viewer-non-panoramic-viewer}/t9n/messages.ja.json +0 -0
  152. /package/dist/cdn/assets/{oriented-imagery-viewer-image-viewer → oriented-imagery-viewer-non-panoramic-viewer}/t9n/messages.ko.json +0 -0
  153. /package/dist/cdn/assets/{oriented-imagery-viewer-image-viewer → oriented-imagery-viewer-non-panoramic-viewer}/t9n/messages.lt.json +0 -0
  154. /package/dist/cdn/assets/{oriented-imagery-viewer-image-viewer → oriented-imagery-viewer-non-panoramic-viewer}/t9n/messages.lv.json +0 -0
  155. /package/dist/cdn/assets/{oriented-imagery-viewer-image-viewer → oriented-imagery-viewer-non-panoramic-viewer}/t9n/messages.nl.json +0 -0
  156. /package/dist/cdn/assets/{oriented-imagery-viewer-image-viewer → oriented-imagery-viewer-non-panoramic-viewer}/t9n/messages.no.json +0 -0
  157. /package/dist/cdn/assets/{oriented-imagery-viewer-image-viewer → oriented-imagery-viewer-non-panoramic-viewer}/t9n/messages.pl.json +0 -0
  158. /package/dist/cdn/assets/{oriented-imagery-viewer-image-viewer → oriented-imagery-viewer-non-panoramic-viewer}/t9n/messages.pt-BR.json +0 -0
  159. /package/dist/cdn/assets/{oriented-imagery-viewer-image-viewer → oriented-imagery-viewer-non-panoramic-viewer}/t9n/messages.pt-PT.json +0 -0
  160. /package/dist/cdn/assets/{oriented-imagery-viewer-image-viewer → oriented-imagery-viewer-non-panoramic-viewer}/t9n/messages.ro.json +0 -0
  161. /package/dist/cdn/assets/{oriented-imagery-viewer-image-viewer → oriented-imagery-viewer-non-panoramic-viewer}/t9n/messages.ru.json +0 -0
  162. /package/dist/cdn/assets/{oriented-imagery-viewer-image-viewer → oriented-imagery-viewer-non-panoramic-viewer}/t9n/messages.sk.json +0 -0
  163. /package/dist/cdn/assets/{oriented-imagery-viewer-image-viewer → oriented-imagery-viewer-non-panoramic-viewer}/t9n/messages.sl.json +0 -0
  164. /package/dist/cdn/assets/{oriented-imagery-viewer-image-viewer → oriented-imagery-viewer-non-panoramic-viewer}/t9n/messages.sr.json +0 -0
  165. /package/dist/cdn/assets/{oriented-imagery-viewer-image-viewer → oriented-imagery-viewer-non-panoramic-viewer}/t9n/messages.sv.json +0 -0
  166. /package/dist/cdn/assets/{oriented-imagery-viewer-image-viewer → oriented-imagery-viewer-non-panoramic-viewer}/t9n/messages.th.json +0 -0
  167. /package/dist/cdn/assets/{oriented-imagery-viewer-image-viewer → oriented-imagery-viewer-non-panoramic-viewer}/t9n/messages.tr.json +0 -0
  168. /package/dist/cdn/assets/{oriented-imagery-viewer-image-viewer → oriented-imagery-viewer-non-panoramic-viewer}/t9n/messages.uk.json +0 -0
  169. /package/dist/cdn/assets/{oriented-imagery-viewer-image-viewer → oriented-imagery-viewer-non-panoramic-viewer}/t9n/messages.vi.json +0 -0
  170. /package/dist/cdn/assets/{oriented-imagery-viewer-image-viewer → oriented-imagery-viewer-non-panoramic-viewer}/t9n/messages.zh-CN.json +0 -0
  171. /package/dist/cdn/assets/{oriented-imagery-viewer-image-viewer → oriented-imagery-viewer-non-panoramic-viewer}/t9n/messages.zh-HK.json +0 -0
  172. /package/dist/cdn/assets/{oriented-imagery-viewer-image-viewer → oriented-imagery-viewer-non-panoramic-viewer}/t9n/messages.zh-TW.json +0 -0
  173. /package/dist/components/{arcgis-oriented-imagery-viewer-image-viewer → arcgis-oriented-imagery-viewer-non-panoramic-viewer}/index.d.ts +0 -0
@@ -726,7 +726,7 @@ export abstract class ArcgisFeatureTable extends LitElement {
726
726
  * @default "m"
727
727
  * @since 4.33
728
728
  */
729
- accessor navigationScale: "s" | "m" | "l";
729
+ accessor navigationScale: "l" | "m" | "s";
730
730
  /**
731
731
  * This property can be used to override the text displayed when the table is fully loaded but no rows are available.
732
732
  *
@@ -188,7 +188,7 @@ export abstract class ArcgisFeatureTemplatesLegacy extends LitElement {
188
188
  *
189
189
  * @default "none"
190
190
  */
191
- accessor selectionMode: "single" | "none" | null | undefined;
191
+ accessor selectionMode: "none" | "single" | null | undefined;
192
192
  /**
193
193
  * The current state of the component.
194
194
  *
@@ -351,7 +351,7 @@ export abstract class ArcgisLayerList extends LitElement {
351
351
  * layerListElement.selectionMode = "multiple";
352
352
  * ```
353
353
  */
354
- accessor selectionMode: "multiple" | "single" | "none" | "single-persist";
354
+ accessor selectionMode: "none" | "single-persist" | "multiple" | "single";
355
355
  /**
356
356
  * Indicates whether to display a close button in the header.
357
357
  *
@@ -330,6 +330,14 @@ export abstract class ArcgisLayerListNext extends LitElement {
330
330
  * ```
331
331
  */
332
332
  accessor listItemCreatedFunction: ListItemModifier | null | undefined;
333
+ /**
334
+ * Specifies whether to ignore the [listMode](https://developers.arcgis.com/javascript/latest/references/core/layers/Layer/#listMode) property to display all layers. A common use case for `listModeDisabled` is when you want to use the component to manage and configure a layer's `listMode` value.
335
+ *
336
+ * @default false
337
+ * @see [listMode](https://developers.arcgis.com/javascript/latest/references/core/layers/Layer/#listMode)
338
+ * @since 5.2
339
+ */
340
+ accessor listModeDisabled: boolean;
333
341
  /**
334
342
  * Overwrite localized strings for this component
335
343
  *
@@ -11,30 +11,30 @@ import { u as S } from "../../chunks/useT9n.js";
11
11
  import { m as U } from "../../chunks/useViewModel.js";
12
12
  import { g as $ } from "../../chunks/globalCss.js";
13
13
  import { c as y } from "../../chunks/css.js";
14
- import { g as d, a as F, m as G, b as H, r as V, s as j, c as q, d as z, e as J } from "../../chunks/layer-list-utils.js";
15
- import m from "@arcgis/core/core/Collection.js";
14
+ import { g as m, a as T, m as G, b as H, r as V, s as j, c as q, d as z, e as J } from "../../chunks/layer-list-utils.js";
15
+ import p from "@arcgis/core/core/Collection.js";
16
16
  import { on as C, watch as K } from "@arcgis/core/core/reactiveUtils.js";
17
- import { LitElement as Q, createEvent as L, renderElement as M, safeClassMap as E, nothing as A } from "@arcgis/lumina";
17
+ import { LitElement as Q, createEvent as L, renderElement as F, safeClassMap as E, nothing as A } from "@arcgis/lumina";
18
18
  import { usePropertyChange as W } from "@arcgis/lumina/controllers";
19
19
  import { reEmitEvent as X } from "@arcgis/lumina/controllers/accessor";
20
20
  import "@arcgis/toolkit/function";
21
21
  import { u as Y } from "../../chunks/useCloseEvent.js";
22
- import { ArcgisLayerListItem as Z } from "./layer-list-item/customElement.js";
23
- import { s as ee, a as te } from "../../chunks/layer-list-next.js";
22
+ import { r as Z, A as ee } from "../../chunks/layer-list-item.js";
23
+ import { s as te, a as se } from "../../chunks/layer-list-next.js";
24
24
  import "../arcgis-layer-list-item-indicator/customElement.js";
25
- const O = "nested", se = U(x);
26
- class ie extends Q {
25
+ const O = "nested", ie = U(x);
26
+ class ae extends Q {
27
27
  constructor() {
28
28
  super(...arguments), this._lastDragDetail = null, this._rootListRef = w(), this._layerFlowItemRef = w(), this._panelFlowItemRef = w(), this._selectedDragItemLayerUid = null, this._rootGroupUid = `operational-${k()}`, this._openedLayersController = null, this.messages = S(), this._canMove = ({ dragEl: e, fromEl: t, toEl: s }, a) => {
29
- const i = a === "pull" ? this.listItemCanGiveFunction : this.listItemCanReceiveFunction, r = d(e, this.operationalItems);
29
+ const i = a === "pull" ? this.listItemCanGiveFunction : this.listItemCanReceiveFunction, r = m(e, this.operationalItems);
30
30
  if (!r?.sortable)
31
31
  return !1;
32
- const o = this._resolveListContainer(t), l = this._resolveListContainer(s), n = this._getContainerItem(o), p = F(o), g = this._getContainerItem(l), u = F(l), I = !!p && !!u && p === u, f = {
32
+ const o = this._resolveListContainer(t), l = this._resolveListContainer(s), n = this._getContainerItem(o), d = T(o), g = this._getContainerItem(l), u = T(l), I = !!d && !!u && d === u, f = {
33
33
  selected: r,
34
34
  from: n,
35
35
  to: g
36
- }, _ = o?.group, c = l?.group, P = n?.layer?.type ?? "", D = g?.layer?.type ?? "", T = /* @__PURE__ */ new Set(["map-image", "catalog", "knowledge-graph"]);
37
- return _ && c && typeof i == "function" ? i(f) : I && !T.has(P) && !T.has(D) && r?.layer?.type !== "sublayer";
36
+ }, _ = o?.group, c = l?.group, D = n?.layer?.type ?? "", P = g?.layer?.type ?? "", M = /* @__PURE__ */ new Set(["map-image", "catalog", "knowledge-graph"]);
37
+ return _ && c && typeof i == "function" ? i(f) : I && !M.has(D) && !M.has(P) && r?.layer?.type !== "sublayer";
38
38
  }, this._onCatalogOpen = (e) => {
39
39
  this.openedLayers.push(e.layer?.parent);
40
40
  }, this._onTablesOpen = (e) => {
@@ -46,21 +46,21 @@ class ie extends Q {
46
46
  }, this._setActiveItem = (e) => {
47
47
  if (this.visibilityAppearance !== "default")
48
48
  return;
49
- const t = Array.from(e.composedPath()).find((a) => a.classList?.contains(y.item)), s = d(t, this.operationalItems);
49
+ const t = Array.from(e.composedPath()).find((a) => a.classList?.contains(y.item)), s = m(t, this.operationalItems);
50
50
  this._activeItem = s;
51
- }, this.viewModel = se(this), this.arcgisClose = Y(this), this._activeItem = null, this._onTooltipReferenceChange = (e, t) => {
51
+ }, this.viewModel = ie(this), this.arcgisClose = Y(this), this._activeItem = null, this._onTooltipReferenceChange = (e, t) => {
52
52
  t ? this._tooltipReferenceMap.set(e, t) : this._tooltipReferenceMap.delete(e);
53
53
  }, this._onSelectedDragItemLayerUidChange = (e) => {
54
54
  this._selectedDragItemLayerUid = e;
55
55
  }, this._onTriggerAction = (e, t) => {
56
56
  this.triggerAction(e, t);
57
- }, this._tooltipReferenceMap = /* @__PURE__ */ new Map(), this._layerListMap = /* @__PURE__ */ new Map(), this.layerTablesEnabled = new m(["knowledge-graph"]), this.mapImageOptions = null, this.openedLayerLists = new m(), this.tileOptions = null, this.view = this.viewModel.view, this.autoDestroyDisabled = !1, this.closed = !1, this.icon = "layers", this.collapsed = !1, this.dragEnabled = !1, this.filterPlaceholder = "", this.filterText = "", this.headingLevel = 2, this.layerTablesAvailable = new m(["knowledge-graph"]), this.listItemCreatedFunction = this.viewModel.listItemCreatedFunction, this.minDragEnabledItems = G, this.minFilterItems = H, this.openedLayers = new m(), this.operationalItems = this.viewModel.operationalItems, this.selectedItems = new m(), this.selectionMode = "none", this.visibilityAppearance = "default", this.hideCatalogLayerList = !1, this.showCloseButton = !1, this.showCollapseButton = !1, this.showErrors = !1, this.hideNoFilterResultsNotice = !1, this.hideNoItemsNotice = !1, this.showFilter = !1, this.showHeading = !1, this.hideStatusIndicators = !1, this.showTemporaryLayerIndicators = !1, this.state = this.viewModel.state, this.arcgisPropertyChange = W()("state"), this.arcgisReady = L(), this.arcgisFilterChange = L(), this.arcgisSelectedItemsChange = L(), this.arcgisOpenedLayersChange = L(), this.arcgisTriggerAction = X(() => this.viewModel, "trigger-action");
57
+ }, this._tooltipReferenceMap = /* @__PURE__ */ new Map(), this._layerListMap = /* @__PURE__ */ new Map(), this.layerTablesEnabled = new p(["knowledge-graph"]), this.mapImageOptions = null, this.openedLayerLists = new p(), this.tileOptions = null, this.view = this.viewModel.view, this.autoDestroyDisabled = !1, this.closed = !1, this.icon = "layers", this.collapsed = !1, this.dragEnabled = !1, this.filterPlaceholder = "", this.filterText = "", this.headingLevel = 2, this.layerTablesAvailable = new p(["knowledge-graph"]), this.listItemCreatedFunction = this.viewModel.listItemCreatedFunction, this.listModeDisabled = this.viewModel.listModeDisabled, this.minDragEnabledItems = G, this.minFilterItems = H, this.openedLayers = new p(), this.operationalItems = this.viewModel.operationalItems, this.selectedItems = new p(), this.selectionMode = "none", this.visibilityAppearance = "default", this.hideCatalogLayerList = !1, this.showCloseButton = !1, this.showCollapseButton = !1, this.showErrors = !1, this.hideNoFilterResultsNotice = !1, this.hideNoItemsNotice = !1, this.showFilter = !1, this.showHeading = !1, this.hideStatusIndicators = !1, this.showTemporaryLayerIndicators = !1, this.state = this.viewModel.state, this.arcgisPropertyChange = W()("state"), this.arcgisReady = L(), this.arcgisFilterChange = L(), this.arcgisSelectedItemsChange = L(), this.arcgisOpenedLayersChange = L(), this.arcgisTriggerAction = X(() => this.viewModel, "trigger-action");
58
58
  }
59
59
  static {
60
- this.properties = { _catalogLayerList: 16, _tableList: 16, _tooltipReferenceMap: 16, _layerListMap: 16, _totalItems: 16, _visibleItems: 16, _openedPanelItems: 16, _dragEnabled: 16, _filterEnabled: 16, layerTablesEnabled: 16, mapImageOptions: 16, openedLayerLists: 16, tileOptions: 16, _renderedOpenLayerFlowItems: 16, view: 0, autoDestroyDisabled: 5, closed: 5, referenceElement: 1, icon: 1, catalogLayerList: 32, catalogOptions: 0, collapsed: 5, dragEnabled: 5, filterPlaceholder: 1, filterPredicate: 0, filterText: 1, headingLevel: 9, knowledgeGraphOptions: 0, layerTablesAvailable: 0, listItemCanGiveFunction: 0, listItemCanReceiveFunction: 0, listItemCreatedFunction: 0, minDragEnabledItems: 9, minFilterItems: 9, openedLayers: 32, operationalItems: 0, selectedItems: 0, selectionMode: 1, tableList: 32, visibilityAppearance: 1, hideCatalogLayerList: 5, showCloseButton: 5, showCollapseButton: 5, showErrors: 5, hideNoFilterResultsNotice: 5, hideNoItemsNotice: 5, showFilter: 5, showHeading: 5, hideStatusIndicators: 5, showTemporaryLayerIndicators: 5, messageOverrides: 0, label: 1, state: 32 };
60
+ this.properties = { _catalogLayerList: 16, _tableList: 16, _tooltipReferenceMap: 16, _layerListMap: 16, _totalItems: 16, _visibleItems: 16, _openedPanelItems: 16, _dragEnabled: 16, _filterEnabled: 16, layerTablesEnabled: 16, mapImageOptions: 16, openedLayerLists: 16, tileOptions: 16, _renderedOpenLayerFlowItems: 16, view: 0, autoDestroyDisabled: 5, closed: 5, referenceElement: 1, icon: 1, catalogLayerList: 32, catalogOptions: 0, collapsed: 5, dragEnabled: 5, filterPlaceholder: 1, filterPredicate: 0, filterText: 1, headingLevel: 9, knowledgeGraphOptions: 0, layerTablesAvailable: 0, listItemCanGiveFunction: 0, listItemCanReceiveFunction: 0, listItemCreatedFunction: 0, listModeDisabled: 5, minDragEnabledItems: 9, minFilterItems: 9, openedLayers: 32, operationalItems: 0, selectedItems: 0, selectionMode: 1, tableList: 32, visibilityAppearance: 1, hideCatalogLayerList: 5, showCloseButton: 5, showCollapseButton: 5, showErrors: 5, hideNoFilterResultsNotice: 5, hideNoItemsNotice: 5, showFilter: 5, showHeading: 5, hideStatusIndicators: 5, showTemporaryLayerIndicators: 5, messageOverrides: 0, label: 1, state: 32 };
61
61
  }
62
62
  static {
63
- this.styles = [ee, te];
63
+ this.styles = [te, se];
64
64
  }
65
65
  get _totalItems() {
66
66
  return this.viewModel.operationalItems.flatten((e) => e.children.filter((t) => t.layer?.type !== "catalog-dynamic-group")).length;
@@ -154,7 +154,7 @@ class ie extends Q {
154
154
  }
155
155
  async _createCatalogLayerList(e) {
156
156
  const { headingLevel: t, catalogOptions: s, filterPlaceholder: a, listItemCreatedFunction: i, minFilterItems: r, selectionMode: o, visibilityAppearance: l } = this;
157
- return M(h`<arcgis-catalog-layer-list-next .headingLevel=${t} .filterPlaceholder=${s?.filterPlaceholder ?? a} .listItemCreatedFunction=${s?.listItemCreatedFunction ?? i} .minFilterItems=${s?.minFilterItems ?? r} .selectionMode=${s?.selectionMode ?? o} .visibilityAppearance=${s?.visibilityAppearance ?? l} .showErrors=${s?.visibleElements?.errors ?? this.showErrors} .showFilter=${s?.visibleElements?.filter ?? this.showFilter} .hideStatusIndicators=${s?.visibleElements?.statusIndicators ?? this.hideStatusIndicators} .showTemporaryLayerIndicators=${s?.visibleElements?.temporaryLayerIndicators ?? this.showTemporaryLayerIndicators} .messageOverrides=${this.messageOverrides} @arcgisReady=${(n) => n.stopPropagation()} .catalogLayer=${e} .view=${this.view} .referenceElement=${this.referenceElement} @catalogOpen=${this._onCatalogOpen} @tablesOpen=${this._onTablesOpen}></arcgis-catalog-layer-list-next>`);
157
+ return F(h`<arcgis-catalog-layer-list-next .headingLevel=${t} .filterPlaceholder=${s?.filterPlaceholder ?? a} .listItemCreatedFunction=${s?.listItemCreatedFunction ?? i} .minFilterItems=${s?.minFilterItems ?? r} .selectionMode=${s?.selectionMode ?? o} .visibilityAppearance=${s?.visibilityAppearance ?? l} .showErrors=${s?.visibleElements?.errors ?? this.showErrors} .showFilter=${s?.visibleElements?.filter ?? this.showFilter} .hideStatusIndicators=${s?.visibleElements?.statusIndicators ?? this.hideStatusIndicators} .showTemporaryLayerIndicators=${s?.visibleElements?.temporaryLayerIndicators ?? this.showTemporaryLayerIndicators} .messageOverrides=${this.messageOverrides} @arcgisReady=${(n) => n.stopPropagation()} .catalogLayer=${e} .view=${this.view} .referenceElement=${this.referenceElement} @catalogOpen=${this._onCatalogOpen} @tablesOpen=${this._onTablesOpen}></arcgis-catalog-layer-list-next>`);
158
158
  }
159
159
  _getTableListParams(e) {
160
160
  switch (e.type) {
@@ -176,14 +176,14 @@ class ie extends Q {
176
176
  }
177
177
  async _createTableList(e) {
178
178
  const { headingLevel: t, selectionMode: s, dragEnabled: a } = this, i = this._getTableListParams(e);
179
- return M(h`<arcgis-table-list-next .headingLevel=${i?.headingLevel ?? t} .selectionMode=${i?.selectionMode ?? s} .dragEnabled=${i?.dragEnabled ?? a} .collapsed=${i?.collapsed} .filterPlaceholder=${i?.filterPlaceholder} .filterText=${i?.filterText} .icon=${i?.icon ?? void 0} .label=${i?.label ?? void 0} .listItemCreatedFunction=${i?.listItemCreatedFunction} .messageOverrides=${this.messageOverrides} .tables=${i?.tables} .referenceElement=${this.referenceElement} @arcgisReady=${(r) => r.stopPropagation()}></arcgis-table-list-next>`);
179
+ return F(h`<arcgis-table-list-next .headingLevel=${i?.headingLevel ?? t} .selectionMode=${i?.selectionMode ?? s} .dragEnabled=${i?.dragEnabled ?? a} .collapsed=${i?.collapsed} .filterPlaceholder=${i?.filterPlaceholder} .filterText=${i?.filterText} .icon=${i?.icon ?? void 0} .label=${i?.label ?? void 0} .listItemCreatedFunction=${i?.listItemCreatedFunction} .messageOverrides=${this.messageOverrides} .tables=${i?.tables} .referenceElement=${this.referenceElement} @arcgisReady=${(r) => r.stopPropagation()}></arcgis-table-list-next>`);
180
180
  }
181
181
  _handlePanelFlowItemBack(e) {
182
182
  e.open = !1;
183
183
  }
184
184
  _moveLayerFromChildList({ toEl: e, fromEl: t, dragEl: s, newIndex: a }) {
185
- const i = this._resolveListContainer(e), r = this._resolveListContainer(t), o = d(s, this.operationalItems), l = this._getContainerItem(i), n = this._getContainerItem(r);
186
- a == null || !o || this.viewModel.moveListItem(o, n, l, a);
185
+ const i = this._resolveListContainer(e), r = this._resolveListContainer(t), o = m(s, this.operationalItems), l = this._getContainerItem(i), n = this._getContainerItem(r);
186
+ a == null || !o || (this.viewModel.moveListItem(o, n, l, a), Z(this, o.uid, (d) => this._resolveListContainer(d.parentElement) === i));
187
187
  }
188
188
  _onCalciteListDragEnd(e) {
189
189
  const { fromEl: t, toEl: s, dragEl: a, oldIndex: i } = e;
@@ -218,7 +218,7 @@ class ie extends Q {
218
218
  if (e === this._rootListRef.value)
219
219
  q(this.el.view?.map?.layers, t);
220
220
  else {
221
- const s = d(e, this.operationalItems);
221
+ const s = m(e, this.operationalItems);
222
222
  if (!s)
223
223
  return;
224
224
  z(s, t);
@@ -228,7 +228,7 @@ class ie extends Q {
228
228
  const { selectionMode: t, selectedItems: s } = this;
229
229
  if (t === "none")
230
230
  return;
231
- const i = e.target.selectedItems.map((r) => d(r, this.operationalItems)).filter(Boolean);
231
+ const i = e.target.selectedItems.map((r) => m(r, this.operationalItems)).filter(Boolean);
232
232
  s.removeAll(), s.addMany(i);
233
233
  }
234
234
  render() {
@@ -273,8 +273,8 @@ class ie extends Q {
273
273
  });
274
274
  }
275
275
  _renderItems() {
276
- const { collapsed: e, _visibleItems: t, _openedPanelItems: s, _filterEnabled: a, _rootGroupUid: i, showCloseButton: r, showCollapseButton: o, showHeading: l, _dragEnabled: n, selectionMode: p, filterText: g, openedLayers: u, filterPlaceholder: I, messages: f } = this, _ = [
277
- h`<calcite-flow-item .closable=${r} .closed=${this.closed} .collapsed=${e} .collapsible=${o} .heading=${l ? f.componentLabel : void 0} .headingLevel=${this.headingLevel} .selected=${!u.length && !s.length} @calciteFlowItemClose=${() => this.closed = !1}>${t?.length ? h`<calcite-list @focusin=${this._setActiveItem} @focusout=${this._clearActiveItem} .canPull=${(c) => this._canMove(c, "pull")} .canPut=${(c) => this._canMove(c, "put")} data-layer-type=${i ?? A} .displayMode=${O} .dragEnabled=${n} .filterEnabled=${a} .filterPlaceholder=${I} .filterProps=${J} .filterText=${a ? g : ""} .group=${i} .label=${f.componentLabel} @mouseleave=${this._clearActiveItem} @mouseover=${this._setActiveItem} selection-appearance=highlight .selectionMode=${p} @calciteListChange=${this._handleCalciteListChange} @calciteListFilter=${(c) => {
276
+ const { collapsed: e, _visibleItems: t, _openedPanelItems: s, _filterEnabled: a, _rootGroupUid: i, showCloseButton: r, showCollapseButton: o, showHeading: l, _dragEnabled: n, selectionMode: d, filterText: g, openedLayers: u, filterPlaceholder: I, messages: f } = this, _ = [
277
+ h`<calcite-flow-item .closable=${r} .closed=${this.closed} .collapsed=${e} .collapsible=${o} .heading=${l ? f.componentLabel : void 0} .headingLevel=${this.headingLevel} .selected=${!u.length && !s.length} @calciteFlowItemClose=${() => this.closed = !1}>${t?.length ? h`<calcite-list @focusin=${this._setActiveItem} @focusout=${this._clearActiveItem} .canPull=${(c) => this._canMove(c, "pull")} .canPut=${(c) => this._canMove(c, "put")} data-layer-type=${i ?? A} .displayMode=${O} .dragEnabled=${n} .filterEnabled=${a} .filterPlaceholder=${I} .filterProps=${J} .filterText=${a ? g : ""} .group=${i} .label=${f.componentLabel} @mouseleave=${this._clearActiveItem} @mouseover=${this._setActiveItem} selection-appearance=highlight .selectionMode=${d} @calciteListChange=${this._handleCalciteListChange} @calciteListFilter=${(c) => {
278
278
  this.filterText = c.currentTarget?.filterText ?? "", this.arcgisFilterChange.emit();
279
279
  }} @calciteListOrderChange=${(c) => this._onCalciteListOrderChange(c.detail)} @calciteListDragEnd=${(c) => this._onCalciteListDragEnd(c.detail)} ${b(this._rootListRef)}>${t.toArray().map((c) => this._renderItem(c))}${a && !this.hideNoFilterResultsNotice ? h`<div class=${E(y.filterNoResults)} slot=filter-no-results><calcite-notice kind=info open width=full>${this._renderNoItemsMessage()}</calcite-notice></div>` : null}</calcite-list>` : this._renderNoItems()}</calcite-flow-item>`,
280
280
  this._renderPanelFlowItems(),
@@ -283,10 +283,10 @@ class ie extends Q {
283
283
  return this.closed ? null : v("root-flow", h`<calcite-flow>${_}</calcite-flow>`);
284
284
  }
285
285
  _renderItem(e, t, s) {
286
- return v(e.uid, Z({ activeItem: this._activeItem, canMove: this._canMove, css: y, displayMode: O, dragEnabled: this.dragEnabled, hideStatusIndicators: this.hideStatusIndicators, hideCatalogLayerList: this.hideCatalogLayerList, item: e, messages: this.messages, layerTablesEnabled: this.layerTablesEnabled, listModeDisabled: this.viewModel.listModeDisabled, operationalItems: this.operationalItems, parent: t, parentTitles: s, rootGroupUid: this._rootGroupUid, selectedDragItemLayerUid: this._selectedDragItemLayerUid, selectedItems: this.selectedItems, selectionMode: this.selectionMode, setCurrentActiveItem: this._setCurrentActiveItem, showTemporaryLayerIndicators: this.showTemporaryLayerIndicators, showCloseButton: this.showCloseButton, showCollapseButton: this.showCollapseButton, showErrors: this.showErrors, showHeading: this.showHeading, showFilter: this.showFilter, clearActiveItem: this._clearActiveItem, visibilityAppearance: this.visibilityAppearance, handleAction: this._onTriggerAction, handleCatalogOpen: this._onCatalogOpen, handleSelectedDragItemLayerUidChange: this._onSelectedDragItemLayerUidChange, handleTablesOpen: this._onTablesOpen, handleTooltipReferenceChange: this._onTooltipReferenceChange, view: this.view }));
286
+ return v(e.uid, ee({ activeItem: this._activeItem, canMove: this._canMove, css: y, displayMode: O, dragEnabled: this.dragEnabled, hideStatusIndicators: this.hideStatusIndicators, hideCatalogLayerList: this.hideCatalogLayerList, item: e, messages: this.messages, layerTablesEnabled: this.layerTablesEnabled, listModeDisabled: this.viewModel.listModeDisabled, operationalItems: this.operationalItems, parent: t, parentTitles: s, rootGroupUid: this._rootGroupUid, selectedDragItemLayerUid: this._selectedDragItemLayerUid, selectedItems: this.selectedItems, selectionMode: this.selectionMode, setCurrentActiveItem: this._setCurrentActiveItem, showTemporaryLayerIndicators: this.showTemporaryLayerIndicators, showCloseButton: this.showCloseButton, showCollapseButton: this.showCollapseButton, showErrors: this.showErrors, showHeading: this.showHeading, showFilter: this.showFilter, clearActiveItem: this._clearActiveItem, visibilityAppearance: this.visibilityAppearance, handleAction: this._onTriggerAction, handleCatalogOpen: this._onCatalogOpen, handleSelectedDragItemLayerUidChange: this._onSelectedDragItemLayerUidChange, handleTablesOpen: this._onTablesOpen, handleTooltipReferenceChange: this._onTooltipReferenceChange, view: this.view }));
287
287
  }
288
288
  }
289
- R("arcgis-layer-list-next", ie);
289
+ R("arcgis-layer-list-next", ae);
290
290
  export {
291
- ie as ArcgisLayerListNext
291
+ ae as ArcgisLayerListNext
292
292
  };
@@ -1,157 +1,13 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import { html as c } from "lit";
3
- import { keyed as Y } from "lit/directives/keyed.js";
4
- import { isLayerFromCatalog as Se } from "@arcgis/core/layers/catalog/catalogUtils.js";
5
- import { safeClassMap as u, safeStyleMap as xe, nothing as r } from "@arcgis/lumina";
6
- import { classes as F } from "@arcgis/toolkit/dom";
7
- import { createRef as Z, ref as ee } from "lit/directives/ref.js";
8
- import { g as Me, a as le } from "../../../chunks/action-utils.js";
9
- import { h as Le, j as te, l as Ee, k as ke, n as we, o as Pe, g as De } from "../../../chunks/layer-list-utils.js";
10
- import { s as Fe } from "../../../chunks/component-utils.js";
11
- const ne = /* @__PURE__ */ new Map();
12
- function ce(i) {
13
- return i ? ne.get(i) ?? !1 : !1;
14
- }
15
- function Oe(i, e) {
16
- const l = !(i.aria?.pressed ?? ce(e));
17
- return i.aria = { ...i.aria, pressed: l }, e && ne.set(e, l), l;
18
- }
19
- function O(i) {
20
- return i && "visibilityMode" in i ? i.visibilityMode : null;
21
- }
22
- function ie(i, e) {
23
- if (!("visible" in i))
24
- return;
25
- O(e) === "exclusive" && i.visible || (i.visible = !i.visible);
26
- }
27
- function Ge(i, e) {
28
- i.panel.open = !i.panel.open, i.panel.open && e && e();
29
- }
30
- function Re(i, e, l, d) {
31
- i && l === e.layer?.uid && (Fe(i), d?.(null));
32
- }
33
- function Ve(i, e, l) {
34
- l.type === "toggle" && (l.value = !l.value), i(l, e);
35
- }
36
- function He(i) {
37
- return i.actionsSections.map((e) => e.filter((l) => l.visible));
38
- }
39
- function se(i, e) {
40
- const { icon: l } = e;
41
- if (l)
42
- return null;
43
- const d = "image" in e ? e.image : void 0;
44
- return d ? c`<span aria-hidden=true class=${u(F(i.itemActionIcon, { [i.itemActionImage]: !!d }))} style=${xe(Me(d))}></span>` : null;
45
- }
46
- function ae(i, e, l) {
47
- const { item: d, css: C, handleAction: a } = i, { active: v, disabled: T, title: f, type: h, indicator: S } = e, I = le(e);
48
- return c`<calcite-action .active=${h === "toggle" ? e.value : !1} data-action-id=${e.id ?? r} .disabled=${T} .icon=${I} .indicator=${S} .loading=${v} @click=${() => Ve(a, d, e)} scale=s slot=${(l ? void 0 : "actions-end") ?? r} .text=${f ?? ""} .textEnabled=${l} title=${f ?? void 0 ?? r}>${se(C, e)}</calcite-action>`;
49
- }
50
- function Ue(i) {
51
- const { item: e, itemType: l = "layer", parent: d, hideStatusIndicators: C, css: a, visibilityAppearance: v, hideCatalogLayerList: T, dragEnabled: f = !1, rootGroupUid: h, listModeDisabled: S = !1, selectionMode: I, displayMode: oe, layerTablesEnabled: x, showErrors: re, parentTitles: G, selectedItems: de, activeItem: ue, handleCatalogOpen: me, handleTablesOpen: $e, selectedDragItemLayerUid: ge, handleSelectedDragItemLayerUidChange: pe, handlePanelOpen: be, messages: n, setCurrentActiveItem: R, clearActiveItem: V } = i, g = Z(), M = Z(), ye = l === "table" ? n.untitledTable ?? "" : n.untitledLayer ?? "", b = e.title || ye || "";
52
- let H = null;
53
- C || (H = c`<arcgis-layer-list-item-indicator class=${u(a.statusIndicator)} .messages=${n} .item=${e} .parent=${d} slot=content-end></arcgis-layer-list-item-indicator>`);
54
- let U = null;
55
- {
56
- const { layer: t } = e, s = t && "persistenceEnabled" in t && (Se(t) || !t.persistenceEnabled);
57
- (i.showTemporaryLayerIndicators || i.showTemporaryTableIndicators) && s && (U = c`<calcite-icon class=${u(a.itemTemporaryIcon)} icon=temporary scale=s slot=content-start title=${n.temporary ?? r}></calcite-icon>`);
58
- }
59
- let q = null;
60
- if ("visible" in e && "visibleToggle" in a && v) {
61
- const t = O(d);
62
- if (t !== "inherited") {
63
- const s = Le({
64
- visible: e.visible,
65
- exclusive: t === "exclusive",
66
- visibilityAppearance: v
67
- }), o = v === "checkbox", m = n.layerVisibility, y = e.title ?? e.layer?.title ?? "", p = y ? `${m ?? ""}: ${y}` : m ?? "", P = ce(e.layer?.id);
68
- q = c`<calcite-action .aria=${{ pressed: P }} class=${u(a.visibleToggle)} .icon=${o ? s : void 0} .label=${p} @click=${(D) => {
69
- Oe(D.currentTarget, e.layer?.id), ie(e, d);
70
- }} .slot=${o ? "actions-start" : "actions-end"} .text=${m ?? ""} title=${m ?? r}>${o ? null : c`<calcite-icon class=${u(F({
71
- [a.visibleIcon]: t !== "exclusive" && e.visible
72
- }))} .icon=${s} scale=s></calcite-icon>`}</calcite-action>`;
73
- }
74
- }
75
- let j = null;
76
- {
77
- const t = e.panel;
78
- t?.open && !t.disabled && !t.flowEnabled && (j = c`<div class=${u(a.itemContentBottom)} slot=content-bottom><arcgis-layer-list-item-panel .item=${e} .view=${i.view}></arcgis-layer-list-item-panel></div>`);
79
- }
80
- let B = null;
81
- {
82
- const t = e.panel;
83
- if (t?.visible) {
84
- const { open: s, title: o, disabled: m } = t, y = { icon: t.icon, image: t.image, indicator: !1 }, p = le(y);
85
- B = c`<calcite-action .active=${s} .disabled=${m} .icon=${p} @click=${() => Ge(e, be)} slot=actions-end .text=${o ?? ""} title=${o ?? void 0 ?? r}>${se(a, t)}</calcite-action>`;
86
- }
87
- }
88
- let N = null;
89
- {
90
- const t = e.layer, s = t?.type === "catalog-footprint", o = t?.type === "sublayer" && te(t, "footprints");
91
- "itemCatalogIcon" in a && (s || o) && (N = c`<calcite-icon class=${u(a.itemCatalogIcon)} icon=footprint scale=s slot=content-start></calcite-icon>`);
92
- }
93
- let _ = null;
94
- {
95
- const t = e.layer, s = t?.type === "catalog-dynamic-group", o = t?.type === "sublayer" && te(t, "layers-in-view");
96
- "itemCatalogIcon" in a && (s || o) && (_ = c`<calcite-icon class=${u(a.itemCatalogIcon)} icon=catalog-dataset scale=s slot=content-start></calcite-icon>`);
97
- }
98
- let z = null;
99
- if ("visible" in e) {
100
- const t = e.layer;
101
- !T && t?.type === "catalog-dynamic-group" && (z = c`<calcite-action .disabled=${!t.visible} icon=chevron-right icon-flip-rtl @click=${() => me?.(e)} scale=s slot=actions-end .text=${b ?? ""}></calcite-action>`);
102
- }
103
- let J = null, L = !1;
104
- {
105
- const t = e.layer;
106
- if (x && t)
107
- switch (t.type) {
108
- case "knowledge-graph":
109
- L = x.includes(t.type) && "tables" in t && !!t.tables?.length;
110
- break;
111
- case "map-image":
112
- case "tile":
113
- L = x.includes(t.type) && "subtables" in t && !!t.subtables?.length;
114
- break;
115
- }
116
- "itemTableIcon" in a && "visible" in e && "tables" in n && L && (J = Y(`${e.uid}-tables`, c`<calcite-list-item class=${u(a.item)} data-layer-id=${t?.id ?? r} drag-disabled .label=${n.tables} title=${n.tables ?? r} @calciteListItemSelect=${() => $e?.(e)} .value=${e}><calcite-icon class=${u(a.itemTableIcon)} icon=table scale=s slot=content-start></calcite-icon><calcite-icon flip-rtl icon=chevron-right scale=s slot=content-end></calcite-icon></calcite-list-item>`));
117
- }
118
- let K = null;
119
- if ("children" in e) {
120
- const t = [...G ?? [], e.title], { children: s, layer: o } = e, m = o?.type !== "catalog-dynamic-group" && Ee(e), y = S ? !1 : ke(o), p = o?.type === "group", P = !y && !m && f && p, D = p && "sortable" in e && e.sortable, Ce = f && ("childrenSortable" in e && e.childrenSortable || D) && we(e), Te = m ? (s?.filter(($) => !$.hidden && (re || !$.error)).toArray() ?? []).map(($) => Ue({ ...i, item: $, parent: e, parentTitles: t })) : null;
121
- (m || P) && (K = c`<calcite-list .canPull=${($) => i.canMove ? i.canMove($, "pull") : !1} .canPut=${($) => i.canMove ? i.canMove($, "put") : !1} data-item=${e.uid ?? r} data-layer-type=${h ?? r} .displayMode=${oe} .dragEnabled=${Ce} .group=${p ? h : `${h}-${o?.uid}`} .label=${e.title} selection-appearance=highlight .selectionMode=${I}>${Te}${J}</calcite-list>`);
122
- }
123
- let E = null;
124
- if (e.error) {
125
- const t = "layerError" in n ? n.layerError : n.tableError;
126
- E = c`<div class=${u(a.itemMessage)} slot=content-bottom><calcite-notice icon=exclamation-mark-triangle kind=warning open scale=s width=full><div slot=message>${t}</div></calcite-notice></div>`;
127
- } else "incompatible" in e && e.incompatible && "layerIncompatible" in n && (E = c`<div class=${u(a.itemMessage)} slot=content-bottom><calcite-notice icon=exclamation-mark-triangle kind=warning open scale=s tabindex=0 width=full ${ee(M)}><div slot=message>${n.layerIncompatible}</div></calcite-notice></div>`);
128
- const Q = He(e), k = e.actionsSections.reduce((t, s) => t + s.length, 0), W = Pe(Q), ve = Q.toArray().map((t) => c`<calcite-action-group>${t.toArray().map((s) => ae(i, s, !0))}</calcite-action-group>`), fe = (t) => {
129
- e.actionsOpen = t.currentTarget.open;
130
- };
131
- let X = null;
132
- k > 1 && (X = c`<calcite-action-menu appearance=transparent .label=${n.menu ?? ""} .open=${e.actionsOpen} overlay-positioning=fixed placement=bottom-end slot=actions-end @calciteActionMenuOpen=${fe}><calcite-action .aria=${{
133
- expanded: e.actionsOpen ?? !1,
134
- hasPopup: "true"
135
- }} icon=ellipsis scale=s slot=trigger .text=${n.options ?? ""} title=${n.options ?? r}></calcite-action>${ve}</calcite-action-menu>`);
136
- let w = null;
137
- k === 1 && W ? w = ae(i, W, !1) : k > 1 && (w = X);
138
- const he = "visibleAtCurrentTimeExtent" in e && "layerInvisibleAtTime" in n && !e.visibleAtCurrentTimeExtent ? `${b} (${n.layerInvisibleAtTime})` : "visibleAtCurrentScale" in e && "layerInvisibleAtScale" in n && !e.visibleAtCurrentScale ? `${b} (${n.layerInvisibleAtScale})` : b, Ie = "parent" in e && e.parent?.layer?.type === "catalog", A = e.layer, Ae = "visibleAtCurrentScale" in e && !e.visibleAtCurrentScale || "visibleAtCurrentTimeExtent" in e && !e.visibleAtCurrentTimeExtent;
139
- return queueMicrotask(() => {
140
- Re(g.value ?? null, e, ge, pe), M.value && (i.handleTooltipReferenceChange?.(A?.uid, M.value), queueMicrotask(() => i.handleTooltipReferenceChange?.(A?.uid, null))), e.panel && (e.panel.container = g.value);
141
- }), Y(e.uid, c`<calcite-list-item class=${u(F(a.item, "itemActive" in a && { [a.itemActive]: ue?.uid === e.uid }))} data-item=${e.uid ?? r} data-layer-id=${A?.id ?? r} .dragDisabled=${!("sortable" in e && e.sortable) || Ie} id=${A?.uid ?? r} .label=${b} .metadata=${{ parentTitles: G ?? [], _title: b }} .expanded=${"open" in e && e.open} .selected=${I !== "none" ? de.includes(e) : !1} title=${he ?? r} .unavailable=${Ae} .value=${e} @focusin=${() => {
142
- R?.(e), g.value?.classList.add(a.itemActive);
143
- }} @focusout=${() => {
144
- V?.(), g.value?.classList.remove(a.itemActive);
145
- }} @mouseover=${() => {
146
- R?.(e), g.value?.classList.add(a.itemActive);
147
- }} @mouseleave=${() => {
148
- V?.(), g.value?.classList.remove(a.itemActive);
149
- }} @calciteListItemSelect=${(t) => {
150
- t.target === t.currentTarget && "visible" in e && De(t.currentTarget, i.operationalItems) === e && I === "none" && O(d) !== "inherited" && ie(e, d);
151
- }} @calciteListItemToggle=${(t) => {
152
- "open" in e && (t.stopPropagation(), e.open = t.target.expanded);
153
- }} ${ee(g)}>${N}${_}${H}${q}${z}${U}${K}${E}${j}${B}${w}</calcite-list-item>`);
154
- }
2
+ import "lit";
3
+ import "lit/directives/keyed.js";
4
+ import "@arcgis/core/layers/catalog/catalogUtils.js";
5
+ import "@arcgis/lumina";
6
+ import "@arcgis/toolkit/dom";
7
+ import "lit/directives/ref.js";
8
+ import "../../../chunks/action-utils.js";
9
+ import "../../../chunks/layer-list-utils.js";
10
+ import { A as L } from "../../../chunks/layer-list-item.js";
155
11
  export {
156
- Ue as ArcgisLayerListItem
12
+ L as ArcgisLayerListItem
157
13
  };
@@ -3,11 +3,12 @@ import type NonPanoramicMedia from "./support/NonPanoramicMedia.js";
3
3
  import type Graphic from "@arcgis/core/Graphic.js";
4
4
  import type { PublicLitElement as LitElement } from "@arcgis/lumina";
5
5
  import type { NonPanoramicMediaProperties } from "./support/NonPanoramicMedia.js";
6
+ import type { useT9n } from "../../controllers/useT9n.js";
6
7
  import type { ArcgisZoom } from "../arcgis-zoom/customElement.js";
7
8
  import type { T9nMeta } from "@arcgis/lumina/controllers";
8
9
 
9
10
  /** @internal */
10
- export abstract class ArcgisOrientedImageryViewerImageViewer extends LitElement {
11
+ export abstract class ArcgisOrientedImageryViewerNonPanoramicViewer extends LitElement {
11
12
  /** @internal */
12
13
  protected _messages: Partial<{ title: string; }> & T9nMeta<{ title: string; }>;
13
14
  /** @default false */
@@ -15,6 +16,8 @@ export abstract class ArcgisOrientedImageryViewerImageViewer extends LitElement
15
16
  /** @default false */
16
17
  accessor hideLoader: boolean;
17
18
  /** @default false */
19
+ accessor hideVideoControls: boolean;
20
+ /** @default false */
18
21
  accessor hideZoomControls: boolean;
19
22
  get media(): NonPanoramicMediaProperties | undefined;
20
23
  set media(value: NonPanoramicMedia | NonPanoramicMediaProperties | undefined);
@@ -23,7 +26,7 @@ export abstract class ArcgisOrientedImageryViewerImageViewer extends LitElement
23
26
  *
24
27
  * _**Note**: Individual message keys may change between releases._
25
28
  */
26
- accessor messageOverrides: NonNullable<ArcgisZoom["messageOverrides"]> & { title?: string | undefined; };
29
+ accessor messageOverrides: NonNullable<ArcgisZoom["messageOverrides"]> & NonPanoramicViewerMessageOverrides;
27
30
  /** @default 0 */
28
31
  accessor rotation: number;
29
32
  /** @param graphic */
@@ -39,4 +42,7 @@ export abstract class ArcgisOrientedImageryViewerImageViewer extends LitElement
39
42
  "@setterTypes": {
40
43
  media?: NonPanoramicMedia | NonPanoramicMediaProperties | undefined;
41
44
  };
42
- }
45
+ }
46
+
47
+ /** @internal */
48
+ export type NonPanoramicViewerMessageOverrides = ReturnType<typeof useT9n<{ title: string; }>>["_overrides"];