@arcgis/portal-components 5.1.0-next.99 → 5.1.0
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/README.md +2 -2
- package/dist/cdn/3AFLX4RZ.js +31 -0
- package/dist/cdn/3XDKOO6K.js +2 -0
- package/dist/cdn/4ISLOZQ3.js +2 -0
- package/dist/cdn/{TTZBF4KI.js → 563BUCQX.js} +1 -1
- package/dist/cdn/{JOYFDD4B.js → 5BPXS3WU.js} +1 -1
- package/dist/cdn/65JPRIL4.js +98 -0
- package/dist/cdn/6K7GPATC.js +2 -0
- package/dist/cdn/6RA33SDH.js +34 -0
- package/dist/cdn/7IAAHGM2.js +2 -0
- package/dist/cdn/{SOPWLUP4.js → ABRHXRFP.js} +1 -1
- package/dist/cdn/BCUEYBNI.js +2 -0
- package/dist/cdn/CAQR2NSG.js +4 -0
- package/dist/cdn/D42PED2R.js +2 -0
- package/dist/cdn/DEHBTA5D.js +2 -0
- package/dist/cdn/EZ7YC5N5.js +99 -0
- package/dist/cdn/{SEZNHA2J.js → FK7QXBE2.js} +1 -1
- package/dist/cdn/IBYY5ORN.js +122 -0
- package/dist/cdn/ITFWXO7A.js +49 -0
- package/dist/cdn/JWUQZ52F.js +134 -0
- package/dist/cdn/KBYWRUKO.js +2 -0
- package/dist/cdn/KFH2OM2D.js +2 -0
- package/dist/cdn/{GPPEHGUO.js → LVUHKMSB.js} +1 -1
- package/dist/cdn/NDKFZPYE.js +2 -0
- package/dist/cdn/NX4L2LC2.js +2 -0
- package/dist/cdn/OYABHYVF.js +2 -0
- package/dist/cdn/{V5ZWDMLE.js → PIZFXU2N.js} +1 -1
- package/dist/cdn/QOCYNLQ7.js +71 -0
- package/dist/cdn/{ERNT74VA.js → QUYBZ3J7.js} +1 -1
- package/dist/cdn/R2XPTETT.js +22 -0
- package/dist/cdn/R53CO5LK.js +77 -0
- package/dist/cdn/{HQAGVE4P.js → RNRPTWHT.js} +17 -1
- package/dist/cdn/{32DRTMS4.js → SFKRR7GW.js} +1 -1
- package/dist/cdn/SQ54YADV.js +533 -0
- package/dist/cdn/SX4KDMYV.js +69 -0
- package/dist/cdn/TKQAFRBM.js +36 -0
- package/dist/cdn/TNDL67UN.js +2 -0
- package/dist/cdn/{LJUIMVQ2.js → W4RAJWHA.js} +1 -1
- package/dist/cdn/WHLL7DNC.js +146 -0
- package/dist/cdn/X3LZYQ4U.js +66 -0
- package/dist/cdn/XR4PMNYP.js +2 -0
- package/dist/cdn/YJK6JAPE.js +422 -0
- package/dist/cdn/{5WK4GJK2.js → Z5UVAVHJ.js} +1 -1
- package/dist/cdn/{3OTUKLZI.js → ZCL2V7W3.js} +1 -1
- package/dist/cdn/assets/portal-ai-assistant/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/portal-ai-assistant/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/portal-ai-assistant/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/portal-ai-assistant/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/portal-ai-assistant/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/portal-ai-assistant/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/portal-ai-assistant/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/portal-ai-assistant/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/portal-ai-assistant/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/portal-ai-assistant/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/portal-ai-assistant/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/portal-ai-assistant/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/portal-ai-assistant/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/portal-ai-assistant/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/portal-ai-assistant/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/portal-ai-assistant/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/portal-ai-assistant/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/portal-ai-assistant/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/portal-ai-assistant/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/portal-ai-assistant/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/portal-ai-assistant/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/portal-ai-assistant/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/portal-ai-assistant/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/portal-ai-assistant/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/portal-ai-assistant/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/portal-ai-assistant/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/portal-ai-assistant/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/portal-ai-assistant/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/portal-ai-assistant/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/portal-ai-assistant/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/portal-ai-assistant/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/portal-ai-assistant/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/portal-ai-assistant/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/portal-ai-assistant/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/portal-ai-assistant/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/portal-ai-assistant/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/portal-ai-assistant/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/portal-ai-assistant/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/portal-ai-assistant/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/portal-ai-assistant/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/assets/portal-ai-assistant-interrupt/t9n/messages.ar.json +1 -0
- package/dist/cdn/assets/portal-ai-assistant-interrupt/t9n/messages.bg.json +1 -0
- package/dist/cdn/assets/portal-ai-assistant-interrupt/t9n/messages.bs.json +1 -0
- package/dist/cdn/assets/portal-ai-assistant-interrupt/t9n/messages.ca.json +1 -0
- package/dist/cdn/assets/portal-ai-assistant-interrupt/t9n/messages.cs.json +1 -0
- package/dist/cdn/assets/portal-ai-assistant-interrupt/t9n/messages.da.json +1 -0
- package/dist/cdn/assets/portal-ai-assistant-interrupt/t9n/messages.de.json +1 -0
- package/dist/cdn/assets/portal-ai-assistant-interrupt/t9n/messages.el.json +1 -0
- package/dist/cdn/assets/portal-ai-assistant-interrupt/t9n/messages.en.json +1 -0
- package/dist/cdn/assets/portal-ai-assistant-interrupt/t9n/messages.es.json +1 -0
- package/dist/cdn/assets/portal-ai-assistant-interrupt/t9n/messages.et.json +1 -0
- package/dist/cdn/assets/portal-ai-assistant-interrupt/t9n/messages.fi.json +1 -0
- package/dist/cdn/assets/portal-ai-assistant-interrupt/t9n/messages.fr.json +1 -0
- package/dist/cdn/assets/portal-ai-assistant-interrupt/t9n/messages.he.json +1 -0
- package/dist/cdn/assets/portal-ai-assistant-interrupt/t9n/messages.hr.json +1 -0
- package/dist/cdn/assets/portal-ai-assistant-interrupt/t9n/messages.hu.json +1 -0
- package/dist/cdn/assets/portal-ai-assistant-interrupt/t9n/messages.id.json +1 -0
- package/dist/cdn/assets/portal-ai-assistant-interrupt/t9n/messages.it.json +1 -0
- package/dist/cdn/assets/portal-ai-assistant-interrupt/t9n/messages.ja.json +1 -0
- package/dist/cdn/assets/portal-ai-assistant-interrupt/t9n/messages.ko.json +1 -0
- package/dist/cdn/assets/portal-ai-assistant-interrupt/t9n/messages.lt.json +1 -0
- package/dist/cdn/assets/portal-ai-assistant-interrupt/t9n/messages.lv.json +1 -0
- package/dist/cdn/assets/portal-ai-assistant-interrupt/t9n/messages.nl.json +1 -0
- package/dist/cdn/assets/portal-ai-assistant-interrupt/t9n/messages.no.json +1 -0
- package/dist/cdn/assets/portal-ai-assistant-interrupt/t9n/messages.pl.json +1 -0
- package/dist/cdn/assets/portal-ai-assistant-interrupt/t9n/messages.pt-BR.json +1 -0
- package/dist/cdn/assets/portal-ai-assistant-interrupt/t9n/messages.pt-PT.json +1 -0
- package/dist/cdn/assets/portal-ai-assistant-interrupt/t9n/messages.ro.json +1 -0
- package/dist/cdn/assets/portal-ai-assistant-interrupt/t9n/messages.ru.json +1 -0
- package/dist/cdn/assets/portal-ai-assistant-interrupt/t9n/messages.sk.json +1 -0
- package/dist/cdn/assets/portal-ai-assistant-interrupt/t9n/messages.sl.json +1 -0
- package/dist/cdn/assets/portal-ai-assistant-interrupt/t9n/messages.sr.json +1 -0
- package/dist/cdn/assets/portal-ai-assistant-interrupt/t9n/messages.sv.json +1 -0
- package/dist/cdn/assets/portal-ai-assistant-interrupt/t9n/messages.th.json +1 -0
- package/dist/cdn/assets/portal-ai-assistant-interrupt/t9n/messages.tr.json +1 -0
- package/dist/cdn/assets/portal-ai-assistant-interrupt/t9n/messages.uk.json +1 -0
- package/dist/cdn/assets/portal-ai-assistant-interrupt/t9n/messages.vi.json +1 -0
- package/dist/cdn/assets/portal-ai-assistant-interrupt/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/portal-ai-assistant-interrupt/t9n/messages.zh-HK.json +1 -0
- package/dist/cdn/assets/portal-ai-assistant-interrupt/t9n/messages.zh-TW.json +1 -0
- package/dist/cdn/assets/portal-item-type/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/portal-item-type/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/portal-item-type/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/portal-item-type/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/portal-item-type/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/portal-item-type/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/portal-item-type/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/portal-item-type/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/portal-item-type/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/portal-item-type/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/portal-item-type/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/portal-item-type/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/portal-item-type/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/portal-item-type/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/portal-item-type/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/portal-item-type/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/portal-item-type/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/portal-item-type/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/portal-item-type/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/portal-item-type/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/portal-item-type/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/portal-item-type/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/portal-item-type/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/portal-item-type/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/portal-item-type/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/portal-item-type/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/portal-item-type/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/portal-item-type/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/portal-item-type/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/portal-item-type/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/portal-item-type/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/portal-item-type/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/portal-item-type/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/portal-item-type/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/portal-item-type/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/portal-item-type/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/portal-item-type/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/portal-item-type/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/portal-item-type/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/portal-replacement-item-redirect/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/main.css +1 -1
- package/dist/chunks/fieldAddDelete.js +1 -1
- package/dist/chunks/functionalities.js +10 -0
- package/dist/chunks/groups.js +86 -0
- package/dist/chunks/item.js +124 -22
- package/dist/chunks/portal.js +48 -8
- package/dist/chunks/runtime.js +3 -3
- package/dist/chunks/user.js +4 -109
- package/dist/chunks/user2.js +113 -0
- package/dist/components/arcgis-portal-ai-assistant/agents/types.d.ts +7 -0
- package/dist/components/arcgis-portal-ai-assistant/customElement.d.ts +20 -6
- package/dist/components/arcgis-portal-ai-assistant/customElement.js +738 -124
- package/dist/components/arcgis-portal-ai-assistant/index.js +2 -1
- package/dist/components/arcgis-portal-ai-assistant-interrupt/customElement.d.ts +42 -0
- package/dist/components/arcgis-portal-ai-assistant-interrupt/customElement.js +51 -0
- package/dist/components/arcgis-portal-ai-assistant-interrupt/index.d.ts +1 -0
- package/dist/components/arcgis-portal-ai-assistant-interrupt/index.js +6 -0
- package/dist/components/arcgis-portal-classification-config/customElement.js +44 -37
- package/dist/components/arcgis-portal-item-type/customElement.js +1 -1
- package/dist/components/arcgis-portal-mentionable-text-area/customElement.d.ts +2 -1
- package/dist/components/arcgis-portal-mentionable-text-area/customElement.js +38 -41
- package/dist/components/arcgis-portal-mentionable-text-area/utils.d.ts +7 -0
- package/dist/components/arcgis-portal-replacement-item-redirect/customElement.d.ts +3 -3
- package/dist/components/arcgis-portal-replacement-item-redirect/customElement.js +131 -63
- package/dist/components/arcgis-portal-user-avatar/customElement.js +24 -27
- package/dist/components/arcgis-portal-voice-input/customElement.d.ts +1 -1
- 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 +16 -0
- package/dist/loader.js +3 -2
- package/dist/types/lumina.d.ts +9 -1
- package/dist/types/preact.d.ts +10 -1
- package/dist/types/react.d.ts +11 -1
- package/dist/types/stencil.d.ts +9 -1
- package/package.json +12 -10
- package/dist/cdn/2UAWM45V.js +0 -2
- package/dist/cdn/4XGP5S32.js +0 -2
- package/dist/cdn/AMCZ4UZQ.js +0 -2
- package/dist/cdn/CVTNZK7F.js +0 -2
- package/dist/cdn/DAD7LUKA.js +0 -2
- package/dist/cdn/F5QGCGHF.js +0 -2
- package/dist/cdn/HGOHRPAD.js +0 -2
- package/dist/cdn/IZQBJ5VK.js +0 -2
- package/dist/cdn/JFG6QVNF.js +0 -2
- package/dist/cdn/LCWXNCUX.js +0 -396
- package/dist/cdn/NJMHL2Y7.js +0 -4
- package/dist/cdn/OGQ2PD7M.js +0 -2
- package/dist/cdn/S2PHM4WZ.js +0 -2
- package/dist/cdn/ZAHK6WQT.js +0 -138
- package/dist/chunks/item2.js +0 -128
- /package/dist/cdn/{3OPKWSWR.js → 34BMNP6G.js} +0 -0
- /package/dist/cdn/{JQKWT7SI.js → FPAFR5IL.js} +0 -0
- /package/dist/cdn/{N5K4DR3J.js → FPKINYFN.js} +0 -0
|
@@ -1,13 +1,66 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import { g as
|
|
3
|
-
import { LitElement as
|
|
4
|
-
import { f as
|
|
5
|
-
import { u as
|
|
6
|
-
import { createRef as
|
|
7
|
-
import { unsafeHTML as
|
|
8
|
-
import { css as
|
|
9
|
-
import
|
|
10
|
-
|
|
2
|
+
import { g as f, c as g } from "../../chunks/runtime.js";
|
|
3
|
+
import { LitElement as v, createEvent as b, nothing as y } from "@arcgis/lumina";
|
|
4
|
+
import { f as I } from "../../chunks/item.js";
|
|
5
|
+
import { u as w } from "../../chunks/useT9n.js";
|
|
6
|
+
import { createRef as R, ref as k } from "lit/directives/ref.js";
|
|
7
|
+
import { unsafeHTML as S } from "lit/directives/unsafe-html.js";
|
|
8
|
+
import { css as M, html as l } from "lit";
|
|
9
|
+
import m from "@arcgis/core/portal/PortalItem.js";
|
|
10
|
+
import { g as T, b as $ } from "../../chunks/portal.js";
|
|
11
|
+
import C from "@arcgis/core/request.js";
|
|
12
|
+
import { f as P } from "../../chunks/user2.js";
|
|
13
|
+
import { g as A } from "../../chunks/user.js";
|
|
14
|
+
const U = M`.thumbnail{object-fit:cover;max-height:8rem}.replacement-container{margin:.5rem}.replacement-message{margin-bottom:.5rem}.replacement-card__title{margin-bottom:.25rem}`, j = [
|
|
15
|
+
"360 VR Experience",
|
|
16
|
+
"Big Data Analytic",
|
|
17
|
+
"Dashboard",
|
|
18
|
+
"Data Pipeline",
|
|
19
|
+
"Deep Learning Studio Project",
|
|
20
|
+
"Discussion",
|
|
21
|
+
"Document Link",
|
|
22
|
+
"Excalibur Imagery Project",
|
|
23
|
+
"Feature Collection",
|
|
24
|
+
"Feature Service",
|
|
25
|
+
"Feed",
|
|
26
|
+
"Form",
|
|
27
|
+
"GeoBIM Application",
|
|
28
|
+
"GeoBIM Project",
|
|
29
|
+
"Hub Event",
|
|
30
|
+
"Hub Initiative",
|
|
31
|
+
"Hub Initiative Template",
|
|
32
|
+
"Hub Page",
|
|
33
|
+
"Hub Project",
|
|
34
|
+
"Image Service",
|
|
35
|
+
"Knowledge Graph",
|
|
36
|
+
"Knowledge Studio Project",
|
|
37
|
+
"Map Service",
|
|
38
|
+
"Map Showcase",
|
|
39
|
+
"Mission Report",
|
|
40
|
+
"Mission Template",
|
|
41
|
+
"Notebook",
|
|
42
|
+
"OGCFeatureServer",
|
|
43
|
+
"Ortho Mapping Project",
|
|
44
|
+
"Parquet Layer",
|
|
45
|
+
"Real Time Analytic",
|
|
46
|
+
"Route Layer",
|
|
47
|
+
"Scene Service",
|
|
48
|
+
"Solution",
|
|
49
|
+
"StoryMap",
|
|
50
|
+
"StoryMap Theme",
|
|
51
|
+
"Tile Layer",
|
|
52
|
+
"Urban Model",
|
|
53
|
+
"Urban Project",
|
|
54
|
+
"Vector Tile Service",
|
|
55
|
+
"Video Service",
|
|
56
|
+
"Web Experience",
|
|
57
|
+
"Web Experience Template",
|
|
58
|
+
"Web Map",
|
|
59
|
+
"Web Mapping Application",
|
|
60
|
+
"Web Scene",
|
|
61
|
+
"WFS",
|
|
62
|
+
"Workflow"
|
|
63
|
+
], L = [
|
|
11
64
|
"3DInsetMap",
|
|
12
65
|
"3DScene",
|
|
13
66
|
"3DViz",
|
|
@@ -89,16 +142,16 @@ const $ = k`.thumbnail-container{width:100%}.replacement-container{margin:.5rem}
|
|
|
89
142
|
"View",
|
|
90
143
|
"Viewer",
|
|
91
144
|
"ZoneLookup"
|
|
92
|
-
],
|
|
145
|
+
], D = (i) => {
|
|
93
146
|
if (!i)
|
|
94
147
|
return !1;
|
|
95
|
-
const e =
|
|
148
|
+
const e = L.some((t) => {
|
|
96
149
|
const r = t.includes(".html"), a = `/apps/${t}${r ? "" : "/"}`;
|
|
97
150
|
return decodeURIComponent(i.url)?.includes(a);
|
|
98
151
|
});
|
|
99
152
|
return i.type === "Web Mapping Application" && !!i.url && e;
|
|
100
153
|
};
|
|
101
|
-
function
|
|
154
|
+
function x(i) {
|
|
102
155
|
const e = [
|
|
103
156
|
"Cascade",
|
|
104
157
|
"MapTour",
|
|
@@ -109,9 +162,9 @@ function S(i) {
|
|
|
109
162
|
"SwipeSpyglass",
|
|
110
163
|
"Story Map"
|
|
111
164
|
];
|
|
112
|
-
return i.type === "Web Mapping Application" && (
|
|
165
|
+
return i.type === "Web Mapping Application" && (B(e, i) || F(i));
|
|
113
166
|
}
|
|
114
|
-
function
|
|
167
|
+
function F(i) {
|
|
115
168
|
return [
|
|
116
169
|
"Cascade",
|
|
117
170
|
"MapTour",
|
|
@@ -125,14 +178,17 @@ function T(i) {
|
|
|
125
178
|
return decodeURIComponent(i.url)?.includes(r);
|
|
126
179
|
});
|
|
127
180
|
}
|
|
128
|
-
function
|
|
181
|
+
function B(i, e) {
|
|
129
182
|
return i?.some((t) => e?.typeKeywords?.includes(t));
|
|
130
183
|
}
|
|
131
|
-
function
|
|
132
|
-
|
|
133
|
-
return d(`assets/portal-item-thumbnail/${e}`);
|
|
184
|
+
function E(i) {
|
|
185
|
+
return !!i && j.some((e) => i.type === e);
|
|
134
186
|
}
|
|
135
|
-
function
|
|
187
|
+
function d(i) {
|
|
188
|
+
const e = V(i);
|
|
189
|
+
return f(`assets/portal-item-thumbnail/${e}`);
|
|
190
|
+
}
|
|
191
|
+
function V(i) {
|
|
136
192
|
const e = i.type?.toLowerCase(), t = i.typeKeywords || [];
|
|
137
193
|
switch (e) {
|
|
138
194
|
case "web mapping application":
|
|
@@ -292,49 +348,57 @@ function A(i) {
|
|
|
292
348
|
return "default.avif";
|
|
293
349
|
}
|
|
294
350
|
}
|
|
295
|
-
function
|
|
296
|
-
const { restUrl: r } = i, a =
|
|
351
|
+
function H(i, e, t) {
|
|
352
|
+
const { restUrl: r } = i, a = G(i), s = a ? `token=${a}` : "", o = `${r}/content/items/${e.id}`;
|
|
297
353
|
if (e.thumbnail) {
|
|
298
|
-
const
|
|
299
|
-
if (
|
|
300
|
-
const
|
|
301
|
-
return
|
|
354
|
+
const c = e.thumbnailUrl;
|
|
355
|
+
if (c) {
|
|
356
|
+
const n = new URL(c);
|
|
357
|
+
return n.searchParams.append("w", "400"), n.href;
|
|
302
358
|
}
|
|
303
|
-
return `${
|
|
359
|
+
return `${o}/info/${e.thumbnail}?w=400${a ? "&" : ""}${s}`;
|
|
304
360
|
} else if (e.type === "Image")
|
|
305
|
-
return `${
|
|
306
|
-
return
|
|
361
|
+
return `${o}/data?${s}`;
|
|
362
|
+
return d(e);
|
|
307
363
|
}
|
|
308
|
-
function
|
|
364
|
+
function G(i) {
|
|
309
365
|
return (
|
|
310
366
|
// @ts-ignore
|
|
311
367
|
i?.credential?.token || i?.token || i?.user?.credential?.token || i?.portalUser?.token || ""
|
|
312
368
|
);
|
|
313
369
|
}
|
|
314
|
-
function
|
|
370
|
+
function _({
|
|
315
371
|
portal: i,
|
|
316
372
|
usePortalHostname: e
|
|
317
373
|
}) {
|
|
318
|
-
const { customBaseUrl: t, portalHostname: r, urlKey: a } = i, { protocol:
|
|
319
|
-
return `${
|
|
374
|
+
const { customBaseUrl: t, portalHostname: r, urlKey: a } = i, { protocol: s } = window.location, o = !e && a ? `${a}.${t}` : r;
|
|
375
|
+
return `${s}//${o}`;
|
|
376
|
+
}
|
|
377
|
+
async function O(i) {
|
|
378
|
+
if (!i?.user)
|
|
379
|
+
return [];
|
|
380
|
+
const e = `${T(i)}portals/self/signinSettings`;
|
|
381
|
+
return (await C(e, {
|
|
382
|
+
query: { f: "json" }
|
|
383
|
+
}))?.data.blockedApps || [];
|
|
320
384
|
}
|
|
321
|
-
const
|
|
322
|
-
class
|
|
385
|
+
const u = 5e3;
|
|
386
|
+
class W extends v {
|
|
323
387
|
constructor() {
|
|
324
|
-
super(...arguments), this.replacementId = null, this.replacementItemInRecycleBin = !1, this.hasInaccessibleReplacementItem = !1, this.thumbnailUrl = null, this.timer = void 0, this.
|
|
325
|
-
const a =
|
|
388
|
+
super(...arguments), this.replacementId = null, this.itemOwnerName = "", this.replacementItemInRecycleBin = !1, this.hasInaccessibleReplacementItem = !1, this.replacementItemSupportsOpenActions = !1, this.thumbnailUrl = null, this.timer = void 0, this.messages = w({ blocking: !0 }), this.primaryActionRef = R(), this.getItemDetailsUrl = ({ portal: e, itemId: t, redirect: r }) => {
|
|
389
|
+
const a = _({ portal: e, usePortalHostname: !this.user });
|
|
326
390
|
return a ? `${`${a}/home`}/item.html?id=${t}${r ? "&performRedirectAction=true" : ""}` : "";
|
|
327
391
|
}, this.performRedirectAction = () => {
|
|
328
392
|
window.open(this.getItemDetailsUrl({ portal: this.portal, itemId: this.replacementId, redirect: !0 }), "_self");
|
|
329
393
|
}, this.viewItemDetailsPage = () => {
|
|
330
|
-
window.open(this.getItemDetailsUrl({ portal: this.portal, itemId: this.replacementId ?? this.itemId }), this.
|
|
331
|
-
}, this.item = null, this.replacementItem = null, this.redirectAction = null, this.
|
|
394
|
+
window.open(this.getItemDetailsUrl({ portal: this.portal, itemId: this.replacementId ?? this.itemId }), this.supportsReplacement ? "_self" : "_blank");
|
|
395
|
+
}, this.canRedirect = !1, this.item = null, this.replacementItem = null, this.redirectAction = null, this.supportsReplacement = !1, this.redirectCancelled = !1, this.open = !1, this.redirectTimeRemaining = u / 1e3, this.arcgisPortalReplacementItemFetch = b();
|
|
332
396
|
}
|
|
333
397
|
static {
|
|
334
|
-
this.properties = { item: 16, replacementItem: 16, redirectAction: 16,
|
|
398
|
+
this.properties = { item: 16, replacementItem: 16, redirectAction: 16, supportsReplacement: 16, redirectCancelled: 16, open: 16, redirectTimeRemaining: 16, itemId: 1, portal: 0, user: 0 };
|
|
335
399
|
}
|
|
336
400
|
static {
|
|
337
|
-
this.styles =
|
|
401
|
+
this.styles = U;
|
|
338
402
|
}
|
|
339
403
|
async setFocus() {
|
|
340
404
|
this.primaryActionRef.value?.setFocus();
|
|
@@ -343,7 +407,7 @@ class D extends f {
|
|
|
343
407
|
(e.has("itemId") || e.has("portal") || e.has("user")) && (this.user ??= this.portal?.user ?? null, this.initItem());
|
|
344
408
|
}
|
|
345
409
|
setupTimer({ onComplete: e }) {
|
|
346
|
-
typeof this.timer == "number" && clearInterval(this.timer), this.redirectTimeRemaining =
|
|
410
|
+
typeof this.timer == "number" && clearInterval(this.timer), this.redirectTimeRemaining = u / 1e3, this.timer = setInterval(() => {
|
|
347
411
|
if (this.redirectTimeRemaining <= 0) {
|
|
348
412
|
clearInterval(this.timer), this.timer = void 0, e();
|
|
349
413
|
return;
|
|
@@ -361,58 +425,62 @@ class D extends f {
|
|
|
361
425
|
this.cancelTimer(), this.redirectCancelled = !0;
|
|
362
426
|
}
|
|
363
427
|
isItemRetired(e) {
|
|
364
|
-
return
|
|
428
|
+
return D(e) || x(e);
|
|
365
429
|
}
|
|
366
430
|
async initItem() {
|
|
367
431
|
if (!this.itemId)
|
|
368
432
|
return;
|
|
369
|
-
const { itemId: e, portal: t, performRedirectAction: r } = this, a = new
|
|
433
|
+
const { itemId: e, portal: t, performRedirectAction: r } = this, a = new m({
|
|
370
434
|
id: e,
|
|
371
435
|
portal: t
|
|
372
436
|
});
|
|
373
437
|
this.item = await a?.load();
|
|
374
|
-
const
|
|
438
|
+
const s = await I(e, t, {
|
|
375
439
|
relationshipType: "ReplacementItem2Item",
|
|
376
440
|
direction: "reverse"
|
|
377
|
-
}, !0),
|
|
378
|
-
this.replacementItemInRecycleBin =
|
|
379
|
-
const
|
|
380
|
-
id:
|
|
441
|
+
}, !0), o = s.data?.relatedItems?.[0];
|
|
442
|
+
this.replacementItemInRecycleBin = o?.inRecycleBin;
|
|
443
|
+
const c = o?.id, n = !this.replacementItemInRecycleBin && c ? new m({
|
|
444
|
+
id: c,
|
|
381
445
|
portal: t
|
|
382
446
|
}) : null;
|
|
383
|
-
await
|
|
384
|
-
replacementItem: this.hasInaccessibleReplacementItem ? {} :
|
|
385
|
-
}), this.replacementItem =
|
|
447
|
+
await n?.load(), this.replacementItem = n, this.hasInaccessibleReplacementItem = this.replacementItemInRecycleBin || !n && s.data?.aggregations?.total?.count > 0 && s.data?.relatedItems?.length === 0, this.arcgisPortalReplacementItemFetch.emit({
|
|
448
|
+
replacementItem: this.hasInaccessibleReplacementItem ? {} : n || null
|
|
449
|
+
}), this.replacementItem = n;
|
|
450
|
+
const p = this.replacementItem?.owner ?? (a?.owner || null);
|
|
451
|
+
this.itemOwnerName = p ? A(await P(p, t), this.messages?._t9nLocale || "en") : "", this.replacementItemSupportsOpenActions = E(n), this.thumbnailUrl = H(t, n ?? this.item), this.supportsReplacement = !!n && this.isItemRetired(a);
|
|
452
|
+
const h = $(this.replacementItem, await O(this.portal), this.portal?.isPortal ?? !1);
|
|
453
|
+
this.canRedirect = this.supportsReplacement && this.replacementItemSupportsOpenActions && !h, this.replacementId = n?.id || null, this.canRedirect && this.setupTimer({
|
|
386
454
|
onComplete: () => r()
|
|
387
455
|
}), this.open = !0;
|
|
388
456
|
}
|
|
389
457
|
getReplacementHeading() {
|
|
390
|
-
const {
|
|
391
|
-
return t ? e.replacementUnavailable : r ? e.redirectToReplacement : this.isItemRetired(this.item) && !this.replacementItem ? e.
|
|
458
|
+
const { messages: e, hasInaccessibleReplacementItem: t, canRedirect: r } = this;
|
|
459
|
+
return t ? e.replacementUnavailable : r ? e.redirectToReplacement : this.isItemRetired(this.item) && !this.replacementItem ? e.replacementUnavailable : e.replacementAvailable;
|
|
392
460
|
}
|
|
393
461
|
getReplacementMessage() {
|
|
394
|
-
const {
|
|
462
|
+
const { messages: e, hasInaccessibleReplacementItem: t, supportsReplacement: r } = this;
|
|
395
463
|
return t ? e.retiredReplacementUnavailable : r ? e.deprecatedHasReplacement : this.isItemRetired(this.item) && !this.replacementItem ? e.retired : e.deprecatedHasReplacement;
|
|
396
464
|
}
|
|
397
465
|
getRedirectActionMessage() {
|
|
398
|
-
const {
|
|
466
|
+
const { messages: e, canRedirect: t, redirectTimeRemaining: r, redirectCancelled: a } = this;
|
|
399
467
|
return a ? e.redirectToReplacement : t ? e.redirect.replace("${seconds}", `${r}`) : e.moreDetails;
|
|
400
468
|
}
|
|
401
469
|
renderCard(e) {
|
|
402
|
-
const { canRedirect: t,
|
|
403
|
-
return l`<calcite-card thumbnail-position=inline-start><img slot=thumbnail class="thumbnail" src=${(this.thumbnailUrl || void 0) ??
|
|
470
|
+
const { canRedirect: t, messages: r } = this;
|
|
471
|
+
return l`<calcite-card thumbnail-position=inline-start><img slot=thumbnail class="thumbnail" src=${(this.thumbnailUrl || void 0) ?? y} @error=${async () => this.thumbnailUrl = d(e)}><span slot=heading class="replacement-card__title">${e.title}</span><span slot=description>${r.ownedBy?.replace("${owner}", this.itemOwnerName)}</span>${t && l`<calcite-link slot=footer-start icon-end=launch .href=${this.getItemDetailsUrl({ portal: this.portal, itemId: this.replacementId })} target=_blank>${r.moreDetails}</calcite-link>` || ""}</calcite-card>`;
|
|
404
472
|
}
|
|
405
473
|
render() {
|
|
406
|
-
const { open: e,
|
|
474
|
+
const { open: e, messages: t, item: r, replacementItem: a, supportsReplacement: s, canRedirect: o, redirectCancelled: c } = this;
|
|
407
475
|
if (!(!r || !this.isItemRetired(r)))
|
|
408
|
-
return l`<calcite-dialog modal .open=${e} width=s kind=info outside-close-disabled escape-disabled close-disabled .heading=${this.getReplacementHeading()} @calciteDialogClose=${() => this.handleClose()}><div class="replacement-container"><div class="replacement-message">${
|
|
476
|
+
return l`<calcite-dialog modal .open=${e} width=s kind=info outside-close-disabled escape-disabled close-disabled .heading=${this.getReplacementHeading()} @calciteDialogClose=${() => this.handleClose()}><div class="replacement-container"><div class="replacement-message">${S(this.getReplacementMessage()?.replace("${itemTitle}", this.item?.title || ""))}</div>${this.renderCard(s ? a : r)}</div>${o && !c && l`<calcite-button slot=footer-end appearance=outline-fill kind=neutral @click=${() => {
|
|
409
477
|
this.cancelRedirect();
|
|
410
478
|
}}>${t.cancelRedirection}</calcite-button>` || ""}<calcite-button slot=footer-end @click=${() => {
|
|
411
|
-
this.cancelTimer(),
|
|
412
|
-
}} .iconEnd=${
|
|
479
|
+
this.cancelTimer(), o ? this.performRedirectAction() : this.viewItemDetailsPage();
|
|
480
|
+
}} .iconEnd=${o ? void 0 : "launch"} ${k(this.primaryActionRef)}>${this.getRedirectActionMessage()}</calcite-button></calcite-dialog>`;
|
|
413
481
|
}
|
|
414
482
|
}
|
|
415
|
-
|
|
483
|
+
g("arcgis-portal-replacement-item-redirect", W);
|
|
416
484
|
export {
|
|
417
|
-
|
|
485
|
+
W as ArcgisPortalReplacementItemRedirect
|
|
418
486
|
};
|
|
@@ -3,25 +3,22 @@ import { c as x } from "../../chunks/runtime.js";
|
|
|
3
3
|
import { LitElement as b, safeClassMap as l } from "@arcgis/lumina";
|
|
4
4
|
import { css as k, html as n } from "lit";
|
|
5
5
|
import { u as $ } from "../../chunks/useT9n.js";
|
|
6
|
-
import { f as z } from "../../chunks/
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
const A = k`:host{max-width:100%;display:flex;align-items:center;min-width:0}.skeleton{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite;display:flex;align-items:center}.skeleton-avatar{border-radius:100%;background-color:var(--calcite-color-foreground-3);width:var(--arcgis-portal-user-avatar-size);height:var(--arcgis-portal-user-avatar-size)}.skeleton-name{background-color:var(--calcite-color-foreground-3);border-radius:var(--calcite-border-radius);width:var(--arcgis-portal-user-avatar-skeleton-width);border-radius:var(--arcgis-portal-user-avatar-spacing);height:var(--arcgis-portal-user-avatar-spacing);margin-inline-start:var(--arcgis-portal-user-avatar-spacing)}@keyframes pulse{0%,to{opacity:1}50%{opacity:.5}}.avatar{display:block;flex-grow:0;flex-shrink:0;border-radius:100%;background-color:var(--calcite-color-foreground-3);width:var(--arcgis-portal-user-avatar-size);height:var(--arcgis-portal-user-avatar-size)}.text{color:var(--calcite-color-text-2);display:flex;flex-direction:column;justify-content:center;min-width:0;text-align:start;margin-inline-start:var(--arcgis-portal-user-avatar-spacing);line-height:calc(var(--arcgis-portal-user-avatar-size) / 2)}.text--no-avatar{margin-inline-start:0}.-text-underline .title{text-decoration:underline}.text--clamp{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.text--ellipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.has-description{font-weight:500}.description{font-weight:400;color:var(--calcite-color-text-2)}:host([scale="xs"]){font-size:.75rem;--arcgis-portal-user-avatar-size: 18px;--arcgis-portal-user-avatar-spacing: .25rem ;.description{font-size:.625rem;margin-top:-.125rem}.text{line-height:1.35}}:host([scale="s"]){font-size:.75rem;--arcgis-portal-user-avatar-size: 1.5rem ;--arcgis-portal-user-avatar-spacing: .5rem ;--arcgis-portal-user-avatar-skeleton-width: 4rem ;.description{font-size:.625rem}}:host([scale="m"]){font-size:.875rem;--arcgis-portal-user-avatar-size: 2rem ;--arcgis-portal-user-avatar-spacing: .75rem ;--arcgis-portal-user-avatar-skeleton-width: 5rem ;.description{font-size:.75rem}}:host([scale="l"]){font-size:1rem;--arcgis-portal-user-avatar-size: 2.5rem ;--arcgis-portal-user-avatar-spacing: 1rem ;--arcgis-portal-user-avatar-skeleton-width: 6rem ;.description{font-size:.875rem}}`, j = (s) => s.thumbnailUrl !== void 0;
|
|
13
|
-
function c(s, r, a = !1) {
|
|
14
|
-
if (j(s))
|
|
6
|
+
import { f as z } from "../../chunks/user2.js";
|
|
7
|
+
import { g as U } from "../../chunks/user.js";
|
|
8
|
+
import { a as y, g as A } from "../../chunks/portal.js";
|
|
9
|
+
const N = k`:host{max-width:100%;display:flex;align-items:center;min-width:0}.skeleton{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite;display:flex;align-items:center}.skeleton-avatar{border-radius:100%;background-color:var(--calcite-color-foreground-3);width:var(--arcgis-portal-user-avatar-size);height:var(--arcgis-portal-user-avatar-size)}.skeleton-name{background-color:var(--calcite-color-foreground-3);border-radius:var(--calcite-border-radius);width:var(--arcgis-portal-user-avatar-skeleton-width);border-radius:var(--arcgis-portal-user-avatar-spacing);height:var(--arcgis-portal-user-avatar-spacing);margin-inline-start:var(--arcgis-portal-user-avatar-spacing)}@keyframes pulse{0%,to{opacity:1}50%{opacity:.5}}.avatar{display:block;flex-grow:0;flex-shrink:0;border-radius:100%;background-color:var(--calcite-color-foreground-3);width:var(--arcgis-portal-user-avatar-size);height:var(--arcgis-portal-user-avatar-size)}.text{color:var(--calcite-color-text-2);display:flex;flex-direction:column;justify-content:center;min-width:0;text-align:start;margin-inline-start:var(--arcgis-portal-user-avatar-spacing);line-height:calc(var(--arcgis-portal-user-avatar-size) / 2)}.text--no-avatar{margin-inline-start:0}.-text-underline .title{text-decoration:underline}.text--clamp{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.text--ellipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.has-description{font-weight:500}.description{font-weight:400;color:var(--calcite-color-text-2)}:host([scale="xs"]){font-size:.75rem;--arcgis-portal-user-avatar-size: 18px;--arcgis-portal-user-avatar-spacing: .25rem ;.description{font-size:.625rem;margin-top:-.125rem}.text{line-height:1.35}}:host([scale="s"]){font-size:.75rem;--arcgis-portal-user-avatar-size: 1.5rem ;--arcgis-portal-user-avatar-spacing: .5rem ;--arcgis-portal-user-avatar-skeleton-width: 4rem ;.description{font-size:.625rem}}:host([scale="m"]){font-size:.875rem;--arcgis-portal-user-avatar-size: 2rem ;--arcgis-portal-user-avatar-spacing: .75rem ;--arcgis-portal-user-avatar-skeleton-width: 5rem ;.description{font-size:.75rem}}:host([scale="l"]){font-size:1rem;--arcgis-portal-user-avatar-size: 2.5rem ;--arcgis-portal-user-avatar-spacing: 1rem ;--arcgis-portal-user-avatar-skeleton-width: 6rem ;.description{font-size:.875rem}}`, B = (s) => s.thumbnailUrl !== void 0;
|
|
10
|
+
function c(s, a, r = !1) {
|
|
11
|
+
if (B(s))
|
|
15
12
|
return s.thumbnailUrl;
|
|
16
13
|
const e = s.thumbnail;
|
|
17
14
|
if (!e)
|
|
18
15
|
return null;
|
|
19
16
|
if (e.startsWith("http"))
|
|
20
17
|
return e;
|
|
21
|
-
const t =
|
|
22
|
-
return `${
|
|
18
|
+
const t = y(a);
|
|
19
|
+
return `${r ? "https://www.arcgis.com/sharing/rest/" : A(a)}community/users/${s.username}/info/${e}${t && !r ? `?token=${t}` : ""}`;
|
|
23
20
|
}
|
|
24
|
-
class
|
|
21
|
+
class P extends b {
|
|
25
22
|
constructor() {
|
|
26
23
|
super(...arguments), this.messages = $({ name: null }), this.thumbnailUrl = null, this.scale = "m", this.hideAvatar = !1;
|
|
27
24
|
}
|
|
@@ -29,37 +26,37 @@ class B extends b {
|
|
|
29
26
|
this.properties = { user: 0, portal: 0, scale: 3, showName: 5, hideAvatar: 5, heading: 1, description: 1, underline: 5, username: 1, wrap: 5, checkOnline: 5 };
|
|
30
27
|
}
|
|
31
28
|
static {
|
|
32
|
-
this.styles =
|
|
29
|
+
this.styles = N;
|
|
33
30
|
}
|
|
34
31
|
async load() {
|
|
35
|
-
const { username:
|
|
36
|
-
if (
|
|
37
|
-
const i = await z(
|
|
38
|
-
this.user = i, this.thumbnailUrl = c(i, e,
|
|
39
|
-
} else t && e && (this.thumbnailUrl = c(t, e,
|
|
32
|
+
const { username: a, checkOnline: r, portal: e, user: t } = this;
|
|
33
|
+
if (a && e) {
|
|
34
|
+
const i = await z(a, e, r);
|
|
35
|
+
this.user = i, this.thumbnailUrl = c(i, e, r);
|
|
36
|
+
} else t && e && (this.thumbnailUrl = c(t, e, r));
|
|
40
37
|
}
|
|
41
|
-
updated(
|
|
42
|
-
const
|
|
43
|
-
|
|
38
|
+
updated(a) {
|
|
39
|
+
const r = a.get("user");
|
|
40
|
+
r && this.portal && (this.thumbnailUrl = c(r, this.portal, this.checkOnline));
|
|
44
41
|
}
|
|
45
42
|
renderSkeleton() {
|
|
46
43
|
return n`<div class="skeleton">${!this.hideAvatar && n`<div class="skeleton-avatar"></div>` || ""}${this.showName && n`<div class="skeleton-name"></div>` || ""}</div>`;
|
|
47
44
|
}
|
|
48
45
|
renderUser() {
|
|
49
|
-
const { user:
|
|
50
|
-
if (!
|
|
46
|
+
const { user: a, messages: r, thumbnailUrl: e, hideAvatar: t, showName: i, description: u, scale: m, underline: h, heading: d } = this;
|
|
47
|
+
if (!a)
|
|
51
48
|
return [];
|
|
52
|
-
const { fullName: g, username: v, id: f } =
|
|
49
|
+
const { fullName: g, username: v, id: f } = a, o = !!u, w = (g?.split(" ") || []).slice(0, 2).join(" "), p = this.wrap ? "text--clamp" : "text--ellipsis";
|
|
53
50
|
return [
|
|
54
51
|
!t && n`<calcite-avatar class="avatar" .scale=${m === "xs" ? "s" : m} .fullName=${w} .username=${v} .userId=${f} .thumbnail=${e || void 0} .inert=${i || o ? !0 : void 0}></calcite-avatar>` || "",
|
|
55
|
-
(i || o) && n`<span class=${l({ text: !0, "text--underline": h, "text--no-avatar": t })}>${i && n`<span class=${l({ title: !0, "has-description": o, [p]: !0 })}>${d ||
|
|
52
|
+
(i || o) && n`<span class=${l({ text: !0, "text--underline": h, "text--no-avatar": t })}>${i && n`<span class=${l({ title: !0, "has-description": o, [p]: !0 })}>${d || U(a, r._lang)}</span>` || ""}${o && n`<span class=${l({ description: !0, [p]: !0 })}>${u}</span>` || ""}</span>` || ""
|
|
56
53
|
];
|
|
57
54
|
}
|
|
58
55
|
render() {
|
|
59
56
|
return this.user && this.messages._lang ? this.renderUser() : this.renderSkeleton();
|
|
60
57
|
}
|
|
61
58
|
}
|
|
62
|
-
x("arcgis-portal-user-avatar",
|
|
59
|
+
x("arcgis-portal-user-avatar", P);
|
|
63
60
|
export {
|
|
64
|
-
|
|
61
|
+
P as ArcgisPortalUserAvatar
|
|
65
62
|
};
|
|
@@ -6,7 +6,7 @@ export abstract class ArcgisPortalVoiceInput extends LitElement {
|
|
|
6
6
|
/**
|
|
7
7
|
* Language for speech recognition (e.g., 'en-US', 'es-ES'). If not provided, the browser's default language will be used.
|
|
8
8
|
*
|
|
9
|
-
* @see https://developer.mozilla.org/
|
|
9
|
+
* @see https://developer.mozilla.org/docs/Web/API/SpeechRecognition/lang
|
|
10
10
|
*/
|
|
11
11
|
accessor language: string | undefined;
|
|
12
12
|
clearText(): Promise<void>;
|