@conterra/ct-mapapps-typings 4.20.1 → 4.20.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 (230) hide show
  1. package/agssearch/api.d.ts +2 -2
  2. package/agssearch/package.json +1 -1
  3. package/apprt/Bundle.d.ts +1 -1
  4. package/apprt/EnvironmentRuleMatcher.d.ts +2 -1
  5. package/apprt/api/index.d.ts +1 -0
  6. package/apprt/api/internal.d.ts +2 -2
  7. package/apprt/launch/BundleController.d.ts +4 -2
  8. package/apprt/launch/Launcher.d.ts +23 -3
  9. package/apprt/launch/layer-min.d.ts +1 -1
  10. package/apprt/launch/layer.d.ts +1 -1
  11. package/apprt/package.json +1 -1
  12. package/apprt/semverrange.d.ts +2 -1
  13. package/apprt/support/ServiceRegistrations.d.ts +3 -2
  14. package/apprt/tracker/BundleTracker.d.ts +2 -1
  15. package/apprt/tracker/ServiceTracker.d.ts +3 -2
  16. package/apprt-binding/Binding.d.ts +2 -1
  17. package/apprt-binding/Transformers.d.ts +2 -1
  18. package/apprt-binding/package.json +1 -1
  19. package/apprt-core/AsyncTask.d.ts +2 -1
  20. package/apprt-core/Cancel.d.ts +2 -1
  21. package/apprt-core/CancelablePromise.d.ts +2 -1
  22. package/apprt-core/Events.d.ts +34 -27
  23. package/apprt-core/Exception.d.ts +2 -1
  24. package/apprt-core/InjectedReference.d.ts +2 -1
  25. package/apprt-core/Locale.d.ts +0 -1
  26. package/apprt-core/Logger.d.ts +2 -1
  27. package/apprt-core/Mutable.d.ts +2 -1
  28. package/apprt-core/Observers.d.ts +2 -1
  29. package/apprt-core/Promise.d.ts +2 -1
  30. package/apprt-core/PropertyPath.d.ts +2 -1
  31. package/apprt-core/TaskExecutor.d.ts +2 -1
  32. package/apprt-core/TreeWalker.d.ts +2 -1
  33. package/apprt-core/Types.d.ts +3 -2
  34. package/apprt-core/clone.d.ts +2 -1
  35. package/apprt-core/comparators.d.ts +2 -4
  36. package/apprt-core/config.d.ts +9 -8
  37. package/apprt-core/freeze.d.ts +2 -1
  38. package/apprt-core/join.d.ts +2 -1
  39. package/apprt-core/load-css.d.ts +2 -1
  40. package/apprt-core/load-js.d.ts +3 -2
  41. package/apprt-core/package.json +1 -1
  42. package/apprt-core/parallel.d.ts +2 -1
  43. package/apprt-core/promise-utils.d.ts +2 -1
  44. package/apprt-core/string-replace.d.ts +2 -1
  45. package/apprt-dom/index.d.ts +2 -1
  46. package/apprt-dom/package.json +1 -1
  47. package/apprt-fetch/index.d.ts +3 -2
  48. package/apprt-fetch/package.json +1 -1
  49. package/apprt-streams/Stream.d.ts +1 -1
  50. package/apprt-streams/package.json +1 -1
  51. package/apprt-tokens/package.json +1 -1
  52. package/apprt-vue/package.json +1 -1
  53. package/apprt-vuetify/RegisterVuetify.d.ts +1 -1
  54. package/apprt-vuetify/components/copyText.d.ts +8 -0
  55. package/apprt-vuetify/package.json +1 -1
  56. package/coordinateconversion/api.d.ts +182 -0
  57. package/coordinateconversion/package.json +5 -0
  58. package/coordinatetransformer/api/CoordinateTransformer.d.ts +6 -4
  59. package/coordinatetransformer/api/ProjectionStore.d.ts +4 -2
  60. package/coordinatetransformer/api/TransformationProvider.d.ts +6 -4
  61. package/coordinatetransformer/api/TransformerStrategy.d.ts +4 -2
  62. package/coordinatetransformer/api/index.d.ts +6 -4
  63. package/coordinatetransformer/package.json +1 -1
  64. package/ct/async.d.ts +1 -1
  65. package/ct/mapping/geometry.d.ts +6 -6
  66. package/ct/package.json +1 -1
  67. package/ct/tools/Tool.d.ts +300 -2
  68. package/dataform/package.json +1 -1
  69. package/dataview/package.json +1 -1
  70. package/domains-system/package.json +1 -1
  71. package/editing/api.d.ts +5 -15
  72. package/editing/package.json +1 -1
  73. package/esri-widgets/EsriDijit.d.ts +2 -1
  74. package/esri-widgets/package.json +1 -1
  75. package/geojson/api.d.ts +6 -6
  76. package/geojson/package.json +1 -1
  77. package/geometryservice/api.d.ts +15 -15
  78. package/geometryservice/package.json +1 -1
  79. package/graphics/GraphicsBuilder.d.ts +1 -1
  80. package/graphics/package.json +1 -1
  81. package/highlights/api.d.ts +4 -4
  82. package/highlights/package.json +1 -1
  83. package/integration-map/package.json +1 -1
  84. package/managementlayout/package.json +1 -1
  85. package/map-actions/api.d.ts +2 -2
  86. package/map-actions/package.json +1 -1
  87. package/map-basemaps-api/BasemapItem.d.ts +2 -9
  88. package/map-basemaps-api/BasemapsModel.d.ts +1 -1
  89. package/map-basemaps-api/api.d.ts +1 -1
  90. package/map-basemaps-api/package.json +1 -1
  91. package/map-config-api/api.d.ts +38 -38
  92. package/map-config-api/package.json +1 -1
  93. package/map-init/api.d.ts +1 -1
  94. package/map-init/package.json +1 -1
  95. package/map-widget/Constraints.d.ts +16 -11
  96. package/map-widget/LayerObserver.d.ts +7 -6
  97. package/map-widget/LayerTraverser.d.ts +7 -6
  98. package/map-widget/MapWidgetFactory.d.ts +17 -11
  99. package/map-widget/MapWidgetModel.d.ts +16 -11
  100. package/map-widget/Navigation.d.ts +9 -2
  101. package/map-widget/ViewReadyWatcher.d.ts +18 -12
  102. package/map-widget/__internal__/{DTPbI1Aa.d.ts → ChgqPGgf.d.ts} +54 -10
  103. package/map-widget/api/BaseTypes.d.ts +6 -0
  104. package/map-widget/api/Constraints.d.ts +16 -11
  105. package/map-widget/api/MapWidget.d.ts +16 -11
  106. package/map-widget/api/MapWidgetFactory.d.ts +19 -14
  107. package/map-widget/api/MapWidgetModel.d.ts +16 -11
  108. package/map-widget/api/MapWidgetRegistration.d.ts +17 -12
  109. package/map-widget/api/Navigation.d.ts +15 -2
  110. package/map-widget/api/SrsChangeService.d.ts +16 -11
  111. package/map-widget/api/VisibilityState.d.ts +109 -0
  112. package/map-widget/api/index.d.ts +17 -12
  113. package/map-widget/package.json +1 -1
  114. package/mapdraw-api/api.d.ts +3 -3
  115. package/mapdraw-api/package.json +1 -1
  116. package/mapnavigation/package.json +1 -1
  117. package/maptips/api.d.ts +2 -2
  118. package/maptips/package.json +1 -1
  119. package/measurement-2d/api.d.ts +3 -2
  120. package/measurement-2d/package.json +1 -1
  121. package/measurement-3d/api.d.ts +1 -1
  122. package/measurement-3d/package.json +1 -1
  123. package/package.json +6 -6
  124. package/parametermanager/package.json +1 -1
  125. package/popups/Action.d.ts +7 -7
  126. package/popups/BaseAction.d.ts +10 -9
  127. package/popups/ContentUpdateProxy.d.ts +5 -4
  128. package/popups/api.d.ts +6 -5
  129. package/popups/package.json +1 -1
  130. package/portal-security/api.d.ts +1 -1
  131. package/portal-security/package.json +1 -1
  132. package/result-api/__internal__/{Bnw4PH_u.d.ts → BGEg3fBn.d.ts} +38 -5
  133. package/result-api/api/actions.d.ts +3 -2
  134. package/result-api/api/formatting.d.ts +3 -2
  135. package/result-api/api/index.d.ts +3 -2
  136. package/result-api/api/model.d.ts +3 -2
  137. package/result-api/api/service.d.ts +9 -2
  138. package/result-api/api/ui.d.ts +3 -2
  139. package/result-api/package.json +1 -1
  140. package/search-api/api.d.ts +16 -2
  141. package/search-api/package.json +1 -1
  142. package/search-ui/api.d.ts +2 -1
  143. package/search-ui/package.json +1 -1
  144. package/selection-services/DrawingSpatialInputAction.d.ts +3 -2
  145. package/selection-services/SearchSource.d.ts +5 -4
  146. package/selection-services/SpatialInputAction.d.ts +3 -2
  147. package/selection-services/TolerancePointDrawingInputAction.d.ts +1 -1
  148. package/selection-services/api/index.d.ts +1 -1
  149. package/selection-services/package.json +1 -1
  150. package/store-api/ComplexQuery.d.ts +3 -2
  151. package/store-api/InMemoryStore.d.ts +6 -5
  152. package/store-api/QueryExecution.d.ts +2 -1
  153. package/store-api/QueryExecutions.d.ts +3 -2
  154. package/store-api/QueryResults.d.ts +1 -3
  155. package/store-api/SpatialQuery.d.ts +3 -2
  156. package/store-api/api/ComplexQueryLang.d.ts +1 -1
  157. package/store-api/api/Store.d.ts +2 -10
  158. package/store-api/api/index.d.ts +1 -1
  159. package/store-api/package.json +1 -1
  160. package/store-api/rest/BaseRestStore.d.ts +3 -2
  161. package/store-api/rest/BaseWriteableRestStore.d.ts +1 -1
  162. package/store-api/rest/ComplexQueryToSQL.d.ts +1 -1
  163. package/store-api/rest/ComplexQueryToSolrQL.d.ts +3 -2
  164. package/store-api/rest/RQLStore.d.ts +1 -1
  165. package/store-api/rest/SQLStore.d.ts +1 -1
  166. package/store-api/utils.d.ts +2 -6
  167. package/system/api/internal.d.ts +1 -1
  168. package/system/package.json +1 -1
  169. package/system/user/Authentication.d.ts +3 -2
  170. package/system/user/Authorization.d.ts +2 -1
  171. package/system/user/User.d.ts +2 -1
  172. package/templatelayout/package.json +1 -1
  173. package/test-utils/package.json +1 -1
  174. package/test-utils/waitFor.d.ts +2 -1
  175. package/theme-tester/package.json +1 -1
  176. package/toc/api/Action.d.ts +4 -4
  177. package/toc/api/Item.d.ts +5 -5
  178. package/toc/api/StateChecker.d.ts +4 -4
  179. package/toc/api/index.d.ts +4 -4
  180. package/toc/package.json +1 -1
  181. package/toolrules/package.json +1 -1
  182. package/vuetify-component-overview/package.json +1 -1
  183. package/windowmanager/package.json +1 -1
  184. package/wizard/package.json +1 -1
  185. package/apprt-core/Observable.d.ts +0 -55
  186. package/apprt-request/api.d.ts +0 -340
  187. package/apprt-request/main.d.ts +0 -6
  188. package/apprt-request/package.json +0 -5
  189. package/apprt-request/request.d.ts +0 -8
  190. package/apprt-vue/directives/clipboard.d.ts +0 -15
  191. package/ct/api/omnisearch/ResultHandler.d.ts +0 -3
  192. package/ct/api/omnisearch/Store.d.ts +0 -3
  193. package/ct/request.d.ts +0 -17
  194. package/ct/ui/controls/mobile/DropDownMenu.d.ts +0 -3
  195. package/omnisearch/ActionsHandler.d.ts +0 -9
  196. package/omnisearch/DrawHandler.d.ts +0 -9
  197. package/omnisearch/DropDownMenu.d.ts +0 -3
  198. package/omnisearch/OmniSearchFactory.d.ts +0 -3
  199. package/omnisearch/OmniSearchModel.d.ts +0 -3
  200. package/omnisearch/RadioButton.d.ts +0 -3
  201. package/omnisearch/ResultCommand.d.ts +0 -9
  202. package/omnisearch/SearchUI.d.ts +0 -3
  203. package/omnisearch/SettingsWidget.d.ts +0 -3
  204. package/omnisearch/ZoomHandler.d.ts +0 -8
  205. package/omnisearch/package.json +0 -5
  206. package/resultcenter/ActionController.d.ts +0 -3
  207. package/resultcenter/BaseCommand.d.ts +0 -3
  208. package/resultcenter/DataModel.d.ts +0 -3
  209. package/resultcenter/DataModelBroadcaster.d.ts +0 -3
  210. package/resultcenter/DataModelMapController.d.ts +0 -25
  211. package/resultcenter/DataViewController.d.ts +0 -3
  212. package/resultcenter/DataViewStore.d.ts +0 -3
  213. package/resultcenter/ExportResultsCommand.d.ts +0 -12
  214. package/resultcenter/FeatureMapVisualizer.d.ts +0 -35
  215. package/resultcenter/GraphicResolverFactory.d.ts +0 -15
  216. package/resultcenter/OpenPopupService.d.ts +0 -5
  217. package/resultcenter/PostfixAttributeTableLookupStrategy.d.ts +0 -3
  218. package/resultcenter/RemoveResultsCommand.d.ts +0 -6
  219. package/resultcenter/RestrictQueriesToView.d.ts +0 -3
  220. package/resultcenter/ResultcenterToolRuleProcessor.d.ts +0 -3
  221. package/resultcenter/SearchStoreHandler.d.ts +0 -8
  222. package/resultcenter/SelectAllResultsCommand.d.ts +0 -11
  223. package/resultcenter/StoreEventReceiver.d.ts +0 -3
  224. package/resultcenter/StoreRegistration.d.ts +0 -3
  225. package/resultcenter/TriggerShowResultCenter.d.ts +0 -3
  226. package/resultcenter/VisualizationLayerResolver.d.ts +0 -13
  227. package/resultcenter/package.json +0 -5
  228. package/selection-resultcenter/CachingStore.d.ts +0 -229
  229. package/selection-resultcenter/MemoryStore.d.ts +0 -10
  230. package/selection-resultcenter/package.json +0 -5
@@ -1,3 +1,301 @@
1
- declare const _default: any;
1
+ /*
2
+ * Copyright (C) con terra GmbH
3
+ */
2
4
 
3
- export { _default as default };
5
+ /**
6
+ * Utility type to create more specific parameter typings for {@link Stateful.watch}'s callback.
7
+ *
8
+ * This allows us to make the types of the callback's value parameters
9
+ * dependent on the callback's name parameter. This way, handler code like
10
+ * the following is well-typed:
11
+ * ```ts
12
+ * let stateful: Stateful<{id: string, priority: number}>;
13
+ * stateful.watch('*', (name, oldValue, newValue) => {
14
+ * if (name === 'id') {
15
+ * // TypeScript can now infer that newValue is a string
16
+ * console.log(newValue.substring(0, 4));
17
+ * }
18
+ * if (name === 'priority') {
19
+ * // TypeScript can now infer that oldValue and newValue are numbers
20
+ * console.log(newValue - oldValue);
21
+ * }
22
+ * });
23
+ * ```
24
+ *
25
+ * This uses TypeScript's distributive behavior in conditional types to turn
26
+ * a union of properties into a union of tuples.
27
+ *
28
+ * @see https://www.typescriptlang.org/docs/handbook/2/conditional-types.html#distributive-conditional-types
29
+ */
30
+ type WatchCallbackParams<T, P extends keyof T> = P extends unknown ? [name: P, oldValue: T[P], newValue: T[P]] : never;
31
+
32
+ type Stateful<T> = T & {
33
+ watch: <Prop extends keyof T | "*">(
34
+ property: Prop,
35
+ handler: (...args: WatchCallbackParams<T, Prop extends "*" ? keyof T : Prop>) => void
36
+ ) => { remove: () => void };
37
+
38
+ set: <Prop extends keyof T>(property: Prop, value: T[Prop]) => void;
39
+
40
+ get: <Prop extends keyof T>(property: Prop) => T[Prop];
41
+ };
42
+
43
+ /** Placeholder type for parameters to all the Evented functions. */
44
+ type UnknownEvent = unknown;
45
+
46
+ /** Utility type for all the handler functions in Tool. */
47
+ type HandlerFn<This, Event, Result = void> = ((this: This, event: Event) => Result) | undefined;
48
+
49
+ type TooltipPosition = "above" | "below" | "after" | "before";
50
+
51
+ /** A partial copy of the declaration in ct/tools/Tool adapted for TypeScript. The types are mostly educated guesses. */
52
+ interface ToolProperties {
53
+ /**
54
+ * Given tool id.
55
+ */
56
+ id: string;
57
+ /**
58
+ * The title of the tool.
59
+ */
60
+ title: string | undefined;
61
+ /**
62
+ * A description of the tool.
63
+ */
64
+ description: string | undefined;
65
+ /**
66
+ * A tool tip.
67
+ */
68
+ tooltip: string | undefined;
69
+ /**
70
+ * The tooltip positions.
71
+ * e.g. ["above","below","after","before"]
72
+ */
73
+ tooltipPositions: TooltipPosition[] | undefined;
74
+ /**
75
+ * Priority is used to ensure an ordering of tools.
76
+ * Tools with high priority are first, equal priority means sort by id.
77
+ */
78
+ priority: number;
79
+ /**
80
+ * A tool group this information is also added as css class to the root node of the created button or menu.
81
+ */
82
+ toolGroup: string;
83
+ /**
84
+ * A tool class appended to the root node of the created button or menu.
85
+ * Note that ctTool_${id} is always added
86
+ */
87
+ toolClass: string;
88
+ /**
89
+ * A tool icon class appended to the icon node of the created button or menu.
90
+ * Note that ctToolIcon_${id} is always added
91
+ */
92
+ iconClass: string;
93
+ /**
94
+ * The visible state of the tool.
95
+ * On change the onShow/onHide events are fired.
96
+ */
97
+ visibility: boolean;
98
+ /**
99
+ * The enabled state of the tool.
100
+ * On change the onDisabled, onEnabled events are fired.
101
+ */
102
+ enabled: boolean;
103
+ /**
104
+ * The active state of the tool, this is only of interest if the tool is togglable.
105
+ * On change the onActivate, onDeactivate events are fired.
106
+ */
107
+ active: boolean;
108
+ /**
109
+ * The togglable state of the tool, this marks that the tool can be toggled.
110
+ * It should be set in the constructor and the state value should never dynamically change.
111
+ */
112
+ togglable: boolean;
113
+ /**
114
+ * The processing state of the tool, this marks that the tool is currently processing something.
115
+ * The state is toggled by the fireProcess* methods and independent from any other state of the tool.
116
+ */
117
+ processing: boolean;
118
+ /**
119
+ * The self reference. Please see the ToolReference class to note that this property allows
120
+ * to handle a tool like a tool reference, which makes code expecting references to be used with tools directly.
121
+ */
122
+ tool: Tool;
123
+ /**
124
+ * Flag auto disables the tool if it becomes hidden.
125
+ * default: true.
126
+ */
127
+ disableOnHide: boolean;
128
+ /**
129
+ * Flag auto enables the tool if it becomes visible.
130
+ * default: true.
131
+ */
132
+ enableOnShow: boolean;
133
+ /**
134
+ * Flag auto deactivates the tool if it is disabled.
135
+ * default: true.
136
+ */
137
+ deactivateOnDisable: boolean;
138
+ /**
139
+ * Flag auto activates the tool if it is enabled.
140
+ * default: false.
141
+ */
142
+ activateOnEnable: boolean;
143
+ /**
144
+ * Flag auto enables the tool if set("active",true) is called.
145
+ */
146
+ enableOnActivate: boolean;
147
+ /**
148
+ * The scope of the default handler functions.
149
+ */
150
+ handlerScope: object | null;
151
+ /**
152
+ * The handler function called if the tool is clicked.
153
+ */
154
+ clickHandler: HandlerFn<ToolProperties["handlerScope"], UnknownEvent>;
155
+ /**
156
+ * The handler function called if the tool is double clicked.
157
+ */
158
+ dblClickHandler: HandlerFn<ToolProperties["handlerScope"], UnknownEvent>;
159
+ /**
160
+ * The handler function called before the onActivate event is fired.
161
+ */
162
+ beforeActivateHandler: HandlerFn<ToolProperties["handlerScope"], UnknownEvent>;
163
+ /**
164
+ * The handler function called if the tool is activated.
165
+ */
166
+ activateHandler: HandlerFn<ToolProperties["handlerScope"], UnknownEvent>;
167
+ /**
168
+ * The handler function called before the onDeactivate event is fired.
169
+ */
170
+ beforeDeactivateHandler: HandlerFn<ToolProperties["handlerScope"], UnknownEvent>;
171
+ /**
172
+ * The handler function called if the tool is deactivated.
173
+ */
174
+ deactivateHandler: HandlerFn<ToolProperties["handlerScope"], UnknownEvent>;
175
+ /**
176
+ * The handler function called if the tool becomes enabled.
177
+ */
178
+ enabledHandler: HandlerFn<ToolProperties["handlerScope"], UnknownEvent>;
179
+ /**
180
+ * The handler function called if the tool becomes disabled.
181
+ */
182
+ disabledHandler: HandlerFn<ToolProperties["handlerScope"], UnknownEvent>;
183
+ /**
184
+ * The handler function called if the tool becomes visible.
185
+ */
186
+ showHandler: HandlerFn<ToolProperties["handlerScope"], UnknownEvent>;
187
+ /**
188
+ * The handler function called if the tool becomes hidden.
189
+ */
190
+ hideHandler: HandlerFn<ToolProperties["handlerScope"], UnknownEvent>;
191
+ /**
192
+ * The handler function called if the tool starts a processing task.
193
+ */
194
+ processStartHandler: HandlerFn<ToolProperties["handlerScope"], UnknownEvent>;
195
+ /**
196
+ * The handler function called if the tool ends a processing task.
197
+ */
198
+ processEndHandler: HandlerFn<ToolProperties["handlerScope"], UnknownEvent>;
199
+ /**
200
+ * Rules flag read by the toolrules bundle (optional).
201
+ */
202
+ rules: object | null;
203
+ /**
204
+ * The handler function called to check a condition before activating a togglable tool.
205
+ * The function has to return true if condition is fulfilled and false if not.
206
+ */
207
+ activationConditionHandler: HandlerFn<
208
+ ToolProperties["activationConditionHandlerScope"] | Tool,
209
+ UnknownEvent,
210
+ boolean
211
+ >;
212
+ /**
213
+ * The scope of the activation condition handler function.
214
+ */
215
+ activationConditionHandlerScope: object | null;
216
+ /**
217
+ * If true real click,check/uncheck,dblclick events are delegated async into the tool model,
218
+ * so that the browser event flow is not broken.
219
+ */
220
+ async: boolean;
221
+ /**
222
+ * Simulates a click on the tool.
223
+ * Please note that this does not change the active state.
224
+ * A client have to call set("active",true|false) to change the state.
225
+ */
226
+ click(evt: UnknownEvent): void;
227
+ /**
228
+ * Simulates a dbl click on the tool.
229
+ */
230
+ dblClick(evt: UnknownEvent): void;
231
+ /**
232
+ * Sends a info message to the tool. It simple fires the onInfoMessage() event.
233
+ * Such a message is normally produced in the backend, to indicate a "please click me" state on the tool.
234
+ */
235
+ infoMsg(msgObj: { message: string }): void;
236
+ /**
237
+ * The onClick event
238
+ */
239
+ onClick(event: UnknownEvent): void;
240
+ /**
241
+ * The onDoubleClick event
242
+ **/
243
+ onDblClick(event: UnknownEvent): void;
244
+ /**
245
+ * The onInfoMessage event, transports a message from the backend to the tool widget.
246
+ **/
247
+ onInfoMessage(event: UnknownEvent): void;
248
+ /**
249
+ * The onBeforeActivate event, it is called short before onActivate.
250
+ **/
251
+ onBeforeActivate(event: UnknownEvent): void;
252
+ /**
253
+ * The onActivate event
254
+ **/
255
+ onActivate(event: UnknownEvent): void;
256
+ /**
257
+ * The onDeactivate event
258
+ **/
259
+ onDeactivate(event: UnknownEvent): void;
260
+ /**
261
+ * The onBeforeDeactivate event, it is called short before onDeactivate.
262
+ **/
263
+ onBeforeDeactivate(event: UnknownEvent): void;
264
+ /**
265
+ * The onEnabled event, if the tool becomes enabled (available for pressing)
266
+ **/
267
+ onEnabled(event: UnknownEvent): void;
268
+ /**
269
+ * The onDisabled event, if the tool becomes disabled (not available for pressing)
270
+ **/
271
+ onDisabled(event: UnknownEvent): void;
272
+ /**
273
+ * The onShow event, if the tool becomes visible (allowed to show on screen)
274
+ **/
275
+ onShow(event: UnknownEvent): void;
276
+ /**
277
+ * The onHide event, if the tool becomes hidden (not allowed to show on screen)
278
+ **/
279
+ onHide(event: UnknownEvent): void;
280
+ /**
281
+ * `onProcessStart` is called when an external process is started
282
+ */
283
+ onProcessStart(event: UnknownEvent): void;
284
+ /**
285
+ * `onProcessEnd` is called when an external process is stopped
286
+ */
287
+ onProcessEnd(event: UnknownEvent): void;
288
+ }
289
+
290
+ interface ToolConstructor {
291
+ new (props?: Partial<ToolProperties>): Tool;
292
+ }
293
+
294
+ type Tool = Stateful<ToolProperties>;
295
+
296
+ // Declaring a type and a variable of the same name is a technique used by
297
+ // TypeScript's type declarations for standard library types such as Date.
298
+ declare const Tool: ToolConstructor;
299
+
300
+ export { Tool as default };
301
+ export type { TooltipPosition };
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "dataform",
3
- "version": "4.20.1",
3
+ "version": "4.20.2",
4
4
  "types": ""
5
5
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "dataview",
3
- "version": "4.20.1",
3
+ "version": "4.20.2",
4
4
  "types": ""
5
5
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "domains-system",
3
- "version": "4.20.1",
3
+ "version": "4.20.2",
4
4
  "types": ""
5
5
  }
package/editing/api.d.ts CHANGED
@@ -1,22 +1,12 @@
1
- import Graphic from 'esri/Graphic';
2
- import FeatureLayer from 'esri/layers/FeatureLayer';
3
- import Editor from 'esri/widgets/Editor';
1
+ import Graphic from '@arcgis/core/Graphic';
2
+ import FeatureLayer from '@arcgis/core/layers/FeatureLayer';
3
+ import Editor from '@arcgis/core/widgets/Editor';
4
4
  import { Action, ActionOptions, ActionItem } from 'map-actions/api';
5
5
 
6
- /**
7
- * Well known workflow ids.
8
- */
9
- type WellKnownWorkflow = NonNullable<__esri.EditorProperties["allowedWorkflows"]>;
10
6
  /**
11
7
  * Properties used to create an {@link Editor}.
12
8
  */
13
- type EditorProperties = Omit<__esri.EditorProperties, "allowedWorkflows"> & {
14
- /**
15
- * @deprecated since ArcGIS Maps SDK for JavaScript 4.29
16
- * use {@link __esri.EditorProperties.visibleElements} instead;
17
- */
18
- allowedWorkflows?: WellKnownWorkflow[];
19
- };
9
+ type EditorProperties = __esri.EditorProperties;
20
10
  /**
21
11
  * Extension point to access the editing widget or its configuration.
22
12
  */
@@ -69,4 +59,4 @@ interface StartEditingMapActionItem extends ActionItem {
69
59
  objectId: number;
70
60
  }
71
61
 
72
- export type { Editing, EditorInterceptor, EditorProperties, StartEditingMapAction, StartEditingMapActionItem, StartEditingMapActionOptions, WellKnownWorkflow };
62
+ export type { Editing, EditorInterceptor, EditorProperties, StartEditingMapAction, StartEditingMapActionItem, StartEditingMapActionOptions };
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "editing",
3
- "version": "4.20.1",
3
+ "version": "4.20.2",
4
4
  "types": ""
5
5
  }
@@ -8,4 +8,5 @@ declare function createDijit<T extends EsriWidget>(esriWidget: T, extraOptions?:
8
8
  class?: string;
9
9
  }): EsriDijit<T>;
10
10
 
11
- export { type EsriDijit, createDijit, createDijit as default };
11
+ export { createDijit, createDijit as default };
12
+ export type { EsriDijit };
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "esri-widgets",
3
- "version": "4.20.1",
3
+ "version": "4.20.2",
4
4
  "types": ""
5
5
  }
package/geojson/api.d.ts CHANGED
@@ -1,16 +1,16 @@
1
- import Geometry from 'esri/geometry/Geometry';
1
+ import Geometry from '@arcgis/core/geometry/Geometry';
2
2
 
3
3
  /**
4
- * Provides the means to transform between WKT strings, GeoJSON and `esri/Geometry` objects.
4
+ * Provides the means to transform between WKT strings, GeoJSON and `@arcgis/core/Geometry` objects.
5
5
  * Registered as service `geojson.Transformer`.
6
6
  */
7
7
  interface Transformer {
8
8
  /**
9
- * Parses the given GeoJSON object to esri/Geometry.
9
+ * Parses the given GeoJSON object to @arcgis/core/Geometry.
10
10
  */
11
11
  geojsonToGeometry(geoJSON: Record<string, unknown>): Geometry;
12
12
  /**
13
- * Converts an `esri/Geometry` into a GeoJSON object.
13
+ * Converts an `@arcgis/core/Geometry` into a GeoJSON object.
14
14
  */
15
15
  geometryToGeojson(geometry: Geometry): Record<string, unknown>;
16
16
  /**
@@ -22,11 +22,11 @@ interface Transformer {
22
22
  */
23
23
  geojsonToWKT(geoJSON: Record<string, unknown>): string;
24
24
  /**
25
- * Parses a WKT string into an `esri/Geometry`.
25
+ * Parses a WKT string into an `@arcgis/core/Geometry`.
26
26
  */
27
27
  wktToGeometry(wkt: string): Geometry;
28
28
  /**
29
- * Converts an `esri/Geometry` into a WKT string.
29
+ * Converts an `@arcgis/core/Geometry` into a WKT string.
30
30
  */
31
31
  geometryToWKT(geometry: Geometry): string;
32
32
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "geojson",
3
- "version": "4.20.1",
3
+ "version": "4.20.2",
4
4
  "types": ""
5
5
  }
@@ -1,34 +1,34 @@
1
- import { Geometry } from 'esri/geometry';
2
- import Point from 'esri/geometry/Point';
3
- import Polygon from 'esri/geometry/Polygon';
4
- import Polyline from 'esri/geometry/Polyline';
1
+ import { GeometryUnion } from '@arcgis/core/unionTypes';
2
+ import Point from '@arcgis/core/geometry/Point';
3
+ import Polygon from '@arcgis/core/geometry/Polygon';
4
+ import Polyline from '@arcgis/core/geometry/Polyline';
5
5
 
6
6
  /**
7
- * GeometryService delegates to methods defined in esri/rest/geometryService.
7
+ * GeometryService delegates to methods defined in @arcgis/core/rest/geometryService.
8
8
  */
9
9
  interface GeometryService {
10
10
  get url(): string;
11
11
  areasAndLengths(areasAndLengthsParameters: any, requestOptions?: any): Promise<any>;
12
12
  autoComplete(polygons: any, polylines: any, requestOptions?: any): Promise<Polygon[]>;
13
13
  buffer(bufferParameters: any, requestOptions?: any): Promise<Polygon[]>;
14
- convexHull(geometries: any, requestOptions?: any): Promise<Geometry>;
14
+ convexHull(geometries: any, requestOptions?: any): Promise<GeometryUnion>;
15
15
  cut(geometries: any, cutter: any, requestOptions?: any): Promise<any>;
16
- densify(densifyParameters: any, requestOptions?: any): Promise<Geometry[]>;
17
- difference(geometries: any, geometry: any, requestOptions?: any): Promise<Geometry>;
16
+ densify(densifyParameters: any, requestOptions?: any): Promise<GeometryUnion[]>;
17
+ difference(geometries: any, geometry: any, requestOptions?: any): Promise<GeometryUnion[]>;
18
18
  distance(distanceParameters: any, requestOptions?: any): Promise<number>;
19
19
  fromGeoCoordinateString(params: any, requestOptions?: any): Promise<any>;
20
- generalize(generalizeParameters: any, requestOptions?: any): Promise<Geometry[]>;
21
- intersect(geometries: any, intersector: any, requestOptions?: any): Promise<Geometry[]>;
20
+ generalize(generalizeParameters: any, requestOptions?: any): Promise<GeometryUnion[]>;
21
+ intersect(geometries: any, intersector: any, requestOptions?: any): Promise<GeometryUnion[]>;
22
22
  labelPoints(polygons: any, requestOptions?: any): Promise<Point[]>;
23
23
  lengths(lengthsParameters: any, requestOptions?: any): Promise<any>;
24
- offset(offsetParameters: any, requestOptions?: any): Promise<Geometry[]>;
25
- project(projectParameters: any, requestOption?: any): Promise<Geometry[]>;
24
+ offset(offsetParameters: any, requestOptions?: any): Promise<GeometryUnion[]>;
25
+ project(projectParameters: any, requestOption?: any): Promise<GeometryUnion[]>;
26
26
  relation(relationParameters: any, requestOptions?: any): Promise<Polygon[]>;
27
- reshape(geometry: any, reshaper: any, requestOptions?: any): Promise<Geometry>;
28
- simplify(geometries: any, requestOptions?: any): Promise<Geometry[]>;
27
+ reshape(geometry: any, reshaper: any, requestOptions?: any): Promise<GeometryUnion>;
28
+ simplify(geometries: any, requestOptions?: any): Promise<GeometryUnion[]>;
29
29
  toGeoCoordinateString(params: any, requestOptions?: any): Promise<string[]>;
30
30
  trimExtend(trimExtendParameters: any, requestOptions?: any): Promise<Polyline[]>;
31
- union(geometries: any, requestOptions?: any): Promise<Geometry>;
31
+ union(geometries: any, requestOptions?: any): Promise<GeometryUnion>;
32
32
  get units(): Record<string, any>;
33
33
  }
34
34
 
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "geometryservice",
3
- "version": "4.20.1",
3
+ "version": "4.20.2",
4
4
  "types": ""
5
5
  }
@@ -1,4 +1,4 @@
1
- import Graphic from 'esri/Graphic';
1
+ import Graphic from '@arcgis/core/Graphic';
2
2
 
3
3
  declare function GraphicsBuilder(): {
4
4
  createGraphic: ({ geometry, symbolLookupStrategy, context, attributes }: {
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "graphics",
3
- "version": "4.20.1",
3
+ "version": "4.20.2",
4
4
  "types": ""
5
5
  }
@@ -1,6 +1,6 @@
1
- import Collection from 'esri/core/Collection';
2
- import Graphic from 'esri/Graphic';
3
- import esriSymbol from 'esri/symbols/Symbol';
1
+ import Collection from '@arcgis/core/core/Collection';
2
+ import Graphic from '@arcgis/core/Graphic';
3
+ import esriSymbol from '@arcgis/core/symbols/Symbol';
4
4
  import { ViewMode, MapWidgetModel } from 'map-widget/api';
5
5
  export { ViewMode } from 'map-widget/api';
6
6
 
@@ -42,7 +42,7 @@ type GeometryType = string;
42
42
  /**
43
43
  * Properties for default symbols.
44
44
  * Properties must contain all properties required by
45
- * [esri/Symbol](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-Symbol.html)
45
+ * [@arcgis/core/Symbol](https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-Symbol.html)
46
46
  * and its derived classes.
47
47
  */
48
48
  type SymbolProperties = Record<string, any>;
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "highlights",
3
- "version": "4.20.1",
3
+ "version": "4.20.2",
4
4
  "types": ""
5
5
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "integration-map",
3
- "version": "4.20.1",
3
+ "version": "4.20.2",
4
4
  "types": ""
5
5
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "managementlayout",
3
- "version": "4.20.1",
3
+ "version": "4.20.2",
4
4
  "types": ""
5
5
  }
@@ -1,12 +1,12 @@
1
1
  import { EventSource } from 'apprt-core/Events';
2
- import { Geometry } from 'esri/geometry';
2
+ import { GeometryUnion } from '@arcgis/core/unionTypes';
3
3
  import { PopupTemplateDefinition } from 'popups/api';
4
4
 
5
5
  interface ActionItem {
6
6
  /** Arbitrary properties. */
7
7
  readonly [key: string]: unknown;
8
8
  /** Some actions require an item geometry in order to work. */
9
- readonly geometry?: Geometry;
9
+ readonly geometry?: GeometryUnion;
10
10
  }
11
11
  /** Shape of the `options` parameter passed to an action. */
12
12
  interface ActionOptions {
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "map-actions",
3
- "version": "4.20.1",
3
+ "version": "4.20.2",
4
4
  "types": ""
5
5
  }
@@ -1,15 +1,8 @@
1
1
  import { MutableConstructor } from 'apprt-core/Mutable';
2
2
  import { BasemapItem as BasemapItem$1 } from './api.js';
3
- import Basemap from 'esri/Basemap';
3
+ import '@arcgis/core/Basemap';
4
4
 
5
- declare const BasemapItem: MutableConstructor<{
6
- id: string;
7
- title: string | undefined;
8
- description: string | undefined;
9
- basemap: Basemap | undefined;
10
- thumbnailUrl: string | undefined;
11
- viewmode: ("2D" | "3D") | undefined;
12
- }>;
5
+ declare const BasemapItem: MutableConstructor<BasemapItem$1>;
13
6
  type BasemapItem = BasemapItem$1;
14
7
 
15
8
  export { BasemapItem, BasemapItem as default };
@@ -1,6 +1,6 @@
1
1
  import { BasemapsModelMembers, BasemapItem, BasemapItemProps, BasemapsModel as BasemapsModel$1 } from './api.js';
2
2
  import 'apprt-core/Mutable';
3
- import 'esri/Basemap';
3
+ import '@arcgis/core/Basemap';
4
4
 
5
5
  declare const BasemapsModel: {
6
6
  new (options?: Partial<Omit<BasemapsModelMembers, "basemaps"> & {
@@ -1,5 +1,5 @@
1
1
  import { Mutable } from 'apprt-core/Mutable';
2
- import Basemap from 'esri/Basemap';
2
+ import Basemap from '@arcgis/core/Basemap';
3
3
 
4
4
  /**
5
5
  * Documentation for the members of {@link BasemapsModel}.
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "map-basemaps-api",
3
- "version": "4.20.1",
3
+ "version": "4.20.2",
4
4
  "types": ""
5
5
  }