@arcgis/portal-components 5.2.0-next.57 → 5.2.0-next.59
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/2H7Y7RJV.js +2 -0
- package/dist/cdn/32FQ7WJE.js +2 -0
- package/dist/cdn/3Q3EP3BN.js +2 -0
- package/dist/cdn/3VDVNPZ7.js +2 -0
- package/dist/cdn/3WH3ENZP.js +2 -0
- package/dist/cdn/4QA4AYHJ.js +3 -0
- package/dist/cdn/{LDCSQHZX.js → 55FL7WQV.js} +1 -1
- package/dist/cdn/5CT433EX.js +2 -0
- package/dist/cdn/6ROVXNLV.js +2 -0
- package/dist/cdn/7JQ6D224.js +2 -0
- package/dist/cdn/B36VBHAI.js +2 -0
- package/dist/cdn/CFBSBZSS.js +2 -0
- package/dist/cdn/CYEC77HO.js +2 -0
- package/dist/cdn/E6STCC7O.js +2 -0
- package/dist/cdn/EYTAC4Z4.js +2 -0
- package/dist/cdn/{NWIIOJEG.js → FGJNEKPQ.js} +1 -1
- package/dist/cdn/{TUQSWB7B.js → FPYIRCJO.js} +1 -1
- package/dist/cdn/{C4UBEDKI.js → G2NXASJO.js} +1 -1
- package/dist/cdn/{DNMB343K.js → GLDJPWRZ.js} +1 -1
- package/dist/cdn/HHA5STNZ.js +2 -0
- package/dist/cdn/HV3BRK66.js +2 -0
- package/dist/cdn/I5GDSNYE.js +2 -0
- package/dist/cdn/IRK4UW2F.js +2 -0
- package/dist/cdn/IVATGXII.js +2 -0
- package/dist/cdn/IXATTQKO.js +2 -0
- package/dist/cdn/JCIDQZ6X.js +2 -0
- package/dist/cdn/{R3VY2KZV.js → LDRIWXTO.js} +1 -1
- package/dist/cdn/{3PWVEX4V.js → ODJRHB2N.js} +1 -1
- package/dist/cdn/{EJZ55DVU.js → OK75ZZ2M.js} +1 -1
- package/dist/cdn/{DHMH2XFA.js → OTC37DGK.js} +1 -1
- package/dist/cdn/OYX64HG5.js +2 -0
- package/dist/cdn/QS3GXAIH.js +2 -0
- package/dist/cdn/RKT7WCDH.js +2 -0
- package/dist/cdn/RL7X3ACG.js +2 -0
- package/dist/cdn/RZPKVJMB.js +2 -0
- package/dist/cdn/S2JZ5KTI.js +2 -0
- package/dist/cdn/SJGVHRK2.js +2 -0
- package/dist/cdn/SUBBPVRW.js +2 -0
- package/dist/cdn/T7GD53BL.js +2 -0
- package/dist/cdn/{2VLAJOZX.js → TFFZ425X.js} +1 -1
- package/dist/cdn/UDTQ7U6L.js +2 -0
- package/dist/cdn/UPSYDUD6.js +2 -0
- package/dist/cdn/UUSJCAH5.js +2 -0
- package/dist/cdn/UXLENIDB.js +2 -0
- package/dist/cdn/UZCHLKLO.js +2 -0
- package/dist/cdn/VMQIDO4Z.js +2 -0
- package/dist/cdn/WBNJYBQD.js +2 -0
- package/dist/cdn/XSUXR4WJ.js +2 -0
- package/dist/cdn/Z2ZW4FY2.js +2 -0
- package/dist/cdn/ZP6MVFXR.js +2 -0
- package/dist/cdn/{U2QZZSPC.js → ZV4GLQQG.js} +1 -1
- package/dist/cdn/assets/portal-group-browser/t9n/messages.en.json +1 -0
- package/dist/cdn/assets/portal-group-card/t9n/messages.en.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/groups.js +61 -7
- package/dist/chunks/groups2.js +8 -61
- package/dist/chunks/item.js +123 -29
- package/dist/chunks/item2.js +29 -123
- package/dist/chunks/loadClassificationData.js +1 -1
- package/dist/chunks/portal-browser.js +223 -0
- package/dist/chunks/portal.js +48 -40
- package/dist/chunks/portal2.js +50 -24
- package/dist/chunks/query.js +159 -0
- package/dist/chunks/request.js +87 -0
- package/dist/chunks/requests.js +4 -4
- package/dist/chunks/store.js +1 -5
- package/dist/chunks/string.js +19 -14
- package/dist/chunks/thumbnail.js +189 -0
- package/dist/chunks/ui.js +2 -3
- package/dist/chunks/url.js +17 -0
- package/dist/chunks/user.js +96 -13
- package/dist/chunks/user2.js +13 -178
- package/dist/chunks/utils.js +1 -1
- package/dist/components/arcgis-portal-account-switcher/customElement.js +1 -1
- package/dist/components/arcgis-portal-ai-assistant/customElement.js +3 -3
- package/dist/components/arcgis-portal-browser/customElement.d.ts +15 -7
- package/dist/components/arcgis-portal-browser/customElement.js +14 -196
- package/dist/components/arcgis-portal-browser/utils/store.d.ts +4 -4
- package/dist/components/arcgis-portal-browser/utils/types.d.ts +6 -0
- package/dist/components/arcgis-portal-browser-actions/customElement.d.ts +2 -4
- package/dist/components/arcgis-portal-browser-actions/customElement.js +12 -9
- package/dist/components/arcgis-portal-browser-filter/customElement.js +5 -5
- package/dist/components/arcgis-portal-browser-filter-date/customElement.d.ts +5 -5
- package/dist/components/arcgis-portal-browser-filter-date/customElement.js +13 -12
- package/dist/components/arcgis-portal-browser-filter-status/customElement.js +1 -1
- package/dist/components/arcgis-portal-browser-pagination/customElement.js +25 -27
- package/dist/components/arcgis-portal-browser-search/customElement.js +1 -4
- package/dist/components/arcgis-portal-browser-top-bar/customElement.d.ts +6 -0
- package/dist/components/arcgis-portal-browser-top-bar/customElement.js +15 -16
- package/dist/components/arcgis-portal-classification-config/customElement.js +1 -1
- package/dist/components/arcgis-portal-classification-favorite/customElement.js +1 -1
- package/dist/components/arcgis-portal-group-badges/customElement.d.ts +0 -1
- package/dist/components/arcgis-portal-group-badges/customElement.js +21 -20
- package/dist/components/arcgis-portal-group-browser/customElement.d.ts +301 -0
- package/dist/components/arcgis-portal-group-browser/customElement.js +494 -0
- package/dist/components/arcgis-portal-group-browser/index.d.ts +1 -0
- package/dist/components/arcgis-portal-group-browser/index.js +6 -0
- package/dist/components/arcgis-portal-group-browser/types.d.ts +193 -0
- package/dist/components/arcgis-portal-group-browser-preview/customElement.d.ts +225 -0
- package/dist/components/arcgis-portal-group-browser-preview/customElement.js +150 -0
- package/dist/components/arcgis-portal-group-browser-preview/index.d.ts +1 -0
- package/dist/components/arcgis-portal-group-browser-preview/index.js +12 -0
- package/dist/components/arcgis-portal-group-browser-preview-card/customElement.d.ts +82 -0
- package/dist/components/arcgis-portal-group-browser-preview-card/customElement.js +92 -0
- package/dist/components/arcgis-portal-group-browser-preview-card/index.d.ts +1 -0
- package/dist/components/arcgis-portal-group-browser-preview-card/index.js +6 -0
- package/dist/components/arcgis-portal-group-card/customElement.d.ts +3 -1
- package/dist/components/arcgis-portal-group-card/customElement.js +71 -91
- package/dist/components/arcgis-portal-group-card/index.js +3 -3
- package/dist/components/arcgis-portal-mentionable-text-area/customElement.js +40 -39
- package/dist/components/arcgis-portal-navigation/customElement.js +418 -411
- package/dist/components/arcgis-portal-navigation/index.js +1 -1
- package/dist/components/arcgis-portal-replacement-item-redirect/customElement.js +68 -249
- package/dist/components/arcgis-portal-user-avatar/customElement.js +2 -2
- package/dist/components/arcgis-portal-user-popup/customElement.d.ts +5 -2
- package/dist/components/arcgis-portal-user-popup/customElement.js +4 -3
- package/dist/components/portal-group-browser-filters/customElement.js +104 -0
- package/dist/components/portal-group-browser-filters/index.js +8 -0
- package/dist/components/portal-group-browser-pagination/customElement.js +13 -0
- package/dist/components/portal-group-browser-pagination/index.js +2 -0
- package/dist/components/portal-group-browser-sort/customElement.js +16 -0
- package/dist/components/portal-group-browser-sort/index.js +2 -0
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/index.d.ts +36 -0
- package/dist/loader.js +5 -2
- package/dist/types/group.d.ts +6 -8
- package/dist/types/item.d.ts +1 -1
- package/dist/types/lumina.d.ts +32 -0
- package/dist/types/preact.d.ts +35 -0
- package/dist/types/react.d.ts +38 -0
- package/dist/types/search.d.ts +2 -2
- package/dist/types/stencil.d.ts +32 -0
- package/dist/types/user.d.ts +2 -2
- package/package.json +4 -4
- package/dist/cdn/2EJG4DOC.js +0 -2
- package/dist/cdn/2JCFEF3J.js +0 -2
- package/dist/cdn/2WEWH5G3.js +0 -2
- package/dist/cdn/6AGZRMJC.js +0 -2
- package/dist/cdn/6D3PU4ZT.js +0 -2
- package/dist/cdn/7QXIBQV7.js +0 -2
- package/dist/cdn/BJTJP57C.js +0 -2
- package/dist/cdn/BZRM2V6V.js +0 -2
- package/dist/cdn/C2DREZD4.js +0 -2
- package/dist/cdn/CSH3WCYD.js +0 -2
- package/dist/cdn/GKBK32VH.js +0 -2
- package/dist/cdn/GYFQDPCN.js +0 -2
- package/dist/cdn/J46I5HEQ.js +0 -2
- package/dist/cdn/JJ7P5JJ3.js +0 -2
- package/dist/cdn/JZ2ZI5WO.js +0 -2
- package/dist/cdn/LTQA5JRV.js +0 -2
- package/dist/cdn/M5MGOBU3.js +0 -2
- package/dist/cdn/M6X5KCWL.js +0 -2
- package/dist/cdn/OBVMQ64S.js +0 -2
- package/dist/cdn/OGC5YU6V.js +0 -2
- package/dist/cdn/OUN473QW.js +0 -2
- package/dist/cdn/QPFPNUHH.js +0 -2
- package/dist/cdn/R6SSAPLB.js +0 -3
- package/dist/cdn/SJDQS32I.js +0 -2
- package/dist/cdn/UQWELJR5.js +0 -2
- package/dist/cdn/Y4YNN6DS.js +0 -2
- package/dist/cdn/Y5CRBUVL.js +0 -2
- /package/dist/cdn/{AWIVXH7M.js → 5KDFY5KE.js} +0 -0
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"./STZRXY35.js";import"./UZLQALHY.js";var a=e(r,{"arcgis-portal-account-switcher":[()=>import("./
|
|
2
|
+
import{A as e,R as r}from"./STZRXY35.js";import"./UZLQALHY.js";var a=e(r,{"arcgis-portal-account-switcher":[()=>import("./UXLENIDB.js"),"baseUrl,messages:,portal:"],"arcgis-portal-account-switcher-accounts":[()=>import("./3MIY7CNH.js"),"accounts:,messages:,portal:,targetUser"],"arcgis-portal-account-switcher-list":[()=>import("./IFYHXRHA.js"),"interactive,label,linkedAccounts:,messages:,portal:,signedInUsers:"],"arcgis-portal-ai-assistant":[()=>import("./FPYIRCJO.js"),"autoDestroyDisabled,config:,defaultClosed,navigationTargetMap:,portal:,t9n:,user:"],"arcgis-portal-ai-assistant-interrupt":[()=>import("./NADYAODN.js"),"_messages:,message,options:,type"],"arcgis-portal-browser":[()=>import("./WBNJYBQD.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("./T7GD53BL.js"),"_messages:,actions:,selection:;restoreFocus"],"arcgis-portal-browser-filter":[()=>import("./GLDJPWRZ.js"),"_messages:,active,clearDisabled,expanded,filterId,heading,noPadding,primary"],"arcgis-portal-browser-filter-date":[()=>import("./32FQ7WJE.js"),"_messages:,end,expanded,includeNever,property,range,serverProperty,start,store:"],"arcgis-portal-browser-filter-status":[()=>import("./ODJRHB2N.js"),"_messages:,browserWidth,componentWidth,filters:,hiddenFilterIds:"],"arcgis-portal-browser-filters":[()=>import("./TFFZ425X.js"),"store:"],"arcgis-portal-browser-pagination":[()=>import("./IRK4UW2F.js"),"_messages:,num,start,store:,total;nextPage"],"arcgis-portal-browser-search":[()=>import("./UUSJCAH5.js"),"_messages:,allowClear,placeholder,store:,term;setFocus"],"arcgis-portal-browser-sort":[()=>import("./5CT433EX.js"),"_messages:,appearance,field,options:,order,showText,useDeleted"],"arcgis-portal-browser-top-bar":[()=>import("./2H7Y7RJV.js"),"_messages:,filtersDisabled,store:"],"arcgis-portal-browser-view":[()=>import("./OK75ZZ2M.js"),"options:,store:,view,viewText"],"arcgis-portal-classification-banner":[()=>import("./IZTK4QQL.js"),"autoDestroyDisabled,messages:,missingExistingClassification,portalItem:,validationErrors,variant;destroy"],"arcgis-portal-classification-config":[()=>import("./CU34VHCE.js"),"autoDestroyDisabled,messages:,portalItem:,status,valid,values;destroy,resetForm,validateForm"],"arcgis-portal-classification-favorite":[()=>import("./FDQ3EJUR.js"),"attributeExpressionResults:,classificationValue:,favoriteClassifications:,messages:,portalItem:,resetFavoriteClassification:,selectedFavoriteClassificationName,updateClassificationData:"],"arcgis-portal-classification-form-element":[()=>import("./ILBX6R25.js"),"attribute:,attributeKey,isRequiredErrors:,messages:,renderingInfo:,value:"],"arcgis-portal-extent-picker":[()=>import("./UCCRV44E.js"),"active,contentOnly,extentService,extentValue:,isArea,itemId,messages:,portal:;;getExtent"],"arcgis-portal-extent-picker-coord-field":[()=>import("./K7NCYRPX.js"),"errorMessage,inputId,label,max,min,relatedErrorMessage,validateRelated:,value;;checkRelatedField,isValid,setFocus"],"arcgis-portal-field-delete":[()=>import("./I5GDSNYE.js"),"config:,fieldNames:,layer:,mapView:,messages:,options:"],"arcgis-portal-group-badges":[()=>import("./UPSYDUD6.js"),"_messages:,appearance,empty,group:,portal:,scale,showTooltips,width"],"arcgis-portal-group-browser":[()=>import("./EYTAC4Z4.js"),"_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("./7JQ6D224.js"),"currentResponse:,group:,hidePreviewFooter,messages:,portal:,previewFooterActionsEmpty,showBadges,user:;setFocus"],"arcgis-portal-group-browser-preview-card":[()=>import("./RZPKVJMB.js"),"baseUrl,interactive,item:,link,newTab,portal:,showBadges,showDateUpdated,showItemType,showOwner,showOwnerPopup,showSummary,showThumbnail,user:;restoreFocus"],"arcgis-portal-group-card":[()=>import("./3Q3EP3BN.js"),"disabled,group:,indeterminate,link,linkHandler:,messages:,name,newTab,portal:,preview,previewed,selected,selection,showBadges,showDateCreated,showDateUpdated,showOwner,showSummary,showViewableBy,user:,view;restoreFocus"],"arcgis-portal-group-thumbnail":[()=>import("./S2JZ5KTI.js"),"group:,portal:,scale,tooltip"],"arcgis-portal-info-banner":[()=>import("./IF2LNWBA.js"),"config:,position"],"arcgis-portal-item-type":[()=>import("./OYX64HG5.js"),"ellipsis,hideIcon,hideText,item:,messages:,portal:,scale,serviceInfo:,showHosted,user:"],"arcgis-portal-mentionable-text-area":[()=>import("./CYEC77HO.js"),"disabled,maxLength,placeholder,popoverListLabel,popoverPlacement,portal:,readOnly,rows,scale,starters:,user:,value;closePopover,focusTextArea,selectItem"],"arcgis-portal-navigation":[()=>import("./SUBBPVRW.js"),"clientId,currentPathname,disableNotebookServer,disableTrackViewer,maxWidth,messages:,portal:,portalItem:,product,productHref,projectMenuIcon,projectMenuOptions:,projectMenuSaveIndicator,projectTitle,projectTitleSave:"],"arcgis-portal-replacement-item-redirect":[()=>import("./HHA5STNZ.js"),"itemId,messages:,portal:,user:;setFocus"],"arcgis-portal-user-avatar":[()=>import("./B36VBHAI.js"),"checkOnline,description,heading,hideAvatar,messages:,portal:,scale,showName,underline,user:,username,wrap"],"arcgis-portal-user-popup":[()=>import("./3WH3ENZP.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("./PBH3JZCG.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,arcgis-portal-browser-filter-date,arcgis-portal-browser-filter-status,arcgis-portal-browser-filters,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-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/cdn/main.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@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,arcgis-portal-browser-filter-date,arcgis-portal-browser-filter-status,arcgis-portal-browser-filters,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-card,arcgis-portal-group-thumbnail,arcgis-portal-info-banner,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}}
|
|
1
|
+
@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,arcgis-portal-browser-filter-date,arcgis-portal-browser-filter-status,arcgis-portal-browser-filters,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-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}}
|
|
@@ -6,7 +6,7 @@ import * as x from "@arcgis/core/renderers/support/jsonUtils.js";
|
|
|
6
6
|
import R from "@arcgis/core/request.js";
|
|
7
7
|
import * as L from "@arcgis/core/core/sql.js";
|
|
8
8
|
import * as H from "@arcgis/core/applications/PortalApp/layerUtils.js";
|
|
9
|
-
import { g as J, h as N, l as T, j as P, k as z, u as G, m as E, n as D, o as V, p as k } from "./
|
|
9
|
+
import { g as J, h as N, l as T, j as P, k as z, u as G, m as E, n as D, o as V, p as k } from "./item.js";
|
|
10
10
|
import { g as K } from "./portal.js";
|
|
11
11
|
var O = /* @__PURE__ */ ((r) => (r.expression = "expression/", r))(O || {});
|
|
12
12
|
function b(r) {
|
package/dist/chunks/groups.js
CHANGED
|
@@ -1,10 +1,64 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
|
|
2
|
+
import n from "@arcgis/core/request.js";
|
|
3
|
+
import { g as d } from "./portal.js";
|
|
4
|
+
async function l(t, o = {}) {
|
|
5
|
+
return await t.queryGroups(o);
|
|
6
|
+
}
|
|
7
|
+
async function p(t, o) {
|
|
8
|
+
const e = o.title.trim();
|
|
9
|
+
if (!e)
|
|
10
|
+
return { error: { code: "unhandledError", message: "Group title is required." } };
|
|
11
|
+
try {
|
|
12
|
+
const { data: r } = await n(`${d(t)}community/createGroup`, {
|
|
13
|
+
method: "post",
|
|
14
|
+
responseType: "json",
|
|
15
|
+
query: {
|
|
16
|
+
f: "json",
|
|
17
|
+
...o,
|
|
18
|
+
title: e
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
return !r.success || !r.group?.id ? {
|
|
22
|
+
error: {
|
|
23
|
+
code: "unhandledError",
|
|
24
|
+
message: "Unable to create a group with the provided title."
|
|
25
|
+
}
|
|
26
|
+
} : {
|
|
27
|
+
result: {
|
|
28
|
+
id: r.group.id,
|
|
29
|
+
title: r.group.title || e
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
} catch (r) {
|
|
33
|
+
return console.error("Error creating portal group:", r), {
|
|
34
|
+
error: {
|
|
35
|
+
code: "unhandledError",
|
|
36
|
+
message: r.details.messages.join(",")
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
async function g(t, o, e) {
|
|
42
|
+
if (!e.length)
|
|
43
|
+
return { error: { code: "unhandledError", message: "At least one username is required." } };
|
|
44
|
+
try {
|
|
45
|
+
const { data: r } = await n(
|
|
46
|
+
`${d(t)}community/groups/${o}/addUsers`,
|
|
47
|
+
{
|
|
48
|
+
method: "post",
|
|
49
|
+
responseType: "json",
|
|
50
|
+
query: { f: "json", users: e.join(",") }
|
|
51
|
+
}
|
|
52
|
+
), s = r.notAdded;
|
|
53
|
+
return {
|
|
54
|
+
result: { addedUsernames: s?.length ? e.filter((a) => !s.includes(a)) : e, notAddedUsers: r.notAddedDetails }
|
|
55
|
+
};
|
|
56
|
+
} catch (r) {
|
|
57
|
+
return console.error("Error adding users to portal group:", r), { error: { code: "unhandledError" } };
|
|
58
|
+
}
|
|
59
|
+
}
|
|
3
60
|
export {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
r as d,
|
|
8
|
-
t as g,
|
|
9
|
-
a as i
|
|
61
|
+
g as a,
|
|
62
|
+
p as c,
|
|
63
|
+
l as q
|
|
10
64
|
};
|
package/dist/chunks/groups2.js
CHANGED
|
@@ -1,64 +1,11 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
|
|
3
|
-
import { g as d } from "./portal.js";
|
|
4
|
-
async function l(t, o = {}) {
|
|
5
|
-
return await t.queryGroups(o);
|
|
6
|
-
}
|
|
7
|
-
async function p(t, o) {
|
|
8
|
-
const e = o.title.trim();
|
|
9
|
-
if (!e)
|
|
10
|
-
return { error: { code: "unhandledError", message: "Group title is required." } };
|
|
11
|
-
try {
|
|
12
|
-
const { data: r } = await n(`${d(t)}community/createGroup`, {
|
|
13
|
-
method: "post",
|
|
14
|
-
responseType: "json",
|
|
15
|
-
query: {
|
|
16
|
-
f: "json",
|
|
17
|
-
...o,
|
|
18
|
-
title: e
|
|
19
|
-
}
|
|
20
|
-
});
|
|
21
|
-
return !r.success || !r.group?.id ? {
|
|
22
|
-
error: {
|
|
23
|
-
code: "unhandledError",
|
|
24
|
-
message: "Unable to create a group with the provided title."
|
|
25
|
-
}
|
|
26
|
-
} : {
|
|
27
|
-
result: {
|
|
28
|
-
id: r.group.id,
|
|
29
|
-
title: r.group.title || e
|
|
30
|
-
}
|
|
31
|
-
};
|
|
32
|
-
} catch (r) {
|
|
33
|
-
return console.error("Error creating portal group:", r), {
|
|
34
|
-
error: {
|
|
35
|
-
code: "unhandledError",
|
|
36
|
-
message: r.details.messages.join(",")
|
|
37
|
-
}
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
async function g(t, o, e) {
|
|
42
|
-
if (!e.length)
|
|
43
|
-
return { error: { code: "unhandledError", message: "At least one username is required." } };
|
|
44
|
-
try {
|
|
45
|
-
const { data: r } = await n(
|
|
46
|
-
`${d(t)}community/groups/${o}/addUsers`,
|
|
47
|
-
{
|
|
48
|
-
method: "post",
|
|
49
|
-
responseType: "json",
|
|
50
|
-
query: { f: "json", users: e.join(",") }
|
|
51
|
-
}
|
|
52
|
-
), s = r.notAdded;
|
|
53
|
-
return {
|
|
54
|
-
result: { addedUsernames: s?.length ? e.filter((a) => !s.includes(a)) : e, notAddedUsers: r.notAddedDetails }
|
|
55
|
-
};
|
|
56
|
-
} catch (r) {
|
|
57
|
-
return console.error("Error adding users to portal group:", r), { error: { code: "unhandledError" } };
|
|
58
|
-
}
|
|
59
|
-
}
|
|
2
|
+
const t = (s) => s.sourceJSON, o = (s) => "sourceJSON" in s, e = (s) => o(s) ? t(s) : s, a = (s) => e(s).capabilities ?? [], i = (s) => e(s).orgId, c = (s) => e(s).membershipAccess, r = (s) => e(s).isOpenData === !0, n = (s) => a(s).includes("distributed");
|
|
60
3
|
export {
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
4
|
+
a,
|
|
5
|
+
i as b,
|
|
6
|
+
c,
|
|
7
|
+
e as d,
|
|
8
|
+
n as e,
|
|
9
|
+
t as g,
|
|
10
|
+
r as i
|
|
64
11
|
};
|
package/dist/chunks/item.js
CHANGED
|
@@ -1,34 +1,128 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
2
|
+
import i from "@arcgis/core/request.js";
|
|
3
|
+
import { g as a } from "./portal.js";
|
|
4
|
+
function f(e) {
|
|
5
|
+
return e.typeKeywords?.includes("Hosted Service") && e.type !== "Insights Workbook" && e.type !== "Insights Data Engineering Workbook" && e.type !== "Insights Page";
|
|
6
|
+
}
|
|
7
|
+
function g(e) {
|
|
8
|
+
return e.typeKeywords?.includes("View Service");
|
|
9
|
+
}
|
|
10
|
+
function v(e) {
|
|
11
|
+
return e.typeKeywords?.includes("Service Proxy") && e.typeKeywords.includes("Geocoding filter");
|
|
12
|
+
}
|
|
13
|
+
function h(e) {
|
|
14
|
+
return e.type === "Image Collection" && e.typeKeywords?.includes("Photo locations");
|
|
15
|
+
}
|
|
16
|
+
function p(e) {
|
|
17
|
+
return e?.sourceType === "mosaic-dataset" || e?.serviceSourceType === "esriImageServiceSourceTypeMosaicDataset";
|
|
18
|
+
}
|
|
19
|
+
function I(e, r) {
|
|
20
|
+
return e.typeKeywords?.includes("Managed Image Collection") || p(r) && !e.typeKeywords?.includes("Tiled Imagery");
|
|
21
|
+
}
|
|
22
|
+
function P(e, r) {
|
|
23
|
+
return !!((e.sourceJSON?.serviceProperties?.tags || e?.serviceProperties?.tags)?.includes(
|
|
24
|
+
"hasMultidimensions"
|
|
25
|
+
) || r?.hasMultidimensions);
|
|
26
|
+
}
|
|
27
|
+
function S(e, r) {
|
|
28
|
+
return c(e, r) || m(e, r);
|
|
29
|
+
}
|
|
30
|
+
function c(e, r) {
|
|
31
|
+
return e.owner === r.username;
|
|
32
|
+
}
|
|
33
|
+
function m(e, r) {
|
|
34
|
+
const s = e.owner, t = e.itemControl === "admin", o = ["esri_livingatlas", "esri_demographics", "esri_boundaries"];
|
|
35
|
+
return e.portal?.isPortal && !c(e, r) && t && s?.includes("esri_") && // portal incorrectly returns "itemControl="admin" for esri owned items
|
|
36
|
+
!o.includes(s) ? !1 : t;
|
|
37
|
+
}
|
|
38
|
+
const K = (e, r) => !!r.orgId && e.every((s) => s.isOrgItem);
|
|
39
|
+
function T(e) {
|
|
40
|
+
return e.typeKeywords?.includes("Spatiotemporal");
|
|
41
|
+
}
|
|
42
|
+
function j(e) {
|
|
43
|
+
return e.typeKeywords?.includes("View Service");
|
|
44
|
+
}
|
|
45
|
+
function k(e) {
|
|
46
|
+
return e.typeKeywords?.includes("Hosted Service");
|
|
47
|
+
}
|
|
48
|
+
function V(e) {
|
|
49
|
+
return e.typeKeywords?.includes("Multi Services View");
|
|
50
|
+
}
|
|
51
|
+
function G(e) {
|
|
52
|
+
return e?.hasViews && !e.sourceSchemaChangesAllowed;
|
|
53
|
+
}
|
|
54
|
+
async function b(e) {
|
|
55
|
+
const r = e?.portalItem;
|
|
56
|
+
if (!r)
|
|
57
|
+
return await Promise.resolve(null);
|
|
58
|
+
const s = r.portal;
|
|
59
|
+
if (s?.user) {
|
|
60
|
+
const t = `${a(s)}community/users/${s.user.username}`;
|
|
61
|
+
return await i(t, {
|
|
62
|
+
query: {
|
|
63
|
+
f: "json",
|
|
64
|
+
token: r.portal.credential?.token
|
|
65
|
+
},
|
|
66
|
+
responseType: "json"
|
|
67
|
+
}).then(
|
|
68
|
+
async (o) => {
|
|
69
|
+
const n = o.data?.groups ?? [];
|
|
70
|
+
return await Promise.resolve(n);
|
|
71
|
+
},
|
|
72
|
+
async () => await Promise.reject(new Error("Failed to fetch user groups"))
|
|
73
|
+
);
|
|
22
74
|
}
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
75
|
+
return await Promise.resolve(null);
|
|
76
|
+
}
|
|
77
|
+
async function M(e) {
|
|
78
|
+
const r = e?.portalItem;
|
|
79
|
+
if (!r)
|
|
80
|
+
return await Promise.resolve(null);
|
|
81
|
+
const s = r.portal, t = `${a(s)}content/items/${r.id}/groups`;
|
|
82
|
+
return await i(t, {
|
|
83
|
+
query: {
|
|
84
|
+
f: "json",
|
|
85
|
+
token: r.portal.credential?.token
|
|
86
|
+
},
|
|
87
|
+
responseType: "json"
|
|
88
|
+
}).then(
|
|
89
|
+
async (o) => {
|
|
90
|
+
const n = o.data?.admin ?? [], u = o.data?.member ?? [], l = o.data?.other ?? [], d = [...n, ...u, ...l];
|
|
91
|
+
return await Promise.resolve(d);
|
|
92
|
+
},
|
|
93
|
+
async () => await Promise.reject(new Error("Failed to fetch item groups"))
|
|
94
|
+
);
|
|
95
|
+
}
|
|
96
|
+
async function U(e, r, { relationshipType: s, direction: t }, o = !1) {
|
|
97
|
+
const n = `${a(r)}content/items/${e}/relatedItems`;
|
|
98
|
+
return await i(n, {
|
|
99
|
+
query: { f: "json", relationshipType: s, direction: t, includeRecycleBin: o },
|
|
100
|
+
responseType: "json"
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
function C(e, r) {
|
|
104
|
+
return e?.some(
|
|
105
|
+
(s) => r?.some(
|
|
106
|
+
(t) => s.id === t.id && s.capabilities.includes("updateitemcontrol")
|
|
107
|
+
)
|
|
108
|
+
);
|
|
29
109
|
}
|
|
30
110
|
export {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
111
|
+
f as a,
|
|
112
|
+
P as b,
|
|
113
|
+
I as c,
|
|
114
|
+
g as d,
|
|
115
|
+
v as e,
|
|
116
|
+
h as f,
|
|
117
|
+
k as g,
|
|
118
|
+
j as h,
|
|
119
|
+
K as i,
|
|
120
|
+
G as j,
|
|
121
|
+
T as k,
|
|
122
|
+
V as l,
|
|
123
|
+
b as m,
|
|
124
|
+
M as n,
|
|
125
|
+
C as o,
|
|
126
|
+
U as p,
|
|
127
|
+
S as u
|
|
34
128
|
};
|
package/dist/chunks/item2.js
CHANGED
|
@@ -1,128 +1,34 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
10
|
-
function v(e) {
|
|
11
|
-
return e.typeKeywords?.includes("Service Proxy") && e.typeKeywords.includes("Geocoding filter");
|
|
12
|
-
}
|
|
13
|
-
function h(e) {
|
|
14
|
-
return e.type === "Image Collection" && e.typeKeywords?.includes("Photo locations");
|
|
15
|
-
}
|
|
16
|
-
function p(e) {
|
|
17
|
-
return e?.sourceType === "mosaic-dataset" || e?.serviceSourceType === "esriImageServiceSourceTypeMosaicDataset";
|
|
18
|
-
}
|
|
19
|
-
function I(e, r) {
|
|
20
|
-
return e.typeKeywords?.includes("Managed Image Collection") || p(r) && !e.typeKeywords?.includes("Tiled Imagery");
|
|
21
|
-
}
|
|
22
|
-
function P(e, r) {
|
|
23
|
-
return !!((e.sourceJSON?.serviceProperties?.tags || e?.serviceProperties?.tags)?.includes(
|
|
24
|
-
"hasMultidimensions"
|
|
25
|
-
) || r?.hasMultidimensions);
|
|
26
|
-
}
|
|
27
|
-
function S(e, r) {
|
|
28
|
-
return c(e, r) || m(e, r);
|
|
29
|
-
}
|
|
30
|
-
function c(e, r) {
|
|
31
|
-
return e.owner === r.username;
|
|
32
|
-
}
|
|
33
|
-
function m(e, r) {
|
|
34
|
-
const s = e.owner, t = e.itemControl === "admin", o = ["esri_livingatlas", "esri_demographics", "esri_boundaries"];
|
|
35
|
-
return e.portal?.isPortal && !c(e, r) && t && s?.includes("esri_") && // portal incorrectly returns "itemControl="admin" for esri owned items
|
|
36
|
-
!o.includes(s) ? !1 : t;
|
|
37
|
-
}
|
|
38
|
-
const K = (e, r) => !!r.orgId && e.every((s) => s.isOrgItem);
|
|
39
|
-
function T(e) {
|
|
40
|
-
return e.typeKeywords?.includes("Spatiotemporal");
|
|
41
|
-
}
|
|
42
|
-
function j(e) {
|
|
43
|
-
return e.typeKeywords?.includes("View Service");
|
|
44
|
-
}
|
|
45
|
-
function k(e) {
|
|
46
|
-
return e.typeKeywords?.includes("Hosted Service");
|
|
47
|
-
}
|
|
48
|
-
function V(e) {
|
|
49
|
-
return e.typeKeywords?.includes("Multi Services View");
|
|
50
|
-
}
|
|
51
|
-
function G(e) {
|
|
52
|
-
return e?.hasViews && !e.sourceSchemaChangesAllowed;
|
|
53
|
-
}
|
|
54
|
-
async function b(e) {
|
|
55
|
-
const r = e?.portalItem;
|
|
56
|
-
if (!r)
|
|
57
|
-
return await Promise.resolve(null);
|
|
58
|
-
const s = r.portal;
|
|
59
|
-
if (s?.user) {
|
|
60
|
-
const t = `${a(s)}community/users/${s.user.username}`;
|
|
61
|
-
return await i(t, {
|
|
62
|
-
query: {
|
|
63
|
-
f: "json",
|
|
64
|
-
token: r.portal.credential?.token
|
|
65
|
-
},
|
|
66
|
-
responseType: "json"
|
|
67
|
-
}).then(
|
|
68
|
-
async (o) => {
|
|
69
|
-
const n = o.data?.groups ?? [];
|
|
70
|
-
return await Promise.resolve(n);
|
|
71
|
-
},
|
|
72
|
-
async () => await Promise.reject(new Error("Failed to fetch user groups"))
|
|
73
|
-
);
|
|
2
|
+
import o from "@arcgis/core/request.js";
|
|
3
|
+
import { a } from "./requests.js";
|
|
4
|
+
const l = async (r, e, t) => {
|
|
5
|
+
try {
|
|
6
|
+
return { result: await r.queryItems({ ...t, query: `title:${e}` }) };
|
|
7
|
+
} catch (s) {
|
|
8
|
+
return console.error(s), { error: { code: "unhandledError" } };
|
|
74
9
|
}
|
|
75
|
-
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
);
|
|
95
|
-
}
|
|
96
|
-
async function U(e, r, { relationshipType: s, direction: t }, o = !1) {
|
|
97
|
-
const n = `${a(r)}content/items/${e}/relatedItems`;
|
|
98
|
-
return await i(n, {
|
|
99
|
-
query: { f: "json", relationshipType: s, direction: t, includeRecycleBin: o },
|
|
100
|
-
responseType: "json"
|
|
101
|
-
});
|
|
102
|
-
}
|
|
103
|
-
function C(e, r) {
|
|
104
|
-
return e?.some(
|
|
105
|
-
(s) => r?.some(
|
|
106
|
-
(t) => s.id === t.id && s.capabilities.includes("updateitemcontrol")
|
|
107
|
-
)
|
|
108
|
-
);
|
|
10
|
+
}, i = async (r, e, t) => {
|
|
11
|
+
const s = `${e.restUrl}/content/users/${r.id}/items/${t}/generateContext`;
|
|
12
|
+
try {
|
|
13
|
+
return {
|
|
14
|
+
result: (await o(s, {
|
|
15
|
+
method: "post",
|
|
16
|
+
responseType: "json",
|
|
17
|
+
query: { f: "json" }
|
|
18
|
+
})).data
|
|
19
|
+
};
|
|
20
|
+
} catch (n) {
|
|
21
|
+
return console.error("Error fetching item context:", n), { error: { code: "unhandledError" } };
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
async function m(r, e) {
|
|
25
|
+
if (!r || !e)
|
|
26
|
+
return { result: null };
|
|
27
|
+
const t = `${r.restUrl}/content/items/${e}/data`;
|
|
28
|
+
return await a(t);
|
|
109
29
|
}
|
|
110
30
|
export {
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
g as d,
|
|
115
|
-
v as e,
|
|
116
|
-
h as f,
|
|
117
|
-
k as g,
|
|
118
|
-
j as h,
|
|
119
|
-
K as i,
|
|
120
|
-
G as j,
|
|
121
|
-
T as k,
|
|
122
|
-
V as l,
|
|
123
|
-
b as m,
|
|
124
|
-
M as n,
|
|
125
|
-
C as o,
|
|
126
|
-
U as p,
|
|
127
|
-
S as u
|
|
31
|
+
i as a,
|
|
32
|
+
m as g,
|
|
33
|
+
l as s
|
|
128
34
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import d from "@arcgis/core/core/Accessor.js";
|
|
3
3
|
import { property as n, subclass as p } from "@arcgis/core/core/accessorSupport/decorators.js";
|
|
4
|
-
import {
|
|
4
|
+
import { c as m, v as u } from "./requests.js";
|
|
5
5
|
import { Deferred as h } from "@arcgis/toolkit/promise";
|
|
6
6
|
import { makeAccessorController as C } from "@arcgis/lumina/controllers/accessor";
|
|
7
7
|
import { Task as v } from "@lit/task";
|