@arcgis/portal-components 5.2.0-next.3 → 5.2.0-next.31

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 (195) hide show
  1. package/dist/cdn/25UUUQAQ.js +71 -0
  2. package/dist/cdn/2MV6L7TF.js +2 -0
  3. package/dist/cdn/2XILGLOG.js +2 -0
  4. package/dist/cdn/{AQWTJKUH.js → 3MQIRMUM.js} +9 -7
  5. package/dist/cdn/3XVBYE54.js +2 -0
  6. package/dist/cdn/3ZYTCYNE.js +2 -0
  7. package/dist/cdn/{LAFNDBTQ.js → 43IIAMZ3.js} +1 -1
  8. package/dist/cdn/{QNUYUNEY.js → 4YGBHWHG.js} +1 -1
  9. package/dist/cdn/5H4VCRNA.js +2 -0
  10. package/dist/cdn/6AGZRMJC.js +2 -0
  11. package/dist/cdn/6KRP5D52.js +2 -0
  12. package/dist/cdn/6W2IHKCA.js +2 -0
  13. package/dist/cdn/{LQ3DMZ3K.js → 6XWNBD36.js} +1 -1
  14. package/dist/cdn/7355NM43.js +2 -0
  15. package/dist/cdn/7LC4ZEXB.js +2 -0
  16. package/dist/cdn/ADC752YM.js +2 -0
  17. package/dist/cdn/AX5KYSWU.js +2 -0
  18. package/dist/cdn/BTYTNPSM.js +2 -0
  19. package/dist/cdn/BUPFZ5MT.js +2 -0
  20. package/dist/cdn/DFTUMKSN.js +3 -0
  21. package/dist/cdn/DWPIXEWQ.js +2 -0
  22. package/dist/cdn/E67OMPRM.js +2 -0
  23. package/dist/cdn/ECNI2A4K.js +2 -0
  24. package/dist/cdn/EIOSA4DR.js +2 -0
  25. package/dist/cdn/EZ3BR2FP.js +134 -0
  26. package/dist/cdn/G2YAOSMT.js +2 -0
  27. package/dist/cdn/G6YH7AFY.js +2 -0
  28. package/dist/cdn/GNBMYDRC.js +2 -0
  29. package/dist/cdn/H6QISDOR.js +2 -0
  30. package/dist/cdn/HA2J6NDT.js +2 -0
  31. package/dist/cdn/HMBSJR37.js +2 -0
  32. package/dist/cdn/HVF4Z3VA.js +2 -0
  33. package/dist/cdn/{V2EOXGK2.js → I234NUZ5.js} +1 -1
  34. package/dist/cdn/IILAKXVC.js +65 -0
  35. package/dist/cdn/J2KLHUBJ.js +2 -0
  36. package/dist/cdn/JEXN44WM.js +2 -0
  37. package/dist/cdn/KDDYAFAF.js +637 -0
  38. package/dist/cdn/{ZTHTFEYA.js → KPEWVVE5.js} +1 -1
  39. package/dist/cdn/MM6SCKYE.js +2 -0
  40. package/dist/cdn/NWIIOJEG.js +2 -0
  41. package/dist/cdn/NZVLEDFZ.js +2 -0
  42. package/dist/cdn/OU2AR22N.js +3 -0
  43. package/dist/cdn/Q22FWLJZ.js +2 -0
  44. package/dist/cdn/QUEBM77K.js +2 -0
  45. package/dist/cdn/QUMJ5FTJ.js +2 -0
  46. package/dist/cdn/S5XNEB7F.js +99 -0
  47. package/dist/cdn/S745KWLM.js +34 -0
  48. package/dist/cdn/{GT26WGJS.js → SXZRHHXC.js} +1 -1
  49. package/dist/cdn/T6JAFB2A.js +2 -0
  50. package/dist/cdn/{72N3KAXN.js → TW4LFQA5.js} +1 -1
  51. package/dist/cdn/U3FVMN32.js +2 -0
  52. package/dist/cdn/ULD747OT.js +22 -0
  53. package/dist/cdn/{7WZHZP6U.js → UR7W4CEV.js} +8 -2
  54. package/dist/cdn/V7LZAIB6.js +2 -0
  55. package/dist/cdn/{W6PSG4GX.js → VRXKORTR.js} +9 -4
  56. package/dist/cdn/VSAH76S7.js +2 -0
  57. package/dist/cdn/{2UUZHENH.js → WSNLUGEP.js} +1 -1
  58. package/dist/cdn/{53MSUMA3.js → XCZSPNKS.js} +16 -0
  59. package/dist/cdn/{WOZDQW3S.js → XHM6I6YG.js} +1 -1
  60. package/dist/cdn/XNZQ5PXA.js +2 -0
  61. package/dist/cdn/YCAVVVZV.js +2 -0
  62. package/dist/cdn/YHXXIHQA.js +2 -0
  63. package/dist/cdn/Z2ZUXONU.js +2 -0
  64. package/dist/cdn/{DHHSKOUY.js → ZZ4DR3HN.js} +1 -1
  65. package/dist/cdn/assets/portal-browser/t9n/messages.en.json +1 -0
  66. package/dist/cdn/assets/portal-group-badges/t9n/messages.en.json +1 -0
  67. package/dist/cdn/assets/portal-group-card/t9n/messages.en.json +1 -0
  68. package/dist/cdn/assets/portal-item-type/icons/parquetfeaturelayer16.svg +1 -0
  69. package/dist/cdn/assets/portal-item-type/icons/parquetfeaturelayer32.svg +1 -0
  70. package/dist/cdn/assets/portal-item-type/icons/storymapframe16.svg +1 -0
  71. package/dist/cdn/assets/portal-item-type/icons/storymapframe32.svg +1 -0
  72. package/dist/cdn/assets/portal-item-type/t9n/messages.en.json +1 -1
  73. package/dist/cdn/assets/portal-user-popup/t9n/messages.en.json +1 -0
  74. package/dist/cdn/index.js +1 -1
  75. package/dist/cdn/main.css +1 -1
  76. package/dist/chunks/dom.js +36 -0
  77. package/dist/chunks/functionalities.js +5 -4
  78. package/dist/chunks/groups.js +7 -83
  79. package/dist/chunks/item2.js +86 -0
  80. package/dist/chunks/portal.js +48 -8
  81. package/dist/chunks/store.js +18 -0
  82. package/dist/chunks/ui.js +10 -0
  83. package/dist/chunks/user2.js +26 -25
  84. package/dist/components/arcgis-portal-ai-assistant/agents/types.d.ts +11 -2
  85. package/dist/components/arcgis-portal-ai-assistant/customElement.d.ts +4 -2
  86. package/dist/components/arcgis-portal-ai-assistant/customElement.js +797 -488
  87. package/dist/components/arcgis-portal-ai-assistant-interrupt/customElement.js +10 -10
  88. package/dist/components/arcgis-portal-browser/customElement.d.ts +235 -0
  89. package/dist/components/arcgis-portal-browser/customElement.js +201 -0
  90. package/dist/components/arcgis-portal-browser/index.d.ts +1 -0
  91. package/dist/components/arcgis-portal-browser/index.js +6 -0
  92. package/dist/components/arcgis-portal-browser/utils/store.d.ts +31 -0
  93. package/dist/components/arcgis-portal-browser/utils/types.d.ts +18 -0
  94. package/dist/components/arcgis-portal-browser-actions/customElement.d.ts +187 -0
  95. package/dist/components/arcgis-portal-browser-actions/customElement.js +70 -0
  96. package/dist/components/arcgis-portal-browser-actions/index.d.ts +1 -0
  97. package/dist/components/arcgis-portal-browser-actions/index.js +6 -0
  98. package/dist/components/arcgis-portal-browser-actions/types.d.ts +9 -0
  99. package/dist/components/arcgis-portal-browser-filter/customElement.d.ts +226 -0
  100. package/dist/components/arcgis-portal-browser-filter/customElement.js +32 -0
  101. package/dist/components/arcgis-portal-browser-filter/index.d.ts +1 -0
  102. package/dist/components/arcgis-portal-browser-filter/index.js +4 -0
  103. package/dist/components/arcgis-portal-browser-filter-date/customElement.d.ts +233 -0
  104. package/dist/components/arcgis-portal-browser-filter-date/customElement.js +117 -0
  105. package/dist/components/arcgis-portal-browser-filter-date/index.d.ts +1 -0
  106. package/dist/components/arcgis-portal-browser-filter-date/index.js +5 -0
  107. package/dist/components/arcgis-portal-browser-filter-status/customElement.d.ts +193 -0
  108. package/dist/components/arcgis-portal-browser-filter-status/customElement.js +56 -0
  109. package/dist/components/arcgis-portal-browser-filter-status/index.d.ts +1 -0
  110. package/dist/components/arcgis-portal-browser-filter-status/index.js +5 -0
  111. package/dist/components/arcgis-portal-browser-filters/customElement.d.ts +7 -0
  112. package/dist/components/arcgis-portal-browser-filters/customElement.js +29 -0
  113. package/dist/components/arcgis-portal-browser-filters/index.d.ts +1 -0
  114. package/dist/components/arcgis-portal-browser-filters/index.js +2 -0
  115. package/dist/components/arcgis-portal-browser-pagination/customElement.d.ts +194 -0
  116. package/dist/components/arcgis-portal-browser-pagination/customElement.js +51 -0
  117. package/dist/components/arcgis-portal-browser-pagination/index.d.ts +1 -0
  118. package/dist/components/arcgis-portal-browser-pagination/index.js +2 -0
  119. package/dist/components/arcgis-portal-browser-search/customElement.d.ts +195 -0
  120. package/dist/components/arcgis-portal-browser-search/customElement.js +65 -0
  121. package/dist/components/arcgis-portal-browser-search/index.d.ts +1 -0
  122. package/dist/components/arcgis-portal-browser-search/index.js +3 -0
  123. package/dist/components/arcgis-portal-browser-sort/customElement.d.ts +196 -0
  124. package/dist/components/arcgis-portal-browser-sort/customElement.js +93 -0
  125. package/dist/components/arcgis-portal-browser-sort/index.d.ts +1 -0
  126. package/dist/components/arcgis-portal-browser-sort/index.js +9 -0
  127. package/dist/components/arcgis-portal-browser-sort/utils.d.ts +3 -0
  128. package/dist/components/arcgis-portal-browser-top-bar/customElement.d.ts +184 -0
  129. package/dist/components/arcgis-portal-browser-top-bar/customElement.js +51 -0
  130. package/dist/components/arcgis-portal-browser-top-bar/index.d.ts +1 -0
  131. package/dist/components/arcgis-portal-browser-top-bar/index.js +3 -0
  132. package/dist/components/arcgis-portal-browser-view/customElement.d.ts +21 -0
  133. package/dist/components/arcgis-portal-browser-view/customElement.js +30 -0
  134. package/dist/components/arcgis-portal-browser-view/index.d.ts +1 -0
  135. package/dist/components/arcgis-portal-browser-view/index.js +5 -0
  136. package/dist/components/arcgis-portal-group-badges/customElement.d.ts +102 -0
  137. package/dist/components/arcgis-portal-group-badges/customElement.js +50 -0
  138. package/dist/components/arcgis-portal-group-badges/index.d.ts +1 -0
  139. package/dist/components/arcgis-portal-group-badges/index.js +3 -0
  140. package/dist/components/arcgis-portal-group-badges/types.d.ts +3 -0
  141. package/dist/components/arcgis-portal-group-card/customElement.d.ts +167 -0
  142. package/dist/components/arcgis-portal-group-card/customElement.js +183 -0
  143. package/dist/components/arcgis-portal-group-card/index.d.ts +1 -0
  144. package/dist/components/arcgis-portal-group-card/index.js +8 -0
  145. package/dist/components/arcgis-portal-group-thumbnail/customElement.d.ts +32 -0
  146. package/dist/components/arcgis-portal-group-thumbnail/customElement.js +153 -0
  147. package/dist/components/arcgis-portal-group-thumbnail/index.d.ts +1 -0
  148. package/dist/components/arcgis-portal-group-thumbnail/index.js +3 -0
  149. package/dist/components/arcgis-portal-item-type/customElement.d.ts +2 -0
  150. package/dist/components/arcgis-portal-item-type/customElement.js +45 -37
  151. package/dist/components/arcgis-portal-mentionable-text-area/customElement.js +1 -1
  152. package/dist/components/arcgis-portal-replacement-item-redirect/customElement.js +53 -42
  153. package/dist/components/arcgis-portal-user-popup/customElement.d.ts +111 -0
  154. package/dist/components/arcgis-portal-user-popup/customElement.js +224 -0
  155. package/dist/components/arcgis-portal-user-popup/index.d.ts +1 -0
  156. package/dist/components/arcgis-portal-user-popup/index.js +5 -0
  157. package/dist/components/arcgis-portal-voice-input/customElement.d.ts +1 -1
  158. package/dist/docs/api.json +1 -1
  159. package/dist/docs/docs.json +1 -1
  160. package/dist/docs/vscode.html-custom-data.json +1 -1
  161. package/dist/docs/web-types.json +1 -1
  162. package/dist/index.d.ts +122 -2
  163. package/dist/loader.js +19 -4
  164. package/dist/types/group.d.ts +13 -13
  165. package/dist/types/item.d.ts +77 -2
  166. package/dist/types/lumina.d.ts +93 -1
  167. package/dist/types/preact.d.ts +108 -1
  168. package/dist/types/react.d.ts +123 -1
  169. package/dist/types/search.d.ts +27 -0
  170. package/dist/types/stencil.d.ts +93 -1
  171. package/dist/types/tracking.d.ts +10 -0
  172. package/dist/types/user.d.ts +2 -2
  173. package/package.json +7 -7
  174. package/dist/cdn/5DPWJ7DI.js +0 -2
  175. package/dist/cdn/5VSDGPHH.js +0 -2
  176. package/dist/cdn/ANPXRYLV.js +0 -5
  177. package/dist/cdn/BEHLBKKM.js +0 -2
  178. package/dist/cdn/CI5ENGVT.js +0 -2
  179. package/dist/cdn/EVDOPN3G.js +0 -54
  180. package/dist/cdn/G47ZZQYL.js +0 -2
  181. package/dist/cdn/GAHILDQF.js +0 -45
  182. package/dist/cdn/GHQ3ZW4U.js +0 -2
  183. package/dist/cdn/GNOZCQ34.js +0 -2
  184. package/dist/cdn/JNRN6DTV.js +0 -2
  185. package/dist/cdn/K3HS2LQ7.js +0 -2
  186. package/dist/cdn/KEKBRUUC.js +0 -2
  187. package/dist/cdn/N6G6Z7BF.js +0 -516
  188. package/dist/cdn/OQDPULPD.js +0 -2
  189. package/dist/cdn/RNLVNDGG.js +0 -2
  190. package/dist/cdn/SM4GWLRA.js +0 -66
  191. package/dist/cdn/TMYTUOSS.js +0 -2
  192. package/dist/cdn/YG5YYL6X.js +0 -2
  193. package/dist/cdn/YL7PGYWC.js +0 -5
  194. package/dist/cdn/YMPTDKT6.js +0 -2
  195. /package/dist/cdn/{B7633S2A.js → 5NIJVBS7.js} +0 -0
@@ -1,21 +1,36 @@
1
1
  /// <reference types="../index.d.ts" />
2
2
  import type { ArcgisPortalAiAssistant } from "../components/arcgis-portal-ai-assistant/customElement.js";
3
3
  import type { ArcgisPortalAiAssistantInterrupt } from "../components/arcgis-portal-ai-assistant-interrupt/customElement.js";
4
+ import type { ArcgisPortalBrowser } from "../components/arcgis-portal-browser/customElement.js";
5
+ import type { ArcgisPortalBrowserActions } from "../components/arcgis-portal-browser-actions/customElement.js";
6
+ import type { ArcgisPortalBrowserFilter } from "../components/arcgis-portal-browser-filter/customElement.js";
7
+ import type { ArcgisPortalBrowserFilterDate } from "../components/arcgis-portal-browser-filter-date/customElement.js";
8
+ import type { ArcgisPortalBrowserFilterStatus } from "../components/arcgis-portal-browser-filter-status/customElement.js";
9
+ import type { ArcgisPortalBrowserFilters } from "../components/arcgis-portal-browser-filters/customElement.js";
10
+ import type { ArcgisPortalBrowserPagination } from "../components/arcgis-portal-browser-pagination/customElement.js";
11
+ import type { ArcgisPortalBrowserSearch } from "../components/arcgis-portal-browser-search/customElement.js";
12
+ import type { ArcgisPortalBrowserSort } from "../components/arcgis-portal-browser-sort/customElement.js";
13
+ import type { ArcgisPortalBrowserTopBar } from "../components/arcgis-portal-browser-top-bar/customElement.js";
14
+ import type { ArcgisPortalBrowserView } from "../components/arcgis-portal-browser-view/customElement.js";
4
15
  import type { ArcgisPortalClassificationBanner } from "../components/arcgis-portal-classification-banner/customElement.js";
5
16
  import type { ArcgisPortalClassificationConfig } from "../components/arcgis-portal-classification-config/customElement.js";
6
17
  import type { ArcgisPortalClassificationFavorite } from "../components/arcgis-portal-classification-favorite/customElement.js";
7
18
  import type { ArcgisPortalClassificationFormElement } from "../components/arcgis-portal-classification-form-element/customElement.js";
8
19
  import type { ArcgisPortalExtentPicker } from "../components/arcgis-portal-extent-picker/customElement.js";
9
20
  import type { ArcgisPortalFieldDelete } from "../components/arcgis-portal-field-delete/customElement.js";
21
+ import type { ArcgisPortalGroupBadges } from "../components/arcgis-portal-group-badges/customElement.js";
22
+ import type { ArcgisPortalGroupCard } from "../components/arcgis-portal-group-card/customElement.js";
23
+ import type { ArcgisPortalGroupThumbnail } from "../components/arcgis-portal-group-thumbnail/customElement.js";
10
24
  import type { ArcgisPortalItemType } from "../components/arcgis-portal-item-type/customElement.js";
11
25
  import type { ArcgisPortalMentionableTextArea } from "../components/arcgis-portal-mentionable-text-area/customElement.js";
12
26
  import type { ArcgisPortalReplacementItemRedirect } from "../components/arcgis-portal-replacement-item-redirect/customElement.js";
13
27
  import type { ArcgisPortalUserAvatar } from "../components/arcgis-portal-user-avatar/customElement.js";
28
+ import type { ArcgisPortalUserPopup } from "../components/arcgis-portal-user-popup/customElement.js";
14
29
  import type { ArcgisPortalVoiceInput } from "../components/arcgis-portal-voice-input/customElement.js";
15
30
  import type { HTMLProps } from 'react';
16
31
  import type { EventHandler } from "@arcgis/lumina";
17
32
 
18
- interface ReactArcgisPortalAiAssistant extends Partial<Pick<ArcgisPortalAiAssistant, "autoDestroyDisabled" | "config" | "defaultClosed" | "portal" | "user">>, HTMLProps<ArcgisPortalAiAssistant> {
33
+ interface ReactArcgisPortalAiAssistant extends Partial<Pick<ArcgisPortalAiAssistant, "autoDestroyDisabled" | "config" | "defaultClosed" | "navigationTargetMap" | "portal" | "user">>, HTMLProps<ArcgisPortalAiAssistant> {
19
34
  onarcgisPortalNavigationRequest?: EventHandler<ArcgisPortalAiAssistant["arcgisPortalNavigationRequest"]>;
20
35
  }
21
36
 
@@ -24,6 +39,51 @@ interface ReactArcgisPortalAiAssistantInterrupt extends Partial<Pick<ArcgisPorta
24
39
  onarcgisSubmit?: EventHandler<ArcgisPortalAiAssistantInterrupt["arcgisSubmit"]>;
25
40
  }
26
41
 
42
+ interface ReactArcgisPortalBrowser extends Partial<Pick<ArcgisPortalBrowser, "alwaysShowContent" | "alwaysShowPagination" | "alwaysShowSelection" | "api" | "formFactor" | "height" | "hideContentTop" | "hideFilters" | "hideTopBar" | "loading" | "panel" | "preview" | "rangeFormatter" | "response" | "searchTerm" | "selected" | "showPreSearch" | "store">>, HTMLProps<ArcgisPortalBrowser> {
43
+ onarcgisAriaUpdate?: EventHandler<ArcgisPortalBrowser["arcgisAriaUpdate"]>;
44
+ onariaUpdate?: EventHandler<ArcgisPortalBrowser["ariaUpdate"]>;
45
+ }
46
+
47
+ interface ReactArcgisPortalBrowserActions extends Partial<Pick<ArcgisPortalBrowserActions, "actions" | "selection">>, HTMLProps<ArcgisPortalBrowserActions> {
48
+ }
49
+
50
+ interface ReactArcgisPortalBrowserFilter extends Partial<Pick<ArcgisPortalBrowserFilter, "active" | "clearDisabled" | "expanded" | "filterId" | "heading" | "noPadding" | "primary">>, HTMLProps<ArcgisPortalBrowserFilter> {
51
+ onarcgisBrowserFilterRemove?: EventHandler<ArcgisPortalBrowserFilter["arcgisBrowserFilterRemove"]>;
52
+ }
53
+
54
+ interface ReactArcgisPortalBrowserFilterDate extends Partial<Pick<ArcgisPortalBrowserFilterDate, "end" | "expanded" | "includeNever" | "property" | "range" | "serverProperty" | "start" | "store">>, HTMLProps<ArcgisPortalBrowserFilterDate> {
55
+ onarcgisBrowserFilter?: EventHandler<ArcgisPortalBrowserFilterDate["arcgisBrowserFilter"]>;
56
+ }
57
+
58
+ interface ReactArcgisPortalBrowserFilterStatus extends Partial<Pick<ArcgisPortalBrowserFilterStatus, "browserWidth" | "componentWidth" | "filters" | "hiddenFilterIds">>, HTMLProps<ArcgisPortalBrowserFilterStatus> {
59
+ onarcgisBrowserFilterClear?: EventHandler<ArcgisPortalBrowserFilterStatus["arcgisBrowserFilterClear"]>;
60
+ onarcgisBrowserFilterRemove?: EventHandler<ArcgisPortalBrowserFilterStatus["arcgisBrowserFilterRemove"]>;
61
+ }
62
+
63
+ interface ReactArcgisPortalBrowserFilters extends Partial<Pick<ArcgisPortalBrowserFilters, "store">>, HTMLProps<ArcgisPortalBrowserFilters> {
64
+ }
65
+
66
+ interface ReactArcgisPortalBrowserPagination extends Partial<Pick<ArcgisPortalBrowserPagination, "num" | "start" | "store" | "total">>, HTMLProps<ArcgisPortalBrowserPagination> {
67
+ onarcgisBrowserPage?: EventHandler<ArcgisPortalBrowserPagination["arcgisBrowserPage"]>;
68
+ }
69
+
70
+ interface ReactArcgisPortalBrowserSearch extends Partial<Pick<ArcgisPortalBrowserSearch, "allowClear" | "placeholder" | "store" | "term">>, HTMLProps<ArcgisPortalBrowserSearch> {
71
+ onarcgisBrowserSearch?: EventHandler<ArcgisPortalBrowserSearch["arcgisBrowserSearch"]>;
72
+ onarcgisBrowserSearchInput?: EventHandler<ArcgisPortalBrowserSearch["arcgisBrowserSearchInput"]>;
73
+ }
74
+
75
+ interface ReactArcgisPortalBrowserSort extends Partial<Pick<ArcgisPortalBrowserSort, "appearance" | "field" | "options" | "order" | "showText" | "useDeleted">>, HTMLProps<ArcgisPortalBrowserSort> {
76
+ onarcgisBrowserSortFieldChange?: EventHandler<ArcgisPortalBrowserSort["arcgisBrowserSortFieldChange"]>;
77
+ onarcgisBrowserSortOrderChange?: EventHandler<ArcgisPortalBrowserSort["arcgisBrowserSortOrderChange"]>;
78
+ }
79
+
80
+ interface ReactArcgisPortalBrowserTopBar extends Partial<Pick<ArcgisPortalBrowserTopBar, "filtersDisabled" | "store">>, HTMLProps<ArcgisPortalBrowserTopBar> {
81
+ }
82
+
83
+ interface ReactArcgisPortalBrowserView extends Partial<Pick<ArcgisPortalBrowserView, "options" | "store" | "view" | "viewText">>, HTMLProps<ArcgisPortalBrowserView> {
84
+ onarcgisBrowserViewChange?: EventHandler<ArcgisPortalBrowserView["arcgisBrowserViewChange"]>;
85
+ }
86
+
27
87
  interface ReactArcgisPortalClassificationBanner extends Partial<Pick<ArcgisPortalClassificationBanner, "missingExistingClassification" | "portalItem" | "validationErrors" | "variant">>, HTMLProps<ArcgisPortalClassificationBanner> {
28
88
  }
29
89
 
@@ -51,6 +111,18 @@ interface ReactArcgisPortalFieldDelete extends Partial<Pick<ArcgisPortalFieldDel
51
111
  onarcgisFieldsDeleted?: EventHandler<ArcgisPortalFieldDelete["arcgisFieldsDeleted"]>;
52
112
  }
53
113
 
114
+ interface ReactArcgisPortalGroupBadges extends Partial<Pick<ArcgisPortalGroupBadges, "appearance" | "empty" | "group" | "portal" | "scale" | "showTooltips" | "width">>, HTMLProps<ArcgisPortalGroupBadges> {
115
+ }
116
+
117
+ interface ReactArcgisPortalGroupCard extends Partial<Pick<ArcgisPortalGroupCard, "disabled" | "group" | "indeterminate" | "link" | "linkHandler" | "name" | "newTab" | "portal" | "preview" | "previewed" | "selected" | "selection" | "showBadges" | "showDateCreated" | "showDateUpdated" | "showOwner" | "showSummary" | "showViewableBy" | "user" | "view">>, HTMLProps<ArcgisPortalGroupCard> {
118
+ onarcgisGroupBrowserCardPreview?: EventHandler<ArcgisPortalGroupCard["arcgisGroupBrowserCardPreview"]>;
119
+ onarcgisGroupBrowserInternalUIAction?: EventHandler<ArcgisPortalGroupCard["arcgisGroupBrowserInternalUIAction"]>;
120
+ onarcgisGroupCardSelect?: EventHandler<ArcgisPortalGroupCard["arcgisGroupCardSelect"]>;
121
+ }
122
+
123
+ interface ReactArcgisPortalGroupThumbnail extends Partial<Pick<ArcgisPortalGroupThumbnail, "group" | "portal" | "scale" | "tooltip">>, HTMLProps<ArcgisPortalGroupThumbnail> {
124
+ }
125
+
54
126
  interface ReactArcgisPortalItemType extends Partial<Pick<ArcgisPortalItemType, "ellipsis" | "hideIcon" | "hideText" | "item" | "portal" | "scale" | "serviceInfo" | "showHosted" | "user">>, HTMLProps<ArcgisPortalItemType> {
55
127
  }
56
128
 
@@ -69,6 +141,11 @@ interface ReactArcgisPortalReplacementItemRedirect extends Partial<Pick<ArcgisPo
69
141
  interface ReactArcgisPortalUserAvatar extends Partial<Pick<ArcgisPortalUserAvatar, "checkOnline" | "description" | "heading" | "hideAvatar" | "portal" | "scale" | "showName" | "underline" | "user" | "username" | "wrap">>, HTMLProps<ArcgisPortalUserAvatar> {
70
142
  }
71
143
 
144
+ interface ReactArcgisPortalUserPopup extends Partial<Pick<ArcgisPortalUserPopup, "appearance" | "avatarAriaHidden" | "baseUrl" | "checkOnline" | "fullName" | "item" | "portal" | "scale" | "showAvatar" | "showName" | "showUsername" | "underline" | "user" | "username" | "wrap" | "zIndex">>, HTMLProps<ArcgisPortalUserPopup> {
145
+ onarcgisUserPopupClose?: EventHandler<ArcgisPortalUserPopup["arcgisUserPopupClose"]>;
146
+ onarcgisUserPopupInternalUIAction?: EventHandler<ArcgisPortalUserPopup["arcgisUserPopupInternalUIAction"]>;
147
+ }
148
+
72
149
  interface ReactArcgisPortalVoiceInput extends Partial<Pick<ArcgisPortalVoiceInput, "language">>, HTMLProps<ArcgisPortalVoiceInput> {
73
150
  onarcgisVoiceInputError?: EventHandler<ArcgisPortalVoiceInput["arcgisVoiceInputError"]>;
74
151
  onarcgisVoiceInputInterimTranscription?: EventHandler<ArcgisPortalVoiceInput["arcgisVoiceInputInterimTranscription"]>;
@@ -82,16 +159,31 @@ declare module "react" {
82
159
  interface IntrinsicElements {
83
160
  "arcgis-portal-ai-assistant": ReactArcgisPortalAiAssistant;
84
161
  "arcgis-portal-ai-assistant-interrupt": ReactArcgisPortalAiAssistantInterrupt;
162
+ "arcgis-portal-browser": ReactArcgisPortalBrowser;
163
+ "arcgis-portal-browser-actions": ReactArcgisPortalBrowserActions;
164
+ "arcgis-portal-browser-filter": ReactArcgisPortalBrowserFilter;
165
+ "arcgis-portal-browser-filter-date": ReactArcgisPortalBrowserFilterDate;
166
+ "arcgis-portal-browser-filter-status": ReactArcgisPortalBrowserFilterStatus;
167
+ "arcgis-portal-browser-filters": ReactArcgisPortalBrowserFilters;
168
+ "arcgis-portal-browser-pagination": ReactArcgisPortalBrowserPagination;
169
+ "arcgis-portal-browser-search": ReactArcgisPortalBrowserSearch;
170
+ "arcgis-portal-browser-sort": ReactArcgisPortalBrowserSort;
171
+ "arcgis-portal-browser-top-bar": ReactArcgisPortalBrowserTopBar;
172
+ "arcgis-portal-browser-view": ReactArcgisPortalBrowserView;
85
173
  "arcgis-portal-classification-banner": ReactArcgisPortalClassificationBanner;
86
174
  "arcgis-portal-classification-config": ReactArcgisPortalClassificationConfig;
87
175
  "arcgis-portal-classification-favorite": ReactArcgisPortalClassificationFavorite;
88
176
  "arcgis-portal-classification-form-element": ReactArcgisPortalClassificationFormElement;
89
177
  "arcgis-portal-extent-picker": ReactArcgisPortalExtentPicker;
90
178
  "arcgis-portal-field-delete": ReactArcgisPortalFieldDelete;
179
+ "arcgis-portal-group-badges": ReactArcgisPortalGroupBadges;
180
+ "arcgis-portal-group-card": ReactArcgisPortalGroupCard;
181
+ "arcgis-portal-group-thumbnail": ReactArcgisPortalGroupThumbnail;
91
182
  "arcgis-portal-item-type": ReactArcgisPortalItemType;
92
183
  "arcgis-portal-mentionable-text-area": ReactArcgisPortalMentionableTextArea;
93
184
  "arcgis-portal-replacement-item-redirect": ReactArcgisPortalReplacementItemRedirect;
94
185
  "arcgis-portal-user-avatar": ReactArcgisPortalUserAvatar;
186
+ "arcgis-portal-user-popup": ReactArcgisPortalUserPopup;
95
187
  "arcgis-portal-voice-input": ReactArcgisPortalVoiceInput;
96
188
  }
97
189
  }
@@ -101,16 +193,31 @@ declare module "react/jsx-runtime" {
101
193
  interface IntrinsicElements {
102
194
  "arcgis-portal-ai-assistant": ReactArcgisPortalAiAssistant;
103
195
  "arcgis-portal-ai-assistant-interrupt": ReactArcgisPortalAiAssistantInterrupt;
196
+ "arcgis-portal-browser": ReactArcgisPortalBrowser;
197
+ "arcgis-portal-browser-actions": ReactArcgisPortalBrowserActions;
198
+ "arcgis-portal-browser-filter": ReactArcgisPortalBrowserFilter;
199
+ "arcgis-portal-browser-filter-date": ReactArcgisPortalBrowserFilterDate;
200
+ "arcgis-portal-browser-filter-status": ReactArcgisPortalBrowserFilterStatus;
201
+ "arcgis-portal-browser-filters": ReactArcgisPortalBrowserFilters;
202
+ "arcgis-portal-browser-pagination": ReactArcgisPortalBrowserPagination;
203
+ "arcgis-portal-browser-search": ReactArcgisPortalBrowserSearch;
204
+ "arcgis-portal-browser-sort": ReactArcgisPortalBrowserSort;
205
+ "arcgis-portal-browser-top-bar": ReactArcgisPortalBrowserTopBar;
206
+ "arcgis-portal-browser-view": ReactArcgisPortalBrowserView;
104
207
  "arcgis-portal-classification-banner": ReactArcgisPortalClassificationBanner;
105
208
  "arcgis-portal-classification-config": ReactArcgisPortalClassificationConfig;
106
209
  "arcgis-portal-classification-favorite": ReactArcgisPortalClassificationFavorite;
107
210
  "arcgis-portal-classification-form-element": ReactArcgisPortalClassificationFormElement;
108
211
  "arcgis-portal-extent-picker": ReactArcgisPortalExtentPicker;
109
212
  "arcgis-portal-field-delete": ReactArcgisPortalFieldDelete;
213
+ "arcgis-portal-group-badges": ReactArcgisPortalGroupBadges;
214
+ "arcgis-portal-group-card": ReactArcgisPortalGroupCard;
215
+ "arcgis-portal-group-thumbnail": ReactArcgisPortalGroupThumbnail;
110
216
  "arcgis-portal-item-type": ReactArcgisPortalItemType;
111
217
  "arcgis-portal-mentionable-text-area": ReactArcgisPortalMentionableTextArea;
112
218
  "arcgis-portal-replacement-item-redirect": ReactArcgisPortalReplacementItemRedirect;
113
219
  "arcgis-portal-user-avatar": ReactArcgisPortalUserAvatar;
220
+ "arcgis-portal-user-popup": ReactArcgisPortalUserPopup;
114
221
  "arcgis-portal-voice-input": ReactArcgisPortalVoiceInput;
115
222
  }
116
223
  }
@@ -120,16 +227,31 @@ declare module "react/jsx-dev-runtime" {
120
227
  interface IntrinsicElements {
121
228
  "arcgis-portal-ai-assistant": ReactArcgisPortalAiAssistant;
122
229
  "arcgis-portal-ai-assistant-interrupt": ReactArcgisPortalAiAssistantInterrupt;
230
+ "arcgis-portal-browser": ReactArcgisPortalBrowser;
231
+ "arcgis-portal-browser-actions": ReactArcgisPortalBrowserActions;
232
+ "arcgis-portal-browser-filter": ReactArcgisPortalBrowserFilter;
233
+ "arcgis-portal-browser-filter-date": ReactArcgisPortalBrowserFilterDate;
234
+ "arcgis-portal-browser-filter-status": ReactArcgisPortalBrowserFilterStatus;
235
+ "arcgis-portal-browser-filters": ReactArcgisPortalBrowserFilters;
236
+ "arcgis-portal-browser-pagination": ReactArcgisPortalBrowserPagination;
237
+ "arcgis-portal-browser-search": ReactArcgisPortalBrowserSearch;
238
+ "arcgis-portal-browser-sort": ReactArcgisPortalBrowserSort;
239
+ "arcgis-portal-browser-top-bar": ReactArcgisPortalBrowserTopBar;
240
+ "arcgis-portal-browser-view": ReactArcgisPortalBrowserView;
123
241
  "arcgis-portal-classification-banner": ReactArcgisPortalClassificationBanner;
124
242
  "arcgis-portal-classification-config": ReactArcgisPortalClassificationConfig;
125
243
  "arcgis-portal-classification-favorite": ReactArcgisPortalClassificationFavorite;
126
244
  "arcgis-portal-classification-form-element": ReactArcgisPortalClassificationFormElement;
127
245
  "arcgis-portal-extent-picker": ReactArcgisPortalExtentPicker;
128
246
  "arcgis-portal-field-delete": ReactArcgisPortalFieldDelete;
247
+ "arcgis-portal-group-badges": ReactArcgisPortalGroupBadges;
248
+ "arcgis-portal-group-card": ReactArcgisPortalGroupCard;
249
+ "arcgis-portal-group-thumbnail": ReactArcgisPortalGroupThumbnail;
129
250
  "arcgis-portal-item-type": ReactArcgisPortalItemType;
130
251
  "arcgis-portal-mentionable-text-area": ReactArcgisPortalMentionableTextArea;
131
252
  "arcgis-portal-replacement-item-redirect": ReactArcgisPortalReplacementItemRedirect;
132
253
  "arcgis-portal-user-avatar": ReactArcgisPortalUserAvatar;
254
+ "arcgis-portal-user-popup": ReactArcgisPortalUserPopup;
133
255
  "arcgis-portal-voice-input": ReactArcgisPortalVoiceInput;
134
256
  }
135
257
  }
@@ -0,0 +1,27 @@
1
+ import type { SearchResultItem } from "./item.js";
2
+ import type { SearchResultUser } from "./user.js";
3
+
4
+ export interface SearchResult<T = SearchResultItem> {
5
+ nextStart: number;
6
+ num: number;
7
+ results: T[];
8
+ start: number;
9
+ total: number;
10
+ highlights?: SearchResultHighlight[];
11
+ queryParams?: unknown;
12
+ users?: SearchResultUser[];
13
+ q?: number | string;
14
+ }
15
+
16
+ export interface SearchResultHighlight {
17
+ /** item the highlight applies to */
18
+ id: string;
19
+ /**
20
+ * The below describes where the match was found,
21
+ * along with the matched term surrounded by <em></em>
22
+ * Not to judge too much but it's a pretty weird API.
23
+ */
24
+ "sublayers.fieldaliases"?: string[];
25
+ "sublayers.title"?: string[];
26
+ "sublayers.description"?: string[];
27
+ }
@@ -1,21 +1,36 @@
1
1
  /// <reference types="../index.d.ts" />
2
2
  import type { ArcgisPortalAiAssistant } from "../components/arcgis-portal-ai-assistant/customElement.js";
3
3
  import type { ArcgisPortalAiAssistantInterrupt } from "../components/arcgis-portal-ai-assistant-interrupt/customElement.js";
4
+ import type { ArcgisPortalBrowser } from "../components/arcgis-portal-browser/customElement.js";
5
+ import type { ArcgisPortalBrowserActions } from "../components/arcgis-portal-browser-actions/customElement.js";
6
+ import type { ArcgisPortalBrowserFilter } from "../components/arcgis-portal-browser-filter/customElement.js";
7
+ import type { ArcgisPortalBrowserFilterDate } from "../components/arcgis-portal-browser-filter-date/customElement.js";
8
+ import type { ArcgisPortalBrowserFilterStatus } from "../components/arcgis-portal-browser-filter-status/customElement.js";
9
+ import type { ArcgisPortalBrowserFilters } from "../components/arcgis-portal-browser-filters/customElement.js";
10
+ import type { ArcgisPortalBrowserPagination } from "../components/arcgis-portal-browser-pagination/customElement.js";
11
+ import type { ArcgisPortalBrowserSearch } from "../components/arcgis-portal-browser-search/customElement.js";
12
+ import type { ArcgisPortalBrowserSort } from "../components/arcgis-portal-browser-sort/customElement.js";
13
+ import type { ArcgisPortalBrowserTopBar } from "../components/arcgis-portal-browser-top-bar/customElement.js";
14
+ import type { ArcgisPortalBrowserView } from "../components/arcgis-portal-browser-view/customElement.js";
4
15
  import type { ArcgisPortalClassificationBanner } from "../components/arcgis-portal-classification-banner/customElement.js";
5
16
  import type { ArcgisPortalClassificationConfig } from "../components/arcgis-portal-classification-config/customElement.js";
6
17
  import type { ArcgisPortalClassificationFavorite } from "../components/arcgis-portal-classification-favorite/customElement.js";
7
18
  import type { ArcgisPortalClassificationFormElement } from "../components/arcgis-portal-classification-form-element/customElement.js";
8
19
  import type { ArcgisPortalExtentPicker } from "../components/arcgis-portal-extent-picker/customElement.js";
9
20
  import type { ArcgisPortalFieldDelete } from "../components/arcgis-portal-field-delete/customElement.js";
21
+ import type { ArcgisPortalGroupBadges } from "../components/arcgis-portal-group-badges/customElement.js";
22
+ import type { ArcgisPortalGroupCard } from "../components/arcgis-portal-group-card/customElement.js";
23
+ import type { ArcgisPortalGroupThumbnail } from "../components/arcgis-portal-group-thumbnail/customElement.js";
10
24
  import type { ArcgisPortalItemType } from "../components/arcgis-portal-item-type/customElement.js";
11
25
  import type { ArcgisPortalMentionableTextArea } from "../components/arcgis-portal-mentionable-text-area/customElement.js";
12
26
  import type { ArcgisPortalReplacementItemRedirect } from "../components/arcgis-portal-replacement-item-redirect/customElement.js";
13
27
  import type { ArcgisPortalUserAvatar } from "../components/arcgis-portal-user-avatar/customElement.js";
28
+ import type { ArcgisPortalUserPopup } from "../components/arcgis-portal-user-popup/customElement.js";
14
29
  import type { ArcgisPortalVoiceInput } from "../components/arcgis-portal-voice-input/customElement.js";
15
30
  import { JSXBase as StencilJsx } from "@stencil/core/internal";
16
31
  import type { EventHandler } from "@arcgis/lumina";
17
32
 
18
- interface StencilArcgisPortalAiAssistant extends Partial<Pick<ArcgisPortalAiAssistant, "autoDestroyDisabled" | "config" | "defaultClosed" | "portal" | "user">>, StencilJsx.HTMLAttributes<ArcgisPortalAiAssistant> {
33
+ interface StencilArcgisPortalAiAssistant extends Partial<Pick<ArcgisPortalAiAssistant, "autoDestroyDisabled" | "config" | "defaultClosed" | "navigationTargetMap" | "portal" | "user">>, StencilJsx.HTMLAttributes<ArcgisPortalAiAssistant> {
19
34
  onArcgisPortalNavigationRequest?: EventHandler<ArcgisPortalAiAssistant["arcgisPortalNavigationRequest"]>;
20
35
  }
21
36
 
@@ -24,6 +39,51 @@ interface StencilArcgisPortalAiAssistantInterrupt extends Partial<Pick<ArcgisPor
24
39
  onArcgisSubmit?: EventHandler<ArcgisPortalAiAssistantInterrupt["arcgisSubmit"]>;
25
40
  }
26
41
 
42
+ interface StencilArcgisPortalBrowser extends Partial<Pick<ArcgisPortalBrowser, "alwaysShowContent" | "alwaysShowPagination" | "alwaysShowSelection" | "api" | "formFactor" | "height" | "hideContentTop" | "hideFilters" | "hideTopBar" | "loading" | "panel" | "preview" | "rangeFormatter" | "response" | "searchTerm" | "selected" | "showPreSearch" | "store">>, StencilJsx.HTMLAttributes<ArcgisPortalBrowser> {
43
+ onArcgisAriaUpdate?: EventHandler<ArcgisPortalBrowser["arcgisAriaUpdate"]>;
44
+ onAriaUpdate?: EventHandler<ArcgisPortalBrowser["ariaUpdate"]>;
45
+ }
46
+
47
+ interface StencilArcgisPortalBrowserActions extends Partial<Pick<ArcgisPortalBrowserActions, "actions" | "selection">>, StencilJsx.HTMLAttributes<ArcgisPortalBrowserActions> {
48
+ }
49
+
50
+ interface StencilArcgisPortalBrowserFilter extends Partial<Pick<ArcgisPortalBrowserFilter, "active" | "clearDisabled" | "expanded" | "filterId" | "heading" | "noPadding" | "primary">>, StencilJsx.HTMLAttributes<ArcgisPortalBrowserFilter> {
51
+ onArcgisBrowserFilterRemove?: EventHandler<ArcgisPortalBrowserFilter["arcgisBrowserFilterRemove"]>;
52
+ }
53
+
54
+ interface StencilArcgisPortalBrowserFilterDate extends Partial<Pick<ArcgisPortalBrowserFilterDate, "end" | "expanded" | "includeNever" | "property" | "range" | "serverProperty" | "start" | "store">>, StencilJsx.HTMLAttributes<ArcgisPortalBrowserFilterDate> {
55
+ onArcgisBrowserFilter?: EventHandler<ArcgisPortalBrowserFilterDate["arcgisBrowserFilter"]>;
56
+ }
57
+
58
+ interface StencilArcgisPortalBrowserFilterStatus extends Partial<Pick<ArcgisPortalBrowserFilterStatus, "browserWidth" | "componentWidth" | "filters" | "hiddenFilterIds">>, StencilJsx.HTMLAttributes<ArcgisPortalBrowserFilterStatus> {
59
+ onArcgisBrowserFilterClear?: EventHandler<ArcgisPortalBrowserFilterStatus["arcgisBrowserFilterClear"]>;
60
+ onArcgisBrowserFilterRemove?: EventHandler<ArcgisPortalBrowserFilterStatus["arcgisBrowserFilterRemove"]>;
61
+ }
62
+
63
+ interface StencilArcgisPortalBrowserFilters extends Partial<Pick<ArcgisPortalBrowserFilters, "store">>, StencilJsx.HTMLAttributes<ArcgisPortalBrowserFilters> {
64
+ }
65
+
66
+ interface StencilArcgisPortalBrowserPagination extends Partial<Pick<ArcgisPortalBrowserPagination, "num" | "start" | "store" | "total">>, StencilJsx.HTMLAttributes<ArcgisPortalBrowserPagination> {
67
+ onArcgisBrowserPage?: EventHandler<ArcgisPortalBrowserPagination["arcgisBrowserPage"]>;
68
+ }
69
+
70
+ interface StencilArcgisPortalBrowserSearch extends Partial<Pick<ArcgisPortalBrowserSearch, "allowClear" | "placeholder" | "store" | "term">>, StencilJsx.HTMLAttributes<ArcgisPortalBrowserSearch> {
71
+ onArcgisBrowserSearch?: EventHandler<ArcgisPortalBrowserSearch["arcgisBrowserSearch"]>;
72
+ onArcgisBrowserSearchInput?: EventHandler<ArcgisPortalBrowserSearch["arcgisBrowserSearchInput"]>;
73
+ }
74
+
75
+ interface StencilArcgisPortalBrowserSort extends Partial<Pick<ArcgisPortalBrowserSort, "appearance" | "field" | "options" | "order" | "showText" | "useDeleted">>, StencilJsx.HTMLAttributes<ArcgisPortalBrowserSort> {
76
+ onArcgisBrowserSortFieldChange?: EventHandler<ArcgisPortalBrowserSort["arcgisBrowserSortFieldChange"]>;
77
+ onArcgisBrowserSortOrderChange?: EventHandler<ArcgisPortalBrowserSort["arcgisBrowserSortOrderChange"]>;
78
+ }
79
+
80
+ interface StencilArcgisPortalBrowserTopBar extends Partial<Pick<ArcgisPortalBrowserTopBar, "filtersDisabled" | "store">>, StencilJsx.HTMLAttributes<ArcgisPortalBrowserTopBar> {
81
+ }
82
+
83
+ interface StencilArcgisPortalBrowserView extends Partial<Pick<ArcgisPortalBrowserView, "options" | "store" | "view" | "viewText">>, StencilJsx.HTMLAttributes<ArcgisPortalBrowserView> {
84
+ onArcgisBrowserViewChange?: EventHandler<ArcgisPortalBrowserView["arcgisBrowserViewChange"]>;
85
+ }
86
+
27
87
  interface StencilArcgisPortalClassificationBanner extends Partial<Pick<ArcgisPortalClassificationBanner, "missingExistingClassification" | "portalItem" | "validationErrors" | "variant">>, StencilJsx.HTMLAttributes<ArcgisPortalClassificationBanner> {
28
88
  }
29
89
 
@@ -51,6 +111,18 @@ interface StencilArcgisPortalFieldDelete extends Partial<Pick<ArcgisPortalFieldD
51
111
  onArcgisFieldsDeleted?: EventHandler<ArcgisPortalFieldDelete["arcgisFieldsDeleted"]>;
52
112
  }
53
113
 
114
+ interface StencilArcgisPortalGroupBadges extends Partial<Pick<ArcgisPortalGroupBadges, "appearance" | "empty" | "group" | "portal" | "scale" | "showTooltips" | "width">>, StencilJsx.HTMLAttributes<ArcgisPortalGroupBadges> {
115
+ }
116
+
117
+ interface StencilArcgisPortalGroupCard extends Partial<Pick<ArcgisPortalGroupCard, "disabled" | "group" | "indeterminate" | "link" | "linkHandler" | "name" | "newTab" | "portal" | "preview" | "previewed" | "selected" | "selection" | "showBadges" | "showDateCreated" | "showDateUpdated" | "showOwner" | "showSummary" | "showViewableBy" | "user" | "view">>, StencilJsx.HTMLAttributes<ArcgisPortalGroupCard> {
118
+ onArcgisGroupBrowserCardPreview?: EventHandler<ArcgisPortalGroupCard["arcgisGroupBrowserCardPreview"]>;
119
+ onArcgisGroupBrowserInternalUIAction?: EventHandler<ArcgisPortalGroupCard["arcgisGroupBrowserInternalUIAction"]>;
120
+ onArcgisGroupCardSelect?: EventHandler<ArcgisPortalGroupCard["arcgisGroupCardSelect"]>;
121
+ }
122
+
123
+ interface StencilArcgisPortalGroupThumbnail extends Partial<Pick<ArcgisPortalGroupThumbnail, "group" | "portal" | "scale" | "tooltip">>, StencilJsx.HTMLAttributes<ArcgisPortalGroupThumbnail> {
124
+ }
125
+
54
126
  interface StencilArcgisPortalItemType extends Partial<Pick<ArcgisPortalItemType, "ellipsis" | "hideIcon" | "hideText" | "item" | "portal" | "scale" | "serviceInfo" | "showHosted" | "user">>, StencilJsx.HTMLAttributes<ArcgisPortalItemType> {
55
127
  }
56
128
 
@@ -69,6 +141,11 @@ interface StencilArcgisPortalReplacementItemRedirect extends Partial<Pick<Arcgis
69
141
  interface StencilArcgisPortalUserAvatar extends Partial<Pick<ArcgisPortalUserAvatar, "checkOnline" | "description" | "heading" | "hideAvatar" | "portal" | "scale" | "showName" | "underline" | "user" | "username" | "wrap">>, StencilJsx.HTMLAttributes<ArcgisPortalUserAvatar> {
70
142
  }
71
143
 
144
+ interface StencilArcgisPortalUserPopup extends Partial<Pick<ArcgisPortalUserPopup, "appearance" | "avatarAriaHidden" | "baseUrl" | "checkOnline" | "fullName" | "item" | "portal" | "scale" | "showAvatar" | "showName" | "showUsername" | "underline" | "user" | "username" | "wrap" | "zIndex">>, StencilJsx.HTMLAttributes<ArcgisPortalUserPopup> {
145
+ onArcgisUserPopupClose?: EventHandler<ArcgisPortalUserPopup["arcgisUserPopupClose"]>;
146
+ onArcgisUserPopupInternalUIAction?: EventHandler<ArcgisPortalUserPopup["arcgisUserPopupInternalUIAction"]>;
147
+ }
148
+
72
149
  interface StencilArcgisPortalVoiceInput extends Partial<Pick<ArcgisPortalVoiceInput, "language">>, StencilJsx.HTMLAttributes<ArcgisPortalVoiceInput> {
73
150
  onArcgisVoiceInputError?: EventHandler<ArcgisPortalVoiceInput["arcgisVoiceInputError"]>;
74
151
  onArcgisVoiceInputInterimTranscription?: EventHandler<ArcgisPortalVoiceInput["arcgisVoiceInputInterimTranscription"]>;
@@ -80,16 +157,31 @@ interface StencilArcgisPortalVoiceInput extends Partial<Pick<ArcgisPortalVoiceIn
80
157
  interface ExposedElements {
81
158
  "arcgis-portal-ai-assistant": StencilArcgisPortalAiAssistant;
82
159
  "arcgis-portal-ai-assistant-interrupt": StencilArcgisPortalAiAssistantInterrupt;
160
+ "arcgis-portal-browser": StencilArcgisPortalBrowser;
161
+ "arcgis-portal-browser-actions": StencilArcgisPortalBrowserActions;
162
+ "arcgis-portal-browser-filter": StencilArcgisPortalBrowserFilter;
163
+ "arcgis-portal-browser-filter-date": StencilArcgisPortalBrowserFilterDate;
164
+ "arcgis-portal-browser-filter-status": StencilArcgisPortalBrowserFilterStatus;
165
+ "arcgis-portal-browser-filters": StencilArcgisPortalBrowserFilters;
166
+ "arcgis-portal-browser-pagination": StencilArcgisPortalBrowserPagination;
167
+ "arcgis-portal-browser-search": StencilArcgisPortalBrowserSearch;
168
+ "arcgis-portal-browser-sort": StencilArcgisPortalBrowserSort;
169
+ "arcgis-portal-browser-top-bar": StencilArcgisPortalBrowserTopBar;
170
+ "arcgis-portal-browser-view": StencilArcgisPortalBrowserView;
83
171
  "arcgis-portal-classification-banner": StencilArcgisPortalClassificationBanner;
84
172
  "arcgis-portal-classification-config": StencilArcgisPortalClassificationConfig;
85
173
  "arcgis-portal-classification-favorite": StencilArcgisPortalClassificationFavorite;
86
174
  "arcgis-portal-classification-form-element": StencilArcgisPortalClassificationFormElement;
87
175
  "arcgis-portal-extent-picker": StencilArcgisPortalExtentPicker;
88
176
  "arcgis-portal-field-delete": StencilArcgisPortalFieldDelete;
177
+ "arcgis-portal-group-badges": StencilArcgisPortalGroupBadges;
178
+ "arcgis-portal-group-card": StencilArcgisPortalGroupCard;
179
+ "arcgis-portal-group-thumbnail": StencilArcgisPortalGroupThumbnail;
89
180
  "arcgis-portal-item-type": StencilArcgisPortalItemType;
90
181
  "arcgis-portal-mentionable-text-area": StencilArcgisPortalMentionableTextArea;
91
182
  "arcgis-portal-replacement-item-redirect": StencilArcgisPortalReplacementItemRedirect;
92
183
  "arcgis-portal-user-avatar": StencilArcgisPortalUserAvatar;
184
+ "arcgis-portal-user-popup": StencilArcgisPortalUserPopup;
93
185
  "arcgis-portal-voice-input": StencilArcgisPortalVoiceInput;
94
186
  }
95
187
 
@@ -0,0 +1,10 @@
1
+ /** Used for tracking internal component events from outside the component */
2
+ export type InternalUIAction = {
3
+ action?: string;
4
+ details?: string;
5
+ category?: string;
6
+ position?: number;
7
+ attribute?: string;
8
+ count?: number;
9
+ label?: string;
10
+ };
@@ -60,7 +60,7 @@ export interface SearchResultUser {
60
60
  username: string;
61
61
  joined?: number;
62
62
  memberType?: MemberType;
63
- thumbnail?: string;
63
+ thumbnail?: string | null;
64
64
  }
65
65
 
66
66
  /** Short user info made specifically for the UI */
@@ -68,7 +68,7 @@ export interface ItemUserInfo {
68
68
  description: string;
69
69
  fullName: string;
70
70
  username: string;
71
- thumbnail: string;
71
+ thumbnail: string | null;
72
72
  id: string;
73
73
  url: string;
74
74
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcgis/portal-components",
3
- "version": "5.2.0-next.3",
3
+ "version": "5.2.0-next.31",
4
4
  "description": "ArcGIS Portal Components",
5
5
  "keywords": [
6
6
  "ArcGIS",
@@ -44,16 +44,16 @@
44
44
  "@lit/task": "^1.0.3",
45
45
  "langchain": "^1.3.1",
46
46
  "lit": "^3.3.0",
47
- "marked": "~18.0.4",
47
+ "marked": "~18.0.5",
48
48
  "tslib": "^2.8.1",
49
49
  "zod": "^4.3.6",
50
- "@arcgis/ai-components": "5.2.0-next.3",
51
- "@arcgis/lumina": "5.2.0-next.3",
52
- "@arcgis/toolkit": "5.2.0-next.3"
50
+ "@arcgis/ai-components": "5.2.0-next.31",
51
+ "@arcgis/lumina": "5.2.0-next.31",
52
+ "@arcgis/toolkit": "5.2.0-next.31"
53
53
  },
54
54
  "peerDependencies": {
55
- "@arcgis/core": "^5.1.0-next",
56
- "@esri/calcite-components": "^5.1.0-next.60"
55
+ "@arcgis/core": "^5.2.0-next",
56
+ "@esri/calcite-components": "^5.1.1"
57
57
  },
58
58
  "css.customData": [
59
59
  "dist/docs/vscode.css-custom-data.json"
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{a as k}from"./35SKVD6F.js";import a from"./2UUZHENH.js";import{a as w,b as x}from"./5VSDGPHH.js";import{a as f}from"./LQ3DMZ3K.js";import"./KEKBRUUC.js";import{J as g,K as l,P as v,h as d,j as s}from"./DHHSKOUY.js";import"./YIMNOUTF.js";export default $arcgis.t(([{b:b}])=>{var O=d`:host{max-width:100%;display:flex;align-items:center;min-width:0}.skeleton{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite;display:flex;align-items:center}.skeleton-avatar{border-radius:100%;background-color:var(--calcite-color-foreground-3);width:var(--arcgis-portal-user-avatar-size);height:var(--arcgis-portal-user-avatar-size)}.skeleton-name{background-color:var(--calcite-color-foreground-3);border-radius:var(--calcite-border-radius);width:var(--arcgis-portal-user-avatar-skeleton-width);border-radius:var(--arcgis-portal-user-avatar-spacing);height:var(--arcgis-portal-user-avatar-spacing);margin-inline-start:var(--arcgis-portal-user-avatar-spacing)}@keyframes pulse{0%,to{opacity:1}50%{opacity:.5}}.avatar{display:block;flex-grow:0;flex-shrink:0;border-radius:100%;background-color:var(--calcite-color-foreground-3);width:var(--arcgis-portal-user-avatar-size);height:var(--arcgis-portal-user-avatar-size)}.text{color:var(--calcite-color-text-2);display:flex;flex-direction:column;justify-content:center;min-width:0;text-align:start;margin-inline-start:var(--arcgis-portal-user-avatar-spacing);line-height:calc(var(--arcgis-portal-user-avatar-size) / 2)}.text--no-avatar{margin-inline-start:0}.-text-underline .title{text-decoration:underline}.text--clamp{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.text--ellipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.has-description{font-weight:500}.description{font-weight:400;color:var(--calcite-color-text-2)}:host([scale="xs"]){font-size:.75rem;--arcgis-portal-user-avatar-size: 18px;--arcgis-portal-user-avatar-spacing: .25rem ;.description{font-size:.625rem;margin-top:-.125rem}.text{line-height:1.35}}:host([scale="s"]){font-size:.75rem;--arcgis-portal-user-avatar-size: 1.5rem ;--arcgis-portal-user-avatar-spacing: .5rem ;--arcgis-portal-user-avatar-skeleton-width: 4rem ;.description{font-size:.625rem}}:host([scale="m"]){font-size:.875rem;--arcgis-portal-user-avatar-size: 2rem ;--arcgis-portal-user-avatar-spacing: .75rem ;--arcgis-portal-user-avatar-skeleton-width: 5rem ;.description{font-size:.75rem}}:host([scale="l"]){font-size:1rem;--arcgis-portal-user-avatar-size: 2.5rem ;--arcgis-portal-user-avatar-spacing: 1rem ;--arcgis-portal-user-avatar-skeleton-width: 6rem ;.description{font-size:.875rem}}`,j=i=>i.thumbnailUrl!==void 0;function c(i,r,e=!1){if(j(i))return i.thumbnailUrl;let a=i.thumbnail;if(!a)return null;if(a.startsWith("http"))return a;let t=x(r);return`${e?"https://www.arcgis.com/sharing/rest/":w(r)}community/users/${i.username}/info/${a}${t&&!e?`?token=${t}`:""}`}var p=class extends g{constructor(){super(...arguments),this.messages=f({name:null}),this.thumbnailUrl=null,this.scale="m",this.hideAvatar=!1}static{this.properties={user:0,portal:0,scale:3,showName:5,hideAvatar:5,heading:1,description:1,underline:5,username:1,wrap:5,checkOnline:5}}static{this.styles=O}async load(){let{username:r,checkOnline:e,portal:a,user:t}=this;if(r&&a){let n=await b(r,a,e);this.user=n,this.thumbnailUrl=c(n,a,e)}else t&&a&&(this.thumbnailUrl=c(t,a,e))}updated(r){let e=r.get("user");e&&this.portal&&(this.thumbnailUrl=c(e,this.portal,this.checkOnline))}renderSkeleton(){return s`<div class="skeleton">${!this.hideAvatar&&s`<div class="skeleton-avatar"></div>`||""}${this.showName&&s`<div class="skeleton-name"></div>`||""}</div>`}renderUser(){let{user:r,messages:e,thumbnailUrl:a,hideAvatar:t,showName:n,description:u,scale:h,underline:$,heading:z}=this;if(!r)return[];let{fullName:y,username:U,id:A}=r,o=!!u,N=(y?.split(" ")||[]).slice(0,2).join(" "),m=this.wrap?"text--clamp":"text--ellipsis";return[!t&&s`<calcite-avatar class="avatar" .scale=${h==="xs"?"s":h} .fullName=${N} .username=${U} .userId=${A} .thumbnail=${a||void 0} .inert=${n||o?!0:void 0}></calcite-avatar>`||"",(n||o)&&s`<span class=${l({text:!0,"text--underline":$,"text--no-avatar":t})}>${n&&s`<span class=${l({title:!0,"has-description":o,[m]:!0})}>${z||k(r,e._lang)}</span>`||""}${o&&s`<span class=${l({description:!0,[m]:!0})}>${u}</span>`||""}</span>`||""]}render(){return this.user&&this.messages._lang?this.renderUser():this.renderSkeleton()}};v("arcgis-portal-user-avatar",p);return p},a)
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- var n=t=>t&&!t.endsWith("/")?`${t}/`:t;function r(t){return n(t.restUrl)}function e(t){return t.credential?.token||t.token||t.user?.credential?.token||t.portalUser?.token||""}function o(t){return t.sourceJSON?.isWebTierAuth}export{r as a,e as b,o as c};
@@ -1,5 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import"./YIMNOUTF.js";var e=`## Additional System Context
3
-
4
- In addition to the user's inquiry prompt that precedes this system context, the current map has entities and relationships on it already, in the format of an array of objects containing identifiers and typeNames or type names that contain all entities or relationships of that type, in case this is needed for query generation (for example 'Add all records that are connected to people on this map to the map'). If the user is asking for a query that acts on 'the current map', 'my map', or similar then the cypher query should be filtered by the ids. For example, 'Match (n:Person)-[\\r]->(m) WHERE id(n) IN [\\'identifier1','identifier2'] return r, m. Curly braces (the '{' and '}' characters) are often part of identifier strings and should not be stripped out - the process of filtering by ids should not be altering the id strings. The entities and relationships that are on the current map are as follows:
5
- `;export{e as default};
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import e from"./OQDPULPD.js";import{a as S,b as P}from"./QNUYUNEY.js";import c from"./Q75EBGI2.js";import a from"./O3KBWLGU.js";import{a as I}from"./LQ3DMZ3K.js";import{b as v,f as E}from"./KEKBRUUC.js";import{H as d,I as m,J as b,M as C,P as y,h as g,j as n}from"./DHHSKOUY.js";import"./YIMNOUTF.js";export default $arcgis.t(([{createArcadeExecutor:F},{watch:q},{c:w},{a:f,b:c,c:p,d:R,e:_,f:O},{a:x,b:$}])=>{async function k({portalClassificationSchema:r,itemClassification:t}){let i=Object.entries(r.attributes).map(async([e])=>{let s=await T(e,r,t);return{[e]:{enabled:s}}}),a=await Promise.all(i);return Object.assign({},...a)}async function T(r,t,i){let a=t?.attributes?.[r];if(!a)return!1;let{isAttributeEnabled:e}=a;return e?await h(e,JSON.stringify(t),i):!0}async function j({portalClassificationSchema:r,itemClassification:t}){let i=Object.entries(r.attributes).map(async([e])=>{let s=await M(e,r,t);return{[e]:{valueExpressionResult:s}}}),a=await Promise.all(i);return Object.assign({},...a)}async function M(r,t,i){let a=t.attributes[r];if(!a)throw Error(`Attribute ${r} not found in schema`);let e=a.valueExpression,s=a.validValues,o=a.validValuesMap;return s?.length?s:o&&Object.keys(o)?.length?o:e?await h(e,t,i,r):null}async function N({portalClassificationSchema:r,itemClassification:t}){let i=Object.entries(r.attributes).map(async([e])=>{let s=await H(e,r,t);return{[e]:{attributeValidationResult:s}}}),a=await Promise.all(i);return Object.assign({},...a)}async function H(r,t,i){let a=t?.attributes?.[r];if(!a)return null;let e=a?.attributeValidation;return e?await h(e,JSON.stringify(t),i,r):null}var D=async(r,t)=>{let i=r?.bannerExpression;return i?.length?await h(i,r,t):W(r,t)},W=(r,t)=>{let i=Object.entries(r.attributes).sort(([,s],[,o])=>(s?.bannerOrder??0)-(o?.bannerOrder??0)),a=[],e=[];return i.forEach(([s,o])=>{let l=t?.[s];l&&o.bannerOrder&&(a.push(U({elementType:o.uiElement??"",selectionDisplayLabel:o.bannerLabel??"",labelDelimiter:o.labelDelimiter??"",classificationProp:l,valueDelimiter:o.valueDelimiter??""})),e.push(o.attributeDelimiter??""))}),a.length>0?a.reduce((s,o,l)=>l===0?o:`${s}${e[l-1]}${o}`,""):""},U=({elementType:r,selectionDisplayLabel:t,labelDelimiter:i,classificationProp:a,valueDelimiter:e})=>{let s=r.includes("multi")&&a?a.split("").join(e):a;return`${t}${i}${s}`};async function h(r,t,i,a=""){let e={schemaJsonString:typeof t=="string"?t:JSON.stringify(t),valueJsonString:JSON.stringify(i),attributeId:a};return(await J(r)).execute(e)}async function J(r){return await F(r,{variables:[{name:"schemaJsonString",type:"text"},{name:"valueJsonString",type:"text"},{name:"attributeId",type:"text"}]})}var L=g`:host{height:100%;box-sizing:border-box;display:flex;flex-direction:column}.header-section{padding:var(--calcite-spacing-sm)}.header-section__title-container{display:flex;align-items:center;justify-content:space-between}.header-section__title-text{margin:unset;font-weight:unset;font-size:var(--calcite-font-size)}.header-section__title-popover{padding:var(--calcite-spacing-md)}.form-section{display:flex;border-top:var(--calcite-border-width-sm) solid var(--calcite-color-border-1);padding:var(--calcite-spacing-sm);height:100%;overflow:hidden}.form-section__sidebar{flex:1;padding:var(--calcite-spacing-sm)}.form-section__main-content{flex:3;padding:var(--calcite-spacing-sm);overflow:auto}.danger{color:var(--calcite-color-status-danger)}.spacing-y{margin:var(--calcite-spacing-md) 0}`,u=class extends b{constructor(){super(),this.classificationModel=x(this),this.messages=I(),this.formMainContentRef=d(),this.bannerRef=d(),this._classificationDataTask=$(this),this._formCreationTask=new P(this,{task:async()=>{if(await this._classificationDataTask.taskComplete,!this.portalClassificationSchema||!this.portalItem)throw new Error("Portal item and classification schema are required to render the form");let t=this.portalItem.clone();if(await t.load(),!this.primaryAttribute)throw new Error("primaryAttribute is required but was undefined.");this.existingClassification=!!t.classification,t.classification=f(t.classification,this.primaryAttribute,this.portalClassificationSchema),t.classification&&(t.classification.banner=await D(this.portalClassificationSchema,t.classification)),this.pendingPortalItem=t,this.cleanupItemClassificationWatchHandle(),this._itemClassificationWatchHandle=q(()=>this.portalItem.classification,i=>{if(this.pendingPortalItem){let a=this.pendingPortalItem.clone();a.load().then(()=>{a.classification=i,this.pendingPortalItem=a}).catch(e=>{console.error(e)})}}),this._itemClassificationWatchPortalItem=this.portalItem,this._itemClassificationWatchPortalItem.addHandles(this._itemClassificationWatchHandle,"arcgis-classification-config"),await this.evaluateAttributeExpressions(this.portalClassificationSchema,this.pendingPortalItem),this.pendingPortalItem.classification=c(this.pendingPortalItem.classification,this.attributeExpressionResults),this.existingClassification&&this.validateForm()},args:()=>[this.portalItem,this.portalClassificationSchema]}),this.getFormDisplayOrder=t=>this.portalClassificationSchema?.layouts.default.layoutElements[t].formDisplayOrder??0,this.addEditInfoAttributes=()=>{if(!this.pendingPortalItem?.classification)return{};let t=structuredClone(this.pendingPortalItem.classification),i=O(this.pendingPortalItem,t);return{...t,...i}},this.updateFavoriteClassification=t=>{this.favoriteClassifications=t},this.updateClassificationData=async t=>{let i=t.classification;if(this.selectedFavoriteClassificationName=t.name,this.pendingPortalItem){let a=this.pendingPortalItem.clone();if(await a.load(),a.classification=p(this.portalClassificationSchema,i),!this.portalClassificationSchema)return;await this.evaluateAttributeExpressions(this.portalClassificationSchema,a),a.classification=c(a.classification,this.attributeExpressionResults),this.pendingPortalItem=a}},this.existingClassification=!1,this.portalClassificationSchema=this.classificationModel.portalClassificationSchema,this.primaryAttribute=this.classificationModel.primaryAttribute,this.attributeExpressionResults=new Map,this.formValidationErrors=[],this.remoteValidationErrors="",this.canUserConfigureClassification=!0,this.favoriteClassifications=[],this.isRequiredErrors=new Set,this.status=this.classificationModel.status,this.values={},this.valid=!1,this.autoDestroyDisabled=!1,this.arcgisPropertyChange=E()("status","values","valid")}static{this.properties={existingClassification:16,portalClassificationSchema:16,primaryAttribute:16,attributeExpressionResults:16,formValidationErrors:16,itemClassification:16,pendingPortalItem:16,selectedCategory:16,remoteValidationErrors:16,canUserConfigureClassification:16,favoriteClassifications:16,selectedFavoriteClassificationName:16,isRequiredErrors:16,portalItem:0,status:35,values:[1,{type:Object}],valid:7,autoDestroyDisabled:5}}static{this.styles=L}async destroy(){this.cleanupItemClassificationWatchHandle(),await this.destroyManagedChildren(),await this.manager.destroy()}async resetForm(){if(this.existingClassification)this.pendingPortalItem=this.portalItem?.clone(),this.portalClassificationSchema&&this.pendingPortalItem&&(await this.evaluateAttributeExpressions(this.portalClassificationSchema,this.pendingPortalItem),this.pendingPortalItem.classification=c(this.pendingPortalItem.classification,this.attributeExpressionResults),this.validateForm());else if(this.portalItem&&this.primaryAttribute&&this.portalClassificationSchema){let t=this.portalItem.clone();await t.load(),this.pendingPortalItem=this.portalItem?.clone(),this.pendingPortalItem.classification=f(t.classification,this.primaryAttribute,this.portalClassificationSchema),this.portalClassificationSchema&&this.pendingPortalItem&&(await this.evaluateAttributeExpressions(this.portalClassificationSchema,this.pendingPortalItem),this.pendingPortalItem.classification=c(this.pendingPortalItem.classification,this.attributeExpressionResults))}}async validateForm(){this.updateFormValidationErrors(),await this.updateRemoteValidationErrors()}async load(){try{await _(this.portalItem)||(this.canUserConfigureClassification=!1);let t=await w(this.portalItem);if(t){let{result:i,error:a}=t;if(a&&a.details.raw.messageCode!=="COM_1177"){console.error(a);return}i&&(this.favoriteClassifications=i.favorites)}}catch(t){console.error("Error occured while loading arcgis-classification-config:",t)}}willUpdate(t){if(t.has("pendingPortalItem")){let i=this.addEditInfoAttributes();this.values=i}(t.has("formValidationErrors")||t.has("remoteValidationErrors"))&&(this.valid=!this.formValidationErrors.length&&!this.remoteValidationErrors)}loaded(){let t=v(this.el,"form");t&&(this.listenOn(t,"formdata",this.updateFormData),this.listenOn(t,"submit",this.handleFormSubmit)),this.listen("submit",this.handleFormSubmit)}async updateClassificationProperty(t){if(!this.pendingPortalItem||!this.portalClassificationSchema)return;let i=this.pendingPortalItem.clone();await i.load(),Object.entries(t??{}).forEach(([a,e])=>{if(a===this.primaryAttribute){let s=R(e,i.classification,this.primaryAttribute);s=p(this.portalClassificationSchema,s),i.classification=s}else{let s=new Map(Object.entries(i.classification??{}));if(e===void 0||e===""||Array.isArray(e)&&e.length===0)s.delete(a);else if(s.set(a,e),a==="fgi"&&!s.has("fgiOptions")){let o=this.portalClassificationSchema?.attributes?.fgiOptions?.defaultValue??[];s.set("fgiOptions",Array.isArray(o)?o:[o])}i.classification=Object.fromEntries(s)}}),i.classification&&!i.classification.fgi&&delete i.classification.fgiOptions,await this.evaluateAttributeExpressions(this.portalClassificationSchema,i),i.classification=c(i.classification,this.attributeExpressionResults),i.classification&&(i.classification.banner=await D(this.portalClassificationSchema,i.classification)),this.pendingPortalItem=i,this.existingClassification&&this.validateForm(),t&&"classification"in t&&this.updateIsRequiredErrors()}handleCategorySelectChange(t){this.selectedCategory=t.target.selectedItems[0].value}async evaluateAttributeExpressions(t,i){let a=await k({portalClassificationSchema:t,itemClassification:i.classification}),e=await j({portalClassificationSchema:t,itemClassification:i.classification}),s=await N({portalClassificationSchema:t,itemClassification:i.classification});Object.keys(t.attributes).forEach(o=>{let l=a[o]?.enabled??!0,V=e[o]?.valueExpressionResult,A=s[o]?.attributeValidationResult;this.attributeExpressionResults.set(o,{enabled:l,valueExpressionResult:V,attributeValidationResult:A})})}updateIsRequiredErrors(){let t=new Set;Object.entries(this.portalClassificationSchema?.attributes??{})?.forEach(([i,a])=>{a.isRequired&&!this.pendingPortalItem?.classification?.[i]&&this.pendingPortalItem?.classification?.[i]!==0&&t.add(i)}),this.isRequiredErrors=t}updateFormValidationErrors(t=!1){let i=[];Object.entries(this.portalClassificationSchema?.attributes??{})?.forEach(([a,e])=>{e.isRequired&&!this.pendingPortalItem?.classification?.[a]&&this.pendingPortalItem?.classification?.[a]!==0&&(!t||this.isRequiredErrors.has(a))&&i.push({attribute:e.label,reason:this.messages.isrequired??"is required",category:e.attributeCategory}),this.attributeExpressionResults.get(a)?.attributeValidationResult&&i.push({attribute:e.label,reason:this.attributeExpressionResults.get(a)?.attributeValidationResult??"",category:e.attributeCategory})}),this.formValidationErrors=i}async updateRemoteValidationErrors(){if(!this.pendingPortalItem?.classification)return;let t=await this.classificationModel.validateClassification(void 0,this.pendingPortalItem?.classification,this.pendingPortalItem.portal.restUrl);this.remoteValidationErrors=t}cleanupItemClassificationWatchHandle(){this._itemClassificationWatchHandle?.remove(),this._itemClassificationWatchHandle=void 0,this._itemClassificationWatchPortalItem?.removeHandles("arcgis-classification-config"),this._itemClassificationWatchPortalItem=void 0}async destroyManagedChildren(){let t=this.bannerRef.value;!t?.autoDestroyDisabled||t.manager?.destroyed||await t.destroy()}async handleFormSubmit(t){this.validateForm(),this.updateIsRequiredErrors(),this.formMainContentRef.value?.scrollIntoView()}updateFormData(t){let i=t.formData,a=this.addEditInfoAttributes();a=c(a,this.attributeExpressionResults),Object.entries(a??{}).forEach(([e,s])=>{i.set(e,s)})}renderCategoryTabs(){return this._classificationDataTask.render({complete:()=>{if(this.portalClassificationSchema?.attributeCategories?.length)return this.selectedCategory||(this.selectedCategory=this.portalClassificationSchema?.attributeCategories[0]),n`<calcite-list .label=${this.messages.selectcategory??"select category"} selection-appearance=border selection-mode=single-persist @calciteListChange=${this.handleCategorySelectChange}>${this.portalClassificationSchema.attributeCategories.map(t=>{let i=this.formValidationErrors.filter(a=>a.category===t).length;return n`<calcite-list-item .label=${t} .value=${t} .selected=${this.selectedCategory===t} .description=${i?`${i} ${i>1?this.messages.errors:this.messages.error}`:void 0}>${i&&n`<div slot=content-end class="danger"><calcite-icon icon=exclamation-mark-triangle scale=s></calcite-icon></div>`||""}</calcite-list-item>`})}</calcite-list>`}})}renderValidationErrors(){return this.formValidationErrors.length&&(!this.selectedCategory||this.formValidationErrors.some(t=>this.selectedCategory===t.category))?n`<calcite-notice open icon=exclamation-mark-triangle class="spacing-y" kind=danger><div slot=message>${this.messages.bannererror??"Some fields are incomplete or contain errors. Check the highlighted fields for details."}</div></calcite-notice>`:null}renderFavoriteClassification(){let t=this.portalClassificationSchema?.attributeCategories?.[0]??"Default";return this.selectedCategory=this.portalClassificationSchema?.attributeCategories?.length?this.selectedCategory:"Default",this.selectedCategory===t?n`<arcgis-portal-classification-favorite .portalItem=${this.pendingPortalItem??this.portalItem} .classificationValue=${this.pendingPortalItem?.classification} .favoriteClassifications=${this.favoriteClassifications} .selectedFavoriteClassificationName=${this.selectedFavoriteClassificationName} .attributeExpressionResults=${this.attributeExpressionResults} .resetFavoriteClassification=${i=>this.updateFavoriteClassification(i)} .updateClassificationData=${async i=>{await this.updateClassificationData(i),this.updateFormValidationErrors(),this.updateIsRequiredErrors()}}></arcgis-portal-classification-favorite>`:null}renderForm(){return this._formCreationTask.render({pending:()=>n`<calcite-loader .label=${this.messages.loading??"loading"}></calcite-loader>`,complete:()=>{if(!this.pendingPortalItem||!this.portalClassificationSchema)return;let t=Object.entries(this.portalClassificationSchema.attributes).sort(([i],[a])=>this.getFormDisplayOrder(i)-this.getFormDisplayOrder(a));return n`${this.renderValidationErrors()}${this.renderFavoriteClassification()}${t.filter(([,{attributeCategory:i}])=>this.selectedCategory===i||!i).map(([i,a])=>{if(this.attributeExpressionResults.get(i)?.enabled===!1)return null;let e=this.pendingPortalItem?.classification?.[i];return n`<arcgis-portal-classification-form-element .attributeKey=${i} .attribute=${a} .value=${e} @arcgisAttributeValueChange=${async s=>{await this.updateClassificationProperty(s.detail),a.isRequired&&!s.detail[i]?this.isRequiredErrors.add(i):this.isRequiredErrors=new Set(Array.from(this.isRequiredErrors).filter(o=>o!==i)),this.updateFormValidationErrors(!0)}} .renderingInfo=${this.attributeExpressionResults.get(i)} .isRequiredErrors=${this.isRequiredErrors}></arcgis-portal-classification-form-element>`})}`}})}renderNotice(t,i="warning"){return n`<calcite-notice icon=exclamation-mark-triangle open class="spacing-y" .kind=${i}><div slot=message>${t}</div></calcite-notice>`}renderHelpTooltip(){return this.portalClassificationSchema?.helpTooltip?n`<calcite-action id=portal-classification-config-tooltip-button .text=${this.portalClassificationSchema?.helpTooltip} icon=information></calcite-action><calcite-popover .label=${this.portalClassificationSchema?.helpTooltip} reference-element=portal-classification-config-tooltip-button placement=bottom-end overlay-positioning=fixed auto-close><div class="header-section__title-popover"><calcite-link .href=${this.portalClassificationSchema?.helpUrl} target=_blank id=portal-classification-config-tooltip-button>${this.portalClassificationSchema?.helpTooltip}</calcite-link></div></calcite-popover>`:null}render(){return this.portalItem?this._classificationDataTask.render({pending:()=>n`<calcite-loader .label=${this.messages.loading??"loading"}></calcite-loader>`,error:()=>this.renderNotice(this.messages.anerroroccurred??"An error has occurred.","danger"),complete:()=>this.portalItem?this.canUserConfigureClassification?this.portalItem.portal.hasClassificationSchema?n`<div class="header-section" role=region aria-label=${this.messages.documentbannerpreview??"documentbannerpreview"??C}><div class="header-section__title-container"><h2 class="header-section__title-text">${this.messages.documentbannerpreview??"documentbannerpreview"}</h2>${this.renderHelpTooltip()}</div>${this._formCreationTask.status===S.COMPLETE&&n`<arcgis-portal-classification-banner .portalItem=${this.pendingPortalItem??this.portalItem} variant=preview .missingExistingClassification=${!this.existingClassification} .autoDestroyDisabled=${this.autoDestroyDisabled} ${m(this.bannerRef)}></arcgis-portal-classification-banner>`||""}</div><div class="form-section">${this.portalClassificationSchema?.attributeCategories?.length&&n`<div class="form-section__sidebar">${this.renderCategoryTabs()}</div>`||""}<div class="form-section__main-content" ${m(this.formMainContentRef)}>${this.renderForm()}</div></div>`:this.renderNotice(this.messages.missingclassificationschema??"Portal is missing classification schema."):this.renderNotice(this.messages.userconfigurepermissionrequired??"User configuration permission is required."):this.renderNotice(this.messages.portalitemrequired??"Portal item is required.")}):this.renderNotice(this.messages.portalitemrequired??"Portal item is required.")}};y("arcgis-portal-classification-config",u);return u},"arcade","core/reactiveUtils",a,c,e)
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import b from"./2UUZHENH.js";import a from"./RNLVNDGG.js";import"./5VSDGPHH.js";import{c as R}from"./KEKBRUUC.js";import{A as M,B as S,E,H as P,I as g,J as D,K as v,P as L,h as k,j as d,l as A,v as u}from"./DHHSKOUY.js";import"./YIMNOUTF.js";export default $arcgis.t(([{a:O,c:U},{a:x,c:_}])=>{var F=(a,e=100)=>{let s;return(...n)=>{let i=()=>{clearTimeout(s),a(...n)};clearTimeout(s),s=setTimeout(i,e)}};var q=M(class extends S{constructor(){super(...arguments),this.key=A}render(a,e){return this.key=a,e}update(a,[e,s]){return e!==this.key&&(E(a),this.key=e),s}});var y=["@","#","$"],V=400;function Q(a,e){let s=null;for(let n of e){let i=n.replace(/[.*+?^${}()|[\]\\]/gu,"\\$&"),r=new RegExp(`${i}"([^"\\n]*)"?$`,"u"),t=a.match(r);if(t){let c=t[0],l=a.length-c.length,h=t[1]??"";(!s||l>s.startIndex)&&(s={starter:n,mentionText:c,query:h,startIndex:l})}let o=new RegExp(`${i}[\\p{L}\\p{N}_-]+$`,"u"),m=a.match(o);if(m){let c=m[0],l=a.length-c.length,h=c.slice(n.length);(!s||l>s.startIndex)&&(s={starter:n,mentionText:c,query:h,startIndex:l})}}return s}var N=a=>y.includes(a)?a:"@",G=R(a=>{let e=[],s=async r=>await x({requester:async()=>await O(a.portal,r,{num:3}),key:"items",id:r}),n=async r=>await x({requester:async()=>await U(a.portal,{query:`title:${r}`,num:3}),key:"groups",id:r}),i=F(async(r,t)=>{a.isFetchingEntities=!0;let o=r.toLowerCase();switch(N(t)){case"@":let m=10;a.filteredItemsInfo={type:"user",items:e.filter(h=>h.username?.toLowerCase().includes(o)||h.fullName?.toLowerCase().includes(o)).slice(0,m)};break;case"#":let{result:c}=await s(o);a.filteredItemsInfo={type:"item",items:c?.results??[]};break;case"$":let{results:l}=await n(o);a.filteredItemsInfo={type:"group",items:l};break}(a.filteredItemsInfo?.items?.length??0)===0&&await a.closePopover(),a.isFetchingEntities=!1},V);return{fetchUsers:async()=>{try{let{users:r}=await _(a.portal);e=r??[]}catch(r){e=[],console.error("error fetching org users:",r)}},filterItems:i,getItemText:(r,t)=>{let o="";switch(N(t)){case"@":o=r.username;break;case"#":o=r.title??"";break;case"$":o=r.title??"";break}return o.trim()}}}),$=({id:a,label:e,selected:s,description:n,contentStart:i,onSelect:r})=>q(a,d`<calcite-list-item class=${v({selected:s})} .label=${e} .description=${n} .selected=${s} @pointerdown=${async t=>{t.preventDefault(),t.stopPropagation(),await r()}} ${g(t=>{s&&t&&t.scrollIntoView({block:"nearest",behavior:"smooth"})})}>${i}</calcite-list-item>`),j=k`.selected{--calcite-list-background-color: var(--calcite-color-foreground-2)}.mentionable-list{max-height:13rem;overflow-y:auto;padding:.25rem;width:min(100vw,24rem)}.mentionable-list--loading{min-height:10rem}`,w=class extends D{constructor(){super(...arguments),this.calciteTextAreaRef=P(),this.mentionableEntityController=G(this),this.handleInput=e=>{let{bubbleNewValueChange:s,checkForMention:n}=this,i=e.target.value;this._value=i,s(this._value);let r=this.nativeTextAreaRef?.selectionStart??0;n(i,r)},this.handleKeyDown=e=>{if(!this.popoverOpen){this.arcgisUserMentionableTextAreaKeyDown.emit(e),this.arcgisMentionableTextAreaKeyDown.emit(e);return}switch(e.key){case"ArrowDown":e.preventDefault(),this.selectedItemIndex=Math.min(this.selectedItemIndex+1,this.filteredItems.length-1);break;case"ArrowUp":e.preventDefault(),this.selectedItemIndex=Math.max(this.selectedItemIndex-1,0);break;case"Enter":e.preventDefault(),this.selectItem(this.filteredItems[this.selectedItemIndex]);break;case"Escape":e.preventDefault(),this.closePopover.bind(this)();break}},this.handleClosePopover=()=>{this.popoverOpen=!1,this.currentMentionQuery="",this.selectedItemIndex=0,this.currentStarter=null},this.bubbleNewValueChange=e=>{this.arcgisUserMentionableTextAreaChange.emit(e),this.arcgisMentionableTextAreaChange.emit(e)},this.checkForMention=(e,s)=>{let n=e.substring(0,s),i=Q(n,this.starters??y);if(i){let{starter:r}=i;this.currentStarter=r,this.filterMentionItems(i),this.popoverOpen=!0;return}this.handleClosePopover()},this.filterMentionItems=e=>{let{mentionText:s,query:n,starter:i,startIndex:r}=e;this.currentMentionQuery=s,this.mentionStartPosition=r;let t=n.toLowerCase();this.mentionableEntityController.filterItems(t,i),this.selectedItemIndex=0},this.popoverOpen=!1,this.currentMentionQuery="",this.mentionStartPosition=0,this.selectedItemIndex=0,this.currentStarter=null,this._value="",this.filteredItemsInfo=null,this.isFetchingEntities=!1,this.popoverPlacement="bottom-start",this.disabled=!1,this.scale="m",this.rows=3,this.starters=y,this.readOnly=!1,this.arcgisMentionableSelectedIndexChange=u(),this.arcgisMentionableTextAreaChange=u(),this.arcgisMentionableTextAreaKeyDown=u(),this.arcgisUserMentionableTextAreaChange=u(),this.arcgisUserMentionableTextAreaKeyDown=u(),this.renderItemInfo=()=>{let{filteredItemsInfo:e,selectedItemIndex:s,portal:n}=this;if(!e)return null;let{items:i,type:r}=e;switch(r){case"user":return i.map((t,o)=>$({id:t.id,label:`@${t.username}`,description:t.fullName,selected:o===s,contentStart:d`<arcgis-portal-user-avatar slot=content-start .user=${t} .portal=${n} scale=m></arcgis-portal-user-avatar>`,onSelect:async()=>await this.selectItem(t)}));case"item":return i.map((t,o)=>$({id:t.id??`item-${o}`,label:`#${t.title}`,description:t.id??void 0,selected:o===s,onSelect:async()=>await this.selectItem(t),contentStart:d`<calcite-avatar slot=content-start .fullName=${t.title??void 0} .thumbnail=${t.thumbnailUrl??void 0} scale=m></calcite-avatar>`}));case"group":return i.map((t,o)=>$({id:t.id??`group-${o}`,label:`${t.title}`,description:t.id??void 0,selected:o===s,onSelect:async()=>await this.selectItem(t),contentStart:d`<calcite-avatar slot=content-start .fullName=${t.title??void 0} .thumbnail=${t.thumbnailUrl??void 0} scale=m></calcite-avatar>`}))}}}static{this.properties={popoverOpen:16,currentMentionQuery:16,mentionStartPosition:16,selectedItemIndex:16,currentStarter:16,_value:16,filteredItemsInfo:16,isFetchingEntities:16,popoverListLabel:1,popoverPlacement:1,disabled:5,portal:0,user:0,scale:1,value:1,maxLength:9,rows:9,starters:0,placeholder:1,readOnly:5}}static{this.styles=j}get filteredItems(){return this.filteredItemsInfo?.items??[]}async closePopover(){this.handleClosePopover()}async focusTextArea(){await this.calciteTextAreaRef.value?.setFocus()}async selectItem(e){let{currentStarter:s,_value:n,mentionStartPosition:i,currentMentionQuery:r,handleClosePopover:t,calciteTextAreaRef:o,nativeTextAreaRef:m,bubbleNewValueChange:c}=this;if(!e||!s)return;let l=this.mentionableEntityController.getItemText(e,s).replaceAll('"',"").trim(),h=/\s/u.test(l)?`${s}"${l}"`:`${s}${l}`,f=(n??"").substring(0,i),p=(n??"").substring(i+r.length),I=`${f}${h} ${p}`;this._value=I,c(this._value);let b=i+h.length+1;t(),await this.updateComplete,o.value?.setFocus(),m&&(m.selectionEnd=b)}willUpdate(e){e.has("value")&&(this._value=this.value??""),e.has("selectedItemIndex")&&this.arcgisMentionableSelectedIndexChange.emit(this.selectedItemIndex)}loaded(){this.updateComplete.then(()=>{let e=this.calciteTextAreaRef.value?.shadowRoot?.querySelector("textarea");e&&(this.nativeTextAreaRef=e)}),this.mentionableEntityController.fetchUsers()}render(){let{popoverPlacement:e,scale:s,_value:n,maxLength:i,rows:r,placeholder:t,readOnly:o,popoverOpen:m,closePopover:c,handleInput:l,handleKeyDown:h,disabled:f,isFetchingEntities:p,filteredItemsInfo:I,renderItemInfo:b,popoverListLabel:T}=this,C=this.calciteTextAreaRef.value,K=I?.items??[];return d`<calcite-text-area .placeholder=${t} .value=${n} .maxLength=${i} .rows=${r} .scale=${s} .readOnly=${o} .disabled=${f} @blur=${c} @calciteTextAreaInput=${l} @keydown=${h} ${g(this.calciteTextAreaRef)}></calcite-text-area>${C&&d`<calcite-popover .open=${m} .placement=${e} class="mention-popover" .label=${T} .referenceElement=${C} trigger-disabled pointer-disabled focus-trap-disabled><div class=${v({"mentionable-list":!0,"mentionable-list--loading":p})}>${p&&d`<calcite-scrim .loading=${p}></calcite-scrim>`||""}${K.length>0&&d`<calcite-list .label=${T}>${b()}</calcite-list>`||""}</div></calcite-popover>`||""}`}};L("arcgis-portal-mentionable-text-area",w);return w},a,b)
@@ -1,54 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import"./YIMNOUTF.js";var e=`## Map Query Gate
3
-
4
- ### Input
5
-
6
- Assigned task:
7
- {assignedTask}
8
-
9
- Latest user request:
10
- {userRequest}
11
-
12
- Prior steps:
13
- {priorSteps}
14
-
15
- Use the assigned task as the primary instruction for the current query. The question will **not** be restated again here.
16
- Use the latest user request as supporting context when needed.
17
- Use prior steps only when needed to explain a previous result, failure, or likely next action.
18
-
19
- ### Map Context
20
-
21
- {layerSummary}
22
-
23
- ## Available agents (capabilities)
24
-
25
- {agents}
26
-
27
- ### Rules
28
-
29
- - "What layers are in this map?" \u2192 List the layer names
30
- - "What fields are in this layer?" \u2192 Call the tool to list the field names for that layer
31
- - "What can you do?" / "What can I ask?" \u2192 Suggest specific queries using EXACT layer and field names from the context above
32
- - "Tell me about this map" \u2192 Summarize layers and capabilities
33
- - "Create a chart of all wells ans their depth" \u2192 If a question is map related but not supported by available capabilities, say so. Add that support for this might be added in the future.
34
- - Questions completely unrelated to maps/GIS \u2192 Politely explain you only help with the map |
35
-
36
- ### Response Guidelines
37
-
38
- When suggesting what users can ask, be SPECIFIC using actual layer names:
39
-
40
- - "Show me water sources with elevation above 500"
41
- - "Filter Protected Areas in Panama by protection level"
42
- - "Zoom to Watershed Boundaries"
43
-
44
- For "what can I ask" responses, provide 3-5 specific example queries using fields from the context.
45
-
46
- For off-topic questions:
47
- "I can only help with this map. Try asking me to filter [LayerName] by [FieldName], or zoom to a location."
48
-
49
- Rules:
50
-
51
- - Keep responses concise
52
- - Use bullet points for lists
53
- - Use new lines (\\n) and appropriate formatting in your response
54
- `;export{e as default};