@arcgis/portal-components 5.2.0-next.124 → 5.2.0-next.126

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 (264) hide show
  1. package/dist/cdn/{XVXUI2NM.js → 2B2T3CO3.js} +1 -1
  2. package/dist/cdn/2EV6F7V6.js +2 -0
  3. package/dist/cdn/{PO7ZCHRK.js → 2U2SESKW.js} +69 -69
  4. package/dist/cdn/{ZRPU3E6I.js → 3TMF6URM.js} +1 -1
  5. package/dist/cdn/3YJUQ54F.js +2 -0
  6. package/dist/cdn/4IRL6DWY.js +2 -0
  7. package/dist/cdn/{X2YH4HME.js → 5B76NS25.js} +1 -1
  8. package/dist/cdn/5CQ3B6ZW.js +2 -0
  9. package/dist/cdn/5EFYJYWM.js +2 -0
  10. package/dist/cdn/5GLUIQ7R.js +2 -0
  11. package/dist/cdn/{P5T4PK6A.js → 5HP5TLLV.js} +1 -1
  12. package/dist/cdn/5ZSZI7KG.js +2 -0
  13. package/dist/cdn/{5SRRBZNT.js → 6JJUORUU.js} +1 -1
  14. package/dist/cdn/6PTPTTSS.js +2 -0
  15. package/dist/cdn/6XRVLKAZ.js +2 -0
  16. package/dist/cdn/{IE57HB42.js → 7QCQNOXB.js} +1 -1
  17. package/dist/cdn/{FXGAQXNR.js → 7UNUBFFC.js} +1 -1
  18. package/dist/cdn/{YA32NOJY.js → ABIXHCPF.js} +1 -1
  19. package/dist/cdn/{HKJ5QP62.js → AYOR6D2Z.js} +1 -1
  20. package/dist/cdn/{6Z2AEG54.js → BPQ6ZBLE.js} +1 -1
  21. package/dist/cdn/{5R5O2X3M.js → BQKUF5EQ.js} +1 -1
  22. package/dist/cdn/BYYQOYJS.js +2 -0
  23. package/dist/cdn/{TD6BN5LE.js → CVUMYWBS.js} +1 -1
  24. package/dist/cdn/{JADQNA27.js → D4MCG57T.js} +1 -1
  25. package/dist/cdn/DIOGMUOB.js +2 -0
  26. package/dist/cdn/{52EHJXE4.js → DZWCWV3A.js} +1 -1
  27. package/dist/cdn/{35MI6GEH.js → E3XDGNPB.js} +1 -1
  28. package/dist/cdn/E56YMOVE.js +2 -0
  29. package/dist/cdn/EPURPU4Q.js +2 -0
  30. package/dist/cdn/{JZID64Z6.js → EXPBHQ4I.js} +1 -1
  31. package/dist/cdn/{MTJN3KRM.js → FHXIGKK4.js} +1 -1
  32. package/dist/cdn/{X3WXFI25.js → FJ3PFFCN.js} +1 -1
  33. package/dist/cdn/{GXOORXRU.js → FKFSGSBA.js} +1 -1
  34. package/dist/cdn/FPKKNRZY.js +2 -0
  35. package/dist/cdn/{COXMHAJA.js → GCB5BYDM.js} +1 -1
  36. package/dist/cdn/{7EM25L56.js → GES5WKJA.js} +1 -1
  37. package/dist/cdn/{Z44L4BKR.js → GGG3IIFK.js} +1 -1
  38. package/dist/cdn/{QJCOQ6FY.js → GZU4XZUI.js} +1 -1
  39. package/dist/cdn/{JEOHKIHK.js → H3CCKTNL.js} +1 -1
  40. package/dist/cdn/{BZZQOEUP.js → H3PPP7A7.js} +1 -1
  41. package/dist/cdn/{BYV7M63H.js → HATTAFCL.js} +1 -1
  42. package/dist/cdn/{5HVUPXCG.js → HPDQHQVC.js} +1 -1
  43. package/dist/cdn/{L4YVQHX3.js → HWYJF6DJ.js} +1 -1
  44. package/dist/cdn/{OAVKM5RX.js → I5C4SV6N.js} +1 -1
  45. package/dist/cdn/{4RPD44KC.js → I64ZE3TR.js} +1 -1
  46. package/dist/cdn/{7EPXWK4L.js → ICUDZDC6.js} +1 -1
  47. package/dist/cdn/{625YOS7Q.js → IMIQY3MT.js} +1 -1
  48. package/dist/cdn/{GC7KNL7Y.js → IWARFJ4I.js} +1 -1
  49. package/dist/cdn/JB2P4KY4.js +2 -0
  50. package/dist/cdn/{YASUXORH.js → JGCCJ5PX.js} +1 -1
  51. package/dist/cdn/JIOUF6RV.js +2 -0
  52. package/dist/cdn/{6QTLQAJL.js → K25K7FCI.js} +1 -1
  53. package/dist/cdn/{37HLLREH.js → K4LXMVNH.js} +1 -1
  54. package/dist/cdn/{6H7CWMFE.js → K64QFEX2.js} +1 -1
  55. package/dist/cdn/{CFLKHGTI.js → KALKWPUR.js} +1 -1
  56. package/dist/cdn/KEM54FSC.js +2 -0
  57. package/dist/cdn/{RCL4QILW.js → KFGCJN3T.js} +1 -1
  58. package/dist/cdn/{3RGCV53N.js → L46EVYBC.js} +1 -1
  59. package/dist/cdn/{E3Y3LIHI.js → LFRTGSGI.js} +1 -1
  60. package/dist/cdn/MA7TVM56.js +2 -0
  61. package/dist/cdn/MBOTEUCN.js +2 -0
  62. package/dist/cdn/MC3V6J4M.js +2 -0
  63. package/dist/cdn/{JGH37RQB.js → MFKSJMJS.js} +1 -1
  64. package/dist/cdn/MG4AOOOZ.js +2 -0
  65. package/dist/cdn/{EZIZLWHA.js → MXVFCMBR.js} +1 -1
  66. package/dist/cdn/{5H6OROJK.js → N4UNPHFQ.js} +1 -1
  67. package/dist/cdn/{7ZCKR7TW.js → NBU2KMJP.js} +1 -1
  68. package/dist/cdn/NBX2RCQR.js +2 -0
  69. package/dist/cdn/NQMXSOYA.js +2 -0
  70. package/dist/cdn/{DKWAWI4G.js → NXJTHWZ6.js} +1 -1
  71. package/dist/cdn/{AUBBEYJL.js → OGAJ4WJ7.js} +1 -1
  72. package/dist/cdn/{M5VLXVNQ.js → OXKHPA3Q.js} +1 -1
  73. package/dist/cdn/{DWHJ45FR.js → PCFYL72V.js} +1 -1
  74. package/dist/cdn/{BKACWDST.js → PK7EJW27.js} +1 -1
  75. package/dist/cdn/{C5SWAPH7.js → PM3ZMOIJ.js} +1 -1
  76. package/dist/cdn/{H4TRF2G7.js → PWHUWOQ3.js} +1 -1
  77. package/dist/cdn/PZGMF6VO.js +2 -0
  78. package/dist/cdn/QMI55NF4.js +2 -0
  79. package/dist/cdn/QNWDRDCX.js +2 -0
  80. package/dist/cdn/{BQLZPSWJ.js → QPYGIJHQ.js} +1 -1
  81. package/dist/cdn/{NDHD5H3P.js → QQMRZ2WI.js} +1 -1
  82. package/dist/cdn/{BV5TOHYG.js → QSWSIFAH.js} +1 -1
  83. package/dist/cdn/{6XW2ZF24.js → RII2VGVJ.js} +1 -1
  84. package/dist/cdn/{FQCG2EFI.js → RX7UZ7F5.js} +1 -1
  85. package/dist/cdn/S772GWA3.js +2 -0
  86. package/dist/cdn/SGI3WLNF.js +2 -0
  87. package/dist/cdn/SXQ2TVKW.js +2 -0
  88. package/dist/cdn/SXSWBX5T.js +2 -0
  89. package/dist/cdn/TEYNP76W.js +2 -0
  90. package/dist/cdn/TH6XSIAF.js +2 -0
  91. package/dist/cdn/{TF3F2YJ6.js → THNBXEBO.js} +1 -1
  92. package/dist/cdn/U6MJCS5P.js +2 -0
  93. package/dist/cdn/{6F74ZAGM.js → UI3WY3TF.js} +1 -1
  94. package/dist/cdn/{7NZ3RJFV.js → UXAGLEJM.js} +1 -1
  95. package/dist/cdn/{64NRJZKN.js → V2WAYK5G.js} +1 -1
  96. package/dist/cdn/{BLCWXWUR.js → V5BCQN5U.js} +1 -1
  97. package/dist/cdn/{CGX6YKBP.js → V75YULVA.js} +1 -1
  98. package/dist/cdn/{5UU2W2M6.js → VKS44KV4.js} +1 -1
  99. package/dist/cdn/{SHWP2FT2.js → VUBYPGZG.js} +1 -1
  100. package/dist/cdn/VYGJEX36.js +2 -0
  101. package/dist/cdn/{VU5VTC5L.js → WKQGRP5P.js} +1 -1
  102. package/dist/cdn/{FWRSYP3I.js → X4GCKBT2.js} +1 -1
  103. package/dist/cdn/{7T744GFJ.js → XATZUXUP.js} +1 -1
  104. package/dist/cdn/XDKRJYZ2.js +2 -0
  105. package/dist/cdn/YDA23ZS6.js +2 -0
  106. package/dist/cdn/{5IEUHTZ7.js → YFU47LWN.js} +1 -1
  107. package/dist/cdn/YO44QZPK.js +2 -0
  108. package/dist/cdn/{GMLGEIYS.js → YXWMVZUC.js} +1 -1
  109. package/dist/cdn/YYHDUC6G.js +2 -0
  110. package/dist/cdn/{6L5QFCR6.js → ZY5BJB25.js} +1 -1
  111. package/dist/cdn/{NF5AJJQU.js → ZZBKWWAW.js} +1 -1
  112. package/dist/cdn/assets/portal-account-switcher/t9n/messages.en.json +1 -1
  113. package/dist/cdn/assets/portal-delete-items/t9n/messages.ar.json +1 -0
  114. package/dist/cdn/assets/portal-delete-items/t9n/messages.bg.json +1 -0
  115. package/dist/cdn/assets/portal-delete-items/t9n/messages.ca.json +1 -0
  116. package/dist/cdn/assets/portal-delete-items/t9n/messages.cs.json +1 -0
  117. package/dist/cdn/assets/portal-delete-items/t9n/messages.da.json +1 -0
  118. package/dist/cdn/assets/portal-delete-items/t9n/messages.de.json +1 -0
  119. package/dist/cdn/assets/portal-delete-items/t9n/messages.el.json +1 -0
  120. package/dist/cdn/assets/portal-delete-items/t9n/messages.en.json +1 -0
  121. package/dist/cdn/assets/portal-delete-items/t9n/messages.es.json +1 -0
  122. package/dist/cdn/assets/portal-delete-items/t9n/messages.et.json +1 -0
  123. package/dist/cdn/assets/portal-delete-items/t9n/messages.fi.json +1 -0
  124. package/dist/cdn/assets/portal-delete-items/t9n/messages.fr.json +1 -0
  125. package/dist/cdn/assets/portal-delete-items/t9n/messages.he.json +1 -0
  126. package/dist/cdn/assets/portal-delete-items/t9n/messages.hr.json +1 -0
  127. package/dist/cdn/assets/portal-delete-items/t9n/messages.hu.json +1 -0
  128. package/dist/cdn/assets/portal-delete-items/t9n/messages.id.json +1 -0
  129. package/dist/cdn/assets/portal-delete-items/t9n/messages.it.json +1 -0
  130. package/dist/cdn/assets/portal-delete-items/t9n/messages.ja.json +1 -0
  131. package/dist/cdn/assets/portal-delete-items/t9n/messages.ko.json +1 -0
  132. package/dist/cdn/assets/portal-delete-items/t9n/messages.lt.json +1 -0
  133. package/dist/cdn/assets/portal-delete-items/t9n/messages.lv.json +1 -0
  134. package/dist/cdn/assets/portal-delete-items/t9n/messages.nl.json +1 -0
  135. package/dist/cdn/assets/portal-delete-items/t9n/messages.no.json +1 -0
  136. package/dist/cdn/assets/portal-delete-items/t9n/messages.pl.json +1 -0
  137. package/dist/cdn/assets/portal-delete-items/t9n/messages.pt-BR.json +1 -0
  138. package/dist/cdn/assets/portal-delete-items/t9n/messages.pt-PT.json +1 -0
  139. package/dist/cdn/assets/portal-delete-items/t9n/messages.ro.json +1 -0
  140. package/dist/cdn/assets/portal-delete-items/t9n/messages.ru.json +1 -0
  141. package/dist/cdn/assets/portal-delete-items/t9n/messages.sk.json +1 -0
  142. package/dist/cdn/assets/portal-delete-items/t9n/messages.sl.json +1 -0
  143. package/dist/cdn/assets/portal-delete-items/t9n/messages.sr.json +1 -0
  144. package/dist/cdn/assets/portal-delete-items/t9n/messages.sv.json +1 -0
  145. package/dist/cdn/assets/portal-delete-items/t9n/messages.th.json +1 -0
  146. package/dist/cdn/assets/portal-delete-items/t9n/messages.tr.json +1 -0
  147. package/dist/cdn/assets/portal-delete-items/t9n/messages.uk.json +1 -0
  148. package/dist/cdn/assets/portal-delete-items/t9n/messages.vi.json +1 -0
  149. package/dist/cdn/assets/portal-delete-items/t9n/messages.zh-CN.json +1 -0
  150. package/dist/cdn/assets/portal-delete-items/t9n/messages.zh-TW.json +1 -0
  151. package/dist/cdn/assets/portal-group-browser/t9n/messages.en.json +1 -1
  152. package/dist/cdn/assets/portal-review-related-items/t9n/messages.ar.json +1 -0
  153. package/dist/cdn/assets/portal-review-related-items/t9n/messages.bg.json +1 -0
  154. package/dist/cdn/assets/portal-review-related-items/t9n/messages.ca.json +1 -0
  155. package/dist/cdn/assets/portal-review-related-items/t9n/messages.cs.json +1 -0
  156. package/dist/cdn/assets/portal-review-related-items/t9n/messages.da.json +1 -0
  157. package/dist/cdn/assets/portal-review-related-items/t9n/messages.de.json +1 -0
  158. package/dist/cdn/assets/portal-review-related-items/t9n/messages.el.json +1 -0
  159. package/dist/cdn/assets/portal-review-related-items/t9n/messages.en.json +1 -0
  160. package/dist/cdn/assets/portal-review-related-items/t9n/messages.es.json +1 -0
  161. package/dist/cdn/assets/portal-review-related-items/t9n/messages.et.json +1 -0
  162. package/dist/cdn/assets/portal-review-related-items/t9n/messages.fi.json +1 -0
  163. package/dist/cdn/assets/portal-review-related-items/t9n/messages.fr.json +1 -0
  164. package/dist/cdn/assets/portal-review-related-items/t9n/messages.he.json +1 -0
  165. package/dist/cdn/assets/portal-review-related-items/t9n/messages.hr.json +1 -0
  166. package/dist/cdn/assets/portal-review-related-items/t9n/messages.hu.json +1 -0
  167. package/dist/cdn/assets/portal-review-related-items/t9n/messages.id.json +1 -0
  168. package/dist/cdn/assets/portal-review-related-items/t9n/messages.it.json +1 -0
  169. package/dist/cdn/assets/portal-review-related-items/t9n/messages.ja.json +1 -0
  170. package/dist/cdn/assets/portal-review-related-items/t9n/messages.ko.json +1 -0
  171. package/dist/cdn/assets/portal-review-related-items/t9n/messages.lt.json +1 -0
  172. package/dist/cdn/assets/portal-review-related-items/t9n/messages.lv.json +1 -0
  173. package/dist/cdn/assets/portal-review-related-items/t9n/messages.nl.json +1 -0
  174. package/dist/cdn/assets/portal-review-related-items/t9n/messages.no.json +1 -0
  175. package/dist/cdn/assets/portal-review-related-items/t9n/messages.pl.json +1 -0
  176. package/dist/cdn/assets/portal-review-related-items/t9n/messages.pt-BR.json +1 -0
  177. package/dist/cdn/assets/portal-review-related-items/t9n/messages.pt-PT.json +1 -0
  178. package/dist/cdn/assets/portal-review-related-items/t9n/messages.ro.json +1 -0
  179. package/dist/cdn/assets/portal-review-related-items/t9n/messages.ru.json +1 -0
  180. package/dist/cdn/assets/portal-review-related-items/t9n/messages.sk.json +1 -0
  181. package/dist/cdn/assets/portal-review-related-items/t9n/messages.sl.json +1 -0
  182. package/dist/cdn/assets/portal-review-related-items/t9n/messages.sr.json +1 -0
  183. package/dist/cdn/assets/portal-review-related-items/t9n/messages.sv.json +1 -0
  184. package/dist/cdn/assets/portal-review-related-items/t9n/messages.th.json +1 -0
  185. package/dist/cdn/assets/portal-review-related-items/t9n/messages.tr.json +1 -0
  186. package/dist/cdn/assets/portal-review-related-items/t9n/messages.uk.json +1 -0
  187. package/dist/cdn/assets/portal-review-related-items/t9n/messages.vi.json +1 -0
  188. package/dist/cdn/assets/portal-review-related-items/t9n/messages.zh-CN.json +1 -0
  189. package/dist/cdn/assets/portal-review-related-items/t9n/messages.zh-TW.json +1 -0
  190. package/dist/cdn/index.js +1 -1
  191. package/dist/cdn/main.css +1 -1
  192. package/dist/chunks/functional.js +9 -0
  193. package/dist/components/arcgis-portal-account-switcher/customElement.d.ts +1 -2
  194. package/dist/components/arcgis-portal-account-switcher/customElement.js +107 -98
  195. package/dist/components/arcgis-portal-account-switcher-accounts/customElement.d.ts +0 -2
  196. package/dist/components/arcgis-portal-account-switcher-list/customElement.d.ts +0 -2
  197. package/dist/components/arcgis-portal-account-switcher-signout/customElement.d.ts +0 -2
  198. package/dist/components/arcgis-portal-delete-items/customElement.d.ts +128 -0
  199. package/dist/components/arcgis-portal-delete-items/customElement.js +452 -0
  200. package/dist/components/arcgis-portal-delete-items/index.d.ts +1 -0
  201. package/dist/components/arcgis-portal-delete-items/index.js +13 -0
  202. package/dist/components/arcgis-portal-delete-items/services.d.ts +7 -0
  203. package/dist/components/arcgis-portal-extent-picker/customElement.js +285 -243
  204. package/dist/components/arcgis-portal-extent-picker/index.js +3 -0
  205. package/dist/components/arcgis-portal-extent-picker-coord-field/customElement.js +8 -8
  206. package/dist/components/arcgis-portal-field-delete/customElement.js +206 -120
  207. package/dist/components/arcgis-portal-group-browser/customElement.d.ts +4 -0
  208. package/dist/components/arcgis-portal-group-browser-preview/customElement.d.ts +4 -0
  209. package/dist/components/arcgis-portal-group-browser-preview/customElement.js +1 -1
  210. package/dist/components/arcgis-portal-navigation/customElement.js +35 -37
  211. package/dist/components/arcgis-portal-navigation/index.js +1 -1
  212. package/dist/components/arcgis-portal-review-related-items/customElement.d.ts +27 -0
  213. package/dist/components/arcgis-portal-review-related-items/customElement.js +42 -0
  214. package/dist/components/arcgis-portal-review-related-items/index.d.ts +1 -0
  215. package/dist/components/arcgis-portal-review-related-items/index.js +5 -0
  216. package/dist/components/portal-group-browser-filters/customElement.js +15 -15
  217. package/dist/docs/api.json +1 -1
  218. package/dist/docs/docs.json +1 -1
  219. package/dist/docs/vscode.html-custom-data.json +1 -1
  220. package/dist/docs/web-types.json +1 -1
  221. package/dist/index.d.ts +14 -0
  222. package/dist/loader.js +3 -1
  223. package/dist/types/lumina.d.ts +14 -1
  224. package/dist/types/preact.d.ts +16 -1
  225. package/dist/types/react.d.ts +18 -1
  226. package/dist/types/services.d.ts +9 -0
  227. package/dist/types/stencil.d.ts +14 -1
  228. package/package.json +7 -6
  229. package/dist/cdn/2HI6C3VG.js +0 -2
  230. package/dist/cdn/3R4I7T7Y.js +0 -2
  231. package/dist/cdn/465E43FF.js +0 -2
  232. package/dist/cdn/6PRXL6A7.js +0 -2
  233. package/dist/cdn/7LIVNXCJ.js +0 -2
  234. package/dist/cdn/A2OPVUV2.js +0 -2
  235. package/dist/cdn/AO7QKC5R.js +0 -2
  236. package/dist/cdn/BTGSJRJK.js +0 -2
  237. package/dist/cdn/C7FIYNJZ.js +0 -2
  238. package/dist/cdn/CK2D7FWY.js +0 -2
  239. package/dist/cdn/CQYLVRUF.js +0 -2
  240. package/dist/cdn/GXQMTKYF.js +0 -2
  241. package/dist/cdn/H2BBKRIY.js +0 -2
  242. package/dist/cdn/HGKH2F4Y.js +0 -2
  243. package/dist/cdn/KXSBIXYI.js +0 -2
  244. package/dist/cdn/L3UUTA7H.js +0 -2
  245. package/dist/cdn/LD2SO7MK.js +0 -2
  246. package/dist/cdn/LDY4QCZH.js +0 -2
  247. package/dist/cdn/LR6IOINV.js +0 -2
  248. package/dist/cdn/M3PJPM3Q.js +0 -2
  249. package/dist/cdn/ML2ETZQ5.js +0 -2
  250. package/dist/cdn/NMMQRFHX.js +0 -2
  251. package/dist/cdn/OO2IP4WZ.js +0 -2
  252. package/dist/cdn/PBWAZUZ4.js +0 -2
  253. package/dist/cdn/QTDRRCS2.js +0 -2
  254. package/dist/cdn/SXE3WUK6.js +0 -2
  255. package/dist/cdn/UFEBKEX7.js +0 -2
  256. package/dist/cdn/VLLPYVQB.js +0 -2
  257. package/dist/cdn/W47ZH7KA.js +0 -2
  258. package/dist/cdn/WFTFIAEX.js +0 -2
  259. package/dist/cdn/WIU3MYUE.js +0 -2
  260. package/dist/cdn/WKFQOWXJ.js +0 -2
  261. package/dist/cdn/XCFRL5XT.js +0 -2
  262. package/dist/cdn/ZHJMS2LV.js +0 -2
  263. /package/dist/cdn/{DG6DAKQ2.js → ASDS73QU.js} +0 -0
  264. /package/dist/cdn/{N5KMTTYL.js → OTMC7MVD.js} +0 -0
@@ -12,21 +12,22 @@ import { i as T, c as ge, a as Tt } from "../../chunks/user2.js";
12
12
  import { c as Ct, d as Mt, e as Ot, f as Lt, h as Et } from "../../chunks/portal2.js";
13
13
  import { c as jt, d as Dt, e as zt } from "../../chunks/user.js";
14
14
  import { i as Ne, a as Gt } from "../../chunks/utils2.js";
15
- import { g as Ut } from "../../chunks/request.js";
15
+ import { e as Ut } from "../../chunks/functional.js";
16
+ import { g as Bt } from "../../chunks/request.js";
16
17
  import { g as Te } from "../../chunks/item.js";
17
18
  import { keyed as le } from "lit/directives/keyed.js";
18
- import { e as ue, n as Bt, a as de, f as J, g as Rt } from "../../chunks/portal.js";
19
+ import { e as ue, n as Rt, a as de, f as J, g as Ft } from "../../chunks/portal.js";
19
20
  import { ref as W, createRef as F } from "lit/directives/ref.js";
20
- import { c as Ft, g as Wt } from "../../chunks/dom.js";
21
+ import { c as Wt, g as Vt } from "../../chunks/dom.js";
21
22
  import { debounce as be } from "@arcgis/toolkit/function";
22
- import Vt from "@arcgis/core/identity/IdentityManager.js";
23
- import { t as Ht } from "../../chunks/functionalities.js";
24
- import { c as qt } from "../../chunks/string.js";
23
+ import Ht from "@arcgis/core/identity/IdentityManager.js";
24
+ import { t as qt } from "../../chunks/functionalities.js";
25
+ import { c as Jt } from "../../chunks/string.js";
25
26
  function ve({ portal: e, productInfo: t }) {
26
27
  const { name: i, glyph: n } = t || {};
27
28
  return c`<img alt class="logo__glyph" src=${n ?? M}><span class="logo__text"><span class="logo__title">${i}</span>${e?.name && c`<span class="logo__subtitle">${e.name}</span>` || ""}</span>`;
28
29
  }
29
- function Jt({ navigate: e, portal: t, product: i, productInfo: n, productHref: r, messages: o, searchActive: a, showNav: s, projectTitleEditing: l }) {
30
+ function Kt({ navigate: e, portal: t, product: i, productInfo: n, productHref: r, messages: o, searchActive: a, showNav: s, projectTitleEditing: l }) {
30
31
  const d = a && i === "Online" && !s || i !== "Online" && l && window.innerWidth < 960;
31
32
  return !i || !t || !o || d || t?.portalProperties?.topNav?.brandVisibilityEnabled === !1 && !t?.user ? null : r ? c`<a href=${r ?? M} @click=${(m) => {
32
33
  e({ event: m, href: r });
@@ -72,27 +73,27 @@ function Oe({ locale: e, time: t, t9n: i }) {
72
73
  const r = Ce(n);
73
74
  return r ? r[1] === "second" ? i?.lessThanOneMinute || `< ${te[e].format(r[0] > 0 ? 1 : -1, "minutes")}` : te[e].format(r[0], r[1]) : "";
74
75
  }
75
- const Kt = {
76
+ const Qt = {
76
77
  month: "long",
77
78
  day: "numeric",
78
79
  year: "numeric"
79
- }, Qt = {
80
+ }, Xt = {
80
81
  month: "long",
81
82
  day: "numeric"
82
83
  };
83
- function Xt({ locale: e, time: t }, i) {
84
+ function Yt({ locale: e, time: t }, i) {
84
85
  if (!e || !t)
85
86
  return "";
86
87
  const n = new Date(t);
87
- return It(n, i ? Kt : Qt);
88
+ return It(n, i ? Qt : Xt);
88
89
  }
89
- async function Yt({ portal: e }) {
90
+ async function Zt({ portal: e }) {
90
91
  if (!e?.user)
91
92
  return { result: [] };
92
93
  const t = `${e.restUrl}/community/users/${e.user.id}/notifications`, { result: i, error: n } = await B(t);
93
94
  return n ? { error: n } : { result: i?.notifications };
94
95
  }
95
- async function Zt(e, t) {
96
+ async function ei(e, t) {
96
97
  if (!e?.user)
97
98
  return { success: !0 };
98
99
  const i = t.map((o) => ({ portal: e, id: o })).map(Le);
@@ -106,7 +107,7 @@ async function Le({
106
107
  return n?.success ? { success: !0, id: t } : { success: !1, id: t };
107
108
  }
108
109
  const Ee = "notifications-menu";
109
- function ei(e) {
110
+ function ti(e) {
110
111
  try {
111
112
  const t = decodeURIComponent(e);
112
113
  return t !== e ? t : e;
@@ -114,7 +115,7 @@ function ei(e) {
114
115
  return e;
115
116
  }
116
117
  }
117
- function ti(e) {
118
+ function ii(e) {
118
119
  switch (e) {
119
120
  case "group_join_admin":
120
121
  return "users";
@@ -169,7 +170,7 @@ function ti(e) {
169
170
  return "bell";
170
171
  }
171
172
  }
172
- function ii({
173
+ function ni({
173
174
  notification: e,
174
175
  portal: t,
175
176
  locale: i,
@@ -180,9 +181,9 @@ function ii({
180
181
  date: Oe({ locale: i, time: e.received, t9n: n }),
181
182
  id: e.id,
182
183
  text: "",
183
- icon: ti(e.type)
184
+ icon: ii(e.type)
184
185
  };
185
- if (e.type === "webapp_not_copied" && t.isPortal && (e.type = "webapp_not_copied_portal"), e.data?.taskTitle && (e.data.taskTitle = ei(e.data.taskTitle)), e.type === "message_received")
186
+ if (e.type === "webapp_not_copied" && t.isPortal && (e.type = "webapp_not_copied_portal"), e.data?.taskTitle && (e.data.taskTitle = ti(e.data.taskTitle)), e.type === "message_received")
186
187
  r.text = e.data.message || "";
187
188
  else if (n.types[e.type]) {
188
189
  const o = ce({ portal: t, usePortalHostname: !!t.user });
@@ -200,16 +201,16 @@ async function _e({
200
201
  }) {
201
202
  if (!i)
202
203
  return [];
203
- const { result: n, error: r } = await Yt({ portal: e });
204
- return r && console.error(r), n?.length ? n.map((a) => ii({ notification: a, portal: e, t9n: i, locale: t })).filter((a) => a) : [];
204
+ const { result: n, error: r } = await Zt({ portal: e });
205
+ return r && console.error(r), n?.length ? n.map((a) => ni({ notification: a, portal: e, t9n: i, locale: t })).filter((a) => a) : [];
205
206
  }
206
- function ni({ notifications: e, messages: t, handleToggleNotifications: i, handleToggleSearch: n, notificationsActive: r }) {
207
+ function ri({ notifications: e, messages: t, handleToggleNotifications: i, handleToggleSearch: n, notificationsActive: r }) {
207
208
  return t ? c`<calcite-action class="action" scale=l .text=${t.label} icon=bell .indicator=${!!e?.length} id=${Ee} @click=${() => i(!r)} @focusin=${() => n(!1, !0)}></calcite-action>` : null;
208
209
  }
209
210
  function K({ icon: e, title: t, description: i }) {
210
211
  return !t && !i ? null : c`<div class="empty">${e && c`<svg xmlns=http://www.w3.org/2000/svg width=64 height=64 viewBox="0 0 64 64" fill=none>${xt`<path d=${Nt[e] ?? M} fill=var(--calcite-color-border-input) />`}</svg>` || ""}${t && c`<h3 class="notifications__empty__header">${t}</h3>` || ""}${i && c`<p class="notifications__empty__text">${i}</p>` || ""}</div>`;
211
212
  }
212
- function ri({ notifications: e, deleteNotifications: t, messages: i, navigate: n, portal: r, notificationsActive: o, handleToggleNotifications: a, notificationDeleteProgress: s }) {
213
+ function oi({ notifications: e, deleteNotifications: t, messages: i, navigate: n, portal: r, notificationsActive: o, handleToggleNotifications: a, notificationDeleteProgress: s }) {
213
214
  return i ? c`<calcite-popover .referenceElement=${Ee} @calcitePopoverClose=${() => a(!1)} .label=${i.label} auto-close .open=${o} pointer-disabled flip-disabled trigger-disabled placement=bottom-end scale=l .heading=${i.label}>${e?.length > 0 ? c`<div class="notifications notifications--full">${typeof s == "number" && c`<calcite-scrim><calcite-loader type=determinate-value .label=${i.deleting} .value=${s}></calcite-loader></calcite-scrim>` || ""}<calcite-list .label=${i.label} interaction-mode=static class="notifications__list" scale=l>${U(e, (l) => l.id, (l) => c`<calcite-list-item closable @calciteListItemClose=${async () => await t([l.id])} .messageOverrides=${{ close: i.dismissLabel }} .iconStart=${l.icon}><div slot=content class="notification"><div class="notification__message" .innerHTML=${l.text ?? ""} @click=${(d) => {
214
215
  const m = d.target, g = m.href;
215
216
  if (m.nodeName === "CALCITE-LINK" && g) {
@@ -221,9 +222,6 @@ function ri({ notifications: e, deleteNotifications: t, messages: i, navigate: n
221
222
  await t(e?.map(({ id: m }) => m)), d.open = !1;
222
223
  }}>${i.dismissAllLabel}</calcite-button>` : c`<div class="notifications">${K({ title: i.noNotifications, description: i.noNotificationsDescription, icon: "check" })}</div>`}</calcite-popover>` : null;
223
224
  }
224
- function oi(e) {
225
- return e.replace(/[.*+?^${}()|[\]\\]/gu, "\\$&");
226
- }
227
225
  function ai(e, t, i, n) {
228
226
  pi(e, JSON.stringify(t), i);
229
227
  }
@@ -247,7 +245,7 @@ function ui(e, t) {
247
245
  return i && t ? JSON.parse(i) : i;
248
246
  }
249
247
  function di(e) {
250
- const t = document.cookie, i = new RegExp(`(?:^|; )${oi(e)}=([^;]*)`, "u"), n = t.match(i);
248
+ const t = document.cookie, i = new RegExp(`(?:^|; )${Ut(e)}=([^;]*)`, "u"), n = t.match(i);
251
249
  return n ? decodeURIComponent(n[1]) : "";
252
250
  }
253
251
  function pi(e, t, i) {
@@ -649,7 +647,7 @@ async function Mi({
649
647
  }
650
648
  }
651
649
  }
652
- const N = await Ut(i);
650
+ const N = await Bt(i);
653
651
  return o.forEach((h) => {
654
652
  if (h.type === "Web Mapping Application" && !A[h.clientId] && !g[h.itemId] && h.url && h.title && !g[h.title] && !h.typeKeywords.includes("hideFromAppSwitcher")) {
655
653
  const u = Ti(h, i, N);
@@ -1077,7 +1075,7 @@ function Hi({
1077
1075
  configName: "scene"
1078
1076
  },
1079
1077
  notebook: {
1080
- show: Bt(e),
1078
+ show: Rt(e),
1081
1079
  href: `${r}notebook/notebookhome.html`,
1082
1080
  relativePath: "notebook/notebookhome.html",
1083
1081
  icon: "notebook",
@@ -1100,7 +1098,7 @@ function Hi({
1100
1098
  function qi({ portal: e, item: t, messages: i, navigate: n, locale: r }) {
1101
1099
  if (!t || !i || !t.modified)
1102
1100
  return null;
1103
- const o = t.modified, a = { lessThanOneMinute: i.lessThanOneMinute }, s = Ce(Me(o)), l = s?.[1] === "year" || s?.[1] === "month" ? Xt({ locale: r, time: o }, s?.[1] === "year") : Oe({ locale: r, time: o, t9n: a }), d = `item.html?id=${t.id}`, m = `${O(e)}${d}}`;
1101
+ const o = t.modified, a = { lessThanOneMinute: i.lessThanOneMinute }, s = Ce(Me(o)), l = s?.[1] === "year" || s?.[1] === "month" ? Yt({ locale: r, time: o }, s?.[1] === "year") : Oe({ locale: r, time: o, t9n: a }), d = `item.html?id=${t.id}`, m = `${O(e)}${d}}`;
1104
1102
  return le(t.id, c`<li class="list-item"><a class="list-item__link" href=${m ?? M} @click=${(g) => {
1105
1103
  n({ event: g, href: m, relativePath: d });
1106
1104
  }}>${c`<span class="list-item__container"><span class="list-item__logo list-item__logo--item-type"><arcgis-portal-item-type .item=${t} .user=${e.user} hide-text></arcgis-portal-item-type></span><span class="list-item__content"><span class="list-item__title list-item__title--regular">${t.title}</span><span class="list-item__subtitle">${X(i.lastUpdated, { date: l })}</span></span></span>`}</a></li>`);
@@ -1254,7 +1252,7 @@ function cn({ userLinks: e, messages: t, navigate: i, openAccountSwitcher: n, po
1254
1252
  }} @click=${(A) => {
1255
1253
  i({ event: A, href: p, relativePath: _ });
1256
1254
  }}>${g}</calcite-dropdown-item>`)}</calcite-dropdown-group>`)}<calcite-dropdown-group selection-mode=none>${n && c`<calcite-dropdown-item icon-start=users @calciteDropdownItemSelect=${(l) => {
1257
- const d = Ft(l.target, "calcite-dropdown");
1255
+ const d = Wt(l.target, "calcite-dropdown");
1258
1256
  d && (d.open = !1), n();
1259
1257
  }}>${t.switchAccounts}</calcite-dropdown-item>` || ""}<calcite-dropdown-item icon-start=sign-out @calciteDropdownItemSelect=${() => o()}>${t.signOut}</calcite-dropdown-item></calcite-dropdown-group></calcite-dropdown></div>`;
1260
1258
  }
@@ -1662,15 +1660,15 @@ function $n() {
1662
1660
  ci(Ae), li(Ae);
1663
1661
  }
1664
1662
  function An(e, t = window.location.href) {
1665
- const i = window.location.href.startsWith("http://"), n = Rt(e);
1666
- Vt.destroyCredentials(), $n();
1663
+ const i = window.location.href.startsWith("http://"), n = Ft(e);
1664
+ Ht.destroyCredentials(), $n();
1667
1665
  const r = new URL(J(`${de(e)}oauth2/signout`, e)), { searchParams: o } = r;
1668
1666
  o.append("client_id", "arcgisonline"), o.append("redirect_uri", t), n && i && (e.isPortal || e.user?.sourceJSON.provider === "enterprise") && o.append("token", n), window.location.href = r.href;
1669
1667
  }
1670
1668
  function z(e, t) {
1671
1669
  if (!e)
1672
1670
  return 0;
1673
- const i = Wt({ text: e, font: `${t === "s" ? ".875rem" : "1rem"} 'Avenir Next'` });
1671
+ const i = Vt({ text: e, font: `${t === "s" ? ".875rem" : "1rem"} 'Avenir Next'` });
1674
1672
  return Math.ceil(i);
1675
1673
  }
1676
1674
  function kn({
@@ -1728,7 +1726,7 @@ async function Sn({
1728
1726
  }) {
1729
1727
  if (!e)
1730
1728
  return [];
1731
- const i = qt((t || "").substring(0, 409)), n = `${e?.id ? `accountid:"${e.id}"` : ""}${qe}`, r = `${de(e)}search/suggest`;
1729
+ const i = Jt((t || "").substring(0, 409)), n = `${e?.id ? `accountid:"${e.id}"` : ""}${qe}`, r = `${de(e)}search/suggest`;
1732
1730
  return (await B(r, { query: {
1733
1731
  suggest: i,
1734
1732
  filters: n,
@@ -1748,7 +1746,7 @@ class Nn extends At {
1748
1746
  }, this.deleteNotifications = async (t) => {
1749
1747
  const { portal: i } = this;
1750
1748
  if (t?.length < 20)
1751
- await Zt(i, t);
1749
+ await ei(i, t);
1752
1750
  else {
1753
1751
  let n = 0;
1754
1752
  for await (const r of t)
@@ -1799,7 +1797,7 @@ class Nn extends At {
1799
1797
  o?.success && (this.previousAppState = {
1800
1798
  apps: i,
1801
1799
  hiddenApps: t
1802
- }), await Ht(1e3), this.appsLoading = !1;
1800
+ }), await qt(1e3), this.appsLoading = !1;
1803
1801
  }, this.handleAppDelete = async (t) => {
1804
1802
  t && (this.apps = this.sortedApps.filter((i) => i.itemId !== t), this.sortedApps = this.sortedApps.filter((i) => i.itemId !== t));
1805
1803
  }, this.handleAppCancel = () => {
@@ -1902,7 +1900,7 @@ class Nn extends At {
1902
1900
  }
1903
1901
  render() {
1904
1902
  const { accountSwitcherOpen: t, apps: i, appsLoading: n, appsSearchTerm: r, currentPathname: o, handleAppCancel: a, handleAppDelete: s, handleAppHide: l, handleAppReorder: d, handleAppSave: m, handleItemSearch: g, handlePlatformClose: p, handleSearch: _, handleToggleSearch: A, handleSearchTypeChange: w, hiddenApps: I, infoBanner: N, links: f, messages: h, navigate: u, notifications: v, notificationsActive: P, notificationDeleteProgress: y, openAccountSwitcher: x, platformInfo: k, portal: b, portalItem: j, product: L, productInfo: $, productHref: E, projectTitle: Y, editedProjectTitle: H, handleProjectTitleSave: D, handleProjectTitleEdit: Je, handleProjectTitleCancel: Ke, handleToggleNotifications: fe, openProjectTitleEdit: Qe, openPlatformMenu: Xe, platformMenuOpen: Ye, projectTitleEditing: Z, projectTitleSaving: Ze, projectTitleErrorMessage: et, projectMenuIcon: tt, projectMenuSaveIndicator: it, projectMenuClick: nt, projectMenuOptions: rt, projectTitleInputRef: ot, projectButtonRef: at, recentContent: st, recentContentSearchTerm: ct, recentContentLoading: lt, userLinks: ut, searchActive: R, searchTerm: dt, searchType: pt, searchInput: ht, searchAction: mt, searchPopover: ft, showNav: ee, showProduct: gt, showUser: bt, suggestions: vt } = this, _t = b?.user, wt = Q(L) && !f?.length || !this.measurements;
1905
- return c`<calcite-scrim class=${re({ scrim: !0, "scrim--active": R })}></calcite-scrim><div class="wrapper" style=${Ie({ "--arcgis-portal-navigation-max-width": this.maxWidth ? `${this.maxWidth}px` : "100%" })}><arcgis-portal-info-banner .config=${N}></arcgis-portal-info-banner>${b?.isPortal && j?.loaded && c`<arcgis-portal-classification-banner .portalItem=${j}></arcgis-portal-classification-banner>` || ""}<header class=${re({ navigation: !0, "navigation--loading": wt })}>${Pn({ messages: h?.platform, portal: b, showNav: ee, openPlatformMenu: Xe, handleToggleSearch: A })}${gt && Jt({ navigate: u, portal: b, product: L, productInfo: $, productHref: E, messages: h?.logo, showNav: ee, searchActive: R, projectTitleEditing: Z }) || ""}${Zi({ navigate: u, portal: b, portalItem: j, messages: h?.project, projectTitle: Y, editedProjectTitle: H, handleProjectTitleSave: D, handleProjectTitleEdit: Je, openProjectTitleEdit: Qe, projectTitleErrorMessage: et, handleProjectTitleCancel: Ke, projectTitleEditing: Z, projectTitleSaving: Ze, projectMenuIcon: tt, projectMenuSaveIndicator: it, projectMenuClick: nt, projectMenuOptions: rt, projectTitleInputRef: ot, projectButtonRef: at })}${ee && sn({ searchActive: R, navigate: u, portal: b, product: L, messages: h?.links, links: f, currentPathname: o }) || ""}<div slot=content-end class="content-end fade-in" .hidden=${Z || R}><slot name=content-end></slot></div>${on({ currentPathname: o, navigate: u, portal: b, product: L, messages: h?.search, searchActive: R, searchType: pt, searchTerm: dt, suggestions: vt, handleSearch: _, handleToggleSearch: A, handleSearchTypeChange: w, searchInputRef: ht, searchActionRef: mt, searchPopoverRef: ft })}${_t ? c`<div class="border-start">${ni({ notifications: v, notificationsActive: P, messages: h?.notifications, handleToggleNotifications: fe, handleToggleSearch: A })}${ri({ notificationsActive: P, notifications: v, navigate: u, portal: b, deleteNotifications: this.deleteNotifications, handleToggleNotifications: fe, messages: h?.notifications, notificationDeleteProgress: y })}</div>${cn({ portal: b, userLinks: ut, openAccountSwitcher: b?.isPortal ? void 0 : x, signOut: this.signOut, messages: h?.user, textDisabled: bt === "avatar", navigate: u })}` : an({ messages: h.user, signIn: this.signIn })}</header>${Ji({ locale: h._t9nLocale, navigate: u, portal: b, product: L, platformInfo: k, messages: h?.platform, apps: i, appsLoading: n, hiddenApps: I, appsSearchTerm: r, editingApplications: this.editingApplications, open: Ye, links: f, recentContent: st, recentContentSearchTerm: ct, recentContentLoading: lt, handlePlatformClose: p, handlePlatformTabUpdate: this.handlePlatformTabUpdate, handleAppReorder: d, handleAppEdit: () => this.editingApplications = !0, handleAppDelete: s, handleAppsSearch: (yt) => this.appsSearchTerm = yt, handleAppSave: m, handleAppCancel: a, handleAppHide: l, handleItemSearch: g, platformTab: this.platformTab })}${t && c`<arcgis-portal-account-switcher .portal=${b} @arcgisClose=${() => {
1903
+ return c`<calcite-scrim class=${re({ scrim: !0, "scrim--active": R })}></calcite-scrim><div class="wrapper" style=${Ie({ "--arcgis-portal-navigation-max-width": this.maxWidth ? `${this.maxWidth}px` : "100%" })}><arcgis-portal-info-banner .config=${N}></arcgis-portal-info-banner>${b?.isPortal && j?.loaded && c`<arcgis-portal-classification-banner .portalItem=${j}></arcgis-portal-classification-banner>` || ""}<header class=${re({ navigation: !0, "navigation--loading": wt })}>${Pn({ messages: h?.platform, portal: b, showNav: ee, openPlatformMenu: Xe, handleToggleSearch: A })}${gt && Kt({ navigate: u, portal: b, product: L, productInfo: $, productHref: E, messages: h?.logo, showNav: ee, searchActive: R, projectTitleEditing: Z }) || ""}${Zi({ navigate: u, portal: b, portalItem: j, messages: h?.project, projectTitle: Y, editedProjectTitle: H, handleProjectTitleSave: D, handleProjectTitleEdit: Je, openProjectTitleEdit: Qe, projectTitleErrorMessage: et, handleProjectTitleCancel: Ke, projectTitleEditing: Z, projectTitleSaving: Ze, projectMenuIcon: tt, projectMenuSaveIndicator: it, projectMenuClick: nt, projectMenuOptions: rt, projectTitleInputRef: ot, projectButtonRef: at })}${ee && sn({ searchActive: R, navigate: u, portal: b, product: L, messages: h?.links, links: f, currentPathname: o }) || ""}<div slot=content-end class="content-end fade-in" .hidden=${Z || R}><slot name=content-end></slot></div>${on({ currentPathname: o, navigate: u, portal: b, product: L, messages: h?.search, searchActive: R, searchType: pt, searchTerm: dt, suggestions: vt, handleSearch: _, handleToggleSearch: A, handleSearchTypeChange: w, searchInputRef: ht, searchActionRef: mt, searchPopoverRef: ft })}${_t ? c`<div class="border-start">${ri({ notifications: v, notificationsActive: P, messages: h?.notifications, handleToggleNotifications: fe, handleToggleSearch: A })}${oi({ notificationsActive: P, notifications: v, navigate: u, portal: b, deleteNotifications: this.deleteNotifications, handleToggleNotifications: fe, messages: h?.notifications, notificationDeleteProgress: y })}</div>${cn({ portal: b, userLinks: ut, openAccountSwitcher: b?.isPortal ? void 0 : x, signOut: this.signOut, messages: h?.user, textDisabled: bt === "avatar", navigate: u })}` : an({ messages: h.user, signIn: this.signIn })}</header>${Ji({ locale: h._t9nLocale, navigate: u, portal: b, product: L, platformInfo: k, messages: h?.platform, apps: i, appsLoading: n, hiddenApps: I, appsSearchTerm: r, editingApplications: this.editingApplications, open: Ye, links: f, recentContent: st, recentContentSearchTerm: ct, recentContentLoading: lt, handlePlatformClose: p, handlePlatformTabUpdate: this.handlePlatformTabUpdate, handleAppReorder: d, handleAppEdit: () => this.editingApplications = !0, handleAppDelete: s, handleAppsSearch: (yt) => this.appsSearchTerm = yt, handleAppSave: m, handleAppCancel: a, handleAppHide: l, handleItemSearch: g, platformTab: this.platformTab })}${t && c`<arcgis-portal-account-switcher .portal=${b} @arcgisClose=${() => {
1906
1904
  this.accountSwitcherOpen = !1;
1907
1905
  }}></arcgis-portal-account-switcher>` || ""}</div>`;
1908
1906
  }
@@ -8,8 +8,8 @@ import "@esri/calcite-components/components/calcite-list";
8
8
  import "../arcgis-portal-item-type/index.js";
9
9
  import "@esri/calcite-components/components/calcite-loader";
10
10
  import "@esri/calcite-components/components/calcite-button";
11
- import "@esri/calcite-components/components/calcite-dropdown-item";
12
11
  import "@esri/calcite-components/components/calcite-input";
12
+ import "@esri/calcite-components/components/calcite-dropdown-item";
13
13
  import "@esri/calcite-components/components/calcite-dropdown";
14
14
  import "../arcgis-portal-user-avatar/index.js";
15
15
  import "@esri/calcite-components/components/calcite-dropdown-group";
@@ -0,0 +1,27 @@
1
+ /// <reference path="../../index.d.ts" />
2
+ import type Portal from "@arcgis/core/portal/Portal.js";
3
+ import type PortalItem from "@arcgis/core/portal/PortalItem.js";
4
+ import type PortalUser from "@arcgis/core/portal/PortalUser.js";
5
+ import type { PublicLitElement as LitElement } from "@arcgis/lumina";
6
+ import type { T9nMeta } from "@arcgis/lumina/controllers";
7
+
8
+ export abstract class ArcgisPortalReviewRelatedItems extends LitElement {
9
+ /** @internal */
10
+ protected messages: {
11
+ itemsDirectlyUsing: string;
12
+ everyone: string;
13
+ organization: string;
14
+ group: string;
15
+ owner: string;
16
+ } & T9nMeta<{
17
+ itemsDirectlyUsing: string;
18
+ everyone: string;
19
+ organization: string;
20
+ group: string;
21
+ owner: string;
22
+ }>;
23
+ accessor portal: Portal | undefined;
24
+ accessor relatedItems: PortalItem[];
25
+ accessor sourceItem: PortalItem | null;
26
+ accessor user: PortalUser | null | undefined;
27
+ }
@@ -0,0 +1,42 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
+ import { c } from "../../chunks/runtime.js";
3
+ import { css as n, html as i } from "lit";
4
+ import { substitute as o } from "@arcgis/core/intl.js";
5
+ import { LitElement as m, nothing as p } from "@arcgis/lumina";
6
+ import { u as d } from "../../chunks/useT9n.js";
7
+ import { g } from "../../chunks/user2.js";
8
+ const u = n`:host{display:block}.item{display:block;color:var(--calcite-color-text-1);text-decoration:none}.item-link{text-decoration:none}.item__content{display:flex;flex-direction:column;min-width:0;margin-inline-start:var(--calcite-spacing-unit);overflow-wrap:anywhere}.item__title{color:var(--calcite-color-text-1);font-size:var(--calcite-font-size--1);text-decoration:underline}.item__details{display:flex;flex-wrap:wrap;align-items:center;gap:.25rem;color:var(--calcite-color-text-2);font-size:var(--calcite-font-size--2)}.item__details-owner{display:inline-block;text-decoration:none}.item__type{font-weight:var(--calcite-font-weight-medium)}.item-card__access{display:flex;align-items:center;color:var(--calcite-color-text-2);font-size:.75rem}.item-card__detail__icon{margin-inline-end:.375rem}.items-directly-using{display:block;padding-block-end:.75rem}`;
9
+ class _ extends m {
10
+ constructor() {
11
+ super(...arguments), this.messages = d({ blocking: !0 }), this.sourceItem = null, this.relatedItems = [];
12
+ }
13
+ static {
14
+ this.properties = { sourceItem: 0, relatedItems: 0, portal: 0, user: 0 };
15
+ }
16
+ static {
17
+ this.styles = u;
18
+ }
19
+ getAccessInfoIcon(e) {
20
+ return {
21
+ public: "globe",
22
+ private: "lock",
23
+ org: "organization",
24
+ shared: "group"
25
+ }[e];
26
+ }
27
+ render() {
28
+ return this.relatedItems.length ? i`<span class="items-directly-using" .innerHTML=${o(this.messages.itemsDirectlyUsing, {
29
+ itemTitle: this.sourceItem?.title ?? "",
30
+ count: this.relatedItems.length
31
+ }) ?? ""}></span><calcite-list label="Related items">${this.relatedItems.map((e) => {
32
+ const t = e.itemPageUrl ?? void 0, s = e.title ?? "", l = this.getAccessInfoIcon(e.access), a = i`<calcite-list-item .label=${s} @calciteListItemSelect=${() => {
33
+ t && window.open(t, "_blank", "noopener,noreferrer");
34
+ }}><span slot=content-start><arcgis-portal-item-type .item=${e} .portal=${this.portal} .user=${this.user} hide-text></arcgis-portal-item-type></span><div slot=content class="item"><div class="item__content"><span class="item__title">${s}</span><div class="item__details"><span class="item__type"><arcgis-portal-item-type .item=${e} .user=${this.user} .portal=${this.portal} scale=s hide-icon></arcgis-portal-item-type></span>|<span class="item__details-owner">${g(this.user, this.messages._lang) ?? e.owner}</span></div></div></div><span slot=content-end class="item-card__access"><calcite-icon .icon=${l} scale=s class="item-card__detail__icon"></calcite-icon></span></calcite-list-item>`;
35
+ return t ? i`<a href=${t ?? p} rel="noopener noreferrer" target=_blank tabindex=-1 class="item-link" @click=${(r) => r.preventDefault()}>${a}</a>` : a;
36
+ })}</calcite-list>` : null;
37
+ }
38
+ }
39
+ c("arcgis-portal-review-related-items", _);
40
+ export {
41
+ _ as ArcgisPortalReviewRelatedItems
42
+ };
@@ -0,0 +1 @@
1
+ export * from "./customElement.js";
@@ -0,0 +1,5 @@
1
+ import "@esri/calcite-components/components/calcite-list";
2
+ import "@esri/calcite-components/components/calcite-list-item";
3
+ import "../arcgis-portal-item-type/index.js";
4
+ import "@esri/calcite-components/components/calcite-icon";
5
+ export * from "./customElement.js";
@@ -1,14 +1,14 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
2
  import { html as a } from "lit";
3
- import { substitute as m } from "@arcgis/core/intl.js";
4
- import { nothing as u } from "@arcgis/lumina";
3
+ import { substitute as u } from "@arcgis/core/intl.js";
4
+ import { nothing as m } from "@arcgis/lumina";
5
5
  import { i as pe } from "../../chunks/users.js";
6
6
  import { P as de } from "../../chunks/portal-browser-filter-date.js";
7
7
  import { PortalBrowserFilterItem as g } from "../portal-browser/components/portal-browser-filter/customElement.js";
8
8
  import { PortalBrowserFilters as me } from "../portal-browser/components/portal-browser-filters/customElement.js";
9
9
  import { g as ue, a as ge, b as be, c as fe, d as he } from "../../chunks/query.js";
10
10
  function ye(U) {
11
- const { browserMessages: O, slot: y, filters: l, hasIndoorsSpaces: v, isFilterActive: b, messages: t, portal: f, selectedAccess: L, selectedGroupsByUser: z, selectedMemberOrg: N, selectedMembership: j, selectedOwner: H, selectedSpecialGroup: J, specialGroupOptions: K, store: k, handleRemove: c, handleSelect: n, handleUpsert: o, handleUserFilterChange: W } = U, I = f.isPortal, q = f.user, S = pe(q), B = q?.username ?? "", X = (e) => e === B ? m(t.groupsByUser.me, { username: e }) : e, C = (e, r) => e === "owner" ? r : e === "outsideOrg" && S ? t.owner.someoneElse : e === "inOrg" ? t.owner.inOrg : e === "outsideOrg" ? t.owner.outsideOrg : r, w = l.owner, T = H ?? w?.props?.owner ?? null, x = w?.props?.username ?? B, Y = f.id ?? "", Z = S ? ["owner", "outsideOrg"] : ["owner", "inOrg", "outsideOrg"], P = l.membership, M = j ?? P?.props?.membership ?? null, V = ["org", "collaboration", "anyOrg"], G = l.memberOrg, A = N ?? G?.props?.memberOrg ?? null, ee = G?.props?.orgId ?? f.id ?? "", re = ["myOrg", "anotherOrg"], F = l.specialGroups, Q = J ?? F?.props?.specialGroup ?? null, E = l.access, _ = L ?? E?.props?.access ?? null, se = ["public", "org", "private"], h = l.groupsByUser, D = h?.props?.usernames ?? [], te = h?.props?.selectedUsername ?? z ?? D[0] ?? B, i = O.filter.clear, p = (e, r) => {
11
+ const { browserMessages: O, slot: y, filters: l, hasIndoorsSpaces: v, isFilterActive: b, messages: t, portal: f, selectedAccess: D, selectedGroupsByUser: N, selectedMemberOrg: j, selectedMembership: z, selectedOwner: H, selectedSpecialGroup: J, specialGroupOptions: K, store: k, handleRemove: c, handleSelect: n, handleUpsert: o, handleUserFilterChange: W } = U, I = f.isPortal, q = f.user, S = pe(q), B = q?.username ?? "", X = (e) => e === B ? u(t.groupsByUser.me, { username: e }) : e, C = (e, r) => e === "owner" ? r : e === "outsideOrg" && S ? t.owner.someoneElse : e === "inOrg" ? t.owner.inOrg : e === "outsideOrg" ? t.owner.outsideOrg : r, w = l.owner, T = H ?? w?.props?.owner ?? null, x = w?.props?.username ?? B, Y = f.id ?? "", Z = S ? ["owner", "outsideOrg"] : ["owner", "inOrg", "outsideOrg"], P = l.membership, M = z ?? P?.props?.membership ?? null, V = ["org", "collaboration", "anyOrg"], G = l.memberOrg, A = j ?? G?.props?.memberOrg ?? null, ee = G?.props?.orgId ?? f.id ?? "", re = ["myOrg", "anotherOrg"], F = l.specialGroups, Q = J ?? F?.props?.specialGroup ?? null, E = l.access, L = D ?? E?.props?.access ?? null, se = ["public", "org", "private"], h = l.groupsByUser, _ = h?.props?.usernames ?? [], te = h?.props?.selectedUsername ?? N ?? _[0] ?? B, i = O.filter.clear, p = (e, r) => {
12
12
  const s = l[e];
13
13
  s && (s.props = { ...s.props, expanded: r });
14
14
  }, ae = (e) => {
@@ -26,7 +26,7 @@ function ye(U) {
26
26
  }, children: a`<calcite-tree selection-mode=single scale=m @calciteTreeSelect=${(e) => {
27
27
  const r = e.target.selectedItems?.[0]?.dataset.username ?? "";
28
28
  n({ kind: "groupsByUser", value: r }), W(r);
29
- }}>${D.map((e) => a`<calcite-tree-item data-username=${e ?? u} .selected=${e === te}><a class="groups-by-user__label">${X(e)}</a></calcite-tree-item>`)}</calcite-tree>` }) || ""}${!!w?.enabled && g({ heading: t.owner.title, expanded: !!w?.props?.expanded, setExpanded: (e) => p("owner", e), active: b("owner"), clearLabel: i, onRemove: () => c("owner"), children: a`<calcite-tree selection-mode=single scale=m @calciteTreeSelect=${(e) => {
29
+ }}>${_.map((e) => a`<calcite-tree-item data-username=${e ?? m} .selected=${e === te}><a class="groups-by-user__label">${X(e)}</a></calcite-tree-item>`)}</calcite-tree>` }) || ""}${!!w?.enabled && g({ heading: t.owner.title, expanded: !!w?.props?.expanded, setExpanded: (e) => p("owner", e), active: b("owner"), clearLabel: i, onRemove: () => c("owner"), children: a`<calcite-tree selection-mode=single scale=m @calciteTreeSelect=${(e) => {
30
30
  const r = "owner", s = $(T, e, r);
31
31
  if (!s) {
32
32
  c(r);
@@ -34,7 +34,7 @@ function ye(U) {
34
34
  }
35
35
  o({
36
36
  id: r,
37
- label: m(t.owner.label, { label: C(s, x) }),
37
+ label: u(t.owner.label, { label: C(s, x) }),
38
38
  param: "q",
39
39
  value: ue(s, x, {
40
40
  isPublicUser: S,
@@ -43,7 +43,7 @@ function ye(U) {
43
43
  owner: s,
44
44
  username: x
45
45
  }), n({ kind: r, value: s });
46
- }}>${Z.filter((e) => !(I || v) || e !== "outsideOrg").map((e) => a`<calcite-tree-item data-owner=${e ?? u} .selected=${T === e}>${C(e, x)}</calcite-tree-item>`)}</calcite-tree>` }) || ""}${!!(G?.enabled && !I) && g({ heading: t.memberOrg.title, expanded: !!G?.props?.expanded, setExpanded: (e) => p("memberOrg", e), active: b("memberOrg"), clearLabel: i, onRemove: () => c("memberOrg"), children: a`<calcite-tree selection-mode=single scale=m @calciteTreeSelect=${(e) => {
46
+ }}>${Z.filter((e) => !(I || v) || e !== "outsideOrg").map((e) => a`<calcite-tree-item data-owner=${e ?? m} .selected=${T === e}>${C(e, x)}</calcite-tree-item>`)}</calcite-tree>` }) || ""}${!!(G?.enabled && !I) && g({ heading: t.memberOrg.title, expanded: !!G?.props?.expanded, setExpanded: (e) => p("memberOrg", e), active: b("memberOrg"), clearLabel: i, onRemove: () => c("memberOrg"), children: a`<calcite-tree selection-mode=single scale=m @calciteTreeSelect=${(e) => {
47
47
  const r = "memberOrg", s = $(A, e, r);
48
48
  if (!s) {
49
49
  c(r);
@@ -51,12 +51,12 @@ function ye(U) {
51
51
  }
52
52
  o({
53
53
  id: r,
54
- label: m(t.memberOrg.label, { label: t.memberOrg[s] }),
54
+ label: u(t.memberOrg.label, { label: t.memberOrg[s] }),
55
55
  param: "q",
56
56
  value: ge(s, ee),
57
57
  memberOrg: s
58
58
  }), n({ kind: r, value: s });
59
- }}>${re.map((e) => a`<calcite-tree-item data-member-org=${e ?? u} .selected=${A === e}>${t.memberOrg[e]}</calcite-tree-item>`)}</calcite-tree>` }) || ""}${!!(P?.enabled && // https://devtopia.esri.com/WebGIS/arcgis-portal-app/issues/44198
59
+ }}>${re.map((e) => a`<calcite-tree-item data-member-org=${e ?? m} .selected=${A === e}>${t.memberOrg[e]}</calcite-tree-item>`)}</calcite-tree>` }) || ""}${!!(P?.enabled && // https://devtopia.esri.com/WebGIS/arcgis-portal-app/issues/44198
60
60
  !I && // https://devtopia.esri.com/webgis/arcgis-portal-app/issues/37831
61
61
  !v) && g({ heading: t.membership.title, expanded: !!P?.props?.expanded, setExpanded: (e) => p("membership", e), active: b("membership"), clearLabel: i, onRemove: () => c("membership"), children: a`<calcite-tree selection-mode=single scale=m @calciteTreeSelect=${(e) => {
62
62
  const r = "membership", s = $(M, e, r);
@@ -66,12 +66,12 @@ function ye(U) {
66
66
  }
67
67
  o({
68
68
  id: r,
69
- label: m(t.membership.label, { label: t.membership[s] }),
69
+ label: u(t.membership.label, { label: t.membership[s] }),
70
70
  param: "q",
71
71
  value: be(s, v),
72
72
  membership: s
73
73
  }), n({ kind: r, value: s });
74
- }}>${V.map((e) => a`<calcite-tree-item data-membership=${e ?? u} .selected=${M === e}>${t.membership[e]}</calcite-tree-item>`)}</calcite-tree>` }) || ""}${F?.enabled && g({ heading: t.specialGroups.title, expanded: !!F.props?.expanded, setExpanded: (e) => p("specialGroups", e), active: b("specialGroups"), clearLabel: i, onRemove: () => c("specialGroups"), children: a`<calcite-tree selection-mode=single scale=m @calciteTreeSelect=${async (e) => {
74
+ }}>${V.map((e) => a`<calcite-tree-item data-membership=${e ?? m} .selected=${M === e}>${t.membership[e]}</calcite-tree-item>`)}</calcite-tree>` }) || ""}${F?.enabled && g({ heading: t.specialGroups.title, expanded: !!F.props?.expanded, setExpanded: (e) => p("specialGroups", e), active: b("specialGroups"), clearLabel: i, onRemove: () => c("specialGroups"), children: a`<calcite-tree selection-mode=single scale=m @calciteTreeSelect=${async (e) => {
75
75
  const r = "specialGroups", s = $(Q, e, r);
76
76
  if (!s) {
77
77
  c(r);
@@ -80,12 +80,12 @@ function ye(U) {
80
80
  const R = await fe(s, f);
81
81
  o({
82
82
  id: "specialGroups",
83
- label: m(t.specialGroups.label, { label: t.specialGroups[s] }),
83
+ label: u(t.specialGroups.label, { label: t.specialGroups[s] }),
84
84
  param: "q",
85
85
  value: R,
86
86
  specialGroup: s
87
87
  }), n({ kind: "specialGroups", value: s });
88
- }}>${K.map((e) => a`<calcite-tree-item data-special-groups=${e ?? u} .selected=${Q === e}><span class="special-groups-settings-option">${t.specialGroups[e]}${e === "settings" && a`<span class="special-groups-settings-icon"><calcite-icon id=portal-group-browser-special-groups-settings-info icon=information scale=s text-label=Information></calcite-icon><calcite-tooltip placement=bottom-end reference-element=portal-group-browser-special-groups-settings-info>Groups used in organization settings.</calcite-tooltip></span>` || ""}</span></calcite-tree-item>`)}</calcite-tree>` }) || ""}${["modified", "created"].filter((e) => l[e]?.enabled).map((e) => {
88
+ }}>${K.map((e) => a`<calcite-tree-item data-special-groups=${e ?? m} .selected=${Q === e}><span class="special-groups-settings-option">${t.specialGroups[e]}${e === "settings" && a`<span class="special-groups-settings-icon"><calcite-icon id=portal-group-browser-special-groups-settings-info icon=information scale=s text-label=${t.specialGroups.tooltipLabel ?? m}></calcite-icon><calcite-tooltip placement=bottom-end reference-element=portal-group-browser-special-groups-settings-info>${t.specialGroups.tooltip}</calcite-tooltip></span>` || ""}</span></calcite-tree-item>`)}</calcite-tree>` }) || ""}${["modified", "created"].filter((e) => l[e]?.enabled).map((e) => {
89
89
  const r = l[e]?.props, s = k.filters[e], R = !!r?.includeNever, le = s?.range ?? r?.range ?? null, ce = s?.start ?? r?.start, ne = s?.end ?? r?.end, oe = r?.serverProperty, ie = r?.expanded;
90
90
  return de({ property: e, filterDateMessages: O.filterDate, clearLabel: i, expanded: ie, setExpanded: (d) => p(e, d), includeNever: R, range: le, start: ce, end: ne, serverProperty: oe, onRemove: () => {
91
91
  o({
@@ -109,19 +109,19 @@ function ye(U) {
109
109
  });
110
110
  } });
111
111
  })}${!!E?.enabled && g({ heading: t.access.title, expanded: !!E?.props?.expanded, setExpanded: (e) => p("access", e), active: b("access"), clearLabel: i, onRemove: () => c("access"), children: a`<calcite-tree selection-mode=single scale=m @calciteTreeSelect=${(e) => {
112
- const r = "access", s = $(_, e, r);
112
+ const r = "access", s = $(L, e, r);
113
113
  if (!s) {
114
114
  c(r);
115
115
  return;
116
116
  }
117
117
  o({
118
118
  id: r,
119
- label: m(t.access.label, { label: t.access[s] }),
119
+ label: u(t.access.label, { label: t.access[s] }),
120
120
  param: "q",
121
121
  value: he(s),
122
122
  access: s
123
123
  }), n({ kind: r, value: s });
124
- }}>${se.map((e) => a`<calcite-tree-item data-access=${e ?? u} .selected=${_ === e}>${t.access[e]}</calcite-tree-item>`)}</calcite-tree>` }) || ""}` });
124
+ }}>${se.map((e) => a`<calcite-tree-item data-access=${e ?? m} .selected=${L === e}>${t.access[e]}</calcite-tree-item>`)}</calcite-tree>` }) || ""}` });
125
125
  }
126
126
  const $ = (U, O, y) => {
127
127
  const l = O.target.selectedItems?.[0]?.dataset[y];