@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.
Files changed (748) hide show
  1. package/AccessDeniedError.js +1 -1
  2. package/AppConfig.schema.json +35 -39
  3. package/ArgumentMissingError.js +1 -1
  4. package/ArgumentOutOfRangeError.js +1 -1
  5. package/Entity.js +1 -1
  6. package/FailureMode.d.ts +1 -1
  7. package/Hyperlink.js +1 -1
  8. package/LanguageResources.d.ts +1 -3
  9. package/LanguageResources.js +1 -1
  10. package/NotFoundError.js +1 -1
  11. package/PortalUri.js +1 -1
  12. package/data/ArcGISServiceTableExtension.js +1 -1
  13. package/data/Attachment.js +1 -1
  14. package/data/Feature.js +1 -1
  15. package/data/FeatureList.d.ts +3 -3
  16. package/data/FeatureList.js +1 -1
  17. package/data/FeatureSaveError.js +1 -1
  18. package/data/FeatureSet.js +1 -1
  19. package/data/FeatureSettings.js +1 -1
  20. package/data/FeatureSourceBase.js +1 -1
  21. package/data/FeatureStream.js +1 -1
  22. package/data/FieldExtension.js +1 -1
  23. package/data/PopupContentExtension.js +1 -1
  24. package/data/Relationship.js +1 -1
  25. package/data/RelationshipBase.js +1 -1
  26. package/data/Schema.js +1 -1
  27. package/data/Table.js +1 -1
  28. package/data/TableExtension.js +1 -1
  29. package/data/TaskSettings.js +1 -1
  30. package/data/_Relationship.d.ts +3 -3
  31. package/data/_Relationship.js +1 -1
  32. package/data/_TableExtension.js +1 -1
  33. package/data/convert.js +1 -1
  34. package/data/support/DefaultRelationshipFactory.js +1 -1
  35. package/data/support/DefaultTableExtensionFactory.js +1 -1
  36. package/data/support/attachments.js +1 -1
  37. package/docs/html/assets/main.js +56 -52
  38. package/docs/html/assets/search.js +1 -1
  39. package/docs/html/assets/style.css +23 -0
  40. package/docs/html/classes/data_FeatureSet.FeatureSet.html +2 -2
  41. package/docs/html/classes/data_FeatureStream.FeatureStream.html +1 -1
  42. package/docs/html/classes/utilities_ObservableMap.ObservableMap.html +2 -2
  43. package/docs/html/classes/utilities_ObservableSet.ObservableSet.html +2 -2
  44. package/docs/html/classes/utilities_ObservableWeakSet.ObservableWeakSet.html +1 -1
  45. package/docs/html/classes/utilities_asyncIterable.AsyncQueue.html +1 -1
  46. package/docs/html/classes/utilities_date.DateFormatter.html +1 -1
  47. package/docs/html/classes/utilities_string.StringFormatter.html +6 -24
  48. package/docs/html/functions/utilities_string.format.html +2 -18
  49. package/docs/html/interfaces/LanguageResources.LanguageResourcesProperties.html +2 -7
  50. package/docs/html/interfaces/data_support_attachments.AttachmentEnabledLayer.html +4 -6
  51. package/docs/html/interfaces/mapping_BuildingSceneLayerExtension.BuildingSceneLayerProperties.html +1 -1
  52. package/docs/html/interfaces/mapping_FeatureLayerExtension.FeatureLayerProperties.html +1 -1
  53. package/docs/html/interfaces/mapping_FeatureLayerExtensionBase.FeatureLayerBaseProperties.html +1 -1
  54. package/docs/html/interfaces/mapping_PointCloudLayerExtension.PointCloudLayerProperties.html +1 -1
  55. package/docs/html/interfaces/portal_ApplicationProperties.ApplicationProperties.html +15 -12
  56. package/docs/html/interfaces/portal_Background.ColorBackground.html +3 -2
  57. package/docs/html/interfaces/portal_BaseMap.BaseMap-1.html +2 -1
  58. package/docs/html/interfaces/portal_BaseMapLayer.BaseMapLayerBase.html +2 -1
  59. package/docs/html/interfaces/portal_BingLayer.BingLayer.html +2 -1
  60. package/docs/html/interfaces/portal_Bookmark.Bookmark.html +2 -1
  61. package/docs/html/interfaces/portal_BuildingSceneLayer.BuildingSceneLayer-1.html +1 -1
  62. package/docs/html/interfaces/portal_CIMSymbol.CIMSymbol.html +2 -1
  63. package/docs/html/interfaces/portal_CSVLayer.CSVLayer-1.html +3 -2
  64. package/docs/html/interfaces/portal_Camera.Camera-1.html +2 -1
  65. package/docs/html/interfaces/portal_ClassBreaksRenderer.ClassBreakInfo.html +2 -1
  66. package/docs/html/interfaces/portal_ClassBreaksRenderer.ClassBreaksRenderer.html +2 -1
  67. package/docs/html/interfaces/portal_CodedValueDomain.CodedValue.html +1 -1
  68. package/docs/html/interfaces/portal_CodedValueDomain.CodedValueDomain-1.html +1 -1
  69. package/docs/html/interfaces/portal_ColorClassBreakInfo.ColorClassBreakInfo.html +2 -1
  70. package/docs/html/interfaces/portal_ColorUniqueValueInfos.ColorUniqueValueInfos.html +2 -1
  71. package/docs/html/interfaces/portal_DataSource.DataSourceBase.html +2 -2
  72. package/docs/html/interfaces/portal_DefinitionEditor.DefinitionEditor.html +2 -1
  73. package/docs/html/interfaces/portal_DefinitionEditor.Input.html +1 -1
  74. package/docs/html/interfaces/portal_DefinitionEditor.Parameter.html +1 -1
  75. package/docs/html/interfaces/portal_DrawingInfo.DrawingInfo-1.html +2 -1
  76. package/docs/html/interfaces/portal_DynamicDataLayer.DynamicDataLayer.html +2 -2
  77. package/docs/html/interfaces/portal_DynamicMapLayer.DynamicMapLayer.html +1 -1
  78. package/docs/html/interfaces/portal_ElevationInfo.ElevationInfo-1.html +1 -1
  79. package/docs/html/interfaces/portal_ElevationLayer.ElevationLayer-1.html +3 -2
  80. package/docs/html/interfaces/portal_Environment.Environment-1.html +2 -1
  81. package/docs/html/interfaces/portal_Extent.Extent.html +1 -1
  82. package/docs/html/interfaces/portal_ExtrudeSymbol3DLayer.ExtrudeSymbol3DLayer.html +2 -1
  83. package/docs/html/interfaces/portal_Feature.Feature-1.html +2 -1
  84. package/docs/html/interfaces/portal_FeatureCollection.FeatureCollection.html +2 -1
  85. package/docs/html/interfaces/portal_FeatureLayer.FeatureLayer-1.html +3 -2
  86. package/docs/html/interfaces/portal_FeatureSet.FeatureSet.html +2 -1
  87. package/docs/html/interfaces/portal_Field.Field-1.html +1 -1
  88. package/docs/html/interfaces/portal_FieldInfo.FieldInfo.html +2 -1
  89. package/docs/html/interfaces/portal_FillSymbol3DLayer.FillSymbol3DLayer.html +2 -1
  90. package/docs/html/interfaces/portal_FormInfo.FormAttachmentElement.html +1 -1
  91. package/docs/html/interfaces/portal_FormInfo.FormBarcodeScannerInput.html +1 -1
  92. package/docs/html/interfaces/portal_FormInfo.FormComboBoxInput.html +1 -1
  93. package/docs/html/interfaces/portal_FormInfo.FormDateTimePickerInput.html +1 -1
  94. package/docs/html/interfaces/portal_FormInfo.FormExpressionInfo.html +1 -1
  95. package/docs/html/interfaces/portal_FormInfo.FormFieldElement.html +1 -1
  96. package/docs/html/interfaces/portal_FormInfo.FormGroupElement.html +1 -1
  97. package/docs/html/interfaces/portal_FormInfo.FormInfo-1.html +1 -1
  98. package/docs/html/interfaces/portal_FormInfo.FormRadioButtonsInput.html +1 -1
  99. package/docs/html/interfaces/portal_FormInfo.FormRelationshipElement.html +1 -1
  100. package/docs/html/interfaces/portal_FormInfo.FormSwitchInput.html +1 -1
  101. package/docs/html/interfaces/portal_FormInfo.FormTextAreaInput.html +1 -1
  102. package/docs/html/interfaces/portal_FormInfo.FormTextBoxInput.html +1 -1
  103. package/docs/html/interfaces/portal_Format.Format.html +2 -1
  104. package/docs/html/interfaces/portal_GeoRSSLayer.GeoRSSLayer-1.html +3 -2
  105. package/docs/html/interfaces/portal_GroupLayer.GroupLayer-1.html +3 -2
  106. package/docs/html/interfaces/portal_HeatmapRenderer.ColorStop.html +2 -1
  107. package/docs/html/interfaces/portal_HeatmapRenderer.HeatmapRenderer.html +2 -1
  108. package/docs/html/interfaces/portal_IconSymbol3DLayer.IconSymbol3DLayer.html +2 -1
  109. package/docs/html/interfaces/portal_ImageServiceLayer.ImageServiceLayer-1.html +3 -2
  110. package/docs/html/interfaces/portal_ImageServiceVectorLayer.ImageServiceVectorLayer.html +3 -2
  111. package/docs/html/interfaces/portal_InheritedDomain.InheritedDomain-1.html +1 -1
  112. package/docs/html/interfaces/portal_InitialState.InitialState-1.html +2 -1
  113. package/docs/html/interfaces/portal_IntegratedMeshLayer.IntegratedMeshLayer-1.html +3 -2
  114. package/docs/html/interfaces/portal_Item.Item-1.html +3 -2
  115. package/docs/html/interfaces/portal_JoinTableDataSource.JoinTableDataSource.html +2 -2
  116. package/docs/html/interfaces/portal_KMLLayer.KMLLayer-1.html +3 -2
  117. package/docs/html/interfaces/portal_LabelSymbol3D.LabelSymbol3D.html +2 -1
  118. package/docs/html/interfaces/portal_LabelingInfo.LabelingInfo-1.html +3 -2
  119. package/docs/html/interfaces/portal_Layer.Layer-1.html +1 -1
  120. package/docs/html/interfaces/portal_LayerDefinition.FieldOverride.html +1 -1
  121. package/docs/html/interfaces/portal_LayerDefinition.LayerDefinition-1.html +4 -3
  122. package/docs/html/interfaces/portal_LayerDefinition.LayerTimeInfo.html +2 -2
  123. package/docs/html/interfaces/portal_Lighting.SunLighting.html +2 -1
  124. package/docs/html/interfaces/portal_Lighting.VirtualLighting.html +2 -1
  125. package/docs/html/interfaces/portal_LineSymbol3D.LineSymbol3D.html +2 -1
  126. package/docs/html/interfaces/portal_LineSymbol3DLayer.LineSymbol3DLayer.html +2 -1
  127. package/docs/html/interfaces/portal_LocationInfo.LocationInfo.html +2 -1
  128. package/docs/html/interfaces/portal_MapFloorInfo.FacilityLayerInfo.html +1 -1
  129. package/docs/html/interfaces/portal_MapFloorInfo.LevelLayerInfo.html +1 -1
  130. package/docs/html/interfaces/portal_MapFloorInfo.MapFloorInfo-1.html +1 -1
  131. package/docs/html/interfaces/portal_MapFloorInfo.SiteLayerInfo.html +1 -1
  132. package/docs/html/interfaces/portal_MapRangeInfo.MapRangeInfo.html +2 -1
  133. package/docs/html/interfaces/portal_MapServiceLayer.MapServiceLayer-1.html +3 -2
  134. package/docs/html/interfaces/portal_MeshSymbol3D.MeshSymbol3D.html +2 -1
  135. package/docs/html/interfaces/portal_MosaicRule.MosaicRule-1.html +2 -1
  136. package/docs/html/interfaces/portal_Multipoint.Multipoint.html +1 -1
  137. package/docs/html/interfaces/portal_ObjectSymbol3DLayer.ObjectSymbol3DLayer.html +2 -1
  138. package/docs/html/interfaces/portal_OpenStreetMapLayer.OpenStreetMapLayer-1.html +2 -1
  139. package/docs/html/interfaces/portal_OperationalLayer.OperationalLayerBase.html +1 -1
  140. package/docs/html/interfaces/portal_PathSymbol3DLayer.PathSymbol3DLayer.html +2 -1
  141. package/docs/html/interfaces/portal_PictureFillSymbol.PictureFillSymbol.html +2 -1
  142. package/docs/html/interfaces/portal_PictureMarkerSymbol.PictureMarkerSymbol.html +2 -1
  143. package/docs/html/interfaces/portal_Point.Point.html +2 -1
  144. package/docs/html/interfaces/portal_PointCloudBitfieldFilter.PointCloudBitfieldFilter.html +2 -1
  145. package/docs/html/interfaces/portal_PointCloudClassBreaksRenderer.PointCloudClassBreaksRenderer.html +4 -2
  146. package/docs/html/interfaces/portal_PointCloudFixedSizeAlgorithm.PointCloudFixedSizeAlgorithm.html +2 -1
  147. package/docs/html/interfaces/portal_PointCloudLayer.PointCloudLayer-1.html +3 -2
  148. package/docs/html/interfaces/portal_PointCloudRGBRenderer.PointCloudRGBRenderer.html +4 -2
  149. package/docs/html/interfaces/portal_PointCloudRenderer.PointCloudRendererBase.html +4 -2
  150. package/docs/html/interfaces/portal_PointCloudReturnFilter.PointCloudReturnFilter.html +2 -1
  151. package/docs/html/interfaces/portal_PointCloudSplatAlgorithm.PointCloudSplatAlgorithm.html +2 -1
  152. package/docs/html/interfaces/portal_PointCloudStretchRenderer.PointCloudStretchRenderer.html +4 -2
  153. package/docs/html/interfaces/portal_PointCloudUniqueValueRenderer.PointCloudUniqueValueRenderer.html +4 -2
  154. package/docs/html/interfaces/portal_PointCloudValueFilter.PointCloudValueFilter.html +2 -1
  155. package/docs/html/interfaces/portal_PointSymbol3D.PointSymbol3D.html +3 -2
  156. package/docs/html/interfaces/portal_Polygon.Polygon.html +1 -1
  157. package/docs/html/interfaces/portal_PolygonSymbol3D.PolygonSymbol3D.html +2 -1
  158. package/docs/html/interfaces/portal_Polyline.Polyline.html +1 -1
  159. package/docs/html/interfaces/portal_PopupExpressionInfo.PopupExpressionInfo.html +2 -1
  160. package/docs/html/interfaces/portal_PopupInfo.OrderByFields.html +2 -1
  161. package/docs/html/interfaces/portal_PopupInfo.RelatedRecordsInfo.html +2 -1
  162. package/docs/html/interfaces/portal_PredominanceRenderer.PredominanceRenderer.html +2 -1
  163. package/docs/html/interfaces/portal_Presentation.Presentation-1.html +2 -1
  164. package/docs/html/interfaces/portal_QueryTableDataSource.QueryTableDataSource.html +2 -2
  165. package/docs/html/interfaces/portal_RangeDomain.RangeDomain-1.html +1 -1
  166. package/docs/html/interfaces/portal_RangeInfo.RangeInfo.html +2 -1
  167. package/docs/html/interfaces/portal_RasterDataSource.RasterDataSource.html +2 -2
  168. package/docs/html/interfaces/portal_Renderer.AuthoringInfo.html +2 -1
  169. package/docs/html/interfaces/portal_Renderer.ColorRamp.html +1 -1
  170. package/docs/html/interfaces/portal_Renderer.RendererBase.html +2 -1
  171. package/docs/html/interfaces/portal_RenderingRule.RenderingRule-1.html +3 -2
  172. package/docs/html/interfaces/portal_SceneLayer.SceneLayer-1.html +3 -2
  173. package/docs/html/interfaces/portal_SimpleFillSymbol.SimpleFillSymbol.html +2 -1
  174. package/docs/html/interfaces/portal_SimpleLineSymbol.SimpleLineSymbol.html +2 -1
  175. package/docs/html/interfaces/portal_SimpleMarkerSymbol.SimpleMarkerSymbol.html +2 -1
  176. package/docs/html/interfaces/portal_SimpleRenderer.SimpleRenderer.html +2 -1
  177. package/docs/html/interfaces/portal_Slide.Slide-1.html +4 -4
  178. package/docs/html/interfaces/portal_SpatialReference.SpatialReference-1.html +2 -1
  179. package/docs/html/interfaces/portal_StreamLayer.StreamLayer-1.html +2 -2
  180. package/docs/html/interfaces/portal_StyleSymbolReference.StyleSymbolReference.html +2 -1
  181. package/docs/html/interfaces/portal_SubtypeGroupLayer.SubtypeGroupLayer-1.html +3 -2
  182. package/docs/html/interfaces/portal_SubtypeGroupLayer.SubtypeSubtypeGroupLayer.html +2 -2
  183. package/docs/html/interfaces/portal_SubtypeSublayer.SubtypeSublayer-1.html +3 -2
  184. package/docs/html/interfaces/portal_Symbol.Font.html +1 -1
  185. package/docs/html/interfaces/portal_Symbol3D.Material.html +2 -1
  186. package/docs/html/interfaces/portal_Symbol3D.Outline.html +2 -1
  187. package/docs/html/interfaces/portal_Symbol3D.ResourceIconSymbol.html +2 -1
  188. package/docs/html/interfaces/portal_Symbol3D.ResourceObjectSymbol.html +2 -1
  189. package/docs/html/interfaces/portal_Table.Table.html +1 -1
  190. package/docs/html/interfaces/portal_TableDataSource.TableDataSource.html +2 -2
  191. package/docs/html/interfaces/portal_Template.Template-1.html +2 -1
  192. package/docs/html/interfaces/portal_TemporalRenderer.TemporalRenderer.html +2 -1
  193. package/docs/html/interfaces/portal_TextSymbol.TextSymbol.html +2 -1
  194. package/docs/html/interfaces/portal_TextSymbol3DLayer.TextSymbol3DLayer.html +2 -1
  195. package/docs/html/interfaces/portal_TileInfo.TileInfo-1.html +3 -2
  196. package/docs/html/interfaces/portal_TiledImageServiceLayer.TiledImageServiceLayer-1.html +3 -2
  197. package/docs/html/interfaces/portal_TiledMapServiceLayer.TiledMapServiceLayer-1.html +4 -3
  198. package/docs/html/interfaces/portal_Type.Type-1.html +3 -8
  199. package/docs/html/interfaces/portal_UniqueValueFromStyle.UniqueValueFromStyle.html +2 -1
  200. package/docs/html/interfaces/portal_UniqueValueRenderer.UniqueValueInfo.html +2 -1
  201. package/docs/html/interfaces/portal_UniqueValueRenderer.UniqueValueRenderer.html +2 -1
  202. package/docs/html/interfaces/portal_UtilityNetwork.TraceConfiguration.html +1 -1
  203. package/docs/html/interfaces/portal_UtilityNetwork.UtilityNetwork-1.html +1 -1
  204. package/docs/html/interfaces/portal_Value.Value.html +1 -1
  205. package/docs/html/interfaces/portal_VectorTileLayer.VectorTileLayer-1.html +3 -2
  206. package/docs/html/interfaces/portal_VerticalOffset.VerticalOffset.html +1 -1
  207. package/docs/html/interfaces/portal_Viewpoint.Viewpoint-1.html +2 -1
  208. package/docs/html/interfaces/portal_VisualVariable.ColorInfo.html +3 -2
  209. package/docs/html/interfaces/portal_VisualVariable.RotationInfo.html +3 -2
  210. package/docs/html/interfaces/portal_VisualVariable.Size.html +2 -1
  211. package/docs/html/interfaces/portal_VisualVariable.SizeInfo.html +3 -2
  212. package/docs/html/interfaces/portal_VisualVariable.TransparencyInfo.html +2 -1
  213. package/docs/html/interfaces/portal_VisualVariable.VisualVariableBase.html +1 -1
  214. package/docs/html/interfaces/portal_WMSLayer.WMSLayer-1.html +3 -2
  215. package/docs/html/interfaces/portal_WMSSublayer.WMSSublayer-1.html +2 -1
  216. package/docs/html/interfaces/portal_WMTSInfo.WMTSInfo-1.html +1 -1
  217. package/docs/html/interfaces/portal_Weather.CloudyWeather.html +2 -1
  218. package/docs/html/interfaces/portal_Weather.FoggyWeather.html +2 -1
  219. package/docs/html/interfaces/portal_Weather.RainyWeather.html +2 -1
  220. package/docs/html/interfaces/portal_Weather.SnowyWeather.html +2 -1
  221. package/docs/html/interfaces/portal_Weather.SunnyWeather.html +2 -1
  222. package/docs/html/interfaces/portal_WebMap.WebMap-1.html +3 -3
  223. package/docs/html/interfaces/portal_WebScene.WebScene-1.html +5 -3
  224. package/docs/html/interfaces/portal_WebSceneBaseMap.WebSceneBaseMap-1.html +2 -1
  225. package/docs/html/interfaces/portal_WebTileLayer.WebTileLayer-1.html +3 -2
  226. package/docs/html/interfaces/portal_Widgets.FloorFilter.html +1 -1
  227. package/docs/html/interfaces/portal_Widgets.Range.html +1 -1
  228. package/docs/html/interfaces/portal_Widgets.TimeSlider.html +3 -2
  229. package/docs/html/interfaces/portal_Widgets.Widgets.html +2 -1
  230. package/docs/html/interfaces/support_Serializable.PropertyDef.html +2 -2
  231. package/docs/html/interfaces/tasks_identify_IdentifyOptions.IdentifyOptions-1.html +2 -2
  232. package/docs/html/interfaces/tasks_search_SearchOptions.SearchOptions-1.html +2 -2
  233. package/docs/html/interfaces/utilities_array.CompareOptions.html +8 -8
  234. package/docs/html/interfaces/utilities_geometry.GeographicTransformationJson.html +1 -1
  235. package/docs/html/types/portal_DataSource.DataSource.html +1 -0
  236. package/docs/html/types/portal_Domain.Domain-1.html +2 -1
  237. package/docs/html/types/portal_Geometry.Geometry.html +1 -1
  238. package/docs/html/types/portal_PointCloudFilter.PointCloudFilter.html +2 -1
  239. package/docs/html/types/portal_Symbol.Color.html +1 -1
  240. package/docs/html/types/portal_Symbol.Symbol.html +1 -1
  241. package/docs/html/types/portal_Symbol3D.Symbol3D.html +2 -1
  242. package/docs/html/types/portal_VisualVariable.VisualVariable.html +2 -1
  243. package/docs/html/variables/mapping_BasemapExtension.defaultBasemapExtensionFactory.html +2 -2
  244. package/docs/html/variables/version.version.html +1 -1
  245. package/forked-libs/dbf/src/fields.js +1 -1
  246. package/forked-libs/dbf/src/structure.js +1 -1
  247. package/forked-libs/shp-write/src/download.js +1 -1
  248. package/forked-libs/shp-write/src/fields.js +1 -1
  249. package/forked-libs/shp-write/src/geojson.js +1 -1
  250. package/forked-libs/shp-write/src/multipoint.js +1 -1
  251. package/forked-libs/shp-write/src/points.js +1 -1
  252. package/forked-libs/shp-write/src/poly.js +1 -1
  253. package/forked-libs/shp-write/src/write.js +1 -1
  254. package/forked-libs/shp-write/src/zip.js +1 -1
  255. package/layer-preset/LayerPreset.d.ts +1 -1
  256. package/layer-preset/LayerPreset.js +1 -1
  257. package/layer-preset/LayerPresetSettings.d.ts +1 -1
  258. package/layer-preset/LayerPresetSettings.js +1 -1
  259. package/locale/_registry.js +1 -1
  260. package/locale/af.js +1 -1
  261. package/locale/ar-MA.js +1 -1
  262. package/locale/ar-SA.js +1 -1
  263. package/locale/ar-TN.js +1 -1
  264. package/locale/ar.js +1 -1
  265. package/locale/az.js +1 -1
  266. package/locale/be.js +1 -1
  267. package/locale/bg.js +1 -1
  268. package/locale/bn.js +1 -1
  269. package/locale/bs.js +1 -1
  270. package/locale/ca.js +1 -1
  271. package/locale/cs.js +1 -1
  272. package/locale/cv.js +1 -1
  273. package/locale/cy.js +1 -1
  274. package/locale/da.js +1 -1
  275. package/locale/de-AT.js +1 -1
  276. package/locale/de.js +1 -1
  277. package/locale/el.js +1 -1
  278. package/locale/en-AU.js +1 -1
  279. package/locale/en-CA.js +1 -1
  280. package/locale/en-GB.js +1 -1
  281. package/locale/en.js +1 -1
  282. package/locale/es.js +1 -1
  283. package/locale/et.js +1 -1
  284. package/locale/eu.js +1 -1
  285. package/locale/fa.js +1 -1
  286. package/locale/fi.js +1 -1
  287. package/locale/fo.js +1 -1
  288. package/locale/fr-CA.js +1 -1
  289. package/locale/fr.js +1 -1
  290. package/locale/gl.js +1 -1
  291. package/locale/he.js +1 -1
  292. package/locale/hi.js +1 -1
  293. package/locale/hr.js +1 -1
  294. package/locale/hu.js +1 -1
  295. package/locale/hy.js +1 -1
  296. package/locale/id.js +1 -1
  297. package/locale/inv.js +1 -1
  298. package/locale/is.js +1 -1
  299. package/locale/it.js +1 -1
  300. package/locale/ja.js +1 -1
  301. package/locale/ka.js +1 -1
  302. package/locale/km.js +1 -1
  303. package/locale/ko.js +1 -1
  304. package/locale/language.js +1 -1
  305. package/locale/lt.js +1 -1
  306. package/locale/lv.js +1 -1
  307. package/locale/mk.js +1 -1
  308. package/locale/ml.js +1 -1
  309. package/locale/mr.js +1 -1
  310. package/locale/ms-MY.js +1 -1
  311. package/locale/ms.js +1 -1
  312. package/locale/my.js +1 -1
  313. package/locale/nb.js +1 -1
  314. package/locale/ne.js +1 -1
  315. package/locale/nl.js +1 -1
  316. package/locale/nn.js +1 -1
  317. package/locale/no.js +1 -1
  318. package/locale/pl.js +1 -1
  319. package/locale/pt-BR.js +1 -1
  320. package/locale/pt.js +1 -1
  321. package/locale/ro.js +1 -1
  322. package/locale/ru.js +1 -1
  323. package/locale/si.js +1 -1
  324. package/locale/sk.js +1 -1
  325. package/locale/sl.js +1 -1
  326. package/locale/sq.js +1 -1
  327. package/locale/sr-Cyrl.js +1 -1
  328. package/locale/sr-ME.js +1 -1
  329. package/locale/sr.js +1 -1
  330. package/locale/sv.js +1 -1
  331. package/locale/ta.js +1 -1
  332. package/locale/th.js +1 -1
  333. package/locale/tl.js +1 -1
  334. package/locale/tr.js +1 -1
  335. package/locale/tzm-Latn.js +1 -1
  336. package/locale/tzm.js +1 -1
  337. package/locale/uk.js +1 -1
  338. package/locale/uz.js +1 -1
  339. package/locale/vi.js +1 -1
  340. package/locale/zh-TW.js +1 -1
  341. package/locale/zh.js +1 -1
  342. package/locale.js +1 -1
  343. package/mapping/ArcGISSublayerExtension.js +1 -1
  344. package/mapping/BasemapExtension.js +1 -1
  345. package/mapping/Bookmark.d.ts +1 -1
  346. package/mapping/Bookmark.js +1 -1
  347. package/mapping/BuildingComponentSublayerExtension.js +1 -1
  348. package/mapping/BuildingGroupSublayerExtension.js +1 -1
  349. package/mapping/BuildingSceneLayerExtension.js +1 -1
  350. package/mapping/BuildingSublayerExtension.js +1 -1
  351. package/mapping/CSVLayerExtension.js +1 -1
  352. package/mapping/ElevationLayerExtension.js +1 -1
  353. package/mapping/FeatureCollectionLayerExtension.js +1 -1
  354. package/mapping/FeatureLayerExtension.js +1 -1
  355. package/mapping/FeatureLayerExtensionBase.js +1 -1
  356. package/mapping/GeoRSSLayerExtension.js +1 -1
  357. package/mapping/GraphicsLayerExtension.js +1 -1
  358. package/mapping/GroundExtension.d.ts +1 -1
  359. package/mapping/GroundExtension.js +1 -1
  360. package/mapping/GroupLayerExtension.js +1 -1
  361. package/mapping/ImageryLayerExtension.js +1 -1
  362. package/mapping/ImageryTileLayerExtension.js +1 -1
  363. package/mapping/IntegratedMeshLayerExtension.js +1 -1
  364. package/mapping/KMLLayerExtension.js +1 -1
  365. package/mapping/KMLSublayerExtension.js +1 -1
  366. package/mapping/LayerExtension.js +1 -1
  367. package/mapping/MapConstraints.js +1 -1
  368. package/mapping/MapExtension.d.ts +5 -5
  369. package/mapping/MapExtension.js +1 -1
  370. package/mapping/MapImageLayerExtension.d.ts +1 -1
  371. package/mapping/MapImageLayerExtension.js +1 -1
  372. package/mapping/MapImageSublayerExtension.js +1 -1
  373. package/mapping/OpenStreetMapLayerExtension.js +1 -1
  374. package/mapping/PointCloudLayerExtension.js +1 -1
  375. package/mapping/SceneLayerExtension.js +1 -1
  376. package/mapping/StreamLayerExtension.js +1 -1
  377. package/mapping/SublayerExtension.js +1 -1
  378. package/mapping/SubtypeGroupLayerExtension.js +1 -1
  379. package/mapping/SubtypeSublayerExtension.js +1 -1
  380. package/mapping/TileLayerExtension.js +1 -1
  381. package/mapping/TileSublayerExtension.js +1 -1
  382. package/mapping/UnsupportedLayerExtension.js +1 -1
  383. package/mapping/VectorTileLayerExtension.js +1 -1
  384. package/mapping/WMSLayerExtension.js +1 -1
  385. package/mapping/WMSSublayerExtension.js +1 -1
  386. package/mapping/WMTSLayerExtension.js +1 -1
  387. package/mapping/WMTSSublayerExtension.js +1 -1
  388. package/mapping/WebTileLayerExtension.js +1 -1
  389. package/mapping/_LayerExtension.d.ts +1 -1
  390. package/mapping/_LayerExtension.js +1 -1
  391. package/mapping/_SublayerExtension.d.ts +1 -1
  392. package/mapping/_SublayerExtension.js +1 -1
  393. package/mapping/convert.js +1 -1
  394. package/mapping/support/ArrayWrappedCollection.js +1 -1
  395. package/mapping/support/DefaultLayerExtensionFactory.js +1 -1
  396. package/mapping/support/DefaultSublayerExtensionFactory.js +1 -1
  397. package/mapping/support/LayerListSettings.js +1 -1
  398. package/mapping/support/PopupTemplateFeatureSettings.js +1 -1
  399. package/mapping/support/WfsCapabilities.js +1 -1
  400. package/mapping/support/WfsFeatureType.js +1 -1
  401. package/mapping/support/_LayerExtensionCollection.js +1 -1
  402. package/mapping/support/_SublayerExtensionCollection.js +1 -1
  403. package/mapping/support/_kml.js +1 -1
  404. package/mapping/support/ogc.js +1 -1
  405. package/menus/Menu.js +1 -1
  406. package/menus/MenuItem.js +1 -1
  407. package/package.json +36 -35
  408. package/portal/ApplicationProperties.d.ts +16 -13
  409. package/portal/Background.d.ts +3 -2
  410. package/portal/Background.js +1 -1
  411. package/portal/BaseMap.d.ts +1 -0
  412. package/portal/BaseMap.js +1 -1
  413. package/portal/BaseMapLayer.d.ts +3 -2
  414. package/portal/BingLayer.d.ts +1 -0
  415. package/portal/Bookmark.d.ts +1 -0
  416. package/portal/BuildingSceneLayer.d.ts +1 -1
  417. package/portal/BuildingSceneLayer.js +1 -1
  418. package/portal/BuildingSceneSublayer.js +1 -1
  419. package/portal/CIMSymbol.d.ts +1 -0
  420. package/portal/CSVLayer.d.ts +1 -0
  421. package/portal/CSVLayer.js +1 -1
  422. package/portal/Camera.d.ts +1 -0
  423. package/portal/Camera.js +1 -1
  424. package/portal/ClassBreaksRenderer.d.ts +4 -2
  425. package/portal/CodedValueDomain.d.ts +2 -2
  426. package/portal/CodedValueDomain.js +1 -1
  427. package/portal/ColorClassBreakInfo.d.ts +1 -0
  428. package/portal/ColorUniqueValueInfos.d.ts +1 -0
  429. package/portal/DataSource.d.ts +5 -4
  430. package/portal/DefinitionEditor.d.ts +3 -2
  431. package/portal/Domain.d.ts +3 -2
  432. package/portal/Domain.js +1 -1
  433. package/portal/DrawingInfo.d.ts +1 -0
  434. package/portal/DrawingInfo.js +1 -1
  435. package/portal/DynamicDataLayer.d.ts +2 -2
  436. package/portal/DynamicMapLayer.d.ts +1 -1
  437. package/portal/Edges.d.ts +1 -1
  438. package/portal/Edges.js +1 -1
  439. package/portal/Effect.d.ts +2 -2
  440. package/portal/ElevationInfo.d.ts +2 -2
  441. package/portal/ElevationInfo.js +1 -1
  442. package/portal/ElevationLayer.d.ts +1 -0
  443. package/portal/ElevationLayer.js +1 -1
  444. package/portal/Environment.d.ts +1 -0
  445. package/portal/Environment.js +1 -1
  446. package/portal/Extent.d.ts +1 -1
  447. package/portal/ExtrudeSymbol3DLayer.d.ts +1 -0
  448. package/portal/Feature.d.ts +1 -0
  449. package/portal/Feature.js +1 -1
  450. package/portal/FeatureCollection.d.ts +1 -0
  451. package/portal/FeatureLayer.d.ts +2 -1
  452. package/portal/FeatureLayer.js +1 -1
  453. package/portal/FeatureReduction.d.ts +1 -1
  454. package/portal/FeatureReduction.js +1 -1
  455. package/portal/FeatureSet.d.ts +1 -0
  456. package/portal/Field.d.ts +2 -2
  457. package/portal/Field.js +1 -1
  458. package/portal/FieldInfo.d.ts +2 -1
  459. package/portal/FillSymbol3DLayer.d.ts +1 -0
  460. package/portal/FormInfo.d.ts +13 -13
  461. package/portal/FormInfo.js +1 -1
  462. package/portal/Format.d.ts +2 -1
  463. package/portal/GeoRSSLayer.d.ts +1 -0
  464. package/portal/GeoRSSLayer.js +1 -1
  465. package/portal/Geometry.d.ts +3 -3
  466. package/portal/Geometry.js +1 -1
  467. package/portal/Ground.d.ts +1 -1
  468. package/portal/Ground.js +1 -1
  469. package/portal/GroupLayer.d.ts +2 -1
  470. package/portal/GroupLayer.js +1 -1
  471. package/portal/HeatmapRenderer.d.ts +2 -0
  472. package/portal/IconSymbol3DLayer.d.ts +1 -0
  473. package/portal/ImageServiceLayer.d.ts +1 -0
  474. package/portal/ImageServiceLayer.js +1 -1
  475. package/portal/ImageServiceVectorLayer.d.ts +1 -0
  476. package/portal/InheritedDomain.d.ts +1 -1
  477. package/portal/InheritedDomain.js +1 -1
  478. package/portal/InitialState.d.ts +1 -0
  479. package/portal/InitialState.js +1 -1
  480. package/portal/IntegratedMeshLayer.d.ts +1 -0
  481. package/portal/IntegratedMeshLayer.js +1 -1
  482. package/portal/Item.d.ts +2 -1
  483. package/portal/Item.js +1 -1
  484. package/portal/JoinTableDataSource.d.ts +2 -2
  485. package/portal/KMLLayer.d.ts +1 -0
  486. package/portal/KMLLayer.js +1 -1
  487. package/portal/LabelSymbol3D.d.ts +1 -0
  488. package/portal/LabelingInfo.d.ts +3 -2
  489. package/portal/LabelingInfo.js +1 -1
  490. package/portal/Layer.d.ts +1 -1
  491. package/portal/Layer.js +1 -1
  492. package/portal/LayerBase.js +1 -1
  493. package/portal/LayerDefinition.d.ts +8 -7
  494. package/portal/LayerDefinition.js +1 -1
  495. package/portal/Lighting.d.ts +3 -1
  496. package/portal/Lighting.js +1 -1
  497. package/portal/LineSymbol3D.d.ts +1 -0
  498. package/portal/LineSymbol3DLayer.d.ts +1 -0
  499. package/portal/LocationInfo.d.ts +1 -0
  500. package/portal/MapFloorInfo.d.ts +4 -4
  501. package/portal/MapFloorInfo.js +1 -1
  502. package/portal/MapRangeInfo.d.ts +1 -0
  503. package/portal/MapServiceLayer.d.ts +1 -0
  504. package/portal/MapServiceLayer.js +1 -1
  505. package/portal/MediaInfo.d.ts +1 -1
  506. package/portal/MediaInfo.js +1 -1
  507. package/portal/MeshSymbol3D.d.ts +1 -0
  508. package/portal/MosaicRule.d.ts +3 -2
  509. package/portal/MosaicRule.js +1 -1
  510. package/portal/Multipoint.d.ts +1 -1
  511. package/portal/ObjectSymbol3DLayer.d.ts +1 -0
  512. package/portal/OpenStreetMapLayer.d.ts +1 -0
  513. package/portal/OpenStreetMapLayer.js +1 -1
  514. package/portal/OperationalLayer.d.ts +3 -3
  515. package/portal/PathSymbol3DLayer.d.ts +1 -0
  516. package/portal/PictureFillSymbol.d.ts +1 -0
  517. package/portal/PictureMarkerSymbol.d.ts +1 -0
  518. package/portal/Point.d.ts +2 -1
  519. package/portal/PointCloudBitfieldFilter.d.ts +1 -0
  520. package/portal/PointCloudClassBreaksRenderer.d.ts +1 -0
  521. package/portal/PointCloudFilter.d.ts +2 -1
  522. package/portal/PointCloudFixedSizeAlgorithm.d.ts +1 -0
  523. package/portal/PointCloudLayer.d.ts +1 -0
  524. package/portal/PointCloudLayer.js +1 -1
  525. package/portal/PointCloudRGBRenderer.d.ts +1 -0
  526. package/portal/PointCloudRenderer.d.ts +3 -1
  527. package/portal/PointCloudRenderer.js +1 -1
  528. package/portal/PointCloudReturnFilter.d.ts +1 -0
  529. package/portal/PointCloudSplatAlgorithm.d.ts +1 -0
  530. package/portal/PointCloudStretchRenderer.d.ts +1 -0
  531. package/portal/PointCloudUniqueValueRenderer.d.ts +1 -0
  532. package/portal/PointCloudValueFilter.d.ts +1 -0
  533. package/portal/PointSymbol3D.d.ts +2 -1
  534. package/portal/Polygon.d.ts +1 -1
  535. package/portal/PolygonSymbol3D.d.ts +1 -0
  536. package/portal/Polyline.d.ts +1 -1
  537. package/portal/PopupExpressionInfo.d.ts +2 -1
  538. package/portal/PopupInfo.d.ts +3 -1
  539. package/portal/PopupInfo.js +1 -1
  540. package/portal/PredominanceRenderer.d.ts +1 -0
  541. package/portal/Presentation.d.ts +1 -0
  542. package/portal/Presentation.js +1 -1
  543. package/portal/QueryTableDataSource.d.ts +1 -1
  544. package/portal/RangeDomain.d.ts +1 -1
  545. package/portal/RangeDomain.js +1 -1
  546. package/portal/RangeInfo.d.ts +1 -0
  547. package/portal/RasterDataSource.d.ts +1 -1
  548. package/portal/Renderer.d.ts +8 -6
  549. package/portal/Renderer.js +1 -1
  550. package/portal/RenderingRule.d.ts +3 -2
  551. package/portal/RenderingRule.js +1 -1
  552. package/portal/SceneLayer.d.ts +1 -0
  553. package/portal/SceneLayer.js +1 -1
  554. package/portal/SimpleFillSymbol.d.ts +2 -1
  555. package/portal/SimpleLineSymbol.d.ts +2 -1
  556. package/portal/SimpleMarkerSymbol.d.ts +2 -1
  557. package/portal/SimpleRenderer.d.ts +1 -0
  558. package/portal/Slide.d.ts +4 -4
  559. package/portal/Slide.js +1 -1
  560. package/portal/SpatialReference.d.ts +1 -0
  561. package/portal/SpatialReference.js +1 -1
  562. package/portal/StreamLayer.d.ts +1 -1
  563. package/portal/StreamLayer.js +1 -1
  564. package/portal/StyleSymbolReference.d.ts +1 -0
  565. package/portal/SubtypeGroupLayer.d.ts +3 -2
  566. package/portal/SubtypeGroupLayer.js +1 -1
  567. package/portal/SubtypeSublayer.d.ts +1 -0
  568. package/portal/SubtypeSublayer.js +1 -1
  569. package/portal/Symbol.d.ts +11 -11
  570. package/portal/Symbol.js +1 -1
  571. package/portal/Symbol3D.d.ts +7 -2
  572. package/portal/Table.d.ts +3 -3
  573. package/portal/Table.js +1 -1
  574. package/portal/TableDataSource.d.ts +1 -1
  575. package/portal/Template.d.ts +2 -1
  576. package/portal/Template.js +1 -1
  577. package/portal/TemporalRenderer.d.ts +1 -0
  578. package/portal/TextSymbol.d.ts +1 -0
  579. package/portal/TextSymbol3DLayer.d.ts +1 -0
  580. package/portal/TileInfo.d.ts +2 -1
  581. package/portal/TileInfo.js +1 -1
  582. package/portal/TiledImageServiceLayer.d.ts +1 -0
  583. package/portal/TiledImageServiceLayer.js +1 -1
  584. package/portal/TiledMapServiceLayer.d.ts +2 -1
  585. package/portal/TiledMapServiceLayer.js +1 -1
  586. package/portal/Type.d.ts +2 -4
  587. package/portal/Type.js +1 -1
  588. package/portal/UniqueValueFromStyle.d.ts +1 -0
  589. package/portal/UniqueValueRenderer.d.ts +2 -0
  590. package/portal/UtilityNetwork.d.ts +2 -2
  591. package/portal/UtilityNetwork.js +1 -1
  592. package/portal/Value.d.ts +1 -1
  593. package/portal/VectorFieldRenderer.d.ts +1 -1
  594. package/portal/VectorTileLayer.d.ts +1 -0
  595. package/portal/VectorTileLayer.js +1 -1
  596. package/portal/VerticalOffset.d.ts +1 -1
  597. package/portal/Viewpoint.d.ts +1 -0
  598. package/portal/Viewpoint.js +1 -1
  599. package/portal/VisualVariable.d.ts +10 -4
  600. package/portal/WMSLayer.d.ts +1 -0
  601. package/portal/WMSLayer.js +1 -1
  602. package/portal/WMSSublayer.d.ts +1 -0
  603. package/portal/WMSSublayer.js +1 -1
  604. package/portal/WMTSInfo.d.ts +1 -1
  605. package/portal/WMTSInfo.js +1 -1
  606. package/portal/Weather.d.ts +6 -1
  607. package/portal/Weather.js +1 -1
  608. package/portal/WebMap.d.ts +3 -3
  609. package/portal/WebMap.js +1 -1
  610. package/portal/WebScene.d.ts +3 -1
  611. package/portal/WebScene.js +1 -1
  612. package/portal/WebSceneBaseMap.d.ts +1 -0
  613. package/portal/WebSceneBaseMap.js +1 -1
  614. package/portal/WebTileLayer.d.ts +1 -0
  615. package/portal/WebTileLayer.js +1 -1
  616. package/portal/Widgets.d.ts +6 -4
  617. package/portal/Widgets.js +1 -1
  618. package/portal/_LayerBase.d.ts +2 -2
  619. package/portal/_layerHelper.js +1 -1
  620. package/portal/_utils.js +1 -1
  621. package/support/Action.d.ts +4 -4
  622. package/support/ArcGISRequestHelper.js +1 -1
  623. package/support/Cancellable.d.ts +1 -1
  624. package/support/Cancellable.js +1 -1
  625. package/support/FormatSettings.js +1 -1
  626. package/support/InitializableBase.d.ts +1 -1
  627. package/support/InitializableBase.js +1 -1
  628. package/support/InitializableCollectionProxy.js +1 -1
  629. package/support/InitializeError.js +1 -1
  630. package/support/Observable.js +1 -1
  631. package/support/ReadOnlyInitializableCollection.js +1 -1
  632. package/support/Serializable.d.ts +4 -4
  633. package/support/Serializable.js +1 -1
  634. package/support/Settings.js +1 -1
  635. package/support/_ArcGISRelationshipCollection.js +1 -1
  636. package/support/_esriInternal.js +1 -1
  637. package/support/_graphicsQuery.js +1 -1
  638. package/support/_query.js +1 -1
  639. package/support/_requestCache.js +1 -1
  640. package/support/_restApiJson.d.ts +1 -1
  641. package/support/esri.d.ts +76 -76
  642. package/support/esri.js +1 -1
  643. package/tasks/geocoding/ArcGISGeocoder.js +1 -1
  644. package/tasks/geocoding/Geocoder.d.ts +1 -1
  645. package/tasks/geocoding/Geocoder.js +1 -1
  646. package/tasks/geocoding/utilities.js +1 -1
  647. package/tasks/identify/ArcGISSublayerQueryIdentifyProvider.js +1 -1
  648. package/tasks/identify/BuildingComponentSublayerClientSideIdentifyProvider.js +1 -1
  649. package/tasks/identify/BuildingComponentSublayerHitTestIdentifyProvider.js +1 -1
  650. package/tasks/identify/CSVLayer3DHitTestIdentifyProvider.js +1 -1
  651. package/tasks/identify/CSVLayerClientSideQueryIdentifyProvider.js +1 -1
  652. package/tasks/identify/ClientSideIdentifyProvider.d.ts +2 -2
  653. package/tasks/identify/ClientSideIdentifyProvider.js +1 -1
  654. package/tasks/identify/FeatureLayer3DHitTestIdentifyProvider.js +1 -1
  655. package/tasks/identify/FeatureLayerClientSideIdentifyProvider.js +1 -1
  656. package/tasks/identify/FeatureLayerQueryIdentifyProvider.js +1 -1
  657. package/tasks/identify/GeoRSSLayerIdentifyProvider.js +1 -1
  658. package/tasks/identify/GraphicsLayerQueryIdentifyProvider.js +1 -1
  659. package/tasks/identify/HitTestIdentifyProvider.d.ts +2 -2
  660. package/tasks/identify/HitTestIdentifyProvider.js +1 -1
  661. package/tasks/identify/IdentifyError.js +1 -1
  662. package/tasks/identify/IdentifyProviderBase.js +1 -1
  663. package/tasks/identify/IdentifyService.js +1 -1
  664. package/tasks/identify/ImageryLayerIdentifyProvider.js +1 -1
  665. package/tasks/identify/KMLLayerQueryIdentifyProvider.js +1 -1
  666. package/tasks/identify/PointCloudLayerHitTestIdentifyProvider.js +1 -1
  667. package/tasks/identify/SceneLayerClientSideIdentifyProvider.js +1 -1
  668. package/tasks/identify/SceneLayerHitTestIdentifyProvider.js +1 -1
  669. package/tasks/identify/SceneLayerQueryIdentifyProvider.js +1 -1
  670. package/tasks/identify/StreamLayerClientSideQueryIdentifyProvider.js +1 -1
  671. package/tasks/identify/StreamLayerQueryIdentifyProvider.js +1 -1
  672. package/tasks/identify/SubtypeSublayerClientSideIdentifyProvider.js +1 -1
  673. package/tasks/identify/SubtypeSublayerQueryIdentifyProvider.js +1 -1
  674. package/tasks/identify/WMSSublayerIdentifyProvider.js +1 -1
  675. package/tasks/query/ArcGISRelationship.js +1 -1
  676. package/tasks/query/ArcGISServiceTableQueryProvider.js +1 -1
  677. package/tasks/query/ArcGISSublayerQueryProvider.js +1 -1
  678. package/tasks/query/BuildingComponentSublayerClientSideQueryProvider.js +1 -1
  679. package/tasks/query/CSVLayerClientSideQueryProvider.js +1 -1
  680. package/tasks/query/CSVLayerQueryProvider.js +1 -1
  681. package/tasks/query/ClientSideQueryProvider.d.ts +2 -2
  682. package/tasks/query/ClientSideQueryProvider.js +1 -1
  683. package/tasks/query/FeatureLayerQueryProvider.js +1 -1
  684. package/tasks/query/GeoRSSLayerQueryProvider.js +1 -1
  685. package/tasks/query/GraphicsLayerQueryProvider.js +1 -1
  686. package/tasks/query/ImageryLayerQueryProvider.js +1 -1
  687. package/tasks/query/KMLLayerQueryProvider.js +1 -1
  688. package/tasks/query/QueryBasedRelationship.js +1 -1
  689. package/tasks/query/QueryError.js +1 -1
  690. package/tasks/query/QueryProviderBase.js +1 -1
  691. package/tasks/query/QueryService.js +1 -1
  692. package/tasks/query/SceneLayerClientSideQueryProvider.js +1 -1
  693. package/tasks/query/SceneLayerQueryProvider.js +1 -1
  694. package/tasks/query/StreamLayerClientSideQueryProvider.js +1 -1
  695. package/tasks/query/StreamLayerQueryProvider.js +1 -1
  696. package/tasks/query/SubtypeSublayerQueryProvider.js +1 -1
  697. package/tasks/search/ArcGISGeocoderSearchProvider.js +1 -1
  698. package/tasks/search/GeocoderSearchProvider.js +1 -1
  699. package/tasks/search/QuerySearchProvider.js +1 -1
  700. package/tasks/search/SearchError.js +1 -1
  701. package/tasks/search/SearchProviderBase.js +1 -1
  702. package/tasks/search/SearchService.js +1 -1
  703. package/tasks/search/_utilities.js +1 -1
  704. package/utilities/CollectionProxy.js +1 -1
  705. package/utilities/CopyOnWriteCollection.js +1 -1
  706. package/utilities/GeometryServiceError.js +1 -1
  707. package/utilities/MapTransformCollection.js +1 -1
  708. package/utilities/ObservableMap.js +1 -1
  709. package/utilities/ObservableSet.js +1 -1
  710. package/utilities/ObservableWeakSet.js +1 -1
  711. package/utilities/ReadOnlyCollection.js +1 -1
  712. package/utilities/ReadOnlyMap.js +1 -1
  713. package/utilities/_layers.js +1 -1
  714. package/utilities/_ogc.js +1 -1
  715. package/utilities/arcade.js +1 -1
  716. package/utilities/array.js +1 -1
  717. package/utilities/asyncIterable.d.ts +1 -1
  718. package/utilities/asyncIterable.js +1 -1
  719. package/utilities/basemaps.js +1 -1
  720. package/utilities/checkArg.js +1 -1
  721. package/utilities/collection.js +1 -1
  722. package/utilities/date.js +1 -1
  723. package/utilities/esri.js +1 -1
  724. package/utilities/extensions.js +1 -1
  725. package/utilities/geometry.d.ts +2 -2
  726. package/utilities/geometry.js +1 -1
  727. package/utilities/iterable.js +1 -1
  728. package/utilities/log.d.ts +1 -1
  729. package/utilities/log.js +1 -1
  730. package/utilities/mapping.js +1 -1
  731. package/utilities/math.js +1 -1
  732. package/utilities/number.js +1 -1
  733. package/utilities/object.js +1 -1
  734. package/utilities/portal.d.ts +3 -3
  735. package/utilities/portal.js +1 -1
  736. package/utilities/promise.d.ts +1 -1
  737. package/utilities/promise.js +1 -1
  738. package/utilities/query.js +1 -1
  739. package/utilities/relationships.js +1 -1
  740. package/utilities/scaleRanges.d.ts +1 -1
  741. package/utilities/set.js +1 -1
  742. package/utilities/string.d.ts +6 -21
  743. package/utilities/string.js +1 -1
  744. package/utilities/symbol.js +1 -1
  745. package/utilities/uri.js +1 -1
  746. package/utilities/watch.js +1 -1
  747. package/version.d.ts +1 -1
  748. package/version.js +1 -1
@@ -1 +1 @@
1
- import EsriExtent from"@arcgis/core/geometry/Extent";import Portal from"@arcgis/core/portal/Portal";import PortalItem from"@arcgis/core/portal/PortalItem";import{isWebTileLayer,isWMTSLayer}from"../utilities/_layers.js";import{checkArg}from"../utilities/checkArg.js";import{deepClone}from"../utilities/object.js";import{TileInfo}from"./TileInfo.js";import{WMTSInfo}from"./WMTSInfo.js";import{ERR_LAYER_TYPE_MISMATCH,applyLayerBaseToEsriApiLayer,applyBasemapLayerToEsriApiLayer,applyOperationalLayerToEsriApiLayer,fromEsriApiLayerToLayerBase,fromEsriApiLayerToOperationalLayer}from"./_layerHelper.js";export var WebTileLayer;!function(e){async function r(e,r,i){checkArg("layerJson",e).isNotMissing();const a=e.layerType||e.type;checkArg("layerJson.layerType",a).satisfies((e=>!e||"WebTiledLayer"===e||"OpenStreetMap"===e),ERR_LAYER_TYPE_MISMATCH),checkArg("layer",r).isNotMissing().satisfies((e=>isWebTileLayer(e)||isWMTSLayer(e)),ERR_LAYER_TYPE_MISMATCH),applyLayerBaseToEsriApiLayer(e,r),applyBasemapLayerToEsriApiLayer(e,r),applyOperationalLayerToEsriApiLayer(e,r),e.hasOwnProperty("copyright")&&(r.copyright=e.copyright),e.hasOwnProperty("fullExtent")&&(r.fullExtent=EsriExtent.fromJSON(e.fullExtent)),e.hasOwnProperty("itemId")&&isWMTSLayer(r)&&(r.portalItem?r.portalItem.id=e.itemId:r.portalItem=new PortalItem({id:e.itemId,portal:i||Portal.getDefault()})),isWebTileLayer(r)?(e.hasOwnProperty("subDomains")&&(r.subDomains=deepClone(e.subDomains)),e.hasOwnProperty("templateUrl")&&(r.urlTemplate=e.templateUrl),e.hasOwnProperty("tileInfo")&&(r.tileInfo=TileInfo.toEsriApiTileInfo(e.tileInfo))):(checkArg("layerJson.layerType",a).satisfies((e=>"WebTiledLayer"===e),ERR_LAYER_TYPE_MISMATCH),e.hasOwnProperty("templateUrl")&&(r.serviceMode=e.templateUrl.includes("?")?"KVP":"RESTful"),e.wmtsInfo&&await WMTSInfo.applyToEsriApiLayer(e.wmtsInfo,r))}function i(e){return void 0!==e.wmtsInfo}e.toEsriApiLayer=async function(e){checkArg("layerJson",e).isNotMissing();const a=e.layerType||e.type;checkArg("layerJson.layerType",a).satisfies((e=>!e||"WebTiledLayer"===e),ERR_LAYER_TYPE_MISMATCH);const t=i(e)?new((await import("@arcgis/core/layers/WMTSLayer")).default):new((await import("@arcgis/core/layers/WebTileLayer")).default);return await r(e,t),t},e.applyToEsriApiLayer=r,e.fromEsriApiLayer=function(e){checkArg("layer",e).isNotMissing();const r={...fromEsriApiLayerToLayerBase(e),...fromEsriApiLayerToOperationalLayer(e),layerType:"WebTiledLayer"};return delete r.showLegend,e.copyright&&(r.copyright=e.copyright),e.fullExtent&&(r.fullExtent=e.fullExtent.toJSON()),isWebTileLayer(e)?(e.subDomains&&(r.subDomains=deepClone(e.subDomains)),e.urlTemplate&&(r.templateUrl=e.urlTemplate),e.tileInfo&&(r.tileInfo=TileInfo.fromEsriApiTileInfo(e.tileInfo))):(r.wmtsInfo=WMTSInfo.fromEsriApiLayer(e),e.customParameters&&(r.wmtsInfo.customParameters=e.customParameters),e.portalItem&&(r.itemId=e.portalItem.id)),r},e.isTileLayerWMTS=i}(WebTileLayer||(WebTileLayer={}));
1
+ import e from"@arcgis/core/geometry/Extent";import t from"@arcgis/core/portal/Portal";import r from"@arcgis/core/portal/PortalItem";import{isWebTileLayer as i,isWMTSLayer as o}from"../utilities/_layers.js";import{checkArg as a}from"../utilities/checkArg.js";import{deepClone as s}from"../utilities/object.js";import{TileInfo as l}from"./TileInfo.js";import{WMTSInfo as n}from"./WMTSInfo.js";import{ERR_LAYER_TYPE_MISMATCH as p,applyLayerBaseToEsriApiLayer as m,applyBasemapLayerToEsriApiLayer as y,applyOperationalLayerToEsriApiLayer as f,fromEsriApiLayerToLayerBase as c,fromEsriApiLayerToOperationalLayer as u}from"./_layerHelper.js";export var WebTileLayer;!function(T){async function I(c,u,T){a("layerJson",c).isNotMissing();const I=c.layerType||c.type;a("layerJson.layerType",I).satisfies((e=>!e||"WebTiledLayer"===e||"OpenStreetMap"===e),p),a("layer",u).isNotMissing().satisfies((e=>i(e)||o(e)),p),m(c,u),y(c,u),f(c,u),c.hasOwnProperty("copyright")&&(u.copyright=c.copyright),c.hasOwnProperty("fullExtent")&&(u.fullExtent=e.fromJSON(c.fullExtent)),c.hasOwnProperty("itemId")&&o(u)&&(u.portalItem?u.portalItem.id=c.itemId:u.portalItem=new r({id:c.itemId,portal:T||t.getDefault()})),i(u)?(c.hasOwnProperty("subDomains")&&(u.subDomains=s(c.subDomains)),c.hasOwnProperty("templateUrl")&&(u.urlTemplate=c.templateUrl),c.hasOwnProperty("tileInfo")&&(u.tileInfo=l.toEsriApiTileInfo(c.tileInfo))):(a("layerJson.layerType",I).satisfies((e=>"WebTiledLayer"===e),p),c.hasOwnProperty("templateUrl")&&(u.serviceMode=c.templateUrl.includes("?")?"KVP":"RESTful"),c.wmtsInfo&&await n.applyToEsriApiLayer(c.wmtsInfo,u))}function w(e){return void 0!==e.wmtsInfo}T.toEsriApiLayer=async function(e){a("layerJson",e).isNotMissing();const t=e.layerType||e.type;a("layerJson.layerType",t).satisfies((e=>!e||"WebTiledLayer"===e),p);const r=w(e)?new((await import("@arcgis/core/layers/WMTSLayer")).default):new((await import("@arcgis/core/layers/WebTileLayer")).default);return await I(e,r),r},T.applyToEsriApiLayer=I,T.fromEsriApiLayer=function(e){a("layer",e).isNotMissing();const t={...c(e),...u(e),layerType:"WebTiledLayer"};return delete t.showLegend,e.copyright&&(t.copyright=e.copyright),e.fullExtent&&(t.fullExtent=e.fullExtent.toJSON()),i(e)?(e.subDomains&&(t.subDomains=s(e.subDomains)),e.urlTemplate&&(t.templateUrl=e.urlTemplate),e.tileInfo&&(t.tileInfo=l.fromEsriApiTileInfo(e.tileInfo))):(t.wmtsInfo=n.fromEsriApiLayer(e),e.customParameters&&(t.wmtsInfo.customParameters=e.customParameters),e.portalItem&&(t.itemId=e.portalItem.id)),t},T.isTileLayerWMTS=w}(WebTileLayer||(WebTileLayer={}));
@@ -2,6 +2,7 @@ import type { TimeIntervalUnits, WebMapWidgetsObject } from "../support/esri.js"
2
2
  /**
3
3
  * The widgets object contains widgets that should be exposed to the user.
4
4
  *
5
+ * See
5
6
  * {@link https://developers.arcgis.com/web-map-specification/objects/widgets/}
6
7
  * {@link https://developers.arcgis.com/web-scene-specification/objects/widgets/}.
7
8
  */
@@ -21,7 +22,7 @@ export interface Widgets {
21
22
  floorFilter?: FloorFilter;
22
23
  }
23
24
  /**
24
- * Configurable properties used by the floor filter widget.
25
+ * Configurable properties used by the floor filter widget. See
25
26
  * {@link https://developers.arcgis.com/web-map-specification/objects/floorFilter/}.
26
27
  */
27
28
  export interface FloorFilter {
@@ -65,6 +66,7 @@ export interface FloorFilter {
65
66
  * Time animation is controlled by a configurable time slider. Those
66
67
  * configurations are saved to the web map as a timeSlider widget.
67
68
  *
69
+ * See
68
70
  * {@link https://developers.arcgis.com/web-map-specification/objects/timeSlider/}.
69
71
  */
70
72
  export interface TimeSlider {
@@ -93,7 +95,7 @@ export interface TimeSlider {
93
95
  */
94
96
  thumbMovingRate?: number;
95
97
  /**
96
- * The interval which has been defined for the time slider.
98
+ * The interval which has been defined for the time slider. See
97
99
  * {@link https://developers.arcgis.com/web-map-specification/objects/timeStopInterval/}.
98
100
  */
99
101
  timeStopInterval?: {
@@ -111,7 +113,7 @@ export interface TimeSlider {
111
113
  /**
112
114
  * Range object.
113
115
  *
114
- * {@link https://developers.arcgis.com/web-map-specification/objects/range/}
116
+ * See {@link https://developers.arcgis.com/web-map-specification/objects/range/}
115
117
  * {@link https://developers.arcgis.com/web-scene-specification/objects/range/}.
116
118
  */
117
119
  export interface Range {
@@ -133,7 +135,7 @@ export interface Range {
133
135
  /**
134
136
  * Time units enum.
135
137
  */
136
- export declare type TimeUnits = "esriTimeUnitsCenturies" | "esriTimeUnitsDays" | "esriTimeUnitsDecades" | "esriTimeUnitsHours" | "esriTimeUnitsMilliseconds" | "esriTimeUnitsMinutes" | "esriTimeUnitsMonths" | "esriTimeUnitsSeconds" | "esriTimeUnitsWeeks" | "esriTimeUnitsYears";
138
+ export type TimeUnits = "esriTimeUnitsCenturies" | "esriTimeUnitsDays" | "esriTimeUnitsDecades" | "esriTimeUnitsHours" | "esriTimeUnitsMilliseconds" | "esriTimeUnitsMinutes" | "esriTimeUnitsMonths" | "esriTimeUnitsSeconds" | "esriTimeUnitsWeeks" | "esriTimeUnitsYears";
137
139
  /**
138
140
  * Applies Portal WebMapWidgets config to an ESRI JS API WebMapWidgets object.
139
141
  *
package/portal/Widgets.js CHANGED
@@ -1 +1 @@
1
- import TimeExtent from"@arcgis/core/TimeExtent";import TimeInterval from"@arcgis/core/TimeInterval";export function applyToEsriApiWidgetsObject(e,t){const i=t??{},r=e?.timeSlider?.properties;if(r){const{endTime:e,startTime:t,numberOfStops:s,thumbCount:n,timeStopInterval:m}=r;i.timeSlider={currentTimeExtent:new TimeExtent({start:t,end:e}),numStops:s,numThumbs:n,stopInterval:new TimeInterval({unit:m?.units?toEsriApiTimeInterval(m.units):void 0,value:m?.interval})}}return i}export function fromEsriApiWidgetsObject(e,t){const i=t??{},r=e?.timeSlider;if(r){i.timeSlider?.properties||(i.timeSlider={properties:{}});const e=i.timeSlider.properties,{stopInterval:t,numThumbs:s,numStops:n,currentTimeExtent:m}=r;e.thumbCount=s,e.numberOfStops=n,e.startTime=m?.start?.valueOf(),e.endTime=m?.end?.valueOf(),t&&(e.timeStopInterval||(e.timeStopInterval={}),e.timeStopInterval.units=t.unit?fromEsriApiTimeInterval(t.unit):void 0,e.timeStopInterval.interval=t.value)}return i}export function toEsriApiTimeInterval(e){switch(e){case"esriTimeUnitsCenturies":return"centuries";case"esriTimeUnitsDays":return"days";case"esriTimeUnitsDecades":return"decades";case"esriTimeUnitsHours":return"hours";case"esriTimeUnitsMilliseconds":return"milliseconds";case"esriTimeUnitsMinutes":return"minutes";case"esriTimeUnitsMonths":return"months";case"esriTimeUnitsSeconds":return"seconds";case"esriTimeUnitsWeeks":return"weeks";case"esriTimeUnitsYears":return"years";default:throw new Error("Unknown time interval unit")}}export function fromEsriApiTimeInterval(e){switch(e){case"centuries":return"esriTimeUnitsCenturies";case"days":return"esriTimeUnitsDays";case"decades":return"esriTimeUnitsDecades";case"hours":return"esriTimeUnitsHours";case"milliseconds":return"esriTimeUnitsMilliseconds";case"minutes":return"esriTimeUnitsMinutes";case"months":return"esriTimeUnitsMonths";case"seconds":return"esriTimeUnitsSeconds";case"weeks":return"esriTimeUnitsWeeks";case"years":return"esriTimeUnitsYears";default:throw new Error("Unknown time interval unit")}}
1
+ import e from"@arcgis/core/TimeExtent";import t from"@arcgis/core/TimeInterval";export function applyToEsriApiWidgetsObject(i,r){const s=r??{},n=i?.timeSlider?.properties;if(n){const{endTime:i,startTime:r,numberOfStops:m,thumbCount:u,timeStopInterval:o}=n;s.timeSlider={currentTimeExtent:new e({start:r,end:i}),numStops:m,numThumbs:u,stopInterval:new t({unit:o?.units?toEsriApiTimeInterval(o.units):void 0,value:o?.interval})}}return s}export function fromEsriApiWidgetsObject(e,t){const i=t??{},r=e?.timeSlider;if(r){i.timeSlider?.properties||(i.timeSlider={properties:{}});const e=i.timeSlider.properties,{stopInterval:t,numThumbs:s,numStops:n,currentTimeExtent:m}=r;e.thumbCount=s,e.numberOfStops=n,e.startTime=m?.start?.valueOf(),e.endTime=m?.end?.valueOf(),t&&(e.timeStopInterval||(e.timeStopInterval={}),e.timeStopInterval.units=t.unit?fromEsriApiTimeInterval(t.unit):void 0,e.timeStopInterval.interval=t.value)}return i}export function toEsriApiTimeInterval(e){switch(e){case"esriTimeUnitsCenturies":return"centuries";case"esriTimeUnitsDays":return"days";case"esriTimeUnitsDecades":return"decades";case"esriTimeUnitsHours":return"hours";case"esriTimeUnitsMilliseconds":return"milliseconds";case"esriTimeUnitsMinutes":return"minutes";case"esriTimeUnitsMonths":return"months";case"esriTimeUnitsSeconds":return"seconds";case"esriTimeUnitsWeeks":return"weeks";case"esriTimeUnitsYears":return"years";default:throw new Error("Unknown time interval unit")}}export function fromEsriApiTimeInterval(e){switch(e){case"centuries":return"esriTimeUnitsCenturies";case"days":return"esriTimeUnitsDays";case"decades":return"esriTimeUnitsDecades";case"hours":return"esriTimeUnitsHours";case"milliseconds":return"esriTimeUnitsMilliseconds";case"minutes":return"esriTimeUnitsMinutes";case"months":return"esriTimeUnitsMonths";case"seconds":return"esriTimeUnitsSeconds";case"weeks":return"esriTimeUnitsWeeks";case"years":return"esriTimeUnitsYears";default:throw new Error("Unknown time interval unit")}}
@@ -73,7 +73,7 @@ export interface LayerBase {
73
73
  * possible values isn't officially documented by esri, however it's used in
74
74
  * ArcGIS online web maps.
75
75
  */
76
- export declare type LayerType = "ArcGISAnnotationLayer" | "ArcGISFeatureLayer" | "ArcGISMapServiceLayer" | "ArcGISTiledMapServiceLayer" | "ArcGISTiledElevationServiceLayer" | "ArcGISImageServiceLayer" | "ArcGISImageServiceVectorLayer" | "ArcGISTiledImageServiceLayer" | "VectorTileLayer" | "ArcGISSceneServiceLayer" | "ArcGISStreamLayer" | "BingMapsAerial" | "BingMapsHybrid" | "BingMapsRoad" | "OpenStreetMap" | "WebTiledLayer" | "KML" | "WMS" | "CSV" | "GeoRSS" | "IntegratedMeshLayer" | "GroupLayer" | "PointCloudLayer" | "BuildingSceneLayer" | "SubtypeGroupLayer";
76
+ export type LayerType = "ArcGISAnnotationLayer" | "ArcGISFeatureLayer" | "ArcGISMapServiceLayer" | "ArcGISTiledMapServiceLayer" | "ArcGISTiledElevationServiceLayer" | "ArcGISImageServiceLayer" | "ArcGISImageServiceVectorLayer" | "ArcGISTiledImageServiceLayer" | "VectorTileLayer" | "ArcGISSceneServiceLayer" | "ArcGISStreamLayer" | "BingMapsAerial" | "BingMapsHybrid" | "BingMapsRoad" | "OpenStreetMap" | "WebTiledLayer" | "KML" | "WMS" | "CSV" | "GeoRSS" | "IntegratedMeshLayer" | "GroupLayer" | "PointCloudLayer" | "BuildingSceneLayer" | "SubtypeGroupLayer";
77
77
  export declare namespace LayerBase {
78
78
  /**
79
79
  * Creates an Esri Layer object from the given Portal layer JSON.
@@ -134,4 +134,4 @@ export declare namespace LayerBase {
134
134
  /**
135
135
  * Options for blending layers.
136
136
  */
137
- export declare type BlendMode = "average" | "color-burn" | "color-dodge" | "color" | "darken" | "destination-atop" | "destination-in" | "destination-out" | "destination-over" | "difference" | "exclusion" | "hard-light" | "hue" | "invert" | "lighten" | "lighter" | "luminosity" | "minus" | "multiply" | "normal" | "overlay" | "plus" | "reflect" | "saturation" | "screen" | "soft-light" | "source-atop" | "source-in" | "source-out" | "vivid-light" | "xor";
137
+ export type BlendMode = "average" | "color-burn" | "color-dodge" | "color" | "darken" | "destination-atop" | "destination-in" | "destination-out" | "destination-over" | "difference" | "exclusion" | "hard-light" | "hue" | "invert" | "lighten" | "lighter" | "luminosity" | "minus" | "multiply" | "normal" | "overlay" | "plus" | "reflect" | "saturation" | "screen" | "soft-light" | "source-atop" | "source-in" | "source-out" | "vivid-light" | "xor";
@@ -1 +1 @@
1
- import{isCSVLayer,isElevationLayer,isFeatureLayer,isLayerWithLegendEnabledProperty,isStreamLayer,isSubtypeSublayer}from"../utilities/_layers.js";import{checkArg}from"../utilities/checkArg.js";export const ERR_LAYER_TYPE_MISMATCH="Layer type mismatch";export function applyLayerBaseToEsriApiLayer(e,i){if(checkArg("layerJson",e).isNotMissing(),checkArg("layer",i).isNotMissing(),e.hasOwnProperty("id")&&!isSubtypeSublayer(i)&&(i.id=e.id),e.hasOwnProperty("visibility")&&(i.visible=e.visibility),e.hasOwnProperty("opacity")&&(i.opacity=e.opacity),isElevationLayer(i)||(e.hasOwnProperty("maxScale")&&(i.maxScale=e.maxScale),e.hasOwnProperty("minScale")&&(i.minScale=e.minScale)),e.hasOwnProperty("showLegend"))try{isLayerWithLegendEnabledProperty(i)&&(i.legendEnabled=e.showLegend)}catch(e){}e.hasOwnProperty("title")&&(i.title=e.title),e.hasOwnProperty("blendMode")&&(i.blendMode=e.blendMode)}export function applyBasemapLayerToEsriApiLayer(e,i){checkArg("layerJson",e).isNotMissing(),checkArg("layer",i).isNotMissing()}export function applyOperationalLayerToEsriApiLayer(e,i){checkArg("layerJson",e).isNotMissing(),checkArg("layer",i).isNotMissing(),e.hasOwnProperty("refreshInterval")&&(i.refreshInterval=e.refreshInterval),e.hasOwnProperty("listMode")&&(i.listMode=e.listMode)}export function fromEsriApiLayerToLayerBase(e,i={}){checkArg("layer",e).isNotMissing();const r=isSubtypeSublayer(e)?{}:{id:e.id};if(r.visibility=e.visible,e.opacity!==i.opacity&&(r.opacity=e.opacity),!isFeatureLayer(e)||isCSVLayer(e)||isStreamLayer(e)){const{maxScale:a,minScale:t}=e;isNaN(a)||null===a||a===i.maxScale&&a===t||(r.maxScale=a),isNaN(t)||null===t||t===i.minScale&&t===a||(r.minScale=t)}return"boolean"==typeof e.legendEnabled&&e.legendEnabled!==i.legendEnabled&&(r.showLegend=e.legendEnabled),r.title=e.title,r.blendMode=e.blendMode,r}export function fromEsriApiLayerToOperationalLayer(e){checkArg("layer",e).isNotMissing();const i={};return"refreshInterval"in e&&(i.refreshInterval=e.refreshInterval),e.listMode&&(i.listMode=e.listMode),i}
1
+ import{isCSVLayer as e,isElevationLayer as i,isFeatureLayer as r,isLayerWithLegendEnabledProperty as a,isStreamLayer as t,isSubtypeSublayer as s}from"../utilities/_layers.js";import{checkArg as n}from"../utilities/checkArg.js";export const ERR_LAYER_TYPE_MISMATCH="Layer type mismatch";export function applyLayerBaseToEsriApiLayer(e,r){if(n("layerJson",e).isNotMissing(),n("layer",r).isNotMissing(),e.hasOwnProperty("id")&&!s(r)&&(r.id=e.id),e.hasOwnProperty("visibility")&&(r.visible=e.visibility),e.hasOwnProperty("opacity")&&(r.opacity=e.opacity),i(r)||(e.hasOwnProperty("maxScale")&&(r.maxScale=e.maxScale),e.hasOwnProperty("minScale")&&(r.minScale=e.minScale)),e.hasOwnProperty("showLegend"))try{a(r)&&(r.legendEnabled=e.showLegend)}catch(e){}e.hasOwnProperty("title")&&(r.title=e.title),e.hasOwnProperty("blendMode")&&(r.blendMode=e.blendMode)}export function applyBasemapLayerToEsriApiLayer(e,i){n("layerJson",e).isNotMissing(),n("layer",i).isNotMissing()}export function applyOperationalLayerToEsriApiLayer(e,i){n("layerJson",e).isNotMissing(),n("layer",i).isNotMissing(),e.hasOwnProperty("refreshInterval")&&(i.refreshInterval=e.refreshInterval),e.hasOwnProperty("listMode")&&(i.listMode=e.listMode)}export function fromEsriApiLayerToLayerBase(i,a={}){n("layer",i).isNotMissing();const o=s(i)?{}:{id:i.id};if(o.visibility=i.visible,i.opacity!==a.opacity&&(o.opacity=i.opacity),!r(i)||e(i)||t(i)){const{maxScale:e,minScale:r}=i;isNaN(e)||null===e||e===a.maxScale&&e===r||(o.maxScale=e),isNaN(r)||null===r||r===a.minScale&&r===e||(o.minScale=r)}return"boolean"==typeof i.legendEnabled&&i.legendEnabled!==a.legendEnabled&&(o.showLegend=i.legendEnabled),o.title=i.title,o.blendMode=i.blendMode,o}export function fromEsriApiLayerToOperationalLayer(e){n("layer",e).isNotMissing();const i={};return"refreshInterval"in e&&(i.refreshInterval=e.refreshInterval),e.listMode&&(i.listMode=e.listMode),i}
package/portal/_utils.js CHANGED
@@ -1 +1 @@
1
- import{checkArg}from"../utilities/checkArg.js";import{deepSearchAndTransform}from"../utilities/object.js";import{toAbsoluteUri}from"../utilities/uri.js";export function resolveRelativeHrefs(e,i){if(checkArg("json",e).isNotMissing(),checkArg("portalItem",i).isNotMissing(),i.itemUrl){deepSearchAndTransform("href",e,(e=>toAbsoluteUri(e,`${i.itemUrl}/`)))}}
1
+ import{checkArg as i}from"../utilities/checkArg.js";import{deepSearchAndTransform as t}from"../utilities/object.js";import{toAbsoluteUri as e}from"../utilities/uri.js";export function resolveRelativeHrefs(r,s){if(i("json",r).isNotMissing(),i("portalItem",s).isNotMissing(),s.itemUrl){t("href",r,(i=>e(i,`${s.itemUrl}/`)))}}
@@ -1,23 +1,23 @@
1
1
  /**
2
2
  * Defines an action to perform.
3
3
  */
4
- export declare type Action = SimpleAction | CompositeAction;
4
+ export type Action = SimpleAction | CompositeAction;
5
5
  /**
6
6
  * Determines which action to perform. It is up to the calling application how
7
7
  * it transforms an action name into actual executable code.
8
8
  */
9
- export declare type ActionName = string;
9
+ export type ActionName = string;
10
10
  /**
11
11
  * Defines a single action to perform.
12
12
  */
13
- export declare type SimpleAction = ActionName | BoundAction;
13
+ export type SimpleAction = ActionName | BoundAction;
14
14
  /**
15
15
  * A composite action that is made up of a sequence of one or more actions. The
16
16
  * intent is that the application should execute these in the given order. If
17
17
  * any of the actions produces an output, that should be used as the input
18
18
  * arguments for all subsequent actions.
19
19
  */
20
- export declare type CompositeAction = SimpleAction[];
20
+ export type CompositeAction = SimpleAction[];
21
21
  /**
22
22
  * An action that is bound to arguments.
23
23
  */
@@ -1 +1 @@
1
- import esriRequest from"@arcgis/core/request";import{getCache}from"./_requestCache.js";const DEFAULT_TTL=1e4;export class DefaultArcGISRequestHelper{constructor(t){const e={ttl:1e4,batchLayerRequests:!0,...t};this.ttl=e.ttl,this.batchLayerRequests=e.batchLayerRequests}createSocket(t){return new WebSocket(t)}request(t,e){const{ttl:s}={ttl:this.ttl,...e};if(!getCache().has(t)){const a=this._doRequest(t,e);setTimeout((()=>{getCache().delete(t)}),s),getCache().set(t,a)}return getCache().get(t)}async _doRequest(t,e){const{batchLayerRequests:s,ttl:a,...r}={ttl:this.ttl,batchLayerRequests:this.batchLayerRequests,...e};try{const a=t.match(/\/MapServer\/(\d+)$/i);if(a&&2===a.length){const r=`${t.slice(0,t.length-a[1].length)}layers`;if(s||getCache().has(r)){const t=await this.request(r,e);if(t?.data){const e=parseInt(a[1]);if(t.data.layers){const s=t.data.layers.find((t=>t.id===e));if(s)return{data:s}}if(t.data.tables){const s=t.data.tables.find((t=>t.id===e));if(s)return{data:s}}}}}return await esriRequest(t,r)}catch(e){throw getCache().delete(t),e}}}
1
+ import t from"@arcgis/core/request";import{getCache as e}from"./_requestCache.js";export class DefaultArcGISRequestHelper{constructor(t){const e={ttl:1e4,batchLayerRequests:!0,...t};this.ttl=e.ttl,this.batchLayerRequests=e.batchLayerRequests}createSocket(t){return new WebSocket(t)}request(t,s){const{ttl:a}={ttl:this.ttl,...s};if(!e().has(t)){const r=this._doRequest(t,s);setTimeout((()=>{e().delete(t)}),a),e().set(t,r)}return e().get(t)}async _doRequest(s,a){const{batchLayerRequests:r,ttl:c,...i}={ttl:this.ttl,batchLayerRequests:this.batchLayerRequests,...a};try{const c=s.match(/\/MapServer\/(\d+)$/i);if(c&&2===c.length){const t=`${s.slice(0,s.length-c[1].length)}layers`;if(r||e().has(t)){const e=await this.request(t,a);if(e?.data){const t=parseInt(c[1]);if(e.data.layers){const s=e.data.layers.find((e=>e.id===t));if(s)return{data:s}}if(e.data.tables){const s=e.data.tables.find((e=>e.id===t));if(s)return{data:s}}}}}return await t(s,i)}catch(t){throw e().delete(s),t}}}
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * A token that can be passed to operations that support cancellation.
3
3
  */
4
- export declare type CancelToken = Promise<unknown>;
4
+ export type CancelToken = Promise<unknown>;
5
5
  /**
6
6
  * Allows cancellation of asynchronous operations.
7
7
  */
@@ -1 +1 @@
1
- import{isCancellation}from"./utilities.js";export class Cancellable{constructor(){this.token=new Promise(((t,n)=>{this.cancel=t=>{n(new Cancellation(t,this.token))}})),this.token.catch((()=>{}))}cancel(t){}}export class Cancellation{constructor(t,n){this._gcxIsCancellation=!0,this.reason=t,this.token=n}}export async function cancelify(t,n,e){if(void 0===n)return t;try{return await Promise.race([n,t])}catch(t){throw isCancellation(t)&&t.token===n&&e&&e(t.reason),t}}export async function cancelifyWithAbortSignal(t,n,e){const o=new AbortController,{signal:c}=o;return cancelify(t(c),n,(t=>{o.abort(),e?.(t)}))}
1
+ import{isCancellation as t}from"./utilities.js";export class Cancellable{constructor(){this.token=new Promise(((t,n)=>{this.cancel=t=>{n(new Cancellation(t,this.token))}})),this.token.catch((()=>{}))}cancel(t){}}export class Cancellation{constructor(t,n){this._gcxIsCancellation=!0,this.reason=t,this.token=n}}export async function cancelify(n,e,o){if(void 0===e)return n;try{return await Promise.race([e,n])}catch(n){throw t(n)&&n.token===e&&o&&o(n.reason),n}}export async function cancelifyWithAbortSignal(t,n,e){const o=new AbortController,{signal:c}=o;return cancelify(t(c),n,(t=>{o.abort(),e?.(t)}))}
@@ -1 +1 @@
1
- import{__decorate}from"tslib";import{settings}from"../utilities/FormatSettings.js";import{checkArg}from"../utilities/checkArg.js";import{DateFormat,isValidTimeZone,ERR_TIME_ZONE_INVALID}from"../utilities/date.js";import{NumberFormat}from"../utilities/number.js";import{serializable}from"./Serializable.js";import{Settings}from"./Settings.js";let FormatSettings=class extends Settings{get dateFormat(){return this._getSetting("dateFormat",settings.dateFormat||DateFormat.DEFAULT)}set dateFormat(t){this._setSetting("dateFormat",t)}get numberFormat(){return this._getSetting("numberFormat",settings.numberFormat||NumberFormat.DEFAULT)}set numberFormat(t){this._setSetting("numberFormat",t)}get locale(){return this._getSetting("locale")}set locale(t){this._setSetting("locale",t)}get currency(){return this._getSetting("currency",settings.currency)}set currency(t){this._setSetting("currency",t)}get fractionalDigits(){return this._getSetting("fractionalDigits",settings.fractionalDigits)}set fractionalDigits(t){this._setSetting("fractionalDigits",t)}get timeZone(){return this._getSetting("timeZone")}set timeZone(t){checkArg("timeZone",t).satisfies(isValidTimeZone,ERR_TIME_ZONE_INVALID(t)),this._setSetting("timeZone",t)}get useFieldInfo(){return this._getSetting("useFieldInfo",!0)}set useFieldInfo(t){this._setSetting("useFieldInfo",t)}_getSerializableProperties(){return{dateFormat:{serializeModes:["initial"],default:settings.dateFormat||DateFormat.DEFAULT},numberFormat:{serializeModes:["initial"],default:settings.numberFormat||NumberFormat.DEFAULT},locale:"initial",currency:{serializeModes:["initial"],default:settings.currency},fractionalDigits:{serializeModes:["initial"],default:settings.fractionalDigits},timeZone:{serializeModes:["initial"],deserialize:t=>{t&&(this.timeZone=t)}},useFieldInfo:{serializeModes:["initial"],default:!0}}}};FormatSettings=__decorate([serializable],FormatSettings);export{FormatSettings};
1
+ import{__decorate as t}from"tslib";import{settings as e}from"../utilities/FormatSettings.js";import{checkArg as i}from"../utilities/checkArg.js";import{DateFormat as r,isValidTimeZone as s,ERR_TIME_ZONE_INVALID as a}from"../utilities/date.js";import{NumberFormat as n}from"../utilities/number.js";import{serializable as o}from"./Serializable.js";import{Settings as l}from"./Settings.js";let m=class extends l{get dateFormat(){return this._getSetting("dateFormat",e.dateFormat||r.DEFAULT)}set dateFormat(t){this._setSetting("dateFormat",t)}get numberFormat(){return this._getSetting("numberFormat",e.numberFormat||n.DEFAULT)}set numberFormat(t){this._setSetting("numberFormat",t)}get locale(){return this._getSetting("locale")}set locale(t){this._setSetting("locale",t)}get currency(){return this._getSetting("currency",e.currency)}set currency(t){this._setSetting("currency",t)}get fractionalDigits(){return this._getSetting("fractionalDigits",e.fractionalDigits)}set fractionalDigits(t){this._setSetting("fractionalDigits",t)}get timeZone(){return this._getSetting("timeZone")}set timeZone(t){i("timeZone",t).satisfies(s,a(t)),this._setSetting("timeZone",t)}get useFieldInfo(){return this._getSetting("useFieldInfo",!0)}set useFieldInfo(t){this._setSetting("useFieldInfo",t)}_getSerializableProperties(){return{dateFormat:{serializeModes:["initial"],default:e.dateFormat||r.DEFAULT},numberFormat:{serializeModes:["initial"],default:e.numberFormat||n.DEFAULT},locale:"initial",currency:{serializeModes:["initial"],default:e.currency},fractionalDigits:{serializeModes:["initial"],default:e.fractionalDigits},timeZone:{serializeModes:["initial"],deserialize:t=>{t&&(this.timeZone=t)}},useFieldInfo:{serializeModes:["initial"],default:!0}}}};m=t([o],m);export{m as FormatSettings};
@@ -45,7 +45,7 @@ export interface InitializeWarningEvent {
45
45
  * A callback that is invoked when
46
46
  * {@link support/InitializableBase!InitializeWarningEvent} is raised.
47
47
  */
48
- export declare type InitializeWarningEventCallback = (event: InitializeWarningEvent) => void;
48
+ export type InitializeWarningEventCallback = (event: InitializeWarningEvent) => void;
49
49
  /**
50
50
  * Properties that can be passed into the constructor for
51
51
  * {@link support/InitializableBase!InitializableBase}.
@@ -1 +1 @@
1
- import{getLogger}from"../utilities/log.js";import{parallelEach}from"../utilities/promise.js";import{InitializeError}from"./InitializeError.js";import{SerializableBase}from"./Serializable.js";export class InitializableBase extends SerializableBase{constructor(){super(...arguments),this._isInitialized=!1,this._isDestroyed=!1,this._failureMode="warn"}get isInitialized(){return this._isInitialized}get isDestroyed(){return this._isDestroyed}get failureMode(){return this._failureMode}set failureMode(i){this._failureMode=i}async initialize(){return void 0===this._initializePromise&&(this._initializePromise=(async()=>{try{await this._onInitialize(),await this._initializeChildren(),await this._postInitialize()}catch(i){throw i instanceof Error?(this._initializePromise=void 0,new InitializeError(this.failureMode,i,this)):i}this._isInitialized=!0,this.notifyChange("isInitialized")})()),this._initializePromise}async destroy(){return void 0===this._destroyPromise&&(this._destroyPromise=(async()=>{try{await this._onDestroy()}catch(i){throw this._destroyPromise=void 0,i}this._isDestroyed=!0,this.notifyChange("isDestroyed")})()),this._destroyPromise}on(i,e){return super.on(i,e)}emit(i,e){return super.emit(i,e)}_getSerializableProperties(){return{...super._getSerializableProperties(),failureMode:{serializeModes:["initial"],default:"warn"}}}async _onInitialize(){}async _postInitialize(){}async _onDestroy(){}async _initializeChildren(){await parallelEach(this._initializableChildCollections(),(i=>initializeCollection(i,{target:this,onInitializeWarning:i=>this.emit("initializeWarning",i)})))}*_initializableChildCollections(){}}function getInitializableBaseLogger(){return getLogger("geocortex.api.support.InitializeBase")}const DEFAULT_INITIALIZE_COLLECTION_OPTIONS={onInitializeWarning:()=>{}};export async function initializeCollection(i,e=DEFAULT_INITIALIZE_COLLECTION_OPTIONS){const{onInitializeWarning:t,target:r}=e;await parallelEach(i.toArray(),(async i=>{const e=i.on("initializeWarning",t);try{await i.initialize()}catch(e){const a=e instanceof InitializeError?e:new InitializeError(i.failureMode,e,i);if("error"===a.failureMode)throw a;"warn"===a.failureMode&&getInitializableBaseLogger().warn({message:"Error attempting to initialize child item: {0}.",error:a},a.error.message);t({error:a,target:r})}finally{e.remove()}}))}
1
+ import{getLogger as i}from"../utilities/log.js";import{parallelEach as t}from"../utilities/promise.js";import{InitializeError as e}from"./InitializeError.js";import{SerializableBase as r}from"./Serializable.js";export class InitializableBase extends r{constructor(){super(...arguments),this._isInitialized=!1,this._isDestroyed=!1,this._failureMode="warn"}get isInitialized(){return this._isInitialized}get isDestroyed(){return this._isDestroyed}get failureMode(){return this._failureMode}set failureMode(i){this._failureMode=i}async initialize(){return void 0===this._initializePromise&&(this._initializePromise=(async()=>{try{await this._onInitialize(),await this._initializeChildren(),await this._postInitialize()}catch(i){throw i instanceof Error?(this._initializePromise=void 0,new e(this.failureMode,i,this)):i}this._isInitialized=!0,this.notifyChange("isInitialized")})()),this._initializePromise}async destroy(){return void 0===this._destroyPromise&&(this._destroyPromise=(async()=>{try{await this._onDestroy()}catch(i){throw this._destroyPromise=void 0,i}this._isDestroyed=!0,this.notifyChange("isDestroyed")})()),this._destroyPromise}on(i,t){return super.on(i,t)}emit(i,t){return super.emit(i,t)}_getSerializableProperties(){return{...super._getSerializableProperties(),failureMode:{serializeModes:["initial"],default:"warn"}}}async _onInitialize(){}async _postInitialize(){}async _onDestroy(){}async _initializeChildren(){await t(this._initializableChildCollections(),(i=>initializeCollection(i,{target:this,onInitializeWarning:i=>this.emit("initializeWarning",i)})))}*_initializableChildCollections(){}}const s={onInitializeWarning:()=>{}};export async function initializeCollection(r,a=s){const{onInitializeWarning:n,target:o}=a;await t(r.toArray(),(async t=>{const r=t.on("initializeWarning",n);try{await t.initialize()}catch(r){const s=r instanceof e?r:new e(t.failureMode,r,t);if("error"===s.failureMode)throw s;"warn"===s.failureMode&&i("geocortex.api.support.InitializeBase").warn({message:"Error attempting to initialize child item: {0}.",error:s},s.error.message);n({error:s,target:o})}finally{r.remove()}}))}
@@ -1 +1 @@
1
- import{CollectionProxy}from"../utilities/CollectionProxy.js";import{ReadOnlyCollection}from"../utilities/ReadOnlyCollection.js";export class InitializableCollectionProxy extends CollectionProxy{get initializedItems(){return new ReadOnlyCollection(this._collection.filter((i=>this._itemIsInitialized(i))))}_itemIsInitialized(i){return i.isInitialized}}
1
+ import{CollectionProxy as i}from"../utilities/CollectionProxy.js";import{ReadOnlyCollection as t}from"../utilities/ReadOnlyCollection.js";export class InitializableCollectionProxy extends i{get initializedItems(){return new t(this._collection.filter((i=>this._itemIsInitialized(i))))}_itemIsInitialized(i){return i.isInitialized}}
@@ -1 +1 @@
1
- import{format}from"../utilities/string.js";export class InitializeError extends Error{constructor(r,i,t,e,...o){super(format(e||"Failed to initialize item: {0}.",...e?o:[i])),this.name="InitializeError",this.failureMode=r,this.error=i,this.target=t}}
1
+ import{format as i}from"../utilities/string.js";export class InitializeError extends Error{constructor(r,t,e,s,...o){super(i(s||"Failed to initialize item: {0}.",...s?o:[t])),this.name="InitializeError",this.failureMode=r,this.error=t,this.target=e}}
@@ -1 +1 @@
1
- import{Property}from"@arcgis/core/core/accessorSupport/Property";import{trackAccess}from"@arcgis/core/core/accessorSupport/tracking";import{Evented}from"./esri.js";const classToProperties=new WeakMap;function getOrCreateProperty(t,e){classToProperties.has(t)||classToProperties.set(t,new Map);const r=classToProperties.get(t),o=String(e);if(!r.has(o)){const e=new Property({host:t},o,{});r.set(o,e)}return r.get(o)}const proxyHandler={get:(t,e,r)=>(trackAccess(getOrCreateProperty(r,e)),Reflect.get(t,e,r)),set:(t,e,r,o)=>(Reflect.set(t,e,r,o),o.notifyChange(String(e)),!0)};export class Observable extends Evented{constructor(){return super(),new Proxy(this,proxyHandler)}watch(t,e,r=!1){const o=[].concat(t),s=[];for(const t of o){const[o,n]=t.split(/\.(.*)/);if(n?.length){let i;const c=this[o];c&&"function"==typeof c.watch&&(i=c.watch(n,((r,o)=>{e(r,o,t,this)}),r));const a=this._watchProperty(o,n,((o,s)=>{i&&i.remove(),o&&"function"==typeof o.watch&&(i=o.watch(n,((r,o)=>{e(r,o,t,this)}),r));const c="function"==typeof s?.get?s.get(n):void 0,a=this.get(t);e(a,c,t,this)}),r);s.push({remove:()=>{a.remove(),i&&i.remove()}})}else s.push(this._watchProperty(o,"",e,r))}return 1===s.length?s[0]:{remove:()=>s.forEach((t=>t.remove()))}}get(t){if(!t)return;const e=t.split(".");let r=this;for(;r&&"object"==typeof r&&e.length;)r=r[e.shift()];return e.length?void 0:r}set(t,e){if(!t)return this;if("string"==typeof t){const r=t.split(".");let o=this;for(;o&&"object"==typeof o&&r.length>1;)o=o[r.shift()];o&&"object"==typeof o&&(o[r[0]]=e)}else for(const e of Object.keys(t))this.set(e,t[e]);return this}notifyChange(t){const e=getOrCreateProperty(this,t);e.invalidate(),e.commit()}_watchProperty(t,e,r,o){const s=o?new SyncObserver:new AsyncObserver;return s.callback=r,s.oldValue=this[t],s.property=getOrCreateProperty(this,t),s.property.observe(s)}_notifyChange(t,e=!1){console.warn("Observable._notifyChange() is deprecated and will be removed in a future update. Use notifyChange() instead."),this.notifyChange(t)}}class SyncObserver{onInvalidated(){}onCommitted(){const t=this.property.properties.host,{propertyName:e}=this.property,r=t[e];this.oldValue!==r&&(this.callback(r,this.oldValue,e,t),this.oldValue=r)}}class AsyncObserver{constructor(){this._notifyPending=!1}onInvalidated(){}onCommitted(){this._notifyPending||(this._notifyPending=!0,setTimeout((()=>{this._notifyPending=!1;const t=this.property.properties.host,{propertyName:e}=this.property,r=t[e];this.oldValue!==r&&(this.callback(r,this.oldValue,e,t),this.oldValue=r)}),0))}}
1
+ import{Property as t}from"@arcgis/core/core/accessorSupport/Property";import{trackAccess as e}from"@arcgis/core/core/accessorSupport/tracking";import{Evented as o}from"./esri.js";const s=new WeakMap;function r(e,o){s.has(e)||s.set(e,new Map);const r=s.get(e),n=String(o);if(!r.has(n)){const o=new t({host:e},n,{});r.set(n,o)}return r.get(n)}const n={get:(t,o,s)=>(e(r(s,o)),Reflect.get(t,o,s)),set:(t,e,o,s)=>(Reflect.set(t,e,o,s),s.notifyChange(String(e)),!0)};export class Observable extends o{constructor(){return super(),new Proxy(this,n)}watch(t,e,o=!1){const s=[].concat(t),r=[];for(const t of s){const[s,n]=t.split(/\.(.*)/);if(n?.length){let i;const c=this[s];c&&"function"==typeof c.watch&&(i=c.watch(n,((o,s)=>{e(o,s,t,this)}),o));const h=this._watchProperty(s,n,((s,r)=>{i&&i.remove(),s&&"function"==typeof s.watch&&(i=s.watch(n,((o,s)=>{e(o,s,t,this)}),o));const c="function"==typeof r?.get?r.get(n):void 0,h=this.get(t);e(h,c,t,this)}),o);r.push({remove:()=>{h.remove(),i&&i.remove()}})}else r.push(this._watchProperty(s,"",e,o))}return 1===r.length?r[0]:{remove:()=>r.forEach((t=>t.remove()))}}get(t){if(!t)return;const e=t.split(".");let o=this;for(;o&&"object"==typeof o&&e.length;)o=o[e.shift()];return e.length?void 0:o}set(t,e){if(!t)return this;if("string"==typeof t){const o=t.split(".");let s=this;for(;s&&"object"==typeof s&&o.length>1;)s=s[o.shift()];s&&"object"==typeof s&&(s[o[0]]=e)}else for(const e of Object.keys(t))this.set(e,t[e]);return this}notifyChange(t){const e=r(this,t);e.invalidate(),e.commit()}_watchProperty(t,e,o,s){const n=s?new i:new c;return n.callback=o,n.oldValue=this[t],n.property=r(this,t),n.property.observe(n)}_notifyChange(t,e=!1){console.warn("Observable._notifyChange() is deprecated and will be removed in a future update. Use notifyChange() instead."),this.notifyChange(t)}}class i{onInvalidated(){}onCommitted(){const t=this.property.properties.host,{propertyName:e}=this.property,o=t[e];this.oldValue!==o&&(this.callback(o,this.oldValue,e,t),this.oldValue=o)}}class c{constructor(){this._notifyPending=!1}onInvalidated(){}onCommitted(){this._notifyPending||(this._notifyPending=!0,setTimeout((()=>{this._notifyPending=!1;const t=this.property.properties.host,{propertyName:e}=this.property,o=t[e];this.oldValue!==o&&(this.callback(o,this.oldValue,e,t),this.oldValue=o)}),0))}}
@@ -1 +1 @@
1
- import{ReadOnlyCollection}from"../utilities/ReadOnlyCollection.js";export class ReadOnlyInitializableCollection extends ReadOnlyCollection{get initializedItems(){return new ReadOnlyCollection(this._collection.filter((i=>this._itemIsInitialized(i))))}_itemIsInitialized(i){return i.isInitialized}}
1
+ import{ReadOnlyCollection as i}from"../utilities/ReadOnlyCollection.js";export class ReadOnlyInitializableCollection extends i{get initializedItems(){return new i(this._collection.filter((i=>this._itemIsInitialized(i))))}_itemIsInitialized(i){return i.isInitialized}}
@@ -2,7 +2,7 @@ import { Observable } from "./Observable.js";
2
2
  /**
3
3
  * A class that can take in initial property values in its constructor.
4
4
  */
5
- export declare type SerializableClass<P, T extends SerializableBase<P>> = new (properties?: P, ...other: any[]) => T;
5
+ export type SerializableClass<P, T extends SerializableBase<P>> = new (properties?: P, ...other: any[]) => T;
6
6
  /**
7
7
  * An object that can be serialized to/from plain JSON.
8
8
  */
@@ -92,17 +92,17 @@ export declare function serializable<P>(SerializableClass: SerializableClass<P,
92
92
  * serialize the item in different ways. Depending on the flag, some properties
93
93
  * may be present in the serialization or filtered out.
94
94
  */
95
- export declare type SerializeMode = "initial" | "initial-with-defaults" | "project" | "preferences" | "all";
95
+ export type SerializeMode = "initial" | "initial-with-defaults" | "project" | "preferences" | "all";
96
96
  /**
97
97
  * The set of allowed {@link SerializeMode}s when defining the serialize mode for
98
98
  * a property definition.
99
99
  */
100
- export declare type PropertyDefSerializeMode = Exclude<SerializeMode, "initial-with-defaults">;
100
+ export type PropertyDefSerializeMode = Exclude<SerializeMode, "initial-with-defaults">;
101
101
  /**
102
102
  * A set of {@link PropertyDef}s for an object that allows it to be intelligently
103
103
  * serialized and deserialized.
104
104
  */
105
- export declare type PropertyDefs<T> = {
105
+ export type PropertyDefs<T> = {
106
106
  [P in keyof T]?: PropertyDef<T[P]> | PropertyDefSerializeMode[] | PropertyDefSerializeMode;
107
107
  };
108
108
  /**
@@ -1 +1 @@
1
- import stringify from"safe-stable-stringify";import{filter,isPlainObject,map}from"../utilities/object.js";import{Observable}from"./Observable.js";const serializableClasses=new WeakSet;export class SerializableBase extends Observable{constructor(e){if(super(),!serializableClasses.has(this.constructor))throw new Error(`Class "${this.constructor.name}" must be marked as "@serializable" since it extends ${SerializableBase.name} (make sure it is the _last_ decorator on the class).`)}toJSON(e="all"){return filterJSONProperties(this._getSerializableProperties(),this,e)}assignProperties(e){assignProperties(this._getSerializableProperties(),this,e)}getSerializableProperties(e="all"){return getSerializableProperties(this._getSerializableProperties(),e)}getDefaults(){return getDefaults(this._getSerializableProperties())}getDefault(e){return this.getDefaults()[e]}_getSerializableProperties(){return{}}_toPropertyDef(e){return toPropertyDef(e)}}export function serializable(e){if(!isSerializable(e.prototype))throw new Error(`Class "${e.name}" is marked as @serializable but does not implement 'Serializable'.`);class t extends e{constructor(e,...r){super(e,...r),this.constructor===t&&this.assignProperties({...this.getDefaults(),...e})}}return serializableClasses.add(t),t}function shouldSerialize(e,t){if(!1===t.serialize)return!1;const r="initial-with-defaults"===e?"initial":e;return"all"===e||t.serializeModes?.includes(r)}export function shouldExcludeDefaults(e){return"initial"===e||"project"===e}export function filterJSONProperties(e,t,r){let i=r;"initial"!==i&&"initial-with-defaults"!==i&&"preferences"!==i&&"project"!==i&&(i="all");const s={},o=getSerializableProperties(e,i);for(const e of Object.keys(o)){const r=o[e],a=serialize(e,r,t,i);if(shouldExcludeDefaults(i)){let t=!1;t=r.hasOwnProperty("default")?stringify(a)===stringify(r.default):r.isDefault?r.isDefault(a,i):isDefault(a),t||(s[e]=a)}else s[e]=a}if(!shouldExcludeDefaults(i)&&"preferences"!==i||!isDefault(s))return s}export function assignProperties(e,t,r){if(r)for(const i of Object.keys(e)){const s=e[i];if(!r.hasOwnProperty(i)||!Array.isArray(e[i])&&!1===s.deserialize)continue;const o=r[i]??void 0;s?.deserialize?s.deserialize(o):"object"==typeof t[i]&&t[i]&&"function"==typeof t[i].assignProperties&&(isPlainObject(o)||void 0===o)?t[i].assignProperties(o):t[i]=o}}export function getDefaults(e){const t={},r=Object.keys(e).filter((t=>"object"==typeof e[t]));for(const i of r){const r=e[i];r.hasOwnProperty("default")&&(t[i]=r.default)}return t}export function getDefault(e,t){return getDefaults(e)[t]}export function isDefault(e){if(null==e)return!0;if(e.constructor===Object){if(!Object.keys(e).length)return!0}return!(!Array.isArray(e)||e.length)}function serialize(e,t,r,i){const s=t?.serialize?t.serialize(i):r[e];if(s&&"function"==typeof s.toItemUri)return s.toItemUri();if(s&&"function"==typeof s.toJSON)return s.toJSON(i);if(Array.isArray(s))return s.map(((e,t)=>serialize(t,void 0,s,i)));if(s&&"function"==typeof s.toArray){const e=s.toArray();return e.map(((t,r)=>serialize(r,void 0,e,i)))}if(s&&"object"==typeof s){const e={};for(const t of Object.keys(s))e[t]=serialize(t,void 0,s,i);return e}return t?.serialize?s:r[e]}export function toPropertyDef(e){const t={serializeModes:[]};return"string"==typeof e?{...t,serializeModes:[e]}:Array.isArray(e)?{...t,serializeModes:e}:{...t,...e}}export function isSerializable(e){return["assignProperties","getDefaults","getSerializableProperties","toJSON"].every((t=>"function"==typeof e[t]))}export function getSerializableProperties(e,t="all"){const r=map(e,(e=>toPropertyDef(e)));return filter(r,(e=>shouldSerialize(t,e)))}
1
+ import e from"safe-stable-stringify";import{filter as t,isPlainObject as r,map as i}from"../utilities/object.js";import{Observable as s}from"./Observable.js";const o=new WeakSet;export class SerializableBase extends s{constructor(e){if(super(),!o.has(this.constructor))throw new Error(`Class "${this.constructor.name}" must be marked as "@serializable" since it extends ${SerializableBase.name} (make sure it is the _last_ decorator on the class).`)}toJSON(e="all"){return filterJSONProperties(this._getSerializableProperties(),this,e)}assignProperties(e){assignProperties(this._getSerializableProperties(),this,e)}getSerializableProperties(e="all"){return getSerializableProperties(this._getSerializableProperties(),e)}getDefaults(){return getDefaults(this._getSerializableProperties())}getDefault(e){return this.getDefaults()[e]}_getSerializableProperties(){return{}}_toPropertyDef(e){return toPropertyDef(e)}}export function serializable(e){if(!isSerializable(e.prototype))throw new Error(`Class "${e.name}" is marked as @serializable but does not implement 'Serializable'.`);class t extends e{constructor(e,...r){super(e,...r),this.constructor===t&&this.assignProperties({...this.getDefaults(),...e})}}return o.add(t),t}export function shouldExcludeDefaults(e){return"initial"===e||"project"===e}export function filterJSONProperties(t,r,i){let s=i;"initial"!==s&&"initial-with-defaults"!==s&&"preferences"!==s&&"project"!==s&&(s="all");const o={},n=getSerializableProperties(t,s);for(const t of Object.keys(n)){const i=n[t],l=a(t,i,r,s);if(shouldExcludeDefaults(s)){let r=!1;r=i.hasOwnProperty("default")?e(l)===e(i.default):i.isDefault?i.isDefault(l,s):isDefault(l),r||(o[t]=l)}else o[t]=l}if(!shouldExcludeDefaults(s)&&"preferences"!==s||!isDefault(o))return o}export function assignProperties(e,t,i){if(i)for(const s of Object.keys(e)){const o=e[s];if(!i.hasOwnProperty(s)||!Array.isArray(e[s])&&!1===o.deserialize)continue;const a=i[s]??void 0;o?.deserialize?o.deserialize(a):"object"==typeof t[s]&&t[s]&&"function"==typeof t[s].assignProperties&&(r(a)||void 0===a)?t[s].assignProperties(a):t[s]=a}}export function getDefaults(e){const t={},r=Object.keys(e).filter((t=>"object"==typeof e[t]));for(const i of r){const r=e[i];r.hasOwnProperty("default")&&(t[i]=r.default)}return t}export function getDefault(e,t){return getDefaults(e)[t]}export function isDefault(e){if(null==e)return!0;if(e.constructor===Object){if(!Object.keys(e).length)return!0}return!(!Array.isArray(e)||e.length)}function a(e,t,r,i){const s=t?.serialize?t.serialize(i):r[e];if(s&&"function"==typeof s.toItemUri)return s.toItemUri();if(s&&"function"==typeof s.toJSON)return s.toJSON(i);if(Array.isArray(s))return s.map(((e,t)=>a(t,void 0,s,i)));if(s&&"function"==typeof s.toArray){const e=s.toArray();return e.map(((t,r)=>a(r,void 0,e,i)))}if(s&&"object"==typeof s){const e={};for(const t of Object.keys(s))e[t]=a(t,void 0,s,i);return e}return t?.serialize?s:r[e]}export function toPropertyDef(e){const t={serializeModes:[]};return"string"==typeof e?{...t,serializeModes:[e]}:Array.isArray(e)?{...t,serializeModes:e}:{...t,...e}}export function isSerializable(e){return["assignProperties","getDefaults","getSerializableProperties","toJSON"].every((t=>"function"==typeof e[t]))}export function getSerializableProperties(e,r="all"){const s=i(e,(e=>toPropertyDef(e))),o=t(s,(e=>function(e,t){if(!1===t.serialize)return!1;const r="initial-with-defaults"===e?"initial":e;return"all"===e||t.serializeModes?.includes(r)}(r,e)));return o}
@@ -1 +1 @@
1
- import{CopyOnWriteCollection}from"../utilities/CopyOnWriteCollection.js";import{every}from"../utilities/iterable.js";import{isDefault,SerializableBase,shouldExcludeDefaults}from"./Serializable.js";import{Collection}from"./esri.js";export class Settings extends SerializableBase{get parent(){return this._parent}set parent(e){this._setParent(e)}reset(e){if(this._overrides)if(e)this.parent&&this._settingObservers&&this._settingObservers.forEach((e=>{this._watchParent(e)})),this._overrides.delete(e),this.notifyChange(e);else{const e=[...this._overrides.keys()];this._overrides.clear();for(const t of e)this.parent&&this._settingObservers&&this._settingObservers.forEach((e=>{this._watchParent(e)})),this.notifyChange(t)}}isModified(e){if(!this._overrides)return!1;if(e){if(!this._overrides.has(e))return!1;const t=this._overrides.get(e);return t instanceof CopyOnWriteCollection?t.isModified:!(t instanceof Settings)||t.isModified()}return!every(this._overrides.values(),(e=>e instanceof CopyOnWriteCollection&&!e.isModified||e instanceof Settings&&!e.isModified()))}toJSON(e="all"){if(!this._overrides?.size)return shouldExcludeDefaults(e)?void 0:{};const t=super.toJSON(e);if(t)for(const e of Object.keys(t))this.isModified(e)||delete t[e];return shouldExcludeDefaults(e)&&isDefault(t)?void 0:t}getDefaults(){return{}}_watchProperty(e,t,s,i){const r={path:`${e}${t?`.${t}`:""}`,handle:super._watchProperty(e,t,s,i),callback:s,remove:()=>{r.handle.remove(),r.parentHandle&&r.parentHandle.remove(),this._settingObservers.delete(r)}};return!this.isModified(e)&&this.parent&&this._watchParent(r),this._settingObservers=this._settingObservers||new Set,this._settingObservers.add(r),r}_getSetting(e,t){return this._overrides?.has(e)?this._overrides.get(e):this.parent?this.parent[e]:t}_getCollectionSetting(e){if(!this._overrides||!this._overrides.has(e)){const t=this.parent?this.parent[e]:new Collection;this._overrides=this._overrides||new Map,this._overrides.set(e,new CopyOnWriteCollection(t))}return this._overrides.get(e)}_getNestedSettings(e,t){if(!this._overrides||!this._overrides.has(e)){const s=t();this.parent&&(s.parent=this.parent[e]),this._overrides=this._overrides||new Map,this._overrides.set(e,s)}return this._overrides.get(e)}_setSetting(e,t){!this.isModified(e)&&this.parent&&this._settingObservers&&this._settingObservers.forEach((t=>{t.path===e&&this._unwatchParent(t)})),this._overrides=this._overrides||new Map,this._overrides.set(e,t)}_setParent(e){this.parent&&this._settingObservers&&this._settingObservers.forEach((e=>{e.parentHandle&&e.parentHandle.remove(),e.parentHandle=void 0})),e&&this._settingObservers&&this._settingObservers.forEach((t=>{this.isModified(t.path)||(t.parentHandle=e.watch(t.path,((e,s,i)=>{t.callback(e,s,i,this)})))})),this._parent=e,this._settingObservers&&this._settingObservers.forEach((e=>{this.notifyChange(e.path)})),this._overrides&&this._overrides.forEach(((t,s)=>{t instanceof CopyOnWriteCollection?t.originalCollection=e?e.get(s):new Collection:t instanceof Settings&&(t.parent=e?e.get(s):void 0)}))}_watchParent(e){e.parentHandle||(e.parentHandle=this.parent.watch(e.path,((t,s,i)=>{e.callback(t,s,i,this)})))}_unwatchParent(e){e.parentHandle&&(e.parentHandle.remove(),e.parentHandle=void 0)}}
1
+ import{CopyOnWriteCollection as e}from"../utilities/CopyOnWriteCollection.js";import{every as t}from"../utilities/iterable.js";import{isDefault as s,SerializableBase as i,shouldExcludeDefaults as r}from"./Serializable.js";import{Collection as n}from"./esri.js";export class Settings extends i{get parent(){return this._parent}set parent(e){this._setParent(e)}reset(e){if(this._overrides)if(e)this.parent&&this._settingObservers&&this._settingObservers.forEach((e=>{this._watchParent(e)})),this._overrides.delete(e),this.notifyChange(e);else{const e=[...this._overrides.keys()];this._overrides.clear();for(const t of e)this.parent&&this._settingObservers&&this._settingObservers.forEach((e=>{this._watchParent(e)})),this.notifyChange(t)}}isModified(s){if(!this._overrides)return!1;if(s){if(!this._overrides.has(s))return!1;const t=this._overrides.get(s);return t instanceof e?t.isModified:!(t instanceof Settings)||t.isModified()}return!t(this._overrides.values(),(t=>t instanceof e&&!t.isModified||t instanceof Settings&&!t.isModified()))}toJSON(e="all"){if(!this._overrides?.size)return r(e)?void 0:{};const t=super.toJSON(e);if(t)for(const e of Object.keys(t))this.isModified(e)||delete t[e];return r(e)&&s(t)?void 0:t}getDefaults(){return{}}_watchProperty(e,t,s,i){const r={path:`${e}${t?`.${t}`:""}`,handle:super._watchProperty(e,t,s,i),callback:s,remove:()=>{r.handle.remove(),r.parentHandle&&r.parentHandle.remove(),this._settingObservers.delete(r)}};return!this.isModified(e)&&this.parent&&this._watchParent(r),this._settingObservers=this._settingObservers||new Set,this._settingObservers.add(r),r}_getSetting(e,t){return this._overrides?.has(e)?this._overrides.get(e):this.parent?this.parent[e]:t}_getCollectionSetting(t){if(!this._overrides?.has(t)){const s=this.parent?this.parent[t]:new n;this._overrides=this._overrides||new Map,this._overrides.set(t,new e(s))}return this._overrides.get(t)}_getNestedSettings(e,t){if(!this._overrides?.has(e)){const s=t();this.parent&&(s.parent=this.parent[e]),this._overrides=this._overrides||new Map,this._overrides.set(e,s)}return this._overrides.get(e)}_setSetting(e,t){!this.isModified(e)&&this.parent&&this._settingObservers&&this._settingObservers.forEach((t=>{t.path===e&&this._unwatchParent(t)})),this._overrides=this._overrides||new Map,this._overrides.set(e,t)}_setParent(t){this.parent&&this._settingObservers&&this._settingObservers.forEach((e=>{e.parentHandle&&e.parentHandle.remove(),e.parentHandle=void 0})),t&&this._settingObservers&&this._settingObservers.forEach((e=>{this.isModified(e.path)||(e.parentHandle=t.watch(e.path,((t,s,i)=>{e.callback(t,s,i,this)})))})),this._parent=t,this._settingObservers&&this._settingObservers.forEach((e=>{this.notifyChange(e.path)})),this._overrides&&this._overrides.forEach(((s,i)=>{s instanceof e?s.originalCollection=t?t.get(i):new n:s instanceof Settings&&(s.parent=t?t.get(i):void 0)}))}_watchParent(e){e.parentHandle||(e.parentHandle=this.parent.watch(e.path,((t,s,i)=>{e.callback(t,s,i,this)})))}_unwatchParent(e){e.parentHandle&&(e.parentHandle.remove(),e.parentHandle=void 0)}}
@@ -1 +1 @@
1
- import{RelationshipCollection}from"../data/FeatureSourceBase.js";import{ArcGISRelationship}from"../tasks/query/ArcGISRelationship.js";import{Collection}from"../utilities/collection.js";import{map}from"../utilities/promise.js";import{DefaultArcGISRequestHelper}from"./ArcGISRequestHelper.js";export class ArcGISRelationshipCollection extends RelationshipCollection{constructor(){super(...arguments),this._unresolvedRelationships=new Collection}get requestHelper(){return this._requestHelper||(this._requestHelper=this._source.requestHelper??new DefaultArcGISRequestHelper),this._requestHelper}set requestHelper(e){this._requestHelper=e}async initialize(){return void 0===this._initializePromise&&(this._initializePromise=(async()=>{if(!this._sourceUrl)return;const e=await this.requestHelper.request(this._sourceUrl,{query:{f:"json"}});e?.data?.relationships&&await map(e.data.relationships,(async e=>{const i=`${this._sourceUrl.slice(0,this._sourceUrl.length-`${this._sourceLayerId}`.length-1)}/${e.relatedTableId}`,t=await this.requestHelper.request(i,{query:{f:"json"}});if(!t||!t.data||!Array.isArray(t.data.relationships))return;const r=t.data.relationships.find((e=>e.relatedTableId===this._sourceLayerId));if(!r)return;let s="many-to-many";switch(e.cardinality){case"esriRelCardinalityOneToOne":s="one-to-one";break;case"esriRelCardinalityOneToMany":s="esriRelRoleOrigin"===e.role?"one-to-many":"many-to-one";break;case"esriRelCardinalityManyToMany":s="many-to-many";break;default:throw new Error(`Unknown cardinality value "${e.cardinality}".`)}this._unresolvedRelationships.add({$relationshipType:"ArcGISRelationship",id:`${e.id}`,title:e.name,keyField:e.keyField,relatedKeyField:r.keyField,relatedSource:void 0,relatedLayerId:e.relatedTableId,cardinality:s,relationshipTableId:e.relationshipTableId,originForeignKey:e.keyFieldInRelationshipTable,destinationForeignKey:r.keyFieldInRelationshipTable})}))})()),this._initializePromise}get _collection(){const e=this._unresolvedRelationships.toArray();this._unresolvedRelationships.removeAll();for(const i of e)this._resolveRelationship(i)||this._unresolvedRelationships.add(i);return this._collectionField}_resolveRelationship(e){const i=this._findRelatedSource(e.relatedLayerId);return!!i&&(e.relatedSource=i,this.add(new ArcGISRelationship(e)),!0)}}
1
+ import{RelationshipCollection as e}from"../data/FeatureSourceBase.js";import{ArcGISRelationship as i}from"../tasks/query/ArcGISRelationship.js";import{Collection as t}from"../utilities/collection.js";import{map as r}from"../utilities/promise.js";import{DefaultArcGISRequestHelper as s}from"./ArcGISRequestHelper.js";export class ArcGISRelationshipCollection extends e{constructor(){super(...arguments),this._unresolvedRelationships=new t}get requestHelper(){return this._requestHelper||(this._requestHelper=this._source.requestHelper??new s),this._requestHelper}set requestHelper(e){this._requestHelper=e}async initialize(){return void 0===this._initializePromise&&(this._initializePromise=(async()=>{if(!this._sourceUrl)return;const e=await this.requestHelper.request(this._sourceUrl,{query:{f:"json"}});e?.data?.relationships&&await r(e.data.relationships,(async e=>{const i=`${this._sourceUrl.slice(0,this._sourceUrl.length-`${this._sourceLayerId}`.length-1)}/${e.relatedTableId}`,t=await this.requestHelper.request(i,{query:{f:"json"}});if(!t?.data||!Array.isArray(t?.data.relationships))return;const r=t.data.relationships.find((e=>e.relatedTableId===this._sourceLayerId));if(!r)return;let s="many-to-many";switch(e.cardinality){case"esriRelCardinalityOneToOne":s="one-to-one";break;case"esriRelCardinalityOneToMany":s="esriRelRoleOrigin"===e.role?"one-to-many":"many-to-one";break;case"esriRelCardinalityManyToMany":s="many-to-many";break;default:throw new Error(`Unknown cardinality value "${e.cardinality}".`)}this._unresolvedRelationships.add({$relationshipType:"ArcGISRelationship",id:`${e.id}`,title:e.name,keyField:e.keyField,relatedKeyField:r.keyField,relatedSource:void 0,relatedLayerId:e.relatedTableId,cardinality:s,relationshipTableId:e.relationshipTableId,originForeignKey:e.keyFieldInRelationshipTable,destinationForeignKey:r.keyFieldInRelationshipTable})}))})()),this._initializePromise}get _collection(){const e=this._unresolvedRelationships.toArray();this._unresolvedRelationships.removeAll();for(const i of e)this._resolveRelationship(i)||this._unresolvedRelationships.add(i);return this._collectionField}_resolveRelationship(e){const t=this._findRelatedSource(e.relatedLayerId);return!!t&&(e.relatedSource=t,this.add(new i(e)),!0)}}
@@ -1 +1 @@
1
- import Warning from"@arcgis/core/core/Warning";import{DataLayerSource}from"@arcgis/core/layers/support/source/DataLayerSource";import{MapLayerSource}from"@arcgis/core/layers/support/source/MapLayerSource";export{DataLayerSource,MapLayerSource,Warning};
1
+ import r from"@arcgis/core/core/Warning";import{DataLayerSource as o}from"@arcgis/core/layers/support/source/DataLayerSource";import{MapLayerSource as e}from"@arcgis/core/layers/support/source/MapLayerSource";export{o as DataLayerSource,e as MapLayerSource,r as Warning};
@@ -1 +1 @@
1
- import{QueryOptions}from"../tasks/query/QueryOptions.js";import{checkArg}from"../utilities/checkArg.js";import{Collection}from"../utilities/collection.js";import{count,query}from"../utilities/query.js";import{cancelify}from"./Cancellable.js";export function executeQuery(e,i,t,s){checkArg("where",e).isNotMissing(),checkArg("source",i).isNotMissing(),checkArg("queryable",t).isNotMissing();const o={...QueryOptions.DEFAULTS,...QueryOptions.fromFeatureSource(i),...s};return checkArg("options.maxResults",o.maxResults).satisfies((e=>null==e||e>0)),async function*(){let s;if(Collection.isCollection(t)||Array.isArray(t))s=Collection.isCollection(t)?t.toArray():t.slice();else{s=(await t).features,s.forEach((e=>e.popupTemplate=e.getEffectivePopupTemplate())),s=s.slice()}const c=cancelify(query(e,i,s,o),o.cancelToken);let r=await c;r=r.slice(0,o.maxResults||r.length),yield*r}()}export async function executeCount(e,i,t,s){checkArg("where",e).isNotMissing(),checkArg("source",i).isNotMissing(),checkArg("queryable",t).isNotMissing();const o={...QueryOptions.DEFAULTS,...QueryOptions.fromFeatureSource(i),...s},{maxResults:c,cancelToken:r}=o;let l;if(checkArg("options.maxResults",c).satisfies((e=>null==e||e>0)),Collection.isCollection(t)||Array.isArray(t))l=Collection.isCollection(t)?t.toArray():t.slice();else{l=(await t).features.slice()}let n=await cancelify(count(e,l,o),r);return c>0&&n>c&&(n=c),{source:i,count:n}}
1
+ import{QueryOptions as e}from"../tasks/query/QueryOptions.js";import{checkArg as s}from"../utilities/checkArg.js";import{Collection as i}from"../utilities/collection.js";import{count as t,query as o}from"../utilities/query.js";import{cancelify as r}from"./Cancellable.js";export function executeQuery(t,l,a,n){s("where",t).isNotMissing(),s("source",l).isNotMissing(),s("queryable",a).isNotMissing();const c={...e.DEFAULTS,...e.fromFeatureSource(l),...n};return s("options.maxResults",c.maxResults).satisfies((e=>null==e||e>0)),async function*(){let e;if(i.isCollection(a)||Array.isArray(a))e=i.isCollection(a)?a.toArray():a.slice();else{e=(await a).features,e.forEach((e=>e.popupTemplate=e.getEffectivePopupTemplate())),e=e.slice()}const s=r(o(t,l,e,c),c.cancelToken);let n=await s;n=n.slice(0,c.maxResults||n.length),yield*n}()}export async function executeCount(o,l,a,n){s("where",o).isNotMissing(),s("source",l).isNotMissing(),s("queryable",a).isNotMissing();const c={...e.DEFAULTS,...e.fromFeatureSource(l),...n},{maxResults:u,cancelToken:f}=c;let m;if(s("options.maxResults",u).satisfies((e=>null==e||e>0)),i.isCollection(a)||Array.isArray(a))m=i.isCollection(a)?a.toArray():a.slice();else{m=(await a).features.slice()}let p=await r(t(o,m,c),f);return u>0&&p>u&&(p=u),{source:l,count:p}}
package/support/_query.js CHANGED
@@ -1 +1 @@
1
- import{isLayerExtension,isSublayerExtension}from"../ItemType.js";import{toFeature}from"../data/Feature.js";import{isTimeAwareLayer}from"../utilities/_layers.js";import{checkArg}from"../utilities/checkArg.js";import{cancelifyWithAbortSignal}from"./Cancellable.js";export function escape(e){return e.replace(/([%'])/g,"$1$1")}export function concatenateWhereClauses(e,t){return e?.length>0&&t?.length>0?`(${e}) and (${t})`:e||t}export function executeQuery(e,t,n,i){return checkArg("query",e).isNotMissing(),checkArg("source",t).isNotMissing(),checkArg("queryable",n).isNotMissing(),e.where=concatenateWhereClauses(n.definitionExpression,e.where),constrainQueryTimeExtentToView(e,t),async function*(){const r=e.num;let s=(await cancelifyWithAbortSignal((async t=>n.queryFeatures(e,{signal:t})),i)).features;r>0&&s.length>r&&(s=s.slice(0,r)),yield*s.map((e=>toFeature(e,{source:t})))}()}export async function executeCount(e,t,n,i){checkArg("query",e).isNotMissing(),checkArg("source",t).isNotMissing(),checkArg("queryable",n).isNotMissing(),e.where=concatenateWhereClauses(n.definitionExpression,e.where),constrainQueryTimeExtentToView(e,t);const r=e.num;e.num=void 0;let s=await cancelifyWithAbortSignal((async t=>n.queryFeatureCount(e,{signal:t})),i);return r>0&&s>r&&(s=r),{source:t,count:s}}export async function executeCountByQuery(e,t,n,i){checkArg("query",e).isNotMissing(),checkArg("source",t).isNotMissing(),checkArg("queryable",n).isNotMissing(),e.where=concatenateWhereClauses(n.definitionExpression,e.where),constrainQueryTimeExtentToView(e,t);const r=e.num;let s=(await cancelifyWithAbortSignal((async t=>n.queryFeatures(e,{signal:t})),i)).features.length;return r>0&&s>r&&(s=r),{source:t,count:s}}export function constrainQueryTimeExtentToView(e,t){let n;if(isLayerExtension(t)?n=t:isSublayerExtension(t)&&(n=t.layerExtension),!isTimeAwareLayer(n?.layer))return;const{layer:i,mapExtension:r}=n,s=r?._allLayerViews.find((e=>e.layer===i))?.view?.timeExtent;if(e.timeExtent||(e.timeExtent=i.timeExtent?.clone()),i.useViewTime&&s)if(e.timeExtent){const t=[e.timeExtent.start?.valueOf(),s.start?.valueOf()].filter((e=>!!e)),n=[e.timeExtent.end?.valueOf(),s.end?.valueOf()].filter((e=>!!e));e.timeExtent.start=t.length?new Date(Math.max(...t)):void 0,e.timeExtent.end=n.length?new Date(Math.min(...n)):void 0}else e.timeExtent=s?.clone()}
1
+ import{isLayerExtension as e,isSublayerExtension as t}from"../ItemType.js";import{toFeature as n}from"../data/Feature.js";import{isTimeAwareLayer as i}from"../utilities/_layers.js";import{checkArg as s}from"../utilities/checkArg.js";import{cancelifyWithAbortSignal as r}from"./Cancellable.js";export function escape(e){return e.replace(/([%'])/g,"$1$1")}export function concatenateWhereClauses(e,t){return e?.length>0&&t?.length>0?`(${e}) and (${t})`:e||t}export function executeQuery(e,t,i,o){return s("query",e).isNotMissing(),s("source",t).isNotMissing(),s("queryable",i).isNotMissing(),e.where=concatenateWhereClauses(i.definitionExpression,e.where),constrainQueryTimeExtentToView(e,t),async function*(){const s=e.num;let a=(await r((async t=>i.queryFeatures(e,{signal:t})),o)).features;s>0&&a.length>s&&(a=a.slice(0,s)),yield*a.map((e=>n(e,{source:t})))}()}export async function executeCount(e,t,n,i){s("query",e).isNotMissing(),s("source",t).isNotMissing(),s("queryable",n).isNotMissing(),e.where=concatenateWhereClauses(n.definitionExpression,e.where),constrainQueryTimeExtentToView(e,t);const o=e.num;e.num=void 0;let a=await r((async t=>n.queryFeatureCount(e,{signal:t})),i);return o>0&&a>o&&(a=o),{source:t,count:a}}export async function executeCountByQuery(e,t,n,i){s("query",e).isNotMissing(),s("source",t).isNotMissing(),s("queryable",n).isNotMissing(),e.where=concatenateWhereClauses(n.definitionExpression,e.where),constrainQueryTimeExtentToView(e,t);const o=e.num;let a=(await r((async t=>n.queryFeatures(e,{signal:t})),i)).features.length;return o>0&&a>o&&(a=o),{source:t,count:a}}export function constrainQueryTimeExtentToView(n,s){let r;if(e(s)?r=s:t(s)&&(r=s.layerExtension),!i(r?.layer))return;const{layer:o,mapExtension:a}=r,u=a?._allLayerViews.find((e=>e.layer===o))?.view?.timeExtent;if(n.timeExtent||(n.timeExtent=o.timeExtent?.clone()),o.useViewTime&&u)if(n.timeExtent){const e=[n.timeExtent.start?.valueOf(),u.start?.valueOf()].filter((e=>!!e)),t=[n.timeExtent.end?.valueOf(),u.end?.valueOf()].filter((e=>!!e));n.timeExtent.start=e.length?new Date(Math.max(...e)):void 0,n.timeExtent.end=t.length?new Date(Math.min(...t)):void 0}else n.timeExtent=u?.clone()}
@@ -1 +1 @@
1
- let cache;export function getCache(){return cache||(cache=new Map),cache}export function clearCache(){getCache().clear()}
1
+ let e;export function getCache(){return e||(e=new Map),e}export function clearCache(){getCache().clear()}
@@ -4,7 +4,7 @@ export interface RestApiSubtype {
4
4
  defaultValues?: Record<string, unknown>;
5
5
  domains?: Record<string, RestApiDomain>;
6
6
  }
7
- export declare type RestApiDomain = RestApiRangeDomain | RestApiCodedValueDomain;
7
+ export type RestApiDomain = RestApiRangeDomain | RestApiCodedValueDomain;
8
8
  export interface RestApiRangeDomain {
9
9
  type: "range";
10
10
  name: string;