@arcgis/coding-components 4.29.0-beta.107 → 4.29.0-beta.109
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/dist/arcgis-coding-components/arcgis-coding-components.esm.js +2 -2
- package/dist/arcgis-coding-components/index.esm.js +2 -2
- package/dist/arcgis-coding-components/{p-2c94e34e.js → p-09a0ee03.js} +2 -2
- package/dist/arcgis-coding-components/{p-94436a35.js → p-09dd5d6c.js} +1 -1
- package/dist/arcgis-coding-components/{p-599777f8.js → p-174178e7.js} +2 -2
- package/dist/arcgis-coding-components/{p-1f288af6.js → p-1cd316bf.js} +2 -2
- package/dist/arcgis-coding-components/p-690b6627.entry.js +6 -0
- package/dist/arcgis-coding-components/{p-ee0405a5.js → p-adf98d20.js} +2 -2
- package/dist/arcgis-coding-components/{p-54956a0b.js → p-b14ac5b8.js} +10 -10
- package/dist/arcgis-coding-components/{p-91bbadd0.js → p-c089ef80.js} +3 -3
- package/dist/arcgis-coding-components/{p-a2dcc80b.js → p-c441923b.js} +1 -1
- package/dist/arcgis-coding-components/{p-4ab89e7d.js → p-dd629a57.js} +2 -2
- package/dist/arcgis-coding-components/{p-4990e8c6.js → p-ec85d134.js} +2 -2
- package/dist/arcgis-coding-components/{p-1e9a909a.js → p-ffc1ca6e.js} +2 -2
- package/dist/cjs/{arcade-defaults-da037f39.js → arcade-defaults-243f1d0c.js} +218 -193
- package/dist/cjs/{arcade-mode-84768b0f.js → arcade-mode-713ce2c3.js} +3 -3
- package/dist/cjs/arcgis-arcade-api_6.cjs.entry.js +35 -47
- package/dist/cjs/arcgis-coding-components.cjs.js +3 -3
- package/dist/cjs/{css-373c87ad.js → css-d9452f0e.js} +1 -1
- package/dist/cjs/{cssMode-174c6a14.js → cssMode-4ba5410f.js} +3 -3
- package/dist/cjs/{html-34d84912.js → html-fc5c516e.js} +3 -3
- package/dist/cjs/{htmlMode-560580bc.js → htmlMode-8437fe37.js} +3 -3
- package/dist/cjs/{index-a28e8c4d.js → index-1b175662.js} +1 -1
- package/dist/cjs/index.cjs.js +3 -3
- package/dist/cjs/{javascript-0e9272ba.js → javascript-94bf8806.js} +4 -4
- package/dist/cjs/{jsonMode-f03296f5.js → jsonMode-3528dffd.js} +3 -3
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/{tsMode-61a0f476.js → tsMode-fe693a2d.js} +3 -3
- package/dist/cjs/{typescript-3bc44ecc.js → typescript-2f8ed118.js} +3 -3
- package/dist/components/arcade-api.js +1 -1
- package/dist/components/arcade-contribution.js +2 -2
- package/dist/components/arcade-defaults.js +169 -152
- package/dist/components/arcade-mode.js +1 -1
- package/dist/components/arcade-results.js +2 -2
- package/dist/components/arcade-suggestions.js +1 -1
- package/dist/components/arcade-variables.js +19 -16
- package/dist/components/arcgis-arcade-api.js +1 -1
- package/dist/components/arcgis-arcade-editor.js +13 -29
- package/dist/components/arcgis-arcade-results.js +1 -1
- package/dist/components/arcgis-arcade-suggestions.js +1 -1
- package/dist/components/arcgis-arcade-variables.js +1 -1
- package/dist/components/arcgis-code-editor.js +1 -1
- package/dist/components/code-editor.js +1 -1
- package/dist/components/fields.js +10 -2
- package/dist/components/functional-components.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/index2.js +1 -1
- package/dist/components/markdown.js +1 -1
- package/dist/components/utilities.js +1 -1
- package/dist/esm/{arcade-defaults-b0a0d60e.js → arcade-defaults-2be262c3.js} +218 -193
- package/dist/esm/{arcade-mode-886ad2c6.js → arcade-mode-9b5533a2.js} +3 -3
- package/dist/esm/arcgis-arcade-api_6.entry.js +35 -47
- package/dist/esm/arcgis-coding-components.js +4 -4
- package/dist/esm/{css-97e0bca1.js → css-09aa6c3a.js} +1 -1
- package/dist/esm/{cssMode-af0b0322.js → cssMode-f90a1e62.js} +3 -3
- package/dist/esm/{html-5b306e7f.js → html-2dae6cf1.js} +3 -3
- package/dist/esm/{htmlMode-ade22305.js → htmlMode-7e3483f9.js} +3 -3
- package/dist/esm/{index-318ffb0c.js → index-23b528c2.js} +1 -1
- package/dist/esm/index.js +3 -3
- package/dist/esm/{javascript-e24d6f51.js → javascript-84611956.js} +4 -4
- package/dist/esm/{jsonMode-dcc1e54f.js → jsonMode-cdf283a8.js} +3 -3
- package/dist/esm/loader.js +4 -4
- package/dist/esm/{tsMode-3c62ab70.js → tsMode-0c3bded5.js} +3 -3
- package/dist/esm/{typescript-b5ee74fa.js → typescript-6fb8a4c2.js} +3 -3
- package/dist/loader/cdn.js +1 -1
- package/dist/loader/index.cjs.js +1 -1
- package/dist/loader/index.es2017.js +1 -1
- package/dist/loader/index.js +1 -1
- package/dist/types/components/arcade-editor/arcade-editor.d.ts +1 -7
- package/dist/types/components/arcade-variables/arcade-variables.d.ts +0 -1
- package/dist/types/components.d.ts +2 -7
- package/dist/types/utils/arcade-monaco/arcade-theme.d.ts +1 -0
- package/dist/types/utils/profile/editor-profile.d.ts +49 -63
- package/dist/types/utils/profile/types.d.ts +122 -1
- package/dist/types/utils/profile/utils.d.ts +22 -9
- package/package.json +8 -8
- package/dist/arcgis-coding-components/p-0afd6c41.entry.js +0 -6
|
@@ -1,10 +1,5 @@
|
|
|
1
|
-
import type { ApiVariableType, ApiProfile
|
|
2
|
-
import type
|
|
3
|
-
type IndexedProfileStrings = ProfileStrings & Record<string, string | undefined>;
|
|
4
|
-
/**
|
|
5
|
-
* Describe the support source for some of the editor variables.
|
|
6
|
-
*/
|
|
7
|
-
type SupportedSource = __esri.FeatureSet | IFieldsDefinition | SupportedLayer;
|
|
1
|
+
import type { ApiVariableType, ApiProfile } from "@arcgis/arcade-languageservice";
|
|
2
|
+
import type * as types from "./types";
|
|
8
3
|
/**
|
|
9
4
|
* FeatureSetCollection interface. Used in Arcade expressions to represent Web Maps
|
|
10
5
|
* or Feature Services.
|
|
@@ -26,29 +21,13 @@ interface IFeatureSetCollections {
|
|
|
26
21
|
*/
|
|
27
22
|
source: __esri.WebMap | __esri.WebScene | string;
|
|
28
23
|
}
|
|
29
|
-
/**
|
|
30
|
-
* Represents a string that will have to be manufactured from a Intl strings resource.
|
|
31
|
-
*/
|
|
32
|
-
interface IIntlString {
|
|
33
|
-
/**
|
|
34
|
-
* The intl code in the Intl strings resource.
|
|
35
|
-
*/
|
|
36
|
-
code: string;
|
|
37
|
-
/**
|
|
38
|
-
* The properties that the Intl string may leverage during the composition of the string.
|
|
39
|
-
* Example:
|
|
40
|
-
* - the intl string is defined as: "webmaptitle": "Web Map - {title}"
|
|
41
|
-
* - the formatValues should be an object `{title: "California Fires"}`
|
|
42
|
-
*/
|
|
43
|
-
formatValues?: Record<string, string>;
|
|
44
|
-
}
|
|
45
24
|
type ProfileItemType = ApiVariableType | "group";
|
|
46
25
|
export type EditorVariable = ArrayVariable | DictionaryVariable | FeatureSetCollectionVariable | FeatureSetVariable | FeatureVariable | ValueVariable;
|
|
47
26
|
interface ConstructorProperties<T> {
|
|
48
27
|
profile?: EditorProfile | null;
|
|
49
28
|
declaration?: Partial<T>;
|
|
50
|
-
label?: IIntlString | string;
|
|
51
|
-
description?: IIntlString | string;
|
|
29
|
+
label?: types.IIntlString | string;
|
|
30
|
+
description?: types.IIntlString | string;
|
|
52
31
|
snippet?: string;
|
|
53
32
|
nonInteractive?: boolean;
|
|
54
33
|
filterDescription?: boolean;
|
|
@@ -62,14 +41,14 @@ interface ConstructorProperties<T> {
|
|
|
62
41
|
declare abstract class ProfileItemBase {
|
|
63
42
|
protected _profile: EditorProfile | null | undefined;
|
|
64
43
|
private readonly _label;
|
|
65
|
-
protected readonly description?: string | IIntlString | undefined;
|
|
44
|
+
protected readonly description?: string | types.IIntlString | undefined;
|
|
66
45
|
abstract readonly type: ProfileItemType;
|
|
67
46
|
protected filterDescription: boolean;
|
|
68
47
|
/**
|
|
69
48
|
* True if the item repsents a collection of items.
|
|
70
49
|
*/
|
|
71
50
|
abstract readonly isCollection: boolean;
|
|
72
|
-
constructor(_profile: EditorProfile | null | undefined, _label: IIntlString | string | undefined, description?: string | IIntlString | undefined);
|
|
51
|
+
constructor(_profile: EditorProfile | null | undefined, _label: types.IIntlString | string | undefined, description?: string | types.IIntlString | undefined);
|
|
73
52
|
/**
|
|
74
53
|
* Returns the label string.
|
|
75
54
|
*/
|
|
@@ -94,23 +73,23 @@ declare abstract class VariableBase extends ProfileItemBase {
|
|
|
94
73
|
* True if the variable doesn't can be used as snippet by the editor.
|
|
95
74
|
*/
|
|
96
75
|
readonly nonInteractive: boolean;
|
|
97
|
-
protected declaration: Partial<IProfileVariableBase>;
|
|
76
|
+
protected declaration: Partial<types.IProfileVariableBase>;
|
|
98
77
|
icon: string | undefined;
|
|
99
|
-
constructor(props: ConstructorProperties<IProfileVariableBase>);
|
|
78
|
+
constructor(props: ConstructorProperties<types.IProfileVariableBase>);
|
|
100
79
|
/**
|
|
101
80
|
* Returns the IProfileVariable json representation.
|
|
102
81
|
*/
|
|
103
|
-
abstract toProfileVariableDefinition(): IProfileVariable;
|
|
82
|
+
abstract toProfileVariableDefinition(): types.IProfileVariable;
|
|
104
83
|
}
|
|
105
84
|
/**
|
|
106
85
|
* Represents the IProfileValue.
|
|
107
86
|
*/
|
|
108
87
|
export declare class ValueVariable extends VariableBase {
|
|
109
|
-
type: ProfileVariableValueType;
|
|
88
|
+
type: types.ProfileVariableValueType;
|
|
110
89
|
isCollection: false;
|
|
111
|
-
constructor(props: ConstructorProperties<IProfileValue>);
|
|
90
|
+
constructor(props: ConstructorProperties<types.IProfileValue>);
|
|
112
91
|
getDescription(): string;
|
|
113
|
-
toProfileVariableDefinition(): IProfileVariable;
|
|
92
|
+
toProfileVariableDefinition(): types.IProfileVariable;
|
|
114
93
|
}
|
|
115
94
|
/**
|
|
116
95
|
* Represents the IProfileArray. The main difference is that the IProfileValue type
|
|
@@ -119,10 +98,10 @@ export declare class ValueVariable extends VariableBase {
|
|
|
119
98
|
export declare class ArrayVariable extends VariableBase {
|
|
120
99
|
type: "array";
|
|
121
100
|
isCollection: false;
|
|
122
|
-
elementType: IProfileVariable;
|
|
123
|
-
constructor(props: ConstructorProperties<IProfileArray>);
|
|
101
|
+
elementType: types.IProfileVariable;
|
|
102
|
+
constructor(props: ConstructorProperties<types.IProfileArray>);
|
|
124
103
|
getDescription(): string;
|
|
125
|
-
toProfileVariableDefinition(): IProfileArray;
|
|
104
|
+
toProfileVariableDefinition(): types.IProfileArray;
|
|
126
105
|
}
|
|
127
106
|
/**
|
|
128
107
|
* Represents a collection of items. The collection of items can be synchronous or
|
|
@@ -131,6 +110,7 @@ export declare class ArrayVariable extends VariableBase {
|
|
|
131
110
|
* collection is ready or not.
|
|
132
111
|
*/
|
|
133
112
|
export declare abstract class CollectionBasedVariable extends VariableBase {
|
|
113
|
+
private owner;
|
|
134
114
|
isCollection: true;
|
|
135
115
|
protected _loaded: boolean;
|
|
136
116
|
/**
|
|
@@ -139,6 +119,8 @@ export declare abstract class CollectionBasedVariable extends VariableBase {
|
|
|
139
119
|
* be called first before using the items.
|
|
140
120
|
*/
|
|
141
121
|
variables: (EditorVariable | GroupOfVariables)[];
|
|
122
|
+
constructor(owner: CollectionBasedVariable | undefined, props: ConstructorProperties<types.IProfileVariableBase>);
|
|
123
|
+
get breadcrumb(): string;
|
|
142
124
|
/**
|
|
143
125
|
* Returns true if the collection has been loaded
|
|
144
126
|
*/
|
|
@@ -147,7 +129,7 @@ export declare abstract class CollectionBasedVariable extends VariableBase {
|
|
|
147
129
|
* Loads the items if the collection is asynchronous.
|
|
148
130
|
* If the colleciton is synchronous then the function is a no-op.
|
|
149
131
|
*/
|
|
150
|
-
loadSource(): Promise<unknown>;
|
|
132
|
+
abstract loadSource(): Promise<unknown>;
|
|
151
133
|
/**
|
|
152
134
|
* Returns an url to the associated information
|
|
153
135
|
*/
|
|
@@ -158,7 +140,7 @@ export declare class GroupOfVariables extends ProfileItemBase {
|
|
|
158
140
|
variables: (EditorVariable | GroupOfVariables)[];
|
|
159
141
|
type: "group";
|
|
160
142
|
isCollection: true;
|
|
161
|
-
constructor(profile: EditorProfile | null | undefined, label: IIntlString | string, variables?: (EditorVariable | GroupOfVariables)[]);
|
|
143
|
+
constructor(profile: EditorProfile | null | undefined, label: types.IIntlString | string, variables?: (EditorVariable | GroupOfVariables)[]);
|
|
162
144
|
passFilter(): boolean;
|
|
163
145
|
}
|
|
164
146
|
export declare class DictionaryVariable extends CollectionBasedVariable {
|
|
@@ -168,11 +150,12 @@ export declare class DictionaryVariable extends CollectionBasedVariable {
|
|
|
168
150
|
* The variables may contain grouping.
|
|
169
151
|
*/
|
|
170
152
|
dictionaryVariables: EditorVariable[];
|
|
171
|
-
constructor(props: ConstructorProperties<IProfileDictionary>);
|
|
172
|
-
|
|
153
|
+
constructor(owner: CollectionBasedVariable | undefined, props: ConstructorProperties<types.IProfileDictionary>);
|
|
154
|
+
loadSource(): Promise<void>;
|
|
155
|
+
protected loadPropertyDeclarations(declarations: types.IProfileVariable[] | undefined): void;
|
|
173
156
|
private createVariableInstances;
|
|
174
157
|
private createVariableInstance;
|
|
175
|
-
toProfileVariableDefinition(): IProfileVariable;
|
|
158
|
+
toProfileVariableDefinition(): types.IProfileVariable;
|
|
176
159
|
}
|
|
177
160
|
interface IRelationshipsProperties {
|
|
178
161
|
exposeRelationships: boolean;
|
|
@@ -180,16 +163,16 @@ interface IRelationshipsProperties {
|
|
|
180
163
|
}
|
|
181
164
|
declare abstract class SourceBasedVariable extends CollectionBasedVariable {
|
|
182
165
|
private relationshipsProperties?;
|
|
183
|
-
protected _definition?: FeatureDefinition | FeatureSetDefinition;
|
|
184
|
-
protected _source: SupportedSource | null;
|
|
185
|
-
protected _loadPromise?: Promise<SupportedSource | null>;
|
|
186
|
-
constructor(props: ConstructorProperties<IProfileFeature | IProfileFeatureSet>, relationshipsProperties?: IRelationshipsProperties | undefined);
|
|
187
|
-
get title(): IIntlString | string;
|
|
166
|
+
protected _definition?: types.FeatureDefinition | types.FeatureSetDefinition;
|
|
167
|
+
protected _source: types.SupportedSource | null;
|
|
168
|
+
protected _loadPromise?: Promise<types.SupportedSource | null>;
|
|
169
|
+
constructor(owner: CollectionBasedVariable | undefined, props: ConstructorProperties<types.IProfileFeature | types.IProfileFeatureSet>, relationshipsProperties?: IRelationshipsProperties | undefined);
|
|
170
|
+
get title(): types.IIntlString | string;
|
|
188
171
|
get url(): string;
|
|
189
172
|
get informationUrl(): string | null;
|
|
190
173
|
get informationType(): string;
|
|
191
|
-
loadSource(): Promise<SupportedSource | null>;
|
|
192
|
-
protected abstract _loadSource(): Promise<SupportedSource | null>;
|
|
174
|
+
loadSource(): Promise<types.SupportedSource | null>;
|
|
175
|
+
protected abstract _loadSource(): Promise<types.SupportedSource | null>;
|
|
193
176
|
private _getValueSnippet;
|
|
194
177
|
private _getSubtypeOrDomainNameSnippet;
|
|
195
178
|
protected _getFieldProperty(field: __esri.Field): EditorVariable;
|
|
@@ -197,31 +180,34 @@ declare abstract class SourceBasedVariable extends CollectionBasedVariable {
|
|
|
197
180
|
private _getSubtypeDomainDictionary;
|
|
198
181
|
private _getFeatureTypeDomainDictionary;
|
|
199
182
|
private _getFieldDomainDictionary;
|
|
183
|
+
private _getTypeOrSubtypeDomainGroup;
|
|
184
|
+
private _getCodedValueDomainGroup;
|
|
185
|
+
private _getDomainValuesGroup;
|
|
200
186
|
protected _createDomainDictionary(field: __esri.Field): DictionaryVariable;
|
|
201
187
|
protected _getRelationshipsProperty(): Promise<GroupOfVariables | null>;
|
|
202
188
|
}
|
|
203
189
|
export declare class FeatureVariable extends SourceBasedVariable {
|
|
204
190
|
type: "feature";
|
|
205
|
-
constructor(props: ConstructorProperties<IProfileFeature>);
|
|
206
|
-
get title(): IIntlString | string;
|
|
207
|
-
protected _loadSource(): Promise<SupportedSource | null>;
|
|
208
|
-
toProfileVariableDefinition(): IProfileVariable;
|
|
191
|
+
constructor(owner: CollectionBasedVariable | undefined, props: ConstructorProperties<types.IProfileFeature>);
|
|
192
|
+
get title(): types.IIntlString | string;
|
|
193
|
+
protected _loadSource(): Promise<types.SupportedSource | null>;
|
|
194
|
+
toProfileVariableDefinition(): types.IProfileVariable;
|
|
209
195
|
}
|
|
210
196
|
export declare class FeatureSetVariable extends SourceBasedVariable {
|
|
211
197
|
private featureSetSnippets;
|
|
212
198
|
type: "featureSet";
|
|
213
|
-
protected _definition?: FeatureSetDefinition;
|
|
214
|
-
constructor(props: ConstructorProperties<IProfileFeatureSet>, featureSetSnippets?: ValueVariable[], relationshipProps?: IRelationshipsProperties);
|
|
215
|
-
get title(): IIntlString | string;
|
|
216
|
-
protected _loadSource(): Promise<SupportedSource | null>;
|
|
217
|
-
toProfileVariableDefinition(): IProfileVariable;
|
|
199
|
+
protected _definition?: types.FeatureSetDefinition;
|
|
200
|
+
constructor(owner: CollectionBasedVariable | undefined, props: ConstructorProperties<types.IProfileFeatureSet>, featureSetSnippets?: ValueVariable[], relationshipProps?: IRelationshipsProperties);
|
|
201
|
+
get title(): types.IIntlString | string;
|
|
202
|
+
protected _loadSource(): Promise<types.SupportedSource | null>;
|
|
203
|
+
toProfileVariableDefinition(): types.IProfileVariable;
|
|
218
204
|
}
|
|
219
205
|
export declare class FeatureSetCollectionVariable extends CollectionBasedVariable {
|
|
220
206
|
type: "featureSetCollection";
|
|
221
207
|
private _definition?;
|
|
222
208
|
private _loadPromise?;
|
|
223
209
|
private _featureSetCollections;
|
|
224
|
-
constructor(props: ConstructorProperties<IProfileFeatureSetCollection>);
|
|
210
|
+
constructor(owner: CollectionBasedVariable | undefined, props: ConstructorProperties<types.IProfileFeatureSetCollection>);
|
|
225
211
|
get informationUrl(): string | null;
|
|
226
212
|
get informationType(): string;
|
|
227
213
|
loadSource(): Promise<IFeatureSetCollections | null>;
|
|
@@ -233,7 +219,7 @@ export declare class FeatureSetCollectionVariable extends CollectionBasedVariabl
|
|
|
233
219
|
private _convertWebMapLayersToVariables;
|
|
234
220
|
private _createFeatureSetVariable;
|
|
235
221
|
private _makeFeatureSetSnippets;
|
|
236
|
-
toProfileVariableDefinition(): IProfileVariable;
|
|
222
|
+
toProfileVariableDefinition(): types.IProfileVariable;
|
|
237
223
|
}
|
|
238
224
|
/**
|
|
239
225
|
* The EditorProfile is an object that represents an Arcade Profile.
|
|
@@ -244,11 +230,11 @@ export declare class FeatureSetCollectionVariable extends CollectionBasedVariabl
|
|
|
244
230
|
* They need to be loaded asynchronously to get the metadata necessary for validation and completion.
|
|
245
231
|
*/
|
|
246
232
|
export declare class EditorProfile extends DictionaryVariable {
|
|
247
|
-
readonly definition: IEditorProfileDefinition | undefined;
|
|
248
|
-
readonly intlStrings: IndexedProfileStrings;
|
|
233
|
+
readonly definition: types.IEditorProfileDefinition | undefined;
|
|
234
|
+
readonly intlStrings: types.IndexedProfileStrings;
|
|
249
235
|
readonly locale: string;
|
|
250
236
|
variables: EditorVariable[];
|
|
251
|
-
constructor(definition: IEditorProfileDefinition | undefined, intlStrings: IndexedProfileStrings, locale?: string);
|
|
237
|
+
constructor(definition: types.IEditorProfileDefinition | undefined, intlStrings: types.IndexedProfileStrings, locale?: string);
|
|
252
238
|
/**
|
|
253
239
|
* Returns true if the profile supports feature set functions for snippets.
|
|
254
240
|
*/
|
|
@@ -261,6 +247,6 @@ export declare class EditorProfile extends DictionaryVariable {
|
|
|
261
247
|
* Returns the EditorProfile as a json. The EditorProfile may have been updated. This function allows to
|
|
262
248
|
* get the new json representing mutations.
|
|
263
249
|
*/
|
|
264
|
-
toEditorProfileDefinition(): IEditorProfileDefinition;
|
|
250
|
+
toEditorProfileDefinition(): types.IEditorProfileDefinition;
|
|
265
251
|
}
|
|
266
252
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BundleType, ApiItem, ApiVariableType, ProfileId } from "@arcgis/arcade-languageservice";
|
|
1
|
+
import type { BundleType, ApiItem, ApiVariableType, ProfileId, ProfileStrings } from "@arcgis/arcade-languageservice";
|
|
2
2
|
/**
|
|
3
3
|
* Editor Profile definition used for configuring the editor:
|
|
4
4
|
* - presenting to the user the Arcade API
|
|
@@ -208,3 +208,124 @@ export interface IPredefinedProfile {
|
|
|
208
208
|
*/
|
|
209
209
|
hiddenApiItems?: string[];
|
|
210
210
|
}
|
|
211
|
+
export type IndexedProfileStrings = ProfileStrings & Record<string, string | undefined>;
|
|
212
|
+
/**
|
|
213
|
+
* Describe the support source for some of the editor variables.
|
|
214
|
+
*/
|
|
215
|
+
export type SupportedSource = __esri.FeatureSet | IFieldsDefinition | SupportedLayer;
|
|
216
|
+
/**
|
|
217
|
+
* Layer that supports title.
|
|
218
|
+
*/
|
|
219
|
+
export interface ITitleCapableSource {
|
|
220
|
+
/**
|
|
221
|
+
* The title of the source.
|
|
222
|
+
*/
|
|
223
|
+
title: string;
|
|
224
|
+
}
|
|
225
|
+
/**
|
|
226
|
+
* Layer that supports url.
|
|
227
|
+
*/
|
|
228
|
+
export interface IUrlCapableSource {
|
|
229
|
+
/**
|
|
230
|
+
* The url of the source.
|
|
231
|
+
*/
|
|
232
|
+
url: string;
|
|
233
|
+
}
|
|
234
|
+
/**
|
|
235
|
+
* Layer that supports layer id.
|
|
236
|
+
*/
|
|
237
|
+
export interface ILayerIdCapableSource {
|
|
238
|
+
/**
|
|
239
|
+
* The layer id of the source.
|
|
240
|
+
*/
|
|
241
|
+
layerId: number;
|
|
242
|
+
}
|
|
243
|
+
/**
|
|
244
|
+
* Layer that supports field domains.
|
|
245
|
+
*/
|
|
246
|
+
export interface IDomainsCapableSource {
|
|
247
|
+
/**
|
|
248
|
+
* Returns the Domain associated with the given field name.
|
|
249
|
+
*/
|
|
250
|
+
getFieldDomain: (fieldName: string) => __esri.Domain | null;
|
|
251
|
+
}
|
|
252
|
+
/**
|
|
253
|
+
* Layer that implements types
|
|
254
|
+
*/
|
|
255
|
+
export interface IFeatureTypesCapableSource extends IDomainsCapableSource {
|
|
256
|
+
/**
|
|
257
|
+
* The name of the field holding the type ID or subtypes for the features.
|
|
258
|
+
*/
|
|
259
|
+
typeIdField: string;
|
|
260
|
+
/**
|
|
261
|
+
* An array of subtypes defined in the feature service exposed by ArcGIS REST API.
|
|
262
|
+
*/
|
|
263
|
+
types: __esri.FeatureType[];
|
|
264
|
+
}
|
|
265
|
+
/**
|
|
266
|
+
* Layer that has a subtype field
|
|
267
|
+
*/
|
|
268
|
+
export interface ISubtypeFieldCapableSource extends IDomainsCapableSource {
|
|
269
|
+
/**
|
|
270
|
+
* The name of the field which holds the id of the subtypes.
|
|
271
|
+
*/
|
|
272
|
+
subtypeField: string;
|
|
273
|
+
}
|
|
274
|
+
/**
|
|
275
|
+
* Layer that exposes subtypes.
|
|
276
|
+
*/
|
|
277
|
+
export interface ISubtypesCapableSource extends ISubtypeFieldCapableSource {
|
|
278
|
+
/**
|
|
279
|
+
* An array of subtypes defined in the layer.
|
|
280
|
+
*/
|
|
281
|
+
subtypes: __esri.Subtype[];
|
|
282
|
+
}
|
|
283
|
+
/**
|
|
284
|
+
* Layer that supports relationships.
|
|
285
|
+
*/
|
|
286
|
+
export interface IRelationshipsCapableSource extends ILayerIdCapableSource {
|
|
287
|
+
/**
|
|
288
|
+
* Array of relationships set up for the layer.
|
|
289
|
+
*/
|
|
290
|
+
relationships: __esri.Relationship[];
|
|
291
|
+
/**
|
|
292
|
+
* The absolute URL of the REST endpoint of the layer, non-spatial table or service.
|
|
293
|
+
*/
|
|
294
|
+
url: string;
|
|
295
|
+
}
|
|
296
|
+
/**
|
|
297
|
+
* Layer that is capable of being npn-spatial.
|
|
298
|
+
*/
|
|
299
|
+
export interface ITableCapableSource {
|
|
300
|
+
/**
|
|
301
|
+
* Returns `true` if the layer is loaded from a non-spatial table in a service.
|
|
302
|
+
*/
|
|
303
|
+
isTable: boolean;
|
|
304
|
+
}
|
|
305
|
+
export interface ILoadableSource {
|
|
306
|
+
/**
|
|
307
|
+
* Loads the resources referenced by the layer.
|
|
308
|
+
*/
|
|
309
|
+
load: (signal?: AbortSignal) => Promise<any>;
|
|
310
|
+
}
|
|
311
|
+
/**
|
|
312
|
+
* Represents a string that will have to be manufactured from a Intl strings resource.
|
|
313
|
+
*/
|
|
314
|
+
export interface IIntlString {
|
|
315
|
+
/**
|
|
316
|
+
* The intl code in the Intl strings resource.
|
|
317
|
+
*/
|
|
318
|
+
code: string;
|
|
319
|
+
/**
|
|
320
|
+
* The properties that the Intl string may leverage during the composition of the string.
|
|
321
|
+
* Example:
|
|
322
|
+
* - the intl string is defined as: "webmaptitle": "Web Map - {title}"
|
|
323
|
+
* - the formatValues should be an object `{title: "California Fires"}`
|
|
324
|
+
*/
|
|
325
|
+
formatValues?: Record<string, string>;
|
|
326
|
+
}
|
|
327
|
+
export interface LayerInfo {
|
|
328
|
+
id: number;
|
|
329
|
+
type: string;
|
|
330
|
+
capabilities?: string;
|
|
331
|
+
}
|
|
@@ -1,19 +1,32 @@
|
|
|
1
|
-
import type
|
|
2
|
-
export declare function newPortalItem(definition: __esri.PortalItemProperties): Promise<__esri.PortalItem>;
|
|
1
|
+
import type * as types from "./types";
|
|
3
2
|
export declare function newFeatureLayer(definition: __esri.FeatureLayerProperties): Promise<__esri.FeatureLayer>;
|
|
4
|
-
export declare function
|
|
5
|
-
export declare function isSupportedLayerInstance(item: unknown): item is SupportedLayer;
|
|
3
|
+
export declare function isSupportedLayerInstance(item: unknown): item is types.SupportedLayer;
|
|
6
4
|
export declare function isFeatureSetInstance(item: unknown): item is __esri.FeatureSet;
|
|
7
5
|
export declare function isQueryableLayerInstance(item: unknown): item is __esri.FeatureLayer;
|
|
8
6
|
export declare function isSubtypeSublayerInstance(item: unknown): item is __esri.SubtypeSublayer;
|
|
9
7
|
export declare function isGroupLayerInstance(item: unknown): item is __esri.GroupLayer;
|
|
10
8
|
export declare function isMapImageLayerInstance(item: unknown): item is __esri.MapImageLayer;
|
|
11
9
|
export declare function isMapInstance(item: unknown): item is __esri.WebMap | __esri.WebScene;
|
|
12
|
-
export declare function isPortalItemDefinition(item: unknown): item is IPortalItemDefinition;
|
|
13
|
-
export declare function isFeatureLayerItemDefinition(item: unknown): item is IFeatureLayerItemDefinition;
|
|
14
|
-
export declare function isFieldsDefinition(item: unknown): item is IFieldsDefinition;
|
|
15
|
-
export declare function isUrlDefinition(item: unknown): item is IUrlDefinition;
|
|
10
|
+
export declare function isPortalItemDefinition(item: unknown): item is types.IPortalItemDefinition;
|
|
11
|
+
export declare function isFeatureLayerItemDefinition(item: unknown): item is types.IFeatureLayerItemDefinition;
|
|
12
|
+
export declare function isFieldsDefinition(item: unknown): item is types.IFieldsDefinition;
|
|
13
|
+
export declare function isUrlDefinition(item: unknown): item is types.IUrlDefinition;
|
|
16
14
|
export declare function isSubtypeInstance(item: unknown): item is __esri.Subtype;
|
|
17
15
|
export declare function isCodedValueDomainInstance(item: unknown): item is __esri.CodedValueDomain;
|
|
18
16
|
export declare function isInheritedDomainInstance(item: unknown): item is __esri.InheritedDomain;
|
|
19
|
-
export declare function isPredefinedProfile(item: unknown): item is IPredefinedProfile;
|
|
17
|
+
export declare function isPredefinedProfile(item: unknown): item is types.IPredefinedProfile;
|
|
18
|
+
export declare function isTitleCapableSource(item: unknown): item is types.ITitleCapableSource;
|
|
19
|
+
export declare function isUrlCapableSource(item: unknown): item is types.IUrlCapableSource;
|
|
20
|
+
export declare function isLayerIdCapableSource(item: unknown): item is types.ILayerIdCapableSource;
|
|
21
|
+
export declare function isFeatureTypesCapableLayer(item: unknown): item is types.IFeatureTypesCapableSource;
|
|
22
|
+
export declare function isDomainsCapableLayer(item: unknown): item is types.IDomainsCapableSource;
|
|
23
|
+
export declare function isSubtypeFieldCapableLayer(item: unknown): item is types.ISubtypeFieldCapableSource;
|
|
24
|
+
export declare function isSubtypesCapableLayer(item: unknown): item is types.ISubtypesCapableSource;
|
|
25
|
+
export declare function isRelationshipsCapableLayer(item: unknown): item is types.IRelationshipsCapableSource;
|
|
26
|
+
export declare function isTableCapableLayer(item: unknown): item is types.ITableCapableSource;
|
|
27
|
+
export declare function isLoadableSource(item: unknown): item is types.ILoadableSource;
|
|
28
|
+
export declare function supportedSourceFromDefinition(definition: types.FeatureDefinition | types.FeatureSetDefinition | null | undefined): Promise<types.SupportedSource | null>;
|
|
29
|
+
export declare function serviceMetaData(url: string): Promise<{
|
|
30
|
+
layers: types.LayerInfo[];
|
|
31
|
+
tables: types.LayerInfo[];
|
|
32
|
+
}>;
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@arcgis/coding-components",
|
|
3
3
|
"description": "Contains components for editing code in different languages. The currently supported languages are html, css, json, TypeScript, JavaScript, and Arcade.",
|
|
4
4
|
"homepage": "https://developers.arcgis.com/javascript/latest/",
|
|
5
|
-
"version": "4.29.0-beta.
|
|
5
|
+
"version": "4.29.0-beta.109",
|
|
6
6
|
"module": "dist/components/index.js",
|
|
7
7
|
"main": "dist/index.cjs.js",
|
|
8
8
|
"types": "dist/types/index.d.ts",
|
|
@@ -48,18 +48,18 @@
|
|
|
48
48
|
"generate": "stencil generate"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@arcgis/arcade-languageservice": "4.29.0-beta.
|
|
51
|
+
"@arcgis/arcade-languageservice": "4.29.0-beta.109",
|
|
52
52
|
"@stencil/core": "^4.10.0",
|
|
53
53
|
"monaco-editor": "^0.45.0",
|
|
54
54
|
"vscode-languageserver-types": "^3.17.3"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
|
-
"@arcgis/components-plugins": "4.29.0-beta.
|
|
58
|
-
"@arcgis/components-utils": "4.29.0-beta.
|
|
57
|
+
"@arcgis/components-plugins": "4.29.0-beta.109",
|
|
58
|
+
"@arcgis/components-utils": "4.29.0-beta.109",
|
|
59
59
|
"@arcgis/core": ">=4.29.0-next <4.30",
|
|
60
|
-
"@arcgis/core-adapter": "4.29.0-beta.
|
|
61
|
-
"@arcgis/storybook-utils": "4.29.0-beta.
|
|
62
|
-
"@arcgis/typescript-config": "4.29.0-beta.
|
|
60
|
+
"@arcgis/core-adapter": "4.29.0-beta.109",
|
|
61
|
+
"@arcgis/storybook-utils": "4.29.0-beta.109",
|
|
62
|
+
"@arcgis/typescript-config": "4.29.0-beta.109",
|
|
63
63
|
"@esri/calcite-components": "^2.4.0",
|
|
64
64
|
"@stencil/angular-output-target": "0.8.3",
|
|
65
65
|
"@stencil/react-output-target": "0.5.3",
|
|
@@ -98,5 +98,5 @@
|
|
|
98
98
|
"@arcgis/core": ">=4.29.0-next <4.30",
|
|
99
99
|
"@esri/calcite-components": ">=2.2.0 <3.0.0"
|
|
100
100
|
},
|
|
101
|
-
"gitHead": "
|
|
101
|
+
"gitHead": "87e80be1dbe5580979d180181496957e76d22cb4"
|
|
102
102
|
}
|