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

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 (412) hide show
  1. package/dist/cdn/{SGDDFWCJ.js → 2GIECQ25.js} +1 -1
  2. package/dist/cdn/2N6K2UUQ.js +2 -0
  3. package/dist/cdn/36DGXQLJ.js +2 -0
  4. package/dist/cdn/{2TDHJSMP.js → 3HXQ5Z4C.js} +1 -1
  5. package/dist/cdn/3HZI6MKD.js +2 -0
  6. package/dist/cdn/3OL7A2UC.js +2 -0
  7. package/dist/cdn/3Q7UJKKN.js +2 -0
  8. package/dist/cdn/3SG67WP5.js +2 -0
  9. package/dist/cdn/3ZVDEJPF.js +2 -0
  10. package/dist/cdn/42AN66SK.js +2 -0
  11. package/dist/cdn/46HNNQAD.js +2 -0
  12. package/dist/cdn/4CBRO7JP.js +2 -0
  13. package/dist/cdn/4E354KKM.js +2 -0
  14. package/dist/cdn/4QYVBXZT.js +2 -0
  15. package/dist/cdn/5MLBK66O.js +2 -0
  16. package/dist/cdn/5ZHNRQOW.js +2 -0
  17. package/dist/cdn/62TL6V4N.js +2 -0
  18. package/dist/cdn/67FEZD25.js +2 -0
  19. package/dist/cdn/{BKD7JSV2.js → 6CUXEL27.js} +1 -1
  20. package/dist/cdn/6GPAZV4Z.js +2 -0
  21. package/dist/cdn/6QI7DAS2.js +2 -0
  22. package/dist/cdn/6XDKSVRF.js +2 -0
  23. package/dist/cdn/6ZJNZZPC.js +2 -0
  24. package/dist/cdn/6ZYYG64M.js +2 -0
  25. package/dist/cdn/7AG3E7K6.js +2 -0
  26. package/dist/cdn/7JDXAVUG.js +2 -0
  27. package/dist/cdn/7JKFWVCY.js +2 -0
  28. package/dist/cdn/7VPB6Q55.js +63 -0
  29. package/dist/cdn/AJEQETRW.js +2 -0
  30. package/dist/cdn/{JE2376SE.js → AP7UWD4P.js} +1 -1
  31. package/dist/cdn/{OR6T5SB3.js → BNWJUQDF.js} +1 -1
  32. package/dist/cdn/BUYOYUA2.js +2 -0
  33. package/dist/cdn/BX7Q3V2Y.js +43 -0
  34. package/dist/cdn/BXPNB7VJ.js +2 -0
  35. package/dist/cdn/BZEKNJUA.js +2 -0
  36. package/dist/cdn/C6RUWLEJ.js +2 -0
  37. package/dist/cdn/CERDMRFQ.js +2 -0
  38. package/dist/cdn/DFECUYNW.js +2 -0
  39. package/dist/cdn/DGWOMELT.js +2 -0
  40. package/dist/cdn/DIWTHL4N.js +2 -0
  41. package/dist/cdn/DKUOQCHO.js +2 -0
  42. package/dist/cdn/{ZKZDKJ6D.js → DQL2JT6K.js} +1 -1
  43. package/dist/cdn/{2YZWRFCI.js → DTGPLVZF.js} +1 -1
  44. package/dist/cdn/DU2R3VC4.js +2 -0
  45. package/dist/cdn/E5HCHRAI.js +2 -0
  46. package/dist/cdn/EBL7YSRM.js +2 -0
  47. package/dist/cdn/EDGE3T36.js +2 -0
  48. package/dist/cdn/EETYTFHH.js +2 -0
  49. package/dist/cdn/{YZTBAUIO.js → EFMYI4L2.js} +1 -1
  50. package/dist/cdn/FINVGL3V.js +2 -0
  51. package/dist/cdn/FN2QMDEW.js +2 -0
  52. package/dist/cdn/FXXFSYNB.js +2 -0
  53. package/dist/cdn/GA4OWLSO.js +2 -0
  54. package/dist/cdn/GFUKRB6D.js +2 -0
  55. package/dist/cdn/GHDMQJG4.js +2 -0
  56. package/dist/cdn/{FRE56NBG.js → GY4SY4XC.js} +1 -1
  57. package/dist/cdn/H4TPPTVB.js +2 -0
  58. package/dist/cdn/HOIZXTOD.js +2 -0
  59. package/dist/cdn/{VDXESPJK.js → I4TKQB4A.js} +1 -1
  60. package/dist/cdn/{TWCJJCPC.js → IAMPUXPT.js} +1 -1
  61. package/dist/cdn/IQPJOVDL.js +2 -0
  62. package/dist/cdn/ITRJGXFV.js +93 -0
  63. package/dist/cdn/ITWLFQI4.js +2 -0
  64. package/dist/cdn/IWPJEUHY.js +2 -0
  65. package/dist/cdn/{7ZWYUHGK.js → IYICIRGI.js} +1 -1
  66. package/dist/cdn/JDW7ECBF.js +2 -0
  67. package/dist/cdn/JFGXTJY4.js +2 -0
  68. package/dist/cdn/JGTBDGJ7.js +2 -0
  69. package/dist/cdn/JLT5GCLY.js +2 -0
  70. package/dist/cdn/JTA223NH.js +2 -0
  71. package/dist/cdn/KA2MXQTR.js +2 -0
  72. package/dist/cdn/KAK6CNI7.js +2 -0
  73. package/dist/cdn/{CFRJU6VA.js → KRO5XRZ7.js} +1 -1
  74. package/dist/cdn/KRORL7QC.js +2 -0
  75. package/dist/cdn/KWL2D56D.js +3 -0
  76. package/dist/cdn/{QTAYXO5T.js → KXVXQYIB.js} +1 -1
  77. package/dist/cdn/L3YOPSRB.js +135 -0
  78. package/dist/cdn/{IN4JPZTY.js → LGKI24ZT.js} +1 -1
  79. package/dist/cdn/{JIJO4CAS.js → LVWAYUYZ.js} +1 -1
  80. package/dist/cdn/{Z6R3C4AK.js → MB32XRI5.js} +1 -1
  81. package/dist/cdn/ME6XACY6.js +2 -0
  82. package/dist/cdn/MSL36HAR.js +2 -0
  83. package/dist/cdn/MSSJRDR7.js +2 -0
  84. package/dist/cdn/N47MW5HI.js +9 -0
  85. package/dist/cdn/N5AG34NK.js +2 -0
  86. package/dist/cdn/N7XYFVOI.js +2 -0
  87. package/dist/cdn/NHVPNSNH.js +2 -0
  88. package/dist/cdn/{5HZNBMW6.js → NU4K2AV3.js} +1 -1
  89. package/dist/cdn/O2GPTWGF.js +3 -0
  90. package/dist/cdn/ODYYTLLQ.js +2 -0
  91. package/dist/cdn/{TRMFL7PT.js → ONRTCGLU.js} +1 -1
  92. package/dist/cdn/{RHCRPJWS.js → OPMM7QH5.js} +1 -1
  93. package/dist/cdn/OQBLBDR5.js +2 -0
  94. package/dist/cdn/OWODUQF2.js +2 -0
  95. package/dist/cdn/OXF2WDSW.js +2 -0
  96. package/dist/cdn/PM33STYQ.js +2 -0
  97. package/dist/cdn/PUHZVFK7.js +2 -0
  98. package/dist/cdn/QAXFE5DD.js +2 -0
  99. package/dist/cdn/{JPUUMGX5.js → QKRLO5CJ.js} +1 -1
  100. package/dist/cdn/QXPDVHB5.js +2 -0
  101. package/dist/cdn/R26RBXQW.js +2 -0
  102. package/dist/cdn/{NWVLGU2C.js → R45EMSQJ.js} +1 -1
  103. package/dist/cdn/R6KJVAX3.js +99 -0
  104. package/dist/cdn/RA2NMLMP.js +2 -0
  105. package/dist/cdn/RDRSZQAR.js +2 -0
  106. package/dist/cdn/RR56BOTV.js +2 -0
  107. package/dist/cdn/RT26JZP5.js +2 -0
  108. package/dist/cdn/RX64JXHI.js +170 -0
  109. package/dist/cdn/S4N5QMSN.js +2 -0
  110. package/dist/cdn/SCLYGIHM.js +2 -0
  111. package/dist/cdn/SGV47YVU.js +2 -0
  112. package/dist/cdn/SRWFOV5W.js +2 -0
  113. package/dist/cdn/{3NSHGKZA.js → TBSNDRRE.js} +1 -1
  114. package/dist/cdn/{ROX3GKKA.js → TIPQ2ZWK.js} +1 -1
  115. package/dist/cdn/TQX5BOZG.js +2 -0
  116. package/dist/cdn/U2J4ST45.js +2 -0
  117. package/dist/cdn/U3V7PPC2.js +2 -0
  118. package/dist/cdn/{TXC7YBGL.js → UBMZBXT7.js} +1 -1
  119. package/dist/cdn/UCHX4CBR.js +2 -0
  120. package/dist/cdn/UCTXRTQZ.js +2 -0
  121. package/dist/cdn/ULGME5RT.js +2 -0
  122. package/dist/cdn/UWB23CG4.js +2 -0
  123. package/dist/cdn/VABNHOVG.js +2 -0
  124. package/dist/cdn/{URQML7KV.js → VQRMXBPQ.js} +1 -1
  125. package/dist/cdn/VWOBCSD6.js +4 -0
  126. package/dist/cdn/W6U2HMEK.js +2 -0
  127. package/dist/cdn/{MKSFNVXL.js → WNXDXB3M.js} +1 -1
  128. package/dist/cdn/{JN23JH3T.js → WOSWA2VI.js} +1 -1
  129. package/dist/cdn/WTKLB3R6.js +2 -0
  130. package/dist/cdn/{GAF4YT5N.js → XSEFGIVV.js} +1 -1
  131. package/dist/cdn/XYHIVGUK.js +2 -0
  132. package/dist/cdn/{M5PPX4ZX.js → Y4JOEFBJ.js} +1 -1
  133. package/dist/cdn/Y7ZCEONL.js +73 -0
  134. package/dist/cdn/YCMZ3RVZ.js +2 -0
  135. package/dist/cdn/YELHAJB3.js +2 -0
  136. package/dist/cdn/YH2OFXPU.js +2 -0
  137. package/dist/cdn/{I6IRHXWR.js → ZECUXVTO.js} +1 -1
  138. package/dist/cdn/{K2XSYDAP.js → ZNNEU5QW.js} +1 -1
  139. package/dist/cdn/{74T6IXSN.js → ZOOEWYFB.js} +1 -1
  140. package/dist/cdn/assets/portal-ai-assistant/t9n/messages.en.json +1 -1
  141. package/dist/cdn/assets/portal-entity-picker/t9n/messages.en.json +1 -1
  142. package/dist/cdn/assets/portal-item-card/t9n/messages.en.json +1 -1
  143. package/dist/cdn/assets/portal-item-card-sublayer-select/t9n/messages.en.json +1 -0
  144. package/dist/cdn/assets/portal-item-preview/t9n/messages.en.json +1 -0
  145. package/dist/cdn/assets/portal-item-share-summary/t9n/messages.en.json +1 -0
  146. package/dist/cdn/assets/portal-item-status-card/t9n/messages.en.json +1 -0
  147. package/dist/cdn/assets/portal-item-type/t9n/messages.en.json +1 -1
  148. package/dist/cdn/assets/portal-navigation/t9n/messages.en.json +1 -1
  149. package/dist/cdn/assets/portal-review-layer-sharing/t9n/messages.en.json +1 -0
  150. package/dist/cdn/index.js +1 -1
  151. package/dist/cdn/main.css +1 -1
  152. package/dist/chunks/FieldIcons.js +24 -0
  153. package/dist/chunks/constants.js +7 -0
  154. package/dist/chunks/contextUsage.js +208 -0
  155. package/dist/chunks/createPortalTool.js +18 -0
  156. package/dist/chunks/fieldAddDelete.js +6 -6
  157. package/dist/chunks/functionalities.js +14 -9
  158. package/dist/chunks/groups.js +8 -61
  159. package/dist/chunks/groups2.js +23 -8
  160. package/dist/chunks/help.js +22 -0
  161. package/dist/chunks/info.js +2 -2
  162. package/dist/chunks/item.js +135 -33
  163. package/dist/chunks/item2.js +96 -122
  164. package/dist/chunks/itemThumbnail.js +21 -21
  165. package/dist/chunks/items.js +11 -11
  166. package/dist/chunks/layers.js +196 -0
  167. package/dist/chunks/loadClassificationData.js +26 -27
  168. package/dist/chunks/portal-browser.js +49 -46
  169. package/dist/chunks/portal-delete-items-review.js +1 -1
  170. package/dist/chunks/portal-item-badge.js +1 -1
  171. package/dist/chunks/portal-item-preview-sublayer.js +214 -0
  172. package/dist/chunks/portal-item-status-card.js +81 -0
  173. package/dist/chunks/portal-related-items-list-item.js +1 -1
  174. package/dist/chunks/portal.js +14 -10
  175. package/dist/chunks/portal2.js +22 -22
  176. package/dist/chunks/portalEntitySelection.js +61 -0
  177. package/dist/chunks/previewSessionController.js +33 -0
  178. package/dist/chunks/query.js +14 -14
  179. package/dist/chunks/request.js +49 -41
  180. package/dist/chunks/requests.js +7 -7
  181. package/dist/chunks/selectedMentions.js +25 -0
  182. package/dist/chunks/services.js +5 -5
  183. package/dist/chunks/string.js +19 -11
  184. package/dist/chunks/ui.js +1 -0
  185. package/dist/chunks/url.js +2 -2
  186. package/dist/chunks/user.js +67 -53
  187. package/dist/chunks/user2.js +10 -10
  188. package/dist/chunks/utils.js +35 -22
  189. package/dist/chunks/utils3.js +88 -657
  190. package/dist/chunks/utils4.js +663 -0
  191. package/dist/components/arcgis-portal-account-switcher/customElement.js +57 -54
  192. package/dist/components/arcgis-portal-add-gps-metadata/customElement.d.ts +27 -0
  193. package/dist/components/arcgis-portal-add-gps-metadata/customElement.js +185 -137
  194. package/dist/components/arcgis-portal-ai-assistant/customElement.d.ts +38 -15
  195. package/dist/components/arcgis-portal-ai-assistant/customElement.js +816 -2642
  196. package/dist/components/arcgis-portal-ai-assistant/index.js +5 -0
  197. package/dist/components/arcgis-portal-ai-assistant/tools/getItemTool.d.ts +11 -0
  198. package/dist/components/arcgis-portal-ai-assistant/tools/groups.d.ts +28 -0
  199. package/dist/components/arcgis-portal-ai-assistant/tools/users.d.ts +28 -0
  200. package/dist/components/arcgis-portal-ai-assistant/types/assistantTools.d.ts +41 -3
  201. package/dist/components/arcgis-portal-ai-assistant/types/portalEntityTools.d.ts +19 -0
  202. package/dist/components/arcgis-portal-ai-assistant-diagnostics/contextUsage.d.ts +46 -0
  203. package/dist/components/arcgis-portal-ai-assistant-diagnostics/customElement.d.ts +26 -0
  204. package/dist/components/arcgis-portal-ai-assistant-diagnostics/customElement.js +46 -0
  205. package/dist/components/arcgis-portal-ai-assistant-diagnostics/index.d.ts +1 -0
  206. package/dist/components/arcgis-portal-ai-assistant-diagnostics/index.js +10 -0
  207. package/dist/components/arcgis-portal-ai-assistant-interrupt/customElement.d.ts +42 -1
  208. package/dist/components/arcgis-portal-ai-assistant-interrupt/customElement.js +49 -37
  209. package/dist/components/arcgis-portal-ai-assistant-interrupt/index.js +3 -4
  210. package/dist/components/arcgis-portal-browser/customElement.d.ts +3 -0
  211. package/dist/components/arcgis-portal-browser/customElement.js +3 -2
  212. package/dist/components/arcgis-portal-browser/index.js +1 -0
  213. package/dist/components/arcgis-portal-classification-banner/customElement.js +2 -2
  214. package/dist/components/arcgis-portal-classification-config/customElement.js +2 -2
  215. package/dist/components/arcgis-portal-classification-favorite/customElement.js +2 -2
  216. package/dist/components/arcgis-portal-classification-form-element/customElement.js +1 -1
  217. package/dist/components/arcgis-portal-delete-items/customElement.d.ts +69 -3
  218. package/dist/components/arcgis-portal-delete-items/customElement.js +437 -333
  219. package/dist/components/arcgis-portal-delete-items/index.js +1 -2
  220. package/dist/components/arcgis-portal-delete-items/types.d.ts +1 -0
  221. package/dist/components/arcgis-portal-entity-picker/customElement.d.ts +51 -5
  222. package/dist/components/arcgis-portal-entity-picker/customElement.js +204 -119
  223. package/dist/components/arcgis-portal-entity-picker/index.js +2 -0
  224. package/dist/components/arcgis-portal-field-delete/customElement.js +87 -101
  225. package/dist/components/arcgis-portal-field-delete/index.js +1 -1
  226. package/dist/components/arcgis-portal-group-badges/customElement.js +5 -5
  227. package/dist/components/arcgis-portal-group-browser/customElement.js +68 -100
  228. package/dist/components/arcgis-portal-group-browser/types.d.ts +3 -7
  229. package/dist/components/arcgis-portal-group-browser-preview/customElement.js +49 -40
  230. package/dist/components/arcgis-portal-group-browser-preview/index.js +1 -0
  231. package/dist/components/arcgis-portal-group-browser-preview-card/customElement.js +1 -4
  232. package/dist/components/arcgis-portal-group-card/customElement.js +16 -16
  233. package/dist/components/arcgis-portal-group-thumbnail/customElement.js +1 -1
  234. package/dist/components/arcgis-portal-item-badges/customElement.js +4 -4
  235. package/dist/components/arcgis-portal-item-card/customElement.d.ts +37 -10
  236. package/dist/components/arcgis-portal-item-card/customElement.js +125 -86
  237. package/dist/components/arcgis-portal-item-card/index.js +4 -1
  238. package/dist/components/arcgis-portal-item-card-sublayer-select/customElement.d.ts +102 -0
  239. package/dist/components/arcgis-portal-item-card-sublayer-select/customElement.js +181 -0
  240. package/dist/components/arcgis-portal-item-card-sublayer-select/index.d.ts +1 -0
  241. package/dist/components/arcgis-portal-item-card-sublayer-select/index.js +8 -0
  242. package/dist/components/arcgis-portal-item-card-sublayer-select/types.d.ts +22 -0
  243. package/dist/components/arcgis-portal-item-favorite/customElement.js +42 -29
  244. package/dist/components/arcgis-portal-item-preview/customElement.d.ts +263 -0
  245. package/dist/components/arcgis-portal-item-preview/customElement.js +137 -0
  246. package/dist/components/arcgis-portal-item-preview/index.d.ts +1 -0
  247. package/dist/components/arcgis-portal-item-preview/index.js +20 -0
  248. package/dist/components/arcgis-portal-item-preview/types.d.ts +14 -0
  249. package/dist/components/arcgis-portal-item-preview-copy/customElement.d.ts +215 -0
  250. package/dist/components/arcgis-portal-item-preview-copy/customElement.js +46 -0
  251. package/dist/components/arcgis-portal-item-preview-copy/index.d.ts +1 -0
  252. package/dist/components/arcgis-portal-item-preview-copy/index.js +5 -0
  253. package/dist/components/arcgis-portal-item-preview-field/customElement.d.ts +216 -0
  254. package/dist/components/arcgis-portal-item-preview-field/customElement.js +34 -0
  255. package/dist/components/arcgis-portal-item-preview-field/index.d.ts +1 -0
  256. package/dist/components/arcgis-portal-item-preview-field/index.js +6 -0
  257. package/dist/components/arcgis-portal-item-preview-sublayer/customElement.d.ts +216 -0
  258. package/dist/components/arcgis-portal-item-preview-sublayer/customElement.js +15 -0
  259. package/dist/components/arcgis-portal-item-preview-sublayer/index.d.ts +1 -0
  260. package/dist/components/arcgis-portal-item-preview-sublayer/index.js +11 -0
  261. package/dist/components/arcgis-portal-item-share-summary/customElement.d.ts +113 -0
  262. package/dist/components/arcgis-portal-item-share-summary/customElement.js +172 -0
  263. package/dist/components/arcgis-portal-item-share-summary/index.d.ts +1 -0
  264. package/dist/components/arcgis-portal-item-share-summary/index.js +5 -0
  265. package/dist/components/arcgis-portal-item-share-summary-editable/customElement.d.ts +33 -0
  266. package/dist/components/arcgis-portal-item-share-summary-editable/customElement.js +19 -0
  267. package/dist/components/arcgis-portal-item-share-summary-editable/index.d.ts +1 -0
  268. package/dist/components/arcgis-portal-item-share-summary-editable/index.js +2 -0
  269. package/dist/components/arcgis-portal-item-status-card/customElement.d.ts +82 -0
  270. package/dist/components/arcgis-portal-item-status-card/customElement.js +12 -0
  271. package/dist/components/arcgis-portal-item-status-card/index.d.ts +1 -0
  272. package/dist/components/arcgis-portal-item-status-card/index.js +4 -0
  273. package/dist/components/arcgis-portal-item-thumbnail/customElement.d.ts +1 -0
  274. package/dist/components/arcgis-portal-item-thumbnail/customElement.js +14 -14
  275. package/dist/components/arcgis-portal-item-type/customElement.d.ts +16 -14
  276. package/dist/components/arcgis-portal-item-type/customElement.js +25 -28
  277. package/dist/components/arcgis-portal-mentionable-text-area/customElement.js +61 -57
  278. package/dist/components/arcgis-portal-navigation/customElement.d.ts +10 -4
  279. package/dist/components/arcgis-portal-navigation/customElement.js +349 -351
  280. package/dist/components/arcgis-portal-navigation/index.js +4 -5
  281. package/dist/components/arcgis-portal-navigation/types.d.ts +3 -0
  282. package/dist/components/arcgis-portal-preview-panel/customElement.d.ts +40 -0
  283. package/dist/components/arcgis-portal-preview-panel/customElement.js +40 -0
  284. package/dist/components/arcgis-portal-preview-panel/index.d.ts +1 -0
  285. package/dist/components/arcgis-portal-preview-panel/index.js +1 -0
  286. package/dist/components/arcgis-portal-replacement-item-redirect/customElement.js +8 -8
  287. package/dist/components/arcgis-portal-review-layer-sharing/customElement.d.ts +139 -0
  288. package/dist/components/arcgis-portal-review-layer-sharing/customElement.js +593 -0
  289. package/dist/components/arcgis-portal-review-layer-sharing/index.d.ts +1 -0
  290. package/dist/components/arcgis-portal-review-layer-sharing/index.js +10 -0
  291. package/dist/components/arcgis-portal-review-layer-sharing/types.d.ts +27 -0
  292. package/dist/components/arcgis-portal-review-related-items/customElement.d.ts +333 -0
  293. package/dist/components/arcgis-portal-review-related-items/customElement.js +46 -18
  294. package/dist/components/arcgis-portal-review-related-items/index.js +2 -0
  295. package/dist/components/arcgis-portal-sublayer-type/customElement.js +13 -103
  296. package/dist/components/arcgis-portal-user-avatar/customElement.d.ts +2 -3
  297. package/dist/components/arcgis-portal-user-avatar/customElement.js +15 -16
  298. package/dist/components/arcgis-portal-user-popup/customElement.d.ts +4 -7
  299. package/dist/components/arcgis-portal-user-popup/customElement.js +128 -111
  300. package/dist/components/portal-group-browser-filters/customElement.js +15 -15
  301. package/dist/components/portal-related-items-list-item/customElement.js +16 -14
  302. package/dist/components/portal-related-items-list-item/index.js +1 -1
  303. package/dist/docs/api.json +1 -1
  304. package/dist/docs/docs.json +1 -1
  305. package/dist/docs/vscode.css-custom-data.json +1 -1
  306. package/dist/docs/vscode.html-custom-data.json +1 -1
  307. package/dist/docs/web-types.json +1 -1
  308. package/dist/index.d.ts +87 -0
  309. package/dist/index.js +305 -6
  310. package/dist/loader.js +22 -11
  311. package/dist/services/group.d.ts +17 -0
  312. package/dist/services/groups.d.ts +9 -0
  313. package/dist/services/item.d.ts +9 -0
  314. package/dist/types/item.d.ts +23 -11
  315. package/dist/types/layer.d.ts +27 -0
  316. package/dist/types/lumina.d.ts +82 -12
  317. package/dist/types/portalAssistantCurrentContext.d.ts +9 -0
  318. package/dist/types/portalEntityPicker.d.ts +3 -0
  319. package/dist/types/preact.d.ts +93 -12
  320. package/dist/types/react.d.ts +104 -12
  321. package/dist/types/services.d.ts +28 -1
  322. package/dist/types/stencil.d.ts +82 -12
  323. package/dist/types/user.d.ts +14 -10
  324. package/dist/utils/generateEmbeddings.d.ts +7 -0
  325. package/dist/utils/semanticSearch.d.ts +60 -0
  326. package/dist/utils/types.d.ts +10 -0
  327. package/package.json +14 -13
  328. package/dist/cdn/23NXHNPU.js +0 -2
  329. package/dist/cdn/24QSQLRY.js +0 -2
  330. package/dist/cdn/2CN754CY.js +0 -2
  331. package/dist/cdn/2FQKDFEE.js +0 -2
  332. package/dist/cdn/2MPQ5IWJ.js +0 -2
  333. package/dist/cdn/3CQKCUM5.js +0 -2
  334. package/dist/cdn/3EYB5GQX.js +0 -2
  335. package/dist/cdn/3FSPL34I.js +0 -170
  336. package/dist/cdn/3LEQ37YT.js +0 -68
  337. package/dist/cdn/4KTRAA2J.js +0 -2
  338. package/dist/cdn/4MUB6TL6.js +0 -2
  339. package/dist/cdn/4PRXQFCV.js +0 -2
  340. package/dist/cdn/4QFTKB6T.js +0 -2
  341. package/dist/cdn/4TSXFX3M.js +0 -2
  342. package/dist/cdn/5C5GHX4D.js +0 -2
  343. package/dist/cdn/7LMZHJZG.js +0 -2
  344. package/dist/cdn/A2SQ4EMZ.js +0 -2
  345. package/dist/cdn/AICPYLWE.js +0 -4
  346. package/dist/cdn/AXOBMX3S.js +0 -2
  347. package/dist/cdn/AZOJHVAO.js +0 -2
  348. package/dist/cdn/BYHX3UWV.js +0 -2
  349. package/dist/cdn/CD5UWSCP.js +0 -2
  350. package/dist/cdn/D2YQWKME.js +0 -135
  351. package/dist/cdn/DDBXEXOV.js +0 -2
  352. package/dist/cdn/DHMNNIXZ.js +0 -2
  353. package/dist/cdn/DLI4XKJ3.js +0 -2
  354. package/dist/cdn/DYO5P3F2.js +0 -2
  355. package/dist/cdn/E66BDC6N.js +0 -2
  356. package/dist/cdn/EEAVX4PP.js +0 -2
  357. package/dist/cdn/EMJQI4MA.js +0 -2
  358. package/dist/cdn/EY5S6ICQ.js +0 -2
  359. package/dist/cdn/FIBQAMJ3.js +0 -2
  360. package/dist/cdn/FIQZPIIK.js +0 -2
  361. package/dist/cdn/FNLBJ4ZQ.js +0 -2
  362. package/dist/cdn/GGDOGNH4.js +0 -150
  363. package/dist/cdn/GSOBDGLK.js +0 -2
  364. package/dist/cdn/GXM3XY3J.js +0 -2
  365. package/dist/cdn/HCNTXLUT.js +0 -2
  366. package/dist/cdn/I273CANO.js +0 -2
  367. package/dist/cdn/I6NVKNZJ.js +0 -2
  368. package/dist/cdn/J5FKIZAM.js +0 -2
  369. package/dist/cdn/J5NPDIZM.js +0 -2
  370. package/dist/cdn/JOUR2FB2.js +0 -3
  371. package/dist/cdn/JWBUJT43.js +0 -2
  372. package/dist/cdn/K75JTQPW.js +0 -2
  373. package/dist/cdn/LISDTBEX.js +0 -2
  374. package/dist/cdn/LYLQCBVX.js +0 -2
  375. package/dist/cdn/MQK63FV7.js +0 -2
  376. package/dist/cdn/N4VOTJ25.js +0 -2
  377. package/dist/cdn/N5QLV56W.js +0 -2
  378. package/dist/cdn/OD5WXP7J.js +0 -2
  379. package/dist/cdn/OXPXXIWL.js +0 -2
  380. package/dist/cdn/PKA745KL.js +0 -2
  381. package/dist/cdn/PMRFXB4F.js +0 -2
  382. package/dist/cdn/PNIFJ5DQ.js +0 -2
  383. package/dist/cdn/PZDI5ZDC.js +0 -2
  384. package/dist/cdn/QROXYP6V.js +0 -2
  385. package/dist/cdn/QUOLQGKP.js +0 -2
  386. package/dist/cdn/QWHGLE3O.js +0 -2
  387. package/dist/cdn/R3PK7XOP.js +0 -2
  388. package/dist/cdn/REM3KCX6.js +0 -2
  389. package/dist/cdn/RNWICLRH.js +0 -2
  390. package/dist/cdn/RQYNPDN3.js +0 -2
  391. package/dist/cdn/S6F7U36E.js +0 -400
  392. package/dist/cdn/SMX2LEJB.js +0 -2
  393. package/dist/cdn/SVROAT3Z.js +0 -2
  394. package/dist/cdn/TBZXKKGP.js +0 -2
  395. package/dist/cdn/TNUCSWBN.js +0 -2
  396. package/dist/cdn/TOICLGFK.js +0 -2
  397. package/dist/cdn/TOTWYGB3.js +0 -2
  398. package/dist/cdn/TUUUK3VX.js +0 -2
  399. package/dist/cdn/U3KMGSVH.js +0 -2
  400. package/dist/cdn/UEP2NYJK.js +0 -2
  401. package/dist/cdn/UZP4YMTE.js +0 -2
  402. package/dist/cdn/VNU4QX7M.js +0 -41
  403. package/dist/cdn/XYMBRPC7.js +0 -2
  404. package/dist/cdn/YB3DR4VO.js +0 -2
  405. package/dist/cdn/YYTEJVBL.js +0 -2
  406. package/dist/cdn/Z3HGPBOR.js +0 -2
  407. package/dist/cdn/ZDDN7UKS.js +0 -2
  408. package/dist/cdn/ZXNF77OB.js +0 -2
  409. package/dist/chunks/functional.js +0 -9
  410. package/dist/components/arcgis-portal-ai-assistant/data/capability-registries/types.d.ts +0 -45
  411. /package/dist/cdn/{OUMTV5H5.js → KHKREBVZ.js} +0 -0
  412. /package/dist/cdn/{DAAON2UO.js → UOXUUCE7.js} +0 -0
@@ -1,11 +1,10 @@
1
1
  /// <reference path="../../index.d.ts" />
2
2
  import type Portal from "@arcgis/core/portal/Portal.js";
3
3
  import type PortalItem from "@arcgis/core/portal/PortalItem.js";
4
- import type PortalUser from "@arcgis/core/portal/PortalUser.js";
5
4
  import type { PublicLitElement as LitElement } from "@arcgis/lumina";
6
5
  import type { InternalUIAction } from "../../types/tracking.js";
7
6
  import type { Scale } from "../../types/ui.js";
8
- import type { CommunityUser, ItemUserInfo, SearchResultUser } from "../../types/user.js";
7
+ import type { UserPresentation } from "../../types/user.js";
9
8
  import type { T9nMeta } from "@arcgis/lumina/controllers";
10
9
 
11
10
  export abstract class ArcgisPortalUserPopup extends LitElement {
@@ -21,7 +20,7 @@ export abstract class ArcgisPortalUserPopup extends LitElement {
21
20
  * @default false
22
21
  */
23
22
  accessor avatarAriaHidden: boolean | undefined;
24
- /** Fully qualified path to portal home root. */
23
+ /** Fully qualified page root for user links. Defaults to the portal home app. */
25
24
  accessor baseUrl: string | undefined;
26
25
  /**
27
26
  * @default false
@@ -89,7 +88,7 @@ export abstract class ArcgisPortalUserPopup extends LitElement {
89
88
  */
90
89
  accessor underline: boolean | undefined;
91
90
  /** Passing a user will always show thumbnail for that user (use either user or item). */
92
- accessor user: PopupUser | undefined;
91
+ accessor user: UserPresentation | undefined;
93
92
  /** Passing a username will perform a fetch for the user information on load. */
94
93
  accessor username: string | undefined;
95
94
  /**
@@ -109,6 +108,4 @@ export abstract class ArcgisPortalUserPopup extends LitElement {
109
108
  arcgisUserPopupClose: ArcgisPortalUserPopup["arcgisUserPopupClose"]["detail"];
110
109
  arcgisUserPopupInternalUIAction: ArcgisPortalUserPopup["arcgisUserPopupInternalUIAction"]["detail"];
111
110
  };
112
- }
113
-
114
- export type PopupUser = CommunityUser | ItemUserInfo | PortalUser | SearchResultUser;
111
+ }
@@ -1,87 +1,104 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import { c as R } from "../../chunks/runtime.js";
3
- import { LitElement as B, createEvent as g, safeClassMap as b, safeStyleMap as N } from "@arcgis/lumina";
4
- import { css as L, html as l } from "lit";
5
- import { createRef as $, ref as w } from "lit/directives/ref.js";
6
- import { unsafeHTML as T } from "lit/directives/unsafe-html.js";
7
- import { u as C } from "../../chunks/useT9n.js";
8
- import { f } from "../../chunks/user.js";
9
- import { s as k } from "../../chunks/dom.js";
10
- import { r as z, g as H } from "../../chunks/string.js";
11
- import { g as M } from "../../chunks/user2.js";
12
- import { f as y, r as U } from "../../chunks/request.js";
13
- import { a as I } from "../../chunks/portal.js";
14
- import { f as q } from "../../chunks/verified.js";
15
- const F = L`:host{display:flex}.button{display:flex;align-items:center;max-width:100%;cursor:pointer;white-space:normal;border-style:none;padding:0;font-size:.75rem;color:var(--calcite-color-text-2);outline:2px solid transparent;outline-offset:2px;transition-property:all;outline-color:transparent;background:transparent;font-family:inherit;line-height:1.5;&:focus{outline:2px solid var(--calcite-color-brand);outline-offset:2px}}.button--outline{box-sizing:border-box;width:100%;padding:.5rem .75rem;transition-property:all;border:1px solid var(--calcite-color-border-3);&:hover{box-shadow:inset 0 0 0 1px var(--calcite-color-foreground-3)}}.name{overflow:hidden;white-space:nowrap;margin-inline-start:.5rem;text-overflow:ellipsis}.popover__wrapper{background-color:var(--calcite-color-foreground-1);width:min(32rem,80vw)}.popover__header{padding:1.25rem 1rem}.popover__avatar{max-width:100%}.popover__content{padding:.5rem 1rem 1.25rem}.popover__description{margin:0;overflow:auto;padding:0;padding-bottom:1rem;font-size:.875rem;color:var(--calcite-color-text-2);max-height:21.25rem}.popover__fade{position:relative;z-index:10;margin-bottom:.25rem;display:block;height:1rem;width:100%;background:linear-gradient(to bottom,transparent,var(--calcite-color-foreground-1) 100%);margin-top:-1rem}.popover__buttons{display:grid;grid-auto-flow:column;grid-gap:.5rem}.popover__buttons--no-description{padding-top:1rem}.popover__button{min-width:0px}.popover__loader{--calcite-loader-padding: 0}`, x = (s) => (
16
- // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
17
- s?.sourceJSON?.contentStatus === "public_authoritative"
18
- );
19
- async function E(s, t, r, o) {
20
- if (x(s)) {
21
- const e = s.owner || "", a = await q(s, r, t, o);
22
- if (!a)
23
- return await f(e, t, o);
24
- const { description: n, name: i, thumbnail: u, url: m } = a;
25
- return {
26
- description: n ? k(n) : "",
27
- fullName: i,
28
- username: e,
29
- thumbnail: u,
30
- id: s.portal.id,
31
- url: m
32
- };
33
- }
34
- return await f(s.owner || "", t, o);
2
+ import { c as C } from "../../chunks/runtime.js";
3
+ import { isAbortError as v } from "@arcgis/core/core/promiseUtils.js";
4
+ import { LitElement as T, createEvent as g, safeClassMap as b, safeStyleMap as L } from "@arcgis/lumina";
5
+ import { Task as N } from "@lit/task";
6
+ import { log as $ } from "@arcgis/toolkit/log";
7
+ import { css as q, html as m } from "lit";
8
+ import { createRef as w, ref as _ } from "lit/directives/ref.js";
9
+ import { unsafeHTML as z } from "lit/directives/unsafe-html.js";
10
+ import { u as H } from "../../chunks/useT9n.js";
11
+ import { f as y } from "../../chunks/user.js";
12
+ import { d as U } from "../../chunks/items.js";
13
+ import { s as I } from "../../chunks/dom.js";
14
+ import { f as E } from "../../chunks/verified.js";
15
+ import { d as M, g as F } from "../../chunks/string.js";
16
+ import { g as G } from "../../chunks/user2.js";
17
+ import { g as S } from "../../chunks/url.js";
18
+ import { f as x, r as P } from "../../chunks/request.js";
19
+ import { a as A } from "../../chunks/portal.js";
20
+ async function D(l, e, r, o) {
21
+ const t = l.owner ?? "";
22
+ if (U(l) === "public_authoritative") {
23
+ const s = await E(l, r, e, o);
24
+ if (s) {
25
+ const { description: p, name: n, thumbnail: c, url: a } = s;
26
+ return {
27
+ description: p ? I(p) : "",
28
+ fullName: n,
29
+ username: t,
30
+ thumbnail: c,
31
+ id: e.id ?? "",
32
+ url: a
33
+ };
34
+ }
35
+ }
36
+ return await y(t, e, o);
35
37
  }
36
- async function G(s, t, r) {
37
- const o = r ? "https://www.arcgis.com/sharing/rest/" : I(t), e = r ? { disableIdentityLookup: !0, addTokenManually: !1 } : {};
38
- return await y({
39
- requester: async () => await U({
38
+ const V = q`:host{display:flex}.button{display:flex;align-items:center;max-width:100%;cursor:pointer;white-space:normal;border-style:none;padding:0;font-size:.75rem;color:var(--calcite-color-text-2);outline:2px solid transparent;outline-offset:2px;transition-property:all;outline-color:transparent;background:transparent;font-family:inherit;line-height:1.5;&:focus{outline:2px solid var(--calcite-color-brand);outline-offset:2px}}.button--outline{box-sizing:border-box;width:100%;padding:.5rem .75rem;transition-property:all;border:1px solid var(--calcite-color-border-3);&:hover{box-shadow:inset 0 0 0 1px var(--calcite-color-foreground-3)}}.name{overflow:hidden;white-space:nowrap;margin-inline-start:.5rem;text-overflow:ellipsis}.popover__wrapper{background-color:var(--calcite-color-foreground-1);width:min(32rem,80vw)}.popover__header{padding:1.25rem 1rem}.popover__avatar{max-width:100%}.popover__content{padding:.5rem 1rem 1.25rem}.popover__description{margin:0;overflow:auto;padding:0;padding-bottom:1rem;font-size:.875rem;color:var(--calcite-color-text-2);max-height:21.25rem}.popover__fade{position:relative;z-index:10;margin-bottom:.25rem;display:block;height:1rem;width:100%;background:linear-gradient(to bottom,transparent,var(--calcite-color-foreground-1) 100%);margin-top:-1rem}.popover__buttons{display:grid;grid-auto-flow:column;grid-gap:.5rem}.popover__buttons--no-description{padding-top:1rem}.popover__button{min-width:0px}.popover__loader{--calcite-loader-padding: 0}`;
39
+ async function j(l, e, r) {
40
+ const o = r ? "https://www.arcgis.com/sharing/rest/" : A(e), t = r ? { disableIdentityLookup: !0, addTokenManually: !1 } : {};
41
+ return await x({
42
+ requester: async () => await P({
40
43
  url: `${o}community/groups`,
41
- portal: t,
44
+ portal: e,
42
45
  params: {
43
- q: `(owner:"${s}")`,
46
+ q: `(owner:"${l}")`,
44
47
  num: 100
45
48
  },
46
- options: e
49
+ options: t
47
50
  }),
48
51
  key: "userGroups",
49
- id: s
52
+ id: `${o}${l}`
50
53
  });
51
54
  }
52
- async function S(s, t, r) {
53
- const o = r ? "https://www.arcgis.com/sharing/rest/" : I(t), e = r ? { disableIdentityLookup: !0, addTokenManually: !1 } : {};
54
- return await y({
55
- requester: async () => (await U({
55
+ async function J(l, e, r) {
56
+ const o = r ? "https://www.arcgis.com/sharing/rest/" : A(e), t = r ? { disableIdentityLookup: !0, addTokenManually: !1 } : {};
57
+ return await x({
58
+ requester: async () => (await P({
56
59
  url: `${o}search`,
57
- portal: t,
60
+ portal: e,
58
61
  params: {
59
- q: `(owner:"${s}") -typekeywords:"recyclebin"`,
62
+ q: `(owner:"${l}") -typekeywords:"recyclebin"`,
60
63
  num: 1
61
64
  },
62
- options: e
65
+ options: t
63
66
  })).total,
64
67
  key: "userItemsTotal",
65
- id: s
68
+ id: `${o}${l}`
66
69
  });
67
70
  }
68
- function _({
69
- baseUrl: s,
70
- user: t,
71
+ function k({
72
+ baseUrl: l,
73
+ user: e,
71
74
  type: r
72
75
  }) {
73
- const o = z(s), e = encodeURIComponent(t.username || "");
74
- return e ? `${o}/${r}.html?user=${e}` : `${o}/${r}.html`;
76
+ const o = M(l), t = encodeURIComponent(e.username || "");
77
+ return t ? `${o}/${r}.html?user=${t}` : `${o}/${r}.html`;
75
78
  }
76
- class D extends B {
79
+ class K extends T {
77
80
  constructor() {
78
- super(...arguments), this.messages = C({ blocking: !0 }), this.buttonRef = $(), this.popoverRef = $(), this.isPopoverOpen = !1, this.scale = "m", this.showAvatar = !0, this.showName = !0, this.showUsername = !1, this.appearance = "transparent", this.arcgisUserPopupInternalUIAction = g(), this.arcgisUserPopupClose = g();
81
+ super(...arguments), this.messages = H({ blocking: !0 }), this.buttonRef = w(), this.popoverRef = w(), this.identityTask = new N(this, {
82
+ args: () => [this.item, this.user, this.username, this.fullName, this.portal, this.checkOnline, this.messages._lang],
83
+ task: async ([e, r, o, t, s, p, n], { signal: c }) => {
84
+ if (!s || !n || r)
85
+ return;
86
+ const a = e ? await D(e, s, n, p) : o ? await y(o, s, p) : void 0;
87
+ return c.throwIfAborted(), a && !a.fullName && t ? { ...a, fullName: t } : a;
88
+ },
89
+ onComplete: (e) => {
90
+ this.itemUserInfo = e;
91
+ },
92
+ onError: (e) => {
93
+ v(e) || $("error", this, "Unable to load the item owner.", { detail: { error: e } });
94
+ }
95
+ }), this.isPopoverOpen = !1, this.scale = "m", this.showAvatar = !0, this.showName = !0, this.showUsername = !1, this.appearance = "transparent", this.arcgisUserPopupInternalUIAction = g(), this.arcgisUserPopupClose = g();
79
96
  }
80
97
  static {
81
98
  this.properties = { itemUserInfo: 16, groups: 16, total: 16, isPopoverOpen: 16, user: 0, username: 1, fullName: 1, item: 0, scale: 3, portal: 0, baseUrl: 1, underline: 5, showAvatar: 5, showName: 5, showUsername: 5, wrap: 5, appearance: 1, zIndex: 9, avatarAriaHidden: 5, checkOnline: 5 };
82
99
  }
83
100
  static {
84
- this.styles = F;
101
+ this.styles = V;
85
102
  }
86
103
  async setFocus() {
87
104
  this.buttonRef.value?.focus();
@@ -90,84 +107,84 @@ class D extends B {
90
107
  this.buttonRef.value?.click();
91
108
  }
92
109
  connectedCallback() {
93
- super.connectedCallback(), this.init();
110
+ super.connectedCallback(), this.hasUpdated && this.identityTask.run();
111
+ }
112
+ disconnectedCallback() {
113
+ super.disconnectedCallback(), this.identityTask.abort(), this.detailsRequest?.abort();
94
114
  }
95
- updated(t) {
96
- t.has("isPopoverOpen") && this.isPopoverOpen && this.setPopoverOpen(!0);
115
+ willUpdate(e) {
116
+ (e.has("item") || e.has("user") || e.has("username") || e.has("fullName") || e.has("portal") || e.has("checkOnline")) && (this.detailsRequest?.abort(), this.itemUserInfo = void 0, this.groups = void 0, this.total = void 0, this.isPopoverOpen = !1);
117
+ }
118
+ updated(e) {
119
+ e.has("isPopoverOpen") && this.isPopoverOpen && this.setPopoverOpen(!0);
97
120
  }
98
121
  get resolvedBaseUrl() {
99
- return this.baseUrl || `${this.portal.url}/home`;
100
- }
101
- async init() {
102
- const { item: t, username: r, portal: o, fullName: e, messages: a } = this;
103
- if (!(!a._lang || !o)) {
104
- if (t) {
105
- this.itemUserInfo = await E(t, o, a._lang, this.checkOnline);
106
- return;
107
- }
108
- if (r) {
109
- const n = await f(r, o, this.checkOnline);
110
- !n.fullName && e && (n.fullName = e), this.itemUserInfo = n;
111
- }
112
- }
122
+ return this.baseUrl || S({ portal: this.portal });
113
123
  }
114
124
  async fetchItemsAndGroups() {
115
- const { user: t, itemUserInfo: r, item: o, portal: e, username: a, checkOnline: n } = this, i = a || t?.username || o?.owner || r?.username;
116
- if (!(!i || !e)) {
117
- if (!this.groups) {
118
- const u = await G(i, e, n);
119
- this.groups = u;
120
- }
121
- this.total = await S(i, e, n);
125
+ const { user: e, itemUserInfo: r, item: o, portal: t, username: s, checkOnline: p } = this, n = s || e?.username || o?.owner || r?.username;
126
+ if (!n || !t)
127
+ return;
128
+ this.detailsRequest?.abort();
129
+ const c = new AbortController();
130
+ this.detailsRequest = c;
131
+ const { signal: a } = c;
132
+ try {
133
+ const i = this.groups ?? await j(n, t, p);
134
+ a.throwIfAborted();
135
+ const u = await J(n, t, p);
136
+ a.throwIfAborted(), this.groups = i, this.total = u;
137
+ } catch (i) {
138
+ !a.aborted && !v(i) && $("error", this, "Unable to load the owner's groups and items.", { detail: { error: i } });
122
139
  }
123
140
  }
124
- setPopoverOpen(t) {
141
+ setPopoverOpen(e) {
125
142
  requestAnimationFrame(() => {
126
- this.popoverRef.value && (this.popoverRef.value.open = t);
143
+ this.popoverRef.value && (this.popoverRef.value.open = e);
127
144
  });
128
145
  }
129
- openLink(t, r) {
130
- t.preventDefault(), window.open(r, "_blank");
146
+ openLink(e, r) {
147
+ e.preventDefault(), window.open(r, "_blank");
131
148
  }
132
- renderOrgButtons(t) {
133
- const { messages: r } = this, e = (t.url || this.resolvedBaseUrl).replace(/\/$/u, "");
134
- return l`<calcite-button appearance=outline-fill kind=neutral .href=${e} target=_blank @click=${(a) => this.openLink(a, e)}>${r.homepage}</calcite-button><calcite-button appearance=outline-fill kind=neutral .href=${`${e}/gallery.html`} target=_blank @click=${(a) => this.openLink(a, `${e}/gallery.html`)}>${r.gallery}</calcite-button>`;
149
+ renderOrgButtons(e) {
150
+ const { messages: r } = this, t = ("url" in e && typeof e.url == "string" && e.url || this.resolvedBaseUrl).replace(/\/$/u, "");
151
+ return m`<calcite-button appearance=outline-fill kind=neutral .href=${t} target=_blank @click=${(s) => this.openLink(s, t)}>${r.homepage}</calcite-button><calcite-button appearance=outline-fill kind=neutral .href=${`${t}/gallery.html`} target=_blank @click=${(s) => this.openLink(s, `${t}/gallery.html`)}>${r.gallery}</calcite-button>`;
135
152
  }
136
- renderUserButtons(t) {
137
- const { total: r, groups: o, messages: e } = this, a = t.username || "";
153
+ renderUserButtons(e) {
154
+ const { total: r, groups: o, messages: t } = this, s = e.username || "";
138
155
  if (typeof r != "number" || !o)
139
- return l`<calcite-loader .label=${e.loadingUserInformation} scale=s class="popover__loader"></calcite-loader>`;
140
- const i = _({ baseUrl: this.resolvedBaseUrl, user: { username: a }, type: "groups" }), u = _({ baseUrl: this.resolvedBaseUrl, user: { username: a }, type: "content" }), m = `${this.resolvedBaseUrl.replace(/\/$/u, "")}/user.html?user=${encodeURIComponent(a)}`;
141
- return l`${!!o.total && l`<calcite-button class="popover__button" appearance=outline-fill kind=neutral .href=${i} target=_blank @click=${(p) => {
142
- this.openLink(p, i), this.arcgisUserPopupInternalUIAction.emit({ category: "profile popup", action: "view all groups" });
143
- }}>${e.groups.replace("${number}", new Intl.NumberFormat(e._lang).format(o.total))}</calcite-button>` || ""}${!!r && l`<calcite-button class="popover__button" appearance=outline-fill kind=neutral .href=${u} target=_blank @click=${(p) => {
144
- this.openLink(p, u), this.arcgisUserPopupInternalUIAction.emit({ category: "profile popup", action: "view all content" });
145
- }}>${e.items.replace("${number}", new Intl.NumberFormat(e._lang).format(r))}</calcite-button>` || ""}<calcite-button class="popover__button" appearance=outline-fill kind=neutral .href=${m} target=_blank @click=${(p) => {
146
- this.openLink(p, m), this.arcgisUserPopupInternalUIAction.emit({ category: "profile popup", action: "view profile" });
147
- }}>${e.profile}</calcite-button>`;
156
+ return m`<calcite-loader .label=${t.loadingUserInformation} scale=s class="popover__loader"></calcite-loader>`;
157
+ const n = k({ baseUrl: this.resolvedBaseUrl, user: { username: s }, type: "groups" }), c = k({ baseUrl: this.resolvedBaseUrl, user: { username: s }, type: "content" }), a = `${this.resolvedBaseUrl.replace(/\/$/u, "")}/user.html?user=${encodeURIComponent(s)}`;
158
+ return m`${!!o.total && m`<calcite-button class="popover__button" appearance=outline-fill kind=neutral .href=${n} target=_blank @click=${(i) => {
159
+ this.openLink(i, n), this.arcgisUserPopupInternalUIAction.emit({ category: "profile popup", action: "view all groups" });
160
+ }}>${t.groups.replace("${number}", new Intl.NumberFormat(t._lang).format(o.total))}</calcite-button>` || ""}${!!r && m`<calcite-button class="popover__button" appearance=outline-fill kind=neutral .href=${c} target=_blank @click=${(i) => {
161
+ this.openLink(i, c), this.arcgisUserPopupInternalUIAction.emit({ category: "profile popup", action: "view all content" });
162
+ }}>${t.items.replace("${number}", new Intl.NumberFormat(t._lang).format(r))}</calcite-button>` || ""}<calcite-button class="popover__button" appearance=outline-fill kind=neutral .href=${a} target=_blank @click=${(i) => {
163
+ this.openLink(i, a), this.arcgisUserPopupInternalUIAction.emit({ category: "profile popup", action: "view profile" });
164
+ }}>${t.profile}</calcite-button>`;
148
165
  }
149
166
  render() {
150
- const { user: t, itemUserInfo: r, portal: o, item: e, appearance: a, scale: n, isPopoverOpen: i, showName: u, showUsername: m, messages: p } = this, c = t || r;
151
- if (!p._lang || !c)
152
- return l`<arcgis-portal-user-avatar scale=s show-name .checkOnline=${this.checkOnline}></arcgis-portal-user-avatar>`;
153
- const v = x(e), d = c.username || "", h = H(c.description || "") || "", P = M(c, p._lang), O = v ? p.itemManagedBy.replace("${username}", d) : d;
154
- return l`<button class=${b({
167
+ const { user: e, itemUserInfo: r, portal: o, item: t, appearance: s, scale: p, isPopoverOpen: n, showName: c, showUsername: a, messages: i } = this, u = e || r;
168
+ if (!i._lang || !u)
169
+ return m`<arcgis-portal-user-avatar scale=s show-name .checkOnline=${this.checkOnline}></arcgis-portal-user-avatar>`;
170
+ const f = t && U(t) === "public_authoritative", d = u.username || "", h = F(u.description || "") || "", O = G(u, i._lang), R = f ? i.itemManagedBy.replace("${username}", d) : d;
171
+ return m`<button class=${b({
155
172
  button: !0,
156
- "button--outline": a === "outline"
173
+ "button--outline": s === "outline"
157
174
  })} @click=${() => {
158
175
  this.isPopoverOpen || (this.isPopoverOpen = !0), this.fetchItemsAndGroups();
159
- }} ${w(this.buttonRef)}><slot><arcgis-portal-user-avatar .user=${c} .scale=${n} .portal=${o} .showName=${u} .description=${m ? d : ""} .hideAvatar=${!this.showAvatar} .underline=${this.underline} .checkOnline=${this.checkOnline} .wrap=${this.wrap}></arcgis-portal-user-avatar></slot></button>${i && this.buttonRef.value && c && l`<calcite-popover class="popover" .label=${P} pointer-disabled .referenceElement=${this.buttonRef.value} placement=auto .id=${`${d}-popover`} auto-close style=${N({ "--calcite-popover-z-index": this.zIndex?.toString() || "12" })} @calcitePopoverOpen=${() => {
176
+ }} ${_(this.buttonRef)}><slot><arcgis-portal-user-avatar .user=${u} .scale=${p} .portal=${o} .showName=${c} .description=${a ? d : ""} .hideAvatar=${!this.showAvatar} .underline=${this.underline} .checkOnline=${this.checkOnline} .wrap=${this.wrap}></arcgis-portal-user-avatar></slot></button>${n && this.buttonRef.value && u && m`<calcite-popover class="popover" .label=${O} pointer-disabled .referenceElement=${this.buttonRef.value} placement=auto .id=${`${d}-popover`} auto-close style=${L({ "--calcite-popover-z-index": this.zIndex?.toString() || "12" })} @calcitePopoverOpen=${() => {
160
177
  this.arcgisUserPopupInternalUIAction.emit({ category: "profile popup", action: "open profile popup" });
161
178
  }} @calcitePopoverClose=${() => {
162
179
  this.isPopoverOpen = !1, this.arcgisUserPopupClose.emit();
163
- }} @keydown=${(A) => {
164
- A.key === "Escape" && setTimeout(() => {
180
+ }} @keydown=${(B) => {
181
+ B.key === "Escape" && setTimeout(() => {
165
182
  this.buttonRef.value?.focus();
166
183
  }, 200);
167
- }} ${w(this.popoverRef)}><div class="popover__wrapper"><div class="popover__header"><arcgis-portal-user-avatar class="popover__avatar" .user=${c} scale=l .portal=${o} show-name .description=${O} .checkOnline=${this.checkOnline}></arcgis-portal-user-avatar></div><div class="popover__content">${!!h && l`<p class="popover__description">${T(k(h))}</p>` || ""}${!!h && l`<div class="popover__fade"></div>` || ""}<div class=${b({ popover__buttons: !0, "popover__buttons--no-description": !h })}>${v ? this.renderOrgButtons(c) : this.renderUserButtons(c)}</div></div></div></calcite-popover>` || ""}`;
184
+ }} ${_(this.popoverRef)}><div class="popover__wrapper"><div class="popover__header"><arcgis-portal-user-avatar class="popover__avatar" .user=${u} scale=l .portal=${o} show-name .description=${R} .checkOnline=${this.checkOnline}></arcgis-portal-user-avatar></div><div class="popover__content">${!!h && m`<p class="popover__description">${z(I(h))}</p>` || ""}${!!h && m`<div class="popover__fade"></div>` || ""}<div class=${b({ popover__buttons: !0, "popover__buttons--no-description": !h })}>${f ? this.renderOrgButtons(u) : this.renderUserButtons(u)}</div></div></div></calcite-popover>` || ""}`;
168
185
  }
169
186
  }
170
- R("arcgis-portal-user-popup", D);
187
+ C("arcgis-portal-user-popup", K);
171
188
  export {
172
- D as ArcgisPortalUserPopup
189
+ K as ArcgisPortalUserPopup
173
190
  };
@@ -8,7 +8,7 @@ import { PortalBrowserFilterItem as g } from "../portal-browser/components/porta
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: 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) => {
11
+ const { browserMessages: $, slot: y, filters: l, hasIndoorsSpaces: O, isFilterActive: b, messages: t, portal: v, 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 = v.isPortal, q = v.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 = v.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 ?? "", 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"], f = l.groupsByUser, _ = f?.props?.usernames ?? [], te = f?.props?.selectedUsername ?? N ?? _[0] ?? B, i = $.filter.clear, p = (e, r) => {
12
12
  const s = l[e];
13
13
  s && (s.props = { ...s.props, expanded: r });
14
14
  }, ae = (e) => {
@@ -18,16 +18,16 @@ function ye(U) {
18
18
  }
19
19
  e.removeAttribute("data-has-before-filters");
20
20
  };
21
- return me({ slot: y, store: k, title: a`<div class="filters-title"><h2 class="filters-title__heading">${t.filters.title}</h2><slot name=before-filters @slotchange=${(e) => ae(e.currentTarget)}></slot></div>`, children: a`${!!h?.enabled && g({ heading: t.groupsByUser.title, expanded: !!h?.props?.expanded, setExpanded: (e) => p("groupsByUser", e), clearLabel: i, onRemove: () => {
21
+ return me({ slot: y, store: k, title: a`<div class="filters-title"><h2 class="filters-title__heading">${t.filters.title}</h2><slot name=before-filters @slotchange=${(e) => ae(e.currentTarget)}></slot></div>`, children: a`${!!f?.enabled && g({ heading: t.groupsByUser.title, expanded: !!f?.props?.expanded, setExpanded: (e) => p("groupsByUser", e), clearLabel: i, onRemove: () => {
22
22
  n({
23
23
  kind: "groupsByUser",
24
- value: h?.props?.selectedUsername ?? B
24
+ value: f?.props?.selectedUsername ?? B
25
25
  });
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
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
- const r = "owner", s = $(T, e, r);
30
+ const r = "owner", s = h(T, e, r);
31
31
  if (!s) {
32
32
  c(r);
33
33
  return;
@@ -43,8 +43,8 @@ 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 ?? 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
- const r = "memberOrg", s = $(A, e, r);
46
+ }}>${Z.filter((e) => !(I || O) || 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
+ const r = "memberOrg", s = h(A, e, r);
48
48
  if (!s) {
49
49
  c(r);
50
50
  return;
@@ -58,8 +58,8 @@ function ye(U) {
58
58
  }), n({ kind: r, value: s });
59
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
- !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
- const r = "membership", s = $(M, e, r);
61
+ !O) && 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
+ const r = "membership", s = h(M, e, r);
63
63
  if (!s) {
64
64
  c(r);
65
65
  return;
@@ -68,16 +68,16 @@ function ye(U) {
68
68
  id: r,
69
69
  label: u(t.membership.label, { label: t.membership[s] }),
70
70
  param: "q",
71
- value: be(s, v),
71
+ value: be(s, O),
72
72
  membership: s
73
73
  }), n({ kind: r, value: s });
74
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
- const r = "specialGroups", s = $(Q, e, r);
75
+ const r = "specialGroups", s = h(Q, e, r);
76
76
  if (!s) {
77
77
  c(r);
78
78
  return;
79
79
  }
80
- const R = await fe(s, f);
80
+ const R = await fe(s, v);
81
81
  o({
82
82
  id: "specialGroups",
83
83
  label: u(t.specialGroups.label, { label: t.specialGroups[s] }),
@@ -87,7 +87,7 @@ function ye(U) {
87
87
  }), n({ kind: "specialGroups", value: s });
88
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
- 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: () => {
90
+ return de({ property: e, filterDateMessages: $.filterDate, clearLabel: i, expanded: ie, setExpanded: (d) => p(e, d), includeNever: R, range: le, start: ce, end: ne, serverProperty: oe, onRemove: () => {
91
91
  o({
92
92
  id: e,
93
93
  label: "",
@@ -109,7 +109,7 @@ 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 = $(L, e, r);
112
+ const r = "access", s = h(L, e, r);
113
113
  if (!s) {
114
114
  c(r);
115
115
  return;
@@ -123,8 +123,8 @@ function ye(U) {
123
123
  }), n({ kind: r, value: s });
124
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
- const $ = (U, O, y) => {
127
- const l = O.target.selectedItems?.[0]?.dataset[y];
126
+ const h = (U, $, y) => {
127
+ const l = $.target.selectedItems?.[0]?.dataset[y];
128
128
  return U === l ? null : l ?? null;
129
129
  };
130
130
  export {
@@ -1,20 +1,22 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import { html as s } from "lit";
3
- import { nothing as $ } from "@arcgis/lumina";
4
- import { g as d } from "../../chunks/user2.js";
5
- function b({ item: t, portal: c, user: e, lang: o, showAccessInfo: l = !0, relatedItemsCount: r = 0, relatedItemsCountTitle: i, onRelatedItemsClick: p }) {
6
- const a = t.itemPageUrl ?? void 0, n = t.title ?? "", m = {
2
+ import { html as i } from "lit";
3
+ import { formatDate as y } from "@arcgis/core/intl.js";
4
+ import { nothing as b } from "@arcgis/lumina";
5
+ import { g as I } from "../../chunks/user2.js";
6
+ import { g as B } from "../../chunks/url.js";
7
+ function S({ item: e, owner: n, portal: c, user: o, lang: d, modifiedLabel: l, showAccessInfo: _ = !0, access: t = { level: e.access }, relatedItemsCount: $ = 0, relatedItemsCountTitle: s, onRelatedItemsClick: g }) {
8
+ const a = "inRecycleBin" in e && e.inRecycleBin === !0, r = c && !a ? `${B({ portal: c })}/item.html?id=${e.id}` : void 0, p = e.title ?? "", m = y(e.modified ?? void 0, { dateStyle: "medium" }), v = l ? l.replace("${date}", m ?? "") : m ?? "", h = {
7
9
  public: "globe",
8
- private: "lock",
10
+ private: "user",
9
11
  org: "organization",
10
- shared: "group"
11
- }[t.access];
12
- return s`<calcite-list-item .label=${n} @calciteListItemSelect=${() => {
13
- a && window.open(a, "_blank", "noopener,noreferrer");
14
- }}><span slot=content-start><arcgis-portal-item-type .item=${t} .portal=${c} .user=${e} hide-text></arcgis-portal-item-type></span><div slot=content class="item"><div class="item__content"><span class="item__title">${n}</span><div class="item__details"><span class="item__type"><arcgis-portal-item-type .item=${t} .user=${e} .portal=${c} scale=s hide-icon></arcgis-portal-item-type></span>|<span class="item__details-owner">${d(e, o) ?? t.owner}</span></div></div></div><div slot=content-end class="item__content-end">${r > 0 && s`<calcite-chip .label=${i} title=${i ?? $} icon=launch @click=${(_) => {
15
- _.stopPropagation(), p?.();
16
- }}>${i}</calcite-chip>` || ""}${l && s`<span class="item__access"><calcite-icon .icon=${m} scale=s class="item__access-icon"></calcite-icon></span>` || ""}</div></calcite-list-item>`;
12
+ shared: "user"
13
+ }[t.level], f = !!t.groupIds?.length || t.level === "shared";
14
+ return i`<calcite-list-item .label=${p} @calciteListItemSelect=${() => {
15
+ r && window.open(r, "_blank", "noopener,noreferrer");
16
+ }}><span slot=content-start><arcgis-portal-item-type .item=${e} .portal=${c} .user=${o} hide-text></arcgis-portal-item-type></span><div slot=content class="item"><div class="item__content"><span class="item__title">${p}</span><div class="item__details"><span class="item__type"><arcgis-portal-item-type .item=${e} .user=${o} .portal=${c} scale=s hide-icon></arcgis-portal-item-type></span>|<span class="item__details-owner">${n ? I(n, d) : e.owner}</span>|<span class="item__details-modified">${v}</span></div></div></div><div slot=content-end class="item__content-end">${a && i`<calcite-icon class="item__status-icon" icon=recycle-bin scale=s></calcite-icon>` || ""}${$ > 0 && i`<calcite-chip .label=${s} title=${s ?? b} icon=launch @click=${(u) => {
17
+ u.stopPropagation(), g?.();
18
+ }}>${s}</calcite-chip>` || ""}${_ && !a && i`<span class="item__access"><calcite-icon .icon=${h} scale=s class="item__access-icon"></calcite-icon>${f && i`<calcite-icon icon=plus scale=s></calcite-icon><calcite-icon icon=group scale=s class="item__access-icon"></calcite-icon>` || ""}</span>` || ""}</div></calcite-list-item>`;
17
19
  }
18
20
  export {
19
- b as RelatedItemsListItem
21
+ S as RelatedItemsListItem
20
22
  };
@@ -1,5 +1,5 @@
1
1
  import "@esri/calcite-components/components/calcite-list-item";
2
2
  import "../arcgis-portal-item-type/index.js";
3
- import "@esri/calcite-components/components/calcite-chip";
4
3
  import "@esri/calcite-components/components/calcite-icon";
4
+ import "@esri/calcite-components/components/calcite-chip";
5
5
  export * from "./customElement.js";