@arcgis/coding-components 4.29.0-beta.16 → 4.29.0-beta.18
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-b83db734.js → p-1b9e06df.js} +1 -1
- package/dist/arcgis-coding-components/{p-b3500466.js → p-3ee54d78.js} +1 -1
- package/dist/arcgis-coding-components/{p-ff06e912.js → p-729b1c7d.js} +1 -1
- package/dist/arcgis-coding-components/{p-310f0408.js → p-9e48ce42.js} +1 -1
- package/dist/arcgis-coding-components/p-aef064f5.js +62 -0
- package/dist/arcgis-coding-components/{p-9dd33d3e.js → p-b027b305.js} +1 -1
- package/dist/arcgis-coding-components/p-bead9dae.entry.js +1 -0
- package/dist/arcgis-coding-components/{p-3664ab2a.js → p-e8783816.js} +1 -1
- package/dist/arcgis-coding-components/{p-443fe20e.js → p-eeed79a3.js} +1 -1
- package/dist/arcgis-coding-components/{p-9a164b63.js → p-f736c7df.js} +1 -1
- package/dist/cjs/{arcade-defaults-e128d6d9.js → arcade-defaults-66d482f5.js} +10 -10
- package/dist/cjs/{arcade-mode-8bf7a14b.js → arcade-mode-1005dec4.js} +1 -1
- package/dist/cjs/arcgis-arcade-api_6.cjs.entry.js +30 -25
- package/dist/cjs/arcgis-coding-components.cjs.js +1 -1
- package/dist/cjs/{cssMode-8c1d563a.js → cssMode-227ba353.js} +1 -1
- package/dist/cjs/{html-ead03bbb.js → html-136832b8.js} +1 -1
- package/dist/cjs/{htmlMode-5e1a0115.js → htmlMode-23c0a87d.js} +1 -1
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/{javascript-3fe2de06.js → javascript-56139040.js} +2 -2
- package/dist/cjs/{jsonMode-8b4b19f9.js → jsonMode-9feba6fc.js} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{tsMode-b9491227.js → tsMode-b9e964b4.js} +1 -1
- package/dist/cjs/{typescript-524fddbc.js → typescript-f0cfd4cb.js} +1 -1
- package/dist/components/arcade-api.js +7 -5
- package/dist/components/arcade-results.js +8 -6
- package/dist/components/arcade-suggestions.js +7 -5
- package/dist/components/arcade-variables.js +7 -5
- package/dist/components/arcgis-arcade-editor.js +12 -10
- package/dist/components/code-editor.js +2 -2
- package/dist/components/index2.js +2 -2
- package/dist/esm/{arcade-defaults-a34c2e51.js → arcade-defaults-ef3585ec.js} +9 -9
- package/dist/esm/{arcade-mode-c5a69066.js → arcade-mode-cf8f4b85.js} +1 -1
- package/dist/esm/arcgis-arcade-api_6.entry.js +30 -25
- package/dist/esm/arcgis-coding-components.js +1 -1
- package/dist/esm/{cssMode-cb48c437.js → cssMode-27708d0c.js} +1 -1
- package/dist/esm/{html-e7c0bd60.js → html-642f40ee.js} +1 -1
- package/dist/esm/{htmlMode-46638b7f.js → htmlMode-20c9ae62.js} +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/{javascript-2229cd63.js → javascript-676f09c6.js} +2 -2
- package/dist/esm/{jsonMode-08a2f0d2.js → jsonMode-067c027f.js} +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{tsMode-46d0d8e8.js → tsMode-47a06325.js} +1 -1
- package/dist/esm/{typescript-88a09694.js → typescript-ae6043a9.js} +1 -1
- package/dist/types/components/arcade-api/arcade-api.d.ts +3 -2
- package/dist/types/components/arcade-editor/arcade-editor.d.ts +3 -2
- package/dist/types/components/arcade-results/arcade-results.d.ts +3 -2
- package/dist/types/components/arcade-suggestions/arcade-suggestions.d.ts +3 -2
- package/dist/types/components/arcade-variables/arcade-variables.d.ts +3 -2
- package/package.json +8 -8
- package/dist/arcgis-coding-components/p-1b0246cd.entry.js +0 -1
- package/dist/arcgis-coding-components/p-236ce4a1.js +0 -62
|
@@ -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-642f40ee.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-676f09c6.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-ae6043a9.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-27708d0c.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-20c9ae62.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-067c027f.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-47a06325.js');
|
|
118687
118687
|
}
|
|
118688
118688
|
}
|
|
118689
118689
|
monaco_editor_core_exports.languages.onLanguage("typescript", () => {
|
|
@@ -167287,7 +167287,7 @@ function isPredefinedProfile(item) {
|
|
|
167287
167287
|
!Array.isArray(item.definitions));
|
|
167288
167288
|
}
|
|
167289
167289
|
|
|
167290
|
-
var h=class{constructor(){this.resolve=()=>{},this.reject=()=>{},this.promise=new Promise((t,n)=>{this.resolve=t,this.reject=n;});}};function
|
|
167290
|
+
var h=class{constructor(){this.resolve=()=>{},this.reject=()=>{},this.promise=new Promise((t,n)=>{this.resolve=t,this.reject=n;});}};function S(e,t){let n=e;for(;n;){if(n===t)return !0;if(!n.parentNode)return !1;n.parentNode instanceof ShadowRoot?n=n.parentNode.host:n=n.parentNode;}return !1}function p(e,t,n=()=>{}){if(!t||t.length<=0)return;let r=new MutationObserver(o=>{for(let i of o)S(e,i.target)&&n();});return r.observe(document.documentElement,{attributes:!0,attributeFilter:t,subtree:!0}),r}function T(e,t){let n=e;for(;n;){let r=n.closest(t);if(r)return r;let o=n.getRootNode();if(o===document)return null;n=o.host;}return null}function P(e){let t=T(e,":is(.calcite-mode-light, .calcite-mode-dark)");return t&&t.classList.contains("calcite-mode-dark")?"dark":"light"}function E(e,t,n){return T(e,`[${t}]`)?.getAttribute(t)??n}function M(e){return e.nodeType===Node.ELEMENT_NODE}function c(e,t=""){if(!M(e))return !1;if(e.matches(t))return setTimeout(()=>e?.setFocus(),0),!0;for(let r=0;r<e.children.length;r++)if(c(e.children[r],t))return !0;let n=e.shadowRoot;if(n){for(let r=0;r<n.children.length;r++)if(c(n.children[r],t))return !0}return !1}function C(e,t){if(!e||!e.shadowRoot)return;if(e.hasAttribute("hydrated")||e.hasAttribute("calcite-hydrated")){c(e,t);return}let n=new MutationObserver(()=>{n.disconnect(),c(e,t);});n.observe(e,{attributes:!0,attributeFilter:["hydrated","calcite-hydrated"]});}function d(e){let t="";for(let n=0;n<e;n++)t+=((1+Math.random())*65536|0).toString(16).substring(1);return t}function k(){return [d(2),d(1),d(1),d(1),d(3)].join("-")}var x=new Set(["ar","bg","bs","ca","cs","da","de","el","en","es","et","fi","fr","he","hr","hu","id","it","ja","ko","lt","lv","nl","nb","pl","pt-BR","pt-PT","ro","ru","sk","sl","sr","sv","th","tr","uk","vi","zh-CN","zh-HK","zh-TW"]),a=new Map;async function N(e,t,n=""){let r=`${t}/${n}${e}.json`;if(a.has(r))return a.get(r);try{let o=await fetch(r);if(o.ok){let s=await o.json();return a.set(r,s),s}if(e==="en"){a.set(r,void 0);return}let i=await N("en",t,n);return a.set(r,i),i}catch{a.set(r,void 0);return}}function R(e){let t=E(e,"lang",navigator?.language||"en");if(x.has(t))return {lang:t,t9nLocale:t};let n=t.slice(0,2);return {lang:t,t9nLocale:x.has(n)?n:"en"}}var f=new WeakMap,m=new WeakMap,_=new WeakMap;async function $(e,t,n){m.set(e,t),f.set(e,p(e._hostElement,["lang"],()=>{b(e,n);})),await b(e,n);}function F(e){f.get(e)?.disconnect(),f.delete(e),m.delete(e);}async function b(e,t){let{lang:n,t9nLocale:r}=R(e._hostElement);if(n===e._lang&&r===e._t9nLocale||(n!==e._lang&&(e._lang=n),r===e._t9nLocale))return;let o=_.get(e);if(!o){let i=m.get(e)??"",s=e._hostElement.tagName.toLowerCase().replace("arcgis-",""),u=`${i}/${s}/t9n`,l=`${s}.t9n.`;o=await N(r,u,l);}e._t9nLocale=r,e._t9nStrings=o,await t?.call(e);}var v='"',w="'";function L(e,t){return new Array(t+1).join(e)}function W(e){let t=v,n=w;e.indexOf(t)>=0&&e.indexOf(n)<0&&(n=v,t=w);let o=new RegExp("(^|[^\\\\])((?:\\\\{2})*)((?:\\\\"+n+")+)","g");e=e.replace(o,(s,u,l,g)=>u+l+L(n,g.length/2));let i=new RegExp("(^|[^\\\\])((?:\\\\{2})*)("+t+"+)","g");return e=e.replace(i,(s,u,l,g)=>u+l+L("\\"+t,g.length)),t+e+t}function z(e){let t=e?e.replaceAll(/[-[\]/{}()*+?.\\^$|]/g,"\\$&"):"^.*$";return new RegExp(t,"i")}function B(e,t={}){return (e??"").replace(/\{(.*?)\}/g,(n,r)=>t[r]??n)}function q(e){return "\u200E"+(e??"")+"\u200E"}function Q(e){return e!==null}function G(e){return e!==void 0}function V(e,t,n=!1){if(!e||!t)return !1;let r=new URL(e),o=new URL(t);return !n&&r.protocol!==o.protocol||r.host==null||o.host==null?!1:r.host.toLowerCase()===o.host.toLowerCase()&&r.port===o.port}function D(e){try{return new URL(e),!0}catch{return !1}}
|
|
167291
167291
|
|
|
167292
167292
|
/**
|
|
167293
167293
|
* Filters a collection of items by the given keys and filter word.
|
|
@@ -168777,4 +168777,4 @@ const arcade = {
|
|
|
168777
168777
|
setProfileForModel: arcadeDefaults.setProfileForModel.bind(arcadeDefaults)
|
|
168778
168778
|
};
|
|
168779
168779
|
|
|
168780
|
-
export { $, B, C, D, Emitter as E, F, IStandaloneThemeService as I, KeyCode as K, MarkerSeverity as M,
|
|
168780
|
+
export { $, B, C, D, Emitter as E, F, IStandaloneThemeService as I, KeyCode as K, MarkerSeverity as M, P, Range as R, StandaloneServices as S, Uri as U, V, W, arcade as a, commonjsGlobal as b, createCommonjsModule as c, arcadeDefaults as d, editor as e, filterCollection as f, generateTokensCSSForColorMap as g, importArcade as h, importRequest as i, h as j, k, languages as l, KeyMod as m, monaco_editor_core_star as n, main as o, p, q, supportedFields as s, typescriptDefaults as t, z };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { o as main, e as editor, M as MarkerSeverity, R as Range, l as languages, E as Emitter } from './arcade-defaults-ef3585ec.js';
|
|
2
2
|
import './index-d4ec142a.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}));
|
|
@@ -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-d4ec142a.js';
|
|
2
|
-
import { g as generateTokensCSSForColorMap, e as editor, S as StandaloneServices, I as IStandaloneThemeService, c as createCommonjsModule, b as commonjsGlobal, D, V, i as importRequest, l as languages, d as arcadeDefaults, $, U as Uri, F,
|
|
2
|
+
import { g as generateTokensCSSForColorMap, e as editor, S as StandaloneServices, I as IStandaloneThemeService, c as createCommonjsModule, b as commonjsGlobal, D, V, i as importRequest, l as languages, d as arcadeDefaults, $, U as Uri, F, C, f as filterCollection, q, h as importArcade, j as h$1, k, P, K as KeyCode, B, W, s as supportedFields, z, R as Range, p, m as KeyMod } from './arcade-defaults-ef3585ec.js';
|
|
3
3
|
|
|
4
4
|
async function colorizeCode(code) {
|
|
5
5
|
return editor.colorize(code, "arcade", { tabSize: 2 });
|
|
@@ -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-cf8f4b85.js');
|
|
3019
3019
|
}
|
|
3020
3020
|
// Register the language in Monaco
|
|
3021
3021
|
languages.register({
|
|
@@ -3078,7 +3078,8 @@ const ArcgisArcadeApi = class {
|
|
|
3078
3078
|
};
|
|
3079
3079
|
// @ts-expect-error
|
|
3080
3080
|
this._updateFilterValue = (e) => (this._filterValue = e.target?.["value"] ?? "");
|
|
3081
|
-
this.
|
|
3081
|
+
this._lang = "";
|
|
3082
|
+
this._t9nLocale = "";
|
|
3082
3083
|
this._t9nStrings = undefined;
|
|
3083
3084
|
this._selectedApiItem = undefined;
|
|
3084
3085
|
this._filterValue = "";
|
|
@@ -3147,7 +3148,7 @@ const ArcgisArcadeApi = class {
|
|
|
3147
3148
|
// When switching between flow the same reference is reused
|
|
3148
3149
|
this._flowObserver = new MutationObserver(() => {
|
|
3149
3150
|
// Get the last panel and try to set focus on the input element
|
|
3150
|
-
|
|
3151
|
+
C(ref.querySelector("calcite-flow-item:last-child"), "calcite-input");
|
|
3151
3152
|
});
|
|
3152
3153
|
this._flowObserver.observe(ref, { attributes: true, attributeFilter: ["id"], childList: true });
|
|
3153
3154
|
}
|
|
@@ -3179,7 +3180,7 @@ const ArcgisArcadeApi = class {
|
|
|
3179
3180
|
return (h(Host, null, h("style", null, this._colorizeStyle), h("calcite-flow", { ref: (ref) => this.flowFocusHandler(ref) }, h("calcite-flow-item", { heading: this._t9nStrings?.constantsandfunctions, closable: true, onCalciteFlowItemClose: this._emitClose }, h(StickyFilterInput, { filterValue: this._filterValue, onCalciteInputInput: this._updateFilterValue }), this._preparingApi ? (h("calcite-loader", { scale: "s", type: "indeterminate", label: this._t9nStrings?.loading ?? "Loading" })) : (h("calcite-list", null, empty ? h("div", { class: "notice-container" }, this._t9nStrings?.noitems ?? "No items") : categories))), this.renderApiItemFlowItem())));
|
|
3180
3181
|
}
|
|
3181
3182
|
static get assetsDirs() { return ["assets"]; }
|
|
3182
|
-
get
|
|
3183
|
+
get _hostElement() { return getElement(this); }
|
|
3183
3184
|
};
|
|
3184
3185
|
ArcgisArcadeApi.style = arcadeApiCss;
|
|
3185
3186
|
|
|
@@ -3429,7 +3430,7 @@ const ArcgisArcadeEditor = class {
|
|
|
3429
3430
|
this.scriptChange = createEvent(this, "scriptChange", 3);
|
|
3430
3431
|
this.diagnosticsChange = createEvent(this, "diagnosticsChange", 3);
|
|
3431
3432
|
this._componentReadyDefer = new h$1();
|
|
3432
|
-
this._modelId =
|
|
3433
|
+
this._modelId = k();
|
|
3433
3434
|
this._editorProfilePromise = Promise.resolve(undefined);
|
|
3434
3435
|
this._disposables = [];
|
|
3435
3436
|
this._executeScript = async () => {
|
|
@@ -3474,7 +3475,8 @@ const ArcgisArcadeEditor = class {
|
|
|
3474
3475
|
this._insertAsText = (e) => this._codeEditorElt?.insertText(e.detail);
|
|
3475
3476
|
this._onResultPanelChange = (e) => (this._resultPanel = e.detail);
|
|
3476
3477
|
this._onExecutionPanelClose = () => (this._showExecutionPanel = false);
|
|
3477
|
-
this.
|
|
3478
|
+
this._lang = "";
|
|
3479
|
+
this._t9nLocale = "";
|
|
3478
3480
|
this._t9nStrings = undefined;
|
|
3479
3481
|
this._standaloneCodeEditor = undefined;
|
|
3480
3482
|
this._preparingProfile = false;
|
|
@@ -3569,11 +3571,11 @@ const ArcgisArcadeEditor = class {
|
|
|
3569
3571
|
* @internal
|
|
3570
3572
|
*/
|
|
3571
3573
|
async updateThemeColors(colorRules) {
|
|
3572
|
-
const theme =
|
|
3574
|
+
const theme = P(this._hostElement);
|
|
3573
3575
|
updateThemeColors(theme, colorRules);
|
|
3574
3576
|
if (colorRules === undefined) {
|
|
3575
3577
|
["comment", "keyword", "identifier", "string", "number", "constant", "date"].forEach((key) => {
|
|
3576
|
-
this.
|
|
3578
|
+
this._hostElement.style.removeProperty(`--arcgis-arcade-editor-${key}`);
|
|
3577
3579
|
});
|
|
3578
3580
|
return;
|
|
3579
3581
|
}
|
|
@@ -3583,7 +3585,7 @@ const ArcgisArcadeEditor = class {
|
|
|
3583
3585
|
if (!foreground) {
|
|
3584
3586
|
return;
|
|
3585
3587
|
}
|
|
3586
|
-
this.
|
|
3588
|
+
this._hostElement.style.setProperty(`--arcgis-arcade-editor-${key}`, foreground);
|
|
3587
3589
|
});
|
|
3588
3590
|
}
|
|
3589
3591
|
// #endregion
|
|
@@ -3643,7 +3645,7 @@ const ArcgisArcadeEditor = class {
|
|
|
3643
3645
|
try {
|
|
3644
3646
|
// Set a new profile for the model using the profile definition and the locale.
|
|
3645
3647
|
await arcadeDefaults.setProfileForModel(this._modelId, this.profile, {
|
|
3646
|
-
locale: this.
|
|
3648
|
+
locale: this._t9nLocale,
|
|
3647
3649
|
snippets: this.snippets
|
|
3648
3650
|
});
|
|
3649
3651
|
// Get the corresponding editor profile for the model.
|
|
@@ -3681,7 +3683,7 @@ const ArcgisArcadeEditor = class {
|
|
|
3681
3683
|
if (this.hideSideBar) {
|
|
3682
3684
|
return null;
|
|
3683
3685
|
}
|
|
3684
|
-
return (h("calcite-action-bar", { class: "side-action-bar border-inline-start", expanded: !!this.sideActionBarExpanded, position: "end", onCalciteActionBarToggle: this._toggleSideActionBarExpanded }, h("calcite-action-group", null, h("calcite-action", { id: "profile-variables-action", text: this._t9nStrings?.profilevariables ?? "Profile variables", icon: "profile-variables", active: this.openedSidePanel === "variables", onClick: this._toggleSidePanel, "data-panel-name": "variables" }), h("calcite-action", { id: "function-action", text: this._t9nStrings?.constantsandfunctions ?? "Constants and functions", icon: "function", active: this.openedSidePanel === "api", onClick: this._toggleSidePanel, "data-panel-name": "api" }), this.suggestions?.length ? (h(Fragment, null, h("calcite-action", { id: "suggestions-action", text: this._t9nStrings?.suggestions ?? "Suggestions", icon: "lightbulb", active: this.openedSidePanel === "suggestions", onClick: this._toggleSidePanel, "data-panel-name": "suggestions" }))) : null, this.hideDocumentationActions ? null : (h(Fragment, null, h("calcite-action", { id: "developer-website-action", text: this._t9nStrings?.help ?? "Help", icon: "question", iconFlipRtl: this.
|
|
3686
|
+
return (h("calcite-action-bar", { class: "side-action-bar border-inline-start", expanded: !!this.sideActionBarExpanded, position: "end", onCalciteActionBarToggle: this._toggleSideActionBarExpanded }, h("calcite-action-group", null, h("calcite-action", { id: "profile-variables-action", text: this._t9nStrings?.profilevariables ?? "Profile variables", icon: "profile-variables", active: this.openedSidePanel === "variables", onClick: this._toggleSidePanel, "data-panel-name": "variables" }), h("calcite-action", { id: "function-action", text: this._t9nStrings?.constantsandfunctions ?? "Constants and functions", icon: "function", active: this.openedSidePanel === "api", onClick: this._toggleSidePanel, "data-panel-name": "api" }), this.suggestions?.length ? (h(Fragment, null, h("calcite-action", { id: "suggestions-action", text: this._t9nStrings?.suggestions ?? "Suggestions", icon: "lightbulb", active: this.openedSidePanel === "suggestions", onClick: this._toggleSidePanel, "data-panel-name": "suggestions" }))) : null, this.hideDocumentationActions ? null : (h(Fragment, null, h("calcite-action", { id: "developer-website-action", text: this._t9nStrings?.help ?? "Help", icon: "question", iconFlipRtl: this._t9nLocale === "ar", onClick: this._openArcadeHelp }))))));
|
|
3685
3687
|
}
|
|
3686
3688
|
// private renderTooltip(id: string, label: string | undefined): VNode | null {
|
|
3687
3689
|
// if (this.sideActionBarExpanded || !label) {
|
|
@@ -3724,7 +3726,7 @@ const ArcgisArcadeEditor = class {
|
|
|
3724
3726
|
return (h(Host, null, this.renderMainActionBar(), h("div", { class: "flex-row flex-adjustable" }, h("div", { class: "flex-column flex-adjustable" }, this.renderMainPanel(), this.renderResultsPanel()), this.renderSidePanel(), this.renderSideActionBar())));
|
|
3725
3727
|
}
|
|
3726
3728
|
static get assetsDirs() { return ["assets"]; }
|
|
3727
|
-
get
|
|
3729
|
+
get _hostElement() { return getElement(this); }
|
|
3728
3730
|
static get watchers() { return {
|
|
3729
3731
|
"profile": ["_profileChanged"],
|
|
3730
3732
|
"testData": ["_testDataChanged"],
|
|
@@ -3819,7 +3821,8 @@ const ArcgisArcadeResults = class {
|
|
|
3819
3821
|
this.updateResultPanel(panelName);
|
|
3820
3822
|
};
|
|
3821
3823
|
this._emitClose = () => this.close.emit();
|
|
3822
|
-
this.
|
|
3824
|
+
this._lang = "";
|
|
3825
|
+
this._t9nLocale = "";
|
|
3823
3826
|
this._t9nStrings = undefined;
|
|
3824
3827
|
this.loading = true;
|
|
3825
3828
|
this.openedResultPanel = "output";
|
|
@@ -3862,15 +3865,15 @@ const ArcgisArcadeResults = class {
|
|
|
3862
3865
|
}
|
|
3863
3866
|
const iconClass = this.result?.type === "error" ? "color-error" : "color-success";
|
|
3864
3867
|
return (h("calcite-list", null, this.result ? (h(Fragment, null, h("calcite-list-item", { label: B(this._t9nStrings?.lastexecutionformat, {
|
|
3865
|
-
timeStamp: new Intl.DateTimeFormat(this.
|
|
3868
|
+
timeStamp: new Intl.DateTimeFormat(this._t9nLocale, { dateStyle: "medium", timeStyle: "medium" }).format(this.result.timeStamp)
|
|
3866
3869
|
}) }, h("calcite-icon", { slot: "content-start", icon: "information", scale: "s", class: iconClass })), h("calcite-list-item", { label: B(this._t9nStrings?.compilationtimeformat, {
|
|
3867
|
-
time: new Intl.NumberFormat(this.
|
|
3870
|
+
time: new Intl.NumberFormat(this._t9nLocale, {
|
|
3868
3871
|
style: "unit",
|
|
3869
3872
|
unit: "millisecond",
|
|
3870
3873
|
maximumFractionDigits: 2
|
|
3871
3874
|
}).format(this.result.compilationTime ?? 0)
|
|
3872
3875
|
}) }, h("calcite-icon", { slot: "content-start", icon: "information", scale: "s", class: iconClass })), h("calcite-list-item", { label: B(this._t9nStrings?.executiontimeformat, {
|
|
3873
|
-
time: new Intl.NumberFormat(this.
|
|
3876
|
+
time: new Intl.NumberFormat(this._t9nLocale, {
|
|
3874
3877
|
style: "unit",
|
|
3875
3878
|
unit: "millisecond",
|
|
3876
3879
|
maximumFractionDigits: 2
|
|
@@ -4019,7 +4022,7 @@ const ArcgisArcadeResults = class {
|
|
|
4019
4022
|
return (h(Host, null, h("header", { class: "flex-row" }, h("calcite-action-bar", { class: "flex-adjustable", layout: "horizontal", scale: "s", expanded: true, "expand-disabled": true }, h("calcite-action-group", { layout: "horizontal", scale: "s" }, h("calcite-action", { active: this.openedResultPanel === "output", text: this._t9nStrings?.output ?? "Output", "text-enabled": true, scale: "s", icon: "list-show-all", iconFlipRtl: true, onClick: this._switchResultPanel, "data-panel-name": "output" }), h("calcite-action", { active: this.openedResultPanel === "console", text: this._t9nStrings?.console ?? "Console", "text-enabled": true, scale: "s", icon: "console", iconFlipRtl: true, onClick: this._switchResultPanel, "data-panel-name": "console" }), h("calcite-action", { active: this.openedResultPanel === "log", text: this._t9nStrings?.log ?? "Log", "text-enabled": true, scale: "s", icon: "list", iconFlipRtl: true, onClick: this._switchResultPanel, "data-panel-name": "log" }))), h("calcite-action", { scale: "s", icon: "x", text: this._t9nStrings?.close ?? "", onClick: this._emitClose })), h("article", { class: "flex-adjustable" }, this.loading ? (h("calcite-loader", { scale: "s", type: "indeterminate", label: "" })) : (h("div", { class: "flex-column y-scrollable-container" }, this.renderOutputPanel(), this.renderConsolePanel(), this.renderLogPanel())))));
|
|
4020
4023
|
}
|
|
4021
4024
|
static get assetsDirs() { return ["assets"]; }
|
|
4022
|
-
get
|
|
4025
|
+
get _hostElement() { return getElement(this); }
|
|
4023
4026
|
};
|
|
4024
4027
|
ArcgisArcadeResults.style = arcadeResultsCss;
|
|
4025
4028
|
|
|
@@ -4065,7 +4068,8 @@ const ArcgisArcadeSuggestions = class {
|
|
|
4065
4068
|
};
|
|
4066
4069
|
this._emitClose = () => this.close.emit();
|
|
4067
4070
|
this._beforeBack = async () => (this._selectedSuggestion = undefined);
|
|
4068
|
-
this.
|
|
4071
|
+
this._lang = "";
|
|
4072
|
+
this._t9nLocale = "";
|
|
4069
4073
|
this._t9nStrings = undefined;
|
|
4070
4074
|
this._selectedSuggestion = undefined;
|
|
4071
4075
|
this._filterValue = "";
|
|
@@ -4103,7 +4107,7 @@ const ArcgisArcadeSuggestions = class {
|
|
|
4103
4107
|
// When switching between flow the same reference is reused
|
|
4104
4108
|
this._flowObserver = new MutationObserver(() => {
|
|
4105
4109
|
// Get the last panel and try to set focus on the input element
|
|
4106
|
-
|
|
4110
|
+
C(ref.querySelector("calcite-flow-item:last-child"), "calcite-input");
|
|
4107
4111
|
});
|
|
4108
4112
|
this._flowObserver.observe(ref, { attributes: true, attributeFilter: ["id"], childList: true });
|
|
4109
4113
|
}
|
|
@@ -4138,7 +4142,7 @@ const ArcgisArcadeSuggestions = class {
|
|
|
4138
4142
|
return (h(Host, null, h("style", null, this._colorizeStyle), h("calcite-flow", { ref: (ref) => this.flowFocusHandler(ref) }, h("calcite-flow-item", { heading: this._t9nStrings?.suggestions, closable: true, onCalciteFlowItemClose: this._emitClose }, h(StickyFilterInput, { filterValue: this._filterValue, onCalciteInputInput: this._updateFilterValue }), h("calcite-list", null, this.renderSuggestionGroups())), this.renderSuggestionFlowItem())));
|
|
4139
4143
|
}
|
|
4140
4144
|
static get assetsDirs() { return ["assets"]; }
|
|
4141
|
-
get
|
|
4145
|
+
get _hostElement() { return getElement(this); }
|
|
4142
4146
|
static get watchers() { return {
|
|
4143
4147
|
"suggestions": ["suggestionsPropChanged"]
|
|
4144
4148
|
}; }
|
|
@@ -4186,7 +4190,8 @@ const ArcgisArcadeVariables = class {
|
|
|
4186
4190
|
e.stopPropagation();
|
|
4187
4191
|
this.addPanelRenderer(this.collectionBasedVariableRenderer(collectionVariable));
|
|
4188
4192
|
};
|
|
4189
|
-
this.
|
|
4193
|
+
this._lang = "";
|
|
4194
|
+
this._t9nLocale = "";
|
|
4190
4195
|
this._t9nStrings = undefined;
|
|
4191
4196
|
this._mutationCounter = 1;
|
|
4192
4197
|
this._flowItemRenderers = [];
|
|
@@ -4228,7 +4233,7 @@ const ArcgisArcadeVariables = class {
|
|
|
4228
4233
|
// When switching between flow the same reference is reused
|
|
4229
4234
|
this._flowObserver = new MutationObserver(() => {
|
|
4230
4235
|
// Get the last panel and try to set focus on the input element
|
|
4231
|
-
|
|
4236
|
+
C(ref.querySelector("calcite-flow-item:last-child"), "calcite-input");
|
|
4232
4237
|
});
|
|
4233
4238
|
this._flowObserver.observe(ref, { attributes: true, attributeFilter: ["id"], childList: true });
|
|
4234
4239
|
}
|
|
@@ -4278,7 +4283,7 @@ const ArcgisArcadeVariables = class {
|
|
|
4278
4283
|
return (h("calcite-flow", { ref: (ref) => this.flowFocusHandler(ref) }, this.collectionBasedVariableRenderer(profile, true)(), this._flowItemRenderers.map((renderer) => renderer())));
|
|
4279
4284
|
}
|
|
4280
4285
|
static get assetsDirs() { return ["assets"]; }
|
|
4281
|
-
get
|
|
4286
|
+
get _hostElement() { return getElement(this); }
|
|
4282
4287
|
static get watchers() { return {
|
|
4283
4288
|
"modelId": ["modelIdPropChanged"]
|
|
4284
4289
|
}; }
|
|
@@ -4474,7 +4479,7 @@ const ArcgisCodeEditor = class {
|
|
|
4474
4479
|
// This is called the first time and subsequently by the Mutation Observer
|
|
4475
4480
|
// Figure out the theme by walking the ancestor path.
|
|
4476
4481
|
// If no theme is found then default to light.
|
|
4477
|
-
const theme =
|
|
4482
|
+
const theme = P(this._hostElt) === "light" ? "vs" : "vs-dark";
|
|
4478
4483
|
if (theme === this._currentTheme) {
|
|
4479
4484
|
return;
|
|
4480
4485
|
}
|
|
@@ -14,5 +14,5 @@ const patchBrowser = () => {
|
|
|
14
14
|
};
|
|
15
15
|
|
|
16
16
|
patchBrowser().then(options => {
|
|
17
|
-
return bootstrapLazy([["arcgis-arcade-api_6",[[0,"arcgis-arcade-editor",{"profile":[16],"script":[1],"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"],"
|
|
17
|
+
return bootstrapLazy([["arcgis-arcade-api_6",[[0,"arcgis-arcade-editor",{"profile":[16],"script":[1],"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"],"_lang":[32],"_t9nLocale":[32],"_t9nStrings":[32],"_standaloneCodeEditor":[32],"_preparingProfile":[32],"_editorProfile":[32],"_showExecutionPanel":[32],"_resultPanel":[32],"_executingScript":[32],"_consoleLogs":[32],"_executionResult":[32],"getScript":[64],"setFocus":[64],"getEditorInstance":[64],"getTestResult":[64],"getOutputType":[64],"updateThemeColors":[64]}],[1,"arcgis-arcade-api",{"hideDocumentationActions":[4,"hide-documentation-actions"],"modelId":[1,"model-id"],"_lang":[32],"_t9nLocale":[32],"_t9nStrings":[32],"_selectedApiItem":[32],"_filterValue":[32],"_colorizeStyle":[32],"_preparingApi":[32],"_apiLibrary":[32]}],[1,"arcgis-arcade-results",{"loading":[4],"openedResultPanel":[1537,"opened-result-panel"],"result":[16],"consoleLogs":[16],"_lang":[32],"_t9nLocale":[32],"_t9nStrings":[32]}],[1,"arcgis-arcade-suggestions",{"suggestions":[16],"_lang":[32],"_t9nLocale":[32],"_t9nStrings":[32],"_selectedSuggestion":[32],"_filterValue":[32],"_colorizeStyle":[32]}],[1,"arcgis-arcade-variables",{"loading":[4],"modelId":[1,"model-id"],"_lang":[32],"_t9nLocale":[32],"_t9nStrings":[32],"_mutationCounter":[32],"_flowItemRenderers":[32],"_filterValue":[32]}],[0,"arcgis-code-editor",{"value":[1],"language":[1],"modelId":[1,"model-id"],"getValue":[64],"setValue":[64],"insertText":[64],"insertSnippet":[64],"getEditorInstance":[64],"setFocus":[64]}]]]], options);
|
|
18
18
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as monaco_editor_core_star } from './arcade-defaults-ef3585ec.js';
|
|
2
2
|
import './index-d4ec142a.js';
|
|
3
3
|
|
|
4
4
|
/*!-----------------------------------------------------------------------------
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as monaco_editor_core_star } from './arcade-defaults-ef3585ec.js';
|
|
2
2
|
import './index-d4ec142a.js';
|
|
3
3
|
|
|
4
4
|
/*!-----------------------------------------------------------------------------
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as monaco_editor_core_star } from './arcade-defaults-ef3585ec.js';
|
|
2
2
|
import './index-d4ec142a.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-ef3585ec.js';
|
|
2
2
|
import './index-d4ec142a.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-ae6043a9.js';
|
|
2
|
+
import './arcade-defaults-ef3585ec.js';
|
|
3
3
|
import './index-d4ec142a.js';
|
|
4
4
|
|
|
5
5
|
/*!-----------------------------------------------------------------------------
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as monaco_editor_core_star } from './arcade-defaults-ef3585ec.js';
|
|
2
2
|
import './index-d4ec142a.js';
|
|
3
3
|
|
|
4
4
|
/*!-----------------------------------------------------------------------------
|
package/dist/esm/loader.js
CHANGED
|
@@ -11,7 +11,7 @@ const patchEsm = () => {
|
|
|
11
11
|
const defineCustomElements = (win, options) => {
|
|
12
12
|
if (typeof window === 'undefined') return Promise.resolve();
|
|
13
13
|
return patchEsm().then(() => {
|
|
14
|
-
return bootstrapLazy([["arcgis-arcade-api_6",[[0,"arcgis-arcade-editor",{"profile":[16],"script":[1],"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"],"
|
|
14
|
+
return bootstrapLazy([["arcgis-arcade-api_6",[[0,"arcgis-arcade-editor",{"profile":[16],"script":[1],"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"],"_lang":[32],"_t9nLocale":[32],"_t9nStrings":[32],"_standaloneCodeEditor":[32],"_preparingProfile":[32],"_editorProfile":[32],"_showExecutionPanel":[32],"_resultPanel":[32],"_executingScript":[32],"_consoleLogs":[32],"_executionResult":[32],"getScript":[64],"setFocus":[64],"getEditorInstance":[64],"getTestResult":[64],"getOutputType":[64],"updateThemeColors":[64]}],[1,"arcgis-arcade-api",{"hideDocumentationActions":[4,"hide-documentation-actions"],"modelId":[1,"model-id"],"_lang":[32],"_t9nLocale":[32],"_t9nStrings":[32],"_selectedApiItem":[32],"_filterValue":[32],"_colorizeStyle":[32],"_preparingApi":[32],"_apiLibrary":[32]}],[1,"arcgis-arcade-results",{"loading":[4],"openedResultPanel":[1537,"opened-result-panel"],"result":[16],"consoleLogs":[16],"_lang":[32],"_t9nLocale":[32],"_t9nStrings":[32]}],[1,"arcgis-arcade-suggestions",{"suggestions":[16],"_lang":[32],"_t9nLocale":[32],"_t9nStrings":[32],"_selectedSuggestion":[32],"_filterValue":[32],"_colorizeStyle":[32]}],[1,"arcgis-arcade-variables",{"loading":[4],"modelId":[1,"model-id"],"_lang":[32],"_t9nLocale":[32],"_t9nStrings":[32],"_mutationCounter":[32],"_flowItemRenderers":[32],"_filterValue":[32]}],[0,"arcgis-code-editor",{"value":[1],"language":[1],"modelId":[1,"model-id"],"getValue":[64],"setValue":[64],"insertText":[64],"insertSnippet":[64],"getEditorInstance":[64],"setFocus":[64]}]]]], options);
|
|
15
15
|
});
|
|
16
16
|
};
|
|
17
17
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as typescriptDefaults,
|
|
1
|
+
import { t as typescriptDefaults, n as monaco_editor_core_star } from './arcade-defaults-ef3585ec.js';
|
|
2
2
|
import './index-d4ec142a.js';
|
|
3
3
|
|
|
4
4
|
/*!-----------------------------------------------------------------------------
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as monaco_editor_core_star } from './arcade-defaults-ef3585ec.js';
|
|
2
2
|
import './index-d4ec142a.js';
|
|
3
3
|
|
|
4
4
|
/*!-----------------------------------------------------------------------------
|
|
@@ -5,8 +5,9 @@ import { ArcadeAPIStrings } from "./t9n-types";
|
|
|
5
5
|
export declare class ArcgisArcadeApi implements ComponentInterface {
|
|
6
6
|
private _flowObserver?;
|
|
7
7
|
private _themeChangedListner?;
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
_hostElement: HTMLArcgisArcadeApiElement;
|
|
9
|
+
_lang: string;
|
|
10
|
+
_t9nLocale: string;
|
|
10
11
|
_t9nStrings: ArcadeAPIStrings | undefined;
|
|
11
12
|
_selectedApiItem: undefined | ApiItem;
|
|
12
13
|
_filterValue: string;
|
|
@@ -15,8 +15,9 @@ export declare class ArcgisArcadeEditor implements ComponentInterface {
|
|
|
15
15
|
private _modelId;
|
|
16
16
|
private _editorProfilePromise;
|
|
17
17
|
private _disposables;
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
_hostElement: HTMLArcgisArcadeEditorElement;
|
|
19
|
+
_lang: string;
|
|
20
|
+
_t9nLocale: string;
|
|
20
21
|
_t9nStrings: ArcadeEditorStrings | undefined;
|
|
21
22
|
_standaloneCodeEditor: editor.IStandaloneCodeEditor | undefined;
|
|
22
23
|
_preparingProfile: boolean;
|
|
@@ -4,8 +4,9 @@ import { ArcadeResultsStrings } from "./t9n-types";
|
|
|
4
4
|
export type ResultPanelName = "output" | "console" | "log";
|
|
5
5
|
/** @internal */
|
|
6
6
|
export declare class ArcgisArcadeResults implements ComponentInterface {
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
_hostElement: HTMLArcgisArcadeResultsElement;
|
|
8
|
+
_lang: string;
|
|
9
|
+
_t9nLocale: string;
|
|
9
10
|
_t9nStrings: ArcadeResultsStrings | undefined;
|
|
10
11
|
/**
|
|
11
12
|
* Loading state
|
|
@@ -5,8 +5,9 @@ import { ArcadeSuggestionsStrings } from "./t9n-types";
|
|
|
5
5
|
export declare class ArcgisArcadeSuggestions implements ComponentInterface {
|
|
6
6
|
private _flowObserver?;
|
|
7
7
|
private _themeChangedListner?;
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
_hostElement: HTMLArcgisArcadeSuggestionsElement;
|
|
9
|
+
_lang: string;
|
|
10
|
+
_t9nLocale: string;
|
|
10
11
|
_t9nStrings: ArcadeSuggestionsStrings | undefined;
|
|
11
12
|
_selectedSuggestion: undefined | IEditorCodeSuggestion;
|
|
12
13
|
_filterValue: string;
|
|
@@ -3,8 +3,9 @@ import { ArcadeVariablesStrings } from "./t9n-types";
|
|
|
3
3
|
/** @internal */
|
|
4
4
|
export declare class ArcgisArcadeVariables implements ComponentInterface {
|
|
5
5
|
private _flowObserver?;
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
_hostElement: HTMLArcgisArcadeVariablesElement;
|
|
7
|
+
_lang: string;
|
|
8
|
+
_t9nLocale: string;
|
|
8
9
|
_t9nStrings: ArcadeVariablesStrings | undefined;
|
|
9
10
|
_mutationCounter: number;
|
|
10
11
|
_flowItemRenderers: Array<() => VNode>;
|
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.18",
|
|
6
6
|
"module": "dist/components/index.js",
|
|
7
7
|
"main": "dist/index.cjs.js",
|
|
8
8
|
"types": "dist/types/index.d.ts",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"build:external-storybook": "storybook build -c .storybook/external -o storybook-static-external --quiet",
|
|
37
37
|
"build:components": "stencil build",
|
|
38
38
|
"build:components:dev": "stencil build --dev",
|
|
39
|
-
"build:monaco-workers": "
|
|
39
|
+
"build:monaco-workers": "tsx ./scripts/build-monaco-workers.ts",
|
|
40
40
|
"build:composite-storybook": "yarn g:shx cp -r storybook-static-external ../../docs/storybook-static-external/coding-components",
|
|
41
41
|
"test": "yarn build:test && stencil test --spec --no-build",
|
|
42
42
|
"test:e2e": "stencil test --e2e",
|
|
@@ -50,16 +50,16 @@
|
|
|
50
50
|
"prettier": "prettier . --write"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@arcgis/arcade-languageservice": "4.29.0-beta.
|
|
53
|
+
"@arcgis/arcade-languageservice": "4.29.0-beta.18",
|
|
54
54
|
"@stencil/core": "2.22.3",
|
|
55
55
|
"monaco-editor": "^0.44.0",
|
|
56
56
|
"vscode-languageserver-types": "^3.17.3"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
|
-
"@arcgis/components-plugins": "4.29.0-beta.
|
|
60
|
-
"@arcgis/components-utils": "4.29.0-beta.
|
|
59
|
+
"@arcgis/components-plugins": "4.29.0-beta.18",
|
|
60
|
+
"@arcgis/components-utils": "4.29.0-beta.18",
|
|
61
61
|
"@arcgis/core": ">=4.29.0-next <4.30",
|
|
62
|
-
"@arcgis/core-adapter": "4.29.0-beta.
|
|
62
|
+
"@arcgis/core-adapter": "4.29.0-beta.18",
|
|
63
63
|
"@arcgis/eslint-config": "1.0.0",
|
|
64
64
|
"@arcgis/typescript-config": "1.0.0",
|
|
65
65
|
"@esri/calcite-components": "^1.8.0",
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
"rollup-plugin-import-css": "^3.1.0",
|
|
105
105
|
"rollup-plugin-node-polyfills": "^0.2.1",
|
|
106
106
|
"storybook": "^7.5.0",
|
|
107
|
-
"
|
|
107
|
+
"tsx": "^4.1.2",
|
|
108
108
|
"typescript": "4.9.5",
|
|
109
109
|
"vite": "^4.5.0",
|
|
110
110
|
"vscode-languageserver-textdocument": "^1.0.9",
|
|
@@ -114,5 +114,5 @@
|
|
|
114
114
|
"@arcgis/core": ">=4.29.0-next <4.30",
|
|
115
115
|
"@esri/calcite-components": ">=1.7.0 <2.0.0"
|
|
116
116
|
},
|
|
117
|
-
"gitHead": "
|
|
117
|
+
"gitHead": "68ea9b9a57bc439853b9c5ca63ff61216d211302"
|
|
118
118
|
}
|