@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
|
@@ -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";
|
|
@@ -1,7 +1,182 @@
|
|
|
1
1
|
/// <reference path="../../index.d.ts" />
|
|
2
2
|
import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
3
|
+
import type { T9nMeta } from "@arcgis/lumina/controllers";
|
|
3
4
|
|
|
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
|
+
}>;
|
|
5
180
|
/**
|
|
6
181
|
* Set to true if the filter is currently being applied.
|
|
7
182
|
*
|
|
@@ -14,12 +189,6 @@ export abstract class ArcgisPortalBrowserFilter extends LitElement {
|
|
|
14
189
|
* @default false
|
|
15
190
|
*/
|
|
16
191
|
accessor clearDisabled: boolean;
|
|
17
|
-
/**
|
|
18
|
-
* Label for the clear button.
|
|
19
|
-
*
|
|
20
|
-
* @default "Clear"
|
|
21
|
-
*/
|
|
22
|
-
accessor clearLabel: string;
|
|
23
192
|
/**
|
|
24
193
|
* Set to true to open the filter on first load.
|
|
25
194
|
*
|
|
@@ -1,34 +1,32 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { c as i } from "../../chunks/runtime.js";
|
|
3
3
|
import { css as r, html as e } from "lit";
|
|
4
|
-
import { LitElement as a, createEvent as
|
|
5
|
-
|
|
6
|
-
|
|
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 {
|
|
7
8
|
constructor() {
|
|
8
|
-
super(...arguments), this.expanded = !1, this.heading = "", this.active = !1, this.noPadding = !1, this.clearDisabled = !1, this.filterId = "", this.
|
|
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();
|
|
9
10
|
}
|
|
10
11
|
static {
|
|
11
|
-
this.properties = { expanded: 5, heading: 1, active: 5, noPadding: 5, clearDisabled: 5, filterId: 1,
|
|
12
|
+
this.properties = { expanded: 5, heading: 1, active: 5, noPadding: 5, clearDisabled: 5, filterId: 1, primary: 5 };
|
|
12
13
|
}
|
|
13
14
|
static {
|
|
14
|
-
this.styles =
|
|
15
|
+
this.styles = c;
|
|
15
16
|
}
|
|
16
17
|
emitFilterRemove() {
|
|
17
18
|
this.arcgisBrowserFilterRemove.emit(this.filterId);
|
|
18
19
|
}
|
|
19
20
|
render() {
|
|
20
|
-
|
|
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=${() => {
|
|
21
23
|
this.expanded = !0;
|
|
22
24
|
}} @calciteAccordionItemCollapse=${() => {
|
|
23
25
|
this.expanded = !1;
|
|
24
|
-
}}
|
|
25
|
-
"--calcite-accordion-item-content-space": ".75rem .25rem",
|
|
26
|
-
"--calcite-accordion-icon-margin": ".5rem",
|
|
27
|
-
borderTop: "1px solid var(--calcite-color-border-1)"
|
|
28
|
-
})}><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()}>${this.clearLabel}</calcite-button>` || ""}</div><div class=${c({ filter__content: !0, "filter__content--padded": !this.noPadding })}><slot></slot></div></calcite-accordion-item></calcite-accordion></div>`;
|
|
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>`;
|
|
29
27
|
}
|
|
30
28
|
}
|
|
31
|
-
i("arcgis-portal-browser-filter",
|
|
29
|
+
i("arcgis-portal-browser-filter", n);
|
|
32
30
|
export {
|
|
33
|
-
|
|
31
|
+
n as ArcgisPortalBrowserFilter
|
|
34
32
|
};
|