@arcgis/portal-components 6.0.0-next.4 → 6.0.0-next.40

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 (409) hide show
  1. package/dist/cdn/2574FNAZ.js +2 -0
  2. package/dist/cdn/3DOZPC3W.js +2 -0
  3. package/dist/cdn/3HZI6MKD.js +2 -0
  4. package/dist/cdn/3KGSWW6B.js +2 -0
  5. package/dist/cdn/3OL7A2UC.js +2 -0
  6. package/dist/cdn/3Q7UJKKN.js +2 -0
  7. package/dist/cdn/43A74S72.js +2 -0
  8. package/dist/cdn/46HNNQAD.js +2 -0
  9. package/dist/cdn/46MYBPSS.js +2 -0
  10. package/dist/cdn/{2TDHJSMP.js → 47DKAGRV.js} +1 -1
  11. package/dist/cdn/4CBRO7JP.js +2 -0
  12. package/dist/cdn/4QYVBXZT.js +2 -0
  13. package/dist/cdn/{K75JTQPW.js → 4VLEUN7I.js} +1 -1
  14. package/dist/cdn/5M25PCH2.js +2 -0
  15. package/dist/cdn/5MLBK66O.js +2 -0
  16. package/dist/cdn/5RBH3LGK.js +2 -0
  17. package/dist/cdn/5ZHNRQOW.js +2 -0
  18. package/dist/cdn/62TL6V4N.js +2 -0
  19. package/dist/cdn/66VV7NHO.js +2 -0
  20. package/dist/cdn/6AHPTR2E.js +2 -0
  21. package/dist/cdn/6APPSZ7E.js +2 -0
  22. package/dist/cdn/{BKD7JSV2.js → 6CUXEL27.js} +1 -1
  23. package/dist/cdn/6QI7DAS2.js +2 -0
  24. package/dist/cdn/6ZJNZZPC.js +2 -0
  25. package/dist/cdn/75CT6IMW.js +2 -0
  26. package/dist/cdn/7J22VLBO.js +2 -0
  27. package/dist/cdn/7VPB6Q55.js +63 -0
  28. package/dist/cdn/7ZU43BL6.js +2 -0
  29. package/dist/cdn/A5QLPZ57.js +2 -0
  30. package/dist/cdn/AZTAWZI5.js +2 -0
  31. package/dist/cdn/{OR6T5SB3.js → BNWJUQDF.js} +1 -1
  32. package/dist/cdn/BUYOYUA2.js +2 -0
  33. package/dist/cdn/BX7Q3V2Y.js +43 -0
  34. package/dist/cdn/BXPNB7VJ.js +2 -0
  35. package/dist/cdn/BZEKNJUA.js +2 -0
  36. package/dist/cdn/C6RUWLEJ.js +2 -0
  37. package/dist/cdn/C7SNE6YG.js +2 -0
  38. package/dist/cdn/DENQY4OE.js +2 -0
  39. package/dist/cdn/DT4HGMLS.js +2 -0
  40. package/dist/cdn/{2YZWRFCI.js → DTGPLVZF.js} +1 -1
  41. package/dist/cdn/DU2R3VC4.js +2 -0
  42. package/dist/cdn/E5HCHRAI.js +2 -0
  43. package/dist/cdn/EBL7YSRM.js +2 -0
  44. package/dist/cdn/EDGE3T36.js +2 -0
  45. package/dist/cdn/{YZTBAUIO.js → EFMYI4L2.js} +1 -1
  46. package/dist/cdn/FFL2L4X5.js +2 -0
  47. package/dist/cdn/{ZKZDKJ6D.js → FIAEPK5L.js} +1 -1
  48. package/dist/cdn/FN2QMDEW.js +2 -0
  49. package/dist/cdn/FTKSVLDI.js +2 -0
  50. package/dist/cdn/G272JPUS.js +2 -0
  51. package/dist/cdn/GFUKRB6D.js +2 -0
  52. package/dist/cdn/{SGDDFWCJ.js → GG6U75ZA.js} +1 -1
  53. package/dist/cdn/{FRE56NBG.js → GZ4ONSFV.js} +1 -1
  54. package/dist/cdn/HOIZXTOD.js +2 -0
  55. package/dist/cdn/{VDXESPJK.js → I4TKQB4A.js} +1 -1
  56. package/dist/cdn/{TWCJJCPC.js → IAMPUXPT.js} +1 -1
  57. package/dist/cdn/IAWL475A.js +2 -0
  58. package/dist/cdn/IGLODZPX.js +2 -0
  59. package/dist/cdn/IOF72CDU.js +2 -0
  60. package/dist/cdn/ITRJGXFV.js +93 -0
  61. package/dist/cdn/ITWLFQI4.js +2 -0
  62. package/dist/cdn/{7ZWYUHGK.js → IYICIRGI.js} +1 -1
  63. package/dist/cdn/JFGXTJY4.js +2 -0
  64. package/dist/cdn/JIU6MBGB.js +2 -0
  65. package/dist/cdn/JLT5GCLY.js +2 -0
  66. package/dist/cdn/JTA223NH.js +2 -0
  67. package/dist/cdn/KA2MXQTR.js +2 -0
  68. package/dist/cdn/KAK6CNI7.js +2 -0
  69. package/dist/cdn/KPZGBBDG.js +2 -0
  70. package/dist/cdn/{CFRJU6VA.js → KRO5XRZ7.js} +1 -1
  71. package/dist/cdn/KRORL7QC.js +2 -0
  72. package/dist/cdn/KWL2D56D.js +3 -0
  73. package/dist/cdn/{QTAYXO5T.js → KXVXQYIB.js} +1 -1
  74. package/dist/cdn/L3YOPSRB.js +135 -0
  75. package/dist/cdn/LEESUFWE.js +2 -0
  76. package/dist/cdn/{IN4JPZTY.js → LGKI24ZT.js} +1 -1
  77. package/dist/cdn/LTD5KLLE.js +2 -0
  78. package/dist/cdn/{GAF4YT5N.js → LUJGCYQY.js} +1 -1
  79. package/dist/cdn/{Z6R3C4AK.js → MB32XRI5.js} +1 -1
  80. package/dist/cdn/MSL36HAR.js +2 -0
  81. package/dist/cdn/MSSJRDR7.js +2 -0
  82. package/dist/cdn/N3WRMPM6.js +2 -0
  83. package/dist/cdn/N47MW5HI.js +9 -0
  84. package/dist/cdn/N7XYFVOI.js +2 -0
  85. package/dist/cdn/NHVPNSNH.js +2 -0
  86. package/dist/cdn/{5HZNBMW6.js → NU4K2AV3.js} +1 -1
  87. package/dist/cdn/O2GPTWGF.js +3 -0
  88. package/dist/cdn/{TRMFL7PT.js → ONRTCGLU.js} +1 -1
  89. package/dist/cdn/OPI4P6VO.js +2 -0
  90. package/dist/cdn/{RHCRPJWS.js → OPMM7QH5.js} +1 -1
  91. package/dist/cdn/OQ2JULON.js +2 -0
  92. package/dist/cdn/OXF2WDSW.js +2 -0
  93. package/dist/cdn/P3FFM322.js +2 -0
  94. package/dist/cdn/QAXFE5DD.js +2 -0
  95. package/dist/cdn/{JPUUMGX5.js → QKRLO5CJ.js} +1 -1
  96. package/dist/cdn/R26RBXQW.js +2 -0
  97. package/dist/cdn/R6KJVAX3.js +99 -0
  98. package/dist/cdn/RA2NMLMP.js +2 -0
  99. package/dist/cdn/RJXIU4GH.js +2 -0
  100. package/dist/cdn/RKHNP3KL.js +2 -0
  101. package/dist/cdn/RR56BOTV.js +2 -0
  102. package/dist/cdn/RT26JZP5.js +2 -0
  103. package/dist/cdn/RTZ2TKM5.js +2 -0
  104. package/dist/cdn/RX64JXHI.js +170 -0
  105. package/dist/cdn/RXMM6CFK.js +2 -0
  106. package/dist/cdn/S4N5QMSN.js +2 -0
  107. package/dist/cdn/SCLYGIHM.js +2 -0
  108. package/dist/cdn/{JIJO4CAS.js → SLK7PV62.js} +1 -1
  109. package/dist/cdn/SRWFOV5W.js +2 -0
  110. package/dist/cdn/SUN4MBT3.js +2 -0
  111. package/dist/cdn/SYXCSFIA.js +2 -0
  112. package/dist/cdn/{3NSHGKZA.js → TBSNDRRE.js} +1 -1
  113. package/dist/cdn/{ROX3GKKA.js → TIPQ2ZWK.js} +1 -1
  114. package/dist/cdn/TP7V25GT.js +2 -0
  115. package/dist/cdn/{TXC7YBGL.js → UBMZBXT7.js} +1 -1
  116. package/dist/cdn/UIK6LPA7.js +2 -0
  117. package/dist/cdn/ULGME5RT.js +2 -0
  118. package/dist/cdn/{URQML7KV.js → VQRMXBPQ.js} +1 -1
  119. package/dist/cdn/VWOBCSD6.js +4 -0
  120. package/dist/cdn/{JE2376SE.js → W3JJBZYX.js} +1 -1
  121. package/dist/cdn/W6WVMRGQ.js +2 -0
  122. package/dist/cdn/{MKSFNVXL.js → WNXDXB3M.js} +1 -1
  123. package/dist/cdn/{JN23JH3T.js → WOSWA2VI.js} +1 -1
  124. package/dist/cdn/WTKLB3R6.js +2 -0
  125. package/dist/cdn/X7W4VJO7.js +2 -0
  126. package/dist/cdn/XCOP6QHA.js +2 -0
  127. package/dist/cdn/XE3DCC5D.js +2 -0
  128. package/dist/cdn/XVV75AX3.js +2 -0
  129. package/dist/cdn/XYHIVGUK.js +2 -0
  130. package/dist/cdn/{M5PPX4ZX.js → Y4JOEFBJ.js} +1 -1
  131. package/dist/cdn/Y7ZCEONL.js +73 -0
  132. package/dist/cdn/YELHAJB3.js +2 -0
  133. package/dist/cdn/YH2OFXPU.js +2 -0
  134. package/dist/cdn/YYVLFAFT.js +2 -0
  135. package/dist/cdn/{74T6IXSN.js → ZDH4KVAV.js} +1 -1
  136. package/dist/cdn/{I6IRHXWR.js → ZECUXVTO.js} +1 -1
  137. package/dist/cdn/ZG7OW456.js +2 -0
  138. package/dist/cdn/{NWVLGU2C.js → ZLNBCJE4.js} +1 -1
  139. package/dist/cdn/{K2XSYDAP.js → ZNNEU5QW.js} +1 -1
  140. package/dist/cdn/assets/portal-ai-assistant/t9n/messages.en.json +1 -1
  141. package/dist/cdn/assets/portal-entity-picker/t9n/messages.en.json +1 -1
  142. package/dist/cdn/assets/portal-item-card-sublayer-select/t9n/messages.en.json +1 -0
  143. package/dist/cdn/assets/portal-item-preview/t9n/messages.en.json +1 -0
  144. package/dist/cdn/assets/portal-item-share-summary/t9n/messages.en.json +1 -0
  145. package/dist/cdn/assets/portal-item-status-card/t9n/messages.en.json +1 -0
  146. package/dist/cdn/assets/portal-item-type/t9n/messages.en.json +1 -1
  147. package/dist/cdn/assets/portal-navigation/t9n/messages.en.json +1 -1
  148. package/dist/cdn/assets/portal-review-layer-sharing/t9n/messages.en.json +1 -0
  149. package/dist/cdn/index.js +1 -1
  150. package/dist/cdn/main.css +1 -1
  151. package/dist/chunks/FieldIcons.js +24 -0
  152. package/dist/chunks/constants.js +7 -0
  153. package/dist/chunks/contextUsage.js +208 -0
  154. package/dist/chunks/createPortalTool.js +18 -0
  155. package/dist/chunks/fieldAddDelete.js +6 -6
  156. package/dist/chunks/functionalities.js +14 -9
  157. package/dist/chunks/groups.js +8 -61
  158. package/dist/chunks/groups2.js +23 -8
  159. package/dist/chunks/help.js +22 -0
  160. package/dist/chunks/info.js +2 -2
  161. package/dist/chunks/item.js +135 -33
  162. package/dist/chunks/item2.js +96 -122
  163. package/dist/chunks/itemThumbnail.js +21 -21
  164. package/dist/chunks/items.js +11 -11
  165. package/dist/chunks/layers.js +196 -0
  166. package/dist/chunks/loadClassificationData.js +26 -27
  167. package/dist/chunks/portal-browser.js +49 -46
  168. package/dist/chunks/portal-delete-items-review.js +1 -1
  169. package/dist/chunks/portal-item-badge.js +1 -1
  170. package/dist/chunks/portal-item-preview-sublayer.js +214 -0
  171. package/dist/chunks/portal-item-status-card.js +81 -0
  172. package/dist/chunks/portal-related-items-list-item.js +1 -1
  173. package/dist/chunks/portal.js +5 -5
  174. package/dist/chunks/portal2.js +22 -22
  175. package/dist/chunks/portalEntitySelection.js +61 -0
  176. package/dist/chunks/previewSessionController.js +33 -0
  177. package/dist/chunks/query.js +13 -13
  178. package/dist/chunks/request.js +49 -41
  179. package/dist/chunks/requests.js +7 -7
  180. package/dist/chunks/selectedMentions.js +25 -0
  181. package/dist/chunks/services.js +5 -5
  182. package/dist/chunks/string.js +19 -11
  183. package/dist/chunks/ui.js +1 -0
  184. package/dist/chunks/url.js +2 -2
  185. package/dist/chunks/user.js +67 -53
  186. package/dist/chunks/user2.js +10 -10
  187. package/dist/chunks/utils.js +35 -22
  188. package/dist/chunks/utils3.js +88 -657
  189. package/dist/chunks/utils4.js +663 -0
  190. package/dist/components/arcgis-portal-account-switcher/customElement.js +57 -54
  191. package/dist/components/arcgis-portal-add-gps-metadata/customElement.d.ts +27 -0
  192. package/dist/components/arcgis-portal-add-gps-metadata/customElement.js +185 -137
  193. package/dist/components/arcgis-portal-ai-assistant/customElement.d.ts +38 -15
  194. package/dist/components/arcgis-portal-ai-assistant/customElement.js +816 -2642
  195. package/dist/components/arcgis-portal-ai-assistant/index.js +5 -0
  196. package/dist/components/arcgis-portal-ai-assistant/tools/getItemTool.d.ts +11 -0
  197. package/dist/components/arcgis-portal-ai-assistant/tools/groups.d.ts +28 -0
  198. package/dist/components/arcgis-portal-ai-assistant/tools/users.d.ts +28 -0
  199. package/dist/components/arcgis-portal-ai-assistant/types/assistantTools.d.ts +41 -3
  200. package/dist/components/arcgis-portal-ai-assistant/types/portalEntityTools.d.ts +19 -0
  201. package/dist/components/arcgis-portal-ai-assistant-diagnostics/contextUsage.d.ts +46 -0
  202. package/dist/components/arcgis-portal-ai-assistant-diagnostics/customElement.d.ts +26 -0
  203. package/dist/components/arcgis-portal-ai-assistant-diagnostics/customElement.js +46 -0
  204. package/dist/components/arcgis-portal-ai-assistant-diagnostics/index.d.ts +1 -0
  205. package/dist/components/arcgis-portal-ai-assistant-diagnostics/index.js +10 -0
  206. package/dist/components/arcgis-portal-ai-assistant-interrupt/customElement.d.ts +42 -1
  207. package/dist/components/arcgis-portal-ai-assistant-interrupt/customElement.js +49 -37
  208. package/dist/components/arcgis-portal-ai-assistant-interrupt/index.js +3 -4
  209. package/dist/components/arcgis-portal-browser/customElement.d.ts +3 -0
  210. package/dist/components/arcgis-portal-browser/customElement.js +3 -2
  211. package/dist/components/arcgis-portal-browser/index.js +1 -0
  212. package/dist/components/arcgis-portal-classification-banner/customElement.js +2 -2
  213. package/dist/components/arcgis-portal-classification-config/customElement.js +2 -2
  214. package/dist/components/arcgis-portal-classification-favorite/customElement.js +2 -2
  215. package/dist/components/arcgis-portal-classification-form-element/customElement.js +1 -1
  216. package/dist/components/arcgis-portal-delete-items/customElement.d.ts +69 -3
  217. package/dist/components/arcgis-portal-delete-items/customElement.js +437 -333
  218. package/dist/components/arcgis-portal-delete-items/index.js +1 -2
  219. package/dist/components/arcgis-portal-delete-items/types.d.ts +1 -0
  220. package/dist/components/arcgis-portal-entity-picker/customElement.d.ts +51 -5
  221. package/dist/components/arcgis-portal-entity-picker/customElement.js +204 -119
  222. package/dist/components/arcgis-portal-entity-picker/index.js +2 -0
  223. package/dist/components/arcgis-portal-field-delete/customElement.js +87 -101
  224. package/dist/components/arcgis-portal-field-delete/index.js +1 -1
  225. package/dist/components/arcgis-portal-group-badges/customElement.js +5 -5
  226. package/dist/components/arcgis-portal-group-browser/customElement.js +68 -100
  227. package/dist/components/arcgis-portal-group-browser/types.d.ts +3 -7
  228. package/dist/components/arcgis-portal-group-browser-preview/customElement.js +49 -40
  229. package/dist/components/arcgis-portal-group-browser-preview/index.js +1 -0
  230. package/dist/components/arcgis-portal-group-browser-preview-card/customElement.js +1 -4
  231. package/dist/components/arcgis-portal-group-card/customElement.js +16 -16
  232. package/dist/components/arcgis-portal-group-thumbnail/customElement.js +1 -1
  233. package/dist/components/arcgis-portal-item-badges/customElement.js +4 -4
  234. package/dist/components/arcgis-portal-item-card/customElement.d.ts +26 -10
  235. package/dist/components/arcgis-portal-item-card/customElement.js +90 -80
  236. package/dist/components/arcgis-portal-item-card/index.js +2 -1
  237. package/dist/components/arcgis-portal-item-card-sublayer-select/customElement.d.ts +102 -0
  238. package/dist/components/arcgis-portal-item-card-sublayer-select/customElement.js +181 -0
  239. package/dist/components/arcgis-portal-item-card-sublayer-select/index.d.ts +1 -0
  240. package/dist/components/arcgis-portal-item-card-sublayer-select/index.js +8 -0
  241. package/dist/components/arcgis-portal-item-card-sublayer-select/types.d.ts +22 -0
  242. package/dist/components/arcgis-portal-item-favorite/customElement.js +42 -29
  243. package/dist/components/arcgis-portal-item-preview/customElement.d.ts +263 -0
  244. package/dist/components/arcgis-portal-item-preview/customElement.js +137 -0
  245. package/dist/components/arcgis-portal-item-preview/index.d.ts +1 -0
  246. package/dist/components/arcgis-portal-item-preview/index.js +20 -0
  247. package/dist/components/arcgis-portal-item-preview/types.d.ts +14 -0
  248. package/dist/components/arcgis-portal-item-preview-copy/customElement.d.ts +215 -0
  249. package/dist/components/arcgis-portal-item-preview-copy/customElement.js +46 -0
  250. package/dist/components/arcgis-portal-item-preview-copy/index.d.ts +1 -0
  251. package/dist/components/arcgis-portal-item-preview-copy/index.js +5 -0
  252. package/dist/components/arcgis-portal-item-preview-field/customElement.d.ts +216 -0
  253. package/dist/components/arcgis-portal-item-preview-field/customElement.js +34 -0
  254. package/dist/components/arcgis-portal-item-preview-field/index.d.ts +1 -0
  255. package/dist/components/arcgis-portal-item-preview-field/index.js +6 -0
  256. package/dist/components/arcgis-portal-item-preview-sublayer/customElement.d.ts +216 -0
  257. package/dist/components/arcgis-portal-item-preview-sublayer/customElement.js +15 -0
  258. package/dist/components/arcgis-portal-item-preview-sublayer/index.d.ts +1 -0
  259. package/dist/components/arcgis-portal-item-preview-sublayer/index.js +11 -0
  260. package/dist/components/arcgis-portal-item-share-summary/customElement.d.ts +113 -0
  261. package/dist/components/arcgis-portal-item-share-summary/customElement.js +172 -0
  262. package/dist/components/arcgis-portal-item-share-summary/index.d.ts +1 -0
  263. package/dist/components/arcgis-portal-item-share-summary/index.js +5 -0
  264. package/dist/components/arcgis-portal-item-share-summary-editable/customElement.d.ts +33 -0
  265. package/dist/components/arcgis-portal-item-share-summary-editable/customElement.js +19 -0
  266. package/dist/components/arcgis-portal-item-share-summary-editable/index.d.ts +1 -0
  267. package/dist/components/arcgis-portal-item-share-summary-editable/index.js +2 -0
  268. package/dist/components/arcgis-portal-item-status-card/customElement.d.ts +82 -0
  269. package/dist/components/arcgis-portal-item-status-card/customElement.js +12 -0
  270. package/dist/components/arcgis-portal-item-status-card/index.d.ts +1 -0
  271. package/dist/components/arcgis-portal-item-status-card/index.js +4 -0
  272. package/dist/components/arcgis-portal-item-thumbnail/customElement.d.ts +1 -0
  273. package/dist/components/arcgis-portal-item-thumbnail/customElement.js +14 -14
  274. package/dist/components/arcgis-portal-item-type/customElement.d.ts +16 -14
  275. package/dist/components/arcgis-portal-item-type/customElement.js +25 -28
  276. package/dist/components/arcgis-portal-mentionable-text-area/customElement.js +61 -57
  277. package/dist/components/arcgis-portal-navigation/customElement.d.ts +6 -4
  278. package/dist/components/arcgis-portal-navigation/customElement.js +371 -374
  279. package/dist/components/arcgis-portal-navigation/index.js +1 -2
  280. package/dist/components/arcgis-portal-preview-panel/customElement.d.ts +40 -0
  281. package/dist/components/arcgis-portal-preview-panel/customElement.js +40 -0
  282. package/dist/components/arcgis-portal-preview-panel/index.d.ts +1 -0
  283. package/dist/components/arcgis-portal-preview-panel/index.js +1 -0
  284. package/dist/components/arcgis-portal-replacement-item-redirect/customElement.js +8 -8
  285. package/dist/components/arcgis-portal-review-layer-sharing/customElement.d.ts +139 -0
  286. package/dist/components/arcgis-portal-review-layer-sharing/customElement.js +593 -0
  287. package/dist/components/arcgis-portal-review-layer-sharing/index.d.ts +1 -0
  288. package/dist/components/arcgis-portal-review-layer-sharing/index.js +10 -0
  289. package/dist/components/arcgis-portal-review-layer-sharing/types.d.ts +27 -0
  290. package/dist/components/arcgis-portal-review-related-items/customElement.d.ts +333 -0
  291. package/dist/components/arcgis-portal-review-related-items/customElement.js +46 -18
  292. package/dist/components/arcgis-portal-review-related-items/index.js +2 -0
  293. package/dist/components/arcgis-portal-sublayer-type/customElement.js +13 -103
  294. package/dist/components/arcgis-portal-user-avatar/customElement.d.ts +2 -3
  295. package/dist/components/arcgis-portal-user-avatar/customElement.js +15 -16
  296. package/dist/components/arcgis-portal-user-popup/customElement.d.ts +4 -7
  297. package/dist/components/arcgis-portal-user-popup/customElement.js +128 -111
  298. package/dist/components/portal-group-browser-filters/customElement.js +15 -15
  299. package/dist/components/portal-related-items-list-item/customElement.js +16 -14
  300. package/dist/components/portal-related-items-list-item/index.js +1 -1
  301. package/dist/docs/api.json +1 -1
  302. package/dist/docs/docs.json +1 -1
  303. package/dist/docs/vscode.css-custom-data.json +1 -1
  304. package/dist/docs/vscode.html-custom-data.json +1 -1
  305. package/dist/docs/web-types.json +1 -1
  306. package/dist/index.d.ts +87 -0
  307. package/dist/index.js +305 -6
  308. package/dist/loader.js +22 -11
  309. package/dist/services/group.d.ts +17 -0
  310. package/dist/services/groups.d.ts +9 -0
  311. package/dist/services/item.d.ts +9 -0
  312. package/dist/types/item.d.ts +19 -11
  313. package/dist/types/layer.d.ts +27 -0
  314. package/dist/types/lumina.d.ts +82 -12
  315. package/dist/types/portalAssistantCurrentContext.d.ts +9 -0
  316. package/dist/types/portalEntityPicker.d.ts +3 -0
  317. package/dist/types/preact.d.ts +93 -12
  318. package/dist/types/react.d.ts +104 -12
  319. package/dist/types/services.d.ts +28 -1
  320. package/dist/types/stencil.d.ts +82 -12
  321. package/dist/types/user.d.ts +14 -10
  322. package/dist/utils/generateEmbeddings.d.ts +7 -0
  323. package/dist/utils/semanticSearch.d.ts +60 -0
  324. package/dist/utils/types.d.ts +10 -0
  325. package/package.json +14 -13
  326. package/dist/cdn/23NXHNPU.js +0 -2
  327. package/dist/cdn/24QSQLRY.js +0 -2
  328. package/dist/cdn/2CN754CY.js +0 -2
  329. package/dist/cdn/2FQKDFEE.js +0 -2
  330. package/dist/cdn/2MPQ5IWJ.js +0 -2
  331. package/dist/cdn/3CQKCUM5.js +0 -2
  332. package/dist/cdn/3EYB5GQX.js +0 -2
  333. package/dist/cdn/3FSPL34I.js +0 -170
  334. package/dist/cdn/3LEQ37YT.js +0 -68
  335. package/dist/cdn/4KTRAA2J.js +0 -2
  336. package/dist/cdn/4MUB6TL6.js +0 -2
  337. package/dist/cdn/4PRXQFCV.js +0 -2
  338. package/dist/cdn/4QFTKB6T.js +0 -2
  339. package/dist/cdn/4TSXFX3M.js +0 -2
  340. package/dist/cdn/5C5GHX4D.js +0 -2
  341. package/dist/cdn/7LMZHJZG.js +0 -2
  342. package/dist/cdn/A2SQ4EMZ.js +0 -2
  343. package/dist/cdn/AICPYLWE.js +0 -4
  344. package/dist/cdn/AXOBMX3S.js +0 -2
  345. package/dist/cdn/AZOJHVAO.js +0 -2
  346. package/dist/cdn/BYHX3UWV.js +0 -2
  347. package/dist/cdn/CD5UWSCP.js +0 -2
  348. package/dist/cdn/D2YQWKME.js +0 -135
  349. package/dist/cdn/DDBXEXOV.js +0 -2
  350. package/dist/cdn/DHMNNIXZ.js +0 -2
  351. package/dist/cdn/DLI4XKJ3.js +0 -2
  352. package/dist/cdn/DYO5P3F2.js +0 -2
  353. package/dist/cdn/E66BDC6N.js +0 -2
  354. package/dist/cdn/EEAVX4PP.js +0 -2
  355. package/dist/cdn/EMJQI4MA.js +0 -2
  356. package/dist/cdn/EY5S6ICQ.js +0 -2
  357. package/dist/cdn/FIBQAMJ3.js +0 -2
  358. package/dist/cdn/FIQZPIIK.js +0 -2
  359. package/dist/cdn/FNLBJ4ZQ.js +0 -2
  360. package/dist/cdn/GGDOGNH4.js +0 -150
  361. package/dist/cdn/GSOBDGLK.js +0 -2
  362. package/dist/cdn/GXM3XY3J.js +0 -2
  363. package/dist/cdn/HCNTXLUT.js +0 -2
  364. package/dist/cdn/I273CANO.js +0 -2
  365. package/dist/cdn/I6NVKNZJ.js +0 -2
  366. package/dist/cdn/J5FKIZAM.js +0 -2
  367. package/dist/cdn/J5NPDIZM.js +0 -2
  368. package/dist/cdn/JOUR2FB2.js +0 -3
  369. package/dist/cdn/JWBUJT43.js +0 -2
  370. package/dist/cdn/LISDTBEX.js +0 -2
  371. package/dist/cdn/LYLQCBVX.js +0 -2
  372. package/dist/cdn/MQK63FV7.js +0 -2
  373. package/dist/cdn/N4VOTJ25.js +0 -2
  374. package/dist/cdn/N5QLV56W.js +0 -2
  375. package/dist/cdn/OD5WXP7J.js +0 -2
  376. package/dist/cdn/OXPXXIWL.js +0 -2
  377. package/dist/cdn/PKA745KL.js +0 -2
  378. package/dist/cdn/PMRFXB4F.js +0 -2
  379. package/dist/cdn/PNIFJ5DQ.js +0 -2
  380. package/dist/cdn/PZDI5ZDC.js +0 -2
  381. package/dist/cdn/QROXYP6V.js +0 -2
  382. package/dist/cdn/QUOLQGKP.js +0 -2
  383. package/dist/cdn/QWHGLE3O.js +0 -2
  384. package/dist/cdn/R3PK7XOP.js +0 -2
  385. package/dist/cdn/REM3KCX6.js +0 -2
  386. package/dist/cdn/RNWICLRH.js +0 -2
  387. package/dist/cdn/RQYNPDN3.js +0 -2
  388. package/dist/cdn/S6F7U36E.js +0 -400
  389. package/dist/cdn/SMX2LEJB.js +0 -2
  390. package/dist/cdn/SVROAT3Z.js +0 -2
  391. package/dist/cdn/TBZXKKGP.js +0 -2
  392. package/dist/cdn/TNUCSWBN.js +0 -2
  393. package/dist/cdn/TOICLGFK.js +0 -2
  394. package/dist/cdn/TOTWYGB3.js +0 -2
  395. package/dist/cdn/TUUUK3VX.js +0 -2
  396. package/dist/cdn/U3KMGSVH.js +0 -2
  397. package/dist/cdn/UEP2NYJK.js +0 -2
  398. package/dist/cdn/UZP4YMTE.js +0 -2
  399. package/dist/cdn/VNU4QX7M.js +0 -41
  400. package/dist/cdn/XYMBRPC7.js +0 -2
  401. package/dist/cdn/YB3DR4VO.js +0 -2
  402. package/dist/cdn/YYTEJVBL.js +0 -2
  403. package/dist/cdn/Z3HGPBOR.js +0 -2
  404. package/dist/cdn/ZDDN7UKS.js +0 -2
  405. package/dist/cdn/ZXNF77OB.js +0 -2
  406. package/dist/chunks/functional.js +0 -9
  407. package/dist/components/arcgis-portal-ai-assistant/data/capability-registries/types.d.ts +0 -45
  408. /package/dist/cdn/{OUMTV5H5.js → KHKREBVZ.js} +0 -0
  409. /package/dist/cdn/{DAAON2UO.js → UOXUUCE7.js} +0 -0
@@ -1,56 +1,61 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import { c as F } from "../../chunks/runtime.js";
3
- import q from "@arcgis/core/layers/Layer.js";
4
- import O from "@arcgis/core/portal/PortalItem.js";
5
- import { LitElement as P, createEvent as h } from "@arcgis/lumina";
6
- import { css as V, html as c } from "lit";
7
- import { u as S } from "../../chunks/useT9n.js";
8
- import m from "@arcgis/core/request.js";
9
- import { r as b } from "../../chunks/request.js";
10
- const D = V`:host{background-color:var(--calcite-color-foreground-1)}.scrim-container{position:relative}.base-fields-control{margin-inline-end:.75rem}.added{display:inline-flex;gap:.5rem;flex-shrink:0;white-space:nowrap}.added calcite-icon{color:var(--calcite-color-status-success)}`;
11
- async function v({
2
+ import { c as D } from "../../chunks/runtime.js";
3
+ import I from "@arcgis/core/layers/Layer.js";
4
+ import C from "@arcgis/core/portal/PortalItem.js";
5
+ import { LitElement as A, createEvent as b } from "@arcgis/lumina";
6
+ import { usePropertyChange as w, bypassReadOnly as T } from "@arcgis/lumina/controllers";
7
+ import { css as L, html as c } from "lit";
8
+ import { u as z } from "../../chunks/useT9n.js";
9
+ import f from "@arcgis/core/request.js";
10
+ import { r as S } from "../../chunks/request.js";
11
+ import { g as G } from "../../chunks/item.js";
12
+ import { p as x } from "../../chunks/functionalities.js";
13
+ const R = L`:host{background-color:var(--calcite-color-foreground-1)}.scrim-container{position:relative}.base-fields-control{margin-inline-end:.75rem}.added{display:inline-flex;gap:.5rem;flex-shrink:0;white-space:nowrap}.added calcite-icon{color:var(--calcite-color-status-success)}.add-fields-button{margin:.75rem 0}calcite-block{border-bottom:0}calcite-list-item:last-child:after{display:block;margin-inline-start:var(--calcite-spacing-md);border-block-end:1px solid var(--calcite-list-border-color, var(--calcite-color-border-3));content:""}`;
14
+ async function _({
12
15
  item: s,
13
16
  layers: e
14
17
  }) {
15
- const { url: l } = s, a = /* @__PURE__ */ new Map();
16
- if (!l)
17
- return { result: a };
18
+ const { url: t } = s, l = /* @__PURE__ */ new Map();
19
+ if (!t)
20
+ return { result: l };
18
21
  try {
19
- const i = (await m(l, {
22
+ const i = (await f(t, {
23
+ cacheBust: !0,
20
24
  query: { f: "json" },
21
25
  responseType: "json"
22
26
  })).data;
23
27
  if (i.fields) {
24
- const n = e?.[0];
25
- return e?.length === 1 && n?.layerId != null && a.set(n.layerId, i.fields), { result: a };
28
+ const r = e?.[0];
29
+ return e?.length === 1 && r?.layerId != null && l.set(r.layerId, i.fields), { result: l };
26
30
  }
27
31
  if (!i.layers?.length)
28
- return { result: a };
29
- const t = l.replace(/\/$/u, "");
32
+ return { result: l };
33
+ const a = t.replace(/\/$/u, "");
30
34
  return await Promise.all(
31
- i.layers.map(async ({ id: n }) => {
32
- const r = (await m(`${t}/${n}`, {
35
+ i.layers.map(async ({ id: r }) => {
36
+ const n = (await f(`${a}/${r}`, {
37
+ cacheBust: !0,
33
38
  query: { f: "json" },
34
39
  responseType: "json"
35
40
  })).data;
36
- a.set(n, r.fields ?? []);
41
+ l.set(r, n.fields ?? []);
37
42
  })
38
- ), { result: a };
43
+ ), { result: l };
39
44
  } catch (i) {
40
45
  return console.error("Error getting layer fields:", i), { error: { code: "unhandledError" } };
41
46
  }
42
47
  }
43
- const f = (s) => {
48
+ const O = (s) => {
44
49
  const { url: e } = s;
45
50
  return e ? e.replace("/rest/services", "/rest/admin/services").replace(/\/$/u, "") : null;
46
51
  };
47
- async function I({
52
+ async function E({
48
53
  fields: s,
49
54
  item: e,
50
- portal: l,
51
- layerId: a
55
+ portal: t,
56
+ layerId: l
52
57
  }) {
53
- const i = f(e);
58
+ const i = O(e);
54
59
  if (!i)
55
60
  return {
56
61
  error: {
@@ -59,35 +64,35 @@ async function I({
59
64
  }
60
65
  };
61
66
  try {
62
- const t = await b({
63
- url: `${i}/${a != null ? `${a}/` : ""}addToDefinition`,
64
- portal: l,
67
+ const a = await S({
68
+ url: `${i}/${l != null ? `${l}/` : ""}addToDefinition`,
69
+ portal: t,
65
70
  method: "post",
66
71
  params: {
67
72
  addToDefinition: JSON.stringify({ fields: s })
68
73
  }
69
74
  });
70
- return t.success === !1 || t.error ? {
75
+ return a.success === !1 || a.error ? {
71
76
  error: {
72
77
  code: "unhandledError",
73
- message: t.error?.message
78
+ message: a.error?.message
74
79
  }
75
- } : { result: t };
76
- } catch (t) {
77
- return console.error("Error adding fields to the feature service definition:", t), {
80
+ } : { result: a };
81
+ } catch (a) {
82
+ return console.error("Error adding fields to the feature service definition:", a), {
78
83
  error: {
79
84
  code: "unhandledError"
80
85
  }
81
86
  };
82
87
  }
83
88
  }
84
- async function C({
89
+ async function M({
85
90
  fields: s,
86
91
  item: e,
87
- portal: l,
88
- layerId: a
92
+ portal: t,
93
+ layerId: l
89
94
  }) {
90
- const i = f(e);
95
+ const i = O(e);
91
96
  if (!i)
92
97
  return {
93
98
  error: {
@@ -96,61 +101,61 @@ async function C({
96
101
  }
97
102
  };
98
103
  try {
99
- const t = await b({
100
- url: `${i}/${a != null ? `${a}/` : ""}updateDefinition`,
101
- portal: l,
104
+ const a = await S({
105
+ url: `${i}/${l != null ? `${l}/` : ""}updateDefinition`,
106
+ portal: t,
102
107
  method: "post",
103
108
  params: {
104
109
  updateDefinition: JSON.stringify({ fields: s })
105
110
  }
106
111
  });
107
- return t.success === !1 || t.error ? {
112
+ return a.success === !1 || a.error ? {
108
113
  error: {
109
114
  code: "unhandledError",
110
- message: t.error?.message ?? "Failed to update the feature service definition."
115
+ message: a.error?.message ?? "Failed to update the feature service definition."
111
116
  }
112
- } : { result: t };
113
- } catch (t) {
114
- return console.error("Error updating the feature service definition:", t), {
117
+ } : { result: a };
118
+ } catch (a) {
119
+ return console.error("Error updating the feature service definition:", a), {
115
120
  error: {
116
121
  code: "unhandledError"
117
122
  }
118
123
  };
119
124
  }
120
125
  }
121
- async function L(s) {
126
+ async function N(s) {
122
127
  const { url: e } = s;
123
128
  if (!e)
124
129
  return { error: { code: "unhandledError" } };
125
130
  try {
126
- return { result: (await m(e, { query: { f: "json" } })).data };
127
- } catch (l) {
128
- return console.error("Error getting service info:", l), { error: { code: "unhandledError" } };
131
+ return { result: (await f(e, { query: { f: "json" } })).data };
132
+ } catch (t) {
133
+ return console.error("Error getting service info:", t), { error: { code: "unhandledError" } };
129
134
  }
130
135
  }
131
- const A = (s, e) => {
132
- const l = s.domain ?? null, a = e.domain ?? null;
133
- return l === null || a === null ? l === a : l.type !== a.type ? !1 : l.type === "codedValue" && a.type === "codedValue" ? l.name === a.name && l.codedValues.length === a.codedValues.length && l.codedValues.every(
134
- ({ code: i, name: t }, n) => i === a.codedValues[n]?.code && t === a.codedValues[n]?.name
135
- ) : l.type === "range" && a.type === "range" ? l.name === a.name && l.range[0] === a.range[0] && l.range[1] === a.range[1] : !0;
136
- }, z = (s, e) => {
137
- const l = new Map(e.map((t) => [t.name, t])), a = [], i = [];
138
- for (const t of s) {
139
- const n = l.get(t.name);
140
- n ? A(t, n) || i.push({ name: t.name, domain: t.domain }) : a.push(t);
136
+ const k = (s, e) => {
137
+ const t = s.domain ?? null, l = e.domain ?? null;
138
+ return t === null || l === null ? t === l : t.type !== l.type ? !1 : t.type === "codedValue" && l.type === "codedValue" ? t.codedValues.length === l.codedValues.length && t.codedValues.every(
139
+ ({ code: i, name: a }, r) => i === l.codedValues[r]?.code && a === l.codedValues[r]?.name
140
+ ) : t.type === "range" && l.type === "range" ? t.range[0] === l.range[0] && t.range[1] === l.range[1] : !0;
141
+ }, $ = (s, e) => {
142
+ const t = new Map(e.map((a) => [a.name, a])), l = [], i = [];
143
+ for (const a of s) {
144
+ const r = t.get(a.name);
145
+ r ? k(a, r) || i.push({ name: a.name, domain: a.domain }) : l.push(a);
141
146
  }
142
- return { missingFields: a, modifiedFields: i };
143
- }, g = (s) => {
147
+ return { missingFields: l, modifiedFields: i };
148
+ }, B = (s) => {
144
149
  switch (s) {
145
150
  case "esriGeometryPolyline":
146
151
  case "esriGeometryPolygon":
147
- return [...G];
152
+ return [...U];
148
153
  case "esriGeometryPoint":
149
- return [...R];
154
+ return [...K];
150
155
  default:
151
156
  return [];
152
157
  }
153
- }, x = (s) => s === "esriGeometryPoint" ? [...E] : [], w = (s) => s === "esriGeometryPoint" ? [...N] : [], G = [
158
+ }, F = (s) => s === "esriGeometryPoint" ? [...Y] : [], q = (s) => s === "esriGeometryPoint" ? [...H] : [], U = [
154
159
  {
155
160
  name: "esrignss_avg_h_rms",
156
161
  type: "esriFieldTypeDouble",
@@ -222,7 +227,7 @@ const A = (s, e) => {
222
227
  domain: null,
223
228
  defaultValue: null
224
229
  }
225
- ], R = [
230
+ ], K = [
226
231
  {
227
232
  name: "esrignss_speed",
228
233
  type: "esriFieldTypeDouble",
@@ -633,7 +638,7 @@ const A = (s, e) => {
633
638
  domain: null,
634
639
  defaultValue: null
635
640
  }
636
- ], E = [
641
+ ], Y = [
637
642
  {
638
643
  name: "esrisnsr_tilt_azimuth_accuracy",
639
644
  type: "esriFieldTypeDouble",
@@ -691,7 +696,7 @@ const A = (s, e) => {
691
696
  },
692
697
  defaultValue: null
693
698
  }
694
- ], N = [
699
+ ], H = [
695
700
  {
696
701
  name: "esrignss_cp1_latitude",
697
702
  type: "esriFieldTypeDouble",
@@ -1180,77 +1185,107 @@ const A = (s, e) => {
1180
1185
  defaultValue: null
1181
1186
  }
1182
1187
  ];
1183
- function M(s) {
1184
- const e = s.capabilities;
1185
- return e?.data?.supportsAttachment && e?.operations?.supportsQueryAttachments;
1186
- }
1187
- function $(s) {
1188
- return s.every(M);
1188
+ function j(s) {
1189
+ if (s.geometryType === "polyline" || s.geometryType === "polygon") {
1190
+ const e = s.capabilities;
1191
+ return e?.data?.supportsAttachment && e?.operations?.supportsQueryAttachments;
1192
+ }
1193
+ return !0;
1189
1194
  }
1190
- const B = ["point", "polyline", "polygon"], T = (s) => s?.type === "Feature Service";
1191
- class k extends P {
1195
+ const W = (s) => s.every(j), X = ["point", "polyline", "polygon"], J = (s) => s?.type === "Feature Service", P = (s) => J(s) && !s.typeKeywords.some((e) => ["View Service", "Multi Services View"].includes(e));
1196
+ class Q extends A {
1192
1197
  constructor() {
1193
- super(...arguments), this.messages = S({ blocking: !0 }), this.initCount = 0, this.supportsAttachments = !1, this.layersLoaded = !1, this.pointLayers = [], this.lineOrPolygonLayers = [], this.loadedItem = null, this.gpsFieldFixesBySet = null, this.addFieldsDisabled = !0, this.initializing = !0, this.hasLineOrPolygonLayer = !1, this.hasPointFeatureLayer = !1, this.addingGPSFieldMetadata = [], this.item = null, this.itemId = null, this.arcgisGPSMetadataFieldsAdded = h(), this.arcgisReadOnlyMode = h();
1198
+ super(...arguments), this.messages = z({ blocking: !0 }), this.initCount = 0, this.layersLoaded = !1, this.pointLayers = [], this.lineOrPolygonLayers = [], this.loadedItem = null, this.gpsFieldFixesBySet = null, this.addFieldsDisabled = !0, this.initializing = !0, this.hasLineOrPolygonLayer = !1, this.hasPointFeatureLayer = !1, this.addingGPSFieldMetadata = [], this.item = null, this.itemId = null, this.canShowAddGPSMetadata = !1, this.supportsAttachments = !0, this.areSourceSchemaChangesAllowed = !0, this.messageOverrides = {}, this.arcgisPropertyChange = w()("canShowAddGPSMetadata", "supportsAttachments", "areSourceSchemaChangesAllowed"), this.arcgisGPSMetadataFieldsAdded = b(), this.arcgisReadOnlyMode = b();
1194
1199
  }
1195
1200
  static {
1196
- this.properties = { loadedItem: 16, gpsFieldFixesBySet: 16, addFieldsDisabled: 16, initializing: 16, hasLineOrPolygonLayer: 16, hasPointFeatureLayer: 16, addingGPSFieldMetadata: 16, item: 0, itemId: 1, portal: 0 };
1201
+ this.properties = { loadedItem: 16, gpsFieldFixesBySet: 16, addFieldsDisabled: 16, initializing: 16, hasLineOrPolygonLayer: 16, hasPointFeatureLayer: 16, addingGPSFieldMetadata: 16, item: 0, itemId: 1, portal: 0, canShowAddGPSMetadata: 32, supportsAttachments: 32, areSourceSchemaChangesAllowed: 32, messageOverrides: 0 };
1197
1202
  }
1198
1203
  static {
1199
- this.styles = D;
1204
+ this.styles = R;
1205
+ }
1206
+ connectedCallback() {
1207
+ super.connectedCallback(), this.hasUpdated && this.initItem();
1200
1208
  }
1201
1209
  willUpdate(e) {
1202
1210
  (e.has("item") || e.has("itemId")) && this.initItem();
1203
1211
  }
1204
1212
  async initItem({ showLoading: e = !0 } = {}) {
1205
- const l = ++this.initCount;
1213
+ const t = ++this.initCount;
1206
1214
  if (!this.item && !this.itemId) {
1207
1215
  this.resetItemState(), this.initializing = !1;
1208
1216
  return;
1209
1217
  }
1210
1218
  e && (this.resetItemState(), this.initializing = !0);
1211
- const { item: a, itemId: i, portal: t } = this, n = a ? await a.load() : await new O({
1219
+ const { item: l, itemId: i, portal: a } = this;
1220
+ if (l?.type && !P(l)) {
1221
+ this.resetItemState(), this.initializing = !1;
1222
+ return;
1223
+ }
1224
+ const r = l ? await l.load() : await new C({
1212
1225
  id: i,
1213
- portal: t
1226
+ portal: a
1214
1227
  }).load();
1215
- if (!this.isCurrentInitialization(l))
1228
+ if (!this.isCurrentInitialization(t))
1216
1229
  return;
1217
- if (!T(n)) {
1230
+ if (!P(r)) {
1218
1231
  this.resetItemState(), this.initializing = !1;
1219
1232
  return;
1220
1233
  }
1221
- this.loadedItem = n;
1222
- const r = !e && this.layersLoaded ? [...this.pointLayers, ...this.lineOrPolygonLayers] : await this.getFeatureLayers(n), { result: y } = await L(n);
1223
- if (!this.isCurrentInitialization(l))
1234
+ this.loadedItem = r;
1235
+ const n = !e && this.layersLoaded ? [...this.pointLayers, ...this.lineOrPolygonLayers] : await this.getFeatureLayers(r);
1236
+ if (!this.isCurrentInitialization(t))
1224
1237
  return;
1225
- this.layersLoaded = !0, this.pointLayers = r.filter((d) => d.geometryType === "point"), this.lineOrPolygonLayers = r.filter((d) => d.geometryType === "polyline" || d.geometryType === "polygon"), this.hasLineOrPolygonLayer = r.some((d) => d.geometryType === "polyline" || d.geometryType === "polygon"), this.hasPointFeatureLayer = r.some((d) => d.geometryType === "point");
1226
- const { result: o, error: u } = r.length > 0 ? await v({ item: n, layers: r }) : {};
1227
- if (!this.isCurrentInitialization(l))
1238
+ if (n.length === 0) {
1239
+ this.resetItemState(), this.initializing = !1;
1228
1240
  return;
1229
- if (u) {
1241
+ }
1242
+ const p = await G(r.id, r.portal, {
1243
+ relationshipType: "Service2Service"
1244
+ });
1245
+ if (!this.isCurrentInitialization(t))
1246
+ return;
1247
+ if (p?.data?.relatedItems?.some((d) => ["WMTS", "Map Service", "Vector Tile Service"].includes(d.type))) {
1230
1248
  this.resetItemState(), this.initializing = !1;
1231
1249
  return;
1232
1250
  }
1233
- const p = o ?? /* @__PURE__ */ new Map();
1251
+ this.layersLoaded = !0, this.pointLayers = n.filter((d) => d.geometryType === "point"), this.lineOrPolygonLayers = n.filter((d) => d.geometryType === "polyline" || d.geometryType === "polygon"), this.hasLineOrPolygonLayer = n.some((d) => d.geometryType === "polyline" || d.geometryType === "polygon"), this.hasPointFeatureLayer = n.some((d) => d.geometryType === "point"), T(() => this.canShowAddGPSMetadata = !0);
1252
+ const { result: o } = await N(r);
1253
+ if (!this.isCurrentInitialization(t))
1254
+ return;
1255
+ const { result: m, error: h } = await _({
1256
+ item: r,
1257
+ layers: n
1258
+ });
1259
+ if (!this.isCurrentInitialization(t))
1260
+ return;
1261
+ if (h) {
1262
+ this.resetItemState(), this.initializing = !1;
1263
+ return;
1264
+ }
1265
+ const g = m ?? /* @__PURE__ */ new Map();
1234
1266
  this.gpsFieldFixesBySet = {
1235
- base: this.analyzeFieldSet([...this.pointLayers, ...this.lineOrPolygonLayers], p, "base"),
1236
- gnss: this.analyzeFieldSet(this.pointLayers, p, "gnss"),
1237
- rangefinder: this.analyzeFieldSet(this.pointLayers, p, "rangefinder")
1238
- }, this.supportsAttachments = $(r);
1239
- const _ = y?.sourceSchemaChangesAllowed !== !1;
1240
- this.addFieldsDisabled = !this.supportsAttachments || !_, this.initializing = !1;
1267
+ base: this.analyzeFieldSet([...this.pointLayers, ...this.lineOrPolygonLayers], g, "base"),
1268
+ gnss: this.analyzeFieldSet(this.pointLayers, g, "gnss"),
1269
+ rangefinder: this.analyzeFieldSet(this.pointLayers, g, "rangefinder")
1270
+ }, T(() => {
1271
+ this.supportsAttachments = W(n), this.areSourceSchemaChangesAllowed = o?.sourceSchemaChangesAllowed !== !1;
1272
+ }), this.addFieldsDisabled = !this.supportsAttachments || !this.areSourceSchemaChangesAllowed, this.initializing = !1;
1241
1273
  }
1242
1274
  isCurrentInitialization(e) {
1243
1275
  return e === this.initCount;
1244
1276
  }
1245
1277
  resetItemState() {
1246
- this.loadedItem = null, this.layersLoaded = !1, this.pointLayers = [], this.lineOrPolygonLayers = [], this.gpsFieldFixesBySet = null, this.addFieldsDisabled = !0, this.hasLineOrPolygonLayer = !1, this.hasPointFeatureLayer = !1;
1278
+ T(() => {
1279
+ this.canShowAddGPSMetadata = !1, this.supportsAttachments = !0, this.areSourceSchemaChangesAllowed = !0;
1280
+ }), this.loadedItem = null, this.layersLoaded = !1, this.pointLayers = [], this.lineOrPolygonLayers = [], this.gpsFieldFixesBySet = null, this.addFieldsDisabled = !0, this.hasLineOrPolygonLayer = !1, this.hasPointFeatureLayer = !1;
1247
1281
  }
1248
1282
  async getFeatureLayers(e) {
1249
- const l = await q.fromPortalItem({ portalItem: e });
1250
- return await l.load(), "layers" in l ? (await Promise.all(l.layers.map(async (i) => (await i.load(), this.isSupportedFeatureLayer(i) ? i : null)))).filter((i) => !!i) : this.isSupportedFeatureLayer(l) ? [l] : [];
1283
+ const t = await I.fromPortalItem({ portalItem: e });
1284
+ return await t.load(), "layers" in t ? (await Promise.all(t.layers.map(async (i) => (await i.load(), this.isSupportedFeatureLayer(i) ? i : null)))).filter((i) => !!i) : this.isSupportedFeatureLayer(t) ? [t] : [];
1251
1285
  }
1252
1286
  isSupportedFeatureLayer(e) {
1253
- return e.type === "feature" && B.some((l) => l === e.geometryType);
1287
+ const t = e;
1288
+ return e.type === "feature" && X.some((l) => l === t.geometryType);
1254
1289
  }
1255
1290
  getCompatibleEsriGeometryType(e) {
1256
1291
  switch (e.geometryType) {
@@ -1264,14 +1299,14 @@ class k extends P {
1264
1299
  return null;
1265
1300
  }
1266
1301
  }
1267
- analyzeFieldSet(e, l, a) {
1302
+ analyzeFieldSet(e, t, l) {
1268
1303
  const i = [];
1269
- for (const t of e) {
1270
- if (t.layerId == null)
1304
+ for (const a of e) {
1305
+ if (a.layerId == null)
1271
1306
  continue;
1272
- const n = l.get(t.layerId) ?? [], r = this.getCompatibleEsriGeometryType(t), y = r ? a === "base" ? g(r) : a === "gnss" ? x(r) : w(r) : [], o = z(y, n);
1307
+ const r = t.get(a.layerId) ?? [], n = this.getCompatibleEsriGeometryType(a), p = n ? l === "base" ? B(n) : l === "gnss" ? F(n) : q(n) : [], o = $(p, r);
1273
1308
  (o.missingFields.length > 0 || o.modifiedFields.length > 0) && i.push({
1274
- layerId: t.layerId,
1309
+ layerId: a.layerId,
1275
1310
  fieldsToAdd: o.missingFields,
1276
1311
  domainsToUpdate: o.modifiedFields
1277
1312
  });
@@ -1285,46 +1320,59 @@ class k extends P {
1285
1320
  return this.addingGPSFieldMetadata.includes(e);
1286
1321
  }
1287
1322
  async addFields(e) {
1288
- const l = this.portal ?? this.loadedItem?.portal, a = this.loadedItem, i = this.gpsFieldFixesBySet;
1289
- if (!(!l || !a || !i)) {
1290
- if (l.isReadOnly) {
1291
- this.arcgisReadOnlyMode.emit();
1323
+ const t = this.portal ?? this.loadedItem?.portal, l = this.loadedItem, i = this.gpsFieldFixesBySet;
1324
+ if (!t || !l || !i)
1325
+ return;
1326
+ if (t.isReadOnly) {
1327
+ this.arcgisReadOnlyMode.emit();
1328
+ return;
1329
+ }
1330
+ this.addingGPSFieldMetadata = [...this.addingGPSFieldMetadata, e];
1331
+ const a = [...this.pointLayers, ...this.lineOrPolygonLayers];
1332
+ try {
1333
+ const r = i[e], p = (await Promise.all(r.filter(({ fieldsToAdd: u }) => u.length > 0).map(async ({ fieldsToAdd: u, layerId: y }) => await E({ fields: u, item: l, layerId: y, portal: t })))).every(({ error: u }) => !u), o = p ? await Promise.all(r.filter(({ domainsToUpdate: u }) => u.length > 0).map(async ({ domainsToUpdate: u, layerId: y }) => await M({ fields: u, item: l, layerId: y, portal: t }))) : [], m = p && o.every(({ error: u }) => !u);
1334
+ if (!m || this.loadedItem !== l)
1292
1335
  return;
1293
- }
1294
- this.addingGPSFieldMetadata = [...this.addingGPSFieldMetadata, e];
1295
- try {
1296
- const t = i[e], r = (await Promise.all(t.filter(({ fieldsToAdd: u }) => u.length > 0).map(async ({ fieldsToAdd: u, layerId: p }) => await I({ fields: u, item: a, layerId: p, portal: l })))).every(({ error: u }) => !u), y = r ? await Promise.all(t.filter(({ domainsToUpdate: u }) => u.length > 0).map(async ({ domainsToUpdate: u, layerId: p }) => await C({ fields: u, item: a, layerId: p, portal: l }))) : [], o = r && y.every(({ error: u }) => !u);
1297
- await this.initItem({ showLoading: !1 }), r && o && this.gpsFieldFixesBySet && !this.hasFieldChanges(e) && this.arcgisGPSMetadataFieldsAdded.emit(e);
1298
- } finally {
1299
- this.addingGPSFieldMetadata = this.addingGPSFieldMetadata.filter((t) => t !== e);
1300
- }
1336
+ let h;
1337
+ if (await x(async () => {
1338
+ if (this.loadedItem !== l)
1339
+ return !0;
1340
+ const { result: u, error: y } = await _({ item: l, layers: a });
1341
+ if (y || this.loadedItem !== l)
1342
+ return !0;
1343
+ if (!u)
1344
+ return !1;
1345
+ const V = e === "base" ? a : a.filter((v) => v.geometryType === "point");
1346
+ return this.analyzeFieldSet(V, u, e).length > 0 ? !1 : (h = u, !0);
1347
+ }, 10) || console.warn("Fields were not verified on the service.", {
1348
+ itemId: l.id,
1349
+ fieldSet: e
1350
+ }), !h || this.loadedItem !== l)
1351
+ return;
1352
+ await this.initItem({ showLoading: !1 }), p && m && this.gpsFieldFixesBySet && !this.hasFieldChanges(e) && this.arcgisGPSMetadataFieldsAdded.emit(e);
1353
+ } finally {
1354
+ this.addingGPSFieldMetadata = this.addingGPSFieldMetadata.filter((r) => r !== e);
1301
1355
  }
1302
1356
  }
1303
- canShowAddGPSMetadata() {
1304
- const e = this.loadedItem ?? this.item;
1305
- return !!e && T(e);
1306
- }
1307
1357
  showAdvancedFields() {
1308
1358
  const e = this.gpsFieldFixesBySet;
1309
- return !this.hasPointFeatureLayer || !e ? !1 : this.pointLayers.some((l) => {
1310
- if (l.layerId == null)
1311
- return !1;
1312
- const a = this.getCompatibleEsriGeometryType(l), i = a ? g(a) : [];
1313
- return (e.base.find(({ layerId: n }) => n === l.layerId)?.fieldsToAdd ?? []).length < i.length;
1314
- });
1359
+ return !this.hasPointFeatureLayer || !e ? !1 : this.hasFieldChanges("base") ? this.pointLayers.some((t) => t.layerId == null ? !1 : ["gnss", "rangefinder"].some((l) => {
1360
+ const i = l === "gnss" ? F("esriGeometryPoint") : q("esriGeometryPoint");
1361
+ return (e[l].find(({ layerId: r }) => r === t.layerId)?.fieldsToAdd ?? []).length < i.length;
1362
+ })) : !0;
1315
1363
  }
1316
- renderAddFieldsControl(e, l = !1) {
1317
- const a = this.gpsFieldFixesBySet;
1318
- if (!l && a && !this.hasFieldChanges(e))
1364
+ renderAddFieldsControl(e, t = !1) {
1365
+ const l = this.gpsFieldFixesBySet;
1366
+ if (!t && l && !this.hasFieldChanges(e))
1319
1367
  return c`<span slot=actions-end class="added"><calcite-icon icon=check-circle scale=s aria-hidden></calcite-icon>${this.messages.added}</span>`;
1320
1368
  const i = this.isLoading(e);
1321
- return c`<calcite-button slot=actions-end appearance=outline-fill .disabled=${l || !a || i || this.addFieldsDisabled} .loading=${i} @click=${async () => await this.addFields(e)}>${i ? this.messages.addingFields : this.messages.addFields}</calcite-button>`;
1369
+ return c`<calcite-button slot=actions-end class="add-fields-button" appearance=outline-fill .disabled=${t || !l || i || this.addFieldsDisabled} .loading=${i} @click=${async () => await this.addFields(e)}>${i ? this.messages.addingFields : this.messages.addFields}</calcite-button>`;
1322
1370
  }
1323
1371
  render() {
1324
- return this.canShowAddGPSMetadata() ? c`<div class="scrim-container"><calcite-block scale=m expanded>${this.initializing && c`<calcite-scrim loading></calcite-scrim>` || ""}<calcite-list .label=${this.messages.gpsOptions} selection-mode=none><calcite-list-item .label=${this.messages.accordionHeading}>${this.renderAddFieldsControl("base")}</calcite-list-item>${this.showAdvancedFields() && c`<calcite-list-item .label=${this.messages.gnssReceiverFields}>${this.renderAddFieldsControl("gnss")}</calcite-list-item><calcite-list-item .label=${this.messages.laserRangefinderFields}>${this.renderAddFieldsControl("rangefinder")}</calcite-list-item>` || ""}</calcite-list></calcite-block></div>` : null;
1372
+ return this.canShowAddGPSMetadata ? c`<div class="scrim-container"><calcite-block scale=m expanded>${this.initializing && c`<calcite-scrim loading></calcite-scrim>` || ""}<calcite-list .label=${this.messages.gpsOptions} selection-mode=none><calcite-list-item .label=${this.messages.accordionHeading}>${this.renderAddFieldsControl("base")}</calcite-list-item>${this.showAdvancedFields() && c`<calcite-list-item .label=${this.messages.gnssReceiverFields}>${this.renderAddFieldsControl("gnss")}</calcite-list-item><calcite-list-item .label=${this.messages.laserRangefinderFields}>${this.renderAddFieldsControl("rangefinder")}</calcite-list-item>` || ""}</calcite-list></calcite-block></div>` : null;
1325
1373
  }
1326
1374
  }
1327
- F("arcgis-portal-add-gps-metadata", k);
1375
+ D("arcgis-portal-add-gps-metadata", Q);
1328
1376
  export {
1329
- k as ArcgisPortalAddGpsMetadata
1377
+ Q as ArcgisPortalAddGpsMetadata
1330
1378
  };
@@ -1,11 +1,13 @@
1
1
  /// <reference path="../../index.d.ts" />
2
2
  import type Portal from "@arcgis/core/portal/Portal.js";
3
3
  import type PortalUser from "@arcgis/core/portal/PortalUser.js";
4
+ import type { ArcgisAssistant } from "@arcgis/ai-components/components/arcgis-assistant";
4
5
  import type { Config } from "@arcgis/core/config.js";
5
6
  import type { PublicLitElement as LitElement } from "@arcgis/lumina";
7
+ import type { PortalAssistantCurrentContext } from "../../types/portalAssistantCurrentContext.js";
6
8
  import type { PartialPortalNavigationTargetMap, PortalNavigationTarget } from "./types/navigation.js";
7
- import type { CapabilityRegistry } from "./data/capability-registries/types.js";
8
9
  import type { PortalAssistantTools } from "./types/assistantTools.js";
10
+ import type { PortalAssistantEntityToolPresets } from "./types/portalEntityTools.js";
9
11
  import type { T9nMeta } from "@arcgis/lumina/controllers";
10
12
 
11
13
  /** @internal */
@@ -13,17 +15,35 @@ export abstract class ArcgisPortalAiAssistant extends LitElement {
13
15
  /** @default false */
14
16
  accessor autoDestroyDisabled: boolean;
15
17
  accessor config: Config;
18
+ /**
19
+ * The item, group, or organization displayed in the host application's current view.
20
+ * The AI assistant uses this context to understand references such as "this item".
21
+ * Assign a new object when the view changes, or `undefined` when there is no current entity.
22
+ */
23
+ accessor currentContext: PortalAssistantCurrentContext | undefined;
16
24
  /** @default false */
17
25
  accessor defaultClosed: boolean;
18
- /** Optional per-agent disabled map. Any missing key defaults to enabled. */
19
- accessor disabledAgents: PortalAiAssistantDisabledAgents | undefined;
20
- accessor navigationCapabilities: CapabilityRegistry | undefined;
26
+ /** Disables the tool agent when `tools` is true. Omitted means enabled. */
27
+ accessor disabledAgents: { tools?: boolean; } | undefined;
28
+ /** Entity types offered by askUser for explicit picker selection. Omitted entity types are enabled. */
29
+ accessor entityToolPresets: PortalAssistantEntityToolPresets | undefined;
21
30
  /** Optional map of navigation target overrides for generating navigation hrefs from portal navigation suggestions. */
22
31
  accessor navigationTargetMap: PartialPortalNavigationTargetMap | undefined;
32
+ /**
33
+ * Enables runtime tracing and opens a movable, resizable developer diagnostics window.
34
+ * Recorded inputs and outputs may contain sensitive data. Disable when diagnostics are not needed.
35
+ * Set before starting a conversation; changing this flag reinitializes the assistant runtime.
36
+ * Closing the window preserves recorded history and tracing. Reopen it from the assistant header.
37
+ * Disabling removes the panel and its recorded history.
38
+ *
39
+ * @default false
40
+ */
41
+ accessor observabilityEnabled: boolean;
23
42
  accessor portal: Portal;
24
43
  /** @internal */
25
44
  protected t9n: {
26
45
  heading: string;
46
+ diagnostics: string;
27
47
  placeholder: string;
28
48
  askMeAQuestionPlaceholder: string;
29
49
  emptyStateMessage: string;
@@ -93,6 +113,7 @@ export abstract class ArcgisPortalAiAssistant extends LitElement {
93
113
  };
94
114
  } & T9nMeta<{
95
115
  heading: string;
116
+ diagnostics: string;
96
117
  placeholder: string;
97
118
  askMeAQuestionPlaceholder: string;
98
119
  emptyStateMessage: string;
@@ -166,15 +187,23 @@ export abstract class ArcgisPortalAiAssistant extends LitElement {
166
187
  *
167
188
  * The factory receives Portal-provided `tool` and
168
189
  * `requestPortalAssistantUiAction` helpers.
190
+ * Configure tools before starting a conversation; live replacement during a running turn is not supported.
191
+ * Tool interrupts must treat a `false` response as rejection. User cancellation resumes the agent
192
+ * with that response; it does not approve the tool or stop the entire conversation.
169
193
  */
170
194
  accessor tools: PortalAssistantTools | undefined;
195
+ accessor user: PortalUser;
171
196
  /**
172
- * When true, uses the production documentation assistant endpoint instead of portal helper services.
197
+ * Submits a message after the Portal AI assistant has finished initializing.
173
198
  *
174
- * @default false
199
+ * @param args
200
+ * @example
201
+ * ```js
202
+ * const assistant = document.querySelector("arcgis-portal-ai-assistant");
203
+ * await assistant.submitMessage("Summarize this group.");
204
+ * ```
175
205
  */
176
- accessor useProdDocAssistant: boolean;
177
- accessor user: PortalUser;
206
+ submitMessage(...args: Parameters<ArcgisAssistant["submitMessage"]>): Promise<void>;
178
207
  readonly arcgisPortalNavigationRequest: import("@arcgis/lumina").TargetedEvent<this, {
179
208
  href: string;
180
209
  targetDetail: PortalNavigationTarget;
@@ -182,10 +211,4 @@ export abstract class ArcgisPortalAiAssistant extends LitElement {
182
211
  readonly "@eventTypes": {
183
212
  arcgisPortalNavigationRequest: ArcgisPortalAiAssistant["arcgisPortalNavigationRequest"]["detail"];
184
213
  };
185
- }
186
-
187
- /** @internal */
188
- export type PortalAiAssistantDisabledAgents = Partial<Record<PortalAiAssistantAgentKey, boolean>>;
189
-
190
- /** @internal */
191
- export type PortalAiAssistantAgentKey = "docAssistant" | "groupAnalytics" | "groupCreation" | "itemAnalytics" | "navigation" | "tools";
214
+ }