@arcgis/portal-components 6.0.0-next.2 → 6.0.0-next.21

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 (308) hide show
  1. package/dist/cdn/{MKSFNVXL.js → 22TDAUX4.js} +1 -1
  2. package/dist/cdn/234TH32X.js +106 -0
  3. package/dist/cdn/2D3FQXJ4.js +2 -0
  4. package/dist/cdn/{BKD7JSV2.js → 2DXO6FVX.js} +1 -1
  5. package/dist/cdn/{TWCJJCPC.js → 2XJX2JUO.js} +1 -1
  6. package/dist/cdn/{SGDDFWCJ.js → 3EQGUCO4.js} +1 -1
  7. package/dist/cdn/{OR6T5SB3.js → 3J3ISO3E.js} +1 -1
  8. package/dist/cdn/3RTST3I6.js +2 -0
  9. package/dist/cdn/3XH3JHOI.js +2 -0
  10. package/dist/cdn/4ONCJSSP.js +2 -0
  11. package/dist/cdn/4QYVBXZT.js +2 -0
  12. package/dist/cdn/{K75JTQPW.js → 4VLEUN7I.js} +1 -1
  13. package/dist/cdn/4WQA7UAJ.js +2 -0
  14. package/dist/cdn/5OWIWCEQ.js +2 -0
  15. package/dist/cdn/{7ZWYUHGK.js → 5R4JJWGB.js} +1 -1
  16. package/dist/cdn/63HYFDRU.js +2 -0
  17. package/dist/cdn/6MATPHXT.js +79 -0
  18. package/dist/cdn/7IP3RVPH.js +2 -0
  19. package/dist/cdn/7ISSDO2T.js +2 -0
  20. package/dist/cdn/AKTIIRJQ.js +2 -0
  21. package/dist/cdn/ASID6YW7.js +135 -0
  22. package/dist/cdn/B3HV5JVN.js +2 -0
  23. package/dist/cdn/B6666VUQ.js +2 -0
  24. package/dist/cdn/BOO7GG5L.js +2 -0
  25. package/dist/cdn/CZ4FC4GM.js +2 -0
  26. package/dist/cdn/D3LZFIHV.js +2 -0
  27. package/dist/cdn/{NWVLGU2C.js → D3Q72PPN.js} +1 -1
  28. package/dist/cdn/DABNV2OO.js +2 -0
  29. package/dist/cdn/DELNTRCT.js +2 -0
  30. package/dist/cdn/DOCNBKQZ.js +2 -0
  31. package/dist/cdn/EP7NWEC5.js +2 -0
  32. package/dist/cdn/EQRBP6H6.js +66 -0
  33. package/dist/cdn/{ABORO35R.js → ESKKH4DE.js} +1 -1
  34. package/dist/cdn/EUQQZIRW.js +2 -0
  35. package/dist/cdn/F2HT5PVQ.js +2 -0
  36. package/dist/cdn/FE3O23SE.js +2 -0
  37. package/dist/cdn/FGRMURKX.js +2 -0
  38. package/dist/cdn/FN2QMDEW.js +2 -0
  39. package/dist/cdn/{I6IRHXWR.js → FYVATGMR.js} +1 -1
  40. package/dist/cdn/{RHCRPJWS.js → G3WDR53S.js} +1 -1
  41. package/dist/cdn/GAU6DNV5.js +2 -0
  42. package/dist/cdn/GPAIXN52.js +2 -0
  43. package/dist/cdn/GRSBU4PD.js +2 -0
  44. package/dist/cdn/{JWBUJT43.js → H7FA5HFE.js} +1 -1
  45. package/dist/cdn/HHGKNVCH.js +4 -0
  46. package/dist/cdn/HJLWIQDI.js +2 -0
  47. package/dist/cdn/I3EWDYTU.js +2 -0
  48. package/dist/cdn/{24QSQLRY.js → IKPVMXXW.js} +1 -1
  49. package/dist/cdn/{5HZNBMW6.js → IOFXDIWC.js} +1 -1
  50. package/dist/cdn/IPHBVKMY.js +2 -0
  51. package/dist/cdn/{GAF4YT5N.js → IUIFCQQU.js} +1 -1
  52. package/dist/cdn/{ZKZDKJ6D.js → IVDZGUNZ.js} +1 -1
  53. package/dist/cdn/J6SI4Z4F.js +2 -0
  54. package/dist/cdn/K3GAZFRI.js +63 -0
  55. package/dist/cdn/K7LYYLUF.js +2 -0
  56. package/dist/cdn/{74T6IXSN.js → KDORI7H4.js} +1 -1
  57. package/dist/cdn/KRORL7QC.js +2 -0
  58. package/dist/cdn/LGJWULAW.js +2 -0
  59. package/dist/cdn/LTMPXQTC.js +2 -0
  60. package/dist/cdn/M5STJJRX.js +2 -0
  61. package/dist/cdn/M7J7RAM4.js +2 -0
  62. package/dist/cdn/{AXOBMX3S.js → MLTZSPZQ.js} +1 -1
  63. package/dist/cdn/MSSJRDR7.js +2 -0
  64. package/dist/cdn/{L64UURQB.js → N4ZRMYZL.js} +1 -1
  65. package/dist/cdn/NBCYYUHP.js +2 -0
  66. package/dist/cdn/NHVPNSNH.js +2 -0
  67. package/dist/cdn/NQ2IAQKL.js +41 -0
  68. package/dist/cdn/NXGTEDK4.js +2 -0
  69. package/dist/cdn/{7LMZHJZG.js → NYOXMT6S.js} +1 -1
  70. package/dist/cdn/O3JP4FQ3.js +2 -0
  71. package/dist/cdn/O4YFPGD5.js +2 -0
  72. package/dist/cdn/{JIJO4CAS.js → ODSA6NNS.js} +1 -1
  73. package/dist/cdn/OHAQPQAP.js +2 -0
  74. package/dist/cdn/OOXTSCQT.js +2 -0
  75. package/dist/cdn/OQ2JULON.js +2 -0
  76. package/dist/cdn/OVH4YLTS.js +2 -0
  77. package/dist/cdn/QB5BGHLA.js +2 -0
  78. package/dist/cdn/QKCRNS75.js +2 -0
  79. package/dist/cdn/{2YZWRFCI.js → RKMW4FUN.js} +1 -1
  80. package/dist/cdn/RT26JZP5.js +2 -0
  81. package/dist/cdn/SKHFISBA.js +2 -0
  82. package/dist/cdn/SKIDJ4QI.js +2 -0
  83. package/dist/cdn/SRWFOV5W.js +2 -0
  84. package/dist/cdn/{IN4JPZTY.js → SSCKCDXD.js} +1 -1
  85. package/dist/cdn/T66G7GIR.js +2 -0
  86. package/dist/cdn/{RQYNPDN3.js → TIMYD2HM.js} +1 -1
  87. package/dist/cdn/{ROX3GKKA.js → TIPQ2ZWK.js} +1 -1
  88. package/dist/cdn/TJWJ3LTU.js +2 -0
  89. package/dist/cdn/{DHMNNIXZ.js → TMR4BRFI.js} +1 -1
  90. package/dist/cdn/{JN23JH3T.js → TTQGRN2V.js} +1 -1
  91. package/dist/cdn/{MLYQGIJU.js → U2HTYOBB.js} +13 -13
  92. package/dist/cdn/{YZTBAUIO.js → UHOW7Q65.js} +1 -1
  93. package/dist/cdn/ULGME5RT.js +2 -0
  94. package/dist/cdn/{Z6R3C4AK.js → US3N5L73.js} +1 -1
  95. package/dist/cdn/W5POIPYP.js +2 -0
  96. package/dist/cdn/{TLM457Z5.js → WJWWYBZ7.js} +1 -1
  97. package/dist/cdn/WNEPEEPZ.js +2 -0
  98. package/dist/cdn/WPAZDJHU.js +2 -0
  99. package/dist/cdn/WT72SOAU.js +2 -0
  100. package/dist/cdn/XJGKRAN5.js +2 -0
  101. package/dist/cdn/{JPUUMGX5.js → XS5EOWBK.js} +1 -1
  102. package/dist/cdn/Y5VUMGKH.js +3 -0
  103. package/dist/cdn/{EQDYQOOT.js → YCIFVZ4J.js} +1 -1
  104. package/dist/cdn/{3NSHGKZA.js → YDXJHNDI.js} +1 -1
  105. package/dist/cdn/{32BWFMTC.js → YIOJIA4Y.js} +1 -1
  106. package/dist/cdn/{K2XSYDAP.js → YK6FCXWU.js} +1 -1
  107. package/dist/cdn/YPDHSE2J.js +2 -0
  108. package/dist/cdn/{M5PPX4ZX.js → YQLFXHFG.js} +1 -1
  109. package/dist/cdn/YSVPB3BO.js +2 -0
  110. package/dist/cdn/YUOVGTP5.js +2 -0
  111. package/dist/cdn/Z5CA4C6H.js +2 -0
  112. package/dist/cdn/{TXC7YBGL.js → ZD6XJVGV.js} +1 -1
  113. package/dist/cdn/ZHQXYCPA.js +2 -0
  114. package/dist/cdn/{DLI4XKJ3.js → ZOX4RLS4.js} +1 -1
  115. package/dist/cdn/assets/portal-ai-assistant/t9n/messages.en.json +1 -1
  116. package/dist/cdn/assets/portal-entity-picker/t9n/messages.en.json +1 -1
  117. package/dist/cdn/assets/portal-item-card-sublayer-select/t9n/messages.en.json +1 -0
  118. package/dist/cdn/assets/portal-item-share-summary/t9n/messages.en.json +1 -0
  119. package/dist/cdn/index.js +1 -1
  120. package/dist/cdn/main.css +1 -1
  121. package/dist/chunks/fieldAddDelete.js +7 -7
  122. package/dist/chunks/functionalities.js +14 -9
  123. package/dist/chunks/groups.js +8 -61
  124. package/dist/chunks/groups2.js +23 -8
  125. package/dist/chunks/info.js +2 -2
  126. package/dist/chunks/item.js +58 -26
  127. package/dist/chunks/item2.js +34 -30
  128. package/dist/chunks/itemThumbnail.js +21 -21
  129. package/dist/chunks/loadClassificationData.js +26 -27
  130. package/dist/chunks/portal-delete-items-review.js +1 -1
  131. package/dist/chunks/portal-item-badge.js +1 -1
  132. package/dist/chunks/portal-related-items-list-item.js +1 -1
  133. package/dist/chunks/portal.js +6 -6
  134. package/dist/chunks/portal2.js +11 -11
  135. package/dist/chunks/portalEntitySelection.js +54 -0
  136. package/dist/chunks/query.js +13 -13
  137. package/dist/chunks/request.js +49 -41
  138. package/dist/chunks/requests.js +7 -7
  139. package/dist/chunks/selectedMentions.js +25 -0
  140. package/dist/chunks/services.js +1 -1
  141. package/dist/chunks/string.js +14 -10
  142. package/dist/chunks/ui.js +1 -0
  143. package/dist/chunks/url.js +2 -2
  144. package/dist/chunks/user.js +10 -10
  145. package/dist/chunks/utils.js +35 -22
  146. package/dist/chunks/utils2.js +4 -4
  147. package/dist/chunks/utils3.js +88 -657
  148. package/dist/chunks/utils4.js +664 -0
  149. package/dist/components/arcgis-portal-account-switcher/customElement.js +28 -26
  150. package/dist/components/arcgis-portal-account-switcher-accounts/customElement.d.ts +4 -4
  151. package/dist/components/arcgis-portal-account-switcher-accounts/customElement.js +8 -8
  152. package/dist/components/arcgis-portal-account-switcher-list/customElement.d.ts +4 -4
  153. package/dist/components/arcgis-portal-account-switcher-list/customElement.js +6 -6
  154. package/dist/components/arcgis-portal-account-switcher-signout/customElement.d.ts +5 -5
  155. package/dist/components/arcgis-portal-account-switcher-signout/customElement.js +3 -3
  156. package/dist/components/arcgis-portal-add-gps-metadata/customElement.d.ts +6 -0
  157. package/dist/components/arcgis-portal-add-gps-metadata/customElement.js +153 -130
  158. package/dist/components/arcgis-portal-ai-assistant/customElement.d.ts +25 -15
  159. package/dist/components/arcgis-portal-ai-assistant/customElement.js +574 -2409
  160. package/dist/components/arcgis-portal-ai-assistant/index.js +4 -0
  161. package/dist/components/arcgis-portal-ai-assistant/tools/getItemTool.d.ts +11 -0
  162. package/dist/components/arcgis-portal-ai-assistant/types/assistantTools.d.ts +51 -0
  163. package/dist/components/arcgis-portal-ai-assistant/types/portalEntityTools.d.ts +14 -0
  164. package/dist/components/arcgis-portal-ai-assistant-interrupt/customElement.d.ts +39 -0
  165. package/dist/components/arcgis-portal-ai-assistant-interrupt/customElement.js +63 -27
  166. package/dist/components/arcgis-portal-ai-assistant-interrupt/index.js +3 -1
  167. package/dist/components/arcgis-portal-classification-banner/customElement.js +2 -2
  168. package/dist/components/arcgis-portal-classification-config/customElement.js +2 -2
  169. package/dist/components/arcgis-portal-classification-favorite/customElement.js +2 -2
  170. package/dist/components/arcgis-portal-classification-form-element/customElement.js +1 -1
  171. package/dist/components/arcgis-portal-delete-items/customElement.d.ts +69 -3
  172. package/dist/components/arcgis-portal-delete-items/customElement.js +446 -330
  173. package/dist/components/arcgis-portal-delete-items/index.js +1 -2
  174. package/dist/components/arcgis-portal-delete-items/types.d.ts +1 -0
  175. package/dist/components/arcgis-portal-entity-picker/customElement.d.ts +36 -0
  176. package/dist/components/arcgis-portal-entity-picker/customElement.js +202 -120
  177. package/dist/components/arcgis-portal-entity-picker/index.js +2 -0
  178. package/dist/components/arcgis-portal-field-delete/customElement.js +33 -31
  179. package/dist/components/arcgis-portal-field-delete/index.js +1 -1
  180. package/dist/components/arcgis-portal-group-badges/customElement.js +5 -5
  181. package/dist/components/arcgis-portal-group-browser/customElement.js +93 -99
  182. package/dist/components/arcgis-portal-group-browser/types.d.ts +3 -7
  183. package/dist/components/arcgis-portal-group-browser-preview/customElement.js +2 -2
  184. package/dist/components/arcgis-portal-group-browser-preview-card/customElement.js +1 -1
  185. package/dist/components/arcgis-portal-group-card/customElement.js +18 -18
  186. package/dist/components/arcgis-portal-group-thumbnail/customElement.js +1 -1
  187. package/dist/components/arcgis-portal-item-card/customElement.d.ts +26 -10
  188. package/dist/components/arcgis-portal-item-card/customElement.js +101 -91
  189. package/dist/components/arcgis-portal-item-card/index.js +2 -1
  190. package/dist/components/arcgis-portal-item-card-sublayer-select/customElement.d.ts +102 -0
  191. package/dist/components/arcgis-portal-item-card-sublayer-select/customElement.js +352 -0
  192. package/dist/components/arcgis-portal-item-card-sublayer-select/index.d.ts +1 -0
  193. package/dist/components/arcgis-portal-item-card-sublayer-select/index.js +8 -0
  194. package/dist/components/arcgis-portal-item-card-sublayer-select/types.d.ts +22 -0
  195. package/dist/components/arcgis-portal-item-share-summary/customElement.d.ts +113 -0
  196. package/dist/components/arcgis-portal-item-share-summary/customElement.js +172 -0
  197. package/dist/components/arcgis-portal-item-share-summary/index.d.ts +1 -0
  198. package/dist/components/arcgis-portal-item-share-summary/index.js +5 -0
  199. package/dist/components/arcgis-portal-item-share-summary-editable/customElement.d.ts +33 -0
  200. package/dist/components/arcgis-portal-item-share-summary-editable/customElement.js +19 -0
  201. package/dist/components/arcgis-portal-item-share-summary-editable/index.d.ts +1 -0
  202. package/dist/components/arcgis-portal-item-share-summary-editable/index.js +2 -0
  203. package/dist/components/arcgis-portal-item-thumbnail/customElement.d.ts +1 -0
  204. package/dist/components/arcgis-portal-item-thumbnail/customElement.js +14 -14
  205. package/dist/components/arcgis-portal-item-type/customElement.js +1 -1
  206. package/dist/components/arcgis-portal-mentionable-text-area/customElement.js +61 -57
  207. package/dist/components/arcgis-portal-navigation/customElement.js +7 -8
  208. package/dist/components/arcgis-portal-navigation/index.js +1 -1
  209. package/dist/components/arcgis-portal-replacement-item-redirect/customElement.js +8 -8
  210. package/dist/components/arcgis-portal-review-related-items/customElement.d.ts +333 -0
  211. package/dist/components/arcgis-portal-review-related-items/customElement.js +45 -18
  212. package/dist/components/arcgis-portal-review-related-items/index.js +2 -0
  213. package/dist/components/arcgis-portal-sublayer-type/customElement.js +13 -103
  214. package/dist/components/arcgis-portal-user-popup/customElement.js +28 -28
  215. package/dist/components/portal-group-browser-filters/customElement.js +15 -15
  216. package/dist/components/portal-related-items-list-item/customElement.js +16 -14
  217. package/dist/components/portal-related-items-list-item/index.js +1 -1
  218. package/dist/docs/api.json +1 -1
  219. package/dist/docs/docs.json +1 -1
  220. package/dist/docs/vscode.html-custom-data.json +1 -1
  221. package/dist/docs/web-types.json +1 -1
  222. package/dist/index.d.ts +30 -0
  223. package/dist/index.js +155 -6
  224. package/dist/loader.js +15 -12
  225. package/dist/services/groups.d.ts +9 -0
  226. package/dist/services/item.d.ts +9 -0
  227. package/dist/types/item.d.ts +9 -9
  228. package/dist/types/lumina.d.ts +36 -17
  229. package/dist/types/preact.d.ts +39 -17
  230. package/dist/types/react.d.ts +42 -17
  231. package/dist/types/services.d.ts +27 -1
  232. package/dist/types/stencil.d.ts +36 -17
  233. package/dist/utils/generateEmbeddings.d.ts +7 -0
  234. package/dist/utils/semanticSearch.d.ts +60 -0
  235. package/dist/utils/types.d.ts +10 -0
  236. package/package.json +10 -10
  237. package/dist/cdn/23FS4XTG.js +0 -2
  238. package/dist/cdn/2MPQ5IWJ.js +0 -2
  239. package/dist/cdn/3CQKCUM5.js +0 -2
  240. package/dist/cdn/3EYB5GQX.js +0 -2
  241. package/dist/cdn/3LEQ37YT.js +0 -68
  242. package/dist/cdn/46BUEBWS.js +0 -2
  243. package/dist/cdn/4AI52H7C.js +0 -2
  244. package/dist/cdn/4MUB6TL6.js +0 -2
  245. package/dist/cdn/4PRXQFCV.js +0 -2
  246. package/dist/cdn/4QFTKB6T.js +0 -2
  247. package/dist/cdn/4TSXFX3M.js +0 -2
  248. package/dist/cdn/5C5GHX4D.js +0 -2
  249. package/dist/cdn/5PPZNVWG.js +0 -2
  250. package/dist/cdn/66XWNGQ2.js +0 -2
  251. package/dist/cdn/6F4SJDRR.js +0 -2
  252. package/dist/cdn/6RZEXOK3.js +0 -2
  253. package/dist/cdn/A2SQ4EMZ.js +0 -2
  254. package/dist/cdn/AICPYLWE.js +0 -4
  255. package/dist/cdn/AJQT7UXB.js +0 -2
  256. package/dist/cdn/APSYZEPP.js +0 -209
  257. package/dist/cdn/AZOJHVAO.js +0 -2
  258. package/dist/cdn/BSTA5KI5.js +0 -2
  259. package/dist/cdn/CD5UWSCP.js +0 -2
  260. package/dist/cdn/CXXV6WJT.js +0 -2
  261. package/dist/cdn/DDBXEXOV.js +0 -2
  262. package/dist/cdn/DYO5P3F2.js +0 -2
  263. package/dist/cdn/E66BDC6N.js +0 -2
  264. package/dist/cdn/EEAVX4PP.js +0 -2
  265. package/dist/cdn/EITRZQSC.js +0 -2
  266. package/dist/cdn/EMJQI4MA.js +0 -2
  267. package/dist/cdn/FIBQAMJ3.js +0 -2
  268. package/dist/cdn/FIQZPIIK.js +0 -2
  269. package/dist/cdn/FNLBJ4ZQ.js +0 -2
  270. package/dist/cdn/FRE56NBG.js +0 -2
  271. package/dist/cdn/GSOBDGLK.js +0 -2
  272. package/dist/cdn/GUO7HKSP.js +0 -463
  273. package/dist/cdn/GX7U3727.js +0 -2
  274. package/dist/cdn/GXM3XY3J.js +0 -2
  275. package/dist/cdn/I273CANO.js +0 -2
  276. package/dist/cdn/I6NVKNZJ.js +0 -2
  277. package/dist/cdn/J5FKIZAM.js +0 -2
  278. package/dist/cdn/JL52W3Z4.js +0 -2
  279. package/dist/cdn/JOUR2FB2.js +0 -3
  280. package/dist/cdn/LISDTBEX.js +0 -2
  281. package/dist/cdn/LWFACY3F.js +0 -2
  282. package/dist/cdn/LYLQCBVX.js +0 -2
  283. package/dist/cdn/N4VOTJ25.js +0 -2
  284. package/dist/cdn/N5QLV56W.js +0 -2
  285. package/dist/cdn/NRMQDCM3.js +0 -2
  286. package/dist/cdn/OD5WXP7J.js +0 -2
  287. package/dist/cdn/OXPXXIWL.js +0 -2
  288. package/dist/cdn/PMRFXB4F.js +0 -2
  289. package/dist/cdn/PNIFJ5DQ.js +0 -2
  290. package/dist/cdn/PZDI5ZDC.js +0 -2
  291. package/dist/cdn/RVYSVTPQ.js +0 -2
  292. package/dist/cdn/SVROAT3Z.js +0 -2
  293. package/dist/cdn/TBZXKKGP.js +0 -2
  294. package/dist/cdn/TNUCSWBN.js +0 -2
  295. package/dist/cdn/TOICLGFK.js +0 -2
  296. package/dist/cdn/TOTWYGB3.js +0 -2
  297. package/dist/cdn/TUUUK3VX.js +0 -2
  298. package/dist/cdn/U3KMGSVH.js +0 -2
  299. package/dist/cdn/WC3FPLYQ.js +0 -2
  300. package/dist/cdn/XYMBRPC7.js +0 -2
  301. package/dist/cdn/YTODQCOG.js +0 -2
  302. package/dist/cdn/YYTEJVBL.js +0 -2
  303. package/dist/cdn/ZDDN7UKS.js +0 -2
  304. package/dist/chunks/functional.js +0 -9
  305. package/dist/components/arcgis-portal-ai-assistant/data/capability-registries/types.d.ts +0 -45
  306. /package/dist/cdn/{OUMTV5H5.js → KHKREBVZ.js} +0 -0
  307. /package/dist/components/arcgis-portal-ai-assistant/{agents/types.d.ts → types/navigation.d.ts} +0 -0
  308. /package/dist/components/arcgis-portal-ai-assistant/{agents → types}/portalRouteKeys.d.ts +0 -0
@@ -0,0 +1 @@
1
+ export * from "./customElement.js";
@@ -0,0 +1,5 @@
1
+ import "../arcgis-portal-group-thumbnail/index.js";
2
+ import "@esri/calcite-components/components/calcite-icon";
3
+ import "@esri/calcite-components/components/calcite-tooltip";
4
+ import "@esri/calcite-components/components/calcite-loader";
5
+ export * from "./customElement.js";
@@ -0,0 +1,33 @@
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 { ArcgisPortalItemShareSummary } from "../arcgis-portal-item-share-summary/customElement.js";
5
+
6
+ /**
7
+ * Sharing summary that requests a host-managed editing workflow when activated.
8
+ *
9
+ * The host handles `arcgisItemShareSummaryRequest`; this component does not include
10
+ * an item-sharing dialog, persist sharing changes, or check editing permissions.
11
+ * Enable `allowEdit` only when the host is ready to handle the request.
12
+ *
13
+ * @slot [tooltip-header-end] - Content at the end of the sharing tooltip header.
14
+ */
15
+ export abstract class ArcgisPortalItemShareSummaryEditable extends ArcgisPortalItemShareSummary {
16
+ /**
17
+ * Enables requesting a host-managed sharing workflow on summary activation.
18
+ *
19
+ * @default false
20
+ */
21
+ accessor allowEdit: boolean;
22
+ /**
23
+ * Requests that the host open its sharing workflow for the supplied item and portal.
24
+ * Emitted only when editing is enabled and both inputs are supplied.
25
+ */
26
+ readonly arcgisItemShareSummaryRequest: import("@arcgis/lumina").TargetedEvent<this, {
27
+ item: PortalItem;
28
+ portal: Portal;
29
+ }>;
30
+ readonly "@eventTypes": {
31
+ arcgisItemShareSummaryRequest: ArcgisPortalItemShareSummaryEditable["arcgisItemShareSummaryRequest"]["detail"];
32
+ };
33
+ }
@@ -0,0 +1,19 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
+ import { c as t } from "../../chunks/runtime.js";
3
+ import { createEvent as e } from "@arcgis/lumina";
4
+ import { ArcgisPortalItemShareSummary as r } from "../arcgis-portal-item-share-summary/customElement.js";
5
+ class a extends r {
6
+ constructor() {
7
+ super(), this.allowEdit = !1, this.arcgisItemShareSummaryRequest = e(), this.listen("arcgisInternalShareSummaryActivate", this.requestSharing);
8
+ }
9
+ static {
10
+ this.properties = { allowEdit: 5 };
11
+ }
12
+ requestSharing() {
13
+ this.allowEdit && this.item && this.portal && this.arcgisItemShareSummaryRequest.emit({ item: this.item, portal: this.portal });
14
+ }
15
+ }
16
+ t("arcgis-portal-item-share-summary-editable", a);
17
+ export {
18
+ a as ArcgisPortalItemShareSummaryEditable
19
+ };
@@ -0,0 +1 @@
1
+ export * from "./customElement.js";
@@ -0,0 +1,2 @@
1
+ import "../arcgis-portal-item-share-summary/index.js";
2
+ export * from "./customElement.js";
@@ -24,6 +24,7 @@ export abstract class ArcgisPortalItemThumbnail extends LitElement {
24
24
  /**
25
25
  * Set to true to force loading thumbnails from the production ArcGIS Online endpoint.
26
26
  * This is only useful in Enterprise when viewing ArcGIS Online content.
27
+ * The current portal's token is not included in production thumbnail URLs.
27
28
  *
28
29
  * @default false
29
30
  */
@@ -4,13 +4,13 @@ import { LitElement as E, createEvent as F, safeClassMap as v, nothing as D } fr
4
4
  import { css as V, html as w } from "lit";
5
5
  import { i as O } from "../../chunks/functionalities.js";
6
6
  import { a as g, b as S, g as R } from "../../chunks/itemThumbnail.js";
7
- import { q as x, u as U } from "../../chunks/item2.js";
8
- import { g as A } from "../../chunks/portal.js";
7
+ import { k as x, u as k } from "../../chunks/item2.js";
8
+ import { b as A } from "../../chunks/portal.js";
9
9
  import { execute as B } from "@arcgis/core/rest/geoprocessor.js";
10
10
  function G(e) {
11
11
  return e ? `${e.xmin},${e.ymin},${e.xmax},${e.ymax}` : "";
12
12
  }
13
- function $(e) {
13
+ function U(e) {
14
14
  return e && e.xmin >= -180 && e.xmax <= 180 && e.ymin >= -90 && e.ymax <= 90 && e.xmin <= e.xmax && e.ymin <= e.ymax ? [
15
15
  [e.xmin, e.ymin],
16
16
  [e.xmax, e.ymax]
@@ -129,7 +129,7 @@ async function _(e, t) {
129
129
  i?.destroy(), r?.destroy();
130
130
  }
131
131
  }
132
- async function k({
132
+ async function $({
133
133
  webMap: e,
134
134
  extent: t,
135
135
  portal: r,
@@ -182,9 +182,9 @@ async function C({
182
182
  }
183
183
  ]
184
184
  };
185
- return await k({
185
+ return await $({
186
186
  webMap: c,
187
- extent: $(e.extent),
187
+ extent: U(e.extent),
188
188
  portal: t,
189
189
  spatialReference: { wkid: 4326 }
190
190
  });
@@ -216,9 +216,9 @@ async function W({
216
216
  authoringAppVersion: "5.3",
217
217
  version: "2.10"
218
218
  };
219
- return await k({
219
+ return await $({
220
220
  webMap: i,
221
- extent: $(e.extent),
221
+ extent: U(e.extent),
222
222
  portal: t,
223
223
  spatialReference: { wkid: 102100 }
224
224
  });
@@ -237,21 +237,21 @@ async function j({
237
237
  }
238
238
  return { result: a ?? i };
239
239
  }
240
- function q(e, t) {
240
+ function z(e, t) {
241
241
  if (!e)
242
242
  return !1;
243
243
  const r = e.includes("thumbnail/ago_downloaded."), i = e.includes("Utilities/PrintingTools");
244
244
  return !e.includes("images/transparent.gif") && (t?.isPortal ? !i : !r);
245
245
  }
246
- function z(e, t) {
247
- const r = !!t && U(e, t), i = e.type === "Dashboard";
246
+ function q(e, t) {
247
+ const r = !!t && k(e, t), i = e.type === "Dashboard";
248
248
  return !S(e) && r && i;
249
249
  }
250
250
  function J(e, t, r) {
251
- const i = S(e), n = q(i, t), a = ["Feature Service", "Vector Tile Service"].includes(e.type) && !n, l = e.type === "Feature Service" && e.typeKeywords?.includes("Location Tracking Service"), c = e.typeKeywords?.includes("Table");
251
+ const i = S(e), n = z(i, t), a = ["Feature Service", "Vector Tile Service"].includes(e.type) && !n, l = e.type === "Feature Service" && e.typeKeywords?.includes("Location Tracking Service"), c = e.typeKeywords?.includes("Table");
252
252
  if (e.type === "Image" || i && !a || l || c)
253
253
  return !1;
254
- const s = e.typeKeywords?.includes("Tiled Imagery"), p = e.type === "Image Service" && !s || e.type === "Map Service", m = !!r && U(e, r);
254
+ const s = e.typeKeywords?.includes("Tiled Imagery"), p = e.type === "Image Service" && !s || e.type === "Map Service", m = !!r && k(e, r);
255
255
  return m && p || m && e.type === "Feature Service" || e.type === "Vector Tile Service" || m && e.type === "KML";
256
256
  }
257
257
  const H = V`:host{display:block;height:100%;position:relative;width:100%}.outer{position:relative;width:100%;height:100%;aspect-ratio:3 / 2;min-height:0}.inner{position:absolute;inset:0;background-color:var(--calcite-color-background)}.inner--loading{animation:thumbnail-shimmer 1s linear infinite;background-image:linear-gradient(to right,var(--calcite-color-background) 0%,var(--calcite-color-foreground-2),var(--calcite-color-background) 40%,var(--calcite-color-background) 100%);background-repeat:no-repeat;background-size:800px 100%}.thumbnail{display:block;width:100%;height:100%;object-fit:cover;opacity:1;transition:opacity .3s linear}.thumbnail--loading{opacity:0}.fallback{display:flex;height:100%;width:100%;align-items:center;justify-content:center;background-color:var(--calcite-color-foreground-2);color:var(--calcite-color-text-3)}@keyframes thumbnail-shimmer{0%{background-position:-468px 0}to{background-position:468px 0}}`;
@@ -287,7 +287,7 @@ class Y extends E {
287
287
  async updateThumbnail() {
288
288
  const { item: t, portal: r, user: i } = this;
289
289
  this.imageError = !1, this.useDefaultThumbnail = !1;
290
- const n = this.generate && J(t, r, i), a = this.generate && z(t, i);
290
+ const n = this.generate && J(t, r, i), a = this.generate && q(t, i);
291
291
  n && await this.generateThumbnail() || (this.thumbnailUri = a ? g(t) : R(r, t, !1, this.useProduction, this.cacheString), a && await this.generateThumbnail(!0));
292
292
  }
293
293
  render() {
@@ -3,7 +3,7 @@ import { g as d, c as g } from "../../chunks/runtime.js";
3
3
  import { css as y, html as c } from "lit";
4
4
  import { LitElement as f, nothing as p, safeClassMap as x } from "@arcgis/lumina";
5
5
  import { u } from "../../chunks/useT9n.js";
6
- import { g as w } from "../../chunks/utils3.js";
6
+ import { g as w } from "../../chunks/utils4.js";
7
7
  const v = y`:host{display:inline-flex;align-items:center}:host([scale="s"]){--arcgis-portal-item-type-font-size: var(--calcite-font-size--2);--arcgis-portal-item-type-spacing: 1rem}:host([scale="m"]){--arcgis-portal-item-type-font-size: var(--calcite-font-size--1);--arcgis-portal-item-type-spacing: 1rem}:host([scale="l"]){--arcgis-portal-item-type-font-size: var(--calcite-font-size-0);--arcgis-portal-item-type-spacing: 1rem}.icon{display:block;flex-grow:0;flex-shrink:0;width:var(--arcgis-portal-item-type-spacing);height:var(--arcgis-portal-item-type-spacing)}.text{color:var(--calcite-text-color-2);font-size:var(--arcgis-portal-item-type-font-size);line-height:1.25rem}.text--ellipsis{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.text--spaced{margin-inline-start:calc(var(--arcgis-portal-item-type-spacing) / 2);word-wrap:break-word;word-break:break-word}`;
8
8
  class I extends f {
9
9
  constructor() {
@@ -1,60 +1,61 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
2
  import { c as A } from "../../chunks/runtime.js";
3
- import { safeClassMap as T, LitElement as S, createEvent as I } from "@arcgis/lumina";
4
- import { html as m, css as k } from "lit";
5
- import { ref as M, createRef as P } from "lit/directives/ref.js";
6
- import { makeGenericController as E } from "@arcgis/lumina/controllers";
7
- import { debounce as U } from "@arcgis/toolkit/function";
8
- import { S as D, M as g, g as L } from "../../chunks/utils.js";
9
- import { q as O } from "../../chunks/groups.js";
10
- import { s as R } from "../../chunks/item.js";
11
- import { b as F } from "../../chunks/user.js";
3
+ import { safeClassMap as T, LitElement as P, createEvent as v } from "@arcgis/lumina";
4
+ import { html as h, css as k } from "lit";
5
+ import { ref as C, createRef as E } from "lit/directives/ref.js";
6
+ import { makeGenericController as U } from "@arcgis/lumina/controllers";
7
+ import { debounce as D } from "@arcgis/toolkit/function";
8
+ import { S as L, M as y, g as O, c as R } from "../../chunks/utils.js";
9
+ import { q as _ } from "../../chunks/groups2.js";
10
+ import { s as F } from "../../chunks/item.js";
11
+ import { b as Q } from "../../chunks/user.js";
12
12
  import { f as $ } from "../../chunks/request.js";
13
- import { keyed as _ } from "lit/directives/keyed.js";
14
- const y = (a) => g.includes(a) ? a : "@", Q = E((a) => {
13
+ import { keyed as N } from "lit/directives/keyed.js";
14
+ import { c as g, a as K } from "../../chunks/selectedMentions.js";
15
+ const M = (r) => y.includes(r) ? r : "@", V = U((r) => {
15
16
  let e = [];
16
17
  const i = async (s) => await $({
17
- requester: async () => await R(a.portal, s, { num: 3 }),
18
+ requester: async () => await F(r.portal, s, { num: 3 }),
18
19
  key: "items",
19
20
  id: s
20
21
  }), n = async (s) => await $({
21
- requester: async () => await O(a.portal, { query: `title:${s}`, num: 3 }),
22
+ requester: async () => await _(r.portal, { query: `title:${s}`, num: 3 }),
22
23
  key: "groups",
23
24
  id: s
24
- }), r = U(async (s, c) => {
25
- a.isFetchingEntities = !0;
25
+ }), a = D(async (s, c) => {
26
+ r.isFetchingEntities = !0;
26
27
  const l = s.toLowerCase();
27
- switch (y(c)) {
28
+ switch (M(c)) {
28
29
  case "@":
29
- const u = 10;
30
- a.filteredItemsInfo = {
30
+ const m = 10;
31
+ r.filteredItemsInfo = {
31
32
  type: "user",
32
33
  items: e.filter(
33
- (p) => p.username?.toLowerCase().includes(l) || p.fullName?.toLowerCase().includes(l)
34
- ).slice(0, u)
34
+ (f) => f.username?.toLowerCase().includes(l) || f.fullName?.toLowerCase().includes(l)
35
+ ).slice(0, m)
35
36
  };
36
37
  break;
37
38
  case "#":
38
- const { result: h } = await i(l);
39
- a.filteredItemsInfo = { type: "item", items: h?.results ?? [] };
39
+ const { result: d } = await i(l);
40
+ r.filteredItemsInfo = { type: "item", items: d?.results ?? [] };
40
41
  break;
41
42
  case "$":
42
- const { results: f } = await n(l);
43
- a.filteredItemsInfo = { type: "group", items: f };
43
+ const { results: I } = await n(l);
44
+ r.filteredItemsInfo = { type: "group", items: I };
44
45
  break;
45
46
  }
46
- (a.filteredItemsInfo?.items?.length ?? 0) === 0 && await a.closePopover(), a.isFetchingEntities = !1;
47
- }, D);
47
+ (r.filteredItemsInfo?.items?.length ?? 0) === 0 && await r.closePopover(), r.isFetchingEntities = !1;
48
+ }, L);
48
49
  return { fetchUsers: async () => {
49
50
  try {
50
- const { users: s } = await F(a.portal);
51
+ const { users: s } = await Q(r.portal);
51
52
  e = s ?? [];
52
53
  } catch (s) {
53
54
  e = [], console.error("error fetching org users:", s);
54
55
  }
55
- }, filterItems: r, getItemText: (s, c) => {
56
+ }, filterItems: a, getItemText: (s, c) => {
56
57
  let l = "";
57
- switch (y(c)) {
58
+ switch (M(c)) {
58
59
  case "@":
59
60
  l = s.username;
60
61
  break;
@@ -67,16 +68,16 @@ const y = (a) => g.includes(a) ? a : "@", Q = E((a) => {
67
68
  }
68
69
  return l.trim();
69
70
  } };
70
- }), x = ({ id: a, label: e, selected: i, description: n, contentStart: r, onSelect: o }) => _(a, m`<calcite-list-item class=${T({ selected: i })} .label=${e} .description=${n} .selected=${i} @pointerdown=${async (t) => {
71
+ }), w = ({ id: r, label: e, selected: i, description: n, contentStart: a, onSelect: o }) => N(r, h`<calcite-list-item class=${T({ selected: i })} .label=${e} .description=${n} .selected=${i} @pointerdown=${async (t) => {
71
72
  t.preventDefault(), t.stopPropagation(), await o();
72
- }} ${M((t) => {
73
+ }} ${C((t) => {
73
74
  i && t && t.scrollIntoView({ block: "nearest", behavior: "smooth" });
74
- })}>${r}</calcite-list-item>`), N = k`.selected{--calcite-list-background-color: var(--calcite-color-foreground-2)}.mentionable-list{max-height:13rem;overflow-y:auto;padding:.25rem;width:min(100vw,24rem)}.mentionable-list--loading{min-height:10rem}`;
75
- class K extends S {
75
+ })}>${a}</calcite-list-item>`), q = k`.selected{--calcite-list-background-color: var(--calcite-color-foreground-2)}.mentionable-list{max-height:13rem;overflow-y:auto;padding:.25rem;width:min(100vw,24rem)}.mentionable-list--loading{min-height:10rem}`;
76
+ class G extends P {
76
77
  constructor() {
77
- super(...arguments), this.calciteTextAreaRef = P(), this.mentionableEntityController = Q(this), this.handleInput = (e) => {
78
+ super(...arguments), this.calciteTextAreaRef = E(), this.mentionableEntityController = V(this), this.handleInput = (e) => {
78
79
  const { bubbleNewValueChange: i, checkForMention: n } = this, o = e.target.value;
79
- this._value = o, i(this._value);
80
+ o || g(this.el), this._value = o, i(this._value);
80
81
  const t = this.nativeTextAreaRef?.selectionStart ?? 0;
81
82
  n(o, t);
82
83
  }, this.handleKeyDown = (e) => {
@@ -103,30 +104,30 @@ class K extends S {
103
104
  }, this.bubbleNewValueChange = (e) => {
104
105
  this.arcgisUserMentionableTextAreaChange.emit(e), this.arcgisMentionableTextAreaChange.emit(e);
105
106
  }, this.checkForMention = (e, i) => {
106
- const n = e.substring(0, i), r = L(n, this.starters ?? g);
107
- if (r) {
108
- const { starter: o } = r;
109
- this.currentStarter = o, this.filterMentionItems(r), this.popoverOpen = !0;
107
+ const n = e.substring(0, i), a = O(n, this.starters ?? y);
108
+ if (a) {
109
+ const { starter: o } = a;
110
+ this.currentStarter = o, this.filterMentionItems(a), this.popoverOpen = !0;
110
111
  return;
111
112
  }
112
113
  this.handleClosePopover();
113
114
  }, this.filterMentionItems = (e) => {
114
- const { mentionText: i, query: n, starter: r, startIndex: o } = e;
115
+ const { mentionText: i, query: n, starter: a, startIndex: o } = e;
115
116
  this.currentMentionQuery = i, this.mentionStartPosition = o;
116
117
  const t = n.toLowerCase();
117
- this.mentionableEntityController.filterItems(t, r), this.selectedItemIndex = 0;
118
- }, this.popoverOpen = !1, this.currentMentionQuery = "", this.mentionStartPosition = 0, this.selectedItemIndex = 0, this.currentStarter = null, this._value = "", this.filteredItemsInfo = null, this.isFetchingEntities = !1, this.popoverPlacement = "bottom-start", this.disabled = !1, this.scale = "m", this.rows = 3, this.starters = g, this.readOnly = !1, this.arcgisMentionableSelectedIndexChange = I(), this.arcgisMentionableTextAreaChange = I(), this.arcgisMentionableTextAreaKeyDown = I(), this.arcgisUserMentionableTextAreaChange = I(), this.arcgisUserMentionableTextAreaKeyDown = I(), this.renderItemInfo = () => {
118
+ this.mentionableEntityController.filterItems(t, a), this.selectedItemIndex = 0;
119
+ }, this.popoverOpen = !1, this.currentMentionQuery = "", this.mentionStartPosition = 0, this.selectedItemIndex = 0, this.currentStarter = null, this._value = "", this.filteredItemsInfo = null, this.isFetchingEntities = !1, this.popoverPlacement = "bottom-start", this.disabled = !1, this.scale = "m", this.rows = 3, this.starters = y, this.readOnly = !1, this.arcgisMentionableSelectedIndexChange = v(), this.arcgisMentionableTextAreaChange = v(), this.arcgisMentionableTextAreaKeyDown = v(), this.arcgisUserMentionableTextAreaChange = v(), this.arcgisUserMentionableTextAreaKeyDown = v(), this.renderItemInfo = () => {
119
120
  const { filteredItemsInfo: e, selectedItemIndex: i, portal: n } = this;
120
121
  if (!e)
121
122
  return null;
122
- const { items: r, type: o } = e;
123
+ const { items: a, type: o } = e;
123
124
  switch (o) {
124
125
  case "user":
125
- return r.map((t, s) => x({ id: t.id, label: `@${t.username}`, description: t.fullName, selected: s === i, contentStart: m`<arcgis-portal-user-avatar slot=content-start .user=${t} .portal=${n} scale=m></arcgis-portal-user-avatar>`, onSelect: async () => await this.selectItem(t) }));
126
+ return a.map((t, s) => w({ id: t.id, label: `@${t.username}`, description: t.fullName, selected: s === i, contentStart: h`<arcgis-portal-user-avatar slot=content-start .user=${t} .portal=${n} scale=m></arcgis-portal-user-avatar>`, onSelect: async () => await this.selectItem(t) }));
126
127
  case "item":
127
- return r.map((t, s) => x({ id: t.id ?? `item-${s}`, label: `#${t.title}`, description: t.id ?? void 0, selected: s === i, onSelect: async () => await this.selectItem(t), contentStart: m`<calcite-avatar slot=content-start .fullName=${t.title ?? void 0} .thumbnail=${t.thumbnailUrl ?? void 0} scale=m></calcite-avatar>` }));
128
+ return a.map((t, s) => w({ id: t.id ?? `item-${s}`, label: `#${t.title}`, description: t.id ?? void 0, selected: s === i, onSelect: async () => await this.selectItem(t), contentStart: h`<calcite-avatar slot=content-start .fullName=${t.title ?? void 0} .thumbnail=${t.thumbnailUrl ?? void 0} scale=m></calcite-avatar>` }));
128
129
  case "group":
129
- return r.map((t, s) => x({ id: t.id ?? `group-${s}`, label: `${t.title}`, description: t.id ?? void 0, selected: s === i, onSelect: async () => await this.selectItem(t), contentStart: m`<calcite-avatar slot=content-start .fullName=${t.title ?? void 0} .thumbnail=${t.thumbnailUrl ?? void 0} scale=m></calcite-avatar>` }));
130
+ return a.map((t, s) => w({ id: t.id ?? `group-${s}`, label: `${t.title}`, description: t.id ?? void 0, selected: s === i, onSelect: async () => await this.selectItem(t), contentStart: h`<calcite-avatar slot=content-start .fullName=${t.title ?? void 0} .thumbnail=${t.thumbnailUrl ?? void 0} scale=m></calcite-avatar>` }));
130
131
  }
131
132
  };
132
133
  }
@@ -134,7 +135,7 @@ class K extends S {
134
135
  this.properties = { popoverOpen: 16, currentMentionQuery: 16, mentionStartPosition: 16, selectedItemIndex: 16, currentStarter: 16, _value: 16, filteredItemsInfo: 16, isFetchingEntities: 16, popoverListLabel: 1, popoverPlacement: 1, disabled: 5, portal: 0, user: 0, scale: 1, value: 1, maxLength: 9, rows: 9, starters: 0, placeholder: 1, readOnly: 5 };
135
136
  }
136
137
  static {
137
- this.styles = N;
138
+ this.styles = q;
138
139
  }
139
140
  get filteredItems() {
140
141
  return this.filteredItemsInfo?.items ?? [];
@@ -146,16 +147,19 @@ class K extends S {
146
147
  await this.calciteTextAreaRef.value?.setFocus();
147
148
  }
148
149
  async selectItem(e) {
149
- const { currentStarter: i, _value: n, mentionStartPosition: r, currentMentionQuery: o, handleClosePopover: t, calciteTextAreaRef: s, nativeTextAreaRef: c, bubbleNewValueChange: l } = this;
150
+ const { currentStarter: i, _value: n, mentionStartPosition: a, currentMentionQuery: o, handleClosePopover: t, calciteTextAreaRef: s, nativeTextAreaRef: c, bubbleNewValueChange: l } = this;
150
151
  if (!e || !i)
151
152
  return;
152
- const d = this.mentionableEntityController.getItemText(e, i).replaceAll('"', "").trim(), u = /\s/u.test(d) ? `${i}"${d}"` : `${i}${d}`, h = (n ?? "").substring(0, r), f = (n ?? "").substring(r + o.length), p = `${h}${u} ${f}`;
153
- this._value = p, l(this._value);
154
- const v = r + u.length + 1;
155
- t(), await this.updateComplete, s.value?.setFocus(), c && (c.selectionEnd = v);
153
+ const u = this.mentionableEntityController.getItemText(e, i), p = u.replaceAll('"', "").trim(), m = /\s/u.test(p) ? `${i}"${p}"` : `${i}${p}`, d = (n ?? "").substring(0, a), I = (n ?? "").substring(a + o.length), f = `${d}${m} ${I}`, b = R(e, i, u);
154
+ b && K(this.el, {
155
+ text: m,
156
+ part: b
157
+ }), this._value = f, l(this._value);
158
+ const x = a + m.length + 1;
159
+ t(), await this.updateComplete, s.value?.setFocus(), c && (c.selectionEnd = x);
156
160
  }
157
161
  willUpdate(e) {
158
- e.has("value") && (this._value = this.value ?? ""), e.has("selectedItemIndex") && this.arcgisMentionableSelectedIndexChange.emit(this.selectedItemIndex);
162
+ e.has("value") && (this._value = this.value ?? "", this._value || g(this.el)), (e.has("portal") || e.has("user")) && g(this.el), e.has("selectedItemIndex") && this.arcgisMentionableSelectedIndexChange.emit(this.selectedItemIndex);
159
163
  }
160
164
  loaded() {
161
165
  this.updateComplete.then(() => {
@@ -164,11 +168,11 @@ class K extends S {
164
168
  }), this.mentionableEntityController.fetchUsers();
165
169
  }
166
170
  render() {
167
- const { popoverPlacement: e, scale: i, _value: n, maxLength: r, rows: o, placeholder: t, readOnly: s, popoverOpen: c, closePopover: l, handleInput: b, handleKeyDown: d, disabled: u, isFetchingEntities: h, filteredItemsInfo: f, renderItemInfo: p, popoverListLabel: v } = this, w = this.calciteTextAreaRef.value, C = f?.items ?? [];
168
- return m`<calcite-text-area .placeholder=${t} .value=${n} .maxLength=${r} .rows=${o} .scale=${i} .readOnly=${s} .disabled=${u} @blur=${l} @calciteTextAreaInput=${b} @keydown=${d} ${M(this.calciteTextAreaRef)}></calcite-text-area>${w && m`<calcite-popover .open=${c} .placement=${e} class="mention-popover" .label=${v} .referenceElement=${w} trigger-disabled pointer-disabled focus-trap-disabled><div class=${T({ "mentionable-list": !0, "mentionable-list--loading": h })}>${h && m`<calcite-scrim .loading=${h}></calcite-scrim>` || ""}${C.length > 0 && m`<calcite-list .label=${v}>${p()}</calcite-list>` || ""}</div></calcite-popover>` || ""}`;
171
+ const { popoverPlacement: e, scale: i, _value: n, maxLength: a, rows: o, placeholder: t, readOnly: s, popoverOpen: c, closePopover: l, handleInput: u, handleKeyDown: p, disabled: m, isFetchingEntities: d, filteredItemsInfo: I, renderItemInfo: f, popoverListLabel: b } = this, x = this.calciteTextAreaRef.value, S = I?.items ?? [];
172
+ return h`<calcite-text-area .placeholder=${t} .value=${n} .maxLength=${a} .rows=${o} .scale=${i} .readOnly=${s} .disabled=${m} @blur=${l} @calciteTextAreaInput=${u} @keydown=${p} ${C(this.calciteTextAreaRef)}></calcite-text-area>${x && h`<calcite-popover .open=${c} .placement=${e} class="mention-popover" .label=${b} .referenceElement=${x} trigger-disabled pointer-disabled focus-trap-disabled><div class=${T({ "mentionable-list": !0, "mentionable-list--loading": d })}>${d && h`<calcite-scrim .loading=${d}></calcite-scrim>` || ""}${S.length > 0 && h`<calcite-list .label=${b}>${f()}</calcite-list>` || ""}</div></calcite-popover>` || ""}`;
169
173
  }
170
174
  }
171
- A("arcgis-portal-mentionable-text-area", K);
175
+ A("arcgis-portal-mentionable-text-area", G);
172
176
  export {
173
- K as ArcgisPortalMentionableTextArea
177
+ G as ArcgisPortalMentionableTextArea
174
178
  };
@@ -4,25 +4,24 @@ import { safeStyleMap as Ie, safeClassMap as re, LitElement as At, createEvent a
4
4
  import { u as kt } from "../../chunks/useT9n.js";
5
5
  import { nothing as M, html as c, svg as xt, css as St } from "lit";
6
6
  import { formatDate as It, substitute as X, getLocale as Pt } from "@arcgis/core/intl.js";
7
- import { g as ce, b as Pe } from "../../chunks/url.js";
8
- import { a as B } from "../../chunks/requests.js";
7
+ import { b as ce, g as Pe } from "../../chunks/url.js";
8
+ import { c as B } from "../../chunks/requests.js";
9
9
  import { repeat as U } from "lit/directives/repeat.js";
10
10
  import { m as Nt } from "../../chunks/icons.js";
11
11
  import { i as T, c as ge, a as Tt } from "../../chunks/user2.js";
12
- import { c as Ct, d as Mt, e as Ot, f as Lt, h as Et } from "../../chunks/portal2.js";
12
+ import { b as Ct, c as Mt, d as Ot, e as Lt, f as Et } from "../../chunks/portal2.js";
13
13
  import { c as jt, d as Dt, e as zt } from "../../chunks/user.js";
14
- import { i as Ne, a as Gt } from "../../chunks/utils3.js";
15
- import { e as Ut } from "../../chunks/functional.js";
14
+ import { i as Ne, a as Gt } from "../../chunks/utils4.js";
15
+ import { e as Ut, g as Te } from "../../chunks/item.js";
16
16
  import { g as Bt } from "../../chunks/request.js";
17
- import { g as Te } from "../../chunks/item.js";
18
17
  import { keyed as le } from "lit/directives/keyed.js";
19
- import { e as ue, n as Rt, a as de, f as J, g as Ft } from "../../chunks/portal.js";
18
+ import { a as ue, n as Rt, g as de, e as J, b as Ft } from "../../chunks/portal.js";
20
19
  import { ref as W, createRef as F } from "lit/directives/ref.js";
21
20
  import { c as Wt, g as Vt } from "../../chunks/dom.js";
22
21
  import { debounce as be } from "@arcgis/toolkit/function";
23
22
  import Ht from "@arcgis/core/identity/IdentityManager.js";
24
23
  import { t as qt } from "../../chunks/functionalities.js";
25
- import { a as Jt } from "../../chunks/string.js";
24
+ import { b as Jt } from "../../chunks/string.js";
26
25
  function ve({ portal: e, productInfo: t }) {
27
26
  const { name: i, glyph: n } = t || {};
28
27
  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>`;
@@ -2,13 +2,13 @@ import "@esri/calcite-components/components/calcite-chip";
2
2
  import "@esri/calcite-components/components/calcite-tooltip";
3
3
  import "@esri/calcite-components/components/calcite-list-item";
4
4
  import "@esri/calcite-components/components/calcite-action";
5
- import "@esri/calcite-components/components/calcite-dropdown-item";
6
5
  import "@esri/calcite-components/components/calcite-icon";
7
6
  import "@esri/calcite-components/components/calcite-popover";
8
7
  import "@esri/calcite-components/components/calcite-list";
9
8
  import "../arcgis-portal-item-type/index.js";
10
9
  import "@esri/calcite-components/components/calcite-loader";
11
10
  import "@esri/calcite-components/components/calcite-button";
11
+ import "@esri/calcite-components/components/calcite-dropdown-item";
12
12
  import "@esri/calcite-components/components/calcite-input";
13
13
  import "@esri/calcite-components/components/calcite-dropdown";
14
14
  import "../arcgis-portal-user-avatar/index.js";
@@ -1,23 +1,23 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
2
  import { c as d } from "../../chunks/runtime.js";
3
3
  import { LitElement as u, createEvent as I, nothing as R } from "@arcgis/lumina";
4
- import { g } from "../../chunks/item2.js";
5
- import { u as f } from "../../chunks/useT9n.js";
4
+ import { h as f } from "../../chunks/item2.js";
5
+ import { u as g } from "../../chunks/useT9n.js";
6
6
  import { createRef as b, ref as $ } from "lit/directives/ref.js";
7
7
  import { unsafeHTML as v } from "lit/directives/unsafe-html.js";
8
8
  import { css as w, html as c } from "lit";
9
- import { i as A, a as T, b as U } from "../../chunks/info.js";
9
+ import { a as A, i as T, b as U } from "../../chunks/info.js";
10
10
  import { g as y, a as k } from "../../chunks/itemThumbnail.js";
11
11
  import o from "@arcgis/core/portal/PortalItem.js";
12
- import { g as C } from "../../chunks/url.js";
13
- import { g as B } from "../../chunks/portal2.js";
12
+ import { b as C } from "../../chunks/url.js";
13
+ import { h as B } from "../../chunks/portal2.js";
14
14
  import { f as D } from "../../chunks/user.js";
15
15
  import { g as P } from "../../chunks/user2.js";
16
- import { b as _ } from "../../chunks/portal.js";
16
+ import { f as _ } from "../../chunks/portal.js";
17
17
  const O = w`.thumbnail{object-fit:cover;max-height:8rem}.replacement-container{margin:.5rem}.replacement-message{margin-bottom:.5rem}.replacement-card__title{margin-bottom:.25rem}`, p = 5e3;
18
18
  class H extends u {
19
19
  constructor() {
20
- super(...arguments), this.replacementId = null, this.itemOwnerName = "", this.replacementItemInRecycleBin = !1, this.hasInaccessibleReplacementItem = !1, this.replacementItemSupportsOpenActions = !1, this.thumbnailUrl = null, this.timer = void 0, this.messages = f({ blocking: !0 }), this.primaryActionRef = b(), this.getItemDetailsUrl = ({ portal: e, itemId: t, redirect: i }) => {
20
+ super(...arguments), this.replacementId = null, this.itemOwnerName = "", this.replacementItemInRecycleBin = !1, this.hasInaccessibleReplacementItem = !1, this.replacementItemSupportsOpenActions = !1, this.thumbnailUrl = null, this.timer = void 0, this.messages = g({ blocking: !0 }), this.primaryActionRef = b(), this.getItemDetailsUrl = ({ portal: e, itemId: t, redirect: i }) => {
21
21
  const r = C({ portal: e, usePortalHostname: !this.user });
22
22
  return r ? `${`${r}/home`}/item.html?id=${t}${i ? "&performRedirectAction=true" : ""}` : "";
23
23
  }, this.performRedirectAction = () => {
@@ -67,7 +67,7 @@ class H extends u {
67
67
  portal: t
68
68
  });
69
69
  this.item = await r?.load();
70
- const a = await g(e, t, {
70
+ const a = await f(e, t, {
71
71
  relationshipType: "ReplacementItem2Item",
72
72
  direction: "reverse"
73
73
  }, !0), n = a.data?.relatedItems?.[0];