@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
@@ -1,37 +1,21 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import { c as k } from "../../chunks/runtime.js";
3
- import { html as f, css as M } from "lit";
4
- import { LitElement as P, createEvent as T, renderElement as $ } from "@arcgis/lumina";
5
- import { createRef as N, ref as D } from "lit/directives/ref.js";
6
- import { Task as O } from "@lit/task";
7
- import * as L from "@arcgis/core/core/lang.js";
8
- import S from "@arcgis/core/layers/support/FeatureTemplate.js";
9
- import B from "@arcgis/core/Graphic.js";
10
- import j from "@arcgis/core/identity/IdentityManager.js";
11
- import y from "@arcgis/core/request.js";
12
- import * as U from "@arcgis/core/applications/PortalApp/layerUtils.js";
13
- import { i as E, a as z, g as q, b as R, d as J, e as W } from "../../chunks/fieldAddDelete.js";
14
- import { a as A } from "../../chunks/portal.js";
15
- import { u as V } from "../../chunks/useT9n.js";
16
- import { log as b, composeMissingPropertyMessage as C, composeEmptyPropertyMessage as G } from "@arcgis/toolkit/log";
17
- const n = /* @__PURE__ */ new Map();
18
- n.set("oid", "key");
19
- n.set("guid", "key");
20
- n.set("global-id", "key");
21
- n.set("blob", "binary");
22
- n.set("integer", "integer");
23
- n.set("small-integer", "integer");
24
- n.set("big-integer", "integer");
25
- n.set("single", "number");
26
- n.set("double", "number");
27
- n.set("long", "number");
28
- n.set("number", "number");
29
- n.set("date", "date-time");
30
- n.set("date-only", "calendar");
31
- n.set("time-only", "clock");
32
- n.set("timestamp-offset", "time-zone");
33
- n.set("string", "string");
34
- const H = ({ fieldType: I }) => f`<calcite-icon scale=s .icon=${n.get(I)}></calcite-icon>`, K = [
2
+ import { c as C } from "../../chunks/runtime.js";
3
+ import { css as x, html as c } from "lit";
4
+ import { LitElement as M, createEvent as F, renderElement as E } from "@arcgis/lumina";
5
+ import { createRef as w, ref as I } from "lit/directives/ref.js";
6
+ import { Task as k } from "@lit/task";
7
+ import * as P from "@arcgis/core/core/lang.js";
8
+ import O from "@arcgis/core/layers/support/FeatureTemplate.js";
9
+ import L from "@arcgis/core/Graphic.js";
10
+ import S from "@arcgis/core/identity/IdentityManager.js";
11
+ import _ from "@arcgis/core/request.js";
12
+ import * as B from "@arcgis/core/applications/PortalApp/layerUtils.js";
13
+ import { i as T, c as j, g as U, a as z, b as q, d as R } from "../../chunks/fieldAddDelete.js";
14
+ import { F as J } from "../../chunks/FieldIcons.js";
15
+ import { a as N } from "../../chunks/portal.js";
16
+ import { u as W } from "../../chunks/useT9n.js";
17
+ import { log as y, composeMissingPropertyMessage as D, composeEmptyPropertyMessage as V } from "@arcgis/toolkit/log";
18
+ const G = [
35
19
  "esrignss_speed",
36
20
  "esrignss_direction",
37
21
  "esrisnsr_azimuth",
@@ -121,24 +105,24 @@ const H = ({ fieldType: I }) => f`<calcite-icon scale=s .icon=${n.get(I)}></calc
121
105
  "esrignss_worst_v_rms",
122
106
  "esrignss_worst_fixtype",
123
107
  "esrignss_manual_locations"
124
- ], Q = M`.dialog{--calcite-dialog-max-size-y: 60%}.dialog-content-wrapper{position:relative;min-height:100px}.hide-overflow{overflow:hidden}.field-icons{padding:0 var(--calcite-spacing-lg);display:flex;align-items:center}.warning{border-bottom:var(--calcite-border-width-sm) solid var(--calcite-color-border-3);margin-bottom:var(--calcite-spacing-md)}.warning-message{font-size:var(--calcite-font-size--1);font-weight:var(--calcite-font-weight-bold)}.loader-container{position:absolute;height:100%;width:100%;top:0;right:0;display:none;z-index:40;overflow:hidden;background:#fffffff2;padding:0}.active{display:flex;flex-direction:column;align-items:center;justify-content:center}.loader{padding:0}.loader-text{font-weight:var(--calcite-font-weight-medium);text-align:center;margin-right:6.25rem;margin-left:6.25rem}`;
125
- class X extends P {
108
+ ], H = x`.dialog{--calcite-dialog-max-size-y: 60%}.dialog-content-wrapper{position:relative;min-height:100px}.hide-overflow{overflow:hidden}.field-icons{padding:0 var(--calcite-space-lg);display:flex;align-items:center}.warning{border-bottom:var(--calcite-border-width-sm) solid var(--calcite-color-border-3);margin-bottom:var(--calcite-space-md)}.warning-message{font-size:var(--calcite-font-size--1);font-weight:var(--calcite-font-weight-bold)}.loader-container{position:absolute;height:100%;width:100%;top:0;right:0;display:none;z-index:40;overflow:hidden;background:#fffffff2;padding:0}.active{display:flex;flex-direction:column;align-items:center;justify-content:center}.loader{padding:0}.loader-text{font-weight:var(--calcite-font-weight-medium);text-align:center;margin-right:6.25rem;margin-left:6.25rem}`;
109
+ class K extends M {
126
110
  constructor() {
127
- super(...arguments), this.arcadeExpMap = /* @__PURE__ */ new Map(), this.cancelNode = N(), this.dialogNode = N(), this.layerFields = [], this.layerFieldsMap = /* @__PURE__ */ new Map(), this.messages = V({ blocking: !0 }), this.deleteInProgress = !1, this.fieldsAreDeletable = !1, this._propWatcherTask = new O(this, {
111
+ super(...arguments), this.arcadeExpMap = /* @__PURE__ */ new Map(), this.cancelNode = w(), this.dialogNode = w(), this.layerFields = [], this.layerFieldsMap = /* @__PURE__ */ new Map(), this.messages = W({ blocking: !0 }), this.deleteInProgress = !1, this.fieldsAreDeletable = !1, this._propWatcherTask = new k(this, {
128
112
  task: async ([e, s]) => {
129
- const t = E(e) && E(s);
130
- if (E(e) || b("error", this, C("layer")), E(s) || b("error", this, C("fieldNames")), !t)
113
+ const t = T(e) && T(s);
114
+ if (T(e) || y("error", this, D("layer")), T(s) || y("error", this, D("fieldNames")), !t)
131
115
  throw new Error("Required properties are missing");
132
116
  this._propWatcherTask.autoRun = !1, await this.processProps();
133
117
  },
134
118
  args: () => [this.layer, this.fieldNames]
135
- }), this.arcgisBeforeModalClose = T(), this.arcgisClose = T(), this.arcgisBeforeDelete = T(), this.arcgisFieldsDeleted = T();
119
+ }), this.arcgisBeforeModalClose = F(), this.arcgisClose = F(), this.arcgisBeforeDelete = F(), this.arcgisFieldsDeleted = F();
136
120
  }
137
121
  static {
138
122
  this.properties = { config: 0, fieldNames: 0, layer: 0, mapView: 0, options: 0 };
139
123
  }
140
124
  static {
141
- this.styles = Q;
125
+ this.styles = H;
142
126
  }
143
127
  async processProps() {
144
128
  const { layer: e, mapView: s, fieldNames: t } = this;
@@ -151,28 +135,28 @@ class X extends P {
151
135
  if (!this.layerFields?.length || l)
152
136
  this.fieldsAreDeletable = !1;
153
137
  else {
154
- const o = await Promise.all(this.layerFields.map(async (a) => await z(s, e, a, this.options)));
138
+ const o = await Promise.all(this.layerFields.map(async (a) => await j(s, e, a, this.options)));
155
139
  if (this.fieldsAreDeletable = o.every((a) => a), !this.fieldsAreDeletable)
156
140
  return;
157
141
  }
158
- if (this.layerFieldsMap = await q(e), this.options?.ignorePopupTemplate || (this.arcadeExpMap = R(e.popupTemplate)), this.portal = e.portalItem?.portal ?? this.options?.portal, this.item = e.portalItem ?? this.options?.item, !this.item) {
142
+ if (this.layerFieldsMap = await U(e), this.options?.ignorePopupTemplate || (this.arcadeExpMap = z(e.popupTemplate)), this.portal = e.portalItem?.portal ?? this.options?.portal, this.item = e.portalItem ?? this.options?.item, !this.item) {
159
143
  this.fieldsAreDeletable = !1;
160
144
  return;
161
145
  }
162
- await j.getCredential(this.item.url.replace("rest/services", "rest/admin/services"));
146
+ await S.getCredential(this.item.url.replace("rest/services", "rest/admin/services"));
163
147
  }
164
148
  getFieldLabel(e) {
165
149
  const { layer: s, arcadeExpMap: t } = this;
166
150
  if (this.options?.ignorePopupTemplate)
167
151
  return this.getFieldDisplayNameFromLayerFields(e);
168
152
  {
169
- const o = (s.popupTemplate ?? s.createPopupTemplate()).fieldInfos?.find((a) => a.fieldName === e);
170
- return o ? J(s, o, t) : this.getFieldDisplayNameFromLayerFields(e);
153
+ const o = (s.popupTemplate ?? s.createPopupTemplate())?.fieldInfos?.find((a) => a.fieldName === e);
154
+ return o ? q(s, o, t) : this.getFieldDisplayNameFromLayerFields(e);
171
155
  }
172
156
  }
173
157
  getFieldDisplayNameFromLayerFields(e) {
174
158
  const { layer: s } = this, t = this.layerFieldsMap.get(e);
175
- return U.supportsFieldConfiguration(s) ? s.getFieldAlias(e) : t.alias ?? t.name;
159
+ return B.supportsFieldConfiguration(s) ? s.getFieldAlias(e) : t.alias ?? t.name;
176
160
  }
177
161
  async deleteFields() {
178
162
  const { layer: e, fieldNames: s } = this, t = `${e.url.replace("/rest/services", "/rest/admin/services")}/${e.layerId}/deleteFromDefinition`, l = {
@@ -182,22 +166,22 @@ class X extends P {
182
166
  }, o = {
183
167
  deleteFromDefinition: JSON.stringify(l)
184
168
  };
185
- await y(t, {
169
+ await _(t, {
186
170
  query: { ...o, f: "json", async: !1 },
187
171
  method: "post",
188
172
  responseType: "json"
189
173
  }).then(async (a) => {
190
174
  if (a.data?.success) {
191
- const g = `${e.url}/${e.layerId}`;
175
+ const f = `${e.url}/${e.layerId}`;
192
176
  s.forEach((i) => {
193
177
  e.type === "feature" && e.floorInfo?.floorField === i && (e.floorInfo = null);
194
178
  });
195
- const h = await y(g, { query: { f: "json" }, responseType: "json" });
179
+ const h = await _(f, { query: { f: "json" }, responseType: "json" });
196
180
  if (h) {
197
181
  const i = h.data;
198
182
  this.currentLayerInfo = h.data, i && (this.updateTypesAndTemplatesOnLayer(), s.forEach((r) => {
199
- i.templates?.length ? i.templates.forEach((c) => delete c.prototype.attributes[r]) : i.types?.forEach((c) => {
200
- c.templates.forEach((u) => delete u.prototype.attributes[r]);
183
+ i.templates?.length ? i.templates.forEach((d) => delete d.prototype.attributes[r]) : i.types?.forEach((d) => {
184
+ d.templates.forEach((m) => delete m.prototype.attributes[r]);
201
185
  });
202
186
  }), this.updateFeatureService(i));
203
187
  } else
@@ -221,19 +205,19 @@ class X extends P {
221
205
  updateTemplatesList(e) {
222
206
  const { currentLayerInfo: s, messages: t } = this, l = [];
223
207
  return (e ?? []).forEach((o) => {
224
- const a = new S();
208
+ const a = new O();
225
209
  a.description = o.description ?? "", a.name = o.name || t.newFeature, a.drawingTool = o.drawingTool || "point";
226
- const g = {};
210
+ const f = {};
227
211
  s.fields.forEach((i) => {
228
212
  let r = !1;
229
- for (let c = 0; c < o.prototype.attributes.length; c++)
230
- if (o.prototype.attributes[c] === i.name) {
231
- r = !0, g[i.name] = o.prototype.attributes[i.name];
213
+ for (let d = 0; d < o.prototype.attributes.length; d++)
214
+ if (o.prototype.attributes[d] === i.name) {
215
+ r = !0, f[i.name] = o.prototype.attributes[i.name];
232
216
  break;
233
217
  }
234
- !r && i.editable && !K.includes(i.name) && (g[i.name] = i.defaultValue || null);
218
+ !r && i.editable && !G.includes(i.name) && (f[i.name] = i.defaultValue || null);
235
219
  });
236
- const h = new B({ attributes: g });
220
+ const h = new L({ attributes: f });
237
221
  a.prototype = h, l.push(a);
238
222
  }), l;
239
223
  }
@@ -248,65 +232,65 @@ class X extends P {
248
232
  f: "json",
249
233
  updateDefinition: JSON.stringify(l)
250
234
  };
251
- await y(o, {
235
+ await _(o, {
252
236
  query: { ...a, f: "json" },
253
237
  method: "post",
254
238
  responseType: "json"
255
- }).then(async (g) => {
256
- if (g.data?.success) {
257
- const h = `${A(this.portal)}content/items/${this.item.id}/data`;
239
+ }).then(async (f) => {
240
+ if (f.data?.success) {
241
+ const h = `${N(this.portal)}content/items/${this.item.id}/data`;
258
242
  if (this.options?.ignorePopupTemplate || t.forEach((i) => {
259
- s.popupTemplate?.fieldInfos && (s.popupTemplate.fieldInfos = s.popupTemplate.fieldInfos.filter((r) => r.fieldName !== i)), s.popupTemplate?.content?.forEach((r, c) => {
260
- r.type === "fields" && r.fieldInfos && ((s.popupTemplate?.content)[c].fieldInfos = (s.popupTemplate?.content)[c].fieldInfos?.filter((u) => u.fieldName !== i));
243
+ s.popupTemplate?.fieldInfos && (s.popupTemplate.fieldInfos = s.popupTemplate.fieldInfos.filter((r) => r.fieldName !== i)), s.popupTemplate?.content?.forEach((r, d) => {
244
+ r.type === "fields" && r.fieldInfos && ((s.popupTemplate?.content)[d].fieldInfos = (s.popupTemplate?.content)[d].fieldInfos?.filter((m) => m.fieldName !== i));
261
245
  });
262
246
  }), s.attributeTableTemplate) {
263
247
  const i = s.attributeTableTemplate.clone();
264
248
  i.elements = i.elements.filter((r) => !(r.type === "field" && t.includes(r.fieldName))), i.orderByFields = i.orderByFields.filter((r) => !t.includes(r.field)), s.attributeTableTemplate = i;
265
249
  }
266
250
  if (s.fieldConfigurations?.length) {
267
- const r = L.clone(s.fieldConfigurations).filter((c) => !t.includes(c.name));
251
+ const r = P.clone(s.fieldConfigurations).filter((d) => !t.includes(d.name));
268
252
  s.fieldConfigurations = r;
269
253
  }
270
- await y(h, {
254
+ await _(h, {
271
255
  query: { f: "json" },
272
256
  responseType: "json"
273
257
  }).then(async (i) => {
274
258
  const r = i.data;
275
259
  if (r?.layers || r?.tables) {
276
- const c = s.isTable, u = c ? r.tables : r.layers, p = u?.find((m) => m.id === s.layerId);
277
- if (t.forEach((m) => {
278
- p?.attributeTableInfo?.attributeTableElements && (p.attributeTableInfo.attributeTableElements = p.attributeTableInfo.attributeTableElements.map((d) => {
279
- if (d.type === "field")
280
- return d.fieldName === m ? void 0 : d;
281
- if (d.type === "group" && Array.isArray(d.attributeTableElements)) {
282
- const v = d.attributeTableElements.filter((_) => !(_.type === "field" && _.fieldName === m));
260
+ const d = s.isTable, m = d ? r.tables : r.layers, p = m?.find((g) => g.id === s.layerId);
261
+ if (t.forEach((g) => {
262
+ p?.attributeTableInfo?.attributeTableElements && (p.attributeTableInfo.attributeTableElements = p.attributeTableInfo.attributeTableElements.map((n) => {
263
+ if (n.type === "field")
264
+ return n.fieldName === g ? void 0 : n;
265
+ if (n.type === "group" && Array.isArray(n.attributeTableElements)) {
266
+ const v = n.attributeTableElements.filter((u) => !(u.type === "field" && u.fieldName === g));
283
267
  return v.length ? {
284
- ...d,
268
+ ...n,
285
269
  attributeTableElements: v
286
270
  } : void 0;
287
271
  }
288
- return d;
289
- }).filter(Boolean), p.attributeTableInfo.orderByFields = p.attributeTableInfo.orderByFields.filter((d) => d.field !== m));
290
- }), p?.layerDefinition?.fieldConfigurations && (p.layerDefinition.fieldConfigurations = p.layerDefinition.fieldConfigurations.filter((m) => !t.includes(m.name))), p?.popupInfo) {
291
- t.forEach((_) => {
292
- p.popupInfo.fieldInfos = p.popupInfo.fieldInfos.filter((F) => F.fieldName !== _), p.popupInfo.popupElements?.forEach((F, w) => {
293
- F.type === "fields" && F.fieldInfos && (p.popupInfo.popupElements[w].fieldInfos = p.popupInfo.popupElements[w].fieldInfos.filter((x) => x.fieldName !== _));
272
+ return n;
273
+ }).filter(Boolean), p.attributeTableInfo.orderByFields = p.attributeTableInfo.orderByFields.filter((n) => n.field !== g));
274
+ }), p?.layerDefinition?.fieldConfigurations && (p.layerDefinition.fieldConfigurations = p.layerDefinition.fieldConfigurations.filter((g) => !t.includes(g.name))), p?.popupInfo) {
275
+ t.forEach((u) => {
276
+ p.popupInfo.fieldInfos = p.popupInfo.fieldInfos.filter((b) => b.fieldName !== u), p.popupInfo.popupElements?.forEach((b, $) => {
277
+ b.type === "fields" && b.fieldInfos && (p.popupInfo.popupElements[$].fieldInfos = p.popupInfo.popupElements[$].fieldInfos.filter((A) => A.fieldName !== u));
294
278
  });
295
279
  });
296
- const m = `${A(this.portal)}content/users/${this.item.owner}/items/${this.item.id}/update`, d = {};
297
- c ? (d.tables = u, r.layers && (d.layers = r.layers)) : (d.layers = u, r.tables && (d.tables = r.tables));
280
+ const g = `${N(this.portal)}content/users/${this.item.owner}/items/${this.item.id}/update`, n = {};
281
+ d ? (n.tables = m, r.layers && (n.layers = r.layers)) : (n.layers = m, r.tables && (n.tables = r.tables));
298
282
  const v = {
299
283
  f: "json",
300
- text: JSON.stringify(d)
284
+ text: JSON.stringify(n)
301
285
  };
302
- await y(m, {
286
+ await _(g, {
303
287
  query: {
304
288
  ...v
305
289
  },
306
290
  method: "post",
307
291
  responseType: "json"
308
- }).then((_) => {
309
- _.data?.success ? this.handleSuccess() : this.handleError();
292
+ }).then((u) => {
293
+ u.data?.success ? this.handleSuccess() : this.handleError();
310
294
  }, () => this.handleError());
311
295
  } else
312
296
  this.handleSuccess();
@@ -323,50 +307,52 @@ class X extends P {
323
307
  }
324
308
  displaySuccessAlert() {
325
309
  const { messages: e, fieldNames: s } = this;
326
- this.successAlertNode && (this.successAlertNode.parentElement?.removeChild(this.successAlertNode), this.successAlertNode = void 0), this.successAlertNode = $(f`<calcite-alert .label=${s.length === 1 ? e.fieldDeleted : e.fieldsDeleted} kind=success icon=check-circle auto-close open><div slot=message>${s.length === 1 ? e.fieldDeleted : e.fieldsDeleted}</div></calcite-alert>`), document.body.append(this.successAlertNode);
310
+ this.successAlertNode && (this.successAlertNode.parentElement?.removeChild(this.successAlertNode), this.successAlertNode = void 0), this.successAlertNode = E(c`<calcite-alert .label=${s.length === 1 ? e.fieldDeleted : e.fieldsDeleted} kind=success icon=check-circle auto-close open><div slot=message>${s.length === 1 ? e.fieldDeleted : e.fieldsDeleted}</div></calcite-alert>`), document.body.append(this.successAlertNode);
327
311
  }
328
312
  displayErrorAlert() {
329
313
  const { messages: e } = this;
330
- this.errorAlertNode && (this.errorAlertNode.parentElement?.removeChild(this.errorAlertNode), this.errorAlertNode = void 0), this.errorAlertNode = $(f`<calcite-alert .label=${e.fieldDeletionUnsuccessful} kind=danger icon=exclamation-mark-triangle auto-close open><div slot=message>${e.fieldDeletionUnsuccessful}</div></calcite-alert>`), document.body.append(this.errorAlertNode);
314
+ this.errorAlertNode && (this.errorAlertNode.parentElement?.removeChild(this.errorAlertNode), this.errorAlertNode = void 0), this.errorAlertNode = E(c`<calcite-alert .label=${e.fieldDeletionUnsuccessful} kind=danger icon=exclamation-mark-triangle auto-close open><div slot=message>${e.fieldDeletionUnsuccessful}</div></calcite-alert>`), document.body.append(this.errorAlertNode);
331
315
  }
332
316
  displayReadOnlyErrorAlert() {
333
317
  const { messages: e, portal: s } = this;
334
- this.errorAlertNode && (this.errorAlertNode.parentElement?.removeChild(this.errorAlertNode), this.errorAlertNode = void 0), this.errorAlertNode = $(f`<calcite-alert .label=${e.fieldDeletionUnsuccessful} kind=danger icon=exclamation-mark-triangle auto-close auto-close-duration=slow open><div slot=title>${e.error}</div><div slot=message>${s.isPortal ? e.readOnlyErrorMessageEnterprise : e.readOnlyErrorMessage}</div>${!s.isPortal && f`<calcite-link slot=link target=_blank href=https://status.arcgis.com>${e.healthDashboard}</calcite-link>` || ""}</calcite-alert>`), document.body.append(this.errorAlertNode);
318
+ this.errorAlertNode && (this.errorAlertNode.parentElement?.removeChild(this.errorAlertNode), this.errorAlertNode = void 0), this.errorAlertNode = E(c`<calcite-alert .label=${e.fieldDeletionUnsuccessful} kind=danger icon=exclamation-mark-triangle auto-close auto-close-duration=slow open><div slot=title>${e.error}</div><div slot=message>${s.isPortal ? e.readOnlyErrorMessageEnterprise : e.readOnlyErrorMessage}</div>${!s.isPortal && c`<calcite-link slot=link target=_blank href=https://status.arcgis.com>${e.healthDashboard}</calcite-link>` || ""}</calcite-alert>`), document.body.append(this.errorAlertNode);
335
319
  }
336
320
  render() {
337
321
  const { messages: e, fieldsAreDeletable: s, fieldNames: t, deleteInProgress: l } = this;
338
- return this._propWatcherTask.render({
339
- complete: () => (s || (t?.length ? t?.length === 1 ? b("error", this, "Field cannot be deleted") : b("error", this, "One or more fields cannot be deleted") : b("error", this, G("fieldNames"))), f`<calcite-dialog class="dialog" width=s open modal outside-close-disabled escape-disabled @calciteDialogClose=${() => this.arcgisClose.emit()} .heading=${t?.length === 1 ? e.deleteField : e.deleteFields} ${D(this.dialogNode)}>${s ? f`<div class=${`dialog-content-wrapper ${l ? "hide-overflow" : ""}`}>${this.renderDeleteLoader()}<calcite-label>${t.length === 1 ? e.deletePrompt : e.deleteMultiplePrompt}</calcite-label>${this.renderFieldsPreview()}</div>${this.renderCancelButton()}${this.renderDeleteButton()}` : this.renderError()}</calcite-dialog>`)
340
- });
322
+ return c`<calcite-dialog class="dialog" width=s open modal outside-close-disabled escape-disabled @calciteDialogClose=${() => this.arcgisClose.emit()} .heading=${t?.length === 1 ? e.deleteField : e.deleteFields} ${I(this.dialogNode)}>${this._propWatcherTask.render({
323
+ pending: () => c`<div class="dialog-content-wrapper hide-overflow"><div class="loader-container active"><calcite-loader class="loader" .label=${e.fields}></calcite-loader></div></div>`,
324
+ error: () => c`<div class="dialog-content-wrapper">${this.renderError()}</div>`,
325
+ complete: () => (s || (t?.length ? t?.length === 1 ? y("error", this, "Field cannot be deleted") : y("error", this, "One or more fields cannot be deleted") : y("error", this, V("fieldNames"))), s ? c`<div class=${`dialog-content-wrapper ${l ? "hide-overflow" : ""}`}>${this.renderDeleteLoader()}<calcite-label>${t.length === 1 ? e.deletePrompt : e.deleteMultiplePrompt}</calcite-label>${this.renderFieldsPreview()}</div>${this.renderCancelButton()}${this.renderDeleteButton()}` : c`<div class="dialog-content-wrapper">${this.renderError()}</div>`)
326
+ })}</calcite-dialog>`;
341
327
  }
342
328
  renderError() {
343
329
  const { messages: e } = this;
344
- return f`<div class="loader-container active"><div class="loader-text">${e.errorOccurred}</div></div>`;
330
+ return c`<div class="loader-container active"><div class="loader-text">${e.errorOccurred}</div></div>`;
345
331
  }
346
332
  renderDeleteLoader() {
347
333
  const { messages: e, fieldNames: s, deleteInProgress: t } = this;
348
- return f`<div class=${`loader-container ${t ? "active" : ""}`}><calcite-loader class="loader" .label=${s.length === 1 ? e.deletingField : e.deletingFields} .hidden=${!t}></calcite-loader><div class="loader-text">${s.length === 1 ? e.deletingField : e.deletingFields}</div></div>`;
334
+ return c`<div class=${`loader-container ${t ? "active" : ""}`}><calcite-loader class="loader" .label=${s.length === 1 ? e.deletingField : e.deletingFields} .hidden=${!t}></calcite-loader><div class="loader-text">${s.length === 1 ? e.deletingField : e.deletingFields}</div></div>`;
349
335
  }
350
336
  renderFieldsPreview() {
351
337
  const { fieldNames: e, layerFields: s, layerFieldsMap: t, arcadeExpMap: l, messages: o } = this;
352
- return f`<calcite-list .label=${o.fields}>${e.map((a) => {
353
- const g = s.find((h) => h.name === a);
354
- return f`<calcite-list-item .label=${this.getFieldLabel(a)} .description=${`{${a}}`} .value=${a} .disabled=${!g.editable}><div slot=actions-end class="field-icons">${H({ fieldType: W(a, t, l) })}</div></calcite-list-item>`;
338
+ return c`<calcite-list .label=${o.fields}>${e.map((a) => {
339
+ const f = s.find((h) => h.name === a);
340
+ return c`<calcite-list-item .label=${this.getFieldLabel(a)} .description=${`{${a}}`} .value=${a} .disabled=${!f.editable}><div slot=actions-end class="field-icons">${J({ fieldType: R(a, t, l) })}</div></calcite-list-item>`;
355
341
  })}</calcite-list>`;
356
342
  }
357
343
  renderCancelButton() {
358
344
  const { messages: e } = this;
359
- return f`<calcite-button @click=${() => this.dialogNode.value.open = !1} slot=footer-end appearance=outline ${D(this.cancelNode)}>${e.cancel}</calcite-button>`;
345
+ return c`<calcite-button @click=${() => this.dialogNode.value.open = !1} slot=footer-end appearance=outline ${I(this.cancelNode)}>${e.cancel}</calcite-button>`;
360
346
  }
361
347
  renderDeleteButton() {
362
348
  const { messages: e, fieldNames: s } = this;
363
- return f`<calcite-button kind=danger slot=footer-end @click=${async (t) => {
349
+ return c`<calcite-button kind=danger slot=footer-end @click=${async (t) => {
364
350
  const { portal: l } = this;
365
351
  t.currentTarget.disabled = !0, this.cancelNode.value.disabled = !0, this.dialogNode.value.closeDisabled = !0, l.sourceJSON?.isReadOnly ? this.handleError(!0) : (this.deleteInProgress = !0, this.requestUpdate(), this.arcgisBeforeDelete.emit(), await this.deleteFields());
366
352
  }}>${s.length === 1 ? e.deleteField : e.deleteFieldsWithNumber.replace("${number}", `${s.length}`)}</calcite-button>`;
367
353
  }
368
354
  }
369
- k("arcgis-portal-field-delete", X);
355
+ C("arcgis-portal-field-delete", K);
370
356
  export {
371
- X as ArcgisPortalFieldDelete
357
+ K as ArcgisPortalFieldDelete
372
358
  };
@@ -2,8 +2,8 @@ import "@esri/calcite-components/components/calcite-icon";
2
2
  import "@esri/calcite-components/components/calcite-alert";
3
3
  import "@esri/calcite-components/components/calcite-link";
4
4
  import "@esri/calcite-components/components/calcite-dialog";
5
- import "@esri/calcite-components/components/calcite-label";
6
5
  import "@esri/calcite-components/components/calcite-loader";
6
+ import "@esri/calcite-components/components/calcite-label";
7
7
  import "@esri/calcite-components/components/calcite-list";
8
8
  import "@esri/calcite-components/components/calcite-list-item";
9
9
  import "@esri/calcite-components/components/calcite-button";
@@ -1,13 +1,13 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import { c as h } from "../../chunks/runtime.js";
3
- import { nothing as g, safeClassMap as m, LitElement as u } from "@arcgis/lumina";
2
+ import { c as g } from "../../chunks/runtime.js";
3
+ import { nothing as h, safeClassMap as m, LitElement as u } from "@arcgis/lumina";
4
4
  import { u as b } from "../../chunks/useT9n.js";
5
5
  import { html as c, css as f } from "lit";
6
6
  import { i as w } from "../../chunks/functionalities.js";
7
- import { a as $, b as x, c as G, i as y, d as I, e as O } from "../../chunks/groups2.js";
7
+ import { g as $, a as x, b as G, i as y, c as I, d as O } from "../../chunks/groups.js";
8
8
  const C = ({ appearance: a, badgeType: t, class: e, messages: s, scale: o, showTooltip: i, width: n }) => {
9
9
  const r = s[t] ?? { title: t, tooltip: "" }, d = v[t], l = n === "narrow", p = `portal-group-badge-${t}`;
10
- return c`<calcite-chip id=${p ?? g} class=${m({
10
+ return c`<calcite-chip id=${p ?? h} class=${m({
11
11
  badge: !0,
12
12
  "badge--colored": w(["OpenData", "Partnered"], t),
13
13
  narrow: l,
@@ -45,7 +45,7 @@ class _ extends u {
45
45
  return e.map((n) => C({ appearance: t, badgeType: n, class: "portal-group-badges__badge", messages: this._messages, scale: s, showTooltip: o, width: i }));
46
46
  }
47
47
  }
48
- h("arcgis-portal-group-badges", _);
48
+ g("arcgis-portal-group-badges", _);
49
49
  export {
50
50
  _ as ArcgisPortalGroupBadges
51
51
  };