@arcgis/core 5.1.0-next.95 → 5.1.0-next.97
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/Graphic.d.ts +16 -1
- package/Graphic.js +1 -1
- package/applications/MapViewer/templateUtils.js +1 -1
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/0175098da590a7109539.js +1 -0
- package/assets/esri/core/workers/chunks/0e6feed31340cf3c1966.js +1 -0
- package/assets/esri/core/workers/chunks/26f28406056ddc0e159c.js +1 -0
- package/assets/esri/core/workers/chunks/27d6ad4ca5ab8c9d62cd.js +1 -0
- package/assets/esri/core/workers/chunks/{23241e6093e245f9c774.js → 2b00229c238aae70b948.js} +1 -1
- package/assets/esri/core/workers/chunks/{6b4c99c7648f37feec00.js → 308e1b0aea941958de44.js} +1 -1
- package/assets/esri/core/workers/chunks/34c11e7c8762fe0c19fb.js +1 -0
- package/assets/esri/core/workers/chunks/34e026549ba2822b8ebd.js +1 -0
- package/assets/esri/core/workers/chunks/4020f95d8131493f799e.js +1 -0
- package/assets/esri/core/workers/chunks/40bc7c65b708fcc80fab.js +1 -0
- package/assets/esri/core/workers/chunks/{8de61993e114f453579b.js → 40e887e87ae24ace27a5.js} +1 -1
- package/assets/esri/core/workers/chunks/4255ad7601c7a7621b71.js +1 -0
- package/assets/esri/core/workers/chunks/{5853925d2f7fb550bd2e.js → 44b5e4640fe547285e0c.js} +1 -1
- package/assets/esri/core/workers/chunks/58c15c42e6a618386a2f.js +1 -0
- package/assets/esri/core/workers/chunks/6d59a9cf533ebc590f70.js +1 -0
- package/assets/esri/core/workers/chunks/{0f527961805cd45c14e2.js → 708bd77e6d723e3f0aa8.js} +1 -1
- package/assets/esri/core/workers/chunks/7485d59d60d61737d662.js +1 -0
- package/assets/esri/core/workers/chunks/7dc9ff66e1eceadbae24.js +1 -0
- package/assets/esri/core/workers/chunks/9954928d6430e2bfdb1a.js +1 -0
- package/assets/esri/core/workers/chunks/9a29b7f9e6281ee40c37.js +1 -0
- package/assets/esri/core/workers/chunks/9f4a9b193485f88d4461.js +1 -0
- package/assets/esri/core/workers/chunks/a001e7e8a39f27284d87.js +1 -0
- package/assets/esri/core/workers/chunks/a93a058678c8c8996d54.js +1 -0
- package/assets/esri/core/workers/chunks/acb8cff06142f828fb78.js +1 -0
- package/assets/esri/core/workers/chunks/{bf73232057ebc1ecc0ad.js → b06cc59068d32baaaa87.js} +1 -1
- package/assets/esri/core/workers/chunks/b63cbf6c2c9ec1b02b9a.js +1 -0
- package/assets/esri/core/workers/chunks/b891d95b7858665cd6c1.js +1 -0
- package/assets/esri/core/workers/chunks/bfb417d72d0c90e116fe.js +1 -0
- package/assets/esri/core/workers/chunks/c0c693c2e0043ecba4a5.js +1 -0
- package/assets/esri/core/workers/chunks/{fa869bfe4366f7f49cca.js → e5f8c73349407c25956b.js} +1 -1
- package/assets/esri/core/workers/chunks/e8a885b576da3ec145d3.js +1 -0
- package/assets/esri/core/workers/chunks/{bd721bbc7afc75d3bddb.js → eda51e512eff551ad858.js} +1 -1
- package/assets/esri/core/workers/chunks/f27397379c6c88bc6ef4.js +1 -0
- package/assets/esri/core/workers/chunks/f91a2c69a93295cf4de6.js +1 -0
- package/assets/esri/core/workers/chunks/fec3fffcf854a6226df4.js +1 -0
- package/chunks/GaussianSplat.glsl.js +9 -9
- package/chunks/NativeLine.glsl.js +4 -4
- package/config.js +1 -1
- package/kernel.js +1 -1
- package/layers/SceneLayer.d.ts +59 -32
- package/layers/graphics/data/QueryEngineCapabilities.js +1 -1
- package/layers/graphics/sources/OGCFeatureSource.js +1 -1
- package/layers/graphics/sources/geojson/GeoJSONSourceWorker.js +1 -1
- package/layers/graphics/sources/support/MemorySourceWorker.js +1 -1
- package/layers/graphics/sources/support/ParquetSourceWorker.js +1 -1
- package/layers/mixins/ArcGISImageService.js +1 -1
- package/layers/raster/formats/Lerc.js +1 -1
- package/layers/raster/formats/RasterCodec.js +1 -1
- package/layers/scene/ModelFileInfo.d.ts +6 -2
- package/layers/scene/ModelInfo.d.ts +16 -7
- package/layers/scene/types.d.ts +2 -0
- package/layers/support/ExportImageServiceParameters.js +1 -1
- package/layers/support/capabilities.js +1 -1
- package/layers/support/serviceCapabilitiesUtils.js +1 -1
- package/layers/types.d.ts +25 -2
- package/package.json +1 -1
- package/rest/knowledgeGraph/CreateReplicaResponse.d.ts +5 -4
- package/rest/knowledgeGraph/wasmInterface/wasmToReplicaFactories.js +1 -1
- package/rest/query/operations/queryUtils.js +1 -1
- package/rest/support/OutDistance.js +1 -1
- package/rest/support/Query.d.ts +39 -1
- package/rest/support/Query.js +1 -1
- package/support/revision.js +1 -1
- package/tables/AttributeTableTemplate.d.ts +1 -1
- package/tables/elements/AttributeTableGroupElement.d.ts +1 -1
- package/tables/support/tablesUtils.d.ts +2 -2
- package/tables/support/templateUtils.d.ts +136 -0
- package/tables/support/templateUtils.js +2 -0
- package/tables/support/types.d.ts +90 -0
- package/views/2d/engine/webgl/definitions.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/animated/attributes.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/fill/FillMeshWriter.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/labels/LabelMeshWriter.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/line/LineMeshWriter.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/markers/MarkerMeshWriter.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/pieChart/PieChartMeshWriter.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/pieChart/PieChartShader.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/text/TextMeshWriter.js +1 -1
- package/views/2d/engine/webgl/shaderGraph/techniques/text/TextShader.js +1 -1
- package/views/2d/engine/webgl/shaders/sources/shaderRepository.js +1 -1
- package/views/2d/layers/BaseLayerView2D.d.ts +2 -2
- package/views/2d/layers/BaseLayerViewGL2D.d.ts +2 -2
- package/views/3d/support/QualityProfile.js +1 -1
- package/views/3d/support/gaussianSplatting/GaussianSplatDataStore.js +1 -1
- package/views/3d/support/gaussianSplatting/GaussianSplatIntersectionHandler.js +1 -1
- package/views/3d/support/gaussianSplatting/GaussianTile.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/shading/ReadShadowMap.glsl.js +6 -19
- package/views/3d/webgl-engine/lib/GaussianSplatRenderNode.js +1 -1
- package/views/3d/webgl-engine/shaders/GaussianSplatTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/shaders/NativeLine.glsl.js +1 -1
- package/widgets/BatchAttributeForm/BatchAttributeFormViewModel.d.ts +40 -1
- package/widgets/BatchAttributeForm/BatchAttributeFormViewModel.js +1 -1
- package/widgets/BatchAttributeForm/ReactiveGraphic.js +1 -1
- package/widgets/BatchAttributeForm/expressions/types.d.ts +1 -0
- package/widgets/BatchAttributeForm/inputs/AttachmentElementInput.d.ts +52 -1
- package/widgets/BatchAttributeForm/inputs/AttachmentElementInput.js +1 -1
- package/widgets/BatchAttributeForm/inputs/BatchFormInputs.d.ts +3 -0
- package/widgets/BatchAttributeForm/inputs/BatchFormInputs.js +1 -1
- package/widgets/BatchAttributeForm/inputs/EditableInput.d.ts +2 -0
- package/widgets/BatchAttributeForm/inputs/EditableInput.js +1 -1
- package/widgets/BatchAttributeForm/inputs/support/inputUtils.js +1 -1
- package/widgets/BatchAttributeForm/types.d.ts +79 -0
- package/widgets/Editor/Edits.js +1 -1
- package/widgets/Editor/UpdateFeaturesWorkflow.js +1 -1
- package/widgets/FeatureTable/FeatureTableViewModel.js +1 -1
- package/assets/esri/core/workers/chunks/0ab1384282afc8731857.js +0 -1
- package/assets/esri/core/workers/chunks/130abc6a353e4d79a1b1.js +0 -1
- package/assets/esri/core/workers/chunks/1a68a249540fda9083a9.js +0 -1
- package/assets/esri/core/workers/chunks/1ae016e4f5e39c34a941.js +0 -1
- package/assets/esri/core/workers/chunks/2f6ba01ea8b8f193bea5.js +0 -1
- package/assets/esri/core/workers/chunks/31837f2f8859e2cf2efd.js +0 -1
- package/assets/esri/core/workers/chunks/41e811138c96d85fd3e8.js +0 -1
- package/assets/esri/core/workers/chunks/43b5cfb34b11c4124b51.js +0 -1
- package/assets/esri/core/workers/chunks/44b30dfce12824ee1f33.js +0 -1
- package/assets/esri/core/workers/chunks/4644e1b00fd4e628219d.js +0 -1
- package/assets/esri/core/workers/chunks/5648379d1ed4ca02eedd.js +0 -1
- package/assets/esri/core/workers/chunks/6666cd3bf1a3d175dc8c.js +0 -1
- package/assets/esri/core/workers/chunks/7536f0683e488159d8bd.js +0 -1
- package/assets/esri/core/workers/chunks/8bfe4841c83eb3abfbe8.js +0 -1
- package/assets/esri/core/workers/chunks/a12fd6a445f42326642f.js +0 -1
- package/assets/esri/core/workers/chunks/a8e2fbbfbdf1c3203d5e.js +0 -1
- package/assets/esri/core/workers/chunks/a94674826e5893c9d197.js +0 -1
- package/assets/esri/core/workers/chunks/b2504657d3ef8769005e.js +0 -1
- package/assets/esri/core/workers/chunks/b90db0829da3f96e4a19.js +0 -1
- package/assets/esri/core/workers/chunks/bd9dae2d5ec199f8e9ba.js +0 -1
- package/assets/esri/core/workers/chunks/be19d4a6fb9b1c923127.js +0 -1
- package/assets/esri/core/workers/chunks/c2589e5e0e0f81a378c2.js +0 -1
- package/assets/esri/core/workers/chunks/c33f1f722499a5c6fc11.js +0 -1
- package/assets/esri/core/workers/chunks/e03713dee3205c96d53f.js +0 -1
- package/assets/esri/core/workers/chunks/ead6e4d0a515c0913bee.js +0 -1
- package/assets/esri/core/workers/chunks/f95e3333a65a0c09fd1e.js +0 -1
- package/assets/esri/core/workers/chunks/ffb8fa77297578afef7c.js +0 -1
- package/tables/types.d.ts +0 -18
- package/widgets/FeatureTable/support/templateUtils.js +0 -2
package/layers/types.d.ts
CHANGED
|
@@ -229,13 +229,19 @@ export interface DataCapabilities {
|
|
|
229
229
|
*/
|
|
230
230
|
isBranchVersioned: boolean;
|
|
231
231
|
/**
|
|
232
|
-
* Formats that can be requested by 3D object queries.
|
|
232
|
+
* Formats that can be requested by 3D object model queries such as [SceneLayer.queryModel()](https://developers.arcgis.com/javascript/latest/references/core/layers/SceneLayer/#queryModel) and
|
|
233
|
+
* [SceneLayer.queryModels()](https://developers.arcgis.com/javascript/latest/references/core/layers/SceneLayer/#queryModels).
|
|
234
|
+
*
|
|
235
|
+
* These values describe formats supported by the service and are not guaranteed to be present for every feature.
|
|
233
236
|
*
|
|
234
237
|
* @since 5.1
|
|
235
238
|
*/
|
|
236
239
|
queryFormats?: string[];
|
|
237
240
|
/**
|
|
238
|
-
* Formats that can be uploaded as source models.
|
|
241
|
+
* Formats that can be uploaded as source models for 3D object features.
|
|
242
|
+
*
|
|
243
|
+
* These values describe source formats supported by the service and are not guaranteed to be present for every
|
|
244
|
+
* feature.
|
|
239
245
|
*
|
|
240
246
|
* @since 5.1
|
|
241
247
|
*/
|
|
@@ -387,6 +393,16 @@ export interface QueryCapabilities {
|
|
|
387
393
|
* @since 5.0
|
|
388
394
|
*/
|
|
389
395
|
supportedSpatialAggregationStatistics: SupportedSpatialAggregationStatistics;
|
|
396
|
+
/**
|
|
397
|
+
* Indicates if the query operation supports returning an array of unique identifiers (for example, ObjectIds)
|
|
398
|
+
* for the individual features contributing to each [aggregated](https://developers.arcgis.com/javascript/latest/references/core/rest/support/Query/#returnStatisticsAggregatedIds)
|
|
399
|
+
* statistics query result.
|
|
400
|
+
*
|
|
401
|
+
* @since 5.1
|
|
402
|
+
* @see [Query.returnStatisticsAggregatedIds](https://developers.arcgis.com/javascript/latest/references/core/rest/support/Query/#returnStatisticsAggregatedIds)
|
|
403
|
+
* @see [Graphic.statisticsAggregatedIds](https://developers.arcgis.com/javascript/latest/references/core/Graphic/#statisticsAggregatedIds)
|
|
404
|
+
*/
|
|
405
|
+
supportsStatisticsAggregatedIds: boolean;
|
|
390
406
|
/**
|
|
391
407
|
* Indicates if the query operation supports a [cache hint](https://developers.arcgis.com/javascript/latest/references/core/rest/support/Query/#cacheHint). This is valid only for
|
|
392
408
|
* [hosted feature services](https://doc.arcgis.com/en/arcgis-online/share-maps/hosted-web-layers.htm).
|
|
@@ -414,6 +430,13 @@ export interface QueryCapabilities {
|
|
|
414
430
|
* @since 5.0
|
|
415
431
|
*/
|
|
416
432
|
supportsDistance: boolean;
|
|
433
|
+
/**
|
|
434
|
+
* Indicates if the layer's query operation supports returning distance to each of the
|
|
435
|
+
* layer's feature from input geometries.
|
|
436
|
+
*
|
|
437
|
+
* @since 5.1
|
|
438
|
+
*/
|
|
439
|
+
supportsOutDistance: boolean;
|
|
417
440
|
/**
|
|
418
441
|
* Indicates if the layer supports queries for distinct values based on fields specified in the [FeatureLayer.outFields](https://developers.arcgis.com/javascript/latest/references/core/layers/FeatureLayer/#outFields).
|
|
419
442
|
*
|
package/package.json
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type Accessor from "../../core/Accessor.js";
|
|
2
|
+
import type EsriError from "../../core/Error.js";
|
|
2
3
|
import type { ReplicaSyncDataFormat } from "./ReplicaDefinition.js";
|
|
3
4
|
|
|
4
5
|
export interface CreateReplicaResponseProperties extends Partial<Pick<CreateReplicaResponse, "asyncStatusUrl" | "createReplicaResult">> {}
|
|
@@ -18,10 +19,10 @@ export default class CreateReplicaResponse extends Accessor {
|
|
|
18
19
|
|
|
19
20
|
/** Result details returned for a completed replica creation request. */
|
|
20
21
|
export interface CreateReplicaResult {
|
|
21
|
-
/**
|
|
22
|
-
errors:
|
|
23
|
-
/**
|
|
24
|
-
warnings:
|
|
22
|
+
/** Errors returned by the replica creation operation. */
|
|
23
|
+
errors: EsriError[];
|
|
24
|
+
/** Warnings returned by the replica creation operation. */
|
|
25
|
+
warnings: EsriError[];
|
|
25
26
|
/** Name of the created replica. */
|
|
26
27
|
replicaName: string;
|
|
27
28
|
/** The requested replica name supplied on the create replica request. */
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import e from"../../../core/Error.js";import t from"../../../geometry/SpatialReference.js";import n from"../CreateReplicaResponse.js";import r from"../ReplicaDefinition.js";import a from"../ReplicasInformationResponse.js";import c from"../UnregisterReplicaResponse.js";import{WasmQuantizeOriginPositionTypeCode as i}from"./WasmSerializedLayerData.js";import{wasmErrorToEsriError as o}from"./wasmUtils.js";function l(e){const t=new n;if(e.has_async_status_url()&&(t.asyncStatusUrl=e.get_async_status_url()),e.has_create_replica_result()){const n=e.get_create_replica_result();n.deleteLater(),t.createReplicaResult=p(n)}return t}function s(e){const t=[];for(let n=0;n<e.get_replicas_count();n++){const r=e.get_replica_info_at(n);r.deleteLater(),t.push(
|
|
2
|
+
import e from"../../../core/Error.js";import t from"../../../geometry/SpatialReference.js";import n from"../CreateReplicaResponse.js";import r from"../ReplicaDefinition.js";import a from"../ReplicasInformationResponse.js";import c from"../UnregisterReplicaResponse.js";import{WasmQuantizeOriginPositionTypeCode as i}from"./WasmSerializedLayerData.js";import{wasmErrorToEsriError as o}from"./wasmUtils.js";function l(e){const t=new n;if(e.has_async_status_url()&&(t.asyncStatusUrl=e.get_async_status_url()),e.has_create_replica_result()){const n=e.get_create_replica_result();n.deleteLater(),t.createReplicaResult=p(n)}return t}function s(e){const t=[];for(let n=0;n<e.get_replicas_count();n++){const r=e.get_replica_info_at(n);r.deleteLater(),t.push(g(r))}return new a({replicas:t})}function u(e){const t=[];for(let n=0;n<e.get_unregister_replica_result_count();n++){const r=e.get_unregister_replica_result_at(n);r.deleteLater(),t.push(m(r))}return new c({decoderError:o(e.error)??null,unregisterReplicaResults:t})}function _(e,t){const n=e.get_replica_definition();n.deleteLater();const a=n.get_replica_filters();return a.deleteLater(),new r({replicaName:n.get_replica_name(),replicaId:n.get_replica_id(),replicaOwner:n.get_replica_owner(),lastSyncDate:P(n.get_last_sync_date()),creationDate:P(n.get_creation_date()),syncDirection:j(n.get_sync_direction(),t),replicaFilters:y(a)})}function p(e){return{errors:f(e.get_error_count(),e),warnings:d(e.get_warning_count(),e),replicaName:e.get_replica_name(),requestedReplicaName:e.get_requested_replica_name(),replicaId:e.get_replica_id(),syncDate:P(e.get_sync_date()),replicaDataFormat:I(e.get_replica_data_format()),replicaDataUrl:e.get_replica_data_url()}}function d(e,t){const n=[];for(let r=0;r<e;r++){const e=o(t.get_warning_at(r));e&&n.push(e)}return n}function f(e,t){const n=[];for(let r=0;r<e;r++){const e=o(t.get_error_at(r));e&&n.push(e)}return n}function g(e){return{replicaName:e.get_replica_name(),replicaId:e.get_replica_id(),lastSyncDate:P(e.get_last_sync_date())}}function m(e){return{replicaId:e.get_replica_id(),error:e.has_error()?o(e.get_error()):void 0}}function y(e){const n=e.get_static_definition();n.deleteLater();const r=h(n);return{transform:D(e.transform),inputSpatialReference:new t(e.input_spatial_reference),staticDefinition:r}}function D(e){return{quantizeOriginPosition:w(e.quantizeOriginPosition.value),scale:{xScale:e.scale.xScale,yScale:e.scale.yScale,mScale:e.scale.mScale,zScale:e.scale.zScale},translate:{xTranslate:e.translate.xTranslate,yTranslate:e.translate.yTranslate,mTranslate:e.translate.mTranslate,zTranslate:e.translate.zTranslate}}}function w(e){switch(e){case i.lowerLeft:return"lower-left";case i.upperLeft:default:return"upper-left"}}function h(e){const t=[],n=[];for(let r=0;r<e.get_entity_type_replica_definition_count();r++){const n=e.get_entity_type_replica_definition_at(r);n.deleteLater(),t.push(v(n))}for(let r=0;r<e.get_relationship_type_replica_definition_count();r++){const t=e.get_relationship_type_replica_definition_at(r);t.deleteLater(),n.push(S(t))}return{entityTypeReplicaDefinitions:t,relationshipTypeReplicaDefinitions:n}}function v(e){const t=e.document_options.get_include_connected_documents();return t?.deleteLater(),{...L(e),documentOptions:t?R(t):{includeConnectedDocuments:!1}}}function S(e){return L(e)}function L(e){const t=e.provenance_options;return t.deleteLater(),{typeName:e.type_name,openCypherWhereClause:e.open_cypher_where_clause,provenanceOptions:T(t)}}function R(e){const t=e.get_provenance_options();t.deleteLater();const n=T(t);return n.includeProvenance?{includeConnectedDocuments:!0,includeDocumentProvenance:!0,includeDocumentSourceDocuments:n.includeSourceDocuments}:{includeConnectedDocuments:!0,includeDocumentProvenance:!1}}function T(e){const t=e.get_include_provenance();return t?{includeProvenance:!0,includeSourceDocuments:O(t)}:{includeProvenance:!1}}function O(e){return e.get_include_source_documents()}function j(t,n){const r=t.value,a=n.SyncDirection;if(r===a.BIDIRECTIONAL.value)return"bidirectional";if(r===a.UPLOAD.value)return"upload";if(r===a.DOWNLOAD.value)return"download";throw new e("knowledge-graph:replica-invalid-sync-direction",`Unsupported replica sync direction value: ${r}`)}function I(t){switch(t.value){case 1:return"pbf";case 2:return"spbf";case 3:return"geoparquet";case 4:return"sqlite";default:throw new e("knowledge-graph:replica-invalid-sync-data-format",`Unsupported replica sync data format value: ${t.value}`)}}function P(e){return e?new Date(e):null}export{l as decoderToCreateReplicaResponse,_ as decoderToReplicaDefinition,s as decoderToReplicasInformationResponse,u as decoderToUnregisterReplicaResponse,f as getEsriErrors,d as getEsriWarnings,P as timestampToDate,w as toReplicaQuantizeOriginPosition,I as toReplicaSyncDataFormat,j as toReplicaSyncDirection,p as wasmCreateReplicaResultToCreateReplicaResult,v as wasmEntityTypeReplicaDefinitionToReplicaEntityTypeReplicaDefinition,R as wasmIncludeConnectedDocumentsToReplicaIncludeConnectedDocuments,O as wasmIncludeProvenanceToReplicaIncludeProvenance,L as wasmNamedTypeReplicaDefinitionToReplicaNamedTypeReplicaDefinition,T as wasmProvenanceOptionsToReplicaProvenanceOptions,S as wasmRelationshipTypeReplicaDefinitionToReplicaRelationshipTypeReplicaDefinition,y as wasmReplicaFiltersToReplicaFilters,g as wasmReplicaInfoToReplicaInformation,D as wasmReplicaTransformToReplicaTransform,h as wasmStaticDefinitionToReplicaStaticDefinition,m as wasmUnregisterReplicaResultToUnregisterReplicaResult};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{getJsonType as e}from"../../../geometry/support/jsonTypeUtils.js";import{srToRESTValue as t}from"../../../geometry/support/spatialReferenceUtils.js";function i(e,t){if(t&&"extent"===e.type)return`${e.xmin},${e.ymin},${e.xmax},${e.ymax}`;if(t&&"point"===e.type)return`${e.x},${e.y}`;const i=e.toJSON();return delete i.spatialReference,JSON.stringify(i)}function n(n,r,a){const{geometry:
|
|
2
|
+
import{getJsonType as e}from"../../../geometry/support/jsonTypeUtils.js";import{srToRESTValue as t}from"../../../geometry/support/spatialReferenceUtils.js";function i(e,t){if(t&&"extent"===e.type)return`${e.xmin},${e.ymin},${e.xmax},${e.ymax}`;if(t&&"point"===e.type)return`${e.x},${e.y}`;const i=e.toJSON();return delete i.spatialReference,JSON.stringify(i)}function n(n,r,a){const{geometry:s}=n,l=n.compactGeometryEnabled??!1,o=n.toJSON();delete o.compactGeometryEnabled,delete o.defaultSpatialReferenceEnabled;const u=o;let d,c,y;if(s&&(c=s.spatialReference,y=t(c),u.geometryType=e(s),u.geometry=i(s,l),u.inSR=y),o.groupByFieldsForStatistics&&(u.groupByFieldsForStatistics=o.groupByFieldsForStatistics.join(",")),o.objectIds)switch(a?.uniqueIdFields?.length){case void 0:u.objectIds=o.objectIds.join(",");break;case 1:u.uniqueIds=JSON.stringify(o.objectIds),delete u.objectIds;break;default:u.uniqueIds=JSON.stringify(o.objectIds.map(e=>JSON.parse(e))),delete u.objectIds}if(o.orderByFields&&(u.orderByFields=o.orderByFields.join(",")),!o.outFields||!o.returnDistinctValues&&(r?.returnCountOnly||r?.returnExtentOnly||r?.returnIdsOnly)?delete u.outFields:o.outFields.includes("*")?u.outFields="*":u.outFields=o.outFields.join(","),o.outSR?(u.outSR=t(o.outSR),d=n.outSpatialReference):s&&(o.returnGeometry||o.returnCentroid)&&(u.outSR=u.inSR,d=c),o.returnGeometry&&delete o.returnGeometry,o.outStatistics&&(u.outStatistics=JSON.stringify(o.outStatistics)),o.outDistance&&(u.outDistance=JSON.stringify(o.outDistance)),o.fullText&&(u.fullText=JSON.stringify(o.fullText)),o.pixelSize&&(u.pixelSize=JSON.stringify(o.pixelSize)),o.quantizationParameters&&(n.defaultSpatialReferenceEnabled&&null!=c&&null!=n.quantizationParameters?.extent&&c.equals(n.quantizationParameters.extent.spatialReference)&&delete o.quantizationParameters.extent.spatialReference,u.quantizationParameters=JSON.stringify(o.quantizationParameters)),o.parameterValues&&(u.parameterValues=JSON.stringify(o.parameterValues)),o.rangeValues&&(u.rangeValues=JSON.stringify(o.rangeValues)),o.dynamicDataSource&&(u.layer=JSON.stringify({source:o.dynamicDataSource}),delete o.dynamicDataSource),o.timeExtent){const e=o.timeExtent,{start:t,end:i}=e;null==t&&null==i||(u.time=t===i?t:`${t??"null"},${i??"null"}`),delete o.timeExtent}return n.defaultSpatialReferenceEnabled&&null!=c&&null!=d&&c.equals(d)&&(u.defaultSR=u.inSR,delete u.inSR,delete u.outSR),u}const r="json";export{i as encodeGeometry,n as queryLikeToQueryStringParameters,r as safeExtentResultFormat};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{__decorate as r}from"tslib";import{
|
|
2
|
+
import{__decorate as r}from"tslib";import{ClonableMixin as t}from"../../core/Clonable.js";import{JSONSupport as o}from"../../core/JSONSupport.js";import{property as e,subclass as s}from"../../core/accessorSupport/decorators.js";let i=class extends(t(o)){constructor(){super(...arguments),this.returnDistance=!0,this.ascendingOrder=!0}};r([e({json:{write:!0}})],i.prototype,"returnDistance",void 0),r([e({json:{write:!0}})],i.prototype,"ascendingOrder",void 0),i=r([s("esri.rest.support.OutDistance")],i);const p=i;export{p as default};
|
package/rest/support/Query.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ import type { StatisticDefinitionProperties } from "./StatisticDefinition.js";
|
|
|
19
19
|
import type { QuantizationParametersProperties } from "./QuantizationParameters.js";
|
|
20
20
|
import type { TimeExtentProperties } from "../../time/TimeExtent.js";
|
|
21
21
|
|
|
22
|
-
export interface QueryProperties extends Partial<Pick<Query, "aggregateIds" | "cacheHint" | "datumTransformation" | "distance" | "gdbVersion" | "geometryPrecision" | "groupByFieldsForStatistics" | "having" | "maxAllowableOffset" | "maxRecordCountFactor" | "multipatchOption" | "num" | "objectIds" | "orderByFields" | "outFields" | "parameterValues" | "rangeValues" | "relationParameter" | "returnCentroid" | "returnDistinctValues" | "returnExceededLimitFeatures" | "returnGeometry" | "returnM" | "returnQueryGeometry" | "returnTrueCurves" | "returnZ" | "spatialRelationship" | "sqlFormat" | "start" | "text" | "units" | "where">> {
|
|
22
|
+
export interface QueryProperties extends Partial<Pick<Query, "aggregateIds" | "cacheHint" | "datumTransformation" | "distance" | "gdbVersion" | "geometryPrecision" | "groupByFieldsForStatistics" | "having" | "maxAllowableOffset" | "maxRecordCountFactor" | "multipatchOption" | "num" | "objectIds" | "orderByFields" | "outFields" | "parameterValues" | "rangeValues" | "relationParameter" | "returnCentroid" | "returnDistinctValues" | "returnExceededLimitFeatures" | "returnGeometry" | "returnM" | "returnQueryGeometry" | "returnStatisticsAggregatedIds" | "returnTrueCurves" | "returnZ" | "spatialRelationship" | "sqlFormat" | "start" | "text" | "units" | "where">> {
|
|
23
23
|
/**
|
|
24
24
|
* The geometry to apply to the spatial filter. The [spatialRelationship](https://developers.arcgis.com/javascript/latest/references/core/rest/support/Query/#spatialRelationship)
|
|
25
25
|
* will indicate how the geometry should be used to query features.
|
|
@@ -787,6 +787,44 @@ export default class Query extends JSONSupport {
|
|
|
787
787
|
* @default false
|
|
788
788
|
*/
|
|
789
789
|
accessor returnQueryGeometry: boolean;
|
|
790
|
+
/**
|
|
791
|
+
* If `true`, the unique identifiers of the individual features contributing to each
|
|
792
|
+
* aggregated statistics query result are returned in the [statisticsAggregatedIds](https://developers.arcgis.com/javascript/latest/references/core/Graphic/#statisticsAggregatedIds)
|
|
793
|
+
* property. For example, if a query returns the total number of trees in each park, each aggregated result can
|
|
794
|
+
* include the identifiers of the individual trees counted for that park.
|
|
795
|
+
*
|
|
796
|
+
* This parameter is honored only when all of the following conditions are met:
|
|
797
|
+
* - The queried layer supports [supportsStatisticsAggregatedIds](https://developers.arcgis.com/javascript/latest/references/core/layers/types/#QueryCapabilities).
|
|
798
|
+
* - Both [outStatistics](https://developers.arcgis.com/javascript/latest/references/core/rest/support/Query/#outStatistics) and [groupByFieldsForStatistics](https://developers.arcgis.com/javascript/latest/references/core/rest/support/Query/#groupByFieldsForStatistics)
|
|
799
|
+
* are set on the [query](https://developers.arcgis.com/javascript/latest/references/core/rest/support/Query/).
|
|
800
|
+
*
|
|
801
|
+
* @default false
|
|
802
|
+
* @see [QueryCapabilities](https://developers.arcgis.com/javascript/latest/references/core/layers/types/#QueryCapabilities)
|
|
803
|
+
* @see [Graphic.statisticsAggregatedIds](https://developers.arcgis.com/javascript/latest/references/core/Graphic/#statisticsAggregatedIds)
|
|
804
|
+
* @since 5.1
|
|
805
|
+
* @example
|
|
806
|
+
* // query for the count of trees in each park and include the IDs of
|
|
807
|
+
* // the trees contributing to each count. The aggregateIds can then be
|
|
808
|
+
* // used to query for the individual tree features or further inspect the trees
|
|
809
|
+
* if (layer.capabilities.query.supportsStatisticsAggregatedIds) {
|
|
810
|
+
* const query = new Query({
|
|
811
|
+
* where: "1=1",
|
|
812
|
+
* geometry: viewElement.extent,
|
|
813
|
+
* outStatistics: [{
|
|
814
|
+
* onStatisticField: "OBJECTID",
|
|
815
|
+
* outStatisticFieldName: "treeCount",
|
|
816
|
+
* statisticType: "count"
|
|
817
|
+
* }],
|
|
818
|
+
* groupByFieldsForStatistics: ["PARK_ID"],
|
|
819
|
+
* returnStatisticsAggregatedIds: true
|
|
820
|
+
* });
|
|
821
|
+
* const result = await layerView.queryFeatures(query);
|
|
822
|
+
* result.features.forEach((feature) => {
|
|
823
|
+
* console.log(feature.attributes.PARK_ID, feature.attributes.treeCount, feature.statisticsAggregatedIds);
|
|
824
|
+
* });
|
|
825
|
+
* }
|
|
826
|
+
*/
|
|
827
|
+
accessor returnStatisticsAggregatedIds: boolean;
|
|
790
828
|
/**
|
|
791
829
|
* When `true` output geometry will include curves. If `false`, curves (if any) will be converted to
|
|
792
830
|
* densified polylines or polygons.
|
package/rest/support/Query.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{__decorate as t}from"tslib";import{JSONMap as e}from"../../core/jsonMap.js";import{JSONSupport as r}from"../../core/JSONSupport.js";import{clone as i}from"../../core/lang.js";import{property as o,cast as s,subclass as n}from"../../core/accessorSupport/decorators.js";import{ensureClass as a}from"../../core/accessorSupport/ensureType.js";import l from"../../geometry/Point.js";import p from"../../geometry/SpatialReference.js";import{fromJSON as u}from"../../geometry/support/jsonUtils.js";import{geometryTypes as d}from"../../geometry/support/typeUtils.js";import m from"../layerSources/DynamicDataLayer.js";import c from"./FullTextSearch.js";import y from"./QuantizationParameters.js";import{spatialRelKebabDict as h}from"./spatialRelationships.js";import f from"./StatisticDefinition.js";import g from"../../time/TimeExtent.js";import{writer as
|
|
2
|
+
import{__decorate as t}from"tslib";import{JSONMap as e}from"../../core/jsonMap.js";import{JSONSupport as r}from"../../core/JSONSupport.js";import{clone as i}from"../../core/lang.js";import{property as o,cast as s,subclass as n}from"../../core/accessorSupport/decorators.js";import{ensureClass as a}from"../../core/accessorSupport/ensureType.js";import l from"../../geometry/Point.js";import p from"../../geometry/SpatialReference.js";import{fromJSON as u}from"../../geometry/support/jsonUtils.js";import{geometryTypes as d}from"../../geometry/support/typeUtils.js";import m from"../layerSources/DynamicDataLayer.js";import c from"./FullTextSearch.js";import y from"./QuantizationParameters.js";import{spatialRelKebabDict as h}from"./spatialRelationships.js";import f from"./StatisticDefinition.js";import g from"../../time/TimeExtent.js";import{writer as j}from"../../core/accessorSupport/decorators/writer.js";import{enumeration as v}from"../../core/accessorSupport/decorators/enumeration.js";var w;const S=new e({esriSRUnit_Meter:"meters",esriSRUnit_Kilometer:"kilometers",esriSRUnit_Foot:"feet",esriSRUnit_StatuteMile:"miles",esriSRUnit_NauticalMile:"nautical-miles",esriSRUnit_USNauticalMile:"us-nautical-miles"});let R=class extends r{static{w=this}static from(t){return a(w,t)}constructor(t){super(t),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.returnStatisticsAggregatedIds=!1,this.returnCentroid=!1,this.returnDistinctValues=!1,this.returnExceededLimitFeatures=!0,this.returnExceededLimitGeometries=!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.outDistance=null,this.where=null}castDatumTransformation(t){return"number"==typeof t||"object"==typeof t?t:null}writeHistoricMoment(t,e){e.historicMoment=t&&t.getTime()}writeParameterValues(t,e){if(t){const r={};for(const e in t){const i=t[e];Array.isArray(i)?r[e]=i.map(t=>t instanceof Date?t.getTime():t):i instanceof Date?r[e]=i.getTime():r[e]=i}e.parameterValues=r}}writeStart(t,e){e.resultOffset=this.start,e.resultRecordCount=this.num||10,e.where="1=1"}writeWhere(t,e){e.where=t||"1=1"}clone(){return new w(i({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):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,returnStatisticsAggregatedIds:this.returnStatisticsAggregatedIds,returnDistinctValues:this.returnDistinctValues,returnGeometry:this.returnGeometry,returnCentroid:this.returnCentroid,returnExceededLimitFeatures:this.returnExceededLimitFeatures,returnExceededLimitGeometries:this.returnExceededLimitGeometries,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,outDistance:this.outDistance,where:this.where}))}static{this.MAX_MAX_RECORD_COUNT_FACTOR=5}};t([o({json:{write:!0}})],R.prototype,"aggregateIds",void 0),t([o({type:Boolean,json:{write:!0}})],R.prototype,"cacheHint",void 0),t([o({type:Boolean,json:{default:!1,write:!0}})],R.prototype,"compactGeometryEnabled",void 0),t([o({json:{write:!0}})],R.prototype,"datumTransformation",void 0),t([s("datumTransformation")],R.prototype,"castDatumTransformation",null),t([o({type:Boolean,json:{default:!1,write:!0}})],R.prototype,"defaultSpatialReferenceEnabled",void 0),t([o({type:Number,json:{write:!0}})],R.prototype,"distance",void 0),t([o({type:m,json:{write:!0}})],R.prototype,"dynamicDataSource",void 0),t([o({type:String,json:{write:!0}})],R.prototype,"formatOf3DObjects",void 0),t([o({type:[c],json:{write:{enabled:!0,overridePolicy(){return{enabled:null!=this.fullText&&this.fullText.length>0}}}}})],R.prototype,"fullText",void 0),t([o({type:String,json:{write:!0}})],R.prototype,"gdbVersion",void 0),t([o({types:d,json:{read:u,write:!0}})],R.prototype,"geometry",void 0),t([o({type:Number,json:{write:!0}})],R.prototype,"geometryPrecision",void 0),t([o({type:[String],json:{write:!0}})],R.prototype,"groupByFieldsForStatistics",void 0),t([o({type:String,json:{write:!0}})],R.prototype,"having",void 0),t([o({type:Date})],R.prototype,"historicMoment",void 0),t([j("historicMoment")],R.prototype,"writeHistoricMoment",null),t([o({type:Number,json:{write:!0}})],R.prototype,"maxAllowableOffset",void 0),t([o({type:Number,cast:t=>t<1?1:t>R.MAX_MAX_RECORD_COUNT_FACTOR?R.MAX_MAX_RECORD_COUNT_FACTOR:t,json:{write:{overridePolicy:t=>({enabled:t>1})}}})],R.prototype,"maxRecordCountFactor",void 0),t([o({type:["xyFootprint"],json:{write:!0}})],R.prototype,"multipatchOption",void 0),t([o({type:Number,json:{read:{source:"resultRecordCount"}}})],R.prototype,"num",void 0),t([o({json:{write:!0}})],R.prototype,"objectIds",void 0),t([o({type:[String],json:{write:!0}})],R.prototype,"orderByFields",void 0),t([o({type:[String],json:{write:!0}})],R.prototype,"outFields",void 0),t([o({type:p,json:{name:"outSR",write:!0}})],R.prototype,"outSpatialReference",void 0),t([o({type:[f],json:{write:{enabled:!0,overridePolicy(){return{enabled:null!=this.outStatistics&&this.outStatistics.length>0}}}}})],R.prototype,"outStatistics",void 0),t([o({json:{write:!0}})],R.prototype,"parameterValues",void 0),t([j("parameterValues")],R.prototype,"writeParameterValues",null),t([o({type:l,json:{write:!0}})],R.prototype,"pixelSize",void 0),t([o({type:y,json:{write:!0}})],R.prototype,"quantizationParameters",void 0),t([o({type:[Object],json:{write:!0}})],R.prototype,"rangeValues",void 0),t([o({type:String,json:{read:{source:"relationParam"},write:{target:"relationParam",overridePolicy(){return{enabled:"relation"===this.spatialRelationship}}}}})],R.prototype,"relationParameter",void 0),t([o({type:String,json:{write:!0}})],R.prototype,"resultType",void 0),t([o({type:Boolean,json:{name:"returnAggIds",write:{overridePolicy(t){return{enabled:t&&!!this.groupByFieldsForStatistics?.length&&!!this.outStatistics?.length}}}}})],R.prototype,"returnStatisticsAggregatedIds",void 0),t([o({type:Boolean,json:{default:!1,write:!0}})],R.prototype,"returnCentroid",void 0),t([o({type:Boolean,json:{default:!1,write:!0}})],R.prototype,"returnDistinctValues",void 0),t([o({type:Boolean,json:{default:!0,write:!0}})],R.prototype,"returnExceededLimitFeatures",void 0),t([o({type:Boolean,json:{default:!0,write:!0}})],R.prototype,"returnExceededLimitGeometries",void 0),t([o({type:Boolean,json:{write:!0}})],R.prototype,"returnGeometry",void 0),t([o({type:Boolean,json:{default:!1,write:!0}})],R.prototype,"returnQueryGeometry",void 0),t([o({type:Boolean,json:{default:!1,write:!0}})],R.prototype,"returnM",void 0),t([o({type:Boolean,json:{write:{overridePolicy:t=>({enabled:t})}}})],R.prototype,"returnZ",void 0),t([o({type:Boolean,json:{write:!0}})],R.prototype,"returnTrueCurves",void 0),t([o({type:p,json:{write:!0}})],R.prototype,"sourceSpatialReference",void 0),t([v(h,{ignoreUnknown:!1,name:"spatialRel"})],R.prototype,"spatialRelationship",void 0),t([o({type:Number,json:{read:{source:"resultOffset"}}})],R.prototype,"start",void 0),t([j("start"),j("num")],R.prototype,"writeStart",null),t([o({type:String,json:{write:!0}})],R.prototype,"sqlFormat",void 0),t([o({type:String,json:{write:!0}})],R.prototype,"text",void 0),t([o({type:g,json:{write:!0}})],R.prototype,"timeExtent",void 0),t([o({type:Boolean,json:{default:!1,write:!0}})],R.prototype,"timeReferenceUnknownClient",void 0),t([v(S,{ignoreUnknown:!1}),o({json:{write:{overridePolicy(t){return{enabled:!!t&&null!=this.distance}}}}})],R.prototype,"units",void 0),t([o({json:{write:!0}})],R.prototype,"outDistance",void 0),t([o({type:String,json:{write:{overridePolicy(t){return{enabled:null!=t||null!=this.start&&this.start>0}}}}})],R.prototype,"where",void 0),t([j("where")],R.prototype,"writeWhere",null),R=w=t([n("esri.rest.support.Query")],R);export{R as default};
|
package/support/revision.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
const
|
|
2
|
+
const f="20260510",e="1893309f8d5eaf89e7620f556198959f0086f98b";export{f as buildDate,e as commitHash};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type AttributeTableFieldOrder from "./support/FieldOrder.js";
|
|
2
2
|
import type { JSONSupport } from "../core/JSONSupport.js";
|
|
3
|
-
import type { AttributeTableElementUnion } from "./types.js";
|
|
3
|
+
import type { AttributeTableElementUnion } from "./support/types.js";
|
|
4
4
|
import type { AttributeTableRelationshipElementProperties } from "./elements/AttributeTableRelationshipElement.js";
|
|
5
5
|
import type { AttributeTableGroupElementProperties } from "./elements/AttributeTableGroupElement.js";
|
|
6
6
|
import type { AttributeTableFieldElementProperties } from "./elements/AttributeTableFieldElement.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type AttributeTableElement from "./AttributeTableElement.js";
|
|
2
2
|
import type { ClonableMixin } from "../../core/Clonable.js";
|
|
3
|
-
import type { NestedAttributeTableElementUnion } from "../types.js";
|
|
4
3
|
import type { AttributeTableElementProperties } from "./AttributeTableElement.js";
|
|
4
|
+
import type { NestedAttributeTableElementUnion } from "../support/types.js";
|
|
5
5
|
|
|
6
6
|
export interface AttributeTableGroupElementProperties extends AttributeTableElementProperties, Partial<Pick<AttributeTableGroupElement, "elements">> {}
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { NestedAttributeTableElementUnion } from "
|
|
1
|
+
import type { NestedAttributeTableElementUnion } from "./types.js";
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* @deprecated since version 5.1. Use [NestedAttributeTableElementUnion](https://developers.arcgis.com/javascript/latest/references/core/tables/types/#NestedAttributeTableElementUnion) instead.
|
|
4
|
+
* @deprecated since version 5.1. Use [NestedAttributeTableElementUnion](https://developers.arcgis.com/javascript/latest/references/core/tables/support/types/#NestedAttributeTableElementUnion) instead.
|
|
5
5
|
* @since 5.0
|
|
6
6
|
*/
|
|
7
7
|
export type NestedAttributeTableElement = NestedAttributeTableElementUnion;
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Various utility methods for creating and updating templates used by
|
|
3
|
+
* the [FeatureTable component](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-feature-table/).
|
|
4
|
+
*
|
|
5
|
+
* @since 5.1
|
|
6
|
+
*/
|
|
7
|
+
import type AttributeTableTemplate from "../AttributeTableTemplate.js";
|
|
8
|
+
import type AttributeTableFieldOrder from "./FieldOrder.js";
|
|
9
|
+
import type TableTemplate from "../../widgets/FeatureTable/support/TableTemplate.js";
|
|
10
|
+
import type FeatureTable from "../../widgets/FeatureTable.js";
|
|
11
|
+
import type { AttributeTableElementUnion, CreateTableTemplateFromAttributeTableTemplateParameters, CreateTemplateParameters, NestedAttributeTableElementUnion } from "./types.js";
|
|
12
|
+
import type { ColumnSortOrder, FeatureTableSupportedColumn, GroupColumnSupportedTemplates, SupportedColumnTemplates } from "../../widgets/FeatureTable/support/types.js";
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Utility method which creates a basic [AttributeTableTemplate](https://developers.arcgis.com/javascript/latest/references/core/tables/AttributeTableTemplate/) based on the provided layer.
|
|
16
|
+
*
|
|
17
|
+
* @param params - Parameters controlling the generation of the [AttributeTableTemplate](https://developers.arcgis.com/javascript/latest/references/core/tables/AttributeTableTemplate/).
|
|
18
|
+
* @returns A promise that resolves to a newly generated [AttributeTableTemplate](https://developers.arcgis.com/javascript/latest/references/core/tables/AttributeTableTemplate/).
|
|
19
|
+
* @since 5.1
|
|
20
|
+
*/
|
|
21
|
+
export function createAttributeTableTemplateFromLayer(params: CreateTemplateParameters): Promise<AttributeTableTemplate>;
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Utility method which creates an array of column elements based on the provided columns.
|
|
25
|
+
*
|
|
26
|
+
* @param columns - An array of columns from which to generate [attribute table elements](https://developers.arcgis.com/javascript/latest/references/core/tables/elements/AttributeTableElement/).
|
|
27
|
+
* @returns An array of [attribute table elements](https://developers.arcgis.com/javascript/latest/references/core/tables/elements/AttributeTableElement/) generated from the provided columns.
|
|
28
|
+
* @since 5.1
|
|
29
|
+
*/
|
|
30
|
+
export function createAttributeTableElementsFromColumns(columns: FeatureTableSupportedColumn[]): AttributeTableElementUnion[];
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Method which creates a nested column element based on the provided column.
|
|
34
|
+
*
|
|
35
|
+
* @param column - A column from which to generate a nested [attribute table element](https://developers.arcgis.com/javascript/latest/references/core/tables/elements/AttributeTableElement/) (excludes group elements).
|
|
36
|
+
* @returns An [attribute table element](https://developers.arcgis.com/javascript/latest/references/core/tables/elements/AttributeTableElement/) generated from the provided column, or undefined if the column is hidden or of an unsupported type.
|
|
37
|
+
* @since 5.1
|
|
38
|
+
*/
|
|
39
|
+
export function createNestedAttributeTableElementFromColumn(column: FeatureTableSupportedColumn): NestedAttributeTableElementUnion | null | undefined;
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Method which creates a basic [TableTemplate](https://developers.arcgis.com/javascript/latest/references/core/widgets/FeatureTable/support/TableTemplate/) based on the provided layer.
|
|
43
|
+
*
|
|
44
|
+
* @param params - Parameters controlling the generation of the [TableTemplate](https://developers.arcgis.com/javascript/latest/references/core/widgets/FeatureTable/support/TableTemplate/).
|
|
45
|
+
* @returns A promise that resolves to a newly generated [TableTemplate](https://developers.arcgis.com/javascript/latest/references/core/widgets/FeatureTable/support/TableTemplate/).
|
|
46
|
+
* @since 5.1
|
|
47
|
+
*/
|
|
48
|
+
export function createTableTemplateFromLayer(params: CreateTemplateParameters): Promise<TableTemplate>;
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Method which creates a [TableTemplate](https://developers.arcgis.com/javascript/latest/references/core/widgets/FeatureTable/support/TableTemplate/) based on the provided [AttributeTableTemplate](https://developers.arcgis.com/javascript/latest/references/core/tables/AttributeTableTemplate/).
|
|
52
|
+
*
|
|
53
|
+
* @param params - Parameters controlling the generation of the [TableTemplate](https://developers.arcgis.com/javascript/latest/references/core/widgets/FeatureTable/support/TableTemplate/).
|
|
54
|
+
* @returns A promise that resolves to a newly generated [TableTemplate](https://developers.arcgis.com/javascript/latest/references/core/widgets/FeatureTable/support/TableTemplate/).
|
|
55
|
+
* @since 5.1
|
|
56
|
+
*/
|
|
57
|
+
export function createTableTemplateFromAttributeTableTemplate(params: CreateTableTemplateFromAttributeTableTemplateParameters): Promise<TableTemplate>;
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Method which creates an array of column templates based on the provided elements and orderByFields.
|
|
61
|
+
*
|
|
62
|
+
* @param elements - An array of [attribute table elements](https://developers.arcgis.com/javascript/latest/references/core/tables/elements/AttributeTableElement/) from which to generate column templates.
|
|
63
|
+
* @param orderByFields - An array of [attribute table field order](https://developers.arcgis.com/javascript/latest/references/core/tables/support/FieldOrder/) objects which determine the sort order of columns in the table.
|
|
64
|
+
* @returns An array of column templates generated from the provided elements and orderByFields.
|
|
65
|
+
* @since 5.1
|
|
66
|
+
*/
|
|
67
|
+
export function createColumnTemplatesFromElements(elements: AttributeTableElementUnion[] | null | undefined, orderByFields: AttributeTableFieldOrder[]): SupportedColumnTemplates[];
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Method which creates an array of column templates based on the provided columns.
|
|
71
|
+
*
|
|
72
|
+
* @param columns - An array of columns from which to generate [attribute table elements](https://developers.arcgis.com/javascript/latest/references/core/tables/elements/AttributeTableElement/).
|
|
73
|
+
* @returns An array of column templates generated from the provided columns.
|
|
74
|
+
* @since 5.1
|
|
75
|
+
*/
|
|
76
|
+
export function createColumnTemplatesFromColumns(columns: FeatureTableSupportedColumn[]): SupportedColumnTemplates[];
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Method which creates a nested column template based on the provided column.
|
|
80
|
+
*
|
|
81
|
+
* @param column - A column from which to generate a nested column template (excludes group columns).
|
|
82
|
+
* @returns A column template generated from the provided column, or undefined if the column is hidden or of an unsupported type.
|
|
83
|
+
* @since 5.1
|
|
84
|
+
*/
|
|
85
|
+
export function createNestedColumnTemplateFromColumn(column: FeatureTableSupportedColumn): GroupColumnSupportedTemplates | null | undefined;
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Method which creates a nested column template based on the provided element and orderByFields.
|
|
89
|
+
*
|
|
90
|
+
* @param element - An [attribute table element](https://developers.arcgis.com/javascript/latest/references/core/tables/elements/AttributeTableElement/) from which to generate a nested column template (excludes group elements).
|
|
91
|
+
* @param orderByFields - An array of [attribute table field order](https://developers.arcgis.com/javascript/latest/references/core/tables/support/FieldOrder/) objects which determine the sort order of columns in the table.
|
|
92
|
+
* @returns A column template generated from the provided element and orderByFields, or undefined if the element is of an unsupported type.
|
|
93
|
+
* @since 5.1
|
|
94
|
+
*/
|
|
95
|
+
export function createNestedColumnTemplateFromElement(element: AttributeTableElementUnion, orderByFields: AttributeTableFieldOrder[]): GroupColumnSupportedTemplates | null | undefined;
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* Determines if a provided template is a [TableTemplate](https://developers.arcgis.com/javascript/latest/references/core/widgets/FeatureTable/support/TableTemplate/).
|
|
99
|
+
*
|
|
100
|
+
* @param template - The template to check.
|
|
101
|
+
* @returns Returns true if the template is a [TableTemplate](https://developers.arcgis.com/javascript/latest/references/core/widgets/FeatureTable/support/TableTemplate/), otherwise returns false.
|
|
102
|
+
* @since 5.1
|
|
103
|
+
*/
|
|
104
|
+
export function isTableTemplate(template: unknown): template is TableTemplate;
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* Determines if a provided template is an [attribute table template](https://developers.arcgis.com/javascript/latest/references/core/tables/AttributeTableTemplate/).
|
|
108
|
+
*
|
|
109
|
+
* @param template - The template to check.
|
|
110
|
+
* @returns Returns true if the template is an [attribute table template](https://developers.arcgis.com/javascript/latest/references/core/tables/AttributeTableTemplate/), otherwise returns false.
|
|
111
|
+
* @since 5.1
|
|
112
|
+
*/
|
|
113
|
+
export function isAttributeTableTemplate(template: unknown): template is AttributeTableTemplate;
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* Method which syncs an [attribute table template](https://developers.arcgis.com/javascript/latest/references/core/tables/AttributeTableTemplate/) with the provided [FeatureTable](https://developers.arcgis.com/javascript/latest/references/core/widgets/FeatureTable/).
|
|
117
|
+
*
|
|
118
|
+
* @param table - The FeatureTable to synchronize with the [AttributeTableTemplate](https://developers.arcgis.com/javascript/latest/references/core/tables/AttributeTableTemplate/).
|
|
119
|
+
* @param template - The AttributeTableTemplate to sync with the table.
|
|
120
|
+
* @param includeHiddenColumns - Indicates whether to include hidden columns in the synced template. Default is true.
|
|
121
|
+
* @returns The synced [attribute table template](https://developers.arcgis.com/javascript/latest/references/core/tables/AttributeTableTemplate/).
|
|
122
|
+
* @since 5.1
|
|
123
|
+
*/
|
|
124
|
+
export function syncAttributeTableTemplateWithTable(table: FeatureTable, template: AttributeTableTemplate, includeHiddenColumns?: boolean): AttributeTableTemplate;
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* Method which syncs an [AttributeTableTemplate](https://developers.arcgis.com/javascript/latest/references/core/tables/AttributeTableTemplate/) with the provided columns and sort orders.
|
|
128
|
+
*
|
|
129
|
+
* @param template - The [AttributeTableTemplate](https://developers.arcgis.com/javascript/latest/references/core/tables/AttributeTableTemplate/) to sync with the columns.
|
|
130
|
+
* @param columns - An array of columns with which to sync the [attribute table template](https://developers.arcgis.com/javascript/latest/references/core/tables/AttributeTableTemplate/).
|
|
131
|
+
* @param activeSortOrders - An array of [attribute table field order](https://developers.arcgis.com/javascript/latest/references/core/tables/support/FieldOrder/) objects which determine the current sort order of table columns.
|
|
132
|
+
* @param includeHiddenColumns - Indicates whether to include hidden columns in the synced template. Default is true.
|
|
133
|
+
* @returns The synced [attribute table template](https://developers.arcgis.com/javascript/latest/references/core/tables/AttributeTableTemplate/).
|
|
134
|
+
* @since 5.1
|
|
135
|
+
*/
|
|
136
|
+
export function syncAttributeTableTemplateWithColumns(template: AttributeTableTemplate, columns: FeatureTableSupportedColumn[], activeSortOrders: ColumnSortOrder[], includeHiddenColumns?: boolean): AttributeTableTemplate;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
+
import{isSome as e}from"../../core/arrayUtils.js";import{createFieldInfos as t}from"../../support/popupUtils.js";import i from"../AttributeTableTemplate.js";import n from"../elements/AttributeTableAttachmentElement.js";import r from"../elements/AttributeTableFieldElement.js";import l from"../elements/AttributeTableGroupElement.js";import o from"../elements/AttributeTableRelationshipElement.js";import s from"./FieldOrder.js";import a from"../../widgets/FeatureTable/support/AttachmentsColumnTemplate.js";import{isGroupColumn as d,isFieldColumn as u,isRelationshipColumn as p,isAttachmentsColumn as f}from"../../widgets/FeatureTable/support/columnUtils.js";import m from"../../widgets/FeatureTable/support/FieldColumnTemplate.js";import c from"../../widgets/FeatureTable/support/GroupColumnTemplate.js";import h from"../../widgets/FeatureTable/support/RelationshipColumnTemplate.js";import b from"../../widgets/FeatureTable/support/TableTemplate.js";import{isIFeatureTableSupportedLayer as w,isIFeatureTableSupportedLayerWithAttachments as T,isIFeatureTableSupportedLayerWithRelationships as F,hasTemplateForField as y}from"../../widgets/FeatureTable/support/tableUtils.js";async function v(e){const{layer:l,visibleFieldNames:s,excludeAttachments:a,excludeRelationships:d,excludedFieldTypesOverride:u}=e,p=[],f=[];if(!w(l))return new i;await l.load();const m=t(l,{visibleFieldNames:s?.length?new Set(s):void 0,...u&&{ignoreFieldTypes:u},sortDisabled:!0});for(const{visible:t,fieldName:i}of m)t&&p.push(new r({fieldName:i}));return!p.length&&l.objectIdField&&p.push(new r({fieldName:l.objectIdField})),T(l)&&!0!==a&&p.push(new n),F(l)&&!0!==d&&l.relationships?.forEach(e=>{p.push(new o({relationshipId:e.id}))}),new i({elements:p,orderByFields:f})}function N(t){const i=[];return t.forEach(t=>{const{hidden:n}=t;if(d(t)){if(n)return;const r=t.columns?.map(e=>j(e)).filter(e);if(!r?.length)return;i.push(new l({elements:r}))}else{const e=j(t);if(!e)return;i.push(e)}}),i}function j(e){const{fieldName:t,hidden:i}=e;if(u(e)){if(!i)return new r({fieldName:t})}else if(p(e)){if(!i)return new o({relationshipId:e.relationshipId})}else if(f(e)&&!i)return new n}async function g(e){const{excludeAttachments:i,excludeRelationships:n,layer:r,excludedFieldTypesOverride:l,visibleFieldNames:o}=e,s=[];if(!w(r))return new b;await r.load();return t(r,{visibleFieldNames:o?.length?new Set(o):void 0,...l&&{ignoreFieldTypes:l},sortDisabled:!0}).forEach(({fieldName:e,format:t,label:i,visible:n})=>{null!=e&&s.push(new m({fieldName:e,format:t,label:i,visible:n}))}),T(r)&&!0!==i&&s.push(new a),F(r)&&!0!==n&&r.relationships?.forEach(({id:e})=>{s.push(new h({relationshipId:e}))}),new b({columnTemplates:s})}async function E(e){const{layer:i,template:n,includeHiddenFields:r,excludedFieldTypesOverride:l}=e;if(!w(i))return new b;const o=n.orderByFields??[];await i.load();const s=I(n.elements,o);if(r){t(i,{...l&&{ignoreFieldTypes:l},sortDisabled:!0}).forEach(e=>{if(!e.fieldName)return;const{fieldName:t}=e;if(!y(t,s)){const e=o.findIndex(e=>e.field&&e.field===t),i=e>-1?o.at(e)?.order:void 0,n=i&&e>-1?e:null;s.push(new m({direction:i,fieldName:t,initialSortPriority:n,visible:!1}))}}),T(i)&&!s.some(e=>"attachment"===e.type)&&s.push(new a({visible:!1})),F(i)&&i.relationships?.forEach(({id:e})=>{s.some(t=>"relationship"===t.type&&t.relationshipId===e)||s.push(new h({relationshipId:e,visible:!1}))})}return new b({columnTemplates:s})}function I(t,i){const n=[];return t?.forEach(t=>{const{description:r,label:l,type:o}=t;if("group"===o){const o=t.elements.map(e=>O(e,i)).filter(e);if(!o?.length)return;n.push(new c({description:r,columnTemplates:o,label:l}))}else{const e=O(t,i);if(!e)return;n.push(e)}}),n}function x(t){const i=[];return t.forEach(t=>{const{hidden:n}=t;if(d(t)){if(n)return;const r=t.columns?.map(e=>A(e)).filter(e);if(!r?.length)return;i.push(new c({columnTemplates:r}))}else{const e=A(t);if(!e)return;i.push(e)}}),i}function A(e){const{fieldName:t,hidden:i}=e;if(u(e)){if(!i)return new m({fieldName:t})}else if(p(e)){if(!i)return new h({relationshipId:e.relationshipId})}else if(f(e)&&!i)return new a}function O(e,t){const{description:i,label:n,type:r}=e;if("field"===r){const r=e.fieldName??void 0,l=t.findIndex(e=>e.field&&e.field===r),o=l>-1?t.at(l)?.order:void 0;return new m({description:i,direction:o,fieldName:r,initialSortPriority:o&&l>-1?l:null,label:n})}return"attachment"===r?new a({description:i,label:n}):"relationship"===r?new h({description:i,label:n,relationshipId:e.relationshipId}):void 0}function S(e){return null!=e&&"object"==typeof e&&"columnTemplates"in e}function B(e){return null!=e&&"object"==typeof e&&"elements"in e&&"orderByFields"in e}function C(e,t,i=!0){return R(t,e.columns.toArray(),e.activeSortOrders,i)}function R(e,t,i,n=!0){const r=t.flatMap(e=>[e,...d(e)&&e.columns?.length?e.columns:[]]),l=[],o=N(t);i.forEach(({fieldName:e,direction:t})=>{e&&t&&l.push(new s({field:e,order:t}))});return r.filter(e=>null!=e.direction&&(!e.hidden||n)).forEach(({fieldName:e,direction:t})=>{const i=l.find(t=>t.field===e);t&&!i&&l.push(new s({field:e,order:t}))}),e.elements=o,e.orderByFields=l,e}export{N as createAttributeTableElementsFromColumns,v as createAttributeTableTemplateFromLayer,x as createColumnTemplatesFromColumns,I as createColumnTemplatesFromElements,j as createNestedAttributeTableElementFromColumn,A as createNestedColumnTemplateFromColumn,O as createNestedColumnTemplateFromElement,E as createTableTemplateFromAttributeTableTemplate,g as createTableTemplateFromLayer,B as isAttributeTableTemplate,S as isTableTemplate,R as syncAttributeTableTemplateWithColumns,C as syncAttributeTableTemplateWithTable};
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import type AttributeTableTemplate from "../AttributeTableTemplate.js";
|
|
2
|
+
import type AttributeTableAttachmentElement from "../elements/AttributeTableAttachmentElement.js";
|
|
3
|
+
import type AttributeTableFieldElement from "../elements/AttributeTableFieldElement.js";
|
|
4
|
+
import type AttributeTableGroupElement from "../elements/AttributeTableGroupElement.js";
|
|
5
|
+
import type AttributeTableRelationshipElement from "../elements/AttributeTableRelationshipElement.js";
|
|
6
|
+
import type { FieldType } from "../../layers/support/types.js";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* A union of all [attribute table elements](https://developers.arcgis.com/javascript/latest/references/core/tables/elements/AttributeTableElement/).
|
|
10
|
+
*
|
|
11
|
+
* @since 5.1
|
|
12
|
+
*/
|
|
13
|
+
export type AttributeTableElementUnion = AttributeTableAttachmentElement | AttributeTableFieldElement | AttributeTableGroupElement | AttributeTableRelationshipElement;
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* A union of all [attribute table elements](https://developers.arcgis.com/javascript/latest/references/core/tables/elements/AttributeTableElement/) that are nestable in a group element.
|
|
17
|
+
*
|
|
18
|
+
* @since 5.1
|
|
19
|
+
*/
|
|
20
|
+
export type NestedAttributeTableElementUnion = Exclude<AttributeTableElementUnion, AttributeTableGroupElement>;
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Parameters for creating a [table template](https://developers.arcgis.com/javascript/latest/references/core/widgets/FeatureTable/support/TableTemplate/) or [attribute table template](https://developers.arcgis.com/javascript/latest/references/core/tables/AttributeTableTemplate/).
|
|
24
|
+
*
|
|
25
|
+
* @since 5.1
|
|
26
|
+
*/
|
|
27
|
+
export interface CreateTemplateParameters {
|
|
28
|
+
/**
|
|
29
|
+
* Layer from which to generate a default template.
|
|
30
|
+
*
|
|
31
|
+
* @since 5.1
|
|
32
|
+
*/
|
|
33
|
+
layer: unknown;
|
|
34
|
+
/**
|
|
35
|
+
* Set of field names used to generate columns. If this parameter is not specified, columns are generated for all fields that are visible by default.
|
|
36
|
+
*
|
|
37
|
+
* @since 5.1
|
|
38
|
+
*/
|
|
39
|
+
visibleFieldNames?: string[];
|
|
40
|
+
/**
|
|
41
|
+
* Indicates whether `attachments` columns should be excluded.
|
|
42
|
+
*
|
|
43
|
+
* @since 5.1
|
|
44
|
+
*/
|
|
45
|
+
excludeAttachments?: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* Indicates whether `relationship` columns should be excluded.
|
|
48
|
+
*
|
|
49
|
+
* @since 5.1
|
|
50
|
+
*/
|
|
51
|
+
excludeRelationships?: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* An array of field types that specify which types to exclude. The default value is ["geometry", "blob", "raster", "guid", "xml"].
|
|
54
|
+
*
|
|
55
|
+
* @since 5.1
|
|
56
|
+
*/
|
|
57
|
+
excludedFieldTypesOverride?: FieldType[];
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Parameters for creating a [table template](https://developers.arcgis.com/javascript/latest/references/core/widgets/FeatureTable/support/TableTemplate/) from a provided [attribute table template](https://developers.arcgis.com/javascript/latest/references/core/tables/AttributeTableTemplate/).
|
|
62
|
+
*
|
|
63
|
+
* @since 5.1
|
|
64
|
+
*/
|
|
65
|
+
export interface CreateTableTemplateFromAttributeTableTemplateParameters {
|
|
66
|
+
/**
|
|
67
|
+
* Layer used to generate the default template.
|
|
68
|
+
*
|
|
69
|
+
* @since 5.1
|
|
70
|
+
*/
|
|
71
|
+
layer: unknown;
|
|
72
|
+
/**
|
|
73
|
+
* Instance of an [AttributeTableTemplate](https://developers.arcgis.com/javascript/latest/references/core/tables/AttributeTableTemplate/) used to configure a new [TableTemplate](https://developers.arcgis.com/javascript/latest/references/core/widgets/FeatureTable/support/TableTemplate/).
|
|
74
|
+
*
|
|
75
|
+
* @since 5.1
|
|
76
|
+
*/
|
|
77
|
+
template: AttributeTableTemplate;
|
|
78
|
+
/**
|
|
79
|
+
* Indicates whether columns should be generated for fields without associated [attribute table elements](https://developers.arcgis.com/javascript/latest/references/core/tables/elements/AttributeTableElement/).
|
|
80
|
+
*
|
|
81
|
+
* @since 5.1
|
|
82
|
+
*/
|
|
83
|
+
includeHiddenFields?: boolean;
|
|
84
|
+
/**
|
|
85
|
+
* Indicates field types that should be excluded. Defaults to: ["geometry", "blob", "raster", "guid", "xml"].
|
|
86
|
+
*
|
|
87
|
+
* @since 5.1
|
|
88
|
+
*/
|
|
89
|
+
excludedFieldTypesOverride?: FieldType[];
|
|
90
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
const t=8,e=t-2,c=1e-30,h=64,i=4294967295,o=512,a=256,d=256/360,n=128,p=16777216,r=!1,s=128,f=8,g=10,l=29,m=1,v=16,w=16,x=o/s,b=8,j=50,k=10,q=24,u=3,y=24,z=8,A=3,B=24,C=8,D=4,E={metrics:{width:15,height:17,left:0,top:-7,advance:14}},F=1024,G=0,H=0,I=0,J=1,K=2,L=3,M=4,N=5,O=6,P=12,Q=13,R=5,S=6,T=5,U=6,V=6,W=1<<V,X=W<<1,Y=!1,Z=1.05,$=3,_=1,tt=3,et=3,ct=5,ht=6,it=1.15,ot=2,at=4,dt=128,nt=256,pt=nt-2*at,rt=2,st=128,ft=1,gt=8,lt=500,mt=4,vt=128,wt=
|
|
2
|
+
const t=8,e=t-2,c=1e-30,h=64,i=4294967295,o=512,a=256,d=256/360,n=128,p=16777216,r=!1,s=128,f=8,g=10,l=29,m=1,v=16,w=16,x=o/s,b=8,j=50,k=10,q=24,u=3,y=24,z=8,A=3,B=24,C=8,D=4,E={metrics:{width:15,height:17,left:0,top:-7,advance:14}},F=1024,G=0,H=0,I=0,J=1,K=2,L=3,M=4,N=5,O=6,P=12,Q=13,R=5,S=6,T=5,U=6,V=6,W=1<<V,X=W<<1,Y=!1,Z=1.05,$=3,_=1,tt=3,et=3,ct=5,ht=6,it=1.15,ot=2,at=4,dt=128,nt=256,pt=nt-2*at,rt=2,st=128,ft=1,gt=8,lt=500,mt=4,vt=128,wt=1024,xt=2,bt=0,jt=1,kt=4,qt=8,ut=16,yt=4,zt=1,At=4,Bt=8,Ct=32,Dt=64,Et=128,Ft=4,Gt=1,Ht=1<<20,It=.75,Jt=10,Kt=.75,Lt=12,Mt=256,Nt=32,Ot=512,Pt=0,Qt=1;export{Gt as MAX_TILE_RESHUFFLES_PER_FRAME,Jt as RESHUFFLING_EXEMPT_DRAW_CALLS,Ht as RESHUFFLING_EXEMPT_MEMORY_BYTES,Kt as RESHUFFLING_TARGET_DRAW_EFFICIENCY,It as RESHUFFLING_TARGET_MEMORY_EFFICIENCY,d as angleFactor256,K as animationUnit,Mt as attributeStoreInitialSize,F as attributeStoreTextureSize,E as averageGlyphMosaicItem,Qt as backbufferStencilClipped,Pt as backbufferStencilVisible,Ct as bitsetFillHasPatternHeightPrecisionFactor,Dt as bitsetFillHasPatternWidthPrecisionFactor,Bt as bitsetFillHasUnresolvedReplacementColor,At as bitsetFillRandomPatternOffset,ut as bitsetGenericConsiderAlphaOnly,xt as bitsetGenericLockColor,yt as bitsetLineScaleDash,jt as bitsetMarkerAlignmentMap,bt as bitsetMarkerAlignmentScreen,kt as bitsetMarkerOutlineAllowColorOverride,qt as bitsetMarkerScaleSymbolsProportionally,zt as bitsetTypeFillOutline,vt as bufferDataMinimumSize,mt as bufferDataPoolSize,g as chartMaxFields,w as collisionBoxPadding,s as collisionBucketSize,v as collisionEarlyRejectBucketSize,m as collisionMaxZoomDelta,b as collisionPlacementPadding,x as collisionTileBoxSize,n as compressionFactorForU16,M as dataDrivenUnit0,N as dataDrivenUnit1,O as dataDrivenUnit2,r as debugLabels,dt as defaultSdfTextureSize,gt as displayRecordIntPerElement,f as dotDensityMaxFields,X as effectFlag0,Y as enableEarlyLabelDiscard,h as extrudeScale,W as filterFlag0,J as filterFlagsUnit,q as glyphSize,P as gpgpuUnit,ft as gradientTextureExternalPadding,k as heuristicGlyphsPerFeature,j as heuristicGlyphsPerLine,et as hittestSmallSymbolThreshold,_ as hittestToleranceDesktop,$ as hittestToleranceMobile,tt as hittestToleranceSmallSymbol,D as labelPlacementOffsetPadding,Q as localTimeOriginUnit,l as magicLabelLineHeight,Lt as maxGeohashLevel,ot as maxGpuUploadsPerFrame,V as maxHighlightReasons,p as maxRepresentableInt,Ot as maxTextLineWidth,Nt as minTextLineWidth,c as nanMagicNumber,lt as patchPixelBufferAllocSize,rt as patternFillRasterizationScale,i as pictureFillColor,wt as randomInsidePolygonTextureSize,a as rasterTileSize,st as rasterizedVectorMarkerMinSize,A as sdfBufferGlyphSDFCreator,u as sdfBufferServer,C as sdfRadiusComplex,z as sdfRadiusSimple,B as sdfSizeComplex,y as sdfSizeSimple,at as spritePadding,pt as svgSdfTextureInnerSize,nt as svgSdfTextureSize,I as textureBindingBitmap,H as textureBindingGlyphAtlas,R as textureBindingHighlight0,S as textureBindingHighlight1,T as textureBindingRenderer0,U as textureBindingRenderer1,G as textureBindingSpriteAtlas,Ft as textureUploadManagerBudget,Et as textureUploadManagerChunkSize,Z as thinLineHalfWidthThreshold,o as tileSize,L as visualVariableUnit,it as vtlHighResCutoff,ht as vtlTextureBindingUnitGlyphs,ct as vtlTextureBindingUnitSprites,e as webglMaxInnerStops,t as webglMaxStops};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{cDegTo256 as t}from"../../../../vectorTiles/GeometryUtils.js";import{
|
|
2
|
+
import{cDegTo256 as t}from"../../../../vectorTiles/GeometryUtils.js";import{spritePadding as e}from"../../../definitions.js";import{assert as o}from"../../../animations/utils.js";import{packAnimatedBitset as i}from"./AnimatedMeshWriter.js";import{getMinMaxZoom as c}from"../fill/meshWriterUtils.js";import{DataType as n}from"../../../../../../webgl/enums.js";const a={type:n.HALF_FLOAT,count:2,pack:({scaleInfo:t},{tileInfo:e})=>c(t,e)},s={type:n.FLOAT,count:4,packPrecisionFactor:1,packTessellation:({value1Position2Value2:t})=>(o(t),t)},p={type:n.FLOAT,count:4,packPrecisionFactor:1,packTessellation:()=>[0,0,0,1]},r={type:n.FLOAT,count:1,packPrecisionFactor:1,pack:()=>0},l={type:n.FLOAT,count:1,packPrecisionFactor:1,packTessellation:({lineLength:t})=>t},k={type:n.UNSIGNED_SHORT,count:1,packTessellation:({distance:t})=>t},u={type:n.BYTE,count:2,packPrecisionFactor:16,packTessellation:({directionX:t,directionY:e})=>[t,e]},T={type:n.FLOAT,count:2,packPrecisionFactor:16,packTessellation:({normalX:t,normalY:e})=>[t,e]},m={type:n.UNSIGNED_BYTE,count:3,pack:"id"},y={type:n.UNSIGNED_BYTE,count:1,pack:i},F={type:n.SHORT,count:2,pack:"position",packPrecisionFactor:1},f={marker:{type:n.FLOAT,count:2,packAlternating:{count:4,pack:({texelDimensions:t})=>[[-.5*t[0],-.5*t[1]],[.5*t[0],-.5*t[1]],[-.5*t[0],.5*t[1]],[.5*t[0],.5*t[1]]]}},line:{type:n.FLOAT,count:2,packTessellation:({extrusionOffsetX:t,extrusionOffsetY:e},{baseSize:o})=>[t*o/2,e*o/2]},fill:{type:n.FLOAT,count:2,packTessellation:()=>[0,0]}},O={marker:{type:n.SHORT,count:2,packPrecisionFactor:1,packAlternating:{count:4,packTessellation:({texXmax:t,texXmin:e,texYmax:o,texYmin:i})=>[[e,i],[t,i],[e,o],[t,o]]}}},S={type:n.UNSIGNED_SHORT,count:4,pack:({sprite:t})=>{const{rect:o,width:i,height:c}=t,n=o.x+e,a=o.y+e;return[n+1,a+1,n+i-1,a+c-1]}},d={type:n.UNSIGNED_SHORT,count:4,packPrecisionFactor:4,pack:({animations:t,baseSize:e,referenceSize:o})=>[t.dataColumn,t.dataRow,e,o]},x={type:n.UNSIGNED_SHORT,count:4,packPrecisionFactor:8,pack:({strokeWidth:t,pixelDimensions:e,baseSize:o,sprite:i,sizeRatio:c})=>{const n=Math.max(o*i.width/i.height,o),a=i.sdfDecodeCoeff*n*c;return[e[0],e[1],t,a]}},A={type:n.BYTE,count:1,packTessellation:({angle:e})=>e*t},E={type:n.BYTE,count:1,pack:({angle:e})=>e?e*t:0},N={type:n.BYTE,count:1,pack:()=>0};export{k as accumulatedDistance,A as angle,d as animationPointerAndBaseSizeAndReferenceSize,y as bitset,m as id,l as lineLength,r as noLineLength,N as noPatternAngle,p as noTiming,T as normal,f as offset,E as patternAngle,F as pos,u as segmentDirection,x as sizing,S as tlbr,O as uv,s as value1Position2Value2,a as zoomRange};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{
|
|
2
|
+
import{AFillMeshWriter as t}from"./AFillMeshWriter.js";import{processColorInput as e,getMinMaxZoom as o}from"./meshWriterUtils.js";import{DataType as r}from"../../../../../../webgl/enums.js";const s={createComputedParams:t=>t,optionalAttributes:{zoomRange:{type:r.HALF_FLOAT,count:2,pack:({scaleInfo:t},{tileInfo:e})=>o(t,e)}},attributes:{id:{type:r.UNSIGNED_BYTE,count:3,pack:"id"},bitset:{type:r.UNSIGNED_BYTE,count:1},pos:{type:r.SHORT,count:2,pack:"position",packPrecisionFactor:10},color:{type:r.UNSIGNED_BYTE,count:4,normalized:!0,pack:({color:t})=>e(t)}}};class c extends t{constructor(){super(...arguments),this.vertexSpec=s}createTesselationParams(t){return null}}export{c as FillMeshWriter,s as fillVertexSpec};
|