@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
@@ -0,0 +1,181 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
+ import { c as m } from "../../chunks/runtime.js";
3
+ import { formatNumber as f } from "@arcgis/core/intl.js";
4
+ import { LitElement as g, createEvent as h, nothing as w } from "@arcgis/lumina";
5
+ import { css as b, html as l } from "lit";
6
+ import { createRef as v, ref as y } from "lit/directives/ref.js";
7
+ import { u as k } from "../../chunks/useT9n.js";
8
+ import { j as c } from "../../chunks/item.js";
9
+ import { g as S, b as $ } from "../../chunks/items.js";
10
+ import { g as T } from "../../chunks/utils3.js";
11
+ import { i as C, c as I, r as A, f as E } from "../../chunks/request.js";
12
+ import { f as q, g as G } from "../../chunks/layers.js";
13
+ const x = b`:host,.dropdown{display:block}.title{max-inline-size:32rem;overflow-wrap:anywhere}.dropdown-group{max-block-size:10rem;overflow:auto}calcite-alert{--calcite-z-index-toast: 999;z-index:999}`, N = {
14
+ esriGeometryPoint: "point",
15
+ esriGeometryPolyline: "polyline",
16
+ esriGeometryPolygon: "polygon",
17
+ esriGeometryMultipoint: "multipoint"
18
+ };
19
+ function p(s) {
20
+ return {
21
+ id: s.id,
22
+ title: s.title,
23
+ description: s.description ?? "",
24
+ fieldAliases: Array.isArray(s.fieldAliases) ? s.fieldAliases.join(",") : s.fieldAliases ?? "",
25
+ geometryType: !s.geometryType || s.geometryType === "table" ? "nonspatial" : N[s.geometryType] ?? "nonspatial",
26
+ sourceJSON: s.sourceJSON
27
+ };
28
+ }
29
+ function u(s) {
30
+ const { messageCode: t } = G(s);
31
+ return { error: { code: t === "OAUTH_0070" ? "notebookAccessBlocked" : "serviceUnavailable" } };
32
+ }
33
+ function B(s) {
34
+ return c(s) || !s.id ? void 0 : C("serviceInfo", s.id)?.result?.sublayers.map(p);
35
+ }
36
+ function O(s) {
37
+ s.id && I("serviceInfo", s.id);
38
+ }
39
+ async function P({
40
+ item: s,
41
+ portal: t,
42
+ signal: e
43
+ }) {
44
+ try {
45
+ if (e.throwIfAborted(), c(s)) {
46
+ if (!s.url)
47
+ throw new Error("The geoprocessing item has no service URL.");
48
+ const r = await A({
49
+ url: s.url,
50
+ portal: t,
51
+ options: { signal: e, addTokenManually: !1 }
52
+ }), o = r.tasks ?? (r.parameters ? [s.url.split("/GPServer/").pop() ?? ""] : void 0);
53
+ if (!o)
54
+ throw new Error("The geoprocessing service did not return tasks.");
55
+ return { result: { tasks: o } };
56
+ }
57
+ if (!s.id)
58
+ throw new Error("The item has no ID.");
59
+ const i = await E({
60
+ requester: async () => await q({ item: s, portal: t, isSecure: !1, allowLoginWindow: !0 }),
61
+ key: "serviceInfo",
62
+ id: s.id
63
+ });
64
+ return e.throwIfAborted(), i.result ? { result: { sublayers: i.result.sublayers.map(p) } } : u(i.error);
65
+ } catch (i) {
66
+ return u(i);
67
+ }
68
+ }
69
+ class U extends g {
70
+ constructor() {
71
+ super(...arguments), this.messages = k({ blocking: !0 }), this.dropdown = v(), this.selectedEntries = [], this.loading = !1, this.fetched = !1, this.selectedItems = [], this.allowedGeometries = [], this.width = "auto", this.appearance = "outline", this.selection = "single", this.disabled = !1, this.arcgisItemCardSelect = h(), this.arcgisItemCardSelectError = h();
72
+ }
73
+ static {
74
+ this.properties = { sublayers: 16, tasks: 16, loading: 16, fetched: 16, error: 16, item: 0, portal: 0, selectedItems: 0, allowedGeometries: 0, width: 1, appearance: 1, selection: 1, disabled: 7, messageOverrides: 0 };
75
+ }
76
+ static {
77
+ this.styles = x;
78
+ }
79
+ get isTask() {
80
+ return c(this.item);
81
+ }
82
+ get sortedSublayers() {
83
+ return [...this.sublayers ?? []].sort((t, e) => Number(this.isAllowed(e)) - Number(this.isAllowed(t)) || e.id - t.id);
84
+ }
85
+ get selectText() {
86
+ const t = this.selectedEntries, { messages: e } = this;
87
+ if (this.isTask) {
88
+ const r = t[0];
89
+ return t.length === 1 && r && "task" in r ? e.selectedTask.replace("${task}", r.task) : e.selectTask;
90
+ }
91
+ if (!t.length && !this.sublayers?.length)
92
+ return this.isSelected() ? e.selectedSingle : e.select;
93
+ if (!t.length)
94
+ return this.selection === "multiple" ? e.selectLayers : e.select;
95
+ if (this.selection === "multiple")
96
+ return e.selectedLayers.replace("${num}", f(t.length));
97
+ const i = t[0];
98
+ return i && "sublayer" in i ? e.selectedName.replace("${name}", i.sublayer.title) : e.select;
99
+ }
100
+ willUpdate(t) {
101
+ if (t.has("disabled") && this.disabled && (this.requestController?.abort(), this.loading = !1, this.dropdown.value && (this.dropdown.value.open = !1)), (t.has("item") || t.has("selectedItems")) && (this.selectedEntries = this.selectedItems.filter((e) => "item" in e && e.item.id === this.item?.id)), (t.has("item") || t.has("portal")) && (this.requestController?.abort(), this.sublayers = this.item ? S(this.item).sublayers : void 0, this.tasks = void 0, this.loading = !1, this.fetched = !1, this.error = void 0, this.item && !this.sublayers)) {
102
+ const e = B(this.item);
103
+ e && (this.sublayers = e, this.fetched = !0);
104
+ }
105
+ }
106
+ disconnectedCallback() {
107
+ super.disconnectedCallback(), this.requestController?.abort(), this.loading = !1;
108
+ }
109
+ isSelected(t, e) {
110
+ return this.selectedItems.some((i) => "item" in i ? i.item.id === this.item.id && (t ? "sublayer" in i && i.sublayer.id === t.id : e !== void 0 && "task" in i && i.task === e) : !t && e === void 0 && i.id === this.item.id);
111
+ }
112
+ isAllowed(t) {
113
+ return !this.allowedGeometries.length || this.allowedGeometries.includes(t.geometryType);
114
+ }
115
+ select(t, e, i = this.selection === "single" || !this.isSelected(t, e)) {
116
+ this.disabled || (this.arcgisItemCardSelect.emit({
117
+ item: this.item,
118
+ ...t ? { sublayer: t } : {},
119
+ ...e !== void 0 ? { task: e } : {},
120
+ selected: i
121
+ }), this.requestUpdate(), this.reconcileSelection());
122
+ }
123
+ async reconcileSelection() {
124
+ await this.updateComplete;
125
+ const t = this.sortedSublayers;
126
+ this.dropdown.value?.querySelectorAll("calcite-dropdown-item").forEach((e, i) => {
127
+ e.selected = this.isTask ? this.isSelected(void 0, this.tasks?.[i]) : this.isSelected(t[i]);
128
+ });
129
+ }
130
+ async handleTrigger(t = !1) {
131
+ if (this.loading || this.disabled)
132
+ return;
133
+ this.requestController?.abort();
134
+ const e = new AbortController();
135
+ this.requestController = e;
136
+ const { item: i, portal: r } = this, o = () => !e.signal.aborted && this.item === i && this.portal === r && this.el.isConnected, d = t || !this.fetched && (this.isTask || !this.sublayers && this.item.type !== "Image Service" || $(this.item).includes("SubtypeGroupLayer"));
137
+ if (d) {
138
+ t && (O(i), this.fetched = !1), this.loading = !0, this.error = void 0;
139
+ const a = await P({ item: i, portal: r, signal: e.signal });
140
+ if (!o())
141
+ return;
142
+ if (this.loading = !1, a.error || !a.result) {
143
+ this.error = a.error ?? { code: "serviceUnavailable" }, this.arcgisItemCardSelectError.emit({ item: i, error: this.error });
144
+ return;
145
+ }
146
+ if (this.sublayers = a.result.sublayers, this.tasks = a.result.tasks, this.fetched = !0, await this.updateComplete, !o())
147
+ return;
148
+ }
149
+ if (d && this.isTask && this.tasks?.length === 1) {
150
+ this.dropdown.value && (this.dropdown.value.open = !1), this.select(void 0, this.tasks[0], !0);
151
+ return;
152
+ }
153
+ if (!this.isTask && !this.sublayers?.length) {
154
+ t || this.select(void 0, void 0, !this.isSelected());
155
+ return;
156
+ }
157
+ const n = this.dropdown.value;
158
+ n && (await n.componentOnReady(), o() && (n.open = d || !n.open));
159
+ }
160
+ renderButton(t) {
161
+ return l`<calcite-button slot=${(t ? "trigger" : void 0) ?? w} class="dropdown" .loading=${this.loading} .disabled=${this.loading || this.disabled} .appearance=${this.selectedEntries.length || this.isSelected() ? "solid" : this.appearance} kind=neutral .iconEnd=${t ? "chevron-down" : void 0} .width=${this.width} @click=${(e) => {
162
+ e.stopPropagation(), this.handleTrigger();
163
+ }}>${this.selectText}</calcite-button>`;
164
+ }
165
+ render() {
166
+ if (!this.item || !this.portal || !this.messages._lang)
167
+ return null;
168
+ const t = this.sortedSublayers;
169
+ return l`${t.length || this.isTask ? l`<calcite-dropdown class="dropdown" width=l .placement=${this.appearance === "solid" ? "top" : "bottom-end"} .closeOnSelectDisabled=${!this.isTask && this.selection === "multiple"} overlay-positioning=fixed ${y(this.dropdown)}>${this.renderButton(!0)}<calcite-dropdown-group class="dropdown-group" .selectionMode=${this.selection} .groupTitle=${this.isTask && this.tasks?.length ? this.messages.selectTaskFrom.replace("${title}", this.item.title ?? "") : void 0}>${this.isTask ? this.tasks?.map((e) => l`<calcite-dropdown-item .disabled=${this.disabled} .selected=${this.isSelected(void 0, e)} @calciteDropdownItemSelect=${() => this.select(void 0, e)}><span class="title">${e}</span></calcite-dropdown-item>`) : t.map((e) => l`<calcite-dropdown-item .id=${`sublayer-${e.id}`} .iconStart=${T({ geometry: e.geometryType }).icon} .disabled=${this.disabled || !this.isAllowed(e)} .selected=${this.isSelected(e)} @calciteDropdownItemSelect=${() => {
170
+ this.isAllowed(e) && this.select(e);
171
+ }}><span class="title">${e.title}</span></calcite-dropdown-item>${!this.isAllowed(e) && l`<calcite-tooltip .referenceElement=${`sublayer-${e.id}`} overlay-positioning=fixed>${this.messages.geometryNotAllowed}</calcite-tooltip>` || ""}`)}</calcite-dropdown-group></calcite-dropdown>` : this.renderButton(!1)}<calcite-alert .label=${this.messages.errorTitle} icon kind=danger .open=${!!this.error} @calciteAlertClose=${() => {
172
+ this.error = void 0;
173
+ }}><div slot=title>${this.messages.errorTitle}</div><div slot=message>${this.error?.code === "notebookAccessBlocked" ? this.messages.notebookErrorBody : this.messages.errorBody}</div><calcite-link slot=link @click=${(e) => {
174
+ e.stopPropagation(), this.handleTrigger(!0);
175
+ }}>${this.messages.retry}</calcite-link></calcite-alert>`;
176
+ }
177
+ }
178
+ m("arcgis-portal-item-card-sublayer-select", U);
179
+ export {
180
+ U as ArcgisPortalItemCardSublayerSelect
181
+ };
@@ -0,0 +1 @@
1
+ export * from "./customElement.js";
@@ -0,0 +1,8 @@
1
+ import "@esri/calcite-components/components/calcite-button";
2
+ import "@esri/calcite-components/components/calcite-dropdown";
3
+ import "@esri/calcite-components/components/calcite-dropdown-group";
4
+ import "@esri/calcite-components/components/calcite-dropdown-item";
5
+ import "@esri/calcite-components/components/calcite-tooltip";
6
+ import "@esri/calcite-components/components/calcite-alert";
7
+ import "@esri/calcite-components/components/calcite-link";
8
+ export * from "./customElement.js";
@@ -0,0 +1,22 @@
1
+ import type PortalItem from "@arcgis/core/portal/PortalItem.js";
2
+ import type { SearchResultSublayer } from "../../types/item.js";
3
+
4
+ export type PortalItemCardSelectedItem = PortalItem | {
5
+ item: PortalItem;
6
+ sublayer: SearchResultSublayer;
7
+ } | {
8
+ item: PortalItem;
9
+ task: string;
10
+ };
11
+
12
+ export interface PortalItemCardSublayerSelectDetail {
13
+ item: PortalItem;
14
+ sublayer?: SearchResultSublayer;
15
+ task?: string;
16
+ selected: boolean;
17
+ }
18
+
19
+ export interface PortalItemCardSelectErrorDetail {
20
+ item: PortalItem;
21
+ error: unknown;
22
+ }
@@ -1,40 +1,46 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import { c as n } from "../../chunks/runtime.js";
3
- import { LitElement as c, createEvent as d } from "@arcgis/lumina";
4
- import { html as r } from "lit";
5
- import { createRef as v, ref as u } from "lit/directives/ref.js";
2
+ import { c } from "../../chunks/runtime.js";
3
+ import { LitElement as d, createEvent as u } from "@arcgis/lumina";
4
+ import { html as h } from "lit";
5
+ import { createRef as v, ref as m } from "lit/directives/ref.js";
6
6
  import { u as f } from "../../chunks/useT9n.js";
7
- import { g as m, t as p, i as F } from "../../chunks/utils2.js";
8
- class g extends c {
7
+ import { g as p, t as F, i as b } from "../../chunks/utils2.js";
8
+ class g extends d {
9
9
  constructor() {
10
10
  super(), this.messages = f({ blocking: !0 }), this.buttonRef = v(), this.favoriteRequestId = 0, this.handleFavoriteUpdate = (t) => {
11
- const i = m(t, this.item?.id ?? void 0);
11
+ const i = p(t, this.item?.id ?? void 0);
12
12
  i && (this.isFavorite = i.favorite);
13
13
  }, this.handleToggleFavorite = async (t) => {
14
14
  t.preventDefault(), t.stopPropagation();
15
- const { item: i, portal: s, user: a } = this;
16
- if (!i.id || !s || !a)
15
+ const { item: i, portal: e, user: s } = this;
16
+ if (!i.id || !e || !s)
17
17
  return;
18
- const h = {
18
+ const o = {
19
19
  id: i.id,
20
20
  access: i.access
21
- }, o = this.isFavorite, e = !o;
22
- this.isFavorite = e;
23
- const { updated: l } = await p({
24
- currentFavorite: o,
25
- item: h,
26
- portal: s,
27
- user: a
21
+ }, r = this.isFavorite;
22
+ this.mutation?.abort();
23
+ const n = new AbortController();
24
+ this.mutation = n;
25
+ const a = !r;
26
+ this.isFavorite = a;
27
+ const { updated: l } = await F({
28
+ currentFavorite: r,
29
+ item: o,
30
+ portal: e,
31
+ user: s
28
32
  });
29
- if (!l) {
30
- this.isFavorite = !e;
31
- return;
33
+ if (!(n.signal.aborted || this.item !== i || this.item.id !== o.id || this.portal !== e || this.user !== s)) {
34
+ if (!l) {
35
+ this.isFavorite = !a;
36
+ return;
37
+ }
38
+ this.arcgisItemFavoriteUpdate.emit({
39
+ id: i.id,
40
+ favorite: a
41
+ });
32
42
  }
33
- this.arcgisItemFavoriteUpdate.emit({
34
- id: i.id,
35
- favorite: e
36
- });
37
- }, this.isFavorite = !1, this.isFavoriteLoaded = !1, this.width = "full", this.iconOnly = !1, this.scale = "m", this.showTooltip = !1, this.arcgisItemFavoriteUpdate = d(), this.listenOn(window, "arcgisItemFavoriteUpdate", this.handleFavoriteUpdate);
43
+ }, this.isFavorite = !1, this.isFavoriteLoaded = !1, this.width = "full", this.iconOnly = !1, this.scale = "m", this.showTooltip = !1, this.arcgisItemFavoriteUpdate = u(), this.listenOn(window, "arcgisItemFavoriteUpdate", this.handleFavoriteUpdate);
38
44
  }
39
45
  static {
40
46
  this.properties = { isFavorite: 16, isFavoriteLoaded: 16, item: 0, portal: 0, user: 0, width: 1, iconOnly: 5, scale: 1, showTooltip: 5 };
@@ -43,24 +49,31 @@ class g extends c {
43
49
  await this.buttonRef.value?.setFocus();
44
50
  }
45
51
  willUpdate(t) {
46
- (t.has("item") || t.has("portal") || t.has("user")) && (this.isFavoriteLoaded = !1, this.refreshFavorite());
52
+ (t.has("item") || t.has("portal") || t.has("user")) && (this.mutation?.abort(), this.isFavoriteLoaded = !1, this.refreshFavorite());
53
+ }
54
+ disconnectedCallback() {
55
+ super.disconnectedCallback(), this.mutation?.abort(), this.favoriteRequestId++;
56
+ }
57
+ connectedCallback() {
58
+ super.connectedCallback(), this.hasUpdated && this.refreshFavorite();
47
59
  }
48
60
  async refreshFavorite() {
61
+ const t = ++this.favoriteRequestId;
49
62
  if (!this.item.id || !this.portal || !this.user) {
50
63
  this.isFavorite = !1;
51
64
  return;
52
65
  }
53
- const t = ++this.favoriteRequestId, i = await F(this.item.id, this.portal, this.user);
66
+ const i = await b(this.item.id, this.portal, this.user);
54
67
  t === this.favoriteRequestId && (this.isFavorite = i, this.isFavoriteLoaded = !0);
55
68
  }
56
69
  render() {
57
70
  if (!this.isFavoriteLoaded)
58
71
  return null;
59
72
  const t = this.isFavorite ? this.messages.remove : this.messages.add;
60
- return r`<calcite-button .width=${this.iconOnly ? "auto" : this.width} .scale=${this.scale} .appearance=${this.iconOnly ? "transparent" : "outline-fill"} kind=neutral .iconStart=${this.isFavorite ? "star-f" : "star"} .ariaLabel=${this.iconOnly ? t : void 0} @click=${this.handleToggleFavorite} ${u(this.buttonRef)}>${this.iconOnly ? null : t}</calcite-button>${this.showTooltip ? r`<calcite-tooltip .referenceElement=${this.buttonRef.value}>${t}</calcite-tooltip>` : null}`;
73
+ return h`<calcite-button .width=${this.iconOnly ? "auto" : this.width} .scale=${this.scale} .appearance=${this.iconOnly ? "transparent" : "outline-fill"} kind=neutral .iconStart=${this.isFavorite ? "star-f" : "star"} .ariaLabel=${this.iconOnly ? t : void 0} @click=${this.handleToggleFavorite} ${m(this.buttonRef)}>${this.iconOnly ? null : t}</calcite-button>${this.showTooltip ? h`<calcite-tooltip .referenceElement=${this.buttonRef.value}>${t}</calcite-tooltip>` : null}`;
61
74
  }
62
75
  }
63
- n("arcgis-portal-item-favorite", g);
76
+ c("arcgis-portal-item-favorite", g);
64
77
  export {
65
78
  g as ArcgisPortalItemFavorite
66
79
  };
@@ -0,0 +1,263 @@
1
+ /// <reference path="../../index.d.ts" />
2
+ import type Portal from "@arcgis/core/portal/Portal.js";
3
+ import type PortalItem from "@arcgis/core/portal/PortalItem.js";
4
+ import type PortalUser from "@arcgis/core/portal/PortalUser.js";
5
+ import type { PublicLitElement as LitElement } from "@arcgis/lumina";
6
+ import type { PortalGroupSourceJSON } from "../../types/group.js";
7
+ import type { ItemPreviewLayer } from "./types.js";
8
+ import type { T9nMeta } from "@arcgis/lumina/controllers";
9
+
10
+ /**
11
+ * Renders an already-loaded item's overview, description, and copyable details.
12
+ * The caller owns loading and source resolution.
13
+ * Supported services, collections, and templates include layers-and-tables navigation,
14
+ * layer overviews, and opt-in field information/statistics. Imagery information refines the item-type label.
15
+ * Use the owner slot to compose an alternate presentation, such as a noninteractive avatar.
16
+ *
17
+ * Compose with the shared preview container and a preview session for an anchored
18
+ * slide-in pane, or place directly in another layout. No browser is required.
19
+ *
20
+ * @slot [summary-top] - Host content before the item summary.
21
+ * @slot [owner] - Overrides owner presentation, for example with a noninteractive portal-user-avatar.
22
+ * @slot [footer] - Host-owned actions at the bottom of the pane.
23
+ * @slot [sublayer-footer] - Host-owned actions for the selected layer or table, replacing the item footer.
24
+ */
25
+ export abstract class ArcgisPortalItemPreview extends LitElement {
26
+ /** Prepared sharing-group IDs. When omitted, the sharing summary loads them. */
27
+ accessor groups: string[] | undefined;
28
+ /** Fully populated, loaded item to display. Without an item, no panel is rendered. */
29
+ accessor item: PortalItem | undefined;
30
+ /** Layer and table IDs highlighted by the host's search. Matches appear first. */
31
+ accessor matchedSublayerIds: number[];
32
+ /** @internal */
33
+ protected messages: {
34
+ componentLabel: string;
35
+ close: string;
36
+ thumbnail: string;
37
+ summary: string;
38
+ noSummary: string;
39
+ overview: string;
40
+ itemStatus: string;
41
+ owner: string;
42
+ shared: string;
43
+ updated: string;
44
+ groupCategories: string;
45
+ description: string;
46
+ noDescription: string;
47
+ details: string;
48
+ created: string;
49
+ viewCount: string;
50
+ dashboardViews: string;
51
+ dashboardMobile: string;
52
+ dashboardDesktop: string;
53
+ fileSize: string;
54
+ attachmentsSize: string;
55
+ id: string;
56
+ url: string;
57
+ copyID: string;
58
+ copyURL: string;
59
+ copied: string;
60
+ copy: string;
61
+ copyError: string;
62
+ credits: string;
63
+ noCredits: string;
64
+ termsOfUse: string;
65
+ noTermsOfUse: string;
66
+ layers: string;
67
+ layersCount: string;
68
+ matched: string;
69
+ matchedNumber: string;
70
+ loadingLayers: string;
71
+ noLayers: string;
72
+ layerErrorTitle: string;
73
+ layerErrorMessage: string;
74
+ noServiceMessage: string;
75
+ retry: string;
76
+ back: string;
77
+ fields: string;
78
+ noFields: string;
79
+ geometryTypeTitle: string;
80
+ layerTypeTitle: string;
81
+ dataUpdated: string;
82
+ schemaUpdated: string;
83
+ loadingSublayer: string;
84
+ loadingStatistics: string;
85
+ statisticsError: string;
86
+ sublayerErrorTitle: string;
87
+ sublayerErrorMessage: string;
88
+ layerTypes: {
89
+ point: string;
90
+ line: string;
91
+ polygon: string;
92
+ multipatch: string;
93
+ multipoint: string;
94
+ table: string;
95
+ annotation: string;
96
+ dimension: string;
97
+ catalog: string;
98
+ "oriented imagery": string;
99
+ parcel: string;
100
+ "utility network": string;
101
+ topology: string;
102
+ "trace network": string;
103
+ };
104
+ fieldTypes: {
105
+ oid: string;
106
+ boolean: string;
107
+ string: string;
108
+ single: string;
109
+ double: string;
110
+ integer: string;
111
+ "small-integer": string;
112
+ "global-id": string;
113
+ date: string;
114
+ "big-integer": string;
115
+ "date-only": string;
116
+ "time-only": string;
117
+ "timestamp-offset": string;
118
+ guid: string;
119
+ blob: string;
120
+ raster: string;
121
+ geometry: string;
122
+ long: string;
123
+ xml: string;
124
+ };
125
+ fileSizeUnits: {
126
+ bytes: string;
127
+ kilobytes: string;
128
+ megabytes: string;
129
+ gigabytes: string;
130
+ terabytes: string;
131
+ };
132
+ } & T9nMeta<{
133
+ componentLabel: string;
134
+ close: string;
135
+ thumbnail: string;
136
+ summary: string;
137
+ noSummary: string;
138
+ overview: string;
139
+ itemStatus: string;
140
+ owner: string;
141
+ shared: string;
142
+ updated: string;
143
+ groupCategories: string;
144
+ description: string;
145
+ noDescription: string;
146
+ details: string;
147
+ created: string;
148
+ viewCount: string;
149
+ dashboardViews: string;
150
+ dashboardMobile: string;
151
+ dashboardDesktop: string;
152
+ fileSize: string;
153
+ attachmentsSize: string;
154
+ id: string;
155
+ url: string;
156
+ copyID: string;
157
+ copyURL: string;
158
+ copied: string;
159
+ copy: string;
160
+ copyError: string;
161
+ credits: string;
162
+ noCredits: string;
163
+ termsOfUse: string;
164
+ noTermsOfUse: string;
165
+ layers: string;
166
+ layersCount: string;
167
+ matched: string;
168
+ matchedNumber: string;
169
+ loadingLayers: string;
170
+ noLayers: string;
171
+ layerErrorTitle: string;
172
+ layerErrorMessage: string;
173
+ noServiceMessage: string;
174
+ retry: string;
175
+ back: string;
176
+ fields: string;
177
+ noFields: string;
178
+ geometryTypeTitle: string;
179
+ layerTypeTitle: string;
180
+ dataUpdated: string;
181
+ schemaUpdated: string;
182
+ loadingSublayer: string;
183
+ loadingStatistics: string;
184
+ statisticsError: string;
185
+ sublayerErrorTitle: string;
186
+ sublayerErrorMessage: string;
187
+ layerTypes: {
188
+ point: string;
189
+ line: string;
190
+ polygon: string;
191
+ multipatch: string;
192
+ multipoint: string;
193
+ table: string;
194
+ annotation: string;
195
+ dimension: string;
196
+ catalog: string;
197
+ "oriented imagery": string;
198
+ parcel: string;
199
+ "utility network": string;
200
+ topology: string;
201
+ "trace network": string;
202
+ };
203
+ fieldTypes: {
204
+ oid: string;
205
+ boolean: string;
206
+ string: string;
207
+ single: string;
208
+ double: string;
209
+ integer: string;
210
+ "small-integer": string;
211
+ "global-id": string;
212
+ date: string;
213
+ "big-integer": string;
214
+ "date-only": string;
215
+ "time-only": string;
216
+ "timestamp-offset": string;
217
+ guid: string;
218
+ blob: string;
219
+ raster: string;
220
+ geometry: string;
221
+ long: string;
222
+ xml: string;
223
+ };
224
+ fileSizeUnits: {
225
+ bytes: string;
226
+ kilobytes: string;
227
+ megabytes: string;
228
+ gigabytes: string;
229
+ terabytes: string;
230
+ };
231
+ }>;
232
+ /** Source portal override for presentation components. Defaults to item.portal. */
233
+ accessor portal: Portal | undefined;
234
+ /**
235
+ * Enables on-demand field information/statistics for Feature Service layers and tables. Field queries start on expansion.
236
+ *
237
+ * @default false
238
+ */
239
+ accessor showFieldStatistics: boolean;
240
+ /**
241
+ * Shows hosted-service information when permitted for the current user.
242
+ *
243
+ * @default false
244
+ */
245
+ accessor showHosted: boolean;
246
+ /** Source-portal user. Defaults to the portal's user; null disables signed-in actions. */
247
+ accessor user: PortalUser | null | undefined;
248
+ /** Optional source-portal group context for sharing details. */
249
+ accessor userGroups: Pick<PortalGroupSourceJSON, "id">[] | undefined;
250
+ /** Focuses the preview's header after rendering. */
251
+ setFocus(): Promise<void>;
252
+ /** Requests closing. The host's preview session controls visibility and focus restoration. */
253
+ readonly arcgisClose: import("@arcgis/lumina").TargetedEvent<this, void>;
254
+ /** Cancel to prevent following an external link in the description or terms. */
255
+ readonly arcgisExternalLink: import("@arcgis/lumina").TargetedEvent<this, { href: string; }>;
256
+ /** Reports layer navigation. Null indicates returning to the item or changing source/item. */
257
+ readonly arcgisSublayerChange: import("@arcgis/lumina").TargetedEvent<this, ItemPreviewLayer | null>;
258
+ readonly "@eventTypes": {
259
+ arcgisClose: ArcgisPortalItemPreview["arcgisClose"]["detail"];
260
+ arcgisExternalLink: ArcgisPortalItemPreview["arcgisExternalLink"]["detail"];
261
+ arcgisSublayerChange: ArcgisPortalItemPreview["arcgisSublayerChange"]["detail"];
262
+ };
263
+ }