@arcgis/coding-components 4.29.4 → 4.29.6
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 +2 -2
- package/dist/arcgis-coding-components/index.esm.js +2 -2
- package/dist/arcgis-coding-components/{p-913c5d4a.js → p-016c4b1a.js} +2 -2
- package/dist/arcgis-coding-components/p-01a4e3b6.entry.js +6 -0
- package/dist/arcgis-coding-components/{p-b1bb0f69.js → p-1a93c7e0.js} +2 -2
- package/dist/arcgis-coding-components/{p-3fad23c4.js → p-247cb90b.js} +2 -2
- package/dist/arcgis-coding-components/{p-21709684.js → p-36728596.js} +1 -1
- package/dist/arcgis-coding-components/{p-f559490f.js → p-46854d9e.js} +2 -2
- package/dist/arcgis-coding-components/{p-460eeb24.js → p-631633fb.js} +2 -2
- package/dist/arcgis-coding-components/{p-c3fd3b6b.js → p-673b2ff8.js} +3 -3
- package/dist/arcgis-coding-components/{p-3640701b.js → p-69dd71a0.js} +1 -1
- package/dist/arcgis-coding-components/{p-f70b4c1d.js → p-a6aa3329.js} +2 -2
- package/dist/arcgis-coding-components/{p-5f6703f0.js → p-a83c87b2.js} +2 -2
- package/dist/arcgis-coding-components/{p-57662580.js → p-e16a2989.js} +10 -10
- package/dist/cjs/{arcade-defaults-df3f618c.js → arcade-defaults-bb91d772.js} +10 -10
- package/dist/cjs/{arcade-mode-4b3a22e7.js → arcade-mode-dc314608.js} +3 -3
- package/dist/cjs/arcgis-arcade-api_6.cjs.entry.js +16 -10
- package/dist/cjs/arcgis-coding-components.cjs.js +3 -3
- package/dist/cjs/{css-8922252f.js → css-953f7a6c.js} +1 -1
- package/dist/cjs/{cssMode-087ef398.js → cssMode-678f2118.js} +3 -3
- package/dist/cjs/{html-9006338a.js → html-4eef7139.js} +3 -3
- package/dist/cjs/{htmlMode-58d68171.js → htmlMode-bb9d77a0.js} +3 -3
- package/dist/cjs/{index-1937b1c2.js → index-dbf35f05.js} +1 -1
- package/dist/cjs/index.cjs.js +3 -3
- package/dist/cjs/{javascript-49a2ae24.js → javascript-c59907bb.js} +4 -4
- package/dist/cjs/{jsonMode-2bf6687a.js → jsonMode-e01ed2f6.js} +3 -3
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/{tsMode-659ae55b.js → tsMode-e2ee5182.js} +3 -3
- package/dist/cjs/{typescript-f6ced92f.js → typescript-d7c1e747.js} +3 -3
- package/dist/components/arcade-api.js +1 -1
- package/dist/components/arcade-contribution.js +1 -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/arcade-suggestions.js +1 -1
- package/dist/components/arcade-variables.js +1 -1
- package/dist/components/arcgis-arcade-api.js +1 -1
- package/dist/components/arcgis-arcade-editor.js +4 -6
- package/dist/components/arcgis-arcade-results.js +1 -1
- package/dist/components/arcgis-arcade-suggestions.js +1 -1
- package/dist/components/arcgis-arcade-variables.js +1 -1
- package/dist/components/arcgis-code-editor.js +1 -1
- package/dist/components/code-editor.js +14 -3
- package/dist/components/fields.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/index2.js +1 -1
- package/dist/components/markdown.js +1 -1
- package/dist/components/utilities.js +1 -1
- package/dist/esm/{arcade-defaults-38022ca1.js → arcade-defaults-8bb44c25.js} +10 -10
- package/dist/esm/{arcade-mode-62662d3c.js → arcade-mode-df0e1c4a.js} +3 -3
- package/dist/esm/arcgis-arcade-api_6.entry.js +16 -10
- package/dist/esm/arcgis-coding-components.js +4 -4
- package/dist/esm/{css-ef66813f.js → css-57afc054.js} +1 -1
- package/dist/esm/{cssMode-4b27031e.js → cssMode-efab9c31.js} +3 -3
- package/dist/esm/{html-4ac09313.js → html-07054741.js} +3 -3
- package/dist/esm/{htmlMode-0292f8f4.js → htmlMode-45d1db7f.js} +3 -3
- package/dist/esm/{index-a4d14067.js → index-f91da374.js} +1 -1
- package/dist/esm/index.js +3 -3
- package/dist/esm/{javascript-a1e7e984.js → javascript-33f2acbf.js} +4 -4
- package/dist/esm/{jsonMode-da3fe09d.js → jsonMode-a8e86fc8.js} +3 -3
- package/dist/esm/loader.js +4 -4
- package/dist/esm/{tsMode-c162f83c.js → tsMode-ff8c6cfa.js} +3 -3
- package/dist/esm/{typescript-f43e9acb.js → typescript-9426612f.js} +3 -3
- package/dist/loader/cdn.js +1 -1
- package/dist/loader/index.cjs.js +1 -1
- package/dist/loader/index.es2017.js +1 -1
- package/dist/loader/index.js +1 -1
- package/dist/types/components/arcade-editor/arcade-editor.d.ts +4 -0
- package/dist/types/components/code-editor/code-editor.d.ts +7 -1
- package/dist/types/components.d.ts +17 -1
- package/package.json +8 -8
- package/dist/arcgis-coding-components/p-05e39834.entry.js +0 -6
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.29/esri/copyright.txt for details.
|
|
4
|
-
* v4.29.
|
|
4
|
+
* v4.29.6
|
|
5
5
|
*/
|
|
6
6
|
const isAMD = "define" in window && typeof window.define === "function" && "amd" in window.define;
|
|
7
7
|
function isDefaultModule(module) {
|
package/dist/components/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.29/esri/copyright.txt for details.
|
|
4
|
-
* v4.29.
|
|
4
|
+
* v4.29.6
|
|
5
5
|
*/
|
|
6
6
|
export { getAssetPath, setAssetPath, setNonce, setPlatformOptions } from '@stencil/core/internal/client';
|
|
7
7
|
export { a as arcade } from './arcade-defaults.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.29/esri/copyright.txt for details.
|
|
4
|
-
* v4.29.
|
|
4
|
+
* v4.29.6
|
|
5
5
|
*/
|
|
6
6
|
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 x(e,t,n=()=>{}){if(!t||t.length<=0)return;let r=new MutationObserver(o=>{for(let s of o)S(e,s.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 k(e){let t=T(e,":is(.calcite-mode-light, .calcite-mode-dark)");return t&&t.classList.contains("calcite-mode-dark")?"dark":"light"}function f(e,t,n){return T(e,`[${t}]`)?.getAttribute(t)??n}function M(e){return e.nodeType===Node.ELEMENT_NODE}function R(e){return "setFocus"in e&&typeof e.setFocus=="function"}function d(e,t=""){if(!M(e))return !1;if(e.matches(t))return R(e)&&setTimeout(()=>e.setFocus(),0),!0;for(let r of e.children)if(d(r,t))return !0;let n=e.shadowRoot;if(n){for(let r of n.children)if(d(r,t))return !0}return !1}function W(e,t){if(!e?.shadowRoot)return;if(e.hasAttribute("hydrated")||e.hasAttribute("calcite-hydrated")){d(e,t);return}let n=new MutationObserver(()=>{n.disconnect(),d(e,t);});n.observe(e,{attributes:!0,attributeFilter:["hydrated","calcite-hydrated"]});}function c(e){let t="";for(let n=0;n<e;n++)t+=((1+Math.random())*65536|0).toString(16).substring(1);return t}function U(){return [c(2),c(1),c(1),c(1),c(3)].join("-")}var E=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 v(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 i=await o.json();return a.set(r,i),i}if(e==="en"){a.set(r,void 0);return}let s=await v("en",t,n);return a.set(r,s),s}catch{a.set(r,void 0);return}}function _(e){let t=f(e,"lang",navigator.language||"en");if(E.has(t))return {lang:t,t9nLocale:t};let n=t.slice(0,2);return {lang:t,t9nLocale:E.has(n)?n:"en"}}var p=new WeakMap,m=new WeakMap,C=new WeakMap;async function B(e,t,n){m.set(e,t),p.set(e,x(e._hostElement,["lang"],()=>{b(e,n).catch(console.error);})),await b(e,n);}function q(e){p.get(e)?.disconnect(),p.delete(e),m.delete(e);}async function b(e,t){let{lang:n,t9nLocale:r}=_(e._hostElement);if(n===e._lang&&r===e._t9nLocale||(n!==e._lang&&(e._lang=n),r===e._t9nLocale))return;let o=C.get(e);if(!o){let s=m.get(e)??"",i=e._hostElement.tagName.toLowerCase().replace("arcgis-",""),l=`${s}/${i}/t9n`,u=`${i}.t9n.`;o=await v(r,l,u);}r!==e._t9nLocale&&(e._t9nLocale=r,e._t9nStrings=o,await t?.call(e));}var N='"',w="'";function L(e,t){return new Array(t+1).join(e)}function D(e){let t=N,n=w;e.includes(t)&&!e.includes(n)&&(n=N,t=w);let o=new RegExp(`(^|[^\\\\])((?:\\\\{2})*)((?:\\\\${n})+)`,"gu");e=e.replace(o,(i,l,u,g)=>l+u+L(n,g.length/2));let s=new RegExp(`(^|[^\\\\])((?:\\\\{2})*)(${t}+)`,"gu");return e=e.replace(s,(i,l,u,g)=>l+u+L(`\\${t}`,g.length)),t+e+t}function K(e){let t=e?e.replaceAll(/[-[\]/{}()*+?.\\^$|]/gu,"\\$&"):"^.*$";return new RegExp(t,"i")}function Z(e,t={}){return (e??"").replace(/\{(.*?)\}/gu,(n,r)=>t[r]??n)}function G(e){return `\u200E${e??""}\u200E`}function ee(e){return e!==null}function te(e){return e!==void 0}function re(e,t=100){let n;return (...r)=>{let o=()=>{clearTimeout(n),e(...r);};clearTimeout(n),n=setTimeout(o,t);}}function se(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 ie(e){try{return new URL(e),!0}catch{return !1}}
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.29/esri/copyright.txt for details.
|
|
4
|
-
* v4.29.
|
|
4
|
+
* v4.29.6
|
|
5
5
|
*/
|
|
6
6
|
import { editor } from 'monaco-editor';
|
|
7
7
|
import { StandaloneServices } from 'monaco-editor/esm/vs/editor/standalone/browser/standaloneServices.js';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.29/esri/copyright.txt for details.
|
|
4
|
-
* v4.29.
|
|
4
|
+
* v4.29.6
|
|
5
5
|
*/
|
|
6
|
-
import { g as getAssetPath } from './index-
|
|
6
|
+
import { g as getAssetPath } from './index-f91da374.js';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Returns the last element of an array.
|
|
@@ -120522,7 +120522,7 @@ registerLanguage({
|
|
|
120522
120522
|
mimetypes: ["text/css"],
|
|
120523
120523
|
loader: () => {
|
|
120524
120524
|
{
|
|
120525
|
-
return import('./css-
|
|
120525
|
+
return import('./css-57afc054.js');
|
|
120526
120526
|
}
|
|
120527
120527
|
}
|
|
120528
120528
|
});
|
|
@@ -120540,7 +120540,7 @@ registerLanguage({
|
|
|
120540
120540
|
mimetypes: ["text/html", "text/x-jshtm", "text/template", "text/ng-template"],
|
|
120541
120541
|
loader: () => {
|
|
120542
120542
|
{
|
|
120543
|
-
return import('./html-
|
|
120543
|
+
return import('./html-07054741.js');
|
|
120544
120544
|
}
|
|
120545
120545
|
}
|
|
120546
120546
|
});
|
|
@@ -120560,7 +120560,7 @@ registerLanguage({
|
|
|
120560
120560
|
mimetypes: ["text/javascript"],
|
|
120561
120561
|
loader: () => {
|
|
120562
120562
|
{
|
|
120563
|
-
return import('./javascript-
|
|
120563
|
+
return import('./javascript-33f2acbf.js');
|
|
120564
120564
|
}
|
|
120565
120565
|
}
|
|
120566
120566
|
});
|
|
@@ -120578,7 +120578,7 @@ registerLanguage({
|
|
|
120578
120578
|
mimetypes: ["text/typescript"],
|
|
120579
120579
|
loader: () => {
|
|
120580
120580
|
{
|
|
120581
|
-
return import('./typescript-
|
|
120581
|
+
return import('./typescript-9426612f.js');
|
|
120582
120582
|
}
|
|
120583
120583
|
}
|
|
120584
120584
|
});
|
|
@@ -120699,7 +120699,7 @@ var lessDefaults = new LanguageServiceDefaultsImpl$3("less", optionsDefault$1, m
|
|
|
120699
120699
|
monaco_editor_core_exports$3.languages.css = { cssDefaults, lessDefaults, scssDefaults };
|
|
120700
120700
|
function getMode$3() {
|
|
120701
120701
|
{
|
|
120702
|
-
return import('./cssMode-
|
|
120702
|
+
return import('./cssMode-efab9c31.js');
|
|
120703
120703
|
}
|
|
120704
120704
|
}
|
|
120705
120705
|
monaco_editor_core_exports$3.languages.onLanguage("less", () => {
|
|
@@ -120824,7 +120824,7 @@ monaco_editor_core_exports$2.languages.html = {
|
|
|
120824
120824
|
};
|
|
120825
120825
|
function getMode$2() {
|
|
120826
120826
|
{
|
|
120827
|
-
return import('./htmlMode-
|
|
120827
|
+
return import('./htmlMode-45d1db7f.js');
|
|
120828
120828
|
}
|
|
120829
120829
|
}
|
|
120830
120830
|
function registerHTMLLanguageService(languageId, options = optionsDefault, modeConfiguration = getConfigurationDefault(languageId)) {
|
|
@@ -120926,7 +120926,7 @@ var jsonDefaults = new LanguageServiceDefaultsImpl$1("json", diagnosticDefault,
|
|
|
120926
120926
|
monaco_editor_core_exports$1.languages.json = { jsonDefaults };
|
|
120927
120927
|
function getMode$1() {
|
|
120928
120928
|
{
|
|
120929
|
-
return import('./jsonMode-
|
|
120929
|
+
return import('./jsonMode-a8e86fc8.js');
|
|
120930
120930
|
}
|
|
120931
120931
|
}
|
|
120932
120932
|
monaco_editor_core_exports$1.languages.register({
|
|
@@ -121195,7 +121195,7 @@ monaco_editor_core_exports.languages.typescript = {
|
|
|
121195
121195
|
};
|
|
121196
121196
|
function getMode() {
|
|
121197
121197
|
{
|
|
121198
|
-
return import('./tsMode-
|
|
121198
|
+
return import('./tsMode-ff8c6cfa.js');
|
|
121199
121199
|
}
|
|
121200
121200
|
}
|
|
121201
121201
|
monaco_editor_core_exports.languages.onLanguage("typescript", () => {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.29/esri/copyright.txt for details.
|
|
4
|
-
* v4.29.
|
|
4
|
+
* v4.29.6
|
|
5
5
|
*/
|
|
6
|
-
import { v as main, e as editor, M as MarkerSeverity, R as Range, l as languages, w as re, E as Emitter } from './arcade-defaults-
|
|
7
|
-
import './index-
|
|
6
|
+
import { v as main, e as editor, M as MarkerSeverity, R as Range, l as languages, w as re, E as Emitter } from './arcade-defaults-8bb44c25.js';
|
|
7
|
+
import './index-f91da374.js';
|
|
8
8
|
|
|
9
9
|
var j={False:"false",Null:"null",True:"true"},f={Break:"break",Continue:"continue",Else:"else",For:"for",From:"from",Function:"function",If:"if",Import:"import",Export:"export",In:"in",Return:"return",Var:"var",While:"while"},Fe=["++","--"],Qe=["-","+","!","~"],Ze=["=","/=","*=","%=","+=","-="],Xe=["||","&&"],Lt=["|","&",">>","<<",">>>","^","==","!=","<","<=",">",">=","+","-","*","/","%"];var U=[[],[],[]];Fe.forEach(t=>U[t.length-1]?.push(t));Qe.forEach(t=>U[t.length-1]?.push(t));Xe.forEach(t=>U[t.length-1]?.push(t));Ze.forEach(t=>U[t.length-1]?.push(t));Lt.forEach(t=>U[t.length-1]?.push(t));var ht=Object.values(f),dt=Object.values(j);dt.map(t=>({label:t,kind:main.CompletionItemKind.Constant}));ht.map(t=>({label:t,kind:main.CompletionItemKind.Keyword}));
|
|
10
10
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.29/esri/copyright.txt for details.
|
|
4
|
-
* v4.29.
|
|
4
|
+
* v4.29.6
|
|
5
5
|
*/
|
|
6
|
-
import { r as registerInstance, c as createEvent, g as getAssetPath, h, H as Host, a as getElement, F as Fragment } from './index-
|
|
7
|
-
import { g as generateTokensCSSForColorMap, e as editor, S as StandaloneServices, I as IStandaloneThemeService, c as createCommonjsModule, b as commonjsGlobal, i as ie, s as se, d as importRequest, l as languages, f as arcadeDefaults, B, U as Uri, q, W, h as filterCollection, G, j as importArcade, k as h$1, m as U, n as k, K as KeyCode, Z, D, o as supportedFields, p as K, R as Range, x, r as KeyMod } from './arcade-defaults-
|
|
6
|
+
import { r as registerInstance, c as createEvent, g as getAssetPath, h, H as Host, a as getElement, F as Fragment } from './index-f91da374.js';
|
|
7
|
+
import { g as generateTokensCSSForColorMap, e as editor, S as StandaloneServices, I as IStandaloneThemeService, c as createCommonjsModule, b as commonjsGlobal, i as ie, s as se, d as importRequest, l as languages, f as arcadeDefaults, B, U as Uri, q, W, h as filterCollection, G, j as importArcade, k as h$1, m as U, n as k, K as KeyCode, Z, D, o as supportedFields, p as K, R as Range, x, r as KeyMod } from './arcade-defaults-8bb44c25.js';
|
|
8
8
|
|
|
9
9
|
async function colorizeCode(code) {
|
|
10
10
|
return await editor.colorize(code, "arcade", { tabSize: 2 });
|
|
@@ -3024,7 +3024,7 @@ async function getArcadeWorker(uri) {
|
|
|
3024
3024
|
* @returns mode for arcade
|
|
3025
3025
|
*/
|
|
3026
3026
|
async function getMode() {
|
|
3027
|
-
return await import('./arcade-mode-
|
|
3027
|
+
return await import('./arcade-mode-df0e1c4a.js');
|
|
3028
3028
|
}
|
|
3029
3029
|
// Register the language in Monaco
|
|
3030
3030
|
languages.register({
|
|
@@ -3561,6 +3561,7 @@ const ArcgisArcadeEditor = class {
|
|
|
3561
3561
|
this.hideSideBar = false;
|
|
3562
3562
|
this.sideActionBarExpanded = false;
|
|
3563
3563
|
this.openedSidePanel = "none";
|
|
3564
|
+
this.editorOptions = undefined;
|
|
3564
3565
|
}
|
|
3565
3566
|
_profileChanged(newValue, oldValue) {
|
|
3566
3567
|
// Prevent the execution as long as the component has not been fully loaded
|
|
@@ -3728,11 +3729,7 @@ const ArcgisArcadeEditor = class {
|
|
|
3728
3729
|
//#endregion
|
|
3729
3730
|
//#region Render Main Panel
|
|
3730
3731
|
renderMainPanel() {
|
|
3731
|
-
return (
|
|
3732
|
-
// <div class="flex-adjustable">
|
|
3733
|
-
h("arcgis-code-editor", { class: "flex-adjustable", language: arcadeDefaults.languageId, value: this.script ?? "", modelId: this._modelId, onValueChange: this._emitScriptChange, ref: (e) => (this._codeEditorElt = e) })
|
|
3734
|
-
// </div>
|
|
3735
|
-
);
|
|
3732
|
+
return (h("arcgis-code-editor", { class: "flex-adjustable", language: arcadeDefaults.languageId, value: this.script ?? "", modelId: this._modelId, options: this.editorOptions, onValueChange: this._emitScriptChange, ref: (e) => (this._codeEditorElt = e) }));
|
|
3736
3733
|
}
|
|
3737
3734
|
//#endregion
|
|
3738
3735
|
//#region Rendering the Action Bar
|
|
@@ -4355,6 +4352,7 @@ const ArcgisCodeEditor = class {
|
|
|
4355
4352
|
this.value = undefined;
|
|
4356
4353
|
this.language = undefined;
|
|
4357
4354
|
this.modelId = U();
|
|
4355
|
+
this.options = undefined;
|
|
4358
4356
|
}
|
|
4359
4357
|
valuePropChange(newValue, oldValue) {
|
|
4360
4358
|
if (!this._editorInstance || newValue === oldValue) {
|
|
@@ -4374,6 +4372,12 @@ const ArcgisCodeEditor = class {
|
|
|
4374
4372
|
}
|
|
4375
4373
|
this.updateModel();
|
|
4376
4374
|
}
|
|
4375
|
+
optionsPropChange(newValue) {
|
|
4376
|
+
if (!this._editorInstance || !newValue) {
|
|
4377
|
+
return;
|
|
4378
|
+
}
|
|
4379
|
+
this._editorInstance.updateOptions(newValue);
|
|
4380
|
+
}
|
|
4377
4381
|
//#endregion
|
|
4378
4382
|
// #region Public methods API
|
|
4379
4383
|
/**
|
|
@@ -4472,6 +4476,7 @@ const ArcgisCodeEditor = class {
|
|
|
4472
4476
|
// Create the editor for the host element.
|
|
4473
4477
|
// This will not trigger a diagnostic.
|
|
4474
4478
|
this._editorInstance = editor.create(this._hostElt, {
|
|
4479
|
+
...(this.options ?? {}),
|
|
4475
4480
|
model,
|
|
4476
4481
|
fixedOverflowWidgets: true,
|
|
4477
4482
|
scrollBeyondLastLine: false
|
|
@@ -4565,7 +4570,8 @@ const ArcgisCodeEditor = class {
|
|
|
4565
4570
|
static get watchers() { return {
|
|
4566
4571
|
"value": ["valuePropChange"],
|
|
4567
4572
|
"language": ["languagePropChange"],
|
|
4568
|
-
"modelId": ["modelIdPropChange"]
|
|
4573
|
+
"modelId": ["modelIdPropChange"],
|
|
4574
|
+
"options": ["optionsPropChange"]
|
|
4569
4575
|
}; }
|
|
4570
4576
|
};
|
|
4571
4577
|
ArcgisCodeEditor.style = codeEditorCss;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.29/esri/copyright.txt for details.
|
|
4
|
-
* v4.29.
|
|
4
|
+
* v4.29.6
|
|
5
5
|
*/
|
|
6
|
-
import { p as promiseResolve, b as bootstrapLazy } from './index-
|
|
7
|
-
export { s as setNonce } from './index-
|
|
6
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-f91da374.js';
|
|
7
|
+
export { s as setNonce } from './index-f91da374.js';
|
|
8
8
|
|
|
9
9
|
/*
|
|
10
10
|
Stencil Client Patch Browser v4.10.0 | MIT Licensed | https://stenciljs.com
|
|
@@ -19,5 +19,5 @@ const patchBrowser = () => {
|
|
|
19
19
|
};
|
|
20
20
|
|
|
21
21
|
patchBrowser().then(options => {
|
|
22
|
-
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],"updateThemeColors":[64]},null,{"profile":["_profileChanged"],"testData":["_testDataChanged"],"snippets":["_snippetChanged"]}],[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]},null,{"suggestions":["suggestionsPropChanged"]}],[1,"arcgis-arcade-variables",{"loading":[4],"modelId":[1,"model-id"],"_lang":[32],"_t9nLocale":[32],"_t9nStrings":[32],"_mutationCounter":[32],"_flowItemRenderers":[32],"_filterValue":[32]},null,{"modelId":["modelIdPropChanged"]}],[0,"arcgis-code-editor",{"value":[1],"language":[1],"modelId":[1,"model-id"],"getValue":[64],"setValue":[64],"insertText":[64],"insertSnippet":[64],"getEditorInstance":[64],"setFocus":[64]},null,{"value":["valuePropChange"],"language":["languagePropChange"],"modelId":["modelIdPropChange"]}]]]], options);
|
|
22
|
+
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"],"editorOptions":[16],"_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],"updateThemeColors":[64]},null,{"profile":["_profileChanged"],"testData":["_testDataChanged"],"snippets":["_snippetChanged"]}],[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]},null,{"suggestions":["suggestionsPropChanged"]}],[1,"arcgis-arcade-variables",{"loading":[4],"modelId":[1,"model-id"],"_lang":[32],"_t9nLocale":[32],"_t9nStrings":[32],"_mutationCounter":[32],"_flowItemRenderers":[32],"_filterValue":[32]},null,{"modelId":["modelIdPropChanged"]}],[0,"arcgis-code-editor",{"value":[1],"language":[1],"modelId":[1,"model-id"],"options":[16],"getValue":[64],"setValue":[64],"insertText":[64],"insertSnippet":[64],"getEditorInstance":[64],"setFocus":[64]},null,{"value":["valuePropChange"],"language":["languagePropChange"],"modelId":["modelIdPropChange"],"options":["optionsPropChange"]}]]]], options);
|
|
23
23
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.29/esri/copyright.txt for details.
|
|
4
|
-
* v4.29.
|
|
4
|
+
* v4.29.6
|
|
5
5
|
*/
|
|
6
6
|
/*!-----------------------------------------------------------------------------
|
|
7
7
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.29/esri/copyright.txt for details.
|
|
4
|
-
* v4.29.
|
|
4
|
+
* v4.29.6
|
|
5
5
|
*/
|
|
6
|
-
import { t as monaco_editor_core_star } from './arcade-defaults-
|
|
7
|
-
import './index-
|
|
6
|
+
import { t as monaco_editor_core_star } from './arcade-defaults-8bb44c25.js';
|
|
7
|
+
import './index-f91da374.js';
|
|
8
8
|
|
|
9
9
|
/*!-----------------------------------------------------------------------------
|
|
10
10
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.29/esri/copyright.txt for details.
|
|
4
|
-
* v4.29.
|
|
4
|
+
* v4.29.6
|
|
5
5
|
*/
|
|
6
|
-
import { t as monaco_editor_core_star } from './arcade-defaults-
|
|
7
|
-
import './index-
|
|
6
|
+
import { t as monaco_editor_core_star } from './arcade-defaults-8bb44c25.js';
|
|
7
|
+
import './index-f91da374.js';
|
|
8
8
|
|
|
9
9
|
/*!-----------------------------------------------------------------------------
|
|
10
10
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.29/esri/copyright.txt for details.
|
|
4
|
-
* v4.29.
|
|
4
|
+
* v4.29.6
|
|
5
5
|
*/
|
|
6
|
-
import { t as monaco_editor_core_star } from './arcade-defaults-
|
|
7
|
-
import './index-
|
|
6
|
+
import { t as monaco_editor_core_star } from './arcade-defaults-8bb44c25.js';
|
|
7
|
+
import './index-f91da374.js';
|
|
8
8
|
|
|
9
9
|
/*!-----------------------------------------------------------------------------
|
|
10
10
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
package/dist/esm/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.29/esri/copyright.txt for details.
|
|
4
|
-
* v4.29.
|
|
4
|
+
* v4.29.6
|
|
5
5
|
*/
|
|
6
|
-
export { a as arcade } from './arcade-defaults-
|
|
7
|
-
import './index-
|
|
6
|
+
export { a as arcade } from './arcade-defaults-8bb44c25.js';
|
|
7
|
+
import './index-f91da374.js';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.29/esri/copyright.txt for details.
|
|
4
|
-
* v4.29.
|
|
4
|
+
* v4.29.6
|
|
5
5
|
*/
|
|
6
|
-
import { conf as conf$1, language as language$1 } from './typescript-
|
|
7
|
-
import './arcade-defaults-
|
|
8
|
-
import './index-
|
|
6
|
+
import { conf as conf$1, language as language$1 } from './typescript-9426612f.js';
|
|
7
|
+
import './arcade-defaults-8bb44c25.js';
|
|
8
|
+
import './index-f91da374.js';
|
|
9
9
|
|
|
10
10
|
/*!-----------------------------------------------------------------------------
|
|
11
11
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.29/esri/copyright.txt for details.
|
|
4
|
-
* v4.29.
|
|
4
|
+
* v4.29.6
|
|
5
5
|
*/
|
|
6
|
-
import { t as monaco_editor_core_star } from './arcade-defaults-
|
|
7
|
-
import './index-
|
|
6
|
+
import { t as monaco_editor_core_star } from './arcade-defaults-8bb44c25.js';
|
|
7
|
+
import './index-f91da374.js';
|
|
8
8
|
|
|
9
9
|
/*!-----------------------------------------------------------------------------
|
|
10
10
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
package/dist/esm/loader.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.29/esri/copyright.txt for details.
|
|
4
|
-
* v4.29.
|
|
4
|
+
* v4.29.6
|
|
5
5
|
*/
|
|
6
|
-
import { b as bootstrapLazy } from './index-
|
|
7
|
-
export { s as setNonce } from './index-
|
|
6
|
+
import { b as bootstrapLazy } from './index-f91da374.js';
|
|
7
|
+
export { s as setNonce } from './index-f91da374.js';
|
|
8
8
|
|
|
9
9
|
const defineCustomElements = (win, options) => {
|
|
10
10
|
if (typeof window === 'undefined') return undefined;
|
|
11
|
-
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],"updateThemeColors":[64]},null,{"profile":["_profileChanged"],"testData":["_testDataChanged"],"snippets":["_snippetChanged"]}],[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]},null,{"suggestions":["suggestionsPropChanged"]}],[1,"arcgis-arcade-variables",{"loading":[4],"modelId":[1,"model-id"],"_lang":[32],"_t9nLocale":[32],"_t9nStrings":[32],"_mutationCounter":[32],"_flowItemRenderers":[32],"_filterValue":[32]},null,{"modelId":["modelIdPropChanged"]}],[0,"arcgis-code-editor",{"value":[1],"language":[1],"modelId":[1,"model-id"],"getValue":[64],"setValue":[64],"insertText":[64],"insertSnippet":[64],"getEditorInstance":[64],"setFocus":[64]},null,{"value":["valuePropChange"],"language":["languagePropChange"],"modelId":["modelIdPropChange"]}]]]], options);
|
|
11
|
+
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"],"editorOptions":[16],"_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],"updateThemeColors":[64]},null,{"profile":["_profileChanged"],"testData":["_testDataChanged"],"snippets":["_snippetChanged"]}],[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]},null,{"suggestions":["suggestionsPropChanged"]}],[1,"arcgis-arcade-variables",{"loading":[4],"modelId":[1,"model-id"],"_lang":[32],"_t9nLocale":[32],"_t9nStrings":[32],"_mutationCounter":[32],"_flowItemRenderers":[32],"_filterValue":[32]},null,{"modelId":["modelIdPropChanged"]}],[0,"arcgis-code-editor",{"value":[1],"language":[1],"modelId":[1,"model-id"],"options":[16],"getValue":[64],"setValue":[64],"insertText":[64],"insertSnippet":[64],"getEditorInstance":[64],"setFocus":[64]},null,{"value":["valuePropChange"],"language":["languagePropChange"],"modelId":["modelIdPropChange"],"options":["optionsPropChange"]}]]]], options);
|
|
12
12
|
};
|
|
13
13
|
|
|
14
14
|
export { defineCustomElements };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.29/esri/copyright.txt for details.
|
|
4
|
-
* v4.29.
|
|
4
|
+
* v4.29.6
|
|
5
5
|
*/
|
|
6
|
-
import { u as typescriptDefaults, t as monaco_editor_core_star } from './arcade-defaults-
|
|
7
|
-
import './index-
|
|
6
|
+
import { u as typescriptDefaults, t as monaco_editor_core_star } from './arcade-defaults-8bb44c25.js';
|
|
7
|
+
import './index-f91da374.js';
|
|
8
8
|
|
|
9
9
|
/*!-----------------------------------------------------------------------------
|
|
10
10
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.29/esri/copyright.txt for details.
|
|
4
|
-
* v4.29.
|
|
4
|
+
* v4.29.6
|
|
5
5
|
*/
|
|
6
|
-
import { t as monaco_editor_core_star } from './arcade-defaults-
|
|
7
|
-
import './index-
|
|
6
|
+
import { t as monaco_editor_core_star } from './arcade-defaults-8bb44c25.js';
|
|
7
|
+
import './index-f91da374.js';
|
|
8
8
|
|
|
9
9
|
/*!-----------------------------------------------------------------------------
|
|
10
10
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
package/dist/loader/cdn.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.29/esri/copyright.txt for details.
|
|
4
|
-
* v4.29.
|
|
4
|
+
* v4.29.6
|
|
5
5
|
*/
|
|
6
6
|
module.exports = require('../cjs/loader.cjs.js');
|
|
7
7
|
module.exports.applyPolyfills = function() { return Promise.resolve() };
|
package/dist/loader/index.cjs.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.29/esri/copyright.txt for details.
|
|
4
|
-
* v4.29.
|
|
4
|
+
* v4.29.6
|
|
5
5
|
*/
|
|
6
6
|
module.exports = require('../cjs/loader.cjs.js');
|
|
7
7
|
module.exports.applyPolyfills = function() { return Promise.resolve() };
|
package/dist/loader/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.29/esri/copyright.txt for details.
|
|
4
|
-
* v4.29.
|
|
4
|
+
* v4.29.6
|
|
5
5
|
*/
|
|
6
6
|
(function(){if("undefined"!==typeof window&&void 0!==window.Reflect&&void 0!==window.customElements){var a=HTMLElement;window.HTMLElement=function(){return Reflect.construct(a,[],this.constructor)};HTMLElement.prototype=a.prototype;HTMLElement.prototype.constructor=HTMLElement;Object.setPrototypeOf(HTMLElement,a)}})();
|
|
7
7
|
export * from '../esm/polyfills/index.js';
|
|
@@ -79,6 +79,10 @@ export declare class ArcgisArcadeEditor implements ComponentInterface {
|
|
|
79
79
|
* The name of the opened side panel. 'none' means 'no panel opened'.
|
|
80
80
|
*/
|
|
81
81
|
openedSidePanel: SidePanelName;
|
|
82
|
+
/**
|
|
83
|
+
* The options for the editor (see Monaco Editor options documentation for more details).
|
|
84
|
+
*/
|
|
85
|
+
editorOptions: (editor.IEditorOptions & editor.IGlobalEditorOptions) | undefined;
|
|
82
86
|
/**
|
|
83
87
|
* Returns the current script.
|
|
84
88
|
* @returns {Promise<string>}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { EventEmitter, VNode, ComponentInterface } from "../../stencil-public-runtime";
|
|
2
|
+
import { editor } from "monaco-editor";
|
|
2
3
|
import "../../utils/arcade-monaco/arcade-contribution";
|
|
3
4
|
export declare class ArcgisCodeEditor implements ComponentInterface {
|
|
4
5
|
private _editorInstance?;
|
|
@@ -27,6 +28,11 @@ export declare class ArcgisCodeEditor implements ComponentInterface {
|
|
|
27
28
|
*/
|
|
28
29
|
modelId: string;
|
|
29
30
|
modelIdPropChange(newValue: string | undefined, oldValue: string | undefined): void;
|
|
31
|
+
/**
|
|
32
|
+
* The options for the editor (see Monaco Editor options documentation for more details).
|
|
33
|
+
*/
|
|
34
|
+
options: (editor.IEditorOptions & editor.IGlobalEditorOptions) | undefined;
|
|
35
|
+
optionsPropChange(newValue: (editor.IEditorOptions & editor.IGlobalEditorOptions) | undefined): void;
|
|
30
36
|
/**
|
|
31
37
|
* Gets the current value in the editor.
|
|
32
38
|
* @returns {Promise<string>}
|
|
@@ -56,7 +62,7 @@ export declare class ArcgisCodeEditor implements ComponentInterface {
|
|
|
56
62
|
* Returns the editor instance.
|
|
57
63
|
* @returns {Promise<IStandaloneCodeEditor>} - The monaco editor instance
|
|
58
64
|
*/
|
|
59
|
-
getEditorInstance(): Promise<
|
|
65
|
+
getEditorInstance(): Promise<editor.IStandaloneCodeEditor | undefined>;
|
|
60
66
|
/**
|
|
61
67
|
* Sets the focus on the editor.
|
|
62
68
|
* @returns {Promise<void>}
|
|
@@ -33,6 +33,10 @@ export namespace Components {
|
|
|
33
33
|
"modelId": string | undefined;
|
|
34
34
|
}
|
|
35
35
|
interface ArcgisArcadeEditor {
|
|
36
|
+
/**
|
|
37
|
+
* The options for the editor (see Monaco Editor options documentation for more details).
|
|
38
|
+
*/
|
|
39
|
+
"editorOptions": (editor.IEditorOptions & editor.IGlobalEditorOptions) | undefined;
|
|
36
40
|
/**
|
|
37
41
|
* @returns - The monaco editor instance
|
|
38
42
|
*/
|
|
@@ -129,7 +133,7 @@ export namespace Components {
|
|
|
129
133
|
/**
|
|
130
134
|
* @returns - The monaco editor instance
|
|
131
135
|
*/
|
|
132
|
-
"getEditorInstance": () => Promise<
|
|
136
|
+
"getEditorInstance": () => Promise<editor.IStandaloneCodeEditor | undefined>;
|
|
133
137
|
/**
|
|
134
138
|
* Gets the current value in the editor.
|
|
135
139
|
* @returns
|
|
@@ -155,6 +159,10 @@ export namespace Components {
|
|
|
155
159
|
* A unique identifier for the model. The unique identifier is sometimes used by language defaults to store model metadata. For example, with arcade, the model id is used to store the arcade profile and other metadata. The unique identifier is especially useful when there are multiple editors on the same page.
|
|
156
160
|
*/
|
|
157
161
|
"modelId": string;
|
|
162
|
+
/**
|
|
163
|
+
* The options for the editor (see Monaco Editor options documentation for more details).
|
|
164
|
+
*/
|
|
165
|
+
"options": (editor.IEditorOptions & editor.IGlobalEditorOptions) | undefined;
|
|
158
166
|
/**
|
|
159
167
|
* Sets the focus on the editor.
|
|
160
168
|
* @returns
|
|
@@ -333,6 +341,10 @@ declare namespace LocalJSX {
|
|
|
333
341
|
"onItemSelected"?: (event: ArcgisArcadeApiCustomEvent<string>) => void;
|
|
334
342
|
}
|
|
335
343
|
interface ArcgisArcadeEditor {
|
|
344
|
+
/**
|
|
345
|
+
* The options for the editor (see Monaco Editor options documentation for more details).
|
|
346
|
+
*/
|
|
347
|
+
"editorOptions"?: (editor.IEditorOptions & editor.IGlobalEditorOptions) | undefined;
|
|
336
348
|
/**
|
|
337
349
|
* If true, it will hide the documentation action in the side panel
|
|
338
350
|
*/
|
|
@@ -449,6 +461,10 @@ declare namespace LocalJSX {
|
|
|
449
461
|
* Emitted when the value has changed (script, code, css, json, etc.)
|
|
450
462
|
*/
|
|
451
463
|
"onValueChange"?: (event: ArcgisCodeEditorCustomEvent<string>) => void;
|
|
464
|
+
/**
|
|
465
|
+
* The options for the editor (see Monaco Editor options documentation for more details).
|
|
466
|
+
*/
|
|
467
|
+
"options"?: (editor.IEditorOptions & editor.IGlobalEditorOptions) | undefined;
|
|
452
468
|
/**
|
|
453
469
|
* The initial value for the editor. The value is the script, code, css, json, etc.
|
|
454
470
|
*/
|
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.
|
|
5
|
+
"version": "4.29.6",
|
|
6
6
|
"module": "dist/components/index.js",
|
|
7
7
|
"main": "dist/index.cjs.js",
|
|
8
8
|
"types": "dist/types/index.d.ts",
|
|
@@ -48,18 +48,18 @@
|
|
|
48
48
|
"generate": "stencil generate"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@arcgis/arcade-languageservice": "4.29.
|
|
51
|
+
"@arcgis/arcade-languageservice": "4.29.6",
|
|
52
52
|
"@stencil/core": "^4.10.0",
|
|
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.
|
|
58
|
-
"@arcgis/components-utils": "4.29.
|
|
57
|
+
"@arcgis/components-plugins": "4.29.6",
|
|
58
|
+
"@arcgis/components-utils": "4.29.6",
|
|
59
59
|
"@arcgis/core": "~4.29.0",
|
|
60
|
-
"@arcgis/core-adapter": "4.29.
|
|
61
|
-
"@arcgis/storybook-utils": "4.29.
|
|
62
|
-
"@arcgis/typescript-config": "4.29.
|
|
60
|
+
"@arcgis/core-adapter": "4.29.6",
|
|
61
|
+
"@arcgis/storybook-utils": "4.29.6",
|
|
62
|
+
"@arcgis/typescript-config": "4.29.6",
|
|
63
63
|
"@esri/calcite-components": "^2.4.0",
|
|
64
64
|
"@stencil/angular-output-target": "0.8.3",
|
|
65
65
|
"@stencil/react-output-target": "0.5.3",
|
|
@@ -98,5 +98,5 @@
|
|
|
98
98
|
"@arcgis/core": "~4.29.0",
|
|
99
99
|
"@esri/calcite-components": ">=2.2.0 <3.0.0"
|
|
100
100
|
},
|
|
101
|
-
"gitHead": "
|
|
101
|
+
"gitHead": "a048c5410144eee11735e25e9cd8d56d08881749"
|
|
102
102
|
}
|