@conterra/ct-mapapps-typings 4.19.3 → 4.20.0-PRE-2

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 (185) hide show
  1. package/agssearch/api.d.ts +2 -2
  2. package/agssearch/package.json +1 -1
  3. package/apprt/api/index.d.ts +1 -0
  4. package/apprt/api/internal.d.ts +1 -1
  5. package/apprt/launch/BundleController.d.ts +2 -1
  6. package/apprt/launch/Launcher.d.ts +21 -2
  7. package/apprt/package.json +1 -1
  8. package/apprt-binding/package.json +1 -1
  9. package/apprt-core/Types.d.ts +1 -1
  10. package/apprt-core/config.d.ts +7 -7
  11. package/apprt-core/load-js.d.ts +1 -1
  12. package/apprt-core/package.json +1 -1
  13. package/apprt-dom/package.json +1 -1
  14. package/apprt-fetch/index.d.ts +1 -1
  15. package/apprt-fetch/package.json +1 -1
  16. package/apprt-streams/package.json +1 -1
  17. package/apprt-tokens/package.json +1 -1
  18. package/apprt-vue/package.json +1 -1
  19. package/apprt-vuetify/components/copyText.d.ts +8 -0
  20. package/apprt-vuetify/package.json +1 -1
  21. package/coordinateconversion/api.d.ts +182 -0
  22. package/coordinateconversion/package.json +5 -0
  23. package/coordinatetransformer/api/CoordinateTransformer.d.ts +6 -4
  24. package/coordinatetransformer/api/ProjectionStore.d.ts +4 -2
  25. package/coordinatetransformer/api/TransformationProvider.d.ts +6 -4
  26. package/coordinatetransformer/api/TransformerStrategy.d.ts +4 -2
  27. package/coordinatetransformer/api/index.d.ts +6 -4
  28. package/coordinatetransformer/package.json +1 -1
  29. package/ct/async.d.ts +1 -1
  30. package/ct/mapping/geometry.d.ts +6 -6
  31. package/ct/package.json +1 -1
  32. package/dataform/package.json +1 -1
  33. package/dataview/package.json +1 -1
  34. package/domains-system/package.json +1 -1
  35. package/editing/api.d.ts +5 -15
  36. package/editing/package.json +1 -1
  37. package/esri-widgets/package.json +1 -1
  38. package/geojson/api.d.ts +6 -6
  39. package/geojson/package.json +1 -1
  40. package/geometryservice/api.d.ts +15 -15
  41. package/geometryservice/package.json +1 -1
  42. package/graphics/GraphicsBuilder.d.ts +1 -1
  43. package/graphics/package.json +1 -1
  44. package/highlights/api.d.ts +4 -4
  45. package/highlights/package.json +1 -1
  46. package/integration-map/package.json +1 -1
  47. package/managementlayout/package.json +1 -1
  48. package/map-actions/api.d.ts +2 -2
  49. package/map-actions/package.json +1 -1
  50. package/map-basemaps-api/BasemapItem.d.ts +2 -9
  51. package/map-basemaps-api/BasemapsModel.d.ts +1 -1
  52. package/map-basemaps-api/api.d.ts +1 -1
  53. package/map-basemaps-api/package.json +1 -1
  54. package/map-config-api/api.d.ts +38 -38
  55. package/map-config-api/package.json +1 -1
  56. package/map-init/api.d.ts +1 -1
  57. package/map-init/package.json +1 -1
  58. package/map-widget/Constraints.d.ts +16 -11
  59. package/map-widget/LayerObserver.d.ts +5 -5
  60. package/map-widget/LayerTraverser.d.ts +5 -5
  61. package/map-widget/MapWidgetFactory.d.ts +17 -11
  62. package/map-widget/MapWidgetModel.d.ts +16 -11
  63. package/map-widget/Navigation.d.ts +9 -2
  64. package/map-widget/ViewReadyWatcher.d.ts +16 -11
  65. package/map-widget/__internal__/{DTPbI1Aa.d.ts → ChgqPGgf.d.ts} +54 -10
  66. package/map-widget/api/BaseTypes.d.ts +6 -0
  67. package/map-widget/api/Constraints.d.ts +16 -11
  68. package/map-widget/api/MapWidget.d.ts +16 -11
  69. package/map-widget/api/MapWidgetFactory.d.ts +19 -14
  70. package/map-widget/api/MapWidgetModel.d.ts +16 -11
  71. package/map-widget/api/MapWidgetRegistration.d.ts +17 -12
  72. package/map-widget/api/Navigation.d.ts +15 -2
  73. package/map-widget/api/SrsChangeService.d.ts +16 -11
  74. package/map-widget/api/VisibilityState.d.ts +109 -0
  75. package/map-widget/api/index.d.ts +17 -12
  76. package/map-widget/package.json +1 -1
  77. package/mapdraw-api/api.d.ts +3 -3
  78. package/mapdraw-api/package.json +1 -1
  79. package/mapnavigation/package.json +1 -1
  80. package/maptips/api.d.ts +2 -2
  81. package/maptips/package.json +1 -1
  82. package/measurement-2d/api.d.ts +3 -2
  83. package/measurement-2d/package.json +1 -1
  84. package/measurement-3d/api.d.ts +1 -1
  85. package/measurement-3d/package.json +1 -1
  86. package/package.json +1 -1
  87. package/parametermanager/package.json +1 -1
  88. package/popups/Action.d.ts +7 -7
  89. package/popups/BaseAction.d.ts +8 -8
  90. package/popups/ContentUpdateProxy.d.ts +3 -3
  91. package/popups/api.d.ts +6 -5
  92. package/popups/package.json +1 -1
  93. package/portal-security/api.d.ts +1 -1
  94. package/portal-security/package.json +1 -1
  95. package/result-api/__internal__/{DHLZxzhJ.d.ts → BGEg3fBn.d.ts} +17 -4
  96. package/result-api/api/actions.d.ts +3 -2
  97. package/result-api/api/formatting.d.ts +3 -2
  98. package/result-api/api/index.d.ts +3 -2
  99. package/result-api/api/model.d.ts +3 -2
  100. package/result-api/api/service.d.ts +3 -2
  101. package/result-api/api/ui.d.ts +3 -2
  102. package/result-api/package.json +1 -1
  103. package/search-api/api.d.ts +16 -2
  104. package/search-api/package.json +1 -1
  105. package/search-ui/package.json +1 -1
  106. package/selection-services/DrawingSpatialInputAction.d.ts +1 -1
  107. package/selection-services/SearchSource.d.ts +3 -3
  108. package/selection-services/SpatialInputAction.d.ts +1 -1
  109. package/selection-services/TolerancePointDrawingInputAction.d.ts +1 -1
  110. package/selection-services/api/index.d.ts +1 -1
  111. package/selection-services/package.json +1 -1
  112. package/store-api/ComplexQuery.d.ts +1 -1
  113. package/store-api/InMemoryStore.d.ts +1 -1
  114. package/store-api/QueryResults.d.ts +1 -3
  115. package/store-api/SpatialQuery.d.ts +1 -1
  116. package/store-api/api/ComplexQueryLang.d.ts +1 -1
  117. package/store-api/api/Store.d.ts +2 -10
  118. package/store-api/api/index.d.ts +1 -1
  119. package/store-api/package.json +1 -1
  120. package/store-api/rest/BaseRestStore.d.ts +1 -1
  121. package/store-api/rest/BaseWriteableRestStore.d.ts +1 -1
  122. package/store-api/rest/ComplexQueryToSQL.d.ts +1 -1
  123. package/store-api/rest/ComplexQueryToSolrQL.d.ts +1 -1
  124. package/store-api/rest/RQLStore.d.ts +1 -1
  125. package/store-api/rest/SQLStore.d.ts +1 -1
  126. package/store-api/utils.d.ts +1 -5
  127. package/system/package.json +1 -1
  128. package/templatelayout/package.json +1 -1
  129. package/test-utils/package.json +1 -1
  130. package/theme-tester/package.json +1 -1
  131. package/toc/api/Action.d.ts +4 -4
  132. package/toc/api/Item.d.ts +5 -5
  133. package/toc/api/StateChecker.d.ts +4 -4
  134. package/toc/api/index.d.ts +4 -4
  135. package/toc/package.json +1 -1
  136. package/toolrules/package.json +1 -1
  137. package/vuetify-component-overview/package.json +1 -1
  138. package/windowmanager/package.json +1 -1
  139. package/wizard/package.json +1 -1
  140. package/apprt-core/Observable.d.ts +0 -55
  141. package/apprt-request/api.d.ts +0 -340
  142. package/apprt-request/main.d.ts +0 -6
  143. package/apprt-request/package.json +0 -5
  144. package/apprt-request/request.d.ts +0 -8
  145. package/apprt-vue/directives/clipboard.d.ts +0 -15
  146. package/ct/api/omnisearch/ResultHandler.d.ts +0 -3
  147. package/ct/api/omnisearch/Store.d.ts +0 -3
  148. package/ct/request.d.ts +0 -17
  149. package/ct/ui/controls/mobile/DropDownMenu.d.ts +0 -3
  150. package/omnisearch/ActionsHandler.d.ts +0 -9
  151. package/omnisearch/DrawHandler.d.ts +0 -9
  152. package/omnisearch/DropDownMenu.d.ts +0 -3
  153. package/omnisearch/OmniSearchFactory.d.ts +0 -3
  154. package/omnisearch/OmniSearchModel.d.ts +0 -3
  155. package/omnisearch/RadioButton.d.ts +0 -3
  156. package/omnisearch/ResultCommand.d.ts +0 -9
  157. package/omnisearch/SearchUI.d.ts +0 -3
  158. package/omnisearch/SettingsWidget.d.ts +0 -3
  159. package/omnisearch/ZoomHandler.d.ts +0 -8
  160. package/omnisearch/package.json +0 -5
  161. package/resultcenter/ActionController.d.ts +0 -3
  162. package/resultcenter/BaseCommand.d.ts +0 -3
  163. package/resultcenter/DataModel.d.ts +0 -3
  164. package/resultcenter/DataModelBroadcaster.d.ts +0 -3
  165. package/resultcenter/DataModelMapController.d.ts +0 -25
  166. package/resultcenter/DataViewController.d.ts +0 -3
  167. package/resultcenter/DataViewStore.d.ts +0 -3
  168. package/resultcenter/ExportResultsCommand.d.ts +0 -12
  169. package/resultcenter/FeatureMapVisualizer.d.ts +0 -35
  170. package/resultcenter/GraphicResolverFactory.d.ts +0 -15
  171. package/resultcenter/OpenPopupService.d.ts +0 -5
  172. package/resultcenter/PostfixAttributeTableLookupStrategy.d.ts +0 -3
  173. package/resultcenter/RemoveResultsCommand.d.ts +0 -6
  174. package/resultcenter/RestrictQueriesToView.d.ts +0 -3
  175. package/resultcenter/ResultcenterToolRuleProcessor.d.ts +0 -3
  176. package/resultcenter/SearchStoreHandler.d.ts +0 -8
  177. package/resultcenter/SelectAllResultsCommand.d.ts +0 -11
  178. package/resultcenter/StoreEventReceiver.d.ts +0 -3
  179. package/resultcenter/StoreRegistration.d.ts +0 -3
  180. package/resultcenter/TriggerShowResultCenter.d.ts +0 -3
  181. package/resultcenter/VisualizationLayerResolver.d.ts +0 -13
  182. package/resultcenter/package.json +0 -5
  183. package/selection-resultcenter/CachingStore.d.ts +0 -229
  184. package/selection-resultcenter/MemoryStore.d.ts +0 -10
  185. package/selection-resultcenter/package.json +0 -5
@@ -1,15 +1,20 @@
1
1
  import { Mutable } from 'apprt-core/Mutable';
2
- import { Extent, Point, SpatialReference, Polygon } from 'esri/geometry';
3
- import LOD from 'esri/layers/support/LOD';
4
- import Camera from 'esri/Camera';
5
- import Map from 'esri/Map';
6
- import TimeExtent from 'esri/time/TimeExtent';
7
- import Viewpoint from 'esri/Viewpoint';
8
- import MapView from 'esri/views/MapView';
9
- import SceneView from 'esri/views/SceneView';
2
+ import Extent from '@arcgis/core/geometry/Extent';
3
+ import Polygon from '@arcgis/core/geometry/Polygon';
4
+ import LOD from '@arcgis/core/layers/support/LOD';
5
+ import Camera from '@arcgis/core/Camera';
6
+ import Point from '@arcgis/core/geometry/Point';
7
+ import SpatialReference from '@arcgis/core/geometry/SpatialReference';
8
+ import Layer from '@arcgis/core/layers/Layer';
9
+ import Sublayer from '@arcgis/core/layers/support/Sublayer';
10
+ import Map from '@arcgis/core/Map';
11
+ import TimeExtent from '@arcgis/core/time/TimeExtent';
12
+ import Viewpoint from '@arcgis/core/Viewpoint';
13
+ import MapView from '@arcgis/core/views/MapView';
14
+ import SceneView from '@arcgis/core/views/SceneView';
15
+ import { LayerVisibility } from '../api/VisibilityState.js';
10
16
  import { Navigation, NavigationMembers } from '../api/Navigation.js';
11
- import Sublayer from 'esri/layers/support/Sublayer';
12
- import Layer from 'esri/layers/Layer';
17
+ import { AnyLayer } from '../api/BaseTypes.js';
13
18
 
14
19
  type ViewPadding = __esri.ViewPadding;
15
20
  /** The view mode indicates whether a 2D or a 3D view is active. */
@@ -239,12 +244,51 @@ interface MapWidgetModelMembers {
239
244
  */
240
245
  get navigation(): Navigation;
241
246
  set navigation(value: Navigation | Partial<NavigationMembers>);
247
+ /**
248
+ * The map widget model must be destroyed when it is no longer needed.
249
+ *
250
+ * NOTE: The lifetime of the default map widget model is managed by map.apps itself.
251
+ */
252
+ destroy(): void;
242
253
  /**
243
254
  * Finds a layer by id in the map.
244
255
  * The layerIdPath is e.g. `<layerId>` or `<layerId>/<sublayerId>`.
245
256
  * @param layerIdPath The layer id path.
246
257
  */
247
258
  findLayerInMap(layerIdPath: string | undefined): LayerLookupResult;
259
+ /**
260
+ * Returns effective visibility information for the given layer.
261
+ *
262
+ * This works by evaluating the current state of the layer _and_ the current state of the view (scale, extent, etc.).
263
+ *
264
+ * The layer can be specified as an id or path (e.g. `layerId` or `layerId/sublayerId`)
265
+ * or as a direct layer reference.
266
+ */
267
+ getLayerVisibility(layerIdPathOrLayer: string | AnyLayer): Promise<LayerVisibility | undefined>;
268
+ /**
269
+ * Returns `true` if the layer is effectively visible, `false` otherwise.
270
+ *
271
+ * This works by evaluating the current state of the layer _and_ the current state of the view (scale, extent, etc.).
272
+ *
273
+ * The layer can be specified as an id or path (e.g. `layerId` or `layerId/sublayerId`)
274
+ * or as a direct layer reference.
275
+ *
276
+ * > NOTE: This function is a convenience function around {@link getLayerVisibility}.
277
+ * > It returns true if (and only if) there are no {@link LayerVisibility.visibilityIssues | visibility issues}.
278
+ */
279
+ isEffectivelyVisible(layerIdPathOrLayer: string | AnyLayer): Promise<boolean>;
280
+ /**
281
+ * Returns the current visibility issues for the given layer.
282
+ *
283
+ * This works by evaluating the current state of the layer _and_ the current state of the view (scale, extent, etc.).
284
+ *
285
+ * The layer can be specified as an id or path (e.g. `layerId` or `layerId/sublayerId`)
286
+ * or as a direct layer reference.
287
+ *
288
+ * > NOTE: This function should be called within a reactive watch (or effect, etc.).
289
+ * > Otherwise, it may produce outdated results.
290
+ */
291
+ getLiveLayerVisibility(layerIdPathOrLayer: string | AnyLayer): LayerVisibility | undefined;
248
292
  }
249
293
  /**
250
294
  * The ViewModel of the MapWidget.
@@ -0,0 +1,6 @@
1
+ /**
2
+ * A reference to an arbitrary ArcGIS Layer or Sublayer.
3
+ */
4
+ type AnyLayer = __esri.Layer | __esri.Sublayer | __esri.WMSSublayer;
5
+
6
+ export type { AnyLayer };
@@ -1,13 +1,18 @@
1
1
  import 'apprt-core/Mutable';
2
- import 'esri/geometry';
3
- import 'esri/layers/support/LOD';
4
- export { Constraints, ConstraintsMembers } from '../__internal__/DTPbI1Aa.js';
5
- import 'esri/Camera';
6
- import 'esri/Map';
7
- import 'esri/time/TimeExtent';
8
- import 'esri/Viewpoint';
9
- import 'esri/views/MapView';
10
- import 'esri/views/SceneView';
2
+ import '@arcgis/core/geometry/Extent';
3
+ import '@arcgis/core/geometry/Polygon';
4
+ import '@arcgis/core/layers/support/LOD';
5
+ export { Constraints, ConstraintsMembers } from '../__internal__/ChgqPGgf.js';
6
+ import '@arcgis/core/Camera';
7
+ import '@arcgis/core/geometry/Point';
8
+ import '@arcgis/core/geometry/SpatialReference';
9
+ import '@arcgis/core/layers/Layer';
10
+ import '@arcgis/core/layers/support/Sublayer';
11
+ import '@arcgis/core/Map';
12
+ import '@arcgis/core/time/TimeExtent';
13
+ import '@arcgis/core/Viewpoint';
14
+ import '@arcgis/core/views/MapView';
15
+ import '@arcgis/core/views/SceneView';
16
+ import './VisibilityState.js';
11
17
  import './Navigation.js';
12
- import 'esri/layers/support/Sublayer';
13
- import 'esri/layers/Layer';
18
+ import './BaseTypes.js';
@@ -1,16 +1,21 @@
1
- import { MapWidgetModel } from '../__internal__/DTPbI1Aa.js';
1
+ import { MapWidgetModel } from '../__internal__/ChgqPGgf.js';
2
2
  import 'apprt-core/Mutable';
3
- import 'esri/geometry';
4
- import 'esri/layers/support/LOD';
5
- import 'esri/Camera';
6
- import 'esri/Map';
7
- import 'esri/time/TimeExtent';
8
- import 'esri/Viewpoint';
9
- import 'esri/views/MapView';
10
- import 'esri/views/SceneView';
3
+ import '@arcgis/core/geometry/Extent';
4
+ import '@arcgis/core/geometry/Polygon';
5
+ import '@arcgis/core/layers/support/LOD';
6
+ import '@arcgis/core/Camera';
7
+ import '@arcgis/core/geometry/Point';
8
+ import '@arcgis/core/geometry/SpatialReference';
9
+ import '@arcgis/core/layers/Layer';
10
+ import '@arcgis/core/layers/support/Sublayer';
11
+ import '@arcgis/core/Map';
12
+ import '@arcgis/core/time/TimeExtent';
13
+ import '@arcgis/core/Viewpoint';
14
+ import '@arcgis/core/views/MapView';
15
+ import '@arcgis/core/views/SceneView';
16
+ import './VisibilityState.js';
11
17
  import './Navigation.js';
12
- import 'esri/layers/support/Sublayer';
13
- import 'esri/layers/Layer';
18
+ import './BaseTypes.js';
14
19
 
15
20
  /**
16
21
  * The MapWidget shows a map. It is using the MapWidgetModel for state management.
@@ -1,17 +1,22 @@
1
- import Map from 'esri/Map';
1
+ import Map from '@arcgis/core/Map';
2
2
  import { MapWidget } from './MapWidget.js';
3
- import { MapWidgetModelMembers, MapWidgetModel } from '../__internal__/DTPbI1Aa.js';
3
+ import { MapWidgetModelMembers, MapWidgetModel } from '../__internal__/ChgqPGgf.js';
4
4
  import 'apprt-core/Mutable';
5
- import 'esri/geometry';
6
- import 'esri/layers/support/LOD';
7
- import 'esri/Camera';
8
- import 'esri/time/TimeExtent';
9
- import 'esri/Viewpoint';
10
- import 'esri/views/MapView';
11
- import 'esri/views/SceneView';
5
+ import '@arcgis/core/geometry/Extent';
6
+ import '@arcgis/core/geometry/Polygon';
7
+ import '@arcgis/core/layers/support/LOD';
8
+ import '@arcgis/core/Camera';
9
+ import '@arcgis/core/geometry/Point';
10
+ import '@arcgis/core/geometry/SpatialReference';
11
+ import '@arcgis/core/layers/Layer';
12
+ import '@arcgis/core/layers/support/Sublayer';
13
+ import '@arcgis/core/time/TimeExtent';
14
+ import '@arcgis/core/Viewpoint';
15
+ import '@arcgis/core/views/MapView';
16
+ import '@arcgis/core/views/SceneView';
17
+ import './VisibilityState.js';
12
18
  import './Navigation.js';
13
- import 'esri/layers/support/Sublayer';
14
- import 'esri/layers/Layer';
19
+ import './BaseTypes.js';
15
20
 
16
21
  /**
17
22
  * Use the `map-widget.MapWidgetFactory` service to inject an instance of this interface.
@@ -20,9 +25,9 @@ import 'esri/layers/Layer';
20
25
  */
21
26
  interface MapWidgetFactory {
22
27
  /**
23
- * Creates a esri/Map instance.
28
+ * Creates a @arcgis/core/Map instance.
24
29
  *
25
- * @param options options of the esri/Map constructor.
30
+ * @param options options of the @arcgis/core/Map constructor.
26
31
  * @returns the new map instance.
27
32
  * @see [Map](https://developers.arcgis.com/javascript/latest/api-reference/esri-Map.html)
28
33
  */
@@ -30,7 +35,7 @@ interface MapWidgetFactory {
30
35
  /**
31
36
  * Creates a MapWidgetModel instance.
32
37
  *
33
- * Note: in options the `map` parameter is required and needs to be a `esri/Map` instance.
38
+ * Note: in options the `map` parameter is required and needs to be a `@arcgis/core/Map` instance.
34
39
  *
35
40
  * @param options options of the MapWidgetModel constructor.
36
41
  * @returns the MapWidgetModel instance.
@@ -1,13 +1,18 @@
1
+ import '@arcgis/core/Camera';
2
+ import '@arcgis/core/geometry/Extent';
3
+ import '@arcgis/core/geometry/Point';
4
+ import '@arcgis/core/geometry/SpatialReference';
5
+ import '@arcgis/core/layers/Layer';
6
+ import '@arcgis/core/layers/support/Sublayer';
7
+ import '@arcgis/core/Map';
8
+ import '@arcgis/core/time/TimeExtent';
9
+ import '@arcgis/core/Viewpoint';
10
+ import '@arcgis/core/views/MapView';
11
+ import '@arcgis/core/views/SceneView';
1
12
  import 'apprt-core/Mutable';
2
- import 'esri/Camera';
3
- import 'esri/Map';
4
- import 'esri/geometry';
5
- import 'esri/time/TimeExtent';
6
- import 'esri/Viewpoint';
7
- import 'esri/views/MapView';
8
- import 'esri/views/SceneView';
9
- export { LayerLookupResult, MapWidgetModel, MapWidgetModelMembers, SceneViewEnvironment, View, ViewMode, ViewPadding, ViewingMode } from '../__internal__/DTPbI1Aa.js';
13
+ export { LayerLookupResult, MapWidgetModel, MapWidgetModelMembers, SceneViewEnvironment, View, ViewMode, ViewPadding, ViewingMode } from '../__internal__/ChgqPGgf.js';
14
+ import './VisibilityState.js';
10
15
  import './Navigation.js';
11
- import 'esri/layers/support/Sublayer';
12
- import 'esri/layers/Layer';
13
- import 'esri/layers/support/LOD';
16
+ import './BaseTypes.js';
17
+ import '@arcgis/core/geometry/Polygon';
18
+ import '@arcgis/core/layers/support/LOD';
@@ -1,17 +1,22 @@
1
- import Map from 'esri/Map';
1
+ import Map from '@arcgis/core/Map';
2
2
  import { MapWidget } from './MapWidget.js';
3
- import { MapWidgetModel } from '../__internal__/DTPbI1Aa.js';
3
+ import { MapWidgetModel } from '../__internal__/ChgqPGgf.js';
4
4
  import 'apprt-core/Mutable';
5
- import 'esri/geometry';
6
- import 'esri/layers/support/LOD';
7
- import 'esri/Camera';
8
- import 'esri/time/TimeExtent';
9
- import 'esri/Viewpoint';
10
- import 'esri/views/MapView';
11
- import 'esri/views/SceneView';
5
+ import '@arcgis/core/geometry/Extent';
6
+ import '@arcgis/core/geometry/Polygon';
7
+ import '@arcgis/core/layers/support/LOD';
8
+ import '@arcgis/core/Camera';
9
+ import '@arcgis/core/geometry/Point';
10
+ import '@arcgis/core/geometry/SpatialReference';
11
+ import '@arcgis/core/layers/Layer';
12
+ import '@arcgis/core/layers/support/Sublayer';
13
+ import '@arcgis/core/time/TimeExtent';
14
+ import '@arcgis/core/Viewpoint';
15
+ import '@arcgis/core/views/MapView';
16
+ import '@arcgis/core/views/SceneView';
17
+ import './VisibilityState.js';
12
18
  import './Navigation.js';
13
- import 'esri/layers/support/Sublayer';
14
- import 'esri/layers/Layer';
19
+ import './BaseTypes.js';
15
20
 
16
21
  /**
17
22
  * Registers map-related components as OSGi services.
@@ -28,7 +33,7 @@ interface MapWidgetRegistration {
28
33
  * * map-widget.MapWidgetModel
29
34
  * * the map widget model provided to interact with the main map
30
35
  * * map-widget.Map
31
- * * the esri/Map part of the MapWidgetModel, provided if only the layer tree should change
36
+ * * the @arcgis/core/Map part of the MapWidgetModel, provided if only the layer tree should change
32
37
  * * map-widget.MapWidget
33
38
  * * the map widget, do not use it directly
34
39
  *
@@ -1,11 +1,24 @@
1
1
  import { Mutable } from 'apprt-core/Mutable';
2
2
 
3
+ /** Documentation for the members of {@link NavigationActionMap}. */
4
+ interface NavigationActionMapMembers {
5
+ /**
6
+ * Indicates whether the view zooms when the user scrolls the mouse wheel.
7
+ */
8
+ mouseWheel: "zoom" | "none";
9
+ }
10
+ type NavigationActionMap = Mutable<NavigationActionMapMembers>;
3
11
  /** Documentation for the members of {@link Navigation}. */
4
12
  interface NavigationMembers {
5
13
  /**
6
14
  * Indicates whether the view zooms when the user scrolls the mouse wheel.
15
+ * @deprecated Use actionMap.mouseWheel instead.
16
+ */
17
+ mouseWheelZoomEnabled?: boolean;
18
+ /**
19
+ * Defines the navigation controls behavior.
7
20
  */
8
- mouseWheelZoomEnabled: boolean;
21
+ actionMap: NavigationActionMap;
9
22
  /**
10
23
  * Indicates whether the view pans when the user touches the screen.
11
24
  */
@@ -17,4 +30,4 @@ interface NavigationMembers {
17
30
  */
18
31
  type Navigation = Mutable<NavigationMembers>;
19
32
 
20
- export type { Navigation, NavigationMembers };
33
+ export type { Navigation, NavigationActionMap, NavigationActionMapMembers, NavigationMembers };
@@ -1,17 +1,22 @@
1
- import { SpatialReference } from 'esri/geometry';
1
+ import SpatialReference from '@arcgis/core/geometry/SpatialReference';
2
2
  import { MapWidget } from './MapWidget.js';
3
- import '../__internal__/DTPbI1Aa.js';
3
+ import '../__internal__/ChgqPGgf.js';
4
4
  import 'apprt-core/Mutable';
5
- import 'esri/layers/support/LOD';
6
- import 'esri/Camera';
7
- import 'esri/Map';
8
- import 'esri/time/TimeExtent';
9
- import 'esri/Viewpoint';
10
- import 'esri/views/MapView';
11
- import 'esri/views/SceneView';
5
+ import '@arcgis/core/geometry/Extent';
6
+ import '@arcgis/core/geometry/Polygon';
7
+ import '@arcgis/core/layers/support/LOD';
8
+ import '@arcgis/core/Camera';
9
+ import '@arcgis/core/geometry/Point';
10
+ import '@arcgis/core/layers/Layer';
11
+ import '@arcgis/core/layers/support/Sublayer';
12
+ import '@arcgis/core/Map';
13
+ import '@arcgis/core/time/TimeExtent';
14
+ import '@arcgis/core/Viewpoint';
15
+ import '@arcgis/core/views/MapView';
16
+ import '@arcgis/core/views/SceneView';
17
+ import './VisibilityState.js';
12
18
  import './Navigation.js';
13
- import 'esri/layers/support/Sublayer';
14
- import 'esri/layers/Layer';
19
+ import './BaseTypes.js';
15
20
 
16
21
  /**
17
22
  * The SrsChangeService provides methods for successful switching of SRS on a MapWidget.
@@ -0,0 +1,109 @@
1
+ /**
2
+ * Represents a single issue that prevents a layer from being visible.
3
+ *
4
+ * NOTE: More issue types may be added in future versions.
5
+ */
6
+ type VisibilityIssue =
7
+ /**
8
+ * The (sub-)layer is not configured to be visible.
9
+ */
10
+ "not-visible"
11
+ /**
12
+ * The (sub-)layer is not visible, because some of its parent(s) are not configured to be visible.
13
+ */
14
+ | "parent-not-visible"
15
+ /**
16
+ * The (sub-)layer is invisible because its opacity is set to 0.
17
+ */
18
+ | "hidden-by-opacity"
19
+ /**
20
+ * The (sub-)layer is invisible because some of its parent(s) opacity is set to 0.
21
+ */
22
+ | "parent-hidden-by-opacity"
23
+ /**
24
+ * The "full extent" of the (sub-)layer is not visible in the current view.
25
+ */
26
+ | "invisible-at-extent"
27
+ /**
28
+ * The (sub-)layer cannot be shown at the current scale.
29
+ */
30
+ | "invisible-at-scale"
31
+ /**
32
+ * The (sub-)layer cannot be shown at the current time extent.
33
+ */
34
+ | "invisible-at-time-extent"
35
+ /**
36
+ * The layer can only be shown in 3D.
37
+ * This flag is only available for layers (not for sub-layers).
38
+ */
39
+ | "unsupported-in-2d"
40
+ /**
41
+ * The current spatial reference system is not supported.
42
+ * This flag is only available for layers (not for sub-layers).
43
+ */
44
+ | "unsupported-srs"
45
+ /**
46
+ * The layer is either not loaded at all or still loading.
47
+ * This flag is only available for layers (not for sub-layers).
48
+ */
49
+ | "not-loaded"
50
+ /**
51
+ * The layer failed to load, for example due to a network problem.
52
+ * This flag is only available for layers (not for sub-layers).
53
+ */
54
+ | "load-failed"
55
+ /**
56
+ * No layer view is present for this layer.
57
+ * This is a generic error where we can't determine the actual cause.
58
+ * This flag is only available for layers (not for sub-layers).
59
+ */
60
+ | "no-layer-view"
61
+ /**
62
+ * The sub layer is not ready to be displayed, because the layer to which it belongs has issues.
63
+ * This flag is only available for sub-layers.
64
+ * A sublayer is marked by this state if the root layer has one of the following states: not-loaded, load-failed, no-layer-view, unsupported-srs, unsupported-in-2d.
65
+ */
66
+ | "root-layer-not-ready"
67
+ /**
68
+ * This info object has been destroyed, likely because the associated (sub-)layer was removed from the map.
69
+ */
70
+ | "destroyed";
71
+ /**
72
+ * Record with visibility issue type names.
73
+ */
74
+ type VisibilityIssueFilter<Keys extends VisibilityIssue = VisibilityIssue> = Record<Keys, 1>;
75
+ /**
76
+ * Holds effective visibility information for a specific layer in the map.
77
+ */
78
+ interface LayerVisibility {
79
+ /**
80
+ * Returns true if the layer is currently visible to the user.
81
+ *
82
+ * This check takes various states into account:
83
+ *
84
+ * - Is the layer enabled at all (`layer.visible`)?
85
+ * - Are the layer's parents visible?
86
+ * - Is the layer visible in the current extent or zoom level?
87
+ * - Does the layer support the current spatial reference system or view mode?
88
+ * - ...
89
+ */
90
+ readonly isEffectivelyVisible: boolean;
91
+ /**
92
+ * Visibility issues that prevent the layer from being visible.
93
+ *
94
+ * This array is non-empty if {@link isEffectivelyVisible} is false.
95
+ */
96
+ readonly visibilityIssues: VisibilityIssue[];
97
+ /**
98
+ * Filters visibility issues based on the provided filter.
99
+ * @param filter The filter to apply.
100
+ */
101
+ filterIssues<Keys extends VisibilityIssue = VisibilityIssue>(filter: VisibilityIssueFilter<Keys>): Keys[];
102
+ /**
103
+ * Checks if there are any visibility issues that match the provided filter.
104
+ * @param filter The filter to apply.
105
+ */
106
+ hasIssues<Keys extends VisibilityIssue = VisibilityIssue>(filter: VisibilityIssueFilter<Keys>): boolean;
107
+ }
108
+
109
+ export type { LayerVisibility, VisibilityIssue, VisibilityIssueFilter };
@@ -1,17 +1,22 @@
1
- export { Constraints, ConstraintsMembers, LayerLookupResult, MapWidgetModel, MapWidgetModelMembers, SceneViewEnvironment, View, ViewMode, ViewPadding, ViewingMode } from '../__internal__/DTPbI1Aa.js';
2
- export { Navigation, NavigationMembers } from './Navigation.js';
1
+ export { AnyLayer } from './BaseTypes.js';
2
+ export { Constraints, ConstraintsMembers, LayerLookupResult, MapWidgetModel, MapWidgetModelMembers, SceneViewEnvironment, View, ViewMode, ViewPadding, ViewingMode } from '../__internal__/ChgqPGgf.js';
3
+ export { Navigation, NavigationActionMap, NavigationActionMapMembers, NavigationMembers } from './Navigation.js';
3
4
  export { MapWidget } from './MapWidget.js';
4
5
  export { MapWidgetFactory } from './MapWidgetFactory.js';
6
+ export { LayerVisibility, VisibilityIssue, VisibilityIssueFilter } from './VisibilityState.js';
5
7
  export { MapWidgetRegistration } from './MapWidgetRegistration.js';
6
8
  export { SrsChangeService } from './SrsChangeService.js';
7
9
  import 'apprt-core/Mutable';
8
- import 'esri/geometry';
9
- import 'esri/layers/support/LOD';
10
- import 'esri/Camera';
11
- import 'esri/Map';
12
- import 'esri/time/TimeExtent';
13
- import 'esri/Viewpoint';
14
- import 'esri/views/MapView';
15
- import 'esri/views/SceneView';
16
- import 'esri/layers/support/Sublayer';
17
- import 'esri/layers/Layer';
10
+ import '@arcgis/core/geometry/Extent';
11
+ import '@arcgis/core/geometry/Polygon';
12
+ import '@arcgis/core/layers/support/LOD';
13
+ import '@arcgis/core/Camera';
14
+ import '@arcgis/core/geometry/Point';
15
+ import '@arcgis/core/geometry/SpatialReference';
16
+ import '@arcgis/core/layers/Layer';
17
+ import '@arcgis/core/layers/support/Sublayer';
18
+ import '@arcgis/core/Map';
19
+ import '@arcgis/core/time/TimeExtent';
20
+ import '@arcgis/core/Viewpoint';
21
+ import '@arcgis/core/views/MapView';
22
+ import '@arcgis/core/views/SceneView';
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "map-widget",
3
- "version": "4.19.3",
3
+ "version": "4.20.0-PRE-2",
4
4
  "types": ""
5
5
  }
@@ -1,7 +1,7 @@
1
1
  import { Mutable } from 'apprt-core/Mutable';
2
- import Graphic from 'esri/Graphic';
3
- import { Symbol } from 'esri/symbols';
2
+ import Graphic from '@arcgis/core/Graphic';
4
3
  import { View } from 'map-widget/api';
4
+ import { SymbolUnion } from '@arcgis/core/unionTypes';
5
5
 
6
6
  /**
7
7
  * Draws a graphic on the map.
@@ -105,7 +105,7 @@ interface DrawingOptions {
105
105
  * Lookup table for symbols.
106
106
  */
107
107
  type SymbolLookup = {
108
- [D in DrawingMode]?: __esri.SymbolProperties | Symbol;
108
+ [D in DrawingMode]?: __esri.SymbolProperties | SymbolUnion;
109
109
  };
110
110
  /**
111
111
  * The type of graphic being drawn.
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "mapdraw-api",
3
- "version": "4.19.3",
3
+ "version": "4.20.0-PRE-2",
4
4
  "types": ""
5
5
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "mapnavigation",
3
- "version": "4.19.3",
3
+ "version": "4.20.0-PRE-2",
4
4
  "types": ""
5
5
  }
package/maptips/api.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import MapView from 'esri/views/MapView';
2
- import SceneView from 'esri/views/SceneView';
1
+ import MapView from '@arcgis/core/views/MapView';
2
+ import SceneView from '@arcgis/core/views/SceneView';
3
3
 
4
4
  /**
5
5
  * Constructs maptip viewer instances.
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "maptips",
3
- "version": "4.19.3",
3
+ "version": "4.20.0-PRE-2",
4
4
  "types": ""
5
5
  }
@@ -1,6 +1,7 @@
1
1
  import { Watchable } from 'apprt-core/Types';
2
- import { Polyline, Polygon } from 'esri/geometry';
3
- import { SystemOrAreaUnit, SystemOrLengthUnit } from 'esri/core/units';
2
+ import Polyline from '@arcgis/core/geometry/Polyline';
3
+ import Polygon from '@arcgis/core/geometry/Polygon';
4
+ import { SystemOrAreaUnit, SystemOrLengthUnit } from '@arcgis/core/core/units';
4
5
 
5
6
  /**
6
7
  * Measurement mode.
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "measurement-2d",
3
- "version": "4.19.3",
3
+ "version": "4.20.0-PRE-2",
4
4
  "types": ""
5
5
  }
@@ -1,5 +1,5 @@
1
1
  import { Watchable } from 'apprt-core/Types';
2
- import { SystemOrAreaUnit, SystemOrLengthUnit } from 'esri/core/units';
2
+ import { SystemOrAreaUnit, SystemOrLengthUnit } from '@arcgis/core/core/units';
3
3
 
4
4
  /**
5
5
  * Measurement mode.
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "measurement-3d",
3
- "version": "4.19.3",
3
+ "version": "4.20.0-PRE-2",
4
4
  "types": ""
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@conterra/ct-mapapps-typings",
3
- "version": "4.19.3",
3
+ "version": "4.20.0-PRE-2",
4
4
  "description": "TypeDefinitions for ct-mapapps",
5
5
  "author": "conterra",
6
6
  "license": "Apache-2.0"
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "parametermanager",
3
- "version": "4.19.3",
3
+ "version": "4.20.0-PRE-2",
4
4
  "types": ""
5
5
  }
@@ -1,11 +1,11 @@
1
1
  import { BaseActionConstructor } from './BaseAction.js';
2
- import 'esri/support/actions/ActionButton';
3
- import 'esri/support/actions/ActionToggle';
2
+ import '@arcgis/core/support/actions/ActionButton';
3
+ import '@arcgis/core/support/actions/ActionToggle';
4
4
  import './api.js';
5
- import 'esri/geometry';
6
- import 'esri/Graphic';
7
- import 'esri/layers/Layer';
8
- import 'esri/layers/support/Sublayer';
5
+ import '@arcgis/core/geometry/Point';
6
+ import '@arcgis/core/Graphic';
7
+ import '@arcgis/core/layers/Layer';
8
+ import '@arcgis/core/layers/support/Sublayer';
9
9
  import 'map-widget/api';
10
10
  import 'store-api/api';
11
11
 
@@ -14,7 +14,7 @@ declare const Action_base: BaseActionConstructor<"button">;
14
14
  * This is the default Action class.
15
15
  * It equals `popups/BaseAction("button")`.
16
16
  *
17
- * @see [esri/support/actions/ActionButton](https://developers.arcgis.com/javascript/latest/api-reference/esri-support-actions-ActionButton.html)
17
+ * @see [@arcgis/core/support/actions/ActionButton](https://developers.arcgis.com/javascript/latest/api-reference/esri-support-actions-ActionButton.html)
18
18
  */
19
19
  declare class Action extends Action_base {
20
20
  }