@arcgis/portal-components 6.0.0-next.3 → 6.0.0-next.30

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 (307) hide show
  1. package/dist/cdn/234TH32X.js +106 -0
  2. package/dist/cdn/{Z6R3C4AK.js → 2W3O3KBH.js} +1 -1
  3. package/dist/cdn/2XRZP4QI.js +2 -0
  4. package/dist/cdn/365ICWHN.js +2 -0
  5. package/dist/cdn/{RHCRPJWS.js → 47EZWWY7.js} +1 -1
  6. package/dist/cdn/4PL5CXXD.js +2 -0
  7. package/dist/cdn/4QYVBXZT.js +2 -0
  8. package/dist/cdn/{K75JTQPW.js → 4VLEUN7I.js} +1 -1
  9. package/dist/cdn/{JPUUMGX5.js → 4XFXM76G.js} +1 -1
  10. package/dist/cdn/5BVGWSPJ.js +2 -0
  11. package/dist/cdn/{2TDHJSMP.js → 5MZ64QM7.js} +1 -1
  12. package/dist/cdn/{K2XSYDAP.js → 657KMT6Y.js} +1 -1
  13. package/dist/cdn/{JWBUJT43.js → 6P7WYZZS.js} +1 -1
  14. package/dist/cdn/76IANSI7.js +2 -0
  15. package/dist/cdn/7DBQRL5U.js +2 -0
  16. package/dist/cdn/{MKSFNVXL.js → 7ECLKNGV.js} +1 -1
  17. package/dist/cdn/7HNMTPSD.js +2 -0
  18. package/dist/cdn/AEJPC2Q5.js +2 -0
  19. package/dist/cdn/AHJDGTDG.js +2 -0
  20. package/dist/cdn/{D2YQWKME.js → ASID6YW7.js} +2 -2
  21. package/dist/cdn/{IN4JPZTY.js → BDMPW4YT.js} +1 -1
  22. package/dist/cdn/{NWVLGU2C.js → BNDM7DRY.js} +1 -1
  23. package/dist/cdn/BPFX6I6Z.js +2 -0
  24. package/dist/cdn/{SGDDFWCJ.js → CB3UEA5V.js} +1 -1
  25. package/dist/cdn/CFNR4XS2.js +91 -0
  26. package/dist/cdn/CHJAALGF.js +2 -0
  27. package/dist/cdn/{JE2376SE.js → COET6FWR.js} +1 -1
  28. package/dist/cdn/DOU2QZP5.js +2 -0
  29. package/dist/cdn/{QTAYXO5T.js → DSJOBYW5.js} +1 -1
  30. package/dist/cdn/EQZYUMUN.js +2 -0
  31. package/dist/cdn/{TRMFL7PT.js → ESKKH4DE.js} +1 -1
  32. package/dist/cdn/EY37MGL2.js +2 -0
  33. package/dist/cdn/{DDBXEXOV.js → F5T3DTCW.js} +1 -1
  34. package/dist/cdn/FCGMSMBW.js +2 -0
  35. package/dist/cdn/FGRMURKX.js +2 -0
  36. package/dist/cdn/FICE62PO.js +2 -0
  37. package/dist/cdn/FN2QMDEW.js +2 -0
  38. package/dist/cdn/GJP72ONW.js +2 -0
  39. package/dist/cdn/GQTAE72S.js +2 -0
  40. package/dist/cdn/{M5PPX4ZX.js → GRQLUOSD.js} +1 -1
  41. package/dist/cdn/{EY5S6ICQ.js → GW6SI25C.js} +1 -1
  42. package/dist/cdn/H6OQOEHS.js +2 -0
  43. package/dist/cdn/{I6IRHXWR.js → HH5DBWJ2.js} +1 -1
  44. package/dist/cdn/HNVQMOOU.js +2 -0
  45. package/dist/cdn/IMFTTYIV.js +2 -0
  46. package/dist/cdn/{J5NPDIZM.js → ITGOCCZZ.js} +1 -1
  47. package/dist/cdn/{GAF4YT5N.js → IUIFCQQU.js} +1 -1
  48. package/dist/cdn/JD6QT6IC.js +2 -0
  49. package/dist/cdn/JTSFNRWR.js +2 -0
  50. package/dist/cdn/K3GAZFRI.js +63 -0
  51. package/dist/cdn/K6NEES4K.js +2 -0
  52. package/dist/cdn/K6YTIB74.js +2 -0
  53. package/dist/cdn/KRORL7QC.js +2 -0
  54. package/dist/cdn/{TXC7YBGL.js → KWZIYNDC.js} +1 -1
  55. package/dist/cdn/{3NSHGKZA.js → L2P23REA.js} +1 -1
  56. package/dist/cdn/L3A3L7FY.js +2 -0
  57. package/dist/cdn/L3JSQQUK.js +2 -0
  58. package/dist/cdn/LGRW3SGR.js +2 -0
  59. package/dist/cdn/MDOMTVQY.js +2 -0
  60. package/dist/cdn/{YZTBAUIO.js → MDYX3ON3.js} +1 -1
  61. package/dist/cdn/{AXOBMX3S.js → MLTZSPZQ.js} +1 -1
  62. package/dist/cdn/MSOJ4BDB.js +2 -0
  63. package/dist/cdn/MSSJRDR7.js +2 -0
  64. package/dist/cdn/NHVPNSNH.js +2 -0
  65. package/dist/cdn/{JN23JH3T.js → NK474LV6.js} +1 -1
  66. package/dist/cdn/{24QSQLRY.js → NNILBERZ.js} +1 -1
  67. package/dist/cdn/NO5VHQVY.js +2 -0
  68. package/dist/cdn/{VNU4QX7M.js → NQ2IAQKL.js} +17 -17
  69. package/dist/cdn/{7LMZHJZG.js → NYOXMT6S.js} +1 -1
  70. package/dist/cdn/{OR6T5SB3.js → O2H6SPV3.js} +1 -1
  71. package/dist/cdn/O4YFPGD5.js +2 -0
  72. package/dist/cdn/OHAQPQAP.js +2 -0
  73. package/dist/cdn/OHEJPZ35.js +2 -0
  74. package/dist/cdn/OQ2JULON.js +2 -0
  75. package/dist/cdn/OUFJRLPQ.js +4 -0
  76. package/dist/cdn/OW67EEOH.js +2 -0
  77. package/dist/cdn/P4XDOAK2.js +2 -0
  78. package/dist/cdn/PU7NVVTN.js +2 -0
  79. package/dist/cdn/{CFRJU6VA.js → QE64NUUD.js} +1 -1
  80. package/dist/cdn/R3IQ7OYN.js +70 -0
  81. package/dist/cdn/R5LNWMD4.js +2 -0
  82. package/dist/cdn/RT26JZP5.js +2 -0
  83. package/dist/cdn/{TWCJJCPC.js → S4Y7FPSQ.js} +1 -1
  84. package/dist/cdn/SCZ2GY3E.js +2 -0
  85. package/dist/cdn/{URQML7KV.js → SF7P7MND.js} +1 -1
  86. package/dist/cdn/SRWFOV5W.js +2 -0
  87. package/dist/cdn/{74T6IXSN.js → TABWX4F2.js} +1 -1
  88. package/dist/cdn/{ROX3GKKA.js → TIPQ2ZWK.js} +1 -1
  89. package/dist/cdn/TOVMYLXB.js +2 -0
  90. package/dist/cdn/TP5IFB74.js +2 -0
  91. package/dist/cdn/TRPOPI34.js +2 -0
  92. package/dist/cdn/ULGME5RT.js +2 -0
  93. package/dist/cdn/UOY4FZLR.js +2 -0
  94. package/dist/cdn/{DHMNNIXZ.js → UPVGSEFX.js} +1 -1
  95. package/dist/cdn/{JIJO4CAS.js → VZPUDARW.js} +1 -1
  96. package/dist/cdn/W2MFAJEG.js +2 -0
  97. package/dist/cdn/W5AV2JMK.js +2 -0
  98. package/dist/cdn/WFPUAEJQ.js +3 -0
  99. package/dist/cdn/{7ZWYUHGK.js → WQOCWSJC.js} +1 -1
  100. package/dist/cdn/WRP5SUB4.js +2 -0
  101. package/dist/cdn/{2YZWRFCI.js → WUPQROF4.js} +1 -1
  102. package/dist/cdn/X4EHFUD4.js +2 -0
  103. package/dist/cdn/XLR4JEUA.js +2 -0
  104. package/dist/cdn/{ZKZDKJ6D.js → XMFA6QY6.js} +1 -1
  105. package/dist/cdn/XX6BL3DR.js +2 -0
  106. package/dist/cdn/YF4HTCBB.js +2 -0
  107. package/dist/cdn/{5HZNBMW6.js → YG5ZZUE4.js} +1 -1
  108. package/dist/cdn/YKFYCIOS.js +2 -0
  109. package/dist/cdn/YMVVEC2R.js +2 -0
  110. package/dist/cdn/{BKD7JSV2.js → YWWBQUH2.js} +1 -1
  111. package/dist/cdn/Z55T6COF.js +2 -0
  112. package/dist/cdn/Z7DRFGQ6.js +2 -0
  113. package/dist/cdn/ZJQ55GQG.js +2 -0
  114. package/dist/cdn/assets/portal-ai-assistant/t9n/messages.en.json +1 -1
  115. package/dist/cdn/assets/portal-entity-picker/t9n/messages.en.json +1 -1
  116. package/dist/cdn/assets/portal-item-card-sublayer-select/t9n/messages.en.json +1 -0
  117. package/dist/cdn/assets/portal-item-share-summary/t9n/messages.en.json +1 -0
  118. package/dist/cdn/index.js +1 -1
  119. package/dist/cdn/main.css +1 -1
  120. package/dist/chunks/fieldAddDelete.js +7 -7
  121. package/dist/chunks/functionalities.js +14 -9
  122. package/dist/chunks/groups.js +8 -61
  123. package/dist/chunks/groups2.js +23 -8
  124. package/dist/chunks/info.js +2 -2
  125. package/dist/chunks/item.js +131 -33
  126. package/dist/chunks/item2.js +63 -125
  127. package/dist/chunks/itemThumbnail.js +21 -21
  128. package/dist/chunks/loadClassificationData.js +26 -27
  129. package/dist/chunks/portal-delete-items-review.js +1 -1
  130. package/dist/chunks/portal-item-badge.js +1 -1
  131. package/dist/chunks/portal-related-items-list-item.js +1 -1
  132. package/dist/chunks/portal.js +6 -6
  133. package/dist/chunks/portal2.js +11 -11
  134. package/dist/chunks/portalEntitySelection.js +61 -0
  135. package/dist/chunks/query.js +13 -13
  136. package/dist/chunks/request.js +49 -41
  137. package/dist/chunks/requests.js +7 -7
  138. package/dist/chunks/selectedMentions.js +25 -0
  139. package/dist/chunks/services.js +1 -1
  140. package/dist/chunks/string.js +19 -11
  141. package/dist/chunks/ui.js +1 -0
  142. package/dist/chunks/url.js +2 -2
  143. package/dist/chunks/user.js +67 -53
  144. package/dist/chunks/utils.js +35 -22
  145. package/dist/chunks/utils2.js +4 -4
  146. package/dist/chunks/utils3.js +88 -657
  147. package/dist/chunks/utils4.js +664 -0
  148. package/dist/components/arcgis-portal-account-switcher/customElement.js +57 -54
  149. package/dist/components/arcgis-portal-add-gps-metadata/customElement.d.ts +27 -0
  150. package/dist/components/arcgis-portal-add-gps-metadata/customElement.js +185 -137
  151. package/dist/components/arcgis-portal-ai-assistant/customElement.d.ts +26 -17
  152. package/dist/components/arcgis-portal-ai-assistant/customElement.js +546 -2655
  153. package/dist/components/arcgis-portal-ai-assistant/index.js +4 -0
  154. package/dist/components/arcgis-portal-ai-assistant/tools/getItemTool.d.ts +11 -0
  155. package/dist/components/arcgis-portal-ai-assistant/tools/groups.d.ts +28 -0
  156. package/dist/components/arcgis-portal-ai-assistant/tools/users.d.ts +28 -0
  157. package/dist/components/arcgis-portal-ai-assistant/types/assistantTools.d.ts +8 -1
  158. package/dist/components/arcgis-portal-ai-assistant/types/portalEntityTools.d.ts +19 -0
  159. package/dist/components/arcgis-portal-ai-assistant-interrupt/customElement.d.ts +39 -0
  160. package/dist/components/arcgis-portal-ai-assistant-interrupt/customElement.js +67 -27
  161. package/dist/components/arcgis-portal-ai-assistant-interrupt/index.js +3 -1
  162. package/dist/components/arcgis-portal-classification-banner/customElement.js +2 -2
  163. package/dist/components/arcgis-portal-classification-config/customElement.js +2 -2
  164. package/dist/components/arcgis-portal-classification-favorite/customElement.js +2 -2
  165. package/dist/components/arcgis-portal-classification-form-element/customElement.js +1 -1
  166. package/dist/components/arcgis-portal-delete-items/customElement.d.ts +69 -3
  167. package/dist/components/arcgis-portal-delete-items/customElement.js +446 -330
  168. package/dist/components/arcgis-portal-delete-items/index.js +1 -2
  169. package/dist/components/arcgis-portal-delete-items/types.d.ts +1 -0
  170. package/dist/components/arcgis-portal-entity-picker/customElement.d.ts +51 -5
  171. package/dist/components/arcgis-portal-entity-picker/customElement.js +204 -119
  172. package/dist/components/arcgis-portal-entity-picker/index.js +2 -0
  173. package/dist/components/arcgis-portal-field-delete/customElement.js +34 -32
  174. package/dist/components/arcgis-portal-field-delete/index.js +1 -1
  175. package/dist/components/arcgis-portal-group-badges/customElement.js +5 -5
  176. package/dist/components/arcgis-portal-group-browser/customElement.js +93 -99
  177. package/dist/components/arcgis-portal-group-browser/types.d.ts +3 -7
  178. package/dist/components/arcgis-portal-group-browser-preview/customElement.js +14 -14
  179. package/dist/components/arcgis-portal-group-browser-preview-card/customElement.js +1 -4
  180. package/dist/components/arcgis-portal-group-card/customElement.js +16 -16
  181. package/dist/components/arcgis-portal-group-thumbnail/customElement.js +1 -1
  182. package/dist/components/arcgis-portal-item-card/customElement.d.ts +26 -10
  183. package/dist/components/arcgis-portal-item-card/customElement.js +90 -80
  184. package/dist/components/arcgis-portal-item-card/index.js +2 -1
  185. package/dist/components/arcgis-portal-item-card-sublayer-select/customElement.d.ts +102 -0
  186. package/dist/components/arcgis-portal-item-card-sublayer-select/customElement.js +352 -0
  187. package/dist/components/arcgis-portal-item-card-sublayer-select/index.d.ts +1 -0
  188. package/dist/components/arcgis-portal-item-card-sublayer-select/index.js +8 -0
  189. package/dist/components/arcgis-portal-item-card-sublayer-select/types.d.ts +22 -0
  190. package/dist/components/arcgis-portal-item-share-summary/customElement.d.ts +113 -0
  191. package/dist/components/arcgis-portal-item-share-summary/customElement.js +172 -0
  192. package/dist/components/arcgis-portal-item-share-summary/index.d.ts +1 -0
  193. package/dist/components/arcgis-portal-item-share-summary/index.js +5 -0
  194. package/dist/components/arcgis-portal-item-share-summary-editable/customElement.d.ts +33 -0
  195. package/dist/components/arcgis-portal-item-share-summary-editable/customElement.js +19 -0
  196. package/dist/components/arcgis-portal-item-share-summary-editable/index.d.ts +1 -0
  197. package/dist/components/arcgis-portal-item-share-summary-editable/index.js +2 -0
  198. package/dist/components/arcgis-portal-item-thumbnail/customElement.d.ts +1 -0
  199. package/dist/components/arcgis-portal-item-thumbnail/customElement.js +14 -14
  200. package/dist/components/arcgis-portal-item-type/customElement.js +1 -1
  201. package/dist/components/arcgis-portal-mentionable-text-area/customElement.js +61 -57
  202. package/dist/components/arcgis-portal-navigation/customElement.js +7 -8
  203. package/dist/components/arcgis-portal-navigation/index.js +4 -4
  204. package/dist/components/arcgis-portal-replacement-item-redirect/customElement.js +8 -8
  205. package/dist/components/arcgis-portal-review-related-items/customElement.d.ts +333 -0
  206. package/dist/components/arcgis-portal-review-related-items/customElement.js +46 -18
  207. package/dist/components/arcgis-portal-review-related-items/index.js +2 -0
  208. package/dist/components/arcgis-portal-sublayer-type/customElement.js +13 -103
  209. package/dist/components/arcgis-portal-user-popup/customElement.d.ts +1 -1
  210. package/dist/components/arcgis-portal-user-popup/customElement.js +17 -16
  211. package/dist/components/portal-group-browser-filters/customElement.js +15 -15
  212. package/dist/components/portal-related-items-list-item/customElement.js +16 -14
  213. package/dist/components/portal-related-items-list-item/index.js +1 -1
  214. package/dist/docs/api.json +1 -1
  215. package/dist/docs/docs.json +1 -1
  216. package/dist/docs/vscode.html-custom-data.json +1 -1
  217. package/dist/docs/web-types.json +1 -1
  218. package/dist/index.d.ts +31 -0
  219. package/dist/index.js +300 -6
  220. package/dist/loader.js +13 -10
  221. package/dist/services/group.d.ts +17 -0
  222. package/dist/services/groups.d.ts +9 -0
  223. package/dist/services/item.d.ts +9 -0
  224. package/dist/types/item.d.ts +11 -11
  225. package/dist/types/lumina.d.ts +31 -11
  226. package/dist/types/portalAssistantCurrentContext.d.ts +9 -0
  227. package/dist/types/portalEntityPicker.d.ts +3 -0
  228. package/dist/types/preact.d.ts +34 -11
  229. package/dist/types/react.d.ts +37 -11
  230. package/dist/types/services.d.ts +27 -1
  231. package/dist/types/stencil.d.ts +31 -11
  232. package/dist/utils/generateEmbeddings.d.ts +7 -0
  233. package/dist/utils/semanticSearch.d.ts +60 -0
  234. package/dist/utils/types.d.ts +10 -0
  235. package/package.json +10 -10
  236. package/dist/cdn/23NXHNPU.js +0 -2
  237. package/dist/cdn/2CN754CY.js +0 -2
  238. package/dist/cdn/2FQKDFEE.js +0 -2
  239. package/dist/cdn/2MPQ5IWJ.js +0 -2
  240. package/dist/cdn/3CQKCUM5.js +0 -2
  241. package/dist/cdn/3EYB5GQX.js +0 -2
  242. package/dist/cdn/3FSPL34I.js +0 -170
  243. package/dist/cdn/3LEQ37YT.js +0 -68
  244. package/dist/cdn/4MUB6TL6.js +0 -2
  245. package/dist/cdn/4PRXQFCV.js +0 -2
  246. package/dist/cdn/4QFTKB6T.js +0 -2
  247. package/dist/cdn/4TSXFX3M.js +0 -2
  248. package/dist/cdn/5C5GHX4D.js +0 -2
  249. package/dist/cdn/A2SQ4EMZ.js +0 -2
  250. package/dist/cdn/AICPYLWE.js +0 -4
  251. package/dist/cdn/AZOJHVAO.js +0 -2
  252. package/dist/cdn/BYHX3UWV.js +0 -2
  253. package/dist/cdn/CD5UWSCP.js +0 -2
  254. package/dist/cdn/DLI4XKJ3.js +0 -2
  255. package/dist/cdn/DYO5P3F2.js +0 -2
  256. package/dist/cdn/E66BDC6N.js +0 -2
  257. package/dist/cdn/EEAVX4PP.js +0 -2
  258. package/dist/cdn/EMJQI4MA.js +0 -2
  259. package/dist/cdn/FIBQAMJ3.js +0 -2
  260. package/dist/cdn/FIQZPIIK.js +0 -2
  261. package/dist/cdn/FNLBJ4ZQ.js +0 -2
  262. package/dist/cdn/FRE56NBG.js +0 -2
  263. package/dist/cdn/GSOBDGLK.js +0 -2
  264. package/dist/cdn/GXM3XY3J.js +0 -2
  265. package/dist/cdn/HCNTXLUT.js +0 -2
  266. package/dist/cdn/I273CANO.js +0 -2
  267. package/dist/cdn/I6NVKNZJ.js +0 -2
  268. package/dist/cdn/J5FKIZAM.js +0 -2
  269. package/dist/cdn/JOUR2FB2.js +0 -3
  270. package/dist/cdn/LISDTBEX.js +0 -2
  271. package/dist/cdn/LYLQCBVX.js +0 -2
  272. package/dist/cdn/MQK63FV7.js +0 -2
  273. package/dist/cdn/N4VOTJ25.js +0 -2
  274. package/dist/cdn/N5QLV56W.js +0 -2
  275. package/dist/cdn/OD5WXP7J.js +0 -2
  276. package/dist/cdn/OXPXXIWL.js +0 -2
  277. package/dist/cdn/PMRFXB4F.js +0 -2
  278. package/dist/cdn/PNIFJ5DQ.js +0 -2
  279. package/dist/cdn/PZDI5ZDC.js +0 -2
  280. package/dist/cdn/QROXYP6V.js +0 -2
  281. package/dist/cdn/QUOLQGKP.js +0 -2
  282. package/dist/cdn/QWHGLE3O.js +0 -2
  283. package/dist/cdn/R3PK7XOP.js +0 -2
  284. package/dist/cdn/REM3KCX6.js +0 -2
  285. package/dist/cdn/RNWICLRH.js +0 -2
  286. package/dist/cdn/RQYNPDN3.js +0 -2
  287. package/dist/cdn/S6F7U36E.js +0 -400
  288. package/dist/cdn/SMX2LEJB.js +0 -2
  289. package/dist/cdn/SVROAT3Z.js +0 -2
  290. package/dist/cdn/TBZXKKGP.js +0 -2
  291. package/dist/cdn/TNUCSWBN.js +0 -2
  292. package/dist/cdn/TOICLGFK.js +0 -2
  293. package/dist/cdn/TOTWYGB3.js +0 -2
  294. package/dist/cdn/TUUUK3VX.js +0 -2
  295. package/dist/cdn/U3KMGSVH.js +0 -2
  296. package/dist/cdn/UEP2NYJK.js +0 -2
  297. package/dist/cdn/UZP4YMTE.js +0 -2
  298. package/dist/cdn/XYMBRPC7.js +0 -2
  299. package/dist/cdn/YB3DR4VO.js +0 -2
  300. package/dist/cdn/YYTEJVBL.js +0 -2
  301. package/dist/cdn/Z3HGPBOR.js +0 -2
  302. package/dist/cdn/ZDDN7UKS.js +0 -2
  303. package/dist/cdn/ZXNF77OB.js +0 -2
  304. package/dist/chunks/functional.js +0 -9
  305. package/dist/components/arcgis-portal-ai-assistant/data/capability-registries/types.d.ts +0 -45
  306. /package/dist/cdn/{OUMTV5H5.js → KHKREBVZ.js} +0 -0
  307. /package/dist/cdn/{GGDOGNH4.js → U2HTYOBB.js} +0 -0
package/dist/index.d.ts CHANGED
@@ -1,6 +1,13 @@
1
1
  export { canAddField, canDeleteField } from "./utils/fieldAddDelete.js";
2
+ export { generateEmbeddings } from "./utils/generateEmbeddings.js";
3
+ export { searchCatalog } from "./utils/semanticSearch.js";
4
+ export { type SemanticSearchEmbedding, type SemanticSearchItem, type SemanticSearchMatch, type SemanticSearchOptions, type SemanticSearchResult } from "./utils/semanticSearch.js";
2
5
  export { type FieldDeleteOptions, type UserItemInfo } from "./utils/types.js";
3
6
  export { type PortalAssistantTools } from "./components/arcgis-portal-ai-assistant/types/assistantTools.js";
7
+ export { type PortalAssistantEntityToolPresets } from "./components/arcgis-portal-ai-assistant/types/portalEntityTools.js";
8
+ export { createGetItemTool } from "./components/arcgis-portal-ai-assistant/tools/getItemTool.js";
9
+ export { createGetUserTool, createGetUserGroupsTool } from "./components/arcgis-portal-ai-assistant/tools/users.js";
10
+ export { createGetGroupTool, createGetGroupMembershipTool } from "./components/arcgis-portal-ai-assistant/tools/groups.js";
4
11
 
5
12
  /**
6
13
  * Get a resolved path from where an asset can be loaded.
@@ -65,8 +72,11 @@ import type { ArcgisPortalItemActions } from "./components/arcgis-portal-item-ac
65
72
  import type { ArcgisPortalItemBadges } from "./components/arcgis-portal-item-badges/customElement.js";
66
73
  import type { ArcgisPortalItemBadge } from "./components/arcgis-portal-item-badge/customElement.js";
67
74
  import type { ArcgisPortalItemCard } from "./components/arcgis-portal-item-card/customElement.js";
75
+ import type { ArcgisPortalItemCardSublayerSelect } from "./components/arcgis-portal-item-card-sublayer-select/customElement.js";
68
76
  import type { ArcgisPortalItemFavorite } from "./components/arcgis-portal-item-favorite/customElement.js";
69
77
  import type { ArcgisPortalItemPicker } from "./components/arcgis-portal-item-picker/customElement.js";
78
+ import type { ArcgisPortalItemShareSummary } from "./components/arcgis-portal-item-share-summary/customElement.js";
79
+ import type { ArcgisPortalItemShareSummaryEditable } from "./components/arcgis-portal-item-share-summary-editable/customElement.js";
70
80
  import type { ArcgisPortalItemThumbnail } from "./components/arcgis-portal-item-thumbnail/customElement.js";
71
81
  import type { ArcgisPortalItemType } from "./components/arcgis-portal-item-type/customElement.js";
72
82
  import type { ArcgisPortalMentionableTextArea } from "./components/arcgis-portal-mentionable-text-area/customElement.js";
@@ -221,6 +231,11 @@ export interface ArcgisPortalItemCardCustomEvent<T> extends CustomEvent<T> {
221
231
  target: ArcgisPortalItemCard;
222
232
  currentTarget: ArcgisPortalItemCard;
223
233
  }
234
+ export interface ArcgisPortalItemCardSublayerSelectCustomEvent<T> extends CustomEvent<T> {
235
+ detail: T;
236
+ target: ArcgisPortalItemCardSublayerSelect;
237
+ currentTarget: ArcgisPortalItemCardSublayerSelect;
238
+ }
224
239
  export interface ArcgisPortalItemFavoriteCustomEvent<T> extends CustomEvent<T> {
225
240
  detail: T;
226
241
  target: ArcgisPortalItemFavorite;
@@ -231,6 +246,11 @@ export interface ArcgisPortalItemPickerCustomEvent<T> extends CustomEvent<T> {
231
246
  target: ArcgisPortalItemPicker;
232
247
  currentTarget: ArcgisPortalItemPicker;
233
248
  }
249
+ export interface ArcgisPortalItemShareSummaryEditableCustomEvent<T> extends CustomEvent<T> {
250
+ detail: T;
251
+ target: ArcgisPortalItemShareSummaryEditable;
252
+ currentTarget: ArcgisPortalItemShareSummaryEditable;
253
+ }
234
254
  export interface ArcgisPortalItemThumbnailCustomEvent<T> extends CustomEvent<T> {
235
255
  detail: T;
236
256
  target: ArcgisPortalItemThumbnail;
@@ -307,8 +327,11 @@ declare global {
307
327
  "arcgis-portal-item-badges": ArcgisPortalItemBadges;
308
328
  "arcgis-portal-item-badge": ArcgisPortalItemBadge;
309
329
  "arcgis-portal-item-card": ArcgisPortalItemCard;
330
+ "arcgis-portal-item-card-sublayer-select": ArcgisPortalItemCardSublayerSelect;
310
331
  "arcgis-portal-item-favorite": ArcgisPortalItemFavorite;
311
332
  "arcgis-portal-item-picker": ArcgisPortalItemPicker;
333
+ "arcgis-portal-item-share-summary": ArcgisPortalItemShareSummary;
334
+ "arcgis-portal-item-share-summary-editable": ArcgisPortalItemShareSummaryEditable;
312
335
  "arcgis-portal-item-thumbnail": ArcgisPortalItemThumbnail;
313
336
  "arcgis-portal-item-type": ArcgisPortalItemType;
314
337
  "arcgis-portal-mentionable-text-area": ArcgisPortalMentionableTextArea;
@@ -425,12 +448,20 @@ declare global {
425
448
  type HTMLArcgisPortalItemCardElementEventMap = ArcgisPortalItemCard["@eventTypes"];
426
449
  type HTMLArcgisPortalItemCardElement = ArcgisPortalItemCard;
427
450
 
451
+ type HTMLArcgisPortalItemCardSublayerSelectElementEventMap = ArcgisPortalItemCardSublayerSelect["@eventTypes"];
452
+ type HTMLArcgisPortalItemCardSublayerSelectElement = ArcgisPortalItemCardSublayerSelect;
453
+
428
454
  type HTMLArcgisPortalItemFavoriteElementEventMap = ArcgisPortalItemFavorite["@eventTypes"];
429
455
  type HTMLArcgisPortalItemFavoriteElement = ArcgisPortalItemFavorite;
430
456
 
431
457
  type HTMLArcgisPortalItemPickerElementEventMap = ArcgisPortalItemPicker["@eventTypes"];
432
458
  type HTMLArcgisPortalItemPickerElement = ArcgisPortalItemPicker;
433
459
 
460
+ type HTMLArcgisPortalItemShareSummaryElement = ArcgisPortalItemShareSummary;
461
+
462
+ type HTMLArcgisPortalItemShareSummaryEditableElementEventMap = ArcgisPortalItemShareSummaryEditable["@eventTypes"];
463
+ type HTMLArcgisPortalItemShareSummaryEditableElement = ArcgisPortalItemShareSummaryEditable;
464
+
434
465
  type HTMLArcgisPortalItemThumbnailElementEventMap = ArcgisPortalItemThumbnail["@eventTypes"];
435
466
  type HTMLArcgisPortalItemThumbnailElement = ArcgisPortalItemThumbnail;
436
467
 
package/dist/index.js CHANGED
@@ -1,9 +1,303 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import { g as a, s as t } from "./chunks/runtime.js";
3
- import { c as o, a as r } from "./chunks/fieldAddDelete.js";
2
+ import { g as te, s as ne } from "./chunks/runtime.js";
3
+ import { e as oe, c as ae } from "./chunks/fieldAddDelete.js";
4
+ import { FunctionTool as h } from "@arcgis/ai-components/agent-utils/tools/FunctionTool.js";
5
+ import l from "zod";
6
+ import { a as L } from "./chunks/item2.js";
7
+ import { h as y } from "./chunks/user.js";
8
+ import { g as v } from "./chunks/portal.js";
9
+ import { r as I } from "./chunks/request.js";
10
+ async function P(r) {
11
+ if (r.length === 0)
12
+ return [];
13
+ const [{ getEmbeddings: t }, { default: s }] = await Promise.all([
14
+ import("@arcgis/ai-components/orchestrator/embeddings/getEmbeddings.js"),
15
+ import("@arcgis/core/portal/Portal.js")
16
+ ]);
17
+ return await s.getDefault().load(), await t(r);
18
+ }
19
+ const p = 1.2, b = 0.75, q = 60, A = 0.65, w = /* @__PURE__ */ new WeakMap();
20
+ async function W(r, t, s = {}) {
21
+ if (s.topN !== void 0 && !Number.isFinite(s.topN))
22
+ throw new Error("topN must be a finite number.");
23
+ const e = new Map(t.map((a) => [a.id, a])), n = F(M(r), U(t));
24
+ let i = [], o;
25
+ if (r.trim() && t.length)
26
+ if (!s.loadEmbeddings && !s.embeddings)
27
+ o = "Catalog embeddings are unavailable.";
28
+ else
29
+ try {
30
+ const [a, u] = await Promise.all([
31
+ (s.embedQuery ?? z)(r),
32
+ s.loadEmbeddings ? s.loadEmbeddings() : s.embeddings
33
+ ]);
34
+ if (!u)
35
+ throw new Error("Catalog embeddings are unavailable.");
36
+ i = R(a, u, e);
37
+ } catch (a) {
38
+ o = `Semantic search is unavailable: ${a instanceof Error ? a.message : String(a)}`;
39
+ }
40
+ return {
41
+ degraded: o !== void 0,
42
+ ...o ? { degradedReason: o } : {},
43
+ matches: D(n, i, e, s.topN ?? 5)
44
+ };
45
+ }
46
+ function U(r) {
47
+ const t = w.get(r);
48
+ if (t)
49
+ return t;
50
+ const s = /* @__PURE__ */ new Set(), e = /* @__PURE__ */ new Map(), n = r.map((o) => {
51
+ if (s.has(o.id))
52
+ throw new Error(`Duplicate item id "${o.id}" in search catalog.`);
53
+ s.add(o.id);
54
+ const a = /* @__PURE__ */ new Map();
55
+ f(a, o.title, 3), f(a, o.description, 1);
56
+ for (const u of o.hints ?? [])
57
+ f(a, u, 2);
58
+ for (const u of a.keys())
59
+ e.set(u, (e.get(u) ?? 0) + 1);
60
+ return {
61
+ id: o.id,
62
+ length: [...a.values()].reduce((u, m) => u + m, 0),
63
+ termFrequencies: a
64
+ };
65
+ }), i = {
66
+ averageDocumentLength: n.length ? n.reduce((o, a) => o + a.length, 0) / n.length : 0,
67
+ documentFrequency: e,
68
+ documents: n
69
+ };
70
+ return w.set(r, i), i;
71
+ }
72
+ function f(r, t, s) {
73
+ for (const e of M(t))
74
+ r.set(e, (r.get(e) ?? 0) + s);
75
+ }
76
+ function M(r) {
77
+ return r.toLowerCase().split(/[^a-z0-9]+/u).filter(Boolean);
78
+ }
79
+ function F(r, t) {
80
+ const s = new Set(r), e = t.documents.length;
81
+ return t.documents.map(({ id: n, length: i, termFrequencies: o }) => {
82
+ let a = 0;
83
+ for (const u of s) {
84
+ const m = o.get(u), d = t.documentFrequency.get(u);
85
+ if (!m || !d)
86
+ continue;
87
+ const g = Math.log(1 + (e - d + 0.5) / (d + 0.5)), c = p * (1 - b + b * (i / t.averageDocumentLength));
88
+ a += g * (m * (p + 1) / (m + c));
89
+ }
90
+ return { id: n, score: a };
91
+ }).filter(({ score: n }) => n > 0).sort(k);
92
+ }
93
+ function R(r, t, s) {
94
+ const e = /* @__PURE__ */ new Map();
95
+ S(r);
96
+ for (const { itemId: n, vector: i } of t) {
97
+ if (!s.has(n))
98
+ continue;
99
+ const o = N(r, i);
100
+ o > (e.get(n) ?? -1 / 0) && e.set(n, o);
101
+ }
102
+ return [...e.entries()].filter(([, n]) => n >= A).map(([n, i]) => ({ id: n, score: i })).sort(k);
103
+ }
104
+ function S(r) {
105
+ if (!r.length || r.some((t) => !Number.isFinite(t)) || r.every((t) => t === 0))
106
+ throw new Error("Embedding vectors must be non-empty, finite, and have non-zero magnitude.");
107
+ }
108
+ function N(r, t) {
109
+ if (S(t), r.length !== t.length)
110
+ throw new Error("Query and catalog embedding dimensions must match.");
111
+ let s = 0, e = 0, n = 0;
112
+ for (let o = 0; o < r.length; o += 1)
113
+ s += r[o] * t[o], e += r[o] ** 2, n += t[o] ** 2;
114
+ const i = s / (Math.sqrt(e) * Math.sqrt(n));
115
+ if (!Number.isFinite(i))
116
+ throw new Error("Embedding vector magnitudes are outside the supported numeric range.");
117
+ return i;
118
+ }
119
+ async function z(r) {
120
+ const t = await P([r]);
121
+ if (t.length !== 1)
122
+ throw new Error("Expected one query embedding.");
123
+ return t[0];
124
+ }
125
+ function D(r, t, s, e) {
126
+ const n = /* @__PURE__ */ new Map();
127
+ for (const [i, o] of [
128
+ ["keyword", r],
129
+ ["semantic", t]
130
+ ])
131
+ for (const [a, { id: u, score: m }] of o.entries()) {
132
+ const d = a + 1, g = s.get(u), c = n.get(u) ?? { item: g, score: 0 };
133
+ c.score += 1 / (q + d), i === "keyword" ? (c.keywordRank = d, c.keywordScore = m) : (c.semanticRank = d, c.semanticScore = m), n.set(u, c);
134
+ }
135
+ return [...n.values()].sort(
136
+ (i, o) => o.score - i.score || (o.semanticScore ?? 0) - (i.semanticScore ?? 0) || (o.keywordScore ?? 0) - (i.keywordScore ?? 0) || i.item.id.localeCompare(o.item.id)
137
+ ).slice(0, Math.max(0, e));
138
+ }
139
+ function k(r, t) {
140
+ return t.score - r.score || r.id.localeCompare(t.id);
141
+ }
142
+ const $ = l.object({
143
+ itemId: l.string().trim().regex(/^[a-f0-9]{32}$/iu).describe("The 32-character hexadecimal Portal item ID.")
144
+ });
145
+ function J(r) {
146
+ return new h({
147
+ name: "getItem",
148
+ description: "Retrieves current metadata for a Portal item by ID. Returns result metadata or an error; an error does not mean the item is private or missing. This tool is read-only.",
149
+ inputSchema: $,
150
+ execute: async ({ itemId: t }) => await L(r, t)
151
+ });
152
+ }
153
+ const T = l.object({
154
+ username: l.string().trim().min(1).optional().describe("An exact Portal username; omit for the signed-in user.")
155
+ });
156
+ function x() {
157
+ return { error: { code: "serviceUnavailable", message: "A username or signed-in Portal user is required." } };
158
+ }
159
+ function X(r) {
160
+ return new h({
161
+ name: "getUser",
162
+ description: "Reads fresh user identity, organization, role, license, account status, and available privileges. Omit username for the signed-in user. Missing fields are unknown; this read does not authorize actions.",
163
+ inputSchema: T,
164
+ execute: async ({ username: t = r.user?.username }, s) => {
165
+ if (!t)
166
+ return x();
167
+ const { result: e, error: n } = await y(r, t, { signal: s?.signal });
168
+ return e ? {
169
+ result: {
170
+ username: e.username,
171
+ fullName: e.fullName,
172
+ orgId: e.orgId,
173
+ role: e.role,
174
+ roleId: e.roleId,
175
+ privileges: e.privileges,
176
+ disabled: e.disabled,
177
+ level: e.level,
178
+ userLicenseTypeId: e.userLicenseTypeId
179
+ }
180
+ } : { error: n };
181
+ }
182
+ });
183
+ }
184
+ function Y(r) {
185
+ return new h({
186
+ name: "getUserGroups",
187
+ description: "Lists visible memberships from a fresh user profile; omit username for the signed-in user. Groups are discovery candidates, not selections or management permissions. Omission does not prove non-membership; use getGroupMembership for an exact check.",
188
+ inputSchema: T,
189
+ execute: async ({ username: t = r.user?.username }, s) => {
190
+ if (!t)
191
+ return x();
192
+ const { result: e, error: n } = await y(r, t, { signal: s?.signal });
193
+ return e ? e.groups ? { result: e.groups.map(({ id: i, title: o, owner: a, access: u }) => ({ id: i, title: o, owner: a, access: u })) } : {
194
+ error: { code: "serviceUnavailable", message: "Group memberships are not available in this user profile." }
195
+ } : { error: n };
196
+ }
197
+ });
198
+ }
199
+ async function E(r, t, s = {}) {
200
+ try {
201
+ s.signal?.throwIfAborted();
202
+ const e = await I({
203
+ portal: r,
204
+ url: `${v(r)}community/groups/${t}`,
205
+ options: s
206
+ });
207
+ return s.signal?.throwIfAborted(), e.id?.toLowerCase() !== t.toLowerCase() ? { error: { code: "serviceUnavailable", message: "The requested group metadata is unavailable." } } : { result: e };
208
+ } catch (e) {
209
+ return s.signal?.aborted || console.error("Could not retrieve group metadata:", e), { error: { code: "unhandledError", message: "Could not retrieve group metadata." } };
210
+ }
211
+ }
212
+ async function B(r, t, s, e = {}) {
213
+ const { result: n, error: i } = await E(r, t, e);
214
+ if (!n)
215
+ return { error: i };
216
+ const o = (a) => a.toLowerCase() === s.toLowerCase();
217
+ try {
218
+ if (o(n.owner))
219
+ return { result: { groupId: n.id, username: n.owner, memberType: "owner" } };
220
+ const a = n.userMembership;
221
+ if (a && o(a.username))
222
+ return {
223
+ result: { groupId: n.id, username: a.username, memberType: a.memberType }
224
+ };
225
+ const u = n.owner.toLowerCase() === r.user?.username.toLowerCase() || a !== void 0 && ["owner", "admin", "manager"].includes(a.memberType);
226
+ if (n.hiddenMembers && !u)
227
+ return {
228
+ error: {
229
+ code: "serviceUnavailable",
230
+ message: "This group's members are hidden; the requested membership cannot be verified from group metadata."
231
+ }
232
+ };
233
+ let m = 1;
234
+ for (; ; ) {
235
+ e.signal?.throwIfAborted();
236
+ const { users: d, nextStart: g } = await I({
237
+ portal: r,
238
+ url: `${v(r)}community/groups/${t}/userList`,
239
+ params: { start: m, num: 100, sortField: "username", sortOrder: "asc" },
240
+ options: e
241
+ });
242
+ e.signal?.throwIfAborted();
243
+ const c = d.find((G) => o(G.username));
244
+ if (c)
245
+ return { result: { groupId: n.id, username: c.username, memberType: c.memberType } };
246
+ if (g === -1)
247
+ return { result: { groupId: n.id, username: s, memberType: "none" } };
248
+ m = g;
249
+ }
250
+ } catch (a) {
251
+ return e.signal?.aborted || console.error("Could not retrieve group membership:", a), { error: { code: "unhandledError", message: "Could not retrieve group membership." } };
252
+ }
253
+ }
254
+ const C = l.object({
255
+ groupId: l.string().trim().regex(/^[a-f0-9]{32}$/iu).describe("The resolved Portal group ID.")
256
+ });
257
+ function Z(r) {
258
+ return new h({
259
+ name: "getGroup",
260
+ description: "Reads fresh group settings, owner, and current-user membership when available. Missing fields are unknown. Membership does not establish management permission.",
261
+ inputSchema: C,
262
+ execute: async ({ groupId: t }, s) => {
263
+ const { result: e, error: n } = await E(r, t, { signal: s?.signal });
264
+ return e ? {
265
+ result: {
266
+ id: e.id,
267
+ title: e.title,
268
+ owner: e.owner,
269
+ orgId: e.orgId,
270
+ access: e.access,
271
+ capabilities: e.capabilities,
272
+ membershipAccess: e.membershipAccess,
273
+ userMembership: e.userMembership,
274
+ hiddenMembers: e.hiddenMembers,
275
+ provider: e.provider
276
+ }
277
+ } : { error: n };
278
+ }
279
+ });
280
+ }
281
+ function _(r) {
282
+ return new h({
283
+ name: "getGroupMembership",
284
+ description: "Checks an exact username's group role: owner, admin/manager, member, or none. May page through members. Restricted or failed reads return errors, not non-membership. Membership does not authorize actions.",
285
+ inputSchema: C.extend({
286
+ username: l.string().trim().min(1).describe("An exact Portal username, not a display name.")
287
+ }),
288
+ execute: async ({ groupId: t, username: s }, e) => await B(r, t, s, { signal: e?.signal })
289
+ });
290
+ }
4
291
  export {
5
- o as canAddField,
6
- r as canDeleteField,
7
- a as getAssetPath,
8
- t as setAssetPath
292
+ oe as canAddField,
293
+ ae as canDeleteField,
294
+ _ as createGetGroupMembershipTool,
295
+ Z as createGetGroupTool,
296
+ J as createGetItemTool,
297
+ Y as createGetUserGroupsTool,
298
+ X as createGetUserTool,
299
+ P as generateEmbeddings,
300
+ te as getAssetPath,
301
+ W as searchCatalog,
302
+ ne as setAssetPath
9
303
  };
package/dist/loader.js CHANGED
@@ -6,9 +6,9 @@ const a = s(e, {
6
6
  "arcgis-portal-account-switcher-accounts": [() => import("./components/arcgis-portal-account-switcher-accounts/customElement.js"), "accounts:,messages:,portal:,targetUser"],
7
7
  "arcgis-portal-account-switcher-list": [() => import("./components/arcgis-portal-account-switcher-list/customElement.js"), "accountAccess:,actions:,interactive,linkedAccounts:,messages:,portal:,signedInUsers:"],
8
8
  "arcgis-portal-account-switcher-signout": [() => import("./components/arcgis-portal-account-switcher-signout/customElement.js"), "messages:,portal:,signedInAccounts:"],
9
- "arcgis-portal-add-gps-metadata": [() => import("./components/arcgis-portal-add-gps-metadata/customElement.js"), "item:,itemId,messages:,portal:"],
10
- "arcgis-portal-ai-assistant": [() => import("./components/arcgis-portal-ai-assistant/customElement.js"), "autoDestroyDisabled,config:,defaultClosed,disabledAgents:,navigationCapabilities:,navigationTargetMap:,portal:,t9n:,tools:,useProdDocAssistant,user:"],
11
- "arcgis-portal-ai-assistant-interrupt": [() => import("./components/arcgis-portal-ai-assistant-interrupt/customElement.js"), "_messages:,message,options:,type"],
9
+ "arcgis-portal-add-gps-metadata": [() => import("./components/arcgis-portal-add-gps-metadata/customElement.js"), "areSourceSchemaChangesAllowed:,canShowAddGPSMetadata:,item:,itemId,messageOverrides:,messages:,portal:,supportsAttachments:"],
10
+ "arcgis-portal-ai-assistant": [() => import("./components/arcgis-portal-ai-assistant/customElement.js"), "autoDestroyDisabled,config:,currentContext:,defaultClosed,disabledAgents:,entityToolPresets:,navigationTargetMap:,observabilityEnabled,portal:,t9n:,tools:,user:"],
11
+ "arcgis-portal-ai-assistant-interrupt": [() => import("./components/arcgis-portal-ai-assistant-interrupt/customElement.js"), "_messages:,entityRequest:,message,options:,pickerMessages:,portal:,requestId,type"],
12
12
  "arcgis-portal-browser": [() => import("./components/arcgis-portal-browser/customElement.js"), "_messages:,alwaysShowContent,alwaysShowPagination,alwaysShowSelection,formFactor,height,hideContentTop,hideFilters,hideTopBar,loading,panel,preview,rangeFormatter:,response:,searchTerm,selected:,showPreSearch,store:;scrollToTop"],
13
13
  "arcgis-portal-browser-actions": [() => import("./components/arcgis-portal-browser-actions/customElement.js"), "_messages:,actions:,selection:;restoreFocus"],
14
14
  "arcgis-portal-browser-filter-status": [() => import("./components/arcgis-portal-browser-filter-status/customElement.js"), "_messages:,browserWidth,componentWidth,filters:,hiddenFilterIds:"],
@@ -21,9 +21,9 @@ const a = s(e, {
21
21
  "arcgis-portal-classification-config": [() => import("./components/arcgis-portal-classification-config/customElement.js"), "autoDestroyDisabled,messages:,portalItem:,status,valid,values;destroy,resetForm,validateForm"],
22
22
  "arcgis-portal-classification-favorite": [() => import("./components/arcgis-portal-classification-favorite/customElement.js"), "attributeExpressionResults:,classificationValue:,favoriteClassifications:,messages:,portalItem:,resetFavoriteClassification:,selectedFavoriteClassificationName,updateClassificationData:"],
23
23
  "arcgis-portal-classification-form-element": [() => import("./components/arcgis-portal-classification-form-element/customElement.js"), "attribute:,attributeKey,isRequiredErrors:,messages:,renderingInfo:,value:"],
24
- "arcgis-portal-delete-items": [() => import("./components/arcgis-portal-delete-items/customElement.js"), "active,disableLinks,items:,messages:,portal:,user:"],
24
+ "arcgis-portal-delete-items": [() => import("./components/arcgis-portal-delete-items/customElement.js"), "active,disableLinks,fieldDeleteMessages:,itemIds:,items:,messages:,portal:,user:"],
25
25
  "arcgis-portal-delete-items-review": [() => import("./components/arcgis-portal-delete-items-review/customElement.js"), "items:,messages:,portal:,user:"],
26
- "arcgis-portal-entity-picker": [() => import("./components/arcgis-portal-entity-picker/customElement.js"), "_messages:,entityType,icon,messageOverrides:,mode,num,portal:,query,selected:,selectionMode;setFocus,togglePicker"],
26
+ "arcgis-portal-entity-picker": [() => import("./components/arcgis-portal-entity-picker/customElement.js"), "_messages:,entityType,icon,initialScope,initialSearchTerm,messageOverrides:,mode,num,portal:,query,scopeSelectionDisabled,selected:,selectionMode;setFocus,togglePicker"],
27
27
  "arcgis-portal-extent-picker": [() => import("./components/arcgis-portal-extent-picker/customElement.js"), "active,contentOnly,extentService,extentValue:,isArea,itemId,messages:,portal:;;getExtent"],
28
28
  "arcgis-portal-extent-picker-coord-field": [() => import("./components/arcgis-portal-extent-picker-coord-field/customElement.js"), "errorMessage,inputId,label,max,min,relatedErrorMessage,validateRelated:,value;;checkRelatedField,isValid,setFocus"],
29
29
  "arcgis-portal-field-delete": [() => import("./components/arcgis-portal-field-delete/customElement.js"), "config:,fieldNames:,layer:,mapView:,messages:,options:"],
@@ -33,24 +33,27 @@ const a = s(e, {
33
33
  "arcgis-portal-group-browser-preview": [() => import("./components/arcgis-portal-group-browser-preview/customElement.js"), "currentResponse:,group:,hideBadges,hidePreviewFooter,messages:,portal:,previewFooterActionsSpaced,user:;setFocus"],
34
34
  "arcgis-portal-group-browser-preview-card": [() => import("./components/arcgis-portal-group-browser-preview-card/customElement.js"), "baseUrl,hideItemType,hideOwner,hideThumbnail,interactive,item:,link,newTab,portal:,showBadges,showDateUpdated,showOwnerPopup,showSummary,user:;restoreFocus"],
35
35
  "arcgis-portal-group-card": [() => import("./components/arcgis-portal-group-card/customElement.js"), "disabled,group:,hideBadges,hideDateUpdated,hideOwner,hideViewableBy,indeterminate,link,linkHandler:,messages:,name,newTab,portal:,preview,previewed,selected,selection,showDateCreated,showSummary,user:,view;restoreFocus"],
36
- "arcgis-portal-group-picker": [() => import("./components/arcgis-portal-group-picker/customElement.js"), "_messages:,entityType:,icon,messageOverrides:,mode,num,portal:,query,selected:,selectionMode;setFocus,togglePicker"],
36
+ "arcgis-portal-group-picker": [() => import("./components/arcgis-portal-group-picker/customElement.js"), "_messages:,entityType:,icon,initialScope,initialSearchTerm,messageOverrides:,mode,num,portal:,query,scopeSelectionDisabled,selected:,selectionMode;setFocus,togglePicker"],
37
37
  "arcgis-portal-group-thumbnail": [() => import("./components/arcgis-portal-group-thumbnail/customElement.js"), "group:,portal:,scale,tooltip"],
38
38
  "arcgis-portal-info-banner": [() => import("./components/arcgis-portal-info-banner/customElement.js"), "config:,position"],
39
39
  "arcgis-portal-item-actions": [() => import("./components/arcgis-portal-item-actions/customElement.js"), "actions:,item:,keyHandler:,label,messages:,portal:,previewText,showFavorite,showPreview,tabIndexOverride,user:;setFocus"],
40
40
  "arcgis-portal-item-badges": [() => import("./components/arcgis-portal-item-badges/customElement.js"), "appearance,empty,item:,portal:,scale,showTooltips,useProduction,user:,width"],
41
41
  "arcgis-portal-item-badge": [() => import("./components/arcgis-portal-item-badge/customElement.js"), "_messages:,appearance,badgeType,item:,portal:,scale,showTooltip,useProduction,user:,width"],
42
- "arcgis-portal-item-card": [() => import("./components/arcgis-portal-item-card/customElement.js"), "actions:,disabled,disableSelection,hideActionsStart,item:,link,linkHandler:,messages:,name,newTab,portal:,preview,previewed,recycleBin,selected,selection,showAccess,showBadges,showBadgeTooltips,showDateUpdated,showFavorite,showFavoriteInActionsMenu,showItemType,showItemTypeHosted,showOwner,showSummary,showThumbnail,user:,userPopupZIndex,view;restoreFocus"],
42
+ "arcgis-portal-item-card": [() => import("./components/arcgis-portal-item-card/customElement.js"), "actions:,allowedGeometries:,disabled,disableSelection,groups:,hideActionsStart,item:,link,linkHandler:,messages:,name,newTab,portal:,preview,previewed,recycleBin,selected,selectedItems:,selection,showAccess,showBadges,showBadgeTooltips,showDateUpdated,showFavorite,showFavoriteInActionsMenu,showItemType,showItemTypeHosted,showOwner,showSummary,showThumbnail,useProduction,user:,userGroups:,userPopupZIndex,view;restoreFocus"],
43
+ "arcgis-portal-item-card-sublayer-select": [() => import("./components/arcgis-portal-item-card-sublayer-select/customElement.js"), "allowedGeometries:,appearance,disabled,item:,messageOverrides:,messages:,portal:,selectedItems:,selection,width"],
43
44
  "arcgis-portal-item-favorite": [() => import("./components/arcgis-portal-item-favorite/customElement.js"), "iconOnly,item:,messages:,portal:,scale,showTooltip,user:,width;setFocus"],
44
- "arcgis-portal-item-picker": [() => import("./components/arcgis-portal-item-picker/customElement.js"), "_messages:,entityType:,icon,messageOverrides:,mode,num,portal:,query,selected:,selectionMode;setFocus,togglePicker"],
45
+ "arcgis-portal-item-picker": [() => import("./components/arcgis-portal-item-picker/customElement.js"), "_messages:,entityType:,icon,initialScope,initialSearchTerm,messageOverrides:,mode,num,portal:,query,scopeSelectionDisabled,selected:,selectionMode;setFocus,togglePicker"],
46
+ "arcgis-portal-item-share-summary": [() => import("./components/arcgis-portal-item-share-summary/customElement.js"), "autoFetchGroups,groups:,item:,messageOverrides:,messages:,overlayPositioning,portal:,scale,showHoverText,showText,userGroups:;fetchGroups,setFocus"],
47
+ "arcgis-portal-item-share-summary-editable": [() => import("./components/arcgis-portal-item-share-summary-editable/customElement.js"), "allowEdit,autoFetchGroups,groups:,item:,messageOverrides:,messages:,overlayPositioning,portal:,scale,showHoverText,showText,userGroups:;fetchGroups,setFocus"],
45
48
  "arcgis-portal-item-thumbnail": [() => import("./components/arcgis-portal-item-thumbnail/customElement.js"), "cacheString,generate,item:,portal:,serviceInfo:,useProduction,user:;generateThumbnail"],
46
49
  "arcgis-portal-item-type": [() => import("./components/arcgis-portal-item-type/customElement.js"), "ellipsis,hideIcon,hideText,item:,messages:,portal:,scale,serviceInfo:,showHosted,user:"],
47
50
  "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"],
48
51
  "arcgis-portal-navigation": [() => import("./components/arcgis-portal-navigation/customElement.js"), "clientId,currentPathname,disableNotebookServer,disableTrackViewer,maxWidth,messages:,portal:,portalItem:,product,productHref,projectMenuIcon,projectMenuOptions:,projectMenuSaveIndicator,projectTitle,projectTitleSave:"],
49
52
  "arcgis-portal-replacement-item-redirect": [() => import("./components/arcgis-portal-replacement-item-redirect/customElement.js"), "itemId,messages:,portal:,user:;setFocus"],
50
- "arcgis-portal-review-related-items": [() => import("./components/arcgis-portal-review-related-items/customElement.js"), "messages:,portal:,relatedItems:,sourceItem:,user:"],
53
+ "arcgis-portal-review-related-items": [() => import("./components/arcgis-portal-review-related-items/customElement.js"), "browserMessages:,deleteMessages:,messages:,portal:,relatedItems:,relatedItemsCount,showDependentItems,sourceItem:,user:"],
51
54
  "arcgis-portal-sublayer-type": [() => import("./components/arcgis-portal-sublayer-type/customElement.js"), "geometry,hideIcon,hideName,hideType,messages:,name,renderer:,scale,type,underline"],
52
55
  "arcgis-portal-user-avatar": [() => import("./components/arcgis-portal-user-avatar/customElement.js"), "checkOnline,description,heading,hideAvatar,messages:,portal:,scale,showName,underline,user:,username,wrap"],
53
- "arcgis-portal-user-picker": [() => import("./components/arcgis-portal-user-picker/customElement.js"), "_messages:,entityType:,icon,messageOverrides:,mode,num,portal:,query,selected:,selectionMode;setFocus,togglePicker"],
56
+ "arcgis-portal-user-picker": [() => import("./components/arcgis-portal-user-picker/customElement.js"), "_messages:,entityType:,icon,initialScope,initialSearchTerm,messageOverrides:,mode,num,portal:,query,scopeSelectionDisabled,selected:,selectionMode;setFocus,togglePicker"],
54
57
  "arcgis-portal-user-popup": [() => import("./components/arcgis-portal-user-popup/customElement.js"), "appearance,avatarAriaHidden,baseUrl,checkOnline,fullName,item:,messages:,portal:,scale,showAvatar,showName,showUsername,underline,user:,username,wrap,zIndex;openPopup,setFocus"],
55
58
  "arcgis-portal-voice-input": [() => import("./components/arcgis-portal-voice-input/customElement.js"), "language;clearText,startListening,stopListening"]
56
59
  });
@@ -0,0 +1,17 @@
1
+ import type Portal from "@arcgis/core/portal/Portal.js";
2
+ import type { MemberType } from "../types/group.js";
3
+ import type { Result } from "../types/services.js";
4
+
5
+ /**
6
+ * Checks one user's membership, never inferring absence from a partial member list.
7
+ *
8
+ * @param portal
9
+ * @param groupId
10
+ * @param username
11
+ * @param options
12
+ */
13
+ export function getGroupMembership(portal: Portal, groupId: string, username: string, options?: { signal?: AbortSignal; }): Promise<Result<{
14
+ groupId: string;
15
+ username: string;
16
+ memberType: MemberType;
17
+ }, "serviceUnavailable" | "unhandledError">>;
@@ -0,0 +1,9 @@
1
+ export interface PortalGroupSearchParams {
2
+ num?: number;
3
+ q?: string;
4
+ searchUserAccess?: string;
5
+ searchUserName?: string;
6
+ sortField?: string;
7
+ sortOrder?: "asc" | "desc";
8
+ start?: number;
9
+ }
@@ -0,0 +1,9 @@
1
+ import type Portal from "@arcgis/core/portal/Portal.js";
2
+ import type { ItemSourceJSON } from "../types/item.js";
3
+ import type { Result } from "../types/services.js";
4
+
5
+ /**
6
+ * @param portal
7
+ * @param itemId
8
+ */
9
+ export function getItem(portal: Portal, itemId: string): Promise<Result<ItemSourceJSON, "unhandledError">>;
@@ -1,5 +1,8 @@
1
1
  export type StandardAccessLevel = "org" | "private" | "public";
2
2
 
3
+ /** Shared is `org` + shared to group, which is only for item */
4
+ export type AccessLevel = StandardAccessLevel | "shared";
5
+
3
6
  export interface ItemSourceJSON {
4
7
  id: string;
5
8
  owner: string;
@@ -47,17 +50,6 @@ export interface ItemSourceJSON {
47
50
 
48
51
  export type SearchResultSublayerGeometry = "multipoint" | "nonspatial" | "point" | "polygon" | "polyline";
49
52
 
50
- /** Shared is `org` + shared to group, which is only for item */
51
- export type AccessLevel = StandardAccessLevel | "shared";
52
-
53
- export type ServicePropertyTags = "allowAnalysis" | "DataTypeElevation" | "DataTypeGeneric" | "DataTypeProcessed" | "DataTypeRGB" | "DataTypeScientific" | "DataTypeThematic" | "DataTypeVector-MagDir" | "DataTypeVector-UV" | "hasColormap" | "hasMultidimensions" | "hasRasterAttributeTable" | "PixelTypeF32" | "PixelTypeF64" | "PixelTypeS8" | "PixelTypeS16" | "PixelTypeS32" | "PixelTypeU1" | "PixelTypeU2" | "PixelTypeU4" | "PixelTypeU8" | "PixelTypeU16" | "PixelTypeU32" | "SourceTypeCatalog" | "SourceTypeDataset" | "SourceTypeLayer" | "SourceTypeMosaicDataset";
54
-
55
- export type ContentStatus = "deprecated" | "org_authoritative" | "public_authoritative";
56
-
57
- export type ItemType = RetiredItemType | "3DTiles Package" | "3DTiles Service" | "360 VR Experience" | "Addin Package" | "Administrative Report" | "Analysis Model" | "Apache Parquet" | "API Key" | "AppBuilder Extension" | "AppBuilder Widget Package" | "Application Theme" | "Application" | "ArcGIS Explorer Application Configuration" | "ArcGIS Pro Add In" | "ArcGIS Pro Configuration" | "ArcMap Document" | "ArcPad Package" | "Basemap Package" | "Big Data Analytic" | "CAD Drawing" | "CityEngine Web Scene" | "Code Attachment" | "Code Sample" | "Color Set" | "Compact Tile Package" | "Content Category Set" | "CSV Collection" | "CSV" | "Dashboard" | "Data Pipeline" | "Data Store" | "datastore catalog service" | "Deep Learning Package" | "Deep Learning Studio Project" | "Desktop Add In" | "Desktop Application Template" | "Desktop Application" | "Desktop Style" | "Dictionary Style" | "Discussion" | "Document Link" | "Document" | "Dropbox" | "Earth Configuration" | "Esri Classification Schema" | "Esri Classifier Definition" | "Esri Spectral Library" | "Excalibur Imagery Project" | "Experience Builder Widget Package" | "Experience Builder Widget" | "Explorer Add In" | "Explorer Document" | "Explorer Layer" | "Explorer Map" | "Export Package" | "Feature Collection Template" | "Feature Collection" | "Feature Service" | "Feed" | "File Geodatabase" | "Form" | "GeoBIM Application" | "GeoBIM Project" | "Geocoding Service" | "Geodata Service" | "Geoenrichment Service" | "GeoJson" | "Geometry Service" | "GeoPackage" | "Geoprocessing Package" | "Geoprocessing Sample" | "Geoprocessing Service" | "GeoRSS" | "Globe Document" | "Globe Layer" | "Globe Service" | "GML" | "Google Drive" | "Group Layer" | "Hub Event" | "Hub Initiative Template" | "Hub Initiative" | "Hub Page" | "Hub Project" | "Hub Site Application" | "Image Collection" | "Image Service" | "Image" | "Imagery Layer" | "Insights Data Engineering Model" | "Insights Data Engineering Workbook" | "Insights Model" | "Insights Page" | "Insights Script" | "Insights Theme" | "Insights Workbook Package" | "Insights Workbook" | "Integration Info" | "IPS Configuration" | "iWork Keynote" | "iWork Numbers" | "iWork Pages" | "Kernel Gateway Connection" | "KML Collection" | "KML" | "Knowledge Graph Configuration" | "Knowledge Graph Layer" | "Knowledge Graph Web Investigation" | "Knowledge Graph" | "Knowledge Studio Project" | "Layer File" | "Layer Package" | "Layer Template" | "Layer" | "Layout" | "Living Atlas Export Package" | "Locator Package" | "Map Area" | "Map Document" | "Map Package" | "Map Service" | "Map Showcase" | "Map Template" | "Media Layer" | "Microsoft Excel" | "Microsoft Powerpoint" | "Microsoft Word" | "Mission Report" | "Mission Template" | "Mobile Application" | "Mobile Basemap Package" | "Mobile Map Package" | "Mobile Scene Package" | "Native Application Installer" | "Native Application" | "netCDF" | "Network Analysis Service" | "Notebook Code Snippet Library" | "Notebook Code Snippets" | "Notebook" | "OGCFeatureServer" | "OneDrive" | "Oriented Imagery Catalog" | "Ortho Mapping Project" | "Ortho Mapping Template" | "Parquet Collection" | "Parquet Feature Layer" | "PDF" | "Pro Map" | "Pro Presentation" | "Pro Project" | "Pro Report Template" | "Pro Report" | "Project Package" | "Project Template" | "Published Map" | "QuickCapture Project" | "Raster function template" | "Real Time Analytic" | "Reality Mapping Project" | "Reality Studio Project" | "Relational Database Connection" | "Replication Package" | "Report Template" | "Route Layer" | "Rule Package" | "Scene Document" | "Scene Package" | "Scene Service" | "Server" | "Service Connection" | "Service Definition" | "Shapefile" | "Site Application" | "Site Page" | "Solution" | "Spatial Database Engine" | "SQLite Geodatabase" | "Statistical Data Collection" | "StoryMap Theme" | "StoryMap" | "Stream Service" | "Style" | "Suitability Model" | "Survey123 Add In" | "Symbol Set" | "Task File" | "Tile Layer" | "Tile Package" | "Tool" | "Urban Model" | "Urban Project" | "Vector Tile Package" | "Vector Tile Service" | "Video Service" | "Viewer Configuration" | "Visio Document" | "WCS" | "Web AppBuilder Widget" | "Web Experience Template" | "Web Experience" | "Web Link Chart" | "Web Map" | "Web Mapping Application" | "Web Scene" | "WFS" | "Windows Mobile Package" | "WMS" | "WMTS" | "Workflow Manager Package" | "Workflow Manager Service" | "Workflow" | "Workforce Project" | "XR Experience";
58
-
59
- export type RetiredItemType = (typeof retiredItemTypes)[number];
60
-
61
53
  export interface SearchResultSublayer {
62
54
  description: string;
63
55
  fieldAliases: string;
@@ -67,6 +59,14 @@ export interface SearchResultSublayer {
67
59
  sourceJSON?: unknown;
68
60
  }
69
61
 
62
+ export type ServicePropertyTags = "allowAnalysis" | "DataTypeElevation" | "DataTypeGeneric" | "DataTypeProcessed" | "DataTypeRGB" | "DataTypeScientific" | "DataTypeThematic" | "DataTypeVector-MagDir" | "DataTypeVector-UV" | "hasColormap" | "hasMultidimensions" | "hasRasterAttributeTable" | "PixelTypeF32" | "PixelTypeF64" | "PixelTypeS8" | "PixelTypeS16" | "PixelTypeS32" | "PixelTypeU1" | "PixelTypeU2" | "PixelTypeU4" | "PixelTypeU8" | "PixelTypeU16" | "PixelTypeU32" | "SourceTypeCatalog" | "SourceTypeDataset" | "SourceTypeLayer" | "SourceTypeMosaicDataset";
63
+
64
+ export type ContentStatus = "deprecated" | "org_authoritative" | "public_authoritative";
65
+
66
+ export type ItemType = RetiredItemType | "3DTiles Package" | "3DTiles Service" | "360 VR Experience" | "Addin Package" | "Administrative Report" | "Analysis Model" | "Apache Parquet" | "API Key" | "AppBuilder Extension" | "AppBuilder Widget Package" | "Application Theme" | "Application" | "ArcGIS Explorer Application Configuration" | "ArcGIS Pro Add In" | "ArcGIS Pro Configuration" | "ArcMap Document" | "ArcPad Package" | "Basemap Package" | "Big Data Analytic" | "CAD Drawing" | "CityEngine Web Scene" | "Code Attachment" | "Code Sample" | "Color Set" | "Compact Tile Package" | "Content Category Set" | "CSV Collection" | "CSV" | "Dashboard" | "Data Pipeline" | "Data Store" | "datastore catalog service" | "Deep Learning Package" | "Deep Learning Studio Project" | "Desktop Add In" | "Desktop Application Template" | "Desktop Application" | "Desktop Style" | "Dictionary Style" | "Discussion" | "Document Link" | "Document" | "Dropbox" | "Earth Configuration" | "Esri Classification Schema" | "Esri Classifier Definition" | "Esri Spectral Library" | "Excalibur Imagery Project" | "Experience Builder Widget Package" | "Experience Builder Widget" | "Explorer Add In" | "Explorer Document" | "Explorer Layer" | "Explorer Map" | "Export Package" | "Feature Collection Template" | "Feature Collection" | "Feature Service" | "Feed" | "File Geodatabase" | "Form" | "GeoBIM Application" | "GeoBIM Project" | "Geocoding Service" | "Geodata Service" | "Geoenrichment Service" | "GeoJson" | "Geometry Service" | "GeoPackage" | "Geoprocessing Package" | "Geoprocessing Sample" | "Geoprocessing Service" | "GeoRSS" | "Globe Document" | "Globe Layer" | "Globe Service" | "GML" | "Google Drive" | "Group Layer" | "Hub Event" | "Hub Initiative Template" | "Hub Initiative" | "Hub Page" | "Hub Project" | "Hub Site Application" | "Image Collection" | "Image Service" | "Image" | "Imagery Layer" | "Insights Data Engineering Model" | "Insights Data Engineering Workbook" | "Insights Model" | "Insights Page" | "Insights Script" | "Insights Theme" | "Insights Workbook Package" | "Insights Workbook" | "Integration Info" | "IPS Configuration" | "iWork Keynote" | "iWork Numbers" | "iWork Pages" | "Kernel Gateway Connection" | "KML Collection" | "KML" | "Knowledge Graph Configuration" | "Knowledge Graph Layer" | "Knowledge Graph Web Investigation" | "Knowledge Graph" | "Knowledge Studio Project" | "Layer File" | "Layer Package" | "Layer Template" | "Layer" | "Layout" | "Living Atlas Export Package" | "Locator Package" | "Map Area" | "Map Document" | "Map Package" | "Map Service" | "Map Showcase" | "Map Template" | "Media Layer" | "Microsoft Excel" | "Microsoft Powerpoint" | "Microsoft Word" | "Mission Report" | "Mission Template" | "Mobile Application" | "Mobile Basemap Package" | "Mobile Map Package" | "Mobile Scene Package" | "Native Application Installer" | "Native Application" | "netCDF" | "Network Analysis Service" | "Notebook Code Snippet Library" | "Notebook Code Snippets" | "Notebook" | "OGCFeatureServer" | "OneDrive" | "Oriented Imagery Catalog" | "Ortho Mapping Project" | "Ortho Mapping Template" | "Parquet Collection" | "Parquet Feature Layer" | "PDF" | "Pro Map" | "Pro Presentation" | "Pro Project" | "Pro Report Template" | "Pro Report" | "Project Package" | "Project Template" | "Published Map" | "QuickCapture Project" | "Raster function template" | "Real Time Analytic" | "Reality Mapping Project" | "Reality Studio Project" | "Relational Database Connection" | "Replication Package" | "Report Template" | "Route Layer" | "Rule Package" | "Scene Document" | "Scene Package" | "Scene Service" | "Server" | "Service Connection" | "Service Definition" | "Shapefile" | "Site Application" | "Site Page" | "Solution" | "Spatial Database Engine" | "SQLite Geodatabase" | "Statistical Data Collection" | "StoryMap Theme" | "StoryMap" | "Stream Service" | "Style" | "Suitability Model" | "Survey123 Add In" | "Symbol Set" | "Task File" | "Tile Layer" | "Tile Package" | "Tool" | "Urban Model" | "Urban Project" | "Vector Tile Package" | "Vector Tile Service" | "Video Service" | "Viewer Configuration" | "Visio Document" | "WCS" | "Web AppBuilder Widget" | "Web Experience Template" | "Web Experience" | "Web Link Chart" | "Web Map" | "Web Mapping Application" | "Web Scene" | "WFS" | "Windows Mobile Package" | "WMS" | "WMTS" | "Workflow Manager Package" | "Workflow Manager Service" | "Workflow" | "Workforce Project" | "XR Experience";
67
+
68
+ export type RetiredItemType = (typeof retiredItemTypes)[number];
69
+
70
70
  export const retiredItemTypes: readonly [
71
71
  "Operations Dashboard Add In",
72
72
  "Operations Dashboard Extension",