@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.
- package/agssearch/api.d.ts +2 -2
- package/agssearch/package.json +1 -1
- package/apprt/Bundle.d.ts +1 -1
- package/apprt/EnvironmentRuleMatcher.d.ts +2 -1
- package/apprt/api/index.d.ts +1 -0
- package/apprt/api/internal.d.ts +2 -2
- package/apprt/launch/BundleController.d.ts +4 -2
- package/apprt/launch/Launcher.d.ts +23 -3
- package/apprt/launch/layer-min.d.ts +1 -1
- package/apprt/launch/layer.d.ts +1 -1
- package/apprt/package.json +1 -1
- package/apprt/semverrange.d.ts +2 -1
- package/apprt/support/ServiceRegistrations.d.ts +3 -2
- package/apprt/tracker/BundleTracker.d.ts +2 -1
- package/apprt/tracker/ServiceTracker.d.ts +3 -2
- package/apprt-binding/Binding.d.ts +2 -1
- package/apprt-binding/Transformers.d.ts +2 -1
- package/apprt-binding/package.json +1 -1
- package/apprt-core/AsyncTask.d.ts +2 -1
- package/apprt-core/Cancel.d.ts +2 -1
- package/apprt-core/CancelablePromise.d.ts +2 -1
- package/apprt-core/Events.d.ts +34 -27
- package/apprt-core/Exception.d.ts +2 -1
- package/apprt-core/InjectedReference.d.ts +2 -1
- package/apprt-core/Locale.d.ts +0 -1
- package/apprt-core/Logger.d.ts +2 -1
- package/apprt-core/Mutable.d.ts +2 -1
- package/apprt-core/Observers.d.ts +2 -1
- package/apprt-core/Promise.d.ts +2 -1
- package/apprt-core/PropertyPath.d.ts +2 -1
- package/apprt-core/TaskExecutor.d.ts +2 -1
- package/apprt-core/TreeWalker.d.ts +2 -1
- package/apprt-core/Types.d.ts +3 -2
- package/apprt-core/clone.d.ts +2 -1
- package/apprt-core/comparators.d.ts +2 -4
- package/apprt-core/config.d.ts +9 -8
- package/apprt-core/freeze.d.ts +2 -1
- package/apprt-core/join.d.ts +2 -1
- package/apprt-core/load-css.d.ts +2 -1
- package/apprt-core/load-js.d.ts +3 -2
- package/apprt-core/package.json +1 -1
- package/apprt-core/parallel.d.ts +2 -1
- package/apprt-core/promise-utils.d.ts +2 -1
- package/apprt-core/string-replace.d.ts +2 -1
- package/apprt-dom/index.d.ts +2 -1
- package/apprt-dom/package.json +1 -1
- package/apprt-fetch/index.d.ts +3 -2
- package/apprt-fetch/package.json +1 -1
- package/apprt-streams/Stream.d.ts +1 -1
- package/apprt-streams/package.json +1 -1
- package/apprt-tokens/package.json +1 -1
- package/apprt-vue/package.json +1 -1
- package/apprt-vuetify/RegisterVuetify.d.ts +1 -1
- package/apprt-vuetify/components/copyText.d.ts +8 -0
- package/apprt-vuetify/package.json +1 -1
- package/coordinateconversion/api.d.ts +182 -0
- package/coordinateconversion/package.json +5 -0
- package/coordinatetransformer/api/CoordinateTransformer.d.ts +6 -4
- package/coordinatetransformer/api/ProjectionStore.d.ts +4 -2
- package/coordinatetransformer/api/TransformationProvider.d.ts +6 -4
- package/coordinatetransformer/api/TransformerStrategy.d.ts +4 -2
- package/coordinatetransformer/api/index.d.ts +6 -4
- package/coordinatetransformer/package.json +1 -1
- package/ct/async.d.ts +1 -1
- package/ct/mapping/geometry.d.ts +6 -6
- package/ct/package.json +1 -1
- package/ct/tools/Tool.d.ts +300 -2
- package/dataform/package.json +1 -1
- package/dataview/package.json +1 -1
- package/domains-system/package.json +1 -1
- package/editing/api.d.ts +5 -15
- package/editing/package.json +1 -1
- package/esri-widgets/EsriDijit.d.ts +2 -1
- package/esri-widgets/package.json +1 -1
- package/geojson/api.d.ts +6 -6
- package/geojson/package.json +1 -1
- package/geometryservice/api.d.ts +15 -15
- package/geometryservice/package.json +1 -1
- package/graphics/GraphicsBuilder.d.ts +1 -1
- package/graphics/package.json +1 -1
- package/highlights/api.d.ts +4 -4
- package/highlights/package.json +1 -1
- package/integration-map/package.json +1 -1
- package/managementlayout/package.json +1 -1
- package/map-actions/api.d.ts +2 -2
- package/map-actions/package.json +1 -1
- package/map-basemaps-api/BasemapItem.d.ts +2 -9
- package/map-basemaps-api/BasemapsModel.d.ts +1 -1
- package/map-basemaps-api/api.d.ts +1 -1
- package/map-basemaps-api/package.json +1 -1
- package/map-config-api/api.d.ts +38 -38
- package/map-config-api/package.json +1 -1
- package/map-init/api.d.ts +1 -1
- package/map-init/package.json +1 -1
- package/map-widget/Constraints.d.ts +16 -11
- package/map-widget/LayerObserver.d.ts +7 -6
- package/map-widget/LayerTraverser.d.ts +7 -6
- package/map-widget/MapWidgetFactory.d.ts +17 -11
- package/map-widget/MapWidgetModel.d.ts +16 -11
- package/map-widget/Navigation.d.ts +9 -2
- package/map-widget/ViewReadyWatcher.d.ts +18 -12
- package/map-widget/__internal__/{DTPbI1Aa.d.ts → ChgqPGgf.d.ts} +54 -10
- package/map-widget/api/BaseTypes.d.ts +6 -0
- package/map-widget/api/Constraints.d.ts +16 -11
- package/map-widget/api/MapWidget.d.ts +16 -11
- package/map-widget/api/MapWidgetFactory.d.ts +19 -14
- package/map-widget/api/MapWidgetModel.d.ts +16 -11
- package/map-widget/api/MapWidgetRegistration.d.ts +17 -12
- package/map-widget/api/Navigation.d.ts +15 -2
- package/map-widget/api/SrsChangeService.d.ts +16 -11
- package/map-widget/api/VisibilityState.d.ts +109 -0
- package/map-widget/api/index.d.ts +17 -12
- package/map-widget/package.json +1 -1
- package/mapdraw-api/api.d.ts +3 -3
- package/mapdraw-api/package.json +1 -1
- package/mapnavigation/package.json +1 -1
- package/maptips/api.d.ts +2 -2
- package/maptips/package.json +1 -1
- package/measurement-2d/api.d.ts +3 -2
- package/measurement-2d/package.json +1 -1
- package/measurement-3d/api.d.ts +1 -1
- package/measurement-3d/package.json +1 -1
- package/package.json +6 -6
- package/parametermanager/package.json +1 -1
- package/popups/Action.d.ts +7 -7
- package/popups/BaseAction.d.ts +10 -9
- package/popups/ContentUpdateProxy.d.ts +5 -4
- package/popups/api.d.ts +6 -5
- package/popups/package.json +1 -1
- package/portal-security/api.d.ts +1 -1
- package/portal-security/package.json +1 -1
- package/result-api/__internal__/{Bnw4PH_u.d.ts → BGEg3fBn.d.ts} +38 -5
- package/result-api/api/actions.d.ts +3 -2
- package/result-api/api/formatting.d.ts +3 -2
- package/result-api/api/index.d.ts +3 -2
- package/result-api/api/model.d.ts +3 -2
- package/result-api/api/service.d.ts +9 -2
- package/result-api/api/ui.d.ts +3 -2
- package/result-api/package.json +1 -1
- package/search-api/api.d.ts +16 -2
- package/search-api/package.json +1 -1
- package/search-ui/api.d.ts +2 -1
- package/search-ui/package.json +1 -1
- package/selection-services/DrawingSpatialInputAction.d.ts +3 -2
- package/selection-services/SearchSource.d.ts +5 -4
- package/selection-services/SpatialInputAction.d.ts +3 -2
- package/selection-services/TolerancePointDrawingInputAction.d.ts +1 -1
- package/selection-services/api/index.d.ts +1 -1
- package/selection-services/package.json +1 -1
- package/store-api/ComplexQuery.d.ts +3 -2
- package/store-api/InMemoryStore.d.ts +6 -5
- package/store-api/QueryExecution.d.ts +2 -1
- package/store-api/QueryExecutions.d.ts +3 -2
- package/store-api/QueryResults.d.ts +1 -3
- package/store-api/SpatialQuery.d.ts +3 -2
- package/store-api/api/ComplexQueryLang.d.ts +1 -1
- package/store-api/api/Store.d.ts +2 -10
- package/store-api/api/index.d.ts +1 -1
- package/store-api/package.json +1 -1
- package/store-api/rest/BaseRestStore.d.ts +3 -2
- package/store-api/rest/BaseWriteableRestStore.d.ts +1 -1
- package/store-api/rest/ComplexQueryToSQL.d.ts +1 -1
- package/store-api/rest/ComplexQueryToSolrQL.d.ts +3 -2
- package/store-api/rest/RQLStore.d.ts +1 -1
- package/store-api/rest/SQLStore.d.ts +1 -1
- package/store-api/utils.d.ts +2 -6
- package/system/api/internal.d.ts +1 -1
- package/system/package.json +1 -1
- package/system/user/Authentication.d.ts +3 -2
- package/system/user/Authorization.d.ts +2 -1
- package/system/user/User.d.ts +2 -1
- package/templatelayout/package.json +1 -1
- package/test-utils/package.json +1 -1
- package/test-utils/waitFor.d.ts +2 -1
- package/theme-tester/package.json +1 -1
- package/toc/api/Action.d.ts +4 -4
- package/toc/api/Item.d.ts +5 -5
- package/toc/api/StateChecker.d.ts +4 -4
- package/toc/api/index.d.ts +4 -4
- package/toc/package.json +1 -1
- package/toolrules/package.json +1 -1
- package/vuetify-component-overview/package.json +1 -1
- package/windowmanager/package.json +1 -1
- package/wizard/package.json +1 -1
- package/apprt-core/Observable.d.ts +0 -55
- package/apprt-request/api.d.ts +0 -340
- package/apprt-request/main.d.ts +0 -6
- package/apprt-request/package.json +0 -5
- package/apprt-request/request.d.ts +0 -8
- package/apprt-vue/directives/clipboard.d.ts +0 -15
- package/ct/api/omnisearch/ResultHandler.d.ts +0 -3
- package/ct/api/omnisearch/Store.d.ts +0 -3
- package/ct/request.d.ts +0 -17
- package/ct/ui/controls/mobile/DropDownMenu.d.ts +0 -3
- package/omnisearch/ActionsHandler.d.ts +0 -9
- package/omnisearch/DrawHandler.d.ts +0 -9
- package/omnisearch/DropDownMenu.d.ts +0 -3
- package/omnisearch/OmniSearchFactory.d.ts +0 -3
- package/omnisearch/OmniSearchModel.d.ts +0 -3
- package/omnisearch/RadioButton.d.ts +0 -3
- package/omnisearch/ResultCommand.d.ts +0 -9
- package/omnisearch/SearchUI.d.ts +0 -3
- package/omnisearch/SettingsWidget.d.ts +0 -3
- package/omnisearch/ZoomHandler.d.ts +0 -8
- package/omnisearch/package.json +0 -5
- package/resultcenter/ActionController.d.ts +0 -3
- package/resultcenter/BaseCommand.d.ts +0 -3
- package/resultcenter/DataModel.d.ts +0 -3
- package/resultcenter/DataModelBroadcaster.d.ts +0 -3
- package/resultcenter/DataModelMapController.d.ts +0 -25
- package/resultcenter/DataViewController.d.ts +0 -3
- package/resultcenter/DataViewStore.d.ts +0 -3
- package/resultcenter/ExportResultsCommand.d.ts +0 -12
- package/resultcenter/FeatureMapVisualizer.d.ts +0 -35
- package/resultcenter/GraphicResolverFactory.d.ts +0 -15
- package/resultcenter/OpenPopupService.d.ts +0 -5
- package/resultcenter/PostfixAttributeTableLookupStrategy.d.ts +0 -3
- package/resultcenter/RemoveResultsCommand.d.ts +0 -6
- package/resultcenter/RestrictQueriesToView.d.ts +0 -3
- package/resultcenter/ResultcenterToolRuleProcessor.d.ts +0 -3
- package/resultcenter/SearchStoreHandler.d.ts +0 -8
- package/resultcenter/SelectAllResultsCommand.d.ts +0 -11
- package/resultcenter/StoreEventReceiver.d.ts +0 -3
- package/resultcenter/StoreRegistration.d.ts +0 -3
- package/resultcenter/TriggerShowResultCenter.d.ts +0 -3
- package/resultcenter/VisualizationLayerResolver.d.ts +0 -13
- package/resultcenter/package.json +0 -5
- package/selection-resultcenter/CachingStore.d.ts +0 -229
- package/selection-resultcenter/MemoryStore.d.ts +0 -10
- package/selection-resultcenter/package.json +0 -5
package/ct/tools/Tool.d.ts
CHANGED
|
@@ -1,3 +1,301 @@
|
|
|
1
|
-
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (C) con terra GmbH
|
|
3
|
+
*/
|
|
2
4
|
|
|
3
|
-
|
|
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 };
|
package/dataform/package.json
CHANGED
package/dataview/package.json
CHANGED
package/editing/api.d.ts
CHANGED
|
@@ -1,22 +1,12 @@
|
|
|
1
|
-
import Graphic from '
|
|
2
|
-
import FeatureLayer from '
|
|
3
|
-
import Editor from '
|
|
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 =
|
|
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
|
|
62
|
+
export type { Editing, EditorInterceptor, EditorProperties, StartEditingMapAction, StartEditingMapActionItem, StartEditingMapActionOptions };
|
package/editing/package.json
CHANGED
package/geojson/api.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import Geometry from '
|
|
1
|
+
import Geometry from '@arcgis/core/geometry/Geometry';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* Provides the means to transform between WKT strings, GeoJSON and
|
|
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
|
|
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
|
|
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
|
|
25
|
+
* Parses a WKT string into an `@arcgis/core/Geometry`.
|
|
26
26
|
*/
|
|
27
27
|
wktToGeometry(wkt: string): Geometry;
|
|
28
28
|
/**
|
|
29
|
-
* Converts an
|
|
29
|
+
* Converts an `@arcgis/core/Geometry` into a WKT string.
|
|
30
30
|
*/
|
|
31
31
|
geometryToWKT(geometry: Geometry): string;
|
|
32
32
|
}
|
package/geojson/package.json
CHANGED
package/geometryservice/api.d.ts
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import Point from '
|
|
3
|
-
import Polygon from '
|
|
4
|
-
import Polyline from '
|
|
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
|
|
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<
|
|
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<
|
|
17
|
-
difference(geometries: any, geometry: any, requestOptions?: any): Promise<
|
|
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<
|
|
21
|
-
intersect(geometries: any, intersector: any, requestOptions?: any): Promise<
|
|
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<
|
|
25
|
-
project(projectParameters: any, requestOption?: any): Promise<
|
|
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<
|
|
28
|
-
simplify(geometries: any, requestOptions?: any): Promise<
|
|
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<
|
|
31
|
+
union(geometries: any, requestOptions?: any): Promise<GeometryUnion>;
|
|
32
32
|
get units(): Record<string, any>;
|
|
33
33
|
}
|
|
34
34
|
|
package/graphics/package.json
CHANGED
package/highlights/api.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import Collection from '
|
|
2
|
-
import Graphic from '
|
|
3
|
-
import esriSymbol from '
|
|
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
|
-
* [
|
|
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>;
|
package/highlights/package.json
CHANGED
package/map-actions/api.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { EventSource } from 'apprt-core/Events';
|
|
2
|
-
import {
|
|
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?:
|
|
9
|
+
readonly geometry?: GeometryUnion;
|
|
10
10
|
}
|
|
11
11
|
/** Shape of the `options` parameter passed to an action. */
|
|
12
12
|
interface ActionOptions {
|
package/map-actions/package.json
CHANGED
|
@@ -1,15 +1,8 @@
|
|
|
1
1
|
import { MutableConstructor } from 'apprt-core/Mutable';
|
|
2
2
|
import { BasemapItem as BasemapItem$1 } from './api.js';
|
|
3
|
-
import
|
|
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 '
|
|
3
|
+
import '@arcgis/core/Basemap';
|
|
4
4
|
|
|
5
5
|
declare const BasemapsModel: {
|
|
6
6
|
new (options?: Partial<Omit<BasemapsModelMembers, "basemaps"> & {
|