@arcgis/core
Version:
ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API
1 lines • 18.5 kB
JavaScript
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1956],{27733:(e,t,r)=>{r.d(t,{L:()=>A});var i,o=r(90237),s=r(66552),n=r(25482),a=r(10107),l=r(79901),p=r(93223),u=r(36005),d=r(40608),c=r(56507),y=r(90360),h=r(20437),m=r(49053),v=(r(44208),r(53966),r(87811),r(16930)),w=r(50498);let S=i=class extends n.A{constructor(e){super(e),this.type="query-table"}clone(){const{workspaceId:e,query:t,oidFields:r,spatialReference:o,geometryType:s}=this,n={workspaceId:e,query:t,oidFields:r,spatialReference:o?.clone()??void 0,geometryType:s};return new i(n)}};var _;(0,o._)([(0,p.e)({queryTable:"query-table"}),(0,a.MZ)({json:{write:{isRequired:!0}}})],S.prototype,"type",void 0),(0,o._)([(0,a.MZ)({type:String,json:{write:!0}})],S.prototype,"workspaceId",void 0),(0,o._)([(0,a.MZ)({type:String,json:{write:!0}})],S.prototype,"query",void 0),(0,o._)([(0,a.MZ)({type:String,json:{write:!0}})],S.prototype,"oidFields",void 0),(0,o._)([(0,a.MZ)({type:v.A,json:{write:!0}})],S.prototype,"spatialReference",void 0),(0,o._)([(0,p.e)(w.gy)],S.prototype,"geometryType",void 0),S=i=(0,o._)([(0,d.$)("esri.layers.support.source.QueryTableDataSource")],S);let g=_=class extends n.A{constructor(e){super(e),this.type="raster"}clone(){const{workspaceId:e,dataSourceName:t}=this;return new _({workspaceId:e,dataSourceName:t})}};var M;(0,o._)([(0,p.e)({raster:"raster"}),(0,a.MZ)({json:{write:{isRequired:!0}}})],g.prototype,"type",void 0),(0,o._)([(0,a.MZ)({type:String,json:{write:!0}})],g.prototype,"dataSourceName",void 0),(0,o._)([(0,a.MZ)({type:String,json:{write:!0}})],g.prototype,"workspaceId",void 0),g=_=(0,o._)([(0,d.$)("esri.layers.support.source.RasterDataSource")],g);let j=M=class extends n.A{constructor(e){super(e),this.type="table"}clone(){const{workspaceId:e,gdbVersion:t,dataSourceName:r}=this;return new M({workspaceId:e,gdbVersion:t,dataSourceName:r})}};var f,b;(0,o._)([(0,p.e)({table:"table"}),(0,a.MZ)({json:{write:{isRequired:!0}}})],j.prototype,"type",void 0),(0,o._)([(0,a.MZ)({type:String,json:{write:!0}})],j.prototype,"workspaceId",void 0),(0,o._)([(0,a.MZ)({type:String,json:{write:!0}})],j.prototype,"gdbVersion",void 0),(0,o._)([(0,a.MZ)({type:String,json:{write:!0}})],j.prototype,"dataSourceName",void 0),j=M=(0,o._)([(0,d.$)("esri.layers.support.source.TableDataSource")],j);const Z=(0,s.O)()({esriLeftInnerJoin:"left-inner-join",esriLeftOuterJoin:"left-outer-join"});let T=f=class extends n.A{constructor(e){super(e),this.type="join-table"}readLeftTableSource(e,t,r){return x()(e,t,r)}castLeftTableSource(e){return(0,c.aq)(F(),e)}readRightTableSource(e,t,r){return x()(e,t,r)}castRightTableSource(e){return(0,c.aq)(F(),e)}clone(){const{leftTableKey:e,rightTableKey:t,leftTableSource:r,rightTableSource:i,joinType:o}=this,s={leftTableKey:e,rightTableKey:t,leftTableSource:r?.clone()??void 0,rightTableSource:i?.clone()??void 0,joinType:o};return new f(s)}};(0,o._)([(0,p.e)({joinTable:"join-table"}),(0,a.MZ)({json:{write:{isRequired:!0}}})],T.prototype,"type",void 0),(0,o._)([(0,a.MZ)({type:String,json:{write:!0}})],T.prototype,"leftTableKey",void 0),(0,o._)([(0,a.MZ)({type:String,json:{write:!0}})],T.prototype,"rightTableKey",void 0),(0,o._)([(0,a.MZ)({json:{write:!0}})],T.prototype,"leftTableSource",void 0),(0,o._)([(0,u.w)("leftTableSource")],T.prototype,"readLeftTableSource",null),(0,o._)([(0,l.w)("leftTableSource")],T.prototype,"castLeftTableSource",null),(0,o._)([(0,a.MZ)({json:{write:!0}})],T.prototype,"rightTableSource",void 0),(0,o._)([(0,u.w)("rightTableSource")],T.prototype,"readRightTableSource",null),(0,o._)([(0,l.w)("rightTableSource")],T.prototype,"castRightTableSource",null),(0,o._)([(0,p.e)(Z)],T.prototype,"joinType",void 0),T=f=(0,o._)([(0,d.$)("esri.layers.support.source.JoinTableDataSource")],T);let R=null;function x(){return R||(R=(0,y.C)({types:F()})),R}let C=null;function F(){return C||(C={key:"type",base:null,typeMap:{"data-layer":A,"map-layer":m.f}}),C}const P={key:"type",base:null,typeMap:{"join-table":T,"query-table":S,raster:g,table:j}};let A=b=class extends n.A{constructor(e){super(e),this.type="data-layer"}clone(){const{fields:e,dataSource:t}=this;return new b({fields:e,dataSource:t})}};(0,o._)([(0,p.e)({dataLayer:"data-layer"}),(0,a.MZ)({json:{write:{isRequired:!0}}})],A.prototype,"type",void 0),(0,o._)([(0,a.MZ)({type:[h.A],json:{write:!0}})],A.prototype,"fields",void 0),(0,o._)([(0,a.MZ)({types:P,json:{write:!0}})],A.prototype,"dataSource",void 0),A=b=(0,o._)([(0,d.$)("esri.layers.support.source.DataLayerSource")],A),A.from=(0,c.dp)(A)},49053:(e,t,r)=>{r.d(t,{f:()=>u});var i,o=r(90237),s=r(25482),n=r(10107),a=r(56507),l=(r(44208),r(87811),r(93223)),p=r(40608);let u=i=class extends s.A{constructor(e){super(e),this.type="map-layer"}clone(){const{mapLayerId:e,gdbVersion:t}=this;return new i({mapLayerId:e,gdbVersion:t})}};(0,o._)([(0,l.e)({mapLayer:"map-layer"}),(0,n.MZ)({json:{write:{isRequired:!0}}})],u.prototype,"type",void 0),(0,o._)([(0,n.MZ)({type:a.jz,json:{write:{isRequired:!0}}})],u.prototype,"mapLayerId",void 0),(0,o._)([(0,n.MZ)({type:String,json:{write:!0}})],u.prototype,"gdbVersion",void 0),u=i=(0,o._)([(0,p.$)("esri.layers.support.source.MapLayerSource")],u)},27348:(e,t,r)=>{r.d(t,{A:()=>y});var i,o=r(90237),s=r(66552),n=r(25482),a=r(4718),l=r(10107),p=(r(44208),r(53966),r(40608)),u=r(5443);const d=new s.J({upperLeft:"upper-left",lowerLeft:"lower-left"});let c=i=class extends n.A{constructor(e){super(e),this.extent=null,this.mode="view",this.originPosition="upper-left",this.tolerance=1}clone(){return new i((0,a.o8)({extent:this.extent,mode:this.mode,originPosition:this.originPosition,tolerance:this.tolerance}))}};(0,o._)([(0,l.MZ)({type:u.A,json:{write:{overridePolicy(){return{enabled:"view"===this.mode}}}}})],c.prototype,"extent",void 0),(0,o._)([(0,l.MZ)({type:["view","edit"],json:{write:!0}})],c.prototype,"mode",void 0),(0,o._)([(0,l.MZ)({type:String,json:{read:d.read,write:d.write}})],c.prototype,"originPosition",void 0),(0,o._)([(0,l.MZ)({type:Number,json:{write:{overridePolicy(){return{enabled:"view"===this.mode}}}}})],c.prototype,"tolerance",void 0),c=i=(0,o._)([(0,p.$)("esri.rest.support.QuantizationParameters")],c);const y=c},61956:(e,t,r)=>{r.d(t,{A:()=>x});var i=r(90237),o=r(66552),s=r(25482),n=r(4718),a=r(10107),l=r(79901),p=r(93223),u=r(40608),d=r(43937),c=r(56507),y=r(86738),h=r(16930),m=r(65864),v=r(50498),w=r(27733),S=r(69540);r(44208),r(53966),r(87811);let _=class extends(S.A.ClonableMixin(s.A)){constructor(e){super(e),this.onFields=null,this.operator=null,this.searchTerm=null,this.searchType=null}};(0,i._)([(0,a.MZ)({type:[String],json:{write:{enabled:!0,overridePolicy(){return{enabled:null!=this.onFields&&this.onFields.length>0}}}}})],_.prototype,"onFields",void 0),(0,i._)([(0,a.MZ)({type:String,json:{write:!0}})],_.prototype,"operator",void 0),(0,i._)([(0,a.MZ)({type:String,json:{write:!0}})],_.prototype,"searchTerm",void 0),(0,i._)([(0,a.MZ)({type:String,json:{write:!0}})],_.prototype,"searchType",void 0),_=(0,i._)([(0,u.$)("esri.rest.support.FullTextSearch")],_);const g=_;var M,j=r(27348),f=r(58174),b=r(7562),Z=r(79677);const T=new o.J({esriSRUnit_Meter:"meters",esriSRUnit_Kilometer:"kilometers",esriSRUnit_Foot:"feet",esriSRUnit_StatuteMile:"miles",esriSRUnit_NauticalMile:"nautical-miles",esriSRUnit_USNauticalMile:"us-nautical-miles"});let R=M=class extends s.A{static from(e){return(0,c.PZ)(M,e)}constructor(e){super(e),this.aggregateIds=null,this.cacheHint=void 0,this.compactGeometryEnabled=!1,this.datumTransformation=null,this.defaultSpatialReferenceEnabled=!1,this.distance=void 0,this.dynamicDataSource=void 0,this.formatOf3DObjects=null,this.fullText=null,this.gdbVersion=null,this.geometry=null,this.geometryPrecision=void 0,this.groupByFieldsForStatistics=null,this.having=null,this.historicMoment=null,this.maxAllowableOffset=void 0,this.maxRecordCountFactor=1,this.multipatchOption=null,this.num=void 0,this.objectIds=null,this.orderByFields=null,this.outFields=null,this.outSpatialReference=null,this.outStatistics=null,this.parameterValues=null,this.pixelSize=null,this.quantizationParameters=null,this.rangeValues=null,this.relationParameter=null,this.resultType=null,this.returnCentroid=!1,this.returnDistinctValues=!1,this.returnExceededLimitFeatures=!0,this.returnGeometry=!1,this.returnQueryGeometry=!1,this.returnM=void 0,this.returnZ=void 0,this.returnTrueCurves=void 0,this.sourceSpatialReference=null,this.spatialRelationship="intersects",this.start=void 0,this.sqlFormat=null,this.text=null,this.timeExtent=null,this.timeReferenceUnknownClient=!1,this.units=null,this.where=null}castDatumTransformation(e){return"number"==typeof e||"object"==typeof e?e:null}writeHistoricMoment(e,t){t.historicMoment=e&&e.getTime()}writeParameterValues(e,t){if(e){const r={};for(const t in e){const i=e[t];Array.isArray(i)?r[t]=i.map((e=>e instanceof Date?e.getTime():e)):i instanceof Date?r[t]=i.getTime():r[t]=i}t.parameterValues=r}}writeStart(e,t){t.resultOffset=this.start,t.resultRecordCount=this.num||10,t.where="1=1"}writeWhere(e,t){t.where=e||"1=1"}clone(){return new M((0,n.o8)({aggregateIds:this.aggregateIds,cacheHint:this.cacheHint,compactGeometryEnabled:this.compactGeometryEnabled,datumTransformation:this.datumTransformation,defaultSpatialReferenceEnabled:this.defaultSpatialReferenceEnabled,distance:this.distance,fullText:this.fullText,formatOf3DObjects:this.formatOf3DObjects,gdbVersion:this.gdbVersion,geometry:this.geometry,geometryPrecision:this.geometryPrecision,groupByFieldsForStatistics:this.groupByFieldsForStatistics,having:this.having,historicMoment:null!=this.historicMoment?new Date(this.historicMoment.getTime()):null,maxAllowableOffset:this.maxAllowableOffset,maxRecordCountFactor:this.maxRecordCountFactor,multipatchOption:this.multipatchOption,num:this.num,objectIds:this.objectIds,orderByFields:this.orderByFields,outFields:this.outFields,outSpatialReference:this.outSpatialReference,outStatistics:this.outStatistics,parameterValues:this.parameterValues,pixelSize:this.pixelSize,quantizationParameters:this.quantizationParameters,rangeValues:this.rangeValues,relationParameter:this.relationParameter,resultType:this.resultType,returnDistinctValues:this.returnDistinctValues,returnGeometry:this.returnGeometry,returnCentroid:this.returnCentroid,returnExceededLimitFeatures:this.returnExceededLimitFeatures,returnQueryGeometry:this.returnQueryGeometry,returnM:this.returnM,returnZ:this.returnZ,returnTrueCurves:this.returnTrueCurves,dynamicDataSource:this.dynamicDataSource,sourceSpatialReference:this.sourceSpatialReference,spatialRelationship:this.spatialRelationship,start:this.start,sqlFormat:this.sqlFormat,text:this.text,timeExtent:this.timeExtent,timeReferenceUnknownClient:this.timeReferenceUnknownClient,units:this.units,where:this.where}))}};R.MAX_MAX_RECORD_COUNT_FACTOR=5,(0,i._)([(0,a.MZ)({json:{write:!0}})],R.prototype,"aggregateIds",void 0),(0,i._)([(0,a.MZ)({type:Boolean,json:{write:!0}})],R.prototype,"cacheHint",void 0),(0,i._)([(0,a.MZ)({type:Boolean,json:{default:!1,write:!0}})],R.prototype,"compactGeometryEnabled",void 0),(0,i._)([(0,a.MZ)({json:{write:!0}})],R.prototype,"datumTransformation",void 0),(0,i._)([(0,l.w)("datumTransformation")],R.prototype,"castDatumTransformation",null),(0,i._)([(0,a.MZ)({type:Boolean,json:{default:!1,write:!0}})],R.prototype,"defaultSpatialReferenceEnabled",void 0),(0,i._)([(0,a.MZ)({type:Number,json:{write:!0}})],R.prototype,"distance",void 0),(0,i._)([(0,a.MZ)({type:w.L,json:{write:!0}})],R.prototype,"dynamicDataSource",void 0),(0,i._)([(0,a.MZ)({type:String,json:{write:!0}})],R.prototype,"formatOf3DObjects",void 0),(0,i._)([(0,a.MZ)({type:[g],json:{write:{enabled:!0,overridePolicy(){return{enabled:null!=this.fullText&&this.fullText.length>0}}}}})],R.prototype,"fullText",void 0),(0,i._)([(0,a.MZ)({type:String,json:{write:!0}})],R.prototype,"gdbVersion",void 0),(0,i._)([(0,a.MZ)({types:v.yR,json:{read:m.rS,write:!0}})],R.prototype,"geometry",void 0),(0,i._)([(0,a.MZ)({type:Number,json:{write:!0}})],R.prototype,"geometryPrecision",void 0),(0,i._)([(0,a.MZ)({type:[String],json:{write:!0}})],R.prototype,"groupByFieldsForStatistics",void 0),(0,i._)([(0,a.MZ)({type:String,json:{write:!0}})],R.prototype,"having",void 0),(0,i._)([(0,a.MZ)({type:Date})],R.prototype,"historicMoment",void 0),(0,i._)([(0,d.K)("historicMoment")],R.prototype,"writeHistoricMoment",null),(0,i._)([(0,a.MZ)({type:Number,json:{write:!0}})],R.prototype,"maxAllowableOffset",void 0),(0,i._)([(0,a.MZ)({type:Number,cast:e=>e<1?1:e>R.MAX_MAX_RECORD_COUNT_FACTOR?R.MAX_MAX_RECORD_COUNT_FACTOR:e,json:{write:{overridePolicy:e=>({enabled:e>1})}}})],R.prototype,"maxRecordCountFactor",void 0),(0,i._)([(0,a.MZ)({type:["xyFootprint"],json:{write:!0}})],R.prototype,"multipatchOption",void 0),(0,i._)([(0,a.MZ)({type:Number,json:{read:{source:"resultRecordCount"}}})],R.prototype,"num",void 0),(0,i._)([(0,a.MZ)({json:{write:!0}})],R.prototype,"objectIds",void 0),(0,i._)([(0,a.MZ)({type:[String],json:{write:!0}})],R.prototype,"orderByFields",void 0),(0,i._)([(0,a.MZ)({type:[String],json:{write:!0}})],R.prototype,"outFields",void 0),(0,i._)([(0,a.MZ)({type:h.A,json:{name:"outSR",write:!0}})],R.prototype,"outSpatialReference",void 0),(0,i._)([(0,a.MZ)({type:[b.A],json:{write:{enabled:!0,overridePolicy(){return{enabled:null!=this.outStatistics&&this.outStatistics.length>0}}}}})],R.prototype,"outStatistics",void 0),(0,i._)([(0,a.MZ)({json:{write:!0}})],R.prototype,"parameterValues",void 0),(0,i._)([(0,d.K)("parameterValues")],R.prototype,"writeParameterValues",null),(0,i._)([(0,a.MZ)({type:y.A,json:{write:!0}})],R.prototype,"pixelSize",void 0),(0,i._)([(0,a.MZ)({type:j.A,json:{write:!0}})],R.prototype,"quantizationParameters",void 0),(0,i._)([(0,a.MZ)({type:[Object],json:{write:!0}})],R.prototype,"rangeValues",void 0),(0,i._)([(0,a.MZ)({type:String,json:{read:{source:"relationParam"},write:{target:"relationParam",overridePolicy(){return{enabled:"relation"===this.spatialRelationship}}}}})],R.prototype,"relationParameter",void 0),(0,i._)([(0,a.MZ)({type:String,json:{write:!0}})],R.prototype,"resultType",void 0),(0,i._)([(0,a.MZ)({type:Boolean,json:{default:!1,write:!0}})],R.prototype,"returnCentroid",void 0),(0,i._)([(0,a.MZ)({type:Boolean,json:{default:!1,write:!0}})],R.prototype,"returnDistinctValues",void 0),(0,i._)([(0,a.MZ)({type:Boolean,json:{default:!0,write:!0}})],R.prototype,"returnExceededLimitFeatures",void 0),(0,i._)([(0,a.MZ)({type:Boolean,json:{write:!0}})],R.prototype,"returnGeometry",void 0),(0,i._)([(0,a.MZ)({type:Boolean,json:{default:!1,write:!0}})],R.prototype,"returnQueryGeometry",void 0),(0,i._)([(0,a.MZ)({type:Boolean,json:{default:!1,write:!0}})],R.prototype,"returnM",void 0),(0,i._)([(0,a.MZ)({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],R.prototype,"returnZ",void 0),(0,i._)([(0,a.MZ)({type:Boolean,json:{write:!0}})],R.prototype,"returnTrueCurves",void 0),(0,i._)([(0,a.MZ)({type:h.A,json:{write:!0}})],R.prototype,"sourceSpatialReference",void 0),(0,i._)([(0,p.e)(f.x,{ignoreUnknown:!1,name:"spatialRel"})],R.prototype,"spatialRelationship",void 0),(0,i._)([(0,a.MZ)({type:Number,json:{read:{source:"resultOffset"}}})],R.prototype,"start",void 0),(0,i._)([(0,d.K)("start"),(0,d.K)("num")],R.prototype,"writeStart",null),(0,i._)([(0,a.MZ)({type:String,json:{write:!0}})],R.prototype,"sqlFormat",void 0),(0,i._)([(0,a.MZ)({type:String,json:{write:!0}})],R.prototype,"text",void 0),(0,i._)([(0,a.MZ)({type:Z.A,json:{write:!0}})],R.prototype,"timeExtent",void 0),(0,i._)([(0,a.MZ)({type:Boolean,json:{default:!1,write:!0}})],R.prototype,"timeReferenceUnknownClient",void 0),(0,i._)([(0,p.e)(T,{ignoreUnknown:!1}),(0,a.MZ)({json:{write:{overridePolicy(e){return{enabled:!!e&&null!=this.distance}}}}})],R.prototype,"units",void 0),(0,i._)([(0,a.MZ)({type:String,json:{write:{overridePolicy(e){return{enabled:null!=e||null!=this.start&&this.start>0}}}}})],R.prototype,"where",void 0),(0,i._)([(0,d.K)("where")],R.prototype,"writeWhere",null),R=M=(0,i._)([(0,u.$)("esri.rest.support.Query")],R);const x=R},7562:(e,t,r)=>{r.d(t,{A:()=>y});var i,o=r(90237),s=r(66552),n=r(25482),a=r(4718),l=r(10107),p=(r(44208),r(53966),r(40608)),u=r(43937);const d=new s.J({count:"count",sum:"sum",min:"min",max:"max",avg:"avg",stddev:"stddev",var:"var",exceedslimit:"exceedslimit",percentile_cont:"percentile-continuous",percentile_disc:"percentile-discrete",EnvelopeAggregate:"envelope-aggregate",CentroidAggregate:"centroid-aggregate",ConvexHullAggregate:"convex-hull-aggregate"});let c=i=class extends n.A{constructor(e){super(e),this.maxPointCount=void 0,this.maxRecordCount=void 0,this.maxVertexCount=void 0,this.onStatisticField=null,this.outStatisticFieldName=null,this.statisticType=null,this.statisticParameters=null}writeStatisticParameters(e,t){"percentile-continuous"!==this.statisticType&&"percentile-discrete"!==this.statisticType||(t.statisticParameters=(0,a.o8)(e))}clone(){return new i({maxPointCount:this.maxPointCount,maxRecordCount:this.maxRecordCount,maxVertexCount:this.maxVertexCount,onStatisticField:this.onStatisticField,outStatisticFieldName:this.outStatisticFieldName,statisticType:this.statisticType,statisticParameters:(0,a.o8)(this.statisticParameters)})}};(0,o._)([(0,l.MZ)({type:Number,json:{write:!0}})],c.prototype,"maxPointCount",void 0),(0,o._)([(0,l.MZ)({type:Number,json:{write:!0}})],c.prototype,"maxRecordCount",void 0),(0,o._)([(0,l.MZ)({type:Number,json:{write:!0}})],c.prototype,"maxVertexCount",void 0),(0,o._)([(0,l.MZ)({type:String,json:{write:!0}})],c.prototype,"onStatisticField",void 0),(0,o._)([(0,l.MZ)({type:String,json:{write:!0}})],c.prototype,"outStatisticFieldName",void 0),(0,o._)([(0,l.MZ)({type:String,json:{read:{source:"statisticType",reader:d.read},write:{target:"statisticType",writer:d.write}}})],c.prototype,"statisticType",void 0),(0,o._)([(0,l.MZ)({type:Object})],c.prototype,"statisticParameters",void 0),(0,o._)([(0,u.K)("statisticParameters")],c.prototype,"writeStatisticParameters",null),c=i=(0,o._)([(0,p.$)("esri.rest.support.StatisticDefinition")],c);const y=c},58174:(e,t,r)=>{r.d(t,{x:()=>i});const i=new(r(66552).J)({esriSpatialRelIntersects:"intersects",esriSpatialRelContains:"contains",esriSpatialRelCrosses:"crosses",esriSpatialRelDisjoint:"disjoint",esriSpatialRelEnvelopeIntersects:"envelope-intersects",esriSpatialRelIndexIntersects:"index-intersects",esriSpatialRelOverlaps:"overlaps",esriSpatialRelTouches:"touches",esriSpatialRelWithin:"within",esriSpatialRelRelation:"relation"})}}]);