@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.
Files changed (76) hide show
  1. package/dist/arcgis-coding-components/arcgis-coding-components.esm.js +2 -2
  2. package/dist/arcgis-coding-components/index.esm.js +2 -2
  3. package/dist/arcgis-coding-components/{p-4088f191.js → p-104faef1.js} +1 -1
  4. package/dist/arcgis-coding-components/{p-1d1df020.js → p-11260ad2.js} +2 -2
  5. package/dist/arcgis-coding-components/{p-ed0acf1d.js → p-250c4b22.js} +2 -2
  6. package/dist/arcgis-coding-components/{p-8fa7b6b3.js → p-48890e35.js} +2 -2
  7. package/dist/arcgis-coding-components/{p-b7f6269a.js → p-784e3f96.js} +2 -2
  8. package/dist/arcgis-coding-components/p-7d2dfc64.entry.js +6 -0
  9. package/dist/arcgis-coding-components/{p-b2b27bbe.js → p-85155f58.js} +2 -2
  10. package/dist/arcgis-coding-components/{p-4b7291cc.js → p-b2b0c44f.js} +1 -1
  11. package/dist/arcgis-coding-components/p-b500b786.js +6 -0
  12. package/dist/arcgis-coding-components/{p-e4fb8f11.js → p-c0c4fb2f.js} +11 -11
  13. package/dist/arcgis-coding-components/{p-e1eaafa9.js → p-da1cdcf4.js} +2 -2
  14. package/dist/arcgis-coding-components/{p-e530878b.js → p-de2d19d6.js} +2 -2
  15. package/dist/cjs/{arcade-defaults-4a549303.js → arcade-defaults-8ddd7bac.js} +25 -24
  16. package/dist/cjs/{arcade-mode-6c189663.js → arcade-mode-2524f6e6.js} +11 -14
  17. package/dist/cjs/arcgis-arcade-api_6.cjs.entry.js +100 -135
  18. package/dist/cjs/arcgis-coding-components.cjs.js +2 -2
  19. package/dist/cjs/{css-6f7dcd5a.js → css-b7198c84.js} +1 -1
  20. package/dist/cjs/{cssMode-245d6467.js → cssMode-9a63e99f.js} +3 -3
  21. package/dist/cjs/{html-2774c64f.js → html-015e78d7.js} +3 -3
  22. package/dist/cjs/{htmlMode-0606c7e3.js → htmlMode-a1e1ea15.js} +3 -3
  23. package/dist/cjs/{index-b518646d.js → index-f1ec1eca.js} +1 -1
  24. package/dist/cjs/index.cjs.js +3 -3
  25. package/dist/cjs/{javascript-6b11fc9d.js → javascript-f5ac3a3a.js} +4 -4
  26. package/dist/cjs/{jsonMode-11883f07.js → jsonMode-0b9bb979.js} +3 -3
  27. package/dist/cjs/loader.cjs.js +2 -2
  28. package/dist/cjs/{tsMode-4de8b5c1.js → tsMode-891b5e96.js} +3 -3
  29. package/dist/cjs/{typescript-96d879a2.js → typescript-fc10fc52.js} +3 -3
  30. package/dist/components/arcade-api.js +20 -18
  31. package/dist/components/arcade-contribution.js +8 -7
  32. package/dist/components/arcade-defaults.js +9 -9
  33. package/dist/components/arcade-mode.js +10 -12
  34. package/dist/components/arcade-results.js +27 -81
  35. package/dist/components/arcade-suggestions.js +15 -12
  36. package/dist/components/arcade-variables.js +16 -10
  37. package/dist/components/arcgis-arcade-api.js +1 -1
  38. package/dist/components/arcgis-arcade-editor.js +16 -12
  39. package/dist/components/arcgis-arcade-results.js +1 -1
  40. package/dist/components/arcgis-arcade-suggestions.js +1 -1
  41. package/dist/components/arcgis-arcade-variables.js +1 -1
  42. package/dist/components/arcgis-code-editor.js +1 -1
  43. package/dist/components/code-editor.js +1 -1
  44. package/dist/components/fields.js +1 -1
  45. package/dist/components/index.js +1 -1
  46. package/dist/components/index2.js +3 -3
  47. package/dist/components/markdown.js +10 -1
  48. package/dist/components/utilities.js +4 -4
  49. package/dist/esm/{arcade-defaults-1e50716f.js → arcade-defaults-f71d29a1.js} +21 -21
  50. package/dist/esm/{arcade-mode-95cf5178.js → arcade-mode-4a6bbc9f.js} +11 -14
  51. package/dist/esm/arcgis-arcade-api_6.entry.js +100 -135
  52. package/dist/esm/arcgis-coding-components.js +3 -3
  53. package/dist/esm/{css-e2349c2b.js → css-8fb92af1.js} +1 -1
  54. package/dist/esm/{cssMode-3fae4ab5.js → cssMode-7637a9c8.js} +3 -3
  55. package/dist/esm/{html-961458b7.js → html-0766032d.js} +3 -3
  56. package/dist/esm/{htmlMode-33dab68c.js → htmlMode-5caa8195.js} +3 -3
  57. package/dist/esm/{index-751e780b.js → index-b43ed451.js} +1 -1
  58. package/dist/esm/index.js +3 -3
  59. package/dist/esm/{javascript-996fdadb.js → javascript-561d79ed.js} +4 -4
  60. package/dist/esm/{jsonMode-d3634539.js → jsonMode-2e7d35c7.js} +3 -3
  61. package/dist/esm/loader.js +3 -3
  62. package/dist/esm/{tsMode-e2bb6f87.js → tsMode-d3aced71.js} +3 -3
  63. package/dist/esm/{typescript-e9a34331.js → typescript-6be08b04.js} +3 -3
  64. package/dist/loader/cdn.js +1 -1
  65. package/dist/loader/index.cjs.js +1 -1
  66. package/dist/loader/index.es2017.js +1 -1
  67. package/dist/loader/index.js +1 -1
  68. package/dist/types/utils/arcade-monaco/arcade-contribution.d.ts +2 -2
  69. package/dist/types/utils/constants.d.ts +2 -2
  70. package/dist/types/utils/markdown.d.ts +3 -0
  71. package/package.json +8 -8
  72. package/dist/arcgis-coding-components/p-6c13dba0.entry.js +0 -6
  73. package/dist/arcgis-coding-components/p-d80df481.js +0 -6
  74. package/dist/components/functional-components.js +0 -15
  75. package/dist/types/utils/functional-components.d.ts +0 -7
  76. 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.113
4
+ * v4.29.0-beta.114
5
5
  */
6
- import { D } from './index2.js';
6
+ import { K } from './index2.js';
7
7
 
8
8
  /**
9
9
  * Filters a collection of items by the given keys and filter word.
@@ -16,7 +16,7 @@ function filterCollection(collection, keys, filterWord, beforeFilteringFn) {
16
16
  if (!_keys.length) {
17
17
  return [];
18
18
  }
19
- const filterExpression = D(filterWord);
19
+ const filterExpression = K(filterWord);
20
20
  return collection.filter((item) => {
21
21
  if (beforeFilteringFn) {
22
22
  const res = beforeFilteringFn(item);
@@ -24,7 +24,7 @@ function filterCollection(collection, keys, filterWord, beforeFilteringFn) {
24
24
  return res;
25
25
  }
26
26
  }
27
- return _keys.some((key) => filterExpression.test(`${item[key] ?? ""}`));
27
+ return _keys.some((key) => filterExpression.test(String(item[key] ?? "")));
28
28
  });
29
29
  }
30
30
  /**
@@ -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.113
4
+ * v4.29.0-beta.114
5
5
  */
6
- import { g as getAssetPath } from './index-751e780b.js';
6
+ import { g as getAssetPath } from './index-b43ed451.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-e2349c2b.js');
120525
+ return import('./css-8fb92af1.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-961458b7.js');
120543
+ return import('./html-0766032d.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-996fdadb.js');
120563
+ return import('./javascript-561d79ed.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-e9a34331.js');
120581
+ return import('./typescript-6be08b04.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-3fae4ab5.js');
120702
+ return import('./cssMode-7637a9c8.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-33dab68c.js');
120827
+ return import('./htmlMode-5caa8195.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-d3634539.js');
120929
+ return import('./jsonMode-2e7d35c7.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-e2bb6f87.js');
121198
+ return import('./tsMode-d3aced71.js');
121199
121199
  }
121200
121200
  }
121201
121201
  monaco_editor_core_exports.languages.onLanguage("typescript", () => {
@@ -169159,7 +169159,7 @@ function filterFeatureLayerInfos(layers, queryCapability) {
169159
169159
  }
169160
169160
  //#endregion
169161
169161
 
169162
- 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?.setFocus(),0),!0;for(let r=0;r<e.children.length;r++)if(d(e.children[r],t))return !0;let n=e.shadowRoot;if(n){for(let r=0;r<n.children.length;r++)if(d(n.children[r],t))return !0}return !1}function F(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 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 i=await o.json();return a.set(r,i),i}if(e==="en"){a.set(r,void 0);return}let s=await N("en",t,n);return a.set(r,s),s}catch{a.set(r,void 0);return}}function R(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);})),await b(e,n);}function H(e){p.get(e)?.disconnect(),p.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=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 N(r,l,u);}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 Q(e){let t=v,n=w;e.includes(t)&&!e.includes(n)&&(n=v,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 D(e){let t=e?e.replaceAll(/[-[\]/{}()*+?.\\^$|]/gu,"\\$&"):"^.*$";return new RegExp(t,"i")}function K(e,t={}){return (e??"").replace(/\{(.*?)\}/gu,(n,r)=>t[r]??n)}function Z(e){return `\u200E${e??""}\u200E`}function Y(e){return e!==null}function ee(e){return e!==void 0}function oe(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 se(e){try{return new URL(e),!0}catch{return !1}}
169162
+ 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}}
169163
169163
 
169164
169164
  /**
169165
169165
  * Filters a collection of items by the given keys and filter word.
@@ -169172,7 +169172,7 @@ function filterCollection(collection, keys, filterWord, beforeFilteringFn) {
169172
169172
  if (!_keys.length) {
169173
169173
  return [];
169174
169174
  }
169175
- const filterExpression = D(filterWord);
169175
+ const filterExpression = K(filterWord);
169176
169176
  return collection.filter((item) => {
169177
169177
  if (beforeFilteringFn) {
169178
169178
  const res = beforeFilteringFn(item);
@@ -169180,7 +169180,7 @@ function filterCollection(collection, keys, filterWord, beforeFilteringFn) {
169180
169180
  return res;
169181
169181
  }
169182
169182
  }
169183
- return _keys.some((key) => filterExpression.test(`${item[key] ?? ""}`));
169183
+ return _keys.some((key) => filterExpression.test(String(item[key] ?? "")));
169184
169184
  });
169185
169185
  }
169186
169186
  /**
@@ -169510,9 +169510,9 @@ class ProfileItemBase {
169510
169510
  // If the component is under RTL, the string is messed up.
169511
169511
  // It is converted from $feature to feature$, This is not acceptable since the label
169512
169512
  // represents a variable name. We are adding in front of the $ sign a right to left mark.
169513
- return Z(this._label);
169513
+ return G(this._label);
169514
169514
  }
169515
- return K(this._profile?.intlStrings[this._label.code], this._label.formatValues);
169515
+ return Z(this._profile?.intlStrings[this._label.code], this._label.formatValues);
169516
169516
  }
169517
169517
  /**
169518
169518
  * Returns the description string.
@@ -169524,7 +169524,7 @@ class ProfileItemBase {
169524
169524
  if (typeof this.description === "string") {
169525
169525
  return this.description;
169526
169526
  }
169527
- return K(this._profile?.intlStrings[this.description.code], this.description.formatValues);
169527
+ return Z(this._profile?.intlStrings[this.description.code], this.description.formatValues);
169528
169528
  }
169529
169529
  /**
169530
169530
  * Returns true if the item pass the filter test
@@ -169765,7 +169765,7 @@ class SourceBasedVariable extends CollectionBasedVariable {
169765
169765
  return this._profile?.intlStrings.layer ?? "layer";
169766
169766
  }
169767
169767
  async loadSource() {
169768
- if (Y(this._loadPromise) && ee(this._loadPromise)) {
169768
+ if (ee(this._loadPromise) && te(this._loadPromise)) {
169769
169769
  return await this._loadPromise;
169770
169770
  }
169771
169771
  this._loadPromise = this._loadSource();
@@ -170033,7 +170033,7 @@ class SourceBasedVariable extends CollectionBasedVariable {
170033
170033
  nonInteractive: true
170034
170034
  }, [new ValueVariable({ profile: this._profile, label: snippet, description: "", snippet })], { exposeRelationships: true, sourceTableId: source.layerId });
170035
170035
  }));
170036
- relationshipsGroup.variables = relationshipItems.filter(Y);
170036
+ relationshipsGroup.variables = relationshipItems.filter(ee);
170037
170037
  if (!relationshipsGroup.variables.length) {
170038
170038
  return null;
170039
170039
  }
@@ -170191,7 +170191,7 @@ class FeatureSetCollectionVariable extends CollectionBasedVariable {
170191
170191
  return this._profile?.intlStrings.featureservice ?? "featureservice";
170192
170192
  }
170193
170193
  async loadSource() {
170194
- if (Y(this._loadPromise) && ee(this._loadPromise)) {
170194
+ if (ee(this._loadPromise) && te(this._loadPromise)) {
170195
170195
  return await this._loadPromise;
170196
170196
  }
170197
170197
  this._loadPromise = this._loadSource();
@@ -170607,7 +170607,7 @@ class ArcadeLanguageServiceDefaults {
170607
170607
  if (isPredefinedProfile(definition)) {
170608
170608
  definition = await convertToEditorProfileDefinition(definition, apiContext.locale);
170609
170609
  }
170610
- const intlStrings = await N(apiContext.locale, getAssetPath("./assets/arcade-language/t9n"), "profile.t9n.");
170610
+ const intlStrings = await v(apiContext.locale, getAssetPath("./assets/arcade-language/t9n"), "profile.t9n.");
170611
170611
  if (!intlStrings) {
170612
170612
  throw new Error(`Failed to load the language bundle for ${apiContext.locale}`);
170613
170613
  }
@@ -170689,4 +170689,4 @@ const arcade = {
170689
170689
  setProfileForModel: arcadeDefaults.setProfileForModel.bind(arcadeDefaults)
170690
170690
  };
170691
170691
 
170692
- export { B, D, Emitter as E, F, H, IStandaloneThemeService as I, KeyCode as K, MarkerSeverity as M, Q, Range as R, StandaloneServices as S, Uri as U, Z, 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, U as k, languages as l, k as m, K as n, oe as o, supportedFields as p, KeyMod as q, monaco_editor_core_star as r, se as s, typescriptDefaults as t, main as u, x };
170692
+ export { B, D, Emitter as E, G, IStandaloneThemeService as I, KeyCode as K, MarkerSeverity as M, Range as R, StandaloneServices as S, Uri as U, W, Z, arcade as a, commonjsGlobal as b, createCommonjsModule as c, importRequest as d, editor as e, arcadeDefaults as f, generateTokensCSSForColorMap as g, filterCollection as h, ie as i, importArcade as j, h as k, languages as l, U as m, k as n, supportedFields as o, K as p, q, KeyMod as r, se as s, monaco_editor_core_star as t, typescriptDefaults as u, main as v, re as w, x };
@@ -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.0-beta.113
4
+ * v4.29.0-beta.114
5
5
  */
6
- import { u as main, e as editor, M as MarkerSeverity, R as Range, l as languages, E as Emitter } from './arcade-defaults-1e50716f.js';
7
- import './index-751e780b.js';
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-f71d29a1.js';
7
+ import './index-b43ed451.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
 
@@ -230,16 +230,13 @@ class DiagnosticsAdapter {
230
230
  if (languageId !== this._languageId) {
231
231
  return;
232
232
  }
233
- let handle;
234
- this._listener.set(model.uri.toString(), model.onDidChangeContent(() => {
235
- window.clearTimeout(handle);
236
- handle = window.setTimeout(() => {
237
- this._doValidate(model, languageId).catch((err) => {
238
- throw err;
239
- });
240
- }, 500);
241
- }));
242
- this._doValidate(model, languageId);
233
+ const debouncedValidate = re(() => {
234
+ this._doValidate(model, languageId).catch((err) => {
235
+ throw err;
236
+ });
237
+ });
238
+ this._listener.set(model.uri.toString(), model.onDidChangeContent(debouncedValidate));
239
+ this._doValidate(model, languageId).catch(console.error);
243
240
  };
244
241
  const onModelRemoved = (model) => {
245
242
  const uriStr = model.uri.toString();
@@ -269,7 +266,7 @@ class DiagnosticsAdapter {
269
266
  this._disposables.push(defaults.onModelContextDidChange((key) => {
270
267
  editor.getModels().forEach((model) => {
271
268
  if (model.getLanguageId() === this._languageId && model.uri.toString() === key) {
272
- this._doValidate(model, this._languageId);
269
+ this._doValidate(model, this._languageId).catch(console.error);
273
270
  }
274
271
  });
275
272
  }));