@conterra/ct-mapapps-typings 4.19.2-next.20250325045859 → 4.19.2-next.20250402042452

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 (65) hide show
  1. package/apprt/Bundle.d.ts +1 -1
  2. package/apprt/EnvironmentRuleMatcher.d.ts +2 -1
  3. package/apprt/api/internal.d.ts +1 -1
  4. package/apprt/launch/BundleController.d.ts +3 -2
  5. package/apprt/launch/Launcher.d.ts +3 -2
  6. package/apprt/launch/layer-min.d.ts +1 -1
  7. package/apprt/launch/layer.d.ts +1 -1
  8. package/apprt/semverrange.d.ts +2 -1
  9. package/apprt/support/ServiceRegistrations.d.ts +3 -2
  10. package/apprt/tracker/BundleTracker.d.ts +2 -1
  11. package/apprt/tracker/ServiceTracker.d.ts +3 -2
  12. package/apprt-binding/Binding.d.ts +2 -1
  13. package/apprt-binding/Transformers.d.ts +2 -1
  14. package/apprt-core/AsyncTask.d.ts +2 -1
  15. package/apprt-core/Cancel.d.ts +2 -1
  16. package/apprt-core/CancelablePromise.d.ts +2 -1
  17. package/apprt-core/Events.d.ts +2 -1
  18. package/apprt-core/Exception.d.ts +2 -1
  19. package/apprt-core/InjectedReference.d.ts +2 -1
  20. package/apprt-core/Logger.d.ts +2 -1
  21. package/apprt-core/Mutable.d.ts +2 -1
  22. package/apprt-core/Observers.d.ts +2 -1
  23. package/apprt-core/Promise.d.ts +2 -1
  24. package/apprt-core/PropertyPath.d.ts +2 -1
  25. package/apprt-core/TaskExecutor.d.ts +2 -1
  26. package/apprt-core/TreeWalker.d.ts +2 -1
  27. package/apprt-core/Types.d.ts +2 -1
  28. package/apprt-core/clone.d.ts +2 -1
  29. package/apprt-core/comparators.d.ts +2 -1
  30. package/apprt-core/config.d.ts +2 -1
  31. package/apprt-core/freeze.d.ts +2 -1
  32. package/apprt-core/join.d.ts +2 -1
  33. package/apprt-core/load-css.d.ts +2 -1
  34. package/apprt-core/load-js.d.ts +2 -1
  35. package/apprt-core/parallel.d.ts +2 -1
  36. package/apprt-core/promise-utils.d.ts +2 -1
  37. package/apprt-core/string-replace.d.ts +2 -1
  38. package/apprt-dom/index.d.ts +2 -1
  39. package/apprt-fetch/index.d.ts +2 -1
  40. package/apprt-vuetify/RegisterVuetify.d.ts +1 -1
  41. package/ct/tools/Tool.d.ts +301 -2
  42. package/esri-widgets/EsriDijit.d.ts +2 -1
  43. package/map-widget/LayerObserver.d.ts +2 -1
  44. package/map-widget/LayerTraverser.d.ts +2 -1
  45. package/map-widget/ViewReadyWatcher.d.ts +2 -1
  46. package/package.json +1 -1
  47. package/popups/BaseAction.d.ts +2 -1
  48. package/popups/ContentUpdateProxy.d.ts +2 -1
  49. package/result-api/api/actions.d.ts +1 -1
  50. package/selection-services/DrawingSpatialInputAction.d.ts +2 -1
  51. package/selection-services/SearchSource.d.ts +2 -1
  52. package/selection-services/SpatialInputAction.d.ts +2 -1
  53. package/store-api/ComplexQuery.d.ts +2 -1
  54. package/store-api/InMemoryStore.d.ts +2 -1
  55. package/store-api/QueryExecution.d.ts +2 -1
  56. package/store-api/QueryExecutions.d.ts +3 -2
  57. package/store-api/SpatialQuery.d.ts +2 -1
  58. package/store-api/rest/BaseRestStore.d.ts +2 -1
  59. package/store-api/rest/ComplexQueryToSolrQL.d.ts +2 -1
  60. package/store-api/utils.d.ts +1 -1
  61. package/system/api/internal.d.ts +1 -1
  62. package/system/user/Authentication.d.ts +3 -2
  63. package/system/user/Authorization.d.ts +2 -1
  64. package/system/user/User.d.ts +2 -1
  65. package/test-utils/waitFor.d.ts +2 -1
package/apprt/Bundle.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { BundleManifestEntries, BundleManifestJson, BundleStates, BundleId, Bundle, BundleState, BundleStateName, SemVer, BundleContext, I18N, ServiceReference, BundleDependency, BundleHeaders } from './api/index.js';
1
+ import { BundleManifestEntries, BundleManifestJson, BundleStates, BundleId, Bundle, BundleState, BundleStateName, SemVer, BundleContext, BundleHeaders, I18N, ServiceReference, BundleDependency } from './api/index.js';
2
2
  import { InternalBundle, InternalBundleController, InternalBundleContext } from './api/internal.js';
3
3
  import 'apprt-core/Types';
4
4
 
@@ -46,4 +46,5 @@ declare function createEnvironmentRuleMatcher(opts: {
46
46
  };
47
47
  }): EnvironmentRuleMatcher;
48
48
 
49
- export { type EnvironmentRuleMatcher, type ORIENTATION, createEnvironmentRuleMatcher as default };
49
+ export { createEnvironmentRuleMatcher as default };
50
+ export type { EnvironmentRuleMatcher, ORIENTATION };
@@ -1,4 +1,4 @@
1
- import { ServiceRegistration, Bundle, ServiceReference, Filter, BundleContext, BundleState, I18N, Framework, BundleId, BundleManifestJson, ServiceInstance, ServiceProperties, BundleEventListener, EventHandle, FrameworkEventListener, ServiceEventListener, ExecutionEnvironment, FrameworkEvent, ServiceEvent, AppConfigJson, BundleManifestJson3x } from './index.js';
1
+ import { AppConfigJson, BundleManifestJson, BundleManifestJson3x, I18N, Filter, BundleId, Bundle, Framework, ServiceReference, ServiceInstance, ServiceProperties, ServiceRegistration, BundleEventListener, EventHandle, FrameworkEventListener, ServiceEventListener, ExecutionEnvironment, FrameworkEvent, ServiceEvent, BundleState, BundleContext } from './index.js';
2
2
  import 'apprt-core/Types';
3
3
 
4
4
  interface InternalServiceRegistration extends ServiceRegistration {
@@ -1,5 +1,5 @@
1
1
  import { I18N, Filter, BundleId, BundleManifestJson, Framework, Bundle, FrameworkEvent, ServiceEvent, ServiceInstance, ServiceProperties, ServiceRegistration, ServiceReference, BundleEventListener, EventHandle, FrameworkEventListener, ServiceEventListener, ExecutionEnvironment } from '../api/index.js';
2
- import { Statistics, InternalBundleController, InternalBundle, InternalFramework } from '../api/internal.js';
2
+ import { InternalBundleController, Statistics, InternalBundle, InternalFramework } from '../api/internal.js';
3
3
  import 'apprt-core/Types';
4
4
 
5
5
  interface BundleControllerConstructorOptions {
@@ -77,4 +77,5 @@ declare class BundleControllerImpl implements InternalBundleController {
77
77
  type AnyFunc = (...args: any[]) => any;
78
78
  declare function bind(scope: any, fn: string | AnyFunc): AnyFunc;
79
79
 
80
- export { type BundleControllerConstructorOptions, bind, BundleControllerImpl as default };
80
+ export { bind, BundleControllerImpl as default };
81
+ export type { BundleControllerConstructorOptions };
@@ -1,4 +1,4 @@
1
- import { LocationDefinition, Launcher, LauncherOptions, Framework } from '../api/index.js';
1
+ import { Launcher, LocationDefinition, LauncherOptions, Framework } from '../api/index.js';
2
2
  import { BundleLocator, ConfigLocator } from '../api/internal.js';
3
3
  import 'apprt-core/Types';
4
4
 
@@ -69,4 +69,5 @@ declare class LauncherImpl implements Launcher {
69
69
  private _queryParams;
70
70
  }
71
71
 
72
- export { type LauncherConstructorOptions, LauncherImpl as default };
72
+ export { LauncherImpl as default };
73
+ export type { LauncherConstructorOptions };
@@ -1,2 +1,2 @@
1
1
 
2
- export { }
2
+ export { };
@@ -1,2 +1,2 @@
1
1
 
2
- export { }
2
+ export { };
@@ -89,4 +89,5 @@ interface BundleRange {
89
89
  }
90
90
  declare function parseBundleRange(nameWithRange: string): BundleRange;
91
91
 
92
- export { type BundleRange, semverrange as default, parseBundleRange };
92
+ export { semverrange as default, parseBundleRange };
93
+ export type { BundleRange };
@@ -1,4 +1,4 @@
1
- import { ServiceProperties, BundleContext } from '../api/index.js';
1
+ import { BundleContext, ServiceProperties } from '../api/index.js';
2
2
  import 'apprt-core/Types';
3
3
 
4
4
  interface ServiceRegistrationItem<T = unknown> {
@@ -14,4 +14,5 @@ interface ServiceRegistrations {
14
14
  }
15
15
  declare function Factory(bCtx: BundleContext): ServiceRegistrations;
16
16
 
17
- export { type ServiceRegistrationItem, type ServiceRegistrations, Factory as default };
17
+ export { Factory as default };
18
+ export type { ServiceRegistrationItem, ServiceRegistrations };
@@ -34,4 +34,5 @@ interface BundleTrackerOptions<ObjectType> {
34
34
  }
35
35
  declare function createBundleTracker<ObjectType = Bundle>(opts: BundleTrackerOptions<ObjectType>): BundleTracker<ObjectType>;
36
36
 
37
- export { type BundleTracker, type BundleTrackerCustomizer, type BundleTrackerOptions, createBundleTracker, createBundleTracker as default };
37
+ export { createBundleTracker, createBundleTracker as default };
38
+ export type { BundleTracker, BundleTrackerCustomizer, BundleTrackerOptions };
@@ -1,4 +1,4 @@
1
- import { ServiceReference, ServiceEvent, BundleContext } from '../api/index.js';
1
+ import { BundleContext, ServiceReference, ServiceEvent } from '../api/index.js';
2
2
  import 'apprt-core/Types';
3
3
 
4
4
  interface ServiceTrackerCustomizer<ServiceType> {
@@ -39,4 +39,5 @@ interface ServiceTracker<ServiceType> {
39
39
  }
40
40
  declare function createServiceTracker<ServiceType>(opts: ServiceTrackerOptions<ServiceType>): ServiceTracker<ServiceType>;
41
41
 
42
- export { type ServiceTracker, type ServiceTrackerCustomizer, type ServiceTrackerOptions, createServiceTracker, createServiceTracker as default };
42
+ export { createServiceTracker, createServiceTracker as default };
43
+ export type { ServiceTracker, ServiceTrackerCustomizer, ServiceTrackerOptions };
@@ -308,4 +308,5 @@ interface Binding<LeftPropName extends PropertyName = string, RightPropName exte
308
308
  */
309
309
  declare const Binding: Factory;
310
310
 
311
- export { type Bindable, type BindableInterface, Binding, type Context, type ConvertFunction, type Factory, type PropertyName, type WatchCallback, type WatchHandle, Binding as default };
311
+ export { Binding, Binding as default };
312
+ export type { Bindable, BindableInterface, Context, ConvertFunction, Factory, PropertyName, WatchCallback, WatchHandle };
@@ -122,4 +122,5 @@ declare function instance(callback?: Transformer): Transformer;
122
122
  */
123
123
  declare function prop(name: string, callback?: Transformer): Transformer;
124
124
 
125
- export { type Transformer, type TransformerWithElse, debounce, debounceOrCancel, deferOrCancel, ifDefined, ifTargetNotEqualsAlmost, instance, prop };
125
+ export { debounce, debounceOrCancel, deferOrCancel, ifDefined, ifTargetNotEqualsAlmost, instance, prop };
126
+ export type { Transformer, TransformerWithElse };
@@ -54,4 +54,5 @@ declare function createTask<Args extends any[], Result>(callback: (...args: Args
54
54
  */
55
55
  declare function createTask(): Task<[], void>;
56
56
 
57
- export { type Task, createTask, createTask as default };
57
+ export { createTask, createTask as default };
58
+ export type { Task };
@@ -44,4 +44,5 @@ declare const Cancel: CancelConstructor;
44
44
  */
45
45
  declare function isCancellationError(error: any): boolean;
46
46
 
47
- export { Cancel, type CancelConstructor, Cancel as default, isCancellationError };
47
+ export { Cancel, Cancel as default, isCancellationError };
48
+ export type { CancelConstructor };
@@ -45,4 +45,5 @@ declare class CancelablePromise<T> extends ExtendedPromise<T> {
45
45
  static cancelable<T>(promise: PromiseLike<T>): CancelablePromise<T>;
46
46
  }
47
47
 
48
- export { CancelablePromise, type CancelablePromiseExecutor, CancelablePromise as default };
48
+ export { CancelablePromise, CancelablePromise as default };
49
+ export type { CancelablePromiseExecutor };
@@ -281,4 +281,5 @@ declare const Evented: EventedConstructor;
281
281
  */
282
282
  declare function EventedMixin<BaseType extends Constructor<any, any>>(Base: BaseType): Constructor<InstanceType<BaseType> & Evented<any>, ConstructorParameters<BaseType>>;
283
283
 
284
- export { type EventCallback, type EventHandle, type EventNames, type EventSource, Evented, type EventedConstructor, EventedMixin, EventedMixin as Evented_Mixin, type TypedEvents, cleanup, createTypedEvents, emit, emitSync, on };
284
+ export { Evented, EventedMixin, EventedMixin as Evented_Mixin, cleanup, createTypedEvents, emit, emitSync, on };
285
+ export type { EventCallback, EventHandle, EventNames, EventSource, EventedConstructor, TypedEvents };
@@ -115,4 +115,5 @@ interface ExceptionConstructor {
115
115
  notImplemented(message: string, cause?: Error | Exception): Exception;
116
116
  }
117
117
 
118
- export { type BaseExceptionConstructor, Exception, type ExceptionConstructor, ExceptionNames, Exception as default, registerTypes };
118
+ export { Exception, ExceptionNames, Exception as default, registerTypes };
119
+ export type { BaseExceptionConstructor, ExceptionConstructor };
@@ -6,4 +6,5 @@
6
6
  type InjectedReference<T> = T | undefined;
7
7
  declare const _null: null;
8
8
 
9
- export { type InjectedReference, _null };
9
+ export { _null };
10
+ export type { InjectedReference };
@@ -249,4 +249,5 @@ declare function setWriter(newWriter?: Writer): void;
249
249
  */
250
250
  declare function readConfigFromString(loggingConfStr?: string): [string, LogLevel][];
251
251
 
252
- export { type LogLevel, type Logger, type Writer, type WriterMethod, getLogConfig, getLogLevel, loggerForName, readConfigFromString, setLogConfig, setLogLevel, setWriter };
252
+ export { getLogConfig, getLogLevel, loggerForName, readConfigFromString, setLogConfig, setLogLevel, setWriter };
253
+ export type { LogLevel, Logger, Writer, WriterMethod };
@@ -296,4 +296,5 @@ declare function properties(clazzOrObject: any, definitions: Record<string | sym
296
296
  */
297
297
  declare function construct<T>(params: Record<string, unknown>, self: T): T;
298
298
 
299
- export { Mutable, type MutableConstructor, type MutableDefinition, type PropType, type Properties, type PropertyName, type WatchCallback, type WatchEvent, type WatchHandle, construct, declare, declare as default, notifyChange, properties, propertyNames, toObject };
299
+ export { Mutable, construct, declare, declare as default, notifyChange, properties, propertyNames, toObject };
300
+ export type { MutableConstructor, MutableDefinition, PropType, Properties, PropertyName, WatchCallback, WatchEvent, WatchHandle };
@@ -191,4 +191,5 @@ interface ObserverOptions {
191
191
  */
192
192
  declare function createObservers(options?: ObserverOptions): Observers;
193
193
 
194
- export { type Handle, type HandleMethods, type ObserverGroup, type ObserverOptions, type Observers, type RebindCallback, createObservers, createObservers as default };
194
+ export { createObservers, createObservers as default };
195
+ export type { Handle, HandleMethods, ObserverGroup, ObserverOptions, Observers, RebindCallback };
@@ -180,4 +180,5 @@ interface LegacyDojoDeferred {
180
180
  toString(): string;
181
181
  }
182
182
 
183
- export { ExtendedPromise, type StateQueryable, ExtendedPromise as default };
183
+ export { ExtendedPromise, ExtendedPromise as default };
184
+ export type { StateQueryable };
@@ -54,4 +54,5 @@ interface PathAccessor {
54
54
  */
55
55
  declare function PropertyPath(path?: string | symbol): PathAccessorFactory;
56
56
 
57
- export { type PathAccessor, type PathAccessorFactory, PropertyPath, PropertyPath as default };
57
+ export { PropertyPath, PropertyPath as default };
58
+ export type { PathAccessor, PathAccessorFactory };
@@ -57,4 +57,5 @@ declare class TaskExecutor {
57
57
  remove(task: Partial<Task> | (() => void)): void;
58
58
  }
59
59
 
60
- export { type Task, TaskExecutor, TaskExecutor as default };
60
+ export { TaskExecutor, TaskExecutor as default };
61
+ export type { Task };
@@ -109,4 +109,5 @@ interface TreeWalkerInterface<NodeType extends Node> {
109
109
  */
110
110
  declare function TreeWalker<NodeType extends Node = Node>(options?: TreeWalkerOptions<NodeType>): TreeWalkerInterface<NodeType>;
111
111
 
112
- export { type Context, type Node, TreeWalker, type TreeWalkerInterface, type TreeWalkerOptions, VisitCodes, type Visitor, TreeWalker as default };
112
+ export { TreeWalker, VisitCodes, TreeWalker as default };
113
+ export type { Context, Node, TreeWalkerInterface, TreeWalkerOptions, Visitor };
@@ -126,4 +126,5 @@ type ExtensibleUnion<Values extends BaseType, BaseType extends number | string>
126
126
  type Constructor<T, Args extends unknown[] = unknown[]> = new (...args: Args) => T;
127
127
  declare const _default: null;
128
128
 
129
- export { type Constructor, type DeepReadonly, type DeepWritable, type Equal, type EventCallback, type EventEmitter, type EventSource, type ExtensibleUnion, type Handle, type Primitive, type RequiredProps, type TupleKeys, type WatchCallback, type WatchEvent, type Watchable, type Writable, _default as default };
129
+ export { _default as default };
130
+ export type { Constructor, DeepReadonly, DeepWritable, Equal, EventCallback, EventEmitter, EventSource, ExtensibleUnion, Handle, Primitive, RequiredProps, TupleKeys, WatchCallback, WatchEvent, Watchable, Writable };
@@ -94,4 +94,5 @@ type TransformFunc = (value: any, ctx: TransformContext) => any | symbol;
94
94
  */
95
95
  declare function transform<Input = any, Output = Input>(value: Input, valueTransformer?: TransformFunc): Output;
96
96
 
97
- export { type TransformContext, type TransformFunc, clone, clone as default, transform };
97
+ export { clone, clone as default, transform };
98
+ export type { TransformContext, TransformFunc };
@@ -199,4 +199,5 @@ keyof ObjectType | AllFieldSpecObjects<ObjectType, keyof ObjectType>;
199
199
  */
200
200
  declare function compareFields<ObjectType>(...fields: FieldSpec<ObjectType>[]): Comparator<ObjectType>;
201
201
 
202
- export { BY_COMPARE_TO, type Comparable, type Comparator, DEFAULT_COMPARE, type FieldSpecObject, IGNORE_CASE, TYPE_BASED_COMPARE, compareFields, createStringComparator, createStringWithNumberPartsComparator };
202
+ export { BY_COMPARE_TO, DEFAULT_COMPARE, IGNORE_CASE, TYPE_BASED_COMPARE, compareFields, createStringComparator, createStringWithNumberPartsComparator };
203
+ export type { Comparable, Comparator, FieldSpecObject };
@@ -378,4 +378,5 @@ declare function unregisterEnvValue(key: EnvKey): boolean;
378
378
  */
379
379
  declare function setEnvValueInterceptor(interceptor?: Interceptor): void;
380
380
 
381
- export { type ConfigKey, type EnvKey, type Interceptor, LazyValues, type RegisterOptions, type SupportedValueTypes, type ValueOrValueProvider, type ValueProvider, type WellknownConfigKeys, type WellknownEnvKeys, configValue, envValue, registerConfigValue, registerEnvValue, setConfigValueInterceptor, setEnvValueInterceptor, unregisterConfigValue, unregisterEnvValue };
381
+ export { LazyValues, configValue, envValue, registerConfigValue, registerEnvValue, setConfigValueInterceptor, setEnvValueInterceptor, unregisterConfigValue, unregisterEnvValue };
382
+ export type { ConfigKey, EnvKey, Interceptor, RegisterOptions, SupportedValueTypes, ValueOrValueProvider, ValueProvider, WellknownConfigKeys, WellknownEnvKeys };
@@ -22,4 +22,5 @@ type DeepFrozen<T> = T extends Record<string | symbol, any> | any[] ? {
22
22
  */
23
23
  declare function freeze<T>(obj: T): DeepFrozen<T>;
24
24
 
25
- export { type DeepFrozen, freeze as default, freeze };
25
+ export { freeze as default, freeze };
26
+ export type { DeepFrozen };
@@ -42,4 +42,5 @@ interface JoinError {
42
42
  */
43
43
  declare function join<T>(promises: (T | PromiseLike<T>)[]): CancelablePromise<T[]>;
44
44
 
45
- export { type JoinError, join as default, join };
45
+ export { join as default, join };
46
+ export type { JoinError };
@@ -43,4 +43,5 @@ interface LoadCssResult {
43
43
  declare function loadCss(hrefs: string[], timeout?: number): CancelablePromise<LoadCssResult[]>;
44
44
  declare function loadCss(href: string, timeout?: number): CancelablePromise<LoadCssResult>;
45
45
 
46
- export { type LoadCssResult, loadCss as default, loadCss };
46
+ export { loadCss as default, loadCss };
47
+ export type { LoadCssResult };
@@ -40,4 +40,5 @@ interface LoadJsOptions {
40
40
  */
41
41
  declare function loadJS(clazzes?: string | Array<string>, options?: LoadJsOptions): ExtendedPromise<any>;
42
42
 
43
- export { type LoadJsOptions, loadJS as default, loadJS };
43
+ export { loadJS as default, loadJS };
44
+ export type { LoadJsOptions };
@@ -20,4 +20,5 @@ interface RunParallelOptions {
20
20
  */
21
21
  declare function runParallel<T>(tasks: Task<T>[], options?: RunParallelOptions): Promise<T>[];
22
22
 
23
- export { type RunParallelOptions, type Task, runParallel };
23
+ export { runParallel };
24
+ export type { RunParallelOptions, Task };
@@ -76,4 +76,5 @@ declare class LazyValue<T> {
76
76
  get value(): T | undefined;
77
77
  }
78
78
 
79
- export { LazyValue, type ManualPromise, createManualPromise };
79
+ export { LazyValue, createManualPromise };
80
+ export type { ManualPromise };
@@ -112,4 +112,5 @@ declare function customReplacer(options?: ReplaceOptions): StringReplacer;
112
112
  */
113
113
  declare const replace: StringReplacer;
114
114
 
115
- export { type ReplaceOptions, type StringReplacer, type ValueLookup, type ValueResolver, customReplacer, replace as default, replace };
115
+ export { customReplacer, replace as default, replace };
116
+ export type { ReplaceOptions, StringReplacer, ValueLookup, ValueResolver };
@@ -165,4 +165,5 @@ declare function getMarginSize(node: HTMLElement): MarginSize;
165
165
  */
166
166
  declare function setMarginBox(node: HTMLElement, marginBox: Partial<MarginBox>): void;
167
167
 
168
- export { type CreateOptions, type CssClasses, type ElementTag, type MarginBox, type MarginSize, type NodePosition, type NodeProperties, addClass, applyClass, createElement, destroyElement, getMarginBox, getMarginSize, insertElement, removeClass, setMarginBox, toggleClass };
168
+ export { addClass, applyClass, createElement, destroyElement, getMarginBox, getMarginSize, insertElement, removeClass, setMarginBox, toggleClass };
169
+ export type { CreateOptions, CssClasses, ElementTag, MarginBox, MarginSize, NodePosition, NodeProperties };
@@ -536,4 +536,5 @@ declare function createCustomFetch(options: {
536
536
  */
537
537
  declare function getGlobalImpl(): CustomFetch;
538
538
 
539
- export { type AfterInterceptorData, type ApprtRequestInit, type ApprtRequestTarget, type BasicFetchFunction, type BeforeInterceptorData, type Config, ContentType, type CustomFetch, type Handle, type Interceptor, type InterceptorOptions, type ProxyMode, type ProxyRule, type ProxyUrlOptions, type TrustedServer, apprtFetch, apprtFetchJson, createCustomFetch, apprtFetch as fetch, getConfig, getGlobalImpl, getProxiedUrl };
539
+ export { ContentType, apprtFetch, apprtFetchJson, createCustomFetch, apprtFetch as fetch, getConfig, getGlobalImpl, getProxiedUrl };
540
+ export type { AfterInterceptorData, ApprtRequestInit, ApprtRequestTarget, BasicFetchFunction, BeforeInterceptorData, Config, CustomFetch, Handle, Interceptor, InterceptorOptions, ProxyMode, ProxyRule, ProxyUrlOptions, TrustedServer };
@@ -1,2 +1,2 @@
1
1
 
2
- export { }
2
+ export { };
@@ -1,3 +1,302 @@
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
31
+ ? [name: P, oldValue: T[P], newValue: T[P]]
32
+ : never
33
+ ;
34
+
35
+ type Stateful<T> = T & {
36
+ watch: <Prop extends keyof T | '*'>(
37
+ property: Prop,
38
+ handler: (...args: WatchCallbackParams<T, Prop extends '*' ? keyof T : Prop>) => void
39
+ ) => void
40
+
41
+ set: <Prop extends keyof T>(
42
+ property: Prop,
43
+ value: T[Prop]
44
+ ) => void
45
+
46
+ get: <Prop extends keyof T>(
47
+ property: Prop
48
+ ) => T[Prop]
49
+ };
50
+
51
+ /** Placeholder type for parameters to all the Evented functions. */
52
+ type Event = unknown;
53
+
54
+ /** Utility type for all the handler functions in Tool. */
55
+ type HandlerFn<This, Event, Result> = ((this: This, event: Event) => Result) | undefined;
56
+
57
+ /** A partial copy of the declaration in ct/tools/Tool adapted for TypeScript. The types are mostly educated guesses. */
58
+ interface ToolProperties {
59
+ /**
60
+ * Given tool id.
61
+ */
62
+ id: string
63
+ /**
64
+ * The title of the tool.
65
+ */
66
+ title: string | undefined
67
+ /**
68
+ * A description of the tool.
69
+ */
70
+ description: string | undefined
71
+ /**
72
+ * A tool tip.
73
+ */
74
+ tooltip: string | undefined
75
+ /**
76
+ * The tooltip positions.
77
+ * e.g. ["above","below","after","before"]
78
+ */
79
+ tooltipPositions: ("above" | "below" | "after" | "before")[] | undefined
80
+ /**
81
+ * Priority is used to ensure an ordering of tools.
82
+ * Tools with high priority are first, equal priority means sort by id.
83
+ */
84
+ priority: number
85
+ /**
86
+ * A tool group this information is also added as css class to the root node of the created button or menu.
87
+ */
88
+ toolGroup: string
89
+ /**
90
+ * A tool class appended to the root node of the created button or menu.
91
+ * Note that ctTool_${id} is always added
92
+ */
93
+ toolClass: string
94
+ /**
95
+ * A tool icon class appended to the icon node of the created button or menu.
96
+ * Note that ctToolIcon_${id} is always added
97
+ */
98
+ iconClass: string
99
+ /**
100
+ * The visible state of the tool.
101
+ * On change the onShow/onHide events are fired.
102
+ */
103
+ visibility: boolean
104
+ /**
105
+ * The enabled state of the tool.
106
+ * On change the onDisabled, onEnabled events are fired.
107
+ */
108
+ enabled: boolean
109
+ /**
110
+ * The active state of the tool, this is only of interest if the tool is togglable.
111
+ * On change the onActivate, onDeactivate events are fired.
112
+ */
113
+ active: boolean
114
+ /**
115
+ * The togglable state of the tool, this marks that the tool can be toggled.
116
+ * It should be set in the constructor and the state value should never dynamically change.
117
+ */
118
+ togglable: boolean
119
+ /**
120
+ * The processing state of the tool, this marks that the tool is currently processing something.
121
+ * The state is toggled by the fireProcess* methods and independent from any other state of the tool.
122
+ */
123
+ processing: boolean
124
+ /**
125
+ * The self reference. Please see the ToolReference class to note that this property allows
126
+ * to handle a tool like a tool reference, which makes code expecting references to be used with tools directly.
127
+ */
128
+ tool: Tool
129
+ /**
130
+ * Flag auto disables the tool if it becomes hidden.
131
+ * default: true.
132
+ */
133
+ disableOnHide: boolean
134
+ /**
135
+ * Flag auto enables the tool if it becomes visible.
136
+ * default: true.
137
+ */
138
+ enableOnShow: boolean
139
+ /**
140
+ * Flag auto deactivates the tool if it is disabled.
141
+ * default: true.
142
+ */
143
+ deactivateOnDisable: boolean
144
+ /**
145
+ * Flag auto activates the tool if it is enabled.
146
+ * default: false.
147
+ */
148
+ activateOnEnable: boolean
149
+ /**
150
+ * Flag auto enables the tool if set("active",true) is called.
151
+ */
152
+ enableOnActivate: boolean
153
+ /**
154
+ * The scope of the default handler functions.
155
+ */
156
+ handlerScope: object | null
157
+ /**
158
+ * The handler function called if the tool is clicked.
159
+ */
160
+ clickHandler: HandlerFn<ToolProperties["handlerScope"], Event, void>
161
+ /**
162
+ * The handler function called if the tool is double clicked.
163
+ */
164
+ dblClickHandler: HandlerFn<ToolProperties["handlerScope"], Event, void>
165
+ /**
166
+ * The handler function called before the onActivate event is fired.
167
+ */
168
+ beforeActivateHandler: HandlerFn<ToolProperties["handlerScope"], Event, void>
169
+ /**
170
+ * The handler function called if the tool is activated.
171
+ */
172
+ activateHandler: HandlerFn<ToolProperties["handlerScope"], Event, void>
173
+ /**
174
+ * The handler function called before the onDeactivate event is fired.
175
+ */
176
+ beforeDeactivateHandler: HandlerFn<ToolProperties["handlerScope"], Event, void>
177
+ /**
178
+ * The handler function called if the tool is deactivated.
179
+ */
180
+ deactivateHandler: HandlerFn<ToolProperties["handlerScope"], Event, void>
181
+ /**
182
+ * The handler function called if the tool becomes enabled.
183
+ */
184
+ enabledHandler: HandlerFn<ToolProperties["handlerScope"], Event, void>
185
+ /**
186
+ * The handler function called if the tool becomes disabled.
187
+ */
188
+ disabledHandler: HandlerFn<ToolProperties["handlerScope"], Event, void>
189
+ /**
190
+ * The handler function called if the tool becomes visible.
191
+ */
192
+ showHandler: HandlerFn<ToolProperties["handlerScope"], Event, void>
193
+ /**
194
+ * The handler function called if the tool becomes hidden.
195
+ */
196
+ hideHandler: HandlerFn<ToolProperties["handlerScope"], Event, void>
197
+ /**
198
+ * The handler function called if the tool starts a processing task.
199
+ */
200
+ processStartHandler: HandlerFn<ToolProperties["handlerScope"], Event, void>
201
+ /**
202
+ * The handler function called if the tool ends a processing task.
203
+ */
204
+ processEndHandler: HandlerFn<ToolProperties["handlerScope"], Event, void>
205
+ /**
206
+ * Rules flag read by the toolrules bundle (optional).
207
+ */
208
+ rules: object | null
209
+ /**
210
+ * The handler function called to check a condition before activating a togglable tool.
211
+ * The function has to return true if condition is fulfilled and false if not.
212
+ */
213
+ activationConditionHandler: HandlerFn<ToolProperties["activationConditionHandlerScope"] | Tool, Event, boolean>
214
+ /**
215
+ * The scope of the activation condition handler function.
216
+ */
217
+ activationConditionHandlerScope: object | null
218
+ /**
219
+ * If true real click,check/uncheck,dblclick events are delegated async into the tool model,
220
+ * so that the browser event flow is not broken.
221
+ */
222
+ async: boolean
223
+ /**
224
+ * Simulates a click on the tool.
225
+ * Please note that this does not change the active state.
226
+ * A client have to call set("active",true|false) to change the state.
227
+ */
228
+ click(evt: Event): void;
229
+ /**
230
+ * Simulates a dbl click on the tool.
231
+ */
232
+ dblClick(evt: Event): void;
233
+ /**
234
+ * Sends a info message to the tool. It simple fires the onInfoMessage() event.
235
+ * Such a message is normally produced in the backend, to indicate a "please click me" state on the tool.
236
+ */
237
+ infoMsg(msgObj: { message: string }): void;
238
+ /**
239
+ * The onClick event
240
+ */
241
+ onClick(event: Event): void;
242
+ /**
243
+ * The onDoubleClick event
244
+ **/
245
+ onDblClick(event: Event): void;
246
+ /**
247
+ * The onInfoMessage event, transports a message from the backend to the tool widget.
248
+ **/
249
+ onInfoMessage(event: Event): void;
250
+ /**
251
+ * The onBeforeActivate event, it is called short before onActivate.
252
+ **/
253
+ onBeforeActivate(event: Event): void;
254
+ /**
255
+ * The onActivate event
256
+ **/
257
+ onActivate(event: Event): void;
258
+ /**
259
+ * The onDeactivate event
260
+ **/
261
+ onDeactivate(event: Event): void;
262
+ /**
263
+ * The onBeforeDeactivate event, it is called short before onDeactivate.
264
+ **/
265
+ onBeforeDeactivate(event: Event): void;
266
+ /**
267
+ * The onEnabled event, if the tool becomes enabled (available for pressing)
268
+ **/
269
+ onEnabled(event: Event): void;
270
+ /**
271
+ * The onDisabled event, if the tool becomes disabled (not available for pressing)
272
+ **/
273
+ onDisabled(event: Event): void;
274
+ /**
275
+ * The onShow event, if the tool becomes visible (allowed to show on screen)
276
+ **/
277
+ onShow(event: Event): void;
278
+ /**
279
+ * The onHide event, if the tool becomes hidden (not allowed to show on screen)
280
+ **/
281
+ onHide(event: Event): void;
282
+ /**
283
+ * `onProcessStart` is called when an external process is started
284
+ */
285
+ onProcessStart(event: Event): void;
286
+ /**
287
+ * `onProcessEnd` is called when an external process is stopped
288
+ */
289
+ onProcessEnd(event: Event): void;
290
+ }
291
+
292
+ interface ToolConstructor {
293
+ new(props?: Partial<ToolProperties>): Tool;
294
+ }
295
+
296
+ type Tool = Stateful<ToolProperties>;
297
+
298
+ // Declaring a type and a variable of the same name is a technique used by
299
+ // TypeScript's type declarations for standard library types such as Date.
300
+ declare const Tool: ToolConstructor;
301
+
302
+ export { Tool as default };
@@ -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 };
@@ -39,4 +39,5 @@ interface LayerObserver {
39
39
  }
40
40
  declare function createLayerObserver({ map, layers, filter, notify, onlyWatching }?: Partial<LayerObserverOptions>): LayerObserver;
41
41
 
42
- export { type Context, type LayerObserver, type LayerObserverOptions, type NotifyReason, createLayerObserver, createLayerObserver as default };
42
+ export { createLayerObserver, createLayerObserver as default };
43
+ export type { Context, LayerObserver, LayerObserverOptions, NotifyReason };
@@ -28,4 +28,5 @@ declare enum VisitCodes {
28
28
  }
29
29
  declare function createLayerTraverser(globalOpts?: Partial<LayerTraverserOptions>): LayerTraverser;
30
30
 
31
- export { type LayerNode, type LayerTraverser, type LayerTraverserOptions, VisitCodes, createLayerTraverser, createLayerTraverser as default };
31
+ export { VisitCodes, createLayerTraverser, createLayerTraverser as default };
32
+ export type { LayerNode, LayerTraverser, LayerTraverserOptions };
@@ -24,4 +24,5 @@ interface ViewReadyWatcher {
24
24
  }
25
25
  declare function createViewReadyWatcher(model: MapWidgetModel): ViewReadyWatcher;
26
26
 
27
- export { type ViewReadyCallback, type ViewReadyWatcher, createViewReadyWatcher, createViewReadyWatcher as default };
27
+ export { createViewReadyWatcher, createViewReadyWatcher as default };
28
+ export type { ViewReadyCallback, ViewReadyWatcher };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@conterra/ct-mapapps-typings",
3
- "version": "4.19.2-next.20250325045859",
3
+ "version": "4.19.2-next.20250402042452",
4
4
  "description": "TypeDefinitions for ct-mapapps",
5
5
  "author": "conterra",
6
6
  "license": "Apache-2.0"
@@ -59,4 +59,5 @@ type BaseActionConstructor<Type extends EsriActionType> = new (properties?: Esri
59
59
  */
60
60
  declare function BaseAction<Type extends EsriActionType>(type: Type): BaseActionConstructor<Type>;
61
61
 
62
- export { type BaseActionConstructor, type EsriAction, type EsriActionType, type ExtendedEsriAction, BaseAction as default };
62
+ export { BaseAction as default };
63
+ export type { BaseActionConstructor, EsriAction, EsriActionType, ExtendedEsriAction };
@@ -92,4 +92,5 @@ interface WidgetProxy {
92
92
  */
93
93
  declare function ContentUpdateProxy(graphic: Graphic, dijit: any, triggerUpdate: (graphic: Graphic) => void): WidgetProxy;
94
94
 
95
- export { type WidgetProxy, ContentUpdateProxy as default };
95
+ export { ContentUpdateProxy as default };
96
+ export type { WidgetProxy };
@@ -1,4 +1,4 @@
1
- import { DataTable, TableItem, DataTableCollection } from '../__internal__/Bnw4PH_u.js';
1
+ import { DataTableCollection, DataTable, TableItem } from '../__internal__/Bnw4PH_u.js';
2
2
  import { EventSource } from 'apprt-core/Events';
3
3
  import 'apprt-core/Types';
4
4
  import 'esri/geometry';
@@ -26,4 +26,5 @@ declare class DrawingSpatialInputAction extends SpatialInputActionImpl {
26
26
  _intercept(geometry: Geometry, options: Record<string, any>): Geometry;
27
27
  }
28
28
 
29
- export { type DrawingSpatialInputActionOptions, DrawingSpatialInputAction as default };
29
+ export { DrawingSpatialInputAction as default };
30
+ export type { DrawingSpatialInputActionOptions };
@@ -42,4 +42,5 @@ interface SearchSourceConstructor {
42
42
  }
43
43
  declare const _default: SearchSourceConstructor;
44
44
 
45
- export { type SearchSourceConstructor, type SearchSourceConstructorOptions, _default as default };
45
+ export { _default as default };
46
+ export type { SearchSourceConstructor, SearchSourceConstructorOptions };
@@ -31,4 +31,5 @@ declare class SpatialInputActionImpl implements SpatialInputAction {
31
31
  trigger(options: Record<string, any>): CancelablePromise<Geometry>;
32
32
  }
33
33
 
34
- export { type CommonSpatialInputActionOptions, SpatialInputActionImpl as default };
34
+ export { SpatialInputActionImpl as default };
35
+ export type { CommonSpatialInputActionOptions };
@@ -292,4 +292,5 @@ declare class ComplexQuery {
292
292
  */
293
293
  declare function encodePostOrder<T>(encoder: Encoder<T>, walkerOrAst: Walker | AST): any;
294
294
 
295
- export { type AST, type ASTNode, type ChildVisitCallback, ComplexQuery, type ComplexQueryOptions, type Encoder, type OperatorChain, type OperatorImpl, type VisitCallback, type Walker, ComplexQuery as default, encodePostOrder, walkerForASTNode };
295
+ export { ComplexQuery, ComplexQuery as default, encodePostOrder, walkerForASTNode };
296
+ export type { AST, ASTNode, ChildVisitCallback, ComplexQueryOptions, Encoder, OperatorChain, OperatorImpl, VisitCallback, Walker };
@@ -77,4 +77,5 @@ declare class AsyncWritableInMemoryStore<ItemType extends Record<string, any>, I
77
77
  remove(id: IDType): Promise<void>;
78
78
  }
79
79
 
80
- export { AsyncInMemoryStore, AsyncWritableInMemoryStore, type ConstructorOptions, SyncInMemoryStore, SyncWritableInMemoryStore };
80
+ export { AsyncInMemoryStore, AsyncWritableInMemoryStore, SyncInMemoryStore, SyncWritableInMemoryStore };
81
+ export type { ConstructorOptions };
@@ -93,4 +93,5 @@ type QueryExecutionConstructor<T> = new (options?: QueryExecutionConstructorOpti
93
93
  /** Creates a QueryExecution */
94
94
  declare const _default: QueryExecutionConstructor<unknown>;
95
95
 
96
- export { type DataSource, type QueryExecution, type QueryExecutionConstructor, type QueryResult, type ResultItems, type Watchable, _default as default };
96
+ export { _default as default };
97
+ export type { DataSource, QueryExecution, QueryExecutionConstructor, QueryResult, ResultItems, Watchable };
@@ -1,4 +1,4 @@
1
- import { QueryExecution, Watchable } from './QueryExecution.js';
1
+ import { Watchable, QueryExecution } from './QueryExecution.js';
2
2
  import 'apprt-core/Mutable';
3
3
 
4
4
  type QueryExecutionsConstructorOptions = Partial<Pick<QueryExecutions, "executions">>;
@@ -47,4 +47,5 @@ type QueryExecutionsConstructor = new (options?: QueryExecutionsConstructorOptio
47
47
  */
48
48
  declare const _default: QueryExecutionsConstructor;
49
49
 
50
- export { type QueryExecutionStrategy, type QueryExecutions, type QueryExecutionsConstructor, _default as default };
50
+ export { _default as default };
51
+ export type { QueryExecutionStrategy, QueryExecutions, QueryExecutionsConstructor };
@@ -31,4 +31,5 @@ interface SpatialQueryExtension {
31
31
  /** reexports ComplexQuery with spatial operators */
32
32
  declare const SpatialQuery: SpatialQueryType;
33
33
 
34
- export { SpatialQuery, type SpatialQueryExtension, type SpatialQueryType, SpatialQuery as default };
34
+ export { SpatialQuery, SpatialQuery as default };
35
+ export type { SpatialQueryExtension, SpatialQueryType };
@@ -180,4 +180,5 @@ declare class BaseRestStore<ItemType extends IndexableThing, IDType extends stri
180
180
  private _fetchMetadata;
181
181
  }
182
182
 
183
- export { BaseRestStore, type InternalRequestOptions, type MethodParameters, type RequestOptions };
183
+ export { BaseRestStore };
184
+ export type { InternalRequestOptions, MethodParameters, RequestOptions };
@@ -67,4 +67,5 @@ declare const toSolrQL: (query?: ComplexQueryExpression | undefined, options?: C
67
67
  declare const astToSolrQL: (astOrWalker: Walker | AST) => string;
68
68
  declare const _operatorMapping: Record<string, Transformer>;
69
69
 
70
- export { type ComplexQueryToSolrQLOptions, type CustomTransformer, type Transformer, _operatorMapping, astToSolrQL, overload, toSolrQL };
70
+ export { _operatorMapping, astToSolrQL, overload, toSolrQL };
71
+ export type { ComplexQueryToSolrQLOptions, CustomTransformer, Transformer };
@@ -1,7 +1,7 @@
1
1
  import CancelablePromise from 'apprt-core/CancelablePromise';
2
2
  import CPromise from 'apprt-core/Promise';
3
3
  import { ComplexQueryOptions } from './ComplexQuery.js';
4
- import { IndexableThing, ResultItems, SortOptions, PaginationOptions, AsyncQueryResult, Metadata } from './api/Store.js';
4
+ import { ResultItems, AsyncQueryResult, IndexableThing, SortOptions, PaginationOptions, Metadata } from './api/Store.js';
5
5
  import { ComplexQueryExpression } from './api/ComplexQueryLang.js';
6
6
  import 'apprt-core/Events';
7
7
  import 'esri/geometry/Geometry';
@@ -1,5 +1,5 @@
1
1
  import CancelablePromise from 'apprt-core/CancelablePromise';
2
- import { ComponentContext, Bundle, ComponentProperties, BundleContext, ServiceReference, ServiceInstance, BundleId, ServiceEvent, AnyPropertyValue, ConfigurationStore, ConfigAdminService, ConfigurationStoreEntry, Configuration, AppConfigJson } from 'apprt/api';
2
+ import { ServiceInstance, ComponentContext, ComponentProperties, Bundle, BundleContext, ServiceReference, BundleId, ServiceEvent, AnyPropertyValue, ConfigurationStore, ConfigAdminService, ConfigurationStoreEntry, Configuration, AppConfigJson } from 'apprt/api';
3
3
 
4
4
  interface InternalComponentContext<ExpectedServiceType extends ComponentServiceInstance> extends ComponentContext<ExpectedServiceType> {
5
5
  dispose(): void;
@@ -1,4 +1,4 @@
1
- import { UserAdminService, Authentication, User } from 'apprt/api';
1
+ import { Authentication, UserAdminService, User } from 'apprt/api';
2
2
 
3
3
  interface AuthenticationOptions {
4
4
  name?: string;
@@ -21,4 +21,5 @@ declare class AuthenticationImpl implements Authentication {
21
21
  logout(): boolean | Promise<boolean>;
22
22
  }
23
23
 
24
- export { type AuthenticationOptions, AuthenticationImpl as default };
24
+ export { AuthenticationImpl as default };
25
+ export type { AuthenticationOptions };
@@ -15,4 +15,5 @@ declare class AuthorizationImpl implements Authorization {
15
15
  getRoles(): string[];
16
16
  }
17
17
 
18
- export { type AuthorizationOptions, AuthorizationImpl as default };
18
+ export { AuthorizationImpl as default };
19
+ export type { AuthorizationOptions };
@@ -12,4 +12,5 @@ declare class UserImpl implements User {
12
12
  get(key: string): any;
13
13
  }
14
14
 
15
- export { type UserOptions, UserImpl as default };
15
+ export { UserImpl as default };
16
+ export type { UserOptions };
@@ -49,4 +49,5 @@ declare function waitUntil<T>(resolver: () => Promise<T> | T, options?: WaitOpti
49
49
  */
50
50
  declare function sleep(timeout?: number): Promise<void>;
51
51
 
52
- export { type WaitOptions, sleep, waitFor, waitUntil };
52
+ export { sleep, waitFor, waitUntil };
53
+ export type { WaitOptions };