@arcgis/map-components 5.0.6 → 5.0.8
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/{2QMWNCA2.js → 2BKO4X64.js} +1 -1
- package/dist/cdn/{4VZDLCDM.js → 2ERUSYFG.js} +1 -1
- package/dist/cdn/{QFDABZBR.js → 2KLBPWCO.js} +1 -1
- package/dist/cdn/{5OPJLOFN.js → 2PSYTKRG.js} +1 -1
- package/dist/cdn/{IX7OU6IJ.js → 2WZ3RMR7.js} +1 -1
- package/dist/cdn/{IZIU4J7M.js → 32Q5BYKS.js} +1 -1
- package/dist/cdn/{MJ74362A.js → 33YWYJ4B.js} +1 -1
- package/dist/cdn/{RDEHO74Y.js → 3AJGQWWJ.js} +1 -1
- package/dist/cdn/{UYJ5XGBA.js → 3MNBJANP.js} +1 -1
- package/dist/cdn/{KXSAGSN4.js → 3QMAQRDF.js} +1 -1
- package/dist/cdn/{3ARU6HXS.js → 3UQI2KLK.js} +1 -1
- package/dist/cdn/{TN6QKFA2.js → 3XA7FNHU.js} +1 -1
- package/dist/cdn/{XHWL2OHB.js → 43SFYWBA.js} +1 -1
- package/dist/cdn/{32UQZIPD.js → 452XJTUD.js} +1 -1
- package/dist/cdn/{QXKVG4VC.js → 4HIKXNLJ.js} +1 -1
- package/dist/cdn/{OYAWQBUJ.js → 4K34BUTQ.js} +1 -1
- package/dist/cdn/{MBWMVD5N.js → 4MJ6RR6C.js} +1 -1
- package/dist/cdn/{QFFQL2UW.js → 4QL2L5HG.js} +1 -1
- package/dist/cdn/{C34Y4G3N.js → 4QLSHCCH.js} +1 -1
- package/dist/cdn/{IW4OBOPT.js → 4VANT2H2.js} +1 -1
- package/dist/cdn/{6T5SHFHI.js → 4Y5ZV64K.js} +1 -1
- package/dist/cdn/{3RJECMNO.js → 5226JY7U.js} +1 -1
- package/dist/cdn/{HLMDKUOU.js → 57QXQ42V.js} +1 -1
- package/dist/cdn/{6FC2Z44G.js → 5HY425PW.js} +1 -1
- package/dist/cdn/{GQMWRADC.js → 62PPRW5H.js} +1 -1
- package/dist/cdn/{46P3J64W.js → 64DLLWCT.js} +1 -1
- package/dist/cdn/{S6XBCSKI.js → 65GHL7AK.js} +1 -1
- package/dist/cdn/{MMXCIDBO.js → 6FKMR33M.js} +1 -1
- package/dist/cdn/{7BW4265R.js → 6KELW6YE.js} +1 -1
- package/dist/cdn/{5KEFHN6T.js → 6Z5BZD4S.js} +1 -1
- package/dist/cdn/{BHL7BVTY.js → 7BSE4Y2A.js} +1 -1
- package/dist/cdn/{FNPMMKJD.js → 7SBVVOP3.js} +1 -1
- package/dist/cdn/7TXQADKX.js +2 -0
- package/dist/cdn/{SDOBWEQE.js → 7VUB7AFJ.js} +1 -1
- package/dist/cdn/{IXXLA2Z7.js → A3ZA5MCJ.js} +1 -1
- package/dist/cdn/{Q4BWNVI4.js → A5GHD7L7.js} +1 -1
- package/dist/cdn/{KGXZM7OU.js → AGBHCVRA.js} +1 -1
- package/dist/cdn/{UOWJ65WB.js → AJAD4RUP.js} +1 -1
- package/dist/cdn/{5M7CI7TV.js → AKBJKSH3.js} +1 -1
- package/dist/cdn/{GK3TNRAT.js → ARB7ESUF.js} +1 -1
- package/dist/cdn/{ROQLHTVO.js → AWIUYN3W.js} +1 -1
- package/dist/cdn/{57QVYCIL.js → AXFOWKQN.js} +1 -1
- package/dist/cdn/{3QADA54G.js → AYFGP5ZN.js} +1 -1
- package/dist/cdn/BC5B7PGD.js +2 -0
- package/dist/cdn/{LG4CKKZJ.js → BGCXNQ5U.js} +1 -1
- package/dist/cdn/{CNHU242I.js → BLRU43VQ.js} +1 -1
- package/dist/cdn/{QUD4HICL.js → BNQQ7JMQ.js} +1 -1
- package/dist/cdn/{LKSP2TYH.js → BWSEQK6S.js} +1 -1
- package/dist/cdn/{JHEX6VZF.js → BXEQ2GR7.js} +1 -1
- package/dist/cdn/{VAG6UT3R.js → BXMF7CDZ.js} +1 -1
- package/dist/cdn/{BLNKE5YR.js → C4OFSKWZ.js} +1 -1
- package/dist/cdn/{IOCCNMZU.js → CQ4OP5KR.js} +1 -1
- package/dist/cdn/{G7IP6IPD.js → CVVCPCHQ.js} +1 -1
- package/dist/cdn/{RWGQCMXU.js → CWMCSQSK.js} +1 -1
- package/dist/cdn/{2RM3JPSZ.js → CWTYBVDX.js} +1 -1
- package/dist/cdn/{7PXQ5F5K.js → DAXUZZYI.js} +1 -1
- package/dist/cdn/{2JNQT3CU.js → DGBQDSJV.js} +1 -1
- package/dist/cdn/{CZ3WW6GZ.js → DJ3SEHH7.js} +1 -1
- package/dist/cdn/{X7NWAN4R.js → DLCRIX3F.js} +1 -1
- package/dist/cdn/{QE7X3ZJG.js → DZXBV52D.js} +1 -1
- package/dist/cdn/{PU3CIOMW.js → E4NS5EP3.js} +1 -1
- package/dist/cdn/{GRFF5Y4R.js → E52S65JA.js} +1 -1
- package/dist/cdn/{4WR7M5OM.js → EZNR44ZZ.js} +1 -1
- package/dist/cdn/{DR4N3HTB.js → F3QMZQEN.js} +1 -1
- package/dist/cdn/{NLTHGBJD.js → FDCGR4B4.js} +1 -1
- package/dist/cdn/{JWUV4MPH.js → FKAXOX2G.js} +1 -1
- package/dist/cdn/{RWIYG576.js → FRQBH455.js} +1 -1
- package/dist/cdn/{4NCPVAN3.js → FWLGMF7U.js} +1 -1
- package/dist/cdn/{WH63C3TF.js → G5CFCDWX.js} +1 -1
- package/dist/cdn/{6EBGGCML.js → G6Z2GTC7.js} +1 -1
- package/dist/cdn/{5LB3TTX6.js → GCJHT65W.js} +1 -1
- package/dist/cdn/{J3SW4HDC.js → GEEP3X2Y.js} +1 -1
- package/dist/cdn/{C37KK5NP.js → GHNGYP3W.js} +1 -1
- package/dist/cdn/{MW6M3U2C.js → GNF5NJB7.js} +1 -1
- package/dist/cdn/{75NISNHG.js → GYOEIXYM.js} +1 -1
- package/dist/cdn/{E75BGRH4.js → H5ZGEYHN.js} +1 -1
- package/dist/cdn/{JPYIWZET.js → H6NJXUN6.js} +1 -1
- package/dist/cdn/{ECQWVBBN.js → HC3MHWTP.js} +1 -1
- package/dist/cdn/{HBF7NI2K.js → HEUVUMO7.js} +1 -1
- package/dist/cdn/{4JYXRNR3.js → HM67OIIC.js} +1 -1
- package/dist/cdn/{6OAJEQLR.js → HX5VKOH7.js} +1 -1
- package/dist/cdn/{ABY53DLF.js → I2JJUUZQ.js} +1 -1
- package/dist/cdn/{4N2YRLJH.js → I3EZXW2U.js} +1 -1
- package/dist/cdn/{DIIHZGZR.js → IB2J54RM.js} +1 -1
- package/dist/cdn/{VZOMAMSZ.js → IE2YLVLQ.js} +1 -1
- package/dist/cdn/{FPKVLC2S.js → IENGLEJA.js} +1 -1
- package/dist/cdn/{SMPH52ZG.js → IPMDK4MT.js} +1 -1
- package/dist/cdn/{WPGDCLOF.js → IPN4LJ7V.js} +1 -1
- package/dist/cdn/{IQLNEPKQ.js → J3TV3V5W.js} +1 -1
- package/dist/cdn/{B77GDHWP.js → JADRITCD.js} +1 -1
- package/dist/cdn/{MZQ4MCV4.js → JQA7633S.js} +1 -1
- package/dist/cdn/{BE5MCWNQ.js → JTB4D5Y2.js} +1 -1
- package/dist/cdn/{BEUT37NH.js → JW4IYKZW.js} +1 -1
- package/dist/cdn/{FHPE7GN3.js → JY37VVM4.js} +1 -1
- package/dist/cdn/{HQ33F2C2.js → K6KI46YC.js} +1 -1
- package/dist/cdn/{GWSF247V.js → KBXRLSRQ.js} +1 -1
- package/dist/cdn/{4XWPSCE3.js → KH3CK4NM.js} +1 -1
- package/dist/cdn/{3C6GI6FX.js → KLUJHBJX.js} +1 -1
- package/dist/cdn/{SHMRXLLT.js → KS2NA752.js} +1 -1
- package/dist/cdn/{TJHX7S4T.js → L4TUBH7W.js} +1 -1
- package/dist/cdn/{EGKIBLJO.js → L7U7JQYH.js} +1 -1
- package/dist/cdn/{JSRA6F62.js → LDESQMMT.js} +1 -1
- package/dist/cdn/{RBGK7M3W.js → LFH2LJU7.js} +1 -1
- package/dist/cdn/{DWICVKPP.js → LGKCESB4.js} +1 -1
- package/dist/cdn/{XH3WZPG4.js → LNKGOWH7.js} +1 -1
- package/dist/cdn/{23UI3GZC.js → LNKIDH5D.js} +1 -1
- package/dist/cdn/{W3VP6R57.js → LTDNG7YS.js} +1 -1
- package/dist/cdn/{XNOKCT3W.js → LU6GBARZ.js} +1 -1
- package/dist/cdn/{JOOZASOM.js → M2M7DHX2.js} +1 -1
- package/dist/cdn/{CMQVBJYS.js → M2MYLPEX.js} +1 -1
- package/dist/cdn/MI2C6GGG.js +2 -0
- package/dist/cdn/MPTRSZMX.js +2 -0
- package/dist/cdn/{ZLA6JWIL.js → MRRD3ZPK.js} +1 -1
- package/dist/cdn/{HAFUKMGJ.js → MS7JRJ6R.js} +1 -1
- package/dist/cdn/{N4GUAV3X.js → MYPHE7JL.js} +1 -1
- package/dist/cdn/{FL35N4DV.js → N46RUHPV.js} +1 -1
- package/dist/cdn/{JBS7G4UI.js → N4RWJWIQ.js} +1 -1
- package/dist/cdn/{VLTWAK7Z.js → NIIMT3SS.js} +1 -1
- package/dist/cdn/{W72445UR.js → NJBN5VJA.js} +1 -1
- package/dist/cdn/{LJBXNM4S.js → NQ7AJXP5.js} +1 -1
- package/dist/cdn/{7EXL53DQ.js → NXMSFJ7A.js} +1 -1
- package/dist/cdn/{EFXP3BAR.js → NZEXJWD3.js} +1 -1
- package/dist/cdn/{P7BSHSKS.js → O2756ASS.js} +1 -1
- package/dist/cdn/{EU7XLLJW.js → O2CHOEOT.js} +1 -1
- package/dist/cdn/{7WCPDHQW.js → OEEM2YOU.js} +1 -1
- package/dist/cdn/{7IYDZBW5.js → OIPOVOS7.js} +1 -1
- package/dist/cdn/{JV6FTSZF.js → OIXQVXVX.js} +1 -1
- package/dist/cdn/{HG5HM7AV.js → OJS2HGOV.js} +1 -1
- package/dist/cdn/{IB6UNF7C.js → OMUYJPC3.js} +1 -1
- package/dist/cdn/{ZALH6EK6.js → P6WTQUAO.js} +1 -1
- package/dist/cdn/{3VWGWEXT.js → PAIWJPLK.js} +1 -1
- package/dist/cdn/{3VBXIZ32.js → PF2QXZ63.js} +1 -1
- package/dist/cdn/{FKP6TUEF.js → PTX37QR4.js} +1 -1
- package/dist/cdn/{WENBZKCS.js → QDB572U4.js} +1 -1
- package/dist/cdn/{QOODCGAQ.js → QDM5XPXZ.js} +1 -1
- package/dist/cdn/{QQYM7FA4.js → QITFIJJH.js} +1 -1
- package/dist/cdn/{RTYFCVEU.js → QIVD6SID.js} +1 -1
- package/dist/cdn/{RZWX3WFZ.js → QK23OZPY.js} +1 -1
- package/dist/cdn/{OFOR6IVQ.js → QLKVY23N.js} +1 -1
- package/dist/cdn/{7WMSCU6F.js → QOYZ3JEZ.js} +1 -1
- package/dist/cdn/QT5JEHEL.js +2 -0
- package/dist/cdn/{EPP5LYPS.js → QUMXEH6O.js} +1 -1
- package/dist/cdn/{B3H7SS4Z.js → R4BFR6CR.js} +1 -1
- package/dist/cdn/{OJCS6OP2.js → RL3YYALU.js} +1 -1
- package/dist/cdn/{EJWYTUSN.js → RLGD7QFK.js} +1 -1
- package/dist/cdn/{DVJBMKDK.js → RMXIPB4F.js} +1 -1
- package/dist/cdn/{W7UGNAAG.js → RS7XEIXD.js} +1 -1
- package/dist/cdn/{FKS2JSN2.js → RUNR4PHJ.js} +1 -1
- package/dist/cdn/{3OUJ5LT2.js → SKTGMQNL.js} +1 -1
- package/dist/cdn/{4UFLSZSK.js → SQ2BHLMX.js} +1 -1
- package/dist/cdn/{OQFWYILA.js → SUKF2DNP.js} +1 -1
- package/dist/cdn/{EH5576ZY.js → THWXFLFI.js} +1 -1
- package/dist/cdn/{DADOJOY5.js → TM62FNIH.js} +1 -1
- package/dist/cdn/{XP35KWVR.js → TPGQZBGS.js} +1 -1
- package/dist/cdn/{XJAHXINN.js → TX2C55A4.js} +1 -1
- package/dist/cdn/{HKERLB3O.js → U2AWOURC.js} +1 -1
- package/dist/cdn/{ELJCWFP4.js → UPEU3R2L.js} +1 -1
- package/dist/cdn/{AKERMTGF.js → UPJWDEDA.js} +1 -1
- package/dist/cdn/{5I472FQZ.js → UPP7IN72.js} +1 -1
- package/dist/cdn/{P5EZZH6S.js → UQN4KPNM.js} +1 -1
- package/dist/cdn/{6FZBZG62.js → V5KZVJFN.js} +1 -1
- package/dist/cdn/V64WJLLP.js +2 -0
- package/dist/cdn/{R7FF7B2B.js → V7B4YUMV.js} +1 -1
- package/dist/cdn/{HFXULUGO.js → VF3Q4EFN.js} +1 -1
- package/dist/cdn/{DJAXABGJ.js → VF5OXNNE.js} +1 -1
- package/dist/cdn/{RHJ4GDQU.js → VRQRANLV.js} +1 -1
- package/dist/cdn/{4SYS7Z5Q.js → VUEBCRTT.js} +1 -1
- package/dist/cdn/{KZUFDOJ2.js → W5ABTJHB.js} +1 -1
- package/dist/cdn/{J4OTW75Q.js → WB6NANDC.js} +1 -1
- package/dist/cdn/{22334O7S.js → WCBA3F5G.js} +1 -1
- package/dist/cdn/{LGCVG3ID.js → WH46XXVN.js} +1 -1
- package/dist/cdn/{7QZVR2UR.js → WUDIJWPW.js} +1 -1
- package/dist/cdn/{CRZ7YK66.js → X2MXOMPH.js} +1 -1
- package/dist/cdn/{5NUQGSOR.js → XFRWBORH.js} +1 -1
- package/dist/cdn/{UC5MSQTK.js → Y6QLR3JD.js} +1 -1
- package/dist/cdn/{TQQDD3LX.js → YCCZLRZB.js} +1 -1
- package/dist/cdn/{ZA47H62T.js → YK2NREJU.js} +1 -1
- package/dist/cdn/{CHWAA2DS.js → YLCINN3O.js} +1 -1
- package/dist/cdn/{E2HOEDZD.js → YRRD6IOX.js} +1 -1
- package/dist/cdn/{RUHKUWCY.js → ZAXHNBK4.js} +1 -1
- package/dist/cdn/{XC2MFEBD.js → ZCZAVJTC.js} +1 -1
- package/dist/cdn/{CSO4T27H.js → ZDMBWQNI.js} +1 -1
- package/dist/cdn/{D2BD7FGS.js → ZLYS2U4C.js} +1 -1
- package/dist/cdn/{OMKENRIP.js → ZRR7SK7S.js} +1 -1
- package/dist/cdn/{ZBQAM52J.js → ZZDZPOW3.js} +1 -1
- package/dist/cdn/assets/fonts/CalciteWebCoreIcons.woff2 +0 -0
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/main.css +1 -1
- package/dist/chunks/layer-utils.js +23 -19
- package/dist/chunks/runtime.js +1 -1
- package/dist/components/arcgis-feature-table/customElement.js +1 -1
- package/dist/components/arcgis-link-chart/customElement.d.ts +14 -14
- package/dist/components/arcgis-map/customElement.d.ts +14 -14
- package/dist/components/arcgis-slider-opacity-legacy/customElement.d.ts +1 -1
- package/dist/components/arcgis-utility-network-trace-location/customElement.js +57 -51
- 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 +4 -4
- package/dist/cdn/2BUAB7HW.js +0 -2
- package/dist/cdn/6VN3TPXR.js +0 -2
- package/dist/cdn/CPF6OKUS.js +0 -2
- package/dist/cdn/MATFNQVX.js +0 -2
- package/dist/cdn/UJNWWAKI.js +0 -2
- package/dist/cdn/UTIAMQZJ.js +0 -2
- package/dist/cdn/assets/fonts/CalciteWebCoreIcons.svg +0 -197
- package/dist/cdn/assets/fonts/CalciteWebCoreIcons.ttf +0 -0
- package/dist/cdn/assets/fonts/CalciteWebCoreIcons.woff +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
|
|
2
|
-
import a from"./DXIOCBFP.js";import{a as h}from"./E7SYUWIQ.js";import{p as c}from"./
|
|
2
|
+
import a from"./DXIOCBFP.js";import{a as h}from"./E7SYUWIQ.js";import{p as c}from"./E52S65JA.js";export default $arcgis.t(([{forceInteractive:m},f,{property:o,subclass:g},{ignoreAbortErrors:A},{when:I,watch:v,on:O,whenOnce:F},{getDefaultUnitForView:b},{a:u,b:d,c:_,d:y}])=>{var T=Object.defineProperty,R=Object.getOwnPropertyDescriptor,n=(s,i,t,a)=>{for(var r=a>1?void 0:a?R(i,t):i,l=s.length-1,p;l>=0;l--)(p=s[l])&&(r=(a?p(i,t,r):p(r))||r);return a&&r&&T(i,t,r),r},w=Symbol("interactiveHandle"),e=class extends f{constructor(){super({}),this.operationState="inactive",this._ownsAnalysis=!1,this.shouldForceInteractive=!0,this._changeFromReconnect=!1,this._userOperationInfo=null,this._loggedUnsupportedErrorMessage=!1}initialize(){this._set("analysis",this.constructAnalysis()),this._ownsAnalysis=!0;let s=()=>{!this._changeFromReconnect&&!this._viewHasAnalysis&&(this._ownsAnalysis=!1);let i=!this._changeFromReconnect;this._changeFromReconnect=!1,i&&this._scheduleViewReconnect()};this.addHandles([I(()=>this.view?.ready&&!this.supported,()=>{this._loggedUnsupportedErrorMessage||c("error",this,this.unsupportedErrorMessage)},{sync:!0,initial:!0}),v(()=>[this.analysis,this._viewHasAnalysis],s,{sync:!0}),O(()=>this.view,"analysis-view-destroy",i=>{i.analysis===this.analysis&&s()}),v(()=>({view:this.view,ready:!!this.view?.ready,supported:this.supported}),({view:i},t)=>{let a=t?.view;i!==a&&(this._userOperationInfo=h(this._userOperationInfo),this._disconnectFromView(a)),this._scheduleViewReconnect()},{sync:!0,initial:!0})])}destroy(){this._reconnectViewTask=h(this._reconnectViewTask),this._userOperationInfo=h(this._userOperationInfo),this.analysisView!=null&&(this.analysisView.visible=void 0),this._disconnectFromView(this.view),this._set("view",null),this._ownsAnalysis&&this.analysis?.destroy()}get defaultMeasurementSystem(){return this.view?.ready?b(this.view):"metric"}get active(){return this._userOperationInfo?.state==="running"}set analysis(s){s!==this._get("analysis")&&(this._userOperationInfo=h(this._userOperationInfo),this._disconnectFromView(this.view),this._setExternalAnalysis(s),this._scheduleViewReconnect())}get connectingToView(){return!!this._reconnectViewTask}get disabled(){return!this.view?.ready||!this.supported}set hideVisualization(s){this._set("hideVisualization",s),this.analysisView&&(this.analysisView.visible=!s)}get ready(){return!!this.analysisView&&!this.connectingToView}get supported(){return!this.view||this.supportedViewType==="both"||this.view.type===this.supportedViewType}get _viewHasAnalysis(){let{view:s}=this;return s?.analyses.includes(this.analysis)===!0}clear(){this._userOperationInfo=h(this._userOperationInfo),this.clearAnalysis()}async start(s){if(this.hideVisualization){c("warn",this,"Cannot start analysis when not visible");return}this.stop(),s?.clear!==!1&&this.clear();let i={task:null,abort:null,state:"pending"},t=y(async a=>{if(i.state="wait-for-view-ready",await F(()=>this.ready,a),i.state="running",!this.analysisView||!this.view)return;this.operationState="active";let r=s?.operation?.({signal:a})??this.place({signal:a});await A(r)});return t.promise.finally(()=>{(this._userOperationInfo===i||!this._userOperationInfo)&&(this.operationState="inactive")}),i.task=t,i.abort=()=>t.abort(),this._userOperationInfo=i,await t.promise}stop(){this._userOperationInfo=h(this._userOperationInfo)}place(s){throw new Error("place() not implemented for this analysis view model")}clearAnalysis(){}onConnectToAnalysisView(s){}onDisconnectFromAnalysisView(){}_scheduleViewReconnect(){this._reconnectViewTask=h(this._reconnectViewTask);let s=y(async i=>{try{await this._reconnectView(i)}catch(t){if(u(i),!_(t)){c("warn",this,`Failed to use analysis in view model. ${String(t)}`);return}throw t}finally{s===this._reconnectViewTask&&(this._reconnectViewTask=void 0)}});this._reconnectViewTask=s}async _reconnectView(s){let{view:i}=this,t=i?.ready&&this.supported,a=this.analysis;if(this._userOperationInfo=V(this._userOperationInfo),this._disconnectFromView(i),!t||!i||!a)return;this._ownsAnalysis&&(this._changeFromReconnect=!0,i.analyses.add(a));let r=await i.whenAnalysisView(a);if(this.analysisView=r,d(s)){this._userOperationInfo=V(this._userOperationInfo);return}r.visible=!this.hideVisualization,this.shouldForceInteractive&&this.addHandles(m(r),w),this.onConnectToAnalysisView(r)}_disconnectFromView(s){this._ownsAnalysis&&s?.analyses.includes(this.analysis)&&(this._changeFromReconnect=!0,this.clearAnalysis(),s.analyses.remove(this.analysis)),this.onDisconnectFromAnalysisView(),this.removeHandles(w),this.analysisView=void 0}_setExternalAnalysis(s){this.analysisView&&!this._ownsAnalysis&&(this.analysisView.visible=void 0,this.removeHandles(w)),this.analysisView=void 0,this._ownsAnalysis=!1,this._set("analysis",s),this._changeFromReconnect=!1}};n([o()],e.prototype,"defaultMeasurementSystem",1);n([o()],e.prototype,"active",1);n([o()],e.prototype,"analysis",1);n([o()],e.prototype,"connectingToView",1);n([o()],e.prototype,"disabled",1);n([o()],e.prototype,"hideVisualization",1);n([o()],e.prototype,"operationState",2);n([o()],e.prototype,"ready",1);n([o()],e.prototype,"supported",1);n([o()],e.prototype,"view",2);n([o()],e.prototype,"_ownsAnalysis",2);n([o()],e.prototype,"_viewHasAnalysis",1);n([o()],e.prototype,"_reconnectViewTask",2);n([o()],e.prototype,"analysisView",2);n([o()],e.prototype,"shouldForceInteractive",2);e=n([g("esri.components.support.AnalysisViewModel")],e);function V(s){return s?.state==="running"?(s.abort(),null):s}return e},"applications/Components/analysisUtils","core/Accessor","core/accessorSupport/decorators","core/promiseUtils","core/reactiveUtils","applications/Components/getDefaultUnits",a)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
|
|
2
|
-
import d from"./CHWAA2DS.js";import c from"./VZOMAMSZ.js";import b from"./7PXQ5F5K.js";import{g as s}from"./EH5576ZY.js";import"./7QZVR2UR.js";import a from"./KTDXN3YM.js";import"./ZNBKMZP7.js";import{O as r,U as o,a as i,x as t}from"./GRFF5Y4R.js";import"./ALDX5YZO.js";export default $arcgis.t(([c,,,{a:a},l])=>{var d=i`.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__heading{word-break:break-word}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}.esri-item-list{width:100%}.esri-item-list__filter-container--sticky{z-index:1;position:sticky;top:0}.esri-item-list__group{margin-top:12px}.esri-item-list__scroller{overflow-y:auto}.esri-item-list__scroller{z-index:0;position:relative}.esri-item-list__scroller--enabled{max-height:420px}.esri-item-list__group__header{color:var(--calcite-color-text-2);font-weight:var(--calcite-font-weight-medium)}.esri-item-list__list-item{cursor:pointer;min-height:32px}.esri-item-list__list-item[class^=esri-icon-],.esri-item-list__list-item[class*=" esri-icon-"]{padding-inline-end:2.8px}.esri-item-list__list-item--disabled{cursor:default}.esri-item-list__list-item-icon{justify-content:center;align-items:center;min-width:32px;height:32px;display:flex}.esri-item-list__list-item-icon span{line-height:0}.esri-thumbnail-preview{background-position:50%;width:22px;height:22px}.esri-item-list__no-matches-message{justify-content:center;align-items:center;height:96px;display:flex}.esri-feature-templates{background:var(--calcite-color-background);width:100%}.esri-feature-templates__list-item-icon{flex:0;justify-content:center;align-items:center;width:48px;min-width:48px;display:flex}.esri-feature-templates__list-item-icon>div{display:flex}.esri-ui .esri-feature-templates{width:300px}.esri-ui .esri-widget .esri-feature-templates{width:100%}.esri-feature-templates .esri-item-list__scroller--enabled{max-height:var(--arcgis-feature-templates-max-list-height, 420px)}`,g=l(c),e=class extends r{constructor(){super(...arguments),this.widget=g(this),this.viewModel=this.widget.viewModel,this.autoDestroyDisabled=!1,this.enableListScroll=this.widget.enableListScroll,this.filterFunction=this.widget.filterFunction,this.filterText=this.widget.filterText,this.groupBy=this.widget.groupBy,this.headingLevel=this.widget.headingLevel,this.hideFilter=this.widget.visibleElements.filter,this.disabledItemFunction=this.viewModel.disabledItemFunction,this.icon=this.widget.icon,this.label=this.widget.label,this.layers=this.widget.layers,this.selectionMode=this.widget.selectionMode,this.state=this.viewModel.state,this.items=this.viewModel.items,this.selectedItem=this.viewModel.selectedItem,this.view=this.viewModel.view,this.arcgisPropertyChange=s()("state"),this.arcgisReady=t(),this.arcgisSelect=a(()=>this.widget,"select")}static{this.properties={autoDestroyDisabled:5,enableListScroll:5,filterFunction:0,filterText:1,groupBy:1,headingLevel:9,hideFilter:5,disabledItemFunction:0,icon:1,label:1,layers:0,referenceElement:1,selectionMode:1,state:32,items:32,selectedItem:32,view:0}}static{this.styles=d}async destroy(){await this.manager.destroy()}select(n){this.widget.select(n)}};o("arcgis-feature-templates-legacy",e);return e},"widgets/FeatureTemplates",a,b,c,d)
|
|
2
|
+
import d from"./YLCINN3O.js";import c from"./IE2YLVLQ.js";import b from"./DAXUZZYI.js";import{g as s}from"./THWXFLFI.js";import"./WUDIJWPW.js";import a from"./KTDXN3YM.js";import"./ZNBKMZP7.js";import{O as r,U as o,a as i,x as t}from"./E52S65JA.js";import"./ALDX5YZO.js";export default $arcgis.t(([c,,,{a:a},l])=>{var d=i`.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__heading{word-break:break-word}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}.esri-item-list{width:100%}.esri-item-list__filter-container--sticky{z-index:1;position:sticky;top:0}.esri-item-list__group{margin-top:12px}.esri-item-list__scroller{overflow-y:auto}.esri-item-list__scroller{z-index:0;position:relative}.esri-item-list__scroller--enabled{max-height:420px}.esri-item-list__group__header{color:var(--calcite-color-text-2);font-weight:var(--calcite-font-weight-medium)}.esri-item-list__list-item{cursor:pointer;min-height:32px}.esri-item-list__list-item[class^=esri-icon-],.esri-item-list__list-item[class*=" esri-icon-"]{padding-inline-end:2.8px}.esri-item-list__list-item--disabled{cursor:default}.esri-item-list__list-item-icon{justify-content:center;align-items:center;min-width:32px;height:32px;display:flex}.esri-item-list__list-item-icon span{line-height:0}.esri-thumbnail-preview{background-position:50%;width:22px;height:22px}.esri-item-list__no-matches-message{justify-content:center;align-items:center;height:96px;display:flex}.esri-feature-templates{background:var(--calcite-color-background);width:100%}.esri-feature-templates__list-item-icon{flex:0;justify-content:center;align-items:center;width:48px;min-width:48px;display:flex}.esri-feature-templates__list-item-icon>div{display:flex}.esri-ui .esri-feature-templates{width:300px}.esri-ui .esri-widget .esri-feature-templates{width:100%}.esri-feature-templates .esri-item-list__scroller--enabled{max-height:var(--arcgis-feature-templates-max-list-height, 420px)}`,g=l(c),e=class extends r{constructor(){super(...arguments),this.widget=g(this),this.viewModel=this.widget.viewModel,this.autoDestroyDisabled=!1,this.enableListScroll=this.widget.enableListScroll,this.filterFunction=this.widget.filterFunction,this.filterText=this.widget.filterText,this.groupBy=this.widget.groupBy,this.headingLevel=this.widget.headingLevel,this.hideFilter=this.widget.visibleElements.filter,this.disabledItemFunction=this.viewModel.disabledItemFunction,this.icon=this.widget.icon,this.label=this.widget.label,this.layers=this.widget.layers,this.selectionMode=this.widget.selectionMode,this.state=this.viewModel.state,this.items=this.viewModel.items,this.selectedItem=this.viewModel.selectedItem,this.view=this.viewModel.view,this.arcgisPropertyChange=s()("state"),this.arcgisReady=t(),this.arcgisSelect=a(()=>this.widget,"select")}static{this.properties={autoDestroyDisabled:5,enableListScroll:5,filterFunction:0,filterText:1,groupBy:1,headingLevel:9,hideFilter:5,disabledItemFunction:0,icon:1,label:1,layers:0,referenceElement:1,selectionMode:1,state:32,items:32,selectedItem:32,view:0}}static{this.styles=d}async destroy(){await this.manager.destroy()}select(n){this.widget.select(n)}};o("arcgis-feature-templates-legacy",e);return e},"widgets/FeatureTemplates",a,b,c,d)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
|
|
2
|
-
import{a as b}from"./72K7GT6K.js";import a from"./J4OTW75Q.js";import"./MATFNQVX.js";import{a as R}from"./C34Y4G3N.js";import{b as P}from"./ZNBKMZP7.js";import{M as O,N as S,O as j,P as q,S as L,U as Q,a as D,b as o}from"./GRFF5Y4R.js";import"./ALDX5YZO.js";export default $arcgis.t(([{templateHasKey:V,stripHTML:k},{isRelatableFeatureSupportedLayer:G,findRelatedLayer:J},{substitute:U,formatNumber:H},{watch:_,on:X},K,T,{ignoreAbortErrors:E},Y,{g:B}])=>{var ee=D`:host{position:relative;flex:1 1 auto}.list{min-height:var(--calcite-spacing-xxxl)}.list-item-hidden{display:none}.feature-observer{position:relative;bottom:var(--calcite-spacing-xxl);z-index:2;text-align:center}.sticky-loading-container{display:flex;position:sticky;bottom:var(--calcite-spacing-sm);align-items:center;justify-content:center;z-index:2;margin:0;padding:0;height:var(--calcite-spacing-xxxl);pointer-events:none}`,te=y=>{let e=[];if(y.formTemplate){let{description:t,title:r}=y.formTemplate;y.fields?.forEach(i=>{let s=r&&V(r,i.name),a=t&&V(t,i.name);(s||a)&&e.push(i.name)})}return e},M=100,N=class extends j{constructor(){super(...arguments),this._increaseFeaturePage=()=>{let{state:e,showAllEnabled:t,relatedFeatures:r,featuresPerPage:i,featurePage:s}=this;e==="ready"&&t&&r.length>=i*s&&this.featurePage++},this._relatedFeatureIntersectionObserver=new IntersectionObserver(([e])=>{e?.isIntersecting&&this._increaseFeaturePage()},{root:window.document}),this._featurePage=1,this._cancelQuery=()=>{let{_queryAbortController:e}=this;e&&e.abort(),this._queryAbortController=null},this._cancelQueryFeatureCount=()=>{let{_queryFeatureCountAbortController:e}=this;e&&e.abort(),this._queryFeatureCountAbortController=null},this._cancelQueryPage=()=>{let{_queryPageAbortController:e}=this;e&&e.abort(),this._queryPageAbortController=null},this._queryController=async()=>{this._cancelQuery();let e=new AbortController;this._queryAbortController=e,await E(this._query()),this._queryAbortController===e&&(this._queryAbortController=null)},this._queryFeatureCountController=async()=>{this._loaded=!1,this._cancelQueryFeatureCount();let e=new AbortController;this._queryFeatureCountAbortController=e,await E(this._queryFeatureCount()),this._queryFeatureCountAbortController===e&&(this._queryFeatureCountAbortController=null),this._loaded=!0},this._queryPageController=async()=>{let e=new AbortController;this._queryPageAbortController=e,await E(this._queryPage()),this._queryPageAbortController===e&&(this._queryPageAbortController=null)},this._queryDebounced=b(this._queryController,M),this._queryFeatureCountDebounced=b(this._queryFeatureCountController,M),this._queryPageDebounced=b(this._queryPageController,M),this._query=async()=>{let{_queryAbortController:e,relatedFeatures:t}=this;!this.featureCount||this.relatedLayer?.type==="subtype-group"&&!this.activeCategory||(this.relatedFeatureViewModels.destroyAll(),this.featurePage=1,t.destroyAll(),t.addMany(this._sliceFeatures(await this._queryRelatedFeatures({signal:e?.signal}))))},this._addFlowItem=e=>{e&&this.flowItems?.push(e)},this._relatedFeatureIntersectionObserverNode=O(),this.relatedFeatures=new K,this._queryAbortController=null,this._queryPageAbortController=null,this._queryFeatureCountAbortController=null,this.featureCount=0,this._loaded=!1,this.relatedFeatureViewModels=new K,this.autoDestroyDisabled=!1,this.featuresPerPage=10,this.flowType="feature-relationship",this.headingLevel=2,this.hideHeading=!1,this.hideDescription=!1,this.showAllEnabled=!1}static{this.properties={allCategories:16,_queryAbortController:16,_queryPageAbortController:16,_queryFeatureCountAbortController:16,featureCount:16,_loaded:16,canLoad:16,canQuery:16,displayShowAllButton:16,displayListItems:16,categories:16,itemDescriptionFieldName:16,relatedFeatureViewModels:16,state:16,autoDestroyDisabled:5,allItemsDescription:32,featurePage:9,featuresPerPage:9,flowItems:0,flowType:1,headingLevel:9,messages:0,heading:1,description:1,values:0,activeCategory:0,hideHeading:5,hideDescription:5,displayCount:9,graphic:0,layer:0,map:0,view:0,spatialReference:0,timeZone:1,orderByFields:0,relationshipId:9,showAllEnabled:5,label:3}}static{this.styles=ee}get orderByFieldsFixedCasing(){let{orderByFields:e,relatedLayer:t}=this;return e&&t?.loaded?e.map(r=>{let i=r.clone();return i.field=B(r.field,t),i}):e??[]}get supportsCacheHint(){return!!this.layer?.capabilities?.queryRelated?.supportsCacheHint}get allCategoriesCount(){return this.allCategories?.length??0}get objectId(){return(this.objectIdField&&this.graphic?.attributes?.[this.objectIdField])??null}get objectIdField(){return this.layer?.objectIdField||null}get relatedLayer(){let{layer:e,map:t,relationship:r}=this;if(!e?.loaded||!t||!r)return null;let i=e.type==="subtype-sublayer"&&e.parent&&G(e.parent)?e.parent:e;return J(t,i,r)??null}get relatedLayerKeyField(){let{relatedLayer:e,relationshipId:t}=this;return e?.loaded&&t!=null?e.relationships?.find(r=>r.id===t)?.keyField:null}get relatedLayerKeyFields(){let{relatedLayer:e}=this;return e?.loaded?e.relationships?.map(t=>t.keyField).filter(t=>t!=null)??[]:[]}get relationship(){let{relationshipId:e,layer:t}=this;return e!=null&&t?.loaded?t.relationships?.find(({id:r})=>r===e)??null:null}get relationshipKey(){let{relationshipKeyField:e}=this;return(e&&this.graphic?.attributes?.[e])??null}get relationshipKeyField(){return this.relationship?.keyField||null}get canLoad(){return!!this.map&&this.relationshipId!=null&&typeof this.objectId=="number"}get canQuery(){let e=this.layer?.capabilities?.queryRelated;return!!this.relatedLayer&&!!this.relationship&&this.relationshipId!=null&&this.objectId!=null&&!!e?.supportsCount&&e?.supportsPagination}get displayShowAllButton(){let{showAllEnabled:e,featureCount:t,displayCount:r,state:i,allCategoriesCount:s}=this,a=!!s&&(s>r||r===0),n=!!t&&(t>r||r===0);return!e&&i==="ready"&&(a||n)}get displayListItems(){let{relatedFeatures:e,allCategoriesCount:t}=this;return this.displayShowAllButton||!!e.length||!!t}get categories(){let{allCategories:e}=this;return this.showAllEnabled?e:e?.slice(0,this.displayCount)??null}get itemDescriptionFieldName(){return this.orderByFieldsFixedCasing[0]?.field||null}get state(){let{_queryAbortController:e,_queryFeatureCountAbortController:t,_queryPageAbortController:r,canQuery:i,_loaded:s,canLoad:a}=this;return t||a&&!s?"loading":e||r?"querying":i?"ready":"disabled"}get allItemsDescription(){let{messages:e,featureCount:t,allCategories:r,allCategoriesCount:i}=this;return U(e?.numberRecords??"",{number:H(r?i:t)})}get featurePage(){return this._featurePage}set featurePage(e){let{featuresPerPage:t,featureCount:r}=this,i=1,s=Math.ceil(r/t)||1;this._featurePage=Math.min(Math.max(e,i),s)}get heading(){let{activeCategory:e}=this;return this._heading??e?.name}set heading(e){this._heading=e}get displayCount(){return this._displayCount??3}set displayCount(e){this._displayCount=Math.min(Math.max(e??3,0),10)}async destroy(){await this.manager.destroy()}loaded(){this.manager.onLifecycle(()=>[_(()=>[this.displayCount,this.graphic,this.layer,this.layer?.loaded,this.map,this.orderByFields,this.relationshipId,this.featuresPerPage,this.showAllEnabled,this.canQuery,this.featureCount,this.activeCategory],()=>this._queryDebounced(),{initial:!0}),_(()=>[this.featurePage,this.showAllEnabled],()=>this._queryPageDebounced()),_(()=>[this.layer,this.relationshipId,this.objectId,this.canQuery,this.activeCategory],()=>this._queryFeatureCountDebounced(),{initial:!0}),_(()=>[this.state,this.showAllEnabled,this._relatedFeatureIntersectionObserverNode],()=>this._handleRelatedFeatureObserverChange()),X(()=>this.relatedFeatures,"change",()=>this._setRelatedFeaturesViewModels())]),this.manager.onDestroy(()=>{this.relatedFeatureViewModels.destroyAll(),this.relatedFeatures.destroyAll(),this._cancelQuery(),this._cancelQueryFeatureCount(),this._cancelQueryPage(),this._unobserveRelatedFeatureObserver()})}async _queryFeatureCount(){let{layer:e,relatedLayer:t}=this;await e?.load(),await t?.load();let{_queryFeatureCountAbortController:r,activeCategory:i,canQuery:s,objectId:a,relatedLayerKeyField:n,relationshipId:l,relationshipKey:g,supportsCacheHint:C}=this;if(!s||!e||!t||a==null){this.featureCount=0,this.allCategories=void 0;return}if(t?.type==="subtype-group"&&!i){if(this.featureCount=0,this.relatedFeatureViewModels.destroyAll(),this.featurePage=1,this.relatedFeatures.destroyAll(),n&&g!=null){let{default:w}=await $arcgis.t(m=>m[0],"smartMapping/statistics/uniqueValues"),{uniqueValueInfos:v}=await w({layer:t,sqlWhere:`${n} = '${g}'`,field:t.subtypeField??void 0,signal:r?.signal}),I=v.map(({count:u,value:c})=>{let m=t.subtypes?.find(A=>A.code===c)?.name;return c!=null&&m?{count:u,value:c,name:m}:void 0}).filter(u=>u!=null);this.allCategories=I}return}let{historicMoment:p,gdbVersion:f}=e,F=new T({cacheHint:C,gdbVersion:f,historicMoment:p,relationshipId:l,returnGeometry:!1,objectIds:[a],where:this._getRelationshipWhereClause(t)}),h=await e.queryRelatedFeaturesCount(F,{signal:r?.signal});this.allCategories=void 0,this.featureCount=h[a]||0}_getRelationshipWhereClause(e){let{activeCategory:t}=this,r=e.createQuery(),i="subtypeField"in e?e.subtypeField:void 0,s=t&&i?`${i} = ${t.value}`:void 0,a=r.where;return a&&s?`(${a}) AND (${s})`:a??s}_sliceFeatures(e){let{showAllEnabled:t,displayCount:r}=this;return t?e:r?e.slice(0,r):[]}async _queryPage(){let{relatedFeatures:e,featurePage:t,showAllEnabled:r,_queryPageAbortController:i,featureCount:s}=this;!r||t<2||!s||this.relatedLayer?.type==="subtype-group"&&!this.activeCategory||e.addMany(await this._queryRelatedFeatures({signal:i?.signal}))}async _queryRelatedFeatures(e){let{displayCount:t,featureCount:r,featurePage:i,featuresPerPage:s,layer:a,orderByFieldsFixedCasing:n,relatedLayer:l,relatedLayerKeyFields:g,relationshipId:C,showAllEnabled:p,supportsCacheHint:f}=this,{canQuery:F,objectId:h}=this;if(!F||!a||!l||h==null)return[];let w=p?((i-1)*s+r)%r:0,v=p?s:t,I=l.objectIdField,u="subtypeField"in l?l.subtypeField:void 0,c=[...n.map(d=>d.field),...te(l),...g,I,u].filter(d=>d!=null),m=n.map(d=>`${d.field} ${d.order}`),{historicMoment:A,gdbVersion:Z}=a,W=new T({orderByFields:m,start:w,num:v,outFields:c,cacheHint:f,historicMoment:A,gdbVersion:Z,relationshipId:C,returnGeometry:!1,objectIds:[h],where:this._getRelationshipWhereClause(l)}),$=(await a.queryRelatedFeatures(W,{signal:e?.signal}))[h]?.features||[];return l.type==="subtype-group"&&u?$.forEach(d=>{let z=d.attributes[u],x=l.findSublayerForSubtypeCode?.(z);d.sourceLayer=x,d.layer=x}):$.forEach(d=>{d.sourceLayer=l,d.layer=l}),$}_selectCategory(e){let{flowItems:t}=this;t&&this._addRelationshipFlowItem({showAllEnabled:!0,activeCategory:e})}_selectRecord(e){let{flowItems:t}=this;t&&this._addFlowItem(L(R(e,o`<arcgis-feature .flowItems=${t} .flowType=${this.flowType} .graphic=${e.graphic} .map=${this.map} show-relationship-content .spatialReference=${this.spatialReference} .timeZone=${this.timeZone} .view=${this.view}></arcgis-feature>`)))}_addRelationshipFlowItem({showAllEnabled:e=!1,activeCategory:t}){this._addFlowItem(L(R(t,o`<arcgis-feature-relationship .messages=${this.messages} .activeCategory=${t} .displayCount=${this.displayCount} .flowItems=${this.flowItems} .flowType=${this.flowType} .graphic=${this.graphic} .heading=${this.heading} hide-description .showAllEnabled=${e} hide-heading .layer=${this.layer} .map=${this.map} .orderByFields=${this.orderByFields} .relationshipId=${this.relationshipId} .spatialReference=${this.spatialReference} .values=${this.values} .view=${this.view}></arcgis-feature-relationship>`)))}_showAllRecords(){let{flowItems:e}=this;e&&this._addRelationshipFlowItem({showAllEnabled:!0})}_handleRelatedFeatureObserverChange(){this._unobserveRelatedFeatureObserver();let{state:e,showAllEnabled:t}=this;this._relatedFeatureIntersectionObserverNode.value&&e==="ready"&&t&&this._relatedFeatureIntersectionObserver.observe(this._relatedFeatureIntersectionObserverNode.value)}_unobserveRelatedFeatureObserver(){this._relatedFeatureIntersectionObserverNode.value&&this._relatedFeatureIntersectionObserver.unobserve(this._relatedFeatureIntersectionObserverNode.value)}_matchesFeature(e,t){let r=e?.graphic?.getObjectId(),i=t?.getObjectId();return r!=null&&i!=null&&r===i}_setRelatedFeaturesViewModels(){let{relatedFeatures:e,relatedFeatureViewModels:t,map:r,view:i,spatialReference:s,timeZone:a}=this;e?.filter(Boolean).forEach(n=>{t.some(l=>this._matchesFeature(l,n))||t.add(new Y({abilities:{relationshipContent:!1},map:r,view:i,spatialReference:s,timeZone:a,graphic:n}))}),t.forEach(n=>{e?.find(l=>this._matchesFeature(n,l))||t.remove(n)})}render(){let{state:e}=this;return o`<div class="root"><arcgis-feature-element-info .heading=${this.heading} .headingLevel=${this.headingLevel} .description=${this.description}></arcgis-feature-element-info>${e==="loading"?this._renderLoading():e==="disabled"?this._renderRelationshipNotFound():this._renderRelatedFeatures()}</div>`}_renderStickyLoading(){return this.state==="querying"?o`<div class="sticky-loading-container">${this._renderLoadingIcon()}</div>`:null}_renderLoadingIcon(){return o`<calcite-loader inline label></calcite-loader>`}_renderLoading(){return o`<div class="loading-container">${this._renderLoadingIcon()}</div>`}_renderShowAllIconNode(){return o`<calcite-icon icon=list scale=s slot=content-end></calcite-icon>`}_renderChevronIconNode(){return o`<calcite-icon flip-rtl icon=chevron-right scale=s slot=content-end></calcite-icon>`}_renderCategory(e){let{count:t,name:r}=e,i=H(t);return o`<calcite-list-item class="list-item" .disabled=${!t} .label=${r} @calciteListItemSelect=${()=>this._selectCategory(e)}><calcite-chip .label=${i} scale=s slot=content-end>${i}</calcite-chip>${this._renderChevronIconNode()}</calcite-list-item>`}_renderRelatedFeature(e){let{itemDescriptionFieldName:t,values:r}=this,{formattedAttributes:i,state:s,title:a}=e,n={...r,...i?.global},l=(t&&n?.[t])??"";return o`<calcite-list-item class=${q(P("list-item",{"list-item-hidden":s==="loading"}))} .description=${k(l.toString())} .label=${k(a)} @calciteListItemSelect=${()=>this._selectRecord(e)}>${this._renderChevronIconNode()}</calcite-list-item>`}_renderShowAllListItem(){return this.displayShowAllButton?o`<calcite-list-item .description=${this.allItemsDescription} .label=${this.messages?.showAll} @calciteListItemSelect=${()=>this._showAllRecords()}>${this._renderShowAllIconNode()}</calcite-list-item>`:null}_renderNoRelatedFeaturesMessage(){return o`<calcite-notice icon=information kind=brand open scale=s width=full><div slot=message>${this.messages?.noRelatedFeatures}</div></calcite-notice>`}_renderFeatureObserver(){return o`<div class="feature-observer" ${S(this._relatedFeatureIntersectionObserverNode)}></div>`}_renderList(){let{relatedFeatureViewModels:e,categories:t}=this;return o`<calcite-list display-mode=flat .label=${this.messages?.relatedFeaturesList??""}>${t?.map(r=>this._renderCategory(r))??e.toArray().map(r=>this._renderRelatedFeature(r))}${this._renderShowAllListItem()}</calcite-list>`}_renderRelatedFeatures(){let{displayListItems:e}=this,{state:t}=this;return o`<div class=${q(P("list",{"list-querying":t==="querying"}))}>${e?this._renderList():t==="ready"?this._renderNoRelatedFeaturesMessage():null}${this._renderStickyLoading()}${this._renderFeatureObserver()}</div>`}_renderRelationshipNotFound(){return o`<calcite-notice icon=exclamation-mark-triangle kind=danger open scale=s width=full><div slot=message>${this.messages?.relationshipNotFound}</div></calcite-notice>`}};Q("arcgis-feature-relationship",N);return N},"applications/Components/stringUtils","applications/Components/featureUtils","intl","core/reactiveUtils","core/Collection","rest/support/RelationshipQuery","core/promiseUtils","widgets/Feature/FeatureViewModel",a)
|
|
2
|
+
import{a as b}from"./72K7GT6K.js";import a from"./WB6NANDC.js";import"./7TXQADKX.js";import{a as R}from"./4QLSHCCH.js";import{b as P}from"./ZNBKMZP7.js";import{M as O,N as S,O as j,P as q,S as L,U as Q,a as D,b as o}from"./E52S65JA.js";import"./ALDX5YZO.js";export default $arcgis.t(([{templateHasKey:V,stripHTML:k},{isRelatableFeatureSupportedLayer:G,findRelatedLayer:J},{substitute:U,formatNumber:H},{watch:_,on:X},K,T,{ignoreAbortErrors:E},Y,{g:B}])=>{var ee=D`:host{position:relative;flex:1 1 auto}.list{min-height:var(--calcite-spacing-xxxl)}.list-item-hidden{display:none}.feature-observer{position:relative;bottom:var(--calcite-spacing-xxl);z-index:2;text-align:center}.sticky-loading-container{display:flex;position:sticky;bottom:var(--calcite-spacing-sm);align-items:center;justify-content:center;z-index:2;margin:0;padding:0;height:var(--calcite-spacing-xxxl);pointer-events:none}`,te=y=>{let e=[];if(y.formTemplate){let{description:t,title:r}=y.formTemplate;y.fields?.forEach(i=>{let s=r&&V(r,i.name),a=t&&V(t,i.name);(s||a)&&e.push(i.name)})}return e},M=100,N=class extends j{constructor(){super(...arguments),this._increaseFeaturePage=()=>{let{state:e,showAllEnabled:t,relatedFeatures:r,featuresPerPage:i,featurePage:s}=this;e==="ready"&&t&&r.length>=i*s&&this.featurePage++},this._relatedFeatureIntersectionObserver=new IntersectionObserver(([e])=>{e?.isIntersecting&&this._increaseFeaturePage()},{root:window.document}),this._featurePage=1,this._cancelQuery=()=>{let{_queryAbortController:e}=this;e&&e.abort(),this._queryAbortController=null},this._cancelQueryFeatureCount=()=>{let{_queryFeatureCountAbortController:e}=this;e&&e.abort(),this._queryFeatureCountAbortController=null},this._cancelQueryPage=()=>{let{_queryPageAbortController:e}=this;e&&e.abort(),this._queryPageAbortController=null},this._queryController=async()=>{this._cancelQuery();let e=new AbortController;this._queryAbortController=e,await E(this._query()),this._queryAbortController===e&&(this._queryAbortController=null)},this._queryFeatureCountController=async()=>{this._loaded=!1,this._cancelQueryFeatureCount();let e=new AbortController;this._queryFeatureCountAbortController=e,await E(this._queryFeatureCount()),this._queryFeatureCountAbortController===e&&(this._queryFeatureCountAbortController=null),this._loaded=!0},this._queryPageController=async()=>{let e=new AbortController;this._queryPageAbortController=e,await E(this._queryPage()),this._queryPageAbortController===e&&(this._queryPageAbortController=null)},this._queryDebounced=b(this._queryController,M),this._queryFeatureCountDebounced=b(this._queryFeatureCountController,M),this._queryPageDebounced=b(this._queryPageController,M),this._query=async()=>{let{_queryAbortController:e,relatedFeatures:t}=this;!this.featureCount||this.relatedLayer?.type==="subtype-group"&&!this.activeCategory||(this.relatedFeatureViewModels.destroyAll(),this.featurePage=1,t.destroyAll(),t.addMany(this._sliceFeatures(await this._queryRelatedFeatures({signal:e?.signal}))))},this._addFlowItem=e=>{e&&this.flowItems?.push(e)},this._relatedFeatureIntersectionObserverNode=O(),this.relatedFeatures=new K,this._queryAbortController=null,this._queryPageAbortController=null,this._queryFeatureCountAbortController=null,this.featureCount=0,this._loaded=!1,this.relatedFeatureViewModels=new K,this.autoDestroyDisabled=!1,this.featuresPerPage=10,this.flowType="feature-relationship",this.headingLevel=2,this.hideHeading=!1,this.hideDescription=!1,this.showAllEnabled=!1}static{this.properties={allCategories:16,_queryAbortController:16,_queryPageAbortController:16,_queryFeatureCountAbortController:16,featureCount:16,_loaded:16,canLoad:16,canQuery:16,displayShowAllButton:16,displayListItems:16,categories:16,itemDescriptionFieldName:16,relatedFeatureViewModels:16,state:16,autoDestroyDisabled:5,allItemsDescription:32,featurePage:9,featuresPerPage:9,flowItems:0,flowType:1,headingLevel:9,messages:0,heading:1,description:1,values:0,activeCategory:0,hideHeading:5,hideDescription:5,displayCount:9,graphic:0,layer:0,map:0,view:0,spatialReference:0,timeZone:1,orderByFields:0,relationshipId:9,showAllEnabled:5,label:3}}static{this.styles=ee}get orderByFieldsFixedCasing(){let{orderByFields:e,relatedLayer:t}=this;return e&&t?.loaded?e.map(r=>{let i=r.clone();return i.field=B(r.field,t),i}):e??[]}get supportsCacheHint(){return!!this.layer?.capabilities?.queryRelated?.supportsCacheHint}get allCategoriesCount(){return this.allCategories?.length??0}get objectId(){return(this.objectIdField&&this.graphic?.attributes?.[this.objectIdField])??null}get objectIdField(){return this.layer?.objectIdField||null}get relatedLayer(){let{layer:e,map:t,relationship:r}=this;if(!e?.loaded||!t||!r)return null;let i=e.type==="subtype-sublayer"&&e.parent&&G(e.parent)?e.parent:e;return J(t,i,r)??null}get relatedLayerKeyField(){let{relatedLayer:e,relationshipId:t}=this;return e?.loaded&&t!=null?e.relationships?.find(r=>r.id===t)?.keyField:null}get relatedLayerKeyFields(){let{relatedLayer:e}=this;return e?.loaded?e.relationships?.map(t=>t.keyField).filter(t=>t!=null)??[]:[]}get relationship(){let{relationshipId:e,layer:t}=this;return e!=null&&t?.loaded?t.relationships?.find(({id:r})=>r===e)??null:null}get relationshipKey(){let{relationshipKeyField:e}=this;return(e&&this.graphic?.attributes?.[e])??null}get relationshipKeyField(){return this.relationship?.keyField||null}get canLoad(){return!!this.map&&this.relationshipId!=null&&typeof this.objectId=="number"}get canQuery(){let e=this.layer?.capabilities?.queryRelated;return!!this.relatedLayer&&!!this.relationship&&this.relationshipId!=null&&this.objectId!=null&&!!e?.supportsCount&&e?.supportsPagination}get displayShowAllButton(){let{showAllEnabled:e,featureCount:t,displayCount:r,state:i,allCategoriesCount:s}=this,a=!!s&&(s>r||r===0),n=!!t&&(t>r||r===0);return!e&&i==="ready"&&(a||n)}get displayListItems(){let{relatedFeatures:e,allCategoriesCount:t}=this;return this.displayShowAllButton||!!e.length||!!t}get categories(){let{allCategories:e}=this;return this.showAllEnabled?e:e?.slice(0,this.displayCount)??null}get itemDescriptionFieldName(){return this.orderByFieldsFixedCasing[0]?.field||null}get state(){let{_queryAbortController:e,_queryFeatureCountAbortController:t,_queryPageAbortController:r,canQuery:i,_loaded:s,canLoad:a}=this;return t||a&&!s?"loading":e||r?"querying":i?"ready":"disabled"}get allItemsDescription(){let{messages:e,featureCount:t,allCategories:r,allCategoriesCount:i}=this;return U(e?.numberRecords??"",{number:H(r?i:t)})}get featurePage(){return this._featurePage}set featurePage(e){let{featuresPerPage:t,featureCount:r}=this,i=1,s=Math.ceil(r/t)||1;this._featurePage=Math.min(Math.max(e,i),s)}get heading(){let{activeCategory:e}=this;return this._heading??e?.name}set heading(e){this._heading=e}get displayCount(){return this._displayCount??3}set displayCount(e){this._displayCount=Math.min(Math.max(e??3,0),10)}async destroy(){await this.manager.destroy()}loaded(){this.manager.onLifecycle(()=>[_(()=>[this.displayCount,this.graphic,this.layer,this.layer?.loaded,this.map,this.orderByFields,this.relationshipId,this.featuresPerPage,this.showAllEnabled,this.canQuery,this.featureCount,this.activeCategory],()=>this._queryDebounced(),{initial:!0}),_(()=>[this.featurePage,this.showAllEnabled],()=>this._queryPageDebounced()),_(()=>[this.layer,this.relationshipId,this.objectId,this.canQuery,this.activeCategory],()=>this._queryFeatureCountDebounced(),{initial:!0}),_(()=>[this.state,this.showAllEnabled,this._relatedFeatureIntersectionObserverNode],()=>this._handleRelatedFeatureObserverChange()),X(()=>this.relatedFeatures,"change",()=>this._setRelatedFeaturesViewModels())]),this.manager.onDestroy(()=>{this.relatedFeatureViewModels.destroyAll(),this.relatedFeatures.destroyAll(),this._cancelQuery(),this._cancelQueryFeatureCount(),this._cancelQueryPage(),this._unobserveRelatedFeatureObserver()})}async _queryFeatureCount(){let{layer:e,relatedLayer:t}=this;await e?.load(),await t?.load();let{_queryFeatureCountAbortController:r,activeCategory:i,canQuery:s,objectId:a,relatedLayerKeyField:n,relationshipId:l,relationshipKey:g,supportsCacheHint:C}=this;if(!s||!e||!t||a==null){this.featureCount=0,this.allCategories=void 0;return}if(t?.type==="subtype-group"&&!i){if(this.featureCount=0,this.relatedFeatureViewModels.destroyAll(),this.featurePage=1,this.relatedFeatures.destroyAll(),n&&g!=null){let{default:w}=await $arcgis.t(m=>m[0],"smartMapping/statistics/uniqueValues"),{uniqueValueInfos:v}=await w({layer:t,sqlWhere:`${n} = '${g}'`,field:t.subtypeField??void 0,signal:r?.signal}),I=v.map(({count:u,value:c})=>{let m=t.subtypes?.find(A=>A.code===c)?.name;return c!=null&&m?{count:u,value:c,name:m}:void 0}).filter(u=>u!=null);this.allCategories=I}return}let{historicMoment:p,gdbVersion:f}=e,F=new T({cacheHint:C,gdbVersion:f,historicMoment:p,relationshipId:l,returnGeometry:!1,objectIds:[a],where:this._getRelationshipWhereClause(t)}),h=await e.queryRelatedFeaturesCount(F,{signal:r?.signal});this.allCategories=void 0,this.featureCount=h[a]||0}_getRelationshipWhereClause(e){let{activeCategory:t}=this,r=e.createQuery(),i="subtypeField"in e?e.subtypeField:void 0,s=t&&i?`${i} = ${t.value}`:void 0,a=r.where;return a&&s?`(${a}) AND (${s})`:a??s}_sliceFeatures(e){let{showAllEnabled:t,displayCount:r}=this;return t?e:r?e.slice(0,r):[]}async _queryPage(){let{relatedFeatures:e,featurePage:t,showAllEnabled:r,_queryPageAbortController:i,featureCount:s}=this;!r||t<2||!s||this.relatedLayer?.type==="subtype-group"&&!this.activeCategory||e.addMany(await this._queryRelatedFeatures({signal:i?.signal}))}async _queryRelatedFeatures(e){let{displayCount:t,featureCount:r,featurePage:i,featuresPerPage:s,layer:a,orderByFieldsFixedCasing:n,relatedLayer:l,relatedLayerKeyFields:g,relationshipId:C,showAllEnabled:p,supportsCacheHint:f}=this,{canQuery:F,objectId:h}=this;if(!F||!a||!l||h==null)return[];let w=p?((i-1)*s+r)%r:0,v=p?s:t,I=l.objectIdField,u="subtypeField"in l?l.subtypeField:void 0,c=[...n.map(d=>d.field),...te(l),...g,I,u].filter(d=>d!=null),m=n.map(d=>`${d.field} ${d.order}`),{historicMoment:A,gdbVersion:Z}=a,W=new T({orderByFields:m,start:w,num:v,outFields:c,cacheHint:f,historicMoment:A,gdbVersion:Z,relationshipId:C,returnGeometry:!1,objectIds:[h],where:this._getRelationshipWhereClause(l)}),$=(await a.queryRelatedFeatures(W,{signal:e?.signal}))[h]?.features||[];return l.type==="subtype-group"&&u?$.forEach(d=>{let z=d.attributes[u],x=l.findSublayerForSubtypeCode?.(z);d.sourceLayer=x,d.layer=x}):$.forEach(d=>{d.sourceLayer=l,d.layer=l}),$}_selectCategory(e){let{flowItems:t}=this;t&&this._addRelationshipFlowItem({showAllEnabled:!0,activeCategory:e})}_selectRecord(e){let{flowItems:t}=this;t&&this._addFlowItem(L(R(e,o`<arcgis-feature .flowItems=${t} .flowType=${this.flowType} .graphic=${e.graphic} .map=${this.map} show-relationship-content .spatialReference=${this.spatialReference} .timeZone=${this.timeZone} .view=${this.view}></arcgis-feature>`)))}_addRelationshipFlowItem({showAllEnabled:e=!1,activeCategory:t}){this._addFlowItem(L(R(t,o`<arcgis-feature-relationship .messages=${this.messages} .activeCategory=${t} .displayCount=${this.displayCount} .flowItems=${this.flowItems} .flowType=${this.flowType} .graphic=${this.graphic} .heading=${this.heading} hide-description .showAllEnabled=${e} hide-heading .layer=${this.layer} .map=${this.map} .orderByFields=${this.orderByFields} .relationshipId=${this.relationshipId} .spatialReference=${this.spatialReference} .values=${this.values} .view=${this.view}></arcgis-feature-relationship>`)))}_showAllRecords(){let{flowItems:e}=this;e&&this._addRelationshipFlowItem({showAllEnabled:!0})}_handleRelatedFeatureObserverChange(){this._unobserveRelatedFeatureObserver();let{state:e,showAllEnabled:t}=this;this._relatedFeatureIntersectionObserverNode.value&&e==="ready"&&t&&this._relatedFeatureIntersectionObserver.observe(this._relatedFeatureIntersectionObserverNode.value)}_unobserveRelatedFeatureObserver(){this._relatedFeatureIntersectionObserverNode.value&&this._relatedFeatureIntersectionObserver.unobserve(this._relatedFeatureIntersectionObserverNode.value)}_matchesFeature(e,t){let r=e?.graphic?.getObjectId(),i=t?.getObjectId();return r!=null&&i!=null&&r===i}_setRelatedFeaturesViewModels(){let{relatedFeatures:e,relatedFeatureViewModels:t,map:r,view:i,spatialReference:s,timeZone:a}=this;e?.filter(Boolean).forEach(n=>{t.some(l=>this._matchesFeature(l,n))||t.add(new Y({abilities:{relationshipContent:!1},map:r,view:i,spatialReference:s,timeZone:a,graphic:n}))}),t.forEach(n=>{e?.find(l=>this._matchesFeature(n,l))||t.remove(n)})}render(){let{state:e}=this;return o`<div class="root"><arcgis-feature-element-info .heading=${this.heading} .headingLevel=${this.headingLevel} .description=${this.description}></arcgis-feature-element-info>${e==="loading"?this._renderLoading():e==="disabled"?this._renderRelationshipNotFound():this._renderRelatedFeatures()}</div>`}_renderStickyLoading(){return this.state==="querying"?o`<div class="sticky-loading-container">${this._renderLoadingIcon()}</div>`:null}_renderLoadingIcon(){return o`<calcite-loader inline label></calcite-loader>`}_renderLoading(){return o`<div class="loading-container">${this._renderLoadingIcon()}</div>`}_renderShowAllIconNode(){return o`<calcite-icon icon=list scale=s slot=content-end></calcite-icon>`}_renderChevronIconNode(){return o`<calcite-icon flip-rtl icon=chevron-right scale=s slot=content-end></calcite-icon>`}_renderCategory(e){let{count:t,name:r}=e,i=H(t);return o`<calcite-list-item class="list-item" .disabled=${!t} .label=${r} @calciteListItemSelect=${()=>this._selectCategory(e)}><calcite-chip .label=${i} scale=s slot=content-end>${i}</calcite-chip>${this._renderChevronIconNode()}</calcite-list-item>`}_renderRelatedFeature(e){let{itemDescriptionFieldName:t,values:r}=this,{formattedAttributes:i,state:s,title:a}=e,n={...r,...i?.global},l=(t&&n?.[t])??"";return o`<calcite-list-item class=${q(P("list-item",{"list-item-hidden":s==="loading"}))} .description=${k(l.toString())} .label=${k(a)} @calciteListItemSelect=${()=>this._selectRecord(e)}>${this._renderChevronIconNode()}</calcite-list-item>`}_renderShowAllListItem(){return this.displayShowAllButton?o`<calcite-list-item .description=${this.allItemsDescription} .label=${this.messages?.showAll} @calciteListItemSelect=${()=>this._showAllRecords()}>${this._renderShowAllIconNode()}</calcite-list-item>`:null}_renderNoRelatedFeaturesMessage(){return o`<calcite-notice icon=information kind=brand open scale=s width=full><div slot=message>${this.messages?.noRelatedFeatures}</div></calcite-notice>`}_renderFeatureObserver(){return o`<div class="feature-observer" ${S(this._relatedFeatureIntersectionObserverNode)}></div>`}_renderList(){let{relatedFeatureViewModels:e,categories:t}=this;return o`<calcite-list display-mode=flat .label=${this.messages?.relatedFeaturesList??""}>${t?.map(r=>this._renderCategory(r))??e.toArray().map(r=>this._renderRelatedFeature(r))}${this._renderShowAllListItem()}</calcite-list>`}_renderRelatedFeatures(){let{displayListItems:e}=this,{state:t}=this;return o`<div class=${q(P("list",{"list-querying":t==="querying"}))}>${e?this._renderList():t==="ready"?this._renderNoRelatedFeaturesMessage():null}${this._renderStickyLoading()}${this._renderFeatureObserver()}</div>`}_renderRelationshipNotFound(){return o`<calcite-notice icon=exclamation-mark-triangle kind=danger open scale=s width=full><div slot=message>${this.messages?.relationshipNotFound}</div></calcite-notice>`}};Q("arcgis-feature-relationship",N);return N},"applications/Components/stringUtils","applications/Components/featureUtils","intl","core/reactiveUtils","core/Collection","rest/support/RelationshipQuery","core/promiseUtils","widgets/Feature/FeatureViewModel",a)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
|
|
2
|
-
import c from"./
|
|
2
|
+
import c from"./UPJWDEDA.js";import b from"./ZKOJATCN.js";import{e as w}from"./THWXFLFI.js";import"./WUDIJWPW.js";import"./ZNBKMZP7.js";import{O as y,Q as t,U as g,a as h,b as a}from"./E52S65JA.js";import"./ALDX5YZO.js";export default $arcgis.t(([,{a:u,b:s,c:x,d:o,e:$}])=>{var S=h`.layer-row{display:flex;align-items:center}.symbol{display:block;margin:auto}.symbol-container{position:relative}.ramp-labels{display:flex;flex-flow:column nowrap;justify-content:space-between}.layer-cell{padding:var(--calcite-spacing-xxs) 0;min-width:100px;vertical-align:middle;word-break:break-word}.layer-cell-info{padding-right:var(--calcite-spacing-sm);padding-left:var(--calcite-spacing-sm);max-width:250px;word-break:normal;word-wrap:normal;font-size:var(--calcite-font-size-sm)}.univariate-color-ramp-card{position:relative}.univariate-color-ramp-card:before{content:"";border-left:var(--calcite-border-width-sm) solid var(--calcite-color-background);border-right:var(--calcite-border-width-sm) solid var(--calcite-color-background);width:100%;height:15px;display:block;position:absolute;top:var(--calcite-border-width-sm)}.univariate-above-below-symbol{display:flex;align-items:center;justify-content:center}`,n=class extends y{constructor(){super(...arguments),this._direction=w(),this.legendElement=null,this.opacity=1}static{this.properties={cssEffectFilter:1,legendElement:0,opacity:9,messages:0}}static{this.styles=S}render(){let{legendElement:E,opacity:l}=this,{sizeRampElement:e,colorRampElement:c}=$(E,this.messages,l,"horizontal");if(!e)return null;let z=x(e,"full",!0,"horizontal"),k=o(e,"above",!0,"horizontal"),L=o(e,"below",!0,"horizontal"),d=12,p=this.messages?.previewColorRampAriaLabel,m=s(c,{width:k,height:d,rampAlignment:"horizontal",opacity:l,type:"above",cssEffectFilter:this.cssEffectFilter,ariaLabel:p}),A=s(c,{width:L,height:d,rampAlignment:"horizontal",opacity:l,type:"below",cssEffectFilter:this.cssEffectFilter,ariaLabel:p}),f=u(e,"card"),v=e.infos.map(i=>i.label),F=v.length-1,R=v.map((i,b)=>b===0||b===F?a`<div>${i}</div>`:null),C={display:"flex",flexDirection:"column"},D={display:"flex",flexDirection:"row"},r={marginTop:"3px",display:"flex"};this._direction==="rtl"?r.marginRight=`${f}px`:r.marginLeft=`${f}px`;let j={width:`${z}px`,display:"flex",flexDirection:"row",justifyContent:"space-between"};return a`<div class="layer-row" style=${t(C)}><div class="symbol-container" style=${t(D)}>${e.infos.map(i=>a`<div class="symbol">${i.preview}</div>`)}</div>${m?a`<div class="univariate-color-ramp-card" style=${t(r)}><div>${m}</div><div>${A}</div></div>`:null}<div class="layer-cell layer-cell-info"><div class="ramp-labels" style=${t(j)}>${R}</div></div></div>`}};g("arcgis-legend-card-univariate-above-and-below-ramp",n);return n},b,c)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
|
|
2
|
-
import{b as n}from"./ZNBKMZP7.js";import{O as r,P as l,U as c,a,b as i}from"./
|
|
2
|
+
import{b as n}from"./ZNBKMZP7.js";import{O as r,P as l,U as c,a,b as i}from"./E52S65JA.js";import"./ALDX5YZO.js";export default $arcgis.t(([{formatDate:v},{watch:g}])=>{var m=a`.toolbar{display:flex;align-items:center;background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size--2)}.timecode{color:var(--calcite-color-text-3);line-height:1.25rem}.controls-group{display:flex;flex:1 0 auto;justify-content:flex-end}.live-icon{color:var(--calcite-color-status-danger)}.controls-container{display:flex;align-items:center;gap:var(--calcite-spacing-md)}`;function s(o){return v(Math.round(o)*1e3,{minute:"2-digit",second:"2-digit"})}var t=class extends r{static{this.properties={_isLive:16,viewModel:0,messages:0,currentTime:9,duration:9,toggleMetadata:0,inline:5}}static{this.styles=m}loaded(){this.manager.onLifecycle(()=>[g(()=>this.viewModel.layer?.isLive,e=>{this._isLive=e??void 0},{initial:!0})])}render(){let{messages:e}=this;this._isLive===void 0&&(this._isLive=this.viewModel.layer?.isLive);let d=this._isLive?s(this.currentTime):`${s(this.currentTime)} / ${s(this.duration)}`;return i`<div class=${l(n("toolbar"))}><div class="controls-container"><arcgis-video-player-actions-group .inline=${this.inline} .messages=${e} .viewModel=${this.viewModel}></arcgis-video-player-actions-group>${this._isLive?i`<calcite-icon class="live-icon" icon=beacon></calcite-icon>`:null}${!this.inline||this._isLive?i`<div class="timecode">${d}</div>`:null}</div>${this.inline?null:i`<arcgis-video-player-controls-group class="controls-group" .messages=${e} .toggleMetadata=${()=>this.toggleMetadata()} .viewModel=${this.viewModel}></arcgis-video-player-controls-group>`}</div>`}};c("arcgis-video-player-action-bar",t);return t},"intl","core/reactiveUtils")
|