@arcgis/map-components 5.1.0-next.115 → 5.1.0-next.117

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 (196) hide show
  1. package/dist/cdn/G56TPBPA.js +2 -0
  2. package/dist/cdn/HSGCZH6S.js +2 -0
  3. package/dist/cdn/OPVHAXY3.js +2 -0
  4. package/dist/cdn/UANW2KLF.js +2 -0
  5. package/dist/cdn/WDIFQPYR.js +2 -0
  6. package/dist/cdn/{AP5KCMFI.js → WYDUTSDC.js} +1 -1
  7. package/dist/cdn/assets/paste/t9n/messages.ar.json +1 -1
  8. package/dist/cdn/assets/paste/t9n/messages.bg.json +1 -1
  9. package/dist/cdn/assets/paste/t9n/messages.bs.json +1 -1
  10. package/dist/cdn/assets/paste/t9n/messages.ca.json +1 -1
  11. package/dist/cdn/assets/paste/t9n/messages.cs.json +1 -1
  12. package/dist/cdn/assets/paste/t9n/messages.da.json +1 -1
  13. package/dist/cdn/assets/paste/t9n/messages.de.json +1 -1
  14. package/dist/cdn/assets/paste/t9n/messages.el.json +1 -1
  15. package/dist/cdn/assets/paste/t9n/messages.es.json +1 -1
  16. package/dist/cdn/assets/paste/t9n/messages.et.json +1 -1
  17. package/dist/cdn/assets/paste/t9n/messages.fi.json +1 -1
  18. package/dist/cdn/assets/paste/t9n/messages.fr.json +1 -1
  19. package/dist/cdn/assets/paste/t9n/messages.he.json +1 -1
  20. package/dist/cdn/assets/paste/t9n/messages.hr.json +1 -1
  21. package/dist/cdn/assets/paste/t9n/messages.hu.json +1 -1
  22. package/dist/cdn/assets/paste/t9n/messages.id.json +1 -1
  23. package/dist/cdn/assets/paste/t9n/messages.it.json +1 -1
  24. package/dist/cdn/assets/paste/t9n/messages.ja.json +1 -1
  25. package/dist/cdn/assets/paste/t9n/messages.ko.json +1 -1
  26. package/dist/cdn/assets/paste/t9n/messages.lt.json +1 -1
  27. package/dist/cdn/assets/paste/t9n/messages.lv.json +1 -1
  28. package/dist/cdn/assets/paste/t9n/messages.nl.json +1 -1
  29. package/dist/cdn/assets/paste/t9n/messages.no.json +1 -1
  30. package/dist/cdn/assets/paste/t9n/messages.pl.json +1 -1
  31. package/dist/cdn/assets/paste/t9n/messages.pt-BR.json +1 -1
  32. package/dist/cdn/assets/paste/t9n/messages.pt-PT.json +1 -1
  33. package/dist/cdn/assets/paste/t9n/messages.ro.json +1 -1
  34. package/dist/cdn/assets/paste/t9n/messages.ru.json +1 -1
  35. package/dist/cdn/assets/paste/t9n/messages.sk.json +1 -1
  36. package/dist/cdn/assets/paste/t9n/messages.sl.json +1 -1
  37. package/dist/cdn/assets/paste/t9n/messages.sr.json +1 -1
  38. package/dist/cdn/assets/paste/t9n/messages.sv.json +1 -1
  39. package/dist/cdn/assets/paste/t9n/messages.th.json +1 -1
  40. package/dist/cdn/assets/paste/t9n/messages.tr.json +1 -1
  41. package/dist/cdn/assets/paste/t9n/messages.uk.json +1 -1
  42. package/dist/cdn/assets/paste/t9n/messages.vi.json +1 -1
  43. package/dist/cdn/assets/paste/t9n/messages.zh-CN.json +1 -1
  44. package/dist/cdn/assets/paste/t9n/messages.zh-HK.json +1 -1
  45. package/dist/cdn/assets/paste/t9n/messages.zh-TW.json +1 -1
  46. package/dist/cdn/assets/print/t9n/messages.ar.json +1 -1
  47. package/dist/cdn/assets/print/t9n/messages.bg.json +1 -1
  48. package/dist/cdn/assets/print/t9n/messages.bs.json +1 -1
  49. package/dist/cdn/assets/print/t9n/messages.ca.json +1 -1
  50. package/dist/cdn/assets/print/t9n/messages.cs.json +1 -1
  51. package/dist/cdn/assets/print/t9n/messages.da.json +1 -1
  52. package/dist/cdn/assets/print/t9n/messages.de.json +1 -1
  53. package/dist/cdn/assets/print/t9n/messages.el.json +1 -1
  54. package/dist/cdn/assets/print/t9n/messages.es.json +1 -1
  55. package/dist/cdn/assets/print/t9n/messages.et.json +1 -1
  56. package/dist/cdn/assets/print/t9n/messages.fi.json +1 -1
  57. package/dist/cdn/assets/print/t9n/messages.fr.json +1 -1
  58. package/dist/cdn/assets/print/t9n/messages.he.json +1 -1
  59. package/dist/cdn/assets/print/t9n/messages.hr.json +1 -1
  60. package/dist/cdn/assets/print/t9n/messages.hu.json +1 -1
  61. package/dist/cdn/assets/print/t9n/messages.id.json +1 -1
  62. package/dist/cdn/assets/print/t9n/messages.it.json +1 -1
  63. package/dist/cdn/assets/print/t9n/messages.ja.json +1 -1
  64. package/dist/cdn/assets/print/t9n/messages.ko.json +1 -1
  65. package/dist/cdn/assets/print/t9n/messages.lt.json +1 -1
  66. package/dist/cdn/assets/print/t9n/messages.lv.json +1 -1
  67. package/dist/cdn/assets/print/t9n/messages.nl.json +1 -1
  68. package/dist/cdn/assets/print/t9n/messages.no.json +1 -1
  69. package/dist/cdn/assets/print/t9n/messages.pl.json +1 -1
  70. package/dist/cdn/assets/print/t9n/messages.pt-BR.json +1 -1
  71. package/dist/cdn/assets/print/t9n/messages.pt-PT.json +1 -1
  72. package/dist/cdn/assets/print/t9n/messages.ro.json +1 -1
  73. package/dist/cdn/assets/print/t9n/messages.ru.json +1 -1
  74. package/dist/cdn/assets/print/t9n/messages.sk.json +1 -1
  75. package/dist/cdn/assets/print/t9n/messages.sl.json +1 -1
  76. package/dist/cdn/assets/print/t9n/messages.sr.json +1 -1
  77. package/dist/cdn/assets/print/t9n/messages.sv.json +1 -1
  78. package/dist/cdn/assets/print/t9n/messages.th.json +1 -1
  79. package/dist/cdn/assets/print/t9n/messages.tr.json +1 -1
  80. package/dist/cdn/assets/print/t9n/messages.uk.json +1 -1
  81. package/dist/cdn/assets/print/t9n/messages.vi.json +1 -1
  82. package/dist/cdn/assets/print/t9n/messages.zh-CN.json +1 -1
  83. package/dist/cdn/assets/print/t9n/messages.zh-HK.json +1 -1
  84. package/dist/cdn/assets/print/t9n/messages.zh-TW.json +1 -1
  85. package/dist/cdn/assets/value-picker/t9n/messages.ar.json +1 -0
  86. package/dist/cdn/assets/value-picker/t9n/messages.bg.json +1 -0
  87. package/dist/cdn/assets/value-picker/t9n/messages.bs.json +1 -0
  88. package/dist/cdn/assets/value-picker/t9n/messages.ca.json +1 -0
  89. package/dist/cdn/assets/value-picker/t9n/messages.cs.json +1 -0
  90. package/dist/cdn/assets/value-picker/t9n/messages.da.json +1 -0
  91. package/dist/cdn/assets/value-picker/t9n/messages.de.json +1 -0
  92. package/dist/cdn/assets/value-picker/t9n/messages.el.json +1 -0
  93. package/dist/cdn/assets/value-picker/t9n/messages.es.json +1 -0
  94. package/dist/cdn/assets/value-picker/t9n/messages.et.json +1 -0
  95. package/dist/cdn/assets/value-picker/t9n/messages.fi.json +1 -0
  96. package/dist/cdn/assets/value-picker/t9n/messages.fr.json +1 -0
  97. package/dist/cdn/assets/value-picker/t9n/messages.he.json +1 -0
  98. package/dist/cdn/assets/value-picker/t9n/messages.hr.json +1 -0
  99. package/dist/cdn/assets/value-picker/t9n/messages.hu.json +1 -0
  100. package/dist/cdn/assets/value-picker/t9n/messages.id.json +1 -0
  101. package/dist/cdn/assets/value-picker/t9n/messages.it.json +1 -0
  102. package/dist/cdn/assets/value-picker/t9n/messages.ja.json +1 -0
  103. package/dist/cdn/assets/value-picker/t9n/messages.ko.json +1 -0
  104. package/dist/cdn/assets/value-picker/t9n/messages.lt.json +1 -0
  105. package/dist/cdn/assets/value-picker/t9n/messages.lv.json +1 -0
  106. package/dist/cdn/assets/value-picker/t9n/messages.nl.json +1 -0
  107. package/dist/cdn/assets/value-picker/t9n/messages.no.json +1 -0
  108. package/dist/cdn/assets/value-picker/t9n/messages.pl.json +1 -0
  109. package/dist/cdn/assets/value-picker/t9n/messages.pt-BR.json +1 -0
  110. package/dist/cdn/assets/value-picker/t9n/messages.pt-PT.json +1 -0
  111. package/dist/cdn/assets/value-picker/t9n/messages.ro.json +1 -0
  112. package/dist/cdn/assets/value-picker/t9n/messages.ru.json +1 -0
  113. package/dist/cdn/assets/value-picker/t9n/messages.sk.json +1 -0
  114. package/dist/cdn/assets/value-picker/t9n/messages.sl.json +1 -0
  115. package/dist/cdn/assets/value-picker/t9n/messages.sr.json +1 -0
  116. package/dist/cdn/assets/value-picker/t9n/messages.sv.json +1 -0
  117. package/dist/cdn/assets/value-picker/t9n/messages.th.json +1 -0
  118. package/dist/cdn/assets/value-picker/t9n/messages.tr.json +1 -0
  119. package/dist/cdn/assets/value-picker/t9n/messages.uk.json +1 -0
  120. package/dist/cdn/assets/value-picker/t9n/messages.vi.json +1 -0
  121. package/dist/cdn/assets/value-picker/t9n/messages.zh-CN.json +1 -0
  122. package/dist/cdn/assets/value-picker/t9n/messages.zh-HK.json +1 -0
  123. package/dist/cdn/assets/value-picker/t9n/messages.zh-TW.json +1 -0
  124. package/dist/cdn/assets/value-picker-combobox/t9n/messages.ar.json +1 -0
  125. package/dist/cdn/assets/value-picker-combobox/t9n/messages.bg.json +1 -0
  126. package/dist/cdn/assets/value-picker-combobox/t9n/messages.bs.json +1 -0
  127. package/dist/cdn/assets/value-picker-combobox/t9n/messages.ca.json +1 -0
  128. package/dist/cdn/assets/value-picker-combobox/t9n/messages.cs.json +1 -0
  129. package/dist/cdn/assets/value-picker-combobox/t9n/messages.da.json +1 -0
  130. package/dist/cdn/assets/value-picker-combobox/t9n/messages.de.json +1 -0
  131. package/dist/cdn/assets/value-picker-combobox/t9n/messages.el.json +1 -0
  132. package/dist/cdn/assets/value-picker-combobox/t9n/messages.es.json +1 -0
  133. package/dist/cdn/assets/value-picker-combobox/t9n/messages.et.json +1 -0
  134. package/dist/cdn/assets/value-picker-combobox/t9n/messages.fi.json +1 -0
  135. package/dist/cdn/assets/value-picker-combobox/t9n/messages.fr.json +1 -0
  136. package/dist/cdn/assets/value-picker-combobox/t9n/messages.he.json +1 -0
  137. package/dist/cdn/assets/value-picker-combobox/t9n/messages.hr.json +1 -0
  138. package/dist/cdn/assets/value-picker-combobox/t9n/messages.hu.json +1 -0
  139. package/dist/cdn/assets/value-picker-combobox/t9n/messages.id.json +1 -0
  140. package/dist/cdn/assets/value-picker-combobox/t9n/messages.it.json +1 -0
  141. package/dist/cdn/assets/value-picker-combobox/t9n/messages.ja.json +1 -0
  142. package/dist/cdn/assets/value-picker-combobox/t9n/messages.ko.json +1 -0
  143. package/dist/cdn/assets/value-picker-combobox/t9n/messages.lt.json +1 -0
  144. package/dist/cdn/assets/value-picker-combobox/t9n/messages.lv.json +1 -0
  145. package/dist/cdn/assets/value-picker-combobox/t9n/messages.nl.json +1 -0
  146. package/dist/cdn/assets/value-picker-combobox/t9n/messages.no.json +1 -0
  147. package/dist/cdn/assets/value-picker-combobox/t9n/messages.pl.json +1 -0
  148. package/dist/cdn/assets/value-picker-combobox/t9n/messages.pt-BR.json +1 -0
  149. package/dist/cdn/assets/value-picker-combobox/t9n/messages.pt-PT.json +1 -0
  150. package/dist/cdn/assets/value-picker-combobox/t9n/messages.ro.json +1 -0
  151. package/dist/cdn/assets/value-picker-combobox/t9n/messages.ru.json +1 -0
  152. package/dist/cdn/assets/value-picker-combobox/t9n/messages.sk.json +1 -0
  153. package/dist/cdn/assets/value-picker-combobox/t9n/messages.sl.json +1 -0
  154. package/dist/cdn/assets/value-picker-combobox/t9n/messages.sr.json +1 -0
  155. package/dist/cdn/assets/value-picker-combobox/t9n/messages.sv.json +1 -0
  156. package/dist/cdn/assets/value-picker-combobox/t9n/messages.th.json +1 -0
  157. package/dist/cdn/assets/value-picker-combobox/t9n/messages.tr.json +1 -0
  158. package/dist/cdn/assets/value-picker-combobox/t9n/messages.uk.json +1 -0
  159. package/dist/cdn/assets/value-picker-combobox/t9n/messages.vi.json +1 -0
  160. package/dist/cdn/assets/value-picker-combobox/t9n/messages.zh-CN.json +1 -0
  161. package/dist/cdn/assets/value-picker-combobox/t9n/messages.zh-HK.json +1 -0
  162. package/dist/cdn/assets/value-picker-combobox/t9n/messages.zh-TW.json +1 -0
  163. package/dist/cdn/index.js +1 -1
  164. package/dist/cdn/main.css +1 -1
  165. package/dist/components/arcgis-basemap-toggle/customElement.js +24 -21
  166. package/dist/components/arcgis-directions/customElement.d.ts +18 -4
  167. package/dist/components/arcgis-feature/customElement.d.ts +4 -6
  168. package/dist/components/arcgis-feature-table/customElement.d.ts +27 -6
  169. package/dist/components/arcgis-features/customElement.d.ts +10 -1
  170. package/dist/components/arcgis-features/customElement.js +35 -34
  171. package/dist/components/arcgis-map/customElement.d.ts +3 -3
  172. package/dist/components/arcgis-oriented-imagery-viewer/customElement.d.ts +20 -2
  173. package/dist/components/arcgis-popup/customElement.js +44 -35
  174. package/dist/components/arcgis-scene/customElement.d.ts +3 -3
  175. package/dist/components/arcgis-value-picker/customElement.d.ts +10 -0
  176. package/dist/components/arcgis-video/customElement.d.ts +2 -0
  177. package/dist/components/arcgis-video/customElement.js +6 -6
  178. package/dist/components/arcgis-view-popover/customElement.d.ts +94 -0
  179. package/dist/components/arcgis-view-popover/customElement.js +128 -0
  180. package/dist/components/arcgis-view-popover/index.d.ts +1 -0
  181. package/dist/components/arcgis-view-popover/index.js +2 -0
  182. package/dist/docs/api.json +1 -1
  183. package/dist/docs/docs.json +1 -1
  184. package/dist/docs/vscode.html-custom-data.json +1 -1
  185. package/dist/docs/web-types.json +1 -1
  186. package/dist/index.d.ts +10 -0
  187. package/dist/loader.js +2 -1
  188. package/dist/types/lumina.d.ts +7 -1
  189. package/dist/types/preact.d.ts +8 -1
  190. package/dist/types/react.d.ts +9 -1
  191. package/dist/types/stencil.d.ts +7 -1
  192. package/package.json +5 -5
  193. package/dist/cdn/4SNOTPCF.js +0 -2
  194. package/dist/cdn/AAS5G7SF.js +0 -2
  195. package/dist/cdn/DFUIUXWM.js +0 -2
  196. package/dist/cdn/LS5CW2BE.js +0 -2
@@ -1,24 +1,25 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import { c as f } from "../../chunks/runtime.js";
3
- import { css as _, html as t } from "lit";
4
- import { usePropertyChange as x } from "@arcgis/lumina/controllers";
2
+ import { c as _ } from "../../chunks/runtime.js";
3
+ import { css as x, html as t } from "lit";
4
+ import { usePropertyChange as y } from "@arcgis/lumina/controllers";
5
5
  import { classes as a } from "@arcgis/toolkit/dom";
6
- import { getBasemapThumbnailUrl as y } from "@arcgis/core/applications/Components/basemapUtils.js";
7
- import k from "@arcgis/core/widgets/BasemapToggle/BasemapToggleViewModel.js";
8
- import { LitElement as z, createEvent as B, nothing as n, safeClassMap as r, safeStyleMap as h } from "@arcgis/lumina";
9
- import { u as $ } from "../../chunks/useT9n.js";
10
- import { m as M } from "../../chunks/useViewModel.js";
11
- import { g as m } from "../../chunks/globalCss.js";
12
- const T = _`.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__heading{word-break:break-word}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}.root{box-shadow:none;background-color:var(--calcite-color-transparent)}.root calcite-button{flex-direction:row;justify-content:center;align-items:center;width:69px;height:69px;display:flex;position:relative;overflow:visible}.container,.image{width:64px;height:64px;position:absolute;top:0;left:0;overflow:hidden}.container{box-shadow:0 1px 2px #0000004d}.image{background-color:var(--calcite-color-foreground-1);background-image:url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2064%2064'%3e%3cpath%20fill='%236E6E6E'%20d='M16%2016v32h32V16H16zm17.028%2011.947l.022.106c.175.863.272%201.67-.46%202.066-.52.28-.792.764-1.014%201.155-.28.497-.414.684-.715.684-.158%200-.283-.085-.486-.24-.25-.192-.558-.426-1.03-.426-.692%200-1.255.606-1.255%201.35%200%20.475-.422%201.353-1.022%201.353-.49%200-.652-.172-.763-.37-.296-.53-.665-1.193-1.51-1.193-.85%200-1.542.735-1.542%201.635%200%20.286.06.508.11.702.044.165.083.31.083.478%200%20.244-.102.428-.23.666-.152.278-.34.62-.34%201.09%200%20.613.563%201.113%201.255%201.113.393%200%20.654-.104.865-.186.195-.078.332-.125.56-.103.103.01.21.3.21.5%200%20.323-.274.598-.59.914-.514.512-1.22%201.212-.638%202.368.22.444.758.57%201.277.69.24.057.416.095.56.132%200%200%20.254.34.318.536a.616.616%200%2000.013.23.92.92%200%2001-.17.506c-.253.382-.548.597-.862.825-.623.458-1.14.536-1.156%201.47H18V18h21.48c.03.578-.903%201.22-.903%201.22l-.98.58c-1.054.672-2.254%201.703-2.254%202.56%200%20.377.15.646.27.86.1.177.157.283.157.417%200%20.19-.126.316-.41.56-.25.215-.534.453-.663.84a1.27%201.27%200%2000-.064.4c0%20.138.03.307.063.488.028.153.09.472.042.547%200%200-.054.04-.258.04l-.174-.006c-.37%200-.75.303-.98.582-.172.206-.363.528-.298.86zM46%2046h-9.23c-.207-1.22-1.35-1.258-2.168-1.556-.288-.107-.585-.213-.858-.353-.354-.184-.35-.585-.296-.89%200%200%20.102-.303.09-.37l.003-.002c-.006-.036-.013-.067-.013-.11%200-.23.213-.34.7-.574.507-.25%201.2-.577%201.2-1.39%200-.293-.13-.488-.216-.62-.053-.08-.07-.11-.07-.132%200-.172.068-.286.332-.524.283-.253.628-.6.628-1.19v-.93c0-.092.27-.195.605-.03.165.078.41.188.715.188.672%200%201.04-.494%201.3-.853.24-.332.33-.516.565-.48.235.042.15.05.324.41.12.25.26.538.52.763.454.397.98.528%201.506.57a6.126%206.126%200%20001.996.005l.168-.027a4.14%204.14%200%2001.98-.067s.09.022.14.006c.39.044.717.177.98.458l.1.248c.003.005-.003.01%200%20.015V46z'/%3e%3cpath%20clip-rule='evenodd'%20fill='none'%20d='M16%2016h32v32H16z'/%3e%3cpath%20fill='none'%20d='M0%200h64v64H0z'/%3e%3c/svg%3e");background-position:50%;background-repeat:no-repeat;background-size:cover}.image-loading{background-image:unset;justify-content:center;align-items:center;display:flex}.image-secondary{margin-top:5px;margin-left:5px;animation:2s ease-in-out esri-basemap-slide;box-shadow:0 1px 2px #0000004d}.overlay-scrim{--calcite-scrim-background: #00000080;color:var(--calcite-color-text-inverse)}.overlay{background-color:var(--calcite-color-transparent);justify-content:center;align-items:flex-end;width:100%;height:100%;transition:background-color .125s ease-in-out;display:flex;position:absolute}.overlay .root:hover{background-color:var(--calcite-color-background)}.title{text-align:center;background-color:var(--calcite-color-transparent-tint);flex:1 0 100%;height:auto;padding:.5em;font-size:var(--calcite-font-size-xs);font-weight:var(--calcite-font-weight-medium);line-height:var(--calcite-font-line-height-relative-tight)}.title-wrap{text-wrap:wrap}`, S = M(k);
13
- class E extends z {
6
+ import { getBasemapThumbnailUrl as k } from "@arcgis/core/applications/Components/basemapUtils.js";
7
+ import z from "@arcgis/core/widgets/BasemapToggle/BasemapToggleViewModel.js";
8
+ import { LitElement as $, createEvent as B, nothing as n, safeClassMap as r, safeStyleMap as h } from "@arcgis/lumina";
9
+ import { u as M } from "../../chunks/useT9n.js";
10
+ import { m as T } from "../../chunks/useViewModel.js";
11
+ import { g as u } from "../../chunks/globalCss.js";
12
+ import { s as S } from "../../chunks/sr.js";
13
+ const E = x`.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__heading{word-break:break-word}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}.root{box-shadow:none;background-color:var(--calcite-color-transparent)}.root calcite-button{flex-direction:row;justify-content:center;align-items:center;width:69px;height:69px;display:flex;position:relative;overflow:visible}.container,.image{width:64px;height:64px;position:absolute;top:0;left:0;overflow:hidden}.container{box-shadow:0 1px 2px #0000004d}.image{background-color:var(--calcite-color-foreground-1);background-image:url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2064%2064'%3e%3cpath%20fill='%236E6E6E'%20d='M16%2016v32h32V16H16zm17.028%2011.947l.022.106c.175.863.272%201.67-.46%202.066-.52.28-.792.764-1.014%201.155-.28.497-.414.684-.715.684-.158%200-.283-.085-.486-.24-.25-.192-.558-.426-1.03-.426-.692%200-1.255.606-1.255%201.35%200%20.475-.422%201.353-1.022%201.353-.49%200-.652-.172-.763-.37-.296-.53-.665-1.193-1.51-1.193-.85%200-1.542.735-1.542%201.635%200%20.286.06.508.11.702.044.165.083.31.083.478%200%20.244-.102.428-.23.666-.152.278-.34.62-.34%201.09%200%20.613.563%201.113%201.255%201.113.393%200%20.654-.104.865-.186.195-.078.332-.125.56-.103.103.01.21.3.21.5%200%20.323-.274.598-.59.914-.514.512-1.22%201.212-.638%202.368.22.444.758.57%201.277.69.24.057.416.095.56.132%200%200%20.254.34.318.536a.616.616%200%2000.013.23.92.92%200%2001-.17.506c-.253.382-.548.597-.862.825-.623.458-1.14.536-1.156%201.47H18V18h21.48c.03.578-.903%201.22-.903%201.22l-.98.58c-1.054.672-2.254%201.703-2.254%202.56%200%20.377.15.646.27.86.1.177.157.283.157.417%200%20.19-.126.316-.41.56-.25.215-.534.453-.663.84a1.27%201.27%200%2000-.064.4c0%20.138.03.307.063.488.028.153.09.472.042.547%200%200-.054.04-.258.04l-.174-.006c-.37%200-.75.303-.98.582-.172.206-.363.528-.298.86zM46%2046h-9.23c-.207-1.22-1.35-1.258-2.168-1.556-.288-.107-.585-.213-.858-.353-.354-.184-.35-.585-.296-.89%200%200%20.102-.303.09-.37l.003-.002c-.006-.036-.013-.067-.013-.11%200-.23.213-.34.7-.574.507-.25%201.2-.577%201.2-1.39%200-.293-.13-.488-.216-.62-.053-.08-.07-.11-.07-.132%200-.172.068-.286.332-.524.283-.253.628-.6.628-1.19v-.93c0-.092.27-.195.605-.03.165.078.41.188.715.188.672%200%201.04-.494%201.3-.853.24-.332.33-.516.565-.48.235.042.15.05.324.41.12.25.26.538.52.763.454.397.98.528%201.506.57a6.126%206.126%200%20001.996.005l.168-.027a4.14%204.14%200%2001.98-.067s.09.022.14.006c.39.044.717.177.98.458l.1.248c.003.005-.003.01%200%20.015V46z'/%3e%3cpath%20clip-rule='evenodd'%20fill='none'%20d='M16%2016h32v32H16z'/%3e%3cpath%20fill='none'%20d='M0%200h64v64H0z'/%3e%3c/svg%3e");background-position:50%;background-repeat:no-repeat;background-size:cover}.image-loading{background-image:unset;justify-content:center;align-items:center;display:flex}.image-secondary{margin-top:5px;margin-left:5px;animation:2s ease-in-out esri-basemap-slide;box-shadow:0 1px 2px #0000004d}.overlay-scrim{--calcite-scrim-background: #00000080;color:var(--calcite-color-text-inverse)}.overlay{background-color:var(--calcite-color-transparent);justify-content:center;align-items:flex-end;width:100%;height:100%;transition:background-color .125s ease-in-out;display:flex;position:absolute}.overlay .root:hover{background-color:var(--calcite-color-background)}.title{text-align:center;background-color:var(--calcite-color-transparent-tint);flex:1 0 100%;height:auto;padding:.5em;font-size:var(--calcite-font-size-xs);font-weight:var(--calcite-font-weight-medium);line-height:var(--calcite-font-line-height-relative-tight)}.title-wrap{text-wrap:wrap}`, C = T(z);
14
+ class j extends $ {
14
15
  constructor() {
15
- super(...arguments), this.messages = $(), this.viewModel = S(this), this.view = this.viewModel.view, this.activeBasemap = this.viewModel.activeBasemap, this.autoDestroyDisabled = !1, this.icon = "layer-basemap", this.nextBasemap = this.viewModel.nextBasemap, this.showTitle = !1, this.state = this.viewModel.state, this.arcgisPropertyChange = x()("activeBasemap", "nextBasemap", "state"), this.arcgisReady = B();
16
+ super(...arguments), this.messages = M(), this.viewModel = C(this), this.view = this.viewModel.view, this.activeBasemap = this.viewModel.activeBasemap, this.autoDestroyDisabled = !1, this.icon = "layer-basemap", this.nextBasemap = this.viewModel.nextBasemap, this.showTitle = !1, this.state = this.viewModel.state, this.arcgisPropertyChange = y()("activeBasemap", "nextBasemap", "state"), this.arcgisReady = B();
16
17
  }
17
18
  static {
18
19
  this.properties = { view: 0, activeBasemap: 32, autoDestroyDisabled: 5, icon: 1, label: 1, messageOverrides: 0, nextBasemap: 1, referenceElement: 1, showTitle: 5, state: 32 };
19
20
  }
20
21
  static {
21
- this.styles = T;
22
+ this.styles = [E, S];
22
23
  }
23
24
  async destroy() {
24
25
  await this.manager.destroy();
@@ -27,19 +28,21 @@ class E extends z {
27
28
  return await this.viewModel.toggle();
28
29
  }
29
30
  _getThumbnailStyles(e) {
30
- const o = y(e);
31
+ const o = k(e);
31
32
  return o ? { backgroundImage: `url(${o})` } : { backgroundImage: "" };
32
33
  }
33
34
  render() {
34
- const e = this.viewModel, o = e.state === "disabled" ? null : e.activeBasemap, i = e.state === "disabled" ? null : e.nextBasemap, u = e.state === "loading", s = e.state === "incompatible-next-basemap", l = i?.title ?? "", c = i && i.loadStatus !== "loaded";
35
- let d;
36
- const g = this.showTitle && l, p = s, v = g || p, b = this._getThumbnailStyles(o), w = this._getThumbnailStyles(i);
37
- return v && (d = t`<div class="overlay">${g ? t`<span class=${r(a("title", "title-wrap"))} title=${l ?? n}>${l}</span>` : null}${p ? t`<calcite-scrim class="overlay-scrim" title=${this.messages.incompatibleSpatialReference ?? n}><calcite-icon icon=exclamation-mark-triangle></calcite-icon></calcite-scrim>` : null}</div>`), t`<div class=${r(a("root", m.widget))}><calcite-button appearance=transparent data-basemap-id=${(i ? i.id : "") ?? n} .disabled=${s} kind=neutral .label=${this.label ?? void 0} @click=${() => {
35
+ const e = this.viewModel, o = e.state === "disabled" ? null : e.activeBasemap, i = e.state === "disabled" ? null : e.nextBasemap, v = e.state === "loading", c = e.state === "incompatible-next-basemap", l = i?.title ?? "", d = i && i.loadStatus !== "loaded";
36
+ let g;
37
+ const p = this.showTitle && l, m = c, b = p || m, f = this._getThumbnailStyles(o), w = this._getThumbnailStyles(i);
38
+ b && (g = t`<div class="overlay">${p ? t`<span class=${r(a("title", "title-wrap"))} title=${l ?? n}>${l}</span>` : null}${m ? t`<calcite-scrim class="overlay-scrim" title=${this.messages.incompatibleSpatialReference ?? n}><calcite-icon icon=exclamation-mark-triangle></calcite-icon></calcite-scrim>` : null}</div>`);
39
+ const s = this.label ?? this.messages.componentLabel;
40
+ return t`<div class=${r(a("root", u.widget))}><calcite-button appearance=transparent data-basemap-id=${(i ? i.id : "") ?? n} .disabled=${c} kind=neutral .label=${s} @click=${() => {
38
41
  this.toggle();
39
- }} title=${this.label ?? void 0 ?? n}><div class=${r(a("container", "image-secondary"))}><div class="image" style=${h(b)}></div></div><div class="container"><div class=${r(a("image", c ? "image-loading" : null))} style=${h(w)}>${c || u ? t`<calcite-scrim><span aria-hidden=true class=${r(m.loaderAnimation)} role=presentation></span></calcite-scrim>` : null}</div>${d}</div></calcite-button></div>`;
42
+ }} title=${s ?? n}><span class="sr-only">${s}</span><div class=${r(a("container", "image-secondary"))}><div class="image" style=${h(f)}></div></div><div class="container"><div class=${r(a("image", d ? "image-loading" : null))} style=${h(w)}>${d || v ? t`<calcite-scrim><span aria-hidden=true class=${r(u.loaderAnimation)} role=presentation></span></calcite-scrim>` : null}</div>${g}</div></calcite-button></div>`;
40
43
  }
41
44
  }
42
- f("arcgis-basemap-toggle", E);
45
+ _("arcgis-basemap-toggle", j);
43
46
  export {
44
- E as ArcgisBasemapToggle
47
+ j as ArcgisBasemapToggle
45
48
  };
@@ -156,17 +156,31 @@ export abstract class ArcgisDirections extends LitElement {
156
156
  get lastRoute(): RouteLayerSolveResult | null | undefined;
157
157
  /**
158
158
  * The [RouteLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/RouteLayer/) associated with the Directions component.
159
- * This property is required.
159
+ * A RouteLayer must be associated with the component in order to solve routes and display results on the map.
160
+ *
161
+ * The RouteLayer can be set directly via the `layer` property, or indirectly by setting either the [layerId](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-directions/#layerId) or [routeLayerItemId](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-directions/#routeLayerItemId) properties.
162
+ * If using the latter, the component will attempt to find and use a layer matching the provided ID from the map or portal item.
163
+ * If no layer is found and [useDefaultRouteLayer](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-directions/#useDefaultRouteLayer) is not set to `true`, then no RouteLayer will be associated and routing functionality will be unavailable.
160
164
  * The RouteLayer contains stops and barriers and will be used to display and solve routes.
161
165
  *
162
- * @since 4.24
166
+ * > [!WARNING]
167
+ * > Use `layer`, `layerId`, and `routeLayerItemId` independently; only one should be set at a time.
163
168
  */
164
169
  accessor layer: RouteLayer | null | undefined;
165
170
  /**
166
- * Layer Id of layer in the associated map. You can set `layer`, `layerId` or `routeLayerItemId`,
167
- * but not more than one.
171
+ * The layer ID of a route layer in the associated map.
172
+ * When set, the component will attempt to find and use the layer with the provided ID from the map.
173
+ *
174
+ * > [!WARNING]
175
+ * > Use `layer`, `layerId`, and `routeLayerItemId` independently; only one should be set at a time.
168
176
  *
169
177
  * @since 5.1
178
+ * @example
179
+ * ```html
180
+ * <arcgis-map item-id="28c1e2519ee44e93b42c8adbee0d4dd0">
181
+ * <arcgis-directions slot="top-right" layer-id="19e2cba6c23-layer-2"></arcgis-directions>
182
+ * </arcgis-map>
183
+ * ```
170
184
  */
171
185
  accessor layerId: string | undefined;
172
186
  /**
@@ -203,11 +203,6 @@ export abstract class ArcgisFeature extends LitElement {
203
203
  * @since 4.29
204
204
  * @see [PopupTemplate#content](https://developers.arcgis.com/javascript/latest/references/core/PopupTemplate/#content)
205
205
  * @see [Arcade Profiles: Popup](https://developers.arcgis.com/arcade/profiles/popup/)
206
- * @example
207
- * view.on("click", (event) => {
208
- * const { mapPoint } = event;
209
- * feature.viewModel.location = mapPoint;
210
- * });
211
206
  */
212
207
  accessor location: Point | null | undefined;
213
208
  /**
@@ -401,7 +396,10 @@ export abstract class ArcgisFeature extends LitElement {
401
396
  * > **Note:** The recommended approach is to fully migrate applications to use map and scene components and avoid using MapView and SceneView directly. However, if you are migrating a large application from widgets to components, you might prefer a more gradual transition. To support this use case, the SDK includes this `view` property which connects a component to a MapView or SceneView. Ultimately, once migration is complete, the arcgis-feature component will be associated with a map or scene component rather than using the `view` property.
402
397
  */
403
398
  accessor view: MapViewOrSceneView | null | undefined;
404
- /** @since 4.34 */
399
+ /**
400
+ * @deprecated since 5.1. Use properties directly on the component instead of accessing them through the `viewModel`. For example, instead of `viewModel.graphic`, use `graphic`.
401
+ * @since 4.34
402
+ */
405
403
  accessor viewModel: FeatureViewModel;
406
404
  /** Permanently destroy the component. */
407
405
  destroy(): Promise<void>;
@@ -577,19 +577,38 @@ export abstract class ArcgisFeatureTable extends LitElement {
577
577
  * > Support for [GeoJSONLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/GeoJSONLayer/), [CSVLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/CSVLayer/), [ImageryLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/ImageryLayer/), and [WFSLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/WFSLayer/) was added at version 4.21.
578
578
  * > For an [ImageryLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/ImageryLayer/) to work with FeatureTable, it must have a mosaic dataset.
579
579
  *
580
+ * > [!WARNING]
581
+ * > Use `layer`, `layerUrl`, `layerId`, and `layerItemId` independently; only one should be set at a time.
582
+ *
580
583
  * @see [pageSize](https://developers.arcgis.com/javascript/latest/references/core/widgets/FeatureTable/#pageSize)
581
584
  */
582
585
  accessor layer: FeatureTableSupportedLayer | null | undefined;
583
586
  /**
584
- * Layer Id of layer in the associated map. You can set `layer`, `layerId` or `layerItemId`,
585
- * but not more than one.
587
+ * The layer ID of a layer in the associated map.
588
+ * When set, the component will attempt to find and use the layer with the provided ID from the map.
589
+ *
590
+ * > [!WARNING]
591
+ * > Use `layer`, `layerUrl`, `layerId`, and `layerItemId` independently; only one should be set at a time.
586
592
  *
587
593
  * @since 5.1
594
+ * @example
595
+ * ```html
596
+ * <arcgis-map id="my-map" item-id="56cb159275394410a2a928be9c6f5c2a"></arcgis-map>
597
+ * <!-- configure the feature table to use a layer from the map by setting the layerId property -->
598
+ * <arcgis-feature-table
599
+ * layer-id="1841c01f604-layer-5"
600
+ * reference-element="my-map"
601
+ * sync-view-selection
602
+ * filter-by-view-extent
603
+ * ></arcgis-feature-table>
604
+ * ```
588
605
  */
589
606
  accessor layerId: string | undefined;
590
607
  /**
591
- * Portal Item Id for a layer to load. You can set, `layer`, `layerUrl`, `layerId` or `layerItemId`,
592
- * but not more than one.
608
+ * The portal item ID of a layer.
609
+ *
610
+ * > [!WARNING]
611
+ * > Use `layer`, `layerUrl`, `layerId`, and `layerItemId` independently; only one should be set at a time.
593
612
  */
594
613
  accessor layerItemId: string | undefined;
595
614
  /**
@@ -600,8 +619,10 @@ export abstract class ArcgisFeatureTable extends LitElement {
600
619
  */
601
620
  accessor layers: Array<FeatureTableSupportedLayer> | null | undefined;
602
621
  /**
603
- * Url for a layer to load. You can set, `layer`, `layerUrl`, `layerId` or `layerItemId`,
604
- * but not more than one.
622
+ * The URL to a layer's REST endpoint.
623
+ *
624
+ * > [!WARNING]
625
+ * > Use `layer`, `layerUrl`, `layerId`, and `layerItemId` independently; only one should be set at a time.
605
626
  */
606
627
  accessor layerUrl: string | undefined;
607
628
  /**
@@ -571,7 +571,10 @@ export abstract class ArcgisFeatures extends LitElement {
571
571
  * @since 4.34
572
572
  */
573
573
  accessor view: MapViewOrSceneView | null | undefined;
574
- /** @since 4.34 */
574
+ /**
575
+ * @deprecated since 5.1. Use properties directly on the component instead of accessing them through the `viewModel`. For example, instead of `viewModel.active`, use `active`.
576
+ * @since 4.34
577
+ */
575
578
  accessor viewModel: FeaturesViewModel;
576
579
  /**
577
580
  * Removes [promises](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-features/#promises), [features](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-features/#features), [content](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-features/#content), and
@@ -609,12 +612,18 @@ export abstract class ArcgisFeatures extends LitElement {
609
612
  /**
610
613
  * Selects the feature at the next index in relation to the [selectedFeature](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-features/#selectedFeature).
611
614
  *
615
+ * > [!WARNING]
616
+ * > The return type of `FeaturesViewModel` on the `next()` method is deprecated. At 6.0, this method will return void. See [arcgis-features-next.next()](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-features-next/#next) for the updated usage.
617
+ *
612
618
  * @see [selectedFeatureIndex](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-features/#selectedFeatureIndex)
613
619
  */
614
620
  next(): Promise<FeaturesViewModel>;
615
621
  /**
616
622
  * Selects the feature at the previous index in relation to the [selectedFeature](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-features/#selectedFeature).
617
623
  *
624
+ * > [!WARNING]
625
+ * > The return type of `FeaturesViewModel` on the `previous()` method is deprecated. At 6.0, this method will return void. See [arcgis-features-next.previous()](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-features-next/#previous) for the updated usage.
626
+ *
618
627
  * @see [selectedFeatureIndex](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-features/#selectedFeatureIndex)
619
628
  */
620
629
  previous(): Promise<FeaturesViewModel>;
@@ -1,48 +1,49 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import { c as N } from "../../chunks/runtime.js";
3
- import { css as R, html as a } from "lit";
4
- import { keyed as D } from "lit/directives/keyed.js";
5
- import O from "@arcgis/core/widgets/Features/FeaturesViewModel.js";
6
- import { u as L } from "../../chunks/useT9n.js";
2
+ import { c as R } from "../../chunks/runtime.js";
3
+ import { css as O, html as a } from "lit";
4
+ import { keyed as V } from "lit/directives/keyed.js";
5
+ import L from "@arcgis/core/widgets/Features/FeaturesViewModel.js";
6
+ import { u as B } from "../../chunks/useT9n.js";
7
+ import { log as D } from "@arcgis/toolkit/log";
7
8
  import { classes as A } from "@arcgis/toolkit/dom";
8
- import { usePropertyChange as B, bypassReadOnly as x } from "@arcgis/lumina/controllers";
9
- import { m as S } from "../../chunks/useViewModel.js";
10
- import { LitElement as H, createEvent as y, renderElement as P, nothing as h, safeClassMap as I } from "@arcgis/lumina";
9
+ import { usePropertyChange as S, bypassReadOnly as x } from "@arcgis/lumina/controllers";
10
+ import { m as H } from "../../chunks/useViewModel.js";
11
+ import { LitElement as P, createEvent as y, renderElement as z, nothing as h, safeClassMap as I } from "@arcgis/lumina";
11
12
  import { substitute as u, formatNumber as C } from "@arcgis/core/intl.js";
12
13
  import { watch as r } from "@arcgis/core/core/reactiveUtils.js";
13
- import { t as z, z as U } from "../../chunks/action-utils.js";
14
+ import { t as U, z as Z } from "../../chunks/action-utils.js";
14
15
  import { stripHTML as T } from "@arcgis/core/applications/Components/stringUtils.js";
15
- import V from "@arcgis/core/core/Collection.js";
16
- import { g as Z } from "../../chunks/feature-utils.js";
16
+ import E from "@arcgis/core/core/Collection.js";
17
+ import { g as j } from "../../chunks/feature-utils.js";
17
18
  import { renderingSanitizer as _ } from "@arcgis/core/applications/Components/sanitizerUtils.js";
18
- import { initializeProjection as j } from "@arcgis/core/applications/Components/featureUtils.js";
19
- import G from "@arcgis/core/support/actions/ActionButton.js";
19
+ import { initializeProjection as G } from "@arcgis/core/applications/Components/featureUtils.js";
20
+ import K from "@arcgis/core/support/actions/ActionButton.js";
20
21
  import { createRef as b, ref as m } from "lit/directives/ref.js";
21
- const K = R`:host{display:flex;overflow:hidden;flex:1 1 auto}.root{--calcite-color-background: var(--calcite-color-foreground-1);display:flex;overflow:hidden;flex:1 1 auto;flex-direction:column}.root img{image-orientation:from-image}.flow-item-collapsed{--calcite-flow-item-header-border-block-end: none}.container{display:flex;flex:1 1 auto;background-color:var(--calcite-color-foreground-1)}.container calcite-list{width:100%}.container:not(:empty,.content-hidden){padding:var(--arcgis-internal-padding-md, var(--calcite-spacing-md))}.root .arcgis-feature,.root .arcgis-feature-relationship,.root .arcgis-feature-utility-network-associations{background-color:transparent}.heading{word-break:break-word;word-wrap:break-word}.header,.footer{display:flex;align-items:center;justify-content:flex-end;background-color:var(--calcite-color-foreground-1)}.footer{flex:1}.pagination-text{padding-inline:var(--calcite-spacing-sm);color:var(--calcite-color-text-3);font-size:var(--calcite-font-size-sm)}.loader{align-self:center;padding-inline:var(--calcite-spacing-lg)}.pagination-action-bar{flex:1}.pagination-menu-button{padding-inline:var(--calcite-spacing-xxs);border-inline-start:var(--calcite-border-width-sm) solid var(--calcite-color-border-3)}.icon{display:inline-block;flex:0 0 var(--calcite-spacing-lg);width:var(--calcite-spacing-lg);height:var(--calcite-spacing-lg)}.action-image{flex:0 0 var(--calcite-spacing-lg);background-position:50% 50%;background-repeat:no-repeat;background-size:contain;width:var(--calcite-spacing-lg);height:var(--calcite-spacing-lg)}.header{border-block-end:var(--calcite-border-width-sm) solid var(--calcite-color-border-3)}.content-feature{--calcite-flow-item-footer-padding: 0}.feature-menu-observer{position:relative;bottom:var(--calcite-spacing-xxl);z-index:2;text-align:center}.action-exit{transform:scaleX(-1)}`, q = new G({
22
+ const q = O`:host{display:flex;overflow:hidden;flex:1 1 auto}.root{--calcite-color-background: var(--calcite-color-foreground-1);display:flex;overflow:hidden;flex:1 1 auto;flex-direction:column}.root img{image-orientation:from-image}.flow-item-collapsed{--calcite-flow-item-header-border-block-end: none}.container{display:flex;flex:1 1 auto;background-color:var(--calcite-color-foreground-1)}.container calcite-list{width:100%}.container:not(:empty,.content-hidden){padding:var(--arcgis-internal-padding-md, var(--calcite-spacing-md))}.root .arcgis-feature,.root .arcgis-feature-relationship,.root .arcgis-feature-utility-network-associations{background-color:transparent}.heading{word-break:break-word;word-wrap:break-word}.header,.footer{display:flex;align-items:center;justify-content:flex-end;background-color:var(--calcite-color-foreground-1)}.footer{flex:1}.pagination-text{padding-inline:var(--calcite-spacing-sm);color:var(--calcite-color-text-3);font-size:var(--calcite-font-size-sm)}.loader{align-self:center;padding-inline:var(--calcite-spacing-lg)}.pagination-action-bar{flex:1}.pagination-menu-button{padding-inline:var(--calcite-spacing-xxs);border-inline-start:var(--calcite-border-width-sm) solid var(--calcite-color-border-3)}.icon{display:inline-block;flex:0 0 var(--calcite-spacing-lg);width:var(--calcite-spacing-lg);height:var(--calcite-spacing-lg)}.action-image{flex:0 0 var(--calcite-spacing-lg);background-position:50% 50%;background-repeat:no-repeat;background-size:contain;width:var(--calcite-spacing-lg);height:var(--calcite-spacing-lg)}.header{border-block-end:var(--calcite-border-width-sm) solid var(--calcite-color-border-3)}.content-feature{--calcite-flow-item-footer-padding: 0}.feature-menu-observer{position:relative;bottom:var(--calcite-spacing-xxl);z-index:2;text-align:center}.action-exit{transform:scaleX(-1)}`, W = new K({
22
23
  icon: "magnifying-glass-plus",
23
24
  id: "zoom-to-feature",
24
25
  title: "{messages.zoom}"
25
- }), M = q.clone();
26
- function W(k) {
26
+ }), M = W.clone();
27
+ function X(k) {
27
28
  return k?.declaredClass.startsWith("esri.layers.") ?? !1;
28
29
  }
29
- const X = S(O);
30
- class J extends H {
30
+ const J = H(L);
31
+ class Q extends P {
31
32
  constructor() {
32
33
  super(...arguments), this._fetchFeaturesController = null, this._featureMenuIntersectionObserverCallback = ([e]) => {
33
34
  e?.isIntersecting && this.viewModel.featurePage != null && this.viewModel.featurePage++;
34
35
  }, this._featureMenuIntersectionObserver = new IntersectionObserver(this._featureMenuIntersectionObserverCallback, {
35
36
  root: window.document
36
- }), this._featureMenuIntersectionObserverNode = null, this._rootFlowItemNode = b(), this._featureMenuViewportNode = b(), this._actionBarMenuNode = b(), this._flowContainerNode = b(), this.messages = L(), this._selectedFeatureComponent = b(), this._cancelOpenRelatedFeature = () => {
37
+ }), this._featureMenuIntersectionObserverNode = null, this._rootFlowItemNode = b(), this._featureMenuViewportNode = b(), this._actionBarMenuNode = b(), this._flowContainerNode = b(), this.messages = B(), this._selectedFeatureComponent = b(), this._cancelOpenRelatedFeature = () => {
37
38
  const { _openRelatedFeatureAbortController: e } = this;
38
39
  e && e.abort(), this._openRelatedFeatureAbortController = null;
39
- }, this._openRelatedFeatureAbortController = null, this.flowItems = new V(), this.viewModel = X(this), this.actions = this.viewModel.actions, this.active = this.viewModel.active, this.autoDestroyDisabled = !1, this.collapsed = !1, this.content = this.viewModel.content, this.defaultPopupTemplateEnabled = this.viewModel.defaultPopupTemplateEnabled, this.featureCount = this.viewModel.featureCount, this.featureMenuOpen = this.viewModel.featureMenuOpen, this.featureMenuTitle = this.viewModel.featureMenuTitle, this.featureNavigationTop = !1, this.features = this.viewModel.features, this.featuresPerPage = this.viewModel.featuresPerPage, this.featureViewModelAbilities = this.viewModel.featureViewModelAbilities, this.goToOverride = this.viewModel.goToOverride, this.headerActions = new V(), this.heading = this.viewModel.title, this.headingLevel = 2, this.hideActionBar = !1, this.hideCloseButton = !1, this.hideFeatureMenuHeading = !1, this.hideFeatureNavigation = !1, this.hideFeatureListLayerTitle = !1, this.hideHeading = !1, this.hideSelectFeature = !1, this.hideSpinner = !1, this.hideContent = !1, this.hideExpressionContent = !1, this.hideLastEditedInfo = !1, this.highlightDisabled = this.viewModel.highlightEnabled, this.includeDefaultActionsDisabled = this.viewModel.includeDefaultActions, this.initialDisplayMode = this.viewModel.initialDisplayMode, this.location = this.viewModel.location, this.map = this.viewModel.map, this.open = this.viewModel.visible, this.promises = this.viewModel.promises, this.responsiveActionsEnabled = !1, this.selectedFeature = this.viewModel.selectedFeature, this.selectedFeatureIndex = this.viewModel.selectedFeatureIndex, this.showCollapseButton = !1, this.spatialReference = this.viewModel.spatialReference, this.state = this.viewModel.state, this.timeZone = this.viewModel.timeZone, this.updateLocationEnabled = this.viewModel.updateLocationEnabled, this.view = this.viewModel.view, this.arcgisPropertyChange = B()("active", "collapsed", "effectiveHeading", "featureCount", "featureMenuOpen", "features", "promises", "selectedDrillInFeature", "selectedFeature", "selectedFeatureComponent", "selectedFeatureIndex", "state", "open"), this.arcgisReady = y(), this.arcgisClose = y(), this.arcgisTriggerAction = y();
40
+ }, this._openRelatedFeatureAbortController = null, this.flowItems = new E(), this.viewModel = J(this), this.actions = this.viewModel.actions, this.active = this.viewModel.active, this.autoDestroyDisabled = !1, this.collapsed = !1, this.content = this.viewModel.content, this.defaultPopupTemplateEnabled = this.viewModel.defaultPopupTemplateEnabled, this.featureCount = this.viewModel.featureCount, this.featureMenuOpen = this.viewModel.featureMenuOpen, this.featureMenuTitle = this.viewModel.featureMenuTitle, this.featureNavigationTop = !1, this.features = this.viewModel.features, this.featuresPerPage = this.viewModel.featuresPerPage, this.featureViewModelAbilities = this.viewModel.featureViewModelAbilities, this.goToOverride = this.viewModel.goToOverride, this.headerActions = new E(), this.heading = this.viewModel.title, this.headingLevel = 2, this.hideActionBar = !1, this.hideCloseButton = !1, this.hideFeatureMenuHeading = !1, this.hideFeatureNavigation = !1, this.hideFeatureListLayerTitle = !1, this.hideHeading = !1, this.hideSelectFeature = !1, this.hideSpinner = !1, this.hideContent = !1, this.hideExpressionContent = !1, this.hideLastEditedInfo = !1, this.highlightDisabled = this.viewModel.highlightEnabled, this.includeDefaultActionsDisabled = this.viewModel.includeDefaultActions, this.initialDisplayMode = this.viewModel.initialDisplayMode, this.location = this.viewModel.location, this.map = this.viewModel.map, this.open = this.viewModel.visible, this.promises = this.viewModel.promises, this.responsiveActionsEnabled = !1, this.selectedFeature = this.viewModel.selectedFeature, this.selectedFeatureIndex = this.viewModel.selectedFeatureIndex, this.showCollapseButton = !1, this.spatialReference = this.viewModel.spatialReference, this.state = this.viewModel.state, this.timeZone = this.viewModel.timeZone, this.updateLocationEnabled = this.viewModel.updateLocationEnabled, this.view = this.viewModel.view, this.arcgisPropertyChange = S()("active", "collapsed", "effectiveHeading", "featureCount", "featureMenuOpen", "features", "promises", "selectedDrillInFeature", "selectedFeature", "selectedFeatureComponent", "selectedFeatureIndex", "state", "open"), this.arcgisReady = y(), this.arcgisClose = y(), this.arcgisTriggerAction = y();
40
41
  }
41
42
  static {
42
43
  this.properties = { _openRelatedFeatureAbortController: 16, flowItems: 16, _hideActionText: 16, _featureNavigationVisible: 16, _isCollapsed: 16, _collapseEnabled: 16, _featureFlowItemSelected: 16, viewModel: 0, actions: 0, active: 0, autoDestroyDisabled: 5, collapsed: 5, content: 1, defaultPopupTemplateEnabled: 5, effectiveHeading: 32, featureCount: 9, featureMenuOpen: 5, featureMenuTitle: 1, featureNavigationTop: 5, features: 0, featuresPerPage: 9, featureViewModelAbilities: 0, goToOverride: 0, headerActions: 0, heading: 1, headingLevel: 9, hideActionBar: 5, hideCloseButton: 5, hideFeatureMenuHeading: 5, hideFeatureNavigation: 5, hideFeatureListLayerTitle: 5, hideHeading: 5, hideSelectFeature: 5, hideSpinner: 5, hideContent: 5, chartAnimationDisabled: 5, hideAttachmentsContent: 5, hideCustomContent: 5, hideExpressionContent: 5, hideFieldsContent: 5, hideMediaContent: 5, hideRelationshipContent: 5, hideTextContent: 5, hideUtilityNetworkContent: 5, hideLastEditedInfo: 5, highlightDisabled: 5, icon: 1, includeDefaultActionsDisabled: 5, initialDisplayMode: 1, label: 1, location: 0, map: 0, messageOverrides: 0, open: 5, referenceElement: 1, promises: 0, responsiveActionsEnabled: 5, selectedDrillInFeature: 32, selectedFeature: 0, selectedFeatureComponent: 32, selectedFeatureIndex: 9, showCollapseButton: 5, spatialReference: 0, state: 32, timeZone: 1, updateLocationEnabled: 5, view: 0 };
43
44
  }
44
45
  static {
45
- this.styles = K;
46
+ this.styles = q;
46
47
  }
47
48
  get _hideActionText() {
48
49
  if (!this.responsiveActionsEnabled)
@@ -122,7 +123,7 @@ class J extends H {
122
123
  async fetchFeatures(e, t) {
123
124
  this._cancelFetchingFeatures();
124
125
  const { signal: s } = t ?? {}, i = new AbortController(), { signal: n } = i, o = s ? AbortSignal.any([n, s]) : n;
125
- if (this._fetchFeaturesController = i, !e && this.view && this.location && (await j(this.location.spatialReference, this.view.spatialReference, null, {
126
+ if (this._fetchFeaturesController = i, !e && this.view && this.location && (await G(this.location.spatialReference, this.view.spatialReference, null, {
126
127
  signal: o
127
128
  }), e = this.view.toScreen(this.location) ?? void 0), !e)
128
129
  return;
@@ -133,17 +134,17 @@ class J extends H {
133
134
  this.location = l.location, this.promises = l.pendingFeatures;
134
135
  }
135
136
  async next() {
136
- return this.viewModel.next();
137
+ return D("warn", this, "The return type of FeaturesViewModel on the next() method is deprecated. At 6.0, this method will return void."), this.viewModel.next();
137
138
  }
138
139
  async previous() {
139
- return this.viewModel.previous();
140
+ return D("warn", this, "The return type of FeaturesViewModel on the previous() method is deprecated. At 6.0, this method will return void."), this.viewModel.previous();
140
141
  }
141
142
  async setFocus() {
142
143
  this._flowContainerNode.value?.setFocus();
143
144
  }
144
145
  async triggerAction(e) {
145
146
  if (!e.disabled)
146
- return e?.type === "toggle" && (e.value = !e.value), await z(e, this.viewModel);
147
+ return e?.type === "toggle" && (e.value = !e.value), await U(e, this.viewModel);
147
148
  }
148
149
  connectedCallback() {
149
150
  super.connectedCallback(), this._createSpinner();
@@ -203,7 +204,7 @@ class J extends H {
203
204
  const i = s?.graphic;
204
205
  if (!i)
205
206
  return;
206
- const n = Z(i), o = W(n) ? n : null, l = t.get(o) ?? [];
207
+ const n = j(i), o = X(n) ? n : null, l = t.get(o) ?? [];
207
208
  t.set(o, [...l, s]);
208
209
  }), t;
209
210
  }
@@ -322,7 +323,7 @@ class J extends H {
322
323
  }
323
324
  _createSpinner() {
324
325
  const e = this.referenceElement;
325
- e && (this._removeSpinner(e), this._spinnerEl = P(a`<arcgis-spinner .label=${this.messages.loading ?? ""} .trackLocation=${!this.hideSpinner && this.viewModel.visible && this.viewModel?.waitingForResult} .location=${this.viewModel?.location ?? void 0} .view=${this.viewModel?.view ?? void 0}></arcgis-spinner>`), e.manager?.component?.extraContent?.add(this._spinnerEl));
326
+ e && (this._removeSpinner(e), this._spinnerEl = z(a`<arcgis-spinner .label=${this.messages.loading ?? ""} .trackLocation=${!this.hideSpinner && this.viewModel.visible && this.viewModel?.waitingForResult} .location=${this.viewModel?.location ?? void 0} .view=${this.viewModel?.view ?? void 0}></arcgis-spinner>`), e.manager?.component?.extraContent?.add(this._spinnerEl));
326
327
  }
327
328
  render() {
328
329
  return a`<div class="root" @keydown=${this._onMainKeydown}>${this._renderHeader()}${this._renderContentContainer()}</div>`;
@@ -365,7 +366,7 @@ class J extends H {
365
366
  const { messages: e, viewModel: t } = this, s = this._groupResultsByLayer(), i = this.initialDisplayMode === "list" ? "none" : "single";
366
367
  return t.featureViewModels.length ? a`<calcite-list display-mode=flat .label=${e?.featuresList ?? ""} selection-appearance=icon .selectionMode=${i}>${Array.from(s.keys(), (n) => {
367
368
  const o = s.get(n)?.map((c) => this._renderFeatureMenuItem(c)), l = n ? n.title ?? this.messages.untitled : null;
368
- return !this.hideFeatureListLayerTitle && l !== null ? D(n ?? "map-graphics", a`<calcite-list-item-group .heading=${l}>${o}</calcite-list-item-group>`) : o;
369
+ return !this.hideFeatureListLayerTitle && l !== null ? V(n ?? "map-graphics", a`<calcite-list-item-group .heading=${l}>${o}</calcite-list-item-group>`) : o;
369
370
  })}</calcite-list>` : null;
370
371
  }
371
372
  _renderHeaderAction(e) {
@@ -396,15 +397,15 @@ class J extends H {
396
397
  "flow-item-collapsed": f
397
398
  }))} .closable=${n === "list" && !t} .closed=${!p} .collapsed=${n === "list" && f} .collapseDirection=${v ? "down" : "up"} .collapsible=${n === "list" && c} .messageOverrides=${{ collapse: this.messages.collapse, expand: this.messages.expand }} .description=${this.hideFeatureMenuHeading ? void 0 : u(i.total ?? "", {
398
399
  total: w.length
399
- })} .heading=${this.hideFeatureMenuHeading ? void 0 : F} .headingLevel=${g} .loading=${e.waitingForContents} .selected=${$} @calciteFlowItemBack=${(E) => {
400
- E.preventDefault(), this._handleFeatureMenuBack();
400
+ })} .heading=${this.hideFeatureMenuHeading ? void 0 : F} .headingLevel=${g} .loading=${e.waitingForContents} .selected=${$} @calciteFlowItemBack=${(N) => {
401
+ N.preventDefault(), this._handleFeatureMenuBack();
401
402
  }} @calciteFlowItemClose=${this._handleClose} @calciteFlowItemToggle=${this._handleCollapseToggle} ${m(this._featureMenuViewportNode)}>${n === "list" ? this._renderHeaderActions() : null}${d > 0 ? a`<calcite-loader class="loader" inline .label=${i.loading ?? ""} slot=header-actions-end></calcite-loader>` : null}<div class="container">${this._renderFeatureMenu()}</div><div class="feature-menu-observer" ${m(this._featureMenuIntersectionObserverCreated)}></div>${n === "feature" ? a`<calcite-button appearance=transparent @click=${this._handleFeatureMenuBack} slot=footer-start width=full>${i.back}</calcite-button>` : null}</calcite-flow-item>`;
402
403
  }
403
404
  _renderFlowItem(e, t) {
404
405
  const { messages: s, hideCloseButton: i, hideSelectFeature: n, active: o, hideHeading: l } = this, c = "graphic" in e && "isFeatureFromTable" in e && !e.isFeatureFromTable, f = c && !n, v = e.flowType === "feature-association", g = s.returnToInitialFeature ?? "", p = s?.selectFeature, w = this._getActionTitle(M), d = !this.hideActionBar && v && c;
405
406
  return a`<calcite-flow-item .closable=${!i} .closed=${!o} .description=${T(this._getDrillInFlowItemDescription(e) ?? "")} .heading=${l ? void 0 : T(e.heading ?? "")} .selected=${t} @calciteFlowItemBack=${(F) => {
406
407
  F.preventDefault(), this._handleDrillInBackClick();
407
- }} .loading=${!!this._openRelatedFeatureAbortController} @calciteFlowItemClose=${this._handleClose}>${l ? null : a`<div slot=heading><div .innerHTML=${_.sanitize(e.heading ?? "") ?? ""}></div></div>`}<div slot=description><div .innerHTML=${_.sanitize(this._getDrillInFlowItemDescription(e) ?? "") ?? ""}></div></div><calcite-action class="action-exit" icon=move-up @click=${this._removeFlowItems} slot=header-actions-start .text=${g ?? ""} title=${g ?? "" ?? h}></calcite-action>${f ? a`<calcite-action icon=zoom-to-object @click=${() => this._openRelatedFeature(e)} slot=header-actions-end .text=${p ?? ""} title=${p ?? h}></calcite-action>` : null}${d ? a`<calcite-action-bar expand-disabled expanded scale=s slot=action-bar><calcite-action-group overlay-positioning=fixed scale=s><calcite-action .disabled=${M.disabled} .icon=${M.icon ?? void 0} .loading=${M.active} scale=s text-enabled .text=${w} title=${w ?? h} @click=${() => U(this.viewModel, M, e)}></calcite-action></calcite-action-group></calcite-action-bar>` : null}<div class="container">${e}</div></calcite-flow-item>`;
408
+ }} .loading=${!!this._openRelatedFeatureAbortController} @calciteFlowItemClose=${this._handleClose}>${l ? null : a`<div slot=heading><div .innerHTML=${_.sanitize(e.heading ?? "") ?? ""}></div></div>`}<div slot=description><div .innerHTML=${_.sanitize(this._getDrillInFlowItemDescription(e) ?? "") ?? ""}></div></div><calcite-action class="action-exit" icon=move-up @click=${this._removeFlowItems} slot=header-actions-start .text=${g ?? ""} title=${g ?? "" ?? h}></calcite-action>${f ? a`<calcite-action icon=zoom-to-object @click=${() => this._openRelatedFeature(e)} slot=header-actions-end .text=${p ?? ""} title=${p ?? h}></calcite-action>` : null}${d ? a`<calcite-action-bar expand-disabled expanded scale=s slot=action-bar><calcite-action-group overlay-positioning=fixed scale=s><calcite-action .disabled=${M.disabled} .icon=${M.icon ?? void 0} .loading=${M.active} scale=s text-enabled .text=${w} title=${w ?? h} @click=${() => Z(this.viewModel, M, e)}></calcite-action></calcite-action-group></calcite-action-bar>` : null}<div class="container">${e}</div></calcite-flow-item>`;
408
409
  }
409
410
  _renderContentContainer() {
410
411
  const e = this.flowItems?.toArray(), t = e?.map((i, n) => this._renderFlowItem(i, this._featureFlowItemSelected && n === e.length - 1)), s = this.initialDisplayMode === "list" ? [this._renderFeatureMenuContainer(), this._renderContentFeature(), t] : [this._renderContentFeature(), t, this._renderFeatureMenuContainer()];
@@ -422,10 +423,10 @@ class J extends H {
422
423
  }
423
424
  _renderContent() {
424
425
  const { content: e, selectedFeatureViewModel: t } = this.viewModel;
425
- return t ? a`<arcgis-feature .autoDestroyDisabled=${this.autoDestroyDisabled} .chartAnimationDisabled=${this.chartAnimationDisabled} .defaultPopupTemplateEnabled=${this.defaultPopupTemplateEnabled} .flowItems=${this.flowItems} .graphic=${t.graphic} .headingLevel=${this.headingLevel + 1} .hideAttachmentsContent=${this.hideAttachmentsContent} .hideContent=${this.hideContent} .hideCustomContent=${this.hideCustomContent} .hideExpressionContent=${this.hideExpressionContent} .hideFieldsContent=${this.hideFieldsContent} hide-heading .hideLastEditedInfo=${this.hideLastEditedInfo} .hideMediaContent=${this.hideMediaContent} .hideTextContent=${this.hideTextContent} .location=${this.location} .map=${this.map} .referenceElement=${this.referenceElement} .showRelationshipContent=${!this.hideRelationshipContent} .showUtilityNetworkContent=${!this.hideUtilityNetworkContent} .spatialReference=${this.spatialReference} .timeZone=${this.timeZone} ${m(this._selectedFeatureComponent)}></arcgis-feature>` : typeof e == "string" ? D(e, a`<div .innerHTML=${_.sanitize(e) ?? ""}></div>`) : e ?? null;
426
+ return t ? a`<arcgis-feature .autoDestroyDisabled=${this.autoDestroyDisabled} .chartAnimationDisabled=${this.chartAnimationDisabled} .defaultPopupTemplateEnabled=${this.defaultPopupTemplateEnabled} .flowItems=${this.flowItems} .graphic=${t.graphic} .headingLevel=${this.headingLevel + 1} .hideAttachmentsContent=${this.hideAttachmentsContent} .hideContent=${this.hideContent} .hideCustomContent=${this.hideCustomContent} .hideExpressionContent=${this.hideExpressionContent} .hideFieldsContent=${this.hideFieldsContent} hide-heading .hideLastEditedInfo=${this.hideLastEditedInfo} .hideMediaContent=${this.hideMediaContent} .hideTextContent=${this.hideTextContent} .location=${this.location} .map=${this.map} .referenceElement=${this.referenceElement} .showRelationshipContent=${!this.hideRelationshipContent} .showUtilityNetworkContent=${!this.hideUtilityNetworkContent} .spatialReference=${this.spatialReference} .timeZone=${this.timeZone} ${m(this._selectedFeatureComponent)}></arcgis-feature>` : typeof e == "string" ? V(e, a`<div .innerHTML=${_.sanitize(e) ?? ""}></div>`) : e ?? null;
426
427
  }
427
428
  }
428
- N("arcgis-features", J);
429
+ R("arcgis-features", Q);
429
430
  export {
430
- J as ArcgisFeatures
431
+ Q as ArcgisFeatures
431
432
  };
@@ -32,7 +32,7 @@ import type { LayerView2DFor, ResizeAlign } from "@arcgis/core/views/2d/types.js
32
32
  import type { DoubleClickEvent, DoubleTapDragEvent, VerticalTwoFingerDragEvent, PointerUpEvent, PointerMoveEvent, PointerLeaveEvent, PointerEnterEvent, PointerDownEvent, ViewMouseWheelEvent, LayerViewDestroyEvent, LayerViewCreateErrorEvent, LayerViewCreateEvent, KeyUpEvent, KeyDownEvent, ImmediateDoubleClickEvent, ImmediateClickEvent, HoldEvent, DragEvent, ClickEvent } from "@arcgis/core/views/input/types.js";
33
33
  import type { AnalysisViewDestroyEvent, AnalysisViewCreateErrorEvent, AnalysisViewCreateEvent, ToScreenOptions2D, Screenshot, UserSettings, ViewHitTestResult, HitTestOptions, GoToOptions2D, GoToTarget2D } from "@arcgis/core/views/types.js";
34
34
  import type { AnalysisView2DUnion } from "@arcgis/core/views/2d/analysis/types.js";
35
- import type { ScreenPoint } from "@arcgis/core/core/types.js";
35
+ import type { ScreenPoint, ScreenRect } from "@arcgis/core/core/types.js";
36
36
  import type { ViewPopupOpenOptions } from "@arcgis/core/views/PopupView.js";
37
37
  import type { ReadonlyCollection } from "@arcgis/core/core/Collection.js";
38
38
  import type { ViewPadding } from "@arcgis/core/views/ui/types.js";
@@ -957,7 +957,7 @@ export abstract class ArcgisMap extends LitElement {
957
957
  * return results when the fill is clicked. However, it will return results when the outline is clicked. To get results when clicking the fill, set the
958
958
  * [color](https://developers.arcgis.com/javascript/latest/references/core/symbols/SimpleFillSymbol/#color) to a transparent color instead.
959
959
  *
960
- * @param screenPoint
960
+ * @param hitTarget
961
961
  * @param options
962
962
  * @example
963
963
  * ```js
@@ -989,7 +989,7 @@ export abstract class ArcgisMap extends LitElement {
989
989
  * });
990
990
  * ```
991
991
  */
992
- hitTest(screenPoint: MouseEvent | ScreenPoint, options?: HitTestOptions): Promise<ViewHitTestResult>;
992
+ hitTest(hitTarget: MouseEvent | ScreenPoint | ScreenRect, options?: HitTestOptions): Promise<ViewHitTestResult>;
993
993
  /**
994
994
  * Opens the popup at the given location with content defined either explicitly with content or driven
995
995
  * from the PopupTemplate of input features.
@@ -128,13 +128,25 @@ export abstract class ArcgisOrientedImageryViewer extends LitElement {
128
128
  /**
129
129
  * Specifies the current [OrientedImageryLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/OrientedImageryLayer/) to use. The layer is one the component connects to and utilizes to populate the image.
130
130
  * The layer contains the feature data and oriented imagery properties required by the viewer to load the image and generate the associated graphics.
131
+ *
132
+ * > [!WARNING]
133
+ * > Use `layer`, `layerId`, and `orientedImageryLayerItemId` independently; only one should be set at a time.
131
134
  */
132
135
  accessor layer: OrientedImageryLayer | null | undefined;
133
136
  /**
134
- * Layer Id of layer in the associated map. You can set `layer`, `layerId` or `orientedImageryLayerItemId`,
135
- * but not more than one.
137
+ * The layer ID of a Oriented Imagery Layer in the associated map.
138
+ * When set, the component will attempt to find and use the layer with the provided ID from the map.
139
+ *
140
+ * > [!WARNING]
141
+ * > Use `layer`, `layerId`, and `orientedImageryLayerItemId` independently; only one should be set at a time.
136
142
  *
137
143
  * @since 5.1
144
+ * @example
145
+ * ```html
146
+ * <arcgis-scene item-id="aa1c036445824e06a2d1b0e12e02a924">
147
+ * <arcgis-oriented-imagery-viewer slot="top-right" layer-id="1962adf1de1-layer-82"></arcgis-oriented-imagery-viewer>
148
+ * </arcgis-scene>
149
+ * ```
138
150
  */
139
151
  accessor layerId: string | undefined;
140
152
  /**
@@ -153,6 +165,12 @@ export abstract class ArcgisOrientedImageryViewer extends LitElement {
153
165
  * @default false
154
166
  */
155
167
  accessor navigationToolActive: boolean;
168
+ /**
169
+ * The portal item ID of an Oriented Imagery Layer to load and use in the component.
170
+ *
171
+ * > [!WARNING]
172
+ * > Use `layer`, `layerId`, and `orientedImageryLayerItemId` independently; only one should be set at a time.
173
+ */
156
174
  accessor orientedImageryLayerItemId: string | undefined;
157
175
  /**
158
176
  * When true, loading an image via directional or sequential navigation caches all neighboring images associated with that image.