@arcgis/portal-components 5.2.0-next.30 → 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.
- package/dist/cdn/{GNS7NA7V.js → 2MV6L7TF.js} +1 -1
- package/dist/cdn/{2CP32LP3.js → 2XILGLOG.js} +1 -1
- package/dist/cdn/3XVBYE54.js +2 -0
- package/dist/cdn/3ZYTCYNE.js +2 -0
- package/dist/cdn/{HIRM34QB.js → 43IIAMZ3.js} +1 -1
- package/dist/cdn/{QJ2UHWPU.js → 4YGBHWHG.js} +1 -1
- package/dist/cdn/5H4VCRNA.js +2 -0
- package/dist/cdn/6KRP5D52.js +2 -0
- package/dist/cdn/{5VHBNEN3.js → 6XWNBD36.js} +1 -1
- package/dist/cdn/7355NM43.js +2 -0
- package/dist/cdn/7LC4ZEXB.js +2 -0
- package/dist/cdn/ADC752YM.js +2 -0
- package/dist/cdn/AX5KYSWU.js +2 -0
- package/dist/cdn/{CHSZSBO6.js → BTYTNPSM.js} +1 -1
- package/dist/cdn/BUPFZ5MT.js +2 -0
- package/dist/cdn/DWPIXEWQ.js +2 -0
- package/dist/cdn/E67OMPRM.js +2 -0
- package/dist/cdn/EIOSA4DR.js +2 -0
- package/dist/cdn/G2YAOSMT.js +2 -0
- package/dist/cdn/G6YH7AFY.js +2 -0
- package/dist/cdn/GNBMYDRC.js +2 -0
- package/dist/cdn/H6QISDOR.js +2 -0
- package/dist/cdn/HA2J6NDT.js +2 -0
- package/dist/cdn/{RJPBPB45.js → HVF4Z3VA.js} +1 -1
- package/dist/cdn/{BZTVED5W.js → IILAKXVC.js} +1 -1
- package/dist/cdn/J2KLHUBJ.js +2 -0
- package/dist/cdn/{LCZTOHWB.js → JEXN44WM.js} +1 -1
- package/dist/cdn/{3BJVGCJG.js → KDDYAFAF.js} +1 -1
- package/dist/cdn/{HGSK6OFA.js → KPEWVVE5.js} +1 -1
- package/dist/cdn/MM6SCKYE.js +2 -0
- package/dist/cdn/NZVLEDFZ.js +2 -0
- package/dist/cdn/{YGKPNY5R.js → OU2AR22N.js} +1 -1
- package/dist/cdn/{ZDLFZJBT.js → Q22FWLJZ.js} +1 -1
- package/dist/cdn/QUEBM77K.js +2 -0
- package/dist/cdn/QUMJ5FTJ.js +2 -0
- package/dist/cdn/T6JAFB2A.js +2 -0
- package/dist/cdn/V7LZAIB6.js +2 -0
- package/dist/cdn/VSAH76S7.js +2 -0
- package/dist/cdn/{DBKSQGEI.js → XHM6I6YG.js} +1 -1
- package/dist/cdn/XNZQ5PXA.js +2 -0
- package/dist/cdn/YCAVVVZV.js +2 -0
- package/dist/cdn/YHXXIHQA.js +2 -0
- package/dist/cdn/Z2ZUXONU.js +2 -0
- package/dist/cdn/{WJ2NMHDE.js → ZZ4DR3HN.js} +1 -1
- package/dist/cdn/assets/portal-browser/t9n/messages.en.json +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/main.css +1 -1
- package/dist/chunks/store.js +18 -0
- package/dist/components/arcgis-portal-browser/customElement.d.ts +152 -32
- package/dist/components/arcgis-portal-browser/customElement.js +68 -80
- package/dist/components/arcgis-portal-browser/utils/types.d.ts +6 -0
- package/dist/components/arcgis-portal-browser-actions/customElement.d.ts +187 -0
- package/dist/components/arcgis-portal-browser-actions/customElement.js +70 -0
- package/dist/components/arcgis-portal-browser-actions/index.d.ts +1 -0
- package/dist/components/arcgis-portal-browser-actions/index.js +6 -0
- package/dist/components/arcgis-portal-browser-actions/types.d.ts +9 -0
- package/dist/components/arcgis-portal-browser-filter/customElement.d.ts +175 -6
- package/dist/components/arcgis-portal-browser-filter/customElement.js +12 -14
- package/dist/components/arcgis-portal-browser-filter-date/customElement.d.ts +144 -32
- package/dist/components/arcgis-portal-browser-filter-date/customElement.js +37 -37
- package/dist/components/arcgis-portal-browser-filter-status/customElement.d.ts +144 -32
- package/dist/components/arcgis-portal-browser-pagination/customElement.d.ts +194 -0
- package/dist/components/arcgis-portal-browser-pagination/customElement.js +51 -0
- package/dist/components/arcgis-portal-browser-pagination/index.d.ts +1 -0
- package/dist/components/arcgis-portal-browser-pagination/index.js +2 -0
- package/dist/components/arcgis-portal-browser-search/customElement.d.ts +195 -0
- package/dist/components/arcgis-portal-browser-search/customElement.js +65 -0
- package/dist/components/arcgis-portal-browser-search/index.d.ts +1 -0
- package/dist/components/arcgis-portal-browser-search/index.js +3 -0
- package/dist/components/arcgis-portal-browser-sort/customElement.d.ts +196 -0
- package/dist/components/arcgis-portal-browser-sort/customElement.js +93 -0
- package/dist/components/arcgis-portal-browser-sort/index.d.ts +1 -0
- package/dist/components/arcgis-portal-browser-sort/index.js +9 -0
- package/dist/components/arcgis-portal-browser-sort/utils.d.ts +3 -0
- package/dist/components/arcgis-portal-browser-top-bar/customElement.d.ts +184 -0
- package/dist/components/arcgis-portal-browser-top-bar/customElement.js +51 -0
- package/dist/components/arcgis-portal-browser-top-bar/index.d.ts +1 -0
- package/dist/components/arcgis-portal-browser-top-bar/index.js +3 -0
- package/dist/components/arcgis-portal-browser-view/customElement.d.ts +21 -0
- package/dist/components/arcgis-portal-browser-view/customElement.js +30 -0
- package/dist/components/arcgis-portal-browser-view/index.d.ts +1 -0
- package/dist/components/arcgis-portal-browser-view/index.js +5 -0
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/index.d.ts +48 -0
- package/dist/loader.js +11 -5
- package/dist/types/lumina.d.ts +39 -2
- package/dist/types/preact.d.ts +45 -2
- package/dist/types/react.d.ts +51 -2
- package/dist/types/stencil.d.ts +39 -2
- package/package.json +4 -4
- package/dist/cdn/32CZ4VLI.js +0 -2
- package/dist/cdn/47NPIL2S.js +0 -2
- package/dist/cdn/DY5G63YO.js +0 -2
- package/dist/cdn/EKO6SVAF.js +0 -2
- package/dist/cdn/FI45QCN2.js +0 -2
- package/dist/cdn/FRDK7SCC.js +0 -2
- package/dist/cdn/GDZZCADX.js +0 -2
- package/dist/cdn/GEIZTD7F.js +0 -2
- package/dist/cdn/GJ26ZIE5.js +0 -2
- package/dist/cdn/HB7GO6ST.js +0 -2
- package/dist/cdn/KZWW4BWJ.js +0 -2
- package/dist/cdn/M7ABAD7K.js +0 -2
- package/dist/cdn/MLTQECPL.js +0 -2
- package/dist/cdn/O7ICV6C7.js +0 -2
- package/dist/cdn/OKHKS5RH.js +0 -2
- package/dist/cdn/OKRYML2G.js +0 -2
- package/dist/cdn/PFCDINAN.js +0 -2
- package/dist/cdn/QOFH6DQT.js +0 -2
- package/dist/cdn/VSKX2QMZ.js +0 -2
- package/dist/cdn/VTLIQOV4.js +0 -2
- package/dist/cdn/YECI7XG3.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,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";
|