@arcgis/portal-components 5.2.0-next.30 → 5.2.0-next.32
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
|
@@ -8,62 +8,174 @@ export abstract class ArcgisPortalBrowserFilterDate extends LitElement {
|
|
|
8
8
|
protected _messages: {
|
|
9
9
|
browser: {
|
|
10
10
|
refineContent: string;
|
|
11
|
-
close: string;
|
|
12
|
-
loading: string;
|
|
13
|
-
};
|
|
14
|
-
range: {
|
|
15
|
-
summary: string;
|
|
16
|
-
announcement: string;
|
|
17
|
-
};
|
|
18
|
-
filterStatus: {
|
|
19
11
|
filters: string;
|
|
20
|
-
|
|
21
|
-
|
|
12
|
+
pageRange: string;
|
|
13
|
+
pageRangeAria: string;
|
|
14
|
+
pageRangeWithRecycleBin: string;
|
|
15
|
+
pageRangeAriaWithRecycleBin: string;
|
|
16
|
+
totalSize: string;
|
|
17
|
+
loading: string;
|
|
18
|
+
close: string;
|
|
22
19
|
};
|
|
20
|
+
actions: { more: string; };
|
|
21
|
+
filter: { clear: string; };
|
|
23
22
|
filterDate: {
|
|
24
|
-
title: {
|
|
25
|
-
created: string;
|
|
26
|
-
modified: string;
|
|
27
|
-
};
|
|
28
|
-
clear: string;
|
|
29
|
-
created: string;
|
|
30
|
-
modified: string;
|
|
31
23
|
today: string;
|
|
32
24
|
yesterday: string;
|
|
33
25
|
last7: string;
|
|
34
26
|
last30: string;
|
|
35
27
|
never: string;
|
|
36
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;
|
|
37
39
|
};
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
40
|
+
pagination: {
|
|
41
|
+
next: string;
|
|
42
|
+
prev: string;
|
|
43
|
+
};
|
|
44
|
+
search: {
|
|
45
|
+
label: string;
|
|
46
|
+
search: string;
|
|
47
|
+
clear: string;
|
|
48
|
+
wildcard: string;
|
|
43
49
|
};
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
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;
|
|
47
86
|
};
|
|
87
|
+
topBar: { filter: string; };
|
|
48
88
|
filterStatus: {
|
|
89
|
+
clear: string;
|
|
49
90
|
filters: string;
|
|
50
91
|
additional: string;
|
|
51
92
|
clearAllFilters: string;
|
|
52
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; };
|
|
53
108
|
filterDate: {
|
|
54
|
-
title: {
|
|
55
|
-
created: string;
|
|
56
|
-
modified: string;
|
|
57
|
-
};
|
|
58
|
-
clear: string;
|
|
59
|
-
created: string;
|
|
60
|
-
modified: string;
|
|
61
109
|
today: string;
|
|
62
110
|
yesterday: string;
|
|
63
111
|
last7: string;
|
|
64
112
|
last30: string;
|
|
65
113
|
never: string;
|
|
66
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;
|
|
67
179
|
};
|
|
68
180
|
}>;
|
|
69
181
|
/** End date for user-defined range. */
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
3
|
-
import { watch as
|
|
4
|
-
import { LitElement as
|
|
5
|
-
import { debounce as
|
|
6
|
-
import { css as
|
|
7
|
-
import { createRef as
|
|
8
|
-
import { u as
|
|
2
|
+
import { c as d } from "../../chunks/runtime.js";
|
|
3
|
+
import { watch as u } from "@arcgis/core/core/reactiveUtils.js";
|
|
4
|
+
import { LitElement as m, createEvent as g, nothing as p } from "@arcgis/lumina";
|
|
5
|
+
import { debounce as f } from "@arcgis/toolkit/function";
|
|
6
|
+
import { css as v, html as c } from "lit";
|
|
7
|
+
import { createRef as D, ref as y } from "lit/directives/ref.js";
|
|
8
|
+
import { u as w } from "../../chunks/useT9n.js";
|
|
9
9
|
import "../arcgis-portal-browser-filter/customElement.js";
|
|
10
|
-
const
|
|
11
|
-
function
|
|
12
|
-
const e = typeof
|
|
10
|
+
const o = 1440 * 60 * 1e3;
|
|
11
|
+
function a(s) {
|
|
12
|
+
const e = typeof s == "string" ? Number.parseInt(s, 10) : typeof s == "number" ? s : (s ?? /* @__PURE__ */ new Date()).valueOf(), t = new Date(e);
|
|
13
13
|
return t.setHours(0, 0, 0, 0), t.valueOf();
|
|
14
14
|
}
|
|
15
|
-
function
|
|
16
|
-
return
|
|
15
|
+
function l(s) {
|
|
16
|
+
return a(s) + o - 1;
|
|
17
17
|
}
|
|
18
|
-
const k = 7 *
|
|
19
|
-
class
|
|
18
|
+
const k = 7 * o, b = v`:host{display:block}.custom-date-picker{margin-top:.5rem;margin-bottom:.5rem;margin-inline-start:1.75rem;width:12.75rem}`, h = ["custom", "last30", "last7", "never", "today", "yesterday"];
|
|
19
|
+
class $ extends m {
|
|
20
20
|
constructor() {
|
|
21
|
-
super(...arguments), this._messages =
|
|
21
|
+
super(...arguments), this._messages = w({ name: "portal-browser", blocking: !0 }), this._datePicker = D(), this.today = "", this.debouncedRangeChangeHandler = f(() => this.rangeChangeHandler(), 200), this.property = "created", this.range = null, this.expanded = !1, this.includeNever = !1, this.arcgisBrowserFilter = g();
|
|
22
22
|
}
|
|
23
23
|
static {
|
|
24
24
|
this.properties = { property: 1, serverProperty: 1, range: 1, start: 1, end: 1, store: 0, expanded: 5, includeNever: 5 };
|
|
25
25
|
}
|
|
26
26
|
static {
|
|
27
|
-
this.styles =
|
|
27
|
+
this.styles = b;
|
|
28
28
|
}
|
|
29
29
|
connectedCallback() {
|
|
30
30
|
super.connectedCallback();
|
|
@@ -40,7 +40,7 @@ class P extends g {
|
|
|
40
40
|
attachStoreWatcher() {
|
|
41
41
|
if (this.removeStoreWatcher?.(), !this.store)
|
|
42
42
|
return;
|
|
43
|
-
const e =
|
|
43
|
+
const e = u(() => {
|
|
44
44
|
const t = this.store?.filters?.[this.property];
|
|
45
45
|
return {
|
|
46
46
|
value: t?.value,
|
|
@@ -56,62 +56,62 @@ class P extends g {
|
|
|
56
56
|
this.range = null, this.start = null, this.end = null, this._datePicker.value && (this._datePicker.value.valueAsDate = []);
|
|
57
57
|
}
|
|
58
58
|
getValue() {
|
|
59
|
-
const e =
|
|
59
|
+
const e = a(), t = l();
|
|
60
60
|
switch (this.range) {
|
|
61
61
|
case "yesterday":
|
|
62
|
-
return [e -
|
|
62
|
+
return [e - o, e - 1];
|
|
63
63
|
case "today":
|
|
64
64
|
return [e, t];
|
|
65
65
|
case "last7":
|
|
66
66
|
return [e - k, t];
|
|
67
67
|
case "last30":
|
|
68
|
-
return [e -
|
|
68
|
+
return [e - o * 30, t];
|
|
69
69
|
case "never":
|
|
70
70
|
return [-1, -1];
|
|
71
71
|
case "custom": {
|
|
72
|
-
const
|
|
73
|
-
return [
|
|
72
|
+
const r = a(this.start), i = l(this.end);
|
|
73
|
+
return [r, i];
|
|
74
74
|
}
|
|
75
75
|
default:
|
|
76
76
|
return null;
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
79
|
getEventDetail() {
|
|
80
|
-
const e = this._messages?.filterDate, t = this.getValue(),
|
|
80
|
+
const e = this._messages?.filterDate, t = this.getValue(), r = this.serverProperty ?? (this.property === "modified" ? "modified" : "uploaded"), i = this.range ? e?.[this.range] ?? "" : "", n = e?.[this.property] ?? "";
|
|
81
81
|
return {
|
|
82
82
|
id: this.property,
|
|
83
|
-
value: t ? `(${
|
|
83
|
+
value: t ? `(${r}:[${t[0]} TO ${t[1]}])` : "",
|
|
84
84
|
range: this.range,
|
|
85
85
|
start: t ? new Date(t[0]) : void 0,
|
|
86
86
|
end: t ? new Date(t[1]) : void 0,
|
|
87
|
-
label: this.range ?
|
|
87
|
+
label: this.range ? n.replace("${date}", i) : ""
|
|
88
88
|
};
|
|
89
89
|
}
|
|
90
90
|
isActive() {
|
|
91
91
|
return !!(this.range && (this.range !== "custom" || this.start && this.end));
|
|
92
92
|
}
|
|
93
93
|
setDatePickerValue() {
|
|
94
|
-
!this._datePicker.value || this.range !== "custom" || !this.start || !this.end || (this._datePicker.value.valueAsDate = [new Date(
|
|
94
|
+
!this._datePicker.value || this.range !== "custom" || !this.start || !this.end || (this._datePicker.value.valueAsDate = [new Date(a(this.start)), new Date(a(this.end))]);
|
|
95
95
|
}
|
|
96
96
|
rangeChangeHandler() {
|
|
97
|
-
const e = this._datePicker.value?.valueAsDate, [t,
|
|
98
|
-
t &&
|
|
97
|
+
const e = this._datePicker.value?.valueAsDate, [t, r] = Array.isArray(e) ? e : [];
|
|
98
|
+
t && r && (this.start = t, this.end = r, this.arcgisBrowserFilter.emit(this.getEventDetail()));
|
|
99
99
|
}
|
|
100
100
|
renderRange(e) {
|
|
101
|
-
const
|
|
102
|
-
return
|
|
101
|
+
const t = this._messages.filterDate;
|
|
102
|
+
return c`<calcite-tree-item data-range=${e ?? p} .selected=${e === this.range}>${t[e]}</calcite-tree-item>`;
|
|
103
103
|
}
|
|
104
104
|
render() {
|
|
105
|
-
const
|
|
106
|
-
return
|
|
105
|
+
const e = this._messages.filterDate, t = this.includeNever ? h : h.filter((r) => r !== "never");
|
|
106
|
+
return c`<arcgis-portal-browser-filter .heading=${e.title[this.property]} .expanded=${this.expanded} .active=${this.isActive()} .filterId=${this.property} @arcgisBrowserFilterRemove=${() => {
|
|
107
107
|
this.resetDatePicker(), this.arcgisBrowserFilter.emit(this.getEventDetail());
|
|
108
108
|
}}><calcite-tree selection-mode=children scale=m @calciteTreeSelect=${(r) => {
|
|
109
|
-
const
|
|
110
|
-
this.range = this.range ===
|
|
111
|
-
}}>${
|
|
109
|
+
const n = r.target.selectedItems?.[0]?.dataset.range;
|
|
110
|
+
this.range = this.range === n ? null : n, !(this.range === "custom" && !(this.start && this.end)) && this.arcgisBrowserFilter.emit(this.getEventDetail());
|
|
111
|
+
}}>${t.map((r) => this.renderRange(r))}</calcite-tree>${this.range === "custom" && c`<calcite-input-date-picker class="custom-date-picker" @calciteInputDatePickerChange=${() => this.debouncedRangeChangeHandler()} scale=s .max=${this.today} calendars=1 layout=vertical month-style=abbreviated proximity-selection-disabled range ${y(this._datePicker)}></calcite-input-date-picker>` || ""}</arcgis-portal-browser-filter>`;
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
|
-
|
|
114
|
+
d("arcgis-portal-browser-filter-date", $);
|
|
115
115
|
export {
|
|
116
|
-
|
|
116
|
+
$ as ArcgisPortalBrowserFilterDate
|
|
117
117
|
};
|
|
@@ -8,62 +8,174 @@ export abstract class ArcgisPortalBrowserFilterStatus extends LitElement {
|
|
|
8
8
|
protected _messages: {
|
|
9
9
|
browser: {
|
|
10
10
|
refineContent: string;
|
|
11
|
-
close: string;
|
|
12
|
-
loading: string;
|
|
13
|
-
};
|
|
14
|
-
range: {
|
|
15
|
-
summary: string;
|
|
16
|
-
announcement: string;
|
|
17
|
-
};
|
|
18
|
-
filterStatus: {
|
|
19
11
|
filters: string;
|
|
20
|
-
|
|
21
|
-
|
|
12
|
+
pageRange: string;
|
|
13
|
+
pageRangeAria: string;
|
|
14
|
+
pageRangeWithRecycleBin: string;
|
|
15
|
+
pageRangeAriaWithRecycleBin: string;
|
|
16
|
+
totalSize: string;
|
|
17
|
+
loading: string;
|
|
18
|
+
close: string;
|
|
22
19
|
};
|
|
20
|
+
actions: { more: string; };
|
|
21
|
+
filter: { clear: string; };
|
|
23
22
|
filterDate: {
|
|
24
|
-
title: {
|
|
25
|
-
created: string;
|
|
26
|
-
modified: string;
|
|
27
|
-
};
|
|
28
|
-
clear: string;
|
|
29
|
-
created: string;
|
|
30
|
-
modified: string;
|
|
31
23
|
today: string;
|
|
32
24
|
yesterday: string;
|
|
33
25
|
last7: string;
|
|
34
26
|
last30: string;
|
|
35
27
|
never: string;
|
|
36
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;
|
|
37
39
|
};
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
40
|
+
pagination: {
|
|
41
|
+
next: string;
|
|
42
|
+
prev: string;
|
|
43
|
+
};
|
|
44
|
+
search: {
|
|
45
|
+
label: string;
|
|
46
|
+
search: string;
|
|
47
|
+
clear: string;
|
|
48
|
+
wildcard: string;
|
|
43
49
|
};
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
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;
|
|
47
86
|
};
|
|
87
|
+
topBar: { filter: string; };
|
|
48
88
|
filterStatus: {
|
|
89
|
+
clear: string;
|
|
49
90
|
filters: string;
|
|
50
91
|
additional: string;
|
|
51
92
|
clearAllFilters: string;
|
|
52
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; };
|
|
53
108
|
filterDate: {
|
|
54
|
-
title: {
|
|
55
|
-
created: string;
|
|
56
|
-
modified: string;
|
|
57
|
-
};
|
|
58
|
-
clear: string;
|
|
59
|
-
created: string;
|
|
60
|
-
modified: string;
|
|
61
109
|
today: string;
|
|
62
110
|
yesterday: string;
|
|
63
111
|
last7: string;
|
|
64
112
|
last30: string;
|
|
65
113
|
never: string;
|
|
66
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;
|
|
67
179
|
};
|
|
68
180
|
}>;
|
|
69
181
|
/** Pass the width of the browser from state */
|