@arcgis/coding-components 4.29.0-beta.62 → 4.29.0-beta.63
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/index.esm.js +1 -1
- package/dist/arcgis-coding-components/{p-061e6138.js → p-2a665136.js} +1 -1
- package/dist/arcgis-coding-components/{p-6ab0494e.js → p-3ba4deea.js} +1 -1
- package/dist/arcgis-coding-components/{p-0d7b2c4b.js → p-595d9a06.js} +1 -1
- package/dist/arcgis-coding-components/{p-d685a671.js → p-7b6af57c.js} +1 -1
- package/dist/arcgis-coding-components/{p-3e855f9c.js → p-7d5fcf2e.js} +8 -8
- package/dist/arcgis-coding-components/{p-faae9e50.js → p-989439a0.js} +1 -1
- package/dist/arcgis-coding-components/{p-9016dc94.js → p-9b4a0643.js} +1 -1
- package/dist/arcgis-coding-components/{p-dbf0130c.js → p-d7ca1083.js} +1 -1
- package/dist/arcgis-coding-components/{p-f6e12d5f.entry.js → p-e4efcbd0.entry.js} +1 -1
- package/dist/arcgis-coding-components/{p-93252bb5.js → p-fcdd0366.js} +1 -1
- package/dist/cjs/{arcade-defaults-a23c6057.js → arcade-defaults-5c2ff166.js} +251 -251
- package/dist/cjs/{arcade-mode-917ca23f.js → arcade-mode-23925c8d.js} +1 -1
- package/dist/cjs/arcgis-arcade-api_6.cjs.entry.js +33 -33
- package/dist/cjs/{cssMode-d02be328.js → cssMode-2e878b70.js} +1 -1
- package/dist/cjs/{html-4a4537a9.js → html-847c7e39.js} +1 -1
- package/dist/cjs/{htmlMode-ce2c81dc.js → htmlMode-7a36db6d.js} +1 -1
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/{javascript-3119740d.js → javascript-f5ca9a1a.js} +2 -2
- package/dist/cjs/{jsonMode-f9250e13.js → jsonMode-0d326a6e.js} +1 -1
- package/dist/cjs/{tsMode-9c22cf93.js → tsMode-e4abe99d.js} +1 -1
- package/dist/cjs/{typescript-2faa236a.js → typescript-c43b7258.js} +1 -1
- package/dist/components/arcade-api.js +6 -6
- package/dist/components/arcade-contribution.js +2 -2
- package/dist/components/arcade-defaults.js +8 -8
- package/dist/components/arcade-results.js +12 -12
- package/dist/components/arcade-suggestions.js +4 -4
- package/dist/components/arcade-variables.js +5 -5
- package/dist/components/arcgis-arcade-editor.js +15 -15
- package/dist/components/code-editor.js +5 -5
- package/dist/components/index2.js +2 -2
- package/dist/components/utilities.js +2 -2
- package/dist/esm/{arcade-defaults-7b495156.js → arcade-defaults-7525fe7a.js} +243 -243
- package/dist/esm/{arcade-mode-de60b33c.js → arcade-mode-312bbd22.js} +1 -1
- package/dist/esm/arcgis-arcade-api_6.entry.js +33 -33
- package/dist/esm/{cssMode-b54550d7.js → cssMode-71ce0374.js} +1 -1
- package/dist/esm/{html-5268964a.js → html-37ae4460.js} +1 -1
- package/dist/esm/{htmlMode-b54c7ef1.js → htmlMode-ae5b0f39.js} +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/{javascript-8f4cabbd.js → javascript-ad435a4b.js} +2 -2
- package/dist/esm/{jsonMode-94061c51.js → jsonMode-b8bb4df0.js} +1 -1
- package/dist/esm/{tsMode-928e55fb.js → tsMode-b967128d.js} +1 -1
- package/dist/esm/{typescript-44036302.js → typescript-a9a22ab3.js} +1 -1
- package/package.json +6 -6
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { r as main, e as editor, M as MarkerSeverity, R as Range, l as languages, E as Emitter } from './arcade-defaults-7525fe7a.js';
|
|
2
2
|
import './index-022fb97b.js';
|
|
3
3
|
|
|
4
4
|
var fe=(e=>(e.False="false",e.Null="null",e.True="true",e))(fe||{}),ge=(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))(ge||{}),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||{}),me=["++","--"],We=["-","+","!","~"],qe=["=","/=","*=","%=","+=","-="],He=["||","&&"],Pt=["|","&",">>","<<",">>>","^","==","!=","<","<=",">",">=","+","-","*","/","%"],bt=(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))(bt||{}),It=(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))(It||{});var L=[[],[],[]];me.forEach(e=>L[e.length-1].push(e));We.forEach(e=>L[e.length-1].push(e));He.forEach(e=>L[e.length-1].push(e));qe.forEach(e=>L[e.length-1].push(e));Pt.forEach(e=>L[e.length-1].push(e));var nt=Object.values(ge),st=Object.values(fe);st.map(e=>({label:e,kind:main.CompletionItemKind.Constant}));nt.map(e=>({label:e,kind:main.CompletionItemKind.Keyword}));
|
|
@@ -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,
|
|
2
|
+
import { g as generateTokensCSSForColorMap, e as editor, S as StandaloneServices, I as IStandaloneThemeService, c as createCommonjsModule, b as commonjsGlobal, n as ne, t as te, i as importRequest, l as languages, d as arcadeDefaults, W, U as Uri, B, j, f as filterCollection, G, h as importArcade, k as h$1, F, $, K as KeyCode, D, q, s as supportedFields, Q, R as Range, T, m as KeyMod } from './arcade-defaults-7525fe7a.js';
|
|
3
3
|
|
|
4
4
|
async function colorizeCode(code) {
|
|
5
5
|
return await editor.colorize(code, "arcade", { tabSize: 2 });
|
|
@@ -2968,7 +2968,7 @@ function setupMonacoEnvironment(assetsPath) {
|
|
|
2968
2968
|
break;
|
|
2969
2969
|
}
|
|
2970
2970
|
// If we have a relative path or we are on same orgin, we can use the default js implementation
|
|
2971
|
-
if (!
|
|
2971
|
+
if (!ne(url) || te(url, globalThis.location.href, true)) {
|
|
2972
2972
|
return new Worker(url, { name: languageId });
|
|
2973
2973
|
}
|
|
2974
2974
|
// For cross orgin, we will load the worker code as a string and manufacture a blob
|
|
@@ -3015,7 +3015,7 @@ async function getArcadeWorker(uri) {
|
|
|
3015
3015
|
* @returns mode for arcade
|
|
3016
3016
|
*/
|
|
3017
3017
|
async function getMode() {
|
|
3018
|
-
return await import('./arcade-mode-
|
|
3018
|
+
return await import('./arcade-mode-312bbd22.js');
|
|
3019
3019
|
}
|
|
3020
3020
|
// Register the language in Monaco
|
|
3021
3021
|
languages.register({
|
|
@@ -3094,7 +3094,7 @@ const ArcgisArcadeApi = class {
|
|
|
3094
3094
|
async componentWillLoad() {
|
|
3095
3095
|
this._colorizeStyle = generateColorizeStyles();
|
|
3096
3096
|
this._themeChangedListner = onColorizeThemeChanged(() => (this._colorizeStyle = generateColorizeStyles()));
|
|
3097
|
-
await
|
|
3097
|
+
await W(this, getAssetPath("./assets"));
|
|
3098
3098
|
arcadeDefaults.onModelContextDidChange((key) => {
|
|
3099
3099
|
if (!this.modelId || key !== Uri.parse(this.modelId).toString()) {
|
|
3100
3100
|
return;
|
|
@@ -3104,7 +3104,7 @@ const ArcgisArcadeApi = class {
|
|
|
3104
3104
|
this._updateApiLibrary();
|
|
3105
3105
|
}
|
|
3106
3106
|
disconnectedCallback() {
|
|
3107
|
-
|
|
3107
|
+
B(this);
|
|
3108
3108
|
this._flowObserver?.disconnect();
|
|
3109
3109
|
this._themeChangedListner?.dispose();
|
|
3110
3110
|
}
|
|
@@ -3149,7 +3149,7 @@ const ArcgisArcadeApi = class {
|
|
|
3149
3149
|
// When switching between flow the same reference is reused
|
|
3150
3150
|
this._flowObserver = new MutationObserver(() => {
|
|
3151
3151
|
// Get the last panel and try to set focus on the input element
|
|
3152
|
-
|
|
3152
|
+
j(ref.querySelector("calcite-flow-item:last-child"), "calcite-input");
|
|
3153
3153
|
});
|
|
3154
3154
|
this._flowObserver.observe(ref, { attributes: true, attributeFilter: ["id"], childList: true });
|
|
3155
3155
|
}
|
|
@@ -3160,14 +3160,14 @@ const ArcgisArcadeApi = class {
|
|
|
3160
3160
|
if (!filteredApiItems.length) {
|
|
3161
3161
|
return null;
|
|
3162
3162
|
}
|
|
3163
|
-
return (h("calcite-list-item-group", { heading: category.title }, filteredApiItems.map((apiItem) => (h("calcite-list-item", { label:
|
|
3163
|
+
return (h("calcite-list-item-group", { heading: category.title }, filteredApiItems.map((apiItem) => (h("calcite-list-item", { label: G(apiItem.completion.detail), onCalciteListItemSelect: this._emitItemSelected, onKeyPress: this._emitItemSelected, "data-item": apiItem }, h("calcite-action", { slot: "actions-end", text: this._t9nStrings?.expand ?? "Expand", icon: "chevron-right", iconFlipRtl: true, scale: "s", onClick: this._selectItem, "data-item": apiItem }))))));
|
|
3164
3164
|
}
|
|
3165
3165
|
renderApiItemFlowItem() {
|
|
3166
3166
|
const apiItem = this._selectedApiItem;
|
|
3167
3167
|
if (!apiItem) {
|
|
3168
3168
|
return null;
|
|
3169
3169
|
}
|
|
3170
|
-
return (h("calcite-flow-item", { heading: this._t9nStrings?.constantsandfunctions, beforeBack: this._unselectItem, closable: true, onCalciteFlowItemClose: this._emitClose }, this.hideDocumentationActions ? null : (h("calcite-button", { width: "half", slot: "footer", appearance: "outline", kind: "brand", scale: "s", href: apiItem.link, target: "Arcade Help", "icon-start": "information" }, this._t9nStrings?.moreinformation)), h("calcite-button", { width: "half", slot: "footer", appearance: "outline", kind: "brand", "icon-start": "code", scale: "s", onClick: this._emitItemSelectedAndClose, "data-item": apiItem, ref: (e) => void e?.setFocus() }, this._t9nStrings?.insert ?? "Insert"), h("calcite-block", { open: true, heading:
|
|
3170
|
+
return (h("calcite-flow-item", { heading: this._t9nStrings?.constantsandfunctions, beforeBack: this._unselectItem, closable: true, onCalciteFlowItemClose: this._emitClose }, this.hideDocumentationActions ? null : (h("calcite-button", { width: "half", slot: "footer", appearance: "outline", kind: "brand", scale: "s", href: apiItem.link, target: "Arcade Help", "icon-start": "information" }, this._t9nStrings?.moreinformation)), h("calcite-button", { width: "half", slot: "footer", appearance: "outline", kind: "brand", "icon-start": "code", scale: "s", onClick: this._emitItemSelectedAndClose, "data-item": apiItem, ref: (e) => void e?.setFocus() }, this._t9nStrings?.insert ?? "Insert"), h("calcite-block", { open: true, heading: G(apiItem.completion.detail) }, h("div", { innerHTML: convertMarkdownString(apiItem.completion.documentation) }), apiItem.examples ? (h("div", { ref: (e) => {
|
|
3171
3171
|
if (!e) {
|
|
3172
3172
|
return;
|
|
3173
3173
|
}
|
|
@@ -3430,8 +3430,8 @@ const ArcgisArcadeEditor = class {
|
|
|
3430
3430
|
registerInstance(this, hostRef);
|
|
3431
3431
|
this.scriptChange = createEvent(this, "scriptChange", 3);
|
|
3432
3432
|
this.diagnosticsChange = createEvent(this, "diagnosticsChange", 3);
|
|
3433
|
-
this._componentReadyDefer = new
|
|
3434
|
-
this._modelId =
|
|
3433
|
+
this._componentReadyDefer = new h$1();
|
|
3434
|
+
this._modelId = F();
|
|
3435
3435
|
this._editorProfilePromise = Promise.resolve(undefined);
|
|
3436
3436
|
this._disposables = [];
|
|
3437
3437
|
this._executeScript = async () => {
|
|
@@ -3572,7 +3572,7 @@ const ArcgisArcadeEditor = class {
|
|
|
3572
3572
|
* @internal
|
|
3573
3573
|
*/
|
|
3574
3574
|
async updateThemeColors(colorRules) {
|
|
3575
|
-
const theme =
|
|
3575
|
+
const theme = $(this._hostElement);
|
|
3576
3576
|
updateThemeColors(theme, colorRules);
|
|
3577
3577
|
if (colorRules === undefined) {
|
|
3578
3578
|
["comment", "keyword", "identifier", "string", "number", "constant", "date"].forEach((key) => {
|
|
@@ -3601,7 +3601,7 @@ const ArcgisArcadeEditor = class {
|
|
|
3601
3601
|
// Starts a locale observer. It will load the correct t9n strings for the component
|
|
3602
3602
|
// when the locale changes. We also pass updateEditorProfile. It will be invoked the first
|
|
3603
3603
|
// and on each locale change. The profile has to be refreshed on locale change as well.
|
|
3604
|
-
await
|
|
3604
|
+
await W(this, assetsPath, async () => await this._updateEditorProfile());
|
|
3605
3605
|
}
|
|
3606
3606
|
async componentDidLoad() {
|
|
3607
3607
|
// Mark on component as ready.
|
|
@@ -3629,7 +3629,7 @@ const ArcgisArcadeEditor = class {
|
|
|
3629
3629
|
await this._codeEditorElt?.setFocus();
|
|
3630
3630
|
}
|
|
3631
3631
|
disconnectedCallback() {
|
|
3632
|
-
|
|
3632
|
+
B(this);
|
|
3633
3633
|
arcadeDefaults.disposeApiContextForModel(this._modelId);
|
|
3634
3634
|
arcadeDefaults.disposeEditorProfileForModel(this._modelId);
|
|
3635
3635
|
while (this._disposables.length) {
|
|
@@ -3833,10 +3833,10 @@ const ArcgisArcadeResults = class {
|
|
|
3833
3833
|
//#endregion
|
|
3834
3834
|
// #region Component lifecycle events
|
|
3835
3835
|
async componentWillLoad() {
|
|
3836
|
-
await
|
|
3836
|
+
await W(this, getAssetPath("./assets"));
|
|
3837
3837
|
}
|
|
3838
3838
|
disconnectedCallback() {
|
|
3839
|
-
|
|
3839
|
+
B(this);
|
|
3840
3840
|
}
|
|
3841
3841
|
// #endregion
|
|
3842
3842
|
//#region Private Methods
|
|
@@ -3863,18 +3863,18 @@ const ArcgisArcadeResults = class {
|
|
|
3863
3863
|
return h("calcite-loader", { scale: "s", type: "indeterminate", label: "" });
|
|
3864
3864
|
}
|
|
3865
3865
|
const iconClass = this.result?.type === "error" ? "color-error" : "color-success";
|
|
3866
|
-
return (h("calcite-list", null, this.result ? (h(Fragment, null, h("calcite-list-item", { label:
|
|
3866
|
+
return (h("calcite-list", null, this.result ? (h(Fragment, null, h("calcite-list-item", { label: D(this._t9nStrings?.lastexecutionformat, {
|
|
3867
3867
|
timeStamp: new Intl.DateTimeFormat(this._t9nLocale, {
|
|
3868
3868
|
dateStyle: "medium",
|
|
3869
3869
|
timeStyle: "medium"
|
|
3870
3870
|
}).format(this.result.timeStamp)
|
|
3871
|
-
}) }, h("calcite-icon", { slot: "content-start", icon: "information", scale: "s", class: iconClass })), h("calcite-list-item", { label:
|
|
3871
|
+
}) }, h("calcite-icon", { slot: "content-start", icon: "information", scale: "s", class: iconClass })), h("calcite-list-item", { label: D(this._t9nStrings?.compilationtimeformat, {
|
|
3872
3872
|
time: new Intl.NumberFormat(this._t9nLocale, {
|
|
3873
3873
|
style: "unit",
|
|
3874
3874
|
unit: "millisecond",
|
|
3875
3875
|
maximumFractionDigits: 2
|
|
3876
3876
|
}).format(this.result.compilationTime ?? 0)
|
|
3877
|
-
}) }, h("calcite-icon", { slot: "content-start", icon: "information", scale: "s", class: iconClass })), h("calcite-list-item", { label:
|
|
3877
|
+
}) }, h("calcite-icon", { slot: "content-start", icon: "information", scale: "s", class: iconClass })), h("calcite-list-item", { label: D(this._t9nStrings?.executiontimeformat, {
|
|
3878
3878
|
time: new Intl.NumberFormat(this._t9nLocale, {
|
|
3879
3879
|
style: "unit",
|
|
3880
3880
|
unit: "millisecond",
|
|
@@ -3891,7 +3891,7 @@ const ArcgisArcadeResults = class {
|
|
|
3891
3891
|
}
|
|
3892
3892
|
switch (this.result?.type) {
|
|
3893
3893
|
case "error":
|
|
3894
|
-
return (h("div", { class: "result-value-simple flex-adjustable" },
|
|
3894
|
+
return (h("div", { class: "result-value-simple flex-adjustable" }, D(this._t9nStrings?.executionerrorformat, {
|
|
3895
3895
|
message: this.result.value
|
|
3896
3896
|
})));
|
|
3897
3897
|
case "null":
|
|
@@ -3932,7 +3932,7 @@ const ArcgisArcadeResults = class {
|
|
|
3932
3932
|
case "null":
|
|
3933
3933
|
return h("span", { class: "constant-value" }, arcadeResult.type);
|
|
3934
3934
|
case "text":
|
|
3935
|
-
return h("span", { class: "string-value" },
|
|
3935
|
+
return h("span", { class: "string-value" }, q(arcadeResult.value));
|
|
3936
3936
|
case "number":
|
|
3937
3937
|
return h("span", { class: "number-value" }, arcadeResult.value.toString());
|
|
3938
3938
|
case "boolean":
|
|
@@ -3940,9 +3940,9 @@ const ArcgisArcadeResults = class {
|
|
|
3940
3940
|
case "date":
|
|
3941
3941
|
return h("span", { class: "date-value" }, formatArcadeResultDate(arcadeResult));
|
|
3942
3942
|
case "dateOnly":
|
|
3943
|
-
return h("span", { class: "string-value" },
|
|
3943
|
+
return h("span", { class: "string-value" }, q(formatArcadeResultDateOnly(arcadeResult)));
|
|
3944
3944
|
case "time":
|
|
3945
|
-
return h("span", { class: "string-value" },
|
|
3945
|
+
return h("span", { class: "string-value" }, q(formatArcadeResultTimeOnly(arcadeResult)));
|
|
3946
3946
|
default:
|
|
3947
3947
|
return null;
|
|
3948
3948
|
}
|
|
@@ -3950,7 +3950,7 @@ const ArcgisArcadeResults = class {
|
|
|
3950
3950
|
renderArrayHeader(arcadeResult) {
|
|
3951
3951
|
const items = arcadeResult.value ?? [];
|
|
3952
3952
|
const leftoverCount = Math.max(items.length - MaxArrayItems, 0);
|
|
3953
|
-
return (h(Fragment, null, h("span", null, `${arcadeResult.type}(${items.length ?? 0})`), leftoverCount > 0 ? (h("span", null, "\u00A0",
|
|
3953
|
+
return (h(Fragment, null, h("span", null, `${arcadeResult.type}(${items.length ?? 0})`), leftoverCount > 0 ? (h("span", null, "\u00A0", D(this._t9nStrings?.showingfirstitemsformat, {
|
|
3954
3954
|
count: MaxArrayItems.toString()
|
|
3955
3955
|
}))) : null));
|
|
3956
3956
|
}
|
|
@@ -4002,7 +4002,7 @@ const ArcgisArcadeResults = class {
|
|
|
4002
4002
|
}
|
|
4003
4003
|
}
|
|
4004
4004
|
renderFeatureSetLabel(arcadeResult) {
|
|
4005
|
-
return (h("div", { class: "value-type" }, h("span", null, arcadeResult.type, ":"), arcadeResult.features.length >= BatchSize ? (h("span", null, "\u00A0",
|
|
4005
|
+
return (h("div", { class: "value-type" }, h("span", null, arcadeResult.type, ":"), arcadeResult.features.length >= BatchSize ? (h("span", null, "\u00A0", D(this._t9nStrings?.showingfirstitemsformat, {
|
|
4006
4006
|
count: BatchSize.toString()
|
|
4007
4007
|
}))) : null));
|
|
4008
4008
|
}
|
|
@@ -4084,12 +4084,12 @@ const ArcgisArcadeSuggestions = class {
|
|
|
4084
4084
|
async componentWillLoad() {
|
|
4085
4085
|
this._colorizeStyle = generateColorizeStyles();
|
|
4086
4086
|
this._themeChangedListner = onColorizeThemeChanged(() => (this._colorizeStyle = generateColorizeStyles()));
|
|
4087
|
-
await
|
|
4087
|
+
await W(this, getAssetPath("./assets"));
|
|
4088
4088
|
}
|
|
4089
4089
|
disconnectedCallback() {
|
|
4090
4090
|
this._flowObserver?.disconnect();
|
|
4091
4091
|
this._themeChangedListner?.dispose();
|
|
4092
|
-
|
|
4092
|
+
B(this);
|
|
4093
4093
|
}
|
|
4094
4094
|
// #endregion
|
|
4095
4095
|
//#region Private Methods
|
|
@@ -4107,7 +4107,7 @@ const ArcgisArcadeSuggestions = class {
|
|
|
4107
4107
|
// When switching between flow the same reference is reused
|
|
4108
4108
|
this._flowObserver = new MutationObserver(() => {
|
|
4109
4109
|
// Get the last panel and try to set focus on the input element
|
|
4110
|
-
|
|
4110
|
+
j(ref.querySelector("calcite-flow-item:last-child"), "calcite-input");
|
|
4111
4111
|
});
|
|
4112
4112
|
this._flowObserver.observe(ref, { attributes: true, attributeFilter: ["id"], childList: true });
|
|
4113
4113
|
}
|
|
@@ -4203,10 +4203,10 @@ const ArcgisArcadeVariables = class {
|
|
|
4203
4203
|
//#endregion
|
|
4204
4204
|
// #region Component lifecycle events
|
|
4205
4205
|
async componentWillLoad() {
|
|
4206
|
-
await
|
|
4206
|
+
await W(this, getAssetPath("./assets"));
|
|
4207
4207
|
}
|
|
4208
4208
|
disconnectedCallback() {
|
|
4209
|
-
|
|
4209
|
+
B(this);
|
|
4210
4210
|
this._flowObserver?.disconnect();
|
|
4211
4211
|
}
|
|
4212
4212
|
// #endregion
|
|
@@ -4231,7 +4231,7 @@ const ArcgisArcadeVariables = class {
|
|
|
4231
4231
|
// When switching between flow the same reference is reused
|
|
4232
4232
|
this._flowObserver = new MutationObserver(() => {
|
|
4233
4233
|
// Get the last panel and try to set focus on the input element
|
|
4234
|
-
|
|
4234
|
+
j(ref.querySelector("calcite-flow-item:last-child"), "calcite-input");
|
|
4235
4235
|
});
|
|
4236
4236
|
this._flowObserver.observe(ref, { attributes: true, attributeFilter: ["id"], childList: true });
|
|
4237
4237
|
}
|
|
@@ -4259,7 +4259,7 @@ const ArcgisArcadeVariables = class {
|
|
|
4259
4259
|
}
|
|
4260
4260
|
renderEditorVariables(collection) {
|
|
4261
4261
|
// Filter the variables. Skip group, we will filter the children later on.
|
|
4262
|
-
const filterExpression =
|
|
4262
|
+
const filterExpression = Q(this._filterValue);
|
|
4263
4263
|
const filteredVariables = collection.variables.filter((variable) => variable.passFilter(filterExpression));
|
|
4264
4264
|
if (!filteredVariables.length) {
|
|
4265
4265
|
return h("div", { class: "notice-container" }, this._t9nStrings?.noitems ?? "No item");
|
|
@@ -4310,7 +4310,7 @@ const ArcgisCodeEditor = class {
|
|
|
4310
4310
|
constructor(hostRef) {
|
|
4311
4311
|
registerInstance(this, hostRef);
|
|
4312
4312
|
this.valueChange = createEvent(this, "valueChange", 3);
|
|
4313
|
-
this._componentReadyDefer = new
|
|
4313
|
+
this._componentReadyDefer = new h$1();
|
|
4314
4314
|
this._disposables = [];
|
|
4315
4315
|
this.value = undefined;
|
|
4316
4316
|
this.language = undefined;
|
|
@@ -4479,7 +4479,7 @@ const ArcgisCodeEditor = class {
|
|
|
4479
4479
|
// This is called the first time and subsequently by the Mutation Observer
|
|
4480
4480
|
// Figure out the theme by walking the ancestor path.
|
|
4481
4481
|
// If no theme is found then default to light.
|
|
4482
|
-
const theme =
|
|
4482
|
+
const theme = $(this._hostElt) === "light" ? "vs" : "vs-dark";
|
|
4483
4483
|
if (theme === this._currentTheme) {
|
|
4484
4484
|
return;
|
|
4485
4485
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { o as monaco_editor_core_star } from './arcade-defaults-7525fe7a.js';
|
|
2
2
|
import './index-022fb97b.js';
|
|
3
3
|
|
|
4
4
|
/*!-----------------------------------------------------------------------------
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { o as monaco_editor_core_star } from './arcade-defaults-7525fe7a.js';
|
|
2
2
|
import './index-022fb97b.js';
|
|
3
3
|
|
|
4
4
|
/*!-----------------------------------------------------------------------------
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { o as monaco_editor_core_star } from './arcade-defaults-7525fe7a.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-7525fe7a.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-a9a22ab3.js';
|
|
2
|
+
import './arcade-defaults-7525fe7a.js';
|
|
3
3
|
import './index-022fb97b.js';
|
|
4
4
|
|
|
5
5
|
/*!-----------------------------------------------------------------------------
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { o as monaco_editor_core_star } from './arcade-defaults-7525fe7a.js';
|
|
2
2
|
import './index-022fb97b.js';
|
|
3
3
|
|
|
4
4
|
/*!-----------------------------------------------------------------------------
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { p as typescriptDefaults, o as monaco_editor_core_star } from './arcade-defaults-7525fe7a.js';
|
|
2
2
|
import './index-022fb97b.js';
|
|
3
3
|
|
|
4
4
|
/*!-----------------------------------------------------------------------------
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { o as monaco_editor_core_star } from './arcade-defaults-7525fe7a.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.63",
|
|
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.63",
|
|
52
52
|
"@stencil/core": "4.8.2",
|
|
53
53
|
"monaco-editor": "^0.45.0",
|
|
54
54
|
"vscode-languageserver-types": "^3.17.3"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
|
-
"@arcgis/components-plugins": "4.29.0-beta.
|
|
58
|
-
"@arcgis/components-utils": "4.29.0-beta.
|
|
57
|
+
"@arcgis/components-plugins": "4.29.0-beta.63",
|
|
58
|
+
"@arcgis/components-utils": "4.29.0-beta.63",
|
|
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.63",
|
|
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",
|
|
@@ -107,5 +107,5 @@
|
|
|
107
107
|
"@arcgis/core": ">=4.29.0-next <4.30",
|
|
108
108
|
"@esri/calcite-components": "^2.1.0"
|
|
109
109
|
},
|
|
110
|
-
"gitHead": "
|
|
110
|
+
"gitHead": "645150840f970b4bedab8ab0419ecfff866478ba"
|
|
111
111
|
}
|