@arcgis/coding-components 5.1.0-next.55 → 5.1.0-next.57
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/cdn/2XTHR2WZ.js +2 -0
- package/dist/cdn/3QKEF7NL.js +2 -0
- package/dist/cdn/{RJRCBNNO.js → 57WNN7NN.js} +1 -1
- package/dist/cdn/6E4U2MLJ.js +7 -0
- package/dist/cdn/{PKG2K3V2.js → A2OAI373.js} +1 -1
- package/dist/cdn/AAMHIVYL.js +2 -0
- package/dist/cdn/AHDVGYFC.js +2 -0
- package/dist/cdn/CZ2DJPO4.js +2 -0
- package/dist/cdn/D6BJOZGQ.js +2 -0
- package/dist/cdn/DGFH2WPL.js +2 -0
- package/dist/cdn/FLNLMLTL.js +2 -0
- package/dist/cdn/{UZJHWA6T.js → FUBRHCFC.js} +1 -1
- package/dist/cdn/{PVL67WGX.js → FYW5NKEJ.js} +1 -1
- package/dist/cdn/LSBKL6MO.js +6 -0
- package/dist/cdn/MVAB75O7.js +2 -0
- package/dist/cdn/QGCNEBN6.js +4 -0
- package/dist/cdn/SV4IPD4A.js +2 -0
- package/dist/cdn/T6RFLFX3.js +2 -0
- package/dist/cdn/TBTVVU6V.js +2 -0
- package/dist/cdn/V63C7RKJ.js +2 -0
- package/dist/cdn/{6YD47X7H.js → VILW5AVK.js} +1 -1
- package/dist/cdn/VPP77CFW.js +2 -0
- package/dist/cdn/W2PBO44R.js +12 -0
- package/dist/cdn/{4A2CLADY.js → WNKEPEXN.js} +1 -1
- package/dist/cdn/{54ZOADNQ.js → XU4GWM7C.js} +1 -1
- package/dist/cdn/YPMKBMXS.js +2 -0
- package/dist/cdn/ZCXZTSQU.js +2 -0
- package/dist/cdn/ZHZFKZA7.js +2 -0
- package/dist/cdn/assets/arcade-editor/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/code-editor/sql-expr.worker.js +119 -116
- package/dist/cdn/assets/code-editor/sql-layer.worker.js +10087 -0
- package/dist/cdn/assets/editor-variables/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/sql-expression-editor/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/sql-layer-editor/t9n/messages.en.json +1 -0
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/main.css +1 -1
- package/dist/chunks/arcade-defaults.js +98 -96
- package/dist/chunks/arcade-service-accessors.js +40 -28
- package/dist/chunks/bigquery.js +186 -0
- package/dist/chunks/colorize.js +1 -1
- package/dist/chunks/fields.js +2 -2
- package/dist/chunks/language-defaults-base.js +733 -464
- package/dist/chunks/postgres.js +209 -0
- package/dist/chunks/setup-monaco-theme.js +28 -20
- package/dist/chunks/sql-expr-defaults.js +11 -10
- package/dist/chunks/sql-layer-defaults.js +231 -0
- package/dist/chunks/sql-layer-mode.js +301 -0
- package/dist/chunks/sqlServer.js +288 -0
- package/dist/chunks/utils.js +184 -0
- package/dist/components/arcgis-arcade-coding-assistant/customElement.js +134 -123
- package/dist/components/arcgis-arcade-editor/customElement.d.ts +17 -0
- package/dist/components/arcgis-arcade-editor/customElement.js +22 -22
- package/dist/components/arcgis-code-editor/customElement.d.ts +2 -1
- package/dist/components/arcgis-code-editor/customElement.js +91 -71
- package/dist/components/arcgis-editor-variables/customElement.js +50 -47
- package/dist/components/arcgis-sql-expression-editor/customElement.d.ts +12 -0
- package/dist/components/arcgis-sql-expression-editor/customElement.js +17 -17
- package/dist/components/arcgis-sql-layer-editor/customElement.d.ts +50 -0
- package/dist/components/arcgis-sql-layer-editor/customElement.js +92 -0
- package/dist/components/arcgis-sql-layer-editor/index.d.ts +1 -0
- package/dist/components/arcgis-sql-layer-editor/index.js +7 -0
- package/dist/components/types.d.ts +79 -2
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/index.d.ts +10 -0
- package/dist/loader.js +6 -5
- package/dist/types/lumina.d.ts +9 -2
- package/dist/types/preact.d.ts +10 -2
- package/dist/types/react.d.ts +11 -2
- package/dist/types/stencil.d.ts +9 -2
- package/dist/utils/data-catalog-datastore.d.ts +170 -0
- package/package.json +5 -5
- package/dist/cdn/5CO7XWOT.js +0 -2
- package/dist/cdn/5FXY5U3T.js +0 -2
- package/dist/cdn/CYC4AWZE.js +0 -2
- package/dist/cdn/GVO3LEFV.js +0 -2
- package/dist/cdn/J5X2KSYD.js +0 -2
- package/dist/cdn/QHJAF7L3.js +0 -6
- package/dist/cdn/T7GEIGWF.js +0 -2
- package/dist/cdn/TAXRVBJC.js +0 -2
- package/dist/cdn/VR5CATAW.js +0 -2
- package/dist/cdn/WTNM2NCZ.js +0 -2
- package/dist/cdn/XEUG3X2W.js +0 -2
- package/dist/cdn/ZJCI6LP6.js +0 -12
- package/dist/cdn/ZSVJAJND.js +0 -4
package/dist/types/stencil.d.ts
CHANGED
|
@@ -4,10 +4,11 @@ import type { ArcgisCodeEditor } from "../components/arcgis-code-editor/customEl
|
|
|
4
4
|
import type { CodeEditorShell } from "../components/arcgis-code-editor-shell/customElement.js";
|
|
5
5
|
import type { ArcgisCodeViewer } from "../components/arcgis-code-viewer/customElement.js";
|
|
6
6
|
import type { ArcgisSqlExpressionEditor } from "../components/arcgis-sql-expression-editor/customElement.js";
|
|
7
|
+
import type { ArcgisSqlLayerEditor } from "../components/arcgis-sql-layer-editor/customElement.js";
|
|
7
8
|
import { JSXBase as StencilJsx } from "@stencil/core/internal";
|
|
8
9
|
import type { EventHandler } from "@arcgis/lumina";
|
|
9
10
|
|
|
10
|
-
interface StencilArcgisArcadeEditor extends Partial<Pick<ArcgisArcadeEditor, "arcadeAssistant" | "customPanels" | "editorOptions" | "hideDocumentationActions" | "hideSideBar" | "openedSidePanel" | "profile" | "script" | "sideActionBarExpanded" | "snippets" | "suggestions" | "testData">>, StencilJsx.HTMLAttributes<ArcgisArcadeEditor> {
|
|
11
|
+
interface StencilArcgisArcadeEditor extends Partial<Pick<ArcgisArcadeEditor, "arcadeAssistant" | "customPanels" | "editorOptions" | "hideDocumentationActions" | "hideSideBar" | "messageOverrides" | "openedSidePanel" | "profile" | "script" | "sideActionBarExpanded" | "snippets" | "suggestions" | "testData">>, StencilJsx.HTMLAttributes<ArcgisArcadeEditor> {
|
|
11
12
|
onArcgisDiagnosticsChange?: EventHandler<ArcgisArcadeEditor["arcgisDiagnosticsChange"]>;
|
|
12
13
|
onArcgisScriptChange?: EventHandler<ArcgisArcadeEditor["arcgisScriptChange"]>;
|
|
13
14
|
}
|
|
@@ -23,17 +24,23 @@ interface StencilArcgisCodeEditorShell extends StencilJsx.HTMLAttributes<CodeEdi
|
|
|
23
24
|
interface StencilArcgisCodeViewer extends Partial<Pick<ArcgisCodeViewer, "language" | "round">>, StencilJsx.HTMLAttributes<ArcgisCodeViewer> {
|
|
24
25
|
}
|
|
25
26
|
|
|
26
|
-
interface StencilArcgisSqlExpressionEditor extends Partial<Pick<ArcgisSqlExpressionEditor, "hideSideBar" | "profile" | "script">>, StencilJsx.HTMLAttributes<ArcgisSqlExpressionEditor> {
|
|
27
|
+
interface StencilArcgisSqlExpressionEditor extends Partial<Pick<ArcgisSqlExpressionEditor, "hideSideBar" | "messageOverrides" | "profile" | "script">>, StencilJsx.HTMLAttributes<ArcgisSqlExpressionEditor> {
|
|
27
28
|
onArcgisDiagnosticsChange?: EventHandler<ArcgisSqlExpressionEditor["arcgisDiagnosticsChange"]>;
|
|
28
29
|
onArcgisScriptChange?: EventHandler<ArcgisSqlExpressionEditor["arcgisScriptChange"]>;
|
|
29
30
|
}
|
|
30
31
|
|
|
32
|
+
interface StencilArcgisSqlLayerEditor extends Partial<Pick<ArcgisSqlLayerEditor, "hideSideBar" | "messageOverrides" | "openedSidePanel" | "profile" | "script">>, StencilJsx.HTMLAttributes<ArcgisSqlLayerEditor> {
|
|
33
|
+
onArcgisDiagnosticsChange?: EventHandler<ArcgisSqlLayerEditor["arcgisDiagnosticsChange"]>;
|
|
34
|
+
onArcgisScriptChange?: EventHandler<ArcgisSqlLayerEditor["arcgisScriptChange"]>;
|
|
35
|
+
}
|
|
36
|
+
|
|
31
37
|
interface ExposedElements {
|
|
32
38
|
"arcgis-arcade-editor": StencilArcgisArcadeEditor;
|
|
33
39
|
"arcgis-code-editor": StencilArcgisCodeEditor;
|
|
34
40
|
"arcgis-code-editor-shell": StencilArcgisCodeEditorShell;
|
|
35
41
|
"arcgis-code-viewer": StencilArcgisCodeViewer;
|
|
36
42
|
"arcgis-sql-expression-editor": StencilArcgisSqlExpressionEditor;
|
|
43
|
+
"arcgis-sql-layer-editor": StencilArcgisSqlLayerEditor;
|
|
37
44
|
}
|
|
38
45
|
|
|
39
46
|
export namespace JSX {
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
import type Field from "@arcgis/core/layers/support/Field.js";
|
|
2
|
+
import type { RequestOptions } from "@arcgis/core/request/types.js";
|
|
3
|
+
import type { default as ExternalPortal } from "@arcgis/core/portal/Portal.js";
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Information about a data catalog datastore.
|
|
7
|
+
*
|
|
8
|
+
* @since 5.1
|
|
9
|
+
*/
|
|
10
|
+
export interface DataCatalogDatastoreInfo {
|
|
11
|
+
/**
|
|
12
|
+
* The name of the datastore.
|
|
13
|
+
*
|
|
14
|
+
* @since 5.1
|
|
15
|
+
*/
|
|
16
|
+
name: string;
|
|
17
|
+
/**
|
|
18
|
+
* The datastore type.
|
|
19
|
+
*
|
|
20
|
+
* @since 5.1
|
|
21
|
+
*/
|
|
22
|
+
type: string;
|
|
23
|
+
/**
|
|
24
|
+
* The datastore identifier.
|
|
25
|
+
*
|
|
26
|
+
* @since 5.1
|
|
27
|
+
*/
|
|
28
|
+
datastoreId: string;
|
|
29
|
+
/**
|
|
30
|
+
* The database platform.
|
|
31
|
+
*
|
|
32
|
+
* @since 5.1
|
|
33
|
+
*/
|
|
34
|
+
databasePlatform: DatabasePlatform;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Information about a dataset in a data catalog datastore.
|
|
39
|
+
*
|
|
40
|
+
* @since 5.1
|
|
41
|
+
*/
|
|
42
|
+
export interface DataCatalogDatasetInfo {
|
|
43
|
+
/**
|
|
44
|
+
* The dataset name.
|
|
45
|
+
*
|
|
46
|
+
* @since 5.1
|
|
47
|
+
*/
|
|
48
|
+
name: string;
|
|
49
|
+
/**
|
|
50
|
+
* The dataset type.
|
|
51
|
+
*
|
|
52
|
+
* @since 5.1
|
|
53
|
+
*/
|
|
54
|
+
type: string;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Response for the data catalog datasets endpoint.
|
|
59
|
+
*
|
|
60
|
+
* @since 5.1
|
|
61
|
+
*/
|
|
62
|
+
export interface DataCatalogDatasetsResponse {
|
|
63
|
+
/**
|
|
64
|
+
* The list of datasets in the datastore.
|
|
65
|
+
*
|
|
66
|
+
* @since 5.1
|
|
67
|
+
*/
|
|
68
|
+
datasets: DataCatalogDatasetInfo[];
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Information about a field from a table description response.
|
|
73
|
+
*
|
|
74
|
+
* @since 5.1
|
|
75
|
+
*/
|
|
76
|
+
export interface DataCatalogFieldInfo {
|
|
77
|
+
/**
|
|
78
|
+
* The field name.
|
|
79
|
+
*
|
|
80
|
+
* @since 5.1
|
|
81
|
+
*/
|
|
82
|
+
name: string;
|
|
83
|
+
/**
|
|
84
|
+
* The normalized field type.
|
|
85
|
+
*
|
|
86
|
+
* This is converted from the server's `esriFieldType*` value into the same field type family
|
|
87
|
+
* used elsewhere in the editor codebase so icon and value-type helpers can operate on it.
|
|
88
|
+
*
|
|
89
|
+
* @since 5.1
|
|
90
|
+
*/
|
|
91
|
+
type: Field["type"];
|
|
92
|
+
/**
|
|
93
|
+
* The raw field type returned by the tableDescription endpoint.
|
|
94
|
+
*
|
|
95
|
+
* @since 5.1
|
|
96
|
+
*/
|
|
97
|
+
serverType: string;
|
|
98
|
+
/**
|
|
99
|
+
* Indicates whether the field allows null values.
|
|
100
|
+
*
|
|
101
|
+
* @since 5.1
|
|
102
|
+
*/
|
|
103
|
+
nullable: boolean;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* Response for a table description request.
|
|
108
|
+
*
|
|
109
|
+
* @since 5.1
|
|
110
|
+
*/
|
|
111
|
+
export interface DataCatalogTableDescription {
|
|
112
|
+
/**
|
|
113
|
+
* The fields available in the table.
|
|
114
|
+
*
|
|
115
|
+
* @since 5.1
|
|
116
|
+
*/
|
|
117
|
+
fields: DataCatalogFieldInfo[];
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* Represents a portal data catalog datastore and provides helper methods to query
|
|
122
|
+
* datastore details, datasets, and table descriptions.
|
|
123
|
+
*
|
|
124
|
+
* @since 5.1
|
|
125
|
+
*/
|
|
126
|
+
export default class DataCatalogDatastore {
|
|
127
|
+
constructor(options: {
|
|
128
|
+
itemId: string;
|
|
129
|
+
portal: Portal;
|
|
130
|
+
serviceUrl: string;
|
|
131
|
+
requestOptions?: Nil | RequestOptions;
|
|
132
|
+
});
|
|
133
|
+
readonly itemId: string;
|
|
134
|
+
readonly portal: Portal;
|
|
135
|
+
readonly serviceUrl: string;
|
|
136
|
+
/**
|
|
137
|
+
* Fetches datasets for the datastore.
|
|
138
|
+
*
|
|
139
|
+
* @param options - Additional options used for the request.
|
|
140
|
+
* @returns Resolves to an array of dataset information.
|
|
141
|
+
* @since 5.1
|
|
142
|
+
*/
|
|
143
|
+
fetchDatasets(options?: Nil | RequestOptions): Promise<DataCatalogDatasetInfo[]>;
|
|
144
|
+
/**
|
|
145
|
+
* Fetches information about the datastore.
|
|
146
|
+
*
|
|
147
|
+
* @param options - Additional options used for the request.
|
|
148
|
+
* @returns Resolves to datastore information.
|
|
149
|
+
* @since 5.1
|
|
150
|
+
*/
|
|
151
|
+
fetchInfo(options?: Nil | RequestOptions): Promise<DataCatalogDatastoreInfo>;
|
|
152
|
+
/**
|
|
153
|
+
* Fetches the table description for the provided table name.
|
|
154
|
+
*
|
|
155
|
+
* @param tableName - The table name.
|
|
156
|
+
* @param options - Additional options used for the request.
|
|
157
|
+
* @returns Resolves to the table description.
|
|
158
|
+
* @since 5.1
|
|
159
|
+
*/
|
|
160
|
+
fetchTableDescription(tableName: string, options?: Nil | RequestOptions): Promise<DataCatalogTableDescription>;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
export type Portal = ExternalPortal
|
|
164
|
+
& {
|
|
165
|
+
request: <T>(url: string, options?: RequestOptions) => Promise<T>;
|
|
166
|
+
};
|
|
167
|
+
|
|
168
|
+
export type Nil = null | undefined;
|
|
169
|
+
|
|
170
|
+
export type DatabasePlatform = "esriDBMS_PostgreSQL" | "esriDBMS_SQLServer";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcgis/coding-components",
|
|
3
|
-
"version": "5.1.0-next.
|
|
3
|
+
"version": "5.1.0-next.57",
|
|
4
4
|
"description": "ArcGIS Coding Components",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ArcGIS",
|
|
@@ -47,10 +47,10 @@
|
|
|
47
47
|
"monaco-editor": "^0.55.1",
|
|
48
48
|
"tslib": "^2.8.1",
|
|
49
49
|
"vscode-languageserver-types": "^3.17.5",
|
|
50
|
-
"@arcgis/arcade-languageservice": "5.1.0-next.
|
|
51
|
-
"@arcgis/languages-api-utils": "5.1.0-next.
|
|
52
|
-
"@arcgis/lumina": "5.1.0-next.
|
|
53
|
-
"@arcgis/toolkit": "5.1.0-next.
|
|
50
|
+
"@arcgis/arcade-languageservice": "5.1.0-next.57",
|
|
51
|
+
"@arcgis/languages-api-utils": "5.1.0-next.57",
|
|
52
|
+
"@arcgis/lumina": "5.1.0-next.57",
|
|
53
|
+
"@arcgis/toolkit": "5.1.0-next.57"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
56
56
|
"@arcgis/core": "^5.1.0-next",
|