@arcgis/portal-components 5.1.0-next.98 → 5.1.0

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 (259) hide show
  1. package/README.md +2 -2
  2. package/dist/cdn/3AFLX4RZ.js +31 -0
  3. package/dist/cdn/3XDKOO6K.js +2 -0
  4. package/dist/cdn/4ISLOZQ3.js +2 -0
  5. package/dist/cdn/{TTZBF4KI.js → 563BUCQX.js} +1 -1
  6. package/dist/cdn/{JOYFDD4B.js → 5BPXS3WU.js} +1 -1
  7. package/dist/cdn/65JPRIL4.js +98 -0
  8. package/dist/cdn/6K7GPATC.js +2 -0
  9. package/dist/cdn/6RA33SDH.js +34 -0
  10. package/dist/cdn/7IAAHGM2.js +2 -0
  11. package/dist/cdn/{SOPWLUP4.js → ABRHXRFP.js} +1 -1
  12. package/dist/cdn/BCUEYBNI.js +2 -0
  13. package/dist/cdn/CAQR2NSG.js +4 -0
  14. package/dist/cdn/D42PED2R.js +2 -0
  15. package/dist/cdn/DEHBTA5D.js +2 -0
  16. package/dist/cdn/EZ7YC5N5.js +99 -0
  17. package/dist/cdn/{SEZNHA2J.js → FK7QXBE2.js} +1 -1
  18. package/dist/cdn/IBYY5ORN.js +122 -0
  19. package/dist/cdn/ITFWXO7A.js +49 -0
  20. package/dist/cdn/JWUQZ52F.js +134 -0
  21. package/dist/cdn/KBYWRUKO.js +2 -0
  22. package/dist/cdn/KFH2OM2D.js +2 -0
  23. package/dist/cdn/{GPPEHGUO.js → LVUHKMSB.js} +1 -1
  24. package/dist/cdn/NDKFZPYE.js +2 -0
  25. package/dist/cdn/NX4L2LC2.js +2 -0
  26. package/dist/cdn/OYABHYVF.js +2 -0
  27. package/dist/cdn/{V5ZWDMLE.js → PIZFXU2N.js} +1 -1
  28. package/dist/cdn/QOCYNLQ7.js +71 -0
  29. package/dist/cdn/{ERNT74VA.js → QUYBZ3J7.js} +1 -1
  30. package/dist/cdn/R2XPTETT.js +22 -0
  31. package/dist/cdn/R53CO5LK.js +77 -0
  32. package/dist/cdn/{HQAGVE4P.js → RNRPTWHT.js} +17 -1
  33. package/dist/cdn/{32DRTMS4.js → SFKRR7GW.js} +1 -1
  34. package/dist/cdn/SQ54YADV.js +533 -0
  35. package/dist/cdn/SX4KDMYV.js +69 -0
  36. package/dist/cdn/TKQAFRBM.js +36 -0
  37. package/dist/cdn/TNDL67UN.js +2 -0
  38. package/dist/cdn/{LJUIMVQ2.js → W4RAJWHA.js} +1 -1
  39. package/dist/cdn/WHLL7DNC.js +146 -0
  40. package/dist/cdn/X3LZYQ4U.js +66 -0
  41. package/dist/cdn/XR4PMNYP.js +2 -0
  42. package/dist/cdn/YJK6JAPE.js +422 -0
  43. package/dist/cdn/{5WK4GJK2.js → Z5UVAVHJ.js} +1 -1
  44. package/dist/cdn/{3OTUKLZI.js → ZCL2V7W3.js} +1 -1
  45. package/dist/cdn/assets/portal-ai-assistant/t9n/messages.ar.json +1 -1
  46. package/dist/cdn/assets/portal-ai-assistant/t9n/messages.bg.json +1 -1
  47. package/dist/cdn/assets/portal-ai-assistant/t9n/messages.bs.json +1 -1
  48. package/dist/cdn/assets/portal-ai-assistant/t9n/messages.ca.json +1 -1
  49. package/dist/cdn/assets/portal-ai-assistant/t9n/messages.cs.json +1 -1
  50. package/dist/cdn/assets/portal-ai-assistant/t9n/messages.da.json +1 -1
  51. package/dist/cdn/assets/portal-ai-assistant/t9n/messages.de.json +1 -1
  52. package/dist/cdn/assets/portal-ai-assistant/t9n/messages.el.json +1 -1
  53. package/dist/cdn/assets/portal-ai-assistant/t9n/messages.en.json +1 -1
  54. package/dist/cdn/assets/portal-ai-assistant/t9n/messages.es.json +1 -1
  55. package/dist/cdn/assets/portal-ai-assistant/t9n/messages.et.json +1 -1
  56. package/dist/cdn/assets/portal-ai-assistant/t9n/messages.fi.json +1 -1
  57. package/dist/cdn/assets/portal-ai-assistant/t9n/messages.fr.json +1 -1
  58. package/dist/cdn/assets/portal-ai-assistant/t9n/messages.he.json +1 -1
  59. package/dist/cdn/assets/portal-ai-assistant/t9n/messages.hr.json +1 -1
  60. package/dist/cdn/assets/portal-ai-assistant/t9n/messages.hu.json +1 -1
  61. package/dist/cdn/assets/portal-ai-assistant/t9n/messages.id.json +1 -1
  62. package/dist/cdn/assets/portal-ai-assistant/t9n/messages.it.json +1 -1
  63. package/dist/cdn/assets/portal-ai-assistant/t9n/messages.ja.json +1 -1
  64. package/dist/cdn/assets/portal-ai-assistant/t9n/messages.ko.json +1 -1
  65. package/dist/cdn/assets/portal-ai-assistant/t9n/messages.lt.json +1 -1
  66. package/dist/cdn/assets/portal-ai-assistant/t9n/messages.lv.json +1 -1
  67. package/dist/cdn/assets/portal-ai-assistant/t9n/messages.nl.json +1 -1
  68. package/dist/cdn/assets/portal-ai-assistant/t9n/messages.no.json +1 -1
  69. package/dist/cdn/assets/portal-ai-assistant/t9n/messages.pl.json +1 -1
  70. package/dist/cdn/assets/portal-ai-assistant/t9n/messages.pt-BR.json +1 -1
  71. package/dist/cdn/assets/portal-ai-assistant/t9n/messages.pt-PT.json +1 -1
  72. package/dist/cdn/assets/portal-ai-assistant/t9n/messages.ro.json +1 -1
  73. package/dist/cdn/assets/portal-ai-assistant/t9n/messages.ru.json +1 -1
  74. package/dist/cdn/assets/portal-ai-assistant/t9n/messages.sk.json +1 -1
  75. package/dist/cdn/assets/portal-ai-assistant/t9n/messages.sl.json +1 -1
  76. package/dist/cdn/assets/portal-ai-assistant/t9n/messages.sr.json +1 -1
  77. package/dist/cdn/assets/portal-ai-assistant/t9n/messages.sv.json +1 -1
  78. package/dist/cdn/assets/portal-ai-assistant/t9n/messages.th.json +1 -1
  79. package/dist/cdn/assets/portal-ai-assistant/t9n/messages.tr.json +1 -1
  80. package/dist/cdn/assets/portal-ai-assistant/t9n/messages.uk.json +1 -1
  81. package/dist/cdn/assets/portal-ai-assistant/t9n/messages.vi.json +1 -1
  82. package/dist/cdn/assets/portal-ai-assistant/t9n/messages.zh-CN.json +1 -1
  83. package/dist/cdn/assets/portal-ai-assistant/t9n/messages.zh-HK.json +1 -1
  84. package/dist/cdn/assets/portal-ai-assistant/t9n/messages.zh-TW.json +1 -1
  85. package/dist/cdn/assets/portal-ai-assistant-interrupt/t9n/messages.ar.json +1 -0
  86. package/dist/cdn/assets/portal-ai-assistant-interrupt/t9n/messages.bg.json +1 -0
  87. package/dist/cdn/assets/portal-ai-assistant-interrupt/t9n/messages.bs.json +1 -0
  88. package/dist/cdn/assets/portal-ai-assistant-interrupt/t9n/messages.ca.json +1 -0
  89. package/dist/cdn/assets/portal-ai-assistant-interrupt/t9n/messages.cs.json +1 -0
  90. package/dist/cdn/assets/portal-ai-assistant-interrupt/t9n/messages.da.json +1 -0
  91. package/dist/cdn/assets/portal-ai-assistant-interrupt/t9n/messages.de.json +1 -0
  92. package/dist/cdn/assets/portal-ai-assistant-interrupt/t9n/messages.el.json +1 -0
  93. package/dist/cdn/assets/portal-ai-assistant-interrupt/t9n/messages.en.json +1 -0
  94. package/dist/cdn/assets/portal-ai-assistant-interrupt/t9n/messages.es.json +1 -0
  95. package/dist/cdn/assets/portal-ai-assistant-interrupt/t9n/messages.et.json +1 -0
  96. package/dist/cdn/assets/portal-ai-assistant-interrupt/t9n/messages.fi.json +1 -0
  97. package/dist/cdn/assets/portal-ai-assistant-interrupt/t9n/messages.fr.json +1 -0
  98. package/dist/cdn/assets/portal-ai-assistant-interrupt/t9n/messages.he.json +1 -0
  99. package/dist/cdn/assets/portal-ai-assistant-interrupt/t9n/messages.hr.json +1 -0
  100. package/dist/cdn/assets/portal-ai-assistant-interrupt/t9n/messages.hu.json +1 -0
  101. package/dist/cdn/assets/portal-ai-assistant-interrupt/t9n/messages.id.json +1 -0
  102. package/dist/cdn/assets/portal-ai-assistant-interrupt/t9n/messages.it.json +1 -0
  103. package/dist/cdn/assets/portal-ai-assistant-interrupt/t9n/messages.ja.json +1 -0
  104. package/dist/cdn/assets/portal-ai-assistant-interrupt/t9n/messages.ko.json +1 -0
  105. package/dist/cdn/assets/portal-ai-assistant-interrupt/t9n/messages.lt.json +1 -0
  106. package/dist/cdn/assets/portal-ai-assistant-interrupt/t9n/messages.lv.json +1 -0
  107. package/dist/cdn/assets/portal-ai-assistant-interrupt/t9n/messages.nl.json +1 -0
  108. package/dist/cdn/assets/portal-ai-assistant-interrupt/t9n/messages.no.json +1 -0
  109. package/dist/cdn/assets/portal-ai-assistant-interrupt/t9n/messages.pl.json +1 -0
  110. package/dist/cdn/assets/portal-ai-assistant-interrupt/t9n/messages.pt-BR.json +1 -0
  111. package/dist/cdn/assets/portal-ai-assistant-interrupt/t9n/messages.pt-PT.json +1 -0
  112. package/dist/cdn/assets/portal-ai-assistant-interrupt/t9n/messages.ro.json +1 -0
  113. package/dist/cdn/assets/portal-ai-assistant-interrupt/t9n/messages.ru.json +1 -0
  114. package/dist/cdn/assets/portal-ai-assistant-interrupt/t9n/messages.sk.json +1 -0
  115. package/dist/cdn/assets/portal-ai-assistant-interrupt/t9n/messages.sl.json +1 -0
  116. package/dist/cdn/assets/portal-ai-assistant-interrupt/t9n/messages.sr.json +1 -0
  117. package/dist/cdn/assets/portal-ai-assistant-interrupt/t9n/messages.sv.json +1 -0
  118. package/dist/cdn/assets/portal-ai-assistant-interrupt/t9n/messages.th.json +1 -0
  119. package/dist/cdn/assets/portal-ai-assistant-interrupt/t9n/messages.tr.json +1 -0
  120. package/dist/cdn/assets/portal-ai-assistant-interrupt/t9n/messages.uk.json +1 -0
  121. package/dist/cdn/assets/portal-ai-assistant-interrupt/t9n/messages.vi.json +1 -0
  122. package/dist/cdn/assets/portal-ai-assistant-interrupt/t9n/messages.zh-CN.json +1 -0
  123. package/dist/cdn/assets/portal-ai-assistant-interrupt/t9n/messages.zh-HK.json +1 -0
  124. package/dist/cdn/assets/portal-ai-assistant-interrupt/t9n/messages.zh-TW.json +1 -0
  125. package/dist/cdn/assets/portal-item-type/t9n/messages.ar.json +1 -1
  126. package/dist/cdn/assets/portal-item-type/t9n/messages.bg.json +1 -1
  127. package/dist/cdn/assets/portal-item-type/t9n/messages.bs.json +1 -1
  128. package/dist/cdn/assets/portal-item-type/t9n/messages.ca.json +1 -1
  129. package/dist/cdn/assets/portal-item-type/t9n/messages.cs.json +1 -1
  130. package/dist/cdn/assets/portal-item-type/t9n/messages.da.json +1 -1
  131. package/dist/cdn/assets/portal-item-type/t9n/messages.de.json +1 -1
  132. package/dist/cdn/assets/portal-item-type/t9n/messages.el.json +1 -1
  133. package/dist/cdn/assets/portal-item-type/t9n/messages.es.json +1 -1
  134. package/dist/cdn/assets/portal-item-type/t9n/messages.et.json +1 -1
  135. package/dist/cdn/assets/portal-item-type/t9n/messages.fi.json +1 -1
  136. package/dist/cdn/assets/portal-item-type/t9n/messages.fr.json +1 -1
  137. package/dist/cdn/assets/portal-item-type/t9n/messages.he.json +1 -1
  138. package/dist/cdn/assets/portal-item-type/t9n/messages.hr.json +1 -1
  139. package/dist/cdn/assets/portal-item-type/t9n/messages.hu.json +1 -1
  140. package/dist/cdn/assets/portal-item-type/t9n/messages.id.json +1 -1
  141. package/dist/cdn/assets/portal-item-type/t9n/messages.it.json +1 -1
  142. package/dist/cdn/assets/portal-item-type/t9n/messages.ja.json +1 -1
  143. package/dist/cdn/assets/portal-item-type/t9n/messages.ko.json +1 -1
  144. package/dist/cdn/assets/portal-item-type/t9n/messages.lt.json +1 -1
  145. package/dist/cdn/assets/portal-item-type/t9n/messages.lv.json +1 -1
  146. package/dist/cdn/assets/portal-item-type/t9n/messages.nl.json +1 -1
  147. package/dist/cdn/assets/portal-item-type/t9n/messages.no.json +1 -1
  148. package/dist/cdn/assets/portal-item-type/t9n/messages.pl.json +1 -1
  149. package/dist/cdn/assets/portal-item-type/t9n/messages.pt-BR.json +1 -1
  150. package/dist/cdn/assets/portal-item-type/t9n/messages.pt-PT.json +1 -1
  151. package/dist/cdn/assets/portal-item-type/t9n/messages.ro.json +1 -1
  152. package/dist/cdn/assets/portal-item-type/t9n/messages.ru.json +1 -1
  153. package/dist/cdn/assets/portal-item-type/t9n/messages.sk.json +1 -1
  154. package/dist/cdn/assets/portal-item-type/t9n/messages.sl.json +1 -1
  155. package/dist/cdn/assets/portal-item-type/t9n/messages.sr.json +1 -1
  156. package/dist/cdn/assets/portal-item-type/t9n/messages.sv.json +1 -1
  157. package/dist/cdn/assets/portal-item-type/t9n/messages.th.json +1 -1
  158. package/dist/cdn/assets/portal-item-type/t9n/messages.tr.json +1 -1
  159. package/dist/cdn/assets/portal-item-type/t9n/messages.uk.json +1 -1
  160. package/dist/cdn/assets/portal-item-type/t9n/messages.vi.json +1 -1
  161. package/dist/cdn/assets/portal-item-type/t9n/messages.zh-CN.json +1 -1
  162. package/dist/cdn/assets/portal-item-type/t9n/messages.zh-HK.json +1 -1
  163. package/dist/cdn/assets/portal-item-type/t9n/messages.zh-TW.json +1 -1
  164. package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.ar.json +1 -1
  165. package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.bg.json +1 -1
  166. package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.bs.json +1 -1
  167. package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.ca.json +1 -1
  168. package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.cs.json +1 -1
  169. package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.da.json +1 -1
  170. package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.de.json +1 -1
  171. package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.el.json +1 -1
  172. package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.en.json +1 -1
  173. package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.es.json +1 -1
  174. package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.et.json +1 -1
  175. package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.fi.json +1 -1
  176. package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.fr.json +1 -1
  177. package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.he.json +1 -1
  178. package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.hr.json +1 -1
  179. package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.hu.json +1 -1
  180. package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.id.json +1 -1
  181. package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.it.json +1 -1
  182. package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.ja.json +1 -1
  183. package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.ko.json +1 -1
  184. package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.lt.json +1 -1
  185. package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.lv.json +1 -1
  186. package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.nl.json +1 -1
  187. package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.no.json +1 -1
  188. package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.pl.json +1 -1
  189. package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.pt-BR.json +1 -1
  190. package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.pt-PT.json +1 -1
  191. package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.ro.json +1 -1
  192. package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.ru.json +1 -1
  193. package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.sk.json +1 -1
  194. package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.sl.json +1 -1
  195. package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.sr.json +1 -1
  196. package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.sv.json +1 -1
  197. package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.th.json +1 -1
  198. package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.tr.json +1 -1
  199. package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.uk.json +1 -1
  200. package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.vi.json +1 -1
  201. package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.zh-CN.json +1 -1
  202. package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.zh-HK.json +1 -1
  203. package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.zh-TW.json +1 -1
  204. package/dist/cdn/index.js +1 -1
  205. package/dist/cdn/main.css +1 -1
  206. package/dist/chunks/fieldAddDelete.js +1 -1
  207. package/dist/chunks/functionalities.js +10 -0
  208. package/dist/chunks/groups.js +86 -0
  209. package/dist/chunks/item.js +124 -22
  210. package/dist/chunks/portal.js +48 -8
  211. package/dist/chunks/runtime.js +3 -3
  212. package/dist/chunks/user.js +4 -109
  213. package/dist/chunks/user2.js +113 -0
  214. package/dist/components/arcgis-portal-ai-assistant/agents/types.d.ts +7 -0
  215. package/dist/components/arcgis-portal-ai-assistant/customElement.d.ts +20 -6
  216. package/dist/components/arcgis-portal-ai-assistant/customElement.js +738 -124
  217. package/dist/components/arcgis-portal-ai-assistant/index.js +2 -1
  218. package/dist/components/arcgis-portal-ai-assistant-interrupt/customElement.d.ts +42 -0
  219. package/dist/components/arcgis-portal-ai-assistant-interrupt/customElement.js +51 -0
  220. package/dist/components/arcgis-portal-ai-assistant-interrupt/index.d.ts +1 -0
  221. package/dist/components/arcgis-portal-ai-assistant-interrupt/index.js +6 -0
  222. package/dist/components/arcgis-portal-classification-config/customElement.js +44 -37
  223. package/dist/components/arcgis-portal-item-type/customElement.js +1 -1
  224. package/dist/components/arcgis-portal-mentionable-text-area/customElement.d.ts +2 -1
  225. package/dist/components/arcgis-portal-mentionable-text-area/customElement.js +38 -41
  226. package/dist/components/arcgis-portal-mentionable-text-area/utils.d.ts +7 -0
  227. package/dist/components/arcgis-portal-replacement-item-redirect/customElement.d.ts +3 -3
  228. package/dist/components/arcgis-portal-replacement-item-redirect/customElement.js +131 -63
  229. package/dist/components/arcgis-portal-user-avatar/customElement.js +24 -27
  230. package/dist/components/arcgis-portal-voice-input/customElement.d.ts +1 -1
  231. package/dist/docs/api.json +1 -1
  232. package/dist/docs/docs.json +1 -1
  233. package/dist/docs/vscode.html-custom-data.json +1 -1
  234. package/dist/docs/web-types.json +1 -1
  235. package/dist/index.d.ts +16 -0
  236. package/dist/loader.js +3 -2
  237. package/dist/types/lumina.d.ts +9 -1
  238. package/dist/types/preact.d.ts +10 -1
  239. package/dist/types/react.d.ts +11 -1
  240. package/dist/types/stencil.d.ts +9 -1
  241. package/package.json +12 -10
  242. package/dist/cdn/2UAWM45V.js +0 -2
  243. package/dist/cdn/4XGP5S32.js +0 -2
  244. package/dist/cdn/AMCZ4UZQ.js +0 -2
  245. package/dist/cdn/CVTNZK7F.js +0 -2
  246. package/dist/cdn/DAD7LUKA.js +0 -2
  247. package/dist/cdn/F5QGCGHF.js +0 -2
  248. package/dist/cdn/HGOHRPAD.js +0 -2
  249. package/dist/cdn/IZQBJ5VK.js +0 -2
  250. package/dist/cdn/JFG6QVNF.js +0 -2
  251. package/dist/cdn/LCWXNCUX.js +0 -396
  252. package/dist/cdn/NJMHL2Y7.js +0 -4
  253. package/dist/cdn/OGQ2PD7M.js +0 -2
  254. package/dist/cdn/S2PHM4WZ.js +0 -2
  255. package/dist/cdn/ZAHK6WQT.js +0 -138
  256. package/dist/chunks/item2.js +0 -128
  257. /package/dist/cdn/{3OPKWSWR.js → 34BMNP6G.js} +0 -0
  258. /package/dist/cdn/{JQKWT7SI.js → FPAFR5IL.js} +0 -0
  259. /package/dist/cdn/{N5K4DR3J.js → FPKINYFN.js} +0 -0
@@ -1 +1 @@
1
- {"$schema":"https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json","name":"@arcgis/portal-components","version":"5.1.0-next.98","description-markup":"markdown","contributions":{"html":{"elements":[{"name":"arcgis-portal-ai-assistant","description":"### Methods\n- `componentOnReady(): Promise<this>` - Creates a promise that resolves once the component is fully loaded.","attributes":[{"name":"auto-destroy-disabled","default":"false","value":{"type":"boolean"}},{"name":"default-closed","default":"false","value":{"type":"boolean"}},{"name":"open-entities-in-new-tab","description":"When true, entities like groups and items will be opened in a new tab on click","default":"false","value":{"type":"boolean"}}],"events":[],"js":{"properties":[{"name":"autoDestroyDisabled","type":"boolean"},{"name":"config","type":"Config"},{"name":"defaultClosed","type":"boolean"},{"name":"openEntitiesInNewTab","description":"When true, entities like groups and items will be opened in a new tab on click","type":"boolean"},{"name":"portal","type":"Portal"},{"name":"user","type":"PortalUser"}],"events":[]}},{"name":"arcgis-portal-classification-banner","description":"### Methods\n- `componentOnReady(): Promise<this>` - Creates a promise that resolves once the component is fully loaded.\n- `destroy(): Promise<void>` - Permanently destroy the component","attributes":[{"name":"missing-existing-classification","description":"If the portal item has a classification previously","default":"false","value":{"type":"boolean"}},{"name":"validation-errors","description":"The classification validation error - validate the classification value against the classification schema.","default":"\"\"","value":{"type":"string"}},{"name":"variant","description":"The size of the banner to display.\n\n- `\"full\"`: Used when the banner is displayed at the top and bottom of a page. This is the default mode cached for performance.\n- `\"preview\"`: Used when the banner is rendered inside a configuration component. This mode is not cached and is used to display a preview of the classification.","default":"\"full\"","value":{"type":["\"full\"","\"preview\""]}}],"events":[],"js":{"properties":[{"name":"missingExistingClassification","description":"If the portal item has a classification previously","type":"boolean"},{"name":"portalItem","description":"The portal item to display the classification banner for.","type":"PortalItem | undefined"},{"name":"validationErrors","description":"The classification validation error - validate the classification value against the classification schema.","type":"string"},{"name":"variant","description":"The size of the banner to display.\n\n- `\"full\"`: Used when the banner is displayed at the top and bottom of a page. This is the default mode cached for performance.\n- `\"preview\"`: Used when the banner is rendered inside a configuration component. This mode is not cached and is used to display a preview of the classification.","type":"\"full\" | \"preview\""}],"events":[]}},{"name":"arcgis-portal-classification-config","description":"The `arcgis-portal-classification-config` component enables users to edit or provide a classification schema to a portal item through a user-friendly form. The schema is saved to the associated portal item.\n--\n\n### Events\n- **arcgisPropertyChange** - Event emitted when component property values status, values, or valid change.\n\n### Methods\n- `componentOnReady(): Promise<this>` - Creates a promise that resolves once the component is fully loaded.\n- `destroy(): Promise<void>` - Permanently destroy the component.\n- `resetForm(): Promise<void>` - Reset the form to the initial classification values from the portalItem\n- `validateForm(): Promise<void>` - Validates the form and sets the formValidationErrors state.","attributes":[{"name":"status","description":"The loading status of the component, will be set to \"loaded\" when the classification schema is loaded.","default":"\"idle\"","value":{"type":["\"loading\"","\"loaded\"","\"error\"","\"idle\""]}},{"name":"valid","description":"The validity of the form values against the Portal's classification schema.","default":"false","value":{"type":"boolean"}},{"name":"values","description":"The edited classification values of the portal item.","value":{}}],"events":[{"name":"arcgisPropertyChange","type":"{ name: \"status\" | \"values\" | \"valid\"; }","description":"Event emitted when component property values status, values, or valid change."}],"js":{"properties":[{"name":"portalItem","description":"The portal item to display the classification banner for.","type":"PortalItem | undefined"},{"name":"status","description":"The loading status of the component, will be set to \"loaded\" when the classification schema is loaded.","type":"Status"},{"name":"valid","description":"The validity of the form values against the Portal's classification schema.","type":"boolean"},{"name":"values","description":"The edited classification values of the portal item.","type":"PortalItem[\"classification\"]"}],"events":[{"name":"arcgisPropertyChange","type":"{ name: \"status\" | \"values\" | \"valid\"; }","description":"Event emitted when component property values status, values, or valid change."}]}},{"name":"arcgis-portal-classification-favorite","description":"### Methods\n- `componentOnReady(): Promise<this>` - Creates a promise that resolves once the component is fully loaded.","attributes":[{"name":"selected-favorite-classification-name","default":"\"\"","value":{"type":"string"}}],"events":[],"js":{"properties":[{"name":"attributeExpressionResults","type":"AttributeExpressionResults | undefined"},{"name":"classificationValue","description":"Current classification value","type":"PortalItem[\"classification\"] | undefined"},{"name":"favoriteClassifications","description":"List of favorite classifications","type":"FavoriteClassification[]"},{"name":"portalItem","description":"The portal item to display the classification banner for.","type":"PortalItem | undefined"},{"name":"resetFavoriteClassification","type":"(favoriteClassifications: FavoriteClassification[]) => void"},{"name":"selectedFavoriteClassificationName","type":"string"},{"name":"updateClassificationData","type":"(selectedClassification: FavoriteClassification) => void"}],"events":[]}},{"name":"arcgis-portal-classification-form-element","description":"A web component that renders form elements for a classification schema attribute.\n--\n\n### Events\n- **arcgisAttributeValueChange** - The attribute value has changed.\n\n### Methods\n- `componentOnReady(): Promise<this>` - Creates a promise that resolves once the component is fully loaded.","attributes":[{"name":"attribute-key","value":{"type":"string"}}],"events":[{"name":"arcgisAttributeValueChange","type":"Record<string, unknown>","description":"The attribute value has changed."}],"js":{"properties":[{"name":"attribute","type":"ClassificationSchema[\"attributes\"][string]"},{"name":"attributeKey","type":"string"},{"name":"isRequiredErrors","type":"Set<string>"},{"name":"renderingInfo","type":"Pick<NonNullable<ReturnType<AttributeExpressionResults[\"get\"]>>, \"attributeValidationResult\" | \"valueExpressionResult\"> | undefined"},{"name":"value","type":"unknown"}],"events":[{"name":"arcgisAttributeValueChange","type":"Record<string, unknown>","description":"The attribute value has changed."}]}},{"name":"arcgis-portal-extent-picker","description":"To select extent value from a map or by entering coordinates.\n--\n\n### Events\n- **arcgisExtentPickerChange** - Emitted when the extent value changes\n- **arcgisExtentPickerClose** - Emitted when the dialog is closed\n- **arcgisExtentPickerSave** - Emitted when the save button is clicked\n\n### Methods\n- `componentOnReady(): Promise<this>` - Creates a promise that resolves once the component is fully loaded.\n- `getExtent(): ExtentObj` - Returns the current extent value","attributes":[{"name":"active","description":"if true, open the dialog","default":"false","value":{"type":"boolean"}},{"name":"content-only","description":"Optional; if true, show only the content without the calcite-dialog wrapper","default":"false","value":{"type":"boolean"}},{"name":"extent-service","description":"Optional; URL of the extent service, used to initialize TileLayer","value":{"type":"string"}},{"name":"is-area","description":"Optional; if true, display texts that are for areas rather than the default extent texts","default":"false","value":{"type":"boolean"}},{"name":"item-id","description":"Optional; if passed, use the itemId to load the Portal item","value":{"type":"string"}}],"events":[{"name":"arcgisExtentPickerChange","type":"ExtentObj","description":"Emitted when the extent value changes"},{"name":"arcgisExtentPickerClose","type":"void","description":"Emitted when the dialog is closed"},{"name":"arcgisExtentPickerSave","type":"ExtentObj","description":"Emitted when the save button is clicked"}],"js":{"properties":[{"name":"active","description":"if true, open the dialog","type":"boolean"},{"name":"contentOnly","description":"Optional; if true, show only the content without the calcite-dialog wrapper","type":"boolean"},{"name":"extentService","description":"Optional; URL of the extent service, used to initialize TileLayer","type":"string | undefined"},{"name":"extentValue","description":"current extent value","type":"ExtentValue | undefined"},{"name":"isArea","description":"Optional; if true, display texts that are for areas rather than the default extent texts","type":"boolean"},{"name":"itemId","description":"Optional; if passed, use the itemId to load the Portal item","type":"string | undefined"},{"name":"portal","description":"Optional; Portal instance","type":"Portal | undefined"}],"events":[{"name":"arcgisExtentPickerChange","type":"ExtentObj","description":"Emitted when the extent value changes"},{"name":"arcgisExtentPickerClose","type":"void","description":"Emitted when the dialog is closed"},{"name":"arcgisExtentPickerSave","type":"ExtentObj","description":"Emitted when the save button is clicked"}]}},{"name":"arcgis-portal-field-delete","description":"### Events\n- **arcgisBeforeDelete** - Emitted when the user initiates the delete process.\n- **arcgisBeforeModalClose** - Emitted before the modal is closed if the alert is handled in consumer.\n- **arcgisClose** - Emitted when the component is closed for any reason.\n- **arcgisFieldsDeleted** - Emitted when the field is successfully deleted.\n\n### Methods\n- `componentOnReady(): Promise<this>` - Creates a promise that resolves once the component is fully loaded.","attributes":[],"events":[{"name":"arcgisBeforeDelete","type":"void","description":"Emitted when the user initiates the delete process."},{"name":"arcgisBeforeModalClose","type":"string","description":"Emitted before the modal is closed if the alert is handled in consumer."},{"name":"arcgisClose","type":"void","description":"Emitted when the component is closed for any reason."},{"name":"arcgisFieldsDeleted","type":"void","description":"Emitted when the field is successfully deleted."}],"js":{"properties":[{"name":"config","description":"For documentation links.","type":"IConfig | undefined"},{"name":"fieldNames","description":"The fields to delete.","type":"string[] | undefined"},{"name":"layer","description":"The layer whose field is being deleted.","type":"FeatureLayer | OrientedImageryLayer | undefined"},{"name":"mapView","description":"The MapView instance.","type":"MapView | undefined"},{"name":"options","description":"Properties that may need to be passed in case values differ from what is available on Map Viewer.","type":"FieldDeleteOptions | undefined"}],"events":[{"name":"arcgisBeforeDelete","type":"void","description":"Emitted when the user initiates the delete process."},{"name":"arcgisBeforeModalClose","type":"string","description":"Emitted before the modal is closed if the alert is handled in consumer."},{"name":"arcgisClose","type":"void","description":"Emitted when the component is closed for any reason."},{"name":"arcgisFieldsDeleted","type":"void","description":"Emitted when the field is successfully deleted."}]}},{"name":"arcgis-portal-item-type","description":"### Methods\n- `componentOnReady(): Promise<this>` - Creates a promise that resolves once the component is fully loaded.","attributes":[{"name":"ellipsis","description":"Set to true to hide overflow (otherwise it will wrap lines)","default":"false","value":{"type":"boolean"}},{"name":"hide-icon","default":"false","value":{"type":"boolean"}},{"name":"hide-text","default":"false","value":{"type":"boolean"}},{"name":"scale","default":"\"s\"","value":{"type":["\"l\"","\"m\"","\"s\""]}},{"name":"show-hosted","description":"Display additional information about the item (views, extensions, photos, etc)\nwill only display for users who can update or edit","default":"false","value":{"type":"boolean"}}],"events":[],"js":{"properties":[{"name":"ellipsis","description":"Set to true to hide overflow (otherwise it will wrap lines)","type":"boolean | undefined"},{"name":"hideIcon","type":"boolean | undefined"},{"name":"hideText","type":"boolean | undefined"},{"name":"item","type":"PortalItem"},{"name":"portal","type":"Portal | undefined"},{"name":"scale","type":"\"l\" | \"m\" | \"s\""},{"name":"serviceInfo","type":"FeatureLayerProperties | undefined"},{"name":"showHosted","description":"Display additional information about the item (views, extensions, photos, etc)\nwill only display for users who can update or edit","type":"boolean | undefined"},{"name":"user","type":"PortalUser | undefined"}],"events":[]}},{"name":"arcgis-portal-mentionable-text-area","description":"A mention-enabled text area for ArcGIS Portal users, items, and groups.\n--\n\n### Events\n- **arcgisMentionableSelectedIndexChange** - Emitted when the selected item index changes\n- **arcgisMentionableTextAreaChange** - Emitted when the text content changes\n- **arcgisMentionableTextAreaKeyDown** - Emitted when a key is pressed in the text area\n\nUse this instead of the native onKeyDown event to avoid conflicts with the popover.\n- **arcgisUserMentionableTextAreaChange** - Emitted when the text content changes\n- **arcgisUserMentionableTextAreaKeyDown** - Emitted when a key is pressed in the text area\n\n### Methods\n- `closePopover(): Promise<void>` - Close the mention popover. Exposed as a public method so wrapper components\ncan programmatically dismiss the popover when needed (e.g. no search results).\n- `componentOnReady(): Promise<this>` - Creates a promise that resolves once the component is fully loaded.\n- `focusTextArea(): Promise<void>`\n- `selectItem(item: MentionableEntity): Promise<void>`","attributes":[{"name":"disabled","default":"false","value":{"type":"boolean"}},{"name":"max-length","description":"Mirrors the `maxlength` property on the internal native `textarea`","value":{"type":"number"}},{"name":"placeholder","description":"Creates a placeholder for the calcite-text-area component","value":{"type":"string"}},{"name":"popover-list-label","value":{"type":"string"}},{"name":"popover-placement","default":"\"bottom-start\"","value":{"type":["\"auto\"","\"auto-start\"","\"auto-end\"","\"top\"","\"top-start\"","\"top-end\"","\"bottom\"","\"bottom-start\"","\"bottom-end\"","\"right\"","\"right-start\"","\"right-end\"","\"left\"","\"left-start\"","\"left-end\"","\"leading-start\"","\"leading\"","\"leading-end\"","\"trailing-end\"","\"trailing\"","\"trailing-start\""]}},{"name":"read-only","description":"Flag to enable readOnly","default":"false","value":{"type":"boolean"}},{"name":"rows","description":"Mirrors the `rows` property on the internal native `textarea`","default":"3","value":{"type":"number"}},{"name":"scale","description":"Decides scale of internal calcite-components","default":"\"m\"","value":{"type":["\"s\"","\"m\"","\"l\""]}},{"name":"value","description":"Current text content","value":{"type":"string"}}],"events":[{"name":"arcgisMentionableSelectedIndexChange","type":"number","description":"Emitted when the selected item index changes"},{"name":"arcgisMentionableTextAreaChange","type":"string","description":"Emitted when the text content changes"},{"name":"arcgisMentionableTextAreaKeyDown","type":"KeyboardEvent","description":"Emitted when a key is pressed in the text area\n\nUse this instead of the native onKeyDown event to avoid conflicts with the popover."},{"name":"arcgisUserMentionableTextAreaChange","type":"string","description":"Emitted when the text content changes"},{"name":"arcgisUserMentionableTextAreaKeyDown","type":"KeyboardEvent","description":"Emitted when a key is pressed in the text area"}],"js":{"properties":[{"name":"disabled","type":"boolean | undefined"},{"name":"maxLength","description":"Mirrors the `maxlength` property on the internal native `textarea`","type":"number | undefined"},{"name":"placeholder","description":"Creates a placeholder for the calcite-text-area component","type":"string | undefined"},{"name":"popoverListLabel","type":"string"},{"name":"popoverPlacement","type":"Popover[\"placement\"]"},{"name":"portal","type":"Portal"},{"name":"readOnly","description":"Flag to enable readOnly","type":"boolean | undefined"},{"name":"rows","description":"Mirrors the `rows` property on the internal native `textarea`","type":"number | undefined"},{"name":"scale","description":"Decides scale of internal calcite-components","type":"Input[\"scale\"] | undefined"},{"name":"starters","description":"Character(s) that trigger the mention popover (e.g., \"@\", \"#\", \"$\")","type":"string[] | readonly string[]"},{"name":"user","type":"PortalUser"},{"name":"value","description":"Current text content","type":"string | undefined"}],"events":[{"name":"arcgisMentionableSelectedIndexChange","type":"number","description":"Emitted when the selected item index changes"},{"name":"arcgisMentionableTextAreaChange","type":"string","description":"Emitted when the text content changes"},{"name":"arcgisMentionableTextAreaKeyDown","type":"KeyboardEvent","description":"Emitted when a key is pressed in the text area\n\nUse this instead of the native onKeyDown event to avoid conflicts with the popover."},{"name":"arcgisUserMentionableTextAreaChange","type":"string","description":"Emitted when the text content changes"},{"name":"arcgisUserMentionableTextAreaKeyDown","type":"KeyboardEvent","description":"Emitted when a key is pressed in the text area"}]}},{"name":"arcgis-portal-replacement-item-redirect","description":"The `arcgis-portal-replacement-item-redirect` component takes an item id on a given portal, and checks if there is a replacement item associated with it\nvia the `ReplacementItem2Item` relationship.\n\nIf so, it displays a dialog to the user notifying them of the replacement item, and redirects to the replacement item's default Open Action after a timeout.\n--\n\n### Events\n- **arcgisPortalReplacementItemFetch**\n\n### Methods\n- `componentOnReady(): Promise<this>` - Creates a promise that resolves once the component is fully loaded.\n- `setFocus(): Promise<void>` - Set focus on the component","attributes":[{"name":"item-id","description":"The id of a deprecated/retired item to be checked for a replacement","value":{"type":"string"}}],"events":[{"name":"arcgisPortalReplacementItemFetch","type":"{ replacementItem: PortalItem | object | null; }"}],"js":{"properties":[{"name":"itemId","description":"The id of a deprecated/retired item to be checked for a replacement","type":"string"},{"name":"portal","description":"The portal instance","type":"Portal"},{"name":"user","description":"The user. Defaults to `portal.user` if omitted","type":"PortalUser | null | undefined"}],"events":[{"name":"arcgisPortalReplacementItemFetch","type":"{ replacementItem: PortalItem | object | null; }"}]}},{"name":"arcgis-portal-user-avatar","description":"### Methods\n- `componentOnReady(): Promise<this>` - Creates a promise that resolves once the component is fully loaded.","attributes":[{"name":"check-online","default":"false","value":{"type":"boolean"}},{"name":"description","description":"Configurable text to show under the user's name","value":{"type":"string"}},{"name":"heading","description":"Configurable text to use in place of full name (use to add to add additional context, etc)","value":{"type":"string"}},{"name":"hide-avatar","description":"Set to true to hide the avatar (useful for just showing the name lockup styled correctly)","default":"false","value":{"type":"boolean"}},{"name":"scale","description":"Scale of the component","default":"\"m\"","value":{"type":["\"s\"","\"m\"","\"l\"","\"xs\""]}},{"name":"show-name","description":"Set to true to show user's name alongside the avatar as part of lockup","default":"false","value":{"type":"boolean"}},{"name":"underline","description":"Set to true to underline the name (only applies if showName is also true)","default":"false","value":{"type":"boolean"}},{"name":"username","description":"A username to get a User object from","value":{"type":"string"}},{"name":"wrap","description":"Allow the name to wrap lines (max 2)","default":"false","value":{"type":"boolean"}}],"events":[],"js":{"properties":[{"name":"checkOnline","type":"boolean | undefined"},{"name":"description","description":"Configurable text to show under the user's name","type":"string | undefined"},{"name":"heading","description":"Configurable text to use in place of full name (use to add to add additional context, etc)","type":"string | undefined"},{"name":"hideAvatar","description":"Set to true to hide the avatar (useful for just showing the name lockup styled correctly)","type":"boolean | undefined"},{"name":"portal","description":"The current portal instance","type":"Portal | undefined"},{"name":"scale","description":"Scale of the component","type":"Scale"},{"name":"showName","description":"Set to true to show user's name alongside the avatar as part of lockup","type":"boolean | undefined"},{"name":"underline","description":"Set to true to underline the name (only applies if showName is also true)","type":"boolean | undefined"},{"name":"user","description":"A User or org information (used for verified items)","type":"CommunityUser | ItemUserInfo | PortalUser | SearchResultUser | undefined"},{"name":"username","description":"A username to get a User object from","type":"string | undefined"},{"name":"wrap","description":"Allow the name to wrap lines (max 2)","type":"boolean | undefined"}],"events":[]}},{"name":"arcgis-portal-voice-input","description":"A headless component that provides a voice input interface\n--\n\n### Events\n- **arcgisVoiceInputError**\n- **arcgisVoiceInputInterimTranscription** - Emitted with the current recognized text as it is being transcribed\n- **arcgisVoiceInputStart**\n- **arcgisVoiceInputStop**\n- **arcgisVoiceInputTranscription** - Emitted when transcription is complete\n\nNote that this means the user has stopped speaking, not when the status is turned to \"idle\".\n\nTo look for the current interim transcription, listen to the `arcgisVoiceInputInterimTranscription` event.\n\n### Methods\n- `clearText(): Promise<void>`\n- `componentOnReady(): Promise<this>` - Creates a promise that resolves once the component is fully loaded.\n- `startListening(): Promise<VoiceInputError | null>`\n- `stopListening(): Promise<void>`","attributes":[{"name":"language","description":"Language for speech recognition (e.g., 'en-US', 'es-ES'). If not provided, the browser's default language will be used.","value":{"type":"string"}}],"events":[{"name":"arcgisVoiceInputError","type":"{ errorCode: VoiceInputError; }"},{"name":"arcgisVoiceInputInterimTranscription","type":"{ text: string; }","description":"Emitted with the current recognized text as it is being transcribed"},{"name":"arcgisVoiceInputStart","type":"void"},{"name":"arcgisVoiceInputStop","type":"void"},{"name":"arcgisVoiceInputTranscription","type":"{ text: string; }","description":"Emitted when transcription is complete\n\nNote that this means the user has stopped speaking, not when the status is turned to \"idle\".\n\nTo look for the current interim transcription, listen to the `arcgisVoiceInputInterimTranscription` event."}],"js":{"properties":[{"name":"language","description":"Language for speech recognition (e.g., 'en-US', 'es-ES'). If not provided, the browser's default language will be used.","type":"string | undefined"}],"events":[{"name":"arcgisVoiceInputError","type":"{ errorCode: VoiceInputError; }"},{"name":"arcgisVoiceInputInterimTranscription","type":"{ text: string; }","description":"Emitted with the current recognized text as it is being transcribed"},{"name":"arcgisVoiceInputStart","type":"void"},{"name":"arcgisVoiceInputStop","type":"void"},{"name":"arcgisVoiceInputTranscription","type":"{ text: string; }","description":"Emitted when transcription is complete\n\nNote that this means the user has stopped speaking, not when the status is turned to \"idle\".\n\nTo look for the current interim transcription, listen to the `arcgisVoiceInputInterimTranscription` event."}]}}]},"css":{"properties":[],"pseudo-elements":[]}}}
1
+ {"$schema":"https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json","name":"@arcgis/portal-components","version":"5.1.0","description-markup":"markdown","contributions":{"html":{"elements":[{"name":"arcgis-portal-ai-assistant","description":"### Events\n- **arcgisPortalNavigationRequest**\n\n### Methods\n- `componentOnReady(): Promise<this>` - Creates a promise that resolves once the component is fully loaded.","attributes":[{"name":"auto-destroy-disabled","default":"false","value":{"type":"boolean"}},{"name":"default-closed","default":"false","value":{"type":"boolean"}}],"events":[{"name":"arcgisPortalNavigationRequest","type":"{\n href: string;\n targetDetail: DocAssistantNavigationTarget;\n}"}],"js":{"properties":[{"name":"autoDestroyDisabled","type":"boolean"},{"name":"config","type":"Config"},{"name":"defaultClosed","type":"boolean"},{"name":"portal","type":"Portal"},{"name":"user","type":"PortalUser"}],"events":[{"name":"arcgisPortalNavigationRequest","type":"{\n href: string;\n targetDetail: DocAssistantNavigationTarget;\n}"}]}},{"name":"arcgis-portal-ai-assistant-interrupt","description":"### Events\n- **arcgisCancel**\n- **arcgisSubmit**\n\n### Methods\n- `componentOnReady(): Promise<this>` - Creates a promise that resolves once the component is fully loaded.","attributes":[{"name":"message","value":{"type":"string"}},{"name":"type","value":{"type":["\"boolean-choice\"","\"multi-select\"","\"single-select\"","\"text-input\""]}}],"events":[{"name":"arcgisCancel","type":"void"},{"name":"arcgisSubmit","type":"string[] | boolean | string"}],"js":{"properties":[{"name":"message","type":"NonNullable<InterruptType[\"message\"]>"},{"name":"options","type":"InterruptType[\"options\"]"},{"name":"type","type":"InterruptType[\"type\"]"}],"events":[{"name":"arcgisCancel","type":"void"},{"name":"arcgisSubmit","type":"string[] | boolean | string"}]}},{"name":"arcgis-portal-classification-banner","description":"### Methods\n- `componentOnReady(): Promise<this>` - Creates a promise that resolves once the component is fully loaded.\n- `destroy(): Promise<void>` - Permanently destroy the component","attributes":[{"name":"missing-existing-classification","description":"If the portal item has a classification previously","default":"false","value":{"type":"boolean"}},{"name":"validation-errors","description":"The classification validation error - validate the classification value against the classification schema.","default":"\"\"","value":{"type":"string"}},{"name":"variant","description":"The size of the banner to display.\n\n- `\"full\"`: Used when the banner is displayed at the top and bottom of a page. This is the default mode cached for performance.\n- `\"preview\"`: Used when the banner is rendered inside a configuration component. This mode is not cached and is used to display a preview of the classification.","default":"\"full\"","value":{"type":["\"full\"","\"preview\""]}}],"events":[],"js":{"properties":[{"name":"missingExistingClassification","description":"If the portal item has a classification previously","type":"boolean"},{"name":"portalItem","description":"The portal item to display the classification banner for.","type":"PortalItem | undefined"},{"name":"validationErrors","description":"The classification validation error - validate the classification value against the classification schema.","type":"string"},{"name":"variant","description":"The size of the banner to display.\n\n- `\"full\"`: Used when the banner is displayed at the top and bottom of a page. This is the default mode cached for performance.\n- `\"preview\"`: Used when the banner is rendered inside a configuration component. This mode is not cached and is used to display a preview of the classification.","type":"\"full\" | \"preview\""}],"events":[]}},{"name":"arcgis-portal-classification-config","description":"The `arcgis-portal-classification-config` component enables users to edit or provide a classification schema to a portal item through a user-friendly form. The schema is saved to the associated portal item.\n--\n\n### Events\n- **arcgisPropertyChange** - Event emitted when component property values status, values, or valid change.\n\n### Methods\n- `componentOnReady(): Promise<this>` - Creates a promise that resolves once the component is fully loaded.\n- `destroy(): Promise<void>` - Permanently destroy the component.\n- `resetForm(): Promise<void>` - Reset the form to the initial classification values from the portalItem\n- `validateForm(): Promise<void>` - Validates the form and sets the formValidationErrors state.","attributes":[{"name":"status","description":"The loading status of the component, will be set to \"loaded\" when the classification schema is loaded.","default":"\"idle\"","value":{"type":["\"loaded\"","\"loading\"","\"error\"","\"idle\""]}},{"name":"valid","description":"The validity of the form values against the Portal's classification schema.","default":"false","value":{"type":"boolean"}},{"name":"values","description":"The edited classification values of the portal item.","value":{}}],"events":[{"name":"arcgisPropertyChange","type":"{ name: \"status\" | \"values\" | \"valid\"; }","description":"Event emitted when component property values status, values, or valid change."}],"js":{"properties":[{"name":"portalItem","description":"The portal item to display the classification banner for.","type":"PortalItem | undefined"},{"name":"status","description":"The loading status of the component, will be set to \"loaded\" when the classification schema is loaded.","type":"Status"},{"name":"valid","description":"The validity of the form values against the Portal's classification schema.","type":"boolean"},{"name":"values","description":"The edited classification values of the portal item.","type":"PortalItem[\"classification\"]"}],"events":[{"name":"arcgisPropertyChange","type":"{ name: \"status\" | \"values\" | \"valid\"; }","description":"Event emitted when component property values status, values, or valid change."}]}},{"name":"arcgis-portal-classification-favorite","description":"### Methods\n- `componentOnReady(): Promise<this>` - Creates a promise that resolves once the component is fully loaded.","attributes":[{"name":"selected-favorite-classification-name","default":"\"\"","value":{"type":"string"}}],"events":[],"js":{"properties":[{"name":"attributeExpressionResults","type":"AttributeExpressionResults | undefined"},{"name":"classificationValue","description":"Current classification value","type":"PortalItem[\"classification\"] | undefined"},{"name":"favoriteClassifications","description":"List of favorite classifications","type":"FavoriteClassification[]"},{"name":"portalItem","description":"The portal item to display the classification banner for.","type":"PortalItem | undefined"},{"name":"resetFavoriteClassification","type":"(favoriteClassifications: FavoriteClassification[]) => void"},{"name":"selectedFavoriteClassificationName","type":"string"},{"name":"updateClassificationData","type":"(selectedClassification: FavoriteClassification) => void"}],"events":[]}},{"name":"arcgis-portal-classification-form-element","description":"A web component that renders form elements for a classification schema attribute.\n--\n\n### Events\n- **arcgisAttributeValueChange** - The attribute value has changed.\n\n### Methods\n- `componentOnReady(): Promise<this>` - Creates a promise that resolves once the component is fully loaded.","attributes":[{"name":"attribute-key","value":{"type":"string"}}],"events":[{"name":"arcgisAttributeValueChange","type":"Record<string, unknown>","description":"The attribute value has changed."}],"js":{"properties":[{"name":"attribute","type":"ClassificationSchema[\"attributes\"][string]"},{"name":"attributeKey","type":"string"},{"name":"isRequiredErrors","type":"Set<string>"},{"name":"renderingInfo","type":"Pick<NonNullable<ReturnType<AttributeExpressionResults[\"get\"]>>, \"attributeValidationResult\" | \"valueExpressionResult\"> | undefined"},{"name":"value","type":"unknown"}],"events":[{"name":"arcgisAttributeValueChange","type":"Record<string, unknown>","description":"The attribute value has changed."}]}},{"name":"arcgis-portal-extent-picker","description":"To select extent value from a map or by entering coordinates.\n--\n\n### Events\n- **arcgisExtentPickerChange** - Emitted when the extent value changes\n- **arcgisExtentPickerClose** - Emitted when the dialog is closed\n- **arcgisExtentPickerSave** - Emitted when the save button is clicked\n\n### Methods\n- `componentOnReady(): Promise<this>` - Creates a promise that resolves once the component is fully loaded.\n- `getExtent(): ExtentObj` - Returns the current extent value","attributes":[{"name":"active","description":"if true, open the dialog","default":"false","value":{"type":"boolean"}},{"name":"content-only","description":"Optional; if true, show only the content without the calcite-dialog wrapper","default":"false","value":{"type":"boolean"}},{"name":"extent-service","description":"Optional; URL of the extent service, used to initialize TileLayer","value":{"type":"string"}},{"name":"is-area","description":"Optional; if true, display texts that are for areas rather than the default extent texts","default":"false","value":{"type":"boolean"}},{"name":"item-id","description":"Optional; if passed, use the itemId to load the Portal item","value":{"type":"string"}}],"events":[{"name":"arcgisExtentPickerChange","type":"ExtentObj","description":"Emitted when the extent value changes"},{"name":"arcgisExtentPickerClose","type":"void","description":"Emitted when the dialog is closed"},{"name":"arcgisExtentPickerSave","type":"ExtentObj","description":"Emitted when the save button is clicked"}],"js":{"properties":[{"name":"active","description":"if true, open the dialog","type":"boolean"},{"name":"contentOnly","description":"Optional; if true, show only the content without the calcite-dialog wrapper","type":"boolean"},{"name":"extentService","description":"Optional; URL of the extent service, used to initialize TileLayer","type":"string | undefined"},{"name":"extentValue","description":"current extent value","type":"ExtentValue | undefined"},{"name":"isArea","description":"Optional; if true, display texts that are for areas rather than the default extent texts","type":"boolean"},{"name":"itemId","description":"Optional; if passed, use the itemId to load the Portal item","type":"string | undefined"},{"name":"portal","description":"Optional; Portal instance","type":"Portal | undefined"}],"events":[{"name":"arcgisExtentPickerChange","type":"ExtentObj","description":"Emitted when the extent value changes"},{"name":"arcgisExtentPickerClose","type":"void","description":"Emitted when the dialog is closed"},{"name":"arcgisExtentPickerSave","type":"ExtentObj","description":"Emitted when the save button is clicked"}]}},{"name":"arcgis-portal-field-delete","description":"### Events\n- **arcgisBeforeDelete** - Emitted when the user initiates the delete process.\n- **arcgisBeforeModalClose** - Emitted before the modal is closed if the alert is handled in consumer.\n- **arcgisClose** - Emitted when the component is closed for any reason.\n- **arcgisFieldsDeleted** - Emitted when the field is successfully deleted.\n\n### Methods\n- `componentOnReady(): Promise<this>` - Creates a promise that resolves once the component is fully loaded.","attributes":[],"events":[{"name":"arcgisBeforeDelete","type":"void","description":"Emitted when the user initiates the delete process."},{"name":"arcgisBeforeModalClose","type":"string","description":"Emitted before the modal is closed if the alert is handled in consumer."},{"name":"arcgisClose","type":"void","description":"Emitted when the component is closed for any reason."},{"name":"arcgisFieldsDeleted","type":"void","description":"Emitted when the field is successfully deleted."}],"js":{"properties":[{"name":"config","description":"For documentation links.","type":"IConfig | undefined"},{"name":"fieldNames","description":"The fields to delete.","type":"string[] | undefined"},{"name":"layer","description":"The layer whose field is being deleted.","type":"FeatureLayer | OrientedImageryLayer | undefined"},{"name":"mapView","description":"The MapView instance.","type":"MapView | undefined"},{"name":"options","description":"Properties that may need to be passed in case values differ from what is available on Map Viewer.","type":"FieldDeleteOptions | undefined"}],"events":[{"name":"arcgisBeforeDelete","type":"void","description":"Emitted when the user initiates the delete process."},{"name":"arcgisBeforeModalClose","type":"string","description":"Emitted before the modal is closed if the alert is handled in consumer."},{"name":"arcgisClose","type":"void","description":"Emitted when the component is closed for any reason."},{"name":"arcgisFieldsDeleted","type":"void","description":"Emitted when the field is successfully deleted."}]}},{"name":"arcgis-portal-item-type","description":"### Methods\n- `componentOnReady(): Promise<this>` - Creates a promise that resolves once the component is fully loaded.","attributes":[{"name":"ellipsis","description":"Set to true to hide overflow (otherwise it will wrap lines)","default":"false","value":{"type":"boolean"}},{"name":"hide-icon","default":"false","value":{"type":"boolean"}},{"name":"hide-text","default":"false","value":{"type":"boolean"}},{"name":"scale","default":"\"s\"","value":{"type":["\"l\"","\"m\"","\"s\""]}},{"name":"show-hosted","description":"Display additional information about the item (views, extensions, photos, etc)\nwill only display for users who can update or edit","default":"false","value":{"type":"boolean"}}],"events":[],"js":{"properties":[{"name":"ellipsis","description":"Set to true to hide overflow (otherwise it will wrap lines)","type":"boolean | undefined"},{"name":"hideIcon","type":"boolean | undefined"},{"name":"hideText","type":"boolean | undefined"},{"name":"item","type":"PortalItem"},{"name":"portal","type":"Portal | undefined"},{"name":"scale","type":"\"l\" | \"m\" | \"s\""},{"name":"serviceInfo","type":"FeatureLayerProperties | undefined"},{"name":"showHosted","description":"Display additional information about the item (views, extensions, photos, etc)\nwill only display for users who can update or edit","type":"boolean | undefined"},{"name":"user","type":"PortalUser | undefined"}],"events":[]}},{"name":"arcgis-portal-mentionable-text-area","description":"A mention-enabled text area for ArcGIS Portal users, items, and groups.\n--\n\n### Events\n- **arcgisMentionableSelectedIndexChange** - Emitted when the selected item index changes\n- **arcgisMentionableTextAreaChange** - Emitted when the text content changes\n- **arcgisMentionableTextAreaKeyDown** - Emitted when a key is pressed in the text area\n\nUse this instead of the native onKeyDown event to avoid conflicts with the popover.\n- **arcgisUserMentionableTextAreaChange** - Emitted when the text content changes\n- **arcgisUserMentionableTextAreaKeyDown** - Emitted when a key is pressed in the text area\n\n### Methods\n- `closePopover(): Promise<void>` - Close the mention popover. Exposed as a public method so wrapper components\ncan programmatically dismiss the popover when needed (e.g. no search results).\n- `componentOnReady(): Promise<this>` - Creates a promise that resolves once the component is fully loaded.\n- `focusTextArea(): Promise<void>`\n- `selectItem(item: MentionableEntity): Promise<void>`","attributes":[{"name":"disabled","default":"false","value":{"type":"boolean"}},{"name":"max-length","description":"Mirrors the `maxlength` property on the internal native `textarea`","value":{"type":"number"}},{"name":"placeholder","description":"Creates a placeholder for the calcite-text-area component","value":{"type":"string"}},{"name":"popover-list-label","value":{"type":"string"}},{"name":"popover-placement","default":"\"bottom-start\"","value":{"type":["\"auto\"","\"auto-start\"","\"auto-end\"","\"top\"","\"top-start\"","\"top-end\"","\"bottom\"","\"bottom-start\"","\"bottom-end\"","\"right\"","\"right-start\"","\"right-end\"","\"left\"","\"left-start\"","\"left-end\"","\"leading-start\"","\"leading\"","\"leading-end\"","\"trailing-end\"","\"trailing\"","\"trailing-start\""]}},{"name":"read-only","description":"Flag to enable readOnly","default":"false","value":{"type":"boolean"}},{"name":"rows","description":"Mirrors the `rows` property on the internal native `textarea`","default":"3","value":{"type":"number"}},{"name":"scale","description":"Decides scale of internal calcite-components","default":"\"m\"","value":{"type":["\"s\"","\"m\"","\"l\""]}},{"name":"value","description":"Current text content","value":{"type":"string"}}],"events":[{"name":"arcgisMentionableSelectedIndexChange","type":"number","description":"Emitted when the selected item index changes"},{"name":"arcgisMentionableTextAreaChange","type":"string","description":"Emitted when the text content changes"},{"name":"arcgisMentionableTextAreaKeyDown","type":"KeyboardEvent","description":"Emitted when a key is pressed in the text area\n\nUse this instead of the native onKeyDown event to avoid conflicts with the popover."},{"name":"arcgisUserMentionableTextAreaChange","type":"string","description":"Emitted when the text content changes"},{"name":"arcgisUserMentionableTextAreaKeyDown","type":"KeyboardEvent","description":"Emitted when a key is pressed in the text area"}],"js":{"properties":[{"name":"disabled","type":"boolean | undefined"},{"name":"maxLength","description":"Mirrors the `maxlength` property on the internal native `textarea`","type":"number | undefined"},{"name":"placeholder","description":"Creates a placeholder for the calcite-text-area component","type":"string | undefined"},{"name":"popoverListLabel","type":"string"},{"name":"popoverPlacement","type":"Popover[\"placement\"]"},{"name":"portal","type":"Portal"},{"name":"readOnly","description":"Flag to enable readOnly","type":"boolean | undefined"},{"name":"rows","description":"Mirrors the `rows` property on the internal native `textarea`","type":"number | undefined"},{"name":"scale","description":"Decides scale of internal calcite-components","type":"Input[\"scale\"] | undefined"},{"name":"starters","description":"Character(s) that trigger the mention popover (e.g., \"@\", \"#\", \"$\")","type":"MentionableStarter[] | readonly MentionableStarter[]"},{"name":"user","type":"PortalUser"},{"name":"value","description":"Current text content","type":"string | undefined"}],"events":[{"name":"arcgisMentionableSelectedIndexChange","type":"number","description":"Emitted when the selected item index changes"},{"name":"arcgisMentionableTextAreaChange","type":"string","description":"Emitted when the text content changes"},{"name":"arcgisMentionableTextAreaKeyDown","type":"KeyboardEvent","description":"Emitted when a key is pressed in the text area\n\nUse this instead of the native onKeyDown event to avoid conflicts with the popover."},{"name":"arcgisUserMentionableTextAreaChange","type":"string","description":"Emitted when the text content changes"},{"name":"arcgisUserMentionableTextAreaKeyDown","type":"KeyboardEvent","description":"Emitted when a key is pressed in the text area"}]}},{"name":"arcgis-portal-replacement-item-redirect","description":"The `arcgis-portal-replacement-item-redirect` component takes an item id on a given portal, and checks if there is a replacement item associated with it\nvia the `ReplacementItem2Item` relationship.\n\nIf so, it displays a dialog to the user notifying them of the replacement item, and redirects to the replacement item's default Open Action after a timeout.\n--\n\n### Events\n- **arcgisPortalReplacementItemFetch**\n\n### Methods\n- `componentOnReady(): Promise<this>` - Creates a promise that resolves once the component is fully loaded.\n- `setFocus(): Promise<void>` - Set focus on the component","attributes":[{"name":"item-id","description":"The id of a deprecated/retired item to be checked for a replacement","value":{"type":"string"}}],"events":[{"name":"arcgisPortalReplacementItemFetch","type":"{ replacementItem: PortalItem | object | null; }"}],"js":{"properties":[{"name":"itemId","description":"The id of a deprecated/retired item to be checked for a replacement","type":"string"},{"name":"portal","description":"The portal instance","type":"Portal"},{"name":"user","description":"The user. Defaults to `portal.user` if omitted","type":"PortalUser | null | undefined"}],"events":[{"name":"arcgisPortalReplacementItemFetch","type":"{ replacementItem: PortalItem | object | null; }"}]}},{"name":"arcgis-portal-user-avatar","description":"### Methods\n- `componentOnReady(): Promise<this>` - Creates a promise that resolves once the component is fully loaded.","attributes":[{"name":"check-online","default":"false","value":{"type":"boolean"}},{"name":"description","description":"Configurable text to show under the user's name","value":{"type":"string"}},{"name":"heading","description":"Configurable text to use in place of full name (use to add to add additional context, etc)","value":{"type":"string"}},{"name":"hide-avatar","description":"Set to true to hide the avatar (useful for just showing the name lockup styled correctly)","default":"false","value":{"type":"boolean"}},{"name":"scale","description":"Scale of the component","default":"\"m\"","value":{"type":["\"s\"","\"m\"","\"l\"","\"xs\""]}},{"name":"show-name","description":"Set to true to show user's name alongside the avatar as part of lockup","default":"false","value":{"type":"boolean"}},{"name":"underline","description":"Set to true to underline the name (only applies if showName is also true)","default":"false","value":{"type":"boolean"}},{"name":"username","description":"A username to get a User object from","value":{"type":"string"}},{"name":"wrap","description":"Allow the name to wrap lines (max 2)","default":"false","value":{"type":"boolean"}}],"events":[],"js":{"properties":[{"name":"checkOnline","type":"boolean | undefined"},{"name":"description","description":"Configurable text to show under the user's name","type":"string | undefined"},{"name":"heading","description":"Configurable text to use in place of full name (use to add to add additional context, etc)","type":"string | undefined"},{"name":"hideAvatar","description":"Set to true to hide the avatar (useful for just showing the name lockup styled correctly)","type":"boolean | undefined"},{"name":"portal","description":"The current portal instance","type":"Portal | undefined"},{"name":"scale","description":"Scale of the component","type":"Scale"},{"name":"showName","description":"Set to true to show user's name alongside the avatar as part of lockup","type":"boolean | undefined"},{"name":"underline","description":"Set to true to underline the name (only applies if showName is also true)","type":"boolean | undefined"},{"name":"user","description":"A User or org information (used for verified items)","type":"CommunityUser | ItemUserInfo | PortalUser | SearchResultUser | undefined"},{"name":"username","description":"A username to get a User object from","type":"string | undefined"},{"name":"wrap","description":"Allow the name to wrap lines (max 2)","type":"boolean | undefined"}],"events":[]}},{"name":"arcgis-portal-voice-input","description":"A headless component that provides a voice input interface\n--\n\n### Events\n- **arcgisVoiceInputError**\n- **arcgisVoiceInputInterimTranscription** - Emitted with the current recognized text as it is being transcribed\n- **arcgisVoiceInputStart**\n- **arcgisVoiceInputStop**\n- **arcgisVoiceInputTranscription** - Emitted when transcription is complete\n\nNote that this means the user has stopped speaking, not when the status is turned to \"idle\".\n\nTo look for the current interim transcription, listen to the `arcgisVoiceInputInterimTranscription` event.\n\n### Methods\n- `clearText(): Promise<void>`\n- `componentOnReady(): Promise<this>` - Creates a promise that resolves once the component is fully loaded.\n- `startListening(): Promise<VoiceInputError | null>`\n- `stopListening(): Promise<void>`","attributes":[{"name":"language","description":"Language for speech recognition (e.g., 'en-US', 'es-ES'). If not provided, the browser's default language will be used.","value":{"type":"string"}}],"events":[{"name":"arcgisVoiceInputError","type":"{ errorCode: VoiceInputError; }"},{"name":"arcgisVoiceInputInterimTranscription","type":"{ text: string; }","description":"Emitted with the current recognized text as it is being transcribed"},{"name":"arcgisVoiceInputStart","type":"void"},{"name":"arcgisVoiceInputStop","type":"void"},{"name":"arcgisVoiceInputTranscription","type":"{ text: string; }","description":"Emitted when transcription is complete\n\nNote that this means the user has stopped speaking, not when the status is turned to \"idle\".\n\nTo look for the current interim transcription, listen to the `arcgisVoiceInputInterimTranscription` event."}],"js":{"properties":[{"name":"language","description":"Language for speech recognition (e.g., 'en-US', 'es-ES'). If not provided, the browser's default language will be used.","type":"string | undefined"}],"events":[{"name":"arcgisVoiceInputError","type":"{ errorCode: VoiceInputError; }"},{"name":"arcgisVoiceInputInterimTranscription","type":"{ text: string; }","description":"Emitted with the current recognized text as it is being transcribed"},{"name":"arcgisVoiceInputStart","type":"void"},{"name":"arcgisVoiceInputStop","type":"void"},{"name":"arcgisVoiceInputTranscription","type":"{ text: string; }","description":"Emitted when transcription is complete\n\nNote that this means the user has stopped speaking, not when the status is turned to \"idle\".\n\nTo look for the current interim transcription, listen to the `arcgisVoiceInputInterimTranscription` event."}]}}]},"css":{"properties":[],"pseudo-elements":[]}}}
package/dist/index.d.ts CHANGED
@@ -28,6 +28,7 @@ export function getAssetPath(suffix: string): string;
28
28
  export function setAssetPath(path: URL | string): void;
29
29
 
30
30
  import type { ArcgisPortalAiAssistant } from "./components/arcgis-portal-ai-assistant/customElement.js";
31
+ import type { ArcgisPortalAiAssistantInterrupt } from "./components/arcgis-portal-ai-assistant-interrupt/customElement.js";
31
32
  import type { ArcgisPortalClassificationBanner } from "./components/arcgis-portal-classification-banner/customElement.js";
32
33
  import type { ArcgisPortalClassificationConfig } from "./components/arcgis-portal-classification-config/customElement.js";
33
34
  import type { ArcgisPortalClassificationFavorite } from "./components/arcgis-portal-classification-favorite/customElement.js";
@@ -42,6 +43,16 @@ import type { ArcgisPortalVoiceInput } from "./components/arcgis-portal-voice-in
42
43
 
43
44
  export { ToEvents, TargetedEvent } from "@arcgis/lumina";
44
45
 
46
+ export interface ArcgisPortalAiAssistantCustomEvent<T> extends CustomEvent<T> {
47
+ detail: T;
48
+ target: ArcgisPortalAiAssistant;
49
+ currentTarget: ArcgisPortalAiAssistant;
50
+ }
51
+ export interface ArcgisPortalAiAssistantInterruptCustomEvent<T> extends CustomEvent<T> {
52
+ detail: T;
53
+ target: ArcgisPortalAiAssistantInterrupt;
54
+ currentTarget: ArcgisPortalAiAssistantInterrupt;
55
+ }
45
56
  export interface ArcgisPortalClassificationConfigCustomEvent<T> extends CustomEvent<T> {
46
57
  detail: T;
47
58
  target: ArcgisPortalClassificationConfig;
@@ -82,6 +93,7 @@ export interface ArcgisPortalVoiceInputCustomEvent<T> extends CustomEvent<T> {
82
93
  declare global {
83
94
  interface HTMLElementTagNameMap {
84
95
  "arcgis-portal-ai-assistant": ArcgisPortalAiAssistant;
96
+ "arcgis-portal-ai-assistant-interrupt": ArcgisPortalAiAssistantInterrupt;
85
97
  "arcgis-portal-classification-banner": ArcgisPortalClassificationBanner;
86
98
  "arcgis-portal-classification-config": ArcgisPortalClassificationConfig;
87
99
  "arcgis-portal-classification-favorite": ArcgisPortalClassificationFavorite;
@@ -96,8 +108,12 @@ declare global {
96
108
 
97
109
  }
98
110
 
111
+ type HTMLArcgisPortalAiAssistantElementEventMap = ArcgisPortalAiAssistant["@eventTypes"];
99
112
  type HTMLArcgisPortalAiAssistantElement = ArcgisPortalAiAssistant;
100
113
 
114
+ type HTMLArcgisPortalAiAssistantInterruptElementEventMap = ArcgisPortalAiAssistantInterrupt["@eventTypes"];
115
+ type HTMLArcgisPortalAiAssistantInterruptElement = ArcgisPortalAiAssistantInterrupt;
116
+
101
117
  type HTMLArcgisPortalClassificationBannerElement = ArcgisPortalClassificationBanner;
102
118
 
103
119
  type HTMLArcgisPortalClassificationConfigElementEventMap = ArcgisPortalClassificationConfig["@eventTypes"];
package/dist/loader.js CHANGED
@@ -2,7 +2,8 @@
2
2
  import { r as e } from "./chunks/runtime.js";
3
3
  import { makeDefineCustomElements as t } from "@arcgis/lumina";
4
4
  const i = t(e, {
5
- "arcgis-portal-ai-assistant": [() => import("./components/arcgis-portal-ai-assistant/customElement.js"), "autoDestroyDisabled,config:,defaultClosed,openEntitiesInNewTab,portal:,t9n:,user:"],
5
+ "arcgis-portal-ai-assistant": [() => import("./components/arcgis-portal-ai-assistant/customElement.js"), "autoDestroyDisabled,config:,defaultClosed,portal:,t9n:,user:"],
6
+ "arcgis-portal-ai-assistant-interrupt": [() => import("./components/arcgis-portal-ai-assistant-interrupt/customElement.js"), "_messages:,message,options:,type"],
6
7
  "arcgis-portal-classification-banner": [() => import("./components/arcgis-portal-classification-banner/customElement.js"), "autoDestroyDisabled,messages:,missingExistingClassification,portalItem:,validationErrors,variant;destroy"],
7
8
  "arcgis-portal-classification-config": [() => import("./components/arcgis-portal-classification-config/customElement.js"), "autoDestroyDisabled,messages:,portalItem:,status,valid,values;destroy,resetForm,validateForm"],
8
9
  "arcgis-portal-classification-favorite": [() => import("./components/arcgis-portal-classification-favorite/customElement.js"), "attributeExpressionResults:,classificationValue:,favoriteClassifications:,messages:,portalItem:,resetFavoriteClassification:,selectedFavoriteClassificationName,updateClassificationData:"],
@@ -12,7 +13,7 @@ const i = t(e, {
12
13
  "arcgis-portal-field-delete": [() => import("./components/arcgis-portal-field-delete/customElement.js"), "config:,fieldNames:,layer:,mapView:,messages:,options:"],
13
14
  "arcgis-portal-item-type": [() => import("./components/arcgis-portal-item-type/customElement.js"), "ellipsis,hideIcon,hideText,item:,messages:,portal:,scale,serviceInfo:,showHosted,user:"],
14
15
  "arcgis-portal-mentionable-text-area": [() => import("./components/arcgis-portal-mentionable-text-area/customElement.js"), "disabled,maxLength,placeholder,popoverListLabel,popoverPlacement,portal:,readOnly,rows,scale,starters:,user:,value;closePopover,focusTextArea,selectItem"],
15
- "arcgis-portal-replacement-item-redirect": [() => import("./components/arcgis-portal-replacement-item-redirect/customElement.js"), "itemId,portal:,t9n:,user:;setFocus"],
16
+ "arcgis-portal-replacement-item-redirect": [() => import("./components/arcgis-portal-replacement-item-redirect/customElement.js"), "itemId,messages:,portal:,user:;setFocus"],
16
17
  "arcgis-portal-user-avatar": [() => import("./components/arcgis-portal-user-avatar/customElement.js"), "checkOnline,description,heading,hideAvatar,messages:,portal:,scale,showName,underline,user:,username,wrap"],
17
18
  "arcgis-portal-voice-input": [() => import("./components/arcgis-portal-voice-input/customElement.js"), "language;clearText,startListening,stopListening"]
18
19
  });
@@ -1,5 +1,6 @@
1
1
  /// <reference types="../index.d.ts" />
2
2
  import type { ArcgisPortalAiAssistant } from "../components/arcgis-portal-ai-assistant/customElement.js";
3
+ import type { ArcgisPortalAiAssistantInterrupt } from "../components/arcgis-portal-ai-assistant-interrupt/customElement.js";
3
4
  import type { ArcgisPortalClassificationBanner } from "../components/arcgis-portal-classification-banner/customElement.js";
4
5
  import type { ArcgisPortalClassificationConfig } from "../components/arcgis-portal-classification-config/customElement.js";
5
6
  import type { ArcgisPortalClassificationFavorite } from "../components/arcgis-portal-classification-favorite/customElement.js";
@@ -13,7 +14,13 @@ import type { ArcgisPortalUserAvatar } from "../components/arcgis-portal-user-av
13
14
  import type { ArcgisPortalVoiceInput } from "../components/arcgis-portal-voice-input/customElement.js";
14
15
  import type { h, EventHandler } from "@arcgis/lumina";
15
16
 
16
- interface LuminaArcgisPortalAiAssistant extends Partial<Pick<ArcgisPortalAiAssistant, "autoDestroyDisabled" | "config" | "defaultClosed" | "openEntitiesInNewTab" | "portal" | "user">>, h.JSX.HTMLAttributes<ArcgisPortalAiAssistant> {
17
+ interface LuminaArcgisPortalAiAssistant extends Partial<Pick<ArcgisPortalAiAssistant, "autoDestroyDisabled" | "config" | "defaultClosed" | "portal" | "user">>, h.JSX.HTMLAttributes<ArcgisPortalAiAssistant> {
18
+ onarcgisPortalNavigationRequest?: EventHandler<ArcgisPortalAiAssistant["arcgisPortalNavigationRequest"]>;
19
+ }
20
+
21
+ interface LuminaArcgisPortalAiAssistantInterrupt extends Partial<Pick<ArcgisPortalAiAssistantInterrupt, "message" | "options" | "type">>, h.JSX.HTMLAttributes<ArcgisPortalAiAssistantInterrupt> {
22
+ onarcgisCancel?: EventHandler<ArcgisPortalAiAssistantInterrupt["arcgisCancel"]>;
23
+ onarcgisSubmit?: EventHandler<ArcgisPortalAiAssistantInterrupt["arcgisSubmit"]>;
17
24
  }
18
25
 
19
26
  interface LuminaArcgisPortalClassificationBanner extends Partial<Pick<ArcgisPortalClassificationBanner, "missingExistingClassification" | "portalItem" | "validationErrors" | "variant">>, h.JSX.HTMLAttributes<ArcgisPortalClassificationBanner> {
@@ -73,6 +80,7 @@ declare module "@arcgis/lumina" {
73
80
  export namespace h.JSX {
74
81
  interface IntrinsicElements {
75
82
  "arcgis-portal-ai-assistant": LuminaArcgisPortalAiAssistant;
83
+ "arcgis-portal-ai-assistant-interrupt": LuminaArcgisPortalAiAssistantInterrupt;
76
84
  "arcgis-portal-classification-banner": LuminaArcgisPortalClassificationBanner;
77
85
  "arcgis-portal-classification-config": LuminaArcgisPortalClassificationConfig;
78
86
  "arcgis-portal-classification-favorite": LuminaArcgisPortalClassificationFavorite;
@@ -1,5 +1,6 @@
1
1
  /// <reference types="../index.d.ts" />
2
2
  import type { ArcgisPortalAiAssistant } from "../components/arcgis-portal-ai-assistant/customElement.js";
3
+ import type { ArcgisPortalAiAssistantInterrupt } from "../components/arcgis-portal-ai-assistant-interrupt/customElement.js";
3
4
  import type { ArcgisPortalClassificationBanner } from "../components/arcgis-portal-classification-banner/customElement.js";
4
5
  import type { ArcgisPortalClassificationConfig } from "../components/arcgis-portal-classification-config/customElement.js";
5
6
  import type { ArcgisPortalClassificationFavorite } from "../components/arcgis-portal-classification-favorite/customElement.js";
@@ -14,7 +15,13 @@ import type { ArcgisPortalVoiceInput } from "../components/arcgis-portal-voice-i
14
15
  import { HTMLAttributes } from "preact";
15
16
  import type { EventHandler } from "@arcgis/lumina";
16
17
 
17
- interface PreactArcgisPortalAiAssistant extends Partial<Pick<ArcgisPortalAiAssistant, "autoDestroyDisabled" | "config" | "defaultClosed" | "openEntitiesInNewTab" | "portal" | "user">>, HTMLAttributes<ArcgisPortalAiAssistant> {
18
+ interface PreactArcgisPortalAiAssistant extends Partial<Pick<ArcgisPortalAiAssistant, "autoDestroyDisabled" | "config" | "defaultClosed" | "portal" | "user">>, HTMLAttributes<ArcgisPortalAiAssistant> {
19
+ onarcgisPortalNavigationRequest?: EventHandler<ArcgisPortalAiAssistant["arcgisPortalNavigationRequest"]>;
20
+ }
21
+
22
+ interface PreactArcgisPortalAiAssistantInterrupt extends Partial<Pick<ArcgisPortalAiAssistantInterrupt, "message" | "options" | "type">>, HTMLAttributes<ArcgisPortalAiAssistantInterrupt> {
23
+ onarcgisCancel?: EventHandler<ArcgisPortalAiAssistantInterrupt["arcgisCancel"]>;
24
+ onarcgisSubmit?: EventHandler<ArcgisPortalAiAssistantInterrupt["arcgisSubmit"]>;
18
25
  }
19
26
 
20
27
  interface PreactArcgisPortalClassificationBanner extends Partial<Pick<ArcgisPortalClassificationBanner, "missingExistingClassification" | "portalItem" | "validationErrors" | "variant">>, HTMLAttributes<ArcgisPortalClassificationBanner> {
@@ -74,6 +81,7 @@ declare module 'preact' {
74
81
  namespace createElement.JSX {
75
82
  interface IntrinsicElements {
76
83
  "arcgis-portal-ai-assistant": PreactArcgisPortalAiAssistant;
84
+ "arcgis-portal-ai-assistant-interrupt": PreactArcgisPortalAiAssistantInterrupt;
77
85
  "arcgis-portal-classification-banner": PreactArcgisPortalClassificationBanner;
78
86
  "arcgis-portal-classification-config": PreactArcgisPortalClassificationConfig;
79
87
  "arcgis-portal-classification-favorite": PreactArcgisPortalClassificationFavorite;
@@ -90,6 +98,7 @@ declare module 'preact' {
90
98
  namespace h.JSX {
91
99
  interface IntrinsicElements {
92
100
  "arcgis-portal-ai-assistant": PreactArcgisPortalAiAssistant;
101
+ "arcgis-portal-ai-assistant-interrupt": PreactArcgisPortalAiAssistantInterrupt;
93
102
  "arcgis-portal-classification-banner": PreactArcgisPortalClassificationBanner;
94
103
  "arcgis-portal-classification-config": PreactArcgisPortalClassificationConfig;
95
104
  "arcgis-portal-classification-favorite": PreactArcgisPortalClassificationFavorite;
@@ -1,5 +1,6 @@
1
1
  /// <reference types="../index.d.ts" />
2
2
  import type { ArcgisPortalAiAssistant } from "../components/arcgis-portal-ai-assistant/customElement.js";
3
+ import type { ArcgisPortalAiAssistantInterrupt } from "../components/arcgis-portal-ai-assistant-interrupt/customElement.js";
3
4
  import type { ArcgisPortalClassificationBanner } from "../components/arcgis-portal-classification-banner/customElement.js";
4
5
  import type { ArcgisPortalClassificationConfig } from "../components/arcgis-portal-classification-config/customElement.js";
5
6
  import type { ArcgisPortalClassificationFavorite } from "../components/arcgis-portal-classification-favorite/customElement.js";
@@ -14,7 +15,13 @@ import type { ArcgisPortalVoiceInput } from "../components/arcgis-portal-voice-i
14
15
  import type { HTMLProps } from 'react';
15
16
  import type { EventHandler } from "@arcgis/lumina";
16
17
 
17
- interface ReactArcgisPortalAiAssistant extends Partial<Pick<ArcgisPortalAiAssistant, "autoDestroyDisabled" | "config" | "defaultClosed" | "openEntitiesInNewTab" | "portal" | "user">>, HTMLProps<ArcgisPortalAiAssistant> {
18
+ interface ReactArcgisPortalAiAssistant extends Partial<Pick<ArcgisPortalAiAssistant, "autoDestroyDisabled" | "config" | "defaultClosed" | "portal" | "user">>, HTMLProps<ArcgisPortalAiAssistant> {
19
+ onarcgisPortalNavigationRequest?: EventHandler<ArcgisPortalAiAssistant["arcgisPortalNavigationRequest"]>;
20
+ }
21
+
22
+ interface ReactArcgisPortalAiAssistantInterrupt extends Partial<Pick<ArcgisPortalAiAssistantInterrupt, "message" | "options" | "type">>, HTMLProps<ArcgisPortalAiAssistantInterrupt> {
23
+ onarcgisCancel?: EventHandler<ArcgisPortalAiAssistantInterrupt["arcgisCancel"]>;
24
+ onarcgisSubmit?: EventHandler<ArcgisPortalAiAssistantInterrupt["arcgisSubmit"]>;
18
25
  }
19
26
 
20
27
  interface ReactArcgisPortalClassificationBanner extends Partial<Pick<ArcgisPortalClassificationBanner, "missingExistingClassification" | "portalItem" | "validationErrors" | "variant">>, HTMLProps<ArcgisPortalClassificationBanner> {
@@ -74,6 +81,7 @@ declare module "react" {
74
81
  namespace JSX {
75
82
  interface IntrinsicElements {
76
83
  "arcgis-portal-ai-assistant": ReactArcgisPortalAiAssistant;
84
+ "arcgis-portal-ai-assistant-interrupt": ReactArcgisPortalAiAssistantInterrupt;
77
85
  "arcgis-portal-classification-banner": ReactArcgisPortalClassificationBanner;
78
86
  "arcgis-portal-classification-config": ReactArcgisPortalClassificationConfig;
79
87
  "arcgis-portal-classification-favorite": ReactArcgisPortalClassificationFavorite;
@@ -92,6 +100,7 @@ declare module "react/jsx-runtime" {
92
100
  namespace JSX {
93
101
  interface IntrinsicElements {
94
102
  "arcgis-portal-ai-assistant": ReactArcgisPortalAiAssistant;
103
+ "arcgis-portal-ai-assistant-interrupt": ReactArcgisPortalAiAssistantInterrupt;
95
104
  "arcgis-portal-classification-banner": ReactArcgisPortalClassificationBanner;
96
105
  "arcgis-portal-classification-config": ReactArcgisPortalClassificationConfig;
97
106
  "arcgis-portal-classification-favorite": ReactArcgisPortalClassificationFavorite;
@@ -110,6 +119,7 @@ declare module "react/jsx-dev-runtime" {
110
119
  namespace JSX {
111
120
  interface IntrinsicElements {
112
121
  "arcgis-portal-ai-assistant": ReactArcgisPortalAiAssistant;
122
+ "arcgis-portal-ai-assistant-interrupt": ReactArcgisPortalAiAssistantInterrupt;
113
123
  "arcgis-portal-classification-banner": ReactArcgisPortalClassificationBanner;
114
124
  "arcgis-portal-classification-config": ReactArcgisPortalClassificationConfig;
115
125
  "arcgis-portal-classification-favorite": ReactArcgisPortalClassificationFavorite;
@@ -1,5 +1,6 @@
1
1
  /// <reference types="../index.d.ts" />
2
2
  import type { ArcgisPortalAiAssistant } from "../components/arcgis-portal-ai-assistant/customElement.js";
3
+ import type { ArcgisPortalAiAssistantInterrupt } from "../components/arcgis-portal-ai-assistant-interrupt/customElement.js";
3
4
  import type { ArcgisPortalClassificationBanner } from "../components/arcgis-portal-classification-banner/customElement.js";
4
5
  import type { ArcgisPortalClassificationConfig } from "../components/arcgis-portal-classification-config/customElement.js";
5
6
  import type { ArcgisPortalClassificationFavorite } from "../components/arcgis-portal-classification-favorite/customElement.js";
@@ -14,7 +15,13 @@ import type { ArcgisPortalVoiceInput } from "../components/arcgis-portal-voice-i
14
15
  import { JSXBase as StencilJsx } from "@stencil/core/internal";
15
16
  import type { EventHandler } from "@arcgis/lumina";
16
17
 
17
- interface StencilArcgisPortalAiAssistant extends Partial<Pick<ArcgisPortalAiAssistant, "autoDestroyDisabled" | "config" | "defaultClosed" | "openEntitiesInNewTab" | "portal" | "user">>, StencilJsx.HTMLAttributes<ArcgisPortalAiAssistant> {
18
+ interface StencilArcgisPortalAiAssistant extends Partial<Pick<ArcgisPortalAiAssistant, "autoDestroyDisabled" | "config" | "defaultClosed" | "portal" | "user">>, StencilJsx.HTMLAttributes<ArcgisPortalAiAssistant> {
19
+ onArcgisPortalNavigationRequest?: EventHandler<ArcgisPortalAiAssistant["arcgisPortalNavigationRequest"]>;
20
+ }
21
+
22
+ interface StencilArcgisPortalAiAssistantInterrupt extends Partial<Pick<ArcgisPortalAiAssistantInterrupt, "message" | "options" | "type">>, StencilJsx.HTMLAttributes<ArcgisPortalAiAssistantInterrupt> {
23
+ onArcgisCancel?: EventHandler<ArcgisPortalAiAssistantInterrupt["arcgisCancel"]>;
24
+ onArcgisSubmit?: EventHandler<ArcgisPortalAiAssistantInterrupt["arcgisSubmit"]>;
18
25
  }
19
26
 
20
27
  interface StencilArcgisPortalClassificationBanner extends Partial<Pick<ArcgisPortalClassificationBanner, "missingExistingClassification" | "portalItem" | "validationErrors" | "variant">>, StencilJsx.HTMLAttributes<ArcgisPortalClassificationBanner> {
@@ -72,6 +79,7 @@ interface StencilArcgisPortalVoiceInput extends Partial<Pick<ArcgisPortalVoiceIn
72
79
 
73
80
  interface ExposedElements {
74
81
  "arcgis-portal-ai-assistant": StencilArcgisPortalAiAssistant;
82
+ "arcgis-portal-ai-assistant-interrupt": StencilArcgisPortalAiAssistantInterrupt;
75
83
  "arcgis-portal-classification-banner": StencilArcgisPortalClassificationBanner;
76
84
  "arcgis-portal-classification-config": StencilArcgisPortalClassificationConfig;
77
85
  "arcgis-portal-classification-favorite": StencilArcgisPortalClassificationFavorite;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcgis/portal-components",
3
- "version": "5.1.0-next.98",
3
+ "version": "5.1.0",
4
4
  "description": "ArcGIS Portal Components",
5
5
  "keywords": [
6
6
  "ArcGIS",
@@ -15,9 +15,9 @@
15
15
  ],
16
16
  "homepage": "https://developers.arcgis.com/javascript/latest/",
17
17
  "type": "module",
18
- "main": "dist/index.js",
19
- "module": "dist/index.js",
20
- "types": "dist/index.d.ts",
18
+ "main": "./dist/index.js",
19
+ "module": "./dist/index.js",
20
+ "types": "./dist/index.d.ts",
21
21
  "exports": {
22
22
  ".": "./dist/index.js",
23
23
  "./loader": "./dist/loader.js",
@@ -38,20 +38,22 @@
38
38
  ],
39
39
  "license": "SEE LICENSE IN LICENSE.md",
40
40
  "dependencies": {
41
+ "@esri/arcgis-html-sanitizer": "~4.1.0",
41
42
  "@langchain/core": "^1.1.39",
42
43
  "@langchain/langgraph": "^1.2.6",
43
44
  "@lit/task": "^1.0.3",
45
+ "langchain": "^1.3.1",
44
46
  "lit": "^3.3.0",
47
+ "marked": "~18.0.5",
45
48
  "tslib": "^2.8.1",
46
49
  "zod": "^4.3.6",
47
- "@arcgis/ai-components": "5.1.0-next.98",
48
- "@arcgis/ai-orchestrator": "5.1.0-next.98",
49
- "@arcgis/lumina": "5.1.0-next.98",
50
- "@arcgis/toolkit": "5.1.0-next.98"
50
+ "@arcgis/ai-components": "5.1.0",
51
+ "@arcgis/lumina": "5.1.0",
52
+ "@arcgis/toolkit": "5.1.0"
51
53
  },
52
54
  "peerDependencies": {
53
- "@arcgis/core": "^5.1.0-next",
54
- "@esri/calcite-components": "^5.1.0-next.45"
55
+ "@arcgis/core": "^5.1.0",
56
+ "@esri/calcite-components": "^5.1.1"
55
57
  },
56
58
  "css.customData": [
57
59
  "dist/docs/vscode.css-custom-data.json"
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import a from"./3OTUKLZI.js";import{a as w,b as x}from"./S2PHM4WZ.js";import{a as f}from"./V5ZWDMLE.js";import"./32DRTMS4.js";import{I as g,J as o,O as v,h as d,j as n}from"./NJMHL2Y7.js";import"./CFDTXKJ6.js";export default $arcgis.t(([{b:b}])=>{function A(s,r){let{fullName:e,firstName:a,lastName:t,username:i}=s;return e||(a&&t?r==="ja"?`${t} ${a}`:`${a} ${t}`:i)}var j=d`:host{max-width:100%;display:flex;align-items:center;min-width:0}.skeleton{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite;display:flex;align-items:center}.skeleton-avatar{border-radius:100%;background-color:var(--calcite-color-foreground-3);width:var(--arcgis-portal-user-avatar-size);height:var(--arcgis-portal-user-avatar-size)}.skeleton-name{background-color:var(--calcite-color-foreground-3);border-radius:var(--calcite-border-radius);width:var(--arcgis-portal-user-avatar-skeleton-width);border-radius:var(--arcgis-portal-user-avatar-spacing);height:var(--arcgis-portal-user-avatar-spacing);margin-inline-start:var(--arcgis-portal-user-avatar-spacing)}@keyframes pulse{0%,to{opacity:1}50%{opacity:.5}}.avatar{display:block;flex-grow:0;flex-shrink:0;border-radius:100%;background-color:var(--calcite-color-foreground-3);width:var(--arcgis-portal-user-avatar-size);height:var(--arcgis-portal-user-avatar-size)}.text{color:var(--calcite-color-text-2);display:flex;flex-direction:column;justify-content:center;min-width:0;text-align:start;margin-inline-start:var(--arcgis-portal-user-avatar-spacing);line-height:calc(var(--arcgis-portal-user-avatar-size) / 2)}.text--no-avatar{margin-inline-start:0}.-text-underline .title{text-decoration:underline}.text--clamp{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.text--ellipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.has-description{font-weight:500}.description{font-weight:400;color:var(--calcite-color-text-2)}:host([scale="xs"]){font-size:.75rem;--arcgis-portal-user-avatar-size: 18px;--arcgis-portal-user-avatar-spacing: .25rem ;.description{font-size:.625rem;margin-top:-.125rem}.text{line-height:1.35}}:host([scale="s"]){font-size:.75rem;--arcgis-portal-user-avatar-size: 1.5rem ;--arcgis-portal-user-avatar-spacing: .5rem ;--arcgis-portal-user-avatar-skeleton-width: 4rem ;.description{font-size:.625rem}}:host([scale="m"]){font-size:.875rem;--arcgis-portal-user-avatar-size: 2rem ;--arcgis-portal-user-avatar-spacing: .75rem ;--arcgis-portal-user-avatar-skeleton-width: 5rem ;.description{font-size:.75rem}}:host([scale="l"]){font-size:1rem;--arcgis-portal-user-avatar-size: 2.5rem ;--arcgis-portal-user-avatar-spacing: 1rem ;--arcgis-portal-user-avatar-skeleton-width: 6rem ;.description{font-size:.875rem}}`,O=s=>s.thumbnailUrl!==void 0;function c(s,r,e=!1){if(O(s))return s.thumbnailUrl;let a=s.thumbnail;if(!a)return null;if(a.startsWith("http"))return a;let t=x(r);return`${e?"https://www.arcgis.com/sharing/rest/":w(r)}community/users/${s.username}/info/${a}${t&&!e?`?token=${t}`:""}`}var u=class extends g{constructor(){super(...arguments),this.messages=f({name:null}),this.thumbnailUrl=null,this.scale="m",this.hideAvatar=!1}static{this.properties={user:0,portal:0,scale:3,showName:5,hideAvatar:5,heading:1,description:1,underline:5,username:1,wrap:5,checkOnline:5}}static{this.styles=j}async load(){let{username:r,checkOnline:e,portal:a,user:t}=this;if(r&&a){let i=await b(r,a,e);this.user=i,this.thumbnailUrl=c(i,a,e)}else t&&a&&(this.thumbnailUrl=c(t,a,e))}updated(r){let e=r.get("user");e&&this.portal&&(this.thumbnailUrl=c(e,this.portal,this.checkOnline))}renderSkeleton(){return n`<div class="skeleton">${!this.hideAvatar&&n`<div class="skeleton-avatar"></div>`||""}${this.showName&&n`<div class="skeleton-name"></div>`||""}</div>`}renderUser(){let{user:r,messages:e,thumbnailUrl:a,hideAvatar:t,showName:i,description:p,scale:m,underline:k,heading:$}=this;if(!r)return[];let{fullName:z,username:y,id:U}=r,l=!!p,N=(z?.split(" ")||[]).slice(0,2).join(" "),h=this.wrap?"text--clamp":"text--ellipsis";return[!t&&n`<calcite-avatar class="avatar" .scale=${m==="xs"?"s":m} .fullName=${N} .username=${y} .userId=${U} .thumbnail=${a||void 0} .inert=${i||l?!0:void 0}></calcite-avatar>`||"",(i||l)&&n`<span class=${o({text:!0,"text--underline":k,"text--no-avatar":t})}>${i&&n`<span class=${o({title:!0,"has-description":l,[h]:!0})}>${$||A(r,e._lang)}</span>`||""}${l&&n`<span class=${o({description:!0,[h]:!0})}>${p}</span>`||""}</span>`||""]}render(){return this.user&&this.messages._lang?this.renderUser():this.renderSkeleton()}};v("arcgis-portal-user-avatar",u);return u},a)
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{a as m}from"./JOYFDD4B.js";import{a as h}from"./V5ZWDMLE.js";import"./32DRTMS4.js";import{I as b,L as a,O as d,h as c,j as i,u}from"./NJMHL2Y7.js";import"./CFDTXKJ6.js";var g=c`.spacing-y{margin:var(--calcite-spacing-md) 0}.portal-classification-form-element-tooltip{display:flex;justify-content:space-between;align-items:center}`;function s(o,e){return o.uiElement===e}var n=class extends b{constructor(){super(...arguments),this.messages=h(),this.isRequiredErrors=new Set,this.arcgisAttributeValueChange=u()}static{this.properties={validationMsg:16,attributeKey:1,attribute:0,value:0,renderingInfo:0,isRequiredErrors:0}}static{this.styles=g}willUpdate(e){(e.has("renderingInfo")||e.has("isRequiredErrors"))&&(this.validationMsg=this._getValidationMessage())}_getValidationMessage(){if(this.renderingInfo?.attributeValidationResult)return this.renderingInfo.attributeValidationResult;if(this.isRequiredErrors.has(this.attributeKey))return this.messages.requiredfield??"This is a required field."}renderCheckbox(){return s(this.attribute,"checkbox")?i`<calcite-label class="spacing-y" .for=${this.attributeKey} layout=inline><calcite-checkbox .checked=${this.value} id=${this.attributeKey??a} @calciteCheckboxChange=${e=>this.arcgisAttributeValueChange.emit({[this.attributeKey]:e.target.checked})} .required=${this.attribute.isRequired??!1} .status=${this.validationMsg?"invalid":"valid"}></calcite-checkbox>${this.attribute.label}</calcite-label>`:null}renderDateInput(){return s(this.attribute,"date")?i`<calcite-label .for=${this.attributeKey}>${this.attribute.label}<calcite-input-date-picker id=${this.attributeKey??a} .name=${this.attribute.label} @calciteInputDatePickerChange=${e=>this.isConnected&&this.arcgisAttributeValueChange.emit({[this.attributeKey]:e.target.value})} overlay-positioning=fixed .required=${this.attribute.isRequired} .status=${this.validationMsg?"invalid":"valid"} validation-icon=exclamation-mark-triangle .validationMessage=${this.validationMsg} .value=${this.value}></calcite-input-date-picker></calcite-label>`:null}renderTextInput(){if(!s(this.attribute,"text"))return null;let e=this.attribute.label,t=this.attribute.description;return i`<calcite-label .for=${this.attributeKey}><div class="portal-classification-form-element-tooltip">${e}${this.attribute.labelTooltip&&i`<div><calcite-icon scale=s icon=information .id=${`tooltip-button-${this.attribute.bannerLabel}`} text-label=${this.messages.information??"Information"??a}></calcite-icon><calcite-tooltip .referenceElement=${`tooltip-button-${this.attribute.bannerLabel}`} placement=right>${this.attribute.labelTooltip}</calcite-tooltip></div>`||""}</div><calcite-input-text id=${this.attributeKey??a} .label=${e} .name=${this.attributeKey} @calciteInputTextChange=${r=>this.arcgisAttributeValueChange.emit({[this.attributeKey]:r.target.value})} .placeholder=${t} .required=${this.attribute.isRequired} .status=${this.validationMsg?"invalid":"valid"} validation-icon=exclamation-mark-triangle .validationMessage=${this.validationMsg} .value=${this.value}></calcite-input-text></calcite-label>`}renderSingleSelect(){return s(this.attribute,"single-select")?i`<calcite-label .for=${this.attributeKey}>${this.attribute.label}<calcite-combobox selection-mode=single id=${this.attributeKey??a} .label=${this.attribute.label} .name=${this.attributeKey} @calciteComboboxChange=${e=>this.arcgisAttributeValueChange.emit({[this.attributeKey]:e.target.value})} .placeholder=${this.attribute.description??this.messages.selectanoption} .required=${this.attribute.isRequired} .status=${this.validationMsg?"invalid":"valid"} overlay-positioning=fixed validation-icon=exclamation-mark-triangle .validationMessage=${this.validationMsg} .value=${this.value} data-testid=${`single-select-${this.attributeKey}`}>${this._renderSingleSelectComboboxOptions()}</calcite-combobox></calcite-label>`:null}_renderSingleSelectComboboxOptions(){if(!Array.isArray(this.renderingInfo?.valueExpressionResult))return;let e=this.value;return m(this.renderingInfo?.valueExpressionResult,t=>t.label,t=>i`<calcite-combobox-item .selected=${e===t.value} .heading=${t.label} .value=${t.value} data-testid=${`single-combobox-item-${t.value}`}></calcite-combobox-item>`)}_renderComboboxOptions(){if(!Array.isArray(this.renderingInfo?.valueExpressionResult))return;let e=this.value;return this.renderingInfo?.valueExpressionResult.map(t=>i`<calcite-combobox-item .selected=${e?.includes(t.value)} .heading=${t.label} .value=${t.value} data-testid=${`combobox-item-${t.value}`}></calcite-combobox-item>`)}renderMultiSelect(){return s(this.attribute,"multi-select")?i`<calcite-label .for=${this.attributeKey}>${this.attribute.label}<calcite-combobox id=${this.attributeKey??a} .label=${this.attribute.label} .name=${this.attributeKey} @calciteComboboxChange=${e=>{let t=e.target.value;this.arcgisAttributeValueChange.emit({[this.attributeKey]:t?Array.isArray(t)?t:[t]:void 0})}} .placeholder=${this.attribute.description??this.messages.selectoptions} .required=${this.attribute.isRequired} .status=${this.validationMsg?"invalid":"valid"} validation-icon=exclamation-mark-triangle .validationMessage=${this.validationMsg} .value=${this.value}>${this._renderComboboxOptions()}</calcite-combobox></calcite-label>`:null}_renderGroupedComboboxOptions(){if(!this.renderingInfo?.valueExpressionResult||Array.isArray(this.renderingInfo?.valueExpressionResult))return;let e=this.value;return Object.entries(this.renderingInfo?.valueExpressionResult).map(([t,r])=>i`<calcite-combobox-item .selected=${e?.includes(t)} .heading=${t} .value=${t}>${r.map(l=>i`<calcite-combobox-item .selected=${e?.includes(l.value)} .heading=${l.label} .value=${l.value} data-testid=${`grouped-combobox-item-${l.value}`}></calcite-combobox-item>`)}</calcite-combobox-item>`)}renderMultiGroupedSelectNested(){return s(this.attribute,"multi-grouped-select-nested")?i`<calcite-label .for=${this.attributeKey}>${this.attribute.label}<calcite-combobox id=${this.attributeKey??a} .label=${this.attribute.label} .name=${this.attributeKey} @calciteComboboxChange=${e=>{let t=e.target.value;this.arcgisAttributeValueChange.emit({[this.attributeKey]:t?Array.isArray(t)?t:[t]:void 0})}} .placeholder=${this.attribute.description??this.messages.selectoptions} .required=${this.attribute.isRequired} .status=${this.validationMsg?"invalid":"valid"} validation-icon=exclamation-mark-triangle .validationMessage=${this.validationMsg} .value=${this.value}>${this._renderGroupedComboboxOptions()}</calcite-combobox></calcite-label>`:null}render(){switch(this.attribute.uiElement){case"checkbox":return this.renderCheckbox();case"date":return this.renderDateInput();case"multi-select":return this.renderMultiSelect();case"multi-grouped-select-nested":return this.renderMultiGroupedSelectNested();case"single-select":return this.renderSingleSelect();case"text":return this.renderTextInput();default:return i`<div>Not Implemented Yet.</div>`}}};d("arcgis-portal-classification-form-element",n);export{n as ArcgisPortalClassificationFormElement};
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- export default $arcgis.t(([s])=>{var c=async(r,e,t)=>{try{return{result:await r.queryItems({...t,query:`title:${e}`})}}catch(o){return console.error(o),{error:{code:"unhandledError"}}}},u=async(r,e,t)=>{let o=`${e.restUrl}/content/users/${r.id}/items/${t}/generateContext`;try{return{result:(await s(o,{method:"post",responseType:"json",query:{f:"json"}})).data}}catch(n){return console.error("Error fetching item context:",n),{error:{code:"unhandledError"}}}};return{a:c,b:u}},"request")
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import b from"./OGQ2PD7M.js";import a from"./PBZ25RYU.js";import"./5WK4GJK2.js";import{a as f}from"./V5ZWDMLE.js";import"./32DRTMS4.js";import{I as n,K as c,O as l,h as e,j as s,o}from"./NJMHL2Y7.js";import"./CFDTXKJ6.js";export default $arcgis.t(([,{a:d,b:h}])=>{var p=e`.banner{box-sizing:border-box;width:100%;left:0;text-align:center;font-family:var(--calcite-font-family);background-color:#fff;color:#000;padding:var(--calcite-spacing-sm);font-size:var(--calcite-font-size);text-transform:uppercase;overflow-wrap:break-word}.invalid-container{background-color:#fff;color:#000;display:flex;align-items:center;justify-content:center;gap:8px}.invalid-icon{--calcite-icon-color: var(--calcite-color-status-danger)}.invalid-message{text-align:center;font-family:var(--calcite-font-family);background-color:#fff;color:#000;padding:var(--calcite-spacing-sm);font-size:var(--calcite-font-size);overflow-wrap:break-word}`,r=class extends n{constructor(){super(...arguments),this.classificationModel=d(this),this.messages=f(),this._classificationDataTask=h(this),this.portalClassificationSchema=this.classificationModel.portalClassificationSchema,this.status=this.classificationModel.status,this.missingExistingClassification=!1,this.variant="full",this.autoDestroyDisabled=!1,this.validationErrors=""}static{this.properties={portalClassificationSchema:16,status:16,itemClassification:16,portalItem:0,missingExistingClassification:5,variant:1,autoDestroyDisabled:5,validationErrors:1}}static{this.styles=p}async destroy(){await this.manager.destroy()}willUpdate(a){if(a.has("portalItem")){let{portalItem:i}=this;i?.load().then(()=>{i?.id&&i?.loaded&&i?.classification&&!this.missingExistingClassification?this.classificationModel.validateClassification(this.variant==="preview"?null:i.id,i.classification,i?.portal.restUrl).catch(o(this)).then(t=>{this.validationErrors=t??""}):this.validationErrors=""}).catch(o(this))}}getStyle(){let a={};if(this.variant==="preview"&&(a.fontSize="var(--calcite-font-size-sm)",a.padding="var(--calcite-spacing-xs)"),this.itemClassification&&this.portalClassificationSchema){let i=this.itemClassification.classification,t=this.portalClassificationSchema.classificationMetadata.classificationValueProperties.find(({value:m})=>m===i);t?.backgroundColor&&(a.backgroundColor=t.backgroundColor),t?.textColor&&(a.color=t.textColor)}return a}render(){return this._classificationDataTask.render({pending:void 0,error:void 0,complete:()=>this.portalClassificationSchema&&this.portalItem?.portal.authMode!=="anonymous"?this.validationErrors&&this.variant==="full"?s`<div class="invalid-container"><calcite-icon class="invalid-icon" scale=s icon=exclamation-mark-triangle .textLabel=${this.messages.invalidclassificationerror}></calcite-icon><span class="invalid-message">${this.messages.invalidclassificationerror}</span></div>`:s`<div class="banner" style=${c(this.getStyle())}>${this.itemClassification?.banner??this.messages.notyetclassified??"Not yet classified"}</div>`:""})}};l("arcgis-portal-classification-banner",r);return r},a,b)
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import b from"./3OTUKLZI.js";import"./S2PHM4WZ.js";import a from"./AMCZ4UZQ.js";import{c as R}from"./32DRTMS4.js";import{A as S,D as E,G as P,H as g,I as D,J as v,O as L,h as k,j as d,l as A,u,z as M}from"./NJMHL2Y7.js";import"./CFDTXKJ6.js";export default $arcgis.t(([{a:O},{a:x,c:U}])=>{var _=(a,e=100)=>{let s;return(...n)=>{let r=()=>{clearTimeout(s),a(...n)};clearTimeout(s),s=setTimeout(r,e)}};var F=M(class extends S{constructor(){super(...arguments),this.key=A}render(a,e){return this.key=a,e}update(a,[e,s]){return e!==this.key&&(E(a),this.key=e),s}});var $=["@","#","$"],K=400;function V(a,e){let s=null;for(let n of e){let r=n.replace(/[.*+?^${}()|[\]\\]/gu,"\\$&"),i=new RegExp(`${r}"([^"\\n]*)"?$`,"u"),t=a.match(i);if(t){let c=t[0],l=a.length-c.length,h=t[1]??"";(!s||l>s.startIndex)&&(s={starter:n,mentionText:c,query:h,startIndex:l})}let o=new RegExp(`${r}[\\p{L}\\p{N}_-]+$`,"u"),m=a.match(o);if(m){let c=m[0],l=a.length-c.length,h=c.slice(n.length);(!s||l>s.startIndex)&&(s={starter:n,mentionText:c,query:h,startIndex:l})}}return s}async function Q(a,e={}){return await a.queryGroups(e)}var q=a=>$.includes(a)?a:"@",G=R(a=>{let e=[],s=async i=>await x({requester:async()=>await O(a.portal,i,{num:3}),key:"items",id:i}),n=async i=>await x({requester:async()=>await Q(a.portal,{query:`title:${i}`,num:3}),key:"groups",id:i}),r=_(async(i,t)=>{a.isFetchingEntities=!0;let o=i.toLowerCase();switch(q(t)){case"@":let m=10;a.filteredItemsInfo={type:"user",items:e.filter(h=>h.username?.toLowerCase().includes(o)||h.fullName?.toLowerCase().includes(o)).slice(0,m)};break;case"#":let{result:c}=await s(o);a.filteredItemsInfo={type:"item",items:c?.results??[]};break;case"$":let{results:l}=await n(o);a.filteredItemsInfo={type:"group",items:l};break}(a.filteredItemsInfo?.items?.length??0)===0&&await a.closePopover(),a.isFetchingEntities=!1},K);return{fetchUsers:async()=>{try{let{users:i}=await U(a.portal);e=i??[]}catch(i){e=[],console.error("error fetching org users:",i)}},filterItems:r,getItemText:(i,t)=>{let o="";switch(q(t)){case"@":o=i.username;break;case"#":o=i.title??"";break;case"$":o=i.title??"";break}return o.trim()}}}),y=({id:a,label:e,selected:s,description:n,contentStart:r,onSelect:i})=>F(a,d`<calcite-list-item class=${v({selected:s})} .label=${e} .description=${n} .selected=${s} @pointerdown=${async t=>{t.preventDefault(),t.stopPropagation(),await i()}} ${g(t=>{s&&t&&t.scrollIntoView({block:"nearest",behavior:"smooth"})})}>${r}</calcite-list-item>`),j=k`.selected{--calcite-list-background-color: var(--calcite-color-foreground-2)}.mentionable-list{max-height:13rem;overflow-y:auto;padding:.25rem;width:min(100vw,24rem)}.mentionable-list--loading{min-height:10rem}`,w=class extends D{constructor(){super(...arguments),this.calciteTextAreaRef=P(),this.mentionableEntityController=G(this),this.handleInput=e=>{let{bubbleNewValueChange:s,checkForMention:n}=this,r=e.target.value;this._value=r,s(this._value);let i=this.nativeTextAreaRef?.selectionStart??0;n(r,i)},this.handleKeyDown=e=>{if(!this.popoverOpen){this.arcgisUserMentionableTextAreaKeyDown.emit(e),this.arcgisMentionableTextAreaKeyDown.emit(e);return}switch(e.key){case"ArrowDown":e.preventDefault(),this.selectedItemIndex=Math.min(this.selectedItemIndex+1,this.filteredItems.length-1);break;case"ArrowUp":e.preventDefault(),this.selectedItemIndex=Math.max(this.selectedItemIndex-1,0);break;case"Enter":e.preventDefault(),this.selectItem(this.filteredItems[this.selectedItemIndex]);break;case"Escape":e.preventDefault(),this.closePopover.bind(this)();break}},this.handleClosePopover=()=>{this.popoverOpen=!1,this.currentMentionQuery="",this.selectedItemIndex=0,this.currentStarter=null},this.bubbleNewValueChange=e=>{this.arcgisUserMentionableTextAreaChange.emit(e),this.arcgisMentionableTextAreaChange.emit(e)},this.checkForMention=(e,s)=>{let n=e.substring(0,s),r=V(n,this.starters??$);if(r){let{starter:i}=r;this.currentStarter=i,this.filterMentionItems(r),this.popoverOpen=!0;return}this.handleClosePopover()},this.filterMentionItems=e=>{let{mentionText:s,query:n,starter:r,startIndex:i}=e;this.currentMentionQuery=s,this.mentionStartPosition=i;let t=n.toLowerCase();this.mentionableEntityController.filterItems(t,r),this.selectedItemIndex=0},this.popoverOpen=!1,this.currentMentionQuery="",this.mentionStartPosition=0,this.selectedItemIndex=0,this.currentStarter=null,this._value="",this.filteredItemsInfo=null,this.isFetchingEntities=!1,this.popoverPlacement="bottom-start",this.disabled=!1,this.scale="m",this.rows=3,this.starters=$,this.readOnly=!1,this.arcgisMentionableSelectedIndexChange=u(),this.arcgisMentionableTextAreaChange=u(),this.arcgisMentionableTextAreaKeyDown=u(),this.arcgisUserMentionableTextAreaChange=u(),this.arcgisUserMentionableTextAreaKeyDown=u(),this.renderItemInfo=()=>{let{filteredItemsInfo:e,selectedItemIndex:s,portal:n}=this;if(!e)return null;let{items:r,type:i}=e;switch(i){case"user":return r.map((t,o)=>y({id:t.id,label:`@${t.username}`,description:t.fullName,selected:o===s,contentStart:d`<arcgis-portal-user-avatar slot=content-start .user=${t} .portal=${n} scale=m></arcgis-portal-user-avatar>`,onSelect:async()=>await this.selectItem(t)}));case"item":return r.map((t,o)=>y({id:t.id??`item-${o}`,label:`#${t.title}`,description:t.id??void 0,selected:o===s,onSelect:async()=>await this.selectItem(t),contentStart:d`<calcite-avatar slot=content-start .fullName=${t.title??void 0} .thumbnail=${t.thumbnailUrl??void 0} scale=m></calcite-avatar>`}));case"group":return r.map((t,o)=>y({id:t.id??`group-${o}`,label:`${t.title}`,description:t.id??void 0,selected:o===s,onSelect:async()=>await this.selectItem(t),contentStart:d`<calcite-avatar slot=content-start .fullName=${t.title??void 0} .thumbnail=${t.thumbnailUrl??void 0} scale=m></calcite-avatar>`}))}}}static{this.properties={popoverOpen:16,currentMentionQuery:16,mentionStartPosition:16,selectedItemIndex:16,currentStarter:16,_value:16,filteredItemsInfo:16,isFetchingEntities:16,popoverListLabel:1,popoverPlacement:1,disabled:5,portal:0,user:0,scale:1,value:1,maxLength:9,rows:9,starters:0,placeholder:1,readOnly:5}}static{this.styles=j}get filteredItems(){return this.filteredItemsInfo?.items??[]}async closePopover(){this.handleClosePopover()}async focusTextArea(){await this.calciteTextAreaRef.value?.setFocus()}async selectItem(e){let{currentStarter:s,_value:n,mentionStartPosition:r,currentMentionQuery:i,handleClosePopover:t,calciteTextAreaRef:o,nativeTextAreaRef:m,bubbleNewValueChange:c}=this;if(!e||!s)return;let l=this.mentionableEntityController.getItemText(e,s).replaceAll('"',"").trim(),h=/\s/u.test(l)?`${s}"${l}"`:`${s}${l}`,f=(n??"").substring(0,r),p=(n??"").substring(r+i.length),I=`${f}${h} ${p}`;this._value=I,c(this._value);let b=r+h.length+1;t(),await this.updateComplete,o.value?.setFocus(),m&&(m.selectionEnd=b)}willUpdate(e){e.has("value")&&(this._value=this.value??""),e.has("selectedItemIndex")&&this.arcgisMentionableSelectedIndexChange.emit(this.selectedItemIndex)}loaded(){this.updateComplete.then(()=>{let e=this.calciteTextAreaRef.value?.shadowRoot?.querySelector("textarea");e&&(this.nativeTextAreaRef=e)}),this.mentionableEntityController.fetchUsers()}render(){let{popoverPlacement:e,scale:s,_value:n,maxLength:r,rows:i,placeholder:t,readOnly:o,popoverOpen:m,closePopover:c,handleInput:l,handleKeyDown:h,disabled:f,isFetchingEntities:p,filteredItemsInfo:I,renderItemInfo:b,popoverListLabel:T}=this,C=this.calciteTextAreaRef.value,N=I?.items??[];return d`<calcite-text-area .placeholder=${t} .value=${n} .maxLength=${r} .rows=${i} .scale=${s} .readOnly=${o} .disabled=${f} @blur=${c} @calciteTextAreaInput=${l} @keydown=${h} ${g(this.calciteTextAreaRef)}></calcite-text-area>${C&&d`<calcite-popover .open=${m} .placement=${e} class="mention-popover" .label=${T} .referenceElement=${C} trigger-disabled pointer-disabled focus-trap-disabled><div class=${v({"mentionable-list":!0,"mentionable-list--loading":p})}>${p&&d`<calcite-scrim .loading=${p}></calcite-scrim>`||""}${N.length>0&&d`<calcite-list .label=${T}>${b()}</calcite-list>`||""}</div></calcite-popover>`||""}`}};L("arcgis-portal-mentionable-text-area",w);return w},a,b)
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{$a as da,A,Aa as G,B,Ba as H,Ca as I,Da as J,Ea as K,Fa as L,Ga as M,Ha as N,Ia as O,Ja as P,Ka as Q,La as R,Ma as S,Na as T,Oa as U,Pa as V,Qa as W,Ra as X,Sa as Y,Ta as Z,Ua as _,Va as $,Wa as aa,Za as ba,_a as ca,a,ab as ea,b,bb as fa,c,cb as ga,d,db as ha,e,eb as ia,f,fb as ja,g,gb as ka,h,hb as la,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,wa as C,x,xa as D,y,ya as E,z,za as F}from"./LCWXNCUX.js";import"./CFDTXKJ6.js";export{L as Annotation,H as AsyncBatchedStore,J as BaseChannel,E as BaseCheckpointSaver,k as BaseLangGraphError,G as BaseStore,K as BinaryOperatorAggregate,d as COMMAND_SYMBOL,i as Command,e as CommandInstance,ca as CompiledStateGraph,b as END,v as EmptyChannelError,u as EmptyInputError,R as Graph,l as GraphBubbleUp,o as GraphInterrupt,m as GraphRecursionError,n as GraphValueError,c as INTERRUPT,I as InMemoryStore,w as InvalidUpdateError,F as MemorySaver,da as MessageGraph,ia as MessagesAnnotation,aa as MessagesValue,ja as MessagesZodMeta,ka as MessagesZodState,x as MultipleSubgraphsError,p as NodeInterrupt,g as Overwrite,q as ParentCommand,_ as REMOVE_ALL_MESSAGES,X as ReducedValue,z as RemoteException,a as START,f as Send,ba as StateGraph,A as StateGraphInputError,Z as StateSchema,y as UnreachableNodeError,Y as UntrackedValue,W as UntrackedValueChannel,$ as addMessages,D as copyCheckpoint,C as emptyCheckpoint,ga as entrypoint,O as getConfig,P as getCurrentTaskInput,U as getJsonSchemaFromSchema,ha as getPreviousState,V as getSchemaDefaultGetter,M as getStore,B as getSubgraphsSeenSet,N as getWriter,Q as interrupt,j as isCommand,s as isGraphBubbleUp,t as isGraphInterrupt,h as isInterrupted,r as isParentCommand,T as isSerializableSchema,S as isStandardSchema,$ as messagesStateReducer,ea as pushMessage,fa as task,la as writer};
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import a from"./TTZBF4KI.js";import"./S2PHM4WZ.js";import{a as C}from"./V5ZWDMLE.js";import"./32DRTMS4.js";import{A as b,G as y,H as I,I as w,L as k,O as R,P as $,h as u,j as l,k as h,l as m,u as f,y as g,z as v}from"./NJMHL2Y7.js";import"./CFDTXKJ6.js";export default $arcgis.t(([S,{p:M}])=>{var p=class extends b{constructor(e){if(super(e),this.it=m,e.type!==g.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===m||e==null)return this._t=void 0,this.it=e;if(e===h)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;let t=[e];return t.raw=t,this._t={_$litType$:this.constructor.resultType,strings:t,values:[]}}};p.directiveName="unsafeHTML",p.resultType=1;var T=v(p);var L=u`.thumbnail-container{width:100%}.replacement-container{margin:.5rem}.replacement-message{margin-bottom:.5rem}.replacement-card__title{margin-bottom:.25rem}`,P=["3DInsetMap","3DScene","3DViz","AttachmentViewer","CapacityAnalysis","Cascade","Compare","Compare/Configure","Compare/Multiviewer","Compare/Search","Compare/SideBySideViewer_Configure","Compare/storytelling_compare","Compare/storytelling_sidepanel","Compare/storytelling_tabbed","Compare3d","CompareAnalysis","CompareMaps","CrowdsourceManager","CrowdsourcePolling","CrowdsourceReporter","Directions","Edit","Editor","Elevations","ElevationsProfile","Embed","Filter","FilterGallery","GeoForm","GeoList","GeoTour","HeaderFooter","Identify","ImageInterpretation","ImageMask","ImageVisit","ImageryViewer","ImpactSummary","InformationLookup","InteractiveFilter","InteractiveLegend","LayerShowcase","Legend","LiveMaps","LocalPerspective","MapAndAppGallery","MapCarousel","MapJournal","MapSeries","Shortlist","MapTools","MapTour","Media","MinimalGallery","Minimalist","MobileViewer","Nearby","OnePane","Panels","PanelsLegend","Profile","PublicGallery","PublicInformation","ServiceLookup","SimpleMapViewer","SimpleViewer","SocialMedia","Solutions/s2.html?app=apps2/FindEditFilter","Solutions/s2.html?app=apps2/Finder","Solutions/s2.html","StoryMapBasic","StorytellingSwipe","StorytellingTextLegend","Styler","SummaryViewer","Time","TimeAware","TwoPane","View","Viewer","ZoneLookup"],U=i=>{if(!i)return!1;let e=P.some(t=>{let r=t.includes(".html"),a=`/apps/${t}${r?"":"/"}`;return decodeURIComponent(i.url)?.includes(a)});return i.type==="Web Mapping Application"&&!!i.url&&e};function D(i){let e=["Cascade","MapTour","MapJournal","MapSeries","Shortlist","StoryMapCrowdsource","SwipeSpyglass","Story Map"];return i.type==="Web Mapping Application"&&(_(e,i)||j(i))}function j(i){return["Cascade","MapTour","MapJournal","MapSeries","Shortlist","StoryMapCrowdsource","StorytellingSwipe"].some(e=>{let t=`/apps/${e}/index.html`;return decodeURIComponent(i.url)?.includes(t)})}function _(i,e){return i?.some(t=>e?.typeKeywords?.includes(t))}function x(i){let e=H(i);return $(`assets/portal-item-thumbnail/${e}`)}function H(i){let e=i.type?.toLowerCase(),t=i.typeKeywords||[];switch(e){case"web mapping application":return"webapp.avif";case"mobile application":return"mobileapp.avif";case"notebook code snippets":case"notebook code snippet library":return"notebookcodesnippets.avif";case"notebook":return"notebook.avif";case"style":return t.includes("Dictionary")?"dictionarystyle.avif":"style.avif";case"feature service":return t.includes("Location Tracking View")?"locationtrackingservice.avif":t.includes("IndoorPositioningDataService")?"indoor-positioning-data-service.avif":"default.avif";case"pro presentation":return"pro-presentation.avif";case"reality mapping project":return"realitymappingproject.avif";case"raster function template":return"rasterfunctiontemplate.avif";case"workforce project":return"workforceproject.avif";case"hub initiative":return"hubinitiative.avif";case"hub page":return"hubpage.avif";case"hub site application":case"site application":return"hubsite.avif";case"hub event":return"hubevent.avif";case"hub project":return"hubproject.avif";case"dashboard":return t.includes("ArcGIS Dashboards")?"dashboards.avif":"opsdashboard.avif";case"geoprocessing service":return t.includes("Notebook Web Tool")?"notebookwebtool.avif":"webtool.avif";case"web scene":case"scene service":return"scene.avif";case"ortho mapping project":return"orthomappingproject.avif";case"ortho mapping template":return"orthomappingtemplate.avif";case"insights theme":return"insightstheme.avif";case"insights workbook package":return"insightsworkbookpackage.avif";case"solution":return"solution.avif";case"mobile scene package":return"mobilescenepackage.avif";case"deep learning package":return"deeplearningpackage.avif";case"big data analytic":return"bigdataanalytic.avif";case"real time analytic":return"realtimeanalytic.avif";case"feed":return"feed.avif";case"excalibur imagery project":return"excaliburimageryproject.avif";case"storymap":return t?.includes("storymapcollection")?"storymapcollection.avif":"storymap.avif";case"survey123 add in":return"survey123addin.avif";case"mission":return"mission.avif";case"mission template":return"missiontemplate.avif";case"quickcapture project":return"quickcaptureproject.avif";case"pro report":return"proreport.avif";case"pro package":return"propackage.avif";case"pro report template":return"proreporttemplate.avif";case"urban model":return"urbanmodel.avif";case"urban project":return"urbanproject.avif";case"web experience":return"webexperience.avif";case"web experience template":return"webexperiencetemplate.avif";case"experience builder widget":return"experiencebuilderwidget.avif";case"experience builder widget package":return"experiencebuilderwidgetpackage.avif";case"workflow":return"workflow.avif";case"insights script":return"insightsscript.avif";case"kernel gateway connection":return"kernelgatewayconnection.avif";case"hub initiative template":return"hubinitiativetemplate.avif";case"image service":return t?.includes("Tile Imagery")?"tiledimagerylayer.avif":"imagerylayer.avif";case"mission report":return"missionreport.avif";case"administrative report":return"administrativereport.avif";case"storymap theme":return"storymaptheme.avif";case"knowledge graph":return"knowledgegraph.avif";case"knowledge graph layer":return"knowledgegraphlayer.avif";case"knowledge studio project":return"knowledgestudio.avif";case"earth configuration":return"earthconfiguration.avif";case"link chart":return"linkchart.avif";case"investigation":return"investigation.avif";case"apache parquet":return"apacheparquet.avif";case"curated collection":return"curatedcollection.avif";case"video service":return"mediaservice.avif";case"geodata service":return"geodataservice.avif";case"suitability model":return"suitabilitymodel.avif";case"esri classifier definition":return"classifierdefinition.avif";case"esri spectral library":return"spectrallibrary.avif";case"deep learning studio project":return"deeplearningstudioproject.avif";case"esri classification schema":return"classificationschema.avif";case"insights data engineering workbook":return"dataengineeringworkbook.avif";case"insights data engineering model":return"dataengineeringmodel.avif";case"discussion":return"discussion.avif";case"api key":return"apikey.avif";case"data pipeline":return"datapipeline.avif";case"analysis model":return"analysismodel.avif";case"service connection":return"serviceconnection.avif";case"xr experience":return"xrexperience.avif";case"3dtiles service":return t?.includes("GaussianSplat")?"gaussiansplatlayer.avif":"default.avif";default:return"default.avif"}}function F(i,e,t){let{restUrl:r}=i,a=V(i),n=a?`token=${a}`:"",c=`${r}/content/items/${e.id}`;if(e.thumbnail){let o=e.thumbnailUrl;if(o){let s=new URL(o);return s.searchParams.append("w","400"),s.href}return`${c}/info/${e.thumbnail}?w=400${a?"&":""}${n}`}else if(e.type==="Image")return`${c}/data?${n}`;return x(e)}function V(i){return i?.credential?.token||i?.token||i?.user?.credential?.token||i?.portalUser?.token||""}function E({portal:i,usePortalHostname:e}){let{customBaseUrl:t,portalHostname:r,urlKey:a}=i,{protocol:n}=window.location,c=!e&&a?`${a}.${t}`:r;return`${n}//${c}`}var A=5e3,d=class extends w{constructor(){super(...arguments),this.replacementId=null,this.replacementItemInRecycleBin=!1,this.hasInaccessibleReplacementItem=!1,this.thumbnailUrl=null,this.timer=void 0,this.t9n=C({blocking:!0}),this.primaryActionRef=y(),this.getItemDetailsUrl=({portal:e,itemId:t,redirect:r})=>{let a=E({portal:e,usePortalHostname:!this.user});return a?`${`${a}/home`}/item.html?id=${t}${r?"&performRedirectAction=true":""}`:""},this.performRedirectAction=()=>{window.open(this.getItemDetailsUrl({portal:this.portal,itemId:this.replacementId,redirect:!0}),"_self")},this.viewItemDetailsPage=()=>{window.open(this.getItemDetailsUrl({portal:this.portal,itemId:this.replacementId??this.itemId}),this.canRedirect?"_self":"_blank")},this.item=null,this.replacementItem=null,this.redirectAction=null,this.canRedirect=!1,this.redirectCancelled=!1,this.open=!1,this.redirectTimeRemaining=A/1e3,this.arcgisPortalReplacementItemFetch=f()}static{this.properties={item:16,replacementItem:16,redirectAction:16,canRedirect:16,redirectCancelled:16,open:16,redirectTimeRemaining:16,itemId:1,portal:0,user:0}}static{this.styles=L}async setFocus(){this.primaryActionRef.value?.setFocus()}willUpdate(e){(e.has("itemId")||e.has("portal")||e.has("user"))&&(this.user??=this.portal?.user??null,this.initItem())}setupTimer({onComplete:e}){typeof this.timer=="number"&&clearInterval(this.timer),this.redirectTimeRemaining=A/1e3,this.timer=setInterval(()=>{if(this.redirectTimeRemaining<=0){clearInterval(this.timer),this.timer=void 0,e();return}this.redirectTimeRemaining-=1},1e3)}cancelTimer({onCancel:e}={}){e?.(),clearInterval(this.timer)}handleClose(){this.cancelTimer(),this.itemId="",this.item=null,this.open=!1}cancelRedirect(){this.cancelTimer(),this.redirectCancelled=!0}isItemRetired(e){return U(e)||D(e)}async initItem(){if(!this.itemId)return;let{itemId:e,portal:t,performRedirectAction:r}=this,a=new S({id:e,portal:t});this.item=await a?.load();let n=await M(e,t,{relationshipType:"ReplacementItem2Item",direction:"reverse"},!0),c=n.data?.relatedItems?.[0];this.replacementItemInRecycleBin=c?.inRecycleBin;let o=c?.id,s=!this.replacementItemInRecycleBin&&o?new S({id:o,portal:t}):null;await s?.load(),this.replacementItem=s,this.hasInaccessibleReplacementItem=this.replacementItemInRecycleBin||!s&&n.data?.aggregations?.total?.count>0&&n.data?.relatedItems?.length===0,this.arcgisPortalReplacementItemFetch.emit({replacementItem:this.hasInaccessibleReplacementItem?{}:s||null}),this.replacementItem=s,this.thumbnailUrl=F(t,s??this.item),this.canRedirect=!!s&&this.isItemRetired(a),this.replacementId=s?.id||null,this.canRedirect&&this.setupTimer({onComplete:()=>r()}),this.open=!0}getReplacementHeading(){let{t9n:e,hasInaccessibleReplacementItem:t,canRedirect:r}=this;return t?e.replacementUnavailable:r?e.redirectToReplacement:this.isItemRetired(this.item)&&!this.replacementItem?e.retiredTitle:e.replacementAvailable}getReplacementMessage(){let{t9n:e,hasInaccessibleReplacementItem:t,canRedirect:r}=this;return t?e.retiredReplacementUnavailable:r?e.deprecatedHasReplacement:this.isItemRetired(this.item)&&!this.replacementItem?e.retired:e.deprecatedHasReplacement}getRedirectActionMessage(){let{t9n:e,canRedirect:t,redirectTimeRemaining:r,redirectCancelled:a}=this;return a?e.redirectToReplacement:t?e.redirect.replace("${seconds}",`${r}`):e.moreDetails}renderCard(e){let{canRedirect:t,t9n:r}=this;return l`<calcite-card thumbnail-position=inline-start><img slot=thumbnail class="thumbnail" src=${(this.thumbnailUrl||void 0)??k} @error=${async()=>this.thumbnailUrl=x(e)}><span slot=heading class="replacement-card__title">${e.title}</span><span slot=description>${r.ownedBy?.replace("${owner}",e.owner||"")||""}</span>${t&&l`<calcite-link slot=footer-start icon-end=launch icon-flip-rtl=end .href=${this.getItemDetailsUrl({portal:this.portal,itemId:this.replacementId})} target=_blank>${r.moreDetails}</calcite-link>`||""}</calcite-card>`}render(){let{open:e,t9n:t,item:r,replacementItem:a,canRedirect:n,redirectCancelled:c}=this;if(!(!r||!this.isItemRetired(r)))return l`<calcite-dialog modal .open=${e} width=s kind=info outside-close-disabled escape-disabled close-disabled .heading=${this.getReplacementHeading()} @calciteDialogClose=${()=>this.handleClose()}><div class="replacement-container"><div class="replacement-message">${T(this.getReplacementMessage()?.replace("${itemTitle}",this.item?.title||""))}</div>${this.renderCard(n?a:r)}</div>${n&&!c&&l`<calcite-button slot=footer-end appearance=outline-fill kind=neutral @click=${()=>{this.cancelRedirect()}}>${t.cancelRedirection}</calcite-button>`||""}<calcite-button slot=footer-end @click=${()=>{this.cancelTimer(),n?this.performRedirectAction():this.viewItemDetailsPage()}} .iconEnd=${n?void 0:"launch"} icon-flip-rtl=end ${I(this.primaryActionRef)}>${this.getRedirectActionMessage()}</calcite-button></calcite-dialog>`}};R("arcgis-portal-replacement-item-redirect",d);return d},"portal/PortalItem",a)