@arcgis/portal-components 5.2.0-next.3 → 5.2.0-next.30
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/25UUUQAQ.js +71 -0
- package/dist/cdn/2CP32LP3.js +2 -0
- package/dist/cdn/32CZ4VLI.js +2 -0
- package/dist/cdn/3BJVGCJG.js +637 -0
- package/dist/cdn/{AQWTJKUH.js → 3MQIRMUM.js} +9 -7
- package/dist/cdn/{JNRN6DTV.js → 47NPIL2S.js} +1 -1
- package/dist/cdn/{LQ3DMZ3K.js → 5VHBNEN3.js} +1 -1
- package/dist/cdn/6AGZRMJC.js +2 -0
- package/dist/cdn/6W2IHKCA.js +2 -0
- package/dist/cdn/BZTVED5W.js +65 -0
- package/dist/cdn/CHSZSBO6.js +2 -0
- package/dist/cdn/{WOZDQW3S.js → DBKSQGEI.js} +1 -1
- package/dist/cdn/DFTUMKSN.js +3 -0
- package/dist/cdn/DY5G63YO.js +2 -0
- package/dist/cdn/ECNI2A4K.js +2 -0
- package/dist/cdn/EKO6SVAF.js +2 -0
- package/dist/cdn/EZ3BR2FP.js +134 -0
- package/dist/cdn/{GHQ3ZW4U.js → FI45QCN2.js} +1 -1
- package/dist/cdn/FRDK7SCC.js +2 -0
- package/dist/cdn/GDZZCADX.js +2 -0
- package/dist/cdn/GEIZTD7F.js +2 -0
- package/dist/cdn/GJ26ZIE5.js +2 -0
- package/dist/cdn/GNS7NA7V.js +2 -0
- package/dist/cdn/HB7GO6ST.js +2 -0
- package/dist/cdn/{ZTHTFEYA.js → HGSK6OFA.js} +1 -1
- package/dist/cdn/{LAFNDBTQ.js → HIRM34QB.js} +1 -1
- package/dist/cdn/HMBSJR37.js +2 -0
- package/dist/cdn/{V2EOXGK2.js → I234NUZ5.js} +1 -1
- package/dist/cdn/{5DPWJ7DI.js → KZWW4BWJ.js} +1 -1
- package/dist/cdn/LCZTOHWB.js +2 -0
- package/dist/cdn/M7ABAD7K.js +2 -0
- package/dist/cdn/MLTQECPL.js +2 -0
- package/dist/cdn/NWIIOJEG.js +2 -0
- package/dist/cdn/O7ICV6C7.js +2 -0
- package/dist/cdn/OKHKS5RH.js +2 -0
- package/dist/cdn/{G47ZZQYL.js → OKRYML2G.js} +1 -1
- package/dist/cdn/PFCDINAN.js +2 -0
- package/dist/cdn/{QNUYUNEY.js → QJ2UHWPU.js} +1 -1
- package/dist/cdn/QOFH6DQT.js +2 -0
- package/dist/cdn/RJPBPB45.js +2 -0
- package/dist/cdn/S5XNEB7F.js +99 -0
- package/dist/cdn/S745KWLM.js +34 -0
- package/dist/cdn/{GT26WGJS.js → SXZRHHXC.js} +1 -1
- package/dist/cdn/{72N3KAXN.js → TW4LFQA5.js} +1 -1
- package/dist/cdn/U3FVMN32.js +2 -0
- package/dist/cdn/ULD747OT.js +22 -0
- package/dist/cdn/{7WZHZP6U.js → UR7W4CEV.js} +8 -2
- package/dist/cdn/{W6PSG4GX.js → VRXKORTR.js} +9 -4
- package/dist/cdn/VSKX2QMZ.js +2 -0
- package/dist/cdn/VTLIQOV4.js +2 -0
- package/dist/cdn/{DHHSKOUY.js → WJ2NMHDE.js} +1 -1
- package/dist/cdn/{2UUZHENH.js → WSNLUGEP.js} +1 -1
- package/dist/cdn/{53MSUMA3.js → XCZSPNKS.js} +16 -0
- package/dist/cdn/{K3HS2LQ7.js → YECI7XG3.js} +1 -1
- package/dist/cdn/YGKPNY5R.js +3 -0
- package/dist/cdn/ZDLFZJBT.js +2 -0
- package/dist/cdn/assets/portal-browser/t9n/messages.en.json +1 -0
- package/dist/cdn/assets/portal-group-badges/t9n/messages.en.json +1 -0
- package/dist/cdn/assets/portal-group-card/t9n/messages.en.json +1 -0
- package/dist/cdn/assets/portal-item-type/icons/parquetfeaturelayer16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/parquetfeaturelayer32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/storymapframe16.svg +1 -0
- package/dist/cdn/assets/portal-item-type/icons/storymapframe32.svg +1 -0
- package/dist/cdn/assets/portal-item-type/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/portal-user-popup/t9n/messages.en.json +1 -0
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/main.css +1 -1
- package/dist/chunks/dom.js +36 -0
- package/dist/chunks/functionalities.js +5 -4
- package/dist/chunks/groups.js +7 -83
- package/dist/chunks/item2.js +86 -0
- package/dist/chunks/portal.js +48 -8
- package/dist/chunks/ui.js +10 -0
- package/dist/chunks/user2.js +26 -25
- package/dist/components/arcgis-portal-ai-assistant/agents/types.d.ts +11 -2
- package/dist/components/arcgis-portal-ai-assistant/customElement.d.ts +4 -2
- package/dist/components/arcgis-portal-ai-assistant/customElement.js +797 -488
- package/dist/components/arcgis-portal-ai-assistant-interrupt/customElement.js +10 -10
- package/dist/components/arcgis-portal-browser/customElement.d.ts +115 -0
- package/dist/components/arcgis-portal-browser/customElement.js +213 -0
- package/dist/components/arcgis-portal-browser/index.d.ts +1 -0
- package/dist/components/arcgis-portal-browser/index.js +6 -0
- package/dist/components/arcgis-portal-browser/utils/store.d.ts +31 -0
- package/dist/components/arcgis-portal-browser/utils/types.d.ts +12 -0
- package/dist/components/arcgis-portal-browser-filter/customElement.d.ts +57 -0
- package/dist/components/arcgis-portal-browser-filter/customElement.js +34 -0
- package/dist/components/arcgis-portal-browser-filter/index.d.ts +1 -0
- package/dist/components/arcgis-portal-browser-filter/index.js +4 -0
- package/dist/components/arcgis-portal-browser-filter-date/customElement.d.ts +121 -0
- package/dist/components/arcgis-portal-browser-filter-date/customElement.js +117 -0
- package/dist/components/arcgis-portal-browser-filter-date/index.d.ts +1 -0
- package/dist/components/arcgis-portal-browser-filter-date/index.js +5 -0
- package/dist/components/arcgis-portal-browser-filter-status/customElement.d.ts +81 -0
- package/dist/components/arcgis-portal-browser-filter-status/customElement.js +56 -0
- package/dist/components/arcgis-portal-browser-filter-status/index.d.ts +1 -0
- package/dist/components/arcgis-portal-browser-filter-status/index.js +5 -0
- package/dist/components/arcgis-portal-browser-filters/customElement.d.ts +7 -0
- package/dist/components/arcgis-portal-browser-filters/customElement.js +29 -0
- package/dist/components/arcgis-portal-browser-filters/index.d.ts +1 -0
- package/dist/components/arcgis-portal-browser-filters/index.js +2 -0
- package/dist/components/arcgis-portal-group-badges/customElement.d.ts +102 -0
- package/dist/components/arcgis-portal-group-badges/customElement.js +50 -0
- package/dist/components/arcgis-portal-group-badges/index.d.ts +1 -0
- package/dist/components/arcgis-portal-group-badges/index.js +3 -0
- package/dist/components/arcgis-portal-group-badges/types.d.ts +3 -0
- package/dist/components/arcgis-portal-group-card/customElement.d.ts +167 -0
- package/dist/components/arcgis-portal-group-card/customElement.js +183 -0
- package/dist/components/arcgis-portal-group-card/index.d.ts +1 -0
- package/dist/components/arcgis-portal-group-card/index.js +8 -0
- package/dist/components/arcgis-portal-group-thumbnail/customElement.d.ts +32 -0
- package/dist/components/arcgis-portal-group-thumbnail/customElement.js +153 -0
- package/dist/components/arcgis-portal-group-thumbnail/index.d.ts +1 -0
- package/dist/components/arcgis-portal-group-thumbnail/index.js +3 -0
- package/dist/components/arcgis-portal-item-type/customElement.d.ts +2 -0
- package/dist/components/arcgis-portal-item-type/customElement.js +45 -37
- package/dist/components/arcgis-portal-mentionable-text-area/customElement.js +1 -1
- package/dist/components/arcgis-portal-replacement-item-redirect/customElement.js +53 -42
- package/dist/components/arcgis-portal-user-popup/customElement.d.ts +111 -0
- package/dist/components/arcgis-portal-user-popup/customElement.js +224 -0
- package/dist/components/arcgis-portal-user-popup/index.d.ts +1 -0
- package/dist/components/arcgis-portal-user-popup/index.js +5 -0
- package/dist/components/arcgis-portal-voice-input/customElement.d.ts +1 -1
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/index.d.ts +74 -2
- package/dist/loader.js +13 -4
- package/dist/types/group.d.ts +13 -13
- package/dist/types/item.d.ts +77 -2
- package/dist/types/lumina.d.ts +56 -1
- package/dist/types/preact.d.ts +65 -1
- package/dist/types/react.d.ts +74 -1
- package/dist/types/search.d.ts +27 -0
- package/dist/types/stencil.d.ts +56 -1
- package/dist/types/tracking.d.ts +10 -0
- package/dist/types/user.d.ts +2 -2
- package/package.json +7 -7
- package/dist/cdn/5VSDGPHH.js +0 -2
- package/dist/cdn/ANPXRYLV.js +0 -5
- package/dist/cdn/BEHLBKKM.js +0 -2
- package/dist/cdn/CI5ENGVT.js +0 -2
- package/dist/cdn/EVDOPN3G.js +0 -54
- package/dist/cdn/GAHILDQF.js +0 -45
- package/dist/cdn/GNOZCQ34.js +0 -2
- package/dist/cdn/KEKBRUUC.js +0 -2
- package/dist/cdn/N6G6Z7BF.js +0 -516
- package/dist/cdn/OQDPULPD.js +0 -2
- package/dist/cdn/RNLVNDGG.js +0 -2
- package/dist/cdn/SM4GWLRA.js +0 -66
- package/dist/cdn/TMYTUOSS.js +0 -2
- package/dist/cdn/YG5YYL6X.js +0 -2
- package/dist/cdn/YL7PGYWC.js +0 -5
- package/dist/cdn/YMPTDKT6.js +0 -2
- /package/dist/cdn/{B7633S2A.js → 5NIJVBS7.js} +0 -0
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
+
import{a as C}from"./35SKVD6F.js";import a from"./WSNLUGEP.js";import{a as L,b as z}from"./U3FVMN32.js";import{a as O}from"./6W2IHKCA.js";import"./DFTUMKSN.js";import{a as B}from"./5VHBNEN3.js";import"./EKO6SVAF.js";import{I as y,J as U,K as A,L as I,M as R,Q as N,h as P,j as u,v as k}from"./WJ2NMHDE.js";import"./YIMNOUTF.js";export default $arcgis.t(([{a:w,b:v,c:_}])=>{function S(e){let r=/(https?:\/\/[^\s]+)/gu;return e?.replace(r,a=>`<a href="${a}" target="_blank">${a}</a>`)}function T(e){return e?.replace(/(?:\r)/gu," ").replace(/(?:\n)/gu," ")}function E(e){return e?.replace(/(?: )/gu,"\r").replace(/(?: )/gu,`
|
|
3
|
+
`)}function F(e){return e?.replace(/ | | |\r\n|\r|\n/gu,"<br>")}function G(e){return F(T(S(E(e))))}function H(e){return e?.endsWith("/")?e.slice(0,e.length-1):e}var J=P`:host{display:flex}.button{display:flex;align-items:center;max-width:100%;cursor:pointer;white-space:normal;border-style:none;padding:0;font-size:.75rem;color:var(--calcite-color-text-2);outline:2px solid transparent;outline-offset:2px;transition-property:all;outline-color:transparent;background:transparent;font-family:inherit;line-height:1.5;&:focus{outline:2px solid var(--calcite-color-brand);outline-offset:2px}}.button--outline{box-sizing:border-box;width:100%;padding:.5rem .75rem;transition-property:all;border:1px solid var(--calcite-color-border-3);&:hover{box-shadow:inset 0 0 0 1px var(--calcite-color-foreground-3)}}.name{overflow:hidden;white-space:nowrap;margin-inline-start:.5rem;text-overflow:ellipsis}.popover__wrapper{background-color:var(--calcite-color-foreground-1);width:min(32rem,80vw)}.popover__header{padding:1.25rem 1rem}.popover__avatar{max-width:100%}.popover__content{padding:.5rem 1rem 1.25rem}.popover__description{margin:0;overflow:auto;padding:0;padding-bottom:1rem;font-size:.875rem;color:var(--calcite-color-text-2);max-height:21.25rem}.popover__fade{position:relative;z-index:10;margin-bottom:.25rem;display:block;height:1rem;width:100%;background:linear-gradient(to bottom,transparent,var(--calcite-color-foreground-1) 100%);margin-top:-1rem}.popover__buttons{display:grid;grid-auto-flow:column;grid-gap:.5rem}.popover__buttons--no-description{padding-top:1rem}.popover__button{min-width:0px}.popover__loader{--calcite-loader-padding: 0}`;async function D(e,r,a,o,t){let s=e.portal?.portalHostname||o?.portalHostname||o?.restUrl?.replace("/sharing/rest",""),n=t?`https://www.arcgis.com/sharing/rest/portals/${r}`:`https://${s}/sharing/rest/portals/${r}`;if(!s&&!t)return null;let i=t?{disableIdentityLookup:!0,addTokenManually:!1}:{},l=await v({url:n,portal:o,options:i}),{urlKey:p,thumbnail:h,customBaseUrl:c}=l,f=`https://${p}.${c}/`,d=h?`${f}sharing/rest/portals/self/resources/${h}`:null,m="",$="";try{let g=await v({url:`${n}/resources/localizedOrgProperties`,portal:o,params:{start:1,num:100},options:i});if(g){let b=g[a]||g.default;m=b.name,$=b.description}}catch{}return{name:m||l.name,description:z($||l.description),url:`${f}home/`,thumbnail:d}}async function K(e,r,a,o){let t=e.sourceJSON?.orgId??e.portal?.id??a?.id;return await w({requester:async()=>await D(e,t,r,a,o),key:"verified",id:t})}var M=e=>e?.sourceJSON?.contentStatus==="public_authoritative";async function W(e,r,a,o){if(M(e)){let t=e.owner||"",s=await K(e,a,r,o);if(!s)return await _(t,r,o);let{description:n,name:i,thumbnail:l,url:p}=s;return{description:n?L(n):"",fullName:i,username:t,thumbnail:l,id:e.portal.id,url:p}}return await _(e.owner||"",r,o)}async function V(e,r,a){let o=a?"https://www.arcgis.com/sharing/rest/":O(r),t=a?{disableIdentityLookup:!0,addTokenManually:!1}:{};return await w({requester:async()=>await v({url:`${o}community/groups`,portal:r,params:{q:`(owner:"${e}")`,num:100},options:t}),key:"userGroups",id:e})}async function Q(e,r,a){let o=a?"https://www.arcgis.com/sharing/rest/":O(r),t=a?{disableIdentityLookup:!0,addTokenManually:!1}:{};return await w({requester:async()=>(await v({url:`${o}search`,portal:r,params:{q:`(owner:"${e}") -typekeywords:"recyclebin"`,num:1},options:t})).total,key:"userItemsTotal",id:e})}function q({baseUrl:e,user:r,type:a}){let o=H(e),t=encodeURIComponent(r.username||"");return t?`${o}/${a}.html?user=${t}`:`${o}/${a}.html`}var x=class extends A{constructor(){super(...arguments),this.messages=B({blocking:!0}),this.buttonRef=y(),this.popoverRef=y(),this.isPopoverOpen=!1,this.scale="m",this.showAvatar=!0,this.showName=!0,this.showUsername=!1,this.appearance="transparent",this.arcgisUserPopupInternalUIAction=k(),this.arcgisUserPopupClose=k()}static{this.properties={itemUserInfo:16,groups:16,total:16,isPopoverOpen:16,user:0,username:1,fullName:1,item:0,scale:3,portal:0,baseUrl:1,underline:5,showAvatar:5,showName:5,showUsername:5,wrap:5,appearance:1,zIndex:9,avatarAriaHidden:5,checkOnline:5}}static{this.styles=J}async setFocus(){this.buttonRef.value?.focus()}async openPopup(){this.buttonRef.value?.click()}connectedCallback(){super.connectedCallback(),this.init()}updated(r){r.has("isPopoverOpen")&&this.isPopoverOpen&&this.setPopoverOpen(!0)}get resolvedBaseUrl(){return this.baseUrl||`${this.portal.url}/home`}async init(){let{item:r,username:a,portal:o,fullName:t,messages:s}=this;if(!(!s._lang||!o)){if(r){this.itemUserInfo=await W(r,o,s._lang,this.checkOnline);return}if(a){let n=await _(a,o,this.checkOnline);!n.fullName&&t&&(n.fullName=t),this.itemUserInfo=n}}}async fetchItemsAndGroups(){let{user:r,itemUserInfo:a,item:o,portal:t,username:s,checkOnline:n}=this,i=s||r?.username||o?.owner||a?.username;if(!(!i||!t)){if(!this.groups){let l=await V(i,t,n);this.groups=l}this.total=await Q(i,t,n)}}setPopoverOpen(r){requestAnimationFrame(()=>{this.popoverRef.value&&(this.popoverRef.value.open=r)})}openLink(r,a){r.preventDefault(),window.open(a,"_blank")}renderOrgButtons(r){let{messages:a}=this,o=(r.url||this.resolvedBaseUrl).replace(/\/$/u,"");return u`<calcite-button appearance=outline-fill kind=neutral .href=${o} target=_blank @click=${t=>this.openLink(t,o)}>${a.homepage}</calcite-button><calcite-button appearance=outline-fill kind=neutral .href=${`${o}/gallery.html`} target=_blank @click=${t=>this.openLink(t,`${o}/gallery.html`)}>${a.gallery}</calcite-button>`}renderUserButtons(r){let{total:a,groups:o,messages:t}=this,s=r.username||"";if(typeof a!="number"||!o)return u`<calcite-loader .label=${t.loadingUserInformation} scale=s class="popover__loader"></calcite-loader>`;let n=q({baseUrl:this.resolvedBaseUrl,user:{username:s},type:"groups"}),i=q({baseUrl:this.resolvedBaseUrl,user:{username:s},type:"content"}),l=`${this.resolvedBaseUrl.replace(/\/$/u,"")}/user.html?user=${encodeURIComponent(s)}`;return u`${!!o.total&&u`<calcite-button class="popover__button" appearance=outline-fill kind=neutral .href=${n} target=_blank @click=${p=>{this.openLink(p,n),this.arcgisUserPopupInternalUIAction.emit({category:"profile popup",action:"view all groups"})}}>${t.groups.replace("${number}",new Intl.NumberFormat(t._lang).format(o.total))}</calcite-button>`||""}${!!a&&u`<calcite-button class="popover__button" appearance=outline-fill kind=neutral .href=${i} target=_blank @click=${p=>{this.openLink(p,i),this.arcgisUserPopupInternalUIAction.emit({category:"profile popup",action:"view all content"})}}>${t.items.replace("${number}",new Intl.NumberFormat(t._lang).format(a))}</calcite-button>`||""}<calcite-button class="popover__button" appearance=outline-fill kind=neutral .href=${l} target=_blank @click=${p=>{this.openLink(p,l),this.arcgisUserPopupInternalUIAction.emit({category:"profile popup",action:"view profile"})}}>${t.profile}</calcite-button>`}render(){let{user:r,itemUserInfo:a,portal:o,item:t,appearance:s,scale:n,isPopoverOpen:i,showName:l,showUsername:p,messages:h}=this,c=r||a;if(!h._lang||!c)return u`<arcgis-portal-user-avatar scale=s show-name .checkOnline=${this.checkOnline}></arcgis-portal-user-avatar>`;let f=M(t),d=c.username||"",m=G(c.description||"")||"",$=C(c,h._lang),g=f?h.itemManagedBy.replace("${username}",d):d;return u`<button class=${I({button:!0,"button--outline":s==="outline"})} @click=${()=>{this.isPopoverOpen||(this.isPopoverOpen=!0),this.fetchItemsAndGroups()}} ${U(this.buttonRef)}><slot><arcgis-portal-user-avatar .user=${c} .scale=${n} .portal=${o} .showName=${l} .description=${p?d:""} .hideAvatar=${!this.showAvatar} .underline=${this.underline} .checkOnline=${this.checkOnline} .wrap=${this.wrap}></arcgis-portal-user-avatar></slot></button>${i&&this.buttonRef.value&&c&&u`<calcite-popover class="popover" .label=${$} pointer-disabled .referenceElement=${this.buttonRef.value} placement=auto .id=${`${d}-popover`} auto-close style=${R({"--calcite-popover-z-index":this.zIndex?.toString()||"12"})} @calcitePopoverOpen=${()=>{this.arcgisUserPopupInternalUIAction.emit({category:"profile popup",action:"open profile popup"})}} @calcitePopoverClose=${()=>{this.isPopoverOpen=!1,this.arcgisUserPopupClose.emit()}} @keydown=${b=>{b.key==="Escape"&&setTimeout(()=>{this.buttonRef.value?.focus()},200)}} ${U(this.popoverRef)}><div class="popover__wrapper"><div class="popover__header"><arcgis-portal-user-avatar class="popover__avatar" .user=${c} scale=l .portal=${o} show-name .description=${g} .checkOnline=${this.checkOnline}></arcgis-portal-user-avatar></div><div class="popover__content">${!!m&&u`<p class="popover__description">${m}</p>`||""}${!!m&&u`<div class="popover__fade"></div>`||""}<div class=${I({popover__buttons:!0,"popover__buttons--no-description":!m})}>${f?this.renderOrgButtons(c):this.renderUserButtons(c)}</div></div></div></calcite-popover>`||""}`}};N("arcgis-portal-user-popup",x);return x},a)
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
+
import{a as b,b as k}from"./6W2IHKCA.js";import{I as c,J as h,K as g,M as f,N as $,Q as d,h as m,j as l}from"./WJ2NMHDE.js";import"./YIMNOUTF.js";var E=/^#[0-9a-f]{3}$/iu,x=/^#[0-9a-f]{6}$/iu;function u(o){return I(o)||v(o)}function I(o){return o?.length===4&&E.test(o)}function v(o){return o?.length===7&&x.test(o)}function O(o){if(!u(o))return null;let t=o.replace("#","");if(t.length===3){let[e,i,r]=t.split("");return{r:Number.parseInt(`${e}${e}`,16),g:Number.parseInt(`${i}${i}`,16),b:Number.parseInt(`${r}${r}`,16)}}return{r:Number.parseInt(t.slice(0,2),16),g:Number.parseInt(t.slice(2,4),16),b:Number.parseInt(t.slice(4,6),16)}}function w(o){let t=0;for(let i=0;i<o.length;i++)t=o.charCodeAt(i)+((t<<5)-t);let e="#";for(let i=0;i<3;i++){let r=t>>i*8&255;e+=`00${r.toString(16)}`.slice(-2)}return e}function y(o){let{r:t,g:e,b:i}=o;t/=255,e/=255,i/=255;let r=Math.max(t,e,i),n=Math.min(t,e,i),s=r-n;if(s===0)return 0;let a=0;switch(r){case t:a=(e-i)/s+(e<i?6:0);break;case e:a=(i-t)/s+2;break;default:a=(t-e)/s+4;break}return Math.round(a*60)}function M(o){let t=O(o);return t?y(t):0}var T=m`:host{display:inline-block}:host([scale="s"]){height:1.5rem;width:1.5rem;font-size:.625rem}:host([scale="m"]){height:2rem;width:2rem;font-size:.75rem}:host([scale="l"]){font-size:1rem;height:2.75rem;width:2.75rem}:host([scale="xl"]){font-size:1.25rem;height:4rem;width:4rem}.icon{display:flex;color:var(--calcite-color-text-3)}.background{position:relative;display:flex;height:100%;width:100%;align-items:center;justify-content:center}.initials{position:absolute;font-weight:700;text-transform:uppercase;color:var(--calcite-color-text-2)}.thumbnail{height:100%;width:100%}.tooltip-text{margin:0;padding:0;font-size:.75rem;color:var(--calcite-color-text-2)}calcite-tooltip{pointer-events:none}`,p=class extends g{constructor(){super(...arguments),this.imageEl=c(),this.fallbackEl=c(),this.tooltipEl=c(),this.imageError=!1,this.tooltipOpen=!1,this.tooltip=!1,this.scale="m"}static{this.properties={imageError:16,tooltipOpen:16,group:0,portal:0,tooltip:5,scale:3}}static{this.styles=T}willUpdate(t){t.has("group")&&(this.imageError=!1)}updated(){let t=this.tooltipEl.value,e=this.imageEl.value||this.fallbackEl.value;t&&e&&(t.referenceElement=e)}isDarkMode(){return!!this.el.closest(".calcite-mode-dark")}getThumbnailURI(){let{group:t,portal:e}=this;if(!t)return null;if(t.thumbnailUrl)return t.thumbnailUrl;let i=t.thumbnail;if(!i)return null;if(i.startsWith("http"))return i;if(!e||!t.id)return null;let r=k(e),n=r?`?token=${r}`:"";return`${b(e)}community/groups/${t.id}/info/${i}${n}`}generateFillColor(){let{id:t,title:e}=this.group||{},i=t?`#${t.slice(Math.max(0,t.length-6))}`:"",r=t&&u(i)?i:w(e||"");if(!t&&!e||!u(r))return"var(--calcite-color-foreground-2)";let n=M(r),s=this.isDarkMode()?20:90;return`hsl(${n}, 60%, ${s}%)`}generateInitials(){let t=this.group?.title?.trim().charAt(0);return t?.match(/^\w+$/u)?t:null}getIconScale(){return this.scale==="xl"?"l":this.scale==="xs"?"s":this.scale}renderTooltip(){return!this.tooltip||!this.group?.title?null:l`<calcite-tooltip .open=${this.tooltipOpen} close-on-click placement=bottom-start offset-distance=6 offset-skidding=0 ${h(this.tooltipEl)}><p class="tooltip-text">${this.group.title}</p></calcite-tooltip>`}render(){let t=this.getThumbnailURI();if(t&&!this.imageError)return l`<img class="thumbnail" src=${t??$} alt @error=${()=>{this.imageError=!0}} @mouseenter=${()=>{this.tooltipOpen=!0}} @mouseleave=${()=>{this.tooltipOpen=!1}} @focusin=${()=>{this.tooltipOpen=!0}} @focusout=${()=>{this.tooltipOpen=!1}} ${h(this.imageEl)}>${this.renderTooltip()}`;let e=this.generateInitials();return l`<span class="background" style=${f({backgroundColor:this.generateFillColor()})} @mouseenter=${()=>{this.tooltipOpen=!0}} @mouseleave=${()=>{this.tooltipOpen=!1}} @focusin=${()=>{this.tooltipOpen=!0}} @focusout=${()=>{this.tooltipOpen=!1}} ${h(this.fallbackEl)}>${e?l`<span aria-hidden=true class="initials">${e}</span>`:l`<calcite-icon class="icon" icon=users .scale=${this.getIconScale()}></calcite-icon>`}</span>${this.renderTooltip()}`}};d("arcgis-portal-group-thumbnail",p);export{p as ArcgisPortalGroupThumbnail};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"browser":{"refineContent":"Refine content","close":"Close","loading":"Loading"},"range":{"summary":"${start}-${end} of ${total}","announcement":"Showing ${start} to ${end} of ${total} results"},"filterStatus":{"filters":"Filters","additional":"Additional","clearAllFilters":"Clear all filters"},"filterDate":{"title":{"created":"Created date","modified":"Modified date"},"clear":"Clear","created":"Created: ${date}","modified":"Modified: ${date}","today":"Today","yesterday":"Yesterday","last7":"Last 7 days","last30":"Last 30 days","never":"Never","custom":"Custom"}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"Collaboration":{"title":"Distributed","tooltip":"Items shared with this group will be sent to collaborating Enterprise organizations"},"FeaturedContent":{"title":"Featured Content","tooltip":"Items shared with this group will be featured in your organization home page"},"Gallery":{"title":"Gallery","tooltip":"Items shared with this group will be listed in your organization's gallery page"},"OpenData":{"title":"Open Data","tooltip":"Items shared with this group can be made available in your organization's Open Data sites"},"SharedUpdate":{"title":"Shared Update","tooltip":"Items shared with this group can be modified by all members of this group"},"Partnered":{"title":"Partnered","tooltip":"This group allows members from partnered collaborations and your organization only."},"AnyOrg":{"title":"Any organization","tooltip":"This group allows members from any organization."},"loading":"Loading..."}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"lastUpdated":"Last updated: ${date}","created":"Created: ${date}","viewableBy":"Viewable by: ${level}","everyone":"Everyone (public)","organization":"Organization","groupMembers":"Group members","select":"Select group: ${title}","preview":"Preview","hidePreview":"Close preview","openInPortal":"Open in portal","badges":{"collaboration":"Collaboration","viewOnly":"View only","autoJoin":"Auto join","hiddenMembers":"Hidden members"}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?><svg id="Icons" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M16,14.4004s-3.20021-1.6016-8,0c-4.79981,1.5996-8,0-8,0L2.13279,1.5996s3.20121,1.0664,5.86721,0,5.86719,0,5.86719,0l2.13281,12.8008Z" style="fill:#e5d255;"/><rect width="16" height="16" style="fill:none;"/><path d="M14.99048,8.34131c-1.40698-.74902-4.5813-2.43994-4.5813-2.43994-.14746-.07812-.30859-.11719-.46973-.11719-.16602,0-.33105.04102-.48047.12305l-5.93945,3.25781c-.27637.15137-.46582.4248-.50977.73633-.04395.3125.06152.62695.28516.84961,0,0,1.40637,1.40076,1.53906,1.53223,0,0,1.37579,1.37018,2.36621,2.35657.26184-.07104.5274-.14862.7998-.23938,2.31158-.77136,4.24646-.79742,5.63721-.61957l1.93878-1.92529-.58551-3.51422Z" style="fill:#f8f8f8;"/><polygon points="12.38702 8.09155 11.62134 7.68365 7.88269 10.07214 8.72888 10.76105 12.38702 8.09155" style="fill:#49b0f2;"/><polygon points="5.53137 11.57428 6.41223 12.4516 7.89398 11.3703 6.99554 10.63892 5.53137 11.57428" style="fill:#49b0f2;"/><polygon points="10.60944 7.14459 9.93219 6.78381 3.99249 10.04181 4.80609 10.85205 10.60944 7.14459" style="fill:#49b0f2;"/><polygon points="15.17242 9.57544 8.88586 14.91492 9.9754 16 16 10.0163 15.17242 9.57544" style="fill:#49b0f2;"/><polygon points="12.31567 10.69019 11.35278 10.08533 7.13031 13.16663 8.17499 14.20703 12.31567 10.69019" style="fill:#49b0f2;"/><polygon points="14.22339 9.06982 13.36847 8.61438 12.22321 9.45013 13.1156 10.01074 14.22339 9.06982" style="fill:#49b0f2;"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?><svg id="Icons" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path d="M31,28s-6-3-15,0-15,0-15,0L5,4s6,2,11,0,11,0,11,0l4,24Z" style="fill:#e5d255;"/><rect width="32" height="32" style="fill:none;"/><path d="M29.73755,20.42542l-6.49146-3.46643-.19629-.08984c-.13184-.06055-.27441-.09082-.41602-.09082-.16602,0-.33203.04102-.48145.12402l-8.73242,4.7998c-.27637.15137-.46484.42383-.50879.73633-.04395.31152.06152.62598.28418.84766,0,0,2.30957,2.30176,2.41602,2.4082l1.86823,1.86279c4.74701-1.29248,8.53192-.93597,10.87781-.40656l2.14587-2.13104-.76569-4.59412Z" style="fill:#f8f8f8;"/><path d="M21.34817,30.00252l9.06036-8.08613,1.16946.6252-8.87434,8.81259-1.35549-1.35165ZM19.44496,28.10469l4.96705-3.98898,1.09352.66739-5.00541,4.37407-1.05516-1.05248ZM17.78148,26.44696l2.08424-1.50891,1.1127.74563-2.20622,1.75055-.99073-.98727ZM16.31783,24.98638l6.94697-4.50985.77977.45336-6.90938,4.87193-.81736-.81544ZM20.6758,24.36655l6.20517-4.33418.79741.42575-5.91137,4.63796-1.09122-.72952ZM15.01566,23.68842l4.62224-2.67569.78782.40043-4.71736,2.96566-.6927-.6904ZM25.09935,23.54344l3.34883-2.67415.90251.48175-3.20461,2.85979-1.04672-.66739ZM13.90181,22.57764l8.73242-4.79905.19561.08975.38317.20482-8.80108,5.01385-.51013-.50936ZM20.45832,20.55323l3.508-2.07811.61599.32909-3.41787,2.14024-.70613-.39123ZM23.97361,20.02546l1.32979-.83615.71303.38125-1.29105.86991-.75177-.41501Z" style="fill:#49b0f2;"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?><svg id="Icons" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M16,2.48999v9.97998c-4.17999-.76001-4.29999-.70001-6,.96002,0,0-.32001.34998-.5.51001-.17999-.16003-.5-.51001-.5-.51001-1.70001-1.66003-1.82001-1.72003-6-.96002V2.48999c5.22998-1.13,5.62.13,6.5.71002.88-.58002,1.27002-1.84003,6.5-.71002Z" style="fill:#6e6e6e;"/><path d="M16,2.48999c-2.71283-.58612-4.11847-.52734-4.9707-.25586-.01062.099-.0293.19397-.0293.2981v.79401c-.18683.10175-.33374.22351-.48999.35376-.15002.13-.29999.25-.46002.35999l-.54999.35999-.54999-.35999c-.16003-.10999-.31-.22998-.46002-.35999-.41998-.35004-.77002-.64001-2.02002-.64001-.65997,0-1.48999.09003-2.46997.27002v4.69h-1v4.46997c3.21002-.57996,4.03003-.67999,5,.04999v-1.16998c.53003.26001.97998.66998,1.5,1.16998.95001-.91998,1.65002-1.56995,3.12-1.56995.62,0,1.35999.08002,2.38.25v-1.7854l1-1.00146V2.48999Z" style="fill:#f8f8f8;"/><path d="M14,1c-1.1044,0-2,.42515-2,1.53207v4.46468l2,2.00326,2-2.00326V2.53207c0-1.10691-.8956-1.53207-2-1.53207Z" style="fill:#47a898;"/><rect x="13" y="2" width="2" height="2" rx=".75" ry=".75" style="fill:#f8f8f8;"/><path d="M9.41669,3.24298c-.14819,0-.28241-.02075-.41669-.04132v9.92139h1V3.17865c-.18134.04016-.37433.06433-.58331.06433Z" style="fill:#6e6e6e;"/><path d="M9,13.42999s.32001.34998.5.51001c.17999-.16003.5-.51001.5-.51001.39539-.38611.70459-.68231,1-.90509v-3.5249c0-1.10254-.89746-2-2-2h-.26855c-.3457-.59766-.99219-1-1.73145-1H3v6.46997c4.17999-.76001,4.29999-.70001,6,.96002Z" style="fill:#f8f8f8;"/><rect x="1.5" y="6.49999" width="7.00001" height="10" rx="1" ry="1" transform="translate(-6.49999 16.49995) rotate(-89.99982)" style="fill:#6e6e6e;"/><rect x="2.49998" y="7.49997" width="5.00003" height="8" transform="translate(16.49997 6.49997) rotate(90)" style="fill:#ccc;"/><rect x=".50001" y="8.5" width="8.99998" height="5.99998" rx="1" ry="1" transform="translate(-6.50001 16.49997) rotate(-89.99987)" style="fill:#6e6e6e;"/><rect x="1.5" y="9.49998" width="7" height="4" transform="translate(16.49998 6.49998) rotate(90)" style="fill:#f8f8f8;"/><rect x="4" y="8.99998" width="2" height="1" style="fill:#47a898;"/><rect width="16" height="16" style="fill:none;"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?><svg id="Icons" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path d="M18.5,6.80002c-1.35683-.86819-3.47396-2.76096-11.5-1.06494v17.78101c6.41176-1.13498,8.12927-1.04938,10.73333,1.44745,0,0,.49788.5181.76667.76859.26878-.25049.76667-.76859.76667-.76859,2.60406-2.49683,4.32158-2.58243,10.73333-1.44745V5.73508c-8.02604-1.69601-10.14317.19675-11.5,1.06494Z" style="fill:#6e6e6e;"/><path d="M30,5.73505c-4.65527-.9837-7.31586-.76581-9-.23505v1.06409c-.73499.27087-1.24457.60431-1.67236.88904l-.82764.53418-.82715-.53418c-.88965-.59082-2.10742-1.40039-5.04639-1.40039-1.32373,0-2.87695.16797-4.62646.50195v15.77344c1.88379-.31445,3.43213-.5127,4.6958-.5127,2.3623,0,3.86133.63477,5.7583,2.45508.00049.00098.01709.01855.0459.04785.04102-.04199.06787-.06934.07471-.07617,1.86816-1.79199,3.36719-2.42676,5.72949-2.42676,1.26367,0,2.81201.19824,4.6958.5127v-6.77374l1-.93896V5.73505Z" style="fill:#f8f8f8;"/><path d="M26,2c-2.2088,0-4,.79716-4,2.87263v8.37127l4,3.75611,4-3.75611V4.87263c0-2.07546-1.7912-2.87263-4-2.87263Z" style="fill:#47a898;"/><path d="M26,9c-1.10457,0-2-.89543-2-2s.89543-2,2-2,2,.89543,2,2v.0009c-.00004,1.10412-.89514,1.99914-1.99926,1.9991-.00025,0-.00049,0-.00074,0Z" style="fill:#fff;"/><path d="M18.41669,6.86447c-.14819,0-.28241-.03113-.41669-.06198v17.69751h1V6.76797c-.18134.06024-.37433.0965-.58331.0965Z" style="fill:#6e6e6e;"/><path d="M14.18164,17h-1.18164c0-1.10254-.89746-2-2-2h-4v8.51605c4.92981-.87262,7.08362-1.01843,9,.0932v-4.79089c0-1.00293-.81543-1.81836-1.81836-1.81836Z" style="fill:#f8f8f8;"/><rect x="-.00003" y="17.99997" width="15.00003" height="11.99997" rx=".81817" ry=".81817" style="fill:#6e6e6e;"/><rect width="32" height="32" style="fill:none;"/><rect x="2.49998" y="17.49997" width="10" height="13.00003" transform="translate(31.49997 16.5) rotate(90)" style="fill:#ccc;"/><rect x="-.49998" y="19.49998" width="15.99996" height="9.00003" rx="1" ry="1" transform="translate(-16.50001 31.49993) rotate(-89.99985)" style="fill:#6e6e6e;"/><rect x="3.99997" y="16.99998" width="7.00006" height="14" style="fill:#f8f8f8;"/><rect x="5" y="18.99998" width="5" height="1" style="fill:#47a898;"/></svg>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"hosted":"hosted","hostedView":"hosted, view","hostedPhotos":"hosted, photos","hostedCollection":"hosted, collection","hostedMultidimensional":"hosted, multidimensional","hostedCollectionMultidimensional":"hosted, collection, multidimensional","collectionMultidimensional":"collection, multidimensional","multidimensional":"multidimensional","collection":"collection","photoLocations":"photos","locatorView":"view","utilityNetwork":"utility network","parcelFabric":"parcel fabric","parcelFabricHosted":"parcel fabric, hosted","Integrated Mesh":"integrated mesh","3D Object":"3D object","Point":"point","Point Cloud":"point cloud","Building Scene Layer":"building scene layer","Voxel Scene Layer":"voxel scene layer","dataStore":{"bigdata":"big data file share","cloud":"cloud","cloudStorage":"cloud storage","database":"database","folder":"folder"}}
|
|
1
|
+
{"hosted":"hosted","hostedView":"hosted, view","hostedPhotos":"hosted, photos","hostedCollection":"hosted, collection","hostedMultidimensional":"hosted, multidimensional","hostedCollectionMultidimensional":"hosted, collection, multidimensional","collectionMultidimensional":"collection, multidimensional","multidimensional":"multidimensional","query":"query","collection":"collection","photoLocations":"photos","locatorView":"view","utilityNetwork":"utility network","parcelFabric":"parcel fabric","parcelFabricHosted":"parcel fabric, hosted","Integrated Mesh":"integrated mesh","3D Object":"3D object","Point":"point","Point Cloud":"point cloud","Building Scene Layer":"building scene layer","Voxel Scene Layer":"voxel scene layer","dataStore":{"bigdata":"big data file share","cloud":"cloud","cloudStorage":"cloud storage","database":"database","folder":"folder"}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"expand":"Expand","showLess":"Show less","homepage":"Home page","gallery":"Gallery","profile":"Profile","groups":"Groups (${number})","items":"Items (${number})","viewAll":"View all","loadingUserInformation":"Loading user information","itemManagedBy":"Item managed by: ${username}"}
|
package/dist/cdn/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{
|
|
2
|
+
import{P as a,z as e}from"./WJ2NMHDE.js";import"./YIMNOUTF.js";var r=e(a,{"arcgis-portal-ai-assistant":[()=>import("./3BJVGCJG.js"),"autoDestroyDisabled,config:,defaultClosed,navigationTargetMap:,portal:,t9n:,user:"],"arcgis-portal-ai-assistant-interrupt":[()=>import("./BZTVED5W.js"),"_messages:,message,options:,type"],"arcgis-portal-browser":[()=>import("./VSKX2QMZ.js"),"_messages:,alwaysShowContent,alwaysShowPagination,alwaysShowSelection,formFactor,height,hideContentTop,hideFilters,hideTopBar,loading,panel,preview,rangeFormatter:,response:,searchTerm,selected:,showPreSearch,store:;scrollToTop"],"arcgis-portal-browser-filter":[()=>import("./M7ABAD7K.js"),"active,clearDisabled,clearLabel,expanded,filterId,heading,noPadding,primary"],"arcgis-portal-browser-filter-date":[()=>import("./HB7GO6ST.js"),"_messages:,end,expanded,includeNever,property,range,serverProperty,start,store:"],"arcgis-portal-browser-filter-status":[()=>import("./O7ICV6C7.js"),"_messages:,browserWidth,componentWidth,filters:,hiddenFilterIds:"],"arcgis-portal-browser-filters":[()=>import("./OKHKS5RH.js"),"store:"],"arcgis-portal-classification-banner":[()=>import("./GDZZCADX.js"),"autoDestroyDisabled,messages:,missingExistingClassification,portalItem:,validationErrors,variant;destroy"],"arcgis-portal-classification-config":[()=>import("./FRDK7SCC.js"),"autoDestroyDisabled,messages:,portalItem:,status,valid,values;destroy,resetForm,validateForm"],"arcgis-portal-classification-favorite":[()=>import("./47NPIL2S.js"),"attributeExpressionResults:,classificationValue:,favoriteClassifications:,messages:,portalItem:,resetFavoriteClassification:,selectedFavoriteClassificationName,updateClassificationData:"],"arcgis-portal-classification-form-element":[()=>import("./OKRYML2G.js"),"attribute:,attributeKey,isRequiredErrors:,messages:,renderingInfo:,value:"],"arcgis-portal-extent-picker":[()=>import("./FI45QCN2.js"),"active,contentOnly,extentService,extentValue:,isArea,itemId,messages:,portal:;;getExtent"],"arcgis-portal-extent-picker-coord-field":[()=>import("./YECI7XG3.js"),"errorMessage,inputId,label,max,min,relatedErrorMessage,validateRelated:,value;;checkRelatedField,isValid,setFocus"],"arcgis-portal-field-delete":[()=>import("./PFCDINAN.js"),"config:,fieldNames:,layer:,mapView:,messages:,options:"],"arcgis-portal-group-badges":[()=>import("./MLTQECPL.js"),"_messages:,appearance,empty,group:,portal:,scale,showTooltips,width"],"arcgis-portal-group-card":[()=>import("./32CZ4VLI.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("./ZDLFZJBT.js"),"group:,portal:,scale,tooltip"],"arcgis-portal-item-type":[()=>import("./GEIZTD7F.js"),"ellipsis,hideIcon,hideText,item:,messages:,portal:,scale,serviceInfo:,showHosted,user:"],"arcgis-portal-mentionable-text-area":[()=>import("./DY5G63YO.js"),"disabled,maxLength,placeholder,popoverListLabel,popoverPlacement,portal:,readOnly,rows,scale,starters:,user:,value;closePopover,focusTextArea,selectItem"],"arcgis-portal-replacement-item-redirect":[()=>import("./VTLIQOV4.js"),"itemId,messages:,portal:,user:;setFocus"],"arcgis-portal-user-avatar":[()=>import("./KZWW4BWJ.js"),"checkOnline,description,heading,hideAvatar,messages:,portal:,scale,showName,underline,user:,username,wrap"],"arcgis-portal-user-popup":[()=>import("./YGKPNY5R.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("./HGSK6OFA.js"),"language;clearText,startListening,stopListening"]});r({resourcesUrl:import.meta.url});var t=new CSSStyleSheet;t.replaceSync("@layer{:not([hydrated]):is(arcgis-portal-ai-assistant,arcgis-portal-ai-assistant-interrupt,arcgis-portal-browser,arcgis-portal-browser-filter,arcgis-portal-browser-filter-date,arcgis-portal-browser-filter-status,arcgis-portal-browser-filters,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-item-type,arcgis-portal-mentionable-text-area,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,a)
|
package/dist/cdn/main.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@layer{:not([hydrated]):is(arcgis-portal-ai-assistant,arcgis-portal-ai-assistant-interrupt,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-item-type,arcgis-portal-mentionable-text-area,arcgis-portal-replacement-item-redirect,arcgis-portal-user-avatar,arcgis-portal-voice-input){visibility:hidden}}
|
|
1
|
+
@layer{:not([hydrated]):is(arcgis-portal-ai-assistant,arcgis-portal-ai-assistant-interrupt,arcgis-portal-browser,arcgis-portal-browser-filter,arcgis-portal-browser-filter-date,arcgis-portal-browser-filter-status,arcgis-portal-browser-filters,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-item-type,arcgis-portal-mentionable-text-area,arcgis-portal-replacement-item-redirect,arcgis-portal-user-avatar,arcgis-portal-user-popup,arcgis-portal-voice-input){visibility:hidden}}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
+
import { Sanitizer as c } from "@esri/arcgis-html-sanitizer";
|
|
3
|
+
function a(n) {
|
|
4
|
+
return new c().sanitize(n);
|
|
5
|
+
}
|
|
6
|
+
function d(n) {
|
|
7
|
+
const e = a(n), t = document.createElement("div");
|
|
8
|
+
return t.innerHTML = e, t.textContent || t.innerText || "";
|
|
9
|
+
}
|
|
10
|
+
function m(n, e) {
|
|
11
|
+
let t = n;
|
|
12
|
+
for (; t; ) {
|
|
13
|
+
if (t.matches?.(e))
|
|
14
|
+
return t;
|
|
15
|
+
const i = t.closest(e);
|
|
16
|
+
if (i)
|
|
17
|
+
return i;
|
|
18
|
+
const o = t.getRootNode?.();
|
|
19
|
+
t = o instanceof ShadowRoot ? o.host : t.parentElement;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
const s = document.createElement("canvas").getContext("2d"), r = {}, h = ({ text: n, font: e }) => {
|
|
23
|
+
if (e && (r[e] = r[e] || {}, r[e][n]))
|
|
24
|
+
return r[e][n];
|
|
25
|
+
if (!s)
|
|
26
|
+
return n.length * 8;
|
|
27
|
+
s.font = e || "14px 'Avenir Next'";
|
|
28
|
+
const t = s.measureText(n);
|
|
29
|
+
return e && (r[e][n] = t.width), t.width;
|
|
30
|
+
};
|
|
31
|
+
export {
|
|
32
|
+
a,
|
|
33
|
+
m as c,
|
|
34
|
+
h as g,
|
|
35
|
+
d as s
|
|
36
|
+
};
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
const
|
|
2
|
+
const t = (e) => {
|
|
3
3
|
throw new Error(`Unexpected value: ${e}`);
|
|
4
4
|
}, a = async (e) => {
|
|
5
|
-
await new Promise((
|
|
6
|
-
};
|
|
5
|
+
await new Promise((s) => setTimeout(s, e));
|
|
6
|
+
}, n = (e, s) => e.includes(s);
|
|
7
7
|
export {
|
|
8
|
-
|
|
8
|
+
t as a,
|
|
9
|
+
n as i,
|
|
9
10
|
a as t
|
|
10
11
|
};
|
package/dist/chunks/groups.js
CHANGED
|
@@ -1,86 +1,10 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
|
|
3
|
-
import { g as a } from "./portal.js";
|
|
4
|
-
const l = async (o, t, e) => {
|
|
5
|
-
try {
|
|
6
|
-
return { result: await o.queryItems({ ...e, query: `title:${t}` }) };
|
|
7
|
-
} catch (r) {
|
|
8
|
-
return console.error(r), { error: { code: "unhandledError" } };
|
|
9
|
-
}
|
|
10
|
-
}, p = async (o, t, e) => {
|
|
11
|
-
const r = `${t.restUrl}/content/users/${o.id}/items/${e}/generateContext`;
|
|
12
|
-
try {
|
|
13
|
-
return {
|
|
14
|
-
result: (await n(r, {
|
|
15
|
-
method: "post",
|
|
16
|
-
responseType: "json",
|
|
17
|
-
query: { f: "json" }
|
|
18
|
-
})).data
|
|
19
|
-
};
|
|
20
|
-
} catch (s) {
|
|
21
|
-
return console.error("Error fetching item context:", s), { error: { code: "unhandledError" } };
|
|
22
|
-
}
|
|
23
|
-
};
|
|
24
|
-
async function m(o, t = {}) {
|
|
25
|
-
return await o.queryGroups(t);
|
|
26
|
-
}
|
|
27
|
-
async function g(o, t) {
|
|
28
|
-
const e = t.title.trim();
|
|
29
|
-
if (!e)
|
|
30
|
-
return { error: { code: "unhandledError", message: "Group title is required." } };
|
|
31
|
-
try {
|
|
32
|
-
const { data: r } = await n(`${a(o)}community/createGroup`, {
|
|
33
|
-
method: "post",
|
|
34
|
-
responseType: "json",
|
|
35
|
-
query: {
|
|
36
|
-
f: "json",
|
|
37
|
-
...t,
|
|
38
|
-
title: e
|
|
39
|
-
}
|
|
40
|
-
});
|
|
41
|
-
return !r.success || !r.group?.id ? {
|
|
42
|
-
error: {
|
|
43
|
-
code: "unhandledError",
|
|
44
|
-
message: "Unable to create a group with the provided title."
|
|
45
|
-
}
|
|
46
|
-
} : {
|
|
47
|
-
result: {
|
|
48
|
-
id: r.group.id,
|
|
49
|
-
title: r.group.title || e
|
|
50
|
-
}
|
|
51
|
-
};
|
|
52
|
-
} catch (r) {
|
|
53
|
-
return console.error("Error creating portal group:", r), {
|
|
54
|
-
error: {
|
|
55
|
-
code: "unhandledError",
|
|
56
|
-
message: r.details.messages.join(",")
|
|
57
|
-
}
|
|
58
|
-
};
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
async function y(o, t, e) {
|
|
62
|
-
if (!e.length)
|
|
63
|
-
return { error: { code: "unhandledError", message: "At least one username is required." } };
|
|
64
|
-
try {
|
|
65
|
-
const { data: r } = await n(
|
|
66
|
-
`${a(o)}community/groups/${t}/addUsers`,
|
|
67
|
-
{
|
|
68
|
-
method: "post",
|
|
69
|
-
responseType: "json",
|
|
70
|
-
query: { f: "json", users: e.join(",") }
|
|
71
|
-
}
|
|
72
|
-
), s = r.notAdded;
|
|
73
|
-
return {
|
|
74
|
-
result: { addedUsernames: s?.length ? e.filter((d) => !s.includes(d)) : e, notAddedUsers: r.notAddedDetails }
|
|
75
|
-
};
|
|
76
|
-
} catch (r) {
|
|
77
|
-
return console.error("Error adding users to portal group:", r), { error: { code: "unhandledError" } };
|
|
78
|
-
}
|
|
79
|
-
}
|
|
2
|
+
const e = (s) => s.sourceJSON, t = (s) => e(s)?.capabilities ?? [], i = (s) => e(s).orgId, o = (s) => e(s).membershipAccess, a = (s) => e(s).isOpenData === !0, r = (s) => t(s).includes("distributed");
|
|
80
3
|
export {
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
4
|
+
i as a,
|
|
5
|
+
o as b,
|
|
6
|
+
e as c,
|
|
7
|
+
r as d,
|
|
8
|
+
t as g,
|
|
9
|
+
a as i
|
|
86
10
|
};
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
+
import n from "@arcgis/core/request.js";
|
|
3
|
+
import { g as a } from "./portal.js";
|
|
4
|
+
async function l(o, t = {}) {
|
|
5
|
+
return await o.queryGroups(t);
|
|
6
|
+
}
|
|
7
|
+
async function p(o, t) {
|
|
8
|
+
const e = t.title.trim();
|
|
9
|
+
if (!e)
|
|
10
|
+
return { error: { code: "unhandledError", message: "Group title is required." } };
|
|
11
|
+
try {
|
|
12
|
+
const { data: r } = await n(`${a(o)}community/createGroup`, {
|
|
13
|
+
method: "post",
|
|
14
|
+
responseType: "json",
|
|
15
|
+
query: {
|
|
16
|
+
f: "json",
|
|
17
|
+
...t,
|
|
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 m(o, t, 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
|
+
`${a(o)}community/groups/${t}/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((d) => !s.includes(d)) : e, notAddedUsers: r.notAddedDetails }
|
|
55
|
+
};
|
|
56
|
+
} catch (r) {
|
|
57
|
+
return console.error("Error adding users to portal group:", r), { error: { code: "unhandledError" } };
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
const g = async (o, t, e) => {
|
|
61
|
+
try {
|
|
62
|
+
return { result: await o.queryItems({ ...e, query: `title:${t}` }) };
|
|
63
|
+
} catch (r) {
|
|
64
|
+
return console.error(r), { error: { code: "unhandledError" } };
|
|
65
|
+
}
|
|
66
|
+
}, y = async (o, t, e) => {
|
|
67
|
+
const r = `${t.restUrl}/content/users/${o.id}/items/${e}/generateContext`;
|
|
68
|
+
try {
|
|
69
|
+
return {
|
|
70
|
+
result: (await n(r, {
|
|
71
|
+
method: "post",
|
|
72
|
+
responseType: "json",
|
|
73
|
+
query: { f: "json" }
|
|
74
|
+
})).data
|
|
75
|
+
};
|
|
76
|
+
} catch (s) {
|
|
77
|
+
return console.error("Error fetching item context:", s), { error: { code: "unhandledError" } };
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
export {
|
|
81
|
+
m as a,
|
|
82
|
+
p as c,
|
|
83
|
+
y as g,
|
|
84
|
+
l as q,
|
|
85
|
+
g as s
|
|
86
|
+
};
|
package/dist/chunks/portal.js
CHANGED
|
@@ -1,16 +1,56 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
const
|
|
3
|
-
function
|
|
4
|
-
return
|
|
2
|
+
const s = (e) => e && !e.endsWith("/") ? `${e}/` : e;
|
|
3
|
+
function i(e) {
|
|
4
|
+
return s(e.restUrl);
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function p(e) {
|
|
7
7
|
return e.credential?.token || e.token || e.user?.credential?.token || e.portalUser?.token || "";
|
|
8
8
|
}
|
|
9
|
-
function
|
|
9
|
+
function c(e) {
|
|
10
10
|
return e.sourceJSON?.isWebTierAuth;
|
|
11
11
|
}
|
|
12
|
+
function a(e, r, t) {
|
|
13
|
+
if (!r?.type)
|
|
14
|
+
return !1;
|
|
15
|
+
const n = r.typeKeywords ?? [];
|
|
16
|
+
switch (e) {
|
|
17
|
+
case "arcgisinstantapps":
|
|
18
|
+
return r.type === "Web Mapping Application" && n.includes("configurableApp");
|
|
19
|
+
case "arcgis360vr":
|
|
20
|
+
return !t && r.type === "360 VR Experience";
|
|
21
|
+
case "survey123":
|
|
22
|
+
return r.type === "Form";
|
|
23
|
+
case "datapipelines":
|
|
24
|
+
return r.type === "Data Pipeline";
|
|
25
|
+
case "dashboards":
|
|
26
|
+
return r.type === "Dashboard";
|
|
27
|
+
case "experienceBuilder":
|
|
28
|
+
return r.type === "Web Experience" || r.type === "Web Experience Template";
|
|
29
|
+
case "webappbuilder":
|
|
30
|
+
return r.type === "Web Mapping Application" && (n.includes("Web AppBuilder") || n.includes("WebAppBuilder"));
|
|
31
|
+
case "fieldmaps":
|
|
32
|
+
return r.type === "Web Map";
|
|
33
|
+
case "arcgisnotebooks":
|
|
34
|
+
return r.type === "Notebook";
|
|
35
|
+
case "HubforArcGIS":
|
|
36
|
+
return [
|
|
37
|
+
"Discussion",
|
|
38
|
+
"Hub Page",
|
|
39
|
+
"Hub Initiative Template",
|
|
40
|
+
"Hub Initiative",
|
|
41
|
+
"Hub Event",
|
|
42
|
+
"Hub Project"
|
|
43
|
+
].includes(r.type);
|
|
44
|
+
default:
|
|
45
|
+
return !1;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
function u(e, r, t) {
|
|
49
|
+
return (r ?? []).some((n) => a(n, e, t));
|
|
50
|
+
}
|
|
12
51
|
export {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
i
|
|
52
|
+
p as a,
|
|
53
|
+
u as b,
|
|
54
|
+
i as g,
|
|
55
|
+
c as i
|
|
16
56
|
};
|
package/dist/chunks/user2.js
CHANGED
|
@@ -3,28 +3,28 @@ import { i as C, a as b, g as w } from "./portal.js";
|
|
|
3
3
|
import E from "@arcgis/core/identity/IdentityManager.js";
|
|
4
4
|
import A from "@arcgis/core/request.js";
|
|
5
5
|
const u = {}, f = {}, l = {};
|
|
6
|
-
async function p({ requester: t, key: e, id:
|
|
7
|
-
const r = l[e]?.[
|
|
8
|
-
if (u[e]?.[
|
|
9
|
-
return u[e][
|
|
10
|
-
f[e] || (f[e] = {}), (!f[e][
|
|
11
|
-
const o = await f[e][
|
|
12
|
-
if (u[e] || (u[e] = {}), l[e] || (l[e] = {}), u[e][
|
|
13
|
-
const { expireAfter: a, getExpireAfterFromResult: c } =
|
|
14
|
-
l[e][
|
|
6
|
+
async function p({ requester: t, key: e, id: s, cacheOption: n }) {
|
|
7
|
+
const r = l[e]?.[s]?.expireAt, i = !!r && (/* @__PURE__ */ new Date()).getTime() > r;
|
|
8
|
+
if (u[e]?.[s] && !i)
|
|
9
|
+
return u[e][s];
|
|
10
|
+
f[e] || (f[e] = {}), (!f[e][s] || i) && (f[e][s] = t());
|
|
11
|
+
const o = await f[e][s];
|
|
12
|
+
if (u[e] || (u[e] = {}), l[e] || (l[e] = {}), u[e][s] = o, n) {
|
|
13
|
+
const { expireAfter: a, getExpireAfterFromResult: c } = n, h = c || a ? (/* @__PURE__ */ new Date()).getTime() + (c?.(o) ?? a ?? 0) : null;
|
|
14
|
+
l[e][s] = { ...l[e][s], expireAt: h };
|
|
15
15
|
}
|
|
16
16
|
return o;
|
|
17
17
|
}
|
|
18
18
|
async function x({
|
|
19
19
|
url: t,
|
|
20
20
|
portal: e,
|
|
21
|
-
params:
|
|
22
|
-
options:
|
|
21
|
+
params: s = {},
|
|
22
|
+
options: n = {},
|
|
23
23
|
method: r,
|
|
24
24
|
abortControllerId: i,
|
|
25
25
|
excludeJson: o
|
|
26
26
|
}) {
|
|
27
|
-
const a = R(i)?.signal, { customToken: c, addTokenManually: h, addSSL: P, useProxy: S } =
|
|
27
|
+
const a = R(i)?.signal, { customToken: c, addTokenManually: h, addSSL: P, useProxy: S } = n, m = { ...s };
|
|
28
28
|
if (!t.includes("f=") && !o && (m.f = "json"), c)
|
|
29
29
|
m.token = c;
|
|
30
30
|
else if (h !== !1) {
|
|
@@ -34,10 +34,10 @@ async function x({
|
|
|
34
34
|
const T = P ? U(t, e) : t, q = {
|
|
35
35
|
query: m,
|
|
36
36
|
method: r || "auto",
|
|
37
|
-
...
|
|
38
|
-
timeout:
|
|
37
|
+
...n,
|
|
38
|
+
timeout: n.timeout || 0,
|
|
39
39
|
useProxy: S,
|
|
40
|
-
...
|
|
40
|
+
...n?.disableIdentityLookup ? { authMode: "anonymous" } : {}
|
|
41
41
|
}, y = await A(T, { signal: a, ...q });
|
|
42
42
|
return i && (d[i] = void 0), y.data;
|
|
43
43
|
}
|
|
@@ -50,24 +50,24 @@ const $ = async (t) => {
|
|
|
50
50
|
const e = C(t);
|
|
51
51
|
if (!t?.isPortal || !e)
|
|
52
52
|
return b(t);
|
|
53
|
-
const
|
|
54
|
-
if (!
|
|
53
|
+
const s = t?.user;
|
|
54
|
+
if (!s && e)
|
|
55
55
|
return;
|
|
56
|
-
const { token:
|
|
56
|
+
const { token: n } = await p({
|
|
57
57
|
requester: async () => await L(t),
|
|
58
58
|
key: "platformSelf",
|
|
59
|
-
id:
|
|
59
|
+
id: s?.id ?? t.id ?? "<unknown>",
|
|
60
60
|
cacheOption: { getExpireAfterFromResult: (r) => r.expires_in }
|
|
61
61
|
});
|
|
62
|
-
return
|
|
62
|
+
return n;
|
|
63
63
|
}, L = async (t) => {
|
|
64
|
-
const
|
|
64
|
+
const s = {
|
|
65
65
|
"X-Esri-Auth-Client-Id": await M(t),
|
|
66
66
|
"X-Esri-Auth-Redirect-Uri": window.location.href.replace(/#.*$/u, "")
|
|
67
67
|
};
|
|
68
68
|
return (await A(`${w(t)}/oauth2/platformSelf`, {
|
|
69
69
|
authMode: "no-prompt",
|
|
70
|
-
headers:
|
|
70
|
+
headers: s,
|
|
71
71
|
withCredentials: !0,
|
|
72
72
|
method: "post"
|
|
73
73
|
})).data;
|
|
@@ -79,8 +79,8 @@ const $ = async (t) => {
|
|
|
79
79
|
function U(t, e) {
|
|
80
80
|
return window.location.protocol === "https:" || e.allSSL ? t.replace("http:", "https:") : t;
|
|
81
81
|
}
|
|
82
|
-
async function B(t, e,
|
|
83
|
-
const r = `${
|
|
82
|
+
async function B(t, e, s) {
|
|
83
|
+
const r = `${s ? "https://www.arcgis.com/sharing/rest/" : w(e)}community/users/${t}`, i = r?.includes("www.arcgis.com") && e.isPortal, o = r?.includes(".arcgis.com") && !e.isPortal && !e.user, a = i || o ? { disableIdentityLookup: !0, addTokenManually: !1 } : {};
|
|
84
84
|
return await p({
|
|
85
85
|
requester: async () => {
|
|
86
86
|
try {
|
|
@@ -109,5 +109,6 @@ const k = async (t) => {
|
|
|
109
109
|
export {
|
|
110
110
|
p as a,
|
|
111
111
|
k as b,
|
|
112
|
-
B as f
|
|
112
|
+
B as f,
|
|
113
|
+
x as r
|
|
113
114
|
};
|
|
@@ -1,7 +1,16 @@
|
|
|
1
|
-
export type
|
|
1
|
+
export type PortalNavigationTarget = { destinationType: "portal-content"; } | {
|
|
2
2
|
destinationType: "portal-group";
|
|
3
3
|
groupId: string;
|
|
4
4
|
} | { destinationType: "portal-groups"; } | {
|
|
5
5
|
destinationType: "portal-item";
|
|
6
6
|
itemId: string;
|
|
7
|
-
};
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
export type PartialPortalNavigationTargetMap = Partial<PortalNavigationTargetMap>;
|
|
10
|
+
|
|
11
|
+
export interface PortalNavigationTargetMap {
|
|
12
|
+
"portal-content": string;
|
|
13
|
+
"portal-groups": string;
|
|
14
|
+
"portal-item": (itemId: string) => string;
|
|
15
|
+
"portal-group": (groupId: string) => string;
|
|
16
|
+
}
|
|
@@ -3,7 +3,7 @@ import type Portal from "@arcgis/core/portal/Portal.js";
|
|
|
3
3
|
import type PortalUser from "@arcgis/core/portal/PortalUser.js";
|
|
4
4
|
import type { Config } from "@arcgis/core/config.js";
|
|
5
5
|
import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
6
|
-
import type {
|
|
6
|
+
import type { PartialPortalNavigationTargetMap, PortalNavigationTarget } from "./agents/types.js";
|
|
7
7
|
import type { T9nMeta } from "@arcgis/lumina/controllers";
|
|
8
8
|
|
|
9
9
|
/** @internal */
|
|
@@ -13,6 +13,8 @@ export abstract class ArcgisPortalAiAssistant extends LitElement {
|
|
|
13
13
|
accessor config: Config;
|
|
14
14
|
/** @default false */
|
|
15
15
|
accessor defaultClosed: boolean;
|
|
16
|
+
/** Optional map of navigation target overrides for generating navigation hrefs from portal navigation suggestions. */
|
|
17
|
+
accessor navigationTargetMap: PartialPortalNavigationTargetMap | undefined;
|
|
16
18
|
accessor portal: Portal;
|
|
17
19
|
/** @internal */
|
|
18
20
|
protected t9n: {
|
|
@@ -113,7 +115,7 @@ export abstract class ArcgisPortalAiAssistant extends LitElement {
|
|
|
113
115
|
accessor user: PortalUser;
|
|
114
116
|
readonly arcgisPortalNavigationRequest: import("@arcgis/lumina").TargetedEvent<this, {
|
|
115
117
|
href: string;
|
|
116
|
-
targetDetail:
|
|
118
|
+
targetDetail: PortalNavigationTarget;
|
|
117
119
|
}>;
|
|
118
120
|
readonly "@eventTypes": {
|
|
119
121
|
arcgisPortalNavigationRequest: ArcgisPortalAiAssistant["arcgisPortalNavigationRequest"]["detail"];
|