@arcgis/coding-components 4.29.0-beta.113 → 4.29.0-beta.114
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-4088f191.js → p-104faef1.js} +1 -1
- package/dist/arcgis-coding-components/{p-1d1df020.js → p-11260ad2.js} +2 -2
- package/dist/arcgis-coding-components/{p-ed0acf1d.js → p-250c4b22.js} +2 -2
- package/dist/arcgis-coding-components/{p-8fa7b6b3.js → p-48890e35.js} +2 -2
- package/dist/arcgis-coding-components/{p-b7f6269a.js → p-784e3f96.js} +2 -2
- package/dist/arcgis-coding-components/p-7d2dfc64.entry.js +6 -0
- package/dist/arcgis-coding-components/{p-b2b27bbe.js → p-85155f58.js} +2 -2
- package/dist/arcgis-coding-components/{p-4b7291cc.js → p-b2b0c44f.js} +1 -1
- package/dist/arcgis-coding-components/p-b500b786.js +6 -0
- package/dist/arcgis-coding-components/{p-e4fb8f11.js → p-c0c4fb2f.js} +11 -11
- package/dist/arcgis-coding-components/{p-e1eaafa9.js → p-da1cdcf4.js} +2 -2
- package/dist/arcgis-coding-components/{p-e530878b.js → p-de2d19d6.js} +2 -2
- package/dist/cjs/{arcade-defaults-4a549303.js → arcade-defaults-8ddd7bac.js} +25 -24
- package/dist/cjs/{arcade-mode-6c189663.js → arcade-mode-2524f6e6.js} +11 -14
- package/dist/cjs/arcgis-arcade-api_6.cjs.entry.js +100 -135
- package/dist/cjs/arcgis-coding-components.cjs.js +2 -2
- package/dist/cjs/{css-6f7dcd5a.js → css-b7198c84.js} +1 -1
- package/dist/cjs/{cssMode-245d6467.js → cssMode-9a63e99f.js} +3 -3
- package/dist/cjs/{html-2774c64f.js → html-015e78d7.js} +3 -3
- package/dist/cjs/{htmlMode-0606c7e3.js → htmlMode-a1e1ea15.js} +3 -3
- package/dist/cjs/{index-b518646d.js → index-f1ec1eca.js} +1 -1
- package/dist/cjs/index.cjs.js +3 -3
- package/dist/cjs/{javascript-6b11fc9d.js → javascript-f5ac3a3a.js} +4 -4
- package/dist/cjs/{jsonMode-11883f07.js → jsonMode-0b9bb979.js} +3 -3
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{tsMode-4de8b5c1.js → tsMode-891b5e96.js} +3 -3
- package/dist/cjs/{typescript-96d879a2.js → typescript-fc10fc52.js} +3 -3
- package/dist/components/arcade-api.js +20 -18
- package/dist/components/arcade-contribution.js +8 -7
- package/dist/components/arcade-defaults.js +9 -9
- package/dist/components/arcade-mode.js +10 -12
- package/dist/components/arcade-results.js +27 -81
- package/dist/components/arcade-suggestions.js +15 -12
- package/dist/components/arcade-variables.js +16 -10
- package/dist/components/arcgis-arcade-api.js +1 -1
- package/dist/components/arcgis-arcade-editor.js +16 -12
- 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 +1 -1
- package/dist/components/fields.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/index2.js +3 -3
- package/dist/components/markdown.js +10 -1
- package/dist/components/utilities.js +4 -4
- package/dist/esm/{arcade-defaults-1e50716f.js → arcade-defaults-f71d29a1.js} +21 -21
- package/dist/esm/{arcade-mode-95cf5178.js → arcade-mode-4a6bbc9f.js} +11 -14
- package/dist/esm/arcgis-arcade-api_6.entry.js +100 -135
- package/dist/esm/arcgis-coding-components.js +3 -3
- package/dist/esm/{css-e2349c2b.js → css-8fb92af1.js} +1 -1
- package/dist/esm/{cssMode-3fae4ab5.js → cssMode-7637a9c8.js} +3 -3
- package/dist/esm/{html-961458b7.js → html-0766032d.js} +3 -3
- package/dist/esm/{htmlMode-33dab68c.js → htmlMode-5caa8195.js} +3 -3
- package/dist/esm/{index-751e780b.js → index-b43ed451.js} +1 -1
- package/dist/esm/index.js +3 -3
- package/dist/esm/{javascript-996fdadb.js → javascript-561d79ed.js} +4 -4
- package/dist/esm/{jsonMode-d3634539.js → jsonMode-2e7d35c7.js} +3 -3
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{tsMode-e2bb6f87.js → tsMode-d3aced71.js} +3 -3
- package/dist/esm/{typescript-e9a34331.js → typescript-6be08b04.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/utils/arcade-monaco/arcade-contribution.d.ts +2 -2
- package/dist/types/utils/constants.d.ts +2 -2
- package/dist/types/utils/markdown.d.ts +3 -0
- package/package.json +8 -8
- package/dist/arcgis-coding-components/p-6c13dba0.entry.js +0 -6
- package/dist/arcgis-coding-components/p-d80df481.js +0 -6
- package/dist/components/functional-components.js +0 -15
- package/dist/types/utils/functional-components.d.ts +0 -7
- package/dist/types/utils/json-format.d.ts +0 -1
|
@@ -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.0-beta.
|
|
4
|
+
* v4.29.0-beta.114
|
|
5
5
|
*/
|
|
6
|
-
import{
|
|
6
|
+
import{t}from"./p-c0c4fb2f.js";import"./p-104faef1.js";
|
|
7
7
|
/*!-----------------------------------------------------------------------------
|
|
8
8
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
9
9
|
* Version: 0.45.0(5e5af013f8d295555a7210df0d5f2cea0bf5dd56)
|
|
@@ -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.0-beta.
|
|
4
|
+
* v4.29.0-beta.114
|
|
5
5
|
*/
|
|
6
|
-
import{
|
|
6
|
+
import{t as e}from"./p-c0c4fb2f.js";import"./p-104faef1.js";
|
|
7
7
|
/*!-----------------------------------------------------------------------------
|
|
8
8
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
9
9
|
* Version: 0.45.0(5e5af013f8d295555a7210df0d5f2cea0bf5dd56)
|
|
@@ -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.0-beta.
|
|
4
|
+
* v4.29.0-beta.114
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
7
7
|
|
|
8
|
-
const index = require('./index-
|
|
8
|
+
const index = require('./index-f1ec1eca.js');
|
|
9
9
|
|
|
10
10
|
function _interopNamespace(e) {
|
|
11
11
|
if (e && e.__esModule) return e;
|
|
@@ -120544,7 +120544,7 @@ registerLanguage({
|
|
|
120544
120544
|
mimetypes: ["text/css"],
|
|
120545
120545
|
loader: () => {
|
|
120546
120546
|
{
|
|
120547
|
-
return Promise.resolve().then(function () { return require('./css-
|
|
120547
|
+
return Promise.resolve().then(function () { return require('./css-b7198c84.js'); });
|
|
120548
120548
|
}
|
|
120549
120549
|
}
|
|
120550
120550
|
});
|
|
@@ -120562,7 +120562,7 @@ registerLanguage({
|
|
|
120562
120562
|
mimetypes: ["text/html", "text/x-jshtm", "text/template", "text/ng-template"],
|
|
120563
120563
|
loader: () => {
|
|
120564
120564
|
{
|
|
120565
|
-
return Promise.resolve().then(function () { return require('./html-
|
|
120565
|
+
return Promise.resolve().then(function () { return require('./html-015e78d7.js'); });
|
|
120566
120566
|
}
|
|
120567
120567
|
}
|
|
120568
120568
|
});
|
|
@@ -120582,7 +120582,7 @@ registerLanguage({
|
|
|
120582
120582
|
mimetypes: ["text/javascript"],
|
|
120583
120583
|
loader: () => {
|
|
120584
120584
|
{
|
|
120585
|
-
return Promise.resolve().then(function () { return require('./javascript-
|
|
120585
|
+
return Promise.resolve().then(function () { return require('./javascript-f5ac3a3a.js'); });
|
|
120586
120586
|
}
|
|
120587
120587
|
}
|
|
120588
120588
|
});
|
|
@@ -120600,7 +120600,7 @@ registerLanguage({
|
|
|
120600
120600
|
mimetypes: ["text/typescript"],
|
|
120601
120601
|
loader: () => {
|
|
120602
120602
|
{
|
|
120603
|
-
return Promise.resolve().then(function () { return require('./typescript-
|
|
120603
|
+
return Promise.resolve().then(function () { return require('./typescript-fc10fc52.js'); });
|
|
120604
120604
|
}
|
|
120605
120605
|
}
|
|
120606
120606
|
});
|
|
@@ -120721,7 +120721,7 @@ var lessDefaults = new LanguageServiceDefaultsImpl$3("less", optionsDefault$1, m
|
|
|
120721
120721
|
monaco_editor_core_exports$3.languages.css = { cssDefaults, lessDefaults, scssDefaults };
|
|
120722
120722
|
function getMode$3() {
|
|
120723
120723
|
{
|
|
120724
|
-
return Promise.resolve().then(function () { return require('./cssMode-
|
|
120724
|
+
return Promise.resolve().then(function () { return require('./cssMode-9a63e99f.js'); });
|
|
120725
120725
|
}
|
|
120726
120726
|
}
|
|
120727
120727
|
monaco_editor_core_exports$3.languages.onLanguage("less", () => {
|
|
@@ -120846,7 +120846,7 @@ monaco_editor_core_exports$2.languages.html = {
|
|
|
120846
120846
|
};
|
|
120847
120847
|
function getMode$2() {
|
|
120848
120848
|
{
|
|
120849
|
-
return Promise.resolve().then(function () { return require('./htmlMode-
|
|
120849
|
+
return Promise.resolve().then(function () { return require('./htmlMode-a1e1ea15.js'); });
|
|
120850
120850
|
}
|
|
120851
120851
|
}
|
|
120852
120852
|
function registerHTMLLanguageService(languageId, options = optionsDefault, modeConfiguration = getConfigurationDefault(languageId)) {
|
|
@@ -120948,7 +120948,7 @@ var jsonDefaults = new LanguageServiceDefaultsImpl$1("json", diagnosticDefault,
|
|
|
120948
120948
|
monaco_editor_core_exports$1.languages.json = { jsonDefaults };
|
|
120949
120949
|
function getMode$1() {
|
|
120950
120950
|
{
|
|
120951
|
-
return Promise.resolve().then(function () { return require('./jsonMode-
|
|
120951
|
+
return Promise.resolve().then(function () { return require('./jsonMode-0b9bb979.js'); });
|
|
120952
120952
|
}
|
|
120953
120953
|
}
|
|
120954
120954
|
monaco_editor_core_exports$1.languages.register({
|
|
@@ -121217,7 +121217,7 @@ monaco_editor_core_exports.languages.typescript = {
|
|
|
121217
121217
|
};
|
|
121218
121218
|
function getMode() {
|
|
121219
121219
|
{
|
|
121220
|
-
return Promise.resolve().then(function () { return require('./tsMode-
|
|
121220
|
+
return Promise.resolve().then(function () { return require('./tsMode-891b5e96.js'); });
|
|
121221
121221
|
}
|
|
121222
121222
|
}
|
|
121223
121223
|
monaco_editor_core_exports.languages.onLanguage("typescript", () => {
|
|
@@ -169181,7 +169181,7 @@ function filterFeatureLayerInfos(layers, queryCapability) {
|
|
|
169181
169181
|
}
|
|
169182
169182
|
//#endregion
|
|
169183
169183
|
|
|
169184
|
-
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 d(e,t=""){if(!M(e))return !1;if(e.matches(t))return setTimeout(()=>e
|
|
169184
|
+
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}}
|
|
169185
169185
|
|
|
169186
169186
|
/**
|
|
169187
169187
|
* Filters a collection of items by the given keys and filter word.
|
|
@@ -169194,7 +169194,7 @@ function filterCollection(collection, keys, filterWord, beforeFilteringFn) {
|
|
|
169194
169194
|
if (!_keys.length) {
|
|
169195
169195
|
return [];
|
|
169196
169196
|
}
|
|
169197
|
-
const filterExpression =
|
|
169197
|
+
const filterExpression = K(filterWord);
|
|
169198
169198
|
return collection.filter((item) => {
|
|
169199
169199
|
if (beforeFilteringFn) {
|
|
169200
169200
|
const res = beforeFilteringFn(item);
|
|
@@ -169202,7 +169202,7 @@ function filterCollection(collection, keys, filterWord, beforeFilteringFn) {
|
|
|
169202
169202
|
return res;
|
|
169203
169203
|
}
|
|
169204
169204
|
}
|
|
169205
|
-
return _keys.some((key) => filterExpression.test(
|
|
169205
|
+
return _keys.some((key) => filterExpression.test(String(item[key] ?? "")));
|
|
169206
169206
|
});
|
|
169207
169207
|
}
|
|
169208
169208
|
/**
|
|
@@ -169532,9 +169532,9 @@ class ProfileItemBase {
|
|
|
169532
169532
|
// If the component is under RTL, the string is messed up.
|
|
169533
169533
|
// It is converted from $feature to feature$, This is not acceptable since the label
|
|
169534
169534
|
// represents a variable name. We are adding in front of the $ sign a right to left mark.
|
|
169535
|
-
return
|
|
169535
|
+
return G(this._label);
|
|
169536
169536
|
}
|
|
169537
|
-
return
|
|
169537
|
+
return Z(this._profile?.intlStrings[this._label.code], this._label.formatValues);
|
|
169538
169538
|
}
|
|
169539
169539
|
/**
|
|
169540
169540
|
* Returns the description string.
|
|
@@ -169546,7 +169546,7 @@ class ProfileItemBase {
|
|
|
169546
169546
|
if (typeof this.description === "string") {
|
|
169547
169547
|
return this.description;
|
|
169548
169548
|
}
|
|
169549
|
-
return
|
|
169549
|
+
return Z(this._profile?.intlStrings[this.description.code], this.description.formatValues);
|
|
169550
169550
|
}
|
|
169551
169551
|
/**
|
|
169552
169552
|
* Returns true if the item pass the filter test
|
|
@@ -169787,7 +169787,7 @@ class SourceBasedVariable extends CollectionBasedVariable {
|
|
|
169787
169787
|
return this._profile?.intlStrings.layer ?? "layer";
|
|
169788
169788
|
}
|
|
169789
169789
|
async loadSource() {
|
|
169790
|
-
if (
|
|
169790
|
+
if (ee(this._loadPromise) && te(this._loadPromise)) {
|
|
169791
169791
|
return await this._loadPromise;
|
|
169792
169792
|
}
|
|
169793
169793
|
this._loadPromise = this._loadSource();
|
|
@@ -170055,7 +170055,7 @@ class SourceBasedVariable extends CollectionBasedVariable {
|
|
|
170055
170055
|
nonInteractive: true
|
|
170056
170056
|
}, [new ValueVariable({ profile: this._profile, label: snippet, description: "", snippet })], { exposeRelationships: true, sourceTableId: source.layerId });
|
|
170057
170057
|
}));
|
|
170058
|
-
relationshipsGroup.variables = relationshipItems.filter(
|
|
170058
|
+
relationshipsGroup.variables = relationshipItems.filter(ee);
|
|
170059
170059
|
if (!relationshipsGroup.variables.length) {
|
|
170060
170060
|
return null;
|
|
170061
170061
|
}
|
|
@@ -170213,7 +170213,7 @@ class FeatureSetCollectionVariable extends CollectionBasedVariable {
|
|
|
170213
170213
|
return this._profile?.intlStrings.featureservice ?? "featureservice";
|
|
170214
170214
|
}
|
|
170215
170215
|
async loadSource() {
|
|
170216
|
-
if (
|
|
170216
|
+
if (ee(this._loadPromise) && te(this._loadPromise)) {
|
|
170217
170217
|
return await this._loadPromise;
|
|
170218
170218
|
}
|
|
170219
170219
|
this._loadPromise = this._loadSource();
|
|
@@ -170629,7 +170629,7 @@ class ArcadeLanguageServiceDefaults {
|
|
|
170629
170629
|
if (isPredefinedProfile(definition)) {
|
|
170630
170630
|
definition = await convertToEditorProfileDefinition(definition, apiContext.locale);
|
|
170631
170631
|
}
|
|
170632
|
-
const intlStrings = await
|
|
170632
|
+
const intlStrings = await v(apiContext.locale, index.getAssetPath("./assets/arcade-language/t9n"), "profile.t9n.");
|
|
170633
170633
|
if (!intlStrings) {
|
|
170634
170634
|
throw new Error(`Failed to load the language bundle for ${apiContext.locale}`);
|
|
170635
170635
|
}
|
|
@@ -170714,17 +170714,16 @@ const arcade = {
|
|
|
170714
170714
|
exports.B = B;
|
|
170715
170715
|
exports.D = D;
|
|
170716
170716
|
exports.Emitter = Emitter;
|
|
170717
|
-
exports.
|
|
170718
|
-
exports.H = H;
|
|
170717
|
+
exports.G = G;
|
|
170719
170718
|
exports.IStandaloneThemeService = IStandaloneThemeService;
|
|
170720
170719
|
exports.K = K;
|
|
170721
170720
|
exports.KeyCode = KeyCode;
|
|
170722
170721
|
exports.KeyMod = KeyMod;
|
|
170723
170722
|
exports.MarkerSeverity = MarkerSeverity;
|
|
170724
|
-
exports.Q = Q;
|
|
170725
170723
|
exports.Range = Range;
|
|
170726
170724
|
exports.U = U;
|
|
170727
170725
|
exports.Uri = Uri;
|
|
170726
|
+
exports.W = W;
|
|
170728
170727
|
exports.Z = Z;
|
|
170729
170728
|
exports.arcade = arcade;
|
|
170730
170729
|
exports.arcadeDefaults = arcadeDefaults;
|
|
@@ -170734,13 +170733,15 @@ exports.editor = editor;
|
|
|
170734
170733
|
exports.filterCollection = filterCollection;
|
|
170735
170734
|
exports.generateTokensCSSForColorMap = generateTokensCSSForColorMap;
|
|
170736
170735
|
exports.h = h;
|
|
170736
|
+
exports.ie = ie;
|
|
170737
170737
|
exports.importArcade = importArcade;
|
|
170738
170738
|
exports.importRequest = importRequest;
|
|
170739
170739
|
exports.k = k;
|
|
170740
170740
|
exports.languages = languages;
|
|
170741
170741
|
exports.main = main;
|
|
170742
170742
|
exports.monaco_editor_core_star = monaco_editor_core_star;
|
|
170743
|
-
exports.
|
|
170743
|
+
exports.q = q;
|
|
170744
|
+
exports.re = re;
|
|
170744
170745
|
exports.se = se;
|
|
170745
170746
|
exports.supportedFields = supportedFields;
|
|
170746
170747
|
exports.typescriptDefaults = typescriptDefaults;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.29/esri/copyright.txt for details.
|
|
4
|
-
* v4.29.0-beta.
|
|
4
|
+
* v4.29.0-beta.114
|
|
5
5
|
*/
|
|
6
6
|
'use strict';
|
|
7
7
|
|
|
8
|
-
const arcadeDefaults = require('./arcade-defaults-
|
|
9
|
-
require('./index-
|
|
8
|
+
const arcadeDefaults = require('./arcade-defaults-8ddd7bac.js');
|
|
9
|
+
require('./index-f1ec1eca.js');
|
|
10
10
|
|
|
11
11
|
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:arcadeDefaults.main.CompletionItemKind.Constant}));ht.map(t=>({label:t,kind:arcadeDefaults.main.CompletionItemKind.Keyword}));
|
|
12
12
|
|
|
@@ -232,16 +232,13 @@ class DiagnosticsAdapter {
|
|
|
232
232
|
if (languageId !== this._languageId) {
|
|
233
233
|
return;
|
|
234
234
|
}
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
}, 500);
|
|
243
|
-
}));
|
|
244
|
-
this._doValidate(model, languageId);
|
|
235
|
+
const debouncedValidate = arcadeDefaults.re(() => {
|
|
236
|
+
this._doValidate(model, languageId).catch((err) => {
|
|
237
|
+
throw err;
|
|
238
|
+
});
|
|
239
|
+
});
|
|
240
|
+
this._listener.set(model.uri.toString(), model.onDidChangeContent(debouncedValidate));
|
|
241
|
+
this._doValidate(model, languageId).catch(console.error);
|
|
245
242
|
};
|
|
246
243
|
const onModelRemoved = (model) => {
|
|
247
244
|
const uriStr = model.uri.toString();
|
|
@@ -271,7 +268,7 @@ class DiagnosticsAdapter {
|
|
|
271
268
|
this._disposables.push(defaults.onModelContextDidChange((key) => {
|
|
272
269
|
arcadeDefaults.editor.getModels().forEach((model) => {
|
|
273
270
|
if (model.getLanguageId() === this._languageId && model.uri.toString() === key) {
|
|
274
|
-
this._doValidate(model, this._languageId);
|
|
271
|
+
this._doValidate(model, this._languageId).catch(console.error);
|
|
275
272
|
}
|
|
276
273
|
});
|
|
277
274
|
}));
|