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

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 (409) hide show
  1. package/dist/cdn/2574FNAZ.js +2 -0
  2. package/dist/cdn/3DOZPC3W.js +2 -0
  3. package/dist/cdn/3HZI6MKD.js +2 -0
  4. package/dist/cdn/3KGSWW6B.js +2 -0
  5. package/dist/cdn/3OL7A2UC.js +2 -0
  6. package/dist/cdn/3Q7UJKKN.js +2 -0
  7. package/dist/cdn/43A74S72.js +2 -0
  8. package/dist/cdn/46HNNQAD.js +2 -0
  9. package/dist/cdn/46MYBPSS.js +2 -0
  10. package/dist/cdn/{2TDHJSMP.js → 47DKAGRV.js} +1 -1
  11. package/dist/cdn/4CBRO7JP.js +2 -0
  12. package/dist/cdn/4QYVBXZT.js +2 -0
  13. package/dist/cdn/{K75JTQPW.js → 4VLEUN7I.js} +1 -1
  14. package/dist/cdn/5M25PCH2.js +2 -0
  15. package/dist/cdn/5MLBK66O.js +2 -0
  16. package/dist/cdn/5RBH3LGK.js +2 -0
  17. package/dist/cdn/5ZHNRQOW.js +2 -0
  18. package/dist/cdn/62TL6V4N.js +2 -0
  19. package/dist/cdn/66VV7NHO.js +2 -0
  20. package/dist/cdn/6AHPTR2E.js +2 -0
  21. package/dist/cdn/6APPSZ7E.js +2 -0
  22. package/dist/cdn/{BKD7JSV2.js → 6CUXEL27.js} +1 -1
  23. package/dist/cdn/6QI7DAS2.js +2 -0
  24. package/dist/cdn/6ZJNZZPC.js +2 -0
  25. package/dist/cdn/75CT6IMW.js +2 -0
  26. package/dist/cdn/7J22VLBO.js +2 -0
  27. package/dist/cdn/7VPB6Q55.js +63 -0
  28. package/dist/cdn/7ZU43BL6.js +2 -0
  29. package/dist/cdn/A5QLPZ57.js +2 -0
  30. package/dist/cdn/AZTAWZI5.js +2 -0
  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/C7SNE6YG.js +2 -0
  38. package/dist/cdn/DENQY4OE.js +2 -0
  39. package/dist/cdn/DT4HGMLS.js +2 -0
  40. package/dist/cdn/{2YZWRFCI.js → DTGPLVZF.js} +1 -1
  41. package/dist/cdn/DU2R3VC4.js +2 -0
  42. package/dist/cdn/E5HCHRAI.js +2 -0
  43. package/dist/cdn/EBL7YSRM.js +2 -0
  44. package/dist/cdn/EDGE3T36.js +2 -0
  45. package/dist/cdn/{YZTBAUIO.js → EFMYI4L2.js} +1 -1
  46. package/dist/cdn/FFL2L4X5.js +2 -0
  47. package/dist/cdn/{ZKZDKJ6D.js → FIAEPK5L.js} +1 -1
  48. package/dist/cdn/FN2QMDEW.js +2 -0
  49. package/dist/cdn/FTKSVLDI.js +2 -0
  50. package/dist/cdn/G272JPUS.js +2 -0
  51. package/dist/cdn/GFUKRB6D.js +2 -0
  52. package/dist/cdn/{SGDDFWCJ.js → GG6U75ZA.js} +1 -1
  53. package/dist/cdn/{FRE56NBG.js → GZ4ONSFV.js} +1 -1
  54. package/dist/cdn/HOIZXTOD.js +2 -0
  55. package/dist/cdn/{VDXESPJK.js → I4TKQB4A.js} +1 -1
  56. package/dist/cdn/{TWCJJCPC.js → IAMPUXPT.js} +1 -1
  57. package/dist/cdn/IAWL475A.js +2 -0
  58. package/dist/cdn/IGLODZPX.js +2 -0
  59. package/dist/cdn/IOF72CDU.js +2 -0
  60. package/dist/cdn/ITRJGXFV.js +93 -0
  61. package/dist/cdn/ITWLFQI4.js +2 -0
  62. package/dist/cdn/{7ZWYUHGK.js → IYICIRGI.js} +1 -1
  63. package/dist/cdn/JFGXTJY4.js +2 -0
  64. package/dist/cdn/JIU6MBGB.js +2 -0
  65. package/dist/cdn/JLT5GCLY.js +2 -0
  66. package/dist/cdn/JTA223NH.js +2 -0
  67. package/dist/cdn/KA2MXQTR.js +2 -0
  68. package/dist/cdn/KAK6CNI7.js +2 -0
  69. package/dist/cdn/KPZGBBDG.js +2 -0
  70. package/dist/cdn/{CFRJU6VA.js → KRO5XRZ7.js} +1 -1
  71. package/dist/cdn/KRORL7QC.js +2 -0
  72. package/dist/cdn/KWL2D56D.js +3 -0
  73. package/dist/cdn/{QTAYXO5T.js → KXVXQYIB.js} +1 -1
  74. package/dist/cdn/L3YOPSRB.js +135 -0
  75. package/dist/cdn/LEESUFWE.js +2 -0
  76. package/dist/cdn/{IN4JPZTY.js → LGKI24ZT.js} +1 -1
  77. package/dist/cdn/LTD5KLLE.js +2 -0
  78. package/dist/cdn/{GAF4YT5N.js → LUJGCYQY.js} +1 -1
  79. package/dist/cdn/{Z6R3C4AK.js → MB32XRI5.js} +1 -1
  80. package/dist/cdn/MSL36HAR.js +2 -0
  81. package/dist/cdn/MSSJRDR7.js +2 -0
  82. package/dist/cdn/N3WRMPM6.js +2 -0
  83. package/dist/cdn/N47MW5HI.js +9 -0
  84. package/dist/cdn/N7XYFVOI.js +2 -0
  85. package/dist/cdn/NHVPNSNH.js +2 -0
  86. package/dist/cdn/{5HZNBMW6.js → NU4K2AV3.js} +1 -1
  87. package/dist/cdn/O2GPTWGF.js +3 -0
  88. package/dist/cdn/{TRMFL7PT.js → ONRTCGLU.js} +1 -1
  89. package/dist/cdn/OPI4P6VO.js +2 -0
  90. package/dist/cdn/{RHCRPJWS.js → OPMM7QH5.js} +1 -1
  91. package/dist/cdn/OQ2JULON.js +2 -0
  92. package/dist/cdn/OXF2WDSW.js +2 -0
  93. package/dist/cdn/P3FFM322.js +2 -0
  94. package/dist/cdn/QAXFE5DD.js +2 -0
  95. package/dist/cdn/{JPUUMGX5.js → QKRLO5CJ.js} +1 -1
  96. package/dist/cdn/R26RBXQW.js +2 -0
  97. package/dist/cdn/R6KJVAX3.js +99 -0
  98. package/dist/cdn/RA2NMLMP.js +2 -0
  99. package/dist/cdn/RJXIU4GH.js +2 -0
  100. package/dist/cdn/RKHNP3KL.js +2 -0
  101. package/dist/cdn/RR56BOTV.js +2 -0
  102. package/dist/cdn/RT26JZP5.js +2 -0
  103. package/dist/cdn/RTZ2TKM5.js +2 -0
  104. package/dist/cdn/RX64JXHI.js +170 -0
  105. package/dist/cdn/RXMM6CFK.js +2 -0
  106. package/dist/cdn/S4N5QMSN.js +2 -0
  107. package/dist/cdn/SCLYGIHM.js +2 -0
  108. package/dist/cdn/{JIJO4CAS.js → SLK7PV62.js} +1 -1
  109. package/dist/cdn/SRWFOV5W.js +2 -0
  110. package/dist/cdn/SUN4MBT3.js +2 -0
  111. package/dist/cdn/SYXCSFIA.js +2 -0
  112. package/dist/cdn/{3NSHGKZA.js → TBSNDRRE.js} +1 -1
  113. package/dist/cdn/{ROX3GKKA.js → TIPQ2ZWK.js} +1 -1
  114. package/dist/cdn/TP7V25GT.js +2 -0
  115. package/dist/cdn/{TXC7YBGL.js → UBMZBXT7.js} +1 -1
  116. package/dist/cdn/UIK6LPA7.js +2 -0
  117. package/dist/cdn/ULGME5RT.js +2 -0
  118. package/dist/cdn/{URQML7KV.js → VQRMXBPQ.js} +1 -1
  119. package/dist/cdn/VWOBCSD6.js +4 -0
  120. package/dist/cdn/{JE2376SE.js → W3JJBZYX.js} +1 -1
  121. package/dist/cdn/W6WVMRGQ.js +2 -0
  122. package/dist/cdn/{MKSFNVXL.js → WNXDXB3M.js} +1 -1
  123. package/dist/cdn/{JN23JH3T.js → WOSWA2VI.js} +1 -1
  124. package/dist/cdn/WTKLB3R6.js +2 -0
  125. package/dist/cdn/X7W4VJO7.js +2 -0
  126. package/dist/cdn/XCOP6QHA.js +2 -0
  127. package/dist/cdn/XE3DCC5D.js +2 -0
  128. package/dist/cdn/XVV75AX3.js +2 -0
  129. package/dist/cdn/XYHIVGUK.js +2 -0
  130. package/dist/cdn/{M5PPX4ZX.js → Y4JOEFBJ.js} +1 -1
  131. package/dist/cdn/Y7ZCEONL.js +73 -0
  132. package/dist/cdn/YELHAJB3.js +2 -0
  133. package/dist/cdn/YH2OFXPU.js +2 -0
  134. package/dist/cdn/YYVLFAFT.js +2 -0
  135. package/dist/cdn/{74T6IXSN.js → ZDH4KVAV.js} +1 -1
  136. package/dist/cdn/{I6IRHXWR.js → ZECUXVTO.js} +1 -1
  137. package/dist/cdn/ZG7OW456.js +2 -0
  138. package/dist/cdn/{NWVLGU2C.js → ZLNBCJE4.js} +1 -1
  139. package/dist/cdn/{K2XSYDAP.js → ZNNEU5QW.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-sublayer-select/t9n/messages.en.json +1 -0
  143. package/dist/cdn/assets/portal-item-preview/t9n/messages.en.json +1 -0
  144. package/dist/cdn/assets/portal-item-share-summary/t9n/messages.en.json +1 -0
  145. package/dist/cdn/assets/portal-item-status-card/t9n/messages.en.json +1 -0
  146. package/dist/cdn/assets/portal-item-type/t9n/messages.en.json +1 -1
  147. package/dist/cdn/assets/portal-navigation/t9n/messages.en.json +1 -1
  148. package/dist/cdn/assets/portal-review-layer-sharing/t9n/messages.en.json +1 -0
  149. package/dist/cdn/index.js +1 -1
  150. package/dist/cdn/main.css +1 -1
  151. package/dist/chunks/FieldIcons.js +24 -0
  152. package/dist/chunks/constants.js +7 -0
  153. package/dist/chunks/contextUsage.js +208 -0
  154. package/dist/chunks/createPortalTool.js +18 -0
  155. package/dist/chunks/fieldAddDelete.js +6 -6
  156. package/dist/chunks/functionalities.js +14 -9
  157. package/dist/chunks/groups.js +8 -61
  158. package/dist/chunks/groups2.js +23 -8
  159. package/dist/chunks/help.js +22 -0
  160. package/dist/chunks/info.js +2 -2
  161. package/dist/chunks/item.js +135 -33
  162. package/dist/chunks/item2.js +96 -122
  163. package/dist/chunks/itemThumbnail.js +21 -21
  164. package/dist/chunks/items.js +11 -11
  165. package/dist/chunks/layers.js +196 -0
  166. package/dist/chunks/loadClassificationData.js +26 -27
  167. package/dist/chunks/portal-browser.js +49 -46
  168. package/dist/chunks/portal-delete-items-review.js +1 -1
  169. package/dist/chunks/portal-item-badge.js +1 -1
  170. package/dist/chunks/portal-item-preview-sublayer.js +214 -0
  171. package/dist/chunks/portal-item-status-card.js +81 -0
  172. package/dist/chunks/portal-related-items-list-item.js +1 -1
  173. package/dist/chunks/portal.js +5 -5
  174. package/dist/chunks/portal2.js +22 -22
  175. package/dist/chunks/portalEntitySelection.js +61 -0
  176. package/dist/chunks/previewSessionController.js +33 -0
  177. package/dist/chunks/query.js +13 -13
  178. package/dist/chunks/request.js +49 -41
  179. package/dist/chunks/requests.js +7 -7
  180. package/dist/chunks/selectedMentions.js +25 -0
  181. package/dist/chunks/services.js +5 -5
  182. package/dist/chunks/string.js +19 -11
  183. package/dist/chunks/ui.js +1 -0
  184. package/dist/chunks/url.js +2 -2
  185. package/dist/chunks/user.js +67 -53
  186. package/dist/chunks/user2.js +10 -10
  187. package/dist/chunks/utils.js +35 -22
  188. package/dist/chunks/utils3.js +88 -657
  189. package/dist/chunks/utils4.js +663 -0
  190. package/dist/components/arcgis-portal-account-switcher/customElement.js +57 -54
  191. package/dist/components/arcgis-portal-add-gps-metadata/customElement.d.ts +27 -0
  192. package/dist/components/arcgis-portal-add-gps-metadata/customElement.js +185 -137
  193. package/dist/components/arcgis-portal-ai-assistant/customElement.d.ts +38 -15
  194. package/dist/components/arcgis-portal-ai-assistant/customElement.js +816 -2642
  195. package/dist/components/arcgis-portal-ai-assistant/index.js +5 -0
  196. package/dist/components/arcgis-portal-ai-assistant/tools/getItemTool.d.ts +11 -0
  197. package/dist/components/arcgis-portal-ai-assistant/tools/groups.d.ts +28 -0
  198. package/dist/components/arcgis-portal-ai-assistant/tools/users.d.ts +28 -0
  199. package/dist/components/arcgis-portal-ai-assistant/types/assistantTools.d.ts +41 -3
  200. package/dist/components/arcgis-portal-ai-assistant/types/portalEntityTools.d.ts +19 -0
  201. package/dist/components/arcgis-portal-ai-assistant-diagnostics/contextUsage.d.ts +46 -0
  202. package/dist/components/arcgis-portal-ai-assistant-diagnostics/customElement.d.ts +26 -0
  203. package/dist/components/arcgis-portal-ai-assistant-diagnostics/customElement.js +46 -0
  204. package/dist/components/arcgis-portal-ai-assistant-diagnostics/index.d.ts +1 -0
  205. package/dist/components/arcgis-portal-ai-assistant-diagnostics/index.js +10 -0
  206. package/dist/components/arcgis-portal-ai-assistant-interrupt/customElement.d.ts +42 -1
  207. package/dist/components/arcgis-portal-ai-assistant-interrupt/customElement.js +49 -37
  208. package/dist/components/arcgis-portal-ai-assistant-interrupt/index.js +3 -4
  209. package/dist/components/arcgis-portal-browser/customElement.d.ts +3 -0
  210. package/dist/components/arcgis-portal-browser/customElement.js +3 -2
  211. package/dist/components/arcgis-portal-browser/index.js +1 -0
  212. package/dist/components/arcgis-portal-classification-banner/customElement.js +2 -2
  213. package/dist/components/arcgis-portal-classification-config/customElement.js +2 -2
  214. package/dist/components/arcgis-portal-classification-favorite/customElement.js +2 -2
  215. package/dist/components/arcgis-portal-classification-form-element/customElement.js +1 -1
  216. package/dist/components/arcgis-portal-delete-items/customElement.d.ts +69 -3
  217. package/dist/components/arcgis-portal-delete-items/customElement.js +437 -333
  218. package/dist/components/arcgis-portal-delete-items/index.js +1 -2
  219. package/dist/components/arcgis-portal-delete-items/types.d.ts +1 -0
  220. package/dist/components/arcgis-portal-entity-picker/customElement.d.ts +51 -5
  221. package/dist/components/arcgis-portal-entity-picker/customElement.js +204 -119
  222. package/dist/components/arcgis-portal-entity-picker/index.js +2 -0
  223. package/dist/components/arcgis-portal-field-delete/customElement.js +87 -101
  224. package/dist/components/arcgis-portal-field-delete/index.js +1 -1
  225. package/dist/components/arcgis-portal-group-badges/customElement.js +5 -5
  226. package/dist/components/arcgis-portal-group-browser/customElement.js +68 -100
  227. package/dist/components/arcgis-portal-group-browser/types.d.ts +3 -7
  228. package/dist/components/arcgis-portal-group-browser-preview/customElement.js +49 -40
  229. package/dist/components/arcgis-portal-group-browser-preview/index.js +1 -0
  230. package/dist/components/arcgis-portal-group-browser-preview-card/customElement.js +1 -4
  231. package/dist/components/arcgis-portal-group-card/customElement.js +16 -16
  232. package/dist/components/arcgis-portal-group-thumbnail/customElement.js +1 -1
  233. package/dist/components/arcgis-portal-item-badges/customElement.js +4 -4
  234. package/dist/components/arcgis-portal-item-card/customElement.d.ts +26 -10
  235. package/dist/components/arcgis-portal-item-card/customElement.js +90 -80
  236. package/dist/components/arcgis-portal-item-card/index.js +2 -1
  237. package/dist/components/arcgis-portal-item-card-sublayer-select/customElement.d.ts +102 -0
  238. package/dist/components/arcgis-portal-item-card-sublayer-select/customElement.js +181 -0
  239. package/dist/components/arcgis-portal-item-card-sublayer-select/index.d.ts +1 -0
  240. package/dist/components/arcgis-portal-item-card-sublayer-select/index.js +8 -0
  241. package/dist/components/arcgis-portal-item-card-sublayer-select/types.d.ts +22 -0
  242. package/dist/components/arcgis-portal-item-favorite/customElement.js +42 -29
  243. package/dist/components/arcgis-portal-item-preview/customElement.d.ts +263 -0
  244. package/dist/components/arcgis-portal-item-preview/customElement.js +137 -0
  245. package/dist/components/arcgis-portal-item-preview/index.d.ts +1 -0
  246. package/dist/components/arcgis-portal-item-preview/index.js +20 -0
  247. package/dist/components/arcgis-portal-item-preview/types.d.ts +14 -0
  248. package/dist/components/arcgis-portal-item-preview-copy/customElement.d.ts +215 -0
  249. package/dist/components/arcgis-portal-item-preview-copy/customElement.js +46 -0
  250. package/dist/components/arcgis-portal-item-preview-copy/index.d.ts +1 -0
  251. package/dist/components/arcgis-portal-item-preview-copy/index.js +5 -0
  252. package/dist/components/arcgis-portal-item-preview-field/customElement.d.ts +216 -0
  253. package/dist/components/arcgis-portal-item-preview-field/customElement.js +34 -0
  254. package/dist/components/arcgis-portal-item-preview-field/index.d.ts +1 -0
  255. package/dist/components/arcgis-portal-item-preview-field/index.js +6 -0
  256. package/dist/components/arcgis-portal-item-preview-sublayer/customElement.d.ts +216 -0
  257. package/dist/components/arcgis-portal-item-preview-sublayer/customElement.js +15 -0
  258. package/dist/components/arcgis-portal-item-preview-sublayer/index.d.ts +1 -0
  259. package/dist/components/arcgis-portal-item-preview-sublayer/index.js +11 -0
  260. package/dist/components/arcgis-portal-item-share-summary/customElement.d.ts +113 -0
  261. package/dist/components/arcgis-portal-item-share-summary/customElement.js +172 -0
  262. package/dist/components/arcgis-portal-item-share-summary/index.d.ts +1 -0
  263. package/dist/components/arcgis-portal-item-share-summary/index.js +5 -0
  264. package/dist/components/arcgis-portal-item-share-summary-editable/customElement.d.ts +33 -0
  265. package/dist/components/arcgis-portal-item-share-summary-editable/customElement.js +19 -0
  266. package/dist/components/arcgis-portal-item-share-summary-editable/index.d.ts +1 -0
  267. package/dist/components/arcgis-portal-item-share-summary-editable/index.js +2 -0
  268. package/dist/components/arcgis-portal-item-status-card/customElement.d.ts +82 -0
  269. package/dist/components/arcgis-portal-item-status-card/customElement.js +12 -0
  270. package/dist/components/arcgis-portal-item-status-card/index.d.ts +1 -0
  271. package/dist/components/arcgis-portal-item-status-card/index.js +4 -0
  272. package/dist/components/arcgis-portal-item-thumbnail/customElement.d.ts +1 -0
  273. package/dist/components/arcgis-portal-item-thumbnail/customElement.js +14 -14
  274. package/dist/components/arcgis-portal-item-type/customElement.d.ts +16 -14
  275. package/dist/components/arcgis-portal-item-type/customElement.js +25 -28
  276. package/dist/components/arcgis-portal-mentionable-text-area/customElement.js +61 -57
  277. package/dist/components/arcgis-portal-navigation/customElement.d.ts +6 -4
  278. package/dist/components/arcgis-portal-navigation/customElement.js +371 -374
  279. package/dist/components/arcgis-portal-navigation/index.js +1 -2
  280. package/dist/components/arcgis-portal-preview-panel/customElement.d.ts +40 -0
  281. package/dist/components/arcgis-portal-preview-panel/customElement.js +40 -0
  282. package/dist/components/arcgis-portal-preview-panel/index.d.ts +1 -0
  283. package/dist/components/arcgis-portal-preview-panel/index.js +1 -0
  284. package/dist/components/arcgis-portal-replacement-item-redirect/customElement.js +8 -8
  285. package/dist/components/arcgis-portal-review-layer-sharing/customElement.d.ts +139 -0
  286. package/dist/components/arcgis-portal-review-layer-sharing/customElement.js +593 -0
  287. package/dist/components/arcgis-portal-review-layer-sharing/index.d.ts +1 -0
  288. package/dist/components/arcgis-portal-review-layer-sharing/index.js +10 -0
  289. package/dist/components/arcgis-portal-review-layer-sharing/types.d.ts +27 -0
  290. package/dist/components/arcgis-portal-review-related-items/customElement.d.ts +333 -0
  291. package/dist/components/arcgis-portal-review-related-items/customElement.js +46 -18
  292. package/dist/components/arcgis-portal-review-related-items/index.js +2 -0
  293. package/dist/components/arcgis-portal-sublayer-type/customElement.js +13 -103
  294. package/dist/components/arcgis-portal-user-avatar/customElement.d.ts +2 -3
  295. package/dist/components/arcgis-portal-user-avatar/customElement.js +15 -16
  296. package/dist/components/arcgis-portal-user-popup/customElement.d.ts +4 -7
  297. package/dist/components/arcgis-portal-user-popup/customElement.js +128 -111
  298. package/dist/components/portal-group-browser-filters/customElement.js +15 -15
  299. package/dist/components/portal-related-items-list-item/customElement.js +16 -14
  300. package/dist/components/portal-related-items-list-item/index.js +1 -1
  301. package/dist/docs/api.json +1 -1
  302. package/dist/docs/docs.json +1 -1
  303. package/dist/docs/vscode.css-custom-data.json +1 -1
  304. package/dist/docs/vscode.html-custom-data.json +1 -1
  305. package/dist/docs/web-types.json +1 -1
  306. package/dist/index.d.ts +87 -0
  307. package/dist/index.js +305 -6
  308. package/dist/loader.js +22 -11
  309. package/dist/services/group.d.ts +17 -0
  310. package/dist/services/groups.d.ts +9 -0
  311. package/dist/services/item.d.ts +9 -0
  312. package/dist/types/item.d.ts +19 -11
  313. package/dist/types/layer.d.ts +27 -0
  314. package/dist/types/lumina.d.ts +82 -12
  315. package/dist/types/portalAssistantCurrentContext.d.ts +9 -0
  316. package/dist/types/portalEntityPicker.d.ts +3 -0
  317. package/dist/types/preact.d.ts +93 -12
  318. package/dist/types/react.d.ts +104 -12
  319. package/dist/types/services.d.ts +28 -1
  320. package/dist/types/stencil.d.ts +82 -12
  321. package/dist/types/user.d.ts +14 -10
  322. package/dist/utils/generateEmbeddings.d.ts +7 -0
  323. package/dist/utils/semanticSearch.d.ts +60 -0
  324. package/dist/utils/types.d.ts +10 -0
  325. package/package.json +14 -13
  326. package/dist/cdn/23NXHNPU.js +0 -2
  327. package/dist/cdn/24QSQLRY.js +0 -2
  328. package/dist/cdn/2CN754CY.js +0 -2
  329. package/dist/cdn/2FQKDFEE.js +0 -2
  330. package/dist/cdn/2MPQ5IWJ.js +0 -2
  331. package/dist/cdn/3CQKCUM5.js +0 -2
  332. package/dist/cdn/3EYB5GQX.js +0 -2
  333. package/dist/cdn/3FSPL34I.js +0 -170
  334. package/dist/cdn/3LEQ37YT.js +0 -68
  335. package/dist/cdn/4KTRAA2J.js +0 -2
  336. package/dist/cdn/4MUB6TL6.js +0 -2
  337. package/dist/cdn/4PRXQFCV.js +0 -2
  338. package/dist/cdn/4QFTKB6T.js +0 -2
  339. package/dist/cdn/4TSXFX3M.js +0 -2
  340. package/dist/cdn/5C5GHX4D.js +0 -2
  341. package/dist/cdn/7LMZHJZG.js +0 -2
  342. package/dist/cdn/A2SQ4EMZ.js +0 -2
  343. package/dist/cdn/AICPYLWE.js +0 -4
  344. package/dist/cdn/AXOBMX3S.js +0 -2
  345. package/dist/cdn/AZOJHVAO.js +0 -2
  346. package/dist/cdn/BYHX3UWV.js +0 -2
  347. package/dist/cdn/CD5UWSCP.js +0 -2
  348. package/dist/cdn/D2YQWKME.js +0 -135
  349. package/dist/cdn/DDBXEXOV.js +0 -2
  350. package/dist/cdn/DHMNNIXZ.js +0 -2
  351. package/dist/cdn/DLI4XKJ3.js +0 -2
  352. package/dist/cdn/DYO5P3F2.js +0 -2
  353. package/dist/cdn/E66BDC6N.js +0 -2
  354. package/dist/cdn/EEAVX4PP.js +0 -2
  355. package/dist/cdn/EMJQI4MA.js +0 -2
  356. package/dist/cdn/EY5S6ICQ.js +0 -2
  357. package/dist/cdn/FIBQAMJ3.js +0 -2
  358. package/dist/cdn/FIQZPIIK.js +0 -2
  359. package/dist/cdn/FNLBJ4ZQ.js +0 -2
  360. package/dist/cdn/GGDOGNH4.js +0 -150
  361. package/dist/cdn/GSOBDGLK.js +0 -2
  362. package/dist/cdn/GXM3XY3J.js +0 -2
  363. package/dist/cdn/HCNTXLUT.js +0 -2
  364. package/dist/cdn/I273CANO.js +0 -2
  365. package/dist/cdn/I6NVKNZJ.js +0 -2
  366. package/dist/cdn/J5FKIZAM.js +0 -2
  367. package/dist/cdn/J5NPDIZM.js +0 -2
  368. package/dist/cdn/JOUR2FB2.js +0 -3
  369. package/dist/cdn/JWBUJT43.js +0 -2
  370. package/dist/cdn/LISDTBEX.js +0 -2
  371. package/dist/cdn/LYLQCBVX.js +0 -2
  372. package/dist/cdn/MQK63FV7.js +0 -2
  373. package/dist/cdn/N4VOTJ25.js +0 -2
  374. package/dist/cdn/N5QLV56W.js +0 -2
  375. package/dist/cdn/OD5WXP7J.js +0 -2
  376. package/dist/cdn/OXPXXIWL.js +0 -2
  377. package/dist/cdn/PKA745KL.js +0 -2
  378. package/dist/cdn/PMRFXB4F.js +0 -2
  379. package/dist/cdn/PNIFJ5DQ.js +0 -2
  380. package/dist/cdn/PZDI5ZDC.js +0 -2
  381. package/dist/cdn/QROXYP6V.js +0 -2
  382. package/dist/cdn/QUOLQGKP.js +0 -2
  383. package/dist/cdn/QWHGLE3O.js +0 -2
  384. package/dist/cdn/R3PK7XOP.js +0 -2
  385. package/dist/cdn/REM3KCX6.js +0 -2
  386. package/dist/cdn/RNWICLRH.js +0 -2
  387. package/dist/cdn/RQYNPDN3.js +0 -2
  388. package/dist/cdn/S6F7U36E.js +0 -400
  389. package/dist/cdn/SMX2LEJB.js +0 -2
  390. package/dist/cdn/SVROAT3Z.js +0 -2
  391. package/dist/cdn/TBZXKKGP.js +0 -2
  392. package/dist/cdn/TNUCSWBN.js +0 -2
  393. package/dist/cdn/TOICLGFK.js +0 -2
  394. package/dist/cdn/TOTWYGB3.js +0 -2
  395. package/dist/cdn/TUUUK3VX.js +0 -2
  396. package/dist/cdn/U3KMGSVH.js +0 -2
  397. package/dist/cdn/UEP2NYJK.js +0 -2
  398. package/dist/cdn/UZP4YMTE.js +0 -2
  399. package/dist/cdn/VNU4QX7M.js +0 -41
  400. package/dist/cdn/XYMBRPC7.js +0 -2
  401. package/dist/cdn/YB3DR4VO.js +0 -2
  402. package/dist/cdn/YYTEJVBL.js +0 -2
  403. package/dist/cdn/Z3HGPBOR.js +0 -2
  404. package/dist/cdn/ZDDN7UKS.js +0 -2
  405. package/dist/cdn/ZXNF77OB.js +0 -2
  406. package/dist/chunks/functional.js +0 -9
  407. package/dist/components/arcgis-portal-ai-assistant/data/capability-registries/types.d.ts +0 -45
  408. /package/dist/cdn/{OUMTV5H5.js → KHKREBVZ.js} +0 -0
  409. /package/dist/cdn/{DAAON2UO.js → UOXUUCE7.js} +0 -0
@@ -0,0 +1,214 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
+ import { c as y } from "./runtime.js";
3
+ import { isAbortError as l } from "@arcgis/core/core/promiseUtils.js";
4
+ import { LitElement as b, createEvent as v, safeClassMap as g } from "@arcgis/lumina";
5
+ import { log as n } from "@arcgis/toolkit/log";
6
+ import { Task as h, TaskStatus as w } from "@lit/task";
7
+ import { css as m, html as o } from "lit";
8
+ import { u as T } from "./useT9n.js";
9
+ import { s as $, h as k } from "./dom.js";
10
+ import { g as S } from "./utils3.js";
11
+ import p from "@arcgis/core/layers/support/Field.js";
12
+ import { a as I, b as L, f as E, g as x } from "./layers.js";
13
+ import { r as A } from "./request.js";
14
+ import { b as f } from "./items.js";
15
+ import { a as F } from "./portal.js";
16
+ import "../components/arcgis-portal-item-preview-field/customElement.js";
17
+ function R(i) {
18
+ return ["Feature Service", "Layer Template", "Feature Collection"].includes(i.type ?? "") && !f(i).some(
19
+ (e) => ["Route Layer", "Markup", "Map Notes", "markup", "IndoorPositioningDataService"].includes(e)
20
+ );
21
+ }
22
+ function u(i, e) {
23
+ let t;
24
+ if (e.type === "Feature Service" && e.url) {
25
+ const r = new URL(e.url);
26
+ r.pathname = r.pathname.replace(/\/$/u, ""), /\/\d+$/u.test(r.pathname) || (r.pathname += `/${i.id}`), t = r.href;
27
+ }
28
+ return {
29
+ id: i.id,
30
+ title: i.title,
31
+ type: i.type,
32
+ description: i.description,
33
+ sourceJSON: i.sourceJSON,
34
+ url: t,
35
+ geometryType: i.geometryType === "table" || !i.geometryType ? "nonspatial" : i.geometryType === "esriGeometryEnvelope" ? "extent" : i.geometryType
36
+ };
37
+ }
38
+ async function Y(i, e, t) {
39
+ try {
40
+ if (t.throwIfAborted(), i.type === "Image Service") {
41
+ if (!i.url)
42
+ throw new Error("The imagery item has no service URL.");
43
+ const a = await L(e, i.url, t);
44
+ return t.throwIfAborted(), a.result ? {
45
+ result: {
46
+ sublayers: [],
47
+ serviceInfo: {
48
+ hasMultidimensions: a.result.hasMultidimensions,
49
+ sourceType: a.result.serviceSourceType === "esriImageServiceSourceTypeMosaicDataset" ? "mosaic-dataset" : void 0
50
+ }
51
+ }
52
+ } : { error: a.error ?? { code: "unhandledError" } };
53
+ }
54
+ if (!R(i))
55
+ return { result: { sublayers: [] } };
56
+ if (i.type === "Layer Template" && f(i).some((a) => a.toLowerCase() === "service template")) {
57
+ const a = await A({
58
+ url: `${F(e)}content/items/${i.id}/data`,
59
+ portal: e,
60
+ options: { signal: t, disableIdentityLookup: !0 }
61
+ });
62
+ return t.throwIfAborted(), {
63
+ result: {
64
+ sublayers: [...a.layers ?? [], ...(a.tables ?? []).map((s) => ({ ...s, type: "Table" }))].map(
65
+ (s) => {
66
+ if (s.id === void 0)
67
+ throw new Error("The layer template contains a layer without an ID.");
68
+ return u(
69
+ { ...s, id: s.id, title: s.title || s.name || "", sourceJSON: s },
70
+ i
71
+ );
72
+ }
73
+ )
74
+ }
75
+ };
76
+ }
77
+ const r = await E({ item: i, portal: e, signal: t });
78
+ return t.throwIfAborted(), r.result ? { result: { sublayers: r.result.sublayers.map((a) => u(a, i)) } } : { error: r.error ?? { code: "unhandledError" } };
79
+ } catch (r) {
80
+ if (t.aborted || l(r))
81
+ throw r;
82
+ return n("error", "portal.itemPreview", "Unable to load preview layers.", { detail: { error: r } }), {
83
+ error: {
84
+ code: x(r).messageCode === "SB_0006" ? "serviceNotExist" : "unhandledError"
85
+ }
86
+ };
87
+ }
88
+ }
89
+ async function D(i, e, t) {
90
+ try {
91
+ t.throwIfAborted();
92
+ const r = i.url ? await I(e, i.url, t) : void 0;
93
+ if (t.throwIfAborted(), r && !r.result)
94
+ return { error: r.error ?? { code: "unhandledError" } };
95
+ const a = r?.result ?? i.sourceJSON ?? {}, s = (a.fields ?? i.sourceJSON?.fields ?? []).map((c) => {
96
+ if (!c.name || !c.type)
97
+ throw new Error("The layer returned a field without a name or type.");
98
+ if (c.type === "esriFieldTypeBoolean" || c.type === "boolean")
99
+ return { name: c.name, alias: c.alias ?? c.name, type: "boolean" };
100
+ const d = p.fromJSON(c);
101
+ if (!(d instanceof p))
102
+ throw new Error("The layer returned an invalid field definition.");
103
+ return d;
104
+ });
105
+ return {
106
+ result: {
107
+ ...i,
108
+ description: a.description ?? i.description,
109
+ fields: s,
110
+ editingInfo: a.editingInfo ?? i.sourceJSON?.editingInfo
111
+ }
112
+ };
113
+ } catch (r) {
114
+ if (t.aborted || l(r))
115
+ throw r;
116
+ return n("error", "portal.itemPreview", "Unable to read preview layer details.", { detail: { error: r } }), { error: { code: "unhandledError" } };
117
+ }
118
+ }
119
+ async function U(i, e, t) {
120
+ e.throwIfAborted();
121
+ const { default: r } = await import("@arcgis/core/layers/FeatureLayer.js");
122
+ e.throwIfAborted();
123
+ const a = new r({ url: i, apiKey: t ?? void 0 });
124
+ try {
125
+ return await a.load({ signal: e }), e.throwIfAborted(), a;
126
+ } catch (s) {
127
+ throw a.destroy(), s;
128
+ }
129
+ }
130
+ const z = m`:host{display:block;color:var(--calcite-color-text-1);font-size:var(--calcite-font-size--1);line-height:1.35}.heading{display:flex;align-items:center;margin:0;padding:1rem 1rem .5rem;background:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size--1);font-weight:var(--calcite-font-weight-medium)}calcite-tab-nav{padding-inline:1rem;background:var(--calcite-color-foreground-1)}.fields{background:var(--calcite-color-foreground-1)}.fields,.overview{margin-block-start:-.5rem}calcite-block{margin:0}.overview{display:flex;flex-direction:column;gap:1rem;padding:2rem 1.25rem;background:var(--calcite-color-background)}.detail>h4{margin:0 0 .25rem;color:var(--calcite-color-text-3);font-size:var(--calcite-font-size--2);font-weight:var(--calcite-font-weight-medium)}.detail>p{margin:0;overflow-wrap:anywhere}.empty,.empty-message{color:var(--calcite-color-text-1)}.empty-message{margin:0;padding:1rem}.error{padding:1rem}`, q = m`.rich-text{overflow-wrap:anywhere;a{color:var(--calcite-color-text-link)}img,video{max-inline-size:100%;block-size:auto}table{display:block;max-inline-size:100%;overflow:auto}}.description{overflow:auto;padding-block-end:.25rem;*{max-inline-size:100%;font-size:.875rem!important}table{display:table;inline-size:100%;background:var(--calcite-color-foreground-1);border-collapse:collapse;border-spacing:0;text-align:start;border:1px solid var(--calcite-color-border-2)}th,td{padding:.5rem;text-align:start;font-weight:var(--calcite-font-weight-light);border-inline:1px solid var(--calcite-color-border-2)}tr,thead{border-block-end:1px solid var(--calcite-color-border-2)}tfoot{border-block-start:1px solid var(--calcite-color-border-2)}tr:last-child{border-block-end:none}}`;
131
+ class C extends b {
132
+ constructor() {
133
+ super(...arguments), this.messages = T({ name: "portal-item-preview", blocking: !0 }), this.statisticsRequestActive = !1, this.statisticsTask = new h(this, {
134
+ autoRun: !1,
135
+ task: async (e, { signal: t }) => {
136
+ if (!this.layer?.url)
137
+ throw new Error("Field statistics require a service layer URL.");
138
+ const r = await U(this.layer.url, t, this.item?.apiKey);
139
+ return t.aborted && (r.destroy(), t.throwIfAborted()), r;
140
+ },
141
+ onComplete: (e) => {
142
+ this.statisticsLayer = e, this.statisticsRequestActive = !1;
143
+ },
144
+ onError: (e) => {
145
+ this.statisticsRequestActive = !1, l(e) || n("error", this, "Unable to load the field statistics layer.", { detail: { error: e } });
146
+ }
147
+ }), this.detailTask = new h(this, {
148
+ args: () => [this.item, this.portal, this.portal?.user, this.layer],
149
+ task: async ([, e, , t], { signal: r }) => (this.releaseStatisticsLayer(), !e || !t ? { error: { code: "unhandledError" } } : await D(t, e, r)),
150
+ onError: (e) => {
151
+ l(e) || n("error", this, "Unable to load preview layer details.", { detail: { error: e } });
152
+ }
153
+ }), this.tab = "fields", this.showFieldStatistics = !1, this.arcgisInternalUIAction = v();
154
+ }
155
+ static {
156
+ this.properties = { tab: 16, item: 0, portal: 0, layer: 0, externalLinkHandler: 0, showFieldStatistics: 5 };
157
+ }
158
+ static {
159
+ this.styles = [q, z];
160
+ }
161
+ connectedCallback() {
162
+ super.connectedCallback(), this.hasUpdated && this.detailTask.run();
163
+ }
164
+ willUpdate(e) {
165
+ e.has("showFieldStatistics") && !this.showFieldStatistics && this.releaseStatisticsLayer(), e.has("layer") && (this.tab = "fields"), this.language !== this.messages._lang && (this.language = this.messages._lang, this.dateFormatter = new Intl.DateTimeFormat(this.language, {
166
+ year: "numeric",
167
+ month: "short",
168
+ day: "numeric"
169
+ }));
170
+ }
171
+ disconnectedCallback() {
172
+ super.disconnectedCallback(), this.detailTask.abort(), this.releaseStatisticsLayer();
173
+ }
174
+ changeTab(e) {
175
+ this.tab = e, this.arcgisInternalUIAction.emit({ action: "click", category: "panel action", details: `sublayer ${e}` });
176
+ }
177
+ date(e) {
178
+ return e == null ? "" : this.dateFormatter.format(new Date(e));
179
+ }
180
+ releaseStatisticsLayer() {
181
+ this.statisticsTask.abort(), this.statisticsRequestActive = !1, this.statisticsLayer?.destroy(), this.statisticsLayer = void 0;
182
+ }
183
+ requestStatistics() {
184
+ !this.showFieldStatistics || this.item?.type !== "Feature Service" || !this.layer?.url || this.statisticsLayer || this.statisticsRequestActive || (this.statisticsRequestActive = !0, this.statisticsTask.run());
185
+ }
186
+ renderDetail(e, t, r, a = !1) {
187
+ return o`<div class="detail"><h4>${e}</h4>${a && t ? o`<div class="rich-text description" .innerHTML=${$(k(t)) ?? ""} @click=${this.externalLinkHandler}></div>` : o`<p class=${g({ empty: !t })}>${t || r}</p>`}</div>`;
188
+ }
189
+ renderContent(e) {
190
+ const { messages: t } = this, r = e.fields.filter((s) => s.name !== "OBJECTID"), a = S({ type: e.type, geometry: e.geometryType });
191
+ return o`<calcite-tabs layout=center><calcite-tab-nav slot=title-group><calcite-tab-title tab=fields .selected=${this.tab === "fields"} @calciteTabsActivate=${() => this.changeTab("fields")}>${t.fields}</calcite-tab-title><calcite-tab-title tab=overview .selected=${this.tab === "overview"} @calciteTabsActivate=${() => this.changeTab("overview")}>${t.overview}</calcite-tab-title></calcite-tab-nav><calcite-tab tab=fields .selected=${this.tab === "fields"}><div class="fields">${r.length ? r.map((s) => o`<arcgis-portal-item-preview-field .field=${s} .showStatistics=${this.showFieldStatistics && this.item?.type === "Feature Service" && !!e.url && s.type !== "boolean"} .layer=${this.statisticsLayer} .failed=${this.statisticsTask.status === w.ERROR} @arcgisInternalRequestStatistics=${this.requestStatistics}></arcgis-portal-item-preview-field>`) : o`<p class="empty-message">${t.noFields}</p>`}</div></calcite-tab><calcite-tab tab=overview .selected=${this.tab === "overview"}><div class="overview">${this.renderDetail(a.isGeometry ? t.geometryTypeTitle : t.layerTypeTitle, t.layerTypes[a.type])}${this.renderDetail(t.description, e.description, t.noDescription, !0)}${!this.portal?.isPortal && o`${this.renderDetail(t.dataUpdated, this.date(e.editingInfo?.dataLastEditDate))}${this.renderDetail(t.schemaUpdated, this.date(e.editingInfo?.schemaLastEditDate))}` || ""}${e.url && o`<arcgis-portal-item-preview-copy .heading=${t.url} .label=${t.copyURL} .text=${e.url} section=layers></arcgis-portal-item-preview-copy>` || ""}</div></calcite-tab></calcite-tabs>`;
192
+ }
193
+ renderError(e = !1) {
194
+ return o`<div class="error"><calcite-notice open icon kind=warning scale=s width=full><div slot=title>${this.messages.sublayerErrorTitle}</div><div slot=message>${e ? this.messages.noServiceMessage : this.messages.sublayerErrorMessage}</div><calcite-button slot=link appearance=transparent @click=${() => {
195
+ this.detailTask.run();
196
+ }}>${this.messages.retry}</calcite-button></calcite-notice></div>`;
197
+ }
198
+ render() {
199
+ const e = () => o`<calcite-loader .label=${this.messages.loadingSublayer} scale=s></calcite-loader>`;
200
+ return o`<h3 class="heading"><arcgis-portal-sublayer-type .name=${this.layer?.title} .geometry=${this.layer?.geometryType} .type=${this.layer?.type} hide-type scale=s></arcgis-portal-sublayer-type></h3>${this.detailTask.render({
201
+ initial: e,
202
+ pending: e,
203
+ error: () => this.renderError(),
204
+ complete: ({ result: t, error: r }) => t ? this.renderContent(t) : this.renderError(r?.code === "serviceNotExist")
205
+ })}`;
206
+ }
207
+ }
208
+ y("arcgis-portal-item-preview-sublayer", C);
209
+ export {
210
+ C as A,
211
+ Y as f,
212
+ R as h,
213
+ q as s
214
+ };
@@ -0,0 +1,81 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
+ import { c as n } from "./runtime.js";
3
+ import { css as o, html as i } from "lit";
4
+ import { LitElement as c, createEvent as l, safeClassMap as d } from "@arcgis/lumina";
5
+ import { createRef as m, ref as p } from "lit/directives/ref.js";
6
+ import "../components/arcgis-portal-item-card/customElement.js";
7
+ import { u } from "./useT9n.js";
8
+ import { g } from "./url.js";
9
+ function h(a) {
10
+ switch (a) {
11
+ case "needEditableLayers":
12
+ return {
13
+ i18nKey: "sharingPDCEnabled",
14
+ kind: "info"
15
+ };
16
+ case "needPubliclyEditableLayers":
17
+ case "needDataCollectionLayers":
18
+ return {
19
+ i18nKey: "pdc",
20
+ kind: "danger"
21
+ };
22
+ case "premiumLayers":
23
+ return {
24
+ i18nKey: "premium",
25
+ kind: "info"
26
+ };
27
+ case "notEditableLayers":
28
+ return {
29
+ i18nKey: "noPermission",
30
+ kind: "danger"
31
+ };
32
+ case "needAuthentication":
33
+ return {
34
+ i18nKey: "needsAuthentication",
35
+ kind: "danger"
36
+ };
37
+ case "needsShareLevelUpdateLayers":
38
+ return null;
39
+ default:
40
+ return null;
41
+ }
42
+ }
43
+ const f = o`.status-banner{display:flex;align-items:center;padding:.25rem 1rem;border-block-end:1px solid var(--calcite-color-border-2);color:var(--calcite-color-text-2);font-size:.75rem}.status-banner>calcite-icon{margin-inline-end:.5rem;color:var(--calcite-color-status-danger)}.status-banner>span{margin-block-start:.125rem}.status-banner--info>calcite-icon{color:var(--calcite-color-status-info)}.open-item{margin-inline-start:.25rem;padding-inline-start:.25rem;border-inline-start:1px solid var(--calcite-color-border-1)}`;
44
+ class b extends c {
45
+ constructor() {
46
+ super(...arguments), this.messages = u({ blocking: !0 }), this.card = m(), this.previewed = !1, this.arcgisItemBrowserCardPreview = l();
47
+ }
48
+ static {
49
+ this.properties = { item: 0, state: 1, portal: 0, previewed: 5 };
50
+ }
51
+ static {
52
+ this.styles = f;
53
+ }
54
+ async restoreFocus() {
55
+ await this.card.value?.restoreFocus();
56
+ }
57
+ openItemDetails(e) {
58
+ e.preventDefault(), e.stopPropagation();
59
+ const t = this.item?.id;
60
+ if (!t)
61
+ return;
62
+ const r = `${g({ portal: this.portal })}/item.html?id=${t}`;
63
+ window.open(r, "_blank", "noopener");
64
+ }
65
+ render() {
66
+ if (!this.item || !this.portal || !this.messages._lang)
67
+ return;
68
+ const e = h(this.state), t = e?.kind === "info", r = e ? this.messages.status?.[e.i18nKey] : void 0;
69
+ return i`<arcgis-portal-item-card .item=${this.item} .portal=${this.portal} preview=top .previewed=${this.previewed} @arcgisItemBrowserCardPreview=${(s) => {
70
+ s.stopPropagation(), this.arcgisItemBrowserCardPreview.emit(s.detail);
71
+ }} show-owner show-date-updated show-item-type show-summary show-badges ${p(this.card)}>${e && r && i`<div slot=content-top class=${d({
72
+ "status-banner": !0,
73
+ "status-banner--info": t
74
+ })}><calcite-icon .icon=${t ? "information" : "exclamationMarkTriangle"} scale=s></calcite-icon><span>${r.notice}</span></div>` || ""}<div slot=actions-end class="open-item"><calcite-button scale=s appearance=transparent kind=neutral @click=${(s) => this.openItemDetails(s)}>${this.messages.goToItem}</calcite-button></div></arcgis-portal-item-card>`;
75
+ }
76
+ }
77
+ n("arcgis-portal-item-status-card", b);
78
+ export {
79
+ b as A,
80
+ h as g
81
+ };
@@ -1,6 +1,6 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
2
  import { css as e } from "lit";
3
- const i = e`.item{display:block;color:var(--calcite-color-text-1)}.item__content{display:flex;flex-direction:column;min-width:0;margin-inline-start:var(--calcite-spacing-unit);overflow-wrap:anywhere}.item__title{color:var(--calcite-color-text-1);font-size:var(--calcite-font-size--1);text-decoration:underline}.item__details{display:flex;flex-wrap:wrap;align-items:center;gap:.25rem;color:var(--calcite-color-text-2);font-size:var(--calcite-font-size--2)}.item__details-owner{display:inline-block;text-decoration:none}.item__type{font-weight:var(--calcite-font-weight-medium)}.item__content-end{display:flex;align-items:center;gap:.5rem}.item__access{display:flex;align-items:center;color:var(--calcite-color-text-2);font-size:.75rem}.item__access-icon{margin-inline-end:.375rem}`;
3
+ const i = e`.item{display:block;color:var(--calcite-color-text-1)}.item__content{display:flex;flex-direction:column;min-width:0;margin-inline-start:var(--calcite-spacing-unit);overflow-wrap:anywhere}.item__title{color:var(--calcite-color-text-1);font-size:var(--calcite-font-size--1);text-decoration:underline}.item__details{display:flex;flex-wrap:wrap;align-items:center;gap:.25rem;color:var(--calcite-color-text-2);font-size:var(--calcite-font-size--2)}.item__details-owner{display:inline-block;text-decoration:none}.item__type{font-weight:var(--calcite-font-weight-medium)}.item__content-end{display:flex;align-items:center;gap:.5rem}.item__status-icon{color:var(--calcite-color-text-2)}.item__access{display:flex;align-items:center;gap:var(--calcite-spacing-unit);color:var(--calcite-color-text-2);padding:7px;border:1px solid var(--calcite-color-border-1);border-radius:1rem}`;
4
4
  export {
5
5
  i as s
6
6
  };
@@ -1,6 +1,6 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
2
  import { i } from "./functionalities.js";
3
- import { a, g as c } from "./url.js";
3
+ import { a, b as c } from "./url.js";
4
4
  function y(e) {
5
5
  return a(e.restUrl);
6
6
  }
@@ -87,12 +87,12 @@ function k(e) {
87
87
  }
88
88
  export {
89
89
  y as a,
90
- m as b,
90
+ S as b,
91
91
  s as c,
92
92
  H as d,
93
- P as e,
94
- u as f,
95
- S as g,
93
+ u as e,
94
+ m as f,
95
+ P as g,
96
96
  w as h,
97
97
  T as i,
98
98
  k as n
@@ -1,42 +1,42 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import o from "@arcgis/core/request.js";
3
- import { f as n, r as i } from "./request.js";
2
+ import i from "@arcgis/core/request.js";
3
+ import { f as n, r as u } from "./request.js";
4
4
  import { a } from "./portal.js";
5
- import { a as r } from "./requests.js";
6
- async function p(e) {
5
+ import { c as r } from "./requests.js";
6
+ async function m(e) {
7
7
  const s = `${e.restUrl}/portals/${e.id}/approvedApps`;
8
8
  return await r(s, { query: { returnAllApps: !1 } });
9
9
  }
10
- async function m(e) {
10
+ async function y(e) {
11
11
  const s = `${e.restUrl}/portals/self/subscriptionInfo`, { result: t } = await r(s);
12
12
  return t?.orgCapabilities || [];
13
13
  }
14
- async function y(e) {
15
- const s = `${e.restUrl}/portals/self/settings`, { result: t } = await r(s);
16
- return t;
14
+ async function d(e, s) {
15
+ const t = `${e.restUrl}/portals/self/settings`, { result: o } = await r(t, s);
16
+ return o;
17
17
  }
18
- async function d(e) {
18
+ async function w(e) {
19
19
  const s = `${e.restUrl}/portals/self/servers`;
20
20
  return (await r(s))?.result?.servers || [];
21
21
  }
22
- async function u(e) {
22
+ async function l(e) {
23
23
  const s = `${e.restUrl}/portals/self/signinSettings`;
24
24
  return (await r(s)).result || {};
25
25
  }
26
- async function w(e) {
27
- return e?.user ? (await u(e))?.blockedApps || [] : [];
26
+ async function $(e) {
27
+ return e?.user ? (await l(e))?.blockedApps || [] : [];
28
28
  }
29
29
  async function S(e) {
30
30
  return (await n({
31
- requester: async () => await o(`${a(e)}portals/self/userDefaultSettings`, { query: { f: "json" } }),
31
+ requester: async () => await i(`${a(e)}portals/self/userDefaultSettings`, { query: { f: "json" } }),
32
32
  key: "memberDefaults",
33
33
  id: e.id
34
34
  })).data;
35
35
  }
36
- async function $(e) {
36
+ async function b(e) {
37
37
  try {
38
38
  return { result: await n({
39
- requester: async () => await i({
39
+ requester: async () => await u({
40
40
  url: `${a(e)}portals/self/resources/home.page.json`,
41
41
  portal: e
42
42
  }),
@@ -48,12 +48,12 @@ async function $(e) {
48
48
  }
49
49
  }
50
50
  export {
51
- $ as a,
52
- S as b,
53
- p as c,
54
- m as d,
55
- u as e,
51
+ S as a,
52
+ m as b,
53
+ y as c,
54
+ l as d,
55
+ w as e,
56
56
  d as f,
57
- w as g,
58
- y as h
57
+ b as g,
58
+ $ as h
59
59
  };
@@ -0,0 +1,61 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
+ import e from "zod";
3
+ const l = ["item", "group", "user"], u = e.object({
4
+ query: e.string().trim().min(1),
5
+ initialScope: e.enum(["all", "myContent", "myGroups", "myOrganization"]).optional(),
6
+ scopeSelectionDisabled: e.boolean().optional()
7
+ }), m = e.object({
8
+ entityType: e.enum(l),
9
+ searchTerm: e.string().trim().min(1).optional().describe("Suggested search text from the unresolved name or title. Omit when no search text is known."),
10
+ picker: u.optional().describe(
11
+ "Picker settings returned by a companion tool. Copy them unchanged; put the user's editable search text in searchTerm, not query. These filters do not establish operation eligibility."
12
+ )
13
+ }), y = m.extend({
14
+ kind: e.literal("portal-entity-selection"),
15
+ portalContext: e.object({
16
+ portalUrl: e.string().min(1),
17
+ username: e.string().min(1)
18
+ }).optional()
19
+ }), o = e.string().trim().min(1), a = e.string().trim().min(1), c = e.discriminatedUnion("entityType", [
20
+ e.object({ entityType: e.literal("item"), id: a, label: o }),
21
+ e.object({ entityType: e.literal("group"), id: a, label: o }),
22
+ e.object({
23
+ entityType: e.literal("user"),
24
+ id: a.optional(),
25
+ label: o,
26
+ username: e.string().trim().min(1)
27
+ })
28
+ ]);
29
+ function d(n) {
30
+ return l.filter((t) => n?.[t] !== !1);
31
+ }
32
+ function b(n) {
33
+ const t = y.safeParse(n);
34
+ return t.success ? t.data : void 0;
35
+ }
36
+ function g(n) {
37
+ const { entity: t, entityType: i } = n, r = i === "user" ? {
38
+ entityType: i,
39
+ id: t.id || void 0,
40
+ label: t.fullName || t.username,
41
+ username: t.username
42
+ } : { entityType: i, id: t.id, label: t.title || t.id }, s = c.safeParse(r);
43
+ return s.success ? s.data : void 0;
44
+ }
45
+ function h(n, t) {
46
+ if (typeof n == "string")
47
+ try {
48
+ const i = JSON.parse(n), r = c.safeParse(i);
49
+ return r.success && r.data.entityType === t ? r.data : void 0;
50
+ } catch {
51
+ return;
52
+ }
53
+ }
54
+ export {
55
+ c as a,
56
+ d as b,
57
+ b as g,
58
+ m as p,
59
+ h as r,
60
+ g as t
61
+ };
@@ -0,0 +1,33 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
+ function u(e) {
3
+ return !e || !(e instanceof HTMLElement) ? null : e;
4
+ }
5
+ async function c(e) {
6
+ if (e) {
7
+ if (e.restoreFocus) {
8
+ await e.restoreFocus();
9
+ return;
10
+ }
11
+ if (e.setFocus) {
12
+ await e.setFocus();
13
+ return;
14
+ }
15
+ e.focus?.();
16
+ }
17
+ }
18
+ function t(e) {
19
+ let o = null;
20
+ const r = async (n = {}) => {
21
+ e.onClose(), n.restoreFocus && await c(o);
22
+ };
23
+ return { handlePreview: (n, s) => {
24
+ if (!n?.id) {
25
+ r();
26
+ return;
27
+ }
28
+ o = u(s), e.onOpen({ preview: n });
29
+ }, closePreview: r };
30
+ }
31
+ export {
32
+ t as c
33
+ };
@@ -1,8 +1,8 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
2
  import { a as p } from "./functionalities.js";
3
- import { g as y } from "./groups2.js";
4
- import { g as l } from "./url.js";
5
- import { a as O, b as g } from "./portal2.js";
3
+ import { e as y } from "./groups.js";
4
+ import { b as l } from "./url.js";
5
+ import { g as O, a as g } from "./portal2.js";
6
6
  import { c as R, h as d, d as m } from "./portal.js";
7
7
  const f = '-typekeywords:("MapAreaPackage") -type:("Map Area" OR "Indoors Map Configuration" OR "Code Attachment")';
8
8
  async function b(e) {
@@ -30,7 +30,7 @@ async function b(e) {
30
30
  r = n(c, r);
31
31
  });
32
32
  } else u && s.push(u);
33
- s.forEach((a) => {
33
+ if (s.forEach((a) => {
34
34
  r = n(a, r);
35
35
  }), e.featuredGroups?.forEach((a) => {
36
36
  if ("id" in a && a.id) {
@@ -40,15 +40,15 @@ async function b(e) {
40
40
  const i = `(${Object.entries(a).map((c) => `${c[0]}:"${c[1]}"`).join(" ")})`;
41
41
  r = n(i, r, !0);
42
42
  }
43
- });
44
- try {
45
- (await g(e))?.groups?.forEach((o) => {
46
- const i = `id:${o}`;
47
- r = n(i, r);
48
- });
49
- } catch (a) {
50
- console.warn("Error fetching member defaults:", a);
51
- }
43
+ }), e.user)
44
+ try {
45
+ (await g(e))?.groups?.forEach((o) => {
46
+ const i = `id:${o}`;
47
+ r = n(i, r);
48
+ });
49
+ } catch (a) {
50
+ console.warn("Error fetching member defaults:", a);
51
+ }
52
52
  return r.length > 0 ? `(${r.join(" OR ")})` : "";
53
53
  }
54
54
  function n(e, t, r) {