@arcgis/map-components 5.1.0-next.104 → 5.1.0-next.105

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 (263) hide show
  1. package/dist/cdn/3AKJIFJP.js +2 -0
  2. package/dist/cdn/6IRKJ76J.js +2 -0
  3. package/dist/cdn/6QJQJ4I7.js +2 -0
  4. package/dist/cdn/FMT63SES.js +2 -0
  5. package/dist/cdn/IMSDXTQ5.js +2 -0
  6. package/dist/cdn/JFWOTBXI.js +2 -0
  7. package/dist/cdn/JIAEOA2S.js +2 -0
  8. package/dist/cdn/PKV6NA3M.js +2 -0
  9. package/dist/cdn/TKQLQE4E.js +2 -0
  10. package/dist/cdn/TZVSBVJN.js +2 -0
  11. package/dist/cdn/{KASY64TA.js → UQCQAL4T.js} +1 -1
  12. package/dist/cdn/{UCPJMQPU.js → VVIDVEKK.js} +1 -1
  13. package/dist/cdn/{AWQHNAWY.js → XB5I52AG.js} +1 -1
  14. package/dist/cdn/XIJGC7OK.js +2 -0
  15. package/dist/cdn/assets/feature-next/t9n/messages.ar.json +1 -0
  16. package/dist/cdn/assets/feature-next/t9n/messages.bg.json +1 -0
  17. package/dist/cdn/assets/feature-next/t9n/messages.bs.json +1 -0
  18. package/dist/cdn/assets/feature-next/t9n/messages.ca.json +1 -0
  19. package/dist/cdn/assets/feature-next/t9n/messages.cs.json +1 -0
  20. package/dist/cdn/assets/feature-next/t9n/messages.da.json +1 -0
  21. package/dist/cdn/assets/feature-next/t9n/messages.de.json +1 -0
  22. package/dist/cdn/assets/feature-next/t9n/messages.el.json +1 -0
  23. package/dist/cdn/assets/feature-next/t9n/messages.en.json +1 -0
  24. package/dist/cdn/assets/feature-next/t9n/messages.es.json +1 -0
  25. package/dist/cdn/assets/feature-next/t9n/messages.et.json +1 -0
  26. package/dist/cdn/assets/feature-next/t9n/messages.fi.json +1 -0
  27. package/dist/cdn/assets/feature-next/t9n/messages.fr.json +1 -0
  28. package/dist/cdn/assets/feature-next/t9n/messages.he.json +1 -0
  29. package/dist/cdn/assets/feature-next/t9n/messages.hr.json +1 -0
  30. package/dist/cdn/assets/feature-next/t9n/messages.hu.json +1 -0
  31. package/dist/cdn/assets/feature-next/t9n/messages.id.json +1 -0
  32. package/dist/cdn/assets/feature-next/t9n/messages.it.json +1 -0
  33. package/dist/cdn/assets/feature-next/t9n/messages.ja.json +1 -0
  34. package/dist/cdn/assets/feature-next/t9n/messages.ko.json +1 -0
  35. package/dist/cdn/assets/feature-next/t9n/messages.lt.json +1 -0
  36. package/dist/cdn/assets/feature-next/t9n/messages.lv.json +1 -0
  37. package/dist/cdn/assets/feature-next/t9n/messages.nl.json +1 -0
  38. package/dist/cdn/assets/feature-next/t9n/messages.no.json +1 -0
  39. package/dist/cdn/assets/feature-next/t9n/messages.pl.json +1 -0
  40. package/dist/cdn/assets/feature-next/t9n/messages.pt-BR.json +1 -0
  41. package/dist/cdn/assets/feature-next/t9n/messages.pt-PT.json +1 -0
  42. package/dist/cdn/assets/feature-next/t9n/messages.ro.json +1 -0
  43. package/dist/cdn/assets/feature-next/t9n/messages.ru.json +1 -0
  44. package/dist/cdn/assets/feature-next/t9n/messages.sk.json +1 -0
  45. package/dist/cdn/assets/feature-next/t9n/messages.sl.json +1 -0
  46. package/dist/cdn/assets/feature-next/t9n/messages.sr.json +1 -0
  47. package/dist/cdn/assets/feature-next/t9n/messages.sv.json +1 -0
  48. package/dist/cdn/assets/feature-next/t9n/messages.th.json +1 -0
  49. package/dist/cdn/assets/feature-next/t9n/messages.tr.json +1 -0
  50. package/dist/cdn/assets/feature-next/t9n/messages.uk.json +1 -0
  51. package/dist/cdn/assets/feature-next/t9n/messages.vi.json +1 -0
  52. package/dist/cdn/assets/feature-next/t9n/messages.zh-CN.json +1 -0
  53. package/dist/cdn/assets/feature-next/t9n/messages.zh-HK.json +1 -0
  54. package/dist/cdn/assets/feature-next/t9n/messages.zh-TW.json +1 -0
  55. package/dist/cdn/assets/features/t9n/messages.ar.json +1 -1
  56. package/dist/cdn/assets/features/t9n/messages.bg.json +1 -1
  57. package/dist/cdn/assets/features/t9n/messages.bs.json +1 -1
  58. package/dist/cdn/assets/features/t9n/messages.ca.json +1 -1
  59. package/dist/cdn/assets/features/t9n/messages.cs.json +1 -1
  60. package/dist/cdn/assets/features/t9n/messages.da.json +1 -1
  61. package/dist/cdn/assets/features/t9n/messages.de.json +1 -1
  62. package/dist/cdn/assets/features/t9n/messages.el.json +1 -1
  63. package/dist/cdn/assets/features/t9n/messages.en.json +1 -1
  64. package/dist/cdn/assets/features/t9n/messages.es.json +1 -1
  65. package/dist/cdn/assets/features/t9n/messages.et.json +1 -1
  66. package/dist/cdn/assets/features/t9n/messages.fi.json +1 -1
  67. package/dist/cdn/assets/features/t9n/messages.fr.json +1 -1
  68. package/dist/cdn/assets/features/t9n/messages.he.json +1 -1
  69. package/dist/cdn/assets/features/t9n/messages.hr.json +1 -1
  70. package/dist/cdn/assets/features/t9n/messages.hu.json +1 -1
  71. package/dist/cdn/assets/features/t9n/messages.id.json +1 -1
  72. package/dist/cdn/assets/features/t9n/messages.it.json +1 -1
  73. package/dist/cdn/assets/features/t9n/messages.ja.json +1 -1
  74. package/dist/cdn/assets/features/t9n/messages.ko.json +1 -1
  75. package/dist/cdn/assets/features/t9n/messages.lt.json +1 -1
  76. package/dist/cdn/assets/features/t9n/messages.lv.json +1 -1
  77. package/dist/cdn/assets/features/t9n/messages.nl.json +1 -1
  78. package/dist/cdn/assets/features/t9n/messages.no.json +1 -1
  79. package/dist/cdn/assets/features/t9n/messages.pl.json +1 -1
  80. package/dist/cdn/assets/features/t9n/messages.pt-BR.json +1 -1
  81. package/dist/cdn/assets/features/t9n/messages.pt-PT.json +1 -1
  82. package/dist/cdn/assets/features/t9n/messages.ro.json +1 -1
  83. package/dist/cdn/assets/features/t9n/messages.ru.json +1 -1
  84. package/dist/cdn/assets/features/t9n/messages.sk.json +1 -1
  85. package/dist/cdn/assets/features/t9n/messages.sl.json +1 -1
  86. package/dist/cdn/assets/features/t9n/messages.sr.json +1 -1
  87. package/dist/cdn/assets/features/t9n/messages.sv.json +1 -1
  88. package/dist/cdn/assets/features/t9n/messages.th.json +1 -1
  89. package/dist/cdn/assets/features/t9n/messages.tr.json +1 -1
  90. package/dist/cdn/assets/features/t9n/messages.uk.json +1 -1
  91. package/dist/cdn/assets/features/t9n/messages.vi.json +1 -1
  92. package/dist/cdn/assets/features/t9n/messages.zh-CN.json +1 -1
  93. package/dist/cdn/assets/features/t9n/messages.zh-HK.json +1 -1
  94. package/dist/cdn/assets/features/t9n/messages.zh-TW.json +1 -1
  95. package/dist/cdn/assets/features-next/t9n/messages.ar.json +1 -0
  96. package/dist/cdn/assets/features-next/t9n/messages.bg.json +1 -0
  97. package/dist/cdn/assets/features-next/t9n/messages.bs.json +1 -0
  98. package/dist/cdn/assets/features-next/t9n/messages.ca.json +1 -0
  99. package/dist/cdn/assets/features-next/t9n/messages.cs.json +1 -0
  100. package/dist/cdn/assets/features-next/t9n/messages.da.json +1 -0
  101. package/dist/cdn/assets/features-next/t9n/messages.de.json +1 -0
  102. package/dist/cdn/assets/features-next/t9n/messages.el.json +1 -0
  103. package/dist/cdn/assets/features-next/t9n/messages.en.json +1 -0
  104. package/dist/cdn/assets/features-next/t9n/messages.es.json +1 -0
  105. package/dist/cdn/assets/features-next/t9n/messages.et.json +1 -0
  106. package/dist/cdn/assets/features-next/t9n/messages.fi.json +1 -0
  107. package/dist/cdn/assets/features-next/t9n/messages.fr.json +1 -0
  108. package/dist/cdn/assets/features-next/t9n/messages.he.json +1 -0
  109. package/dist/cdn/assets/features-next/t9n/messages.hr.json +1 -0
  110. package/dist/cdn/assets/features-next/t9n/messages.hu.json +1 -0
  111. package/dist/cdn/assets/features-next/t9n/messages.id.json +1 -0
  112. package/dist/cdn/assets/features-next/t9n/messages.it.json +1 -0
  113. package/dist/cdn/assets/features-next/t9n/messages.ja.json +1 -0
  114. package/dist/cdn/assets/features-next/t9n/messages.ko.json +1 -0
  115. package/dist/cdn/assets/features-next/t9n/messages.lt.json +1 -0
  116. package/dist/cdn/assets/features-next/t9n/messages.lv.json +1 -0
  117. package/dist/cdn/assets/features-next/t9n/messages.nl.json +1 -0
  118. package/dist/cdn/assets/features-next/t9n/messages.no.json +1 -0
  119. package/dist/cdn/assets/features-next/t9n/messages.pl.json +1 -0
  120. package/dist/cdn/assets/features-next/t9n/messages.pt-BR.json +1 -0
  121. package/dist/cdn/assets/features-next/t9n/messages.pt-PT.json +1 -0
  122. package/dist/cdn/assets/features-next/t9n/messages.ro.json +1 -0
  123. package/dist/cdn/assets/features-next/t9n/messages.ru.json +1 -0
  124. package/dist/cdn/assets/features-next/t9n/messages.sk.json +1 -0
  125. package/dist/cdn/assets/features-next/t9n/messages.sl.json +1 -0
  126. package/dist/cdn/assets/features-next/t9n/messages.sr.json +1 -0
  127. package/dist/cdn/assets/features-next/t9n/messages.sv.json +1 -0
  128. package/dist/cdn/assets/features-next/t9n/messages.th.json +1 -0
  129. package/dist/cdn/assets/features-next/t9n/messages.tr.json +1 -0
  130. package/dist/cdn/assets/features-next/t9n/messages.uk.json +1 -0
  131. package/dist/cdn/assets/features-next/t9n/messages.vi.json +1 -0
  132. package/dist/cdn/assets/features-next/t9n/messages.zh-CN.json +1 -0
  133. package/dist/cdn/assets/features-next/t9n/messages.zh-HK.json +1 -0
  134. package/dist/cdn/assets/features-next/t9n/messages.zh-TW.json +1 -0
  135. package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.ar.json +1 -1
  136. package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.bg.json +1 -1
  137. package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.bs.json +1 -1
  138. package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.ca.json +1 -1
  139. package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.cs.json +1 -1
  140. package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.da.json +1 -1
  141. package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.de.json +1 -1
  142. package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.el.json +1 -1
  143. package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.es.json +1 -1
  144. package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.et.json +1 -1
  145. package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.fi.json +1 -1
  146. package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.fr.json +1 -1
  147. package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.he.json +1 -1
  148. package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.hr.json +1 -1
  149. package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.hu.json +1 -1
  150. package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.id.json +1 -1
  151. package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.it.json +1 -1
  152. package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.ja.json +1 -1
  153. package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.ko.json +1 -1
  154. package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.lt.json +1 -1
  155. package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.lv.json +1 -1
  156. package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.nl.json +1 -1
  157. package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.no.json +1 -1
  158. package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.pl.json +1 -1
  159. package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.pt-BR.json +1 -1
  160. package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.pt-PT.json +1 -1
  161. package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.ro.json +1 -1
  162. package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.ru.json +1 -1
  163. package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.sk.json +1 -1
  164. package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.sl.json +1 -1
  165. package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.sr.json +1 -1
  166. package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.sv.json +1 -1
  167. package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.th.json +1 -1
  168. package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.tr.json +1 -1
  169. package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.uk.json +1 -1
  170. package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.vi.json +1 -1
  171. package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.zh-CN.json +1 -1
  172. package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.zh-HK.json +1 -1
  173. package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.zh-TW.json +1 -1
  174. package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.ar.json +1 -1
  175. package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.bg.json +1 -1
  176. package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.bs.json +1 -1
  177. package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.ca.json +1 -1
  178. package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.cs.json +1 -1
  179. package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.da.json +1 -1
  180. package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.de.json +1 -1
  181. package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.el.json +1 -1
  182. package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.es.json +1 -1
  183. package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.et.json +1 -1
  184. package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.fi.json +1 -1
  185. package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.fr.json +1 -1
  186. package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.he.json +1 -1
  187. package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.hr.json +1 -1
  188. package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.hu.json +1 -1
  189. package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.id.json +1 -1
  190. package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.it.json +1 -1
  191. package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.ja.json +1 -1
  192. package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.ko.json +1 -1
  193. package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.lt.json +1 -1
  194. package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.lv.json +1 -1
  195. package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.nl.json +1 -1
  196. package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.no.json +1 -1
  197. package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.pl.json +1 -1
  198. package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.pt-BR.json +1 -1
  199. package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.pt-PT.json +1 -1
  200. package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.ro.json +1 -1
  201. package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.ru.json +1 -1
  202. package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.sk.json +1 -1
  203. package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.sl.json +1 -1
  204. package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.sr.json +1 -1
  205. package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.sv.json +1 -1
  206. package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.th.json +1 -1
  207. package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.tr.json +1 -1
  208. package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.uk.json +1 -1
  209. package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.vi.json +1 -1
  210. package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.zh-CN.json +1 -1
  211. package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.zh-HK.json +1 -1
  212. package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.zh-TW.json +1 -1
  213. package/dist/cdn/index.js +1 -1
  214. package/dist/cdn/main.css +1 -1
  215. package/dist/chunks/action-utils.js +37 -23
  216. package/dist/components/arcgis-aggregated-features/customElement.js +1 -1
  217. package/dist/components/arcgis-aggregated-features/index.js +1 -1
  218. package/dist/components/arcgis-bookmarks/customElement.d.ts +1 -1
  219. package/dist/components/arcgis-feature/customElement.d.ts +4 -4
  220. package/dist/components/arcgis-feature/customElement.js +69 -111
  221. package/dist/components/arcgis-feature-next/customElement.d.ts +444 -0
  222. package/dist/components/arcgis-feature-next/customElement.js +279 -0
  223. package/dist/components/arcgis-feature-next/index.d.ts +1 -0
  224. package/dist/components/arcgis-feature-next/index.js +13 -0
  225. package/dist/components/arcgis-feature-relationship/customElement.js +76 -73
  226. package/dist/components/arcgis-feature-relationship/index.js +1 -0
  227. package/dist/components/arcgis-feature-utility-network-association-list/customElement.js +18 -15
  228. package/dist/components/arcgis-feature-utility-network-association-list/index.js +1 -0
  229. package/dist/components/arcgis-feature-utility-network-associations/customElement.js +63 -53
  230. package/dist/components/arcgis-features/customElement.d.ts +28 -52
  231. package/dist/components/arcgis-features/customElement.js +181 -184
  232. package/dist/components/arcgis-features/index.js +0 -1
  233. package/dist/components/arcgis-features-next/customElement.d.ts +678 -0
  234. package/dist/components/arcgis-features-next/customElement.js +400 -0
  235. package/dist/components/arcgis-features-next/index.d.ts +1 -0
  236. package/dist/components/arcgis-features-next/index.js +15 -0
  237. package/dist/components/arcgis-popup/customElement.d.ts +2 -2
  238. package/dist/components/arcgis-popup/customElement.js +1 -1
  239. package/dist/components/arcgis-popup/index.js +1 -1
  240. package/dist/components/arcgis-search/customElement.d.ts +1 -1
  241. package/dist/components/arcgis-utility-network-trace-analysis/customElement.js +32 -33
  242. package/dist/components/arcgis-utility-network-trace-inputs/customElement.d.ts +5 -0
  243. package/dist/components/arcgis-utility-network-trace-inputs/customElement.js +47 -47
  244. package/dist/docs/api.json +1 -1
  245. package/dist/docs/docs.json +1 -1
  246. package/dist/docs/vscode.html-custom-data.json +1 -1
  247. package/dist/docs/web-types.json +1 -1
  248. package/dist/index.d.ts +20 -0
  249. package/dist/loader.js +7 -5
  250. package/dist/types/lumina.d.ts +17 -1
  251. package/dist/types/preact.d.ts +19 -1
  252. package/dist/types/react.d.ts +21 -1
  253. package/dist/types/stencil.d.ts +17 -1
  254. package/package.json +4 -4
  255. package/dist/cdn/37PU5RQF.js +0 -2
  256. package/dist/cdn/6U7WM64M.js +0 -2
  257. package/dist/cdn/AHWGHYPQ.js +0 -2
  258. package/dist/cdn/FNHPWOUX.js +0 -2
  259. package/dist/cdn/HVKDLP74.js +0 -2
  260. package/dist/cdn/LTUURA6B.js +0 -2
  261. package/dist/cdn/SKRNQKVO.js +0 -2
  262. package/dist/cdn/W2QDJLIF.js +0 -2
  263. package/dist/cdn/XIN3BIAA.js +0 -2
@@ -2,7 +2,7 @@
2
2
  import { i as f } from "./async-utils.js";
3
3
  import { g as l } from "./feature-utils.js";
4
4
  import { isZoomScreenSize as w } from "@arcgis/core/applications/Components/actionUtils.js";
5
- function S(e) {
5
+ function C(e) {
6
6
  if (e.icon)
7
7
  return e.icon;
8
8
  if (!("image" in e && e.image) && !e.className)
@@ -17,45 +17,51 @@ function y(e) {
17
17
  const { selectedFeature: t, location: o, view: r } = e;
18
18
  return r ? t ?? o ?? null : null;
19
19
  }
20
- async function h(e, t, o) {
21
- const { location: r, selectedFeature: a, view: i, zoomFactor: n } = e;
20
+ function b(e) {
21
+ return "browseClusterEnabled" in e && "featureMenuOpen" in e;
22
+ }
23
+ function h(e) {
24
+ return "aggregatedFeaturesEnabled" in e;
25
+ }
26
+ async function E(e, t, o) {
27
+ const { location: r, selectedFeature: a, view: n, zoomFactor: i } = e;
22
28
  await o?.viewModel?.updateGeometry();
23
- const s = o?.graphic, g = s?.geometry ? s : y(e);
24
- if (!i || !g)
29
+ const s = o?.graphic, c = s?.geometry ? s : y(e);
30
+ if (!n || !c)
25
31
  throw new Error("Cannot zoom to location without a target and view.");
26
- const m = i.scale / n, c = s?.geometry ?? e.selectedFeature?.geometry ?? r, u = c?.type === "point" && await w(s ?? a, i);
32
+ const d = n.scale / i, u = s?.geometry ?? e.selectedFeature?.geometry ?? r, g = u?.type === "point" && await w(s ?? a, n);
27
33
  t.active = !0, t.disabled = !0;
28
34
  try {
29
35
  await e.zoomTo({
30
36
  target: {
31
- target: g,
32
- scale: u ? m : void 0
37
+ target: c,
38
+ scale: g ? d : void 0
33
39
  }
34
40
  });
35
- } catch (d) {
36
- if (f(d))
41
+ } catch (m) {
42
+ if (f(m))
37
43
  return;
38
44
  throw new Error("Could not zoom to the location of the graphic.");
39
45
  } finally {
40
- t.active = !1, t.disabled = !1, u && e.location !== c && (e.location = c);
46
+ t.active = !1, t.disabled = !1, g && e.location !== u && (e.location = u);
41
47
  }
42
48
  }
43
49
  async function p(e, t) {
44
50
  const o = await e.whenLayerView(l(t)), r = o.createQuery(), a = t.getObjectId();
45
51
  return r.aggregateIds = a != null ? [a] : [], [o, r];
46
52
  }
47
- async function b(e, t) {
53
+ async function z(e, t) {
48
54
  const { selectedFeature: o, view: r } = e;
49
55
  if (r?.type !== "2d")
50
56
  throw new Error("zoomToAggregate:invalid-view: View must be 2d MapView.");
51
57
  if (!o?.isAggregate)
52
58
  throw new Error("zoomToAggregate:invalid-selectedFeature: Selected feature must represent an aggregate graphic.");
53
- const [a, i] = await p(r, o);
59
+ const [a, n] = await p(r, o);
54
60
  t.active = !0, t.disabled = !0;
55
- const { extent: n } = await a.queryExtent(i);
56
- n && await e.zoomTo({ target: n }), t.active = !1, t.disabled = !1;
61
+ const { extent: i } = await a.queryExtent(n);
62
+ i && await e.zoomTo({ target: i }), t.active = !1, t.disabled = !1;
57
63
  }
58
- const V = async (e, t) => {
64
+ const q = async (e, t) => {
59
65
  if (!e)
60
66
  throw new Error("trigger-action:missing-arguments: Event has no action");
61
67
  const { disabled: o, id: r } = e;
@@ -64,13 +70,21 @@ const V = async (e, t) => {
64
70
  if (o)
65
71
  throw new Error("trigger-action:invalid-action: Action is disabled");
66
72
  if (r === "zoom-to-feature")
67
- return await h(t, e).catch((a) => {
73
+ return await E(t, e).catch((a) => {
68
74
  if (!f(a))
69
75
  throw a;
70
76
  });
71
77
  if (r === "zoom-to-aggregated-features")
72
- return await b(t, e);
78
+ return await z(t, e);
79
+ if (r === "browse-clustered-features") {
80
+ if (!b(t))
81
+ throw new Error("trigger-action:invalid-view-model: browse-clustered-features requires FeaturesViewModel.");
82
+ t.browseClusterEnabled = !t.browseClusterEnabled, t.featureMenuOpen = t.browseClusterEnabled;
83
+ return;
84
+ }
73
85
  if (r === "browse-aggregated-features") {
86
+ if (!h(t))
87
+ throw new Error("trigger-action:invalid-view-model: browse-aggregated-features requires Features.");
74
88
  t.aggregatedFeaturesEnabled = !t.aggregatedFeaturesEnabled;
75
89
  return;
76
90
  }
@@ -79,13 +93,13 @@ const V = async (e, t) => {
79
93
  const { selectedFeature: a } = t;
80
94
  if (!a)
81
95
  throw new Error("trigger-action:missing-selected-feature: Cannot remove selected feature without a selected feature.");
82
- const i = l(a);
83
- i ? i.remove(a) : t.view?.graphics.remove(a);
96
+ const n = l(a);
97
+ n ? n.remove(a) : t.view?.graphics.remove(a);
84
98
  }
85
99
  };
86
100
  export {
87
- S as a,
101
+ C as a,
88
102
  T as g,
89
- V as t,
90
- h as z
103
+ q as t,
104
+ E as z
91
105
  };
@@ -164,7 +164,7 @@ class B extends p {
164
164
  }
165
165
  async _selectFeature(e) {
166
166
  const { flowItems: t, view: r } = this;
167
- t && this._addFlowItem(w(F(e, d`<arcgis-feature .autoDestroyDisabled=${this.autoDestroyDisabled} .flowItems=${t} .graphic=${e.graphic} .map=${this.map} .spatialReference=${this.spatialReference} .timeZone=${this.timeZone} .view=${r ?? void 0}></arcgis-feature>`)));
167
+ t && this._addFlowItem(w(F(e, d`<arcgis-feature-next .autoDestroyDisabled=${this.autoDestroyDisabled} .flowItems=${t} .graphic=${e.graphic} .map=${this.map} .spatialReference=${this.spatialReference} .timeZone=${this.timeZone} .view=${r ?? void 0}></arcgis-feature-next>`)));
168
168
  }
169
169
  async _selectRelativeAggregatedFeature(e) {
170
170
  const { aggregatedFeatures: t, aggregatedFeatureItems: r, flowItems: s } = this;
@@ -1,4 +1,4 @@
1
- import "../arcgis-feature/index.js";
1
+ import "../arcgis-feature-next/index.js";
2
2
  import "@esri/calcite-components/components/calcite-icon";
3
3
  import "@esri/calcite-components/components/calcite-list";
4
4
  import "@esri/calcite-components/components/calcite-list-item";
@@ -18,7 +18,7 @@ import type { T9nMeta } from "@arcgis/lumina/controllers";
18
18
  * When a bookmark with a timeExtent is selected, the [arcgis-map.timeExtent](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-map/#timeExtent) of the Map will be set to the timeExtent of the selected bookmark.
19
19
  * To disable time capability in the Bookmarks component, set [timeDisabled](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-bookmarks/#timeDisabled) to `true`.
20
20
  *
21
- * Starting with version `5.1`, on [@arcgisBookmarkSelect](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-bookmarks/#event-arcgisBookmarkSelect) the selected bookmark's name is announced to assistive technologies. Visit the [Accessibility guide](xref://site.self/accessibility/#assistive-technologies) to learn more
21
+ * Starting with version `5.1`, on [@arcgisBookmarkSelect](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-bookmarks/#event-arcgisBookmarkSelect) the selected bookmark's name is announced to assistive technologies. Visit the [Accessibility guide](https://developers.arcgis.com/javascript/latest/accessibility/#assistive-technologies) to learn more
22
22
  * about live announcements supporting more audiences.
23
23
  *
24
24
  * The Bookmarks component can be used to create, edit, reorder, and delete bookmarks.
@@ -1,5 +1,5 @@
1
1
  /// <reference path="../../index.d.ts" />
2
- import type Feature from "@arcgis/core/popup/Feature.js";
2
+ import type FeatureViewModel from "@arcgis/core/widgets/Feature/FeatureViewModel.js";
3
3
  import type Graphic from "@arcgis/core/Graphic.js";
4
4
  import type SpatialReference from "@arcgis/core/geometry/SpatialReference.js";
5
5
  import type Map from "@arcgis/core/Map.js";
@@ -8,7 +8,7 @@ import type { ArcgisReferenceElement, HeadingLevel } from "../types.js";
8
8
  import type { PublicLitElement as LitElement } from "@arcgis/lumina";
9
9
  import type { T9nMeta } from "@arcgis/lumina/controllers";
10
10
  import type { MapViewOrSceneView } from "@arcgis/core/views/MapViewOrSceneView.js";
11
- import type { State } from "@arcgis/core/popup/types.js";
11
+ import type { State } from "@arcgis/core/widgets/Feature/types.js";
12
12
 
13
13
  /**
14
14
  * The Feature component displays a graphic according to its [PopupTemplate](https://developers.arcgis.com/javascript/latest/references/core/PopupTemplate/).
@@ -41,7 +41,7 @@ export abstract class ArcgisFeature extends LitElement {
41
41
  * @default false
42
42
  * @since 4.34
43
43
  */
44
- accessor chartAnimationDisabled: boolean;
44
+ accessor chartAnimationDisabled: boolean | undefined;
45
45
  /**
46
46
  * Enables automatic creation of a popup template for layers that have popups enabled but no
47
47
  * popupTemplate defined. Automatic popup templates are supported for layers that
@@ -402,7 +402,7 @@ export abstract class ArcgisFeature extends LitElement {
402
402
  */
403
403
  accessor view: MapViewOrSceneView | null | undefined;
404
404
  /** @since 4.34 */
405
- accessor viewModel: Feature;
405
+ accessor viewModel: FeatureViewModel;
406
406
  /** Permanently destroy the component. */
407
407
  destroy(): Promise<void>;
408
408
  /**
@@ -1,23 +1,23 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
2
  import { c as $ } from "../../chunks/runtime.js";
3
- import { css as y, html as n } from "lit";
4
- import { ref as w } from "lit/directives/ref.js";
3
+ import { css as w, html as r } from "lit";
4
+ import { ref as y } from "lit/directives/ref.js";
5
5
  import { u as I } from "../../chunks/useT9n.js";
6
6
  import { classes as M } from "@arcgis/toolkit/dom";
7
7
  import { usePropertyChange as C } from "@arcgis/lumina/controllers";
8
8
  import { m as x } from "../../chunks/useViewModel.js";
9
- import { LitElement as b, createEvent as F, nothing as _, safeClassMap as L } from "@arcgis/lumina";
9
+ import { LitElement as F, createEvent as b, nothing as _, safeClassMap as L } from "@arcgis/lumina";
10
10
  import { substitute as T } from "@arcgis/core/intl.js";
11
11
  import { renderingSanitizer as A } from "@arcgis/core/applications/Components/sanitizerUtils.js";
12
- import { a as R, g as D, c as V, b as k, s as d, i as E, d as B } from "../../chunks/feature-utils.js";
13
- import H from "@arcgis/core/core/Collection.js";
14
- import { watch as N } from "@arcgis/core/core/reactiveUtils.js";
15
- import { stripHTML as P } from "@arcgis/core/applications/Components/stringUtils.js";
16
- import Z from "@arcgis/core/popup/Feature.js";
17
- const z = y`:host{display:flex;flex:1 1 auto;background-color:var(--calcite-color-foreground-1);--calcite-color-background: var(--calcite-color-foreground-1)}.root{flex:1 1 auto}.root calcite-icon{box-sizing:content-box}.loading-container{display:flex;justify-content:center;padding:var(--calcite-spacing-md) 0;width:100%}.content-element{margin-bottom:var(--calcite-spacing-lg);padding:0 var(--calcite-spacing-sm);display:flex;flex-direction:column}.content-element:only-child,.content-element:last-child{margin-bottom:var(--calcite-spacing-xxs)}.last-edited-info{padding-top:var(--calcite-spacing-xs);font-size:var(--calcite-font-size-sm)}`, U = x(Z);
18
- class S extends b {
12
+ import { a as D, g as k, c as R, b as V, s as c, i as B, d as H } from "../../chunks/feature-utils.js";
13
+ import N from "@arcgis/core/core/Collection.js";
14
+ import { watch as P } from "@arcgis/core/core/reactiveUtils.js";
15
+ import { stripHTML as Z } from "@arcgis/core/applications/Components/stringUtils.js";
16
+ import E from "@arcgis/core/widgets/Feature/FeatureViewModel.js";
17
+ const z = w`:host{display:flex;flex:1 1 auto;background-color:var(--calcite-color-foreground-1);--calcite-color-background: var(--calcite-color-foreground-1)}.root{flex:1 1 auto}.root calcite-icon{box-sizing:content-box}.loading-container{display:flex;justify-content:center;padding:var(--calcite-spacing-md) 0;width:100%}.content-element{margin-bottom:var(--calcite-spacing-lg);padding:0 var(--calcite-spacing-sm);display:flex;flex-direction:column}.content-element:only-child,.content-element:last-child{margin-bottom:var(--calcite-spacing-xxs)}.last-edited-info{padding-top:var(--calcite-spacing-xs);font-size:var(--calcite-font-size-sm)}`, U = x(E);
18
+ class S extends F {
19
19
  constructor() {
20
- super(...arguments), this.messages = I(), this._rootFlowNode = null, this.internalFlowItems = new H(), this.flowType = "feature", this.viewModel = U(this), this.view = this.viewModel.view, this.icon = "icon", this.isFeatureFromTable = this.viewModel.isFeatureFromTable, this.graphic = this.viewModel.graphic, this.defaultPopupTemplateEnabled = this.viewModel.defaultPopupTemplateEnabled, this.headingLevel = 2, this.spatialReference = this.viewModel.spatialReference, this.timeZone = this.viewModel.timeZone, this.heading = this.viewModel.heading, this.map = this.viewModel.map, this.chartAnimationDisabled = this.viewModel.abilities.chartAnimation, this.hideHeading = !1, this.hideContent = !1, this.hideAttachmentsContent = !1, this.hideCustomContent = !1, this.hideExpressionContent = !1, this.hideFieldsContent = !1, this.hideMediaContent = !1, this.showRelationshipContent = !1, this.hideTextContent = !1, this.showUtilityNetworkContent = !1, this.hideLastEditedInfo = !1, this.autoDestroyDisabled = !1, this.location = this.viewModel.location, this.state = this.viewModel.state, this.arcgisPropertyChange = C()("flowItems", "state"), this.arcgisReady = F();
20
+ super(...arguments), this.messages = I(), this._rootFlowNode = null, this.internalFlowItems = new N(), this.flowType = "feature", this.viewModel = U(this), this.view = this.viewModel.view, this.icon = "icon", this.isFeatureFromTable = this.viewModel.isFeatureFromTable, this.graphic = this.viewModel.graphic, this.defaultPopupTemplateEnabled = this.viewModel.defaultPopupTemplateEnabled, this.headingLevel = 2, this.spatialReference = this.viewModel.spatialReference, this.timeZone = this.viewModel.timeZone, this.heading = this.viewModel.title, this.map = this.viewModel.map, this.chartAnimationDisabled = this.viewModel.abilities.chartAnimation, this.hideHeading = !1, this.hideContent = !1, this.hideAttachmentsContent = !1, this.hideCustomContent = !1, this.hideExpressionContent = !1, this.hideFieldsContent = !1, this.hideMediaContent = !1, this.showRelationshipContent = !1, this.hideTextContent = !1, this.showUtilityNetworkContent = !1, this.hideLastEditedInfo = !1, this.autoDestroyDisabled = !1, this.location = this.viewModel.location, this.state = this.viewModel.state, this.arcgisPropertyChange = C()("flowItems", "state"), this.arcgisReady = b();
21
21
  }
22
22
  static {
23
23
  this.properties = { popupTemplate: 16, sourceLayer: 16, fieldInfoMap: 16, values: 16, globalValues: 16, internalFlowItems: 16, flowType: 1, viewModel: 0, view: 0, flowItems: 0, referenceElement: 1, icon: 1, isFeatureFromTable: 36, graphic: 0, defaultPopupTemplateEnabled: 5, headingLevel: 9, spatialReference: 0, timeZone: 1, heading: 0, map: 0, chartAnimationDisabled: 5, hideHeading: 5, hideContent: 5, hideAttachmentsContent: 5, hideCustomContent: 5, hideExpressionContent: 5, hideFieldsContent: 5, hideMediaContent: 5, showRelationshipContent: 5, hideTextContent: 5, showUtilityNetworkContent: 5, hideLastEditedInfo: 5, autoDestroyDisabled: 5, messageOverrides: 0, label: 1, location: 0, state: 32 };
@@ -26,13 +26,13 @@ class S extends b {
26
26
  this.styles = z;
27
27
  }
28
28
  get popupTemplate() {
29
- return R(this.graphic, this.defaultPopupTemplateEnabled) ?? void 0;
29
+ return D(this.graphic, this.defaultPopupTemplateEnabled) ?? void 0;
30
30
  }
31
31
  get sourceLayer() {
32
- return D(this.graphic);
32
+ return k(this.graphic);
33
33
  }
34
34
  get fieldInfoMap() {
35
- return V(k(this.popupTemplate), this.sourceLayer);
35
+ return R(V(this.popupTemplate), this.sourceLayer);
36
36
  }
37
37
  get values() {
38
38
  return this.graphic?.attributes ?? {};
@@ -44,43 +44,22 @@ class S extends b {
44
44
  this._removeFlowItems(), await this.manager.destroy();
45
45
  }
46
46
  async nextMedia(e) {
47
- return this._pageContentElementMedia(e, 1);
47
+ return this.viewModel.nextMedia(e);
48
48
  }
49
49
  async previousMedia(e) {
50
- return this._pageContentElementMedia(e, -1);
50
+ return this.viewModel.previousMedia(e);
51
51
  }
52
52
  async setActiveMedia(e, t) {
53
- const i = this.viewModel.content;
54
- if (!Array.isArray(i))
55
- return;
56
- const s = i[e];
57
- if (s?.type !== "media")
58
- return;
59
- const a = s;
60
- return this._setContentElementMedia(a, t);
53
+ return this.viewModel.setActiveMedia(e, t);
61
54
  }
62
55
  async updateGeometry() {
63
56
  return await this.viewModel.updateGeometry();
64
57
  }
65
58
  loaded() {
66
59
  this.manager.onLifecycle(() => [
67
- N(() => [this.internalFlowItems?.length], () => this._setFocus())
60
+ P(() => [this.internalFlowItems?.length], () => this._setFocus())
68
61
  ]);
69
62
  }
70
- _setContentElementMedia(e, t) {
71
- const i = e.mediaInfos?.length ?? 0, s = (t + i) % i;
72
- e.activeMediaInfoIndex = s;
73
- }
74
- _pageContentElementMedia(e, t) {
75
- const i = this.viewModel.content;
76
- if (!Array.isArray(i))
77
- return;
78
- const s = i[e];
79
- if (s?.type !== "media")
80
- return;
81
- const a = s, { activeMediaInfoIndex: o } = a, r = (o ?? 0) + t;
82
- this._setContentElementMedia(a, r);
83
- }
84
63
  _removeFlowItems() {
85
64
  this.internalFlowItems?.destroyAll();
86
65
  }
@@ -94,124 +73,117 @@ class S extends b {
94
73
  this.internalFlowItems?.pop()?.destroy();
95
74
  }
96
75
  render() {
97
- const { state: e } = this.viewModel, t = n`<div class="container">${e === "error" ? this._renderError() : e === "loading" ? this._renderLoading() : this._renderContentContainer()}</div>`;
98
- return n`<div class="root">${t}</div>`;
76
+ const { state: e } = this.viewModel, t = r`<div class="container">${e === "error" ? this._renderError() : e === "loading" ? this._renderLoading() : this._renderContentContainer()}</div>`;
77
+ return r`<div class="root">${t}</div>`;
99
78
  }
100
79
  _renderError() {
101
80
  const { messages: e, hideHeading: t } = this;
102
- return n`<calcite-notice icon=exclamation-mark-circle kind=danger open scale=s>${t ? null : n`<div slot=title>${e.error}</div>`}<div slot=message>${e.loadingError}</div></calcite-notice>`;
81
+ return r`<calcite-notice icon=exclamation-mark-circle kind=danger open scale=s>${t ? null : r`<div slot=title>${e.error}</div>`}<div slot=message>${e.loadingError}</div></calcite-notice>`;
103
82
  }
104
83
  _renderLoading() {
105
- return n`<div class="loading-container"><calcite-loader inline label></calcite-loader></div>`;
84
+ return r`<div class="loading-container"><calcite-loader inline label></calcite-loader></div>`;
106
85
  }
107
86
  _renderAttachments(e) {
108
- const { values: t, fieldInfoMap: i, sourceLayer: s, globalValues: a } = this, o = d({
87
+ const { values: t, fieldInfoMap: i, sourceLayer: o, globalValues: a } = this, s = c({
109
88
  values: t,
110
89
  fieldInfoMap: i,
111
90
  globalValues: a,
112
- layer: s,
91
+ layer: o,
113
92
  text: e.title
114
- }), r = d({
93
+ }), n = c({
115
94
  values: t,
116
95
  fieldInfoMap: i,
117
96
  globalValues: a,
118
- layer: s,
97
+ layer: o,
119
98
  text: e.description
120
99
  });
121
- return n`<arcgis-feature-attachments .headingLevel=${this.headingLevel} .heading=${o} class="content-element" .displayType=${e.displayType} .attachmentKeywords=${e.attachmentKeywords ?? void 0} .attachmentTypes=${e.attachmentTypes ?? void 0} .orderByFields=${e.orderByFields ?? void 0} .graphic=${this.graphic ?? void 0} .description=${r} .messages=${this.messages}></arcgis-feature-attachments>`;
100
+ return r`<arcgis-feature-attachments .headingLevel=${this.headingLevel} .heading=${s} class="content-element" .displayType=${e.displayType} .attachmentKeywords=${e.attachmentKeywords ?? void 0} .attachmentTypes=${e.attachmentTypes ?? void 0} .orderByFields=${e.orderByFields ?? void 0} .graphic=${this.graphic ?? void 0} .description=${n} .messages=${this.messages}></arcgis-feature-attachments>`;
122
101
  }
123
102
  _renderCustom(e) {
124
- return n`<arcgis-feature-content .creator=${e.creator} .destroyer=${e.destroyer ?? void 0} .graphic=${this.graphic ?? void 0} class="content-element"></arcgis-feature-content>`;
103
+ return r`<arcgis-feature-content .creator=${e.creator} .destroyer=${e.destroyer ?? void 0} .graphic=${this.graphic ?? void 0} class="content-element"></arcgis-feature-content>`;
125
104
  }
126
105
  _renderFields(e, t) {
127
- const i = this.viewModel.formattedAttributes, { values: s, fieldInfoMap: a, sourceLayer: o, popupTemplate: r, globalValues: l, graphic: c } = this, h = !!e?.fieldInfos, u = (e.fieldInfos ?? r?.fieldInfos ?? [])?.filter(({ fieldName: m }) => !!m && (E(m) || B(m) || m in s)), f = r?.expressionInfos, g = d({
128
- values: s,
106
+ const i = this.viewModel.formattedAttributes, { values: o, fieldInfoMap: a, sourceLayer: s, popupTemplate: n, globalValues: l, graphic: d } = this, h = !!e?.fieldInfos, u = (e.fieldInfos ?? n?.fieldInfos ?? [])?.filter(({ fieldName: g }) => !!g && (B(g) || H(g) || g in o)), f = n?.expressionInfos, m = c({
107
+ values: o,
129
108
  fieldInfoMap: a,
130
109
  globalValues: l,
131
- layer: o,
110
+ layer: s,
132
111
  text: e.title
133
- }), v = d({
134
- values: s,
112
+ }), v = c({
113
+ values: o,
135
114
  fieldInfoMap: a,
136
115
  globalValues: l,
137
- layer: o,
116
+ layer: s,
138
117
  text: e.description
139
118
  });
140
- return n`<arcgis-feature-fields .headingLevel=${this.headingLevel} .heading=${g} class="content-element" .messages=${this.messages} .graphic=${c ?? void 0} .isContentFieldInfos=${h} .layer=${o} .description=${v} .values=${{
119
+ return r`<arcgis-feature-fields .headingLevel=${this.headingLevel} .heading=${m} class="content-element" .messages=${this.messages} .graphic=${d ?? void 0} .isContentFieldInfos=${h} .layer=${s} .description=${v} .values=${{
141
120
  ...i?.global,
142
121
  ...i?.content?.[t]
143
122
  }} .fieldInfos=${u} .expressionInfos=${f ?? void 0}></arcgis-feature-fields>`;
144
123
  }
145
124
  _renderMedia(e, t) {
146
- const { values: i, graphic: s, fieldInfoMap: a, sourceLayer: o, popupTemplate: r, globalValues: l } = this, { formattedAttributes: c, relatedInfos: h, expressionAttributes: p } = this.viewModel, u = {
147
- ...c?.global,
148
- ...c?.content?.[t]
149
- }, f = d({
125
+ const { values: i, graphic: o, fieldInfoMap: a, sourceLayer: s, popupTemplate: n, globalValues: l } = this, { formattedAttributes: d, relatedInfos: h } = this.viewModel, p = {
126
+ ...d?.global,
127
+ ...d?.content?.[t]
128
+ }, u = c({
150
129
  values: i,
151
130
  fieldInfoMap: a,
152
131
  globalValues: l,
153
- layer: o,
132
+ layer: s,
154
133
  text: e.title
155
- }), g = d({
134
+ }), f = c({
156
135
  values: i,
157
136
  fieldInfoMap: a,
158
137
  globalValues: l,
159
- layer: o,
138
+ layer: s,
160
139
  text: e.description
161
140
  });
162
- return n`<arcgis-feature-media .activeMediaInfoIndex=${e.activeMediaInfoIndex ?? 0} .chartAnimationDisabled=${this.chartAnimationDisabled} .headingLevel=${this.headingLevel} .heading=${f} class="content-element" .description=${g} .values=${i} .expressionValues=${p} .layer=${o} .graphic=${s ?? void 0} .messages=${this.messages} .fieldInfoMap=${a} .mediaInfos=${e.mediaInfos ?? []} .popupTemplate=${r ?? void 0} .relatedInfos=${h} .formattedValues=${u}></arcgis-feature-media>`;
141
+ return r`<arcgis-feature-media .activeMediaInfoIndex=${e.activeMediaInfoIndex ?? 0} .chartAnimationDisabled=${this.chartAnimationDisabled} .headingLevel=${this.headingLevel} .heading=${u} class="content-element" .description=${f} .values=${i} .layer=${s} .graphic=${o ?? void 0} .messages=${this.messages} .fieldInfoMap=${a} .mediaInfos=${e.mediaInfos ?? []} .popupTemplate=${n ?? void 0} .relatedInfos=${h} .formattedValues=${p}></arcgis-feature-media>`;
163
142
  }
164
143
  _renderText(e) {
165
- const { values: t, fieldInfoMap: i, sourceLayer: s, globalValues: a } = this;
166
- return n`<arcgis-feature-content .creator=${d({
167
- values: t,
168
- fieldInfoMap: i,
169
- globalValues: a,
170
- layer: s,
171
- text: e.text
172
- })} .graphic=${this.graphic ?? void 0} class="content-element"></arcgis-feature-content>`;
144
+ return r`<arcgis-feature-content .creator=${e.text} .graphic=${this.graphic ?? void 0} class="content-element"></arcgis-feature-content>`;
173
145
  }
174
146
  _renderExpression(e, t) {
175
- const i = this.viewModel.formattedAttributes, { fieldInfoMap: s } = this;
176
- return n`<arcgis-feature-expression .expressionInfo=${e.expressionInfo} .map=${this.map ?? void 0} .spatialReference=${this.spatialReference ?? void 0} .view=${this.viewModel.view ?? void 0} .graphic=${this.graphic ?? void 0} .location=${this.location ?? void 0} .headingLevel=${this.headingLevel} class="content-element" .interceptor=${this.viewModel.interceptor} .messages=${this.messages} .fieldInfoMap=${s} .values=${{
147
+ const i = this.viewModel.formattedAttributes, { fieldInfoMap: o } = this;
148
+ return r`<arcgis-feature-expression .expressionInfo=${e.expressionInfo} .map=${this.map ?? void 0} .spatialReference=${this.spatialReference ?? void 0} .view=${this.viewModel.view ?? void 0} .graphic=${this.graphic ?? void 0} .location=${this.location ?? void 0} .headingLevel=${this.headingLevel} class="content-element" .interceptor=${this.viewModel.interceptor} .messages=${this.messages} .fieldInfoMap=${o} .values=${{
177
149
  ...i?.global,
178
150
  ...i?.content?.[t]
179
151
  }}></arcgis-feature-expression>`;
180
152
  }
181
153
  _renderRelationship(e, t) {
182
- const { values: i, graphic: s, fieldInfoMap: a, sourceLayer: o, globalValues: r } = this, { displayCount: l, orderByFields: c, relationshipId: h } = e, { formattedAttributes: p, view: u } = this.viewModel, f = {
154
+ const { values: i, graphic: o, fieldInfoMap: a, sourceLayer: s, globalValues: n } = this, { displayCount: l, orderByFields: d, relationshipId: h } = e, { formattedAttributes: p, view: u } = this.viewModel, f = {
183
155
  ...p?.global,
184
156
  ...p?.content?.[t]
185
- }, g = d({
157
+ }, m = c({
186
158
  values: i,
187
159
  fieldInfoMap: a,
188
- globalValues: r,
189
- layer: o,
160
+ globalValues: n,
161
+ layer: s,
190
162
  text: e.title
191
- }), v = d({
163
+ }), v = c({
192
164
  values: i,
193
165
  fieldInfoMap: a,
194
- globalValues: r,
195
- layer: o,
166
+ globalValues: n,
167
+ layer: s,
196
168
  text: e.description
197
169
  });
198
- return n`<arcgis-feature-relationship .autoDestroyDisabled=${this.autoDestroyDisabled} class="content-element" .flowItems=${this.flowItems ?? this.internalFlowItems} .description=${v} .layer=${o} .map=${this.map ?? void 0} .displayCount=${l} .graphic=${s ?? void 0} .heading=${g} .headingLevel=${this.headingLevel} .messages=${this.messages} .orderByFields=${c ?? void 0} .relationshipId=${h ?? void 0} .spatialReference=${this.spatialReference ?? void 0} .timeZone=${this.timeZone ?? void 0} .values=${f} .view=${u ?? void 0}></arcgis-feature-relationship>`;
170
+ return r`<arcgis-feature-relationship .autoDestroyDisabled=${this.autoDestroyDisabled} class="content-element" .flowItems=${this.flowItems ?? this.internalFlowItems} .description=${v} .layer=${s} .map=${this.map ?? void 0} .displayCount=${l} .graphic=${o ?? void 0} .heading=${m} .headingLevel=${this.headingLevel} .messages=${this.messages} .orderByFields=${d ?? void 0} .relationshipId=${h ?? void 0} .spatialReference=${this.spatialReference ?? void 0} .timeZone=${this.timeZone ?? void 0} .values=${f} .view=${u ?? void 0}></arcgis-feature-relationship>`;
199
171
  }
200
172
  _renderAssociation(e) {
201
- const { fieldInfoMap: t, globalValues: i, graphic: s, messages: a, sourceLayer: o, values: r } = this, l = d({
202
- values: r,
173
+ const { fieldInfoMap: t, globalValues: i, graphic: o, messages: a, sourceLayer: s, values: n } = this, l = c({
174
+ values: n,
203
175
  fieldInfoMap: t,
204
176
  globalValues: i,
205
- layer: o,
177
+ layer: s,
206
178
  text: e.title
207
- }), c = d({
208
- values: r,
179
+ }), d = c({
180
+ values: n,
209
181
  fieldInfoMap: t,
210
182
  globalValues: i,
211
- layer: o,
183
+ layer: s,
212
184
  text: e.description
213
185
  });
214
- return n`<arcgis-feature-utility-network-associations .autoDestroyDisabled=${this.autoDestroyDisabled} .associationTypes=${e.associationTypes} class="content-element" .description=${c} .flowItems=${this.flowItems ?? this.internalFlowItems} .graphic=${s ?? void 0} .heading=${l} .headingLevel=${this.headingLevel} .layer=${o} .map=${this.map ?? void 0} .messages=${a} .parentFeatureViewModel=${this.viewModel} .referenceElement=${this.referenceElement} .spatialReference=${this.spatialReference ?? void 0} .timeZone=${this.timeZone ?? void 0} .view=${this.viewModel.view ?? void 0}></arcgis-feature-utility-network-associations>`;
186
+ return r`<arcgis-feature-utility-network-associations .autoDestroyDisabled=${this.autoDestroyDisabled} .associationTypes=${e.associationTypes} class="content-element" .description=${d} .flowItems=${this.flowItems ?? this.internalFlowItems} .graphic=${o ?? void 0} .heading=${l} .headingLevel=${this.headingLevel} .layer=${s} .map=${this.map ?? void 0} .messages=${a} .parentFeatureViewModel=${this.viewModel} .referenceElement=${this.referenceElement} .spatialReference=${this.spatialReference ?? void 0} .timeZone=${this.timeZone ?? void 0} .view=${this.viewModel.view ?? void 0}></arcgis-feature-utility-network-associations>`;
215
187
  }
216
188
  _renderContentElement(e, t) {
217
189
  switch (e.type) {
@@ -237,40 +209,26 @@ class S extends b {
237
209
  }
238
210
  _renderContent() {
239
211
  const { content: e, graphic: t } = this.viewModel;
240
- if (!e)
241
- return null;
242
- if (Array.isArray(e) && e.length)
243
- return e.length ? e.map(this._renderContentElement, this) : null;
244
- if (typeof e == "string") {
245
- const { values: i, fieldInfoMap: s, sourceLayer: a, globalValues: o } = this;
246
- return n`<arcgis-feature-content .creator=${d({
247
- values: i,
248
- fieldInfoMap: s,
249
- globalValues: o,
250
- layer: a,
251
- text: e
252
- })} .graphic=${t ?? void 0} class="content-element"></arcgis-feature-content>`;
253
- }
254
- return e instanceof HTMLElement ? e : null;
212
+ return e ? Array.isArray(e) && e.length ? e.length ? e.map(this._renderContentElement, this) : null : typeof e == "string" ? r`<arcgis-feature-content .creator=${e} .graphic=${t ?? void 0} class="content-element"></arcgis-feature-content>` : e instanceof HTMLElement ? e : null : null;
255
213
  }
256
214
  _renderContentContainer() {
257
- const { hideContent: e, internalFlowItems: t, headingLevel: i, state: s, messages: a, heading: o, hideHeading: r } = this;
215
+ const { hideContent: e, internalFlowItems: t, headingLevel: i, state: o, messages: a, heading: s, hideHeading: n } = this;
258
216
  if (e)
259
217
  return null;
260
- const l = n`<div class="main">${[this._renderContent(), this._renderLastEditInfo()]}</div>`, c = a.returnToInitialFeature ?? "";
261
- return this.flowItems ? l : n`<calcite-flow ${w(this._storeRootFlowNode)}><calcite-flow-item .loading=${s === "loading"} .headingLevel=${i} .heading=${this.hideHeading ? void 0 : P(this.heading)} .selected=${!t.length}>${!r && o ? n`<div slot=heading><div .innerHTML=${A.sanitize(o ?? "") ?? ""}></div></div>` : null}${l}</calcite-flow-item>${t.toArray().map((h, p) => n`<calcite-flow-item @calciteFlowItemBack=${(u) => {
218
+ const l = r`<div class="main">${[this._renderContent(), this._renderLastEditInfo()]}</div>`, d = a.returnToInitialFeature ?? "";
219
+ return this.flowItems ? l : r`<calcite-flow ${y(this._storeRootFlowNode)}><calcite-flow-item .loading=${o === "loading"} .headingLevel=${i} .heading=${this.hideHeading ? void 0 : Z(this.heading)} .selected=${!t.length}>${!n && s ? r`<div slot=heading><div .innerHTML=${A.sanitize(s ?? "") ?? ""}></div></div>` : null}${l}</calcite-flow-item>${t.toArray().map((h, p) => r`<calcite-flow-item @calciteFlowItemBack=${(u) => {
262
220
  u.preventDefault(), this._handleDrillInBackClick();
263
- }} .loading=${s === "loading"} .headingLevel=${i} .selected=${p === t.length - 1}><calcite-action icon=move-up @click=${this._removeFlowItems} slot=header-actions-start .text=${c} title=${c ?? _}></calcite-action>${h}</calcite-flow-item>`)}</calcite-flow>`;
221
+ }} .loading=${o === "loading"} .headingLevel=${i} .selected=${p === t.length - 1}><calcite-action icon=move-up @click=${this._removeFlowItems} slot=header-actions-start .text=${d} title=${d ?? _}></calcite-action>${h}</calcite-flow-item>`)}</calcite-flow>`;
264
222
  }
265
223
  _renderLastEditInfo() {
266
224
  const { hideLastEditedInfo: e, messages: t } = this, { lastEditInfo: i } = this.viewModel;
267
225
  if (!i || e)
268
226
  return null;
269
- const { date: s, user: a } = i, o = i.type === "edit" ? a ? t.lastEditedByUser : t.lastEdited : a ? t.lastCreatedByUser : t.lastCreated, r = T(o ?? "", {
270
- date: s,
227
+ const { date: o, user: a } = i, s = i.type === "edit" ? a ? t.lastEditedByUser : t.lastEdited : a ? t.lastCreatedByUser : t.lastCreated, n = T(s ?? "", {
228
+ date: o,
271
229
  user: a
272
230
  });
273
- return n`<div class=${L(M("last-edited-info", "content-element"))}>${r}</div>`;
231
+ return r`<div class=${L(M("last-edited-info", "content-element"))}>${n}</div>`;
274
232
  }
275
233
  }
276
234
  $("arcgis-feature", S);