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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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/{7WZHZP6U.js → 63THOLAY.js} +9 -3
  8. package/dist/cdn/6AGZRMJC.js +2 -0
  9. package/dist/cdn/6DYBW2C6.js +2 -0
  10. package/dist/cdn/6RK4FBHZ.js +2 -0
  11. package/dist/cdn/6W2IHKCA.js +2 -0
  12. package/dist/cdn/7E5GJIZV.js +2 -0
  13. package/dist/cdn/AL57LV4E.js +2 -0
  14. package/dist/cdn/{LQ3DMZ3K.js → AXM6XCZD.js} +1 -1
  15. package/dist/cdn/AYR65LXN.js +65 -0
  16. package/dist/cdn/BUJPYZSX.js +2 -0
  17. package/dist/cdn/{DKBTJJMW.js → C7ZFXRPS.js} +1 -1
  18. package/dist/cdn/D76KMXZD.js +2 -0
  19. package/dist/cdn/DFTUMKSN.js +3 -0
  20. package/dist/cdn/DZJMNZY6.js +451 -0
  21. package/dist/cdn/EI6BAXCQ.js +2 -0
  22. package/dist/cdn/EVMYGWC6.js +637 -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/POIXW2OA.js +2 -0
  51. package/dist/cdn/QE4CNVDQ.js +34 -0
  52. package/dist/cdn/{AQWTJKUH.js → QKCV7CY2.js} +10 -8
  53. package/dist/cdn/RKNDXSVK.js +2 -0
  54. package/dist/cdn/SLTFLCVR.js +99 -0
  55. package/dist/cdn/SUPKZF5M.js +2 -0
  56. package/dist/cdn/{GT26WGJS.js → SXZRHHXC.js} +1 -1
  57. package/dist/cdn/TJAX7J4T.js +2 -0
  58. package/dist/cdn/{DXCPWJU4.js → TKCE4WYE.js} +1 -1
  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,194 @@
1
+ /// <reference path="../../index.d.ts" />
2
+ import type { PublicLitElement as LitElement } from "@arcgis/lumina";
3
+ import type { PortalBrowserStore } from "../arcgis-portal-browser/utils/store.js";
4
+ import type { BrowserPageDetail } from "../arcgis-portal-browser/utils/types.js";
5
+ import type { T9nMeta } from "@arcgis/lumina/controllers";
6
+
7
+ export abstract class ArcgisPortalBrowserPagination extends LitElement {
8
+ /** @internal */
9
+ protected _messages: {
10
+ browser: {
11
+ refineContent: string;
12
+ filters: string;
13
+ pageRange: string;
14
+ pageRangeAria: string;
15
+ pageRangeWithRecycleBin: string;
16
+ pageRangeAriaWithRecycleBin: string;
17
+ totalSize: string;
18
+ loading: string;
19
+ close: string;
20
+ };
21
+ actions: { more: string; };
22
+ filter: { clear: string; };
23
+ filterDate: {
24
+ today: string;
25
+ yesterday: string;
26
+ last7: string;
27
+ last30: string;
28
+ never: string;
29
+ custom: string;
30
+ title: {
31
+ created: string;
32
+ modified: string;
33
+ joined: string;
34
+ lastLogin: string;
35
+ };
36
+ created: string;
37
+ modified: string;
38
+ joined: string;
39
+ lastLogin: string;
40
+ };
41
+ pagination: {
42
+ next: string;
43
+ prev: string;
44
+ };
45
+ search: {
46
+ label: string;
47
+ search: string;
48
+ clear: string;
49
+ wildcard: string;
50
+ };
51
+ sort: {
52
+ sortDirection: string;
53
+ title: string;
54
+ relevance: string;
55
+ modified: string;
56
+ deleted: string;
57
+ created: string;
58
+ added: string;
59
+ size: string;
60
+ owner: string;
61
+ sizeAsc: string;
62
+ sizeDesc: string;
63
+ numviews: string;
64
+ numAsc: string;
65
+ numDesc: string;
66
+ alphabeticalAsc: string;
67
+ alphabeticalDesc: string;
68
+ recentAsc: string;
69
+ recentDesc: string;
70
+ sort: string;
71
+ sortBy: string;
72
+ sortByColon: string;
73
+ fullname: string;
74
+ username: string;
75
+ name: string;
76
+ membertype: string;
77
+ joined: string;
78
+ lastlogin: string;
79
+ dataset: string;
80
+ mfaenabled: string;
81
+ description: string;
82
+ lastSyncFailureCount: string;
83
+ invitationsPendingCount: string;
84
+ participantGroupLinksCount: string;
85
+ defaultAsc: string;
86
+ defaultDesc: string;
87
+ };
88
+ topBar: { filter: string; };
89
+ filterStatus: {
90
+ clear: string;
91
+ filters: string;
92
+ additional: string;
93
+ clearAllFilters: string;
94
+ };
95
+ } & T9nMeta<{
96
+ browser: {
97
+ refineContent: string;
98
+ filters: string;
99
+ pageRange: string;
100
+ pageRangeAria: string;
101
+ pageRangeWithRecycleBin: string;
102
+ pageRangeAriaWithRecycleBin: string;
103
+ totalSize: string;
104
+ loading: string;
105
+ close: string;
106
+ };
107
+ actions: { more: string; };
108
+ filter: { clear: string; };
109
+ filterDate: {
110
+ today: string;
111
+ yesterday: string;
112
+ last7: string;
113
+ last30: string;
114
+ never: string;
115
+ custom: string;
116
+ title: {
117
+ created: string;
118
+ modified: string;
119
+ joined: string;
120
+ lastLogin: string;
121
+ };
122
+ created: string;
123
+ modified: string;
124
+ joined: string;
125
+ lastLogin: string;
126
+ };
127
+ pagination: {
128
+ next: string;
129
+ prev: string;
130
+ };
131
+ search: {
132
+ label: string;
133
+ search: string;
134
+ clear: string;
135
+ wildcard: string;
136
+ };
137
+ sort: {
138
+ sortDirection: string;
139
+ title: string;
140
+ relevance: string;
141
+ modified: string;
142
+ deleted: string;
143
+ created: string;
144
+ added: string;
145
+ size: string;
146
+ owner: string;
147
+ sizeAsc: string;
148
+ sizeDesc: string;
149
+ numviews: string;
150
+ numAsc: string;
151
+ numDesc: string;
152
+ alphabeticalAsc: string;
153
+ alphabeticalDesc: string;
154
+ recentAsc: string;
155
+ recentDesc: string;
156
+ sort: string;
157
+ sortBy: string;
158
+ sortByColon: string;
159
+ fullname: string;
160
+ username: string;
161
+ name: string;
162
+ membertype: string;
163
+ joined: string;
164
+ lastlogin: string;
165
+ dataset: string;
166
+ mfaenabled: string;
167
+ description: string;
168
+ lastSyncFailureCount: string;
169
+ invitationsPendingCount: string;
170
+ participantGroupLinksCount: string;
171
+ defaultAsc: string;
172
+ defaultDesc: string;
173
+ };
174
+ topBar: { filter: string; };
175
+ filterStatus: {
176
+ clear: string;
177
+ filters: string;
178
+ additional: string;
179
+ clearAllFilters: string;
180
+ };
181
+ }>;
182
+ /** @default 60 */
183
+ accessor num: number;
184
+ /** @default 1 */
185
+ accessor start: number;
186
+ accessor store: PortalBrowserStore;
187
+ /** @default 0 */
188
+ accessor total: number;
189
+ nextPage(): Promise<void>;
190
+ readonly arcgisBrowserPage: import("@arcgis/lumina").TargetedEvent<this, BrowserPageDetail>;
191
+ readonly "@eventTypes": {
192
+ arcgisBrowserPage: ArcgisPortalBrowserPagination["arcgisBrowserPage"]["detail"];
193
+ };
194
+ }
@@ -0,0 +1,51 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
+ import { c as e } from "../../chunks/runtime.js";
3
+ import { css as i, html as r } from "lit";
4
+ import { LitElement as o, createEvent as n, safeClassMap as m } from "@arcgis/lumina";
5
+ import { createRef as p, ref as g } from "lit/directives/ref.js";
6
+ import { u as c } from "../../chunks/useT9n.js";
7
+ import { b as h } from "../../chunks/ui.js";
8
+ import { t as l } from "../../chunks/functionalities.js";
9
+ import { c as u } from "../../chunks/store.js";
10
+ const f = i`.wrapper{padding:2rem .5rem}.pagination{width:100%;justify-content:center}.hide{display:none}`;
11
+ class d extends o {
12
+ constructor() {
13
+ super(...arguments), this.paginationRef = p(), this._messages = c({ name: "portal-browser", blocking: !0 }), this.total = 0, this.start = 1, this.num = 60, this.store = u(), this.arcgisBrowserPage = n();
14
+ }
15
+ static {
16
+ this.properties = { total: 9, start: 9, num: 9, store: 0 };
17
+ }
18
+ static {
19
+ this.styles = f;
20
+ }
21
+ async nextPage() {
22
+ this.paginationRef.value?.nextPage(), await l(10);
23
+ const t = this.paginationRef.value;
24
+ t && this.arcgisBrowserPage.emit({
25
+ start: t.startItem,
26
+ total: t.totalItems,
27
+ num: t.pageSize
28
+ });
29
+ }
30
+ firstUpdated() {
31
+ this.arcgisBrowserPage.emit({ start: this.start, total: this.total, num: this.num });
32
+ }
33
+ render() {
34
+ const t = (this.store.width || 0) > h.sm ? "m" : "s";
35
+ return r`<div class="wrapper"><calcite-pagination @calcitePaginationChange=${(a) => {
36
+ const s = a.target;
37
+ this.arcgisBrowserPage.emit({
38
+ start: s.startItem,
39
+ total: s.totalItems,
40
+ num: s.pageSize
41
+ });
42
+ }} .startItem=${this.start} .totalItems=${Math.min(this.total, 1e4 - this.num)} .pageSize=${this.num} .scale=${t} .messageOverrides=${{
43
+ next: this._messages.pagination.next,
44
+ previous: this._messages.pagination.prev
45
+ }} class=${m({ hide: !this.total || this.total < this.num, pagination: !0 })} ${g(this.paginationRef)}></calcite-pagination></div>`;
46
+ }
47
+ }
48
+ e("arcgis-portal-browser-pagination", d);
49
+ export {
50
+ d as ArcgisPortalBrowserPagination
51
+ };
@@ -0,0 +1 @@
1
+ export * from "./customElement.js";
@@ -0,0 +1,2 @@
1
+ import "@esri/calcite-components/components/calcite-pagination";
2
+ export * from "./customElement.js";
@@ -0,0 +1,195 @@
1
+ /// <reference path="../../index.d.ts" />
2
+ import type { PublicLitElement as LitElement } from "@arcgis/lumina";
3
+ import type { PortalBrowserStore } from "../arcgis-portal-browser/utils/store.js";
4
+ import type { T9nMeta } from "@arcgis/lumina/controllers";
5
+
6
+ export abstract class ArcgisPortalBrowserSearch extends LitElement {
7
+ /** @internal */
8
+ protected _messages: {
9
+ browser: {
10
+ refineContent: string;
11
+ filters: string;
12
+ pageRange: string;
13
+ pageRangeAria: string;
14
+ pageRangeWithRecycleBin: string;
15
+ pageRangeAriaWithRecycleBin: string;
16
+ totalSize: string;
17
+ loading: string;
18
+ close: string;
19
+ };
20
+ actions: { more: string; };
21
+ filter: { clear: string; };
22
+ filterDate: {
23
+ today: string;
24
+ yesterday: string;
25
+ last7: string;
26
+ last30: string;
27
+ never: string;
28
+ custom: string;
29
+ title: {
30
+ created: string;
31
+ modified: string;
32
+ joined: string;
33
+ lastLogin: string;
34
+ };
35
+ created: string;
36
+ modified: string;
37
+ joined: string;
38
+ lastLogin: string;
39
+ };
40
+ pagination: {
41
+ next: string;
42
+ prev: string;
43
+ };
44
+ search: {
45
+ label: string;
46
+ search: string;
47
+ clear: string;
48
+ wildcard: string;
49
+ };
50
+ sort: {
51
+ sortDirection: string;
52
+ title: string;
53
+ relevance: string;
54
+ modified: string;
55
+ deleted: string;
56
+ created: string;
57
+ added: string;
58
+ size: string;
59
+ owner: string;
60
+ sizeAsc: string;
61
+ sizeDesc: string;
62
+ numviews: string;
63
+ numAsc: string;
64
+ numDesc: string;
65
+ alphabeticalAsc: string;
66
+ alphabeticalDesc: string;
67
+ recentAsc: string;
68
+ recentDesc: string;
69
+ sort: string;
70
+ sortBy: string;
71
+ sortByColon: string;
72
+ fullname: string;
73
+ username: string;
74
+ name: string;
75
+ membertype: string;
76
+ joined: string;
77
+ lastlogin: string;
78
+ dataset: string;
79
+ mfaenabled: string;
80
+ description: string;
81
+ lastSyncFailureCount: string;
82
+ invitationsPendingCount: string;
83
+ participantGroupLinksCount: string;
84
+ defaultAsc: string;
85
+ defaultDesc: string;
86
+ };
87
+ topBar: { filter: string; };
88
+ filterStatus: {
89
+ clear: string;
90
+ filters: string;
91
+ additional: string;
92
+ clearAllFilters: string;
93
+ };
94
+ } & T9nMeta<{
95
+ browser: {
96
+ refineContent: string;
97
+ filters: string;
98
+ pageRange: string;
99
+ pageRangeAria: string;
100
+ pageRangeWithRecycleBin: string;
101
+ pageRangeAriaWithRecycleBin: string;
102
+ totalSize: string;
103
+ loading: string;
104
+ close: string;
105
+ };
106
+ actions: { more: string; };
107
+ filter: { clear: string; };
108
+ filterDate: {
109
+ today: string;
110
+ yesterday: string;
111
+ last7: string;
112
+ last30: string;
113
+ never: string;
114
+ custom: string;
115
+ title: {
116
+ created: string;
117
+ modified: string;
118
+ joined: string;
119
+ lastLogin: string;
120
+ };
121
+ created: string;
122
+ modified: string;
123
+ joined: string;
124
+ lastLogin: string;
125
+ };
126
+ pagination: {
127
+ next: string;
128
+ prev: string;
129
+ };
130
+ search: {
131
+ label: string;
132
+ search: string;
133
+ clear: string;
134
+ wildcard: string;
135
+ };
136
+ sort: {
137
+ sortDirection: string;
138
+ title: string;
139
+ relevance: string;
140
+ modified: string;
141
+ deleted: string;
142
+ created: string;
143
+ added: string;
144
+ size: string;
145
+ owner: string;
146
+ sizeAsc: string;
147
+ sizeDesc: string;
148
+ numviews: string;
149
+ numAsc: string;
150
+ numDesc: string;
151
+ alphabeticalAsc: string;
152
+ alphabeticalDesc: string;
153
+ recentAsc: string;
154
+ recentDesc: string;
155
+ sort: string;
156
+ sortBy: string;
157
+ sortByColon: string;
158
+ fullname: string;
159
+ username: string;
160
+ name: string;
161
+ membertype: string;
162
+ joined: string;
163
+ lastlogin: string;
164
+ dataset: string;
165
+ mfaenabled: string;
166
+ description: string;
167
+ lastSyncFailureCount: string;
168
+ invitationsPendingCount: string;
169
+ participantGroupLinksCount: string;
170
+ defaultAsc: string;
171
+ defaultDesc: string;
172
+ };
173
+ topBar: { filter: string; };
174
+ filterStatus: {
175
+ clear: string;
176
+ filters: string;
177
+ additional: string;
178
+ clearAllFilters: string;
179
+ };
180
+ }>;
181
+ /** @default true */
182
+ accessor allowClear: boolean;
183
+ /** @default "" */
184
+ accessor placeholder: string;
185
+ accessor store: PortalBrowserStore;
186
+ /** @default "" */
187
+ accessor term: string;
188
+ setFocus(): Promise<void>;
189
+ readonly arcgisBrowserSearch: import("@arcgis/lumina").TargetedEvent<this, string>;
190
+ readonly arcgisBrowserSearchInput: import("@arcgis/lumina").TargetedEvent<this, string>;
191
+ readonly "@eventTypes": {
192
+ arcgisBrowserSearch: ArcgisPortalBrowserSearch["arcgisBrowserSearch"]["detail"];
193
+ arcgisBrowserSearchInput: ArcgisPortalBrowserSearch["arcgisBrowserSearchInput"]["detail"];
194
+ };
195
+ }
@@ -0,0 +1,65 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
+ import { c as d } from "../../chunks/runtime.js";
3
+ import { live as h } from "lit/directives/live.js";
4
+ import { LitElement as p, createEvent as n, nothing as a, safeClassMap as o } from "@arcgis/lumina";
5
+ import { css as u, html as c } from "lit";
6
+ import { createRef as m, ref as b } from "lit/directives/ref.js";
7
+ import { u as w } from "../../chunks/useT9n.js";
8
+ import { c as g } from "../../chunks/store.js";
9
+ const f = u`:host{position:relative;display:block}.search{position:absolute;z-index:10;margin-top:1rem;color:var(--calcite-color-text-1);pointer-events:none;inset-inline-start:1.5rem}.search--panel{inset-inline-start:.75rem}.x{position:absolute;z-index:10;top:0;margin-top:.5rem;margin-inline:.25rem;padding:.25rem;border:none;cursor:pointer;color:var(--calcite-color-text-1);outline:none;inset-inline-end:.25rem;background:transparent}.x--icon{display:block}.input{display:block;width:100%;box-sizing:border-box;padding-block:1rem;padding-inline-start:3rem;height:3rem;border:none;position:relative;z-index:0;color:var(--calcite-color-text-1);font-size:var(--calcite-font-size--1);background-color:transparent;border-bottom:2px solid transparent;font-family:inherit}.input::-webkit-search-cancel-button{display:none}.input::-ms-clear{display:none}.input:focus{outline:none;border-bottom-color:var(--calcite-color-brand)}.input--panel{padding-inline-start:2.5rem;padding-inline-end:1rem}.input--with-clear{padding-inline-end:3rem}.alert:not([calcite-hydrated]){display:none}`;
10
+ class v extends p {
11
+ constructor() {
12
+ super(...arguments), this.searchInput = m(), this._messages = w({ name: "portal-browser", blocking: !0 }), this.showClear = !1, this.containsWildcard = !1, this.term = "", this.placeholder = "", this.allowClear = !0, this.store = g(), this.arcgisBrowserSearch = n(), this.arcgisBrowserSearchInput = n();
13
+ }
14
+ static {
15
+ this.properties = { showClear: 16, containsWildcard: 16, term: 1, placeholder: 1, allowClear: 5, store: 0 };
16
+ }
17
+ static {
18
+ this.styles = f;
19
+ }
20
+ async setFocus() {
21
+ this.searchInput.value?.focus();
22
+ }
23
+ connectedCallback() {
24
+ super.connectedCallback(), this.showClear = !!this.term, this.containsWildcard = this.term.includes("*");
25
+ }
26
+ willUpdate(e) {
27
+ e.has("term") && ((this.searchInput.value?.value ?? "") !== this.term && (this.showClear = !!this.term, this.emitUpdate(this.term)), this.containsWildcard = this.term.includes("*"));
28
+ }
29
+ firstUpdated() {
30
+ this.emitUpdate(this.term);
31
+ }
32
+ disconnectedCallback() {
33
+ this.debounceId && (window.clearTimeout(this.debounceId), this.debounceId = void 0), super.disconnectedCallback();
34
+ }
35
+ emitUpdate(e) {
36
+ this.store.searchTerm = e, this.arcgisBrowserSearch.emit(e);
37
+ }
38
+ debouncedInput(e) {
39
+ this.debounceId && window.clearTimeout(this.debounceId), this.debounceId = window.setTimeout(() => {
40
+ const t = e.includes("*");
41
+ this.showClear = !!e, this.containsWildcard = t, t || this.emitUpdate(e);
42
+ }, 400);
43
+ }
44
+ render() {
45
+ const e = !!this.store.panel, t = this.placeholder || this._messages.search.search, r = this._messages.search.wildcard, l = this._messages.search.clear;
46
+ return c`<div><calcite-icon icon=search scale=s class=${o({ search: !0, "search--panel": e })}></calcite-icon><input class=${o({
47
+ input: !0,
48
+ "input--with-clear": this.allowClear && this.showClear,
49
+ "input--panel": e
50
+ })} .value=${h(this.term ?? "")} placeholder=${t ?? a} aria-label=${t ?? a} @input=${(i) => {
51
+ const s = i.currentTarget.value;
52
+ s.includes("*") || (this.containsWildcard = !1), this.arcgisBrowserSearchInput.emit(s), this.debouncedInput(s);
53
+ }} ${b(this.searchInput)}><calcite-alert .open=${this.containsWildcard} scale=m kind=danger class="alert" icon=exclamation-mark-triangle .label=${r} @calciteAlertClose=${() => {
54
+ this.containsWildcard = !1;
55
+ }}><div slot=message>${r}</div></calcite-alert>${this.allowClear && this.showClear && c`<button class="x" aria-label=${l ?? a} @click=${() => {
56
+ this.arcgisBrowserSearchInput.emit(""), this.emitUpdate(""), this.showClear = !1, this.searchInput.value && (this.searchInput.value.value = "", this.searchInput.value.focus());
57
+ }} @keydown=${(i) => {
58
+ i.key === "Enter" && i.stopPropagation();
59
+ }} tabindex=0><calcite-icon icon=x scale=m class="x--icon"></calcite-icon></button>` || ""}</div>`;
60
+ }
61
+ }
62
+ d("arcgis-portal-browser-search", v);
63
+ export {
64
+ v as ArcgisPortalBrowserSearch
65
+ };
@@ -0,0 +1 @@
1
+ export * from "./customElement.js";
@@ -0,0 +1,3 @@
1
+ import "@esri/calcite-components/components/calcite-icon";
2
+ import "@esri/calcite-components/components/calcite-alert";
3
+ export * from "./customElement.js";