@arcgis/portal-components 5.2.0-next.128 → 5.2.0-next.129
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/{VYSXZV3P.js → 34DIIWGC.js} +1 -1
- package/dist/cdn/{GY2UDPPY.js → 3NA4M2MH.js} +1 -1
- package/dist/cdn/{2OLIWJSK.js → 3YCGEFQP.js} +76 -76
- package/dist/cdn/{GTJVWTBP.js → 3YS4G5QE.js} +1 -1
- package/dist/cdn/{Z2U2FCOG.js → 426RS2JW.js} +1 -1
- package/dist/cdn/4FQWB6HA.js +2 -0
- package/dist/cdn/4LMVMZGG.js +2 -0
- package/dist/cdn/{LF7XRDJV.js → 5D75JDVE.js} +1 -1
- package/dist/cdn/{L7I6ICK3.js → 6NRVGSZJ.js} +1 -1
- package/dist/cdn/{BNB52PQ5.js → 74OADAQ6.js} +1 -1
- package/dist/cdn/{X4QIAIVV.js → 7TN5Q3I2.js} +1 -1
- package/dist/cdn/{QVO5OJEF.js → BJ6YM6ZC.js} +1 -1
- package/dist/cdn/{7CYER4HF.js → BV6XVVX2.js} +1 -1
- package/dist/cdn/{AMTGDRMF.js → BYEIB47T.js} +1 -1
- package/dist/cdn/{WT3GFMPD.js → C2WQAFUM.js} +1 -1
- package/dist/cdn/{AXZFLIWM.js → CGBXIK2L.js} +1 -1
- package/dist/cdn/{VRWK3ZLB.js → CVTQ3A4T.js} +1 -1
- package/dist/cdn/{YPNVFSI3.js → DPNKUVXU.js} +1 -1
- package/dist/cdn/{TXVCTVOE.js → E2AHTEKS.js} +1 -1
- package/dist/cdn/{JZVWY2TG.js → EBUPCIL6.js} +1 -1
- package/dist/cdn/{JDBUB3NR.js → EJXMHOYA.js} +1 -1
- package/dist/cdn/{T66AWQWW.js → EOQHBWKK.js} +1 -1
- package/dist/cdn/{DFVPLU2O.js → FED2DOMO.js} +1 -1
- package/dist/cdn/{DMXZ5HWB.js → FNHI7NZ4.js} +1 -1
- package/dist/cdn/{O5EM6RKT.js → FOHZXQNV.js} +1 -1
- package/dist/cdn/{JU2JSB4L.js → GOHJT66O.js} +1 -1
- package/dist/cdn/{DBDJDVIT.js → H5RBBOBZ.js} +1 -1
- package/dist/cdn/HKD2GF4M.js +2 -0
- package/dist/cdn/JIBKSQBE.js +2 -0
- package/dist/cdn/{XBQKBQOE.js → JJUCB3OG.js} +1 -1
- package/dist/cdn/JZ7SSPKB.js +2 -0
- package/dist/cdn/KCLCOBT2.js +2 -0
- package/dist/cdn/{N7CAM7T2.js → KOZMWZTT.js} +1 -1
- package/dist/cdn/{YY2STFDC.js → KS2JQYWA.js} +1 -1
- package/dist/cdn/{EDFSTMEO.js → KWEVRR34.js} +1 -1
- package/dist/cdn/{YUM4ZQCQ.js → L33CMX4M.js} +1 -1
- package/dist/cdn/{LIQFO7UT.js → LL5AA56F.js} +1 -1
- package/dist/cdn/LM6H2RMV.js +2 -0
- package/dist/cdn/{LP7YP7VN.js → M33TAW7V.js} +1 -1
- package/dist/cdn/{WXUJPI4X.js → MDGR5FJS.js} +1 -1
- package/dist/cdn/{VS2Q33NS.js → OLXC7CE4.js} +1 -1
- package/dist/cdn/{EHVKHBQJ.js → PEO5PFZF.js} +1 -1
- package/dist/cdn/{R7BTC6EA.js → Q5GFMD4E.js} +1 -1
- package/dist/cdn/{6IQGJNQQ.js → QFHL5APV.js} +1 -1
- package/dist/cdn/QT52U3JO.js +2 -0
- package/dist/cdn/SABP5QOL.js +2 -0
- package/dist/cdn/{FGHPX3EG.js → UDDG7VVX.js} +1 -1
- package/dist/cdn/UFNGJCCT.js +2 -0
- package/dist/cdn/{GGFGMVLK.js → UZMFRVR5.js} +1 -1
- package/dist/cdn/{FFNDPSGG.js → V4UI5WTN.js} +1 -1
- package/dist/cdn/{SJB4FDD5.js → VX6EE6FY.js} +1 -1
- package/dist/cdn/{SPOJMJ2R.js → WGM3TQIL.js} +1 -1
- package/dist/cdn/{IDPYNEOM.js → WKJEITKD.js} +1 -1
- package/dist/cdn/{NGSHCI4P.js → WOOCTQS3.js} +1 -1
- package/dist/cdn/{4JPFPWGG.js → XD3TUJLE.js} +1 -1
- package/dist/cdn/{6FBCPZGR.js → XZF5RW4B.js} +1 -1
- package/dist/cdn/{7JNCIWV3.js → YARGA5LY.js} +1 -1
- package/dist/cdn/{DYKYNLID.js → ZIIB5RYY.js} +1 -1
- package/dist/cdn/{NDJGGH7G.js → ZP4Q36AO.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/components/arcgis-portal-navigation/index.js +5 -5
- 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 +7 -7
- package/dist/cdn/2HGVOH6F.js +0 -2
- package/dist/cdn/BGEZZVIM.js +0 -2
- package/dist/cdn/ILBZ5YM3.js +0 -2
- package/dist/cdn/NVV4P7LD.js +0 -2
- package/dist/cdn/OT6EWATP.js +0 -2
- package/dist/cdn/QRON2UPY.js +0 -2
- package/dist/cdn/XCSDUQMC.js +0 -2
- package/dist/cdn/ZIAV77I3.js +0 -2
- package/dist/cdn/ZKHEUOSC.js +0 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcgis/portal-components",
|
|
3
|
-
"version": "5.2.0-next.
|
|
3
|
+
"version": "5.2.0-next.129",
|
|
4
4
|
"description": "ArcGIS Portal Components",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ArcGIS",
|
|
@@ -38,11 +38,11 @@
|
|
|
38
38
|
],
|
|
39
39
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@arcgis/ai-components": "5.2.0-next.
|
|
42
|
-
"@arcgis/lumina": "5.2.0-next.
|
|
43
|
-
"@arcgis/lumina-toolkit": "5.2.0-next.
|
|
44
|
-
"@arcgis/map-components": "5.2.0-next.
|
|
45
|
-
"@arcgis/toolkit": "5.2.0-next.
|
|
41
|
+
"@arcgis/ai-components": "5.2.0-next.129",
|
|
42
|
+
"@arcgis/lumina": "5.2.0-next.129",
|
|
43
|
+
"@arcgis/lumina-toolkit": "5.2.0-next.129",
|
|
44
|
+
"@arcgis/map-components": "5.2.0-next.129",
|
|
45
|
+
"@arcgis/toolkit": "5.2.0-next.129",
|
|
46
46
|
"@esri/arcgis-html-sanitizer": "~4.2.0-next.2",
|
|
47
47
|
"@langchain/core": "^1.2.9",
|
|
48
48
|
"@langchain/langgraph": "^1.4.14",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"zod": "^4.4.3"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
56
|
-
"@arcgis/core": "5.2.0-next.
|
|
56
|
+
"@arcgis/core": "5.2.0-next.129",
|
|
57
57
|
"@esri/calcite-components": "^5.2.0-next.80"
|
|
58
58
|
},
|
|
59
59
|
"css.customData": [
|
package/dist/cdn/2HGVOH6F.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import c from"./YPNVFSI3.js";import b from"./5ITAQNJ6.js";import a from"./B2YUF4DX.js";import"./XBQKBQOE.js";import"./6IQGJNQQ.js";import"./KCYIOVJQ.js";import"./4JPFPWGG.js";import"./WMT55UQD.js";import"./EXBWPG5Y.js";import"./R74ZHFA6.js";import"./UZLQALHY.js";export default $arcgis.t(([,,a])=>{return a},a,b,c)
|
package/dist/cdn/BGEZZVIM.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{b as a}from"./6FBCPZGR.js";import"./25XJ66JO.js";import"./5YDITHQA.js";import"./MFT5NBI5.js";import"./XBQKBQOE.js";import"./6IQGJNQQ.js";import"./KCYIOVJQ.js";import"./4JPFPWGG.js";import"./WMT55UQD.js";import"./EXBWPG5Y.js";import"./R74ZHFA6.js";import"./UZLQALHY.js";export{a as ArcgisPortalBrowserFilterStatus};
|
package/dist/cdn/ILBZ5YM3.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{a}from"./G5PORPTQ.js";import b from"./VS2Q33NS.js";import"./UZCHLKLO.js";import"./2GBRZSEC.js";import"./XBQKBQOE.js";import"./6IQGJNQQ.js";import"./KCYIOVJQ.js";import"./4JPFPWGG.js";import"./WMT55UQD.js";import"./EXBWPG5Y.js";import"./R74ZHFA6.js";import"./UZLQALHY.js";export default $arcgis.t(([])=>{return a},b)
|
package/dist/cdn/NVV4P7LD.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import"./UZLQALHY.js";var e='---\nname: filter\ndescription: Changes feature emphasis on the map by including, excluding, highlighting, dimming, or clearing filtered features. Use when the user asks to visually filter feature-layer data.\nallowed-tools: findRelevantLayers findRelevantFields setFeatureEffect resetMap clearFilters\n---\n\n# Filter\n\n- Use `clearFilters` when the user asks only to remove feature filters or effects. Use `resetMap` only when the user asks to reset the broader map state.\n- Reuse a preceding query result from this run whenever it contains the layer ID and filtering criteria needed for the visual operation. Do not repeat layer or field discovery in that case.\n- A preceding query result may provide the layer ID, where clause, geometry filter, `useCurrentExtent`, object IDs, and count. Preserve and reuse those values rather than reconstructing them.\n- When the task refers to geometry produced by an earlier agent, call `listSharedResources` with `point`, `polyline` and `polygon` as the requested kinds. If a resource description clearly matches the referenced geometry, pass its exact ID as `geometryFilter.sharedResourceId` and use `where: "1=1"` unless the user requests an additional attribute filter. If no resource clearly matches, state that the spatial constraint is unavailable and do not guess geometry.\n- If no usable preceding query result exists, start with `findRelevantLayers`. Use the assigned task as the semantic query. If no relevant layers are returned, explain that no matching map layer was found and stop. Never invent a layer ID.\n- When discovery is required, call `findRelevantFields` with only relevant layer IDs before constructing a filter. Use only the exact field names and categorical values returned by `findRelevantFields`.\n- Leave `includeSummaryStatistics` false unless the filter criteria explicitly depend on a requested numeric summary.\n- Use real field names rather than aliases in SQL-92 where clauses. Use `1=1` when no attribute filter is requested.\n- For highlight, show, include, exclude, or other visual-filter requests with feature criteria, call `setFeatureEffect` using the same layer ID, where clause, geometry filter, and `useCurrentExtent` value determined by the preceding query or discovery steps.\n- If a preceding query returned object IDs for ranked, top-N, or otherwise selected records, pass those object IDs to `setFeatureEffect` instead of rebuilding the selection using only a where clause.\n- Prefer the default feature effects unless the user explicitly requests a particular visual treatment.\n- Set `useCurrentExtent` only when the user explicitly refers to the current view or visible map area.\n- When available, use the preceding query result for feature counts or attribute details in the final response.\n- Report the `setFeatureEffect` outcome faithfully. Do not claim that a map effect was applied when the tool failed or no matching layer or field was found.\n';export{e as default};
|
package/dist/cdn/OT6EWATP.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{b as S}from"./5EFYJYWM.js";import e from"./TJYPEMON.js";import c from"./GTJVWTBP.js";import"./CFBSBZSS.js";import a from"./OUFIJDIW.js";import"./VMQIDO4Z.js";import"./QS3GXAIH.js";import"./2GBRZSEC.js";import{a as $}from"./XBQKBQOE.js";import"./6IQGJNQQ.js";import"./KCYIOVJQ.js";import"./4JPFPWGG.js";import{b as w}from"./WMT55UQD.js";import{L as k,P as b,h as D,j as d,w as g}from"./EXBWPG5Y.js";import"./R74ZHFA6.js";import"./UZLQALHY.js";export default $arcgis.t(([x,_,{substitute:C},{b:y},,{b:u}])=>{async function F(s,e,t=!1){try{let i=new Map;for(let n of s){let{id:a,owner:l}=n,c=i.get(l)??[];c.push(a),i.set(l,c)}let r=[];for(let[n,a]of i){let l=`${e.restUrl}/content/users/${encodeURIComponent(n)}/deleteItems`;for(let c of S(a,100)){let o=x(l,{method:"post",query:{f:"json",items:c.join(","),permanentDelete:t}});r.push(o.then(({data:m})=>m))}}return{result:(await Promise.all(r)).flatMap(({results:n})=>n)}}catch{return{error:{code:"unhandledError"}}}}async function B(s){let{item:e,portal:t,permanentlyDelete:i}=s,{id:r,owner:n}=e;if(!r||!n)return{error:{code:"unhandledError"}};let a=t.recycleBinEnabled&&!i?"/canRecycle":"/canDelete",l=`${t.restUrl}/content/users/${encodeURIComponent(n)}/items/${r}${a}`;try{return{result:(await x(l,{query:{f:"json"}})).data}}catch(c){let o=c.details?.raw;switch(o?.messageCode){case"CONT_00481":case"CONT_00483":case"CONT_00484":return{error:{code:"itemHasDependentItems"}};case"CONT_0048":return{error:{code:"itemDeleteProtected"}};default:return{error:{code:"unhandledError",message:o?.message}}}}}function R(s,e){return(s.relatedItems??[]).map(t=>U(t,e))}function U(s,e){return s instanceof _?s:new _({...s,portal:e})}async function p({itemId:s,portal:e,relationship:t,includeRecycleBin:i,nextkey:r}){let{relationshipType:n,direction:a}=t,l=`${e.restUrl}/content/items/${s}/relatedItems`;try{let c=await y({url:l,portal:e,params:{includeRecycleBin:i,f:"json",relationshipType:n?Array.isArray(n)?n.join(","):n:void 0,direction:a,nextkey:r}});return{success:!0,result:{...c,relatedItems:R(c,e)}}}catch(c){return{success:!1,error:c}}}async function P({itemId:s,portal:e,relationship:t,includeRecycleBin:i,num:r,nextkey:n}){let{relationshipRules:a,direction:l}=t,c=`${e.restUrl}/content/items/${s}/relatedItems`;try{let o=await y({url:c,portal:e,params:{includeRecycleBin:i,f:"json",...a?.length?{relationshipRules:a.join(",")}:{},includeSystemManaged:"true",excludedFlags:"legacy,exclude",num:r,direction:l,nextkey:n}});return{success:!0,result:{...o,relatedItems:R(o,e)}}}catch(o){return{success:!1,error:o}}}async function M(s,e){let{id:t,type:i,typeKeywords:r=[]}=s;if(!t)return null;let n=["Scene Service","Map Service","WFS","OGCFeatureServer","Vector Tile Service","3DTiles Service"].includes(i),a=["Map Service","Vector Tile Service"].includes(i),l=o=>o?.typeKeywords?.includes("View Service")??!1,c=()=>n?[{relationshipType:["Service2Service"],direction:"reverse"},{relationshipType:["Service2Data"],direction:"forward"}]:r.includes("Bulk Published Service")?{relationshipType:["DataStore2BPService"],direction:"reverse"}:i==="Geoprocessing Service"&&r.includes("Notebook Web Tool")?{relationshipType:["Notebook2WebTool"],direction:"reverse"}:r.includes("Route Layer")?{relationshipType:["Service2Route"],direction:"reverse"}:i==="Mobile Application"?{relationshipType:["MobileApp2Code"],direction:"reverse"}:i==="Map Package"?{relationshipType:["Area2Package"],direction:"reverse"}:i==="Feature Service"?{relationshipType:["Service2Layer"],direction:"reverse"}:r.includes("Document")?{relationshipType:["Item2Attachment"],direction:"reverse"}:i==="Application Configuration"?{relationshipType:["Map2AppConfig"],direction:"reverse"}:{relationshipType:["Service2Data"],direction:"forward"};try{let o=c();if(!o)return null;if(!Array.isArray(o))return{sourceData:(await p({itemId:t,portal:e,relationship:o})).result?.relatedItems?.[0]??null,relationship:o};if(n){let m={relationshipType:["Service2Service"],direction:"reverse"},v=await p({itemId:t,portal:e,relationship:m}),h=v.result?.total?v.result.relatedItems.shift()??null:null;if(a&&!l(h)||!h){m={relationshipType:["Service2Data"],direction:"forward"};let f=await p({itemId:t,portal:e,relationship:m});return{sourceData:f.result?.total?f.result.relatedItems.shift()??h:h,relationship:m}}return{sourceData:h,relationship:m}}return null}catch(o){return console.error(o),{sourceData:null,relationship:{direction:"forward"}}}}async function A(s,e){let{id:t,type:i,typeKeywords:r=[]}=s;try{let n=i==="Notebook"?{relationshipType:["Notebook2WebTool"],direction:"forward"}:r.includes("Has Related Route Layers")?{relationshipType:["Service2Route"],direction:"forward"}:r.includes("Hosted Service")||i==="Feature Service"?{relationshipType:["Service2Service"],direction:i==="Feed"?"reverse":"forward"}:i==="Data Store"||r.includes("ArcGIS Server")?{relationshipType:["DataStore2BPService"],direction:"forward"}:{relationshipType:["Service2Data"],direction:"reverse"},a=await p({itemId:t,portal:e,relationship:n});return{resultData:{items:a.result?.total?a.result.relatedItems:null,count:a.result?.total??0},relationship:n}}catch(n){return console.error(n),{resultData:{items:null,count:0},relationship:{direction:"forward"}}}}async function L(s,e){let{id:t}=s;try{return(await p({itemId:t,portal:e,relationship:{relationshipType:["ReplacementItem2Item"],direction:"forward"}})).result?.relatedItems??[]}catch(i){return console.error(i),[]}}async function N(s,e){let t=await P({itemId:s.id,portal:e,relationship:{direction:"forward"}}),i=await M(s,e),r=await A(s,e),n=await L(s,e),a={usedByItems:t.result?.relatedItems??[],sourceData:i?.sourceData??null,resultData:r.resultData.items,replacementItemFor:n.length?n:null},{result:l,error:c}=await B({item:s,portal:e,permanentlyDelete:!1});if(c)switch(c.code){case"itemHasDependentItems":return{item:s,...a,kind:"cannotDelete",reason:"hasDependentItems"};case"itemDeleteProtected":return{item:s,...a,kind:"cannotDelete",reason:"deleteProtected"};default:return{item:s,...a,kind:"cannotDelete",reason:"uncaught"}}if(!l?.success){let{result:o}=await B({item:s,portal:e,permanentlyDelete:!0});return o?.success?{item:s,...a,kind:"permanentlyDelete",reason:"notSupported"}:{item:s,...a,kind:"cannotDelete",reason:"uncaught"}}return{item:s,...a,kind:"recycle"}}var E=D`:host{display:block}calcite-dialog{--calcite-dialog-content-space: 0;--calcite-dialog-background-color: var(--calcite-color-background)}calcite-panel{display:flex;flex-direction:column;gap:.75rem;>*{margin-inline:.75rem}}.panel__content{width:100%;box-sizing:border-box}.bucket__content{display:flex;align-items:flex-start;gap:.75rem;width:100%}.bucket__icon{flex-shrink:0}.bucket__details{display:flex;flex:1 1 auto;flex-direction:column;min-width:0}.bucket__header{font-weight:500}.bucket__label{margin-inline-end:.25rem}.bucket__description{line-height:1.35;font-size:var(--calcite-font-size--1)}.bucket__link{display:flex;align-items:center;min-height:1.5rem}.panel__checkbox{width:100%;padding-block:.75rem;padding-inline-start:.75rem;background-color:var(--calcite-color-foreground-1)}.panel__related-items{margin-top:1rem;border:1px solid var(--calcite-color-border-2)}.panel__related-items-icon{color:var(--calcite-color-status-warning)}.panel__related-items-notice{padding-bottom:.75rem}arcgis-portal-review-related-items{margin-bottom:.75rem}.discouraged-items-warning{margin-bottom:.75rem}`;function j({recycleItems:s,cannotDeleteItems:e,permanentlyDeleteItems:t}){return[...s,...e,...t]}function H(s){return s.map(({item:e,sourceData:t,resultData:i,replacementItemFor:r})=>({item:e,sourceData:t,resultData:i,replacementItemFor:r}))}function O(s,e,t){return!e&&!!t?.length&&!u(s)}function q({selectedItems:s}){let e=[];return e.push(...s.flatMap(({item:t,sourceData:i,resultData:r,replacementItemFor:n})=>{let a=O(t,i,r),l=!!(r?.some(c=>!c.inRecycleBin)&&!z(t,r)&&!W(t,r));return a&&l?[{item:t,reason:"dependent",offendingItems:r??void 0}]:n&&n?.length>0?[{item:t,reason:"replacement",offendingItems:n}]:[]})),e}function z(s,e){let t=e[0];return s.type==="Feed"&&u(s)&&e.length===1&&t?.type==="Feature Service"&&u(t)}function W(s,e){let t=e[0];return s.type==="Feature Service"&&u(s)&&e.length===1&&t?.type==="Feed"&&u(t)}function G(s,e,t,i){let r=["id","ja","ko","th","vi","zh-cn","zh-hk","zh-tw"],n=["en","ca","da","de","el","es","et","fi","hi","hu","it","nb","nl","pt-pt","sv","tr"],a=s??"en",l=e.unknown;return(t===1||r.includes(a))&&(l=e.single),t!==1&&n.includes(a)&&(l=e.multiple),C(l,{...i,number:t})}function T({id:s,linkText:e,label:t,placement:i,relatedItems:r,portal:n,user:a}){return d`<calcite-link id=${s??b}>${e}</calcite-link><calcite-popover .label=${t} .referenceElement=${s} .placement=${i}><arcgis-portal-review-related-items .relatedItems=${r} .portal=${n} .user=${a}></arcgis-portal-review-related-items></calcite-popover>`}var I=class extends k{constructor(){super(...arguments),this.deleteStatusRequestId=0,this.messages=$({blocking:!0}),this.isLoading=!0,this.hasReviewedImpactedItems=!1,this.cannotDeleteItems=[],this.recycleItems=[],this.permanentlyDeleteItems=[],this.reviewingDirectlyUsedByItems=!1,this.markedForDeprecation=[],this.active=!0,this.items=[],this.user=null,this.disableLinks=!1,this.arcgisCancel=g(),this.arcgisConfirm=g(),this.arcgisError=g()}static{this.properties={isLoading:16,hasReviewedImpactedItems:16,cannotDeleteItems:16,recycleItems:16,permanentlyDeleteItems:16,reviewingDirectlyUsedByItems:16,markedForDeprecation:16,active:5,items:0,portal:0,user:0,disableLinks:5}}static{this.styles=E}willUpdate(e){let t=e.has("items")||e.has("portal")||e.has("user")||e.has("active");this.active&&t&&(this.user??=this.portal?.user||null,this.resetState(),this.determineDeleteStatus(++this.deleteStatusRequestId))}async handleDelete(){let{result:e=[]}=await F(this.recycleItems.map(({item:t})=>t),{restUrl:this.portal.restUrl});this.active=!1,this.arcgisConfirm.emit({deletedItems:e,permanentlyDeletedItems:null,deletedItemsCount:e?.length??0,permanentlyDeletedItemsCount:0})}handleDialogClose(){this.active&&this.arcgisCancel.emit(),this.active=!1,this.resetState()}resetState(){this.isLoading=!0,this.hasReviewedImpactedItems=!1,this.cannotDeleteItems=[],this.recycleItems=[],this.permanentlyDeleteItems=[],this.reviewingDirectlyUsedByItems=!1,this.markedForDeprecation=[],++this.deleteStatusRequestId}async determineDeleteStatus(e){let t=await Promise.all(this.items.map(async i=>await N(i,this.portal)));e===this.deleteStatusRequestId&&(this.cannotDeleteItems=t.filter(i=>i.kind==="cannotDelete"),this.recycleItems=t.filter(i=>i.kind==="recycle"),this.permanentlyDeleteItems=t.filter(i=>i.kind==="permanentlyDelete"),this.isLoading=!1)}get recyclableItemsHaveImpactedItems(){return this.recycleItems.some(({usedByItems:e})=>e.length>0)}get itemsNeedReview(){return this.recycleItems.some(({usedByItems:e})=>e.length>0)}get deleteButtonEnabled(){return!this.isLoading&&(!this.itemsNeedReview||this.hasReviewedImpactedItems)}get deleteMode(){return this.markedForDeprecation.length>0?"deprecate":this.permanentlyDeleteItems.length>0?"permanentlyDelete":this.recycleItems.length>0&&this.cannotDeleteItems.length>0?"mixed":this.recycleItems.length>0?"delete":(this.cannotDeleteItems.length>0,"none")}getHeaderText(){return this.items.length===1?this.messages.deleteItem:this.messages.deleteItems}renderBucket({icon:e,label:t,description:i,link:r,bucket:n}){return d`<calcite-block scale=l expanded><div class="bucket__content"><calcite-icon class="bucket__icon" scale=l .icon=${e}></calcite-icon><div class="bucket__details"><div class="bucket__header"><span class="bucket__label">${t}</span><span>${this.renderBucketItems(n)}</span></div><span class="bucket__description">${i}</span>${r&&d`<div class="bucket__link"><calcite-link .href=${r.href} target=_blank icon-start=launch>${r.text??this.messages.moreInfo}</calcite-link></div>`||""}</div></div></calcite-block>`}renderBucketItems(e=[]){if(e.length===0)return null;if(e.length===1){let r=e[0].item,n=r.itemPageUrl??void 0;return d`<calcite-link .href=${n} target=_blank><arcgis-portal-item-type .item=${r} .portal=${this.portal} .user=${this.user} hide-text></arcgis-portal-item-type>${r.title}</calcite-link>`}let t=`delete-items-bucket-${e.map(({item:r})=>r.id).join("-")}`,i=e.map(({item:r})=>r);return T({id:t,linkText:e.length,label:this.messages.bucketItems.replace("{count}",String(e.length)),placement:"bottom-start",relatedItems:i,portal:this.portal,user:this.user})}renderRelatedItemsPopover(e){let t=e.flatMap(({usedByItems:i})=>i);return e.length>1||t.length===0?null:T({id:"delete-items-directly-used-by",linkText:G(this.messages._t9nLocale,this.messages.usedByOtherItems,t.length),label:this.messages.usedByPopover,placement:"auto",relatedItems:t,portal:this.portal,user:this.user})}renderDirectlyUsedByItems(){let e=j({recycleItems:this.recycleItems,cannotDeleteItems:this.cannotDeleteItems,permanentlyDeleteItems:this.permanentlyDeleteItems}),t=e.flatMap(({usedByItems:r})=>r),i=q({selectedItems:H(e)});return d`${this.items.length===1&&this.deleteMode==="delete"&&i.length>0?d`<div class="discouraged-items-warning"><calcite-notice kind=warning open><div slot=message>${this.messages.deleteDiscouraged}</div><calcite-link icon-end=launch slot=link>${this.messages.learnMoreAboutDeletingSourceItems}</calcite-link></calcite-notice></div>`:null}<arcgis-portal-review-related-items .sourceItem=${this.items[0]??null} .relatedItems=${t} .portal=${this.portal} .user=${this.user}></arcgis-portal-review-related-items>`}renderDirectlyUsedByItemsNotice(){let e=this.recycleItems.filter(({usedByItems:i})=>i.length>0).length,t=this.messages.reviewRelatedItems[this.items.length===1?"single":"multiple"].replace("{affectedCount}",String(e)).replace("{totalCount}",String(this.items.length));return d`<div class="panel__related-items-notice"><calcite-notice kind=warning icon open><div slot=message>${t}</div><calcite-button appearance=transparent slot=actions-end @click=${()=>this.reviewingDirectlyUsedByItems=!0}>${this.messages.reviewItems}</calcite-button></calcite-notice></div>`}renderSingleItemDelete(){return d`<calcite-panel>${this.renderRecycleBucket()}${this.renderCannotDeleteBucket()}${this.renderPermanentlyDeleteBucket()}${this.renderDirectlyUsedByItems()}${this.recyclableItemsHaveImpactedItems&&d`<div>${this.items.length>1?this.renderDirectlyUsedByItemsNotice():null}</div>`||""}</calcite-panel>`}renderRecycleBucket(){return!this.recycleItems||this.recycleItems.length===0?null:this.renderBucket({icon:"recycle-bin",label:this.messages.summary.willBeRecycled,description:this.messages.summary.canBeRecovered.single.replace("{days}","14"),bucket:this.recycleItems})}renderCannotDeleteBucket(){if(!this.cannotDeleteItems||this.cannotDeleteItems.length===0)return null;let e=this.cannotDeleteItems?.[0]?.reason;return this.renderBucket({icon:"security",label:this.messages.summary.cannotDelete,description:e==="hasDependentItems"?this.messages.summary.protectedGroup.hasDependentItemsDescription.singleOneDependentItem:this.messages.summary.protectedGroup.deleteProtectedDescription,bucket:this.cannotDeleteItems})}renderPermanentlyDeleteBucket(){return!this.permanentlyDeleteItems||this.permanentlyDeleteItems.length===0?null:this.renderBucket({icon:"trash",label:this.messages.summary.permanentlyDelete,description:this.messages.summary.permanentDelete.notSupported.single,bucket:this.permanentlyDeleteItems})}render(){let{items:e,portal:t,deleteMode:i}=this;if(!(!e||!t))return d`<calcite-dialog modal .open=${this.active} width=s .heading=${this.getHeaderText()} heading-level=2 outside-close-disabled escape-disabled kind=danger @calciteDialogClose=${this.handleDialogClose}><div class="panel__content">${this.isLoading?d`<calcite-scrim loading></calcite-scrim>`:this.renderSingleItemDelete()}</div>${this.itemsNeedReview&&d`<calcite-checkbox slot=content-bottom class="panel__checkbox" @calciteCheckboxChange=${r=>{this.hasReviewedImpactedItems=r.target.checked}} .labelText=${this.messages.reviewImpactedItems}></calcite-checkbox>`||""}<calcite-button slot=footer-end appearance=outline-fill @click=${()=>{this.active=!1,this.arcgisCancel.emit()}}>${this.messages.cancel}</calcite-button>${i!=="none"&&d`<calcite-button .disabled=${!this.deleteButtonEnabled} kind=danger slot=footer-end @click=${async()=>await this.handleDelete()}>${this.messages.delete}</calcite-button>`||""}</calcite-dialog>`}};w("arcgis-portal-delete-items",I);return I},"request","portal/PortalItem","intl",a,c,e)
|
package/dist/cdn/QRON2UPY.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import"./UZLQALHY.js";var e='---\nname: query\ndescription: Answers questions about feature-layer data, including counts, matching records, field values, aggregates, rankings, and spatially constrained results. Use when the user asks to inspect or summarize map data.\nallowed-tools: findRelevantLayers findRelevantFields getAttribute getStatistics getTopFeatures queryFeatures\n---\n\n# Query\n\n- When the task refers to geometry produced by an earlier agent, call `listSharedResources` with `point`, `polyline` and `polygon` as the requested kinds. If a resource description clearly matches, pass its exact ID as `geometryFilter.sharedResourceId` and use `where: "1=1"` unless the user requests an additional attribute filter. If no resource clearly matches, state that the spatial constraint is unavailable and do not guess geometry.\n- Start with `findRelevantLayers` unless a previous tool result from this run explicitly identifies the relevant layer ID. Use the assigned task as the semantic query.\n- If no relevant layers are returned, explain that no matching map layer was found and stop. Never invent a layer ID.\n- Before querying, call `findRelevantFields` with only relevant layer IDs. Use only the exact field names and categorical values returned by `findRelevantFields`.\n- Set `includeSummaryStatistics` to true when the requested answer directly depends on whole-layer numeric summary statistics such as average, minimum, maximum, sum, variance, standard deviation, null count, or range. Otherwise leave it false and use `getStatistics` later if analysis requires statistics under an attribute or spatial constraint.\n- Use statistics returned by `findRelevantFields` when they directly answer an unfiltered whole-layer question. Use `getStatistics` when a where clause or spatial constraint must be applied.\n- Use `queryFeatures` to count, find, or list matching features. It is the default query tool.\n- Use `getTopFeatures` for highest, lowest, first, last, or top-N records ranked by an existing field.\n- Use `getAttribute` only when retrieving a particular attribute from a specifically identified feature.\n- Use real field names rather than aliases in SQL-92 where clauses. Use `1=1` when no attribute filter is requested.\n- Set `useCurrentExtent` only when the user explicitly refers to the current view or visible map area.\n- If the request asks to visually show, display, highlight, map, filter, reveal, emphasize, hide, include, or exclude matching features, preserve the information needed for a visual operation in the working context: layer ID, where clause, geometry filter, `useCurrentExtent`, object IDs when available, and count. Preserve the exact values returned or used by tools so another skill can reuse them without repeating discovery.\n- Only answer requests about the current map\'s layers, features, fields, spatial relationships, or supported map actions. Do not use general model knowledge to answer unrelated requests, even when the assigned task or user asks for it. For an unsupported request, respond only: "I can help with questions about the data and features in this map."\n- Answer the assigned question directly. Do not provide unsolicited recommendations about dataset design, publishing, classification, grouping, future analysis, or alternate workflows.\n- Ask for clarification only when the requested result is genuinely ambiguous or cannot be computed reliably from the available layers and fields.\n- Base the final answer only on returned tool data. State failures or empty results directly and do not fabricate values.\n';export{e as default};
|
package/dist/cdn/XCSDUQMC.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import a from"./GTJVWTBP.js";import"./CFBSBZSS.js";import"./XBQKBQOE.js";import"./6IQGJNQQ.js";import"./KCYIOVJQ.js";import"./4JPFPWGG.js";import"./WMT55UQD.js";import"./EXBWPG5Y.js";import"./R74ZHFA6.js";import"./UZLQALHY.js";export default $arcgis.t(([a])=>{return a},a)
|
package/dist/cdn/ZIAV77I3.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import a from"./VS2Q33NS.js";import"./UZCHLKLO.js";import"./2GBRZSEC.js";import"./XBQKBQOE.js";import"./6IQGJNQQ.js";import"./KCYIOVJQ.js";import"./4JPFPWGG.js";import"./WMT55UQD.js";import"./EXBWPG5Y.js";import"./R74ZHFA6.js";import"./UZLQALHY.js";export default $arcgis.t(([a])=>{return a},a)
|
package/dist/cdn/ZKHEUOSC.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import c from"./FFNDPSGG.js";import b from"./5ITAQNJ6.js";import a from"./B2YUF4DX.js";import"./2GBRZSEC.js";import"./XBQKBQOE.js";import"./6IQGJNQQ.js";import"./KCYIOVJQ.js";import"./4JPFPWGG.js";import"./WMT55UQD.js";import"./EXBWPG5Y.js";import"./R74ZHFA6.js";import"./UZLQALHY.js";export default $arcgis.t(([,,a])=>{return a},a,b,c)
|