@vertigis/arcgis-extensions 38.0.5 → 38.1.0
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/AccessDeniedError.js +1 -1
- package/AppConfig.schema.json +35 -39
- package/ArgumentMissingError.js +1 -1
- package/ArgumentOutOfRangeError.js +1 -1
- package/Entity.js +1 -1
- package/FailureMode.d.ts +1 -1
- package/Hyperlink.js +1 -1
- package/LanguageResources.d.ts +1 -3
- package/LanguageResources.js +1 -1
- package/NotFoundError.js +1 -1
- package/PortalUri.js +1 -1
- package/data/ArcGISServiceTableExtension.js +1 -1
- package/data/Attachment.js +1 -1
- package/data/Feature.js +1 -1
- package/data/FeatureList.d.ts +3 -3
- package/data/FeatureList.js +1 -1
- package/data/FeatureSaveError.js +1 -1
- package/data/FeatureSet.js +1 -1
- package/data/FeatureSettings.js +1 -1
- package/data/FeatureSourceBase.js +1 -1
- package/data/FeatureStream.js +1 -1
- package/data/FieldExtension.js +1 -1
- package/data/PopupContentExtension.js +1 -1
- package/data/Relationship.js +1 -1
- package/data/RelationshipBase.js +1 -1
- package/data/Schema.js +1 -1
- package/data/Table.js +1 -1
- package/data/TableExtension.js +1 -1
- package/data/TaskSettings.js +1 -1
- package/data/_Relationship.d.ts +3 -3
- package/data/_Relationship.js +1 -1
- package/data/_TableExtension.js +1 -1
- package/data/convert.js +1 -1
- package/data/support/DefaultRelationshipFactory.js +1 -1
- package/data/support/DefaultTableExtensionFactory.js +1 -1
- package/data/support/attachments.js +1 -1
- package/docs/html/assets/main.js +56 -52
- package/docs/html/assets/search.js +1 -1
- package/docs/html/assets/style.css +23 -0
- package/docs/html/classes/data_FeatureSet.FeatureSet.html +2 -2
- package/docs/html/classes/data_FeatureStream.FeatureStream.html +1 -1
- package/docs/html/classes/utilities_ObservableMap.ObservableMap.html +2 -2
- package/docs/html/classes/utilities_ObservableSet.ObservableSet.html +2 -2
- package/docs/html/classes/utilities_ObservableWeakSet.ObservableWeakSet.html +1 -1
- package/docs/html/classes/utilities_asyncIterable.AsyncQueue.html +1 -1
- package/docs/html/classes/utilities_date.DateFormatter.html +1 -1
- package/docs/html/classes/utilities_string.StringFormatter.html +6 -24
- package/docs/html/functions/utilities_string.format.html +2 -18
- package/docs/html/interfaces/LanguageResources.LanguageResourcesProperties.html +2 -7
- package/docs/html/interfaces/data_support_attachments.AttachmentEnabledLayer.html +4 -6
- package/docs/html/interfaces/mapping_BuildingSceneLayerExtension.BuildingSceneLayerProperties.html +1 -1
- package/docs/html/interfaces/mapping_FeatureLayerExtension.FeatureLayerProperties.html +1 -1
- package/docs/html/interfaces/mapping_FeatureLayerExtensionBase.FeatureLayerBaseProperties.html +1 -1
- package/docs/html/interfaces/mapping_PointCloudLayerExtension.PointCloudLayerProperties.html +1 -1
- package/docs/html/interfaces/portal_ApplicationProperties.ApplicationProperties.html +15 -12
- package/docs/html/interfaces/portal_Background.ColorBackground.html +3 -2
- package/docs/html/interfaces/portal_BaseMap.BaseMap-1.html +2 -1
- package/docs/html/interfaces/portal_BaseMapLayer.BaseMapLayerBase.html +2 -1
- package/docs/html/interfaces/portal_BingLayer.BingLayer.html +2 -1
- package/docs/html/interfaces/portal_Bookmark.Bookmark.html +2 -1
- package/docs/html/interfaces/portal_BuildingSceneLayer.BuildingSceneLayer-1.html +1 -1
- package/docs/html/interfaces/portal_CIMSymbol.CIMSymbol.html +2 -1
- package/docs/html/interfaces/portal_CSVLayer.CSVLayer-1.html +3 -2
- package/docs/html/interfaces/portal_Camera.Camera-1.html +2 -1
- package/docs/html/interfaces/portal_ClassBreaksRenderer.ClassBreakInfo.html +2 -1
- package/docs/html/interfaces/portal_ClassBreaksRenderer.ClassBreaksRenderer.html +2 -1
- package/docs/html/interfaces/portal_CodedValueDomain.CodedValue.html +1 -1
- package/docs/html/interfaces/portal_CodedValueDomain.CodedValueDomain-1.html +1 -1
- package/docs/html/interfaces/portal_ColorClassBreakInfo.ColorClassBreakInfo.html +2 -1
- package/docs/html/interfaces/portal_ColorUniqueValueInfos.ColorUniqueValueInfos.html +2 -1
- package/docs/html/interfaces/portal_DataSource.DataSourceBase.html +2 -2
- package/docs/html/interfaces/portal_DefinitionEditor.DefinitionEditor.html +2 -1
- package/docs/html/interfaces/portal_DefinitionEditor.Input.html +1 -1
- package/docs/html/interfaces/portal_DefinitionEditor.Parameter.html +1 -1
- package/docs/html/interfaces/portal_DrawingInfo.DrawingInfo-1.html +2 -1
- package/docs/html/interfaces/portal_DynamicDataLayer.DynamicDataLayer.html +2 -2
- package/docs/html/interfaces/portal_DynamicMapLayer.DynamicMapLayer.html +1 -1
- package/docs/html/interfaces/portal_ElevationInfo.ElevationInfo-1.html +1 -1
- package/docs/html/interfaces/portal_ElevationLayer.ElevationLayer-1.html +3 -2
- package/docs/html/interfaces/portal_Environment.Environment-1.html +2 -1
- package/docs/html/interfaces/portal_Extent.Extent.html +1 -1
- package/docs/html/interfaces/portal_ExtrudeSymbol3DLayer.ExtrudeSymbol3DLayer.html +2 -1
- package/docs/html/interfaces/portal_Feature.Feature-1.html +2 -1
- package/docs/html/interfaces/portal_FeatureCollection.FeatureCollection.html +2 -1
- package/docs/html/interfaces/portal_FeatureLayer.FeatureLayer-1.html +3 -2
- package/docs/html/interfaces/portal_FeatureSet.FeatureSet.html +2 -1
- package/docs/html/interfaces/portal_Field.Field-1.html +1 -1
- package/docs/html/interfaces/portal_FieldInfo.FieldInfo.html +2 -1
- package/docs/html/interfaces/portal_FillSymbol3DLayer.FillSymbol3DLayer.html +2 -1
- package/docs/html/interfaces/portal_FormInfo.FormAttachmentElement.html +1 -1
- package/docs/html/interfaces/portal_FormInfo.FormBarcodeScannerInput.html +1 -1
- package/docs/html/interfaces/portal_FormInfo.FormComboBoxInput.html +1 -1
- package/docs/html/interfaces/portal_FormInfo.FormDateTimePickerInput.html +1 -1
- package/docs/html/interfaces/portal_FormInfo.FormExpressionInfo.html +1 -1
- package/docs/html/interfaces/portal_FormInfo.FormFieldElement.html +1 -1
- package/docs/html/interfaces/portal_FormInfo.FormGroupElement.html +1 -1
- package/docs/html/interfaces/portal_FormInfo.FormInfo-1.html +1 -1
- package/docs/html/interfaces/portal_FormInfo.FormRadioButtonsInput.html +1 -1
- package/docs/html/interfaces/portal_FormInfo.FormRelationshipElement.html +1 -1
- package/docs/html/interfaces/portal_FormInfo.FormSwitchInput.html +1 -1
- package/docs/html/interfaces/portal_FormInfo.FormTextAreaInput.html +1 -1
- package/docs/html/interfaces/portal_FormInfo.FormTextBoxInput.html +1 -1
- package/docs/html/interfaces/portal_Format.Format.html +2 -1
- package/docs/html/interfaces/portal_GeoRSSLayer.GeoRSSLayer-1.html +3 -2
- package/docs/html/interfaces/portal_GroupLayer.GroupLayer-1.html +3 -2
- package/docs/html/interfaces/portal_HeatmapRenderer.ColorStop.html +2 -1
- package/docs/html/interfaces/portal_HeatmapRenderer.HeatmapRenderer.html +2 -1
- package/docs/html/interfaces/portal_IconSymbol3DLayer.IconSymbol3DLayer.html +2 -1
- package/docs/html/interfaces/portal_ImageServiceLayer.ImageServiceLayer-1.html +3 -2
- package/docs/html/interfaces/portal_ImageServiceVectorLayer.ImageServiceVectorLayer.html +3 -2
- package/docs/html/interfaces/portal_InheritedDomain.InheritedDomain-1.html +1 -1
- package/docs/html/interfaces/portal_InitialState.InitialState-1.html +2 -1
- package/docs/html/interfaces/portal_IntegratedMeshLayer.IntegratedMeshLayer-1.html +3 -2
- package/docs/html/interfaces/portal_Item.Item-1.html +3 -2
- package/docs/html/interfaces/portal_JoinTableDataSource.JoinTableDataSource.html +2 -2
- package/docs/html/interfaces/portal_KMLLayer.KMLLayer-1.html +3 -2
- package/docs/html/interfaces/portal_LabelSymbol3D.LabelSymbol3D.html +2 -1
- package/docs/html/interfaces/portal_LabelingInfo.LabelingInfo-1.html +3 -2
- package/docs/html/interfaces/portal_Layer.Layer-1.html +1 -1
- package/docs/html/interfaces/portal_LayerDefinition.FieldOverride.html +1 -1
- package/docs/html/interfaces/portal_LayerDefinition.LayerDefinition-1.html +4 -3
- package/docs/html/interfaces/portal_LayerDefinition.LayerTimeInfo.html +2 -2
- package/docs/html/interfaces/portal_Lighting.SunLighting.html +2 -1
- package/docs/html/interfaces/portal_Lighting.VirtualLighting.html +2 -1
- package/docs/html/interfaces/portal_LineSymbol3D.LineSymbol3D.html +2 -1
- package/docs/html/interfaces/portal_LineSymbol3DLayer.LineSymbol3DLayer.html +2 -1
- package/docs/html/interfaces/portal_LocationInfo.LocationInfo.html +2 -1
- package/docs/html/interfaces/portal_MapFloorInfo.FacilityLayerInfo.html +1 -1
- package/docs/html/interfaces/portal_MapFloorInfo.LevelLayerInfo.html +1 -1
- package/docs/html/interfaces/portal_MapFloorInfo.MapFloorInfo-1.html +1 -1
- package/docs/html/interfaces/portal_MapFloorInfo.SiteLayerInfo.html +1 -1
- package/docs/html/interfaces/portal_MapRangeInfo.MapRangeInfo.html +2 -1
- package/docs/html/interfaces/portal_MapServiceLayer.MapServiceLayer-1.html +3 -2
- package/docs/html/interfaces/portal_MeshSymbol3D.MeshSymbol3D.html +2 -1
- package/docs/html/interfaces/portal_MosaicRule.MosaicRule-1.html +2 -1
- package/docs/html/interfaces/portal_Multipoint.Multipoint.html +1 -1
- package/docs/html/interfaces/portal_ObjectSymbol3DLayer.ObjectSymbol3DLayer.html +2 -1
- package/docs/html/interfaces/portal_OpenStreetMapLayer.OpenStreetMapLayer-1.html +2 -1
- package/docs/html/interfaces/portal_OperationalLayer.OperationalLayerBase.html +1 -1
- package/docs/html/interfaces/portal_PathSymbol3DLayer.PathSymbol3DLayer.html +2 -1
- package/docs/html/interfaces/portal_PictureFillSymbol.PictureFillSymbol.html +2 -1
- package/docs/html/interfaces/portal_PictureMarkerSymbol.PictureMarkerSymbol.html +2 -1
- package/docs/html/interfaces/portal_Point.Point.html +2 -1
- package/docs/html/interfaces/portal_PointCloudBitfieldFilter.PointCloudBitfieldFilter.html +2 -1
- package/docs/html/interfaces/portal_PointCloudClassBreaksRenderer.PointCloudClassBreaksRenderer.html +4 -2
- package/docs/html/interfaces/portal_PointCloudFixedSizeAlgorithm.PointCloudFixedSizeAlgorithm.html +2 -1
- package/docs/html/interfaces/portal_PointCloudLayer.PointCloudLayer-1.html +3 -2
- package/docs/html/interfaces/portal_PointCloudRGBRenderer.PointCloudRGBRenderer.html +4 -2
- package/docs/html/interfaces/portal_PointCloudRenderer.PointCloudRendererBase.html +4 -2
- package/docs/html/interfaces/portal_PointCloudReturnFilter.PointCloudReturnFilter.html +2 -1
- package/docs/html/interfaces/portal_PointCloudSplatAlgorithm.PointCloudSplatAlgorithm.html +2 -1
- package/docs/html/interfaces/portal_PointCloudStretchRenderer.PointCloudStretchRenderer.html +4 -2
- package/docs/html/interfaces/portal_PointCloudUniqueValueRenderer.PointCloudUniqueValueRenderer.html +4 -2
- package/docs/html/interfaces/portal_PointCloudValueFilter.PointCloudValueFilter.html +2 -1
- package/docs/html/interfaces/portal_PointSymbol3D.PointSymbol3D.html +3 -2
- package/docs/html/interfaces/portal_Polygon.Polygon.html +1 -1
- package/docs/html/interfaces/portal_PolygonSymbol3D.PolygonSymbol3D.html +2 -1
- package/docs/html/interfaces/portal_Polyline.Polyline.html +1 -1
- package/docs/html/interfaces/portal_PopupExpressionInfo.PopupExpressionInfo.html +2 -1
- package/docs/html/interfaces/portal_PopupInfo.OrderByFields.html +2 -1
- package/docs/html/interfaces/portal_PopupInfo.RelatedRecordsInfo.html +2 -1
- package/docs/html/interfaces/portal_PredominanceRenderer.PredominanceRenderer.html +2 -1
- package/docs/html/interfaces/portal_Presentation.Presentation-1.html +2 -1
- package/docs/html/interfaces/portal_QueryTableDataSource.QueryTableDataSource.html +2 -2
- package/docs/html/interfaces/portal_RangeDomain.RangeDomain-1.html +1 -1
- package/docs/html/interfaces/portal_RangeInfo.RangeInfo.html +2 -1
- package/docs/html/interfaces/portal_RasterDataSource.RasterDataSource.html +2 -2
- package/docs/html/interfaces/portal_Renderer.AuthoringInfo.html +2 -1
- package/docs/html/interfaces/portal_Renderer.ColorRamp.html +1 -1
- package/docs/html/interfaces/portal_Renderer.RendererBase.html +2 -1
- package/docs/html/interfaces/portal_RenderingRule.RenderingRule-1.html +3 -2
- package/docs/html/interfaces/portal_SceneLayer.SceneLayer-1.html +3 -2
- package/docs/html/interfaces/portal_SimpleFillSymbol.SimpleFillSymbol.html +2 -1
- package/docs/html/interfaces/portal_SimpleLineSymbol.SimpleLineSymbol.html +2 -1
- package/docs/html/interfaces/portal_SimpleMarkerSymbol.SimpleMarkerSymbol.html +2 -1
- package/docs/html/interfaces/portal_SimpleRenderer.SimpleRenderer.html +2 -1
- package/docs/html/interfaces/portal_Slide.Slide-1.html +4 -4
- package/docs/html/interfaces/portal_SpatialReference.SpatialReference-1.html +2 -1
- package/docs/html/interfaces/portal_StreamLayer.StreamLayer-1.html +2 -2
- package/docs/html/interfaces/portal_StyleSymbolReference.StyleSymbolReference.html +2 -1
- package/docs/html/interfaces/portal_SubtypeGroupLayer.SubtypeGroupLayer-1.html +3 -2
- package/docs/html/interfaces/portal_SubtypeGroupLayer.SubtypeSubtypeGroupLayer.html +2 -2
- package/docs/html/interfaces/portal_SubtypeSublayer.SubtypeSublayer-1.html +3 -2
- package/docs/html/interfaces/portal_Symbol.Font.html +1 -1
- package/docs/html/interfaces/portal_Symbol3D.Material.html +2 -1
- package/docs/html/interfaces/portal_Symbol3D.Outline.html +2 -1
- package/docs/html/interfaces/portal_Symbol3D.ResourceIconSymbol.html +2 -1
- package/docs/html/interfaces/portal_Symbol3D.ResourceObjectSymbol.html +2 -1
- package/docs/html/interfaces/portal_Table.Table.html +1 -1
- package/docs/html/interfaces/portal_TableDataSource.TableDataSource.html +2 -2
- package/docs/html/interfaces/portal_Template.Template-1.html +2 -1
- package/docs/html/interfaces/portal_TemporalRenderer.TemporalRenderer.html +2 -1
- package/docs/html/interfaces/portal_TextSymbol.TextSymbol.html +2 -1
- package/docs/html/interfaces/portal_TextSymbol3DLayer.TextSymbol3DLayer.html +2 -1
- package/docs/html/interfaces/portal_TileInfo.TileInfo-1.html +3 -2
- package/docs/html/interfaces/portal_TiledImageServiceLayer.TiledImageServiceLayer-1.html +3 -2
- package/docs/html/interfaces/portal_TiledMapServiceLayer.TiledMapServiceLayer-1.html +4 -3
- package/docs/html/interfaces/portal_Type.Type-1.html +3 -8
- package/docs/html/interfaces/portal_UniqueValueFromStyle.UniqueValueFromStyle.html +2 -1
- package/docs/html/interfaces/portal_UniqueValueRenderer.UniqueValueInfo.html +2 -1
- package/docs/html/interfaces/portal_UniqueValueRenderer.UniqueValueRenderer.html +2 -1
- package/docs/html/interfaces/portal_UtilityNetwork.TraceConfiguration.html +1 -1
- package/docs/html/interfaces/portal_UtilityNetwork.UtilityNetwork-1.html +1 -1
- package/docs/html/interfaces/portal_Value.Value.html +1 -1
- package/docs/html/interfaces/portal_VectorTileLayer.VectorTileLayer-1.html +3 -2
- package/docs/html/interfaces/portal_VerticalOffset.VerticalOffset.html +1 -1
- package/docs/html/interfaces/portal_Viewpoint.Viewpoint-1.html +2 -1
- package/docs/html/interfaces/portal_VisualVariable.ColorInfo.html +3 -2
- package/docs/html/interfaces/portal_VisualVariable.RotationInfo.html +3 -2
- package/docs/html/interfaces/portal_VisualVariable.Size.html +2 -1
- package/docs/html/interfaces/portal_VisualVariable.SizeInfo.html +3 -2
- package/docs/html/interfaces/portal_VisualVariable.TransparencyInfo.html +2 -1
- package/docs/html/interfaces/portal_VisualVariable.VisualVariableBase.html +1 -1
- package/docs/html/interfaces/portal_WMSLayer.WMSLayer-1.html +3 -2
- package/docs/html/interfaces/portal_WMSSublayer.WMSSublayer-1.html +2 -1
- package/docs/html/interfaces/portal_WMTSInfo.WMTSInfo-1.html +1 -1
- package/docs/html/interfaces/portal_Weather.CloudyWeather.html +2 -1
- package/docs/html/interfaces/portal_Weather.FoggyWeather.html +2 -1
- package/docs/html/interfaces/portal_Weather.RainyWeather.html +2 -1
- package/docs/html/interfaces/portal_Weather.SnowyWeather.html +2 -1
- package/docs/html/interfaces/portal_Weather.SunnyWeather.html +2 -1
- package/docs/html/interfaces/portal_WebMap.WebMap-1.html +3 -3
- package/docs/html/interfaces/portal_WebScene.WebScene-1.html +5 -3
- package/docs/html/interfaces/portal_WebSceneBaseMap.WebSceneBaseMap-1.html +2 -1
- package/docs/html/interfaces/portal_WebTileLayer.WebTileLayer-1.html +3 -2
- package/docs/html/interfaces/portal_Widgets.FloorFilter.html +1 -1
- package/docs/html/interfaces/portal_Widgets.Range.html +1 -1
- package/docs/html/interfaces/portal_Widgets.TimeSlider.html +3 -2
- package/docs/html/interfaces/portal_Widgets.Widgets.html +2 -1
- package/docs/html/interfaces/support_Serializable.PropertyDef.html +2 -2
- package/docs/html/interfaces/tasks_identify_IdentifyOptions.IdentifyOptions-1.html +2 -2
- package/docs/html/interfaces/tasks_search_SearchOptions.SearchOptions-1.html +2 -2
- package/docs/html/interfaces/utilities_array.CompareOptions.html +8 -8
- package/docs/html/interfaces/utilities_geometry.GeographicTransformationJson.html +1 -1
- package/docs/html/types/portal_DataSource.DataSource.html +1 -0
- package/docs/html/types/portal_Domain.Domain-1.html +2 -1
- package/docs/html/types/portal_Geometry.Geometry.html +1 -1
- package/docs/html/types/portal_PointCloudFilter.PointCloudFilter.html +2 -1
- package/docs/html/types/portal_Symbol.Color.html +1 -1
- package/docs/html/types/portal_Symbol.Symbol.html +1 -1
- package/docs/html/types/portal_Symbol3D.Symbol3D.html +2 -1
- package/docs/html/types/portal_VisualVariable.VisualVariable.html +2 -1
- package/docs/html/variables/mapping_BasemapExtension.defaultBasemapExtensionFactory.html +2 -2
- package/docs/html/variables/version.version.html +1 -1
- package/forked-libs/dbf/src/fields.js +1 -1
- package/forked-libs/dbf/src/structure.js +1 -1
- package/forked-libs/shp-write/src/download.js +1 -1
- package/forked-libs/shp-write/src/fields.js +1 -1
- package/forked-libs/shp-write/src/geojson.js +1 -1
- package/forked-libs/shp-write/src/multipoint.js +1 -1
- package/forked-libs/shp-write/src/points.js +1 -1
- package/forked-libs/shp-write/src/poly.js +1 -1
- package/forked-libs/shp-write/src/write.js +1 -1
- package/forked-libs/shp-write/src/zip.js +1 -1
- package/layer-preset/LayerPreset.d.ts +1 -1
- package/layer-preset/LayerPreset.js +1 -1
- package/layer-preset/LayerPresetSettings.d.ts +1 -1
- package/layer-preset/LayerPresetSettings.js +1 -1
- package/locale/_registry.js +1 -1
- package/locale/af.js +1 -1
- package/locale/ar-MA.js +1 -1
- package/locale/ar-SA.js +1 -1
- package/locale/ar-TN.js +1 -1
- package/locale/ar.js +1 -1
- package/locale/az.js +1 -1
- package/locale/be.js +1 -1
- package/locale/bg.js +1 -1
- package/locale/bn.js +1 -1
- package/locale/bs.js +1 -1
- package/locale/ca.js +1 -1
- package/locale/cs.js +1 -1
- package/locale/cv.js +1 -1
- package/locale/cy.js +1 -1
- package/locale/da.js +1 -1
- package/locale/de-AT.js +1 -1
- package/locale/de.js +1 -1
- package/locale/el.js +1 -1
- package/locale/en-AU.js +1 -1
- package/locale/en-CA.js +1 -1
- package/locale/en-GB.js +1 -1
- package/locale/en.js +1 -1
- package/locale/es.js +1 -1
- package/locale/et.js +1 -1
- package/locale/eu.js +1 -1
- package/locale/fa.js +1 -1
- package/locale/fi.js +1 -1
- package/locale/fo.js +1 -1
- package/locale/fr-CA.js +1 -1
- package/locale/fr.js +1 -1
- package/locale/gl.js +1 -1
- package/locale/he.js +1 -1
- package/locale/hi.js +1 -1
- package/locale/hr.js +1 -1
- package/locale/hu.js +1 -1
- package/locale/hy.js +1 -1
- package/locale/id.js +1 -1
- package/locale/inv.js +1 -1
- package/locale/is.js +1 -1
- package/locale/it.js +1 -1
- package/locale/ja.js +1 -1
- package/locale/ka.js +1 -1
- package/locale/km.js +1 -1
- package/locale/ko.js +1 -1
- package/locale/language.js +1 -1
- package/locale/lt.js +1 -1
- package/locale/lv.js +1 -1
- package/locale/mk.js +1 -1
- package/locale/ml.js +1 -1
- package/locale/mr.js +1 -1
- package/locale/ms-MY.js +1 -1
- package/locale/ms.js +1 -1
- package/locale/my.js +1 -1
- package/locale/nb.js +1 -1
- package/locale/ne.js +1 -1
- package/locale/nl.js +1 -1
- package/locale/nn.js +1 -1
- package/locale/no.js +1 -1
- package/locale/pl.js +1 -1
- package/locale/pt-BR.js +1 -1
- package/locale/pt.js +1 -1
- package/locale/ro.js +1 -1
- package/locale/ru.js +1 -1
- package/locale/si.js +1 -1
- package/locale/sk.js +1 -1
- package/locale/sl.js +1 -1
- package/locale/sq.js +1 -1
- package/locale/sr-Cyrl.js +1 -1
- package/locale/sr-ME.js +1 -1
- package/locale/sr.js +1 -1
- package/locale/sv.js +1 -1
- package/locale/ta.js +1 -1
- package/locale/th.js +1 -1
- package/locale/tl.js +1 -1
- package/locale/tr.js +1 -1
- package/locale/tzm-Latn.js +1 -1
- package/locale/tzm.js +1 -1
- package/locale/uk.js +1 -1
- package/locale/uz.js +1 -1
- package/locale/vi.js +1 -1
- package/locale/zh-TW.js +1 -1
- package/locale/zh.js +1 -1
- package/locale.js +1 -1
- package/mapping/ArcGISSublayerExtension.js +1 -1
- package/mapping/BasemapExtension.js +1 -1
- package/mapping/Bookmark.d.ts +1 -1
- package/mapping/Bookmark.js +1 -1
- package/mapping/BuildingComponentSublayerExtension.js +1 -1
- package/mapping/BuildingGroupSublayerExtension.js +1 -1
- package/mapping/BuildingSceneLayerExtension.js +1 -1
- package/mapping/BuildingSublayerExtension.js +1 -1
- package/mapping/CSVLayerExtension.js +1 -1
- package/mapping/ElevationLayerExtension.js +1 -1
- package/mapping/FeatureCollectionLayerExtension.js +1 -1
- package/mapping/FeatureLayerExtension.js +1 -1
- package/mapping/FeatureLayerExtensionBase.js +1 -1
- package/mapping/GeoRSSLayerExtension.js +1 -1
- package/mapping/GraphicsLayerExtension.js +1 -1
- package/mapping/GroundExtension.d.ts +1 -1
- package/mapping/GroundExtension.js +1 -1
- package/mapping/GroupLayerExtension.js +1 -1
- package/mapping/ImageryLayerExtension.js +1 -1
- package/mapping/ImageryTileLayerExtension.js +1 -1
- package/mapping/IntegratedMeshLayerExtension.js +1 -1
- package/mapping/KMLLayerExtension.js +1 -1
- package/mapping/KMLSublayerExtension.js +1 -1
- package/mapping/LayerExtension.js +1 -1
- package/mapping/MapConstraints.js +1 -1
- package/mapping/MapExtension.d.ts +5 -5
- package/mapping/MapExtension.js +1 -1
- package/mapping/MapImageLayerExtension.d.ts +1 -1
- package/mapping/MapImageLayerExtension.js +1 -1
- package/mapping/MapImageSublayerExtension.js +1 -1
- package/mapping/OpenStreetMapLayerExtension.js +1 -1
- package/mapping/PointCloudLayerExtension.js +1 -1
- package/mapping/SceneLayerExtension.js +1 -1
- package/mapping/StreamLayerExtension.js +1 -1
- package/mapping/SublayerExtension.js +1 -1
- package/mapping/SubtypeGroupLayerExtension.js +1 -1
- package/mapping/SubtypeSublayerExtension.js +1 -1
- package/mapping/TileLayerExtension.js +1 -1
- package/mapping/TileSublayerExtension.js +1 -1
- package/mapping/UnsupportedLayerExtension.js +1 -1
- package/mapping/VectorTileLayerExtension.js +1 -1
- package/mapping/WMSLayerExtension.js +1 -1
- package/mapping/WMSSublayerExtension.js +1 -1
- package/mapping/WMTSLayerExtension.js +1 -1
- package/mapping/WMTSSublayerExtension.js +1 -1
- package/mapping/WebTileLayerExtension.js +1 -1
- package/mapping/_LayerExtension.d.ts +1 -1
- package/mapping/_LayerExtension.js +1 -1
- package/mapping/_SublayerExtension.d.ts +1 -1
- package/mapping/_SublayerExtension.js +1 -1
- package/mapping/convert.js +1 -1
- package/mapping/support/ArrayWrappedCollection.js +1 -1
- package/mapping/support/DefaultLayerExtensionFactory.js +1 -1
- package/mapping/support/DefaultSublayerExtensionFactory.js +1 -1
- package/mapping/support/LayerListSettings.js +1 -1
- package/mapping/support/PopupTemplateFeatureSettings.js +1 -1
- package/mapping/support/WfsCapabilities.js +1 -1
- package/mapping/support/WfsFeatureType.js +1 -1
- package/mapping/support/_LayerExtensionCollection.js +1 -1
- package/mapping/support/_SublayerExtensionCollection.js +1 -1
- package/mapping/support/_kml.js +1 -1
- package/mapping/support/ogc.js +1 -1
- package/menus/Menu.js +1 -1
- package/menus/MenuItem.js +1 -1
- package/package.json +36 -35
- package/portal/ApplicationProperties.d.ts +16 -13
- package/portal/Background.d.ts +3 -2
- package/portal/Background.js +1 -1
- package/portal/BaseMap.d.ts +1 -0
- package/portal/BaseMap.js +1 -1
- package/portal/BaseMapLayer.d.ts +3 -2
- package/portal/BingLayer.d.ts +1 -0
- package/portal/Bookmark.d.ts +1 -0
- package/portal/BuildingSceneLayer.d.ts +1 -1
- package/portal/BuildingSceneLayer.js +1 -1
- package/portal/BuildingSceneSublayer.js +1 -1
- package/portal/CIMSymbol.d.ts +1 -0
- package/portal/CSVLayer.d.ts +1 -0
- package/portal/CSVLayer.js +1 -1
- package/portal/Camera.d.ts +1 -0
- package/portal/Camera.js +1 -1
- package/portal/ClassBreaksRenderer.d.ts +4 -2
- package/portal/CodedValueDomain.d.ts +2 -2
- package/portal/CodedValueDomain.js +1 -1
- package/portal/ColorClassBreakInfo.d.ts +1 -0
- package/portal/ColorUniqueValueInfos.d.ts +1 -0
- package/portal/DataSource.d.ts +5 -4
- package/portal/DefinitionEditor.d.ts +3 -2
- package/portal/Domain.d.ts +3 -2
- package/portal/Domain.js +1 -1
- package/portal/DrawingInfo.d.ts +1 -0
- package/portal/DrawingInfo.js +1 -1
- package/portal/DynamicDataLayer.d.ts +2 -2
- package/portal/DynamicMapLayer.d.ts +1 -1
- package/portal/Edges.d.ts +1 -1
- package/portal/Edges.js +1 -1
- package/portal/Effect.d.ts +2 -2
- package/portal/ElevationInfo.d.ts +2 -2
- package/portal/ElevationInfo.js +1 -1
- package/portal/ElevationLayer.d.ts +1 -0
- package/portal/ElevationLayer.js +1 -1
- package/portal/Environment.d.ts +1 -0
- package/portal/Environment.js +1 -1
- package/portal/Extent.d.ts +1 -1
- package/portal/ExtrudeSymbol3DLayer.d.ts +1 -0
- package/portal/Feature.d.ts +1 -0
- package/portal/Feature.js +1 -1
- package/portal/FeatureCollection.d.ts +1 -0
- package/portal/FeatureLayer.d.ts +2 -1
- package/portal/FeatureLayer.js +1 -1
- package/portal/FeatureReduction.d.ts +1 -1
- package/portal/FeatureReduction.js +1 -1
- package/portal/FeatureSet.d.ts +1 -0
- package/portal/Field.d.ts +2 -2
- package/portal/Field.js +1 -1
- package/portal/FieldInfo.d.ts +2 -1
- package/portal/FillSymbol3DLayer.d.ts +1 -0
- package/portal/FormInfo.d.ts +13 -13
- package/portal/FormInfo.js +1 -1
- package/portal/Format.d.ts +2 -1
- package/portal/GeoRSSLayer.d.ts +1 -0
- package/portal/GeoRSSLayer.js +1 -1
- package/portal/Geometry.d.ts +3 -3
- package/portal/Geometry.js +1 -1
- package/portal/Ground.d.ts +1 -1
- package/portal/Ground.js +1 -1
- package/portal/GroupLayer.d.ts +2 -1
- package/portal/GroupLayer.js +1 -1
- package/portal/HeatmapRenderer.d.ts +2 -0
- package/portal/IconSymbol3DLayer.d.ts +1 -0
- package/portal/ImageServiceLayer.d.ts +1 -0
- package/portal/ImageServiceLayer.js +1 -1
- package/portal/ImageServiceVectorLayer.d.ts +1 -0
- package/portal/InheritedDomain.d.ts +1 -1
- package/portal/InheritedDomain.js +1 -1
- package/portal/InitialState.d.ts +1 -0
- package/portal/InitialState.js +1 -1
- package/portal/IntegratedMeshLayer.d.ts +1 -0
- package/portal/IntegratedMeshLayer.js +1 -1
- package/portal/Item.d.ts +2 -1
- package/portal/Item.js +1 -1
- package/portal/JoinTableDataSource.d.ts +2 -2
- package/portal/KMLLayer.d.ts +1 -0
- package/portal/KMLLayer.js +1 -1
- package/portal/LabelSymbol3D.d.ts +1 -0
- package/portal/LabelingInfo.d.ts +3 -2
- package/portal/LabelingInfo.js +1 -1
- package/portal/Layer.d.ts +1 -1
- package/portal/Layer.js +1 -1
- package/portal/LayerBase.js +1 -1
- package/portal/LayerDefinition.d.ts +8 -7
- package/portal/LayerDefinition.js +1 -1
- package/portal/Lighting.d.ts +3 -1
- package/portal/Lighting.js +1 -1
- package/portal/LineSymbol3D.d.ts +1 -0
- package/portal/LineSymbol3DLayer.d.ts +1 -0
- package/portal/LocationInfo.d.ts +1 -0
- package/portal/MapFloorInfo.d.ts +4 -4
- package/portal/MapFloorInfo.js +1 -1
- package/portal/MapRangeInfo.d.ts +1 -0
- package/portal/MapServiceLayer.d.ts +1 -0
- package/portal/MapServiceLayer.js +1 -1
- package/portal/MediaInfo.d.ts +1 -1
- package/portal/MediaInfo.js +1 -1
- package/portal/MeshSymbol3D.d.ts +1 -0
- package/portal/MosaicRule.d.ts +3 -2
- package/portal/MosaicRule.js +1 -1
- package/portal/Multipoint.d.ts +1 -1
- package/portal/ObjectSymbol3DLayer.d.ts +1 -0
- package/portal/OpenStreetMapLayer.d.ts +1 -0
- package/portal/OpenStreetMapLayer.js +1 -1
- package/portal/OperationalLayer.d.ts +3 -3
- package/portal/PathSymbol3DLayer.d.ts +1 -0
- package/portal/PictureFillSymbol.d.ts +1 -0
- package/portal/PictureMarkerSymbol.d.ts +1 -0
- package/portal/Point.d.ts +2 -1
- package/portal/PointCloudBitfieldFilter.d.ts +1 -0
- package/portal/PointCloudClassBreaksRenderer.d.ts +1 -0
- package/portal/PointCloudFilter.d.ts +2 -1
- package/portal/PointCloudFixedSizeAlgorithm.d.ts +1 -0
- package/portal/PointCloudLayer.d.ts +1 -0
- package/portal/PointCloudLayer.js +1 -1
- package/portal/PointCloudRGBRenderer.d.ts +1 -0
- package/portal/PointCloudRenderer.d.ts +3 -1
- package/portal/PointCloudRenderer.js +1 -1
- package/portal/PointCloudReturnFilter.d.ts +1 -0
- package/portal/PointCloudSplatAlgorithm.d.ts +1 -0
- package/portal/PointCloudStretchRenderer.d.ts +1 -0
- package/portal/PointCloudUniqueValueRenderer.d.ts +1 -0
- package/portal/PointCloudValueFilter.d.ts +1 -0
- package/portal/PointSymbol3D.d.ts +2 -1
- package/portal/Polygon.d.ts +1 -1
- package/portal/PolygonSymbol3D.d.ts +1 -0
- package/portal/Polyline.d.ts +1 -1
- package/portal/PopupExpressionInfo.d.ts +2 -1
- package/portal/PopupInfo.d.ts +3 -1
- package/portal/PopupInfo.js +1 -1
- package/portal/PredominanceRenderer.d.ts +1 -0
- package/portal/Presentation.d.ts +1 -0
- package/portal/Presentation.js +1 -1
- package/portal/QueryTableDataSource.d.ts +1 -1
- package/portal/RangeDomain.d.ts +1 -1
- package/portal/RangeDomain.js +1 -1
- package/portal/RangeInfo.d.ts +1 -0
- package/portal/RasterDataSource.d.ts +1 -1
- package/portal/Renderer.d.ts +8 -6
- package/portal/Renderer.js +1 -1
- package/portal/RenderingRule.d.ts +3 -2
- package/portal/RenderingRule.js +1 -1
- package/portal/SceneLayer.d.ts +1 -0
- package/portal/SceneLayer.js +1 -1
- package/portal/SimpleFillSymbol.d.ts +2 -1
- package/portal/SimpleLineSymbol.d.ts +2 -1
- package/portal/SimpleMarkerSymbol.d.ts +2 -1
- package/portal/SimpleRenderer.d.ts +1 -0
- package/portal/Slide.d.ts +4 -4
- package/portal/Slide.js +1 -1
- package/portal/SpatialReference.d.ts +1 -0
- package/portal/SpatialReference.js +1 -1
- package/portal/StreamLayer.d.ts +1 -1
- package/portal/StreamLayer.js +1 -1
- package/portal/StyleSymbolReference.d.ts +1 -0
- package/portal/SubtypeGroupLayer.d.ts +3 -2
- package/portal/SubtypeGroupLayer.js +1 -1
- package/portal/SubtypeSublayer.d.ts +1 -0
- package/portal/SubtypeSublayer.js +1 -1
- package/portal/Symbol.d.ts +11 -11
- package/portal/Symbol.js +1 -1
- package/portal/Symbol3D.d.ts +7 -2
- package/portal/Table.d.ts +3 -3
- package/portal/Table.js +1 -1
- package/portal/TableDataSource.d.ts +1 -1
- package/portal/Template.d.ts +2 -1
- package/portal/Template.js +1 -1
- package/portal/TemporalRenderer.d.ts +1 -0
- package/portal/TextSymbol.d.ts +1 -0
- package/portal/TextSymbol3DLayer.d.ts +1 -0
- package/portal/TileInfo.d.ts +2 -1
- package/portal/TileInfo.js +1 -1
- package/portal/TiledImageServiceLayer.d.ts +1 -0
- package/portal/TiledImageServiceLayer.js +1 -1
- package/portal/TiledMapServiceLayer.d.ts +2 -1
- package/portal/TiledMapServiceLayer.js +1 -1
- package/portal/Type.d.ts +2 -4
- package/portal/Type.js +1 -1
- package/portal/UniqueValueFromStyle.d.ts +1 -0
- package/portal/UniqueValueRenderer.d.ts +2 -0
- package/portal/UtilityNetwork.d.ts +2 -2
- package/portal/UtilityNetwork.js +1 -1
- package/portal/Value.d.ts +1 -1
- package/portal/VectorFieldRenderer.d.ts +1 -1
- package/portal/VectorTileLayer.d.ts +1 -0
- package/portal/VectorTileLayer.js +1 -1
- package/portal/VerticalOffset.d.ts +1 -1
- package/portal/Viewpoint.d.ts +1 -0
- package/portal/Viewpoint.js +1 -1
- package/portal/VisualVariable.d.ts +10 -4
- package/portal/WMSLayer.d.ts +1 -0
- package/portal/WMSLayer.js +1 -1
- package/portal/WMSSublayer.d.ts +1 -0
- package/portal/WMSSublayer.js +1 -1
- package/portal/WMTSInfo.d.ts +1 -1
- package/portal/WMTSInfo.js +1 -1
- package/portal/Weather.d.ts +6 -1
- package/portal/Weather.js +1 -1
- package/portal/WebMap.d.ts +3 -3
- package/portal/WebMap.js +1 -1
- package/portal/WebScene.d.ts +3 -1
- package/portal/WebScene.js +1 -1
- package/portal/WebSceneBaseMap.d.ts +1 -0
- package/portal/WebSceneBaseMap.js +1 -1
- package/portal/WebTileLayer.d.ts +1 -0
- package/portal/WebTileLayer.js +1 -1
- package/portal/Widgets.d.ts +6 -4
- package/portal/Widgets.js +1 -1
- package/portal/_LayerBase.d.ts +2 -2
- package/portal/_layerHelper.js +1 -1
- package/portal/_utils.js +1 -1
- package/support/Action.d.ts +4 -4
- package/support/ArcGISRequestHelper.js +1 -1
- package/support/Cancellable.d.ts +1 -1
- package/support/Cancellable.js +1 -1
- package/support/FormatSettings.js +1 -1
- package/support/InitializableBase.d.ts +1 -1
- package/support/InitializableBase.js +1 -1
- package/support/InitializableCollectionProxy.js +1 -1
- package/support/InitializeError.js +1 -1
- package/support/Observable.js +1 -1
- package/support/ReadOnlyInitializableCollection.js +1 -1
- package/support/Serializable.d.ts +4 -4
- package/support/Serializable.js +1 -1
- package/support/Settings.js +1 -1
- package/support/_ArcGISRelationshipCollection.js +1 -1
- package/support/_esriInternal.js +1 -1
- package/support/_graphicsQuery.js +1 -1
- package/support/_query.js +1 -1
- package/support/_requestCache.js +1 -1
- package/support/_restApiJson.d.ts +1 -1
- package/support/esri.d.ts +76 -76
- package/support/esri.js +1 -1
- package/tasks/geocoding/ArcGISGeocoder.js +1 -1
- package/tasks/geocoding/Geocoder.d.ts +1 -1
- package/tasks/geocoding/Geocoder.js +1 -1
- package/tasks/geocoding/utilities.js +1 -1
- package/tasks/identify/ArcGISSublayerQueryIdentifyProvider.js +1 -1
- package/tasks/identify/BuildingComponentSublayerClientSideIdentifyProvider.js +1 -1
- package/tasks/identify/BuildingComponentSublayerHitTestIdentifyProvider.js +1 -1
- package/tasks/identify/CSVLayer3DHitTestIdentifyProvider.js +1 -1
- package/tasks/identify/CSVLayerClientSideQueryIdentifyProvider.js +1 -1
- package/tasks/identify/ClientSideIdentifyProvider.d.ts +2 -2
- package/tasks/identify/ClientSideIdentifyProvider.js +1 -1
- package/tasks/identify/FeatureLayer3DHitTestIdentifyProvider.js +1 -1
- package/tasks/identify/FeatureLayerClientSideIdentifyProvider.js +1 -1
- package/tasks/identify/FeatureLayerQueryIdentifyProvider.js +1 -1
- package/tasks/identify/GeoRSSLayerIdentifyProvider.js +1 -1
- package/tasks/identify/GraphicsLayerQueryIdentifyProvider.js +1 -1
- package/tasks/identify/HitTestIdentifyProvider.d.ts +2 -2
- package/tasks/identify/HitTestIdentifyProvider.js +1 -1
- package/tasks/identify/IdentifyError.js +1 -1
- package/tasks/identify/IdentifyProviderBase.js +1 -1
- package/tasks/identify/IdentifyService.js +1 -1
- package/tasks/identify/ImageryLayerIdentifyProvider.js +1 -1
- package/tasks/identify/KMLLayerQueryIdentifyProvider.js +1 -1
- package/tasks/identify/PointCloudLayerHitTestIdentifyProvider.js +1 -1
- package/tasks/identify/SceneLayerClientSideIdentifyProvider.js +1 -1
- package/tasks/identify/SceneLayerHitTestIdentifyProvider.js +1 -1
- package/tasks/identify/SceneLayerQueryIdentifyProvider.js +1 -1
- package/tasks/identify/StreamLayerClientSideQueryIdentifyProvider.js +1 -1
- package/tasks/identify/StreamLayerQueryIdentifyProvider.js +1 -1
- package/tasks/identify/SubtypeSublayerClientSideIdentifyProvider.js +1 -1
- package/tasks/identify/SubtypeSublayerQueryIdentifyProvider.js +1 -1
- package/tasks/identify/WMSSublayerIdentifyProvider.js +1 -1
- package/tasks/query/ArcGISRelationship.js +1 -1
- package/tasks/query/ArcGISServiceTableQueryProvider.js +1 -1
- package/tasks/query/ArcGISSublayerQueryProvider.js +1 -1
- package/tasks/query/BuildingComponentSublayerClientSideQueryProvider.js +1 -1
- package/tasks/query/CSVLayerClientSideQueryProvider.js +1 -1
- package/tasks/query/CSVLayerQueryProvider.js +1 -1
- package/tasks/query/ClientSideQueryProvider.d.ts +2 -2
- package/tasks/query/ClientSideQueryProvider.js +1 -1
- package/tasks/query/FeatureLayerQueryProvider.js +1 -1
- package/tasks/query/GeoRSSLayerQueryProvider.js +1 -1
- package/tasks/query/GraphicsLayerQueryProvider.js +1 -1
- package/tasks/query/ImageryLayerQueryProvider.js +1 -1
- package/tasks/query/KMLLayerQueryProvider.js +1 -1
- package/tasks/query/QueryBasedRelationship.js +1 -1
- package/tasks/query/QueryError.js +1 -1
- package/tasks/query/QueryProviderBase.js +1 -1
- package/tasks/query/QueryService.js +1 -1
- package/tasks/query/SceneLayerClientSideQueryProvider.js +1 -1
- package/tasks/query/SceneLayerQueryProvider.js +1 -1
- package/tasks/query/StreamLayerClientSideQueryProvider.js +1 -1
- package/tasks/query/StreamLayerQueryProvider.js +1 -1
- package/tasks/query/SubtypeSublayerQueryProvider.js +1 -1
- package/tasks/search/ArcGISGeocoderSearchProvider.js +1 -1
- package/tasks/search/GeocoderSearchProvider.js +1 -1
- package/tasks/search/QuerySearchProvider.js +1 -1
- package/tasks/search/SearchError.js +1 -1
- package/tasks/search/SearchProviderBase.js +1 -1
- package/tasks/search/SearchService.js +1 -1
- package/tasks/search/_utilities.js +1 -1
- package/utilities/CollectionProxy.js +1 -1
- package/utilities/CopyOnWriteCollection.js +1 -1
- package/utilities/GeometryServiceError.js +1 -1
- package/utilities/MapTransformCollection.js +1 -1
- package/utilities/ObservableMap.js +1 -1
- package/utilities/ObservableSet.js +1 -1
- package/utilities/ObservableWeakSet.js +1 -1
- package/utilities/ReadOnlyCollection.js +1 -1
- package/utilities/ReadOnlyMap.js +1 -1
- package/utilities/_layers.js +1 -1
- package/utilities/_ogc.js +1 -1
- package/utilities/arcade.js +1 -1
- package/utilities/array.js +1 -1
- package/utilities/asyncIterable.d.ts +1 -1
- package/utilities/asyncIterable.js +1 -1
- package/utilities/basemaps.js +1 -1
- package/utilities/checkArg.js +1 -1
- package/utilities/collection.js +1 -1
- package/utilities/date.js +1 -1
- package/utilities/esri.js +1 -1
- package/utilities/extensions.js +1 -1
- package/utilities/geometry.d.ts +2 -2
- package/utilities/geometry.js +1 -1
- package/utilities/iterable.js +1 -1
- package/utilities/log.d.ts +1 -1
- package/utilities/log.js +1 -1
- package/utilities/mapping.js +1 -1
- package/utilities/math.js +1 -1
- package/utilities/number.js +1 -1
- package/utilities/object.js +1 -1
- package/utilities/portal.d.ts +3 -3
- package/utilities/portal.js +1 -1
- package/utilities/promise.d.ts +1 -1
- package/utilities/promise.js +1 -1
- package/utilities/query.js +1 -1
- package/utilities/relationships.js +1 -1
- package/utilities/scaleRanges.d.ts +1 -1
- package/utilities/set.js +1 -1
- package/utilities/string.d.ts +6 -21
- package/utilities/string.js +1 -1
- package/utilities/symbol.js +1 -1
- package/utilities/uri.js +1 -1
- package/utilities/watch.js +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{isSceneLayerExtension}from"../../utilities/extensions.js";import{isSceneLayer}from"../../utilities/layers.js";import{SceneLayerQueryProvider}from"../query/SceneLayerQueryProvider.js";import{IdentifyProviderBase}from"./IdentifyProviderBase.js";export class SceneLayerQueryIdentifyProvider extends
|
|
1
|
+
import{isSceneLayerExtension as r}from"../../utilities/extensions.js";import{isSceneLayer as e}from"../../utilities/layers.js";import{SceneLayerQueryProvider as t}from"../query/SceneLayerQueryProvider.js";import{IdentifyProviderBase as i}from"./IdentifyProviderBase.js";export class SceneLayerQueryIdentifyProvider extends i{constructor(){super(...arguments),this.queryProvider=new t}isSupported(t,i,s){return r(t)&&e(t.layer)&&!t.enableClientSideData&&this._supportsQuery(t)}_identify(r,e,t){const i=this,s={...t};return async function*(){s.spatialFilter=e,yield*i.queryProvider.query(r,"1=1",s)}()}_count(r,e,t){const i={...t};return i.spatialFilter=e,this.queryProvider.count(r,"1=1",i)}_supportsQuery(r){return!!r.layer?.associatedLayer}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{isStreamLayer}from"../../utilities/_layers.js";import{isWebScene}from"../../utilities/mapping.js";import{ClientSideIdentifyProvider}from"./ClientSideIdentifyProvider.js";export class StreamLayerClientSideQueryIdentifyProvider extends
|
|
1
|
+
import{isStreamLayer as e}from"../../utilities/_layers.js";import{isWebScene as r}from"../../utilities/mapping.js";import{ClientSideIdentifyProvider as i}from"./ClientSideIdentifyProvider.js";export class StreamLayerClientSideQueryIdentifyProvider extends i{isSupported(i,t,s){const o=i._layerView&&r(i.mapExtension?.map),{layer:n}=i;return e(n)&&!o}_createQuery(e,r,i){const t=super._createQuery(e,r,i),s=t.outFields?.findIndex((e=>"__esri_stream_id__"===e));return s>=0&&t.outFields.splice(s,1),t}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{getLogger}from"../../utilities/log.js";import{StreamLayerClientSideQueryIdentifyProvider}from"./StreamLayerClientSideQueryIdentifyProvider.js";
|
|
1
|
+
import{getLogger as e}from"../../utilities/log.js";import{StreamLayerClientSideQueryIdentifyProvider as r}from"./StreamLayerClientSideQueryIdentifyProvider.js";e("StreamLayerQueryIdentifyProvider").warn("StreamLayerQueryIdentifyProvider is now deprecated as of 2021 and will removed by 2022. Use StreamLayerClientSideQueryIdentifyProvider instead.");export const StreamLayerQueryIdentifyProvider=r;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{isPoint}from"../../utilities/geometry.js";import{isSubtypeSublayer}from"../../utilities/layers.js";import{ClientSideIdentifyProvider}from"./ClientSideIdentifyProvider.js";export class SubtypeSublayerClientSideIdentifyProvider extends
|
|
1
|
+
import{isPoint as e}from"../../utilities/geometry.js";import{isSubtypeSublayer as r}from"../../utilities/layers.js";import{ClientSideIdentifyProvider as t}from"./ClientSideIdentifyProvider.js";export class SubtypeSublayerClientSideIdentifyProvider extends t{isSupported(t,i,s){return r(t?.sublayer)&&t.sublayer.layer&&t.layerExtension.enableClientSideData&&i&&!!t.layerExtension._layerView?.view?.extent?.intersects(e(i)?i:i.extent)}_createQuery(e,r,t,i){const s=super._createQuery(e,r,t,i),{subtypeField:l}=e.sublayer.layer,y=e.sublayer.subtypeCode;return l&&(s.where=`${l}=${y}`),s}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{executeQuery,executeCount}from"../../support/_query.js";import{isSubtypeSublayerExtension}from"../../utilities/extensions.js";import{removeZValues}from"../../utilities/geometry.js";import{isSubtypeSublayer}from"../../utilities/layers.js";import{IdentifyProviderBase}from"./IdentifyProviderBase.js";export class SubtypeSublayerQueryIdentifyProvider extends
|
|
1
|
+
import{executeQuery as e,executeCount as t}from"../../support/_query.js";import{isSubtypeSublayerExtension as r}from"../../utilities/extensions.js";import{removeZValues as s}from"../../utilities/geometry.js";import{isSubtypeSublayer as u}from"../../utilities/layers.js";import{IdentifyProviderBase as o}from"./IdentifyProviderBase.js";export class SubtypeSublayerQueryIdentifyProvider extends o{isSupported(e,t,s){return r(e)&&u(e.sublayer)&&!!e.sublayer.layer}_identify(t,r,u){const o=t,{layer:a}=o.sublayer,i=a.createQuery();let l=r;return l&&(a.hasZ||a.capabilities?.data?.supportsZ)&&(l=s(l.clone())),i.geometry=l,i.outFields=t.featureSettings.outFields,i.returnGeometry=u.returnGeometry,i.outSpatialReference=u.outSpatialReference,i.maxAllowableOffset=u.maxAllowableOffset,i.where=`${a.subtypeField}=${o.sublayer.subtypeCode}`,a.capabilities.query.supportsPagination&&(i.num=u.maxResults),e(i,o,a,u.cancelToken)}_count(e,r,u){const o=e,{layer:a}=o.sublayer,i=a.createQuery();let l=r;return l&&(a.hasZ||a.capabilities?.data?.supportsZ)&&(l=s(l.clone())),i.geometry=l,i.num=u.maxResults,i.returnGeometry=u.returnGeometry,i.outFields=e.featureSettings.outFields,i.where=`${a.subtypeField}=${o.sublayer.subtypeCode}`,t(i,o,a,u.cancelToken)}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import e from"@arcgis/core/geometry/SpatialReference";import{ArgumentError as t}from"../../ArgumentError.js";import{wfsFeatureCollectionToFeatures as s}from"../../mapping/support/ogc.js";import{DefaultRequestHelper as r}from"../../utilities/RequestHelper.js";import{OgcNamespace as i,inferGmlVersion as a,getEpsgCode as n,WfsVersions as o}from"../../utilities/_ogc.js";import{checkArg as l}from"../../utilities/checkArg.js";import{isWMSSublayerExtension as u}from"../../utilities/extensions.js";import{esriToGml as m,project as c,esriWktToWkid as p}from"../../utilities/geometry.js";import{IdentifyProviderBase as f}from"./IdentifyProviderBase.js";export class WMSSublayerIdentifyProvider extends f{constructor(){super(...arguments),this.requestHelper=new r}isSupported(e,t,s){return u(e)&&void 0!==e.layerExtension&&void 0!==e.layerExtension.wfsUrl&&void 0!==e.layerExtension.wfsCapabilities}_identify(e,t,r){const i=(async()=>{const s=e;await s.layerExtension.wfsCapabilities.initialize();const i=this._resolveWfsFeatureType(s),a=await this._createGetFeatureSpatialQuery(e,t,i,r),n={method:"post",body:(new XMLSerializer).serializeToString(a),headers:{"Content-Type":"text/xml; charset=utf-8"}};return this.requestHelper.request(s.layerExtension.wfsUrl,n)})();return async function*(){const t=await i,r=await t.text(),a=(new DOMParser).parseFromString(r,"text/xml");if(!t||!a||a.childNodes.length<1)throw new Error("Response to WFS GetFeature request was invalid.");yield*s(a.childNodes[0],e)}()}async _count(e,t,r={}){const i=(async()=>{const s=e;await s.initialize(),await s.layerExtension.wfsCapabilities.initialize();const i=this._resolveWfsFeatureType(s),a=await this._createGetFeatureSpatialQuery(e,t,i,r),n={method:"post",body:(new XMLSerializer).serializeToString(a),headers:{"Content-Type":"text/xml; charset=utf-8"}};return this.requestHelper.request(s.layerExtension.wfsUrl,n)})(),a=await i,n=await a.text(),o=(new DOMParser).parseFromString(n,"text/xml");if(!a||!o||o.childNodes.length<1)throw new Error("Response to WFS GetFeature request was invalid.");const l=s(o.childNodes[0],e);return{source:e,count:l.length}}_resolveWfsFeatureType(e){l("sublayerX",e).isNotMissing().satisfies((e=>e.layerExtension?.wfsCapabilities?.featureTypes?.length>0),"Could not find a matching WFS feature type.");let s=e.layerExtension.wfsCapabilities.featureTypes.filter((t=>t.name===e.sublayer.name));if(s.length>0||(s=e.layerExtension.wfsCapabilities.featureTypes.filter((t=>this._spliceName(t.name)===e.sublayer.name))),!(s.length>0))throw new t("sublayerX","Could not find a matching WFS feature type");return s[0]}_spliceName(e){l("name",e).isNotNull();const t=e.indexOf(":");return t<0?e:e.slice(t+1,e.length)}async _createGetFeatureSpatialQuery(e,t,s,r){l("source",e).isNotMissing().satisfies((e=>u(e))),l("geometry",t).isNotMissing().satisfies((e=>["extent","point","polygon","polyline"].includes(e.type)));const i=e,a=i.layerExtension.wfsCapabilities,n=this._createGetFeatureElement(a,r),o=await this._createQueryElement(s,t);n.appendChild(o);let m=s.attributes;const{outFields:c}=e.featureSettings;c&&c.length>0&&(c.includes("*")||(m=c));for(const e of m){const t=this._createElement("wfs","PropertyName");t.textContent=e,o.appendChild(t)}const p=this._createFilterElement(i);o.appendChild(p);const f=this._createSpatialOperatorElement(i);p.appendChild(f);const y=this._createGeometryFieldElement(i,s);f.appendChild(y);const h=await this._createGeometryElement(i,t,a,s);return f.appendChild(h),n}_createGetFeatureElement(e,t){const s=this._createElement("wfs","GetFeature");s.setAttribute("service","WFS"),s.setAttribute("version",`${e.wfsVersion}`),s.setAttribute("xmlns:xs",i.XS),s.setAttribute("xmlns:ogc",i.OGC),s.setAttribute("xmlns:wfs",this._getWfsNameSpace(e.wfsVersion)),s.setAttribute("xmlns:gml",this._getGmlNameSpace(e.wfsVersion)),s.setAttribute("outputFormat",this._getOutputFormat(e));let r=1e3;if(t?.maxResults&&(r=t.maxResults),s.setAttribute("count",r.toString()),"2.0.0"===e.wfsVersion)s.setAttribute("xmlns:fes",i.FES_2_0);else s.setAttribute("xmlns:fes",i.FES);return s}async _createQueryElement(e,t){const s=this._createElement("wfs","Query"),r=await this._getSrsName(e,t);return s.setAttribute("typeNames",e.name),s.setAttribute("srsName",r),s}_createFilterElement(e){return"2.0.0"===e.layerExtension.wfsCapabilities.wfsVersion?this._createElement("fes","Filter"):this._createElement("ogc","Filter")}_createSpatialOperatorElement(e){return"2.0.0"===e.layerExtension.wfsCapabilities.wfsVersion?this._createElement("fes","Intersects"):this._createElement("ogc","Intersects")}_createGeometryFieldElement(e,t){if(l("featureType.geometryField",t.geometryField).isNotMissing("The WFS feature type does not have a geometry field"),"2.0.0"===e.layerExtension.wfsCapabilities.wfsVersion){const e=this._createElement("fes","ValueReference");return e.textContent=t.geometryField,e}{const e=this._createElement("ogc","PropertyName");return e.textContent=t.geometryField,e}}async _createGeometryElement(e,t,s,r){l("geometry",t).isNotMissing(),l("geometry.spatialReference",t.spatialReference).isNotMissing();const i={gmlVersion:a(s.wfsVersion)};if(i.srsName=await this._getSrsName(r,t),i.srsName===r.defaultCrs){const e=n(r.defaultCrs),s=await this.projectGeometry(t,e);return m(s,i)}return m(t,i)}async projectGeometry(t,s){const r=await c([t],new e({wkid:s}));if(r&&r.length>0)return r[0];throw new Error("Unable to create a geometry element.")}_createElement(e,t){l("name",t).isNotMissing();const s=document.implementation.createDocument(void 0,"temp",void 0);return e?s.createElement(`${e}:${t}`):s.createElement(t)}_getWfsNameSpace(e){switch(e){case"1.0.0":case"1.1.0":return i.WFS;default:return i.WFS_2_0}}_getGmlNameSpace(e){switch(e){case"1.0.0":case"1.1.0":return i.GML;default:return i.GML_3_2}}_getOutputFormat(e){const t=["text/xml; version=gml/","text/xml; subType=gml/","application/gml+xml; version="],s=["2.1","2.1.2","2.1.1","2.0.0"],r=["3.2","3.2.1","3.1","3.1.1","3.1.0","3.0.1","3.0.0"];let i;switch(e.wfsVersion){case o.WFS1_0_0:return i=this._matchOutputFormat(t,s,e),i||"GML2";case o.WFS1_1_0:return i=this._matchOutputFormat(t,r,e),i||"text/xml; subtype=gml/3.1.1";default:return i=this._matchOutputFormat(t,r,e),i||"text/gml+xml; version=3.2"}}_matchOutputFormat(e,t,s){for(const r of t)for(const t of e){const e=s.getFeatureOutputFormats.filter((e=>e===`${t}${r}`));if(e&&e.length>0)return e[0]}}async _getSrsName(e,t){l("wfsFeatureType",e).isNotMissing(),l("geometry",t).isNotMissing();const s=t.spatialReference.wkid?t.spatialReference.wkid:await p(t.spatialReference.wkt);if(s===n(e.defaultCrs))return`EPSG:${s}`;for(const t of e.otherCrs)if(s===n(t))return`EPSG:${s}`;return e.defaultCrs}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__decorate}from"tslib";import
|
|
1
|
+
import{__decorate as e}from"tslib";import t from"@arcgis/core/rest/support/RelationshipQuery";import{isSublayerExtension as r}from"../../ItemType.js";import{toFeature as i}from"../../data/Feature.js";import{FeatureSet as s}from"../../data/FeatureSet.js";import{cancelifyWithAbortSignal as a}from"../../support/Cancellable.js";import{serializable as o}from"../../support/Serializable.js";import{isFeatureLayer as n,isMapImageSublayer as l,isSubtypeGroupLayer as u}from"../../utilities/_layers.js";import{isArcGISServiceTableExtension as p,isFeatureLayerExtension as y,isSubtypeGroupLayerExtension as c,isSubtypeSublayerExtension as d}from"../../utilities/extensions.js";import{QueryBasedRelationship as m}from"./QueryBasedRelationship.js";const f=new WeakMap;let h=class extends m{constructor(e){super(e),this.relationshipType="ArcGISRelationship",this.relationshipTableId=e.relationshipTableId,this.originForeignKey=e.originForeignKey,this.destinationForeignKey=e.destinationForeignKey}get isAttributed(){return"number"==typeof this.relationshipTableId}_getSerializableProperties(){return{...super._getSerializableProperties(),$relationshipType:{serializeModes:["initial"],serialize:()=>"ArcGISRelationship"},destinationForeignKey:"initial",originForeignKey:"initial",relationshipTableId:"initial"}}async _getRelatedFeatures(e,t){return a((async t=>(await F([e],g(this.source),this.relatedSource,{relationshipId:+this.id,signal:t})).get(e)),t?.cancelToken)}async _getAllRelatedFeatures(e,t){return F(e,g(this.source),this.relatedSource,{relationshipId:+this.id})}};h=e([o],h);export{h as ArcGISRelationship};function g(e){let t;if(p(e))t=e.table;else if(y(e))t=e.layer;else if(r(e)&&l(e.sublayer))t=e.sublayer;else if(d(e)&&e.sublayer?.layer)t=e.sublayer.layer;else{if(!c(e))throw new Error(`Cannot query for related records. Unsupported FeatureSource: ${e.title} (${e.itemType}/${e.id})`);t=e.layer}return t}const b={returnGeometry:!0};async function F(e,r,a,o){const l=e.map((e=>+e?.primaryKey)),{signal:p,...y}=o,c=new t({...b,objectIds:l.filter((e=>!isNaN(e)&&"number"==typeof e)),outFields:a?.featureSettings.outFields??["*"],...y});let d;if(n(r)||u(r))d=r;else{const e=r;f.has(e)||f.set(e,await e.createFeatureLayer()),d=f.get(e)}const m=await d.queryRelatedFeatures(c,{signal:p}),h=new Map;return l.forEach(((t,r)=>{h.set(e[r],new s({source:a,features:m[t]?.features.map((e=>i(e,{source:a})))??[]}))})),h}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import e from"@arcgis/core/rest/support/Query";import{executeQuery as r,executeCountByQuery as t}from"../../support/_query.js";import{isFeatureLayer as s}from"../../utilities/layers.js";import{QueryProviderBase as o}from"./QueryProviderBase.js";export class ArcGISServiceTableQueryProvider extends o{isSupported(e){const{table:r}=e;return s(r)&&e.capabilities.supportsQuery}_query(e,t,s){const{table:o}=e,i=o.createQuery();return i.where=t,i.outFields=s.outFields,o.capabilities?.query?.supportsPagination&&(i.num=s.maxResults),r(i,e,o,s.cancelToken)}_count(r,s,o){const{table:i}=r,u=new e({returnGeometry:!1});return u.where=s,i.capabilities?.query?.supportsPagination&&(u.num=o.maxResults),t(u,r,i,o.cancelToken)}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{executeQuery,executeCountByQuery}from"../../support/_query.js";import{isMapImageSublayerExtension}from"../../utilities/extensions.js";import{QueryProviderBase}from"./QueryProviderBase.js";export class ArcGISSublayerQueryProvider extends
|
|
1
|
+
import{executeQuery as e,executeCountByQuery as t}from"../../support/_query.js";import{isMapImageSublayerExtension as r}from"../../utilities/extensions.js";import{QueryProviderBase as s}from"./QueryProviderBase.js";export class ArcGISSublayerQueryProvider extends s{isSupported(e){return r(e)&&e.capabilities.supportsQuery}_query(t,r,s){const{sublayer:a}=t,i=a.createQuery();return i.where=r,i.outFields=s.outFields,i.returnGeometry=s.returnGeometry,i.outSpatialReference=s.outSpatialReference,i.maxAllowableOffset=s.maxAllowableOffset,s.spatialFilter&&(i.spatialRelationship="intersects",i.geometry=s.spatialFilter),t.supportsPagination&&(i.num=s.maxResults),e(i,t,a,s.cancelToken)}_count(e,r,s){const{sublayer:a}=e,i=a.createQuery();return i.where=r,i.returnGeometry=s.returnGeometry,i.outFields=s.outFields,s.spatialFilter&&(i.spatialRelationship="intersects",i.geometry=s.spatialFilter),i.num=s.maxResults,t(i,e,a,s.cancelToken)}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{isBuildingComponentSublayer}from"../../utilities/_layers.js";import{empty}from"../../utilities/asyncIterable.js";import{isWebScene}from"../../utilities/mapping.js";import{ClientSideQueryProvider}from"./ClientSideQueryProvider.js";export class BuildingComponentSublayerClientSideQueryProvider extends
|
|
1
|
+
import{isBuildingComponentSublayer as e}from"../../utilities/_layers.js";import{empty as r}from"../../utilities/asyncIterable.js";import{isWebScene as t}from"../../utilities/mapping.js";import{ClientSideQueryProvider as i}from"./ClientSideQueryProvider.js";export class BuildingComponentSublayerClientSideQueryProvider extends i{isSupported(r){const i=t(r?.layerExtension?.mapExtension?.map),{sublayer:u}=r;return e(u)&&i}_query(e,t,i){return e._layerView?super._query(e,t,i):r()}async _count(e,r,t){return e._layerView?super._count(e,r,t):{source:e,count:0}}_createQuery(e,r,t){const i=super._createQuery(e,r,t);return"mesh"===e.sublayer.geometryType&&(i.returnGeometry=!1),i}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{executeQuery,executeCount}from"../../support/_query.js";import{isCSVLayer}from"../../utilities/_layers.js";import{removeZValues}from"../../utilities/geometry.js";import{QueryProviderBase}from"./QueryProviderBase.js";export class CSVLayerClientSideQueryProvider extends
|
|
1
|
+
import{executeQuery as e,executeCount as t}from"../../support/_query.js";import{isCSVLayer as r}from"../../utilities/_layers.js";import{removeZValues as s}from"../../utilities/geometry.js";import{QueryProviderBase as i}from"./QueryProviderBase.js";export class CSVLayerClientSideQueryProvider extends i{isSupported(e){const{layer:t}=e;return r(t)}_query(t,r,i){const{layer:a}=t,o=a.createQuery();o.where=r,o.outFields=i.outFields,o.returnGeometry=i.returnGeometry,o.outSpatialReference=i.outSpatialReference,o.maxAllowableOffset=i.maxAllowableOffset,o.returnZ="scene"===t.mapExtension?.viewMode;let l=i.spatialFilter;return l&&(o.spatialRelationship="intersects",a.capabilities?.data?.supportsZ||(l=s(l.clone())),o.geometry=l),a.capabilities.query.supportsPagination&&(o.num=i.maxResults),e(o,t,a,i.cancelToken)}async _count(e,r,i){const{layer:a}=e,o=a.createQuery();o.where=r,o.outFields=i.outFields,o.returnGeometry=i.returnGeometry;let l=i.spatialFilter;return l&&(o.spatialRelationship="intersects",l&&!a.capabilities?.data?.supportsZ&&(l=s(l.clone())),o.geometry=l),o.num=i.maxResults,t(o,e,a,i.cancelToken)}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{getLogger}from"../../utilities/log.js";import{CSVLayerClientSideQueryProvider}from"./CSVLayerClientSideQueryProvider.js";
|
|
1
|
+
import{getLogger as e}from"../../utilities/log.js";import{CSVLayerClientSideQueryProvider as r}from"./CSVLayerClientSideQueryProvider.js";e("CSVLayerQueryProvider").warn("CSVLayerQueryProvider is now deprecated as of 2021 and will removed by 2022. Use CSVLayerClientSideQueryProvider instead.");export const CSVLayerQueryProvider=r;
|
|
@@ -13,11 +13,11 @@ import { QueryProviderBase } from "./QueryProviderBase.js";
|
|
|
13
13
|
/**
|
|
14
14
|
* The types of LayerExtensions that support client-side queries.
|
|
15
15
|
*/
|
|
16
|
-
export
|
|
16
|
+
export type ClientSideQueryableLayerExtension = CSVLayerExtension | FeatureLayerExtension | SceneLayerExtension | StreamLayerExtension | SubtypeGroupLayerExtension;
|
|
17
17
|
/**
|
|
18
18
|
* The types of SublayerExtensions that support client-side queries.
|
|
19
19
|
*/
|
|
20
|
-
export
|
|
20
|
+
export type ClientSideQueryableSublayerExtension = BuildingComponentSublayerExtension | SubtypeSublayerExtension;
|
|
21
21
|
/**
|
|
22
22
|
* A query provider that only uses client-side data.
|
|
23
23
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{toFeature}from"../../data/Feature.js";import{cancelify,cancelifyWithAbortSignal}from"../../support/Cancellable.js";import*as
|
|
1
|
+
import{toFeature as e}from"../../data/Feature.js";import{cancelify as t,cancelifyWithAbortSignal as r}from"../../support/Cancellable.js";import*as i from"../../utilities/asyncIterable.js";import{isSubtypeSublayerExtension as a}from"../../utilities/extensions.js";import{isBuildingComponentSublayer as n}from"../../utilities/layers.js";import{QueryProviderBase as s}from"./QueryProviderBase.js";export class ClientSideQueryProvider extends s{get _waitForUpdatingFinished(){return!0}_query(t,r,a){const n=this;return async function*(){const s=await n._getClientSideLayerGraphics(t,r,a);s?.length?yield*s.map((r=>e(r,{source:t}))):yield*i.empty()}()}async _count(e,t,r){const i=await this._getClientSideLayerGraphics(e,t,r);return{source:e,count:i?i.length:0}}_createQuery(e,t,r){const i=a(e)?e.layerExtension:e,{_layerView:s,featureSettings:o}=i,l=n(i.sublayer)?e.layerExtension?.mapExtension:e.mapExtension,u=s.createQuery();return u.where=t,u.geometry=r.spatialFilter,u.outFields=o.outFields,u.returnGeometry=r.returnGeometry,u.outSpatialReference=r.outSpatialReference,u.maxAllowableOffset=r.maxAllowableOffset,u.num=r.maxResults,u.returnZ="scene"===l?.viewMode,u}async _getClientSideLayerGraphics(e,i,n){const s=a(e)?e.layerExtension:e,{_layerView:o}=s;if(!o)return;this._waitForUpdatingFinished&&await t(new Promise(((e,t)=>{o.updating||e();const r=o.watch("updating",(t=>{t||(r.remove(),e())}))})),n.cancelToken);return(await r((async t=>o.queryFeatures(this._createQuery(e,i,n),{signal:t})),n.cancelToken))?.features}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{executeQuery,executeCount}from"../../support/_query.js";import{isFeatureLayer}from"../../utilities/_layers.js";import{removeZValues}from"../../utilities/geometry.js";import{QueryProviderBase}from"./QueryProviderBase.js";export class FeatureLayerQueryProvider extends
|
|
1
|
+
import{executeQuery as e,executeCount as t}from"../../support/_query.js";import{isFeatureLayer as r}from"../../utilities/_layers.js";import{removeZValues as s}from"../../utilities/geometry.js";import{QueryProviderBase as a}from"./QueryProviderBase.js";export class FeatureLayerQueryProvider extends a{isSupported(e){const{layer:t}=e;return r(t)&&e.capabilities.supportsQuery}_query(t,r,a){const{layer:i}=t,o=i.createQuery();o.where=r,o.outFields=a.outFields,o.returnGeometry=a.returnGeometry,o.outSpatialReference=a.outSpatialReference,o.maxAllowableOffset=a.maxAllowableOffset,o.returnZ="scene"===t.mapExtension?.viewMode;let l=a.spatialFilter;return l&&(o.spatialRelationship="intersects",!l||i.hasZ&&i.capabilities?.data?.supportsZ||(l=s(l.clone())),o.geometry=l),i.capabilities.query.supportsPagination&&(o.num=a.maxResults),e(o,t,i,a.cancelToken)}_count(e,r,a){const{layer:i}=e,o=i.createQuery();o.where=r,o.outFields=a.outFields,o.returnGeometry=a.returnGeometry;let l=a.spatialFilter;return l&&(o.spatialRelationship="intersects",!l||i.hasZ&&i.capabilities?.data?.supportsZ||(l=s(l.clone())),o.geometry=l),o.num=a.maxResults,t(o,e,i,a.cancelToken)}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{executeQuery,executeCount}from"../../support/_graphicsQuery.js";import{isGeoRssLayer}from"../../utilities/_layers.js";import{map}from"../../utilities/promise.js";import{QueryProviderBase}from"./QueryProviderBase.js";export class GeoRSSLayerQueryProvider extends
|
|
1
|
+
import{executeQuery as r,executeCount as e}from"../../support/_graphicsQuery.js";import{isGeoRssLayer as o}from"../../utilities/_layers.js";import{map as s}from"../../utilities/promise.js";import{QueryProviderBase as t}from"./QueryProviderBase.js";export class GeoRSSLayerQueryProvider extends t{isSupported(r){const{layer:e}=r;return o(e)}async*_query(e,o,s){const t=e;for(const e of t._featureLayerExtensions){const a=r(o,t,e.layer.source,s);for await(const r of a)r.schema.parent=e.schema,yield r}}async _count(r,o,t){const a=r,i=await s(a._featureLayerExtensions,(r=>e(o,a,r.layer.source,t)));let n=0;for(const r of i)n+=r.count;return{source:r,count:n}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{executeQuery,executeCount}from"../../support/_graphicsQuery.js";import{isGraphicsLayer}from"../../utilities/_layers.js";import{QueryProviderBase}from"./QueryProviderBase.js";export class GraphicsLayerQueryProvider extends
|
|
1
|
+
import{executeQuery as r,executeCount as e}from"../../support/_graphicsQuery.js";import{isGraphicsLayer as s}from"../../utilities/_layers.js";import{QueryProviderBase as t}from"./QueryProviderBase.js";export class GraphicsLayerQueryProvider extends t{isSupported(r){const{layer:e}=r;return s(e)&&r.capabilities.supportsQuery}_query(e,s,t){const i=e.layer;return r(s,e,i.graphics,t)}_count(r,s,t){const i=r.layer;return e(s,r,i.graphics,t)}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{executeQueryJSON,executeForCount}from"@arcgis/core/rest/query";import
|
|
1
|
+
import{executeQueryJSON as r,executeForCount as e}from"@arcgis/core/rest/query";import t from"@arcgis/core/rest/support/Query";import{InvalidOperationError as u}from"../../InvalidOperationError.js";import{executeQuery as s,executeCount as o}from"../../support/_query.js";import{isImageryLayer as i}from"../../utilities/_layers.js";import{QueryProviderBase as n}from"./QueryProviderBase.js";export class ImageryLayerQueryProvider extends n{isSupported(r){const{layer:e}=r;return i(e)&&r.capabilities.supportsQuery}_query(r,e,t){const u=this._getQueryable(r),o=a();return o.where=e,o.outFields=t.outFields,o.num=t.maxResults,s(o,r,u,t.cancelToken)}async _count(r,e,t){const u=this._getQueryable(r),s=a();return s.where=e,s.outFields=t.outFields,s.num=t.maxResults,o(s,r,u,t.cancelToken)}_getQueryable(t){return{queryFeatures(e,s){const o=r(t.layer.url,e??a(),s);if(!t.capabilities.supportsQuery)throw new u("Querying features not supported");return o},queryFeatureCount(r,s){const o=e(t.layer.url,r??a(),s);if(!t.capabilities.supportsQuery)throw new u("Querying features not supported");return o}}}}function a(){return new t({where:"1=1",outFields:["*"],returnGeometry:!0})}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{executeQuery,executeCount}from"../../support/_graphicsQuery.js";import{isKMLLayer}from"../../utilities/_layers.js";import{QueryProviderBase}from"./QueryProviderBase.js";export class KMLLayerQueryProvider extends
|
|
1
|
+
import{executeQuery as r,executeCount as e}from"../../support/_graphicsQuery.js";import{isKMLLayer as s}from"../../utilities/_layers.js";import{QueryProviderBase as t}from"./QueryProviderBase.js";export class KMLLayerQueryProvider extends t{isSupported(r){return s(r.layer)}_query(e,s,t){return r(s,e,e._graphics,t)}_count(r,s,t){return e(s,r,r._graphics,t)}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__decorate}from"tslib";import{FeatureSet}from"../../data/FeatureSet.js";import{RelationshipBase}from"../../data/RelationshipBase.js";import{serializable}from"../../support/Serializable.js";import{escape}from"../../support/_query.js";import{checkArg}from"../../utilities/checkArg.js";import{QueryService}from"./QueryService.js";let
|
|
1
|
+
import{__decorate as e}from"tslib";import{FeatureSet as t}from"../../data/FeatureSet.js";import{RelationshipBase as i}from"../../data/RelationshipBase.js";import{serializable as r}from"../../support/Serializable.js";import{escape as s}from"../../support/_query.js";import{checkArg as a}from"../../utilities/checkArg.js";import{QueryService as l}from"./QueryService.js";let o=class extends i{constructor(e){super(e),this.relationshipType="QueryBasedRelationship",a("properties",e).isNotMissing(),a("properties.relatedSource",e.relatedSource).isNotMissing(),a("properties.keyField",e.keyField).isNotMissing().isNotEmpty(),a("properties.relatedKeyField",e.relatedKeyField).isNotMissing().isNotEmpty(),this.relatedSource=e.relatedSource,this.keyField=e.keyField,this.relatedKeyField=e.relatedKeyField,this.queryService=e.queryService||new l,this.cardinality=e.cardinality||"many-to-many"}_getSerializableProperties(){return{...super._getSerializableProperties(),keyField:"initial",relatedKeyField:"initial",$relationshipType:{serializeModes:["initial"],serialize:()=>"QueryBasedRelationship"},cardinality:"initial",relatedSource:"initial",queryService:{serialize:!1}}}async _getRelatedFeatures(e,i){const r=e.attributes.get(this.keyField);if(null==r)return new t({source:this.relatedSource});const a="string"==typeof r?`${this.relatedKeyField}='${s(r)}'`:`${this.relatedKeyField}=${r}`;return t.fromFeatureStream(this.queryService.query(this.relatedSource,a,i))}async _getAllRelatedFeatures(e,i){const r=new Map,a=[],l=new Set;e.forEach((e=>{const i=e.attributes.get(this.keyField);null==i?r.set(e,new t({source:this.relatedSource})):(a.push(e),l.add("string"==typeof i?`'${s(i)}'`:`${i}`))}));const o=`${this.relatedKeyField} IN (${[...l].join(", ")})`,d=await t.fromFeatureStream(this.queryService.query(this.relatedSource,o,i));return a.forEach((e=>{const i=e.attributes.get(this.keyField),s=new t({source:this.relatedSource});d.forEach((e=>{i===e.attributes.get(this.relatedKeyField)&&s.add(e)})),r.set(e,s)})),r}};o=e([r],o);export{o as QueryBasedRelationship};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{format}from"../../utilities/string.js";export class QueryError extends Error{constructor(
|
|
1
|
+
import{format as r}from"../../utilities/string.js";export class QueryError extends Error{constructor(e,t,s,...o){super(r(s||'Failed to query features for source "{0}" (ID: {1})',...s?o:[e.title,e.id])),this.name="QueryError",this.source=e,this.error=t}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{InvalidOperationError}from"../../InvalidOperationError.js";import{checkArg}from"../../utilities/checkArg.js";import{QueryOptions}from"./QueryOptions.js";export class QueryProviderBase{query(
|
|
1
|
+
import{InvalidOperationError as r}from"../../InvalidOperationError.js";import{checkArg as i}from"../../utilities/checkArg.js";import{QueryOptions as e}from"./QueryOptions.js";export class QueryProviderBase{query(t,o,s){if(i("source",t).isNotMissing(),i("where",o).isNotMissing(),!this.isSupported(t))throw new r("Unsupported feature source.");const u=this;return async function*(){await t.initialize(),yield*u._query(t,o,{...e.DEFAULTS,...e.fromFeatureSource(t),...s})}()}async count(t,o,s){if(i("source",t).isNotMissing(),i("where",o).isNotMissing(),!this.isSupported(t))throw new r("Unsupported feature source.");await t.initialize();const u={returnGeometry:!1,outFields:void 0};return this._count(t,o,{...e.fromFeatureSource(t),...s,...u})}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{InvalidOperationError}from"../../InvalidOperationError.js";import{isCancellation}from"../../support/utilities.js";import{checkArg}from"../../utilities/checkArg.js";import{Collection}from"../../utilities/collection.js";import{ArcGISServiceTableQueryProvider}from"./ArcGISServiceTableQueryProvider.js";import{ArcGISSublayerQueryProvider}from"./ArcGISSublayerQueryProvider.js";import{BuildingComponentSublayerClientSideQueryProvider}from"./BuildingComponentSublayerClientSideQueryProvider.js";import{CSVLayerClientSideQueryProvider}from"./CSVLayerClientSideQueryProvider.js";import{FeatureLayerQueryProvider}from"./FeatureLayerQueryProvider.js";import{GeoRSSLayerQueryProvider}from"./GeoRSSLayerQueryProvider.js";import{ImageryLayerQueryProvider}from"./ImageryLayerQueryProvider.js";import{KMLLayerQueryProvider}from"./KMLLayerQueryProvider.js";import{QueryError}from"./QueryError.js";import{QueryOptions}from"./QueryOptions.js";import{SceneLayerClientSideQueryProvider}from"./SceneLayerClientSideQueryProvider.js";import{SceneLayerQueryProvider}from"./SceneLayerQueryProvider.js";import{StreamLayerClientSideQueryProvider}from"./StreamLayerClientSideQueryProvider.js";import{SubtypeSublayerQueryProvider}from"./SubtypeSublayerQueryProvider.js";export class QueryService{constructor(){this.providers=new
|
|
1
|
+
import{InvalidOperationError as r}from"../../InvalidOperationError.js";import{isCancellation as e}from"../../support/utilities.js";import{checkArg as i}from"../../utilities/checkArg.js";import{Collection as o}from"../../utilities/collection.js";import{ArcGISServiceTableQueryProvider as t}from"./ArcGISServiceTableQueryProvider.js";import{ArcGISSublayerQueryProvider as s}from"./ArcGISSublayerQueryProvider.js";import{BuildingComponentSublayerClientSideQueryProvider as d}from"./BuildingComponentSublayerClientSideQueryProvider.js";import{CSVLayerClientSideQueryProvider as n}from"./CSVLayerClientSideQueryProvider.js";import{FeatureLayerQueryProvider as a}from"./FeatureLayerQueryProvider.js";import{GeoRSSLayerQueryProvider as p}from"./GeoRSSLayerQueryProvider.js";import{ImageryLayerQueryProvider as u}from"./ImageryLayerQueryProvider.js";import{KMLLayerQueryProvider as m}from"./KMLLayerQueryProvider.js";import{QueryError as y}from"./QueryError.js";import{QueryOptions as c}from"./QueryOptions.js";import{SceneLayerClientSideQueryProvider as f}from"./SceneLayerClientSideQueryProvider.js";import{SceneLayerQueryProvider as v}from"./SceneLayerQueryProvider.js";import{StreamLayerClientSideQueryProvider as h}from"./StreamLayerClientSideQueryProvider.js";import{SubtypeSublayerQueryProvider as w}from"./SubtypeSublayerQueryProvider.js";export class QueryService{constructor(){this.providers=new o,this.providers.add(new t),this.providers.add(new s),this.providers.add(new n),this.providers.add(new a),this.providers.add(new p),this.providers.add(new u),this.providers.add(new m),this.providers.add(new d),this.providers.add(new f),this.providers.add(new v),this.providers.add(new h),this.providers.add(new w)}isSupported(r){return!!this.providers.find((e=>e.isSupported(r)))}query(o,t,s){i("source",o).isNotMissing(),i("where",t).isNotMissing().isNotEmpty();const d=this.providers.find((r=>r.isSupported(o)));if(!d)throw new r("Unable to query: no provider registered for this type of feature source.");return async function*(){try{await o.initialize();const r={...c.DEFAULTS,...c.fromFeatureSource(o),...s},e=d.query(o,t,r);for await(const i of e)r.outSpatialReference&&(i.schema.spatialReference=r.outSpatialReference),yield i}catch(r){throw e(r)?r:new y(o,r)}}()}async count(o,t,s){i("source",o).isNotMissing(),i("where",t).isNotMissing();const d=this.providers.find((r=>r.isSupported(o)));if(!d)throw new r("Unable to query: no provider registered for this type of feature source.");try{await o.initialize();const r={returnGeometry:!1,outFields:void 0};return await d.count(o,t,{...c.fromFeatureSource(o),...s,...r})}catch(r){throw e(r)?r:new y(o,r)}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{isSceneLayer}from"../../utilities/_layers.js";import{isWebScene}from"../../utilities/mapping.js";import{ClientSideQueryProvider}from"./ClientSideQueryProvider.js";export class SceneLayerClientSideQueryProvider extends
|
|
1
|
+
import{isSceneLayer as e}from"../../utilities/_layers.js";import{isWebScene as r}from"../../utilities/mapping.js";import{ClientSideQueryProvider as t}from"./ClientSideQueryProvider.js";export class SceneLayerClientSideQueryProvider extends t{isSupported(t){const i=!!t._layerView&&r(t.mapExtension?.map),{layer:a}=t;return e(a)&&i&&(t.enableClientSideData||!t.layer.associatedLayer)}_createQuery(e,r,t){const i=super._createQuery(e,r,t);return"mesh"===e.layer.geometryType&&(i.returnGeometry=!1),i}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{executeQuery,executeCount}from"../../support/_query.js";import{isSceneLayer}from"../../utilities/_layers.js";import{QueryProviderBase}from"./QueryProviderBase.js";export class SceneLayerQueryProvider extends
|
|
1
|
+
import{executeQuery as e,executeCount as r}from"../../support/_query.js";import{isSceneLayer as t}from"../../utilities/_layers.js";import{QueryProviderBase as a}from"./QueryProviderBase.js";export class SceneLayerQueryProvider extends a{isSupported(e){const{layer:r}=e;return t(r)&&!!r.associatedLayer}_query(r,t,a){const{layer:s}=r,o=s.associatedLayer.createQuery();return o.where=t,o.outFields=a.outFields,o.returnGeometry=a.returnGeometry,o.outSpatialReference=a.outSpatialReference,o.maxAllowableOffset=a.maxAllowableOffset,a.spatialFilter&&(o.spatialRelationship="intersects",o.geometry=a.spatialFilter),o.num=a.maxResults,o.returnZ=!0,e(o,r,s.associatedLayer,a.cancelToken)}async _count(e,t,a){const{layer:s}=e,o=s.associatedLayer.createQuery();return o.where=t,o.outFields=a.outFields,o.returnGeometry=a.returnGeometry,a.spatialFilter&&(o.spatialRelationship="intersects",o.geometry=a.spatialFilter),o.num=a.maxResults,r(o,e,s.associatedLayer,a.cancelToken)}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{isStreamLayer}from"../../utilities/_layers.js";import{isWebScene}from"../../utilities/mapping.js";import{ClientSideQueryProvider}from"./ClientSideQueryProvider.js";export class StreamLayerClientSideQueryProvider extends
|
|
1
|
+
import{isStreamLayer as e}from"../../utilities/_layers.js";import{isWebScene as r}from"../../utilities/mapping.js";import{ClientSideQueryProvider as i}from"./ClientSideQueryProvider.js";export class StreamLayerClientSideQueryProvider extends i{get _waitForUpdatingFinished(){return!1}isSupported(i){const t=i._layerView&&r(i.mapExtension?.map),{layer:s}=i;return e(s)&&!t}_createQuery(e,r,i){const t=super._createQuery(e,r,i),s=t.outFields?.findIndex((e=>"__esri_stream_id__"===e));return s>=0&&t.outFields.splice(s,1),t}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{getLogger}from"../../utilities/log.js";import{StreamLayerClientSideQueryProvider}from"./StreamLayerClientSideQueryProvider.js";
|
|
1
|
+
import{getLogger as e}from"../../utilities/log.js";import{StreamLayerClientSideQueryProvider as r}from"./StreamLayerClientSideQueryProvider.js";e("StreamLayerQueryProvider").warn("StreamLayerQueryProvider is now deprecated as of 2021 and will removed by 2022. Use StreamLayerClientSideQueryProvider instead.");export const StreamLayerQueryProvider=r;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{executeQuery,executeCount,concatenateWhereClauses}from"../../support/_query.js";import{isSubtypeSublayer}from"../../utilities/_layers.js";import{removeZValues}from"../../utilities/geometry.js";import{QueryProviderBase}from"./QueryProviderBase.js";export class SubtypeSublayerQueryProvider extends
|
|
1
|
+
import{executeQuery as e,executeCount as r,concatenateWhereClauses as t}from"../../support/_query.js";import{isSubtypeSublayer as a}from"../../utilities/_layers.js";import{removeZValues as s}from"../../utilities/geometry.js";import{QueryProviderBase as l}from"./QueryProviderBase.js";export class SubtypeSublayerQueryProvider extends l{isSupported(e){const{sublayer:r}=e;return a(r)&&r.layer&&e.layerExtension?.capabilities.supportsQuery}_query(r,a,l){const{sublayer:i}=r,o=i.layer.createQuery();o.where=t(`${i.layer.subtypeField}=${i.subtypeCode}`,a),o.outFields=l.outFields,o.returnGeometry=l.returnGeometry,o.outSpatialReference=l.outSpatialReference,o.maxAllowableOffset=l.maxAllowableOffset;let u=l.spatialFilter;return u&&(o.spatialRelationship="intersects",!u||i.layer.hasZ&&i.layer.capabilities?.data?.supportsZ||(u=s(u.clone())),o.geometry=u),i.layer.capabilities.query.supportsPagination&&(o.num=l.maxResults),e(o,r,i.layer,l.cancelToken)}_count(e,a,l){const{sublayer:i}=e,o=i.layer.createQuery();o.where=t(`${i.layer.subtypeField}=${i.subtypeCode}`,a),o.outFields=l.outFields,o.returnGeometry=l.returnGeometry;let u=l.spatialFilter;return u&&(o.spatialRelationship="intersects",!u||i.layer.hasZ&&i.layer.capabilities?.data?.supportsZ||(u=s(u.clone())),o.geometry=u),o.num=l.maxResults,r(o,e,i.layer,l.cancelToken)}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{SCORE_FIELD,SCORE_FIELD_ORIGINAL}from"../../data/Feature.js";import{isArcGISGeocoder}from"../geocoding/utilities.js";import{GeocoderSearchProvider}from"./GeocoderSearchProvider.js";const
|
|
1
|
+
import{SCORE_FIELD as e,SCORE_FIELD_ORIGINAL as t}from"../../data/Feature.js";import{isArcGISGeocoder as r}from"../geocoding/utilities.js";import{GeocoderSearchProvider as s}from"./GeocoderSearchProvider.js";const a=.001;export class ArcGISGeocoderSearchProvider extends s{isSupported(e){return r(e)}async*_search(r,s,i){const[o]=r,{cancelToken:c,currentScale:n,initialSearchArea:u,outSpatialReference:l,maxResults:d}=i??{},f={cancelToken:c,searchPoint:n&&u?.extent?.center,searchArea:!n&&u,outFields:o.featureSettings.outFields,outSpatialReference:l,maxResults:d};if(!s)return;const p=s.replace(/^"*|"*$/g,"");let S=0,b=a;for await(const r of o.geocode(p,f)){if(r.attributes.get("Match_addr")===p)r.attributes.set(e,100),r.attributes.set(t,100);else{let s=r.attributes.get(e);s=s>99?99:s,r.attributes.set(e,s),r.attributes.set(t,s),s===S?(r.attributes.set(e,S-b),r.attributes.set(t,S-b),b+=a):(S=s,b=a)}yield r}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{isGeocoder}from"../../ItemType.js";import{SCORE_FIELD,SCORE_FIELD_ORIGINAL}from"../../data/Feature.js";import{SearchProviderBase}from"./SearchProviderBase.js";const
|
|
1
|
+
import{isGeocoder as e}from"../../ItemType.js";import{SCORE_FIELD as t,SCORE_FIELD_ORIGINAL as a}from"../../data/Feature.js";import{SearchProviderBase as r}from"./SearchProviderBase.js";const c=.001;export class GeocoderSearchProvider extends r{isSupported(t){return e(t)}async*_search(e,r,s){const[n]=e,{cancelToken:o,currentScale:i,initialSearchArea:u,outSpatialReference:l,maxResults:S}=s??{},m={cancelToken:o,searchPoint:i&&u?.extent?.center,searchArea:!i&&u,outFields:n.featureSettings.outFields,outSpatialReference:l,maxResults:S};if(!r)return;let f=0,h=c;for await(const e of n.geocode(r,m)){const r=e.attributes.get(t);r===f?(e.attributes.set(t,f-h),e.attributes.set(a,f-h),h+=c):(f=r,h=c),yield e}}async _count(e,t,a){const[r]=e,{cancelToken:c,currentScale:s,initialSearchArea:n,maxResults:o}=a??{},i={cancelToken:c,searchPoint:s&&n?.extent?.center,searchArea:!s&&n,maxResults:o};if(t)return[await r.count(t,i)]}async _suggest(e,t,a){const[r]=e,{cancelToken:s,currentScale:n,initialSearchArea:o,outSpatialReference:i,maxSuggestions:u}=a??{},l={cancelToken:s,searchPoint:n&&o?.extent?.center,searchArea:!n&&o,outFields:["*"],outSpatialReference:i,maxResults:u},S=await r.suggest(t,l);let m=100;return S.map((e=>(m-=c,{suggestion:e,score:m})))}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{difference}from"@arcgis/core/geometry/geometryEngine";import{SCORE_FIELD,SCORE_FIELD_ORIGINAL}from"../../data/Feature.js";import{escape}from"../../support/_query.js";import{AsyncQueue}from"../../utilities/asyncIterable.js";import{isCodedValueDomain}from"../../utilities/esri.js";import{getBounds,getScreenExtent}from"../../utilities/geometry.js";import{average,standardDeviation}from"../../utilities/math.js";import{format,NumberFormat,NumberFormatter}from"../../utilities/number.js";import{map}from"../../utilities/promise.js";import{expandExtentToScale,getNextScale,getScaleRange}from"../../utilities/scaleRanges.js";import{QueryService}from"../query/QueryService.js";import{SearchOptions}from"./SearchOptions.js";import{SearchProviderBase}from"./SearchProviderBase.js";import{getSearchableValue}from"./_utilities.js";export class QuerySearchProvider extends
|
|
1
|
+
import{difference as e}from"@arcgis/core/geometry/geometryEngine";import{SCORE_FIELD as t,SCORE_FIELD_ORIGINAL as r}from"../../data/Feature.js";import{escape as s}from"../../support/_query.js";import{AsyncQueue as n}from"../../utilities/asyncIterable.js";import{isCodedValueDomain as o}from"../../utilities/esri.js";import{getBounds as i,getScreenExtent as a}from"../../utilities/geometry.js";import{average as c,standardDeviation as u}from"../../utilities/math.js";import{format as l,NumberFormat as m,NumberFormatter as p}from"../../utilities/number.js";import{map as f}from"../../utilities/promise.js";import{expandExtentToScale as d,getNextScale as h,getScaleRange as g}from"../../utilities/scaleRanges.js";import{QueryService as x}from"../query/QueryService.js";import{SearchOptions as y}from"./SearchOptions.js";import{SearchProviderBase as F}from"./SearchProviderBase.js";import{getSearchableValue as R}from"./_utilities.js";export class QuerySearchProvider extends F{constructor(){super(...arguments),this.queryService=new x,this.separatorRegex=/(\s|-(?![\d,.]))+/,this.quotedTermsRegex=/(?:"(.*?)")|(?:“(.*?)”)|(?:«(.*?)»)|(?:„(.*?)”)|(?:„(.*?)“)|(?:»(.*?)«)/g}isSupported(e){return this.queryService.isSupported(e)}getSearchTerms(e,t){const r=e.match(this.quotedTermsRegex),s=t(e.replace(this.quotedTermsRegex,""));return r?s.concat(r.map((e=>e.replace(/"|“|”|«|»|„/g,"")))):s}_search(e,s,o){const i=new n,a=new Map,c="__id";let u=0;const l=S(this.separatorRegex);return e.forEach((n=>{(async()=>{try{const{index:m,tokenizer:p}=await l;m.setRef(c);const f={...y.DEFAULTS,...y.fromFeatureSource(n),spatialFilter:o?.initialSearchArea,...o},d=m.pipeline.run(this.getSearchTerms(s,p)),h=w(n),g=$(n,d,h,f);if(!d.length||!h.length||!g)return;const x={...f,maxResults:Math.max(f.maxQueryResults||f.maxResults,f.maxResults)};let F=0,S=x.currentScale;const b=new Map,E=n.getFullExtent();for(const e of h)m.addField(e.name.toLowerCase());for(;;){if(i.isDone)return;const e=this.queryService.query(n,g,x),o=new Map;for await(const t of e){if(i.isDone)return;const e={};for(const r of h)e[r.name.toLowerCase()]=R(t,r);const r=`${n.id}-${t.primaryKey}`;e[c]=r,m.addDoc(e),o.set(r,t),a.set(r,t)}const u=m.search(s,{expand:!0});j(u);for(const e of u){const s=a.get(e.ref);if(s&&(s.attributes.set(t,e.score),s.attributes.set(r,e.score)),o.has(e.ref)&&!b.has(e.ref)&&(b.set(e.ref,s),o.delete(e.ref),i.add(s),F++),F>=f.maxResults)break}for(const[e,s]of o){if(F>=f.maxResults)break;s.attributes.set(t,50),s.attributes.set(r,50),b.has(e)||(b.set(e,s),i.add(s),F++)}if(F>=f.maxResults)break;const{scale:l,geometry:p}=this._expandSearchArea(x.spatialFilter?.extent,E,S,0===F?3:1);if(!p)break;x.spatialFilter=p,S=l}}catch(e){i.reject(e)}finally{++u===e.length&&i.done()}})()})),i}_expandSearchArea(t,r,s,n){if(!r||!t||!s||t.contains(r))return{};const o=h(s,n),c=!o||o>=g("continent")?r:d(t,s,o);return{geometry:function(e){const t=e.filter((e=>!!e?.spatialReference));if(!t.length)return!0;const{spatialReference:r}=t[0],{isWebMercator:s,isWGS84:n}=r;if(!s&&!n)return!0;const{xmax:o,xmin:c}=a(t),{max:u,min:l}=i(r);return o<=u&&c>=l}([c])?e(c,t):c,scale:o}}async _count(e,t,r){return f(e,(async e=>{const{index:s,tokenizer:n}=await S(this.separatorRegex),o={...y.fromFeatureSource(e),...r,spatialFilter:r?.initialSearchArea,returnGeometry:!1},i=s.pipeline.run(this.getSearchTerms(t,n)),a=w(e);if(!i.length||!a.length)return{source:e,count:0};const c=$(e,i,a,o);let u=o.currentScale;const l=e.getFullExtent();let m;for(;;){if(m=await this.queryService.count(e,c,o),m.count>=o.maxResults)break;const{scale:t,geometry:r}=this._expandSearchArea(o.spatialFilter?.extent,l,u,0===m.count?3:1);if(!r)break;o.spatialFilter=r.extent,u=t}return m}))}async _suggest(e,t,r){return[]}}function w(e){const{outFields:t}=e.featureSettings,r=!t.includes("*");return e.schema.fieldExtensions.initializedItems.filter((e=>e.searchable&&(!r||t.includes(e.field.name)))).map((e=>e.field)).toArray()}async function S(e){const t=(await import("elasticlunr")).default;t.tokenizer.setSeperator(e),t.Pipeline.getRegisteredFunction("gcx.trimmer")||t.Pipeline.registerFunction(E,"gcx.trimmer");const r=t();return r.pipeline.reset(),r.pipeline.add(E),r.pipeline.add(t.Pipeline.getRegisteredFunction("stopWordFilter")),r.saveDocument(!1),{index:r,tokenizer:t.tokenizer}}function $(e,t,r,n){const i=[],a=new p({locale:n.locale,defaultParseFormat:[m.CURRENCY,m.FIXED_POINT,m.PERCENT,m.NUMBER,m.ROUND_TRIP]});for(const n of r){let r=[];n.domain&&o(n.domain)&&(r=r.concat(n.domain.codedValues));for(const t of e.schema.types.toArray()){const e=t.domains;e?.[n.name]?.codedValues&&(r=r.concat(e[n.name].codedValues))}for(const o of t)if(e.schema.types.length>0&&n.name===e.schema.typeIdField){const t=e.schema.types.findIndex((e=>e.name.toLowerCase()===o.toLowerCase()));if(t>-1){const r=e.schema.types.getItemAt(t).id;"string"==typeof r?i.push(`${e.schema.typeIdField} = '${s(r)}'`):i.push(`${e.schema.typeIdField} = ${r}`)}}else if(r.length>0){const e=r.findIndex((e=>e.name.toLowerCase().includes(o.toLowerCase())));e>-1&&("string"==typeof r[e].code?i.push(`${n.name} = '${s(r[e].code)}'`):i.push(`${n.name} = ${r[e].code}`))}else switch(n.type){case"string":i.push(`lower(${n.name}) like '%${s(o.toLowerCase())}%'`);break;case"integer":case"small-integer":case"single":case"double":{const e=k(o),t=a.parse({format:[m.DEFAULT,m.FIXED_POINT,m.NUMBER]},e);if(isNaN(t))continue;const r=b(t);t<0?i.push(`(${n.name} > ${r.lower} and ${n.name} <= ${r.upper})`):i.push(`(${n.name} >= ${r.lower} and ${n.name} < ${r.upper})`);break}}}return i.join(" or ")}function b(e){let t,r=0;const s=l(m.ROUND_TRIP,e),n=I(s);s.includes(".")&&(r=s.length-s.indexOf(".")-1);let o=e;return 0===n&&r>0?t=Math.pow(10,-(r-1)):r>n?(o=Number(e.toFixed(r-n)),t=Math.pow(10,-r)):t=1,t/=2,{lower:(o-t).toFixed(r+1),upper:(o+t).toFixed(r+1)}}function j(e){const t=e.map((e=>e.score)),r=c(t),s=u(t);for(const t of e)s?(t.score=(t.score-r)/s,t.score=Math.max(-2,t.score),t.score=Math.min(2,t.score),t.score=t.score/4+.5,t.score*=100):t.score=100}function E(e){if(null==e)throw new Error("token should not be undefined");return e.replace(/^[^a-zA-Z0-9\u007F-\uFFFF-]+/,"").replace(/[^a-zA-Z0-9\u007F-\uFFFF-]+$/,"")}function k(e){let t=I(e);const r=l(-123456780.9),s=function(){const e=l(1234567890),t=l(-123456780.9).split("");return t.filter((t=>!e.includes(t))).join("")}();if(t>0){const n=new RegExp(`[${r}]`,"g"),o=e.match(n),i=o.length;let a=0;for(;t>0&&a<=i;){const e=i-a-1;s.includes(o[e])||(o[e]=l(0).toString(),t--),a++}if(o)return o.join("")}return e}function I(e){const t=l(1234567890),r=new RegExp(`[${t}]`,"g"),s=e.match(r);return s?s.length-14:void 0}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{format}from"../../utilities/string.js";export class SearchError extends Error{constructor(
|
|
1
|
+
import{format as r}from"../../utilities/string.js";export class SearchError extends Error{constructor(e,o,...s){super(o&&r(o,...s)||"One or more sources could not be searched."),this.name="SearchError",this.errors=new Map(e)}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{InvalidOperationError}from"../../InvalidOperationError.js";import{checkArg}from"../../utilities/checkArg.js";import*as
|
|
1
|
+
import{InvalidOperationError as r}from"../../InvalidOperationError.js";import{checkArg as s}from"../../utilities/checkArg.js";import*as i from"../../utilities/promise.js";import{SearchOptions as e}from"./SearchOptions.js";export class SearchProviderBase{search(e,t,o){s("source",e).isNotMissing();const a=Array.isArray(e)?e:[e];if(!a.every((r=>this.isSupported(r))))throw new r("Unsupported feature source.");const n=this;return async function*(){t&&(await i.parallelEach(a,(r=>r.initialize())),yield*n._search(a,t,o))}()}async suggest(i,t,o){s("source",i).isNotMissing();const a=Array.isArray(i)?i:[i];if(!a.every((r=>this.isSupported(r))))throw new r("Unsupported feature source.");return t?this._suggest(a,t,{...e.DEFAULTS,...o}):[]}async count(e,t,o){s("source",e).isNotMissing();const a=Array.isArray(e)?e:[e];if(!a.every((r=>this.isSupported(r))))throw new r("Unsupported feature source.");if(t)return await i.parallelEach(a,(r=>r.initialize())),this._count(a,t,o)}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import e from"@arcgis/core/geometry/Point";import{distance as t}from"@arcgis/core/geometry/geometryEngine";import{isLayerExtension as r,isMapExtension as i,isSublayerExtension as o}from"../../ItemType.js";import{SCORE_FIELD as s,SCORE_FIELD_ORIGINAL as a}from"../../data/Feature.js";import{MapExtension as n}from"../../mapping/MapExtension.js";import{cancelify as c}from"../../support/Cancellable.js";import{isCancellation as l}from"../../support/utilities.js";import{groupBy as p}from"../../utilities/array.js";import{AsyncQueue as u}from"../../utilities/asyncIterable.js";import{checkArg as f}from"../../utilities/checkArg.js";import{Collection as m}from"../../utilities/collection.js";import{isMap as d}from"../../utilities/mapping.js";import{parallelEach as h}from"../../utilities/promise.js";import{ArcGISGeocoderSearchProvider as g}from"./ArcGISGeocoderSearchProvider.js";import{GeocoderSearchProvider as y}from"./GeocoderSearchProvider.js";import{QuerySearchProvider as w}from"./QuerySearchProvider.js";import{SearchError as S}from"./SearchError.js";import{SearchOptions as j}from"./SearchOptions.js";export class SearchService{constructor(){this.providers=new m,this.providers.add(new w),this.providers.add(new g),this.providers.add(new y)}isSupported(e){return!!this.providers.find((t=>t.isSupported(e)))}search(r,o,s){f("sources",r).isNotMissing();const a={...j.DEFAULTS,...s},{outSpatialReference:c,onSourceComplete:g}=a,y=function(r){if(!(r.near&&r.initialSearchArea&&r.initialSearchArea.extent&&r.initialSearchArea.extent.spatialReference.equals(r.near.spatialReference)))return;const{extent:i}=r.initialSearchArea,{spatialReference:o}=i,s=t(new e({x:i.xmin,y:i.ymin,spatialReference:o}),r.near,void 0),a=t(new e({x:i.xmin,y:i.ymax,spatialReference:o}),r.near,void 0),n=t(new e({x:i.xmax,y:i.ymin,spatialReference:o}),r.near,void 0),c=t(new e({x:i.xmax,y:i.ymax,spatialReference:o}),r.near,void 0);return Math.max(s,a,n,c)}(a);let w,x=[];m.isCollection(r)?x=r.toArray():i(r)?w=r:d(r)?w=new n({map:r}):x=[...r];let A=0;const b=new u,M=new Map,R=(e,t)=>{if(!t||0===e.length)return;A++;const r=new Map;for(const t of e)r.set(t,{source:t,count:0,time:-1});(async()=>{const i=[];try{if(b.isDone)return;const a=Date.now();await h(e,(e=>e.initialize()));for await(const n of t.search(e,o,s)){const e=r.get(n.source);if(e&&(e.count++,e.time<0&&(e.time=Date.now()-a)),b.isDone)return;c&&(n.schema.spatialReference=c),v(n,y,s);let t=!1;i.push(n.attributes.on("change",(()=>{t||(t=!0,v(n,y,s),t=!1)}))),b.add(n)}for(const t of e){const e=r.get(t);e&&e.time<0&&(e.time=Date.now()-a)}}catch(t){for(const i of e){r.get(i).failureReason=t}if(l(t))return void b.reject(t);M.set(e,t)}finally{i.forEach((e=>e.remove()));for(const t of e){const e=r.get(t);g?.(e)}}0==--A&&(M.size?b.reject(new S(M)):b.done())})()};return(async()=>{try{w&&(await w.initialize(),x=w.getAllFeatureSources(isSearchable))}catch(e){b.reject(new Error("Map failed to initialize.",{cause:e}))}p(x,(e=>this.providers.find((t=>t.isSupported(e))))).forEach(R),0===A&&b.done()})(),b}count(e,t,r){f("sources",e).isNotMissing();const o={...r,returnGeometry:!1};let s,a=[];m.isCollection(e)?a=e.toArray():i(e)?s=e:d(e)?s=new n({map:e}):a=[...e];let c=0;const g=new u,y=new Map,w=(e,r)=>{r&&(c++,(async()=>{if(!g.isDone){try{if(await h(e,(e=>e.initialize())),g.isDone)return;g.addMany(await r.count(e,t,o))}catch(t){if(l(t))return void g.reject(t);y.set(e,t)}0==--c&&(y.size?g.reject(new S(y)):g.done())}})())};return(async()=>{try{s&&(await s.initialize(),a=s.getAllFeatureSources(isSearchable))}catch(e){g.reject(new Error("Map failed to initialize.",{cause:e}))}p(a,(e=>this.providers.find((t=>t.isSupported(e))))).forEach(w),0===c&&g.done()})(),g}async suggest(e,t,r){f("sources",e).isNotMissing();const i={...j.DEFAULTS,...r};return c(this._suggest(e,t,i),i.cancelToken)}async _suggest(e,t,r){let o,s=[];m.isCollection(e)?s=e.toArray():i(e)?o=e:d(e)?o=new n({map:e}):s=[...e];const a=[];if(o)try{await o.initialize(),s=o.getAllFeatureSources(isSearchable)}catch(e){throw new Error("Map failed to initialize.",{cause:e})}const c=p(s,(e=>this.providers.find((t=>t.isSupported(e)))));return await h(c.entries(),(async([e,i])=>{if(e)try{const o=await e.suggest(i,t,r);for(const e of o){const t=a.findIndex((t=>t.suggestion===e.suggestion));t>=0?e.score>a[t].score&&(a[t]=e):a.push(e)}}catch(e){throw l(e)?e:new S([[i,e]])}})),a.sort(((e,t)=>t.score-e.score)).slice(0,r.maxSuggestions)}}export function isSearchable(e){return!!e.taskSettings.enableSearch&&(r(e)?e.layer?.visible:!o(e)||e.sublayer?.visible)}function v(e,r,i){if(!(r&&i.near&&i.initialSearchArea&&e.geometry&&i.near.spatialReference.equals(e.geometry.spatialReference)&&e.attributes.has(s)))return;const o=(r-t(e.geometry,i.near,void 0))/r,n=(2*e.attributes.get(a)+o)/3;e.attributes.set(s,n)}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{DateFormat}from"../../utilities/date.js";import{isCodedValueDomain}from"../../utilities/esri.js";import{format,NumberFormat}from"../../utilities/number.js";const
|
|
1
|
+
import{DateFormat as e}from"../../utilities/date.js";import{isCodedValueDomain as t}from"../../utilities/esri.js";import{format as r,NumberFormat as i}from"../../utilities/number.js";const s="\t";export function getSearchableValue(a,o){const n=Array.from(a.attributes.keys()).find((e=>e.toLowerCase()===o.name.toLowerCase())),u=a.attributes.get(n);if(null==u)return"";if(t(a.type?.domains?.[n])||t(o.domain))return a.presentableAttributes.get(n);switch(o.type){case"integer":case"small-integer":case"double":case"single":case"oid":return[a.presentableAttributes.get(n),a.format(`{${n}:#.####################}`),a.format(`{${n}:#,#.####################}`),r(i.ROUND_TRIP,u)].join(s);case"date":return[a.presentableAttributes.get(n),a.format(`{${n}:${e.FULL}}`),a.format(`{${n}:${e.DATE_SHORT}}`)].join(s);default:return a.presentableAttributes.get(n)}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Observable}from"../support/Observable.js";import{onCollectionPropertyChange}from"./watch.js";export class CollectionProxy extends
|
|
1
|
+
import{Observable as t}from"../support/Observable.js";import{onCollectionPropertyChange as e}from"./watch.js";export class CollectionProxy extends t{get length(){return this._collection.length}get declaredClass(){return"esri.core.Collection"}get destroyed(){return this._destroyed}set destroyed(t){this._destroyed=t}get initialized(){return this._initialized}set initialized(t){this._initialized=t}get _collection(){if(void 0===this._collectionField)throw new Error("CollectionProxy requires a backing collection.");return this._collectionField}set _collection(t){this._collectionField=t}constructor(t){super(),this._destroyed=!1,this._initialized=!0,this._collectionField=t,e(this,"_collectionField",(t=>{this.emit("change",t)})),this.watch("_collectionField.length",(()=>this.notifyChange("length")))}add(t,e){return this._collection.add(t,e),this}addMany(t,e){if(!t)return this;let i=e;if(arguments.length>1)for(let e=0;e<t.length;e++)"function"==typeof t.getItemAt?this.add(t.getItemAt(e),i++):this.add(t[e],i++);else for(let e=0;e<t.length;e++)"function"==typeof t.getItemAt?this.add(t.getItemAt(e)):this.add(t[e]);return this}clone(){const t=Object.create(Object.getPrototypeOf(this));return t._collection=this._collection,t}concat(t){return this._collection.concat(t)}destroy(){}every(t){return this._collection.every(t)}filter(t){return this._collection.filter(t)}find(t){return this._collection.find(t)}findIndex(t){return this._collection.findIndex(t)}flatten(t){return this._collection.flatten(t)}forEach(t){return this._collection.forEach(t)}getItemAt(t){return this._collection.getItemAt(t)}includes(t){return this._collection.includes(t)}indexOf(t,e){return this._collection.indexOf(t,e)}join(t){return this._collection.join(t)}lastIndexOf(t,e){return this._collection.lastIndexOf(t,e)}map(t){return this._collection.map(t)}pop(){return this.removeAt(this.length-1)}push(t){return this.add(t,this.length),this.length}reduce(t,e){return this._collection.reduce(t,e)}reduceRight(t,e){return this._collection.reduceRight(t,e)}remove(t){this.removeAt(this.indexOf(t))}removeAll(){for(;this.length;)this.pop()}removeAt(t){return this._collection.removeAt(t)}removeMany(t){if(!t)return;const e=[];for(let i=0;i<t.length;i++){const r="function"==typeof t.getItemAt?t.getItemAt(i):t[i],o=this.indexOf(r);o>=0&&e.push(this.removeAt(o))}return e}reorder(t,e){return this._collection.reorder(t,e)}reverse(){return this._collection.reverse(),this}shift(){return this.removeAt(0)}slice(t,e){return this._collection.slice(t,e)}some(t){return this._collection.some(t)}sort(t){return this._collection.sort(t),this}splice(t,e,...i){const r=[];for(let i=e;i>0;i--)r.push(this.removeAt(t));let o=t;return i.forEach((t=>{this.add(t,o),o++})),r}toArray(){return this._collection.toArray()}unshift(t){return this.add(t,0),this.length}_get(t){throw Error()}_set(t,e){throw Error()}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Collection}from"../utilities/collection.js";import{CollectionProxy}from"./CollectionProxy.js";import{checkArg}from"./checkArg.js";export class CopyOnWriteCollection extends
|
|
1
|
+
import{Collection as i}from"../utilities/collection.js";import{CollectionProxy as o}from"./CollectionProxy.js";import{checkArg as t}from"./checkArg.js";export class CopyOnWriteCollection extends o{get originalCollection(){return this._originalCollection}set originalCollection(i){t("value",i).isNotMissing(),this.isModified||(this._collection=i),this._originalCollection=i}get isModified(){return this._collection!==this.originalCollection}constructor(i){super(i),t("collection",i).isNotMissing(),this._originalCollection=i}clone(){const i=new CopyOnWriteCollection(this.originalCollection);return this.isModified&&(i._collection=this._cloneCollection(this._collection)),i}add(i,o){return this._copy(),super.add(i,o)}removeAt(i){return this._copy(),super.removeAt(i)}reorder(i,o){return this._copy(),super.reorder(i,o)}reset(){this.isModified&&(this._collection=this._originalCollection)}sort(i){return this._copy(),super.sort(i)}_copy(){this.isModified||(this._collection=this._cloneCollection(this.originalCollection))}_cloneCollection(o){return new i(o.toArray())}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{format}from"../utilities/string.js";export class GeometryServiceError extends Error{constructor(
|
|
1
|
+
import{format as r}from"../utilities/string.js";export class GeometryServiceError extends Error{constructor(e,o,...t){super(o&&r(o,...t)||"The geometry service encountered an error."),this.name="GeometryServiceError",this.error=e}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ReadOnlyCollection}from"./ReadOnlyCollection.js";import{checkArg}from"./checkArg.js";export class MapTransformCollection extends
|
|
1
|
+
import{ReadOnlyCollection as t}from"./ReadOnlyCollection.js";import{checkArg as o}from"./checkArg.js";export class MapTransformCollection extends t{get _collection(){return this._originalCollection.map(this._callback)}constructor(t,e){super(),o("originalCollection",t).isNotMissing(),this._callback=e,this._originalCollection=t,t.on("change",(t=>{this.emit("change",{added:t.added.map(this._callback),removed:t.removed.map(this._callback),moved:t.moved.map(this._callback),target:this})})),t.watch("length",(()=>this.notifyChange("length")))}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Observable}from"../support/Observable.js";import{toJSON}from"./object.js";export class ObservableMap extends
|
|
1
|
+
import{Observable as t}from"../support/Observable.js";import{toJSON as e}from"./object.js";export class ObservableMap extends t{get size(){return this._originalMap.size}constructor(){super(),this._originalMap=new Map}clear(){if(!this.size)return;this.notifyChange("size");const t=Array.from(this.entries());this._originalMap.clear(),this.emit("change",{added:[],removed:t,target:this})}delete(t){if(!this.has(t))return!1;const e=this.get(t);return this.notifyChange("size"),this._originalMap.delete(t),this.emit("change",{added:[],removed:[[t,e]],target:this}),!0}forEach(t,e){this._originalMap.forEach(t,e)}get(t){return this._originalMap.get(t)}has(t){return this._originalMap.has(t)}set(t,e){const i=!this.has(t),r=this.get(t);return this.notifyChange("size"),this._originalMap.set(t,e),this.emit("change",{added:[[t,e]],removed:i?[]:[[t,r]],target:this}),this}entries(){return this._originalMap.entries()}keys(){return this._originalMap.keys()}values(){return this._originalMap.values()}[(Symbol.toStringTag,Symbol.iterator)](){return this._originalMap[Symbol.iterator]()}toJSON(){return e([...this])}on(t,e){return super.on(t,e)}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Observable}from"../support/Observable.js";import{toJSON}from"./object.js";export class ObservableSet extends
|
|
1
|
+
import{Observable as e}from"../support/Observable.js";import{toJSON as t}from"./object.js";export class ObservableSet extends e{get size(){return this._originalSet.size}constructor(){super(),this._originalSet=new Set}add(e){return this.has(e)||(this.notifyChange("size"),this._originalSet.add(e),this.emit("change",{added:[e],removed:[],moved:[],target:this})),this}addMany(e){const t=[];for(const i of e)this.has(i)||(t.push(i),this._originalSet.add(i));return t.length&&(this.notifyChange("size"),this.emit("change",{added:t,removed:[],moved:[],target:this})),this}clear(){if(!this.size)return;this.notifyChange("size");const e=Array.from(this.values());this._originalSet.clear(),this.emit("change",{added:[],removed:e,moved:[],target:this})}delete(e){return!!this.has(e)&&(this.notifyChange("size"),this._originalSet.delete(e),this.emit("change",{added:[],removed:[e],moved:[],target:this}),!0)}deleteMany(e){const t=[];for(const i of e)this.has(i)&&(t.push(i),this._originalSet.delete(i));return t.length&&(this.notifyChange("size"),this.emit("change",{added:[],removed:t,moved:[],target:this})),!!t.length}forEach(e,t){this._originalSet.forEach(e,t)}has(e){return this._originalSet.has(e)}entries(){return this._originalSet.entries()}keys(){return this._originalSet.keys()}values(){return this._originalSet.values()}[(Symbol.toStringTag,Symbol.iterator)](){return this._originalSet[Symbol.iterator]()}toJSON(){return t([...this.values()])}on(e,t){return super.on(e,t)}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Observable}from"../support/Observable.js";export class ObservableWeakSet extends
|
|
1
|
+
import{Observable as e}from"../support/Observable.js";export class ObservableWeakSet extends e{constructor(){super(),this._originalSet=new WeakSet}add(e){return this.has(e)||(this.notifyChange("size"),this._originalSet.add(e),this.emit("change",{added:[e],removed:[],moved:[],target:this})),this}addMany(e){const t=[];for(const i of e)this.has(i)||(t.push(i),this._originalSet.add(i));return t.length&&(this.notifyChange("size"),this.emit("change",{added:t,removed:[],moved:[],target:this})),this}delete(e){return!!this.has(e)&&(this.notifyChange("size"),this._originalSet.delete(e),this.emit("change",{added:[],removed:[e],moved:[],target:this}),!0)}deleteMany(e){const t=[];for(const i of e)this.has(i)&&(t.push(i),this._originalSet.delete(i));return t.length&&(this.notifyChange("size"),this.emit("change",{added:[],removed:t,moved:[],target:this})),!!t.length}has(e){return this._originalSet.has(e)}on(e,t){return super.on("change",t)}}Symbol.toStringTag;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{InvalidOperationError}from"../InvalidOperationError.js";import{CollectionProxy}from"./CollectionProxy.js";const
|
|
1
|
+
import{InvalidOperationError as o}from"../InvalidOperationError.js";import{CollectionProxy as e}from"./CollectionProxy.js";const r="This collection is read-only.";export class ReadOnlyCollection extends e{add(e,t){throw new o(r)}removeAt(e){throw new o(r)}removeAll(){throw new o(r)}reorder(e,t){throw new o(r)}reverse(){throw new o(r)}sort(e){throw new o(r)}splice(e,t,...n){throw new o(r)}}
|
package/utilities/ReadOnlyMap.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{InvalidOperationError}from"../InvalidOperationError.js";import{ObservableMap}from"./ObservableMap.js";const
|
|
1
|
+
import{InvalidOperationError as e}from"../InvalidOperationError.js";import{ObservableMap as r}from"./ObservableMap.js";const t="This map is read-only.";export class ReadOnlyMap extends r{constructor(e){super(),this._originalMap=e,e.on("change",(e=>this.emit("change",e))),this.watch("_originalMap.size",(()=>this.notifyChange("size")))}clear(){throw new e(t)}delete(r){throw new e(t)}set(){throw new e(t)}}
|