@arcgis/portal-components 5.2.0-next.134 → 5.2.0-next.135
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/2N267CQJ.js +2 -0
- package/dist/cdn/2WTWI376.js +2 -0
- package/dist/cdn/{7NNSALJQ.js → 3GRYBMC6.js} +1 -1
- package/dist/cdn/3HEKI54S.js +2 -0
- package/dist/cdn/{MFT5NBI5.js → 47AEGGQB.js} +1 -1
- package/dist/cdn/{5ITAQNJ6.js → 4PQO4X4X.js} +1 -1
- package/dist/cdn/4TQWZ2KF.js +9 -0
- package/dist/cdn/{B2YUF4DX.js → 576MGJVB.js} +1 -1
- package/dist/cdn/5OLOB42V.js +2 -0
- package/dist/cdn/5QJFE2TZ.js +2 -0
- package/dist/cdn/5ZOQN2RD.js +2 -0
- package/dist/cdn/{RBGARTND.js → 636D2CQX.js} +1 -1
- package/dist/cdn/6D5PKX2I.js +2 -0
- package/dist/cdn/6OGBUPNX.js +2 -0
- package/dist/cdn/74ZBFN22.js +2 -0
- package/dist/cdn/{NBB7R2RE.js → 7RVBLIFE.js} +1 -1
- package/dist/cdn/A7HUDHZU.js +2 -0
- package/dist/cdn/A7XG2CGZ.js +2 -0
- package/dist/cdn/AROVW3UH.js +2 -0
- package/dist/cdn/AUVW676U.js +2 -0
- package/dist/cdn/BFSOZIZT.js +2 -0
- package/dist/cdn/{EBPLUTN5.js → BGZVQGWE.js} +1 -1
- package/dist/cdn/BIXJGL7B.js +2 -0
- package/dist/cdn/BQPBJWMI.js +2 -0
- package/dist/cdn/BQR4YDYX.js +2 -0
- package/dist/cdn/CBL5PQQB.js +2 -0
- package/dist/cdn/D7MON5HR.js +2 -0
- package/dist/cdn/DOOROTIK.js +2 -0
- package/dist/cdn/DP3RFREY.js +2 -0
- package/dist/cdn/DQJLTSBY.js +2 -0
- package/dist/cdn/E37TWXOS.js +2 -0
- package/dist/cdn/E5MBJ2OM.js +2 -0
- package/dist/cdn/FEXHSQ6Z.js +2 -0
- package/dist/cdn/FN64OJAN.js +2 -0
- package/dist/cdn/FS5XBCHL.js +2 -0
- package/dist/cdn/GBFEHPAL.js +2 -0
- package/dist/cdn/GKBQITIV.js +2 -0
- package/dist/cdn/GX6RPWBL.js +2 -0
- package/dist/cdn/{CVOWIH4J.js → GXGPSLRY.js} +1 -1
- package/dist/cdn/HCVZKEPD.js +2 -0
- package/dist/cdn/HHO6EQZB.js +2 -0
- package/dist/cdn/{6NRVGSZJ.js → HNE7TSIC.js} +1 -1
- package/dist/cdn/HNIPFKPI.js +2 -0
- package/dist/cdn/IAUHMY3T.js +2 -0
- package/dist/cdn/ID2H3IUI.js +2 -0
- package/dist/cdn/INRJRPFE.js +2 -0
- package/dist/cdn/{KCYIOVJQ.js → ISJALOUO.js} +1 -1
- package/dist/cdn/IVQXK46W.js +2 -0
- package/dist/cdn/IYNMMRVZ.js +2 -0
- package/dist/cdn/JI4MTBTR.js +2 -0
- package/dist/cdn/JYORYNSD.js +2 -0
- package/dist/cdn/KFIQURH5.js +2 -0
- package/dist/cdn/L4JQV42D.js +2 -0
- package/dist/cdn/M6UW4NQ5.js +2 -0
- package/dist/cdn/MTUFZXUQ.js +2 -0
- package/dist/cdn/{TYPCOTRW.js → MXM422M5.js} +1 -1
- package/dist/cdn/{RL2H7TI6.js → MXSBJ4UL.js} +1 -1
- package/dist/cdn/NDZYRGOO.js +2 -0
- package/dist/cdn/{JJUCB3OG.js → OJGDXUKZ.js} +1 -1
- package/dist/cdn/OT3GDLUB.js +2 -0
- package/dist/cdn/OTTQ54QN.js +2 -0
- package/dist/cdn/{ZEP2GDDJ.js → PIAWVFRU.js} +1 -1
- package/dist/cdn/PJ4ISUWJ.js +2 -0
- package/dist/cdn/PWOYHZOU.js +2 -0
- package/dist/cdn/{MQISQ7P3.js → Q6VNNX2L.js} +1 -1
- package/dist/cdn/QABX5STK.js +2 -0
- package/dist/cdn/QDWOQBO3.js +3 -0
- package/dist/cdn/SG23BRS4.js +2 -0
- package/dist/cdn/T3B2IOBY.js +2 -0
- package/dist/cdn/T3RJKB2A.js +2 -0
- package/dist/cdn/TV3JAEAU.js +2 -0
- package/dist/cdn/UMKPSK3Y.js +2 -0
- package/dist/cdn/UXZTO272.js +4 -0
- package/dist/cdn/VLIJNVNM.js +2 -0
- package/dist/cdn/VOZJP55F.js +2 -0
- package/dist/cdn/VPAW5MZH.js +2 -0
- package/dist/cdn/WEKTI5QA.js +2 -0
- package/dist/cdn/WHX4LFPO.js +670 -0
- package/dist/cdn/WLSTJTHH.js +2 -0
- package/dist/cdn/WRXH4QIH.js +2 -0
- package/dist/cdn/XOFCMJBQ.js +150 -0
- package/dist/cdn/YBYLRWDO.js +2 -0
- package/dist/cdn/YUV3L73F.js +2 -0
- package/dist/cdn/YWS3KTEP.js +2 -0
- package/dist/cdn/Z2K2TPTY.js +2 -0
- package/dist/cdn/ZDA2LVTP.js +2 -0
- package/dist/cdn/assets/portal-entity-picker/t9n/messages.en.json +1 -0
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/main.css +1 -1
- package/dist/chunks/item.js +17 -13
- package/dist/chunks/string.js +15 -9
- package/dist/chunks/utils.js +28 -83
- package/dist/chunks/utils2.js +75 -651
- package/dist/chunks/utils3.js +664 -0
- package/dist/components/arcgis-portal-ai-assistant/customElement.js +21 -17
- package/dist/components/arcgis-portal-entity-picker/customElement.d.ts +87 -0
- package/dist/components/arcgis-portal-entity-picker/customElement.js +247 -0
- package/dist/components/arcgis-portal-entity-picker/index.d.ts +1 -0
- package/dist/components/arcgis-portal-entity-picker/index.js +11 -0
- package/dist/components/arcgis-portal-group-browser/customElement.js +1 -1
- package/dist/components/arcgis-portal-group-card/customElement.js +7 -7
- package/dist/components/arcgis-portal-group-picker/customElement.d.ts +20 -0
- package/dist/components/arcgis-portal-group-picker/customElement.js +15 -0
- package/dist/components/arcgis-portal-group-picker/index.d.ts +1 -0
- package/dist/components/arcgis-portal-group-picker/index.js +2 -0
- package/dist/components/arcgis-portal-item-actions/customElement.js +1 -1
- package/dist/components/arcgis-portal-item-card/customElement.js +15 -15
- package/dist/components/arcgis-portal-item-favorite/customElement.js +1 -1
- package/dist/components/arcgis-portal-item-picker/customElement.d.ts +20 -0
- package/dist/components/arcgis-portal-item-picker/customElement.js +15 -0
- package/dist/components/arcgis-portal-item-picker/index.d.ts +1 -0
- package/dist/components/arcgis-portal-item-picker/index.js +2 -0
- package/dist/components/arcgis-portal-item-type/customElement.js +1 -1
- package/dist/components/arcgis-portal-mentionable-text-area/customElement.js +75 -101
- package/dist/components/arcgis-portal-navigation/customElement.js +2 -2
- package/dist/components/arcgis-portal-user-picker/customElement.d.ts +20 -0
- package/dist/components/arcgis-portal-user-picker/customElement.js +15 -0
- package/dist/components/arcgis-portal-user-picker/index.d.ts +1 -0
- package/dist/components/arcgis-portal-user-picker/index.js +2 -0
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/index.d.ts +40 -0
- package/dist/loader.js +4 -0
- package/dist/types/lumina.d.ts +24 -0
- package/dist/types/portalEntityPicker.d.ts +18 -0
- package/dist/types/preact.d.ts +28 -0
- package/dist/types/react.d.ts +32 -0
- package/dist/types/stencil.d.ts +24 -0
- package/package.json +7 -7
- package/dist/cdn/245E7G7N.js +0 -14
- package/dist/cdn/27HHZHV5.js +0 -2
- package/dist/cdn/2RWCT4ED.js +0 -19
- package/dist/cdn/34DIIWGC.js +0 -2
- package/dist/cdn/3NA4M2MH.js +0 -2
- package/dist/cdn/3OBIA66A.js +0 -69
- package/dist/cdn/3YS4G5QE.js +0 -2
- package/dist/cdn/426RS2JW.js +0 -2
- package/dist/cdn/4BQASKGB.js +0 -2
- package/dist/cdn/4FQWB6HA.js +0 -2
- package/dist/cdn/4LMVMZGG.js +0 -2
- package/dist/cdn/4RPNBHB5.js +0 -2
- package/dist/cdn/5D75JDVE.js +0 -2
- package/dist/cdn/5GLUIQ7R.js +0 -2
- package/dist/cdn/63THOLAY.js +0 -49
- package/dist/cdn/6FKARLGX.js +0 -2
- package/dist/cdn/6JJUORUU.js +0 -2
- package/dist/cdn/6PTPTTSS.js +0 -2
- package/dist/cdn/6XRVLKAZ.js +0 -2
- package/dist/cdn/74OADAQ6.js +0 -2
- package/dist/cdn/7PMLGJZR.js +0 -75
- package/dist/cdn/7TN5Q3I2.js +0 -2
- package/dist/cdn/7UNUBFFC.js +0 -2
- package/dist/cdn/ABIXHCPF.js +0 -5
- package/dist/cdn/AMBLICID.js +0 -2
- package/dist/cdn/ASDS73QU.js +0 -245
- package/dist/cdn/BADETB57.js +0 -2
- package/dist/cdn/BJ6YM6ZC.js +0 -2
- package/dist/cdn/BNFEED2K.js +0 -2
- package/dist/cdn/BPQ6ZBLE.js +0 -2
- package/dist/cdn/BV6XVVX2.js +0 -2
- package/dist/cdn/C2WQAFUM.js +0 -2
- package/dist/cdn/C7ZFXRPS.js +0 -122
- package/dist/cdn/CAPW3SVN.js +0 -2
- package/dist/cdn/CGBXIK2L.js +0 -2
- package/dist/cdn/CVTQ3A4T.js +0 -2
- package/dist/cdn/D4MCG57T.js +0 -2
- package/dist/cdn/DISKTSUL.js +0 -2
- package/dist/cdn/DPNKUVXU.js +0 -2
- package/dist/cdn/E2AHTEKS.js +0 -2
- package/dist/cdn/EBUPCIL6.js +0 -2
- package/dist/cdn/EJXMHOYA.js +0 -2
- package/dist/cdn/EOQHBWKK.js +0 -2
- package/dist/cdn/EXBWPG5Y.js +0 -4
- package/dist/cdn/FED2DOMO.js +0 -2
- package/dist/cdn/FHXIGKK4.js +0 -2
- package/dist/cdn/FJ3PFFCN.js +0 -2
- package/dist/cdn/FNHI7NZ4.js +0 -2
- package/dist/cdn/FOHZXQNV.js +0 -2
- package/dist/cdn/FPKKNRZY.js +0 -2
- package/dist/cdn/G5PORPTQ.js +0 -2
- package/dist/cdn/GCB5BYDM.js +0 -11
- package/dist/cdn/GDKX2CGS.js +0 -2
- package/dist/cdn/GOHJT66O.js +0 -2
- package/dist/cdn/H5RBBOBZ.js +0 -2
- package/dist/cdn/HKD2GF4M.js +0 -2
- package/dist/cdn/I5C4SV6N.js +0 -2
- package/dist/cdn/I64ZE3TR.js +0 -2
- package/dist/cdn/IJ3CLFAU.js +0 -22
- package/dist/cdn/JB2P4KY4.js +0 -2
- package/dist/cdn/JIBKSQBE.js +0 -2
- package/dist/cdn/JIOUF6RV.js +0 -2
- package/dist/cdn/JMZYTFZZ.js +0 -41
- package/dist/cdn/JZ7SSPKB.js +0 -2
- package/dist/cdn/K4LXMVNH.js +0 -2
- package/dist/cdn/KALKWPUR.js +0 -2
- package/dist/cdn/KCLCOBT2.js +0 -2
- package/dist/cdn/KEM54FSC.js +0 -2
- package/dist/cdn/KNRJ3WXR.js +0 -98
- package/dist/cdn/KOZMWZTT.js +0 -2
- package/dist/cdn/KS2JQYWA.js +0 -2
- package/dist/cdn/KWEVRR34.js +0 -2
- package/dist/cdn/L33CMX4M.js +0 -2
- package/dist/cdn/L6KBBJEC.js +0 -36
- package/dist/cdn/LL5AA56F.js +0 -2
- package/dist/cdn/LM6H2RMV.js +0 -2
- package/dist/cdn/M33TAW7V.js +0 -2
- package/dist/cdn/MC3V6J4M.js +0 -2
- package/dist/cdn/MDGR5FJS.js +0 -2
- package/dist/cdn/NQMXSOYA.js +0 -2
- package/dist/cdn/NUQSQHFS.js +0 -2
- package/dist/cdn/NXJTHWZ6.js +0 -2
- package/dist/cdn/OLXC7CE4.js +0 -2
- package/dist/cdn/PCFYL72V.js +0 -2
- package/dist/cdn/PEO5PFZF.js +0 -2
- package/dist/cdn/PQ75545K.js +0 -2
- package/dist/cdn/Q5GFMD4E.js +0 -2
- package/dist/cdn/QE4CNVDQ.js +0 -34
- package/dist/cdn/QFHL5APV.js +0 -2
- package/dist/cdn/QJ7AI54H.js +0 -135
- package/dist/cdn/QKCV7CY2.js +0 -77
- package/dist/cdn/R74ZHFA6.js +0 -2
- package/dist/cdn/RZV3CS2K.js +0 -2
- package/dist/cdn/S2BGAMSA.js +0 -2
- package/dist/cdn/S772GWA3.js +0 -2
- package/dist/cdn/SABP5QOL.js +0 -2
- package/dist/cdn/SGI3WLNF.js +0 -2
- package/dist/cdn/SLTFLCVR.js +0 -99
- package/dist/cdn/SOFQU6KS.js +0 -654
- package/dist/cdn/SXSWBX5T.js +0 -2
- package/dist/cdn/TCAC2CO6.js +0 -2
- package/dist/cdn/TKCE4WYE.js +0 -3
- package/dist/cdn/UDDG7VVX.js +0 -2
- package/dist/cdn/UFNGJCCT.js +0 -2
- package/dist/cdn/UZMFRVR5.js +0 -2
- package/dist/cdn/V4EYW3O6.js +0 -56
- package/dist/cdn/V4UI5WTN.js +0 -2
- package/dist/cdn/V5BCQN5U.js +0 -2
- package/dist/cdn/V75YULVA.js +0 -2
- package/dist/cdn/VLCHVVVZ.js +0 -2
- package/dist/cdn/VUBYPGZG.js +0 -2
- package/dist/cdn/VW7DSKPH.js +0 -109
- package/dist/cdn/VX6EE6FY.js +0 -2
- package/dist/cdn/VXAWOPU3.js +0 -2
- package/dist/cdn/W2SYL7IJ.js +0 -71
- package/dist/cdn/W4FGRGLV.js +0 -146
- package/dist/cdn/W4SAWMXS.js +0 -31
- package/dist/cdn/WBZLQZYR.js +0 -134
- package/dist/cdn/WGM3TQIL.js +0 -2
- package/dist/cdn/WKJEITKD.js +0 -2
- package/dist/cdn/WMT55UQD.js +0 -2
- package/dist/cdn/WMV67HW3.js +0 -2
- package/dist/cdn/WOOCTQS3.js +0 -2
- package/dist/cdn/X4GCKBT2.js +0 -2
- package/dist/cdn/XATZUXUP.js +0 -2
- package/dist/cdn/XCJJESRE.js +0 -2
- package/dist/cdn/XD3TUJLE.js +0 -2
- package/dist/cdn/XDKRJYZ2.js +0 -2
- package/dist/cdn/XMSFS5AT.js +0 -2
- package/dist/cdn/XZF5RW4B.js +0 -2
- package/dist/cdn/YARGA5LY.js +0 -2
- package/dist/cdn/YDA23ZS6.js +0 -2
- package/dist/cdn/YYHDUC6G.js +0 -2
- package/dist/cdn/ZIIB5RYY.js +0 -2
- package/dist/cdn/ZJJOTRSO.js +0 -138
- package/dist/cdn/ZP4Q36AO.js +0 -2
- package/dist/cdn/ZQWENT2S.js +0 -3
- /package/dist/cdn/{ZZ44GQ4I.js → QUOPWSRC.js} +0 -0
- /package/dist/cdn/{NQQLTGIK.js → UTA2UBBS.js} +0 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
+
import{b as v}from"./2GBRZSEC.js";import{a as w}from"./OJGDXUKZ.js";import"./HHO6EQZB.js";import"./ISJALOUO.js";import{K as r,L as a,M as u,P as p,S as m,h as d,j as s}from"./UXZTO272.js";import"./UZLQALHY.js";var b=d`:host{display:flex;justify-content:flex-end;margin-inline:1rem;position:relative}.wrapper{padding-inline-start:.25rem;display:flex;border-inline-start:1px solid var(--calcite-color-border-1);border-inline-end:1px solid var(--calcite-color-border-1)}.tooltip-container{width:9rem}.button{margin-inline-end:.25rem}.measure-container{position:absolute;width:100%;height:0;overflow:hidden}.measure-text{visibility:hidden;height:0;width:auto;overflow:hidden;font-size:var(--calcite-font-size--1)}`,c=class extends u{constructor(){super(...arguments),this.measureText=r(),this.overflowButton=r(),this.resizeObserver=null,this.actionWidths=[],this._messages=w({name:"portal-browser",blocking:!0}),this.buttonPadding=88,this.moreWidth=0,this.elementWidth=0,this.visibleActions=[],this.overflowActions=[],this.calculating=!1,this.actions=[]}static{this.properties={visibleActions:16,overflowActions:16,calculating:16,actions:0,selection:0}}static{this.styles=b}async restoreFocus(){this.lastExecutedAction?.setFocus()}willUpdate(t){t.has("actions")&&(this.measureAndCacheWidths(this.actions),this.calculateOverflow()),t.has("selection")&&(this.hasSelection()?v(100).then(()=>{this.calculating=!1}):this.calculating=!0)}firstUpdated(){this.measureAndCacheWidths(this.actions),this.calculateOverflow(),!(typeof ResizeObserver>"u")&&(this.resizeObserver=new ResizeObserver(t=>{for(let e of t)e.contentRect.width>0&&(this.elementWidth=e.contentRect.width,this.calculateOverflow())}),this.resizeObserver.observe(this.el))}disconnectedCallback(){this.resizeObserver?.disconnect(),this.resizeObserver=null,super.disconnectedCallback()}measureAndCacheWidths(t){let e=this.measureText.value;if(!e)return;this.actionWidths=t.map(o=>(e.textContent=o.text,{action:o,width:e.offsetWidth+this.buttonPadding}));let i=this._messages.actions.more;e.textContent=i,this.moreWidth=e.scrollWidth+this.buttonPadding}calculateOverflow(){let t=this.moreWidth,e=this.actionWidths.reduce(({width:i,visible:o,overflow:l},{action:h,width:f})=>{let n=i+f;return n>=this.elementWidth?{width:n,visible:o,overflow:[...l,h]}:{width:n,visible:[...o,h],overflow:l}},{visible:[],overflow:[],width:t});this.visibleActions=e.visible,this.overflowActions=e.overflow}hasSelection(){return!!this.selection?.length}renderButton(t){let e=t.id||`${t.text}-${t.icon||"none"}`;return s`<div><calcite-button class="button" .iconStart=${t.icon} @click=${i=>{this.lastExecutedAction=i.currentTarget,t.onClick()}} appearance=transparent kind=neutral id=${e??p}>${t.text}</calcite-button>${t.tooltip&&s`<calcite-tooltip .referenceElement=${e}><span class="tooltip-container">${t.tooltip}</span></calcite-tooltip>`||""}</div>`}render(){let t=this.overflowActions.length>0,e=this._messages.actions.more;return s`<div><span class="measure-container"><span class="measure-text" aria-hidden ${a(this.measureText)}></span></span>${this.hasSelection()&&(this.visibleActions.length>0||t)&&!this.calculating&&s`<nav class="wrapper">${this.visibleActions.map(i=>this.renderButton(i))}${t&&s`<calcite-dropdown width=m placement=bottom-end><calcite-button slot=trigger kind=neutral icon-end=chevron-down appearance=transparent ${a(this.overflowButton)}>${e}</calcite-button><calcite-dropdown-group selection-mode=none>${this.overflowActions.map(i=>s`<calcite-dropdown-item .iconStart=${i.icon||"blank"} @calciteDropdownItemSelect=${()=>{this.lastExecutedAction=this.overflowButton.value||void 0,i.onClick()}}>${i.text}</calcite-dropdown-item>`)}</calcite-dropdown-group></calcite-dropdown>`||""}</nav>`||""}</div>`}};m("arcgis-portal-browser-actions",c);export{c as ArcgisPortalBrowserActions};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
+
import d from"./3GRYBMC6.js";import"./PIAWVFRU.js";import b from"./576MGJVB.js";import a from"./F3ODJVJC.js";import{a as f}from"./OJGDXUKZ.js";import"./HHO6EQZB.js";import"./ISJALOUO.js";import{M as n,O as c,S as l,h as e,j as s,q as o}from"./UXZTO272.js";import"./UZLQALHY.js";export default $arcgis.t(([,,{a:d,b:h}])=>{var p=e`.banner{box-sizing:border-box;width:100%;left:0;text-align:center;font-family:var(--calcite-font-family);background-color:#fff;color:#000;padding:var(--calcite-spacing-sm);font-size:var(--calcite-font-size);text-transform:uppercase;overflow-wrap:break-word}.invalid-container{background-color:#fff;color:#000;display:flex;align-items:center;justify-content:center;gap:8px}.invalid-icon{--calcite-icon-color: var(--calcite-color-status-danger)}.invalid-message{text-align:center;font-family:var(--calcite-font-family);background-color:#fff;color:#000;padding:var(--calcite-spacing-sm);font-size:var(--calcite-font-size);overflow-wrap:break-word}`,r=class extends n{constructor(){super(...arguments),this.classificationModel=d(this),this.messages=f(),this._classificationDataTask=h(this),this.portalClassificationSchema=this.classificationModel.portalClassificationSchema,this.status=this.classificationModel.status,this.missingExistingClassification=!1,this.variant="full",this.autoDestroyDisabled=!1,this.validationErrors=""}static{this.properties={portalClassificationSchema:16,status:16,itemClassification:16,portalItem:0,missingExistingClassification:5,variant:1,autoDestroyDisabled:5,validationErrors:1}}static{this.styles=p}async destroy(){await this.manager.destroy()}willUpdate(a){if(a.has("portalItem")){let{portalItem:i}=this;i?.load().then(()=>{i?.id&&i?.loaded&&i?.classification&&!this.missingExistingClassification?this.classificationModel.validateClassification(this.variant==="preview"?null:i.id,i.classification,i?.portal.restUrl).catch(o(this)).then(t=>{this.validationErrors=t??""}):this.validationErrors=""}).catch(o(this))}}getStyle(){let a={};if(this.variant==="preview"&&(a.fontSize="var(--calcite-font-size-sm)",a.padding="var(--calcite-spacing-xs)"),this.itemClassification&&this.portalClassificationSchema){let i=this.itemClassification.classification,t=this.portalClassificationSchema.classificationMetadata.classificationValueProperties.find(({value:m})=>m===i);t?.backgroundColor&&(a.backgroundColor=t.backgroundColor),t?.textColor&&(a.color=t.textColor)}return a}render(){return this._classificationDataTask.render({pending:void 0,error:void 0,complete:()=>this.portalClassificationSchema&&this.portalItem?.portal.authMode!=="anonymous"?this.validationErrors&&this.variant==="full"?s`<div class="invalid-container"><calcite-icon class="invalid-icon" scale=s icon=exclamation-mark-triangle .textLabel=${this.messages.invalidclassificationerror}></calcite-icon><span class="invalid-message">${this.messages.invalidclassificationerror}</span></div>`:s`<div class="banner" style=${c(this.getStyle())}>${this.itemClassification?.banner??this.messages.notyetclassified??"Not yet classified"}</div>`:""})}};l("arcgis-portal-classification-banner",r);return r},a,b,d)
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
+
import a from"./4PQO4X4X.js";import{b as p}from"./2GBRZSEC.js";import{a as c}from"./OJGDXUKZ.js";import{K as r,L as n,M as o,N as m,S as g,h as s,j as e,w as i}from"./UXZTO272.js";export default $arcgis.t(([{c:h}])=>{var f=s`.wrapper{container-type:inline-size;container-name:browser-pagination;padding:2rem .5rem}.pagination{width:100%;justify-content:center;transform:scale(.9);transform-origin:center}.hide{display:none}@container browser-pagination (min-width: 641px){.pagination{transform:none}}`,a=class extends o{constructor(){super(...arguments),this.paginationRef=r(),this._messages=c({name:"portal-browser",blocking:!0}),this.total=0,this.start=1,this.num=60,this.store=h(),this.arcgisBrowserPage=i()}static{this.properties={total:9,start:9,num:9,store:0}}static{this.styles=f}async nextPage(){this.paginationRef.value?.nextPage(),await p(10);let t=this.paginationRef.value;t&&this.arcgisBrowserPage.emit({start:t.startItem,total:t.totalItems,num:t.pageSize})}emitPage(t){this.arcgisBrowserPage.emit({start:t.startItem,total:t.totalItems,num:t.pageSize})}render(){return e`<div class="wrapper"><calcite-pagination class=${m({hide:!this.total||this.total<this.num,pagination:!0})} @calcitePaginationChange=${t=>{let l=t.target;this.emitPage(l)}} .startItem=${this.start} .totalItems=${Math.min(this.total,1e4-this.num)} .pageSize=${this.num} scale=m .messageOverrides=${{next:this._messages.pagination.next,previous:this._messages.pagination.prev}} ${n(this.paginationRef)}></calcite-pagination></div>`}};g("arcgis-portal-browser-pagination",a);return a},a)
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
+
import{b as a}from"./JI4MTBTR.js";import"./47AEGGQB.js";import"./25XJ66JO.js";import"./5YDITHQA.js";import"./OJGDXUKZ.js";import"./HHO6EQZB.js";import"./ISJALOUO.js";import"./UXZTO272.js";import"./UZLQALHY.js";export{a as ArcgisPortalBrowserFilterStatus};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"clearSelection":"Clear selection","noGroupsFound":"No groups found.","noItemsFound":"No items found.","noUsersFound":"No users found.","searchFailed":"Search could not be completed. Try again.","searchGroups":"Search groups","searchItems":"Search items","searchUsers":"Search organization members","searching":"Searching"}
|
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 r}from"./WMT55UQD.js";import{z as e}from"./EXBWPG5Y.js";import"./R74ZHFA6.js";import"./UZLQALHY.js";var a=e(r,{"arcgis-portal-account-switcher":[()=>import("./GDKX2CGS.js"),"clientId,messages:,portal:,redirectUri,signout,signoutOptions:"],"arcgis-portal-account-switcher-accounts":[()=>import("./MDGR5FJS.js"),"accounts:,messages:,portal:,targetUser"],"arcgis-portal-account-switcher-list":[()=>import("./5D75JDVE.js"),"accountAccess:,actions:,interactive,linkedAccounts:,messages:,portal:,signedInUsers:"],"arcgis-portal-account-switcher-signout":[()=>import("./GOHJT66O.js"),"messages:,portal:,signedInAccounts:"],"arcgis-portal-add-gps-metadata":[()=>import("./Q5GFMD4E.js"),"item:,itemId,messages:,portal:"],"arcgis-portal-ai-assistant":[()=>import("./SOFQU6KS.js"),"autoDestroyDisabled,config:,defaultClosed,disabledAgents:,navigationCapabilities:,navigationTargetMap:,portal:,t9n:,useProdDocAssistant,user:"],"arcgis-portal-ai-assistant-interrupt":[()=>import("./6NRVGSZJ.js"),"_messages:,message,options:,type"],"arcgis-portal-browser":[()=>import("./7TN5Q3I2.js"),"_messages:,alwaysShowContent,alwaysShowPagination,alwaysShowSelection,formFactor,height,hideContentTop,hideFilters,hideTopBar,loading,panel,preview,rangeFormatter:,response:,searchTerm,selected:,showPreSearch,store:;scrollToTop"],"arcgis-portal-browser-actions":[()=>import("./E2AHTEKS.js"),"_messages:,actions:,selection:;restoreFocus"],"arcgis-portal-browser-filter-status":[()=>import("./4FQWB6HA.js"),"_messages:,browserWidth,componentWidth,filters:,hiddenFilterIds:"],"arcgis-portal-browser-pagination":[()=>import("./4LMVMZGG.js"),"_messages:,num,start,store:,total;nextPage"],"arcgis-portal-browser-search":[()=>import("./UFNGJCCT.js"),"_messages:,allowClear,placeholder,store:,term;setFocus"],"arcgis-portal-browser-sort":[()=>import("./PEO5PFZF.js"),"_messages:,appearance,field,options:,order,showText,useDeleted"],"arcgis-portal-browser-top-bar":[()=>import("./KS2JQYWA.js"),"_messages:,filtersDisabled,store:"],"arcgis-portal-browser-view":[()=>import("./27HHZHV5.js"),"options:,store:,view,viewText"],"arcgis-portal-classification-banner":[()=>import("./KWEVRR34.js"),"autoDestroyDisabled,messages:,missingExistingClassification,portalItem:,validationErrors,variant;destroy"],"arcgis-portal-classification-config":[()=>import("./EJXMHOYA.js"),"autoDestroyDisabled,messages:,portalItem:,status,valid,values;destroy,resetForm,validateForm"],"arcgis-portal-classification-favorite":[()=>import("./KOZMWZTT.js"),"attributeExpressionResults:,classificationValue:,favoriteClassifications:,messages:,portalItem:,resetFavoriteClassification:,selectedFavoriteClassificationName,updateClassificationData:"],"arcgis-portal-classification-form-element":[()=>import("./C2WQAFUM.js"),"attribute:,attributeKey,isRequiredErrors:,messages:,renderingInfo:,value:"],"arcgis-portal-delete-items":[()=>import("./JIBKSQBE.js"),"active,disableLinks,items:,messages:,portal:,user:"],"arcgis-portal-extent-picker":[()=>import("./74OADAQ6.js"),"active,contentOnly,extentService,extentValue:,isArea,itemId,messages:,portal:;;getExtent"],"arcgis-portal-extent-picker-coord-field":[()=>import("./BJ6YM6ZC.js"),"errorMessage,inputId,label,max,min,relatedErrorMessage,validateRelated:,value;;checkRelatedField,isValid,setFocus"],"arcgis-portal-field-delete":[()=>import("./EBUPCIL6.js"),"config:,fieldNames:,layer:,mapView:,messages:,options:"],"arcgis-portal-group-badges":[()=>import("./BV6XVVX2.js"),"_messages:,appearance,empty,group:,portal:,scale,showTooltips,width"],"arcgis-portal-group-browser":[()=>import("./426RS2JW.js"),"_browserMessages:,_messages:,alwaysShowSelection,cards:,fetch:,filters:,formFactor,hasIndoorsSpaces,height,hidePreviewBadges,hidePreviewFooter,hideTopBar,loading,messageOverrides:,num,portal:,preflight:,preview,q,searchParamInteraction:,searchTerm,searchUser,selected:,selection,sort:,store:,view;clearFilters,refresh"],"arcgis-portal-group-browser-card":[()=>import("./SABP5QOL.js"),"browser:,cardProps:,group:;restoreFocus"],"arcgis-portal-group-browser-preview":[()=>import("./CVTQ3A4T.js"),"currentResponse:,group:,hideBadges,hidePreviewFooter,messages:,portal:,previewFooterActionsSpaced,user:;setFocus"],"arcgis-portal-group-browser-preview-card":[()=>import("./VXAWOPU3.js"),"baseUrl,hideItemType,hideOwner,hideThumbnail,interactive,item:,link,newTab,portal:,showBadges,showDateUpdated,showOwnerPopup,showSummary,user:;restoreFocus"],"arcgis-portal-group-card":[()=>import("./HKD2GF4M.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("./4BQASKGB.js"),"group:,portal:,scale,tooltip"],"arcgis-portal-info-banner":[()=>import("./BNFEED2K.js"),"config:,position"],"arcgis-portal-item-actions":[()=>import("./LL5AA56F.js"),"actions:,item:,keyHandler:,label,messages:,portal:,previewText,showFavorite,showPreview,tabIndexOverride,user:;setFocus"],"arcgis-portal-item-badges":[()=>import("./L33CMX4M.js"),"appearance,empty,item:,portal:,scale,showTooltips,useProduction,user:,width"],"arcgis-portal-item-badge":[()=>import("./FED2DOMO.js"),"_messages:,appearance,badgeType,item:,portal:,scale,showTooltip,useProduction,user:,width"],"arcgis-portal-item-card":[()=>import("./WKJEITKD.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("./3NA4M2MH.js"),"iconOnly,item:,messages:,portal:,scale,showTooltip,user:,width;setFocus"],"arcgis-portal-item-thumbnail":[()=>import("./M33TAW7V.js"),"cacheString,generate,item:,portal:,serviceInfo:,useProduction,user:;generateThumbnail"],"arcgis-portal-item-type":[()=>import("./FNHI7NZ4.js"),"ellipsis,hideIcon,hideText,item:,messages:,portal:,scale,serviceInfo:,showHosted,user:"],"arcgis-portal-mentionable-text-area":[()=>import("./ZP4Q36AO.js"),"disabled,maxLength,placeholder,popoverListLabel,popoverPlacement,portal:,readOnly,rows,scale,starters:,user:,value;closePopover,focusTextArea,selectItem"],"arcgis-portal-navigation":[()=>import("./FOHZXQNV.js"),"clientId,currentPathname,disableNotebookServer,disableTrackViewer,maxWidth,messages:,portal:,portalItem:,product,productHref,projectMenuIcon,projectMenuOptions:,projectMenuSaveIndicator,projectTitle,projectTitleSave:"],"arcgis-portal-replacement-item-redirect":[()=>import("./EOQHBWKK.js"),"itemId,messages:,portal:,user:;setFocus"],"arcgis-portal-review-related-items":[()=>import("./KCLCOBT2.js"),"messages:,portal:,relatedItems:,sourceItem:,user:"],"arcgis-portal-sublayer-type":[()=>import("./VX6EE6FY.js"),"geometry,hideIcon,hideName,hideType,messages:,name,renderer:,scale,type,underline"],"arcgis-portal-user-avatar":[()=>import("./H5RBBOBZ.js"),"checkOnline,description,heading,hideAvatar,messages:,portal:,scale,showName,underline,user:,username,wrap"],"arcgis-portal-user-popup":[()=>import("./YARGA5LY.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("./6FKARLGX.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-account-switcher-signout,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-delete-items,arcgis-portal-extent-picker,arcgis-portal-field-delete,arcgis-portal-group-badges,arcgis-portal-group-browser,arcgis-portal-group-browser-card,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-thumbnail,arcgis-portal-item-type,arcgis-portal-mentionable-text-area,arcgis-portal-navigation,arcgis-portal-replacement-item-redirect,arcgis-portal-review-related-items,arcgis-portal-sublayer-type,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)
|
|
2
|
+
import{A as e,R as r}from"./UXZTO272.js";import"./UZLQALHY.js";var a=e(r,{"arcgis-portal-account-switcher":[()=>import("./JYORYNSD.js"),"clientId,messages:,portal:,redirectUri,signout,signoutOptions:"],"arcgis-portal-account-switcher-accounts":[()=>import("./GKBQITIV.js"),"accounts:,messages:,portal:,targetUser"],"arcgis-portal-account-switcher-list":[()=>import("./AROVW3UH.js"),"accountAccess:,actions:,interactive,linkedAccounts:,messages:,portal:,signedInUsers:"],"arcgis-portal-account-switcher-signout":[()=>import("./6OGBUPNX.js"),"messages:,portal:,signedInAccounts:"],"arcgis-portal-add-gps-metadata":[()=>import("./A7XG2CGZ.js"),"item:,itemId,messages:,portal:"],"arcgis-portal-ai-assistant":[()=>import("./WHX4LFPO.js"),"autoDestroyDisabled,config:,defaultClosed,disabledAgents:,navigationCapabilities:,navigationTargetMap:,portal:,t9n:,useProdDocAssistant,user:"],"arcgis-portal-ai-assistant-interrupt":[()=>import("./HNE7TSIC.js"),"_messages:,message,options:,type"],"arcgis-portal-browser":[()=>import("./2N267CQJ.js"),"_messages:,alwaysShowContent,alwaysShowPagination,alwaysShowSelection,formFactor,height,hideContentTop,hideFilters,hideTopBar,loading,panel,preview,rangeFormatter:,response:,searchTerm,selected:,showPreSearch,store:;scrollToTop"],"arcgis-portal-browser-actions":[()=>import("./YBYLRWDO.js"),"_messages:,actions:,selection:;restoreFocus"],"arcgis-portal-browser-filter-status":[()=>import("./ZDA2LVTP.js"),"_messages:,browserWidth,componentWidth,filters:,hiddenFilterIds:"],"arcgis-portal-browser-pagination":[()=>import("./VPAW5MZH.js"),"_messages:,num,start,store:,total;nextPage"],"arcgis-portal-browser-search":[()=>import("./WLSTJTHH.js"),"_messages:,allowClear,placeholder,store:,term;setFocus"],"arcgis-portal-browser-sort":[()=>import("./MTUFZXUQ.js"),"_messages:,appearance,field,options:,order,showText,useDeleted"],"arcgis-portal-browser-top-bar":[()=>import("./HNIPFKPI.js"),"_messages:,filtersDisabled,store:"],"arcgis-portal-browser-view":[()=>import("./74ZBFN22.js"),"options:,store:,view,viewText"],"arcgis-portal-classification-banner":[()=>import("./YUV3L73F.js"),"autoDestroyDisabled,messages:,missingExistingClassification,portalItem:,validationErrors,variant;destroy"],"arcgis-portal-classification-config":[()=>import("./WEKTI5QA.js"),"autoDestroyDisabled,messages:,portalItem:,status,valid,values;destroy,resetForm,validateForm"],"arcgis-portal-classification-favorite":[()=>import("./IVQXK46W.js"),"attributeExpressionResults:,classificationValue:,favoriteClassifications:,messages:,portalItem:,resetFavoriteClassification:,selectedFavoriteClassificationName,updateClassificationData:"],"arcgis-portal-classification-form-element":[()=>import("./KFIQURH5.js"),"attribute:,attributeKey,isRequiredErrors:,messages:,renderingInfo:,value:"],"arcgis-portal-delete-items":[()=>import("./VOZJP55F.js"),"active,disableLinks,items:,messages:,portal:,user:"],"arcgis-portal-entity-picker":[()=>import("./5OLOB42V.js"),"_messages:,entityType,icon,messageOverrides:,mode,num,portal:,query,selected:;setFocus,togglePicker"],"arcgis-portal-extent-picker":[()=>import("./OT3GDLUB.js"),"active,contentOnly,extentService,extentValue:,isArea,itemId,messages:,portal:;;getExtent"],"arcgis-portal-extent-picker-coord-field":[()=>import("./GX6RPWBL.js"),"errorMessage,inputId,label,max,min,relatedErrorMessage,validateRelated:,value;;checkRelatedField,isValid,setFocus"],"arcgis-portal-field-delete":[()=>import("./ID2H3IUI.js"),"config:,fieldNames:,layer:,mapView:,messages:,options:"],"arcgis-portal-group-badges":[()=>import("./FS5XBCHL.js"),"_messages:,appearance,empty,group:,portal:,scale,showTooltips,width"],"arcgis-portal-group-browser":[()=>import("./BQPBJWMI.js"),"_browserMessages:,_messages:,alwaysShowSelection,cards:,fetch:,filters:,formFactor,hasIndoorsSpaces,height,hidePreviewBadges,hidePreviewFooter,hideTopBar,loading,messageOverrides:,num,portal:,preflight:,preview,q,searchParamInteraction:,searchTerm,searchUser,selected:,selection,sort:,store:,view;clearFilters,refresh"],"arcgis-portal-group-browser-card":[()=>import("./TV3JAEAU.js"),"browser:,cardProps:,group:;restoreFocus"],"arcgis-portal-group-browser-preview":[()=>import("./NDZYRGOO.js"),"currentResponse:,group:,hideBadges,hidePreviewFooter,messages:,portal:,previewFooterActionsSpaced,user:;setFocus"],"arcgis-portal-group-browser-preview-card":[()=>import("./INRJRPFE.js"),"baseUrl,hideItemType,hideOwner,hideThumbnail,interactive,item:,link,newTab,portal:,showBadges,showDateUpdated,showOwnerPopup,showSummary,user:;restoreFocus"],"arcgis-portal-group-card":[()=>import("./5QJFE2TZ.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-picker":[()=>import("./OTTQ54QN.js"),"_messages:,entityType:,icon,messageOverrides:,mode,num,portal:,query,selected:;setFocus,togglePicker"],"arcgis-portal-group-thumbnail":[()=>import("./3HEKI54S.js"),"group:,portal:,scale,tooltip"],"arcgis-portal-info-banner":[()=>import("./UMKPSK3Y.js"),"config:,position"],"arcgis-portal-item-actions":[()=>import("./L4JQV42D.js"),"actions:,item:,keyHandler:,label,messages:,portal:,previewText,showFavorite,showPreview,tabIndexOverride,user:;setFocus"],"arcgis-portal-item-badges":[()=>import("./FEXHSQ6Z.js"),"appearance,empty,item:,portal:,scale,showTooltips,useProduction,user:,width"],"arcgis-portal-item-badge":[()=>import("./GBFEHPAL.js"),"_messages:,appearance,badgeType,item:,portal:,scale,showTooltip,useProduction,user:,width"],"arcgis-portal-item-card":[()=>import("./WRXH4QIH.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("./M6UW4NQ5.js"),"iconOnly,item:,messages:,portal:,scale,showTooltip,user:,width;setFocus"],"arcgis-portal-item-picker":[()=>import("./5ZOQN2RD.js"),"_messages:,entityType:,icon,messageOverrides:,mode,num,portal:,query,selected:;setFocus,togglePicker"],"arcgis-portal-item-thumbnail":[()=>import("./QABX5STK.js"),"cacheString,generate,item:,portal:,serviceInfo:,useProduction,user:;generateThumbnail"],"arcgis-portal-item-type":[()=>import("./VLIJNVNM.js"),"ellipsis,hideIcon,hideText,item:,messages:,portal:,scale,serviceInfo:,showHosted,user:"],"arcgis-portal-mentionable-text-area":[()=>import("./IAUHMY3T.js"),"disabled,maxLength,placeholder,popoverListLabel,popoverPlacement,portal:,readOnly,rows,scale,starters:,user:,value;closePopover,focusTextArea,selectItem"],"arcgis-portal-navigation":[()=>import("./IYNMMRVZ.js"),"clientId,currentPathname,disableNotebookServer,disableTrackViewer,maxWidth,messages:,portal:,portalItem:,product,productHref,projectMenuIcon,projectMenuOptions:,projectMenuSaveIndicator,projectTitle,projectTitleSave:"],"arcgis-portal-replacement-item-redirect":[()=>import("./T3B2IOBY.js"),"itemId,messages:,portal:,user:;setFocus"],"arcgis-portal-review-related-items":[()=>import("./Z2K2TPTY.js"),"messages:,portal:,relatedItems:,sourceItem:,user:"],"arcgis-portal-sublayer-type":[()=>import("./DQJLTSBY.js"),"geometry,hideIcon,hideName,hideType,messages:,name,renderer:,scale,type,underline"],"arcgis-portal-user-avatar":[()=>import("./2WTWI376.js"),"checkOnline,description,heading,hideAvatar,messages:,portal:,scale,showName,underline,user:,username,wrap"],"arcgis-portal-user-picker":[()=>import("./SG23BRS4.js"),"_messages:,entityType:,icon,messageOverrides:,mode,num,portal:,query,selected:;setFocus,togglePicker"],"arcgis-portal-user-popup":[()=>import("./DP3RFREY.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("./D7MON5HR.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-account-switcher-signout,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-delete-items,arcgis-portal-entity-picker,arcgis-portal-extent-picker,arcgis-portal-field-delete,arcgis-portal-group-badges,arcgis-portal-group-browser,arcgis-portal-group-browser-card,arcgis-portal-group-browser-preview,arcgis-portal-group-browser-preview-card,arcgis-portal-group-card,arcgis-portal-group-picker,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-picker,arcgis-portal-item-thumbnail,arcgis-portal-item-type,arcgis-portal-mentionable-text-area,arcgis-portal-navigation,arcgis-portal-replacement-item-redirect,arcgis-portal-review-related-items,arcgis-portal-sublayer-type,arcgis-portal-user-avatar,arcgis-portal-user-picker,arcgis-portal-user-popup,arcgis-portal-voice-input){visibility:hidden}}");document.adoptedStyleSheets=[...document.adoptedStyleSheets,t];window.$arcgis||Object.defineProperty(window,"$arcgis",{configurable:!1,enumerable:!0,writable:!1,value:{}}),((a,r)=>{a.t=(c,...x)=>Promise.all(x.map(x=>x.then?x:(!a?.forceESM&&a?.import||(x=>import(x+".js").then(m=>m.default??m)))("@arcgis/core/"+x))).then(c);r.p=a.t(([m])=>{r.t=m.trackAccess;r.o=m.createObservable;r.c=m.createTrackingTarget;r.r=m.runTracked},"applications/Components/reactiveUtils")})($arcgis,r)
|
package/dist/cdn/main.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@layer{:not([hydrated]):is(arcgis-portal-account-switcher,arcgis-portal-account-switcher-accounts,arcgis-portal-account-switcher-list,arcgis-portal-account-switcher-signout,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-delete-items,arcgis-portal-extent-picker,arcgis-portal-field-delete,arcgis-portal-group-badges,arcgis-portal-group-browser,arcgis-portal-group-browser-card,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-thumbnail,arcgis-portal-item-type,arcgis-portal-mentionable-text-area,arcgis-portal-navigation,arcgis-portal-replacement-item-redirect,arcgis-portal-review-related-items,arcgis-portal-sublayer-type,arcgis-portal-user-avatar,arcgis-portal-user-popup,arcgis-portal-voice-input){visibility:hidden}}
|
|
1
|
+
@layer{:not([hydrated]):is(arcgis-portal-account-switcher,arcgis-portal-account-switcher-accounts,arcgis-portal-account-switcher-list,arcgis-portal-account-switcher-signout,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-delete-items,arcgis-portal-entity-picker,arcgis-portal-extent-picker,arcgis-portal-field-delete,arcgis-portal-group-badges,arcgis-portal-group-browser,arcgis-portal-group-browser-card,arcgis-portal-group-browser-preview,arcgis-portal-group-browser-preview-card,arcgis-portal-group-card,arcgis-portal-group-picker,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-picker,arcgis-portal-item-thumbnail,arcgis-portal-item-type,arcgis-portal-mentionable-text-area,arcgis-portal-navigation,arcgis-portal-replacement-item-redirect,arcgis-portal-review-related-items,arcgis-portal-sublayer-type,arcgis-portal-user-avatar,arcgis-portal-user-picker,arcgis-portal-user-popup,arcgis-portal-voice-input){visibility:hidden}}
|
package/dist/chunks/item.js
CHANGED
|
@@ -1,34 +1,38 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import
|
|
2
|
+
import n from "@arcgis/core/request.js";
|
|
3
3
|
import { a } from "./requests.js";
|
|
4
|
-
|
|
4
|
+
import { c } from "./string.js";
|
|
5
|
+
const m = async (r, e, t) => {
|
|
6
|
+
const s = c(e);
|
|
7
|
+
if (!s)
|
|
8
|
+
return {};
|
|
5
9
|
try {
|
|
6
|
-
return { result: await r.queryItems({ ...t, query:
|
|
7
|
-
} catch (
|
|
8
|
-
return console.error(
|
|
10
|
+
return { result: await r.queryItems({ ...t, query: s }) };
|
|
11
|
+
} catch (o) {
|
|
12
|
+
return console.error(o), { error: { code: "unhandledError" } };
|
|
9
13
|
}
|
|
10
|
-
},
|
|
14
|
+
}, y = async (r, e, t) => {
|
|
11
15
|
const s = `${e.restUrl}/content/users/${r.id}/items/${t}/generateContext`;
|
|
12
16
|
try {
|
|
13
17
|
return {
|
|
14
|
-
result: (await
|
|
18
|
+
result: (await n(s, {
|
|
15
19
|
method: "post",
|
|
16
20
|
responseType: "json",
|
|
17
21
|
query: { f: "json" }
|
|
18
22
|
})).data
|
|
19
23
|
};
|
|
20
|
-
} catch (
|
|
21
|
-
return console.error("Error fetching item context:",
|
|
24
|
+
} catch (o) {
|
|
25
|
+
return console.error("Error fetching item context:", o), { error: { code: "unhandledError" } };
|
|
22
26
|
}
|
|
23
27
|
};
|
|
24
|
-
async function
|
|
28
|
+
async function d(r, e) {
|
|
25
29
|
if (!r || !e)
|
|
26
30
|
return { result: null };
|
|
27
31
|
const t = `${r.restUrl}/content/items/${e}/data`;
|
|
28
32
|
return await a(t);
|
|
29
33
|
}
|
|
30
34
|
export {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
35
|
+
y as a,
|
|
36
|
+
d as g,
|
|
37
|
+
m as s
|
|
34
38
|
};
|
package/dist/chunks/string.js
CHANGED
|
@@ -4,33 +4,39 @@ function c(e) {
|
|
|
4
4
|
const r = /(https?:\/\/[^\s]+)/gu;
|
|
5
5
|
return e?.replace(r, (t) => `<a href="${t}" target="_blank">${t}</a>`);
|
|
6
6
|
}
|
|
7
|
-
function
|
|
7
|
+
function i(e) {
|
|
8
8
|
return e?.replace(/(?:\r)/gu, " ").replace(/(?:\n)/gu, " ");
|
|
9
9
|
}
|
|
10
|
-
function
|
|
10
|
+
function s(e) {
|
|
11
11
|
return e?.replace(/(?: )/gu, "\r").replace(/(?: )/gu, `
|
|
12
12
|
`);
|
|
13
13
|
}
|
|
14
14
|
function o(e) {
|
|
15
15
|
return e?.replace(/ | | |\r\n|\r|\n/gu, "<br>");
|
|
16
16
|
}
|
|
17
|
-
function
|
|
17
|
+
function d(e, r) {
|
|
18
18
|
const t = document.documentElement.dir === "rtl";
|
|
19
19
|
return e.replace("${start}", t ? r.end : r.start).replace("${end}", t ? r.start : r.end).replace("${total}", r.total);
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function u(e = "") {
|
|
22
22
|
const r = a(e);
|
|
23
23
|
return ["id:", "title:", "type:", "typekeywords:", "owner:"].some((n) => e.includes(n)) ? r.replace(/[<>\/\\?]/gu, "\\$&").trim() : r.replace(/[\[\]\{\}\(\)\-+:<>\/\\?]/gu, "\\$&").trim();
|
|
24
24
|
}
|
|
25
25
|
function g(e) {
|
|
26
|
-
|
|
26
|
+
const r = u(e.replace(/\s+/gu, " "));
|
|
27
|
+
if (r)
|
|
28
|
+
return `title:"${r.replace(/"/gu, '\\"')}"`;
|
|
27
29
|
}
|
|
28
30
|
function m(e) {
|
|
31
|
+
return o(i(c(s(e))));
|
|
32
|
+
}
|
|
33
|
+
function f(e) {
|
|
29
34
|
return e?.endsWith("/") ? e.slice(0, e.length - 1) : e;
|
|
30
35
|
}
|
|
31
36
|
export {
|
|
32
|
-
|
|
33
|
-
d as
|
|
34
|
-
g,
|
|
35
|
-
m as
|
|
37
|
+
u as a,
|
|
38
|
+
d as b,
|
|
39
|
+
g as c,
|
|
40
|
+
m as g,
|
|
41
|
+
f as r
|
|
36
42
|
};
|
package/dist/chunks/utils.js
CHANGED
|
@@ -1,88 +1,33 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
2
|
+
const i = ["@", "#", "$"], x = 400;
|
|
3
|
+
function d(c, h) {
|
|
4
|
+
let t = null;
|
|
5
|
+
for (const o of h) {
|
|
6
|
+
const r = o.replace(/[.*+?^${}()|[\]\\]/gu, "\\$&"), g = new RegExp(`${r}"([^"\\n]*)"?$`, "u"), s = c.match(g);
|
|
7
|
+
if (s) {
|
|
8
|
+
const e = s[0], n = c.length - e.length, a = s[1] ?? "";
|
|
9
|
+
(!t || n > t.startIndex) && (t = {
|
|
10
|
+
starter: o,
|
|
11
|
+
mentionText: e,
|
|
12
|
+
query: a,
|
|
13
|
+
startIndex: n
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
const l = new RegExp(`${r}[\\p{L}\\p{N}_-]+$`, "u"), u = c.match(l);
|
|
17
|
+
if (u) {
|
|
18
|
+
const e = u[0], n = c.length - e.length, a = e.slice(o.length);
|
|
19
|
+
(!t || n > t.startIndex) && (t = {
|
|
20
|
+
starter: o,
|
|
21
|
+
mentionText: e,
|
|
22
|
+
query: a,
|
|
23
|
+
startIndex: n
|
|
24
|
+
});
|
|
25
|
+
}
|
|
13
26
|
}
|
|
14
|
-
|
|
15
|
-
const a = await t.queryItems({
|
|
16
|
-
query: `(group:${o} AND id:(${e.join(" OR ")}))`,
|
|
17
|
-
num: 100
|
|
18
|
-
}), u = new Set(a.results?.map(({ id: i }) => i) ?? []);
|
|
19
|
-
s.forEach(({ id: i, resolve: d }) => {
|
|
20
|
-
d(u.has(i));
|
|
21
|
-
});
|
|
22
|
-
} catch {
|
|
23
|
-
s.forEach(({ resolve: a }) => a(!1));
|
|
24
|
-
}
|
|
25
|
-
}, 300);
|
|
26
|
-
async function q(t, r, e) {
|
|
27
|
-
if (!e)
|
|
28
|
-
return !1;
|
|
29
|
-
const s = new Promise((o) => {
|
|
30
|
-
c.push({ id: t, resolve: o });
|
|
31
|
-
});
|
|
32
|
-
return n.includes(t) || n.push(t), m(r, e), await s;
|
|
33
|
-
}
|
|
34
|
-
async function y(t) {
|
|
35
|
-
return await f(t, !0);
|
|
36
|
-
}
|
|
37
|
-
async function g(t) {
|
|
38
|
-
return await f(t, !1);
|
|
39
|
-
}
|
|
40
|
-
async function G({
|
|
41
|
-
currentFavorite: t,
|
|
42
|
-
item: r,
|
|
43
|
-
portal: e,
|
|
44
|
-
user: s
|
|
45
|
-
}) {
|
|
46
|
-
const o = !t, a = o ? await y({ item: r, portal: e, user: s }) : await g({ item: r, portal: e, user: s });
|
|
47
|
-
return {
|
|
48
|
-
nextFavorite: o,
|
|
49
|
-
updated: a
|
|
50
|
-
};
|
|
51
|
-
}
|
|
52
|
-
function S(t, r) {
|
|
53
|
-
if (!("detail" in t) || !t.detail || !r)
|
|
54
|
-
return;
|
|
55
|
-
const e = t.detail;
|
|
56
|
-
if (e.id === r)
|
|
57
|
-
return e;
|
|
58
|
-
}
|
|
59
|
-
async function f({ item: t, portal: r, user: e }, s) {
|
|
60
|
-
const o = p(e);
|
|
61
|
-
if (!o)
|
|
62
|
-
return !1;
|
|
63
|
-
const a = t.access, u = `${h(r)}content/items/${t.id}/${s ? "share" : "unshare"}`;
|
|
64
|
-
try {
|
|
65
|
-
return await l(u, {
|
|
66
|
-
method: "post",
|
|
67
|
-
responseType: "json",
|
|
68
|
-
query: {
|
|
69
|
-
f: "json",
|
|
70
|
-
everyone: a === "public",
|
|
71
|
-
org: a === "org",
|
|
72
|
-
groups: o,
|
|
73
|
-
items: t.id
|
|
74
|
-
}
|
|
75
|
-
}), !0;
|
|
76
|
-
} catch {
|
|
77
|
-
return !1;
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
function p(t) {
|
|
81
|
-
const r = t.sourceJSON, e = t;
|
|
82
|
-
return r?.favGroupId ?? e.favGroupId;
|
|
27
|
+
return t;
|
|
83
28
|
}
|
|
84
29
|
export {
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
30
|
+
i as M,
|
|
31
|
+
x as S,
|
|
32
|
+
d as g
|
|
88
33
|
};
|