@arcgis/portal-components 5.2.0-next.57 → 5.2.0-next.59

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 (167) hide show
  1. package/dist/cdn/2H7Y7RJV.js +2 -0
  2. package/dist/cdn/32FQ7WJE.js +2 -0
  3. package/dist/cdn/3Q3EP3BN.js +2 -0
  4. package/dist/cdn/3VDVNPZ7.js +2 -0
  5. package/dist/cdn/3WH3ENZP.js +2 -0
  6. package/dist/cdn/4QA4AYHJ.js +3 -0
  7. package/dist/cdn/{LDCSQHZX.js → 55FL7WQV.js} +1 -1
  8. package/dist/cdn/5CT433EX.js +2 -0
  9. package/dist/cdn/6ROVXNLV.js +2 -0
  10. package/dist/cdn/7JQ6D224.js +2 -0
  11. package/dist/cdn/B36VBHAI.js +2 -0
  12. package/dist/cdn/CFBSBZSS.js +2 -0
  13. package/dist/cdn/CYEC77HO.js +2 -0
  14. package/dist/cdn/E6STCC7O.js +2 -0
  15. package/dist/cdn/EYTAC4Z4.js +2 -0
  16. package/dist/cdn/{NWIIOJEG.js → FGJNEKPQ.js} +1 -1
  17. package/dist/cdn/{TUQSWB7B.js → FPYIRCJO.js} +1 -1
  18. package/dist/cdn/{C4UBEDKI.js → G2NXASJO.js} +1 -1
  19. package/dist/cdn/{DNMB343K.js → GLDJPWRZ.js} +1 -1
  20. package/dist/cdn/HHA5STNZ.js +2 -0
  21. package/dist/cdn/HV3BRK66.js +2 -0
  22. package/dist/cdn/I5GDSNYE.js +2 -0
  23. package/dist/cdn/IRK4UW2F.js +2 -0
  24. package/dist/cdn/IVATGXII.js +2 -0
  25. package/dist/cdn/IXATTQKO.js +2 -0
  26. package/dist/cdn/JCIDQZ6X.js +2 -0
  27. package/dist/cdn/{R3VY2KZV.js → LDRIWXTO.js} +1 -1
  28. package/dist/cdn/{3PWVEX4V.js → ODJRHB2N.js} +1 -1
  29. package/dist/cdn/{EJZ55DVU.js → OK75ZZ2M.js} +1 -1
  30. package/dist/cdn/{DHMH2XFA.js → OTC37DGK.js} +1 -1
  31. package/dist/cdn/OYX64HG5.js +2 -0
  32. package/dist/cdn/QS3GXAIH.js +2 -0
  33. package/dist/cdn/RKT7WCDH.js +2 -0
  34. package/dist/cdn/RL7X3ACG.js +2 -0
  35. package/dist/cdn/RZPKVJMB.js +2 -0
  36. package/dist/cdn/S2JZ5KTI.js +2 -0
  37. package/dist/cdn/SJGVHRK2.js +2 -0
  38. package/dist/cdn/SUBBPVRW.js +2 -0
  39. package/dist/cdn/T7GD53BL.js +2 -0
  40. package/dist/cdn/{2VLAJOZX.js → TFFZ425X.js} +1 -1
  41. package/dist/cdn/UDTQ7U6L.js +2 -0
  42. package/dist/cdn/UPSYDUD6.js +2 -0
  43. package/dist/cdn/UUSJCAH5.js +2 -0
  44. package/dist/cdn/UXLENIDB.js +2 -0
  45. package/dist/cdn/UZCHLKLO.js +2 -0
  46. package/dist/cdn/VMQIDO4Z.js +2 -0
  47. package/dist/cdn/WBNJYBQD.js +2 -0
  48. package/dist/cdn/XSUXR4WJ.js +2 -0
  49. package/dist/cdn/Z2ZW4FY2.js +2 -0
  50. package/dist/cdn/ZP6MVFXR.js +2 -0
  51. package/dist/cdn/{U2QZZSPC.js → ZV4GLQQG.js} +1 -1
  52. package/dist/cdn/assets/portal-group-browser/t9n/messages.en.json +1 -0
  53. package/dist/cdn/assets/portal-group-card/t9n/messages.en.json +1 -1
  54. package/dist/cdn/index.js +1 -1
  55. package/dist/cdn/main.css +1 -1
  56. package/dist/chunks/fieldAddDelete.js +1 -1
  57. package/dist/chunks/groups.js +61 -7
  58. package/dist/chunks/groups2.js +8 -61
  59. package/dist/chunks/item.js +123 -29
  60. package/dist/chunks/item2.js +29 -123
  61. package/dist/chunks/loadClassificationData.js +1 -1
  62. package/dist/chunks/portal-browser.js +223 -0
  63. package/dist/chunks/portal.js +48 -40
  64. package/dist/chunks/portal2.js +50 -24
  65. package/dist/chunks/query.js +159 -0
  66. package/dist/chunks/request.js +87 -0
  67. package/dist/chunks/requests.js +4 -4
  68. package/dist/chunks/store.js +1 -5
  69. package/dist/chunks/string.js +19 -14
  70. package/dist/chunks/thumbnail.js +189 -0
  71. package/dist/chunks/ui.js +2 -3
  72. package/dist/chunks/url.js +17 -0
  73. package/dist/chunks/user.js +96 -13
  74. package/dist/chunks/user2.js +13 -178
  75. package/dist/chunks/utils.js +1 -1
  76. package/dist/components/arcgis-portal-account-switcher/customElement.js +1 -1
  77. package/dist/components/arcgis-portal-ai-assistant/customElement.js +3 -3
  78. package/dist/components/arcgis-portal-browser/customElement.d.ts +15 -7
  79. package/dist/components/arcgis-portal-browser/customElement.js +14 -196
  80. package/dist/components/arcgis-portal-browser/utils/store.d.ts +4 -4
  81. package/dist/components/arcgis-portal-browser/utils/types.d.ts +6 -0
  82. package/dist/components/arcgis-portal-browser-actions/customElement.d.ts +2 -4
  83. package/dist/components/arcgis-portal-browser-actions/customElement.js +12 -9
  84. package/dist/components/arcgis-portal-browser-filter/customElement.js +5 -5
  85. package/dist/components/arcgis-portal-browser-filter-date/customElement.d.ts +5 -5
  86. package/dist/components/arcgis-portal-browser-filter-date/customElement.js +13 -12
  87. package/dist/components/arcgis-portal-browser-filter-status/customElement.js +1 -1
  88. package/dist/components/arcgis-portal-browser-pagination/customElement.js +25 -27
  89. package/dist/components/arcgis-portal-browser-search/customElement.js +1 -4
  90. package/dist/components/arcgis-portal-browser-top-bar/customElement.d.ts +6 -0
  91. package/dist/components/arcgis-portal-browser-top-bar/customElement.js +15 -16
  92. package/dist/components/arcgis-portal-classification-config/customElement.js +1 -1
  93. package/dist/components/arcgis-portal-classification-favorite/customElement.js +1 -1
  94. package/dist/components/arcgis-portal-group-badges/customElement.d.ts +0 -1
  95. package/dist/components/arcgis-portal-group-badges/customElement.js +21 -20
  96. package/dist/components/arcgis-portal-group-browser/customElement.d.ts +301 -0
  97. package/dist/components/arcgis-portal-group-browser/customElement.js +494 -0
  98. package/dist/components/arcgis-portal-group-browser/index.d.ts +1 -0
  99. package/dist/components/arcgis-portal-group-browser/index.js +6 -0
  100. package/dist/components/arcgis-portal-group-browser/types.d.ts +193 -0
  101. package/dist/components/arcgis-portal-group-browser-preview/customElement.d.ts +225 -0
  102. package/dist/components/arcgis-portal-group-browser-preview/customElement.js +150 -0
  103. package/dist/components/arcgis-portal-group-browser-preview/index.d.ts +1 -0
  104. package/dist/components/arcgis-portal-group-browser-preview/index.js +12 -0
  105. package/dist/components/arcgis-portal-group-browser-preview-card/customElement.d.ts +82 -0
  106. package/dist/components/arcgis-portal-group-browser-preview-card/customElement.js +92 -0
  107. package/dist/components/arcgis-portal-group-browser-preview-card/index.d.ts +1 -0
  108. package/dist/components/arcgis-portal-group-browser-preview-card/index.js +6 -0
  109. package/dist/components/arcgis-portal-group-card/customElement.d.ts +3 -1
  110. package/dist/components/arcgis-portal-group-card/customElement.js +71 -91
  111. package/dist/components/arcgis-portal-group-card/index.js +3 -3
  112. package/dist/components/arcgis-portal-mentionable-text-area/customElement.js +40 -39
  113. package/dist/components/arcgis-portal-navigation/customElement.js +418 -411
  114. package/dist/components/arcgis-portal-navigation/index.js +1 -1
  115. package/dist/components/arcgis-portal-replacement-item-redirect/customElement.js +68 -249
  116. package/dist/components/arcgis-portal-user-avatar/customElement.js +2 -2
  117. package/dist/components/arcgis-portal-user-popup/customElement.d.ts +5 -2
  118. package/dist/components/arcgis-portal-user-popup/customElement.js +4 -3
  119. package/dist/components/portal-group-browser-filters/customElement.js +104 -0
  120. package/dist/components/portal-group-browser-filters/index.js +8 -0
  121. package/dist/components/portal-group-browser-pagination/customElement.js +13 -0
  122. package/dist/components/portal-group-browser-pagination/index.js +2 -0
  123. package/dist/components/portal-group-browser-sort/customElement.js +16 -0
  124. package/dist/components/portal-group-browser-sort/index.js +2 -0
  125. package/dist/docs/api.json +1 -1
  126. package/dist/docs/docs.json +1 -1
  127. package/dist/docs/vscode.html-custom-data.json +1 -1
  128. package/dist/docs/web-types.json +1 -1
  129. package/dist/index.d.ts +36 -0
  130. package/dist/loader.js +5 -2
  131. package/dist/types/group.d.ts +6 -8
  132. package/dist/types/item.d.ts +1 -1
  133. package/dist/types/lumina.d.ts +32 -0
  134. package/dist/types/preact.d.ts +35 -0
  135. package/dist/types/react.d.ts +38 -0
  136. package/dist/types/search.d.ts +2 -2
  137. package/dist/types/stencil.d.ts +32 -0
  138. package/dist/types/user.d.ts +2 -2
  139. package/package.json +4 -4
  140. package/dist/cdn/2EJG4DOC.js +0 -2
  141. package/dist/cdn/2JCFEF3J.js +0 -2
  142. package/dist/cdn/2WEWH5G3.js +0 -2
  143. package/dist/cdn/6AGZRMJC.js +0 -2
  144. package/dist/cdn/6D3PU4ZT.js +0 -2
  145. package/dist/cdn/7QXIBQV7.js +0 -2
  146. package/dist/cdn/BJTJP57C.js +0 -2
  147. package/dist/cdn/BZRM2V6V.js +0 -2
  148. package/dist/cdn/C2DREZD4.js +0 -2
  149. package/dist/cdn/CSH3WCYD.js +0 -2
  150. package/dist/cdn/GKBK32VH.js +0 -2
  151. package/dist/cdn/GYFQDPCN.js +0 -2
  152. package/dist/cdn/J46I5HEQ.js +0 -2
  153. package/dist/cdn/JJ7P5JJ3.js +0 -2
  154. package/dist/cdn/JZ2ZI5WO.js +0 -2
  155. package/dist/cdn/LTQA5JRV.js +0 -2
  156. package/dist/cdn/M5MGOBU3.js +0 -2
  157. package/dist/cdn/M6X5KCWL.js +0 -2
  158. package/dist/cdn/OBVMQ64S.js +0 -2
  159. package/dist/cdn/OGC5YU6V.js +0 -2
  160. package/dist/cdn/OUN473QW.js +0 -2
  161. package/dist/cdn/QPFPNUHH.js +0 -2
  162. package/dist/cdn/R6SSAPLB.js +0 -3
  163. package/dist/cdn/SJDQS32I.js +0 -2
  164. package/dist/cdn/UQWELJR5.js +0 -2
  165. package/dist/cdn/Y4YNN6DS.js +0 -2
  166. package/dist/cdn/Y5CRBUVL.js +0 -2
  167. /package/dist/cdn/{AWIVXH7M.js → 5KDFY5KE.js} +0 -0
@@ -0,0 +1,301 @@
1
+ /// <reference path="../../index.d.ts" />
2
+ import type Portal from "@arcgis/core/portal/Portal.js";
3
+ import type PortalGroup from "@arcgis/core/portal/PortalGroup.js";
4
+ import type Accessor from "@arcgis/core/core/Accessor.js";
5
+ import type { PublicLitElement as LitElement } from "@arcgis/lumina";
6
+ import type { PortalGroupCardProps } from "../arcgis-portal-group-card/customElement.js";
7
+ import type { InternalUIAction } from "../../types/tracking.js";
8
+ import type { GroupBrowserState, PortalGroupBrowserCardsConfig, PortalGroupBrowserFiltersConfig, PortalGroupBrowserQuery, PortalGroupBrowserResponse, PortalGroupBrowserSearchResult, PortalGroupBrowserSortConfig } from "./types.js";
9
+ import type { T9nMeta } from "@arcgis/lumina/controllers";
10
+
11
+ /** A group-browser wrapper around `arcgis-portal-browser` that renders filters from declarative config. */
12
+ export abstract class ArcgisPortalGroupBrowser extends LitElement {
13
+ /** @internal */
14
+ protected _messages: {
15
+ browser: {
16
+ pageRange: string;
17
+ pageRangeAria: string;
18
+ };
19
+ filters: { title: string; };
20
+ groupsByUser: {
21
+ title: string;
22
+ me: string;
23
+ };
24
+ owner: {
25
+ title: string;
26
+ label: string;
27
+ owner: string;
28
+ inOrg: string;
29
+ outsideOrg: string;
30
+ someoneElse: string;
31
+ };
32
+ membership: {
33
+ title: string;
34
+ label: string;
35
+ org: string;
36
+ collaboration: string;
37
+ anyOrg: string;
38
+ };
39
+ memberOrg: {
40
+ title: string;
41
+ label: string;
42
+ myOrg: string;
43
+ anotherOrg: string;
44
+ };
45
+ specialGroups: {
46
+ title: string;
47
+ label: string;
48
+ openData: string;
49
+ sharedUpdate: string;
50
+ distributed: string;
51
+ admin: string;
52
+ settings: string;
53
+ };
54
+ access: {
55
+ title: string;
56
+ label: string;
57
+ public: string;
58
+ org: string;
59
+ private: string;
60
+ };
61
+ preview: {
62
+ titleFallback: string;
63
+ loading: string;
64
+ close: string;
65
+ ownedBy: string;
66
+ overview: string;
67
+ noSummary: string;
68
+ description: string;
69
+ noDescription: string;
70
+ content: string;
71
+ noContent: string;
72
+ viewContent: string;
73
+ groupManagers: string;
74
+ groupOwner: string;
75
+ noManagers: string;
76
+ openMembers: string;
77
+ settings: string;
78
+ viewableBy: string;
79
+ contributors: string;
80
+ joinMethod: string;
81
+ openSettings: string;
82
+ everyone: string;
83
+ onlyMembers: string;
84
+ onlyOrganization: string;
85
+ onlyOrganizationAndPartners: string;
86
+ onlyOwnerManager: string;
87
+ allMembers: string;
88
+ byAutojoin: string;
89
+ byInvitation: string;
90
+ byEnterprise: string;
91
+ byRequest: string;
92
+ access: string;
93
+ groupTags: string;
94
+ openGroupPage: string;
95
+ unknownValue: string;
96
+ };
97
+ content: {
98
+ noResults: string;
99
+ noContent: string;
100
+ loading: string;
101
+ };
102
+ } & T9nMeta<{
103
+ browser: {
104
+ pageRange: string;
105
+ pageRangeAria: string;
106
+ };
107
+ filters: { title: string; };
108
+ groupsByUser: {
109
+ title: string;
110
+ me: string;
111
+ };
112
+ owner: {
113
+ title: string;
114
+ label: string;
115
+ owner: string;
116
+ inOrg: string;
117
+ outsideOrg: string;
118
+ someoneElse: string;
119
+ };
120
+ membership: {
121
+ title: string;
122
+ label: string;
123
+ org: string;
124
+ collaboration: string;
125
+ anyOrg: string;
126
+ };
127
+ memberOrg: {
128
+ title: string;
129
+ label: string;
130
+ myOrg: string;
131
+ anotherOrg: string;
132
+ };
133
+ specialGroups: {
134
+ title: string;
135
+ label: string;
136
+ openData: string;
137
+ sharedUpdate: string;
138
+ distributed: string;
139
+ admin: string;
140
+ settings: string;
141
+ };
142
+ access: {
143
+ title: string;
144
+ label: string;
145
+ public: string;
146
+ org: string;
147
+ private: string;
148
+ };
149
+ preview: {
150
+ titleFallback: string;
151
+ loading: string;
152
+ close: string;
153
+ ownedBy: string;
154
+ overview: string;
155
+ noSummary: string;
156
+ description: string;
157
+ noDescription: string;
158
+ content: string;
159
+ noContent: string;
160
+ viewContent: string;
161
+ groupManagers: string;
162
+ groupOwner: string;
163
+ noManagers: string;
164
+ openMembers: string;
165
+ settings: string;
166
+ viewableBy: string;
167
+ contributors: string;
168
+ joinMethod: string;
169
+ openSettings: string;
170
+ everyone: string;
171
+ onlyMembers: string;
172
+ onlyOrganization: string;
173
+ onlyOrganizationAndPartners: string;
174
+ onlyOwnerManager: string;
175
+ allMembers: string;
176
+ byAutojoin: string;
177
+ byInvitation: string;
178
+ byEnterprise: string;
179
+ byRequest: string;
180
+ access: string;
181
+ groupTags: string;
182
+ openGroupPage: string;
183
+ unknownValue: string;
184
+ };
185
+ content: {
186
+ noResults: string;
187
+ noContent: string;
188
+ loading: string;
189
+ };
190
+ }>;
191
+ /**
192
+ * Optionally force showing selection region in content top bar.
193
+ *
194
+ * @default false
195
+ */
196
+ accessor alwaysShowSelection: boolean;
197
+ /** Optional per-group card prop customization for baked-in result rendering. */
198
+ accessor cards: PortalGroupBrowserCardsConfig;
199
+ /** Optional custom fetch function for group data retrieval. */
200
+ accessor fetch: ((query: PortalGroupBrowserQuery) => Promise<PortalGroupBrowserSearchResult>) | undefined;
201
+ /** Filter configuration rendered internally by this component. */
202
+ accessor filters: PortalGroupBrowserFiltersConfig;
203
+ /**
204
+ * Browser responsive form factor.
205
+ *
206
+ * @default "large"
207
+ */
208
+ accessor formFactor: "large" | "small";
209
+ /**
210
+ * True when membership options should be restricted for indoor spaces behavior.
211
+ *
212
+ * @default false
213
+ */
214
+ accessor hasIndoorsSpaces: boolean;
215
+ /**
216
+ * Height sizing mode forwarded to arcgis-portal-browser.
217
+ *
218
+ * @default "full"
219
+ */
220
+ accessor height: "auto" | "full";
221
+ /**
222
+ * Optionally hide group badges for the group browser preview element.
223
+ *
224
+ * @default false
225
+ */
226
+ accessor hidePreviewBadges: boolean;
227
+ /**
228
+ * Optionally hide the footer for the group browser preview element.
229
+ *
230
+ * @default false
231
+ */
232
+ accessor hidePreviewFooter: boolean;
233
+ /**
234
+ * Browser loading state.
235
+ *
236
+ * @default false
237
+ */
238
+ accessor loading: boolean;
239
+ /**
240
+ * Number of results to fetch per page.
241
+ *
242
+ * @default 60
243
+ */
244
+ accessor num: number;
245
+ accessor portal: Portal;
246
+ /** Optional preflight transform before fetch is executed. */
247
+ accessor preflight: ((query: PortalGroupBrowserQuery) => Promise<PortalGroupBrowserQuery>) | undefined;
248
+ /**
249
+ * Default preview behavior forwarded to group cards unless overridden per card.
250
+ *
251
+ * @default "top"
252
+ */
253
+ accessor preview: PortalGroupCardProps["preview"];
254
+ /**
255
+ * Optional base query applied to each fetch operation.
256
+ *
257
+ * @default ""
258
+ */
259
+ accessor q: string;
260
+ /**
261
+ * Optional search term forwarded to arcgis-portal-browser.
262
+ *
263
+ * @default ""
264
+ */
265
+ accessor searchTerm: string;
266
+ /** Optional search-user input to constrain queries by user. */
267
+ accessor searchUser: string | undefined;
268
+ /** Optional selected groups forwarded to arcgis-portal-browser. */
269
+ accessor selected: PortalGroup[] | undefined;
270
+ /**
271
+ * Selection mode for card-level interactions.
272
+ *
273
+ * @default "none"
274
+ */
275
+ accessor selection: "multiple" | "none" | "single";
276
+ /** Sort configuration rendered internally by this component. */
277
+ accessor sort: PortalGroupBrowserSortConfig;
278
+ /** Shared browser store that tracks active filters and responsive state. */
279
+ accessor store: Accessor & GroupBrowserState;
280
+ refresh(): Promise<void>;
281
+ /** Mirrors live-region announcements from the underlying portal browser. */
282
+ readonly arcgisAriaUpdate: import("@arcgis/lumina").TargetedEvent<this, string>;
283
+ readonly arcgisGroupBrowserInternalUIAction: import("@arcgis/lumina").TargetedEvent<this, InternalUIAction>;
284
+ readonly arcgisGroupBrowserLoading: import("@arcgis/lumina").TargetedEvent<this, void>;
285
+ readonly arcgisGroupBrowserPreview: import("@arcgis/lumina").TargetedEvent<this, PortalGroup | null>;
286
+ readonly arcgisGroupBrowserSelect: import("@arcgis/lumina").TargetedEvent<this, PortalGroup[]>;
287
+ /** Fires when preview is opened or closed for sublayer parity; currently emits null on close. */
288
+ readonly arcgisGroupBrowserSublayerPreview: import("@arcgis/lumina").TargetedEvent<this, null>;
289
+ readonly arcgisGroupBrowserUpdate: import("@arcgis/lumina").TargetedEvent<this, PortalGroupBrowserResponse>;
290
+ readonly arcgisGroupBrowserUserFilterChange: import("@arcgis/lumina").TargetedEvent<this, string>;
291
+ readonly "@eventTypes": {
292
+ arcgisAriaUpdate: ArcgisPortalGroupBrowser["arcgisAriaUpdate"]["detail"];
293
+ arcgisGroupBrowserInternalUIAction: ArcgisPortalGroupBrowser["arcgisGroupBrowserInternalUIAction"]["detail"];
294
+ arcgisGroupBrowserLoading: ArcgisPortalGroupBrowser["arcgisGroupBrowserLoading"]["detail"];
295
+ arcgisGroupBrowserPreview: ArcgisPortalGroupBrowser["arcgisGroupBrowserPreview"]["detail"];
296
+ arcgisGroupBrowserSelect: ArcgisPortalGroupBrowser["arcgisGroupBrowserSelect"]["detail"];
297
+ arcgisGroupBrowserSublayerPreview: ArcgisPortalGroupBrowser["arcgisGroupBrowserSublayerPreview"]["detail"];
298
+ arcgisGroupBrowserUpdate: ArcgisPortalGroupBrowser["arcgisGroupBrowserUpdate"]["detail"];
299
+ arcgisGroupBrowserUserFilterChange: ArcgisPortalGroupBrowser["arcgisGroupBrowserUserFilterChange"]["detail"];
300
+ };
301
+ }