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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (207) hide show
  1. package/dist/cdn/2C475EKD.js +2 -0
  2. package/dist/cdn/3J46PXFF.js +3 -0
  3. package/dist/cdn/3MBOA5WF.js +2 -0
  4. package/dist/cdn/{GQFWFZXP.js → 3OBIA66A.js} +1 -1
  5. package/dist/cdn/3Z3ZPFGJ.js +2 -0
  6. package/dist/cdn/5NMFQE4U.js +2 -0
  7. package/dist/cdn/5VPTTFBP.js +451 -0
  8. package/dist/cdn/{7WZHZP6U.js → 63THOLAY.js} +9 -3
  9. package/dist/cdn/6AGZRMJC.js +2 -0
  10. package/dist/cdn/6DYBW2C6.js +2 -0
  11. package/dist/cdn/6RK4FBHZ.js +2 -0
  12. package/dist/cdn/6W2IHKCA.js +2 -0
  13. package/dist/cdn/7E5GJIZV.js +2 -0
  14. package/dist/cdn/A4CT6D4Y.js +2 -0
  15. package/dist/cdn/AL57LV4E.js +2 -0
  16. package/dist/cdn/{LQ3DMZ3K.js → AXM6XCZD.js} +1 -1
  17. package/dist/cdn/AYR65LXN.js +65 -0
  18. package/dist/cdn/BUJPYZSX.js +2 -0
  19. package/dist/cdn/{DKBTJJMW.js → C7ZFXRPS.js} +1 -1
  20. package/dist/cdn/D76KMXZD.js +2 -0
  21. package/dist/cdn/DFTUMKSN.js +3 -0
  22. package/dist/cdn/EI6BAXCQ.js +2 -0
  23. package/dist/cdn/FXIP4QXJ.js +2 -0
  24. package/dist/cdn/GE75KDIM.js +2 -0
  25. package/dist/cdn/GJTJLK6T.js +2 -0
  26. package/dist/cdn/GKOXTQHB.js +2 -0
  27. package/dist/cdn/GQMPPCEL.js +2 -0
  28. package/dist/cdn/GXJU3U7U.js +2 -0
  29. package/dist/cdn/HMBSJR37.js +2 -0
  30. package/dist/cdn/HZ5W3DBR.js +2 -0
  31. package/dist/cdn/{V2EOXGK2.js → I234NUZ5.js} +1 -1
  32. package/dist/cdn/I5HSJRM3.js +2 -0
  33. package/dist/cdn/IBP5XPD5.js +2 -0
  34. package/dist/cdn/IC65R4QE.js +2 -0
  35. package/dist/cdn/IHSJ4MKS.js +2 -0
  36. package/dist/cdn/IJ3CLFAU.js +22 -0
  37. package/dist/cdn/IWUJRI4G.js +2 -0
  38. package/dist/cdn/{ZTHTFEYA.js → IXVR3KMC.js} +1 -1
  39. package/dist/cdn/{QNUYUNEY.js → JS45DWQ3.js} +1 -1
  40. package/dist/cdn/{DHHSKOUY.js → JV23HJTE.js} +1 -1
  41. package/dist/cdn/{LAFNDBTQ.js → JYIPREIH.js} +1 -1
  42. package/dist/cdn/JZKBUYPV.js +2 -0
  43. package/dist/cdn/KM5XGRXL.js +2 -0
  44. package/dist/cdn/{3PAHY5KA.js → KNRJ3WXR.js} +1 -1
  45. package/dist/cdn/L4DRNGOL.js +2 -0
  46. package/dist/cdn/{F6V7MLPY.js → L6KBBJEC.js} +1 -1
  47. package/dist/cdn/NJ2WDAJM.js +2 -0
  48. package/dist/cdn/NWIIOJEG.js +2 -0
  49. package/dist/cdn/{53MSUMA3.js → OT4PZJNB.js} +17 -1
  50. package/dist/cdn/QE4CNVDQ.js +34 -0
  51. package/dist/cdn/{AQWTJKUH.js → QKCV7CY2.js} +10 -8
  52. package/dist/cdn/RKNDXSVK.js +2 -0
  53. package/dist/cdn/SLTFLCVR.js +99 -0
  54. package/dist/cdn/SUPKZF5M.js +2 -0
  55. package/dist/cdn/{GT26WGJS.js → SXZRHHXC.js} +1 -1
  56. package/dist/cdn/TJAX7J4T.js +2 -0
  57. package/dist/cdn/{DXCPWJU4.js → TKCE4WYE.js} +1 -1
  58. package/dist/cdn/TMRF4W62.js +637 -0
  59. package/dist/cdn/U3FVMN32.js +2 -0
  60. package/dist/cdn/UZLQALHY.js +2 -0
  61. package/dist/cdn/{RR4BIAPA.js → V4EYW3O6.js} +1 -1
  62. package/dist/cdn/{74XFARCV.js → VW7DSKPH.js} +1 -1
  63. package/dist/cdn/W2SYL7IJ.js +71 -0
  64. package/dist/cdn/{W6PSG4GX.js → W4FGRGLV.js} +10 -5
  65. package/dist/cdn/{SYJSVUUR.js → W4SAWMXS.js} +1 -1
  66. package/dist/cdn/WBZLQZYR.js +134 -0
  67. package/dist/cdn/WGZZB2DJ.js +2 -0
  68. package/dist/cdn/WO23VQK3.js +2 -0
  69. package/dist/cdn/{2UUZHENH.js → WSNLUGEP.js} +1 -1
  70. package/dist/cdn/WSWHK6LB.js +2 -0
  71. package/dist/cdn/{WOZDQW3S.js → WX65MRDH.js} +1 -1
  72. package/dist/cdn/XEK22IDA.js +2 -0
  73. package/dist/cdn/ZPIXIG3Z.js +2 -0
  74. package/dist/cdn/ZVFNCDG5.js +2 -0
  75. package/dist/cdn/assets/portal-browser/t9n/messages.en.json +1 -0
  76. package/dist/cdn/assets/portal-group-badges/t9n/messages.en.json +1 -0
  77. package/dist/cdn/assets/portal-group-card/t9n/messages.en.json +1 -0
  78. package/dist/cdn/assets/portal-item-type/icons/parquetfeaturelayer16.svg +1 -0
  79. package/dist/cdn/assets/portal-item-type/icons/parquetfeaturelayer32.svg +1 -0
  80. package/dist/cdn/assets/portal-item-type/icons/storymapframe16.svg +1 -0
  81. package/dist/cdn/assets/portal-item-type/icons/storymapframe32.svg +1 -0
  82. package/dist/cdn/assets/portal-item-type/t9n/messages.en.json +1 -1
  83. package/dist/cdn/assets/portal-user-popup/t9n/messages.en.json +1 -0
  84. package/dist/cdn/index.js +1 -1
  85. package/dist/cdn/main.css +1 -1
  86. package/dist/chunks/dom.js +36 -0
  87. package/dist/chunks/functionalities.js +5 -4
  88. package/dist/chunks/groups.js +7 -83
  89. package/dist/chunks/item2.js +86 -0
  90. package/dist/chunks/portal.js +48 -8
  91. package/dist/chunks/store.js +18 -0
  92. package/dist/chunks/ui.js +10 -0
  93. package/dist/chunks/user2.js +26 -25
  94. package/dist/components/arcgis-portal-ai-assistant/agents/types.d.ts +11 -2
  95. package/dist/components/arcgis-portal-ai-assistant/customElement.d.ts +4 -2
  96. package/dist/components/arcgis-portal-ai-assistant/customElement.js +797 -488
  97. package/dist/components/arcgis-portal-ai-assistant-interrupt/customElement.js +10 -10
  98. package/dist/components/arcgis-portal-browser/customElement.d.ts +235 -0
  99. package/dist/components/arcgis-portal-browser/customElement.js +201 -0
  100. package/dist/components/arcgis-portal-browser/index.d.ts +1 -0
  101. package/dist/components/arcgis-portal-browser/index.js +6 -0
  102. package/dist/components/arcgis-portal-browser/utils/store.d.ts +31 -0
  103. package/dist/components/arcgis-portal-browser/utils/types.d.ts +18 -0
  104. package/dist/components/arcgis-portal-browser-actions/customElement.d.ts +187 -0
  105. package/dist/components/arcgis-portal-browser-actions/customElement.js +70 -0
  106. package/dist/components/arcgis-portal-browser-actions/index.d.ts +1 -0
  107. package/dist/components/arcgis-portal-browser-actions/index.js +6 -0
  108. package/dist/components/arcgis-portal-browser-actions/types.d.ts +9 -0
  109. package/dist/components/arcgis-portal-browser-filter/customElement.d.ts +226 -0
  110. package/dist/components/arcgis-portal-browser-filter/customElement.js +32 -0
  111. package/dist/components/arcgis-portal-browser-filter/index.d.ts +1 -0
  112. package/dist/components/arcgis-portal-browser-filter/index.js +4 -0
  113. package/dist/components/arcgis-portal-browser-filter-date/customElement.d.ts +233 -0
  114. package/dist/components/arcgis-portal-browser-filter-date/customElement.js +117 -0
  115. package/dist/components/arcgis-portal-browser-filter-date/index.d.ts +1 -0
  116. package/dist/components/arcgis-portal-browser-filter-date/index.js +5 -0
  117. package/dist/components/arcgis-portal-browser-filter-status/customElement.d.ts +193 -0
  118. package/dist/components/arcgis-portal-browser-filter-status/customElement.js +56 -0
  119. package/dist/components/arcgis-portal-browser-filter-status/index.d.ts +1 -0
  120. package/dist/components/arcgis-portal-browser-filter-status/index.js +5 -0
  121. package/dist/components/arcgis-portal-browser-filters/customElement.d.ts +7 -0
  122. package/dist/components/arcgis-portal-browser-filters/customElement.js +29 -0
  123. package/dist/components/arcgis-portal-browser-filters/index.d.ts +1 -0
  124. package/dist/components/arcgis-portal-browser-filters/index.js +2 -0
  125. package/dist/components/arcgis-portal-browser-pagination/customElement.d.ts +194 -0
  126. package/dist/components/arcgis-portal-browser-pagination/customElement.js +51 -0
  127. package/dist/components/arcgis-portal-browser-pagination/index.d.ts +1 -0
  128. package/dist/components/arcgis-portal-browser-pagination/index.js +2 -0
  129. package/dist/components/arcgis-portal-browser-search/customElement.d.ts +195 -0
  130. package/dist/components/arcgis-portal-browser-search/customElement.js +65 -0
  131. package/dist/components/arcgis-portal-browser-search/index.d.ts +1 -0
  132. package/dist/components/arcgis-portal-browser-search/index.js +3 -0
  133. package/dist/components/arcgis-portal-browser-sort/customElement.d.ts +196 -0
  134. package/dist/components/arcgis-portal-browser-sort/customElement.js +93 -0
  135. package/dist/components/arcgis-portal-browser-sort/index.d.ts +1 -0
  136. package/dist/components/arcgis-portal-browser-sort/index.js +9 -0
  137. package/dist/components/arcgis-portal-browser-sort/utils.d.ts +3 -0
  138. package/dist/components/arcgis-portal-browser-top-bar/customElement.d.ts +184 -0
  139. package/dist/components/arcgis-portal-browser-top-bar/customElement.js +51 -0
  140. package/dist/components/arcgis-portal-browser-top-bar/index.d.ts +1 -0
  141. package/dist/components/arcgis-portal-browser-top-bar/index.js +3 -0
  142. package/dist/components/arcgis-portal-browser-view/customElement.d.ts +21 -0
  143. package/dist/components/arcgis-portal-browser-view/customElement.js +30 -0
  144. package/dist/components/arcgis-portal-browser-view/index.d.ts +1 -0
  145. package/dist/components/arcgis-portal-browser-view/index.js +5 -0
  146. package/dist/components/arcgis-portal-group-badges/customElement.d.ts +102 -0
  147. package/dist/components/arcgis-portal-group-badges/customElement.js +50 -0
  148. package/dist/components/arcgis-portal-group-badges/index.d.ts +1 -0
  149. package/dist/components/arcgis-portal-group-badges/index.js +3 -0
  150. package/dist/components/arcgis-portal-group-badges/types.d.ts +3 -0
  151. package/dist/components/arcgis-portal-group-card/customElement.d.ts +167 -0
  152. package/dist/components/arcgis-portal-group-card/customElement.js +183 -0
  153. package/dist/components/arcgis-portal-group-card/index.d.ts +1 -0
  154. package/dist/components/arcgis-portal-group-card/index.js +8 -0
  155. package/dist/components/arcgis-portal-group-thumbnail/customElement.d.ts +32 -0
  156. package/dist/components/arcgis-portal-group-thumbnail/customElement.js +153 -0
  157. package/dist/components/arcgis-portal-group-thumbnail/index.d.ts +1 -0
  158. package/dist/components/arcgis-portal-group-thumbnail/index.js +3 -0
  159. package/dist/components/arcgis-portal-item-type/customElement.d.ts +2 -0
  160. package/dist/components/arcgis-portal-item-type/customElement.js +45 -37
  161. package/dist/components/arcgis-portal-mentionable-text-area/customElement.js +1 -1
  162. package/dist/components/arcgis-portal-replacement-item-redirect/customElement.js +53 -42
  163. package/dist/components/arcgis-portal-user-popup/customElement.d.ts +111 -0
  164. package/dist/components/arcgis-portal-user-popup/customElement.js +224 -0
  165. package/dist/components/arcgis-portal-user-popup/index.d.ts +1 -0
  166. package/dist/components/arcgis-portal-user-popup/index.js +5 -0
  167. package/dist/components/arcgis-portal-voice-input/customElement.d.ts +1 -1
  168. package/dist/docs/api.json +1 -1
  169. package/dist/docs/docs.json +1 -1
  170. package/dist/docs/vscode.html-custom-data.json +1 -1
  171. package/dist/docs/web-types.json +1 -1
  172. package/dist/index.d.ts +122 -2
  173. package/dist/loader.js +19 -4
  174. package/dist/types/group.d.ts +13 -13
  175. package/dist/types/item.d.ts +77 -2
  176. package/dist/types/lumina.d.ts +93 -1
  177. package/dist/types/preact.d.ts +108 -1
  178. package/dist/types/react.d.ts +123 -1
  179. package/dist/types/search.d.ts +27 -0
  180. package/dist/types/stencil.d.ts +93 -1
  181. package/dist/types/tracking.d.ts +10 -0
  182. package/dist/types/user.d.ts +2 -2
  183. package/package.json +11 -11
  184. package/dist/cdn/5DPWJ7DI.js +0 -2
  185. package/dist/cdn/5VSDGPHH.js +0 -2
  186. package/dist/cdn/72N3KAXN.js +0 -2
  187. package/dist/cdn/ANPXRYLV.js +0 -5
  188. package/dist/cdn/B7633S2A.js +0 -422
  189. package/dist/cdn/BEHLBKKM.js +0 -2
  190. package/dist/cdn/CI5ENGVT.js +0 -2
  191. package/dist/cdn/EVDOPN3G.js +0 -54
  192. package/dist/cdn/G47ZZQYL.js +0 -2
  193. package/dist/cdn/GAHILDQF.js +0 -45
  194. package/dist/cdn/GHQ3ZW4U.js +0 -2
  195. package/dist/cdn/GNOZCQ34.js +0 -2
  196. package/dist/cdn/JNRN6DTV.js +0 -2
  197. package/dist/cdn/K3HS2LQ7.js +0 -2
  198. package/dist/cdn/KEKBRUUC.js +0 -2
  199. package/dist/cdn/N6G6Z7BF.js +0 -516
  200. package/dist/cdn/OQDPULPD.js +0 -2
  201. package/dist/cdn/RNLVNDGG.js +0 -2
  202. package/dist/cdn/SM4GWLRA.js +0 -66
  203. package/dist/cdn/TMYTUOSS.js +0 -2
  204. package/dist/cdn/YG5YYL6X.js +0 -2
  205. package/dist/cdn/YIMNOUTF.js +0 -2
  206. package/dist/cdn/YL7PGYWC.js +0 -5
  207. package/dist/cdn/YMPTDKT6.js +0 -2
@@ -0,0 +1,187 @@
1
+ /// <reference path="../../index.d.ts" />
2
+ import type { PublicLitElement as LitElement } from "@arcgis/lumina";
3
+ import type { SearchResultGroup } from "../../types/group.js";
4
+ import type { SearchResultItem } from "../../types/item.js";
5
+ import type { SearchResultUser } from "../../types/user.js";
6
+ import type { PortalBrowserAction } from "./types.js";
7
+ import type { T9nMeta } from "@arcgis/lumina/controllers";
8
+
9
+ export abstract class ArcgisPortalBrowserActions extends LitElement {
10
+ /** @internal */
11
+ protected _messages: {
12
+ browser: {
13
+ refineContent: string;
14
+ filters: string;
15
+ pageRange: string;
16
+ pageRangeAria: string;
17
+ pageRangeWithRecycleBin: string;
18
+ pageRangeAriaWithRecycleBin: string;
19
+ totalSize: string;
20
+ loading: string;
21
+ close: string;
22
+ };
23
+ actions: { more: string; };
24
+ filter: { clear: string; };
25
+ filterDate: {
26
+ today: string;
27
+ yesterday: string;
28
+ last7: string;
29
+ last30: string;
30
+ never: string;
31
+ custom: string;
32
+ title: {
33
+ created: string;
34
+ modified: string;
35
+ joined: string;
36
+ lastLogin: string;
37
+ };
38
+ created: string;
39
+ modified: string;
40
+ joined: string;
41
+ lastLogin: string;
42
+ };
43
+ pagination: {
44
+ next: string;
45
+ prev: string;
46
+ };
47
+ search: {
48
+ label: string;
49
+ search: string;
50
+ clear: string;
51
+ wildcard: string;
52
+ };
53
+ sort: {
54
+ sortDirection: string;
55
+ title: string;
56
+ relevance: string;
57
+ modified: string;
58
+ deleted: string;
59
+ created: string;
60
+ added: string;
61
+ size: string;
62
+ owner: string;
63
+ sizeAsc: string;
64
+ sizeDesc: string;
65
+ numviews: string;
66
+ numAsc: string;
67
+ numDesc: string;
68
+ alphabeticalAsc: string;
69
+ alphabeticalDesc: string;
70
+ recentAsc: string;
71
+ recentDesc: string;
72
+ sort: string;
73
+ sortBy: string;
74
+ sortByColon: string;
75
+ fullname: string;
76
+ username: string;
77
+ name: string;
78
+ membertype: string;
79
+ joined: string;
80
+ lastlogin: string;
81
+ dataset: string;
82
+ mfaenabled: string;
83
+ description: string;
84
+ lastSyncFailureCount: string;
85
+ invitationsPendingCount: string;
86
+ participantGroupLinksCount: string;
87
+ defaultAsc: string;
88
+ defaultDesc: string;
89
+ };
90
+ topBar: { filter: string; };
91
+ filterStatus: {
92
+ clear: string;
93
+ filters: string;
94
+ additional: string;
95
+ clearAllFilters: string;
96
+ };
97
+ } & T9nMeta<{
98
+ browser: {
99
+ refineContent: string;
100
+ filters: string;
101
+ pageRange: string;
102
+ pageRangeAria: string;
103
+ pageRangeWithRecycleBin: string;
104
+ pageRangeAriaWithRecycleBin: string;
105
+ totalSize: string;
106
+ loading: string;
107
+ close: string;
108
+ };
109
+ actions: { more: string; };
110
+ filter: { clear: string; };
111
+ filterDate: {
112
+ today: string;
113
+ yesterday: string;
114
+ last7: string;
115
+ last30: string;
116
+ never: string;
117
+ custom: string;
118
+ title: {
119
+ created: string;
120
+ modified: string;
121
+ joined: string;
122
+ lastLogin: string;
123
+ };
124
+ created: string;
125
+ modified: string;
126
+ joined: string;
127
+ lastLogin: string;
128
+ };
129
+ pagination: {
130
+ next: string;
131
+ prev: string;
132
+ };
133
+ search: {
134
+ label: string;
135
+ search: string;
136
+ clear: string;
137
+ wildcard: string;
138
+ };
139
+ sort: {
140
+ sortDirection: string;
141
+ title: string;
142
+ relevance: string;
143
+ modified: string;
144
+ deleted: string;
145
+ created: string;
146
+ added: string;
147
+ size: string;
148
+ owner: string;
149
+ sizeAsc: string;
150
+ sizeDesc: string;
151
+ numviews: string;
152
+ numAsc: string;
153
+ numDesc: string;
154
+ alphabeticalAsc: string;
155
+ alphabeticalDesc: string;
156
+ recentAsc: string;
157
+ recentDesc: string;
158
+ sort: string;
159
+ sortBy: string;
160
+ sortByColon: string;
161
+ fullname: string;
162
+ username: string;
163
+ name: string;
164
+ membertype: string;
165
+ joined: string;
166
+ lastlogin: string;
167
+ dataset: string;
168
+ mfaenabled: string;
169
+ description: string;
170
+ lastSyncFailureCount: string;
171
+ invitationsPendingCount: string;
172
+ participantGroupLinksCount: string;
173
+ defaultAsc: string;
174
+ defaultDesc: string;
175
+ };
176
+ topBar: { filter: string; };
177
+ filterStatus: {
178
+ clear: string;
179
+ filters: string;
180
+ additional: string;
181
+ clearAllFilters: string;
182
+ };
183
+ }>;
184
+ accessor actions: PortalBrowserAction[];
185
+ accessor selection: SearchResultGroup[] | SearchResultItem[] | SearchResultUser[] | undefined;
186
+ restoreFocus(): Promise<void>;
187
+ }
@@ -0,0 +1,70 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
+ import { c as h } from "../../chunks/runtime.js";
3
+ import { LitElement as u, nothing as m } from "@arcgis/lumina";
4
+ import { css as p, html as s } from "lit";
5
+ import { createRef as l, ref as a } from "lit/directives/ref.js";
6
+ import { u as v } from "../../chunks/useT9n.js";
7
+ import { t as f } from "../../chunks/functionalities.js";
8
+ const w = p`:host{display:flex;justify-content:flex-end;margin-inline:1rem;position:relative}.wrapper{padding-inline-start:.25rem;display:flex;border-inline-start:1px solid var(--calcite-color-border-1);border-inline-end:1px solid var(--calcite-color-border-1)}.tooltip-container{width:9rem}.button{margin-inline-end:.25rem}.measure-container{position:absolute;width:100%;height:0;overflow:hidden}.measure-text{visibility:hidden;height:0;width:auto;overflow:hidden;font-size:var(--calcite-font-size--1)}`;
9
+ class b extends u {
10
+ constructor() {
11
+ super(...arguments), this.measureText = l(), this.overflowButton = l(), this.resizeObserver = null, this.actionWidths = [], this._messages = v({ name: "portal-browser", blocking: !0 }), this.buttonPadding = 88, this.moreWidth = 0, this.elementWidth = 0, this.visibleActions = [], this.overflowActions = [], this.calculating = !1, this.actions = [];
12
+ }
13
+ static {
14
+ this.properties = { visibleActions: 16, overflowActions: 16, calculating: 16, actions: 0, selection: 0 };
15
+ }
16
+ static {
17
+ this.styles = w;
18
+ }
19
+ async restoreFocus() {
20
+ this.lastExecutedAction?.setFocus();
21
+ }
22
+ willUpdate(t) {
23
+ t.has("actions") && (this.measureAndCacheWidths(this.actions), this.calculateOverflow()), t.has("selection") && (this.selection?.length ? f(100).then(() => {
24
+ this.calculating = !1;
25
+ }) : this.calculating = !0);
26
+ }
27
+ firstUpdated() {
28
+ this.measureAndCacheWidths(this.actions), this.calculateOverflow(), !(typeof ResizeObserver > "u") && (this.resizeObserver = new ResizeObserver((t) => {
29
+ for (const e of t)
30
+ e.contentRect.width > 0 && (this.elementWidth = e.contentRect.width, this.calculateOverflow());
31
+ }), this.resizeObserver.observe(this.el));
32
+ }
33
+ disconnectedCallback() {
34
+ this.resizeObserver?.disconnect(), this.resizeObserver = null, super.disconnectedCallback();
35
+ }
36
+ measureAndCacheWidths(t) {
37
+ const e = this.measureText.value;
38
+ if (!e)
39
+ return;
40
+ this.actionWidths = t.map((o) => (e.textContent = o.text, {
41
+ action: o,
42
+ width: e.offsetWidth + this.buttonPadding
43
+ }));
44
+ const i = this._messages.actions.more;
45
+ e.textContent = i, this.moreWidth = e.scrollWidth + this.buttonPadding;
46
+ }
47
+ calculateOverflow() {
48
+ const t = this.moreWidth, e = this.actionWidths.reduce(({ width: i, visible: o, overflow: r }, { action: c, width: d }) => {
49
+ const n = i + d;
50
+ return n >= this.elementWidth ? { width: n, visible: o, overflow: [...r, c] } : { width: n, visible: [...o, c], overflow: r };
51
+ }, { visible: [], overflow: [], width: t });
52
+ this.visibleActions = e.visible, this.overflowActions = e.overflow;
53
+ }
54
+ renderButton(t) {
55
+ const e = t.id || `${t.text}-${t.icon || "none"}`;
56
+ return s`<div><calcite-button class="button" .iconStart=${t.icon} @click=${(i) => {
57
+ this.lastExecutedAction = i.currentTarget, t.onClick();
58
+ }} appearance=transparent kind=neutral id=${e ?? m}>${t.text}</calcite-button>${t.tooltip && s`<calcite-tooltip .referenceElement=${e}><span class="tooltip-container">${t.tooltip}</span></calcite-tooltip>` || ""}</div>`;
59
+ }
60
+ render() {
61
+ const t = this.overflowActions.length > 0, e = this._messages.actions.more;
62
+ return s`<div><span class="measure-container"><span class="measure-text" aria-hidden ${a(this.measureText)}></span></span>${!!this.selection?.length && (this.visibleActions.length > 0 || t) && !this.calculating && s`<nav class="wrapper">${this.visibleActions.map((i) => this.renderButton(i))}${t && s`<calcite-dropdown width=m placement=bottom-end><calcite-button slot=trigger kind=neutral icon-end=chevron-down appearance=transparent ${a(this.overflowButton)}>${e}</calcite-button><calcite-dropdown-group selection-mode=none>${this.overflowActions.map((i) => s`<calcite-dropdown-item .iconStart=${i.icon || "blank"} @calciteDropdownItemSelect=${() => {
63
+ this.lastExecutedAction = this.overflowButton.value || void 0, i.onClick();
64
+ }}>${i.text}</calcite-dropdown-item>`)}</calcite-dropdown-group></calcite-dropdown>` || ""}</nav>` || ""}</div>`;
65
+ }
66
+ }
67
+ h("arcgis-portal-browser-actions", b);
68
+ export {
69
+ b as ArcgisPortalBrowserActions
70
+ };
@@ -0,0 +1 @@
1
+ export * from "./customElement.js";
@@ -0,0 +1,6 @@
1
+ import "@esri/calcite-components/components/calcite-button";
2
+ import "@esri/calcite-components/components/calcite-tooltip";
3
+ import "@esri/calcite-components/components/calcite-dropdown";
4
+ import "@esri/calcite-components/components/calcite-dropdown-group";
5
+ import "@esri/calcite-components/components/calcite-dropdown-item";
6
+ export * from "./customElement.js";
@@ -0,0 +1,9 @@
1
+ import type { Icon as Icon } from "@esri/calcite-components/components/calcite-icon";
2
+
3
+ export interface PortalBrowserAction {
4
+ text: string;
5
+ icon?: Icon["icon"];
6
+ id?: string;
7
+ onClick: () => void;
8
+ tooltip?: string;
9
+ }
@@ -0,0 +1,226 @@
1
+ /// <reference path="../../index.d.ts" />
2
+ import type { PublicLitElement as LitElement } from "@arcgis/lumina";
3
+ import type { T9nMeta } from "@arcgis/lumina/controllers";
4
+
5
+ export abstract class ArcgisPortalBrowserFilter extends LitElement {
6
+ /** @internal */
7
+ protected _messages: {
8
+ browser: {
9
+ refineContent: string;
10
+ filters: string;
11
+ pageRange: string;
12
+ pageRangeAria: string;
13
+ pageRangeWithRecycleBin: string;
14
+ pageRangeAriaWithRecycleBin: string;
15
+ totalSize: string;
16
+ loading: string;
17
+ close: string;
18
+ };
19
+ actions: { more: string; };
20
+ filter: { clear: string; };
21
+ filterDate: {
22
+ today: string;
23
+ yesterday: string;
24
+ last7: string;
25
+ last30: string;
26
+ never: string;
27
+ custom: string;
28
+ title: {
29
+ created: string;
30
+ modified: string;
31
+ joined: string;
32
+ lastLogin: string;
33
+ };
34
+ created: string;
35
+ modified: string;
36
+ joined: string;
37
+ lastLogin: string;
38
+ };
39
+ pagination: {
40
+ next: string;
41
+ prev: string;
42
+ };
43
+ search: {
44
+ label: string;
45
+ search: string;
46
+ clear: string;
47
+ wildcard: string;
48
+ };
49
+ sort: {
50
+ sortDirection: string;
51
+ title: string;
52
+ relevance: string;
53
+ modified: string;
54
+ deleted: string;
55
+ created: string;
56
+ added: string;
57
+ size: string;
58
+ owner: string;
59
+ sizeAsc: string;
60
+ sizeDesc: string;
61
+ numviews: string;
62
+ numAsc: string;
63
+ numDesc: string;
64
+ alphabeticalAsc: string;
65
+ alphabeticalDesc: string;
66
+ recentAsc: string;
67
+ recentDesc: string;
68
+ sort: string;
69
+ sortBy: string;
70
+ sortByColon: string;
71
+ fullname: string;
72
+ username: string;
73
+ name: string;
74
+ membertype: string;
75
+ joined: string;
76
+ lastlogin: string;
77
+ dataset: string;
78
+ mfaenabled: string;
79
+ description: string;
80
+ lastSyncFailureCount: string;
81
+ invitationsPendingCount: string;
82
+ participantGroupLinksCount: string;
83
+ defaultAsc: string;
84
+ defaultDesc: string;
85
+ };
86
+ topBar: { filter: string; };
87
+ filterStatus: {
88
+ clear: string;
89
+ filters: string;
90
+ additional: string;
91
+ clearAllFilters: string;
92
+ };
93
+ } & T9nMeta<{
94
+ browser: {
95
+ refineContent: string;
96
+ filters: string;
97
+ pageRange: string;
98
+ pageRangeAria: string;
99
+ pageRangeWithRecycleBin: string;
100
+ pageRangeAriaWithRecycleBin: string;
101
+ totalSize: string;
102
+ loading: string;
103
+ close: string;
104
+ };
105
+ actions: { more: string; };
106
+ filter: { clear: string; };
107
+ filterDate: {
108
+ today: string;
109
+ yesterday: string;
110
+ last7: string;
111
+ last30: string;
112
+ never: string;
113
+ custom: string;
114
+ title: {
115
+ created: string;
116
+ modified: string;
117
+ joined: string;
118
+ lastLogin: string;
119
+ };
120
+ created: string;
121
+ modified: string;
122
+ joined: string;
123
+ lastLogin: string;
124
+ };
125
+ pagination: {
126
+ next: string;
127
+ prev: string;
128
+ };
129
+ search: {
130
+ label: string;
131
+ search: string;
132
+ clear: string;
133
+ wildcard: string;
134
+ };
135
+ sort: {
136
+ sortDirection: string;
137
+ title: string;
138
+ relevance: string;
139
+ modified: string;
140
+ deleted: string;
141
+ created: string;
142
+ added: string;
143
+ size: string;
144
+ owner: string;
145
+ sizeAsc: string;
146
+ sizeDesc: string;
147
+ numviews: string;
148
+ numAsc: string;
149
+ numDesc: string;
150
+ alphabeticalAsc: string;
151
+ alphabeticalDesc: string;
152
+ recentAsc: string;
153
+ recentDesc: string;
154
+ sort: string;
155
+ sortBy: string;
156
+ sortByColon: string;
157
+ fullname: string;
158
+ username: string;
159
+ name: string;
160
+ membertype: string;
161
+ joined: string;
162
+ lastlogin: string;
163
+ dataset: string;
164
+ mfaenabled: string;
165
+ description: string;
166
+ lastSyncFailureCount: string;
167
+ invitationsPendingCount: string;
168
+ participantGroupLinksCount: string;
169
+ defaultAsc: string;
170
+ defaultDesc: string;
171
+ };
172
+ topBar: { filter: string; };
173
+ filterStatus: {
174
+ clear: string;
175
+ filters: string;
176
+ additional: string;
177
+ clearAllFilters: string;
178
+ };
179
+ }>;
180
+ /**
181
+ * Set to true if the filter is currently being applied.
182
+ *
183
+ * @default false
184
+ */
185
+ accessor active: boolean;
186
+ /**
187
+ * Set to true to disable the clear button.
188
+ *
189
+ * @default false
190
+ */
191
+ accessor clearDisabled: boolean;
192
+ /**
193
+ * Set to true to open the filter on first load.
194
+ *
195
+ * @default false
196
+ */
197
+ accessor expanded: boolean;
198
+ /**
199
+ * Pass the ID of the filter (used for remove event detail).
200
+ *
201
+ * @default ""
202
+ */
203
+ accessor filterId: string;
204
+ /**
205
+ * Translated title of the filter.
206
+ *
207
+ * @default ""
208
+ */
209
+ accessor heading: string;
210
+ /**
211
+ * Set to true when slotting in content that should not have default margins.
212
+ *
213
+ * @default false
214
+ */
215
+ accessor noPadding: boolean;
216
+ /**
217
+ * Use when rendering as a primary filter above the filter set.
218
+ *
219
+ * @default false
220
+ */
221
+ accessor primary: boolean;
222
+ readonly arcgisBrowserFilterRemove: import("@arcgis/lumina").TargetedEvent<this, string>;
223
+ readonly "@eventTypes": {
224
+ arcgisBrowserFilterRemove: ArcgisPortalBrowserFilter["arcgisBrowserFilterRemove"]["detail"];
225
+ };
226
+ }
@@ -0,0 +1,32 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
+ import { c as i } from "../../chunks/runtime.js";
3
+ import { css as r, html as e } from "lit";
4
+ import { LitElement as a, createEvent as s, safeClassMap as l } from "@arcgis/lumina";
5
+ import { u as o } from "../../chunks/useT9n.js";
6
+ const c = r`:host{display:block}.filter__wrapper{position:relative}.filter__accordion-item{--calcite-accordion-item-content-space: .75rem .25rem;--calcite-accordion-icon-margin: .5rem;border-top:1px solid var(--calcite-color-border-1)}.filter--primary{margin-bottom:1rem;position:relative}.filter__header{border-bottom:1px solid var(--calcite-color-border-2);display:flex;margin-bottom:.5rem;align-items:center}.filter__header--primary{margin-bottom:0}.filter__title{color:var(--calcite-color-text-1);flex:1;font-size:var(--calcite-font-size-0);font-weight:var(--calcite-font-weight-medium);line-height:1;margin:0;padding:1rem .5rem}.filter__actions-slot{display:flex;align-items:center}.filter__content{margin:0}.filter__content--padded{margin:-.75rem .5rem 0}.filter__content>calcite-tree>calcite-tree-item>a{padding-block:.25rem}.clear-button{margin-inline:.25rem}`;
7
+ class n extends a {
8
+ constructor() {
9
+ super(...arguments), this._messages = o({ name: "portal-browser", blocking: !0 }), this.expanded = !1, this.heading = "", this.active = !1, this.noPadding = !1, this.clearDisabled = !1, this.filterId = "", this.primary = !1, this.arcgisBrowserFilterRemove = s();
10
+ }
11
+ static {
12
+ this.properties = { expanded: 5, heading: 1, active: 5, noPadding: 5, clearDisabled: 5, filterId: 1, primary: 5 };
13
+ }
14
+ static {
15
+ this.styles = c;
16
+ }
17
+ emitFilterRemove() {
18
+ this.arcgisBrowserFilterRemove.emit(this.filterId);
19
+ }
20
+ render() {
21
+ const t = this._messages.filter.clear;
22
+ return this.primary ? e`<div class="filter--primary"><div class="filter__header filter__header--primary"><h3 class="filter__title">${this.heading}</h3><slot name=action></slot></div><slot></slot></div>` : e`<div class="filter__wrapper"><calcite-accordion appearance=transparent icon-type=chevron icon-position=start scale=m><calcite-accordion-item class="filter__accordion-item" .heading=${this.heading} .expanded=${this.expanded} @calciteAccordionItemExpand=${() => {
23
+ this.expanded = !0;
24
+ }} @calciteAccordionItemCollapse=${() => {
25
+ this.expanded = !1;
26
+ }}><div slot=actions-end class="filter__actions-slot"><slot name=action></slot>${this.active && !this.clearDisabled && e`<calcite-button class="clear-button" kind=neutral appearance=transparent @click=${() => this.emitFilterRemove()}>${t}</calcite-button>` || ""}</div><div class=${l({ filter__content: !0, "filter__content--padded": !this.noPadding })}><slot></slot></div></calcite-accordion-item></calcite-accordion></div>`;
27
+ }
28
+ }
29
+ i("arcgis-portal-browser-filter", n);
30
+ export {
31
+ n as ArcgisPortalBrowserFilter
32
+ };
@@ -0,0 +1 @@
1
+ export * from "./customElement.js";
@@ -0,0 +1,4 @@
1
+ import "@esri/calcite-components/components/calcite-accordion";
2
+ import "@esri/calcite-components/components/calcite-accordion-item";
3
+ import "@esri/calcite-components/components/calcite-button";
4
+ export * from "./customElement.js";