@arcgis/coding-components 4.29.0-beta.49 → 4.29.0-beta.50
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 +1 -1
- package/dist/arcgis-coding-components/assets/code-editor/arcade.worker.js +2 -2
- package/dist/arcgis-coding-components/index.esm.js +1 -1
- package/dist/arcgis-coding-components/{p-7475f3a6.js → p-0a53fe19.js} +1 -1
- package/dist/arcgis-coding-components/{p-ff21f230.js → p-8f70c5af.js} +1 -1
- package/dist/arcgis-coding-components/{p-aefe77ce.js → p-99fbda7a.js} +1 -1
- package/dist/arcgis-coding-components/{p-9f6db08a.js → p-c00e3a35.js} +1 -1
- package/dist/arcgis-coding-components/{p-7d8caba9.js → p-d622ac25.js} +1 -1
- package/dist/arcgis-coding-components/{p-d425a387.js → p-dc1deab5.js} +1 -1
- package/dist/arcgis-coding-components/{p-5ddccf04.js → p-e23bef61.js} +1 -1
- package/dist/arcgis-coding-components/p-f3be955a.entry.js +1 -0
- package/dist/arcgis-coding-components/{p-0d616249.js → p-f5598cde.js} +7 -7
- package/dist/arcgis-coding-components/{p-5802524a.js → p-f9ddcb21.js} +1 -1
- package/dist/cjs/{arcade-defaults-2d513b59.js → arcade-defaults-62df45ef.js} +8 -8
- package/dist/cjs/{arcade-mode-6219f1b8.js → arcade-mode-029b2c16.js} +2 -2
- package/dist/cjs/arcgis-arcade-api_6.cjs.entry.js +7 -6
- package/dist/cjs/{cssMode-1ec48254.js → cssMode-65260fc7.js} +1 -1
- package/dist/cjs/{html-0e1741fe.js → html-c6e0b09d.js} +1 -1
- package/dist/cjs/{htmlMode-279d3c29.js → htmlMode-3b2449e0.js} +1 -1
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/{javascript-04f1bce0.js → javascript-17ac37a3.js} +2 -2
- package/dist/cjs/{jsonMode-59322f7a.js → jsonMode-4f26087b.js} +1 -1
- package/dist/cjs/{tsMode-17561f70.js → tsMode-d20bed54.js} +1 -1
- package/dist/cjs/{typescript-b7da8629.js → typescript-cacef1c1.js} +1 -1
- package/dist/components/arcade-api.js +2 -1
- package/dist/components/arcade-defaults.js +1 -1
- package/dist/components/arcade-mode.js +1 -1
- package/dist/components/arcade-results.js +1 -1
- package/dist/components/arcgis-arcade-editor.js +1 -1
- package/dist/components/markdown.js +1 -1
- package/dist/esm/{arcade-defaults-0bafa696.js → arcade-defaults-2ce9f0c3.js} +8 -8
- package/dist/esm/{arcade-mode-c17a1fa1.js → arcade-mode-e78165f9.js} +2 -2
- package/dist/esm/arcgis-arcade-api_6.entry.js +7 -6
- package/dist/esm/{cssMode-3d18bd2b.js → cssMode-108dda4d.js} +1 -1
- package/dist/esm/{html-2bce5d77.js → html-a19f99cb.js} +1 -1
- package/dist/esm/{htmlMode-69d56956.js → htmlMode-cd3f510a.js} +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/{javascript-ded5c9d7.js → javascript-552ad17f.js} +2 -2
- package/dist/esm/{jsonMode-0bf84cb2.js → jsonMode-ca43c6cd.js} +1 -1
- package/dist/esm/{tsMode-15d4e936.js → tsMode-bd6f8aa1.js} +1 -1
- package/dist/esm/{typescript-cc4d00f0.js → typescript-8e361b98.js} +1 -1
- package/package.json +6 -6
- package/dist/arcgis-coding-components/p-ce2be55e.entry.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{m as t}from"./p-
|
|
1
|
+
import{m as t}from"./p-f5598cde.js";import"./p-2c0d6f15.js";
|
|
2
2
|
/*!-----------------------------------------------------------------------------
|
|
3
3
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
4
4
|
* Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
|
|
@@ -118050,7 +118050,7 @@ registerLanguage({
|
|
|
118050
118050
|
mimetypes: ["text/html", "text/x-jshtm", "text/template", "text/ng-template"],
|
|
118051
118051
|
loader: () => {
|
|
118052
118052
|
{
|
|
118053
|
-
return Promise.resolve().then(function () { return require('./html-
|
|
118053
|
+
return Promise.resolve().then(function () { return require('./html-c6e0b09d.js'); });
|
|
118054
118054
|
}
|
|
118055
118055
|
}
|
|
118056
118056
|
});
|
|
@@ -118070,7 +118070,7 @@ registerLanguage({
|
|
|
118070
118070
|
mimetypes: ["text/javascript"],
|
|
118071
118071
|
loader: () => {
|
|
118072
118072
|
{
|
|
118073
|
-
return Promise.resolve().then(function () { return require('./javascript-
|
|
118073
|
+
return Promise.resolve().then(function () { return require('./javascript-17ac37a3.js'); });
|
|
118074
118074
|
}
|
|
118075
118075
|
}
|
|
118076
118076
|
});
|
|
@@ -118088,7 +118088,7 @@ registerLanguage({
|
|
|
118088
118088
|
mimetypes: ["text/typescript"],
|
|
118089
118089
|
loader: () => {
|
|
118090
118090
|
{
|
|
118091
|
-
return Promise.resolve().then(function () { return require('./typescript-
|
|
118091
|
+
return Promise.resolve().then(function () { return require('./typescript-cacef1c1.js'); });
|
|
118092
118092
|
}
|
|
118093
118093
|
}
|
|
118094
118094
|
});
|
|
@@ -118209,7 +118209,7 @@ var lessDefaults = new LanguageServiceDefaultsImpl$3("less", optionsDefault$1, m
|
|
|
118209
118209
|
monaco_editor_core_exports$3.languages.css = { cssDefaults, lessDefaults, scssDefaults };
|
|
118210
118210
|
function getMode$3() {
|
|
118211
118211
|
{
|
|
118212
|
-
return Promise.resolve().then(function () { return require('./cssMode-
|
|
118212
|
+
return Promise.resolve().then(function () { return require('./cssMode-65260fc7.js'); });
|
|
118213
118213
|
}
|
|
118214
118214
|
}
|
|
118215
118215
|
monaco_editor_core_exports$3.languages.onLanguage("less", () => {
|
|
@@ -118334,7 +118334,7 @@ monaco_editor_core_exports$2.languages.html = {
|
|
|
118334
118334
|
};
|
|
118335
118335
|
function getMode$2() {
|
|
118336
118336
|
{
|
|
118337
|
-
return Promise.resolve().then(function () { return require('./htmlMode-
|
|
118337
|
+
return Promise.resolve().then(function () { return require('./htmlMode-3b2449e0.js'); });
|
|
118338
118338
|
}
|
|
118339
118339
|
}
|
|
118340
118340
|
function registerHTMLLanguageService(languageId, options = optionsDefault, modeConfiguration = getConfigurationDefault(languageId)) {
|
|
@@ -118436,7 +118436,7 @@ var jsonDefaults = new LanguageServiceDefaultsImpl$1("json", diagnosticDefault,
|
|
|
118436
118436
|
monaco_editor_core_exports$1.languages.json = { jsonDefaults };
|
|
118437
118437
|
function getMode$1() {
|
|
118438
118438
|
{
|
|
118439
|
-
return Promise.resolve().then(function () { return require('./jsonMode-
|
|
118439
|
+
return Promise.resolve().then(function () { return require('./jsonMode-4f26087b.js'); });
|
|
118440
118440
|
}
|
|
118441
118441
|
}
|
|
118442
118442
|
monaco_editor_core_exports$1.languages.register({
|
|
@@ -118705,7 +118705,7 @@ monaco_editor_core_exports.languages.typescript = {
|
|
|
118705
118705
|
};
|
|
118706
118706
|
function getMode() {
|
|
118707
118707
|
{
|
|
118708
|
-
return Promise.resolve().then(function () { return require('./tsMode-
|
|
118708
|
+
return Promise.resolve().then(function () { return require('./tsMode-d20bed54.js'); });
|
|
118709
118709
|
}
|
|
118710
118710
|
}
|
|
118711
118711
|
monaco_editor_core_exports.languages.onLanguage("typescript", () => {
|
|
@@ -168556,7 +168556,7 @@ async function getSdkPredefinedProfiles(locale = "en") {
|
|
|
168556
168556
|
}
|
|
168557
168557
|
return getSdkPredefinedProfiles("en");
|
|
168558
168558
|
}
|
|
168559
|
-
catch
|
|
168559
|
+
catch {
|
|
168560
168560
|
return null;
|
|
168561
168561
|
}
|
|
168562
168562
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const arcadeDefaults = require('./arcade-defaults-
|
|
3
|
+
const arcadeDefaults = require('./arcade-defaults-62df45ef.js');
|
|
4
4
|
require('./index-ac186201.js');
|
|
5
5
|
|
|
6
6
|
var ge=(e=>(e.False="false",e.Null="null",e.True="true",e))(ge||{}),xe=(e=>(e.Break="break",e.Continue="continue",e.Else="else",e.For="for",e.From="from",e.Function="function",e.If="if",e.Import="import",e.Export="export",e.In="in",e.Return="return",e.Var="var",e.While="while",e))(xe||{}),c=(e=>(e.AssignmentExpression="AssignmentExpression",e.ArrayExpression="ArrayExpression",e.BlockComment="BlockComment",e.BlockStatement="BlockStatement",e.BinaryExpression="BinaryExpression",e.BreakStatement="BreakStatement",e.CallExpression="CallExpression",e.ContinueStatement="ContinueStatement",e.EmptyStatement="EmptyStatement",e.ExpressionStatement="ExpressionStatement",e.ExportNamedDeclaration="ExportNamedDeclaration",e.ExportSpecifier="ExportSpecifier",e.ForStatement="ForStatement",e.ForInStatement="ForInStatement",e.FunctionDeclaration="FunctionDeclaration",e.Identifier="Identifier",e.IfStatement="IfStatement",e.ImportDeclaration="ImportDeclaration",e.ImportDefaultSpecifier="ImportDefaultSpecifier",e.LineComment="LineComment",e.Literal="Literal",e.LogicalExpression="LogicalExpression",e.MemberExpression="MemberExpression",e.ObjectExpression="ObjectExpression",e.Program="Program",e.Property="Property",e.ReturnStatement="ReturnStatement",e.TemplateElement="TemplateElement",e.TemplateLiteral="TemplateLiteral",e.UnaryExpression="UnaryExpression",e.UpdateExpression="UpdateExpression",e.VariableDeclaration="VariableDeclaration",e.VariableDeclarator="VariableDeclarator",e.WhileStatement="WhileStatement",e))(c||{}),De=["++","--"],We=["-","+","!","~"],qe=["=","/=","*=","%=","+=","-="],He=["||","&&"],bt=["|","&",">>","<<",">>>","^","==","!=","<","<=",">",">=","+","-","*","/","%"],It=(e=>(e[e.Unknown=0]="Unknown",e[e.BooleanLiteral=1]="BooleanLiteral",e[e.EOF=2]="EOF",e[e.Identifier=3]="Identifier",e[e.Keyword=4]="Keyword",e[e.NullLiteral=5]="NullLiteral",e[e.NumericLiteral=6]="NumericLiteral",e[e.Punctuator=7]="Punctuator",e[e.StringLiteral=8]="StringLiteral",e[e.Template=10]="Template",e))(It||{}),kt=(e=>(e.InvalidModuleUri="InvalidModuleUri",e.ForInOfLoopInitializer="ForInOfLoopInitializer",e.IdentiferExpected="IdentiferExpected",e.InvalidEscapedReservedWord="InvalidEscapedReservedWord",e.InvalidExpression="InvalidExpression",e.InvalidFunctionIdentifier="InvalidFunctionIdentifier",e.InvalidHexEscapeSequence="InvalidHexEscapeSequence",e.InvalidLeftHandSideInAssignment="InvalidLeftHandSideInAssignment",e.InvalidLeftHandSideInForIn="InvalidLeftHandSideInForIn",e.InvalidTemplateHead="InvalidTemplateHead",e.InvalidVariableAssignment="InvalidVariableAssignment",e.KeyMustBeString="KeyMustBeString",e.NoFunctionInsideBlock="NoFunctionInsideBlock",e.NoFunctionInsideFunction="NoFunctionInsideFunction",e.ModuleExportRootOnly="ModuleExportRootOnly",e.ModuleImportRootOnly="ModuleImportRootOnly",e.PunctuatorExpected="PunctuatorExpected",e.TemplateOctalLiteral="TemplateOctalLiteral",e.UnexpectedBoolean="UnexpectedBoolean",e.UnexpectedEndOfScript="UnexpectedEndOfScript",e.UnexpectedIdentifier="UnexpectedIdentifier",e.UnexpectedKeyword="UnexpectedKeyword",e.UnexpectedNull="UnexpectedNull",e.UnexpectedNumber="UnexpectedNumber",e.UnexpectedPunctuator="UnexpectedPunctuator",e.UnexpectedString="UnexpectedString",e.UnexpectedTemplate="UnexpectedTemplate",e.UnexpectedToken="UnexpectedToken",e))(kt||{});var v=[[],[],[]];De.forEach(e=>v[e.length-1].push(e));We.forEach(e=>v[e.length-1].push(e));He.forEach(e=>v[e.length-1].push(e));qe.forEach(e=>v[e.length-1].push(e));bt.forEach(e=>v[e.length-1].push(e));var rt=(D=>(D.AlreadyDefined="AlreadyDefined",D.ApiConflict="ApiConflict",D.AssignedNeverUsed="AssignedNeverUsed",D.DefinedNeverAssigned="DefinedNeverAssigned",D.DefinedNeverUsed="DefinedNeverUsed",D.EmptyBlockStatement="EmptyBlockStatement",D.ExecutionError="ExecutionError",D.InvalidApiFunctionUsage="InvalidApiFunctionUsage",D.InvalidConstantIdentifier="InvalidConstantIdentifier",D.InvalidPropertyIdentifier="InvalidPropertyIdentifier",D.NoArgumentExpected="NoArgumentExpected",D.NotADictionary="NotADictionary",D.NotDefined="NotDefined",D.NotEnoughArguments="NotEnoughArguments",D.ProfileVariablesAreImmutable="ProfileVariablesAreImmutable",D.ProfileVariablesConflict="ProfileVariablesConflict",D.ReservedKeyword="ReservedKeyword",D.TooManyArguments="TooManyArguments",D.UnexpectedEmptyFunction="UnexpectedEmptyFunction",D.UnexpectedPropertyIdentifier="UnexpectedPropertyIdentifier",D.UnknownPropertyIdentifier="UnknownPropertyIdentifier",D))(rt||{});var st=Object.values(xe),at=Object.values(ge);at.map(e=>({label:e,kind:arcadeDefaults.main.CompletionItemKind.Constant}));st.map(e=>({label:e,kind:arcadeDefaults.main.CompletionItemKind.Keyword}));
|
|
@@ -75,7 +75,7 @@ const arcadeMonarchLanguage = {
|
|
|
75
75
|
tokenPostfix: ".arc",
|
|
76
76
|
// Arcade is case insensitive
|
|
77
77
|
ignoreCase: true,
|
|
78
|
-
// builtinFunctions:
|
|
78
|
+
// builtinFunctions: [...arcadeService.FunctionNames],
|
|
79
79
|
// Arcade keywords. 'from' is a special case as we want to treat it as a keyword in
|
|
80
80
|
// import statement but as an identifer in var statement.
|
|
81
81
|
keywords: st.filter((k) => k !== "from"),
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-ac186201.js');
|
|
6
|
-
const arcadeDefaults = require('./arcade-defaults-
|
|
6
|
+
const arcadeDefaults = require('./arcade-defaults-62df45ef.js');
|
|
7
7
|
|
|
8
8
|
async function colorizeCode(code) {
|
|
9
9
|
return arcadeDefaults.editor.colorize(code, "arcade", { tabSize: 2 });
|
|
@@ -12,7 +12,7 @@ async function colorizedAllCodeElements(e) {
|
|
|
12
12
|
if (!e) {
|
|
13
13
|
return;
|
|
14
14
|
}
|
|
15
|
-
const codeElements =
|
|
15
|
+
const codeElements = [...e.querySelectorAll("code.language-arcade")];
|
|
16
16
|
await Promise.all(codeElements.map(async (codeElement) => await colorizeCodeElement(codeElement, codeElement.textContent)));
|
|
17
17
|
}
|
|
18
18
|
async function colorizeCodeElement(e, text) {
|
|
@@ -3019,7 +3019,7 @@ async function getArcadeWorker(uri) {
|
|
|
3019
3019
|
* @returns mode for arcade
|
|
3020
3020
|
*/
|
|
3021
3021
|
function getMode() {
|
|
3022
|
-
return Promise.resolve().then(function () { return require('./arcade-mode-
|
|
3022
|
+
return Promise.resolve().then(function () { return require('./arcade-mode-029b2c16.js'); });
|
|
3023
3023
|
}
|
|
3024
3024
|
// Register the language in Monaco
|
|
3025
3025
|
arcadeDefaults.languages.register({
|
|
@@ -3131,7 +3131,8 @@ const ArcgisArcadeApi = class {
|
|
|
3131
3131
|
}
|
|
3132
3132
|
catch (e) {
|
|
3133
3133
|
console.error("Could not load api library", e);
|
|
3134
|
-
|
|
3134
|
+
if (e instanceof Error)
|
|
3135
|
+
console.error(e.stack);
|
|
3135
3136
|
this._apiLibrary = undefined;
|
|
3136
3137
|
}
|
|
3137
3138
|
finally {
|
|
@@ -3656,7 +3657,7 @@ const ArcgisArcadeEditor = class {
|
|
|
3656
3657
|
// The editor profile contains the specialized profile for the UI.
|
|
3657
3658
|
this._editorProfile = arcadeDefaults.arcadeDefaults.getEditorProfileForModel(this._modelId);
|
|
3658
3659
|
}
|
|
3659
|
-
catch
|
|
3660
|
+
catch {
|
|
3660
3661
|
this._editorProfile = undefined;
|
|
3661
3662
|
}
|
|
3662
3663
|
finally {
|
|
@@ -4016,7 +4017,7 @@ const ArcgisArcadeResults = class {
|
|
|
4016
4017
|
const arcadeResult = valueToArcadeResult(feature.field(field.name));
|
|
4017
4018
|
return index.h("td", null, this.renderSimpleValue(arcadeResult));
|
|
4018
4019
|
}
|
|
4019
|
-
catch
|
|
4020
|
+
catch {
|
|
4020
4021
|
return index.h("td", null);
|
|
4021
4022
|
}
|
|
4022
4023
|
})))))));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const arcadeDefaults = require('./arcade-defaults-
|
|
3
|
+
const arcadeDefaults = require('./arcade-defaults-62df45ef.js');
|
|
4
4
|
require('./index-ac186201.js');
|
|
5
5
|
|
|
6
6
|
/*!-----------------------------------------------------------------------------
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const arcadeDefaults = require('./arcade-defaults-
|
|
3
|
+
const arcadeDefaults = require('./arcade-defaults-62df45ef.js');
|
|
4
4
|
require('./index-ac186201.js');
|
|
5
5
|
|
|
6
6
|
/*!-----------------------------------------------------------------------------
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const arcadeDefaults = require('./arcade-defaults-
|
|
3
|
+
const arcadeDefaults = require('./arcade-defaults-62df45ef.js');
|
|
4
4
|
require('./index-ac186201.js');
|
|
5
5
|
|
|
6
6
|
/*!-----------------------------------------------------------------------------
|
package/dist/cjs/index.cjs.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const typescript = require('./typescript-
|
|
4
|
-
require('./arcade-defaults-
|
|
3
|
+
const typescript = require('./typescript-cacef1c1.js');
|
|
4
|
+
require('./arcade-defaults-62df45ef.js');
|
|
5
5
|
require('./index-ac186201.js');
|
|
6
6
|
|
|
7
7
|
/*!-----------------------------------------------------------------------------
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const arcadeDefaults = require('./arcade-defaults-
|
|
3
|
+
const arcadeDefaults = require('./arcade-defaults-62df45ef.js');
|
|
4
4
|
require('./index-ac186201.js');
|
|
5
5
|
|
|
6
6
|
/*!-----------------------------------------------------------------------------
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const arcadeDefaults = require('./arcade-defaults-
|
|
3
|
+
const arcadeDefaults = require('./arcade-defaults-62df45ef.js');
|
|
4
4
|
require('./index-ac186201.js');
|
|
5
5
|
|
|
6
6
|
/*!-----------------------------------------------------------------------------
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const arcadeDefaults = require('./arcade-defaults-
|
|
3
|
+
const arcadeDefaults = require('./arcade-defaults-62df45ef.js');
|
|
4
4
|
require('./index-ac186201.js');
|
|
5
5
|
|
|
6
6
|
/*!-----------------------------------------------------------------------------
|
|
@@ -111,7 +111,8 @@ const ArcgisArcadeApi = /*@__PURE__*/ proxyCustomElement(class ArcgisArcadeApi e
|
|
|
111
111
|
}
|
|
112
112
|
catch (e) {
|
|
113
113
|
console.error("Could not load api library", e);
|
|
114
|
-
|
|
114
|
+
if (e instanceof Error)
|
|
115
|
+
console.error(e.stack);
|
|
115
116
|
this._apiLibrary = undefined;
|
|
116
117
|
}
|
|
117
118
|
finally {
|
|
@@ -73,7 +73,7 @@ const arcadeMonarchLanguage = {
|
|
|
73
73
|
tokenPostfix: ".arc",
|
|
74
74
|
// Arcade is case insensitive
|
|
75
75
|
ignoreCase: true,
|
|
76
|
-
// builtinFunctions:
|
|
76
|
+
// builtinFunctions: [...arcadeService.FunctionNames],
|
|
77
77
|
// Arcade keywords. 'from' is a special case as we want to treat it as a keyword in
|
|
78
78
|
// import statement but as an identifer in var statement.
|
|
79
79
|
keywords: st.filter((k) => k !== "from"),
|
|
@@ -468,7 +468,7 @@ const ArcgisArcadeResults = /*@__PURE__*/ proxyCustomElement(class ArcgisArcadeR
|
|
|
468
468
|
const arcadeResult = valueToArcadeResult(feature.field(field.name));
|
|
469
469
|
return h("td", null, this.renderSimpleValue(arcadeResult));
|
|
470
470
|
}
|
|
471
|
-
catch
|
|
471
|
+
catch {
|
|
472
472
|
return h("td", null);
|
|
473
473
|
}
|
|
474
474
|
})))))));
|
|
@@ -303,7 +303,7 @@ const ArcgisArcadeEditor$1 = /*@__PURE__*/ proxyCustomElement(class ArcgisArcade
|
|
|
303
303
|
// The editor profile contains the specialized profile for the UI.
|
|
304
304
|
this._editorProfile = arcadeDefaults.getEditorProfileForModel(this._modelId);
|
|
305
305
|
}
|
|
306
|
-
catch
|
|
306
|
+
catch {
|
|
307
307
|
this._editorProfile = undefined;
|
|
308
308
|
}
|
|
309
309
|
finally {
|
|
@@ -10,7 +10,7 @@ async function colorizedAllCodeElements(e) {
|
|
|
10
10
|
if (!e) {
|
|
11
11
|
return;
|
|
12
12
|
}
|
|
13
|
-
const codeElements =
|
|
13
|
+
const codeElements = [...e.querySelectorAll("code.language-arcade")];
|
|
14
14
|
await Promise.all(codeElements.map(async (codeElement) => await colorizeCodeElement(codeElement, codeElement.textContent)));
|
|
15
15
|
}
|
|
16
16
|
async function colorizeCodeElement(e, text) {
|
|
@@ -118028,7 +118028,7 @@ registerLanguage({
|
|
|
118028
118028
|
mimetypes: ["text/html", "text/x-jshtm", "text/template", "text/ng-template"],
|
|
118029
118029
|
loader: () => {
|
|
118030
118030
|
{
|
|
118031
|
-
return import('./html-
|
|
118031
|
+
return import('./html-a19f99cb.js');
|
|
118032
118032
|
}
|
|
118033
118033
|
}
|
|
118034
118034
|
});
|
|
@@ -118048,7 +118048,7 @@ registerLanguage({
|
|
|
118048
118048
|
mimetypes: ["text/javascript"],
|
|
118049
118049
|
loader: () => {
|
|
118050
118050
|
{
|
|
118051
|
-
return import('./javascript-
|
|
118051
|
+
return import('./javascript-552ad17f.js');
|
|
118052
118052
|
}
|
|
118053
118053
|
}
|
|
118054
118054
|
});
|
|
@@ -118066,7 +118066,7 @@ registerLanguage({
|
|
|
118066
118066
|
mimetypes: ["text/typescript"],
|
|
118067
118067
|
loader: () => {
|
|
118068
118068
|
{
|
|
118069
|
-
return import('./typescript-
|
|
118069
|
+
return import('./typescript-8e361b98.js');
|
|
118070
118070
|
}
|
|
118071
118071
|
}
|
|
118072
118072
|
});
|
|
@@ -118187,7 +118187,7 @@ var lessDefaults = new LanguageServiceDefaultsImpl$3("less", optionsDefault$1, m
|
|
|
118187
118187
|
monaco_editor_core_exports$3.languages.css = { cssDefaults, lessDefaults, scssDefaults };
|
|
118188
118188
|
function getMode$3() {
|
|
118189
118189
|
{
|
|
118190
|
-
return import('./cssMode-
|
|
118190
|
+
return import('./cssMode-108dda4d.js');
|
|
118191
118191
|
}
|
|
118192
118192
|
}
|
|
118193
118193
|
monaco_editor_core_exports$3.languages.onLanguage("less", () => {
|
|
@@ -118312,7 +118312,7 @@ monaco_editor_core_exports$2.languages.html = {
|
|
|
118312
118312
|
};
|
|
118313
118313
|
function getMode$2() {
|
|
118314
118314
|
{
|
|
118315
|
-
return import('./htmlMode-
|
|
118315
|
+
return import('./htmlMode-cd3f510a.js');
|
|
118316
118316
|
}
|
|
118317
118317
|
}
|
|
118318
118318
|
function registerHTMLLanguageService(languageId, options = optionsDefault, modeConfiguration = getConfigurationDefault(languageId)) {
|
|
@@ -118414,7 +118414,7 @@ var jsonDefaults = new LanguageServiceDefaultsImpl$1("json", diagnosticDefault,
|
|
|
118414
118414
|
monaco_editor_core_exports$1.languages.json = { jsonDefaults };
|
|
118415
118415
|
function getMode$1() {
|
|
118416
118416
|
{
|
|
118417
|
-
return import('./jsonMode-
|
|
118417
|
+
return import('./jsonMode-ca43c6cd.js');
|
|
118418
118418
|
}
|
|
118419
118419
|
}
|
|
118420
118420
|
monaco_editor_core_exports$1.languages.register({
|
|
@@ -118683,7 +118683,7 @@ monaco_editor_core_exports.languages.typescript = {
|
|
|
118683
118683
|
};
|
|
118684
118684
|
function getMode() {
|
|
118685
118685
|
{
|
|
118686
|
-
return import('./tsMode-
|
|
118686
|
+
return import('./tsMode-bd6f8aa1.js');
|
|
118687
118687
|
}
|
|
118688
118688
|
}
|
|
118689
118689
|
monaco_editor_core_exports.languages.onLanguage("typescript", () => {
|
|
@@ -168534,7 +168534,7 @@ async function getSdkPredefinedProfiles(locale = "en") {
|
|
|
168534
168534
|
}
|
|
168535
168535
|
return getSdkPredefinedProfiles("en");
|
|
168536
168536
|
}
|
|
168537
|
-
catch
|
|
168537
|
+
catch {
|
|
168538
168538
|
return null;
|
|
168539
168539
|
}
|
|
168540
168540
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as main, e as editor, M as MarkerSeverity, R as Range, l as languages, E as Emitter } from './arcade-defaults-
|
|
1
|
+
import { n as main, e as editor, M as MarkerSeverity, R as Range, l as languages, E as Emitter } from './arcade-defaults-2ce9f0c3.js';
|
|
2
2
|
import './index-022fb97b.js';
|
|
3
3
|
|
|
4
4
|
var ge=(e=>(e.False="false",e.Null="null",e.True="true",e))(ge||{}),xe=(e=>(e.Break="break",e.Continue="continue",e.Else="else",e.For="for",e.From="from",e.Function="function",e.If="if",e.Import="import",e.Export="export",e.In="in",e.Return="return",e.Var="var",e.While="while",e))(xe||{}),c=(e=>(e.AssignmentExpression="AssignmentExpression",e.ArrayExpression="ArrayExpression",e.BlockComment="BlockComment",e.BlockStatement="BlockStatement",e.BinaryExpression="BinaryExpression",e.BreakStatement="BreakStatement",e.CallExpression="CallExpression",e.ContinueStatement="ContinueStatement",e.EmptyStatement="EmptyStatement",e.ExpressionStatement="ExpressionStatement",e.ExportNamedDeclaration="ExportNamedDeclaration",e.ExportSpecifier="ExportSpecifier",e.ForStatement="ForStatement",e.ForInStatement="ForInStatement",e.FunctionDeclaration="FunctionDeclaration",e.Identifier="Identifier",e.IfStatement="IfStatement",e.ImportDeclaration="ImportDeclaration",e.ImportDefaultSpecifier="ImportDefaultSpecifier",e.LineComment="LineComment",e.Literal="Literal",e.LogicalExpression="LogicalExpression",e.MemberExpression="MemberExpression",e.ObjectExpression="ObjectExpression",e.Program="Program",e.Property="Property",e.ReturnStatement="ReturnStatement",e.TemplateElement="TemplateElement",e.TemplateLiteral="TemplateLiteral",e.UnaryExpression="UnaryExpression",e.UpdateExpression="UpdateExpression",e.VariableDeclaration="VariableDeclaration",e.VariableDeclarator="VariableDeclarator",e.WhileStatement="WhileStatement",e))(c||{}),De=["++","--"],We=["-","+","!","~"],qe=["=","/=","*=","%=","+=","-="],He=["||","&&"],bt=["|","&",">>","<<",">>>","^","==","!=","<","<=",">",">=","+","-","*","/","%"],It=(e=>(e[e.Unknown=0]="Unknown",e[e.BooleanLiteral=1]="BooleanLiteral",e[e.EOF=2]="EOF",e[e.Identifier=3]="Identifier",e[e.Keyword=4]="Keyword",e[e.NullLiteral=5]="NullLiteral",e[e.NumericLiteral=6]="NumericLiteral",e[e.Punctuator=7]="Punctuator",e[e.StringLiteral=8]="StringLiteral",e[e.Template=10]="Template",e))(It||{}),kt=(e=>(e.InvalidModuleUri="InvalidModuleUri",e.ForInOfLoopInitializer="ForInOfLoopInitializer",e.IdentiferExpected="IdentiferExpected",e.InvalidEscapedReservedWord="InvalidEscapedReservedWord",e.InvalidExpression="InvalidExpression",e.InvalidFunctionIdentifier="InvalidFunctionIdentifier",e.InvalidHexEscapeSequence="InvalidHexEscapeSequence",e.InvalidLeftHandSideInAssignment="InvalidLeftHandSideInAssignment",e.InvalidLeftHandSideInForIn="InvalidLeftHandSideInForIn",e.InvalidTemplateHead="InvalidTemplateHead",e.InvalidVariableAssignment="InvalidVariableAssignment",e.KeyMustBeString="KeyMustBeString",e.NoFunctionInsideBlock="NoFunctionInsideBlock",e.NoFunctionInsideFunction="NoFunctionInsideFunction",e.ModuleExportRootOnly="ModuleExportRootOnly",e.ModuleImportRootOnly="ModuleImportRootOnly",e.PunctuatorExpected="PunctuatorExpected",e.TemplateOctalLiteral="TemplateOctalLiteral",e.UnexpectedBoolean="UnexpectedBoolean",e.UnexpectedEndOfScript="UnexpectedEndOfScript",e.UnexpectedIdentifier="UnexpectedIdentifier",e.UnexpectedKeyword="UnexpectedKeyword",e.UnexpectedNull="UnexpectedNull",e.UnexpectedNumber="UnexpectedNumber",e.UnexpectedPunctuator="UnexpectedPunctuator",e.UnexpectedString="UnexpectedString",e.UnexpectedTemplate="UnexpectedTemplate",e.UnexpectedToken="UnexpectedToken",e))(kt||{});var v=[[],[],[]];De.forEach(e=>v[e.length-1].push(e));We.forEach(e=>v[e.length-1].push(e));He.forEach(e=>v[e.length-1].push(e));qe.forEach(e=>v[e.length-1].push(e));bt.forEach(e=>v[e.length-1].push(e));var rt=(D=>(D.AlreadyDefined="AlreadyDefined",D.ApiConflict="ApiConflict",D.AssignedNeverUsed="AssignedNeverUsed",D.DefinedNeverAssigned="DefinedNeverAssigned",D.DefinedNeverUsed="DefinedNeverUsed",D.EmptyBlockStatement="EmptyBlockStatement",D.ExecutionError="ExecutionError",D.InvalidApiFunctionUsage="InvalidApiFunctionUsage",D.InvalidConstantIdentifier="InvalidConstantIdentifier",D.InvalidPropertyIdentifier="InvalidPropertyIdentifier",D.NoArgumentExpected="NoArgumentExpected",D.NotADictionary="NotADictionary",D.NotDefined="NotDefined",D.NotEnoughArguments="NotEnoughArguments",D.ProfileVariablesAreImmutable="ProfileVariablesAreImmutable",D.ProfileVariablesConflict="ProfileVariablesConflict",D.ReservedKeyword="ReservedKeyword",D.TooManyArguments="TooManyArguments",D.UnexpectedEmptyFunction="UnexpectedEmptyFunction",D.UnexpectedPropertyIdentifier="UnexpectedPropertyIdentifier",D.UnknownPropertyIdentifier="UnknownPropertyIdentifier",D))(rt||{});var st=Object.values(xe),at=Object.values(ge);at.map(e=>({label:e,kind:main.CompletionItemKind.Constant}));st.map(e=>({label:e,kind:main.CompletionItemKind.Keyword}));
|
|
@@ -73,7 +73,7 @@ const arcadeMonarchLanguage = {
|
|
|
73
73
|
tokenPostfix: ".arc",
|
|
74
74
|
// Arcade is case insensitive
|
|
75
75
|
ignoreCase: true,
|
|
76
|
-
// builtinFunctions:
|
|
76
|
+
// builtinFunctions: [...arcadeService.FunctionNames],
|
|
77
77
|
// Arcade keywords. 'from' is a special case as we want to treat it as a keyword in
|
|
78
78
|
// import statement but as an identifer in var statement.
|
|
79
79
|
keywords: st.filter((k) => k !== "from"),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h, r as registerInstance, c as createEvent, g as getAssetPath, H as Host, a as getElement, F as Fragment } from './index-022fb97b.js';
|
|
2
|
-
import { g as generateTokensCSSForColorMap, e as editor, S as StandaloneServices, I as IStandaloneThemeService, c as createCommonjsModule, b as commonjsGlobal, X, V, i as importRequest, l as languages, d as arcadeDefaults, F, U as Uri, f as U, O, h as filterCollection, q, j as importArcade, p, $, P, K as KeyCode, H, z, s as supportedFields, B, R as Range, T, k as KeyMod } from './arcade-defaults-
|
|
2
|
+
import { g as generateTokensCSSForColorMap, e as editor, S as StandaloneServices, I as IStandaloneThemeService, c as createCommonjsModule, b as commonjsGlobal, X, V, i as importRequest, l as languages, d as arcadeDefaults, F, U as Uri, f as U, O, h as filterCollection, q, j as importArcade, p, $, P, K as KeyCode, H, z, s as supportedFields, B, R as Range, T, k as KeyMod } from './arcade-defaults-2ce9f0c3.js';
|
|
3
3
|
|
|
4
4
|
async function colorizeCode(code) {
|
|
5
5
|
return editor.colorize(code, "arcade", { tabSize: 2 });
|
|
@@ -8,7 +8,7 @@ async function colorizedAllCodeElements(e) {
|
|
|
8
8
|
if (!e) {
|
|
9
9
|
return;
|
|
10
10
|
}
|
|
11
|
-
const codeElements =
|
|
11
|
+
const codeElements = [...e.querySelectorAll("code.language-arcade")];
|
|
12
12
|
await Promise.all(codeElements.map(async (codeElement) => await colorizeCodeElement(codeElement, codeElement.textContent)));
|
|
13
13
|
}
|
|
14
14
|
async function colorizeCodeElement(e, text) {
|
|
@@ -3015,7 +3015,7 @@ async function getArcadeWorker(uri) {
|
|
|
3015
3015
|
* @returns mode for arcade
|
|
3016
3016
|
*/
|
|
3017
3017
|
function getMode() {
|
|
3018
|
-
return import('./arcade-mode-
|
|
3018
|
+
return import('./arcade-mode-e78165f9.js');
|
|
3019
3019
|
}
|
|
3020
3020
|
// Register the language in Monaco
|
|
3021
3021
|
languages.register({
|
|
@@ -3127,7 +3127,8 @@ const ArcgisArcadeApi = class {
|
|
|
3127
3127
|
}
|
|
3128
3128
|
catch (e) {
|
|
3129
3129
|
console.error("Could not load api library", e);
|
|
3130
|
-
|
|
3130
|
+
if (e instanceof Error)
|
|
3131
|
+
console.error(e.stack);
|
|
3131
3132
|
this._apiLibrary = undefined;
|
|
3132
3133
|
}
|
|
3133
3134
|
finally {
|
|
@@ -3652,7 +3653,7 @@ const ArcgisArcadeEditor = class {
|
|
|
3652
3653
|
// The editor profile contains the specialized profile for the UI.
|
|
3653
3654
|
this._editorProfile = arcadeDefaults.getEditorProfileForModel(this._modelId);
|
|
3654
3655
|
}
|
|
3655
|
-
catch
|
|
3656
|
+
catch {
|
|
3656
3657
|
this._editorProfile = undefined;
|
|
3657
3658
|
}
|
|
3658
3659
|
finally {
|
|
@@ -4012,7 +4013,7 @@ const ArcgisArcadeResults = class {
|
|
|
4012
4013
|
const arcadeResult = valueToArcadeResult(feature.field(field.name));
|
|
4013
4014
|
return h("td", null, this.renderSimpleValue(arcadeResult));
|
|
4014
4015
|
}
|
|
4015
|
-
catch
|
|
4016
|
+
catch {
|
|
4016
4017
|
return h("td", null);
|
|
4017
4018
|
}
|
|
4018
4019
|
})))))));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as monaco_editor_core_star } from './arcade-defaults-
|
|
1
|
+
import { m as monaco_editor_core_star } from './arcade-defaults-2ce9f0c3.js';
|
|
2
2
|
import './index-022fb97b.js';
|
|
3
3
|
|
|
4
4
|
/*!-----------------------------------------------------------------------------
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as monaco_editor_core_star } from './arcade-defaults-
|
|
1
|
+
import { m as monaco_editor_core_star } from './arcade-defaults-2ce9f0c3.js';
|
|
2
2
|
import './index-022fb97b.js';
|
|
3
3
|
|
|
4
4
|
/*!-----------------------------------------------------------------------------
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as monaco_editor_core_star } from './arcade-defaults-
|
|
1
|
+
import { m as monaco_editor_core_star } from './arcade-defaults-2ce9f0c3.js';
|
|
2
2
|
import './index-022fb97b.js';
|
|
3
3
|
|
|
4
4
|
/*!-----------------------------------------------------------------------------
|
package/dist/esm/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { a as arcade } from './arcade-defaults-
|
|
1
|
+
export { a as arcade } from './arcade-defaults-2ce9f0c3.js';
|
|
2
2
|
import './index-022fb97b.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { conf as conf$1, language as language$1 } from './typescript-
|
|
2
|
-
import './arcade-defaults-
|
|
1
|
+
import { conf as conf$1, language as language$1 } from './typescript-8e361b98.js';
|
|
2
|
+
import './arcade-defaults-2ce9f0c3.js';
|
|
3
3
|
import './index-022fb97b.js';
|
|
4
4
|
|
|
5
5
|
/*!-----------------------------------------------------------------------------
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as monaco_editor_core_star } from './arcade-defaults-
|
|
1
|
+
import { m as monaco_editor_core_star } from './arcade-defaults-2ce9f0c3.js';
|
|
2
2
|
import './index-022fb97b.js';
|
|
3
3
|
|
|
4
4
|
/*!-----------------------------------------------------------------------------
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as typescriptDefaults, m as monaco_editor_core_star } from './arcade-defaults-
|
|
1
|
+
import { t as typescriptDefaults, m as monaco_editor_core_star } from './arcade-defaults-2ce9f0c3.js';
|
|
2
2
|
import './index-022fb97b.js';
|
|
3
3
|
|
|
4
4
|
/*!-----------------------------------------------------------------------------
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as monaco_editor_core_star } from './arcade-defaults-
|
|
1
|
+
import { m as monaco_editor_core_star } from './arcade-defaults-2ce9f0c3.js';
|
|
2
2
|
import './index-022fb97b.js';
|
|
3
3
|
|
|
4
4
|
/*!-----------------------------------------------------------------------------
|
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.50",
|
|
6
6
|
"module": "dist/components/index.js",
|
|
7
7
|
"main": "dist/index.cjs.js",
|
|
8
8
|
"types": "dist/types/index.d.ts",
|
|
@@ -48,16 +48,16 @@
|
|
|
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.50",
|
|
52
52
|
"@stencil/core": "4.8.2",
|
|
53
53
|
"monaco-editor": "^0.44.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.50",
|
|
58
|
+
"@arcgis/components-utils": "4.29.0-beta.50",
|
|
59
59
|
"@arcgis/core": ">=4.29.0-next <4.30",
|
|
60
|
-
"@arcgis/core-adapter": "4.29.0-beta.
|
|
60
|
+
"@arcgis/core-adapter": "4.29.0-beta.50",
|
|
61
61
|
"@arcgis/typescript-config": "1.0.0",
|
|
62
62
|
"@esri/calcite-components": "^2.1.0",
|
|
63
63
|
"@stencil/angular-output-target": "0.8.1",
|
|
@@ -110,5 +110,5 @@
|
|
|
110
110
|
"@arcgis/core": ">=4.29.0-next <4.30",
|
|
111
111
|
"@esri/calcite-components": "^2.1.0"
|
|
112
112
|
},
|
|
113
|
-
"gitHead": "
|
|
113
|
+
"gitHead": "1a15b73b1e3cb6822bd30db5bff6d4058fbb1c32"
|
|
114
114
|
}
|