@conterra/ct-mapapps-typings 4.19.0-next.20241101051158 → 4.19.0-next.20241104050348
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/package.json
CHANGED
|
@@ -14,7 +14,7 @@ import { ServiceProperties } from 'apprt/api';
|
|
|
14
14
|
*/
|
|
15
15
|
interface SpatialInputAction {
|
|
16
16
|
/**
|
|
17
|
-
* The
|
|
17
|
+
* The ID of this action. Required.
|
|
18
18
|
*/
|
|
19
19
|
readonly id: string;
|
|
20
20
|
/**
|
|
@@ -24,7 +24,7 @@ interface SpatialInputAction {
|
|
|
24
24
|
readonly title: string;
|
|
25
25
|
/**
|
|
26
26
|
* The description of this action.
|
|
27
|
-
* Currently not used, but it is
|
|
27
|
+
* Currently not used, but it is intended to provide the user a hint about this action in the future.
|
|
28
28
|
* Optional.
|
|
29
29
|
*/
|
|
30
30
|
readonly description?: string;
|
|
@@ -34,16 +34,16 @@ interface SpatialInputAction {
|
|
|
34
34
|
readonly iconClass: string;
|
|
35
35
|
/**
|
|
36
36
|
* By default a SpatialInputAction is assumed to be interactive.
|
|
37
|
-
* But this can set to false explicitly.
|
|
37
|
+
* But this can set to `false` explicitly.
|
|
38
38
|
*/
|
|
39
39
|
readonly interactive?: boolean;
|
|
40
40
|
/**
|
|
41
|
-
* Hook triggered before the trigger function is used, e.g. to show supporting widgets.
|
|
42
|
-
* The trigger function maybe invoked multiple times after that method is invoked.
|
|
41
|
+
* Hook triggered before the {@link trigger} function is used, e.g. to show supporting widgets.
|
|
42
|
+
* The {@link trigger} function maybe invoked multiple times after that method is invoked.
|
|
43
43
|
*/
|
|
44
44
|
enable?(): void;
|
|
45
45
|
/**
|
|
46
|
-
* Hook triggered after
|
|
46
|
+
* Hook triggered after {@link enable} and after maybe 0 to n invocations of the {@link trigger} function
|
|
47
47
|
* to indicate that this action is not longer in use e.g. to hide supporting widgets.
|
|
48
48
|
* The trigger function may invoked multiple times after that method is invoked.
|
|
49
49
|
*/
|
|
@@ -70,7 +70,7 @@ interface SpatialInputActionService extends Watchable<{
|
|
|
70
70
|
*/
|
|
71
71
|
getIds(): ReadonlyArray<string>;
|
|
72
72
|
/**
|
|
73
|
-
* Gets action by
|
|
73
|
+
* Gets action by ID or `undefined` if not found.
|
|
74
74
|
* @param id ID of a {@link SpatialInputAction} to be returned.
|
|
75
75
|
*/
|
|
76
76
|
getById(id: string): SpatialInputAction | undefined;
|
|
@@ -97,7 +97,7 @@ interface SpatialSearchService {
|
|
|
97
97
|
*/
|
|
98
98
|
interface SearchSource {
|
|
99
99
|
/**
|
|
100
|
-
* The
|
|
100
|
+
* The ID of the source.
|
|
101
101
|
*/
|
|
102
102
|
id: string;
|
|
103
103
|
/**
|
|
@@ -109,7 +109,7 @@ interface SearchSource {
|
|
|
109
109
|
*/
|
|
110
110
|
description?: string;
|
|
111
111
|
/**
|
|
112
|
-
* The
|
|
112
|
+
* The layer ID of the layer if this store is backed by a map layer.
|
|
113
113
|
*/
|
|
114
114
|
layerId: string;
|
|
115
115
|
/**
|
|
@@ -154,7 +154,7 @@ interface SearchSourceModel extends Watchable<{
|
|
|
154
154
|
hasSources: boolean;
|
|
155
155
|
}> {
|
|
156
156
|
/**
|
|
157
|
-
* Gets sources which fulfill visibility
|
|
157
|
+
* Gets sources which fulfill visibility constraints.
|
|
158
158
|
*/
|
|
159
159
|
readonly effectiveSources: ReadonlyArray<SearchSource>;
|
|
160
160
|
/**
|
|
@@ -170,7 +170,7 @@ interface SearchSourceModel extends Watchable<{
|
|
|
170
170
|
*/
|
|
171
171
|
readonly hasSources: boolean;
|
|
172
172
|
/**
|
|
173
|
-
* Gets source by id or undefined if not found.
|
|
173
|
+
* Gets source by id or `undefined` if not found.
|
|
174
174
|
*/
|
|
175
175
|
getSourceById(id: string): SearchSource | undefined;
|
|
176
176
|
/**
|
|
@@ -195,7 +195,7 @@ interface SelectionTrigger extends Watchable<{
|
|
|
195
195
|
}> {
|
|
196
196
|
/**
|
|
197
197
|
* A selection is currently active.
|
|
198
|
-
* Only if the ui sets this to true a selection action activated to perform a selection.
|
|
198
|
+
* Only if the ui sets this to `true` a selection action activated to perform a selection.
|
|
199
199
|
*/
|
|
200
200
|
active: boolean;
|
|
201
201
|
/**
|
|
@@ -216,13 +216,14 @@ interface SelectionTrigger extends Watchable<{
|
|
|
216
216
|
*/
|
|
217
217
|
actionId: string | undefined;
|
|
218
218
|
/**
|
|
219
|
-
* Flag
|
|
220
|
-
*
|
|
219
|
+
* Flag to signal that the selection receiver should replace the last selection state
|
|
220
|
+
* (if set to `true`) or try to to add it (if set to `false`).
|
|
221
|
+
* If set to `undefined` the default behavior of the receiver should be used.
|
|
221
222
|
*/
|
|
222
223
|
replaceExistingSelection: boolean | undefined;
|
|
223
224
|
/**
|
|
224
225
|
* Flag if selection was finished successful or not.
|
|
225
|
-
* undefined if no selection is running.
|
|
226
|
+
* `undefined` if no selection is running.
|
|
226
227
|
*/
|
|
227
228
|
selectionFinishedNonEmpty: boolean | undefined;
|
|
228
229
|
/**
|
|
@@ -239,12 +240,12 @@ interface SelectionTriggerOptions {
|
|
|
239
240
|
*/
|
|
240
241
|
sourceIds?: string[];
|
|
241
242
|
/**
|
|
242
|
-
* Flag
|
|
243
|
-
* If true the
|
|
243
|
+
* Flag to signal whether all stores should be searched.
|
|
244
|
+
* If `true` the {@link sourceIds} list is ignored.
|
|
244
245
|
*/
|
|
245
246
|
searchAllSources?: boolean;
|
|
246
247
|
/**
|
|
247
|
-
*
|
|
248
|
+
* Currently selected spatial input action.
|
|
248
249
|
*/
|
|
249
250
|
actionId?: string | undefined;
|
|
250
251
|
/**
|
|
@@ -253,8 +254,9 @@ interface SelectionTriggerOptions {
|
|
|
253
254
|
*/
|
|
254
255
|
actionOptions?: Record<string, Record<string, any>>;
|
|
255
256
|
/**
|
|
256
|
-
* Flag
|
|
257
|
-
*
|
|
257
|
+
* Flag to signal whether the selection receiver should replace the last selection state
|
|
258
|
+
* (if set to `true`) or try to add it (if set to `false`).
|
|
259
|
+
* If set to `undefined` the default behavior of the receiver should be used.
|
|
258
260
|
*/
|
|
259
261
|
replaceExistingSelection?: boolean | undefined;
|
|
260
262
|
}
|
|
@@ -268,7 +270,7 @@ interface SelectionTriggerFactory {
|
|
|
268
270
|
* This is introduced, to allow the selection ui to detect if the user can choose
|
|
269
271
|
* between adding and overwriting of selection results.
|
|
270
272
|
*
|
|
271
|
-
* Note
|
|
273
|
+
* Note: If `undefined` is returned, there is no SelectionReceiver available.
|
|
272
274
|
*/
|
|
273
275
|
selectionReceiverSupportsAdding: boolean | undefined;
|
|
274
276
|
/**
|
|
@@ -278,7 +280,7 @@ interface SelectionTriggerFactory {
|
|
|
278
280
|
create(options: SelectionTriggerOptions): SelectionTrigger;
|
|
279
281
|
}
|
|
280
282
|
/**
|
|
281
|
-
* Result transported
|
|
283
|
+
* Result transported as topic event `selection/EXECUTING` or directly transported to a SelectionReceiver.
|
|
282
284
|
*/
|
|
283
285
|
interface SelectionResult {
|
|
284
286
|
/**
|
|
@@ -286,17 +288,16 @@ interface SelectionResult {
|
|
|
286
288
|
*/
|
|
287
289
|
executions: QueryExecutions;
|
|
288
290
|
/**
|
|
289
|
-
*
|
|
291
|
+
* Flag to signal whether existing selections should be replaced (if set to `true`) or added (if set to `false`).
|
|
290
292
|
*/
|
|
291
293
|
replaceExistingSelection?: boolean;
|
|
292
294
|
}
|
|
293
295
|
/**
|
|
294
|
-
*
|
|
295
|
-
* A instance of this interface must be registered as `selection-services.SelectionReceiver`.
|
|
296
|
+
* An instance of this interface must be registered as `selection-services.SelectionReceiver`.
|
|
296
297
|
*/
|
|
297
298
|
interface SelectionReceiver {
|
|
298
299
|
/**
|
|
299
|
-
* Flag if the receiver supports adding
|
|
300
|
+
* Flag if the receiver supports adding new selection results to existing ones.
|
|
300
301
|
*/
|
|
301
302
|
supportsAdding?: boolean;
|
|
302
303
|
/**
|