@arcgis/coding-components 4.31.0-next.86 → 4.31.0-next.88
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.css +1 -1
- package/dist/arcgis-coding-components/arcgis-coding-components.esm.js +2 -2
- package/dist/arcgis-coding-components/assets/code-editor/sql-expr.worker.js +26 -26
- package/dist/arcgis-coding-components/index.esm.js +2 -2
- package/dist/arcgis-coding-components/{p-d87abcac.js → p-0831d7e3.js} +10 -10
- package/dist/arcgis-coding-components/p-20cbb2be.entry.js +6 -0
- package/dist/arcgis-coding-components/{p-eaa982e5.js → p-446add2c.js} +2 -2
- package/dist/arcgis-coding-components/{p-57561f5a.js → p-5e5ee397.js} +2 -2
- package/dist/arcgis-coding-components/p-63d471e6.entry.js +6 -0
- package/dist/arcgis-coding-components/{p-beb8be6a.js → p-68d93bec.js} +2 -2
- package/dist/arcgis-coding-components/{p-214f0943.js → p-7199d246.js} +1 -1
- package/dist/arcgis-coding-components/{p-229a8da8.js → p-8590c168.js} +2 -2
- package/dist/arcgis-coding-components/{p-0126f49c.js → p-86517ba4.js} +2 -2
- package/dist/arcgis-coding-components/{p-b2ba8b34.js → p-8ac43937.js} +2 -2
- package/dist/arcgis-coding-components/{p-bf26b459.js → p-8d2811d6.js} +2 -2
- package/dist/arcgis-coding-components/{p-2897bc2e.js → p-9705a7c3.js} +2 -2
- package/dist/arcgis-coding-components/{p-78e2178d.entry.js → p-b1766017.entry.js} +2 -2
- package/dist/arcgis-coding-components/p-b3a07d3d.js +6 -0
- package/dist/arcgis-coding-components/{p-18de61b2.js → p-b47d0934.js} +1 -1
- package/dist/arcgis-coding-components/{p-18697781.js → p-cd94eef5.js} +2 -2
- package/dist/arcgis-coding-components/p-d99cfac0.js +6 -0
- package/dist/arcgis-coding-components/{p-203f2b89.js → p-dfc23342.js} +1 -1
- package/dist/cjs/{app-globals-85e23764.js → app-globals-c671eae8.js} +1 -1
- package/dist/cjs/{arcade-defaults-facf9b04.js → arcade-defaults-87cb0d4e.js} +3 -3
- package/dist/cjs/{arcade-mode-e0cd67d7.js → arcade-mode-05be84a4.js} +4 -4
- package/dist/cjs/arcgis-arcade-editor_6.cjs.entry.js +59 -93
- package/dist/cjs/arcgis-coding-components.cjs.js +4 -4
- package/dist/cjs/arcgis-sql-expression-editor.cjs.entry.js +10 -7
- package/dist/cjs/arcgis-sql-expression-fields.cjs.entry.js +4 -4
- package/dist/cjs/{css-c6bedad3.js → css-6993712b.js} +1 -1
- package/dist/cjs/{cssMode-bd1cd2db.js → cssMode-5e68ccad.js} +3 -3
- package/dist/cjs/{html-4b409ccd.js → html-8856cd07.js} +3 -3
- package/dist/cjs/{htmlMode-9e8b3aa4.js → htmlMode-586acc8e.js} +3 -3
- package/dist/cjs/{index-de0083ae.js → index-926e4742.js} +1 -1
- package/dist/cjs/index.cjs.js +4 -4
- package/dist/cjs/{javascript-35af1f5f.js → javascript-d6c61309.js} +4 -4
- package/dist/cjs/{jsonMode-0a52bfb9.js → jsonMode-6eaf1ab6.js} +3 -3
- package/dist/cjs/loader.cjs.js +4 -4
- package/dist/cjs/{sql-expr-defaults-5d12bac1.js → sql-expr-defaults-53f5441c.js} +10 -10
- package/dist/cjs/{sql-expr-mode-e3735afc.js → sql-expr-mode-b8b5dec0.js} +5 -9
- package/dist/cjs/{tsMode-a398c1de.js → tsMode-c5f1d89c.js} +3 -3
- package/dist/cjs/{typescript-73ba924b.js → typescript-0cee7fa8.js} +3 -3
- package/dist/cjs/{useT9n-81259a51.js → useT9n-7c90f507.js} +3 -3
- package/dist/components/arcade-defaults.js +1 -1
- package/dist/components/arcade-mode.js +2 -2
- package/dist/components/arcade-results.js +1 -1
- package/dist/components/arcade-suggestions.js +1 -1
- package/dist/components/arcgis-arcade-editor.js +6 -27
- package/dist/components/arcgis-arcade-results.js +1 -1
- package/dist/components/arcgis-arcade-suggestions.js +1 -1
- package/dist/components/arcgis-assets.d.ts +1 -1
- package/dist/components/arcgis-assets.js +1 -1
- package/dist/components/arcgis-code-editor.js +1 -1
- package/dist/components/arcgis-editor-variables.js +1 -1
- package/dist/components/arcgis-language-api-panel.js +1 -1
- package/dist/components/arcgis-sql-expression-editor.js +7 -4
- package/dist/components/arcgis-sql-expression-fields.js +1 -1
- package/dist/components/chunk-IUUKU7EW.js +2 -2
- package/dist/components/code-editor.js +54 -67
- package/dist/components/editor-variables.js +1 -1
- package/dist/components/fields.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/index2.js +2 -2
- package/dist/components/language-api-panel.js +1 -1
- package/dist/components/markdown.js +1 -1
- package/dist/components/sql-expr-defaults.js +1 -1
- package/dist/components/sql-expr-mode.js +3 -7
- package/dist/components/useT9n.js +1 -1
- package/dist/components/utilities.js +1 -1
- package/dist/esm/{app-globals-69d652cb.js → app-globals-8347c4b3.js} +1 -1
- package/dist/esm/{arcade-defaults-5c1697c8.js → arcade-defaults-50d9d8c8.js} +3 -3
- package/dist/esm/{arcade-mode-b9b3758f.js → arcade-mode-7edef4e0.js} +4 -4
- package/dist/esm/arcgis-arcade-editor_6.entry.js +59 -93
- package/dist/esm/arcgis-coding-components.js +5 -5
- package/dist/esm/arcgis-sql-expression-editor.entry.js +10 -7
- package/dist/esm/arcgis-sql-expression-fields.entry.js +4 -4
- package/dist/esm/{css-e7d7c494.js → css-9f8f8b62.js} +1 -1
- package/dist/esm/{cssMode-8f0b2005.js → cssMode-16f9393b.js} +3 -3
- package/dist/esm/{html-e1f91da6.js → html-6400ea87.js} +3 -3
- package/dist/esm/{htmlMode-8fdef8e9.js → htmlMode-649bdb55.js} +3 -3
- package/dist/esm/{index-80add115.js → index-25e5e252.js} +1 -1
- package/dist/esm/index.js +4 -4
- package/dist/esm/{javascript-a0ba9bde.js → javascript-53af5e46.js} +4 -4
- package/dist/esm/{jsonMode-5c4f6e92.js → jsonMode-40045ac2.js} +3 -3
- package/dist/esm/loader.js +5 -5
- package/dist/esm/{sql-expr-defaults-b1553413.js → sql-expr-defaults-d147b45c.js} +11 -11
- package/dist/esm/{sql-expr-mode-bc488961.js → sql-expr-mode-11024d7c.js} +5 -9
- package/dist/esm/{tsMode-82bbedd5.js → tsMode-93c862c3.js} +3 -3
- package/dist/esm/{typescript-73ad9064.js → typescript-1c9039a2.js} +3 -3
- package/dist/esm/{useT9n-a2a83800.js → useT9n-ce905834.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 +0 -6
- package/dist/types/components/code-editor/code-editor.d.ts +1 -0
- package/dist/types/components/sql-expression-editor/sql-expression-editor.d.ts +1 -0
- package/dist/types/components.d.ts +0 -6
- package/dist/types/data/arcgis-web-compoments/actions-runner-1/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/stories/internal/arcade-editor/arcade-editor.stories.d.ts +0 -7
- package/dist/types/utils/setup-monaco-theme.d.ts +1 -0
- package/dist/types/utils/sql-expr-monaco/sql-expr-constants.d.ts +1 -1
- package/package.json +11 -11
- package/dist/arcgis-coding-components/p-0c876d09.entry.js +0 -6
- package/dist/arcgis-coding-components/p-16a26703.js +0 -6
- package/dist/arcgis-coding-components/p-e689d955.js +0 -6
- package/dist/arcgis-coding-components/p-f1fef244.entry.js +0 -6
- package/dist/types/utils/arcade-monaco/arcade-theme.d.ts +0 -12
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.0-next.
|
|
4
|
+
* v4.31.0-next.88
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
7
7
|
|
|
8
8
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
9
9
|
|
|
10
|
-
const index = require('./index-
|
|
11
|
-
const appGlobals = require('./app-globals-
|
|
10
|
+
const index = require('./index-926e4742.js');
|
|
11
|
+
const appGlobals = require('./app-globals-c671eae8.js');
|
|
12
12
|
|
|
13
13
|
/*
|
|
14
14
|
Stencil Client Patch Browser v4.20.0 | MIT Licensed | https://stenciljs.com
|
|
@@ -24,7 +24,7 @@ var patchBrowser = () => {
|
|
|
24
24
|
|
|
25
25
|
patchBrowser().then(async (options) => {
|
|
26
26
|
await appGlobals.globalScripts();
|
|
27
|
-
return index.bootstrapLazy([["arcgis-arcade-editor_6.cjs",[[0,"arcgis-arcade-editor",{"profile":[16],"script":[1025],"testData":[16],"suggestions":[16],"snippets":[16],"hideDocumentationActions":[4,"hide-documentation-actions"],"hideSideBar":[4,"hide-side-bar"],"sideActionBarExpanded":[1540,"side-action-bar-expanded"],"openedSidePanel":[1537,"opened-side-panel"],"editorOptions":[16],"editorInstance":[16],"_preparingArcade":[32],"_editorProfile":[32],"_apiLibrary":[32],"_showExecutionPanel":[32],"_resultPanel":[32],"_executingScript":[32],"_consoleLogs":[32],"_executionResult":[32],"messages":[32],"getScript":[64],"setFocus":[64],"getEditorInstance":[64],"getTestResult":[64]
|
|
27
|
+
return index.bootstrapLazy([["arcgis-arcade-editor_6.cjs",[[0,"arcgis-arcade-editor",{"profile":[16],"script":[1025],"testData":[16],"suggestions":[16],"snippets":[16],"hideDocumentationActions":[4,"hide-documentation-actions"],"hideSideBar":[4,"hide-side-bar"],"sideActionBarExpanded":[1540,"side-action-bar-expanded"],"openedSidePanel":[1537,"opened-side-panel"],"editorOptions":[16],"editorInstance":[16],"_preparingArcade":[32],"_editorProfile":[32],"_apiLibrary":[32],"_showExecutionPanel":[32],"_resultPanel":[32],"_executingScript":[32],"_consoleLogs":[32],"_executionResult":[32],"messages":[32],"getScript":[64],"setFocus":[64],"getEditorInstance":[64],"getTestResult":[64]},null,{"messages":["_messagesChanged"],"profile":["_profileChanged"],"testData":["_testDataChanged"],"snippets":["_snippetChanged"]}],[1,"arcgis-arcade-results",{"loading":[4],"openedResultPanel":[1537,"opened-result-panel"],"result":[16],"consoleLogs":[16]}],[1,"arcgis-arcade-suggestions",{"suggestions":[16],"_selectedSuggestion":[32],"_filterValue":[32],"_colorizeStyle":[32]},null,{"suggestions":["suggestionsPropChanged"]}],[0,"arcgis-code-editor",{"value":[1],"language":[1],"modelId":[1,"model-id"],"editorOptions":[16],"editorInstance":[16],"getValue":[64],"setValue":[64],"insertText":[64],"insertSnippet":[64],"getEditorInstance":[64],"setFocus":[64]},null,{"language":["languagePropChange"],"modelId":["modelIdPropChange"],"editorOptions":["editorOptionsPropChange"]}],[1,"arcgis-editor-variables",{"loading":[4],"modelId":[1,"model-id"],"variable":[16],"_mutationCounter":[32],"_flowItemRenderers":[32],"_filterValue":[32],"_mode":[32]},null,{"modelId":["modelIdPropChanged"],"variable":["_variableChanged"]}],[1,"arcgis-language-api-panel",{"hideDocumentationActions":[4,"hide-documentation-actions"],"loading":[4],"apiLibrary":[16],"_selectedApiItem":[32],"_filterValue":[32],"_colorizeStyle":[32]},null,{"apiLibrary":["_apiLibraryChanged"]}]]],["arcgis-sql-expression-editor.cjs",[[0,"arcgis-sql-expression-editor",{"profile":[16],"script":[1025],"_preparing":[32],"_editorProfile":[32],"_activeAction":[32],"_apiLibrary":[32],"sideActionBarExpanded":[32],"messages":[32]},null,{"messages":["_messagesChanged"],"profile":["_profileChanged"]}]]],["arcgis-sql-expression-fields.cjs",[[1,"arcgis-sql-expression-fields",{"loading":[4],"modelId":[1,"model-id"],"_mutationCounter":[32],"_flowItemRenderers":[32],"_filterValue":[32]},null,{"modelId":["modelIdPropChanged"]}]]]], options);
|
|
28
28
|
});
|
|
29
29
|
|
|
30
30
|
exports.setNonce = index.setNonce;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.0-next.
|
|
4
|
+
* v4.31.0-next.88
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
7
7
|
|
|
8
8
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
9
9
|
|
|
10
|
-
const index = require('./index-
|
|
11
|
-
const useT9n = require('./useT9n-
|
|
12
|
-
const sqlExprDefaults = require('./sql-expr-defaults-
|
|
10
|
+
const index = require('./index-926e4742.js');
|
|
11
|
+
const useT9n = require('./useT9n-7c90f507.js');
|
|
12
|
+
const sqlExprDefaults = require('./sql-expr-defaults-53f5441c.js');
|
|
13
13
|
|
|
14
|
-
const sqlExpressionEditorCss = "arcgis-sql-expression-editor{display:flex;flex-direction:column;position:relative;overflow:hidden;border:
|
|
14
|
+
const sqlExpressionEditorCss = "arcgis-sql-expression-editor{display:flex;flex-direction:column;position:relative;overflow:hidden;border:var(--arcgis-coding-components-border);box-sizing:border-box;background-color:var(--arcgis-coding-components-background-color);height:100%}arcgis-sql-expression-editor .flex-adjustable{flex:1 1 auto;overflow:hidden}arcgis-sql-expression-editor .flex-panel{flex:1 0 auto}arcgis-sql-expression-editor .position-relative{position:relative}arcgis-sql-expression-editor .flex-row{display:flex;flex-direction:row;overflow:hidden}arcgis-sql-expression-editor .flex-column{display:flex;flex-direction:column;overflow:hidden}arcgis-sql-expression-editor .border-inline-start{border-inline-start:var(--arcgis-coding-components-border);box-sizing:border-box}arcgis-sql-expression-editor .border-inline-end{border-inline-end:var(--arcgis-coding-components-border);box-sizing:border-box}arcgis-sql-expression-editor .side-action-bar{max-width:var(--arcgis-coding-components-side-action-bar-max-w)}arcgis-sql-expression-editor .side-panel{max-width:var(--arcgis-coding-components-side-panel-max-w);width:var(--arcgis-coding-components-side-panel-w)}arcgis-sql-expression-editor .side-panel calcite-flow{height:100%}";
|
|
15
15
|
const ArcgisSqlExpressionEditorStyle0 = sqlExpressionEditorCss;
|
|
16
16
|
|
|
17
17
|
const SqlExpressionEditor = class {
|
|
@@ -34,6 +34,9 @@ const SqlExpressionEditor = class {
|
|
|
34
34
|
this.script = e.detail;
|
|
35
35
|
this.arcgisScriptChange.emit(e.detail);
|
|
36
36
|
};
|
|
37
|
+
this._toggleSideActionBarExpanded = () => {
|
|
38
|
+
this.sideActionBarExpanded = !this.sideActionBarExpanded;
|
|
39
|
+
};
|
|
37
40
|
this._preparing = false;
|
|
38
41
|
this._editorProfile = undefined;
|
|
39
42
|
this._activeAction = undefined;
|
|
@@ -108,9 +111,9 @@ const SqlExpressionEditor = class {
|
|
|
108
111
|
// #endregion
|
|
109
112
|
render() {
|
|
110
113
|
const variable = this._getFeatureSetVariable();
|
|
111
|
-
return (index.h(index.Host, { key: '
|
|
114
|
+
return (index.h(index.Host, { key: '7045de8598251dd6984000e7b29954e061c026d1' }, index.h("div", { key: 'be7bdc3c1f67698806cb82340db7298ea4a587c8', class: "flex-row flex-adjustable" }, index.h("div", { key: 'fd8fc820e4936b92e56b5d6391645d0bbd9f25ec', class: "flex-column flex-adjustable" }, index.h("arcgis-code-editor", { key: '1f99b35c123aa46d06533d3bd6435e771efc0a74', language: "arcgis-sql-expression", modelId: this._modelId, ref: (e) => (this._codeEditorElt = e), value: this.script ?? "", onArcgisValueChange: this._onCodeEditorValueChange })), this._activeAction === "fields" && (index.h("arcgis-editor-variables", { key: '0670d6ac75b6139db6d941ac277bf273ce6bae1b', variable: variable, class: "side-panel flex-panel border-inline-start", loading: this._preparing, modelId: this._modelId, onArcgisItemSelected: this._insertAsText, onArcgisClose: () => this._setActiveAction(undefined), "data-panel-name": "none" })), this._activeAction === "functions" && (index.h("arcgis-language-api-panel", { key: '10a0dca508651738450312758c9b0e5c92c8cfbe', class: "side-panel flex-panel border-inline-start", onArcgisItemSelected: this._insertAsSnippet, onArcgisClose: () => this._setActiveAction(undefined), loading: this._preparing, apiLibrary: this._apiLibrary, "data-panel-name": "none" })), index.h("calcite-action-bar", { key: 'fdb88197b0ee0b2995b6a47a60094fcbc9131c98', class: "side-action-bar border-inline-start", expanded: this.sideActionBarExpanded, position: "end", onCalciteActionBarToggle: this._toggleSideActionBarExpanded }, index.h("calcite-action", { key: 'a1ca3ce4b89ad68b00aaa6b3f86dbb31e1d1616c', id: "fields-action", text: this.messages.fields ?? "Fields", icon: "profile-variables", active: this._activeAction === "fields", "data-panel-name": "fields",
|
|
112
115
|
// need to use an arrow function to automatically bind 'this'
|
|
113
|
-
onClick: (e) => this._handleActionClick(e) }), !this.sideActionBarExpanded && (index.h("calcite-tooltip", { key: '
|
|
116
|
+
onClick: (e) => this._handleActionClick(e) }), !this.sideActionBarExpanded && (index.h("calcite-tooltip", { key: '82a8e3557e765d05caf08d54afbf3d2f5a383615', "reference-element": "fields-action" }, index.h("span", { key: '8e3ee3362edc48378676eecbb8c25d8a686f8e58' }, this.messages.fields ?? "Fields"))), index.h("calcite-action", { key: 'bde73acdf947bbfb252bb644c6ef2c06971849d3', id: "functions-action", text: this.messages.functions ?? "Functions", icon: "function", active: this._activeAction === "functions", "data-panel-name": "functions", onClick: (e) => this._handleActionClick(e) }), !this.sideActionBarExpanded && (index.h("calcite-tooltip", { key: 'f353577f4ed06d1607ac0282be6674f3246b69bc', "reference-element": "functions-action" }, index.h("span", { key: '7445241db197f4e9b29527150e3b55dc307f3fe5' }, this.messages.functions ?? "Functions")))))));
|
|
114
117
|
}
|
|
115
118
|
static get assetsDirs() { return ["assets"]; }
|
|
116
119
|
get el() { return index.getElement(this); }
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.0-next.
|
|
4
|
+
* v4.31.0-next.88
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
7
7
|
|
|
8
8
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
9
9
|
|
|
10
|
-
const index = require('./index-
|
|
11
|
-
const useT9n = require('./useT9n-
|
|
12
|
-
const sqlExprDefaults = require('./sql-expr-defaults-
|
|
10
|
+
const index = require('./index-926e4742.js');
|
|
11
|
+
const useT9n = require('./useT9n-7c90f507.js');
|
|
12
|
+
const sqlExprDefaults = require('./sql-expr-defaults-53f5441c.js');
|
|
13
13
|
|
|
14
14
|
const sqlExpressionFieldsCss = ":host calcite-flow{height:100%}:host calcite-list-item-group{background-color:var(--calcite-color-foreground-2)}";
|
|
15
15
|
const ArcgisSqlExpressionFieldsStyle0 = sqlExpressionFieldsCss;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.0-next.
|
|
4
|
+
* v4.31.0-next.88
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
7
7
|
|
|
8
|
-
const sqlExprDefaults = require('./sql-expr-defaults-
|
|
9
|
-
require('./index-
|
|
8
|
+
const sqlExprDefaults = require('./sql-expr-defaults-53f5441c.js');
|
|
9
|
+
require('./index-926e4742.js');
|
|
10
10
|
|
|
11
11
|
/*!-----------------------------------------------------------------------------
|
|
12
12
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.0-next.
|
|
4
|
+
* v4.31.0-next.88
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
7
7
|
|
|
8
|
-
const sqlExprDefaults = require('./sql-expr-defaults-
|
|
9
|
-
require('./index-
|
|
8
|
+
const sqlExprDefaults = require('./sql-expr-defaults-53f5441c.js');
|
|
9
|
+
require('./index-926e4742.js');
|
|
10
10
|
|
|
11
11
|
/*!-----------------------------------------------------------------------------
|
|
12
12
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.0-next.
|
|
4
|
+
* v4.31.0-next.88
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
7
7
|
|
|
8
|
-
const sqlExprDefaults = require('./sql-expr-defaults-
|
|
9
|
-
require('./index-
|
|
8
|
+
const sqlExprDefaults = require('./sql-expr-defaults-53f5441c.js');
|
|
9
|
+
require('./index-926e4742.js');
|
|
10
10
|
|
|
11
11
|
/*!-----------------------------------------------------------------------------
|
|
12
12
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
package/dist/cjs/index.cjs.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.0-next.
|
|
4
|
+
* v4.31.0-next.88
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
7
7
|
|
|
8
8
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
9
9
|
|
|
10
|
-
const arcadeDefaults = require('./arcade-defaults-
|
|
11
|
-
const sqlExprDefaults = require('./sql-expr-defaults-
|
|
12
|
-
require('./index-
|
|
10
|
+
const arcadeDefaults = require('./arcade-defaults-87cb0d4e.js');
|
|
11
|
+
const sqlExprDefaults = require('./sql-expr-defaults-53f5441c.js');
|
|
12
|
+
require('./index-926e4742.js');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.0-next.
|
|
4
|
+
* v4.31.0-next.88
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
7
7
|
|
|
8
|
-
const typescript = require('./typescript-
|
|
9
|
-
require('./sql-expr-defaults-
|
|
10
|
-
require('./index-
|
|
8
|
+
const typescript = require('./typescript-0cee7fa8.js');
|
|
9
|
+
require('./sql-expr-defaults-53f5441c.js');
|
|
10
|
+
require('./index-926e4742.js');
|
|
11
11
|
|
|
12
12
|
/*!-----------------------------------------------------------------------------
|
|
13
13
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.0-next.
|
|
4
|
+
* v4.31.0-next.88
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
7
7
|
|
|
8
|
-
const sqlExprDefaults = require('./sql-expr-defaults-
|
|
9
|
-
require('./index-
|
|
8
|
+
const sqlExprDefaults = require('./sql-expr-defaults-53f5441c.js');
|
|
9
|
+
require('./index-926e4742.js');
|
|
10
10
|
|
|
11
11
|
/*!-----------------------------------------------------------------------------
|
|
12
12
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.0-next.
|
|
4
|
+
* v4.31.0-next.88
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
7
7
|
|
|
8
8
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
9
9
|
|
|
10
|
-
const index = require('./index-
|
|
11
|
-
const appGlobals = require('./app-globals-
|
|
10
|
+
const index = require('./index-926e4742.js');
|
|
11
|
+
const appGlobals = require('./app-globals-c671eae8.js');
|
|
12
12
|
|
|
13
13
|
const defineCustomElements = async (win, options) => {
|
|
14
14
|
if (typeof window === 'undefined') return undefined;
|
|
15
15
|
await appGlobals.globalScripts();
|
|
16
|
-
return index.bootstrapLazy([["arcgis-arcade-editor_6.cjs",[[0,"arcgis-arcade-editor",{"profile":[16],"script":[1025],"testData":[16],"suggestions":[16],"snippets":[16],"hideDocumentationActions":[4,"hide-documentation-actions"],"hideSideBar":[4,"hide-side-bar"],"sideActionBarExpanded":[1540,"side-action-bar-expanded"],"openedSidePanel":[1537,"opened-side-panel"],"editorOptions":[16],"editorInstance":[16],"_preparingArcade":[32],"_editorProfile":[32],"_apiLibrary":[32],"_showExecutionPanel":[32],"_resultPanel":[32],"_executingScript":[32],"_consoleLogs":[32],"_executionResult":[32],"messages":[32],"getScript":[64],"setFocus":[64],"getEditorInstance":[64],"getTestResult":[64]
|
|
16
|
+
return index.bootstrapLazy([["arcgis-arcade-editor_6.cjs",[[0,"arcgis-arcade-editor",{"profile":[16],"script":[1025],"testData":[16],"suggestions":[16],"snippets":[16],"hideDocumentationActions":[4,"hide-documentation-actions"],"hideSideBar":[4,"hide-side-bar"],"sideActionBarExpanded":[1540,"side-action-bar-expanded"],"openedSidePanel":[1537,"opened-side-panel"],"editorOptions":[16],"editorInstance":[16],"_preparingArcade":[32],"_editorProfile":[32],"_apiLibrary":[32],"_showExecutionPanel":[32],"_resultPanel":[32],"_executingScript":[32],"_consoleLogs":[32],"_executionResult":[32],"messages":[32],"getScript":[64],"setFocus":[64],"getEditorInstance":[64],"getTestResult":[64]},null,{"messages":["_messagesChanged"],"profile":["_profileChanged"],"testData":["_testDataChanged"],"snippets":["_snippetChanged"]}],[1,"arcgis-arcade-results",{"loading":[4],"openedResultPanel":[1537,"opened-result-panel"],"result":[16],"consoleLogs":[16]}],[1,"arcgis-arcade-suggestions",{"suggestions":[16],"_selectedSuggestion":[32],"_filterValue":[32],"_colorizeStyle":[32]},null,{"suggestions":["suggestionsPropChanged"]}],[0,"arcgis-code-editor",{"value":[1],"language":[1],"modelId":[1,"model-id"],"editorOptions":[16],"editorInstance":[16],"getValue":[64],"setValue":[64],"insertText":[64],"insertSnippet":[64],"getEditorInstance":[64],"setFocus":[64]},null,{"language":["languagePropChange"],"modelId":["modelIdPropChange"],"editorOptions":["editorOptionsPropChange"]}],[1,"arcgis-editor-variables",{"loading":[4],"modelId":[1,"model-id"],"variable":[16],"_mutationCounter":[32],"_flowItemRenderers":[32],"_filterValue":[32],"_mode":[32]},null,{"modelId":["modelIdPropChanged"],"variable":["_variableChanged"]}],[1,"arcgis-language-api-panel",{"hideDocumentationActions":[4,"hide-documentation-actions"],"loading":[4],"apiLibrary":[16],"_selectedApiItem":[32],"_filterValue":[32],"_colorizeStyle":[32]},null,{"apiLibrary":["_apiLibraryChanged"]}]]],["arcgis-sql-expression-editor.cjs",[[0,"arcgis-sql-expression-editor",{"profile":[16],"script":[1025],"_preparing":[32],"_editorProfile":[32],"_activeAction":[32],"_apiLibrary":[32],"sideActionBarExpanded":[32],"messages":[32]},null,{"messages":["_messagesChanged"],"profile":["_profileChanged"]}]]],["arcgis-sql-expression-fields.cjs",[[1,"arcgis-sql-expression-fields",{"loading":[4],"modelId":[1,"model-id"],"_mutationCounter":[32],"_flowItemRenderers":[32],"_filterValue":[32]},null,{"modelId":["modelIdPropChanged"]}]]]], options);
|
|
17
17
|
};
|
|
18
18
|
|
|
19
19
|
exports.setNonce = index.setNonce;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.0-next.
|
|
4
|
+
* v4.31.0-next.88
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
7
7
|
|
|
8
|
-
const index = require('./index-
|
|
8
|
+
const index = require('./index-926e4742.js');
|
|
9
9
|
|
|
10
10
|
function _interopNamespace(e) {
|
|
11
11
|
if (e && e.__esModule) return e;
|
|
@@ -124694,7 +124694,7 @@ registerLanguage({
|
|
|
124694
124694
|
mimetypes: ["text/css"],
|
|
124695
124695
|
loader: () => {
|
|
124696
124696
|
{
|
|
124697
|
-
return Promise.resolve().then(function () { return require('./css-
|
|
124697
|
+
return Promise.resolve().then(function () { return require('./css-6993712b.js'); });
|
|
124698
124698
|
}
|
|
124699
124699
|
}
|
|
124700
124700
|
});
|
|
@@ -124712,7 +124712,7 @@ registerLanguage({
|
|
|
124712
124712
|
mimetypes: ["text/html", "text/x-jshtm", "text/template", "text/ng-template"],
|
|
124713
124713
|
loader: () => {
|
|
124714
124714
|
{
|
|
124715
|
-
return Promise.resolve().then(function () { return require('./html-
|
|
124715
|
+
return Promise.resolve().then(function () { return require('./html-8856cd07.js'); });
|
|
124716
124716
|
}
|
|
124717
124717
|
}
|
|
124718
124718
|
});
|
|
@@ -124732,7 +124732,7 @@ registerLanguage({
|
|
|
124732
124732
|
mimetypes: ["text/javascript"],
|
|
124733
124733
|
loader: () => {
|
|
124734
124734
|
{
|
|
124735
|
-
return Promise.resolve().then(function () { return require('./javascript-
|
|
124735
|
+
return Promise.resolve().then(function () { return require('./javascript-d6c61309.js'); });
|
|
124736
124736
|
}
|
|
124737
124737
|
}
|
|
124738
124738
|
});
|
|
@@ -124750,7 +124750,7 @@ registerLanguage({
|
|
|
124750
124750
|
mimetypes: ["text/typescript"],
|
|
124751
124751
|
loader: () => {
|
|
124752
124752
|
{
|
|
124753
|
-
return Promise.resolve().then(function () { return require('./typescript-
|
|
124753
|
+
return Promise.resolve().then(function () { return require('./typescript-0cee7fa8.js'); });
|
|
124754
124754
|
}
|
|
124755
124755
|
}
|
|
124756
124756
|
});
|
|
@@ -124871,7 +124871,7 @@ var lessDefaults = new LanguageServiceDefaultsImpl$3("less", optionsDefault$1, m
|
|
|
124871
124871
|
monaco_editor_core_exports$3.languages.css = { cssDefaults, lessDefaults, scssDefaults };
|
|
124872
124872
|
function getMode$3() {
|
|
124873
124873
|
{
|
|
124874
|
-
return Promise.resolve().then(function () { return require('./cssMode-
|
|
124874
|
+
return Promise.resolve().then(function () { return require('./cssMode-5e68ccad.js'); });
|
|
124875
124875
|
}
|
|
124876
124876
|
}
|
|
124877
124877
|
monaco_editor_core_exports$3.languages.onLanguage("less", () => {
|
|
@@ -124996,7 +124996,7 @@ monaco_editor_core_exports$2.languages.html = {
|
|
|
124996
124996
|
};
|
|
124997
124997
|
function getMode$2() {
|
|
124998
124998
|
{
|
|
124999
|
-
return Promise.resolve().then(function () { return require('./htmlMode-
|
|
124999
|
+
return Promise.resolve().then(function () { return require('./htmlMode-586acc8e.js'); });
|
|
125000
125000
|
}
|
|
125001
125001
|
}
|
|
125002
125002
|
function registerHTMLLanguageService(languageId, options = optionsDefault, modeConfiguration = getConfigurationDefault(languageId)) {
|
|
@@ -125098,7 +125098,7 @@ var jsonDefaults = new LanguageServiceDefaultsImpl$1("json", diagnosticDefault,
|
|
|
125098
125098
|
monaco_editor_core_exports$1.languages.json = { jsonDefaults };
|
|
125099
125099
|
function getMode$1() {
|
|
125100
125100
|
{
|
|
125101
|
-
return Promise.resolve().then(function () { return require('./jsonMode-
|
|
125101
|
+
return Promise.resolve().then(function () { return require('./jsonMode-6eaf1ab6.js'); });
|
|
125102
125102
|
}
|
|
125103
125103
|
}
|
|
125104
125104
|
monaco_editor_core_exports$1.languages.register({
|
|
@@ -125367,7 +125367,7 @@ monaco_editor_core_exports.languages.typescript = {
|
|
|
125367
125367
|
};
|
|
125368
125368
|
function getMode() {
|
|
125369
125369
|
{
|
|
125370
|
-
return Promise.resolve().then(function () { return require('./tsMode-
|
|
125370
|
+
return Promise.resolve().then(function () { return require('./tsMode-c5f1d89c.js'); });
|
|
125371
125371
|
}
|
|
125372
125372
|
}
|
|
125373
125373
|
monaco_editor_core_exports.languages.onLanguage("typescript", () => {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.0-next.
|
|
4
|
+
* v4.31.0-next.88
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
7
7
|
|
|
8
|
-
const sqlExprDefaults = require('./sql-expr-defaults-
|
|
9
|
-
require('./index-
|
|
8
|
+
const sqlExprDefaults = require('./sql-expr-defaults-53f5441c.js');
|
|
9
|
+
require('./index-926e4742.js');
|
|
10
10
|
|
|
11
11
|
// hold onto a promise that resolves when the worker is ready
|
|
12
12
|
let deferredWorker = new sqlExprDefaults.Deferred();
|
|
@@ -106,7 +106,6 @@ Object.values(castDataTypesDict);
|
|
|
106
106
|
const sqlExprKeywords = [
|
|
107
107
|
"AND",
|
|
108
108
|
"AS",
|
|
109
|
-
"BETWEEN",
|
|
110
109
|
"BOTH",
|
|
111
110
|
"CASE",
|
|
112
111
|
"CAST",
|
|
@@ -126,14 +125,10 @@ const sqlExprKeywords = [
|
|
|
126
125
|
"IN",
|
|
127
126
|
"INTEGER",
|
|
128
127
|
"INTERVAL",
|
|
129
|
-
"IS",
|
|
130
128
|
"LEADING",
|
|
131
129
|
"LIKE",
|
|
132
130
|
"MINUTE",
|
|
133
131
|
"MONTH",
|
|
134
|
-
"NOT",
|
|
135
|
-
"NULL",
|
|
136
|
-
"OR",
|
|
137
132
|
"POSITION",
|
|
138
133
|
"REAL",
|
|
139
134
|
"SECOND",
|
|
@@ -172,6 +167,7 @@ const sqlExprFunctions = [
|
|
|
172
167
|
"CURRENT_DATE",
|
|
173
168
|
"CURRENT_TIME",
|
|
174
169
|
"CURRENT_TIMESTAMP",
|
|
170
|
+
"CURRENT_USER",
|
|
175
171
|
// Mathematical
|
|
176
172
|
"ABS",
|
|
177
173
|
"ACOS",
|
|
@@ -229,7 +225,7 @@ const sqlExprLanguageConfig = {
|
|
|
229
225
|
// TODO: trim down
|
|
230
226
|
const sqlExprLanguageSyntax = {
|
|
231
227
|
defaultToken: "",
|
|
232
|
-
tokenPostfix: ".
|
|
228
|
+
tokenPostfix: ".arcgis",
|
|
233
229
|
ignoreCase: true,
|
|
234
230
|
brackets: [
|
|
235
231
|
{ open: "[", close: "]", token: "delimiter.square" },
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.0-next.
|
|
4
|
+
* v4.31.0-next.88
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
7
7
|
|
|
8
|
-
const sqlExprDefaults = require('./sql-expr-defaults-
|
|
9
|
-
require('./index-
|
|
8
|
+
const sqlExprDefaults = require('./sql-expr-defaults-53f5441c.js');
|
|
9
|
+
require('./index-926e4742.js');
|
|
10
10
|
|
|
11
11
|
/*!-----------------------------------------------------------------------------
|
|
12
12
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.0-next.
|
|
4
|
+
* v4.31.0-next.88
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
7
7
|
|
|
8
|
-
const sqlExprDefaults = require('./sql-expr-defaults-
|
|
9
|
-
require('./index-
|
|
8
|
+
const sqlExprDefaults = require('./sql-expr-defaults-53f5441c.js');
|
|
9
|
+
require('./index-926e4742.js');
|
|
10
10
|
|
|
11
11
|
/*!-----------------------------------------------------------------------------
|
|
12
12
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.0-next.
|
|
4
|
+
* v4.31.0-next.88
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
7
7
|
|
|
8
|
-
const sqlExprDefaults = require('./sql-expr-defaults-
|
|
9
|
-
const index = require('./index-
|
|
8
|
+
const sqlExprDefaults = require('./sql-expr-defaults-53f5441c.js');
|
|
9
|
+
const index = require('./index-926e4742.js');
|
|
10
10
|
|
|
11
11
|
// src/framework.ts
|
|
12
12
|
function retrieveComponentMembers(component, isLit) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.0-next.
|
|
4
|
+
* v4.31.0-next.88
|
|
5
5
|
*/
|
|
6
6
|
import { f as fieldsToProfileValues, i as isPredefinedProfile, a as isFeatureSetCollectionDefinition, b as isFeatureSetDefinition, c as isFeatureDefinition, L as LanguageDefaultsBase, E as EditorProfile } from './sql-expr-defaults.js';
|
|
7
7
|
import { s as supportedLocales, f as fetchT9nStringsBundle } from './index2.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.0-next.
|
|
4
|
+
* v4.31.0-next.88
|
|
5
5
|
*/
|
|
6
6
|
import { editor, MarkerSeverity, Range, languages, Emitter } from 'monaco-editor';
|
|
7
7
|
import { CompletionItemKind, DiagnosticSeverity, InsertTextFormat } from 'vscode-languageserver-types';
|
|
@@ -76,7 +76,7 @@ const arcadeLanguageConfiguration = {
|
|
|
76
76
|
const arcadeMonarchLanguage = {
|
|
77
77
|
// Set defaultToken to invalid to see what you do not tokenize yet
|
|
78
78
|
defaultToken: "invalid",
|
|
79
|
-
tokenPostfix: ".
|
|
79
|
+
tokenPostfix: ".arcgis",
|
|
80
80
|
// Arcade is case insensitive
|
|
81
81
|
ignoreCase: true,
|
|
82
82
|
// builtinFunctions: [...arcadeService.FunctionNames],
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.0-next.
|
|
4
|
+
* v4.31.0-next.88
|
|
5
5
|
*/
|
|
6
6
|
import { proxyCustomElement, HTMLElement, createEvent, h, Fragment, Host, forceUpdate } from '@stencil/core/internal/client';
|
|
7
7
|
import { g as importArcade, s as supportedFields } from './fields.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.0-next.
|
|
4
|
+
* v4.31.0-next.88
|
|
5
5
|
*/
|
|
6
6
|
import { proxyCustomElement, HTMLElement, createEvent, forceUpdate, h, Host } from '@stencil/core/internal/client';
|
|
7
7
|
import { g as generateColorizeStyles, o as onColorizeThemeChanged, c as convertMarkdownString, a as colorizeCodeElement } from './markdown.js';
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.0-next.
|
|
4
|
+
* v4.31.0-next.88
|
|
5
5
|
*/
|
|
6
6
|
import { proxyCustomElement, HTMLElement, createEvent, forceUpdate, h, Fragment, Host } from '@stencil/core/internal/client';
|
|
7
7
|
import { KeyCode } from 'monaco-editor';
|
|
8
8
|
import { d as defineCustomElement$6, e as executeScript, D as DevelopersWebSitePath } from './arcade-results.js';
|
|
9
|
-
import { d as defineCustomElement$4, u as updateThemeColors, c as colorRulesKeys, s as setupMonacoEnvironment, g as getArcadeDiagnosticService } from './code-editor.js';
|
|
10
9
|
import { u as useControllerManager, g as getSet } from './chunk-IUUKU7EW.js';
|
|
11
|
-
import { D as Deferred, g as generateGuid
|
|
10
|
+
import { D as Deferred, g as generateGuid } from './index2.js';
|
|
11
|
+
import { d as defineCustomElement$4, s as setupMonacoEnvironment, g as getArcadeDiagnosticService } from './code-editor.js';
|
|
12
12
|
import { b as arcadeDefaults } from './arcade-defaults.js';
|
|
13
13
|
import { u as useT9n } from './useT9n.js';
|
|
14
14
|
import { d as defineCustomElement$5 } from './arcade-suggestions.js';
|
|
@@ -20,10 +20,10 @@ import "@esri/calcite-components/dist/components/calcite-action.js";
|
|
|
20
20
|
import "@esri/calcite-components/dist/components/calcite-tooltip.js";
|
|
21
21
|
import { getArcgisAssetPath as getAssetPath } from "./arcgis-assets.js";
|
|
22
22
|
|
|
23
|
-
const arcadeEditorCss = "arcgis-arcade-editor{display:flex;flex-direction:column;position:relative;overflow:hidden;border:
|
|
23
|
+
const arcadeEditorCss = "arcgis-arcade-editor{display:flex;flex-direction:column;position:relative;overflow:hidden;border:var(--arcgis-coding-components-border);box-sizing:border-box;background-color:var(--arcgis-coding-components-background-color);height:100%}arcgis-arcade-editor .flex-adjustable{flex:1 1 auto;overflow:hidden}arcgis-arcade-editor .flex-panel{flex:1 0 auto}arcgis-arcade-editor .position-relative{position:relative}arcgis-arcade-editor .flex-row{display:flex;flex-direction:row;overflow:hidden}arcgis-arcade-editor .flex-column{display:flex;flex-direction:column;overflow:hidden}arcgis-arcade-editor .border-inline-start{border-inline-start:var(--arcgis-coding-components-border);box-sizing:border-box}arcgis-arcade-editor .border-inline-end{border-inline-end:var(--arcgis-coding-components-border);box-sizing:border-box}arcgis-arcade-editor .sticky{position:sticky;top:0px;z-index:10}arcgis-arcade-editor .notice-container{margin:var(--calcite-spacing-xxs);padding:var(--calcite-spacing-sm);background-color:var(--calcite-color-foreground-1);text-align:center}arcgis-arcade-editor .side-action-bar{max-width:var(--arcgis-coding-components-side-action-bar-max-w)}arcgis-arcade-editor .side-panel{max-width:var(--arcgis-coding-components-side-panel-max-w);width:var(--arcgis-coding-components-side-panel-w)}arcgis-arcade-editor .side-panel calcite-flow{height:100%}arcgis-arcade-editor .main-action-bar{border-bottom:var(--arcgis-coding-components-border);flex:0 0 auto}arcgis-arcade-editor .main-action-bar calcite-action-group{padding-inline-end:var(--calcite-spacing-sm)}arcgis-arcade-editor .main-action-bar calcite-action-group calcite-action{padding-inline-end:var(--calcite-spacing-sm)}arcgis-arcade-editor .main-action-bar calcite-action-group calcite-action:not(:first-child){padding-inline-start:var(--calcite-spacing-sm)}arcgis-arcade-editor .main-action-bar calcite-action-group:last-child{border-inline-end-width:0px}arcgis-arcade-editor .main-action-bar calcite-action-group:not(:first-child){padding-inline-start:var(--calcite-spacing-sm)}arcgis-arcade-editor arcgis-arcade-results{border-top:var(--arcgis-coding-components-border);box-sizing:border-box;max-height:50%;min-height:50%;margin-bottom:-1px}arcgis-arcade-editor calcite-flow [slot=footer]{word-break:break-word}";
|
|
24
24
|
const ArcgisArcadeEditorStyle0 = arcadeEditorCss;
|
|
25
25
|
|
|
26
|
-
const __cmpMeta = [0,"arcgis-arcade-editor",{"profile":[1040],"script":[1025],"testData":[1040],"suggestions":[1040],"snippets":[1040],"hideDocumentationActions":[1028,"hide-documentation-actions"],"hideSideBar":[1028,"hide-side-bar"],"sideActionBarExpanded":[1540,"side-action-bar-expanded"],"openedSidePanel":[1537,"opened-side-panel"],"editorOptions":[1040],"editorInstance":[1040],"_preparingArcade":[32],"_editorProfile":[32],"_apiLibrary":[32],"_showExecutionPanel":[32],"_resultPanel":[32],"_executingScript":[32],"_consoleLogs":[32],"_executionResult":[32],"messages":[32],"getScript":[64],"setFocus":[64],"getEditorInstance":[64],"getTestResult":[64]
|
|
26
|
+
const __cmpMeta = [0,"arcgis-arcade-editor",{"profile":[1040],"script":[1025],"testData":[1040],"suggestions":[1040],"snippets":[1040],"hideDocumentationActions":[1028,"hide-documentation-actions"],"hideSideBar":[1028,"hide-side-bar"],"sideActionBarExpanded":[1540,"side-action-bar-expanded"],"openedSidePanel":[1537,"opened-side-panel"],"editorOptions":[1040],"editorInstance":[1040],"_preparingArcade":[32],"_editorProfile":[32],"_apiLibrary":[32],"_showExecutionPanel":[32],"_resultPanel":[32],"_executingScript":[32],"_consoleLogs":[32],"_executionResult":[32],"messages":[32],"getScript":[64],"setFocus":[64],"getEditorInstance":[64],"getTestResult":[64]},undefined,{"messages":["_messagesChanged"],"profile":["_profileChanged"],"testData":["_testDataChanged"],"snippets":["_snippetChanged"]}];
|
|
27
27
|
const ArcgisArcadeEditor$1 = /*@__PURE__*/ proxyCustomElement(class ArcgisArcadeEditor extends HTMLElement {
|
|
28
28
|
connectedCallback() { this.manager._connectedCallback(); }
|
|
29
29
|
constructor() {
|
|
@@ -166,27 +166,6 @@ this.constructor.__registerControllers = ()=>__cmpMeta[2]??{};
|
|
|
166
166
|
const script = this._codeEditorElt?.value;
|
|
167
167
|
return await executeScript(editorProfile.definition, script, this.testData);
|
|
168
168
|
}
|
|
169
|
-
/**
|
|
170
|
-
* Allows to change theme colors
|
|
171
|
-
* @internal
|
|
172
|
-
*/
|
|
173
|
-
async updateThemeColors(colorRules) {
|
|
174
|
-
const theme = getElementTheme(this.el);
|
|
175
|
-
updateThemeColors(theme, colorRules);
|
|
176
|
-
if (colorRules === undefined) {
|
|
177
|
-
colorRulesKeys.forEach((key) => {
|
|
178
|
-
this.el.style.removeProperty(`--arcgis-arcade-editor-${key}`);
|
|
179
|
-
});
|
|
180
|
-
return;
|
|
181
|
-
}
|
|
182
|
-
colorRulesKeys.forEach((key) => {
|
|
183
|
-
const foreground = colorRules[key];
|
|
184
|
-
if (!foreground) {
|
|
185
|
-
return;
|
|
186
|
-
}
|
|
187
|
-
this.el.style.setProperty(`--arcgis-arcade-editor-${key}`, foreground);
|
|
188
|
-
});
|
|
189
|
-
}
|
|
190
169
|
// #endregion
|
|
191
170
|
// #region Component lifecycle events
|
|
192
171
|
async componentWillLoad() {
|
|
@@ -337,7 +316,7 @@ this.constructor.__registerControllers = ()=>__cmpMeta[2]??{};
|
|
|
337
316
|
//#endregion
|
|
338
317
|
//#region Render
|
|
339
318
|
render() {
|
|
340
|
-
return (h(Host, { key: '
|
|
319
|
+
return (h(Host, { key: '38666dca7b4c799a4c92eeb58008d7e8cefd465d' }, this.renderMainActionBar(), h("div", { key: 'f182e16b276288b0cb4d6f7d22414e78c28990fa', class: "flex-row flex-adjustable" }, h("div", { key: '105e0f5218e7c8017b784b4ab9b0dfffc82205b0', class: "flex-column flex-adjustable" }, this.renderMainPanel(), this.renderResultsPanel()), this.renderSidePanel(), this.renderSideActionBar())));
|
|
341
320
|
}
|
|
342
321
|
static get assetsDirs() { return ["assets"]; }
|
|
343
322
|
get el() { return this; }
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.0-next.
|
|
4
|
+
* v4.31.0-next.88
|
|
5
5
|
*/
|
|
6
6
|
import { A as ArcgisArcadeResults$1, d as defineCustomElement$1 } from './arcade-results.js';
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.0-next.
|
|
4
|
+
* v4.31.0-next.88
|
|
5
5
|
*/
|
|
6
6
|
import { A as ArcgisArcadeSuggestions$1, d as defineCustomElement$1 } from './arcade-suggestions.js';
|
|
7
7
|
|