@conterra/ct-mapapps-typings 4.12.1 → 4.13.0-next.20211203074743
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/AGSSearchInterpreter.d.ts +1 -2
- package/agssearch/AGSSearchMerger.d.ts +1 -1
- package/agssearch/AGSStoreFactory.d.ts +25 -4
- package/agssearch/AutoStoreRegistration.d.ts +3 -2
- package/agssearch/FilterStoreFactory.d.ts +2 -3
- package/agssearch/LayerStore.d.ts +54 -0
- package/agssearch/StoreInitializer.d.ts +3 -4
- package/agssearch/module.d.ts +4 -1
- package/agssearch/util.d.ts +2 -2
- package/{agssearch/config → agssearch-config}/main.d.ts +0 -0
- package/{agssearch/config → agssearch-config}/module.d.ts +0 -0
- package/agssearch-config/package.json +5 -0
- package/apprt/event/Event.d.ts +1 -1
- package/apprt/test-data/i18n-bundles/system/main.d.ts +1 -1
- package/apprt-core/deprecate.d.ts +1 -1
- package/apprt-streams/Stream.d.ts +124 -9
- package/{banner/config → banner-config}/DataFormBuilderWidgetFactory.d.ts +0 -0
- package/{agssearch → banner-config}/main.d.ts +0 -0
- package/{banner/config → banner-config}/module.d.ts +0 -0
- package/{map-init → banner-config}/package.json +1 -1
- package/console/BundleActions.d.ts +1 -1
- package/console/ComponentsStore.d.ts +1 -1
- package/console/EnableToolOnSelectionChanged.d.ts +1 -1
- package/console/MessagesStore.d.ts +1 -1
- package/console/ServicesStore.d.ts +1 -1
- package/console/_BaseStore.d.ts +2 -2
- package/coordinateconversion/WGSConverter.d.ts +0 -2
- package/{banner/config → coordinateconversion-config}/main.d.ts +0 -0
- package/{coordinateconversion/config → coordinateconversion-config}/module.d.ts +0 -0
- package/coordinateviewer/Config.d.ts +1 -2
- package/coordinateviewer/Converters.d.ts +0 -1
- package/{coordinateconversion/config → coordinateviewer-config}/main.d.ts +0 -0
- package/{coordinateviewer/config → coordinateviewer-config}/module.d.ts +0 -0
- package/{custominfo/config → custominfo-config}/CustomInfoBuilder.d.ts +0 -0
- package/{custominfo/config → custominfo-config}/CustomInfoBuilderWidget.d.ts +0 -0
- package/{custominfo/config → custominfo-config}/CustomInfoWizardWidget.d.ts +0 -0
- package/{coordinateviewer/config → custominfo-config}/main.d.ts +0 -0
- package/{custominfo/config → custominfo-config}/module.d.ts +0 -0
- package/custominfo-config/package.json +5 -0
- package/{custominfo/config → editing-config}/main.d.ts +0 -0
- package/{editing/config → editing-config}/module.d.ts +0 -0
- package/graphics/GraphicsBuilder.d.ts +0 -2
- package/highlights/api.d.ts +6 -0
- package/integration-map/GeometryHighlighter.d.ts +8 -0
- package/integration-map/IntegrationExtensionImpl.d.ts +15 -0
- package/integration-map/Zooming.d.ts +7 -10
- package/integration-map/api.d.ts +124 -0
- package/integration-map/module.d.ts +1 -1
- package/locateme/LocateMeModel.d.ts +0 -1
- package/{editing/config → locateme-config}/main.d.ts +0 -0
- package/{locateme/config → locateme-config}/module.d.ts +0 -0
- package/locateme-config/package.json +5 -0
- package/locator-store/LocatorStore.d.ts +0 -1
- package/{locateme/config → locator-store-config}/main.d.ts +0 -0
- package/{locator-store/config → locator-store-config}/module.d.ts +0 -0
- package/locator-store-config/package.json +5 -0
- package/map-basemaps-api/module.d.ts +2 -1
- package/map-config-api/BasemapConfigParser.d.ts +0 -1
- package/map-config-api/GroundConfigParser.d.ts +0 -1
- package/map-config-api/LayerFactory.d.ts +0 -1
- package/map-config-api/module.d.ts +4 -1
- package/map-init/module.d.ts +2 -1
- package/{map-init/config → map-init-config}/AddServiceWorkflow.d.ts +0 -0
- package/{map-init/config → map-init-config}/BasemapMetadata.d.ts +0 -0
- package/{map-init/config → map-init-config}/ConfigTransformer.d.ts +0 -0
- package/{map-init/config → map-init-config}/DeleteWorkflow.d.ts +0 -0
- package/{map-init/config → map-init-config}/IdGenerator.d.ts +0 -0
- package/{map-init/config → map-init-config}/InitialViewBuilderWidget.d.ts +0 -0
- package/{map-init/config → map-init-config}/MapContentBuilder.d.ts +0 -0
- package/{map-init/config → map-init-config}/MapContentBuilderWidget.d.ts +0 -0
- package/{map-init/config → map-init-config}/ServiceMetadataResolver.d.ts +0 -0
- package/{locator-store/config → map-init-config}/main.d.ts +0 -0
- package/{map-init/config → map-init-config}/module.d.ts +0 -0
- package/map-init-config/package.json +5 -0
- package/{map-init/config → map-init-config}/transformViewStateToViewConfig.d.ts +0 -0
- package/map-widget/LayerObserver.d.ts +0 -2
- package/map-widget/MapWidgetFactory.d.ts +0 -30
- package/map-widget/module.d.ts +12 -1
- package/{map-init/config → measurement-2d-config}/main.d.ts +0 -0
- package/{measurement-2d/config → measurement-2d-config}/module.d.ts +0 -0
- package/{map-init → measurement-3d-config}/main.d.ts +0 -0
- package/{measurement-3d/config → measurement-3d-config}/module.d.ts +0 -0
- package/{map-widget → omnisearch-config}/main.d.ts +0 -0
- package/{omnisearch/config → omnisearch-config}/module.d.ts +0 -0
- package/omnisearch-config/package.json +5 -0
- package/package.json +1 -1
- package/parametersearch/Config.d.ts +1 -0
- package/popups/PopupInterceptor.d.ts +24 -1
- package/popups/PopupTemplateResolver.d.ts +5 -0
- package/popups-default/GridPopupDefinition.d.ts +1 -0
- package/popups-default/GridPopupDefinitionFactory.d.ts +0 -1
- package/{portal-security/config → portal-security-config}/AGOLAccountWidget.d.ts +0 -0
- package/{measurement-2d/config → portal-security-config}/main.d.ts +0 -0
- package/{portal-security/config → portal-security-config}/module.d.ts +0 -0
- package/portal-security-config/package.json +5 -0
- package/portal-webitem-map/WebItemInterpreter.d.ts +0 -1
- package/{portal-webitem-map/config → portal-webitem-map-config}/AGOLStore.d.ts +0 -0
- package/{portal-webitem-map/config → portal-webitem-map-config}/DataFormBuilderWidgetFactory.d.ts +0 -0
- package/{portal-webitem-map/config → portal-webitem-map-config}/WebMapFinderWidget.d.ts +0 -0
- package/{measurement-3d/config → portal-webitem-map-config}/main.d.ts +0 -0
- package/{portal-webitem-map/config → portal-webitem-map-config}/module.d.ts +0 -0
- package/portal-webitem-map-config/package.json +5 -0
- package/{omnisearch/config → printing-config}/main.d.ts +0 -0
- package/{printing/config → printing-config}/module.d.ts +0 -0
- package/printing-config/package.json +5 -0
- package/{portal-security/config → scalebar-config}/main.d.ts +0 -0
- package/{scalebar/config → scalebar-config}/module.d.ts +0 -0
- package/scalebar-config/package.json +5 -0
- package/search-api/DataSource.d.ts +1 -1
- package/selection-tools/ToolRegistry.d.ts +0 -1
- package/{selection-ui/config → selection-ui-config}/DataFormBuilderWidgetFactory.d.ts +0 -0
- package/{portal-webitem-map/config → selection-ui-config}/main.d.ts +0 -0
- package/{selection-ui/config → selection-ui-config}/module.d.ts +0 -0
- package/selection-ui-config/package.json +5 -0
- package/{printing/config → sketching-config}/main.d.ts +0 -0
- package/{sketching/config → sketching-config}/module.d.ts +0 -0
- package/store-api/api/Store.d.ts +1 -1
- package/system/ActivityMonitor.d.ts +1 -1
- package/system/component/ComponentContext.d.ts +2 -3
- package/templatelayout/TemplateLayout.d.ts +3 -3
- package/templatelayout/Windows.d.ts +1 -1
- package/templates-config/TemplateModelStore.d.ts +6 -0
- package/{scalebar/config → templates-config}/main.d.ts +0 -0
- package/{templates/config → templates-config}/module.d.ts +0 -0
- package/templates-config/package.json +5 -0
- package/themes-config/ThemeModelStore.d.ts +6 -0
- package/{selection-ui/config → themes-config}/main.d.ts +0 -0
- package/{themes/config → themes-config}/module.d.ts +0 -0
- package/{map-widget → themes-config}/package.json +1 -1
- package/toc/ItemActions.d.ts +2 -15
- package/toc/ItemActionsProvider.d.ts +1 -12
- package/{toolset/config → toolset-config}/ToolsetBuilderWidget.d.ts +0 -0
- package/{toolset/config → toolset-config}/ToolsetBuilderWidgetFactory.d.ts +0 -0
- package/{sketching/config → toolset-config}/main.d.ts +0 -0
- package/{toolset/config → toolset-config}/module.d.ts +0 -0
- package/{agssearch → toolset-config}/package.json +1 -1
- package/wizard/BundleLauncher.d.ts +1 -1
- package/integration-map/Highlighter.d.ts +0 -10
- package/integration-map/IntegrationExtension.d.ts +0 -101
- package/templates/config/TemplateModelStore.d.ts +0 -6
- package/templates/config/main.d.ts +0 -1
- package/themes/config/ThemeModelStore.d.ts +0 -6
- package/themes/config/main.d.ts +0 -1
- package/toolset/config/main.d.ts +0 -1
|
@@ -1,6 +1,27 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Factory class that creates store instances.
|
|
3
|
+
*/
|
|
4
|
+
export class AGSStoreFactory {
|
|
5
|
+
/**
|
|
6
|
+
* Creates a new store instance backed by an ArcGIS Feature Server or Map Server.
|
|
7
|
+
* Either the `layerId` parameter or the `url` parameter must be specified.
|
|
8
|
+
*
|
|
9
|
+
* @param {Object} options
|
|
10
|
+
* @param {string} [options.id] The id of the new store
|
|
11
|
+
* @param {string} [options.layerId] A valid layer or sublayer id
|
|
12
|
+
* @param {string} [options.url] A service url, for services that are not in the map
|
|
13
|
+
* @param {boolean} [options.legacyImplementation]
|
|
14
|
+
* Set this value to `true` to use the deprecated old MapServerLayerStore implementation
|
|
15
|
+
* instead of the new LayerStore.
|
|
16
|
+
* @returns A promise that resolves to the new store instance
|
|
17
|
+
*/
|
|
18
|
+
createStore(options: {
|
|
19
|
+
id?: string | undefined;
|
|
20
|
+
layerId?: string | undefined;
|
|
21
|
+
url?: string | undefined;
|
|
22
|
+
legacyImplementation?: boolean | undefined;
|
|
23
|
+
}): Promise<LayerStore | MapServerLayerStore>;
|
|
4
24
|
_getServiceInfoFromMap(layerId: any): any;
|
|
5
|
-
}
|
|
25
|
+
}
|
|
26
|
+
import { LayerStore } from "./LayerStore";
|
|
6
27
|
import MapServerLayerStore from "ct/mapping/store/MapServerLayerStore";
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
export
|
|
1
|
+
export class AutoStoreRegistration {
|
|
2
2
|
_observers: import("apprt-core/Observers").Observers;
|
|
3
3
|
_storeRegistrations: Map<any, any>;
|
|
4
4
|
_storeRegistrationTasks: Map<any, any>;
|
|
5
5
|
activate(componentContext: any): void;
|
|
6
6
|
_bundleContext: any;
|
|
7
7
|
_delay: any;
|
|
8
|
+
_useLegacyImplementation: any;
|
|
8
9
|
_observeMap(): void;
|
|
9
10
|
_observeLayer(layer: any, callback: any): {
|
|
10
11
|
remove: () => void;
|
|
@@ -13,7 +14,7 @@ export default class AutoStoreRegistration {
|
|
|
13
14
|
_observeServiceLayer(rootLayer: any, id: any): void;
|
|
14
15
|
_checkSublayer(layer: any, id: any): void;
|
|
15
16
|
_delayedRegisterStoreFrom(layer: any, id: any): void;
|
|
16
|
-
_registerStoreFrom(layer: any, id: any): void
|
|
17
|
+
_registerStoreFrom(layer: any, id: any): Promise<void>;
|
|
17
18
|
_delayedUnregisterStoreOf(layer: any, id: any): void;
|
|
18
19
|
_unregisterStoreOf(rootLayer: any): void;
|
|
19
20
|
deactivate(): void;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
export
|
|
2
|
-
declare function FilterStoreFactory(): {
|
|
1
|
+
export function FilterStoreFactory(): {
|
|
3
2
|
activate(): void;
|
|
4
3
|
_initStore(): any;
|
|
5
4
|
_logError(id: any, error: any): any;
|
|
@@ -16,5 +15,5 @@ declare function FilterStoreFactory(): {
|
|
|
16
15
|
_checkStoreRegistrationStateAsync(targetLayer: any): void;
|
|
17
16
|
_checkStoreRegistrationState(targetLayer: any): void;
|
|
18
17
|
deactivate(): void;
|
|
19
|
-
_register(store: any, props: any): void;
|
|
18
|
+
_register(store: any, props: any, targetLayer: any, nonFilteredStore: any): void;
|
|
20
19
|
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/// <reference types="arcgis-js-api" />
|
|
2
|
+
import type FeatureLayer from "esri/layers/FeatureLayer";
|
|
3
|
+
import type Sublayer from "esri/layers/support/Sublayer";
|
|
4
|
+
import type Map from "esri/Map";
|
|
5
|
+
import type { ComplexQueryExpression } from "store-api/api/ComplexQueryLang";
|
|
6
|
+
import type { AsyncStore, GetOptions, Metadata, QueryOptions, AsyncQueryResult } from "store-api/api/Store";
|
|
7
|
+
export interface LayerStoreMetadata extends Metadata {
|
|
8
|
+
/** The feature id property name. Same as store.idProperty. */
|
|
9
|
+
readonly idProperty: string;
|
|
10
|
+
/** Whether the store supports pagination or not. */
|
|
11
|
+
readonly supportsPagination: boolean;
|
|
12
|
+
/** Maximum number of features that can be requested from the server. */
|
|
13
|
+
readonly maxRecordCount: number;
|
|
14
|
+
}
|
|
15
|
+
declare type FeatureLayerProps = "type" | "destroy" | "load" | "loaded" | "capabilities" | "sourceJSON" | "objectIdField" | "title" | "displayField" | "geometryType" | "fullExtent" | "popupTemplate" | "fields" | "createQuery" | "queryObjectIds" | "queryFeatures" | "queryFeatureCount";
|
|
16
|
+
export declare type SimpleFeatureLayer = Pick<FeatureLayer, FeatureLayerProps>;
|
|
17
|
+
declare type Feature = Record<string, any>;
|
|
18
|
+
declare type FeatureId = string | number;
|
|
19
|
+
/**
|
|
20
|
+
* A store implementation that searches directly on an ArcGIS Feature Layer object.
|
|
21
|
+
*/
|
|
22
|
+
export declare class LayerStore implements AsyncStore<Feature, FeatureId> {
|
|
23
|
+
#private;
|
|
24
|
+
readonly id: undefined;
|
|
25
|
+
readonly idProperty: undefined;
|
|
26
|
+
private constructor();
|
|
27
|
+
/**
|
|
28
|
+
* Creates a new store instance for the given layer path.
|
|
29
|
+
* The layer (or sublayer) must exist in the map.
|
|
30
|
+
* Currently only feature layers and sublayers of map image layers are supported.
|
|
31
|
+
*/
|
|
32
|
+
static forLayerPath(id: string | undefined, layerPath: string, map: Map): Promise<LayerStore>;
|
|
33
|
+
/**
|
|
34
|
+
* Creates a new store instance that searches on the provided feature layer.
|
|
35
|
+
*
|
|
36
|
+
* @param id the store's id (optional)
|
|
37
|
+
* @param layer the feature layer to use as a data source
|
|
38
|
+
*/
|
|
39
|
+
static forFeatureLayer(id: string | undefined, layer: SimpleFeatureLayer): LayerStore;
|
|
40
|
+
/**
|
|
41
|
+
* Creates a new store instance that searches on the provided sublayer of a map image layer.
|
|
42
|
+
*
|
|
43
|
+
* @param id the store's id (optional).
|
|
44
|
+
* @param sublayer the sublayer to use as a data source
|
|
45
|
+
*/
|
|
46
|
+
static forMapImageSublayer(id: string | undefined, sublayer: Sublayer): Promise<LayerStore>;
|
|
47
|
+
destroy(): void;
|
|
48
|
+
load(): Promise<void>;
|
|
49
|
+
getMetadata(): Promise<LayerStoreMetadata>;
|
|
50
|
+
getIdentity(feature: Feature): string | number;
|
|
51
|
+
query(query?: ComplexQueryExpression, options?: QueryOptions): AsyncQueryResult<Feature>;
|
|
52
|
+
get(id: FeatureId, options?: GetOptions): Promise<Feature | undefined>;
|
|
53
|
+
}
|
|
54
|
+
export {};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
3
|
-
init(props: any): Promise<{
|
|
1
|
+
export function StoreInitializer(opts: any): {
|
|
2
|
+
init(props: any): globalThis.Promise<{
|
|
4
3
|
store: any;
|
|
4
|
+
nonFilteredStore: any;
|
|
5
5
|
props: any;
|
|
6
6
|
}>;
|
|
7
7
|
};
|
|
8
|
-
import Promise from "apprt-core/Promise";
|
package/agssearch/module.d.ts
CHANGED
package/agssearch/util.d.ts
CHANGED
|
File without changes
|
|
File without changes
|
package/apprt/event/Event.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const _null:
|
|
1
|
+
export const _null: null;
|
|
@@ -12,5 +12,5 @@
|
|
|
12
12
|
* @param name Class or function that will be deprecated
|
|
13
13
|
* @param description A short description which class or function shall be used instead
|
|
14
14
|
*/
|
|
15
|
-
declare function deprecate(name: string, description: string): void;
|
|
15
|
+
export declare function deprecate(name: string, description: string): void;
|
|
16
16
|
export default deprecate;
|
|
@@ -38,22 +38,63 @@ export declare abstract class Stream<T> implements Iterable<T> {
|
|
|
38
38
|
/**
|
|
39
39
|
* Generates [index, value] tuples where value is from the original iterable
|
|
40
40
|
* and index is the index of the current value.
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* ```js
|
|
44
|
+
* import { Stream } from "apprt-streams/Stream";
|
|
45
|
+
*
|
|
46
|
+
* const result = Stream.enumerate(["a", "b"]).toArray(); // [[0, "a"], [1, "b"]]
|
|
47
|
+
* ```
|
|
41
48
|
*/
|
|
42
49
|
static enumerate<U>(iterable: Iterable<U>): Stream<[index: number, value: U]>;
|
|
43
50
|
/**
|
|
44
51
|
* Generates a stream by repeatedly invoking the provided `supplier` function.
|
|
52
|
+
* The returned stream is endless by default, use stop condition like `take()` or `takeWhile()` to limit the stream.
|
|
53
|
+
*
|
|
54
|
+
* @example
|
|
55
|
+
* ```js
|
|
56
|
+
* import { Stream } from "apprt-streams/Stream";
|
|
57
|
+
*
|
|
58
|
+
* let nextValue = 1;
|
|
59
|
+
* function generateNumbers() {
|
|
60
|
+
* return nextValue++;
|
|
61
|
+
* }
|
|
62
|
+
*
|
|
63
|
+
* const items = Stream.generate(generateNumbers).take(4).toArray(); // [1, 2, 3, 4]
|
|
64
|
+
* ```
|
|
45
65
|
*/
|
|
46
66
|
static generate<U>(supplier: () => U): Stream<U>;
|
|
47
67
|
/**
|
|
48
68
|
* Creates a stream that iterates over the keys of the given object.
|
|
69
|
+
*
|
|
70
|
+
* @example
|
|
71
|
+
* ```js
|
|
72
|
+
* import { Stream } from "apprt-streams/Stream";
|
|
73
|
+
* const input = { a: 1, b: 2};
|
|
74
|
+
* const output = Stream.keys(input).map((k) => k + k).toArray(); // ["aa", "bb"] (order might differ)
|
|
75
|
+
* ```
|
|
49
76
|
*/
|
|
50
77
|
static keys<K extends string, U>(object: Record<K, U>): Stream<K>;
|
|
51
78
|
/**
|
|
52
79
|
* Creates a stream that iterates over the values of the given object.
|
|
80
|
+
*
|
|
81
|
+
* @example
|
|
82
|
+
* ```js
|
|
83
|
+
* import { Stream } from "apprt-streams/Stream";
|
|
84
|
+
* const input = { a: 1, b: 2};
|
|
85
|
+
* const output = Stream.values(input).map((v) => v * 2).toArray(); // [2, 4] (order might differ)
|
|
86
|
+
* ```
|
|
53
87
|
*/
|
|
54
88
|
static values<K extends string, U>(object: Record<K, U>): Stream<U>;
|
|
55
89
|
/**
|
|
56
90
|
* Creates a stream that iterates over the [key, value] pairs of the given object.
|
|
91
|
+
*
|
|
92
|
+
* @example
|
|
93
|
+
* ```js
|
|
94
|
+
* import { Stream } from "apprt-streams/Stream";
|
|
95
|
+
* const input = { a: 1, b: 2};
|
|
96
|
+
* const output = Stream.entries(input).map((e) => `${e[0]}${e[1]}`).toArray(); // ["a1", "b2"] (order might differ)
|
|
97
|
+
* ```
|
|
57
98
|
*/
|
|
58
99
|
static entries<K extends string, U>(object: Record<K, U>): Stream<[key: K, value: U]>;
|
|
59
100
|
/**
|
|
@@ -65,6 +106,8 @@ export declare abstract class Stream<T> implements Iterable<T> {
|
|
|
65
106
|
* import { Stream } from "apprt-streams/Stream";
|
|
66
107
|
* const numbers = Stream.integers(3).toArray(); // [0, 1, 2]
|
|
67
108
|
* ```
|
|
109
|
+
*
|
|
110
|
+
* @param count the number of integers to produce
|
|
68
111
|
*/
|
|
69
112
|
static integers(count: number): Stream<number>;
|
|
70
113
|
/**
|
|
@@ -76,6 +119,9 @@ export declare abstract class Stream<T> implements Iterable<T> {
|
|
|
76
119
|
* import { Stream } from "apprt-streams/Stream";
|
|
77
120
|
* const numbers = Stream.integers(3, 4).toArray(); // [3, 4, 5, 6]
|
|
78
121
|
* ```
|
|
122
|
+
*
|
|
123
|
+
* @param start the start value
|
|
124
|
+
* @param count the number of integers to produce
|
|
79
125
|
*/
|
|
80
126
|
static integers(start: number, count: number): Stream<number>;
|
|
81
127
|
/**
|
|
@@ -110,7 +156,7 @@ export declare abstract class Stream<T> implements Iterable<T> {
|
|
|
110
156
|
* import { Stream } from "apprt-streams/Stream";
|
|
111
157
|
* const left = [1, 2];
|
|
112
158
|
* const right = ["a", "b", "c"];
|
|
113
|
-
* const zipped = Stream.
|
|
159
|
+
* const zipped = Stream.zip(left, right).toArray(); // [[1, "a"], [2, "b"]]
|
|
114
160
|
* ```
|
|
115
161
|
*/
|
|
116
162
|
static zip<Ts extends Iterable<any>[] | [Iterable<any>]>(...iterables: Ts): Stream<ZipValue<Ts>>;
|
|
@@ -140,6 +186,9 @@ export declare abstract class Stream<T> implements Iterable<T> {
|
|
|
140
186
|
* const items = [1, -2, 3];
|
|
141
187
|
* const result = Stream.from(items).filter(n => n > 0).toArray(); // [1, 3]
|
|
142
188
|
* ```
|
|
189
|
+
*
|
|
190
|
+
* @param predicate
|
|
191
|
+
* A function that returns `true` if the item should be part of the returned stream.
|
|
143
192
|
*/
|
|
144
193
|
filter<U extends T>(predicate: (item: T) => item is U): Stream<U>;
|
|
145
194
|
filter(predicate: (item: T) => boolean): Stream<T>;
|
|
@@ -152,6 +201,9 @@ export declare abstract class Stream<T> implements Iterable<T> {
|
|
|
152
201
|
* const items = [1, 2];
|
|
153
202
|
* const result = Stream.from(items).map(n => n + 1).toArray(); // [2, 3]
|
|
154
203
|
* ```
|
|
204
|
+
*
|
|
205
|
+
* @param transform
|
|
206
|
+
* A function that maps each item to a another item of an arbitrary type.
|
|
155
207
|
*/
|
|
156
208
|
map<U>(transform: (item: T) => U): Stream<U>;
|
|
157
209
|
/**
|
|
@@ -166,6 +218,10 @@ export declare abstract class Stream<T> implements Iterable<T> {
|
|
|
166
218
|
* (person) => person.age >= 18 ? person.age : undefined
|
|
167
219
|
* ).toArray(); // [18, 21]
|
|
168
220
|
* ```
|
|
221
|
+
*
|
|
222
|
+
* @param transform
|
|
223
|
+
* A function that maps each item to a nullable item of an arbitrary type.
|
|
224
|
+
* Return values `null` and `undefined` will be skipped in the returned stream.
|
|
169
225
|
*/
|
|
170
226
|
filterMap<U>(transform: (item: T) => U | null | undefined): Stream<NonNullable<U>>;
|
|
171
227
|
/**
|
|
@@ -189,6 +245,8 @@ export declare abstract class Stream<T> implements Iterable<T> {
|
|
|
189
245
|
* const items = [1, 2, 3];
|
|
190
246
|
* const result = Stream.from(items).skip(1).toArray(); // [2, 3]
|
|
191
247
|
* ```
|
|
248
|
+
*
|
|
249
|
+
* @param count the number of items to skip
|
|
192
250
|
*/
|
|
193
251
|
skip(count: number): Stream<T>;
|
|
194
252
|
/**
|
|
@@ -234,6 +292,8 @@ export declare abstract class Stream<T> implements Iterable<T> {
|
|
|
234
292
|
* const items = ["a", "b"];
|
|
235
293
|
* const repeated = Stream.from(items).repeat(2).toArray(); // ["a", "b", "a", "b"];
|
|
236
294
|
* ```
|
|
295
|
+
*
|
|
296
|
+
* @param count the number of repetitions
|
|
237
297
|
*/
|
|
238
298
|
repeat(count: number): Stream<T>;
|
|
239
299
|
/**
|
|
@@ -248,10 +308,10 @@ export declare abstract class Stream<T> implements Iterable<T> {
|
|
|
248
308
|
*/
|
|
249
309
|
cycle(): Stream<T>;
|
|
250
310
|
/**
|
|
251
|
-
* Returns a stream over the original items grouped into chunks of size `
|
|
252
|
-
* Up to `
|
|
311
|
+
* Returns a stream over the original items grouped into chunks of size `chunkSize`.
|
|
312
|
+
* Up to `chunkSize` consecutive elements will be gathered into an array and then returned by the stream.
|
|
253
313
|
*
|
|
254
|
-
* All arrays, except for the last one, will be of length `
|
|
314
|
+
* All arrays, except for the last one, will be of length `chunkSize`. No array will be empty.
|
|
255
315
|
*
|
|
256
316
|
* @example
|
|
257
317
|
* ```js
|
|
@@ -259,8 +319,10 @@ export declare abstract class Stream<T> implements Iterable<T> {
|
|
|
259
319
|
* const items = [1, 2, 3, 4, 5];
|
|
260
320
|
* const chunked = Stream.from(items).chunk(3).toArray(); // [[1, 2, 3], [4, 5]]
|
|
261
321
|
* ```
|
|
322
|
+
*
|
|
323
|
+
* @param chunkSize the maximum chunk size
|
|
262
324
|
*/
|
|
263
|
-
chunk(
|
|
325
|
+
chunk(chunkSize: number): Stream<T[]>;
|
|
264
326
|
/**
|
|
265
327
|
* Chains the given iterables after `this` (see static `concat` function for details).
|
|
266
328
|
*/
|
|
@@ -307,6 +369,21 @@ export declare abstract class Stream<T> implements Iterable<T> {
|
|
|
307
369
|
groupBy<U>(keyFunc: (item: T) => U): Stream<[U, T[]]>;
|
|
308
370
|
/**
|
|
309
371
|
* Returns a stream that groups adjacent elements for which the predicate returns true into arrays.
|
|
372
|
+
*
|
|
373
|
+
* This is different from `groupBy` because it allows arbitrary conditions for grouping.
|
|
374
|
+
* However, only elements next to each other can belong to a group.
|
|
375
|
+
* A new group is started whenever an element is encountered that does not belong to the current group.
|
|
376
|
+
*
|
|
377
|
+
* @example
|
|
378
|
+
* ```js
|
|
379
|
+
* const numbers = [1, 2, 4, 3, 0];
|
|
380
|
+
* const grouped = Stream.from(numbers)
|
|
381
|
+
* .groupAdjacent((l, r) => Math.abs(l - r) <= 1) // close items belong to the same group
|
|
382
|
+
* .toArray(); // [[1, 2], [4, 3], [0]]
|
|
383
|
+
* ```
|
|
384
|
+
*
|
|
385
|
+
* @param predicate
|
|
386
|
+
* A function that returns true if `left` and `right` belong to the same group.
|
|
310
387
|
*/
|
|
311
388
|
groupAdjacent(predicate: (left: T, right: T) => boolean): Stream<T[]>;
|
|
312
389
|
/**
|
|
@@ -318,6 +395,12 @@ export declare abstract class Stream<T> implements Iterable<T> {
|
|
|
318
395
|
*
|
|
319
396
|
* NOTE: This function reads the entire stream into memory and stores all elements in an array
|
|
320
397
|
* in order to sort it. This may be inefficient for very large datasets.
|
|
398
|
+
*
|
|
399
|
+
* @param compareFunc
|
|
400
|
+
* Given two elements `left` and `right`, returns `< 0` if `left < right`, `> 0` if `right > left`
|
|
401
|
+
* and `0` otherwise.
|
|
402
|
+
* When not specified, elements are compared using standard `<` and `>` (which might be useless,
|
|
403
|
+
* e.g. when keys are objects or arrays).
|
|
321
404
|
*/
|
|
322
405
|
sort(compareFunc?: (left: T, right: T) => number): Stream<T>;
|
|
323
406
|
/**
|
|
@@ -326,8 +409,7 @@ export declare abstract class Stream<T> implements Iterable<T> {
|
|
|
326
409
|
* NOTE: This function reads the entire stream into memory and stores all elements in an array
|
|
327
410
|
* in order to sort it. This may be inefficient for very large datasets.
|
|
328
411
|
*
|
|
329
|
-
*
|
|
330
|
-
*
|
|
412
|
+
* @example
|
|
331
413
|
* ```js
|
|
332
414
|
* const items = [
|
|
333
415
|
* { name: "A", age: 18 },
|
|
@@ -357,8 +439,7 @@ export declare abstract class Stream<T> implements Iterable<T> {
|
|
|
357
439
|
* NOTE: This function reads the entire stream into memory and stores all elements in a Set
|
|
358
440
|
* for de-duplication. This may be inefficient for very large datasets.
|
|
359
441
|
*
|
|
360
|
-
*
|
|
361
|
-
*
|
|
442
|
+
* @example
|
|
362
443
|
* ```js
|
|
363
444
|
* const items = [
|
|
364
445
|
* {age: 1},
|
|
@@ -378,6 +459,11 @@ export declare abstract class Stream<T> implements Iterable<T> {
|
|
|
378
459
|
*
|
|
379
460
|
* NOTE: This function reads the entire stream into memory in order to reverse the item order.
|
|
380
461
|
* This may be inefficient for very large datasets.
|
|
462
|
+
*
|
|
463
|
+
* @example
|
|
464
|
+
* ```js
|
|
465
|
+
* const items = Stream.integers(4).reverse().toArray(); // [3, 2, 1, 0]
|
|
466
|
+
* ```
|
|
381
467
|
*/
|
|
382
468
|
reverse(): Stream<T>;
|
|
383
469
|
/**
|
|
@@ -414,6 +500,7 @@ export declare abstract class Stream<T> implements Iterable<T> {
|
|
|
414
500
|
* Joins all elements of this stream together into a string.
|
|
415
501
|
* Individual elements will converted to string (via `String(elements)`)
|
|
416
502
|
* and separated by `separator`.
|
|
503
|
+
*
|
|
417
504
|
* @param separator The separator to use between two elements. Defaults to `","`.
|
|
418
505
|
*/
|
|
419
506
|
join(separator?: string): string;
|
|
@@ -425,21 +512,49 @@ export declare abstract class Stream<T> implements Iterable<T> {
|
|
|
425
512
|
count(): number;
|
|
426
513
|
/**
|
|
427
514
|
* Gathers all elements of this stream into an array.
|
|
515
|
+
*
|
|
516
|
+
* @example
|
|
517
|
+
* ```js
|
|
518
|
+
* import { Stream } from "apprt-streams/Stream";
|
|
519
|
+
* const array = Stream.integers(3).toSet(); // [0, 1, 2]
|
|
520
|
+
* ```
|
|
428
521
|
*/
|
|
429
522
|
toArray(): T[];
|
|
430
523
|
/**
|
|
431
524
|
* Gathers all elements of this stream into an object.
|
|
432
525
|
* The elements must be [key, value] pairs, and the keys must be
|
|
433
526
|
* strings, symbols or numbers.
|
|
527
|
+
*
|
|
528
|
+
* @example
|
|
529
|
+
* ```js
|
|
530
|
+
* import { Stream } from "apprt-streams/Stream";
|
|
531
|
+
* const object = Stream.from(["a", "b", "c"])
|
|
532
|
+
* .map((v) => [v, v + "!"])
|
|
533
|
+
* .toObject(); // { a: "a!", b: "b!", c: "c!"}
|
|
534
|
+
* ```
|
|
434
535
|
*/
|
|
435
536
|
toObject(this: T extends [PropertyKey, any] ? this : never): T extends [infer K, infer V] ? (K extends PropertyKey ? Record<K, V> : never) : never;
|
|
436
537
|
/**
|
|
437
538
|
* Gathers all elements of this stream into a set.
|
|
539
|
+
*
|
|
540
|
+
* @example
|
|
541
|
+
* ```js
|
|
542
|
+
* import { Stream } from "apprt-streams/Stream";
|
|
543
|
+
* const set = Stream.integers(3).toSet(); // set of 0, 1, 2
|
|
544
|
+
* ```
|
|
438
545
|
*/
|
|
439
546
|
toSet(): Set<T>;
|
|
440
547
|
/**
|
|
441
548
|
* Gathers the elements of this stream into a map.
|
|
442
549
|
* The elements must be [key, value] pairs.
|
|
550
|
+
*
|
|
551
|
+
* @example
|
|
552
|
+
* ```js
|
|
553
|
+
* import { Stream } from "apprt-streams/Stream";
|
|
554
|
+
* const map = Stream.from(["a", "b", "c"])
|
|
555
|
+
* .map((v) => [v, v + "!"])
|
|
556
|
+
* .toMap(); // // a -> a!, b -> b!, c -> c!
|
|
557
|
+
* ```
|
|
443
558
|
*/
|
|
444
559
|
toMap(this: T extends [any, any] ? this : never): T extends [infer K, infer V] ? Map<K, V> : never;
|
|
445
560
|
/**
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
declare const EnableToolOnSelectionChanged_base: any;
|
|
2
2
|
export default class EnableToolOnSelectionChanged extends EnableToolOnSelectionChanged_base {
|
|
3
3
|
[x: string]: any;
|
|
4
|
-
dataViewModel:
|
|
4
|
+
dataViewModel: null;
|
|
5
5
|
activate(): void;
|
|
6
6
|
deactivate(): void;
|
|
7
7
|
_refreshToolState(name: any, oldValue: any, selectedIds: any): void;
|
package/console/_BaseStore.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export default class _BaseStore {
|
|
2
2
|
constructor(opts: any);
|
|
3
3
|
idProperty: string;
|
|
4
|
-
metadata:
|
|
5
|
-
getMetadata():
|
|
4
|
+
metadata: null;
|
|
5
|
+
getMetadata(): null;
|
|
6
6
|
getIdentity(obj: any): any;
|
|
7
7
|
get(id: any): any;
|
|
8
8
|
query(query: any, options: any): import("../../search/store-api/api/Store").ResultItems<Readonly<Record<string, any>>>;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
/// <reference types="arcgis-js-api" />
|
|
2
1
|
export default function WGSConverter(i18n: any): {
|
|
3
2
|
pointToDmsString(point: any): string;
|
|
4
3
|
dmsStringToPoint(string: any): Point;
|
|
5
4
|
pointToDdString(point: any, decimalPlaces: any): string;
|
|
6
5
|
ddStringToPoint(string: any): Point;
|
|
7
6
|
};
|
|
8
|
-
import Point from "esri/geometry/Point";
|
|
File without changes
|
|
File without changes
|
|
@@ -2,4 +2,3 @@ export function coordinateTransformationConverter(transformer: any, targetEPSGCo
|
|
|
2
2
|
export function srsTitleConverter(transformer: any): (coord: any) => Promise<any>;
|
|
3
3
|
export function degreeFormatConverter(transformer: any, latLonOptions: any): (coord: any) => Promise<any>;
|
|
4
4
|
export function chainConverters(converters: any): (coord: any) => Promise<any>;
|
|
5
|
-
import Promise from "apprt-core/Promise";
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="arcgis-js-api" />
|
|
2
1
|
export default GraphicsBuilder;
|
|
3
2
|
declare function GraphicsBuilder(): {
|
|
4
3
|
createGraphic: ({ geometry, symbolLookupStrategy, context, attributes }: {
|
|
@@ -8,4 +7,3 @@ declare function GraphicsBuilder(): {
|
|
|
8
7
|
attributes: any;
|
|
9
8
|
}) => Graphic;
|
|
10
9
|
};
|
|
11
|
-
import Graphic from "esri/Graphic";
|
package/highlights/api.d.ts
CHANGED
|
@@ -65,6 +65,12 @@ export interface HighlightGraphic extends Partial<Graphic> {
|
|
|
65
65
|
* the view is in "3D" mode at the time of creation.
|
|
66
66
|
*/
|
|
67
67
|
symbol3D?: esriSymbol;
|
|
68
|
+
/**
|
|
69
|
+
* Template for maptips.
|
|
70
|
+
*
|
|
71
|
+
* Requires maptip bundle.
|
|
72
|
+
*/
|
|
73
|
+
maptipTemplate?: any;
|
|
68
74
|
}
|
|
69
75
|
/**
|
|
70
76
|
* 2D or 3D view mode.
|