@arcgis/portal-components 5.2.0-next.70 → 5.2.0-next.71
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/{WO5XWXPJ.js → 2C6GSZLF.js} +1 -1
- package/dist/cdn/{W7DWQ34O.js → 2IIE3YY2.js} +1 -1
- package/dist/cdn/3IA7YX3J.js +2 -0
- package/dist/cdn/{26OYXJSF.js → 66QLSGRO.js} +1 -1
- package/dist/cdn/{5KDFY5KE.js → A4AA5T6M.js} +1 -1
- package/dist/cdn/{XV3YTVJS.js → ABNBGV65.js} +1 -1
- package/dist/cdn/{PYMDLCLS.js → ADHQAGMF.js} +1 -1
- package/dist/cdn/{NIGUPMVS.js → AVMIEBYN.js} +1 -1
- package/dist/cdn/{WJORAGJA.js → B5OENWBU.js} +1 -1
- package/dist/cdn/{LUT4IGPP.js → EBYEZR4N.js} +1 -1
- package/dist/cdn/{NFGBWHVE.js → EDPNHNQ2.js} +1 -1
- package/dist/cdn/F3ODJVJC.js +2 -0
- package/dist/cdn/{MTAF2OG3.js → G4HKVJ53.js} +1 -1
- package/dist/cdn/{LVHP4FCZ.js → GRQL4XCF.js} +1 -1
- package/dist/cdn/{CSAR4TK7.js → N4PON7TR.js} +1 -1
- package/dist/cdn/{5655BW4U.js → P5PUXFZT.js} +1 -1
- package/dist/cdn/{TJMKZOE4.js → RPFWESQ4.js} +1 -1
- package/dist/cdn/{UC4LOAHI.js → RVCPNNVS.js} +1 -1
- package/dist/cdn/{G2KWSRCG.js → TGTT2CVD.js} +1 -1
- package/dist/cdn/{3BKTFFIT.js → UUGX7XW6.js} +1 -1
- package/dist/cdn/{QNA62UMC.js → V6VNED6L.js} +1 -1
- package/dist/cdn/{PMRO7G6N.js → V6ZHHCLD.js} +1 -1
- package/dist/cdn/{MLBPMZ3Q.js → YPRKDQA4.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/requests.js +7 -7
- package/dist/components/arcgis-portal-account-switcher/customElement.js +1 -1
- package/dist/components/arcgis-portal-account-switcher-list/customElement.js +1 -1
- package/dist/components/arcgis-portal-navigation/customElement.js +192 -195
- package/dist/components/arcgis-portal-navigation/index.js +1 -1
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/package.json +4 -4
- package/dist/cdn/6DXCDYO4.js +0 -2
- package/dist/cdn/DALGPO36.js +0 -2
package/dist/cdn/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{A as e,R as r}from"./6BUBZ7WC.js";import"./UZLQALHY.js";var a=e(r,{"arcgis-portal-account-switcher":[()=>import("./
|
|
2
|
+
import{A as e,R as r}from"./6BUBZ7WC.js";import"./UZLQALHY.js";var a=e(r,{"arcgis-portal-account-switcher":[()=>import("./P5PUXFZT.js"),"messages:,portal:"],"arcgis-portal-account-switcher-accounts":[()=>import("./IX2DKW34.js"),"accounts:,messages:,portal:,targetUser"],"arcgis-portal-account-switcher-list":[()=>import("./B5OENWBU.js"),"interactive,label,linkedAccounts:,messages:,portal:,signedInUsers:"],"arcgis-portal-ai-assistant":[()=>import("./2IIE3YY2.js"),"autoDestroyDisabled,config:,defaultClosed,disabledAgents:,navigationCapabilities:,navigationTargetMap:,portal:,t9n:,user:"],"arcgis-portal-ai-assistant-interrupt":[()=>import("./NDMJK6MD.js"),"_messages:,message,options:,type"],"arcgis-portal-browser":[()=>import("./7XINE67Y.js"),"_messages:,alwaysShowContent,alwaysShowPagination,alwaysShowSelection,api,formFactor,height,hideContentTop,hideFilters,hideTopBar,loading,panel,preview,rangeFormatter:,response:,searchTerm,selected:,showPreSearch,store:;scrollToTop"],"arcgis-portal-browser-actions":[()=>import("./XBK3SKPG.js"),"_messages:,actions:,selection:;restoreFocus"],"arcgis-portal-browser-filter-status":[()=>import("./XDVSCHDD.js"),"_messages:,browserWidth,componentWidth,filters:,hiddenFilterIds:"],"arcgis-portal-browser-pagination":[()=>import("./Y2XRSYBB.js"),"_messages:,num,start,store:,total;nextPage"],"arcgis-portal-browser-search":[()=>import("./4JYY326A.js"),"_messages:,allowClear,placeholder,store:,term;setFocus"],"arcgis-portal-browser-sort":[()=>import("./3CGDAKQD.js"),"_messages:,appearance,field,options:,order,showText,useDeleted"],"arcgis-portal-browser-top-bar":[()=>import("./FH2SJYYU.js"),"_messages:,filtersDisabled,store:"],"arcgis-portal-browser-view":[()=>import("./56LBNVWI.js"),"options:,store:,view,viewText"],"arcgis-portal-classification-banner":[()=>import("./N4PON7TR.js"),"autoDestroyDisabled,messages:,missingExistingClassification,portalItem:,validationErrors,variant;destroy"],"arcgis-portal-classification-config":[()=>import("./RVCPNNVS.js"),"autoDestroyDisabled,messages:,portalItem:,status,valid,values;destroy,resetForm,validateForm"],"arcgis-portal-classification-favorite":[()=>import("./GRQL4XCF.js"),"attributeExpressionResults:,classificationValue:,favoriteClassifications:,messages:,portalItem:,resetFavoriteClassification:,selectedFavoriteClassificationName,updateClassificationData:"],"arcgis-portal-classification-form-element":[()=>import("./GIV4XNVY.js"),"attribute:,attributeKey,isRequiredErrors:,messages:,renderingInfo:,value:"],"arcgis-portal-extent-picker":[()=>import("./LI7PX6XN.js"),"active,contentOnly,extentService,extentValue:,isArea,itemId,messages:,portal:;;getExtent"],"arcgis-portal-extent-picker-coord-field":[()=>import("./H2WZ3ZHI.js"),"errorMessage,inputId,label,max,min,relatedErrorMessage,validateRelated:,value;;checkRelatedField,isValid,setFocus"],"arcgis-portal-field-delete":[()=>import("./3VHKKQKD.js"),"config:,fieldNames:,layer:,mapView:,messages:,options:"],"arcgis-portal-group-badges":[()=>import("./5YULDF4I.js"),"_messages:,appearance,empty,group:,portal:,scale,showTooltips,width"],"arcgis-portal-group-browser":[()=>import("./RPFWESQ4.js"),"_browserMessages:,_messages:,alwaysShowSelection,cards:,fetch:,filters:,formFactor,hasIndoorsSpaces,height,hidePreviewBadges,hidePreviewFooter,loading,num,portal:,preflight:,preview,q,searchTerm,searchUser,selected:,selection,sort:,store:;refresh"],"arcgis-portal-group-browser-preview":[()=>import("./ADHQAGMF.js"),"currentResponse:,group:,hideBadges,hidePreviewFooter,messages:,portal:,previewFooterActionsSpaced,user:;setFocus"],"arcgis-portal-group-browser-preview-card":[()=>import("./WFBLVCZP.js"),"baseUrl,hideItemType,hideOwner,hideThumbnail,interactive,item:,link,newTab,portal:,showBadges,showDateUpdated,showOwnerPopup,showSummary,user:;restoreFocus"],"arcgis-portal-group-card":[()=>import("./WQGRTBPJ.js"),"disabled,group:,hideBadges,hideDateUpdated,hideOwner,hideViewableBy,indeterminate,link,linkHandler:,messages:,name,newTab,portal:,preview,previewed,selected,selection,showDateCreated,showSummary,user:,view;restoreFocus"],"arcgis-portal-group-thumbnail":[()=>import("./RMXAPW7B.js"),"group:,portal:,scale,tooltip"],"arcgis-portal-info-banner":[()=>import("./ZIHVOT5D.js"),"config:,position"],"arcgis-portal-item-actions":[()=>import("./7FER4S6E.js"),"actions:,item:,keyHandler:,label,messages:,portal:,previewText,showFavorite,showPreview,tabIndexOverride,user:;setFocus"],"arcgis-portal-item-badges":[()=>import("./UUGX7XW6.js"),"appearance,empty,item:,portal:,scale,showTooltips,useProduction,user:,width"],"arcgis-portal-item-badge":[()=>import("./YPRKDQA4.js"),"_messages:,appearance,badgeType,item:,portal:,scale,showTooltip,useProduction,user:,width"],"arcgis-portal-item-card":[()=>import("./Y6LXW5X5.js"),"actions:,disabled,disableSelection,hideActionsStart,item:,link,linkHandler:,messages:,name,newTab,portal:,preview,previewed,recycleBin,selected,selection,showAccess,showBadges,showBadgeTooltips,showDateUpdated,showFavorite,showFavoriteInActionsMenu,showItemType,showItemTypeHosted,showOwner,showSummary,showThumbnail,user:,userPopupZIndex,view;restoreFocus"],"arcgis-portal-item-favorite":[()=>import("./7X4JEFCG.js"),"iconOnly,item:,messages:,portal:,scale,showTooltip,user:,width;setFocus"],"arcgis-portal-item-type":[()=>import("./FLXTOBVV.js"),"ellipsis,hideIcon,hideText,item:,messages:,portal:,scale,serviceInfo:,showHosted,user:"],"arcgis-portal-mentionable-text-area":[()=>import("./EDPNHNQ2.js"),"disabled,maxLength,placeholder,popoverListLabel,popoverPlacement,portal:,readOnly,rows,scale,starters:,user:,value;closePopover,focusTextArea,selectItem"],"arcgis-portal-navigation":[()=>import("./3IA7YX3J.js"),"clientId,currentPathname,disableNotebookServer,disableTrackViewer,maxWidth,messages:,portal:,portalItem:,product,productHref,projectMenuIcon,projectMenuOptions:,projectMenuSaveIndicator,projectTitle,projectTitleSave:"],"arcgis-portal-replacement-item-redirect":[()=>import("./2C6GSZLF.js"),"itemId,messages:,portal:,user:;setFocus"],"arcgis-portal-user-avatar":[()=>import("./ABNBGV65.js"),"checkOnline,description,heading,hideAvatar,messages:,portal:,scale,showName,underline,user:,username,wrap"],"arcgis-portal-user-popup":[()=>import("./66QLSGRO.js"),"appearance,avatarAriaHidden,baseUrl,checkOnline,fullName,item:,messages:,portal:,scale,showAvatar,showName,showUsername,underline,user:,username,wrap,zIndex;openPopup,setFocus"],"arcgis-portal-voice-input":[()=>import("./BGQ633WP.js"),"language;clearText,startListening,stopListening"]});a({resourcesUrl:import.meta.url});var t=new CSSStyleSheet;t.replaceSync("@layer{:not([hydrated]):is(arcgis-portal-account-switcher,arcgis-portal-account-switcher-accounts,arcgis-portal-account-switcher-list,arcgis-portal-ai-assistant,arcgis-portal-ai-assistant-interrupt,arcgis-portal-browser,arcgis-portal-browser-actions,arcgis-portal-browser-filter-status,arcgis-portal-browser-pagination,arcgis-portal-browser-search,arcgis-portal-browser-sort,arcgis-portal-browser-top-bar,arcgis-portal-browser-view,arcgis-portal-classification-banner,arcgis-portal-classification-config,arcgis-portal-classification-favorite,arcgis-portal-classification-form-element,arcgis-portal-extent-picker,arcgis-portal-field-delete,arcgis-portal-group-badges,arcgis-portal-group-browser,arcgis-portal-group-browser-preview,arcgis-portal-group-browser-preview-card,arcgis-portal-group-card,arcgis-portal-group-thumbnail,arcgis-portal-info-banner,arcgis-portal-item-actions,arcgis-portal-item-badges,arcgis-portal-item-badge,arcgis-portal-item-card,arcgis-portal-item-favorite,arcgis-portal-item-type,arcgis-portal-mentionable-text-area,arcgis-portal-navigation,arcgis-portal-replacement-item-redirect,arcgis-portal-user-avatar,arcgis-portal-user-popup,arcgis-portal-voice-input){visibility:hidden}}");document.adoptedStyleSheets=[...document.adoptedStyleSheets,t];window.$arcgis||Object.defineProperty(window,"$arcgis",{configurable:!1,enumerable:!0,writable:!1,value:{}}),((a,r)=>{a.t=(c,...x)=>Promise.all(x.map(x=>x.then?x:(!a?.forceESM&&a?.import||(x=>import(x+".js").then(m=>m.default??m)))("@arcgis/core/"+x))).then(c);r.p=a.t(([m])=>{r.t=m.trackAccess;r.o=m.createObservable;r.c=m.createTrackingTarget;r.r=m.runTracked},"applications/Components/reactiveUtils")})($arcgis,r)
|
package/dist/chunks/requests.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import o from "@arcgis/core/request.js";
|
|
3
|
-
import { once as
|
|
3
|
+
import { once as h } from "@arcgis/core/core/reactiveUtils.js";
|
|
4
4
|
async function g(r, s) {
|
|
5
5
|
const t = `${r}/portals/self/classification/classificationSchema`, c = {};
|
|
6
6
|
try {
|
|
@@ -28,7 +28,7 @@ async function x(r) {
|
|
|
28
28
|
if (!r)
|
|
29
29
|
return;
|
|
30
30
|
r.loaded || await r.load();
|
|
31
|
-
const s = r.portal.user ?? await
|
|
31
|
+
const s = r.portal.user ?? await h(() => r?.portal.user);
|
|
32
32
|
if (!s)
|
|
33
33
|
return;
|
|
34
34
|
const t = `${r.portal.restUrl}/community/users/${s.username}/resources/classification_favorites`, c = {};
|
|
@@ -44,7 +44,7 @@ async function $(r, s) {
|
|
|
44
44
|
if (!r)
|
|
45
45
|
return;
|
|
46
46
|
r.loaded || await r.load();
|
|
47
|
-
const t = r.portal.user ?? await
|
|
47
|
+
const t = r.portal.user ?? await h(() => r?.portal.user);
|
|
48
48
|
if (!t)
|
|
49
49
|
return;
|
|
50
50
|
const c = `${r.portal.restUrl}/community/users/${t.username}/addResource`, a = {}, e = {
|
|
@@ -68,7 +68,7 @@ function q(r) {
|
|
|
68
68
|
}
|
|
69
69
|
};
|
|
70
70
|
}
|
|
71
|
-
async function
|
|
71
|
+
async function y(r, s) {
|
|
72
72
|
s = s || {}, s.query = s.query || {}, s.query instanceof URLSearchParams || (s.query = { f: "json", ...s.query || {} });
|
|
73
73
|
try {
|
|
74
74
|
return { result: (await o(r, s)).data };
|
|
@@ -87,13 +87,13 @@ async function C(r, s = {}) {
|
|
|
87
87
|
async function U(r, s, t = "results", c = !1) {
|
|
88
88
|
let e = [], n;
|
|
89
89
|
s.start = 1, s.num || (s.num = 100);
|
|
90
|
-
const { result: u } = await
|
|
90
|
+
const { result: u } = await y(r, { query: s }), d = u?.[t];
|
|
91
91
|
if (!d)
|
|
92
92
|
return [];
|
|
93
93
|
e = [...e, ...d];
|
|
94
94
|
const m = u.nextStart, v = u.total - e.length, w = Math.ceil(v / s.num), l = [];
|
|
95
95
|
for (n = 0; n < w; n++)
|
|
96
|
-
s.start = m + n * s.num, l.push(
|
|
96
|
+
s.start = m + n * s.num, l.push(y(r, { query: { ...s } }));
|
|
97
97
|
if (c) {
|
|
98
98
|
for (const f of l) {
|
|
99
99
|
const i = await f;
|
|
@@ -107,7 +107,7 @@ async function U(r, s, t = "results", c = !1) {
|
|
|
107
107
|
}), e;
|
|
108
108
|
}
|
|
109
109
|
export {
|
|
110
|
-
|
|
110
|
+
y as a,
|
|
111
111
|
x as b,
|
|
112
112
|
g as c,
|
|
113
113
|
U as f,
|
|
@@ -299,7 +299,7 @@ class z extends _ {
|
|
|
299
299
|
return;
|
|
300
300
|
}
|
|
301
301
|
const a = this.userAccounts?.length ? o.success.linkAccountMultiple : o.success.linkAccount;
|
|
302
|
-
this.showAlert("success", g(a, { username: t })), this.targetUser = "", this.userAccounts = [], await E(
|
|
302
|
+
this.showAlert("success", g(a, { username: t })), this.targetUser = "", this.userAccounts = [], await E(350), this.findLinkedUsers();
|
|
303
303
|
}
|
|
304
304
|
async unlinkAccount(t) {
|
|
305
305
|
if (!this.portal || !this.user)
|
|
@@ -31,7 +31,7 @@ class $ extends v {
|
|
|
31
31
|
}
|
|
32
32
|
render() {
|
|
33
33
|
const { linkedAccounts: l, messages: t, signedInUsers: a, label: o, interactive: c, portal: p } = this;
|
|
34
|
-
return s`<calcite-list .label=${o} selection-mode=none class="linked-accounts-list" .interactionMode=${c ? "interactive" : "static"}>${m(l, (e) => e.username, (e) => s`<calcite-list-item .label=${e.username} .description=${e.orgName} .value=${e.username} @click=${() => {
|
|
34
|
+
return s`<calcite-list .label=${o} selection-mode=none class="linked-accounts-list" .interactionMode=${c ? "interactive" : "static"}>${m(l, (e) => e.id ?? e.username, (e) => s`<calcite-list-item .label=${e.username} .description=${e.orgName} .value=${e.username} @click=${() => {
|
|
35
35
|
c && this.arcgisAccountSwitch.emit({ account: e });
|
|
36
36
|
}}><arcgis-portal-user-avatar .user=${e} .portal=${p} slot=content-start></arcgis-portal-user-avatar>${w.includes(e.provider) && s`<div slot=content-start class="social-icon-chip">${f({ provider: e.provider })}</div>` || ""}${a.includes(e.username) && s`<calcite-chip appearance=outline scale=s .label=${d(t.linkedAccountSignedIn, {
|
|
37
37
|
username: e.username,
|