@arcgis/portal-components 5.2.0-next.21 → 5.2.0-next.23
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/2CP32LP3.js +2 -0
- package/dist/cdn/4PKNGQ3Q.js +2 -0
- package/dist/cdn/{MH7KZ5G3.js → 7ZLHVPFN.js} +1 -1
- package/dist/cdn/EZZ66WTI.js +3 -0
- package/dist/cdn/{TSLW4FSA.js → GDYQWDWB.js} +1 -1
- package/dist/cdn/{V2EOXGK2.js → I234NUZ5.js} +1 -1
- package/dist/cdn/{EHRAFAEA.js → IANXXLKE.js} +1 -1
- package/dist/cdn/IVD6XJNI.js +2 -0
- package/dist/cdn/LCZTOHWB.js +2 -0
- package/dist/cdn/NWIIOJEG.js +2 -0
- package/dist/cdn/PZJAY7AM.js +2 -0
- package/dist/cdn/R2ULEQSR.js +2 -0
- package/dist/cdn/RFZCHE7J.js +2 -0
- package/dist/cdn/SY6RBNVT.js +2 -0
- package/dist/cdn/U3FVMN32.js +2 -0
- package/dist/cdn/{47NPIL2S.js → W7JNOIYK.js} +1 -1
- package/dist/cdn/XDMQ36GP.js +2 -0
- package/dist/cdn/XPYGLVPT.js +2 -0
- package/dist/cdn/assets/portal-browser/t9n/messages.en.json +1 -0
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/main.css +1 -1
- package/dist/chunks/dom.js +36 -0
- package/dist/chunks/functionalities.js +5 -4
- package/dist/chunks/ui.js +10 -0
- package/dist/components/arcgis-portal-browser/customElement.d.ts +85 -0
- package/dist/components/arcgis-portal-browser/customElement.js +210 -0
- package/dist/components/arcgis-portal-browser/index.d.ts +1 -0
- package/dist/components/arcgis-portal-browser/index.js +6 -0
- package/dist/components/arcgis-portal-browser/utils/store.d.ts +29 -0
- package/dist/components/arcgis-portal-browser/utils/types.d.ts +12 -0
- package/dist/components/arcgis-portal-browser-filter-status/customElement.d.ts +25 -0
- package/dist/components/arcgis-portal-browser-filter-status/customElement.js +55 -0
- package/dist/components/arcgis-portal-browser-filter-status/index.d.ts +1 -0
- package/dist/components/arcgis-portal-browser-filter-status/index.js +5 -0
- package/dist/components/arcgis-portal-group-card/customElement.js +2 -6
- package/dist/components/arcgis-portal-user-popup/customElement.js +90 -97
- 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 +20 -0
- package/dist/loader.js +2 -0
- package/dist/types/group.d.ts +13 -13
- package/dist/types/item.d.ts +77 -2
- package/dist/types/lumina.d.ts +13 -0
- package/dist/types/preact.d.ts +15 -0
- package/dist/types/react.d.ts +17 -0
- package/dist/types/search.d.ts +27 -0
- package/dist/types/stencil.d.ts +13 -0
- package/package.json +4 -4
- package/dist/cdn/2RGMWFHB.js +0 -2
- package/dist/cdn/3KS5IDT2.js +0 -2
- package/dist/cdn/EETBNQU2.js +0 -2
- package/dist/cdn/KT7PE6UE.js +0 -2
- package/dist/cdn/KY7Q7DH3.js +0 -2
- package/dist/cdn/VXCB2YBR.js +0 -3
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
3
|
-
import { LitElement as
|
|
2
|
+
import { c as N } from "../../chunks/runtime.js";
|
|
3
|
+
import { LitElement as A, createEvent as y, safeClassMap as k, safeStyleMap as B } from "@arcgis/lumina";
|
|
4
4
|
import { css as R, html as u } from "lit";
|
|
5
5
|
import { createRef as U, ref as I } from "lit/directives/ref.js";
|
|
6
|
-
import { u as
|
|
6
|
+
import { u as L } from "../../chunks/useT9n.js";
|
|
7
7
|
import { a as _, r as $, f as w } from "../../chunks/user2.js";
|
|
8
|
-
import { g as
|
|
9
|
-
import {
|
|
10
|
-
import { g as
|
|
8
|
+
import { g as H } from "../../chunks/user.js";
|
|
9
|
+
import { s as T, a as z } from "../../chunks/dom.js";
|
|
10
|
+
import { g as x } from "../../chunks/portal.js";
|
|
11
11
|
function C(e) {
|
|
12
|
-
const
|
|
13
|
-
return e?.replace(
|
|
12
|
+
const r = /(https?:\/\/[^\s]+)/gu;
|
|
13
|
+
return e?.replace(r, (o) => `<a href="${o}" target="_blank">${o}</a>`);
|
|
14
14
|
}
|
|
15
15
|
function M(e) {
|
|
16
16
|
return e?.replace(/(?:\r)/gu, " ").replace(/(?:\n)/gu, " ");
|
|
@@ -19,121 +19,114 @@ function q(e) {
|
|
|
19
19
|
return e?.replace(/(?: )/gu, "\r").replace(/(?: )/gu, `
|
|
20
20
|
`);
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function F(e) {
|
|
23
23
|
return e?.replace(/ | | |\r\n|\r|\n/gu, "<br>");
|
|
24
24
|
}
|
|
25
|
-
function
|
|
26
|
-
return
|
|
25
|
+
function S(e) {
|
|
26
|
+
return F(M(C(q(e))));
|
|
27
27
|
}
|
|
28
|
-
function
|
|
28
|
+
function E(e) {
|
|
29
29
|
return e?.endsWith("/") ? e.slice(0, e.length - 1) : e;
|
|
30
30
|
}
|
|
31
31
|
const G = R`:host{display:flex}.button{display:flex;align-items:center;max-width:100%;cursor:pointer;white-space:normal;border-style:none;padding:0;font-size:.75rem;color:var(--calcite-color-text-2);outline:2px solid transparent;outline-offset:2px;transition-property:all;outline-color:transparent;background:transparent;font-family:inherit;line-height:1.5;&:focus{outline:2px solid var(--calcite-color-brand);outline-offset:2px}}.button--outline{box-sizing:border-box;width:100%;padding:.5rem .75rem;transition-property:all;border:1px solid var(--calcite-color-border-3);&:hover{box-shadow:inset 0 0 0 1px var(--calcite-color-foreground-3)}}.name{overflow:hidden;white-space:nowrap;margin-inline-start:.5rem;text-overflow:ellipsis}.popover__wrapper{background-color:var(--calcite-color-foreground-1);width:min(32rem,80vw)}.popover__header{padding:1.25rem 1rem}.popover__avatar{max-width:100%}.popover__content{padding:.5rem 1rem 1.25rem}.popover__description{margin:0;overflow:auto;padding:0;padding-bottom:1rem;font-size:.875rem;color:var(--calcite-color-text-2);max-height:21.25rem}.popover__fade{position:relative;z-index:10;margin-bottom:.25rem;display:block;height:1rem;width:100%;background:linear-gradient(to bottom,transparent,var(--calcite-color-foreground-1) 100%);margin-top:-1rem}.popover__buttons{display:grid;grid-auto-flow:column;grid-gap:.5rem}.popover__buttons--no-description{padding-top:1rem}.popover__button{min-width:0px}.popover__loader{--calcite-loader-padding: 0}`;
|
|
32
|
-
function
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
function D(e) {
|
|
36
|
-
const t = O(e), r = document.createElement("div");
|
|
37
|
-
return r.innerHTML = t, r.textContent || r.innerText || "";
|
|
38
|
-
}
|
|
39
|
-
async function J(e, t, r, s, o) {
|
|
40
|
-
const n = e.portal?.portalHostname || s?.portalHostname || s?.restUrl?.replace("/sharing/rest", ""), a = o ? `https://www.arcgis.com/sharing/rest/portals/${t}` : `https://${n}/sharing/rest/portals/${t}`;
|
|
41
|
-
if (!n && !o)
|
|
32
|
+
async function D(e, r, o, s, t) {
|
|
33
|
+
const a = e.portal?.portalHostname || s?.portalHostname || s?.restUrl?.replace("/sharing/rest", ""), n = t ? `https://www.arcgis.com/sharing/rest/portals/${r}` : `https://${a}/sharing/rest/portals/${r}`;
|
|
34
|
+
if (!a && !t)
|
|
42
35
|
return null;
|
|
43
|
-
const i =
|
|
36
|
+
const i = t ? { disableIdentityLookup: !0, addTokenManually: !1 } : {}, l = await $({ url: n, portal: s, options: i }), { urlKey: m, thumbnail: p, customBaseUrl: c } = l, f = `https://${m}.${c}/`, h = p ? `${f}sharing/rest/portals/self/resources/${p}` : null;
|
|
44
37
|
let d = "", v = "";
|
|
45
38
|
try {
|
|
46
39
|
const g = await $({
|
|
47
|
-
url: `${
|
|
40
|
+
url: `${n}/resources/localizedOrgProperties`,
|
|
48
41
|
portal: s,
|
|
49
42
|
params: { start: 1, num: 100 },
|
|
50
43
|
options: i
|
|
51
44
|
});
|
|
52
45
|
if (g) {
|
|
53
|
-
const b = g[
|
|
46
|
+
const b = g[o] || g.default;
|
|
54
47
|
d = b.name, v = b.description;
|
|
55
48
|
}
|
|
56
49
|
} catch {
|
|
57
50
|
}
|
|
58
51
|
return {
|
|
59
52
|
name: d || l.name,
|
|
60
|
-
description:
|
|
53
|
+
description: T(v || l.description),
|
|
61
54
|
url: `${f}home/`,
|
|
62
55
|
thumbnail: h
|
|
63
56
|
};
|
|
64
57
|
}
|
|
65
|
-
async function
|
|
66
|
-
const
|
|
58
|
+
async function J(e, r, o, s) {
|
|
59
|
+
const t = e.sourceJSON?.orgId ?? e.portal?.id ?? o?.id;
|
|
67
60
|
return await _({
|
|
68
|
-
requester: async () => await
|
|
61
|
+
requester: async () => await D(e, t, r, o, s),
|
|
69
62
|
key: "verified",
|
|
70
|
-
id:
|
|
63
|
+
id: t
|
|
71
64
|
});
|
|
72
65
|
}
|
|
73
|
-
const
|
|
66
|
+
const O = (e) => (
|
|
74
67
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
|
75
68
|
e?.sourceJSON?.contentStatus === "public_authoritative"
|
|
76
69
|
);
|
|
77
|
-
async function
|
|
78
|
-
if (
|
|
79
|
-
const
|
|
80
|
-
if (!
|
|
81
|
-
return await w(
|
|
82
|
-
const { description:
|
|
70
|
+
async function K(e, r, o, s) {
|
|
71
|
+
if (O(e)) {
|
|
72
|
+
const t = e.owner || "", a = await J(e, o, r, s);
|
|
73
|
+
if (!a)
|
|
74
|
+
return await w(t, r, s);
|
|
75
|
+
const { description: n, name: i, thumbnail: l, url: m } = a;
|
|
83
76
|
return {
|
|
84
|
-
description:
|
|
77
|
+
description: n ? z(n) : "",
|
|
85
78
|
fullName: i,
|
|
86
|
-
username:
|
|
79
|
+
username: t,
|
|
87
80
|
thumbnail: l,
|
|
88
81
|
id: e.portal.id,
|
|
89
82
|
url: m
|
|
90
83
|
};
|
|
91
84
|
}
|
|
92
|
-
return await w(e.owner || "",
|
|
85
|
+
return await w(e.owner || "", r, s);
|
|
93
86
|
}
|
|
94
|
-
async function
|
|
95
|
-
const s =
|
|
87
|
+
async function V(e, r, o) {
|
|
88
|
+
const s = o ? "https://www.arcgis.com/sharing/rest/" : x(r), t = o ? { disableIdentityLookup: !0, addTokenManually: !1 } : {};
|
|
96
89
|
return await _({
|
|
97
90
|
requester: async () => await $({
|
|
98
91
|
url: `${s}community/groups`,
|
|
99
|
-
portal:
|
|
92
|
+
portal: r,
|
|
100
93
|
params: {
|
|
101
94
|
q: `(owner:"${e}")`,
|
|
102
95
|
num: 100
|
|
103
96
|
},
|
|
104
|
-
options:
|
|
97
|
+
options: t
|
|
105
98
|
}),
|
|
106
99
|
key: "userGroups",
|
|
107
100
|
id: e
|
|
108
101
|
});
|
|
109
102
|
}
|
|
110
|
-
async function
|
|
111
|
-
const s =
|
|
103
|
+
async function W(e, r, o) {
|
|
104
|
+
const s = o ? "https://www.arcgis.com/sharing/rest/" : x(r), t = o ? { disableIdentityLookup: !0, addTokenManually: !1 } : {};
|
|
112
105
|
return await _({
|
|
113
106
|
requester: async () => (await $({
|
|
114
107
|
url: `${s}search`,
|
|
115
|
-
portal:
|
|
108
|
+
portal: r,
|
|
116
109
|
params: {
|
|
117
110
|
q: `(owner:"${e}") -typekeywords:"recyclebin"`,
|
|
118
111
|
num: 1
|
|
119
112
|
},
|
|
120
|
-
options:
|
|
113
|
+
options: t
|
|
121
114
|
})).total,
|
|
122
115
|
key: "userItemsTotal",
|
|
123
116
|
id: e
|
|
124
117
|
});
|
|
125
118
|
}
|
|
126
|
-
function
|
|
119
|
+
function P({
|
|
127
120
|
baseUrl: e,
|
|
128
|
-
user:
|
|
129
|
-
type:
|
|
121
|
+
user: r,
|
|
122
|
+
type: o
|
|
130
123
|
}) {
|
|
131
|
-
const s =
|
|
132
|
-
return
|
|
124
|
+
const s = E(e), t = encodeURIComponent(r.username || "");
|
|
125
|
+
return t ? `${s}/${o}.html?user=${t}` : `${s}/${o}.html`;
|
|
133
126
|
}
|
|
134
|
-
class
|
|
127
|
+
class j extends A {
|
|
135
128
|
constructor() {
|
|
136
|
-
super(...arguments), this.messages =
|
|
129
|
+
super(...arguments), this.messages = L({ blocking: !0 }), this.buttonRef = U(), this.popoverRef = U(), this.isPopoverOpen = !1, this.scale = "m", this.showAvatar = !0, this.showName = !0, this.showUsername = !1, this.appearance = "transparent", this.arcgisUserPopupInternalUIAction = y(), this.arcgisUserPopupClose = y();
|
|
137
130
|
}
|
|
138
131
|
static {
|
|
139
132
|
this.properties = { itemUserInfo: 16, groups: 16, total: 16, isPopoverOpen: 16, user: 0, username: 1, fullName: 1, item: 0, scale: 3, portal: 0, baseUrl: 1, underline: 5, showAvatar: 5, showName: 5, showUsername: 5, wrap: 5, appearance: 1, zIndex: 9, avatarAriaHidden: 5, checkOnline: 5 };
|
|
@@ -150,71 +143,71 @@ class Q extends B {
|
|
|
150
143
|
connectedCallback() {
|
|
151
144
|
super.connectedCallback(), this.init();
|
|
152
145
|
}
|
|
153
|
-
updated(
|
|
154
|
-
|
|
146
|
+
updated(r) {
|
|
147
|
+
r.has("isPopoverOpen") && this.isPopoverOpen && this.setPopoverOpen(!0);
|
|
155
148
|
}
|
|
156
149
|
get resolvedBaseUrl() {
|
|
157
150
|
return this.baseUrl || `${this.portal.url}/home`;
|
|
158
151
|
}
|
|
159
152
|
async init() {
|
|
160
|
-
const { item:
|
|
161
|
-
if (!(!
|
|
162
|
-
if (
|
|
163
|
-
this.itemUserInfo = await
|
|
153
|
+
const { item: r, username: o, portal: s, fullName: t, messages: a } = this;
|
|
154
|
+
if (!(!a._lang || !s)) {
|
|
155
|
+
if (r) {
|
|
156
|
+
this.itemUserInfo = await K(r, s, a._lang, this.checkOnline);
|
|
164
157
|
return;
|
|
165
158
|
}
|
|
166
|
-
if (
|
|
167
|
-
const
|
|
168
|
-
!
|
|
159
|
+
if (o) {
|
|
160
|
+
const n = await w(o, s, this.checkOnline);
|
|
161
|
+
!n.fullName && t && (n.fullName = t), this.itemUserInfo = n;
|
|
169
162
|
}
|
|
170
163
|
}
|
|
171
164
|
}
|
|
172
165
|
async fetchItemsAndGroups() {
|
|
173
|
-
const { user:
|
|
174
|
-
if (!(!i || !
|
|
166
|
+
const { user: r, itemUserInfo: o, item: s, portal: t, username: a, checkOnline: n } = this, i = a || r?.username || s?.owner || o?.username;
|
|
167
|
+
if (!(!i || !t)) {
|
|
175
168
|
if (!this.groups) {
|
|
176
|
-
const l = await
|
|
169
|
+
const l = await V(i, t, n);
|
|
177
170
|
this.groups = l;
|
|
178
171
|
}
|
|
179
|
-
this.total = await
|
|
172
|
+
this.total = await W(i, t, n);
|
|
180
173
|
}
|
|
181
174
|
}
|
|
182
|
-
setPopoverOpen(
|
|
175
|
+
setPopoverOpen(r) {
|
|
183
176
|
requestAnimationFrame(() => {
|
|
184
|
-
this.popoverRef.value && (this.popoverRef.value.open =
|
|
177
|
+
this.popoverRef.value && (this.popoverRef.value.open = r);
|
|
185
178
|
});
|
|
186
179
|
}
|
|
187
|
-
openLink(
|
|
188
|
-
|
|
189
|
-
}
|
|
190
|
-
renderOrgButtons(
|
|
191
|
-
const { messages:
|
|
192
|
-
return u`<calcite-button appearance=outline-fill kind=neutral .href=${
|
|
193
|
-
}
|
|
194
|
-
renderUserButtons(
|
|
195
|
-
const { total:
|
|
196
|
-
if (typeof
|
|
197
|
-
return u`<calcite-loader .label=${
|
|
198
|
-
const i =
|
|
199
|
-
return u`${!!s.total && u`<calcite-button class="popover__button" appearance=outline-fill kind=neutral .href=${i} target=_blank @click=${(
|
|
200
|
-
this.openLink(
|
|
201
|
-
}}>${
|
|
202
|
-
this.openLink(
|
|
203
|
-
}}>${
|
|
204
|
-
this.openLink(
|
|
205
|
-
}}>${
|
|
180
|
+
openLink(r, o) {
|
|
181
|
+
r.preventDefault(), window.open(o, "_blank");
|
|
182
|
+
}
|
|
183
|
+
renderOrgButtons(r) {
|
|
184
|
+
const { messages: o } = this, t = (r.url || this.resolvedBaseUrl).replace(/\/$/u, "");
|
|
185
|
+
return u`<calcite-button appearance=outline-fill kind=neutral .href=${t} target=_blank @click=${(a) => this.openLink(a, t)}>${o.homepage}</calcite-button><calcite-button appearance=outline-fill kind=neutral .href=${`${t}/gallery.html`} target=_blank @click=${(a) => this.openLink(a, `${t}/gallery.html`)}>${o.gallery}</calcite-button>`;
|
|
186
|
+
}
|
|
187
|
+
renderUserButtons(r) {
|
|
188
|
+
const { total: o, groups: s, messages: t } = this, a = r.username || "";
|
|
189
|
+
if (typeof o != "number" || !s)
|
|
190
|
+
return u`<calcite-loader .label=${t.loadingUserInformation} scale=s class="popover__loader"></calcite-loader>`;
|
|
191
|
+
const i = P({ baseUrl: this.resolvedBaseUrl, user: { username: a }, type: "groups" }), l = P({ baseUrl: this.resolvedBaseUrl, user: { username: a }, type: "content" }), m = `${this.resolvedBaseUrl.replace(/\/$/u, "")}/user.html?user=${encodeURIComponent(a)}`;
|
|
192
|
+
return u`${!!s.total && u`<calcite-button class="popover__button" appearance=outline-fill kind=neutral .href=${i} target=_blank @click=${(p) => {
|
|
193
|
+
this.openLink(p, i), this.arcgisUserPopupInternalUIAction.emit({ category: "profile popup", action: "view all groups" });
|
|
194
|
+
}}>${t.groups.replace("${number}", new Intl.NumberFormat(t._lang).format(s.total))}</calcite-button>` || ""}${!!o && u`<calcite-button class="popover__button" appearance=outline-fill kind=neutral .href=${l} target=_blank @click=${(p) => {
|
|
195
|
+
this.openLink(p, l), this.arcgisUserPopupInternalUIAction.emit({ category: "profile popup", action: "view all content" });
|
|
196
|
+
}}>${t.items.replace("${number}", new Intl.NumberFormat(t._lang).format(o))}</calcite-button>` || ""}<calcite-button class="popover__button" appearance=outline-fill kind=neutral .href=${m} target=_blank @click=${(p) => {
|
|
197
|
+
this.openLink(p, m), this.arcgisUserPopupInternalUIAction.emit({ category: "profile popup", action: "view profile" });
|
|
198
|
+
}}>${t.profile}</calcite-button>`;
|
|
206
199
|
}
|
|
207
200
|
render() {
|
|
208
|
-
const { user:
|
|
209
|
-
if (!
|
|
201
|
+
const { user: r, itemUserInfo: o, portal: s, item: t, appearance: a, scale: n, isPopoverOpen: i, showName: l, showUsername: m, messages: p } = this, c = r || o;
|
|
202
|
+
if (!p._lang || !c)
|
|
210
203
|
return u`<arcgis-portal-user-avatar scale=s show-name .checkOnline=${this.checkOnline}></arcgis-portal-user-avatar>`;
|
|
211
|
-
const f =
|
|
204
|
+
const f = O(t), h = c.username || "", d = S(c.description || "") || "", v = H(c, p._lang), g = f ? p.itemManagedBy.replace("${username}", h) : h;
|
|
212
205
|
return u`<button class=${k({
|
|
213
206
|
button: !0,
|
|
214
|
-
"button--outline":
|
|
207
|
+
"button--outline": a === "outline"
|
|
215
208
|
})} @click=${() => {
|
|
216
209
|
this.isPopoverOpen || (this.isPopoverOpen = !0), this.fetchItemsAndGroups();
|
|
217
|
-
}} ${I(this.buttonRef)}><slot><arcgis-portal-user-avatar .user=${
|
|
210
|
+
}} ${I(this.buttonRef)}><slot><arcgis-portal-user-avatar .user=${c} .scale=${n} .portal=${s} .showName=${l} .description=${m ? h : ""} .hideAvatar=${!this.showAvatar} .underline=${this.underline} .checkOnline=${this.checkOnline} .wrap=${this.wrap}></arcgis-portal-user-avatar></slot></button>${i && this.buttonRef.value && c && u`<calcite-popover class="popover" .label=${v} pointer-disabled .referenceElement=${this.buttonRef.value} placement=auto .id=${`${h}-popover`} auto-close style=${B({ "--calcite-popover-z-index": this.zIndex?.toString() || "12" })} @calcitePopoverOpen=${() => {
|
|
218
211
|
this.arcgisUserPopupInternalUIAction.emit({ category: "profile popup", action: "open profile popup" });
|
|
219
212
|
}} @calcitePopoverClose=${() => {
|
|
220
213
|
this.isPopoverOpen = !1, this.arcgisUserPopupClose.emit();
|
|
@@ -222,10 +215,10 @@ class Q extends B {
|
|
|
222
215
|
b.key === "Escape" && setTimeout(() => {
|
|
223
216
|
this.buttonRef.value?.focus();
|
|
224
217
|
}, 200);
|
|
225
|
-
}} ${I(this.popoverRef)}><div class="popover__wrapper"><div class="popover__header"><arcgis-portal-user-avatar class="popover__avatar" .user=${
|
|
218
|
+
}} ${I(this.popoverRef)}><div class="popover__wrapper"><div class="popover__header"><arcgis-portal-user-avatar class="popover__avatar" .user=${c} scale=l .portal=${s} show-name .description=${g} .checkOnline=${this.checkOnline}></arcgis-portal-user-avatar></div><div class="popover__content">${!!d && u`<p class="popover__description">${d}</p>` || ""}${!!d && u`<div class="popover__fade"></div>` || ""}<div class=${k({ popover__buttons: !0, "popover__buttons--no-description": !d })}>${f ? this.renderOrgButtons(c) : this.renderUserButtons(c)}</div></div></div></calcite-popover>` || ""}`;
|
|
226
219
|
}
|
|
227
220
|
}
|
|
228
|
-
|
|
221
|
+
N("arcgis-portal-user-popup", j);
|
|
229
222
|
export {
|
|
230
|
-
|
|
223
|
+
j as ArcgisPortalUserPopup
|
|
231
224
|
};
|