@arcgis/portal-components 5.2.0-next.124 → 5.2.0-next.126
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/{XVXUI2NM.js → 2B2T3CO3.js} +1 -1
- package/dist/cdn/2EV6F7V6.js +2 -0
- package/dist/cdn/{PO7ZCHRK.js → 2U2SESKW.js} +69 -69
- package/dist/cdn/{ZRPU3E6I.js → 3TMF6URM.js} +1 -1
- package/dist/cdn/3YJUQ54F.js +2 -0
- package/dist/cdn/4IRL6DWY.js +2 -0
- package/dist/cdn/{X2YH4HME.js → 5B76NS25.js} +1 -1
- package/dist/cdn/5CQ3B6ZW.js +2 -0
- package/dist/cdn/5EFYJYWM.js +2 -0
- package/dist/cdn/5GLUIQ7R.js +2 -0
- package/dist/cdn/{P5T4PK6A.js → 5HP5TLLV.js} +1 -1
- package/dist/cdn/5ZSZI7KG.js +2 -0
- package/dist/cdn/{5SRRBZNT.js → 6JJUORUU.js} +1 -1
- package/dist/cdn/6PTPTTSS.js +2 -0
- package/dist/cdn/6XRVLKAZ.js +2 -0
- package/dist/cdn/{IE57HB42.js → 7QCQNOXB.js} +1 -1
- package/dist/cdn/{FXGAQXNR.js → 7UNUBFFC.js} +1 -1
- package/dist/cdn/{YA32NOJY.js → ABIXHCPF.js} +1 -1
- package/dist/cdn/{HKJ5QP62.js → AYOR6D2Z.js} +1 -1
- package/dist/cdn/{6Z2AEG54.js → BPQ6ZBLE.js} +1 -1
- package/dist/cdn/{5R5O2X3M.js → BQKUF5EQ.js} +1 -1
- package/dist/cdn/BYYQOYJS.js +2 -0
- package/dist/cdn/{TD6BN5LE.js → CVUMYWBS.js} +1 -1
- package/dist/cdn/{JADQNA27.js → D4MCG57T.js} +1 -1
- package/dist/cdn/DIOGMUOB.js +2 -0
- package/dist/cdn/{52EHJXE4.js → DZWCWV3A.js} +1 -1
- package/dist/cdn/{35MI6GEH.js → E3XDGNPB.js} +1 -1
- package/dist/cdn/E56YMOVE.js +2 -0
- package/dist/cdn/EPURPU4Q.js +2 -0
- package/dist/cdn/{JZID64Z6.js → EXPBHQ4I.js} +1 -1
- package/dist/cdn/{MTJN3KRM.js → FHXIGKK4.js} +1 -1
- package/dist/cdn/{X3WXFI25.js → FJ3PFFCN.js} +1 -1
- package/dist/cdn/{GXOORXRU.js → FKFSGSBA.js} +1 -1
- package/dist/cdn/FPKKNRZY.js +2 -0
- package/dist/cdn/{COXMHAJA.js → GCB5BYDM.js} +1 -1
- package/dist/cdn/{7EM25L56.js → GES5WKJA.js} +1 -1
- package/dist/cdn/{Z44L4BKR.js → GGG3IIFK.js} +1 -1
- package/dist/cdn/{QJCOQ6FY.js → GZU4XZUI.js} +1 -1
- package/dist/cdn/{JEOHKIHK.js → H3CCKTNL.js} +1 -1
- package/dist/cdn/{BZZQOEUP.js → H3PPP7A7.js} +1 -1
- package/dist/cdn/{BYV7M63H.js → HATTAFCL.js} +1 -1
- package/dist/cdn/{5HVUPXCG.js → HPDQHQVC.js} +1 -1
- package/dist/cdn/{L4YVQHX3.js → HWYJF6DJ.js} +1 -1
- package/dist/cdn/{OAVKM5RX.js → I5C4SV6N.js} +1 -1
- package/dist/cdn/{4RPD44KC.js → I64ZE3TR.js} +1 -1
- package/dist/cdn/{7EPXWK4L.js → ICUDZDC6.js} +1 -1
- package/dist/cdn/{625YOS7Q.js → IMIQY3MT.js} +1 -1
- package/dist/cdn/{GC7KNL7Y.js → IWARFJ4I.js} +1 -1
- package/dist/cdn/JB2P4KY4.js +2 -0
- package/dist/cdn/{YASUXORH.js → JGCCJ5PX.js} +1 -1
- package/dist/cdn/JIOUF6RV.js +2 -0
- package/dist/cdn/{6QTLQAJL.js → K25K7FCI.js} +1 -1
- package/dist/cdn/{37HLLREH.js → K4LXMVNH.js} +1 -1
- package/dist/cdn/{6H7CWMFE.js → K64QFEX2.js} +1 -1
- package/dist/cdn/{CFLKHGTI.js → KALKWPUR.js} +1 -1
- package/dist/cdn/KEM54FSC.js +2 -0
- package/dist/cdn/{RCL4QILW.js → KFGCJN3T.js} +1 -1
- package/dist/cdn/{3RGCV53N.js → L46EVYBC.js} +1 -1
- package/dist/cdn/{E3Y3LIHI.js → LFRTGSGI.js} +1 -1
- package/dist/cdn/MA7TVM56.js +2 -0
- package/dist/cdn/MBOTEUCN.js +2 -0
- package/dist/cdn/MC3V6J4M.js +2 -0
- package/dist/cdn/{JGH37RQB.js → MFKSJMJS.js} +1 -1
- package/dist/cdn/MG4AOOOZ.js +2 -0
- package/dist/cdn/{EZIZLWHA.js → MXVFCMBR.js} +1 -1
- package/dist/cdn/{5H6OROJK.js → N4UNPHFQ.js} +1 -1
- package/dist/cdn/{7ZCKR7TW.js → NBU2KMJP.js} +1 -1
- package/dist/cdn/NBX2RCQR.js +2 -0
- package/dist/cdn/NQMXSOYA.js +2 -0
- package/dist/cdn/{DKWAWI4G.js → NXJTHWZ6.js} +1 -1
- package/dist/cdn/{AUBBEYJL.js → OGAJ4WJ7.js} +1 -1
- package/dist/cdn/{M5VLXVNQ.js → OXKHPA3Q.js} +1 -1
- package/dist/cdn/{DWHJ45FR.js → PCFYL72V.js} +1 -1
- package/dist/cdn/{BKACWDST.js → PK7EJW27.js} +1 -1
- package/dist/cdn/{C5SWAPH7.js → PM3ZMOIJ.js} +1 -1
- package/dist/cdn/{H4TRF2G7.js → PWHUWOQ3.js} +1 -1
- package/dist/cdn/PZGMF6VO.js +2 -0
- package/dist/cdn/QMI55NF4.js +2 -0
- package/dist/cdn/QNWDRDCX.js +2 -0
- package/dist/cdn/{BQLZPSWJ.js → QPYGIJHQ.js} +1 -1
- package/dist/cdn/{NDHD5H3P.js → QQMRZ2WI.js} +1 -1
- package/dist/cdn/{BV5TOHYG.js → QSWSIFAH.js} +1 -1
- package/dist/cdn/{6XW2ZF24.js → RII2VGVJ.js} +1 -1
- package/dist/cdn/{FQCG2EFI.js → RX7UZ7F5.js} +1 -1
- package/dist/cdn/S772GWA3.js +2 -0
- package/dist/cdn/SGI3WLNF.js +2 -0
- package/dist/cdn/SXQ2TVKW.js +2 -0
- package/dist/cdn/SXSWBX5T.js +2 -0
- package/dist/cdn/TEYNP76W.js +2 -0
- package/dist/cdn/TH6XSIAF.js +2 -0
- package/dist/cdn/{TF3F2YJ6.js → THNBXEBO.js} +1 -1
- package/dist/cdn/U6MJCS5P.js +2 -0
- package/dist/cdn/{6F74ZAGM.js → UI3WY3TF.js} +1 -1
- package/dist/cdn/{7NZ3RJFV.js → UXAGLEJM.js} +1 -1
- package/dist/cdn/{64NRJZKN.js → V2WAYK5G.js} +1 -1
- package/dist/cdn/{BLCWXWUR.js → V5BCQN5U.js} +1 -1
- package/dist/cdn/{CGX6YKBP.js → V75YULVA.js} +1 -1
- package/dist/cdn/{5UU2W2M6.js → VKS44KV4.js} +1 -1
- package/dist/cdn/{SHWP2FT2.js → VUBYPGZG.js} +1 -1
- package/dist/cdn/VYGJEX36.js +2 -0
- package/dist/cdn/{VU5VTC5L.js → WKQGRP5P.js} +1 -1
- package/dist/cdn/{FWRSYP3I.js → X4GCKBT2.js} +1 -1
- package/dist/cdn/{7T744GFJ.js → XATZUXUP.js} +1 -1
- package/dist/cdn/XDKRJYZ2.js +2 -0
- package/dist/cdn/YDA23ZS6.js +2 -0
- package/dist/cdn/{5IEUHTZ7.js → YFU47LWN.js} +1 -1
- package/dist/cdn/YO44QZPK.js +2 -0
- package/dist/cdn/{GMLGEIYS.js → YXWMVZUC.js} +1 -1
- package/dist/cdn/YYHDUC6G.js +2 -0
- package/dist/cdn/{6L5QFCR6.js → ZY5BJB25.js} +1 -1
- package/dist/cdn/{NF5AJJQU.js → ZZBKWWAW.js} +1 -1
- package/dist/cdn/assets/portal-account-switcher/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/portal-delete-items/t9n/messages.ar.json +1 -0
- package/dist/cdn/assets/portal-delete-items/t9n/messages.bg.json +1 -0
- package/dist/cdn/assets/portal-delete-items/t9n/messages.ca.json +1 -0
- package/dist/cdn/assets/portal-delete-items/t9n/messages.cs.json +1 -0
- package/dist/cdn/assets/portal-delete-items/t9n/messages.da.json +1 -0
- package/dist/cdn/assets/portal-delete-items/t9n/messages.de.json +1 -0
- package/dist/cdn/assets/portal-delete-items/t9n/messages.el.json +1 -0
- package/dist/cdn/assets/portal-delete-items/t9n/messages.en.json +1 -0
- package/dist/cdn/assets/portal-delete-items/t9n/messages.es.json +1 -0
- package/dist/cdn/assets/portal-delete-items/t9n/messages.et.json +1 -0
- package/dist/cdn/assets/portal-delete-items/t9n/messages.fi.json +1 -0
- package/dist/cdn/assets/portal-delete-items/t9n/messages.fr.json +1 -0
- package/dist/cdn/assets/portal-delete-items/t9n/messages.he.json +1 -0
- package/dist/cdn/assets/portal-delete-items/t9n/messages.hr.json +1 -0
- package/dist/cdn/assets/portal-delete-items/t9n/messages.hu.json +1 -0
- package/dist/cdn/assets/portal-delete-items/t9n/messages.id.json +1 -0
- package/dist/cdn/assets/portal-delete-items/t9n/messages.it.json +1 -0
- package/dist/cdn/assets/portal-delete-items/t9n/messages.ja.json +1 -0
- package/dist/cdn/assets/portal-delete-items/t9n/messages.ko.json +1 -0
- package/dist/cdn/assets/portal-delete-items/t9n/messages.lt.json +1 -0
- package/dist/cdn/assets/portal-delete-items/t9n/messages.lv.json +1 -0
- package/dist/cdn/assets/portal-delete-items/t9n/messages.nl.json +1 -0
- package/dist/cdn/assets/portal-delete-items/t9n/messages.no.json +1 -0
- package/dist/cdn/assets/portal-delete-items/t9n/messages.pl.json +1 -0
- package/dist/cdn/assets/portal-delete-items/t9n/messages.pt-BR.json +1 -0
- package/dist/cdn/assets/portal-delete-items/t9n/messages.pt-PT.json +1 -0
- package/dist/cdn/assets/portal-delete-items/t9n/messages.ro.json +1 -0
- package/dist/cdn/assets/portal-delete-items/t9n/messages.ru.json +1 -0
- package/dist/cdn/assets/portal-delete-items/t9n/messages.sk.json +1 -0
- package/dist/cdn/assets/portal-delete-items/t9n/messages.sl.json +1 -0
- package/dist/cdn/assets/portal-delete-items/t9n/messages.sr.json +1 -0
- package/dist/cdn/assets/portal-delete-items/t9n/messages.sv.json +1 -0
- package/dist/cdn/assets/portal-delete-items/t9n/messages.th.json +1 -0
- package/dist/cdn/assets/portal-delete-items/t9n/messages.tr.json +1 -0
- package/dist/cdn/assets/portal-delete-items/t9n/messages.uk.json +1 -0
- package/dist/cdn/assets/portal-delete-items/t9n/messages.vi.json +1 -0
- package/dist/cdn/assets/portal-delete-items/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/portal-delete-items/t9n/messages.zh-TW.json +1 -0
- package/dist/cdn/assets/portal-group-browser/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/portal-review-related-items/t9n/messages.ar.json +1 -0
- package/dist/cdn/assets/portal-review-related-items/t9n/messages.bg.json +1 -0
- package/dist/cdn/assets/portal-review-related-items/t9n/messages.ca.json +1 -0
- package/dist/cdn/assets/portal-review-related-items/t9n/messages.cs.json +1 -0
- package/dist/cdn/assets/portal-review-related-items/t9n/messages.da.json +1 -0
- package/dist/cdn/assets/portal-review-related-items/t9n/messages.de.json +1 -0
- package/dist/cdn/assets/portal-review-related-items/t9n/messages.el.json +1 -0
- package/dist/cdn/assets/portal-review-related-items/t9n/messages.en.json +1 -0
- package/dist/cdn/assets/portal-review-related-items/t9n/messages.es.json +1 -0
- package/dist/cdn/assets/portal-review-related-items/t9n/messages.et.json +1 -0
- package/dist/cdn/assets/portal-review-related-items/t9n/messages.fi.json +1 -0
- package/dist/cdn/assets/portal-review-related-items/t9n/messages.fr.json +1 -0
- package/dist/cdn/assets/portal-review-related-items/t9n/messages.he.json +1 -0
- package/dist/cdn/assets/portal-review-related-items/t9n/messages.hr.json +1 -0
- package/dist/cdn/assets/portal-review-related-items/t9n/messages.hu.json +1 -0
- package/dist/cdn/assets/portal-review-related-items/t9n/messages.id.json +1 -0
- package/dist/cdn/assets/portal-review-related-items/t9n/messages.it.json +1 -0
- package/dist/cdn/assets/portal-review-related-items/t9n/messages.ja.json +1 -0
- package/dist/cdn/assets/portal-review-related-items/t9n/messages.ko.json +1 -0
- package/dist/cdn/assets/portal-review-related-items/t9n/messages.lt.json +1 -0
- package/dist/cdn/assets/portal-review-related-items/t9n/messages.lv.json +1 -0
- package/dist/cdn/assets/portal-review-related-items/t9n/messages.nl.json +1 -0
- package/dist/cdn/assets/portal-review-related-items/t9n/messages.no.json +1 -0
- package/dist/cdn/assets/portal-review-related-items/t9n/messages.pl.json +1 -0
- package/dist/cdn/assets/portal-review-related-items/t9n/messages.pt-BR.json +1 -0
- package/dist/cdn/assets/portal-review-related-items/t9n/messages.pt-PT.json +1 -0
- package/dist/cdn/assets/portal-review-related-items/t9n/messages.ro.json +1 -0
- package/dist/cdn/assets/portal-review-related-items/t9n/messages.ru.json +1 -0
- package/dist/cdn/assets/portal-review-related-items/t9n/messages.sk.json +1 -0
- package/dist/cdn/assets/portal-review-related-items/t9n/messages.sl.json +1 -0
- package/dist/cdn/assets/portal-review-related-items/t9n/messages.sr.json +1 -0
- package/dist/cdn/assets/portal-review-related-items/t9n/messages.sv.json +1 -0
- package/dist/cdn/assets/portal-review-related-items/t9n/messages.th.json +1 -0
- package/dist/cdn/assets/portal-review-related-items/t9n/messages.tr.json +1 -0
- package/dist/cdn/assets/portal-review-related-items/t9n/messages.uk.json +1 -0
- package/dist/cdn/assets/portal-review-related-items/t9n/messages.vi.json +1 -0
- package/dist/cdn/assets/portal-review-related-items/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/portal-review-related-items/t9n/messages.zh-TW.json +1 -0
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/main.css +1 -1
- package/dist/chunks/functional.js +9 -0
- package/dist/components/arcgis-portal-account-switcher/customElement.d.ts +1 -2
- package/dist/components/arcgis-portal-account-switcher/customElement.js +107 -98
- package/dist/components/arcgis-portal-account-switcher-accounts/customElement.d.ts +0 -2
- package/dist/components/arcgis-portal-account-switcher-list/customElement.d.ts +0 -2
- package/dist/components/arcgis-portal-account-switcher-signout/customElement.d.ts +0 -2
- package/dist/components/arcgis-portal-delete-items/customElement.d.ts +128 -0
- package/dist/components/arcgis-portal-delete-items/customElement.js +452 -0
- package/dist/components/arcgis-portal-delete-items/index.d.ts +1 -0
- package/dist/components/arcgis-portal-delete-items/index.js +13 -0
- package/dist/components/arcgis-portal-delete-items/services.d.ts +7 -0
- package/dist/components/arcgis-portal-extent-picker/customElement.js +285 -243
- package/dist/components/arcgis-portal-extent-picker/index.js +3 -0
- package/dist/components/arcgis-portal-extent-picker-coord-field/customElement.js +8 -8
- package/dist/components/arcgis-portal-field-delete/customElement.js +206 -120
- package/dist/components/arcgis-portal-group-browser/customElement.d.ts +4 -0
- package/dist/components/arcgis-portal-group-browser-preview/customElement.d.ts +4 -0
- package/dist/components/arcgis-portal-group-browser-preview/customElement.js +1 -1
- package/dist/components/arcgis-portal-navigation/customElement.js +35 -37
- package/dist/components/arcgis-portal-navigation/index.js +1 -1
- package/dist/components/arcgis-portal-review-related-items/customElement.d.ts +27 -0
- package/dist/components/arcgis-portal-review-related-items/customElement.js +42 -0
- package/dist/components/arcgis-portal-review-related-items/index.d.ts +1 -0
- package/dist/components/arcgis-portal-review-related-items/index.js +5 -0
- package/dist/components/portal-group-browser-filters/customElement.js +15 -15
- 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 +14 -0
- package/dist/loader.js +3 -1
- package/dist/types/lumina.d.ts +14 -1
- package/dist/types/preact.d.ts +16 -1
- package/dist/types/react.d.ts +18 -1
- package/dist/types/services.d.ts +9 -0
- package/dist/types/stencil.d.ts +14 -1
- package/package.json +7 -6
- package/dist/cdn/2HI6C3VG.js +0 -2
- package/dist/cdn/3R4I7T7Y.js +0 -2
- package/dist/cdn/465E43FF.js +0 -2
- package/dist/cdn/6PRXL6A7.js +0 -2
- package/dist/cdn/7LIVNXCJ.js +0 -2
- package/dist/cdn/A2OPVUV2.js +0 -2
- package/dist/cdn/AO7QKC5R.js +0 -2
- package/dist/cdn/BTGSJRJK.js +0 -2
- package/dist/cdn/C7FIYNJZ.js +0 -2
- package/dist/cdn/CK2D7FWY.js +0 -2
- package/dist/cdn/CQYLVRUF.js +0 -2
- package/dist/cdn/GXQMTKYF.js +0 -2
- package/dist/cdn/H2BBKRIY.js +0 -2
- package/dist/cdn/HGKH2F4Y.js +0 -2
- package/dist/cdn/KXSBIXYI.js +0 -2
- package/dist/cdn/L3UUTA7H.js +0 -2
- package/dist/cdn/LD2SO7MK.js +0 -2
- package/dist/cdn/LDY4QCZH.js +0 -2
- package/dist/cdn/LR6IOINV.js +0 -2
- package/dist/cdn/M3PJPM3Q.js +0 -2
- package/dist/cdn/ML2ETZQ5.js +0 -2
- package/dist/cdn/NMMQRFHX.js +0 -2
- package/dist/cdn/OO2IP4WZ.js +0 -2
- package/dist/cdn/PBWAZUZ4.js +0 -2
- package/dist/cdn/QTDRRCS2.js +0 -2
- package/dist/cdn/SXE3WUK6.js +0 -2
- package/dist/cdn/UFEBKEX7.js +0 -2
- package/dist/cdn/VLLPYVQB.js +0 -2
- package/dist/cdn/W47ZH7KA.js +0 -2
- package/dist/cdn/WFTFIAEX.js +0 -2
- package/dist/cdn/WIU3MYUE.js +0 -2
- package/dist/cdn/WKFQOWXJ.js +0 -2
- package/dist/cdn/XCFRL5XT.js +0 -2
- package/dist/cdn/ZHJMS2LV.js +0 -2
- /package/dist/cdn/{DG6DAKQ2.js → ASDS73QU.js} +0 -0
- /package/dist/cdn/{N5KMTTYL.js → OTMC7MVD.js} +0 -0
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
3
|
-
import { keyed as
|
|
4
|
-
import { LitElement as
|
|
5
|
-
import { html as d, svg as
|
|
6
|
-
import { s as
|
|
7
|
-
import { g as
|
|
2
|
+
import { c as C } from "../../chunks/runtime.js";
|
|
3
|
+
import { keyed as v } from "lit/directives/keyed.js";
|
|
4
|
+
import { LitElement as x, createEvent as A, safeClassMap as T, nothing as M } from "@arcgis/lumina";
|
|
5
|
+
import { html as d, svg as K } from "lit";
|
|
6
|
+
import { s as N } from "../../chunks/portal-account-switcher.js";
|
|
7
|
+
import { g as E, a as H, l as P, u as W } from "../../chunks/user.js";
|
|
8
8
|
import f from "@arcgis/core/identity/IdentityManager.js";
|
|
9
|
-
import { t as
|
|
10
|
-
import { u as
|
|
11
|
-
import { m as
|
|
12
|
-
import { substitute as
|
|
13
|
-
import { g as
|
|
14
|
-
const
|
|
15
|
-
function
|
|
16
|
-
const n = window.screenLeft ?? 0, i = window.screenTop ?? 0, a = window.innerWidth || document.documentElement.clientWidth || window.screen.width, o = window.innerHeight || document.documentElement.clientHeight || window.screen.height, c = a / 2 - s / 2 + n,
|
|
17
|
-
return
|
|
9
|
+
import { t as B } from "../../chunks/functionalities.js";
|
|
10
|
+
import { u as R } from "../../chunks/useT9n.js";
|
|
11
|
+
import { m as J } from "../../chunks/icons.js";
|
|
12
|
+
import { substitute as k } from "@arcgis/core/intl.js";
|
|
13
|
+
import { g as D } from "../../chunks/services.js";
|
|
14
|
+
const S = 1260 * 1e3, j = 2500;
|
|
15
|
+
function _(r, e = "_blank", s = 582, t = 670) {
|
|
16
|
+
const n = window.screenLeft ?? 0, i = window.screenTop ?? 0, a = window.innerWidth || document.documentElement.clientWidth || window.screen.width, o = window.innerHeight || document.documentElement.clientHeight || window.screen.height, c = a / 2 - s / 2 + n, l = o / 2 - t / 2 + i, u = window.open(r, e, `scrollbars=no, width=${s}, height=${t}, top=${l}, left=${c}`);
|
|
17
|
+
return u?.focus(), u;
|
|
18
18
|
}
|
|
19
|
-
function
|
|
20
|
-
const e = f.findOAuthInfo(r.url), { locale: s = "en", expiration: t =
|
|
19
|
+
function q(r) {
|
|
20
|
+
const e = f.findOAuthInfo(r.url), { locale: s = "en", expiration: t = S } = e ?? {}, n = new URLSearchParams({
|
|
21
21
|
locale: s,
|
|
22
22
|
// Linking accounts ALWAYS uses the "arcgisonline" client id
|
|
23
23
|
client_id: "arcgisonline",
|
|
@@ -31,9 +31,9 @@ function D(r) {
|
|
|
31
31
|
redirect_uri: `https://${r.portalHostname}/home/link_account_callback.html`,
|
|
32
32
|
state: JSON.stringify({ useMessage: !0 })
|
|
33
33
|
}), i = `https://${r.portalHostname}/sharing/oauth2/authorize?${n.toString()}`;
|
|
34
|
-
|
|
34
|
+
_(i);
|
|
35
35
|
}
|
|
36
|
-
function
|
|
36
|
+
function $(r) {
|
|
37
37
|
const {
|
|
38
38
|
config: e,
|
|
39
39
|
token: s,
|
|
@@ -45,7 +45,7 @@ function A(r) {
|
|
|
45
45
|
client_id: t,
|
|
46
46
|
...s && { token: s },
|
|
47
47
|
parent: window.location.origin,
|
|
48
|
-
redirect_uri: `${e.baseUrl}
|
|
48
|
+
redirect_uri: `${e.baseUrl}/check_sign_in_status.html`,
|
|
49
49
|
state: JSON.stringify({
|
|
50
50
|
signout: !0,
|
|
51
51
|
origin: window.location.origin,
|
|
@@ -55,8 +55,8 @@ function A(r) {
|
|
|
55
55
|
}), o = `${e.restBaseUrl}oauth2/signout?${a.toString()}`, c = document.createElement("iframe");
|
|
56
56
|
c.src = o, c.style.display = "none", document.body.appendChild(c);
|
|
57
57
|
}
|
|
58
|
-
function
|
|
59
|
-
const t =
|
|
58
|
+
function z(r, e, s) {
|
|
59
|
+
const t = h(r.orgUrlKey, e), n = f.findOAuthInfo(t), { appId: i, locale: a = "en", expiration: o = S } = n ?? {}, c = y(r.provider), l = new URLSearchParams({
|
|
60
60
|
locale: a,
|
|
61
61
|
client_id: s ?? i ?? "arcgisonline",
|
|
62
62
|
response_type: "token",
|
|
@@ -72,10 +72,10 @@ function j(r, e, s) {
|
|
|
72
72
|
portalUrl: t,
|
|
73
73
|
origin: window.location.origin
|
|
74
74
|
})
|
|
75
|
-
}),
|
|
76
|
-
|
|
75
|
+
}), u = `${b(r, e)}?${l.toString()}`;
|
|
76
|
+
_(u);
|
|
77
77
|
}
|
|
78
|
-
function
|
|
78
|
+
function F({
|
|
79
79
|
accounts: r,
|
|
80
80
|
clientId: e = "arcgisonline",
|
|
81
81
|
usersToFilter: s = [],
|
|
@@ -90,32 +90,33 @@ function q({
|
|
|
90
90
|
return i[a.username] = o, (s.includes(a.username) || s.includes(a.username.toLowerCase()) || t === "org" && a.orgUrlKey || e === "esriapps" && a.userType !== "both") && (o.allowed = !1), i;
|
|
91
91
|
}, n), n;
|
|
92
92
|
}
|
|
93
|
-
function
|
|
93
|
+
function G({
|
|
94
94
|
account: r,
|
|
95
95
|
credential: e,
|
|
96
|
-
|
|
97
|
-
portal: t
|
|
96
|
+
clientId: s,
|
|
97
|
+
portal: t,
|
|
98
|
+
redirectUri: n
|
|
98
99
|
}) {
|
|
99
|
-
const
|
|
100
|
+
const i = y(r.provider), a = b(r, t), o = n || L(r, t), c = new URLSearchParams({
|
|
100
101
|
client_id: s,
|
|
101
|
-
redirect_uri:
|
|
102
|
+
redirect_uri: o,
|
|
102
103
|
parent: window.location.origin,
|
|
103
104
|
response_type: "token",
|
|
104
105
|
force_login: "false",
|
|
105
106
|
...e.userId && { prepopulatedusername: e.userId },
|
|
106
|
-
...
|
|
107
|
-
expiration: `${(e?.expires ?? Date.now() +
|
|
107
|
+
...i === "social" && { socialLoginProviderName: r.provider },
|
|
108
|
+
expiration: `${(e?.expires ?? Date.now() + S) - Date.now()}`
|
|
108
109
|
});
|
|
109
|
-
return `${
|
|
110
|
+
return `${a}?${c.toString()}`;
|
|
110
111
|
}
|
|
111
|
-
function
|
|
112
|
-
return
|
|
112
|
+
function y(r) {
|
|
113
|
+
return Q(r) ? "social" : r === "enterprise" ? "enterprise" : r.includes("oidc") ? "oidc" : "default";
|
|
113
114
|
}
|
|
114
|
-
function
|
|
115
|
+
function Q(r) {
|
|
115
116
|
return ["apple", "facebook", "github", "google"].includes(r);
|
|
116
117
|
}
|
|
117
|
-
function
|
|
118
|
-
const s =
|
|
118
|
+
function b(r, e) {
|
|
119
|
+
const s = h(r.orgUrlKey, e).toLowerCase(), t = y(r.provider);
|
|
119
120
|
let n = "";
|
|
120
121
|
switch (t) {
|
|
121
122
|
case "social":
|
|
@@ -130,43 +131,43 @@ function y(r, e) {
|
|
|
130
131
|
}
|
|
131
132
|
return `${s}/sharing/rest/oauth2/${n}authorize`;
|
|
132
133
|
}
|
|
133
|
-
function
|
|
134
|
+
function h(r, e) {
|
|
134
135
|
return r?.startsWith("https://") ? r : r && e.customBaseUrl ? `https://${r}.${e.customBaseUrl}` : `https://${e.portalHostname}`;
|
|
135
136
|
}
|
|
136
|
-
function
|
|
137
|
-
return `${
|
|
137
|
+
function L(r, e) {
|
|
138
|
+
return `${h(r.orgUrlKey, e)}/home/accountswitcher-callback.html`;
|
|
138
139
|
}
|
|
139
|
-
function
|
|
140
|
-
return f.findCredential(
|
|
140
|
+
function V(r, e) {
|
|
141
|
+
return f.findCredential(h(r.orgUrlKey, e), r.username);
|
|
141
142
|
}
|
|
142
|
-
function
|
|
143
|
-
const s =
|
|
143
|
+
function X(r, e) {
|
|
144
|
+
const s = V(r, e);
|
|
144
145
|
if (s)
|
|
145
146
|
return s;
|
|
146
|
-
const t =
|
|
147
|
+
const t = h(r.orgUrlKey, e), n = `${t}/home/check_sign_in_status.html#state=${JSON.stringify({
|
|
147
148
|
origin: window.location.origin,
|
|
148
149
|
server: t,
|
|
149
150
|
orgKey: t
|
|
150
151
|
})}`;
|
|
151
|
-
|
|
152
|
+
Y(n, `iframe__for-${t}`);
|
|
152
153
|
}
|
|
153
|
-
function
|
|
154
|
+
function Y(r, e) {
|
|
154
155
|
const s = document.createElement("iframe");
|
|
155
156
|
s.src = r, s.id = e, s.style.display = "none", document.body.appendChild(s);
|
|
156
157
|
}
|
|
157
|
-
const
|
|
158
|
-
class
|
|
158
|
+
const U = 100;
|
|
159
|
+
class Z extends x {
|
|
159
160
|
constructor() {
|
|
160
|
-
super(), this.messages =
|
|
161
|
+
super(), this.messages = R({ blocking: !0 }), this.targetUser = "", this.targetToken = "", this.accountAccess = {}, this.remainingSignouts = 0, this.signoutHandle = 0, this.linkedAccounts = [], this.loading = !1, this.signedInStatus = {}, this.showAssociatedAccountsWarning = !1, this.signedInAccounts = [], this.clientId = "arcgisonline", this.signout = !1, this.signoutOptions = {
|
|
161
162
|
redirectToClientUri: !1,
|
|
162
163
|
displaySignoutComplete: !1
|
|
163
|
-
}, this.arcgisAccountSwitch =
|
|
164
|
+
}, this.arcgisAccountSwitch = A(), this.arcgisClose = A(), this.arcgisSignoutComplete = A(), this.listenOn(window, "message", this.handleMessageEvent);
|
|
164
165
|
}
|
|
165
166
|
static {
|
|
166
|
-
this.properties = { linkedAccounts: 16, userAccounts: 16, user: 16, credential: 16, alertOptions: 16, loading: 16, signedInStatus: 16, showAssociatedAccountsWarning: 16, signedInAccounts: 16, portal: 0, clientId: 1, signout: 5, signoutOptions: 0 };
|
|
167
|
+
this.properties = { linkedAccounts: 16, userAccounts: 16, user: 16, credential: 16, alertOptions: 16, loading: 16, signedInStatus: 16, showAssociatedAccountsWarning: 16, signedInAccounts: 16, portal: 0, clientId: 1, redirectUri: 1, signout: 5, signoutOptions: 0 };
|
|
167
168
|
}
|
|
168
169
|
static {
|
|
169
|
-
this.styles =
|
|
170
|
+
this.styles = N;
|
|
170
171
|
}
|
|
171
172
|
willUpdate(e) {
|
|
172
173
|
if (e.has("portal") && (this.user = this.portal?.user), (e.has("portal") || e.has("user")) && this.portal && this.user) {
|
|
@@ -175,13 +176,21 @@ class X extends C {
|
|
|
175
176
|
}
|
|
176
177
|
if (e.has("linkedAccounts") || e.has("signedInStatus")) {
|
|
177
178
|
if (this.signout) {
|
|
178
|
-
const { signedInStatus: s, linkedAccounts: t, portal: n, signoutOptions: i, clientId: a } = this,
|
|
179
|
-
this.remainingSignouts =
|
|
180
|
-
const
|
|
181
|
-
let { displaySignoutComplete:
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
179
|
+
const { signedInStatus: s, linkedAccounts: t, portal: n, signoutOptions: i, clientId: a, user: o } = this, c = Object.keys(s).filter((m) => s[m] !== null).map((m) => t.find((I) => I.username === m));
|
|
180
|
+
this.remainingSignouts = c.length + 1;
|
|
181
|
+
const l = h(n.urlKey ?? "", n), u = `${l}/sharing/rest`;
|
|
182
|
+
let { displaySignoutComplete: g = !0, redirectToClientUri: p = !0 } = i;
|
|
183
|
+
c.length > 0 && (g = !1, p = !1), this.loading = !0;
|
|
184
|
+
const w = f.findCredential(l, o?.id || o?.username);
|
|
185
|
+
$({
|
|
186
|
+
displaySignoutComplete: g,
|
|
187
|
+
redirectToClientUri: p,
|
|
188
|
+
clientId: a,
|
|
189
|
+
config: { baseUrl: l, restBaseUrl: u },
|
|
190
|
+
token: w?.token
|
|
191
|
+
}), this.signoutHandle = window.setTimeout(() => {
|
|
192
|
+
this.remainingSignouts -= 1, this.finishSignout({ accountOrigin: l, redirectToClientUri: p, displaySignoutComplete: g });
|
|
193
|
+
}, j);
|
|
185
194
|
}
|
|
186
195
|
return;
|
|
187
196
|
}
|
|
@@ -229,24 +238,24 @@ class X extends C {
|
|
|
229
238
|
return;
|
|
230
239
|
}
|
|
231
240
|
if (i === "success") {
|
|
232
|
-
const { portal:
|
|
233
|
-
|
|
234
|
-
const
|
|
241
|
+
const { portal: l, user: u, redirectUri: g } = this, p = this.linkedAccounts.find((O) => O.username === a.user);
|
|
242
|
+
p?.orgUrlKey === this.portal.urlKey && f.findCredential(`https://${l.portalHostname}`, u?.username)?.destroy();
|
|
243
|
+
const w = {
|
|
235
244
|
server: a.portalUrl,
|
|
236
245
|
userId: a.user,
|
|
237
246
|
token: o,
|
|
238
247
|
expires: Number(e.data.expires_in) + Date.now(),
|
|
239
248
|
ssl: c === void 0 || c !== "false"
|
|
240
249
|
};
|
|
241
|
-
f.registerToken(
|
|
242
|
-
const
|
|
243
|
-
account:
|
|
244
|
-
credential:
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
250
|
+
f.registerToken(w);
|
|
251
|
+
const m = G({
|
|
252
|
+
account: p,
|
|
253
|
+
credential: w,
|
|
254
|
+
clientId: t,
|
|
255
|
+
portal: l,
|
|
256
|
+
redirectUri: g
|
|
248
257
|
});
|
|
249
|
-
window.self !== window.top ? window.top?.postMessage({ type: "navigate", url:
|
|
258
|
+
window.self !== window.top ? window.top?.postMessage({ type: "navigate", url: m }) : window.location.href = m;
|
|
250
259
|
}
|
|
251
260
|
}
|
|
252
261
|
handleCheckSignInStatusMessage(e) {
|
|
@@ -265,13 +274,13 @@ class X extends C {
|
|
|
265
274
|
this.showAlert("danger", c.errors.selfLink);
|
|
266
275
|
return;
|
|
267
276
|
}
|
|
268
|
-
if (o.find((
|
|
269
|
-
this.showAlert("danger",
|
|
277
|
+
if (o.find((u) => u.username === t)) {
|
|
278
|
+
this.showAlert("danger", k(c.errors.alreadyLinked, { username: t }));
|
|
270
279
|
return;
|
|
271
280
|
}
|
|
272
|
-
const
|
|
273
|
-
if (
|
|
274
|
-
this.userAccounts =
|
|
281
|
+
const l = await E(i, t, n);
|
|
282
|
+
if (l?.length) {
|
|
283
|
+
this.userAccounts = l, this.targetUser = t ?? "", this.targetToken = n ?? "", this.showAssociatedAccountsWarning = !0;
|
|
275
284
|
return;
|
|
276
285
|
}
|
|
277
286
|
this.linkAccount(t, n);
|
|
@@ -285,16 +294,16 @@ class X extends C {
|
|
|
285
294
|
const { portal: t, linkedAccounts: n, targetUser: i, clientId: a } = this, o = n.find((p) => p.username === i);
|
|
286
295
|
if (!o)
|
|
287
296
|
return;
|
|
288
|
-
const c =
|
|
297
|
+
const c = L(o, t), l = h(o.orgUrlKey, t), u = new URLSearchParams({
|
|
289
298
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
290
299
|
response_type: "token",
|
|
291
300
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
292
301
|
client_id: a,
|
|
293
302
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
294
303
|
redirect_uri: c,
|
|
295
|
-
state: JSON.stringify({ user: o.username, portalUrl:
|
|
296
|
-
}),
|
|
297
|
-
window.opener ? (window.opener.location.href =
|
|
304
|
+
state: JSON.stringify({ user: o.username, portalUrl: l })
|
|
305
|
+
}), g = `${b(o, t)}?${u.toString()}`;
|
|
306
|
+
window.opener ? (window.opener.location.href = g, window.close()) : window.location.href = g;
|
|
298
307
|
}
|
|
299
308
|
}
|
|
300
309
|
}
|
|
@@ -306,41 +315,41 @@ class X extends C {
|
|
|
306
315
|
this.linkedAccounts = [], this.loading = !1;
|
|
307
316
|
return;
|
|
308
317
|
}
|
|
309
|
-
this.linkedAccounts = await
|
|
318
|
+
this.linkedAccounts = await H(this.portal, this.user), this.linkedAccounts.length && (this.signedInStatus = this.linkedAccounts.filter((e) => e.orgUrlKey !== this.portal.urlKey).reduce((e, s) => (e[s.username] = X(s, this.portal) ?? null, e), {}), this.accountAccess = F({ accounts: this.linkedAccounts, clientId: this.clientId })), this.loading = !1;
|
|
310
319
|
}
|
|
311
320
|
async linkAccount(e, s) {
|
|
312
321
|
const { portal: t, user: n } = this;
|
|
313
322
|
if (!t || !n)
|
|
314
323
|
return;
|
|
315
|
-
const i = await
|
|
324
|
+
const i = await P({ portal: t, user: n, targetUser: e, targetToken: s }), { messages: a } = this;
|
|
316
325
|
if (i.error) {
|
|
317
|
-
this.showAlert("danger",
|
|
326
|
+
this.showAlert("danger", k(a.errors.linkAccount, { username: e })), this.targetUser = "", this.userAccounts = [];
|
|
318
327
|
return;
|
|
319
328
|
}
|
|
320
329
|
const o = this.userAccounts?.length ? a.success.linkAccountMultiple : a.success.linkAccount;
|
|
321
|
-
this.showAlert("success",
|
|
330
|
+
this.showAlert("success", k(o, { username: e })), this.targetUser = "", this.userAccounts = [], await B(350), this.findLinkedUsers();
|
|
322
331
|
}
|
|
323
332
|
async unlinkAccount(e) {
|
|
324
333
|
if (!this.portal || !this.user)
|
|
325
334
|
return;
|
|
326
|
-
const { messages: s, portal: t, user: n } = this, { success: i } = await
|
|
327
|
-
i ? this.showAlert("success",
|
|
335
|
+
const { messages: s, portal: t, user: n } = this, { success: i } = await W({ portal: t, user: n, linkedUsername: e.username });
|
|
336
|
+
i ? this.showAlert("success", k(s.success.unlinkAccount, { username: e.username })) : this.showAlert("danger", k(s.errors.unlinkAccount, { username: e.username })), await this.findLinkedUsers();
|
|
328
337
|
}
|
|
329
338
|
startAccountLink() {
|
|
330
|
-
|
|
339
|
+
q(this.portal);
|
|
331
340
|
}
|
|
332
341
|
switchAccount(e) {
|
|
333
342
|
const { portal: s, user: t, clientId: n } = this;
|
|
334
343
|
if (!s || !t || !e)
|
|
335
344
|
return;
|
|
336
|
-
const i =
|
|
337
|
-
a &&
|
|
345
|
+
const i = h(t.sourceJSON.orgUrlKey ?? "", s), a = f.findCredential(i, t.id || t.username);
|
|
346
|
+
a && $({ config: { baseUrl: i, restBaseUrl: `${i}/sharing/rest` }, token: a?.token, clientId: n }), z(e, s, n);
|
|
338
347
|
}
|
|
339
348
|
signoutAll(e) {
|
|
340
349
|
const { portal: s, signedInStatus: t, clientId: n } = this;
|
|
341
350
|
e.forEach((i) => {
|
|
342
|
-
const a =
|
|
343
|
-
|
|
351
|
+
const a = h(i.orgUrlKey, s), o = `${a}/sharing/rest`, c = t[i.username];
|
|
352
|
+
$({ config: { baseUrl: a, restBaseUrl: o }, token: c?.token, clientId: n });
|
|
344
353
|
});
|
|
345
354
|
}
|
|
346
355
|
showAlert(e, s, t) {
|
|
@@ -355,7 +364,7 @@ class X extends C {
|
|
|
355
364
|
this.alertOptions = {
|
|
356
365
|
kind: "danger",
|
|
357
366
|
icon: "exclamation-mark-triangle-f",
|
|
358
|
-
title: s.
|
|
367
|
+
title: s.unlinkAccount,
|
|
359
368
|
message: s.unlinkWarning,
|
|
360
369
|
actions: [
|
|
361
370
|
{
|
|
@@ -382,20 +391,20 @@ class X extends C {
|
|
|
382
391
|
}
|
|
383
392
|
return d`<calcite-dialog .heading=${i.switchAccounts} heading-level=2 scale=m width=s open modal .loading=${this.loading} outside-close-disabled @calciteDialogClose=${() => {
|
|
384
393
|
this.arcgisClose.emit();
|
|
385
|
-
}}><calcite-block .heading=${i.currentAccount} heading-level=3 .description=${i.signedInAs} expanded class="current-account-block" tabindex=-1>${
|
|
394
|
+
}}><calcite-block .heading=${i.currentAccount} heading-level=3 .description=${i.signedInAs} expanded class="current-account-block" tabindex=-1>${v(t.id ?? t.username, d`<calcite-block class="current-account" .label=${n.urlKey ? `${t.username}, ${n.name}` : t.username} heading-level=4 .heading=${t.username} .description=${n.urlKey ? `${t.fullName ?? t.username}, ${n.name}` : t.fullName ?? t.username}><calcite-avatar slot=content-start inert .fullName=${t.fullName ?? void 0} .username=${t.username} .userId=${t.id} .thumbnail=${D(t, n) ?? void 0}></calcite-avatar></calcite-block>`)}</calcite-block>${e.length > 0 ? d`<calcite-block .heading=${i.linkedAccounts} heading-level=3 .description=${i.linkedAccountActions} expanded class="linked-accounts-block"><calcite-button slot=content-end icon-start=plus class="link-account-button" @click=${() => this.startAccountLink()} .disabled=${e.length >= U}>${i.addAccount}</calcite-button><arcgis-portal-account-switcher-list .portal=${n} .linkedAccounts=${e} .accountAccess=${s} .signedInUsers=${Object.keys(this.signedInStatus).filter((o) => this.signedInStatus[o] !== null)} interactive @arcgisAccountSwitch=${(o) => {
|
|
386
395
|
this.switchAccount(o.detail.account);
|
|
387
396
|
}} @arcgisAccountUnlink=${(o) => {
|
|
388
397
|
this.showUnlinkConfirmation(o.detail.account);
|
|
389
|
-
}}></arcgis-portal-account-switcher-list></calcite-block>` : d`<calcite-block .heading=${i.linkedAccounts} heading-level=3 expanded class="empty-accounts-block"><div class="empty-accounts-info"><svg class="empty-accounts-icon" width=48 height=48 viewBox="0 0 48 48" fill=none xmlns=http://www.w3.org/2000/svg>${
|
|
398
|
+
}}></arcgis-portal-account-switcher-list></calcite-block>` : d`<calcite-block .heading=${i.linkedAccounts} heading-level=3 expanded class="empty-accounts-block"><div class="empty-accounts-info"><svg class="empty-accounts-icon" width=48 height=48 viewBox="0 0 48 48" fill=none xmlns=http://www.w3.org/2000/svg>${K`<path d=${J.couple ?? M} fill=currentColor />`}</svg><h4>${i.emptyListTitle}</h4><p>${i.emptyList}</p><calcite-button icon-start=plus class="link-account-button" @click=${() => this.startAccountLink()} .disabled=${e.length >= U}>${i.linkAccount}</calcite-button></div></calcite-block>`}<calcite-notice kind=info .open=${e.length >= U}><div slot=message>${i.maxAccounts}</div></calcite-notice><calcite-alert .label=${i.alertLabel} slot=alerts .autoClose=${this.alertOptions?.kind !== "danger"} auto-close-duration=fast placement=bottom .kind=${this.alertOptions?.kind} .icon=${this.alertOptions?.icon} .open=${!!this.alertOptions} @calciteAlertClose=${() => {
|
|
390
399
|
this.alertOptions = void 0;
|
|
391
|
-
}}>${this.alertOptions?.title && d`<h4 slot=title class="alert-title">${this.alertOptions.title}</h4>` || ""}${this.alertOptions?.message && d`<p slot=message class=${
|
|
400
|
+
}}>${this.alertOptions?.title && d`<h4 slot=title class="alert-title">${this.alertOptions.title}</h4>` || ""}${this.alertOptions?.message && d`<p slot=message class=${T({ "alert-message": !0, "short-message": !!this.alertOptions?.actions?.length })}>${this.alertOptions.message}</p>` || ""}${this.alertOptions?.actions?.map((o) => d`<calcite-button slot=actions-end .kind=${o.kind} .appearance=${o.appearance} @click=${o.clickHandler}>${o.text}</calcite-button>`)}</calcite-alert></calcite-dialog>${this.showAssociatedAccountsWarning && d`<arcgis-portal-account-switcher-accounts .portal=${n} .targetUser=${this.targetUser} .accounts=${this.userAccounts ?? []} @arcgisLinkAll=${() => {
|
|
392
401
|
this.linkAccount(this.targetUser, this.targetToken);
|
|
393
402
|
}} @arcgisCloseDialog=${() => {
|
|
394
403
|
this.showAssociatedAccountsWarning = !1;
|
|
395
404
|
}}></arcgis-portal-account-switcher-accounts>` || ""}`;
|
|
396
405
|
}
|
|
397
406
|
}
|
|
398
|
-
|
|
407
|
+
C("arcgis-portal-account-switcher", Z);
|
|
399
408
|
export {
|
|
400
|
-
|
|
409
|
+
Z as ArcgisPortalAccountSwitcher
|
|
401
410
|
};
|
|
@@ -39,7 +39,6 @@ export abstract class ArcgisPortalAccountSwitcherAccounts extends LitElement {
|
|
|
39
39
|
userDisabled: string;
|
|
40
40
|
userNotAllowed: string;
|
|
41
41
|
unlink: string;
|
|
42
|
-
unlinkTitle: string;
|
|
43
42
|
unlinkWarning: string;
|
|
44
43
|
linkTitle: string;
|
|
45
44
|
linkWarning: string;
|
|
@@ -101,7 +100,6 @@ export abstract class ArcgisPortalAccountSwitcherAccounts extends LitElement {
|
|
|
101
100
|
userDisabled: string;
|
|
102
101
|
userNotAllowed: string;
|
|
103
102
|
unlink: string;
|
|
104
|
-
unlinkTitle: string;
|
|
105
103
|
unlinkWarning: string;
|
|
106
104
|
linkTitle: string;
|
|
107
105
|
linkWarning: string;
|
|
@@ -44,7 +44,6 @@ export abstract class ArcgisPortalAccountSwitcherList extends LitElement {
|
|
|
44
44
|
userDisabled: string;
|
|
45
45
|
userNotAllowed: string;
|
|
46
46
|
unlink: string;
|
|
47
|
-
unlinkTitle: string;
|
|
48
47
|
unlinkWarning: string;
|
|
49
48
|
linkTitle: string;
|
|
50
49
|
linkWarning: string;
|
|
@@ -106,7 +105,6 @@ export abstract class ArcgisPortalAccountSwitcherList extends LitElement {
|
|
|
106
105
|
userDisabled: string;
|
|
107
106
|
userNotAllowed: string;
|
|
108
107
|
unlink: string;
|
|
109
|
-
unlinkTitle: string;
|
|
110
108
|
unlinkWarning: string;
|
|
111
109
|
linkTitle: string;
|
|
112
110
|
linkWarning: string;
|
|
@@ -38,7 +38,6 @@ export abstract class ArcgisPortalAccountSwitcherSignout extends LitElement {
|
|
|
38
38
|
userDisabled: string;
|
|
39
39
|
userNotAllowed: string;
|
|
40
40
|
unlink: string;
|
|
41
|
-
unlinkTitle: string;
|
|
42
41
|
unlinkWarning: string;
|
|
43
42
|
linkTitle: string;
|
|
44
43
|
linkWarning: string;
|
|
@@ -100,7 +99,6 @@ export abstract class ArcgisPortalAccountSwitcherSignout extends LitElement {
|
|
|
100
99
|
userDisabled: string;
|
|
101
100
|
userNotAllowed: string;
|
|
102
101
|
unlink: string;
|
|
103
|
-
unlinkTitle: string;
|
|
104
102
|
unlinkWarning: string;
|
|
105
103
|
linkTitle: string;
|
|
106
104
|
linkWarning: string;
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
/// <reference path="../../index.d.ts" />
|
|
2
|
+
import type PortalItem from "@arcgis/core/portal/PortalItem.js";
|
|
3
|
+
import type Portal from "@arcgis/core/portal/Portal.js";
|
|
4
|
+
import type PortalUser from "@arcgis/core/portal/PortalUser.js";
|
|
5
|
+
import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
6
|
+
import type { DeleteItemResponse } from "./services.js";
|
|
7
|
+
import type { T9nMeta } from "@arcgis/lumina/controllers";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Displays a confirmation dialog for deleting portal items.
|
|
11
|
+
*
|
|
12
|
+
* @internal
|
|
13
|
+
*/
|
|
14
|
+
export abstract class ArcgisPortalDeleteItems extends LitElement {
|
|
15
|
+
/**
|
|
16
|
+
* Whether or not the delete items modal is open.
|
|
17
|
+
*
|
|
18
|
+
* @default true
|
|
19
|
+
*/
|
|
20
|
+
accessor active: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* If true, the selected items do not contain links to item details.
|
|
23
|
+
* Generally used when already on item details, or if it's already known
|
|
24
|
+
* that an item does not exist.
|
|
25
|
+
*
|
|
26
|
+
* @default false
|
|
27
|
+
*/
|
|
28
|
+
accessor disableLinks: boolean;
|
|
29
|
+
/** The portal items to delete. */
|
|
30
|
+
accessor items: PortalItem[];
|
|
31
|
+
/** @internal */
|
|
32
|
+
protected messages: {
|
|
33
|
+
deleteItem: string;
|
|
34
|
+
deleteItems: string;
|
|
35
|
+
delete: string;
|
|
36
|
+
cancel: string;
|
|
37
|
+
moreInfo: string;
|
|
38
|
+
bucketItems: string;
|
|
39
|
+
directlyUsedBy: string;
|
|
40
|
+
usedByOtherItems: {
|
|
41
|
+
single: string;
|
|
42
|
+
multiple: string;
|
|
43
|
+
unknown: string;
|
|
44
|
+
};
|
|
45
|
+
usedByPopover: string;
|
|
46
|
+
deleteDiscouraged: string;
|
|
47
|
+
learnMoreAboutDeletingSourceItems: string;
|
|
48
|
+
reviewRelatedItems: {
|
|
49
|
+
single: string;
|
|
50
|
+
multiple: string;
|
|
51
|
+
};
|
|
52
|
+
reviewItems: string;
|
|
53
|
+
reviewImpactedItems: string;
|
|
54
|
+
summary: {
|
|
55
|
+
willBeRecycled: string;
|
|
56
|
+
cannotDelete: string;
|
|
57
|
+
permanentlyDelete: string;
|
|
58
|
+
canBeRecovered: { single: string; };
|
|
59
|
+
permanentDelete: { notSupported: { single: string; }; };
|
|
60
|
+
protectedGroup: {
|
|
61
|
+
deleteProtectedDescription: string;
|
|
62
|
+
hasDependentItemsDescription: { singleOneDependentItem: string; };
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
areYouSure: { multiple: string; };
|
|
66
|
+
} & T9nMeta<{
|
|
67
|
+
deleteItem: string;
|
|
68
|
+
deleteItems: string;
|
|
69
|
+
delete: string;
|
|
70
|
+
cancel: string;
|
|
71
|
+
moreInfo: string;
|
|
72
|
+
bucketItems: string;
|
|
73
|
+
directlyUsedBy: string;
|
|
74
|
+
usedByOtherItems: {
|
|
75
|
+
single: string;
|
|
76
|
+
multiple: string;
|
|
77
|
+
unknown: string;
|
|
78
|
+
};
|
|
79
|
+
usedByPopover: string;
|
|
80
|
+
deleteDiscouraged: string;
|
|
81
|
+
learnMoreAboutDeletingSourceItems: string;
|
|
82
|
+
reviewRelatedItems: {
|
|
83
|
+
single: string;
|
|
84
|
+
multiple: string;
|
|
85
|
+
};
|
|
86
|
+
reviewItems: string;
|
|
87
|
+
reviewImpactedItems: string;
|
|
88
|
+
summary: {
|
|
89
|
+
willBeRecycled: string;
|
|
90
|
+
cannotDelete: string;
|
|
91
|
+
permanentlyDelete: string;
|
|
92
|
+
canBeRecovered: { single: string; };
|
|
93
|
+
permanentDelete: { notSupported: { single: string; }; };
|
|
94
|
+
protectedGroup: {
|
|
95
|
+
deleteProtectedDescription: string;
|
|
96
|
+
hasDependentItemsDescription: { singleOneDependentItem: string; };
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
areYouSure: { multiple: string; };
|
|
100
|
+
}>;
|
|
101
|
+
/** The portal instance. */
|
|
102
|
+
accessor portal: Portal;
|
|
103
|
+
/** The user performing deletion. */
|
|
104
|
+
accessor user: PortalUser | null | undefined;
|
|
105
|
+
/** Emitted when the user cancels the deletion. */
|
|
106
|
+
readonly arcgisCancel: import("@arcgis/lumina").TargetedEvent<this, void>;
|
|
107
|
+
/** Emitted when the user confirms the deletion. */
|
|
108
|
+
readonly arcgisConfirm: import("@arcgis/lumina").TargetedEvent<this, DeleteItemsPayload>;
|
|
109
|
+
/** Emitted when an error occurs during deletion. */
|
|
110
|
+
readonly arcgisError: import("@arcgis/lumina").TargetedEvent<this, DeleteItemsPayload>;
|
|
111
|
+
readonly "@eventTypes": {
|
|
112
|
+
arcgisCancel: ArcgisPortalDeleteItems["arcgisCancel"]["detail"];
|
|
113
|
+
arcgisConfirm: ArcgisPortalDeleteItems["arcgisConfirm"]["detail"];
|
|
114
|
+
arcgisError: ArcgisPortalDeleteItems["arcgisError"]["detail"];
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
/** @internal */
|
|
119
|
+
export interface DeleteItemsPayload {
|
|
120
|
+
deletedItems: DeleteItemResponse[] | null;
|
|
121
|
+
permanentlyDeletedItems: DeleteItemResponse[] | null;
|
|
122
|
+
/**
|
|
123
|
+
* Optional overrides for the number of items deleted.
|
|
124
|
+
* Needed if composite items are included for delete, because they are not part of the `/deleteItems` response
|
|
125
|
+
*/
|
|
126
|
+
deletedItemsCount?: number;
|
|
127
|
+
permanentlyDeletedItemsCount?: number;
|
|
128
|
+
}
|