@arcgis/coding-components 5.0.0-next.121 → 5.0.0-next.122
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/addons/index.d.ts +1 -0
- package/dist/addons.js +1 -1
- package/dist/cdn/{QA2DO7DS.js → 2DRQ6BNC.js} +2 -2
- package/dist/cdn/{7BF2CF5S.js → 2J6SHWMB.js} +2 -2
- package/dist/cdn/{ROEZTYWL.js → 3JK722XX.js} +1 -1
- package/dist/cdn/{KZ4B2WAC.js → 3PS6M6VD.js} +1 -1
- package/dist/cdn/{PHAZOIR4.js → 4DTAVXBS.js} +2 -2
- package/dist/cdn/{5MAW2K7P.js → 55RCZ6XP.js} +2 -2
- package/dist/cdn/{SWLMVLPO.js → 5QI5UTMM.js} +2 -2
- package/dist/cdn/{5SCKNSE3.js → 6ATXY4DQ.js} +3 -3
- package/dist/cdn/{GLQJORE3.js → 7TNM3MBK.js} +2 -2
- package/dist/cdn/{PAY27MKM.js → BYEGZCAI.js} +2 -2
- package/dist/cdn/{725GZKJL.js → CJKTWGGK.js} +2 -2
- package/dist/cdn/{UYGWQM4G.js → CUPGVQVT.js} +2 -2
- package/dist/cdn/{YSDUTLMU.js → E5LZXWSX.js} +1 -1
- package/dist/cdn/{2NNEY7SC.js → EBUSMJOT.js} +2 -2
- package/dist/cdn/{754PQVNV.js → ERWJSSYU.js} +2 -2
- package/dist/cdn/{REBFL6OD.js → FMRHPBFR.js} +2 -2
- package/dist/cdn/{53SYKJXV.js → GXZ2X7XU.js} +1 -1
- package/dist/cdn/{4XZ3C4U4.js → HGQ5VLKG.js} +2 -2
- package/dist/cdn/{LR5P7NBO.js → IEG7THXU.js} +2 -2
- package/dist/cdn/{4X2F2FIC.js → JHFPKEPM.js} +2 -2
- package/dist/cdn/{DHXQKLBX.js → JK3CCPVF.js} +2 -2
- package/dist/cdn/{6L7MMQRC.js → JYS5LGFT.js} +2 -2
- package/dist/cdn/{PDTQHEIL.js → KVIMKPYW.js} +2 -2
- package/dist/cdn/{RSPQCPJP.js → LBLAK3PN.js} +2 -2
- package/dist/cdn/{SOIPKOZX.js → LDJSETSD.js} +2 -2
- package/dist/cdn/{MAP3P4WS.js → M66XJTO2.js} +1 -1
- package/dist/cdn/{Z7DONJMA.js → MVLG2MYX.js} +2 -2
- package/dist/cdn/{R6NXM7R2.js → MXJRGL5U.js} +2 -2
- package/dist/cdn/{R7QQNTIQ.js → NAGF2Z2D.js} +1 -1
- package/dist/cdn/{HEMDGEWM.js → ORNQOMPI.js} +1 -1
- package/dist/cdn/{U7DBUMCL.js → P5TZ5UNU.js} +2 -2
- package/dist/cdn/{2RJZQRH3.js → Q5T2KPL2.js} +1 -1
- package/dist/cdn/{4JDOI7X6.js → QEIQAP7D.js} +2 -2
- package/dist/cdn/{56ORFLIK.js → R7VFYNQC.js} +2 -2
- package/dist/cdn/SOWUXRA3.js +4 -0
- package/dist/cdn/{U5UJWSZ3.js → VDUSITD2.js} +2 -2
- package/dist/cdn/{T5YAAEXT.js → VSFXRIEN.js} +2 -2
- package/dist/cdn/{XDKC7LXK.js → W45Q242J.js} +2 -2
- package/dist/cdn/{SXREF3XD.js → WGAHI6SV.js} +2 -2
- package/dist/cdn/{TK54JFWN.js → XAGEA3XO.js} +2 -2
- package/dist/cdn/{QOEDA6XK.js → XMXTLCWY.js} +2 -2
- package/dist/cdn/{66T2WBNR.js → XSD6BA46.js} +2 -2
- package/dist/cdn/{2JWTMT3R.js → XSPLDM5L.js} +2 -2
- package/dist/cdn/{ANX3PAXU.js → XZEBDJ5V.js} +2 -2
- package/dist/cdn/{FRNWVTUQ.js → YU7EUPE6.js} +2 -2
- package/dist/cdn/{FPRJTOMA.js → ZEFUZXY6.js} +2 -2
- package/dist/cdn/{WK5PLYLA.js → ZP4A4AY3.js} +2 -2
- package/dist/cdn/{6PLRAGJ6.js → ZXMUDXWG.js} +2 -2
- package/dist/cdn/assets/code-editor/sql-expr.worker.js +0 -7
- package/dist/cdn/index.js +2 -2
- package/dist/chunks/arcade-contribution.js +1 -1
- package/dist/chunks/arcade-defaults.js +1 -1
- package/dist/chunks/arcade-executor.js +1 -1
- package/dist/chunks/arcade-mode.js +1 -1
- package/dist/chunks/arcade-service-accessors.js +1 -1
- package/dist/chunks/colorize.js +1 -1
- package/dist/chunks/fields.js +1 -1
- package/dist/chunks/language-defaults-base.js +1 -1
- package/dist/chunks/markdown.js +1 -1
- package/dist/chunks/monaco-importer.js +1 -1
- package/dist/chunks/monaco-theme.js +1 -1
- package/dist/chunks/runtime.js +1 -1
- package/dist/chunks/sql-expr-defaults.js +1 -1
- package/dist/chunks/sql-expr-mode.js +1 -1
- package/dist/chunks/sql-expr-service-accessors.js +1 -1
- package/dist/chunks/useT9n.js +1 -1
- package/dist/chunks/utilities.js +1 -1
- package/dist/components/arcgis-arcade-coding-assistant/customElement.js +1 -1
- package/dist/components/arcgis-arcade-editor/customElement.js +1 -1
- package/dist/components/arcgis-arcade-results/customElement.js +1 -1
- package/dist/components/arcgis-arcade-suggestions/customElement.js +1 -1
- package/dist/components/arcgis-code-editor/customElement.d.ts +1 -7
- package/dist/components/arcgis-code-editor/customElement.js +1 -1
- package/dist/components/arcgis-code-editor-shell/customElement.js +1 -1
- package/dist/components/arcgis-code-viewer/customElement.js +1 -1
- package/dist/components/arcgis-editor-variables/customElement.js +1 -1
- package/dist/components/arcgis-language-api-panel/customElement.js +1 -1
- package/dist/components/arcgis-sql-expression-editor/customElement.js +1 -1
- package/dist/components/arcgis-sql-expression-fields/customElement.js +1 -1
- package/dist/docs/api.json +2 -13
- package/dist/docs/docs.json +3 -13
- package/dist/docs/web-types.json +1 -1
- package/dist/index.d.ts +5 -0
- package/dist/index.js +1 -1
- package/dist/loader.js +1 -1
- package/dist/utils/index.d.ts +3 -0
- package/dist/utils/sql-expr-monaco/sql-expr-completion.d.ts +14 -14
- package/package.json +5 -5
- package/dist/cdn/TQ3TO4IH.js +0 -4
package/dist/index.d.ts
CHANGED
|
@@ -9,10 +9,15 @@ import type { ArcgisSqlExpressionEditor } from "./components/arcgis-sql-expressi
|
|
|
9
9
|
* of your package
|
|
10
10
|
*/
|
|
11
11
|
export { getAssetPath, setAssetPath } from './runtime';
|
|
12
|
+
/** @public */
|
|
12
13
|
export { arcade } from './utils/arcade-monaco/arcade-defaults';
|
|
14
|
+
/** @public */
|
|
13
15
|
export { sqlExpression } from './utils/sql-expr-monaco/sql-expr-defaults';
|
|
16
|
+
/** @public */
|
|
14
17
|
export type { Diagnostic } from '@arcgis/arcade-languageservice';
|
|
18
|
+
/** @public */
|
|
15
19
|
export type * from './utils/index';
|
|
20
|
+
/** @public */
|
|
16
21
|
export type * from './utils/profile/types';
|
|
17
22
|
|
|
18
23
|
|
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import { a as o } from "./chunks/arcade-defaults.js";
|
|
|
3
3
|
import { s as x } from "./chunks/sql-expr-defaults.js";
|
|
4
4
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
5
5
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
6
|
-
v5.0.0-next.
|
|
6
|
+
v5.0.0-next.122 */
|
|
7
7
|
export {
|
|
8
8
|
o as arcade,
|
|
9
9
|
e as getAssetPath,
|
package/dist/loader.js
CHANGED
|
@@ -2,7 +2,7 @@ import { r as e } from "./chunks/runtime.js";
|
|
|
2
2
|
import { makeDefineCustomElements as i } from "@arcgis/lumina";
|
|
3
3
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
4
4
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
5
|
-
v5.0.0-next.
|
|
5
|
+
v5.0.0-next.122 */
|
|
6
6
|
const o = i(e, {
|
|
7
7
|
"arcgis-arcade-coding-assistant": [() => import("./components/arcgis-arcade-coding-assistant/customElement.js"), "appVersion,assistantsEnabled,closed,closePanel:,editorRef:,feedbackServiceUrl,helpBase,insertText:,layer,portalUrl,serviceUrl;destroy"],
|
|
8
8
|
"arcgis-arcade-editor": [() => import("./components/arcgis-arcade-editor/customElement.js"), "arcadeAssistant:,customPanels:,editorInstance:,editorOptions:,hideDocumentationActions,hideSideBar,openedSidePanel:,profile:,script,sideActionBarExpanded,snippets:,suggestions:,testData:;getEditorInstance,getScript,getTestResult,setFocus"],
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -2,6 +2,18 @@ import { IRange, Position, languages } from 'monaco-editor';
|
|
|
2
2
|
import { ApiDatabase, ApiVariable } from '@arcgis/languages-api-utils';
|
|
3
3
|
import { ICompletionContext } from './types';
|
|
4
4
|
import { SQLNode } from '@arcgis/core/core/sql/types';
|
|
5
|
+
interface SqlExpressionGetCompletionsOptions {
|
|
6
|
+
/** The parameters for the completion. */
|
|
7
|
+
range: IRange;
|
|
8
|
+
/** The content of the model. */
|
|
9
|
+
modelContent: string;
|
|
10
|
+
/** The current position of the cursor in the model. */
|
|
11
|
+
position: Position;
|
|
12
|
+
/** The completion context. */
|
|
13
|
+
completionContext?: ICompletionContext;
|
|
14
|
+
/** Whether to terminate the completion when it fails to parse. */
|
|
15
|
+
terminateOnError?: boolean;
|
|
16
|
+
}
|
|
5
17
|
/**
|
|
6
18
|
* Class used for sql expression completion
|
|
7
19
|
*/
|
|
@@ -11,21 +23,8 @@ export declare class SqlExpressionCompletion {
|
|
|
11
23
|
constructor(sdkLibrary: ApiDatabase, fields: ApiVariable[]);
|
|
12
24
|
/**
|
|
13
25
|
* gets completions for the sql expression.
|
|
14
|
-
* @param {Object} params - The parameters for the completion.
|
|
15
|
-
* @param {IRange} params.range - The range of the current position.
|
|
16
|
-
* @param {string} params.modelContent - The content of the model.
|
|
17
|
-
* @param {Position} params.position - The current position of the cursor in the model.
|
|
18
|
-
* @param {ICompletionContext} params.completionContext - The completion context.
|
|
19
|
-
* @param {boolean} params.terminateOnError - Whether to terminate the completion when it fails to parse.
|
|
20
|
-
* @returns {Promise<languages.CompletionItem[]>} The completion items.
|
|
21
26
|
*/
|
|
22
|
-
getCompletions({ range, modelContent, position, completionContext, terminateOnError, }:
|
|
23
|
-
range: IRange;
|
|
24
|
-
modelContent: string;
|
|
25
|
-
position: Position;
|
|
26
|
-
completionContext?: ICompletionContext;
|
|
27
|
-
terminateOnError?: boolean;
|
|
28
|
-
}): Promise<languages.CompletionItem[]>;
|
|
27
|
+
getCompletions({ range, modelContent, position, completionContext, terminateOnError, }: SqlExpressionGetCompletionsOptions): Promise<languages.CompletionItem[]>;
|
|
29
28
|
/**
|
|
30
29
|
* traverses the tree to find the node that contains the current position
|
|
31
30
|
* @param node The current node to traverse
|
|
@@ -72,3 +71,4 @@ export declare class SqlExpressionCompletion {
|
|
|
72
71
|
private _traverseChildren;
|
|
73
72
|
private _sliceToPosition;
|
|
74
73
|
}
|
|
74
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcgis/coding-components",
|
|
3
|
-
"version": "5.0.0-next.
|
|
3
|
+
"version": "5.0.0-next.122",
|
|
4
4
|
"description": "Contains components for editing code in different languages. The currently supported languages are html, css, json, TypeScript, JavaScript, and Arcade.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ArcGIS",
|
|
@@ -42,10 +42,10 @@
|
|
|
42
42
|
],
|
|
43
43
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@arcgis/arcade-languageservice": "5.0.0-next.
|
|
46
|
-
"@arcgis/languages-api-utils": "5.0.0-next.
|
|
47
|
-
"@arcgis/lumina": "5.0.0-next.
|
|
48
|
-
"@arcgis/toolkit": "5.0.0-next.
|
|
45
|
+
"@arcgis/arcade-languageservice": "5.0.0-next.122",
|
|
46
|
+
"@arcgis/languages-api-utils": "5.0.0-next.122",
|
|
47
|
+
"@arcgis/lumina": "5.0.0-next.122",
|
|
48
|
+
"@arcgis/toolkit": "5.0.0-next.122",
|
|
49
49
|
"@lit/task": "^1.0.3",
|
|
50
50
|
"lit": "^3.3.0",
|
|
51
51
|
"monaco-editor": "^0.52.0",
|
package/dist/cdn/TQ3TO4IH.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
|
-
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
3
|
-
v5.0.0-next.121 */
|
|
4
|
-
import c from"./REBFL6OD.js";import"./FRNWVTUQ.js";import b from"./725GZKJL.js";import a from"./6L7MMQRC.js";import"./2RJZQRH3.js";import"./MAP3P4WS.js";import"./TK54JFWN.js";import"./5SCKNSE3.js";import"./KZ4B2WAC.js";import"./2NNEY7SC.js";import"./SOIPKOZX.js";import"./T5YAAEXT.js";import"./ROEZTYWL.js";import"./4X2F2FIC.js";import"./R7QQNTIQ.js";export default $arcgis.t(([,,{a:a,b:b,c:c}])=>{return{getSqlExprDiagnosticService:b,getSqlExprWorker:a,setupMode:c}},a,b,c)
|