@conterra/ct-mapapps-typings 4.20.0 → 4.20.1-next.20251024040237
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/package.json +1 -1
- package/apprt/package.json +1 -1
- package/apprt-binding/package.json +1 -1
- package/apprt-core/Events.d.ts +33 -27
- package/apprt-core/Locale.d.ts +0 -1
- package/apprt-core/comparators.d.ts +0 -3
- package/apprt-core/package.json +1 -1
- package/apprt-dom/package.json +1 -1
- 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/package.json +1 -1
- package/coordinateconversion/package.json +1 -1
- package/coordinatetransformer/package.json +1 -1
- package/ct/package.json +1 -1
- package/dataform/package.json +1 -1
- package/dataview/package.json +1 -1
- package/domains-system/package.json +1 -1
- package/editing/package.json +1 -1
- package/esri-widgets/package.json +1 -1
- package/geojson/package.json +1 -1
- package/geometryservice/package.json +1 -1
- package/graphics/package.json +1 -1
- package/highlights/package.json +1 -1
- package/integration-map/package.json +1 -1
- package/managementlayout/package.json +1 -1
- package/map-actions/package.json +1 -1
- package/map-basemaps-api/package.json +1 -1
- package/map-config-api/package.json +1 -1
- package/map-init/package.json +1 -1
- package/map-widget/package.json +1 -1
- package/mapdraw-api/package.json +1 -1
- package/mapnavigation/package.json +1 -1
- package/maptips/package.json +1 -1
- package/measurement-2d/package.json +1 -1
- package/measurement-3d/package.json +1 -1
- package/package.json +1 -1
- package/parametermanager/package.json +1 -1
- package/popups/package.json +1 -1
- package/portal-security/package.json +1 -1
- package/result-api/package.json +1 -1
- package/search-api/package.json +1 -1
- package/search-ui/package.json +1 -1
- package/selection-services/package.json +1 -1
- package/store-api/InMemoryStore.d.ts +3 -3
- package/store-api/package.json +1 -1
- package/system/package.json +1 -1
- package/templatelayout/package.json +1 -1
- package/test-utils/package.json +1 -1
- package/theme-tester/package.json +1 -1
- 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/agssearch/package.json
CHANGED
package/apprt/package.json
CHANGED
package/apprt-core/Events.d.ts
CHANGED
|
@@ -20,12 +20,42 @@ interface EventedConstructor {
|
|
|
20
20
|
/** Creates a new Evented instance. */
|
|
21
21
|
new <Events>(): Evented<Events>;
|
|
22
22
|
}
|
|
23
|
+
/** The signature of {@link Evented | Evented's} `on(...)` method. */
|
|
24
|
+
interface EventedOn<Events> {
|
|
25
|
+
/**
|
|
26
|
+
* Register event listener for specific events.
|
|
27
|
+
*
|
|
28
|
+
* @param eventName name of the event
|
|
29
|
+
* @param callback the event handler callback will be invoked when the event has been emitted
|
|
30
|
+
* @returns a handle to unregister from the event
|
|
31
|
+
*/
|
|
32
|
+
<Name extends EventNames<Events>>(eventName: Name, callback: EventCallback<Events[Name]>): EventHandle;
|
|
33
|
+
/**
|
|
34
|
+
* Register event listener for any event.
|
|
35
|
+
*
|
|
36
|
+
* @param eventName must be `"*"` for this overload
|
|
37
|
+
* @param callback the event handler callback will be invoked when any event has been emitted
|
|
38
|
+
* @returns a handle to unregister from the events
|
|
39
|
+
*/
|
|
40
|
+
(eventName: "*", callback: EventCallback<Events[EventNames<Events>]>): EventHandle;
|
|
41
|
+
/**
|
|
42
|
+
* Register event listener for the events listed in `eventName`.
|
|
43
|
+
* Comma separated event names are possible, for example `"eventA,eventB"`.
|
|
44
|
+
*
|
|
45
|
+
* @param eventName the event name or list of names
|
|
46
|
+
* @param callback the event handler callback
|
|
47
|
+
* @returns a handle to unregister from the event(s)
|
|
48
|
+
*/
|
|
49
|
+
(eventName: string | string[], callback: EventCallback<unknown>): EventHandle;
|
|
50
|
+
}
|
|
23
51
|
/**
|
|
24
52
|
* Like `Evented`, but only specifies the `on` function.
|
|
25
53
|
* This is useful if clients of a class should not be able to invoke the `emit()` function
|
|
26
54
|
* themselves.
|
|
27
55
|
*/
|
|
28
|
-
|
|
56
|
+
interface EventSource<Events> {
|
|
57
|
+
on: EventedOn<Events>;
|
|
58
|
+
}
|
|
29
59
|
/**
|
|
30
60
|
* A helper object that establishes TypeScript support for arbitrary event targets.
|
|
31
61
|
*
|
|
@@ -223,31 +253,7 @@ declare function cleanup(target: any): void;
|
|
|
223
253
|
* ```
|
|
224
254
|
*/
|
|
225
255
|
interface Evented<Events> {
|
|
226
|
-
|
|
227
|
-
* Register event listener for specific events.
|
|
228
|
-
*
|
|
229
|
-
* @param eventName name of the event
|
|
230
|
-
* @param callback the event handler callback will be invoked when the event has been emitted
|
|
231
|
-
* @returns a handle to unregister from the event
|
|
232
|
-
*/
|
|
233
|
-
on<Name extends EventNames<Events>>(eventName: Name, callback: EventCallback<Events[Name]>): EventHandle;
|
|
234
|
-
/**
|
|
235
|
-
* Register event listener for any event.
|
|
236
|
-
*
|
|
237
|
-
* @param eventName must be `"*"` for this overload
|
|
238
|
-
* @param callback the event handler callback will be invoked when any event has been emitted
|
|
239
|
-
* @returns a handle to unregister from the events
|
|
240
|
-
*/
|
|
241
|
-
on(eventName: "*", callback: EventCallback<Events[EventNames<Events>]>): EventHandle;
|
|
242
|
-
/**
|
|
243
|
-
* Register event listener for the events listed in `eventName`.
|
|
244
|
-
* Comma separated event names are possible, for example `"eventA,eventB"`.
|
|
245
|
-
*
|
|
246
|
-
* @param eventName the event name or list of names
|
|
247
|
-
* @param callback the event handler callback
|
|
248
|
-
* @returns a handle to unregister from the event(s)
|
|
249
|
-
*/
|
|
250
|
-
on(eventName: string | string[], callback: EventCallback<unknown>): EventHandle;
|
|
256
|
+
on: EventedOn<Events>;
|
|
251
257
|
/**
|
|
252
258
|
* Emits an event.
|
|
253
259
|
* All associated event listeners registered for the given event name will be invoked asynchronously.
|
|
@@ -282,4 +288,4 @@ declare const Evented: EventedConstructor;
|
|
|
282
288
|
declare function EventedMixin<BaseType extends Constructor<any, any>>(Base: BaseType): Constructor<InstanceType<BaseType> & Evented<any>, ConstructorParameters<BaseType>>;
|
|
283
289
|
|
|
284
290
|
export { Evented, EventedMixin, EventedMixin as Evented_Mixin, cleanup, createTypedEvents, emit, emitSync, on };
|
|
285
|
-
export type { EventCallback, EventHandle, EventNames, EventSource, EventedConstructor, TypedEvents };
|
|
291
|
+
export type { EventCallback, EventHandle, EventNames, EventSource, EventedConstructor, EventedOn, TypedEvents };
|
package/apprt-core/Locale.d.ts
CHANGED
|
@@ -16,7 +16,6 @@ type Comparator<T> = (a: T, b: T) => number;
|
|
|
16
16
|
* If such things are compared and they are not equal, then the first argument is always treated as smaller.
|
|
17
17
|
* e.g. `DEFAULT_COMPARE({}, undefined) === DEFAULT_COMPARE(undefined, {}) === -1`
|
|
18
18
|
*
|
|
19
|
-
* @implements Comparator
|
|
20
19
|
*/
|
|
21
20
|
declare const DEFAULT_COMPARE: (a: any, b: any) => number;
|
|
22
21
|
/**
|
|
@@ -31,7 +30,6 @@ declare const TYPE_BASED_COMPARE: (a: any, b: any) => number;
|
|
|
31
30
|
* Compares strings while treating uppercase and lowercase characters as equal.
|
|
32
31
|
* This methods will throw an error if the objects are no strings.
|
|
33
32
|
*
|
|
34
|
-
* @implements Comparator
|
|
35
33
|
*/
|
|
36
34
|
declare const IGNORE_CASE: (a: any, b: any) => number;
|
|
37
35
|
/**
|
|
@@ -71,7 +69,6 @@ interface Comparable<T> {
|
|
|
71
69
|
/**
|
|
72
70
|
* Compares objects using the compareTo function provided in the first object.
|
|
73
71
|
* If the 'compareTo' function is not available then it falls back to the DEFAULT_COMPARE.
|
|
74
|
-
* @implements Comparator
|
|
75
72
|
* @example _Usage with a class_
|
|
76
73
|
* ```
|
|
77
74
|
* import { BY_COMPARE_TO, DEFAULT_COMPARE } from "apprt-core/comparators"
|
package/apprt-core/package.json
CHANGED
package/apprt-dom/package.json
CHANGED
package/apprt-fetch/package.json
CHANGED
|
@@ -304,7 +304,7 @@ declare abstract class Stream<T> implements Iterable<T> {
|
|
|
304
304
|
* const result = Stream.from(items).take(1).toArray(); // [1]
|
|
305
305
|
* ```
|
|
306
306
|
*
|
|
307
|
-
* @count the number of elements to include in the returned stream
|
|
307
|
+
* @param count the number of elements to include in the returned stream
|
|
308
308
|
*/
|
|
309
309
|
take(count: number): Stream<T>;
|
|
310
310
|
/**
|
package/apprt-vue/package.json
CHANGED
package/ct/package.json
CHANGED
package/dataform/package.json
CHANGED
package/dataview/package.json
CHANGED
package/editing/package.json
CHANGED
package/geojson/package.json
CHANGED
package/graphics/package.json
CHANGED
package/highlights/package.json
CHANGED
package/map-actions/package.json
CHANGED
package/map-init/package.json
CHANGED
package/map-widget/package.json
CHANGED
package/mapdraw-api/package.json
CHANGED
package/maptips/package.json
CHANGED
package/package.json
CHANGED
package/popups/package.json
CHANGED
package/result-api/package.json
CHANGED
package/search-api/package.json
CHANGED
package/search-ui/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Evented } from 'apprt-core/Events';
|
|
1
|
+
import { Evented, EventSource, EventedOn } from 'apprt-core/Events';
|
|
2
2
|
import { Metadata, StoreEvents, SyncStore, QueryOptions, ResultItems, SyncWritableStore, CreateOptions, AsyncStore, AsyncQueryResult, GetOptions, AsyncWritableStore } from './api/Store.js';
|
|
3
3
|
import { ComplexQueryExpression } from './api/ComplexQueryLang.js';
|
|
4
4
|
import '@arcgis/core/geometry/Geometry';
|
|
@@ -57,9 +57,9 @@ declare class SyncWritableInMemoryStore<ItemType extends Record<string, any>, ID
|
|
|
57
57
|
/**
|
|
58
58
|
* A readonly asynchronous store.
|
|
59
59
|
*/
|
|
60
|
-
declare class AsyncInMemoryStore<ItemType extends Record<string, any>, IDType extends string | number> implements AsyncStore<ItemType, IDType
|
|
60
|
+
declare class AsyncInMemoryStore<ItemType extends Record<string, any>, IDType extends string | number> implements AsyncStore<ItemType, IDType>, EventSource<StoreEvents<IDType>> {
|
|
61
61
|
protected _mem: SyncWritableStore<ItemType, IDType>;
|
|
62
|
-
readonly on:
|
|
62
|
+
readonly on: EventedOn<StoreEvents<IDType>>;
|
|
63
63
|
constructor(opts?: ConstructorOptions<ItemType>);
|
|
64
64
|
get id(): string | undefined;
|
|
65
65
|
get idProperty(): string | undefined;
|
package/store-api/package.json
CHANGED
package/system/package.json
CHANGED
package/test-utils/package.json
CHANGED
package/toc/package.json
CHANGED
package/toolrules/package.json
CHANGED
package/wizard/package.json
CHANGED