@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,137 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
+ import { c as $ } from "../../chunks/runtime.js";
3
+ import { isAbortError as v } from "@arcgis/core/core/promiseUtils.js";
4
+ import { log as b } from "@arcgis/toolkit/log";
5
+ import { Task as w, TaskStatus as c } from "@lit/task";
6
+ import { LitElement as k, createEvent as l, safeClassMap as L, nothing as d } from "@arcgis/lumina";
7
+ import { slotChangeHasContent as h } from "@arcgis/toolkit/dom/slots";
8
+ import { createRef as m, ref as p } from "lit/directives/ref.js";
9
+ import { css as x, html as r } from "lit";
10
+ import { u as I } from "../../chunks/useT9n.js";
11
+ import { s as u } from "../../chunks/dom.js";
12
+ import { g, b as C } from "../../chunks/items.js";
13
+ import "../arcgis-portal-item-preview-copy/customElement.js";
14
+ import { h as y, f as E, s as S } from "../../chunks/portal-item-preview-sublayer.js";
15
+ const A = x`:host{display:flex;flex-direction:column;block-size:100%;min-block-size:0;min-inline-size:0;background:var(--calcite-color-background)}calcite-panel{flex:1;min-block-size:0}.header{margin-inline-start:.75rem}calcite-accordion{--calcite-accordion-item-header-background-color: var(--calcite-color-foreground-1);--calcite-accordion-item-content-space: 0}calcite-accordion-item{--calcite-internal-accordion-item-padding: 1rem;border-block-end:1px solid var(--calcite-color-border-2)}.section{padding:1rem;background:var(--calcite-color-background);font-size:var(--calcite-font-size--1);line-height:1.35}.section:not(.rich-text){display:flex;flex-direction:column;gap:1rem}arcgis-portal-item-favorite{padding-block-start:.5rem}.detail>h4{margin:0 0 .25rem;font-size:var(--calcite-font-size--2);font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-text-3)}.badges:has(arcgis-portal-item-badges[empty]){display:none}.footer{display:grid;grid-template-columns:minmax(0,1fr);gap:.5rem;inline-size:100%}[hidden]{display:none!important}.header>h2{margin:0;overflow-wrap:anywhere;font-size:var(--calcite-font-size-0);font-weight:var(--calcite-font-weight-medium);line-height:1.375}.detail>p,p.section{margin:0;overflow-wrap:anywhere}.empty{color:var(--calcite-color-text-1)}.layers{margin:0;padding:0;list-style:none}.layer{border-block-end:1px solid var(--calcite-color-border-2);overflow-wrap:anywhere}.layer-button{display:flex;align-items:center;justify-content:space-between;gap:.5rem;box-sizing:border-box;inline-size:100%;padding:.75rem 1rem;border:0;background:var(--calcite-color-foreground-1);color:var(--calcite-color-text-1);font:inherit;text-align:start;cursor:pointer}.layer-button:hover{background:var(--calcite-color-foreground-2)}.layer-button:focus-visible{outline:2px solid var(--calcite-color-brand);outline-offset:-2px}.matched{display:block;margin-block-start:.25rem;color:var(--calcite-color-text-2);font-size:var(--calcite-font-size--2)}`, f = ["bytes", "kilobytes", "megabytes", "gigabytes", "terabytes"];
16
+ class T extends k {
17
+ constructor() {
18
+ super(...arguments), this.messages = I({ blocking: !0 }), this.panel = m(), this.accordion = m(), this.layersTask = new w(this, {
19
+ args: () => {
20
+ const t = this.portal ?? this.item?.portal;
21
+ return [this.item, t, t?.user];
22
+ },
23
+ task: async ([t, e], { signal: i }) => !t || !y(t) && t.type !== "Image Service" ? { result: { sublayers: [] } } : e ? await E(t, e, i) : { error: { code: "unhandledError" } },
24
+ onError: (t) => {
25
+ v(t) || b("error", this, "Unable to load preview layers.", { detail: { error: t } });
26
+ }
27
+ }), this.handleExternalLink = (t) => {
28
+ const e = t.target instanceof Element ? t.target.closest("a") : null;
29
+ if (!e?.href)
30
+ return;
31
+ const i = new URL(e.href);
32
+ i.host === window.location.host || ["arcgis.com", "esri.com"].some((a) => i.hostname === a || i.hostname.endsWith(`.${a}`)) || this.arcgisExternalLink.emit({ href: i.href }).defaultPrevented && t.preventDefault();
33
+ }, this.hasFooter = !1, this.hasSublayerFooter = !1, this.showHosted = !1, this.matchedSublayerIds = [], this.showFieldStatistics = !1, this.arcgisClose = l(), this.arcgisExternalLink = l({ cancelable: !0 }), this.arcgisInternalUIAction = l(), this.arcgisSublayerChange = l();
34
+ }
35
+ static {
36
+ this.properties = { hasFooter: 16, hasSublayerFooter: 16, selectedLayer: 16, item: 0, portal: 0, user: 0, groups: 0, userGroups: 0, showHosted: 5, matchedSublayerIds: 0, showFieldStatistics: 5 };
37
+ }
38
+ static {
39
+ this.styles = [S, A];
40
+ }
41
+ async setFocus() {
42
+ await this.updateComplete, await this.panel.value?.setFocus();
43
+ }
44
+ connectedCallback() {
45
+ super.connectedCallback(), this.hasUpdated && this.layersTask.run();
46
+ }
47
+ willUpdate(t) {
48
+ (t.has("item") || t.has("portal")) && this.selectedLayer && (this.selectedLayer = void 0, this.layerOpener = void 0, this.arcgisSublayerChange.emit(null));
49
+ const e = this.messages._lang;
50
+ e !== this.formatLanguage && (this.formatLanguage = e, this.dateFormatter = new Intl.DateTimeFormat(e, { year: "numeric", month: "short", day: "numeric" }), this.numberFormatter = new Intl.NumberFormat(e), this.sizeFormatter = new Intl.NumberFormat(e, { maximumFractionDigits: 1 }));
51
+ }
52
+ updated(t) {
53
+ if (t.has("item"))
54
+ for (const e of this.accordion.value?.querySelectorAll("calcite-accordion-item") ?? [])
55
+ e.expanded = e.dataset.section === "overview";
56
+ }
57
+ disconnectedCallback() {
58
+ super.disconnectedCallback(), this.layersTask.abort();
59
+ }
60
+ async openLayer(t, e) {
61
+ this.layerOpener = e, this.selectedLayer = t, this.arcgisSublayerChange.emit(t), this.arcgisInternalUIAction.emit({ action: "click", category: "panel action", details: "sublayer" }), await this.setFocus();
62
+ }
63
+ async backToItem() {
64
+ this.selectedLayer = void 0, this.arcgisSublayerChange.emit(null), await this.updateComplete, this.layerOpener?.focus();
65
+ }
66
+ closePreview() {
67
+ this.selectedLayer && (this.selectedLayer = void 0, this.arcgisSublayerChange.emit(null)), this.arcgisInternalUIAction.emit({ action: "close panel", category: "panel action" }), this.arcgisClose.emit();
68
+ }
69
+ async handleAccordionChange(t) {
70
+ if (this.arcgisInternalUIAction.emit({
71
+ action: t.type === "calciteAccordionItemExpand" ? "expand" : "collapse",
72
+ category: "panel action",
73
+ details: t.currentTarget.dataset.section
74
+ }), t.type === "calciteAccordionItemExpand") {
75
+ const e = t.currentTarget, i = this.item;
76
+ await new Promise((a) => requestAnimationFrame(() => a())), e.isConnected && e.expanded && i === this.item && !this.selectedLayer && e.scrollIntoView({ behavior: "smooth", block: "nearest" });
77
+ }
78
+ }
79
+ date(t) {
80
+ return t == null ? "" : this.dateFormatter.format(new Date(t));
81
+ }
82
+ fileSize(t) {
83
+ const e = Math.min(Math.floor(Math.log(Math.max(t, 1)) / Math.log(1024)), f.length - 1);
84
+ return `${this.sizeFormatter.format(t / 1024 ** e)} ${this.messages.fileSizeUnits[f[e]]}`;
85
+ }
86
+ renderDetail(t, e, i, a = !1) {
87
+ return r`<div class="detail"><h4>${t}</h4>${a && e ? r`<div class="rich-text" .innerHTML=${u(e) ?? ""} @click=${this.handleExternalLink}></div>` : r`<p class=${L({ empty: !e })}>${e || i}</p>`}</div>`;
88
+ }
89
+ renderOverview(t, e, i) {
90
+ const { messages: a } = this, s = g(t).groupCategories ?? [];
91
+ return r`<calcite-accordion-item data-section=overview .heading=${a.overview} heading-level=3 expanded @calciteAccordionItemExpand=${this.handleAccordionChange} @calciteAccordionItemCollapse=${this.handleAccordionChange}><div class="section"><slot name=summary-top></slot>${this.renderDetail(a.summary, t.snippet, a.noSummary)}${e && r`<div class="detail badges"><h4>${a.itemStatus}</h4><arcgis-portal-item-badges .item=${t} .portal=${e} .user=${i} scale=s width=full show-tooltips></arcgis-portal-item-badges></div><div class="detail"><h4>${a.owner}</h4><slot name=owner><arcgis-portal-user-popup .item=${t} .portal=${e} scale=s></arcgis-portal-user-popup></slot></div><div class="detail"><h4>${a.shared}</h4><arcgis-portal-item-share-summary .item=${t} .portal=${e} .groups=${this.groups} .userGroups=${this.userGroups} auto-fetch-groups show-hover-text></arcgis-portal-item-share-summary></div>` || ""}${this.renderDetail(a.updated, this.date(t.modified))}${s.length > 0 && r`<div class="detail"><h4>${a.groupCategories}</h4><calcite-chip-group .label=${a.groupCategories}>${s.map((o) => r`<calcite-chip .label=${o.replace("/Categories/", "")} appearance=outline-fill scale=s>${o.replace("/Categories/", "")}</calcite-chip>`)}</calcite-chip-group></div>` || ""}${e && i && r`<arcgis-portal-item-favorite .item=${t} .portal=${e} .user=${i} width=full @arcgisItemFavoriteUpdate=${(o) => this.arcgisInternalUIAction.emit({
92
+ action: "click",
93
+ category: "panel action",
94
+ details: o.detail.favorite ? "add to fav" : "remove from fav"
95
+ })}></arcgis-portal-item-favorite>` || ""}</div></calcite-accordion-item>`;
96
+ }
97
+ renderDetails(t) {
98
+ const { messages: e } = this, i = g(t), a = i.subInfo ?? 0;
99
+ return r`<calcite-accordion-item data-section=details .heading=${e.details} heading-level=3 @calciteAccordionItemExpand=${this.handleAccordionChange} @calciteAccordionItemCollapse=${this.handleAccordionChange}><div class="section">${this.renderDetail(e.created, this.date(t.created))}${this.renderDetail(e.viewCount, this.numberFormatter.format(t.numViews ?? i.numViews ?? 0))}${t.type === "Dashboard" && this.renderDetail(e.dashboardViews, C(t).includes("Mobile") ? e.dashboardMobile : e.dashboardDesktop) || ""}${!!i.size && this.renderDetail(e.fileSize, this.fileSize(Math.max(0, i.size - a))) || ""}${!!a && this.renderDetail(e.attachmentsSize, this.fileSize(a)) || ""}<arcgis-portal-item-preview-copy .heading=${e.id} .text=${t.id ?? ""} .label=${e.copyID}></arcgis-portal-item-preview-copy>${t.url && r`<arcgis-portal-item-preview-copy .heading=${e.url} .text=${t.url} .label=${e.copyURL}></arcgis-portal-item-preview-copy>` || ""}${this.renderDetail(e.credits, t.accessInformation, e.noCredits)}${this.renderDetail(e.termsOfUse, t.licenseInfo, e.noTermsOfUse, !0)}</div></calcite-accordion-item>`;
100
+ }
101
+ renderLayerError(t = !1) {
102
+ return r`<div class="section"><calcite-notice open icon kind=warning scale=s width=full><div slot=title>${this.messages.layerErrorTitle}</div><div slot=message>${t ? this.messages.noServiceMessage : this.messages.layerErrorMessage}</div><calcite-button slot=link appearance=transparent @click=${() => {
103
+ this.layersTask.run();
104
+ }}>${this.messages.retry}</calcite-button></calcite-notice></div>`;
105
+ }
106
+ renderLayerList(t) {
107
+ return t.length ? r`<ul class="layers" .ariaLabel=${this.messages.layers}>${[...t].sort((e, i) => Number(this.matchedSublayerIds.includes(i.id)) - Number(this.matchedSublayerIds.includes(e.id)) || i.id - e.id).map((e) => r`<li class="layer"><button type=button class="layer-button" @click=${(i) => {
108
+ this.openLayer(e, i.currentTarget);
109
+ }}><span><arcgis-portal-sublayer-type .name=${e.title} .geometry=${e.geometryType} .type=${e.type} scale=s underline></arcgis-portal-sublayer-type>${this.matchedSublayerIds.includes(e.id) && r`<span class="matched">${this.messages.matched}</span>` || ""}</span><calcite-icon icon=chevron-right flip-rtl scale=s></calcite-icon></button></li>`)}</ul>` : r`<p class="section empty">${this.messages.noLayers}</p>`;
110
+ }
111
+ renderLayers() {
112
+ const { messages: t } = this, i = (this.layersTask.status === c.COMPLETE ? this.layersTask.value : void 0)?.result?.sublayers ?? [], a = i.filter((s) => this.matchedSublayerIds.includes(s.id)).length;
113
+ return r`<calcite-accordion-item data-section=layers .heading=${i.length ? t.layersCount.replace("${count}", this.numberFormatter.format(i.length)) : t.layers} .description=${a ? t.matchedNumber.replace("${num}", this.numberFormatter.format(a)) : void 0} heading-level=3 @calciteAccordionItemExpand=${this.handleAccordionChange} @calciteAccordionItemCollapse=${this.handleAccordionChange}>${this.layersTask.render({
114
+ initial: () => r`<calcite-loader .label=${t.loadingLayers} scale=s></calcite-loader>`,
115
+ pending: () => r`<calcite-loader .label=${t.loadingLayers} scale=s></calcite-loader>`,
116
+ error: () => this.renderLayerError(),
117
+ complete: ({ result: s, error: o }) => o ? this.renderLayerError(o.code === "serviceNotExist") : this.renderLayerList(s?.sublayers ?? [])
118
+ })}</calcite-accordion-item>`;
119
+ }
120
+ render() {
121
+ const { messages: t, item: e } = this;
122
+ if (!e)
123
+ return null;
124
+ const i = this.portal ?? e.portal ?? void 0, a = this.user === void 0 ? i?.user : this.user, s = a && a.portal?.url === i?.url ? a : void 0, o = e.title?.trim() || t.componentLabel;
125
+ return r`<calcite-panel .heading=${o} ${p(this.panel)}>${this.selectedLayer && r`<calcite-action slot=header-actions-start .text=${t.back} icon=chevron-left icon-flip-rtl @click=${() => {
126
+ this.backToItem();
127
+ }}></calcite-action>` || ""}<div slot=header-content class="header"><h2>${o}</h2><arcgis-portal-item-type .item=${e} .portal=${i} .user=${s} .showHosted=${this.showHosted} scale=m .serviceInfo=${this.layersTask.status === c.COMPLETE ? this.layersTask.value?.result?.serviceInfo : void 0}></arcgis-portal-item-type></div><calcite-action slot=header-actions-end .text=${t.close} icon=x @click=${this.closePreview}></calcite-action><div .hidden=${!!this.selectedLayer}><calcite-accordion appearance=transparent icon-position=start ${p(this.accordion)}><calcite-accordion-item data-section=thumbnail .heading=${t.thumbnail} heading-level=3 @calciteAccordionItemExpand=${this.handleAccordionChange} @calciteAccordionItemCollapse=${this.handleAccordionChange}><arcgis-portal-item-thumbnail .item=${e} .portal=${i} .user=${s}></arcgis-portal-item-thumbnail></calcite-accordion-item>${this.renderOverview(e, i, s)}<calcite-accordion-item data-section=description .heading=${t.description} heading-level=3 @calciteAccordionItemExpand=${this.handleAccordionChange} @calciteAccordionItemCollapse=${this.handleAccordionChange}>${e.description ? r`<div class="section rich-text"><div class="description" .innerHTML=${u(e.description) ?? ""} @click=${this.handleExternalLink}></div></div>` : r`<p class="section empty">${t.noDescription}</p>`}</calcite-accordion-item>${this.renderDetails(e)}${y(e) && this.renderLayers() || ""}</calcite-accordion>${e.type === "Image Service" && (this.layersTask.status === c.ERROR || this.layersTask.status === c.COMPLETE && this.layersTask.value?.error) && this.renderLayerError(this.layersTask.value?.error?.code === "serviceNotExist") || ""}</div>${this.selectedLayer && r`<arcgis-portal-item-preview-sublayer .item=${e} .portal=${i} .layer=${this.selectedLayer} .showFieldStatistics=${this.showFieldStatistics} .externalLinkHandler=${this.handleExternalLink}></arcgis-portal-item-preview-sublayer>` || ""}<div slot=${(this.hasFooter && !this.selectedLayer ? "footer" : void 0) ?? d} class="footer" .hidden=${!this.hasFooter || !!this.selectedLayer}><slot name=footer @slotchange=${(n) => {
128
+ this.hasFooter = h(n);
129
+ }}></slot></div><div slot=${(this.hasSublayerFooter && this.selectedLayer ? "footer" : void 0) ?? d} class="footer" .hidden=${!this.hasSublayerFooter || !this.selectedLayer}><slot name=sublayer-footer @slotchange=${(n) => {
130
+ this.hasSublayerFooter = h(n);
131
+ }}></slot></div></calcite-panel>`;
132
+ }
133
+ }
134
+ $("arcgis-portal-item-preview", T);
135
+ export {
136
+ T as ArcgisPortalItemPreview
137
+ };
@@ -0,0 +1 @@
1
+ export * from "./customElement.js";
@@ -0,0 +1,20 @@
1
+ import "@esri/calcite-components/components/calcite-accordion-item";
2
+ import "../arcgis-portal-item-badges/index.js";
3
+ import "../arcgis-portal-user-popup/index.js";
4
+ import "../arcgis-portal-item-share-summary/index.js";
5
+ import "@esri/calcite-components/components/calcite-chip-group";
6
+ import "@esri/calcite-components/components/calcite-chip";
7
+ import "../arcgis-portal-item-favorite/index.js";
8
+ import "../arcgis-portal-item-preview-copy/index.js";
9
+ import "@esri/calcite-components/components/calcite-notice";
10
+ import "@esri/calcite-components/components/calcite-button";
11
+ import "../arcgis-portal-sublayer-type/index.js";
12
+ import "@esri/calcite-components/components/calcite-icon";
13
+ import "@esri/calcite-components/components/calcite-loader";
14
+ import "@esri/calcite-components/components/calcite-panel";
15
+ import "@esri/calcite-components/components/calcite-action";
16
+ import "../arcgis-portal-item-type/index.js";
17
+ import "@esri/calcite-components/components/calcite-accordion";
18
+ import "../arcgis-portal-item-thumbnail/index.js";
19
+ import "../arcgis-portal-item-preview-sublayer/index.js";
20
+ export * from "./customElement.js";
@@ -0,0 +1,14 @@
1
+ import type Field from "@arcgis/core/layers/support/Field.js";
2
+ import type { PortalGeometryType } from "../../types/geometry.js";
3
+ import type { ServiceSublayer } from "../../types/layer.js";
4
+
5
+ /** Layer or table listed by the preview; service details are loaded when opened. */
6
+ export interface ItemPreviewLayer extends Pick<ServiceSublayer, "description" | "id" | "sourceJSON" | "title" | "type"> {
7
+ geometryType?: PortalGeometryType;
8
+ url?: string;
9
+ }
10
+
11
+ /** Field presentation also supports the legacy REST Boolean type, absent from SDK Field. */
12
+ export interface ItemPreviewField extends Pick<Field, "alias" | "name"> {
13
+ type: Field["type"] | "boolean";
14
+ }
@@ -0,0 +1,215 @@
1
+ /// <reference path="../../index.d.ts" />
2
+ import type { PublicLitElement as LitElement } from "@arcgis/lumina";
3
+ import type { T9nMeta } from "@arcgis/lumina/controllers";
4
+
5
+ /** @internal */
6
+ export abstract class ArcgisPortalItemPreviewCopy extends LitElement {
7
+ /** @default "" */
8
+ accessor heading: string;
9
+ /** @default "" */
10
+ accessor label: string;
11
+ /** @internal */
12
+ protected messages: {
13
+ componentLabel: string;
14
+ close: string;
15
+ thumbnail: string;
16
+ summary: string;
17
+ noSummary: string;
18
+ overview: string;
19
+ itemStatus: string;
20
+ owner: string;
21
+ shared: string;
22
+ updated: string;
23
+ groupCategories: string;
24
+ description: string;
25
+ noDescription: string;
26
+ details: string;
27
+ created: string;
28
+ viewCount: string;
29
+ dashboardViews: string;
30
+ dashboardMobile: string;
31
+ dashboardDesktop: string;
32
+ fileSize: string;
33
+ attachmentsSize: string;
34
+ id: string;
35
+ url: string;
36
+ copyID: string;
37
+ copyURL: string;
38
+ copied: string;
39
+ copy: string;
40
+ copyError: string;
41
+ credits: string;
42
+ noCredits: string;
43
+ termsOfUse: string;
44
+ noTermsOfUse: string;
45
+ layers: string;
46
+ layersCount: string;
47
+ matched: string;
48
+ matchedNumber: string;
49
+ loadingLayers: string;
50
+ noLayers: string;
51
+ layerErrorTitle: string;
52
+ layerErrorMessage: string;
53
+ noServiceMessage: string;
54
+ retry: string;
55
+ back: string;
56
+ fields: string;
57
+ noFields: string;
58
+ geometryTypeTitle: string;
59
+ layerTypeTitle: string;
60
+ dataUpdated: string;
61
+ schemaUpdated: string;
62
+ loadingSublayer: string;
63
+ loadingStatistics: string;
64
+ statisticsError: string;
65
+ sublayerErrorTitle: string;
66
+ sublayerErrorMessage: string;
67
+ layerTypes: {
68
+ point: string;
69
+ line: string;
70
+ polygon: string;
71
+ multipatch: string;
72
+ multipoint: string;
73
+ table: string;
74
+ annotation: string;
75
+ dimension: string;
76
+ catalog: string;
77
+ "oriented imagery": string;
78
+ parcel: string;
79
+ "utility network": string;
80
+ topology: string;
81
+ "trace network": string;
82
+ };
83
+ fieldTypes: {
84
+ oid: string;
85
+ boolean: string;
86
+ string: string;
87
+ single: string;
88
+ double: string;
89
+ integer: string;
90
+ "small-integer": string;
91
+ "global-id": string;
92
+ date: string;
93
+ "big-integer": string;
94
+ "date-only": string;
95
+ "time-only": string;
96
+ "timestamp-offset": string;
97
+ guid: string;
98
+ blob: string;
99
+ raster: string;
100
+ geometry: string;
101
+ long: string;
102
+ xml: string;
103
+ };
104
+ fileSizeUnits: {
105
+ bytes: string;
106
+ kilobytes: string;
107
+ megabytes: string;
108
+ gigabytes: string;
109
+ terabytes: string;
110
+ };
111
+ } & T9nMeta<{
112
+ componentLabel: string;
113
+ close: string;
114
+ thumbnail: string;
115
+ summary: string;
116
+ noSummary: string;
117
+ overview: string;
118
+ itemStatus: string;
119
+ owner: string;
120
+ shared: string;
121
+ updated: string;
122
+ groupCategories: string;
123
+ description: string;
124
+ noDescription: string;
125
+ details: string;
126
+ created: string;
127
+ viewCount: string;
128
+ dashboardViews: string;
129
+ dashboardMobile: string;
130
+ dashboardDesktop: string;
131
+ fileSize: string;
132
+ attachmentsSize: string;
133
+ id: string;
134
+ url: string;
135
+ copyID: string;
136
+ copyURL: string;
137
+ copied: string;
138
+ copy: string;
139
+ copyError: string;
140
+ credits: string;
141
+ noCredits: string;
142
+ termsOfUse: string;
143
+ noTermsOfUse: string;
144
+ layers: string;
145
+ layersCount: string;
146
+ matched: string;
147
+ matchedNumber: string;
148
+ loadingLayers: string;
149
+ noLayers: string;
150
+ layerErrorTitle: string;
151
+ layerErrorMessage: string;
152
+ noServiceMessage: string;
153
+ retry: string;
154
+ back: string;
155
+ fields: string;
156
+ noFields: string;
157
+ geometryTypeTitle: string;
158
+ layerTypeTitle: string;
159
+ dataUpdated: string;
160
+ schemaUpdated: string;
161
+ loadingSublayer: string;
162
+ loadingStatistics: string;
163
+ statisticsError: string;
164
+ sublayerErrorTitle: string;
165
+ sublayerErrorMessage: string;
166
+ layerTypes: {
167
+ point: string;
168
+ line: string;
169
+ polygon: string;
170
+ multipatch: string;
171
+ multipoint: string;
172
+ table: string;
173
+ annotation: string;
174
+ dimension: string;
175
+ catalog: string;
176
+ "oriented imagery": string;
177
+ parcel: string;
178
+ "utility network": string;
179
+ topology: string;
180
+ "trace network": string;
181
+ };
182
+ fieldTypes: {
183
+ oid: string;
184
+ boolean: string;
185
+ string: string;
186
+ single: string;
187
+ double: string;
188
+ integer: string;
189
+ "small-integer": string;
190
+ "global-id": string;
191
+ date: string;
192
+ "big-integer": string;
193
+ "date-only": string;
194
+ "time-only": string;
195
+ "timestamp-offset": string;
196
+ guid: string;
197
+ blob: string;
198
+ raster: string;
199
+ geometry: string;
200
+ long: string;
201
+ xml: string;
202
+ };
203
+ fileSizeUnits: {
204
+ bytes: string;
205
+ kilobytes: string;
206
+ megabytes: string;
207
+ gigabytes: string;
208
+ terabytes: string;
209
+ };
210
+ }>;
211
+ /** @default "details" */
212
+ accessor section: "details" | "layers";
213
+ /** @default "" */
214
+ accessor text: string;
215
+ }
@@ -0,0 +1,46 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
+ import { c as i } from "../../chunks/runtime.js";
3
+ import { LitElement as s, createEvent as o, safeClassMap as a } from "@arcgis/lumina";
4
+ import { log as c } from "@arcgis/toolkit/log";
5
+ import { css as l, html as r } from "lit";
6
+ import { u as p } from "../../chunks/useT9n.js";
7
+ const n = l`:host{display:block}calcite-label{--calcite-label-margin-bottom: 0}h4{margin:0 0 .25rem;font-size:var(--calcite-font-size--2);font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-text-3)}[role=status]{color:var(--calcite-color-text-2);font-size:var(--calcite-font-size--2)}.live-region{position:absolute;inline-size:1px;block-size:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}`;
8
+ class h extends s {
9
+ constructor() {
10
+ super(...arguments), this.messages = p({ name: "portal-item-preview", blocking: !0 }), this.copyStatus = "idle", this.copiedSuffix = "", this.heading = "", this.text = "", this.label = "", this.section = "details", this.arcgisInternalUIAction = o();
11
+ }
12
+ static {
13
+ this.properties = { copyStatus: 16, copiedSuffix: 16, heading: 1, text: 1, label: 1, section: 1 };
14
+ }
15
+ static {
16
+ this.styles = n;
17
+ }
18
+ willUpdate(t) {
19
+ t.has("text") && this.resetCopy();
20
+ }
21
+ disconnectedCallback() {
22
+ super.disconnectedCallback(), this.resetCopy();
23
+ }
24
+ resetCopy() {
25
+ this.request?.abort(), clearTimeout(this.resetTimer), this.copyStatus = "idle";
26
+ }
27
+ async copy() {
28
+ this.resetCopy();
29
+ const t = new AbortController();
30
+ this.request = t, this.copyStatus = "copying";
31
+ try {
32
+ await navigator.clipboard.writeText(this.text), t.signal.throwIfAborted(), this.copyStatus = "copied", this.arcgisInternalUIAction.emit({ action: "copy", category: "panel action", details: this.section }), this.copiedSuffix = this.copiedSuffix ? "" : " ", this.resetTimer = setTimeout(() => {
33
+ this.copyStatus = "idle";
34
+ }, 2e3);
35
+ } catch (e) {
36
+ t.signal.aborted || (this.copyStatus = "failed", c("error", this, "Unable to copy preview text.", { detail: { error: e } }));
37
+ }
38
+ }
39
+ render() {
40
+ return r`<calcite-label for=copy-input scale=s><h4>${this.heading}</h4></calcite-label><calcite-input id=copy-input .value=${this.text} read-only .label=${this.heading} scale=s><calcite-button id=copy-button slot=action .label=${this.label} icon-start=copy-to-clipboard kind=neutral scale=s .disabled=${this.copyStatus === "copying" || !this.text} @click=${this.copy}></calcite-button></calcite-input><calcite-tooltip reference-element=copy-button placement=bottom-end overlay-positioning=fixed scale=s>${this.copyStatus === "copied" ? this.messages.copied : this.messages.copy}</calcite-tooltip><div role=status aria-live=polite class=${a({ "live-region": this.copyStatus !== "failed" })}>${this.copyStatus === "failed" ? this.messages.copyError : this.copyStatus === "copied" ? `${this.messages.copied}${this.copiedSuffix}` : ""}</div>`;
41
+ }
42
+ }
43
+ i("arcgis-portal-item-preview-copy", h);
44
+ export {
45
+ h as ArcgisPortalItemPreviewCopy
46
+ };
@@ -0,0 +1 @@
1
+ export * from "./customElement.js";
@@ -0,0 +1,5 @@
1
+ import "@esri/calcite-components/components/calcite-label";
2
+ import "@esri/calcite-components/components/calcite-input";
3
+ import "@esri/calcite-components/components/calcite-button";
4
+ import "@esri/calcite-components/components/calcite-tooltip";
5
+ export * from "./customElement.js";
@@ -0,0 +1,216 @@
1
+ /// <reference path="../../index.d.ts" />
2
+ import type FeatureLayer from "@arcgis/core/layers/FeatureLayer.js";
3
+ import type { PublicLitElement as LitElement } from "@arcgis/lumina";
4
+ import type { ItemPreviewField } from "../arcgis-portal-item-preview/types.js";
5
+ import type { T9nMeta } from "@arcgis/lumina/controllers";
6
+
7
+ /** @internal */
8
+ export abstract class ArcgisPortalItemPreviewField extends LitElement {
9
+ /** @default false */
10
+ accessor failed: boolean;
11
+ accessor field: ItemPreviewField;
12
+ /** Loaded and owned by the sublayer component; shared across its expanded fields. */
13
+ accessor layer: FeatureLayer | undefined;
14
+ /** @internal */
15
+ protected messages: {
16
+ componentLabel: string;
17
+ close: string;
18
+ thumbnail: string;
19
+ summary: string;
20
+ noSummary: string;
21
+ overview: string;
22
+ itemStatus: string;
23
+ owner: string;
24
+ shared: string;
25
+ updated: string;
26
+ groupCategories: string;
27
+ description: string;
28
+ noDescription: string;
29
+ details: string;
30
+ created: string;
31
+ viewCount: string;
32
+ dashboardViews: string;
33
+ dashboardMobile: string;
34
+ dashboardDesktop: string;
35
+ fileSize: string;
36
+ attachmentsSize: string;
37
+ id: string;
38
+ url: string;
39
+ copyID: string;
40
+ copyURL: string;
41
+ copied: string;
42
+ copy: string;
43
+ copyError: string;
44
+ credits: string;
45
+ noCredits: string;
46
+ termsOfUse: string;
47
+ noTermsOfUse: string;
48
+ layers: string;
49
+ layersCount: string;
50
+ matched: string;
51
+ matchedNumber: string;
52
+ loadingLayers: string;
53
+ noLayers: string;
54
+ layerErrorTitle: string;
55
+ layerErrorMessage: string;
56
+ noServiceMessage: string;
57
+ retry: string;
58
+ back: string;
59
+ fields: string;
60
+ noFields: string;
61
+ geometryTypeTitle: string;
62
+ layerTypeTitle: string;
63
+ dataUpdated: string;
64
+ schemaUpdated: string;
65
+ loadingSublayer: string;
66
+ loadingStatistics: string;
67
+ statisticsError: string;
68
+ sublayerErrorTitle: string;
69
+ sublayerErrorMessage: string;
70
+ layerTypes: {
71
+ point: string;
72
+ line: string;
73
+ polygon: string;
74
+ multipatch: string;
75
+ multipoint: string;
76
+ table: string;
77
+ annotation: string;
78
+ dimension: string;
79
+ catalog: string;
80
+ "oriented imagery": string;
81
+ parcel: string;
82
+ "utility network": string;
83
+ topology: string;
84
+ "trace network": string;
85
+ };
86
+ fieldTypes: {
87
+ oid: string;
88
+ boolean: string;
89
+ string: string;
90
+ single: string;
91
+ double: string;
92
+ integer: string;
93
+ "small-integer": string;
94
+ "global-id": string;
95
+ date: string;
96
+ "big-integer": string;
97
+ "date-only": string;
98
+ "time-only": string;
99
+ "timestamp-offset": string;
100
+ guid: string;
101
+ blob: string;
102
+ raster: string;
103
+ geometry: string;
104
+ long: string;
105
+ xml: string;
106
+ };
107
+ fileSizeUnits: {
108
+ bytes: string;
109
+ kilobytes: string;
110
+ megabytes: string;
111
+ gigabytes: string;
112
+ terabytes: string;
113
+ };
114
+ } & T9nMeta<{
115
+ componentLabel: string;
116
+ close: string;
117
+ thumbnail: string;
118
+ summary: string;
119
+ noSummary: string;
120
+ overview: string;
121
+ itemStatus: string;
122
+ owner: string;
123
+ shared: string;
124
+ updated: string;
125
+ groupCategories: string;
126
+ description: string;
127
+ noDescription: string;
128
+ details: string;
129
+ created: string;
130
+ viewCount: string;
131
+ dashboardViews: string;
132
+ dashboardMobile: string;
133
+ dashboardDesktop: string;
134
+ fileSize: string;
135
+ attachmentsSize: string;
136
+ id: string;
137
+ url: string;
138
+ copyID: string;
139
+ copyURL: string;
140
+ copied: string;
141
+ copy: string;
142
+ copyError: string;
143
+ credits: string;
144
+ noCredits: string;
145
+ termsOfUse: string;
146
+ noTermsOfUse: string;
147
+ layers: string;
148
+ layersCount: string;
149
+ matched: string;
150
+ matchedNumber: string;
151
+ loadingLayers: string;
152
+ noLayers: string;
153
+ layerErrorTitle: string;
154
+ layerErrorMessage: string;
155
+ noServiceMessage: string;
156
+ retry: string;
157
+ back: string;
158
+ fields: string;
159
+ noFields: string;
160
+ geometryTypeTitle: string;
161
+ layerTypeTitle: string;
162
+ dataUpdated: string;
163
+ schemaUpdated: string;
164
+ loadingSublayer: string;
165
+ loadingStatistics: string;
166
+ statisticsError: string;
167
+ sublayerErrorTitle: string;
168
+ sublayerErrorMessage: string;
169
+ layerTypes: {
170
+ point: string;
171
+ line: string;
172
+ polygon: string;
173
+ multipatch: string;
174
+ multipoint: string;
175
+ table: string;
176
+ annotation: string;
177
+ dimension: string;
178
+ catalog: string;
179
+ "oriented imagery": string;
180
+ parcel: string;
181
+ "utility network": string;
182
+ topology: string;
183
+ "trace network": string;
184
+ };
185
+ fieldTypes: {
186
+ oid: string;
187
+ boolean: string;
188
+ string: string;
189
+ single: string;
190
+ double: string;
191
+ integer: string;
192
+ "small-integer": string;
193
+ "global-id": string;
194
+ date: string;
195
+ "big-integer": string;
196
+ "date-only": string;
197
+ "time-only": string;
198
+ "timestamp-offset": string;
199
+ guid: string;
200
+ blob: string;
201
+ raster: string;
202
+ geometry: string;
203
+ long: string;
204
+ xml: string;
205
+ };
206
+ fileSizeUnits: {
207
+ bytes: string;
208
+ kilobytes: string;
209
+ megabytes: string;
210
+ gigabytes: string;
211
+ terabytes: string;
212
+ };
213
+ }>;
214
+ /** @default false */
215
+ accessor showStatistics: boolean;
216
+ }