@arcgis/portal-components 5.2.0-next.91 → 5.2.0-next.94
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/2QCYQYNA.js +2 -0
- package/dist/cdn/4NXBBNYR.js +2 -0
- package/dist/cdn/{5Q7A62C3.js → 7VNYKGBJ.js} +85 -81
- package/dist/cdn/{QH47GJCC.js → BL2ZND4S.js} +1 -1
- package/dist/cdn/{E7MAKHJ5.js → POQBF4N7.js} +1 -1
- package/dist/cdn/{SXBAVMP3.js → R77U3ROB.js} +1 -1
- package/dist/cdn/TBQ5W7VE.js +2 -0
- package/dist/cdn/assets/portal-item-badges/t9n/messages.en.json +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/portal-item-badge.js +74 -71
- package/dist/chunks/utils2.js +28 -20
- package/dist/components/arcgis-portal-ai-assistant/customElement.js +516 -491
- package/dist/components/arcgis-portal-ai-assistant/data/capability-registries/types.d.ts +15 -8
- package/dist/components/arcgis-portal-navigation/customElement.js +159 -156
- package/dist/components/arcgis-portal-navigation/index.js +1 -0
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/package.json +5 -5
- package/dist/cdn/K42KPAN7.js +0 -2
- package/dist/cdn/SKRCLDPZ.js +0 -2
- package/dist/cdn/YZNRN2K5.js +0 -2
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import e from"./
|
|
2
|
+
import e from"./TBQ5W7VE.js";import d from"./OEMNHYK6.js";import"./6TO2BYXU.js";import"./6KVA4AKM.js";import"./CFBSBZSS.js";import"./ILDTKRON.js";import"./OBBYT2AV.js";import"./DFTUMKSN.js";import c from"./RBGARTND.js";import b from"./F3ODJVJC.js";import a from"./OUFIJDIW.js";import"./VMQIDO4Z.js";import"./QS3GXAIH.js";import"./2GBRZSEC.js";import"./QLHCXOVQ.js";import"./I2KQQXOO.js";import"./W7O7ZYZ4.js";import"./BTSXQQKZ.js";import"./UZLQALHY.js";export default $arcgis.t(([,,,,{b:r}])=>{return r},a,b,c,d,e)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import c from"./
|
|
2
|
+
import c from"./2QCYQYNA.js";import b from"./T3LU5V74.js";import"./VMQIDO4Z.js";import"./QS3GXAIH.js";import"./2GBRZSEC.js";import{a as f}from"./QLHCXOVQ.js";import"./I2KQQXOO.js";import"./W7O7ZYZ4.js";import{M as d,N as h,P as p,S as g,T as y,h as m,j as a}from"./BTSXQQKZ.js";import"./UZLQALHY.js";export default $arcgis.t(([,{b:x}])=>{var $=m`:host{display:inline-flex;align-items:center}:host([scale="s"]){--arcgis-portal-item-type-font-size: var(--calcite-font-size--2);--arcgis-portal-item-type-spacing: 1rem}:host([scale="m"]){--arcgis-portal-item-type-font-size: var(--calcite-font-size--1);--arcgis-portal-item-type-spacing: 1rem}:host([scale="l"]){--arcgis-portal-item-type-font-size: var(--calcite-font-size-0);--arcgis-portal-item-type-spacing: 1rem}.icon{display:block;flex-grow:0;flex-shrink:0;width:var(--arcgis-portal-item-type-spacing);height:var(--arcgis-portal-item-type-spacing)}.text{color:var(--calcite-text-color-2);font-size:var(--arcgis-portal-item-type-font-size);line-height:1.25rem}.text--ellipsis{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.text--spaced{margin-inline-start:calc(var(--arcgis-portal-item-type-spacing) / 2);word-wrap:break-word;word-break:break-word}`,n=class extends d{constructor(){super(...arguments),this.messages=f({blocking:!0}),this.icon=null,this.displayName="",this.displayNameHosted="",this.scale="s"}static{this.properties={icon:16,displayName:16,displayNameHosted:16,item:0,serviceInfo:0,portal:0,user:0,scale:3,hideText:5,hideIcon:5,ellipsis:5,showHosted:5}}static{this.styles=$}async load(){this.item&&await this.getItemDisplayInformation()}async getItemDisplayInformation(){let{messages:o,user:r,serviceInfo:l,portal:e,item:t}=this,{displayName:i,displayNameHosted:c,icon:s}=await x({item:t,messages:o,serviceInfo:l,user:r,portal:e||t.portal});this.displayName=i,this.displayNameHosted=c,this.icon=s}render(){let{showHosted:o,displayNameHosted:r,scale:l,icon:e,hideText:t,hideIcon:i,ellipsis:c}=this;if(!e)return null;let s=o?r:this.displayName,v=s?.includes("(")?"":"‭",w=y(`./assets/portal-item-type/icons/${e}16.svg`),u=this.hideText?s:void 0;return a`${!i&&a`<span class="icon"><img src=${w??p} alt=${(u||"")??p} class=${`icon icon--${l}`}></span>`||""}${!t&&a`<span class=${h({text:!0,"text--spaced":!i,"text--ellipsis":c})} .innerHTML=${`${v}${s}`}></span>`||""}`}};g("arcgis-portal-item-type",n);return n},b,c)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import f from"./
|
|
2
|
+
import f from"./TBQ5W7VE.js";import e from"./OEMNHYK6.js";import"./6TO2BYXU.js";import"./6KVA4AKM.js";import"./CFBSBZSS.js";import"./ILDTKRON.js";import"./OBBYT2AV.js";import"./DFTUMKSN.js";import d from"./RBGARTND.js";import c from"./F3ODJVJC.js";import b from"./OUFIJDIW.js";import"./VMQIDO4Z.js";import"./QS3GXAIH.js";import"./2GBRZSEC.js";import"./QLHCXOVQ.js";import"./I2KQQXOO.js";import"./W7O7ZYZ4.js";import{M as r,S as o,h as i,j as a}from"./BTSXQQKZ.js";import"./UZLQALHY.js";export default $arcgis.t(([,,,,{a:p}])=>{var n=i`:host{display:flex;flex-wrap:wrap;align-items:center}.portal-item-badges__badge{display:inline-block;margin-inline-end:.25rem}.portal-item-badges__badge:last-of-type{margin-inline-end:0}`,e=class extends r{constructor(){super(...arguments),this.badges=[],this.width="full",this.scale="m",this.showTooltips=!1,this.empty=!1}static{this.properties={badges:16,item:0,portal:0,user:0,width:1,appearance:1,scale:1,showTooltips:5,useProduction:5,empty:7}}static{this.styles=n}willUpdate(t){if(t.has("item")||t.has("portal")||t.has("user")){if(!this.item||!this.portal){this.badges=[],this.empty=!0;return}let s=p(this.item,this.portal,this.user);this.badges=s,this.empty=s.length===0}}render(){let{appearance:t,badges:s,scale:l,showTooltips:h,width:m}=this;return s.map(d=>a`<arcgis-portal-item-badge .appearance=${t} .badgeType=${d} class="portal-item-badges__badge" .item=${this.item} .portal=${this.portal} .user=${this.user} .scale=${l} .showTooltip=${h} .useProduction=${this.useProduction} .width=${m}></arcgis-portal-item-badge>`)}};o("arcgis-portal-item-badges",e);return e},b,c,d,e,f)
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
+
import c from"./OEMNHYK6.js";import{a as m,b as f}from"./6TO2BYXU.js";import{a as C}from"./6KVA4AKM.js";import{a as D}from"./CFBSBZSS.js";import{a as h,b as d,c as b,d as M,e as x,f as $,g as L,h as B,i as W}from"./ILDTKRON.js";import a from"./RBGARTND.js";import{a as R}from"./QLHCXOVQ.js";import{M as v,N as w,P as S,S as A,h as T,j as g}from"./BTSXQQKZ.js";export default $arcgis.t(([{substitute:k},{a:I},_])=>{var z=T`.badge{--calcite-color-foreground-2: var(--arcgis-item-badge-info-background, #dfeffa);--calcite-color-text-1: var(--arcgis-item-badge-info-foreground, #00619b);--arcgis-item-badge-color: var(--arcgis-item-badge-info-foreground, #00619b);--calcite-chip-background-color: var(--arcgis-item-badge-info-background, #dfeffa);border:0}.badge--colored{--calcite-chip-icon-color: var(--calcite-color-brand)}.authoritative{--calcite-color-foreground-2: var(--arcgis-item-badge-success-background, #e4f0e4);--calcite-color-text-1: var(--arcgis-item-badge-success-foreground, #1a6324);--arcgis-item-badge-color: var(--arcgis-item-badge-success-foreground, #1a6324);--calcite-chip-background-color: var(--arcgis-item-badge-success-background, #e4f0e4)}.deprecated{--calcite-color-foreground-2: var(--arcgis-item-badge-danger-background, #fadfdc);--calcite-color-text-1: var(--arcgis-item-badge-danger-foreground, #a82b1e);--arcgis-item-badge-color: var(--arcgis-item-badge-danger-foreground, #a82b1e);--calcite-chip-background-color: var(--arcgis-item-badge-danger-background, #fadfdc)}.beta{border:0}.narrow{box-sizing:border-box;width:2rem;--calcite-chip-spacing-unit-l: 0}.narrow--s{width:1.5rem}.narrow--l{width:2.75rem}.tooltip-title{font-size:var(--calcite-font-size--1);color:var(--calcite-color-text-1);margin:0 0 .25rem;padding:0}.tooltip-text{font-size:var(--calcite-font-size--2);color:var(--calcite-color-text-1);margin:0;padding:0}:host-context(.calcite-mode-dark) .badge{--calcite-color-foreground-2: var(--arcgis-item-badge-info-background, #214155);--calcite-color-text-1: var(--arcgis-item-badge-info-foreground, #9fd4f3);--arcgis-item-badge-color: var(--arcgis-item-badge-info-foreground, #9fd4f3);--calcite-chip-background-color: var(--arcgis-item-badge-info-background, #214155)}:host-context(.calcite-mode-dark) .authoritative{--calcite-color-foreground-2: var(--arcgis-item-badge-success-background, #2b472a);--calcite-color-text-1: var(--arcgis-item-badge-success-foreground, #a2e4ab);--arcgis-item-badge-color: var(--arcgis-item-badge-success-foreground, #a2e4ab);--calcite-chip-background-color: var(--arcgis-item-badge-success-background, #2b472a)}:host-context(.calcite-mode-dark) .deprecated{--calcite-color-foreground-2: var(--arcgis-item-badge-danger-background, #5e241e);--calcite-color-text-1: var(--arcgis-item-badge-danger-foreground, #ffaaa1);--arcgis-item-badge-color: var(--arcgis-item-badge-danger-foreground, #ffaaa1);--calcite-chip-background-color: var(--arcgis-item-badge-danger-background, #5e241e)}`,U=["Operations Dashboard Add In","Operations Dashboard Extension","Operation View","CityEngine Web Scene","Big Data File Share","Globe Document","Map Document","Published Map","Scene Document","Map Template","Mobile Basemap Package","Desktop Add In"],J=["Cascade","MapTour","MapJournal","MapSeries","Shortlist","StoryMapCrowdsource","StorytellingSwipe"],j={"Geoprocessing Package":".gpk",Layer:".lyr","Layer Package":".lpk","Map Package":".mpk","Scene Package":".spk"},O="",F="template_name";function V(e){let t=decodeURIComponent(e.url||h(e).url||"");return J.find(i=>t.includes(`/apps/${i}/index.html`))}function N(e){return x(e)}function Q(e){return $(e)}function X(e){return L(e)}function E(e){return e.type==="Web Mapping Application"&&p(e,["Web AppBuilder","AppBuilder Extension"])}function P(e,t){return(t?.isPortal??!1)&&d(e).includes("AppBuilder Extension")}function p(e,t){return e.typeKeywords?.some(i=>t.includes(i))}function Y(e,t){return K(e,t)&&!q(e,t)}function K(e,t){let i=["HTML3D/HTML","App Builder","Widget"],a=["HTML3D/HTML","Web AppBuilder","Widget"],r=e.type==="Web Mapping Application",n=r&&p(e,["Web AppBuilder"]),l=r&&p(e,["WABTemplate"]),c=e.type==="AppBuilder Widget Package"&&p(e,i),o=e.type==="Web AppBuilder Widget"&&p(e,a),s=!!e?.owner?.startsWith("esri_")&&r&&p(e,["Web AppBuilder for ArcGIS"]);return n||l||c||o||P(e,t)||s}function Z(e,t){return t?.isPortal&&["Insights Workbook","Insights Page","Insights Model","Insights Theme","Insights Workbook Package","Kernel Gateway Connection","Insights Script","Insights Data Engineering Workbook","Insights Data Engineering Model","Relational Database Connection"].includes(e.type||"")}var q=(e,t)=>(t?.isPortal??!1)&&(E(e)||P(e,t)||m(e)||Z(e,t));function ee(e,t,i){return e.type===t&&(h(e).name?.endsWith(i)??!1)}function te(e){return Object.entries(j).some(([t,i])=>ee(e,t,i))}function ie(e,t){return U.includes(e.type)||te(e)||f(e)||N(e)||m(e)||q(e,t)}function ae(e){return(e.owner||"").toLowerCase().includes("esri")&&d(e).includes("Requires Credits")}function re(e){return(e.owner||"").toLowerCase().includes("esri")&&d(e).includes("Requires Subscription")}function oe(e){return b(e)==="org_authoritative"}function G(e){return b(e)==="public_authoritative"}function se(e,t){return t==="Registered API Key Credentials (Standard)"||t==="Registered OAuth 2.0 Credentials (Standard)"?O:e[t].title||O}function Se(e,t,i){let a=[],r=d(e),n=h(e),l=M(e);if((oe(e)||G(e))&&a.push("Authoritative"),b(e)==="deprecated"&&a.push("Deprecated"),Y(e,t)&&a.push("DeprecatedItemType"),B(e)&&a.push("Beta"),e.type==="Solution"&&r.includes("ArcGIS Solution")&&a.push("Solution"),r.includes("Public Data Collection")&&i&&a.push("Public Data Collection"),ie(e,t)&&a.push("Retired"),l.includes("livingatlas")&&a.push("Living Atlas"),l.includes("opendata")&&a.push("Open Data"),ae(e)&&a.push("Premium"),re(e)&&a.push("Subscriber"),n.origin&&a.push("Collaboration"),e.owner!=="esri_apps"&&n.listed&&!t?.isPortal&&a.push("Marketplace"),r.includes("Registered App")){let c=t?.isPortal??!1;if(e.type!=="API Key"&&(!c||e.owner!=="esri_apps")){let o=r.includes("APIToken"),s=r.includes("Personal API Token")&&!c;o?a.push(s?"Registered API Key Credentials (Personal)":"Registered API Key Credentials (Standard)"):a.push(s?"Registered OAuth 2.0 Credentials (Personal)":"Registered OAuth 2.0 Credentials (Standard)")}}return r.includes("hasReplacementItem")&&a.push("Has Replacement"),a}function ne({badgeType:e,i18n:t,portal:i}){let a=i?.isPortal??!1;if(e==="Registered API Key Credentials (Standard)"){let r=t[e].title;return a?r.enterprise:r.online}if(e==="Registered OAuth 2.0 Credentials (Standard)"){let r=t[e].title;return a?r.enterprise:r.online}return se(t,e)}function le(e){let t={MapSeries:"Series",MapJournal:"Journal",SwipeSpyglass:"Swipe & Spyglass",Shortlist:"Shortlist",Cascade:"Cascade",MapTour:"Tour",StoryMapCrowdsource:"Crowdsource",StorytellingSwipe:"Swipe & Spyglass"},i=d(e).find(r=>r in t);if(i)return t[i];let a=V(e);return a&&t[a]||!1}async function ce({badgeType:e,i18n:t,item:i,locale:a,portal:r,user:n,useProduction:l}){let c=!n||C(n);switch(e){case"Authoritative":{if(G(i)){let o=await _(i,a,r,l),s=t.Authoritative.tooltip,u=r?.isPortal&&!l?r?.name:o?.name||r?.name||i.owner;return k(s.public,{name:u||""})}return t.Authoritative.tooltip.org}case"Deprecated":{let o=i.owner||"",s=await I(o,r,l),u=D(s,a);return k(t.Deprecated.tooltip,{owner:u})}case"DeprecatedItemType":{let o=t.DeprecatedItemType.tooltip;return K(i,r)?o.webAppBuilder:o.general}case"Retired":{let o=t.Retired.tooltip;if(f(i)){let s=le(i);if(s){let u={[F]:s};return k(o.classicStoryMap,u)}return o.classicStoryMapGeneric}return X(i)?o.cityEngine:E(i)||P(i,r)?o.webAppBuilder:m(i)?o.app:Q(i)?o.bdfs:o.general}case"Subscriber":{let o=t.Subscriber.tooltip;return c?o.public:o.org}case"Premium":{let o=t.Premium.tooltip;return c?o.public:o.org}case"Registered":{let o=t.Registered.tooltip;return r?.isPortal?o.enterprise:o.online}case"Personal credential":return t["Personal credential"].tooltip;case"Has Replacement":{let o=t["Has Replacement"];return r.isPortal?(globalThis.location?.href||"").includes("item.html")?o.itemPageTooltip:o.tooltip:o.itemPageTooltip}default:return t[e].tooltip}}function de({badgeType:e,i18n:t,item:i,portal:a}){if(e!=="Has Replacement"||a.isPortal)return null;let r=W(i);return r?{title:t["Has Replacement"].link,href:pe({portal:a,itemId:r})}:null}function pe({itemId:e,portal:t}){return t?.restUrl?`${t.restUrl.replace("sharing/rest","home")}/item.html?id=${e}`:""}function H(){return{loading:!1,title:"",tooltip:"",tooltipLink:null}}var y=class extends v{constructor(){super(...arguments),this._messages=R({name:"portal-item-badges",blocking:!0}),this.tooltipRequestId=0,this.tooltipId=`portal-item-badge-${Math.random().toString(36).slice(2,10)}`,this.details=H(),this.width="full",this.scale="m",this.showTooltip=!1}static{this.properties={details:16,item:0,portal:0,user:0,badgeType:1,width:1,appearance:1,scale:1,showTooltip:5,useProduction:5}}static{this.styles=z}willUpdate(t){(t.has("badgeType")||t.has("item")||t.has("portal")||t.has("user")||t.has("showTooltip")||t.has("useProduction"))&&this.loadDetails()}loadDetails(){if(!this.badgeType||!this.portal){this.details=H();return}let t=ne({badgeType:this.badgeType,i18n:this._messages,portal:this.portal}),i=this.item&&this.portal?de({badgeType:this.badgeType,i18n:this._messages,item:this.item,portal:this.portal}):null;if(!this.showTooltip||!this.item){this.details={loading:!1,title:t,tooltip:"",tooltipLink:i};return}let a=++this.tooltipRequestId;this.details={loading:!0,title:t,tooltip:"",tooltipLink:i},ce({badgeType:this.badgeType,i18n:this._messages,item:this.item,locale:this._messages._lang||"en",portal:this.portal,user:this.user,useProduction:this.useProduction}).then(r=>{a===this.tooltipRequestId&&(this.details={loading:!1,title:t,tooltip:r,tooltipLink:i})}).catch(()=>{a===this.tooltipRequestId&&(this.details={loading:!1,title:t,tooltip:"",tooltipLink:i})})}render(){if(!this.badgeType)return null;let t=ue[this.badgeType],i=this.width==="narrow",a=this.showTooltip&&(this.details.loading||!!this.details.tooltip||!!this.details.tooltipLink),r={badge:this.badgeType!=="Beta","badge--colored":this.badgeType==="Living Atlas"||this.badgeType==="Open Data"||this.badgeType==="Solution",beta:this.badgeType==="Beta",authoritative:this.badgeType==="Authoritative",deprecated:this.badgeType==="Deprecated"||this.badgeType==="DeprecatedItemType",narrow:i,[`narrow--${this.scale}`]:i};return g`<calcite-chip id=${this.tooltipId??S} class=${w(r)} .value=${this.badgeType} .tabIndex=${this.showTooltip?0:-1} .scale=${this.scale} .appearance=${this.appearance} .label=${this.details.title} .icon=${t}>${i?null:this.details.title}</calcite-chip>${a?g`<calcite-tooltip .referenceElement=${this.tooltipId} close-on-click placement=bottom-start overlay-positioning=fixed offset-distance=6 offset-skidding=0>${i?g`<h3 class="tooltip-title">${this.details.title}</h3>`:null}<p class="tooltip-text"><calcite-loader .hidden=${!this.details.loading} .label=${this._messages.loading} inline scale=s></calcite-loader>${this.details.loading?this._messages.loading:this.details.tooltip}</p>${this.details.tooltipLink?g`<calcite-link @click=${n=>n.stopPropagation()} icon-end=launch .href=${this.details.tooltipLink.href} target=_blank>${this.details.tooltipLink.title}</calcite-link>`:null}</calcite-tooltip>`:null}`}},ue={Authoritative:"check-circle",Beta:"beaker",Collaboration:"collaboration-distributed",Deprecated:"circle-disallowed",DeprecatedItemType:"exclamation-mark-triangle","Has Replacement":"arrow-right-left","Living Atlas":"arcgis-living-atlas",Marketplace:"marketplace","Open Data":"open-data","Personal credential":"user-key",Premium:"shield-coin","Public Data Collection":"pencil",Registered:"key","Registered API Key Credentials (Personal)":"key","Registered API Key Credentials (Standard)":"key","Registered Application":"app-gear","Registered OAuth 2.0 Credentials (Personal)":"app-gear","Registered OAuth 2.0 Credentials (Standard)":"app-gear",Retired:"exclamation-mark-triangle",Solution:"arcgis-solutions",Subscriber:"security"};A("arcgis-portal-item-badge",y);return{a:Se,b:y}},"intl",a,c)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"Authoritative":{"title":"Authoritative","tooltip":{"org":"Recommended by your organization","public":"Recommended by {name}"}},"Beta":{"title":"Beta","tooltip":"This item type is in beta."},"Deprecated":{"title":"Deprecated","tooltip":"Not recommended for use. The owner, {owner}, has deprecated this item."},"Has Replacement":{"title":"Has replacement","tooltip":"This item has a recommended replacement. View item details to find and use the replacement.","itemPageTooltip":"This item has a recommended replacement.","link":"View replacement"},"DeprecatedItemType":{"title":"Deprecated item type","tooltip":{"general":"Esri has deprecated this item type. It will be retired soon and unavailable for use.","webAppBuilder":"Esri has deprecated ArcGIS Web AppBuilder, which was used to create this item. It will be retired soon and unavailable for use. To create a new application, use ArcGIS Experience Builder or another ArcGIS app."}},"Living Atlas":{"title":"Living Atlas","tooltip":"Esri curated content"},"Subscriber":{"title":"Subscriber","tooltip":{"org":"Exclusive content for subscribers","public":"Exclusive content for subscribers. To use, sign in with an ArcGIS Online subscription."}},"Premium":{"title":"Premium","tooltip":{"org":"Exclusive content for subscribers. Consumes credits.","public":"Exclusive content for subscribers that consumes credits. To use, sign in with an ArcGIS Online subscription."}},"Open Data":{"title":"Open Data","tooltip":"Available for public use"},"Marketplace":{"title":"Marketplace","tooltip":"Listed on the ArcGIS Marketplace"},"Collaboration":{"title":"Distributed collaboration","tooltip":"This item was received from a distributed collaboration"},"Retired":{"title":"Retired item type","tooltip":{"general":"Esri has retired this item type. It is no longer available for use.","classicStoryMap":"The classic Esri Story Maps template ({template_name}) used to create this item is retired. This item can no longer be edited or viewed. To redirect viewers, configure a replacement item created with ArcGIS StoryMaps or another ArcGIS app.","classicStoryMapGeneric":"The classic Esri Story Maps template used to create this item is retired. This item can no longer be edited or viewed. To redirect viewers, configure a replacement item created with ArcGIS StoryMaps or another ArcGIS app.","cityEngine":"CityEngine Web Viewer and CityEngine Web Scenes are no longer supported.","app":"The Configurable Apps template used to create this application has been retired. This item is non-operational and can be deleted. To create a new application, please use ArcGIS Instant Apps, ArcGIS StoryMaps, ArcGIS Dashboards, or ArcGIS Experience Builder.","webAppBuilder":"ArcGIS Web AppBuilder
|
|
1
|
+
{"Authoritative":{"title":"Authoritative","tooltip":{"org":"Recommended by your organization","public":"Recommended by {name}"}},"Beta":{"title":"Beta","tooltip":"This item type is in beta."},"Deprecated":{"title":"Deprecated","tooltip":"Not recommended for use. The owner, {owner}, has deprecated this item."},"Has Replacement":{"title":"Has replacement","tooltip":"This item has a recommended replacement. View item details to find and use the replacement.","itemPageTooltip":"This item has a recommended replacement.","link":"View replacement"},"DeprecatedItemType":{"title":"Deprecated item type","tooltip":{"general":"Esri has deprecated this item type. It will be retired soon and unavailable for use.","webAppBuilder":"Esri has deprecated ArcGIS Web AppBuilder, which was used to create this item. It will be retired soon and unavailable for use. To create a new application, use ArcGIS Experience Builder or another ArcGIS app."}},"Living Atlas":{"title":"Living Atlas","tooltip":"Esri curated content"},"Subscriber":{"title":"Subscriber","tooltip":{"org":"Exclusive content for subscribers","public":"Exclusive content for subscribers. To use, sign in with an ArcGIS Online subscription."}},"Premium":{"title":"Premium","tooltip":{"org":"Exclusive content for subscribers. Consumes credits.","public":"Exclusive content for subscribers that consumes credits. To use, sign in with an ArcGIS Online subscription."}},"Open Data":{"title":"Open Data","tooltip":"Available for public use"},"Marketplace":{"title":"Marketplace","tooltip":"Listed on the ArcGIS Marketplace"},"Collaboration":{"title":"Distributed collaboration","tooltip":"This item was received from a distributed collaboration"},"Retired":{"title":"Retired item type","tooltip":{"general":"Esri has retired this item type. It is no longer available for use.","classicStoryMap":"The classic Esri Story Maps template ({template_name}) used to create this item is retired. This item can no longer be edited or viewed. To redirect viewers, configure a replacement item created with ArcGIS StoryMaps or another ArcGIS app.","classicStoryMapGeneric":"The classic Esri Story Maps template used to create this item is retired. This item can no longer be edited or viewed. To redirect viewers, configure a replacement item created with ArcGIS StoryMaps or another ArcGIS app.","cityEngine":"CityEngine Web Viewer and CityEngine Web Scenes are no longer supported.","app":"The Configurable Apps template used to create this application has been retired. This item is non-operational and can be deleted. To create a new application, please use ArcGIS Instant Apps, ArcGIS StoryMaps, ArcGIS Dashboards, or ArcGIS Experience Builder.","webAppBuilder":"Esri has retired ArcGIS Web AppBuilder, which was used to create this item. This item is non-operational and can be deleted. To create a new application, use ArcGIS Experience Builder or another ArcGIS app.","bdfs":"Big Data File Shares are retired in ArcGIS Enterprise. This item is non-operational and can be deleted."}},"Public Data Collection":{"title":"Public data collection","tooltip":"Approved for public data collection."},"Solution":{"title":"ArcGIS Solution","tooltip":"Esri supported solution"},"Registered":{"title":"OAuth 2.0","tooltip":{"online":"A registered OAuth 2.0 application. May use premium or subscriber content.","enterprise":"A registered OAuth 2.0 application."}},"Registered API Key Credentials (Standard)":{"title":{"online":"API key credentials","enterprise":"API key credentials"},"tooltip":"Grants access to services."},"Registered API Key Credentials (Personal)":{"title":"API key credentials - Private application","tooltip":"Provides access tokens with privileges to access an expanded set of services and items. Safeguard these tokens as you would your username and password. Do not embed in an application."},"Registered OAuth 2.0 Credentials (Standard)":{"title":{"online":"OAuth 2.0 Credentials","enterprise":"OAuth 2.0 Credentials"},"tooltip":"Grants access to services."},"Registered OAuth 2.0 Credentials (Personal)":{"title":"OAuth 2.0 Credentials - Impersonates item owner","tooltip":"Impersonates owner of this item. For security purposes, you should guard these credentials as you would guard your username and password."},"Registered Application":{"title":"OAuth 2.0 application","tooltip":"A registered OAuth 2.0 application"},"Personal credential":{"title":"Personal","tooltip":"You are granting a personal privilege to this credential. For security purposes, you should guard any access token created with these credentials as you would guard your username and password. Please review the terms of use."},"loading":"Loading..."}
|
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"./BTSXQQKZ.js";import"./UZLQALHY.js";var a=e(r,{"arcgis-portal-account-switcher":[()=>import("./QNCSWTTL.js"),"clientId,messages:,portal:"],"arcgis-portal-account-switcher-accounts":[()=>import("./P4ELMYQQ.js"),"accounts:,messages:,portal:,targetUser"],"arcgis-portal-account-switcher-list":[()=>import("./H4L2DX4R.js"),"accountAccess:,interactive,linkedAccounts:,messages:,portal:,signedInUsers:"],"arcgis-portal-add-gps-metadata":[()=>import("./7SB7JHBR.js"),"item:,itemId,messages:,portal:"],"arcgis-portal-ai-assistant":[()=>import("./
|
|
2
|
+
import{A as e,R as r}from"./BTSXQQKZ.js";import"./UZLQALHY.js";var a=e(r,{"arcgis-portal-account-switcher":[()=>import("./QNCSWTTL.js"),"clientId,messages:,portal:"],"arcgis-portal-account-switcher-accounts":[()=>import("./P4ELMYQQ.js"),"accounts:,messages:,portal:,targetUser"],"arcgis-portal-account-switcher-list":[()=>import("./H4L2DX4R.js"),"accountAccess:,interactive,linkedAccounts:,messages:,portal:,signedInUsers:"],"arcgis-portal-add-gps-metadata":[()=>import("./7SB7JHBR.js"),"item:,itemId,messages:,portal:"],"arcgis-portal-ai-assistant":[()=>import("./7VNYKGBJ.js"),"autoDestroyDisabled,config:,defaultClosed,disabledAgents:,navigationCapabilities:,navigationTargetMap:,portal:,t9n:,useProdDocAssistant,user:"],"arcgis-portal-ai-assistant-interrupt":[()=>import("./BMZFIENS.js"),"_messages:,message,options:,type"],"arcgis-portal-browser":[()=>import("./NVGQFC2K.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("./O7KHFGHS.js"),"_messages:,actions:,selection:;restoreFocus"],"arcgis-portal-browser-filter-status":[()=>import("./O3JIWIMI.js"),"_messages:,browserWidth,componentWidth,filters:,hiddenFilterIds:"],"arcgis-portal-browser-pagination":[()=>import("./3HAZNYCD.js"),"_messages:,num,start,store:,total;nextPage"],"arcgis-portal-browser-search":[()=>import("./RVWAHK4A.js"),"_messages:,allowClear,placeholder,store:,term;setFocus"],"arcgis-portal-browser-sort":[()=>import("./RDAUPHB6.js"),"_messages:,appearance,field,options:,order,showText,useDeleted"],"arcgis-portal-browser-top-bar":[()=>import("./2T33E2DS.js"),"_messages:,filtersDisabled,store:"],"arcgis-portal-browser-view":[()=>import("./O6ZQ4BRU.js"),"options:,store:,view,viewText"],"arcgis-portal-classification-banner":[()=>import("./7FVPT4SA.js"),"autoDestroyDisabled,messages:,missingExistingClassification,portalItem:,validationErrors,variant;destroy"],"arcgis-portal-classification-config":[()=>import("./CNDTRZJT.js"),"autoDestroyDisabled,messages:,portalItem:,status,valid,values;destroy,resetForm,validateForm"],"arcgis-portal-classification-favorite":[()=>import("./KIKZIZGV.js"),"attributeExpressionResults:,classificationValue:,favoriteClassifications:,messages:,portalItem:,resetFavoriteClassification:,selectedFavoriteClassificationName,updateClassificationData:"],"arcgis-portal-classification-form-element":[()=>import("./YS2SZ3DL.js"),"attribute:,attributeKey,isRequiredErrors:,messages:,renderingInfo:,value:"],"arcgis-portal-extent-picker":[()=>import("./GJ7GKO7I.js"),"active,contentOnly,extentService,extentValue:,isArea,itemId,messages:,portal:;;getExtent"],"arcgis-portal-extent-picker-coord-field":[()=>import("./546M6SVH.js"),"errorMessage,inputId,label,max,min,relatedErrorMessage,validateRelated:,value;;checkRelatedField,isValid,setFocus"],"arcgis-portal-field-delete":[()=>import("./LTHZ2TRG.js"),"config:,fieldNames:,layer:,mapView:,messages:,options:"],"arcgis-portal-group-badges":[()=>import("./WNYL4EZA.js"),"_messages:,appearance,empty,group:,portal:,scale,showTooltips,width"],"arcgis-portal-group-browser":[()=>import("./47ZPCFHE.js"),"_browserMessages:,_messages:,alwaysShowSelection,cards:,fetch:,filters:,formFactor,hasIndoorsSpaces,height,hidePreviewBadges,hidePreviewFooter,loading,num,portal:,preflight:,preview,q,searchParamInteraction:,searchTerm,searchUser,selected:,selection,sort:,store:;clearFilters,refresh"],"arcgis-portal-group-browser-preview":[()=>import("./DN2QW5FV.js"),"currentResponse:,group:,hideBadges,hidePreviewFooter,messages:,portal:,previewFooterActionsSpaced,user:;setFocus"],"arcgis-portal-group-browser-preview-card":[()=>import("./YWNUWLOL.js"),"baseUrl,hideItemType,hideOwner,hideThumbnail,interactive,item:,link,newTab,portal:,showBadges,showDateUpdated,showOwnerPopup,showSummary,user:;restoreFocus"],"arcgis-portal-group-card":[()=>import("./HNWQS7DU.js"),"disabled,group:,hideBadges,hideDateUpdated,hideOwner,hideViewableBy,indeterminate,link,linkHandler:,messages:,name,newTab,portal:,preview,previewed,selected,selection,showDateCreated,showSummary,user:,view;restoreFocus"],"arcgis-portal-group-thumbnail":[()=>import("./EUWBMLIT.js"),"group:,portal:,scale,tooltip"],"arcgis-portal-info-banner":[()=>import("./ZGNXS6U5.js"),"config:,position"],"arcgis-portal-item-actions":[()=>import("./YMLZCVEI.js"),"actions:,item:,keyHandler:,label,messages:,portal:,previewText,showFavorite,showPreview,tabIndexOverride,user:;setFocus"],"arcgis-portal-item-badges":[()=>import("./R77U3ROB.js"),"appearance,empty,item:,portal:,scale,showTooltips,useProduction,user:,width"],"arcgis-portal-item-badge":[()=>import("./BL2ZND4S.js"),"_messages:,appearance,badgeType,item:,portal:,scale,showTooltip,useProduction,user:,width"],"arcgis-portal-item-card":[()=>import("./R5BQIF6P.js"),"actions:,disabled,disableSelection,hideActionsStart,item:,link,linkHandler:,messages:,name,newTab,portal:,preview,previewed,recycleBin,selected,selection,showAccess,showBadges,showBadgeTooltips,showDateUpdated,showFavorite,showFavoriteInActionsMenu,showItemType,showItemTypeHosted,showOwner,showSummary,showThumbnail,user:,userPopupZIndex,view;restoreFocus"],"arcgis-portal-item-favorite":[()=>import("./EZNTXOKK.js"),"iconOnly,item:,messages:,portal:,scale,showTooltip,user:,width;setFocus"],"arcgis-portal-item-type":[()=>import("./POQBF4N7.js"),"ellipsis,hideIcon,hideText,item:,messages:,portal:,scale,serviceInfo:,showHosted,user:"],"arcgis-portal-mentionable-text-area":[()=>import("./DCIRWNQL.js"),"disabled,maxLength,placeholder,popoverListLabel,popoverPlacement,portal:,readOnly,rows,scale,starters:,user:,value;closePopover,focusTextArea,selectItem"],"arcgis-portal-navigation":[()=>import("./4NXBBNYR.js"),"clientId,currentPathname,disableNotebookServer,disableTrackViewer,maxWidth,messages:,portal:,portalItem:,product,productHref,projectMenuIcon,projectMenuOptions:,projectMenuSaveIndicator,projectTitle,projectTitleSave:"],"arcgis-portal-replacement-item-redirect":[()=>import("./7OR2HKBV.js"),"itemId,messages:,portal:,user:;setFocus"],"arcgis-portal-user-avatar":[()=>import("./T7FVQDHN.js"),"checkOnline,description,heading,hideAvatar,messages:,portal:,scale,showName,underline,user:,username,wrap"],"arcgis-portal-user-popup":[()=>import("./KA4XSW6O.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("./PF3TB3QZ.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-add-gps-metadata,arcgis-portal-ai-assistant,arcgis-portal-ai-assistant-interrupt,arcgis-portal-browser,arcgis-portal-browser-actions,arcgis-portal-browser-filter-status,arcgis-portal-browser-pagination,arcgis-portal-browser-search,arcgis-portal-browser-sort,arcgis-portal-browser-top-bar,arcgis-portal-browser-view,arcgis-portal-classification-banner,arcgis-portal-classification-config,arcgis-portal-classification-favorite,arcgis-portal-classification-form-element,arcgis-portal-extent-picker,arcgis-portal-field-delete,arcgis-portal-group-badges,arcgis-portal-group-browser,arcgis-portal-group-browser-preview,arcgis-portal-group-browser-preview-card,arcgis-portal-group-card,arcgis-portal-group-thumbnail,arcgis-portal-info-banner,arcgis-portal-item-actions,arcgis-portal-item-badges,arcgis-portal-item-badge,arcgis-portal-item-card,arcgis-portal-item-favorite,arcgis-portal-item-type,arcgis-portal-mentionable-text-area,arcgis-portal-navigation,arcgis-portal-replacement-item-redirect,arcgis-portal-user-avatar,arcgis-portal-user-popup,arcgis-portal-voice-input){visibility:hidden}}");document.adoptedStyleSheets=[...document.adoptedStyleSheets,t];window.$arcgis||Object.defineProperty(window,"$arcgis",{configurable:!1,enumerable:!0,writable:!1,value:{}}),((a,r)=>{a.t=(c,...x)=>Promise.all(x.map(x=>x.then?x:(!a?.forceESM&&a?.import||(x=>import(x+".js").then(m=>m.default??m)))("@arcgis/core/"+x))).then(c);r.p=a.t(([m])=>{r.t=m.trackAccess;r.o=m.createObservable;r.c=m.createTrackingTarget;r.r=m.runTracked},"applications/Components/reactiveUtils")})($arcgis,r)
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
3
|
-
import { LitElement as
|
|
2
|
+
import { c as v } from "./runtime.js";
|
|
3
|
+
import { LitElement as R, nothing as D, safeClassMap as B } from "@arcgis/lumina";
|
|
4
4
|
import { css as C, html as g } from "lit";
|
|
5
|
-
import { u as
|
|
5
|
+
import { u as M } from "./useT9n.js";
|
|
6
6
|
import { substitute as h } from "@arcgis/core/intl.js";
|
|
7
|
-
import { f as
|
|
8
|
-
import { a as
|
|
9
|
-
import { i as
|
|
10
|
-
import { g as
|
|
11
|
-
import { f as
|
|
12
|
-
import { a as
|
|
13
|
-
const
|
|
7
|
+
import { f as W } from "./user.js";
|
|
8
|
+
import { a as x, b as u, i as $, c as E, d as f, g as b, e as K, f as L, h as O } from "./items.js";
|
|
9
|
+
import { i as _ } from "./users.js";
|
|
10
|
+
import { g as U } from "./user2.js";
|
|
11
|
+
import { f as H } from "./verified.js";
|
|
12
|
+
import { a as w, i as m } from "./info.js";
|
|
13
|
+
const q = C`.badge{--calcite-color-foreground-2: var(--arcgis-item-badge-info-background, #dfeffa);--calcite-color-text-1: var(--arcgis-item-badge-info-foreground, #00619b);--arcgis-item-badge-color: var(--arcgis-item-badge-info-foreground, #00619b);--calcite-chip-background-color: var(--arcgis-item-badge-info-background, #dfeffa);border:0}.badge--colored{--calcite-chip-icon-color: var(--calcite-color-brand)}.authoritative{--calcite-color-foreground-2: var(--arcgis-item-badge-success-background, #e4f0e4);--calcite-color-text-1: var(--arcgis-item-badge-success-foreground, #1a6324);--arcgis-item-badge-color: var(--arcgis-item-badge-success-foreground, #1a6324);--calcite-chip-background-color: var(--arcgis-item-badge-success-background, #e4f0e4)}.deprecated{--calcite-color-foreground-2: var(--arcgis-item-badge-danger-background, #fadfdc);--calcite-color-text-1: var(--arcgis-item-badge-danger-foreground, #a82b1e);--arcgis-item-badge-color: var(--arcgis-item-badge-danger-foreground, #a82b1e);--calcite-chip-background-color: var(--arcgis-item-badge-danger-background, #fadfdc)}.beta{border:0}.narrow{box-sizing:border-box;width:2rem;--calcite-chip-spacing-unit-l: 0}.narrow--s{width:1.5rem}.narrow--l{width:2.75rem}.tooltip-title{font-size:var(--calcite-font-size--1);color:var(--calcite-color-text-1);margin:0 0 .25rem;padding:0}.tooltip-text{font-size:var(--calcite-font-size--2);color:var(--calcite-color-text-1);margin:0;padding:0}:host-context(.calcite-mode-dark) .badge{--calcite-color-foreground-2: var(--arcgis-item-badge-info-background, #214155);--calcite-color-text-1: var(--arcgis-item-badge-info-foreground, #9fd4f3);--arcgis-item-badge-color: var(--arcgis-item-badge-info-foreground, #9fd4f3);--calcite-chip-background-color: var(--arcgis-item-badge-info-background, #214155)}:host-context(.calcite-mode-dark) .authoritative{--calcite-color-foreground-2: var(--arcgis-item-badge-success-background, #2b472a);--calcite-color-text-1: var(--arcgis-item-badge-success-foreground, #a2e4ab);--arcgis-item-badge-color: var(--arcgis-item-badge-success-foreground, #a2e4ab);--calcite-chip-background-color: var(--arcgis-item-badge-success-background, #2b472a)}:host-context(.calcite-mode-dark) .deprecated{--calcite-color-foreground-2: var(--arcgis-item-badge-danger-background, #5e241e);--calcite-color-text-1: var(--arcgis-item-badge-danger-foreground, #ffaaa1);--arcgis-item-badge-color: var(--arcgis-item-badge-danger-foreground, #ffaaa1);--calcite-chip-background-color: var(--arcgis-item-badge-danger-background, #5e241e)}`, G = [
|
|
14
14
|
"Operations Dashboard Add In",
|
|
15
15
|
"Operations Dashboard Extension",
|
|
16
16
|
"Operation View",
|
|
@@ -23,7 +23,7 @@ const H = C`.badge{--calcite-color-foreground-2: var(--arcgis-item-badge-info-ba
|
|
|
23
23
|
"Map Template",
|
|
24
24
|
"Mobile Basemap Package",
|
|
25
25
|
"Desktop Add In"
|
|
26
|
-
],
|
|
26
|
+
], N = [
|
|
27
27
|
"Cascade",
|
|
28
28
|
"MapTour",
|
|
29
29
|
"MapJournal",
|
|
@@ -31,40 +31,43 @@ const H = C`.badge{--calcite-color-foreground-2: var(--arcgis-item-badge-info-ba
|
|
|
31
31
|
"Shortlist",
|
|
32
32
|
"StoryMapCrowdsource",
|
|
33
33
|
"StorytellingSwipe"
|
|
34
|
-
],
|
|
34
|
+
], z = {
|
|
35
35
|
"Geoprocessing Package": ".gpk",
|
|
36
36
|
Layer: ".lyr",
|
|
37
37
|
"Layer Package": ".lpk",
|
|
38
38
|
"Map Package": ".mpk",
|
|
39
39
|
"Scene Package": ".spk"
|
|
40
|
-
}, k = "",
|
|
41
|
-
function F(e) {
|
|
42
|
-
const t = decodeURIComponent(e.url || b(e).url || "");
|
|
43
|
-
return G.find((i) => t.includes(`/apps/${i}/index.html`));
|
|
44
|
-
}
|
|
40
|
+
}, k = "", F = "template_name";
|
|
45
41
|
function J(e) {
|
|
46
|
-
|
|
42
|
+
const t = decodeURIComponent(e.url || b(e).url || "");
|
|
43
|
+
return N.find((i) => t.includes(`/apps/${i}/index.html`));
|
|
47
44
|
}
|
|
48
45
|
function V(e) {
|
|
49
|
-
return
|
|
46
|
+
return O(e);
|
|
50
47
|
}
|
|
51
48
|
function j(e) {
|
|
52
|
-
return
|
|
49
|
+
return E(e);
|
|
50
|
+
}
|
|
51
|
+
function Q(e) {
|
|
52
|
+
return $(e);
|
|
53
53
|
}
|
|
54
54
|
function T(e) {
|
|
55
|
-
return e.type === "Web Mapping Application" && d(e
|
|
55
|
+
return e.type === "Web Mapping Application" && d(e, ["Web AppBuilder", "AppBuilder Extension"]);
|
|
56
56
|
}
|
|
57
57
|
function y(e, t) {
|
|
58
|
-
return (t?.isPortal ?? !1) &&
|
|
58
|
+
return (t?.isPortal ?? !1) && u(e).includes("AppBuilder Extension");
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function d(e, t) {
|
|
61
61
|
return e.typeKeywords?.some((i) => t.includes(i));
|
|
62
62
|
}
|
|
63
|
-
function
|
|
64
|
-
|
|
63
|
+
function X(e, t) {
|
|
64
|
+
return I(e, t) && !P(e, t);
|
|
65
|
+
}
|
|
66
|
+
function I(e, t) {
|
|
67
|
+
const i = ["HTML3D/HTML", "App Builder", "Widget"], r = ["HTML3D/HTML", "Web AppBuilder", "Widget"], a = e.type === "Web Mapping Application", o = a && d(e, ["Web AppBuilder"]), c = a && d(e, ["WABTemplate"]), l = e.type === "AppBuilder Widget Package" && d(e, i), s = e.type === "Web AppBuilder Widget" && d(e, r), n = !!e?.owner?.startsWith("esri_") && a && d(e, ["Web AppBuilder for ArcGIS"]);
|
|
65
68
|
return o || c || l || s || y(e, t) || n;
|
|
66
69
|
}
|
|
67
|
-
function
|
|
70
|
+
function Y(e, t) {
|
|
68
71
|
return t?.isPortal && [
|
|
69
72
|
"Insights Workbook",
|
|
70
73
|
"Insights Page",
|
|
@@ -78,36 +81,36 @@ function Q(e, t) {
|
|
|
78
81
|
"Relational Database Connection"
|
|
79
82
|
].includes(e.type || "");
|
|
80
83
|
}
|
|
81
|
-
const
|
|
82
|
-
function
|
|
84
|
+
const P = (e, t) => (t?.isPortal ?? !1) && (T(e) || y(e, t) || m(e) || Y(e, t));
|
|
85
|
+
function Z(e, t, i) {
|
|
83
86
|
return e.type === t && (b(e).name?.endsWith(i) ?? !1);
|
|
84
87
|
}
|
|
85
|
-
function
|
|
86
|
-
return Object.entries(
|
|
87
|
-
([t, i]) =>
|
|
88
|
+
function ee(e) {
|
|
89
|
+
return Object.entries(z).some(
|
|
90
|
+
([t, i]) => Z(e, t, i)
|
|
88
91
|
);
|
|
89
92
|
}
|
|
90
|
-
function
|
|
91
|
-
return
|
|
92
|
-
}
|
|
93
|
-
function te(e) {
|
|
94
|
-
return (e.owner || "").toLowerCase().includes("esri") && d(e).includes("Requires Credits");
|
|
93
|
+
function te(e, t) {
|
|
94
|
+
return G.includes(e.type) || ee(e) || w(e) || V(e) || m(e) || P(e, t);
|
|
95
95
|
}
|
|
96
96
|
function ie(e) {
|
|
97
|
-
return (e.owner || "").toLowerCase().includes("esri") &&
|
|
97
|
+
return (e.owner || "").toLowerCase().includes("esri") && u(e).includes("Requires Credits");
|
|
98
98
|
}
|
|
99
99
|
function re(e) {
|
|
100
|
+
return (e.owner || "").toLowerCase().includes("esri") && u(e).includes("Requires Subscription");
|
|
101
|
+
}
|
|
102
|
+
function ae(e) {
|
|
100
103
|
return f(e) === "org_authoritative";
|
|
101
104
|
}
|
|
102
105
|
function S(e) {
|
|
103
106
|
return f(e) === "public_authoritative";
|
|
104
107
|
}
|
|
105
|
-
function
|
|
108
|
+
function se(e, t) {
|
|
106
109
|
return t === "Registered API Key Credentials (Standard)" || t === "Registered OAuth 2.0 Credentials (Standard)" ? k : e[t].title || k;
|
|
107
110
|
}
|
|
108
111
|
function Pe(e, t, i) {
|
|
109
|
-
const r = [], a =
|
|
110
|
-
if ((
|
|
112
|
+
const r = [], a = u(e), o = b(e), c = K(e);
|
|
113
|
+
if ((ae(e) || S(e)) && r.push("Authoritative"), f(e) === "deprecated" && r.push("Deprecated"), X(e, t) && r.push("DeprecatedItemType"), L(e) && r.push("Beta"), e.type === "Solution" && a.includes("ArcGIS Solution") && r.push("Solution"), a.includes("Public Data Collection") && i && r.push("Public Data Collection"), te(e, t) && r.push("Retired"), c.includes("livingatlas") && r.push("Living Atlas"), c.includes("opendata") && r.push("Open Data"), ie(e) && r.push("Premium"), re(e) && r.push("Subscriber"), o.origin && r.push("Collaboration"), e.owner !== "esri_apps" && o.listed && !t?.isPortal && r.push("Marketplace"), a.includes("Registered App")) {
|
|
111
114
|
const l = t?.isPortal ?? !1;
|
|
112
115
|
if (e.type !== "API Key" && (!l || e.owner !== "esri_apps")) {
|
|
113
116
|
const s = a.includes("APIToken"), n = a.includes("Personal API Token") && !l;
|
|
@@ -120,7 +123,7 @@ function Pe(e, t, i) {
|
|
|
120
123
|
}
|
|
121
124
|
return a.includes("hasReplacementItem") && r.push("Has Replacement"), r;
|
|
122
125
|
}
|
|
123
|
-
function
|
|
126
|
+
function oe({
|
|
124
127
|
badgeType: e,
|
|
125
128
|
i18n: t,
|
|
126
129
|
portal: i
|
|
@@ -134,9 +137,9 @@ function se({
|
|
|
134
137
|
const a = t[e].title;
|
|
135
138
|
return r ? a.enterprise : a.online;
|
|
136
139
|
}
|
|
137
|
-
return
|
|
140
|
+
return se(t, e);
|
|
138
141
|
}
|
|
139
|
-
function
|
|
142
|
+
function ne(e) {
|
|
140
143
|
const t = {
|
|
141
144
|
MapSeries: "Series",
|
|
142
145
|
MapJournal: "Journal",
|
|
@@ -146,13 +149,13 @@ function oe(e) {
|
|
|
146
149
|
MapTour: "Tour",
|
|
147
150
|
StoryMapCrowdsource: "Crowdsource",
|
|
148
151
|
StorytellingSwipe: "Swipe & Spyglass"
|
|
149
|
-
}, r =
|
|
152
|
+
}, r = u(e).find((o) => o in t);
|
|
150
153
|
if (r)
|
|
151
154
|
return t[r];
|
|
152
|
-
const a =
|
|
155
|
+
const a = J(e);
|
|
153
156
|
return a && t[a] || !1;
|
|
154
157
|
}
|
|
155
|
-
async function
|
|
158
|
+
async function ce({
|
|
156
159
|
badgeType: e,
|
|
157
160
|
i18n: t,
|
|
158
161
|
item: i,
|
|
@@ -161,34 +164,34 @@ async function ne({
|
|
|
161
164
|
user: o,
|
|
162
165
|
useProduction: c
|
|
163
166
|
}) {
|
|
164
|
-
const l = !o ||
|
|
167
|
+
const l = !o || _(o);
|
|
165
168
|
switch (e) {
|
|
166
169
|
case "Authoritative": {
|
|
167
170
|
if (S(i)) {
|
|
168
|
-
const s = await
|
|
171
|
+
const s = await H(i, r, a, c), n = t.Authoritative.tooltip, p = a?.isPortal && !c ? a?.name : s?.name || a?.name || i.owner;
|
|
169
172
|
return h(n.public, { name: p || "" });
|
|
170
173
|
}
|
|
171
174
|
return t.Authoritative.tooltip.org;
|
|
172
175
|
}
|
|
173
176
|
case "Deprecated": {
|
|
174
|
-
const s = i.owner || "", n = await
|
|
177
|
+
const s = i.owner || "", n = await W(s, a, c), p = U(n, r);
|
|
175
178
|
return h(t.Deprecated.tooltip, { owner: p });
|
|
176
179
|
}
|
|
177
180
|
case "DeprecatedItemType": {
|
|
178
181
|
const s = t.DeprecatedItemType.tooltip;
|
|
179
|
-
return
|
|
182
|
+
return I(i, a) ? s.webAppBuilder : s.general;
|
|
180
183
|
}
|
|
181
184
|
case "Retired": {
|
|
182
185
|
const s = t.Retired.tooltip;
|
|
183
|
-
if (
|
|
184
|
-
const n =
|
|
186
|
+
if (w(i)) {
|
|
187
|
+
const n = ne(i);
|
|
185
188
|
if (n) {
|
|
186
|
-
const p = { [
|
|
189
|
+
const p = { [F]: n };
|
|
187
190
|
return h(s.classicStoryMap, p);
|
|
188
191
|
}
|
|
189
192
|
return s.classicStoryMapGeneric;
|
|
190
193
|
}
|
|
191
|
-
return
|
|
194
|
+
return Q(i) ? s.cityEngine : T(i) || y(i, a) ? s.webAppBuilder : m(i) ? s.app : j(i) ? s.bdfs : s.general;
|
|
192
195
|
}
|
|
193
196
|
case "Subscriber": {
|
|
194
197
|
const s = t.Subscriber.tooltip;
|
|
@@ -212,7 +215,7 @@ async function ne({
|
|
|
212
215
|
return t[e].tooltip;
|
|
213
216
|
}
|
|
214
217
|
}
|
|
215
|
-
function
|
|
218
|
+
function le({
|
|
216
219
|
badgeType: e,
|
|
217
220
|
i18n: t,
|
|
218
221
|
item: i,
|
|
@@ -220,16 +223,16 @@ function ce({
|
|
|
220
223
|
}) {
|
|
221
224
|
if (e !== "Has Replacement" || r.isPortal)
|
|
222
225
|
return null;
|
|
223
|
-
const a =
|
|
226
|
+
const a = x(i);
|
|
224
227
|
return a ? {
|
|
225
228
|
title: t["Has Replacement"].link,
|
|
226
|
-
href:
|
|
229
|
+
href: de({ portal: r, itemId: a })
|
|
227
230
|
} : null;
|
|
228
231
|
}
|
|
229
|
-
function
|
|
232
|
+
function de({ itemId: e, portal: t }) {
|
|
230
233
|
return t?.restUrl ? `${t.restUrl.replace("sharing/rest", "home")}/item.html?id=${e}` : "";
|
|
231
234
|
}
|
|
232
|
-
function
|
|
235
|
+
function A() {
|
|
233
236
|
return {
|
|
234
237
|
loading: !1,
|
|
235
238
|
title: "",
|
|
@@ -237,29 +240,29 @@ function w() {
|
|
|
237
240
|
tooltipLink: null
|
|
238
241
|
};
|
|
239
242
|
}
|
|
240
|
-
class
|
|
243
|
+
class pe extends R {
|
|
241
244
|
constructor() {
|
|
242
|
-
super(...arguments), this._messages =
|
|
245
|
+
super(...arguments), this._messages = M({ name: "portal-item-badges", blocking: !0 }), this.tooltipRequestId = 0, this.tooltipId = `portal-item-badge-${Math.random().toString(36).slice(2, 10)}`, this.details = A(), this.width = "full", this.scale = "m", this.showTooltip = !1;
|
|
243
246
|
}
|
|
244
247
|
static {
|
|
245
248
|
this.properties = { details: 16, item: 0, portal: 0, user: 0, badgeType: 1, width: 1, appearance: 1, scale: 1, showTooltip: 5, useProduction: 5 };
|
|
246
249
|
}
|
|
247
250
|
static {
|
|
248
|
-
this.styles =
|
|
251
|
+
this.styles = q;
|
|
249
252
|
}
|
|
250
253
|
willUpdate(t) {
|
|
251
254
|
(t.has("badgeType") || t.has("item") || t.has("portal") || t.has("user") || t.has("showTooltip") || t.has("useProduction")) && this.loadDetails();
|
|
252
255
|
}
|
|
253
256
|
loadDetails() {
|
|
254
257
|
if (!this.badgeType || !this.portal) {
|
|
255
|
-
this.details =
|
|
258
|
+
this.details = A();
|
|
256
259
|
return;
|
|
257
260
|
}
|
|
258
|
-
const t =
|
|
261
|
+
const t = oe({
|
|
259
262
|
badgeType: this.badgeType,
|
|
260
263
|
i18n: this._messages,
|
|
261
264
|
portal: this.portal
|
|
262
|
-
}), i = this.item && this.portal ?
|
|
265
|
+
}), i = this.item && this.portal ? le({
|
|
263
266
|
badgeType: this.badgeType,
|
|
264
267
|
i18n: this._messages,
|
|
265
268
|
item: this.item,
|
|
@@ -280,7 +283,7 @@ class de extends v {
|
|
|
280
283
|
title: t,
|
|
281
284
|
tooltip: "",
|
|
282
285
|
tooltipLink: i
|
|
283
|
-
},
|
|
286
|
+
}, ce({
|
|
284
287
|
badgeType: this.badgeType,
|
|
285
288
|
i18n: this._messages,
|
|
286
289
|
item: this.item,
|
|
@@ -307,7 +310,7 @@ class de extends v {
|
|
|
307
310
|
render() {
|
|
308
311
|
if (!this.badgeType)
|
|
309
312
|
return null;
|
|
310
|
-
const t =
|
|
313
|
+
const t = ue[this.badgeType], i = this.width === "narrow", r = this.showTooltip && (this.details.loading || !!this.details.tooltip || !!this.details.tooltipLink), a = {
|
|
311
314
|
badge: this.badgeType !== "Beta",
|
|
312
315
|
"badge--colored": this.badgeType === "Living Atlas" || this.badgeType === "Open Data" || this.badgeType === "Solution",
|
|
313
316
|
beta: this.badgeType === "Beta",
|
|
@@ -316,10 +319,10 @@ class de extends v {
|
|
|
316
319
|
narrow: i,
|
|
317
320
|
[`narrow--${this.scale}`]: i
|
|
318
321
|
};
|
|
319
|
-
return g`<calcite-chip id=${this.tooltipId ??
|
|
322
|
+
return g`<calcite-chip id=${this.tooltipId ?? D} class=${B(a)} .value=${this.badgeType} .tabIndex=${this.showTooltip ? 0 : -1} .scale=${this.scale} .appearance=${this.appearance} .label=${this.details.title} .icon=${t}>${i ? null : this.details.title}</calcite-chip>${r ? g`<calcite-tooltip .referenceElement=${this.tooltipId} close-on-click placement=bottom-start overlay-positioning=fixed offset-distance=6 offset-skidding=0>${i ? g`<h3 class="tooltip-title">${this.details.title}</h3>` : null}<p class="tooltip-text"><calcite-loader .hidden=${!this.details.loading} .label=${this._messages.loading} inline scale=s></calcite-loader>${this.details.loading ? this._messages.loading : this.details.tooltip}</p>${this.details.tooltipLink ? g`<calcite-link @click=${(o) => o.stopPropagation()} icon-end=launch .href=${this.details.tooltipLink.href} target=_blank>${this.details.tooltipLink.title}</calcite-link>` : null}</calcite-tooltip>` : null}`;
|
|
320
323
|
}
|
|
321
324
|
}
|
|
322
|
-
const
|
|
325
|
+
const ue = {
|
|
323
326
|
Authoritative: "check-circle",
|
|
324
327
|
Beta: "beaker",
|
|
325
328
|
Collaboration: "collaboration-distributed",
|
|
@@ -342,8 +345,8 @@ const pe = {
|
|
|
342
345
|
Solution: "arcgis-solutions",
|
|
343
346
|
Subscriber: "security"
|
|
344
347
|
};
|
|
345
|
-
|
|
348
|
+
v("arcgis-portal-item-badge", pe);
|
|
346
349
|
export {
|
|
347
|
-
|
|
350
|
+
pe as A,
|
|
348
351
|
Pe as g
|
|
349
352
|
};
|