@arcgis/coding-components 4.29.0-beta.106 → 4.29.0-beta.108

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 (74) 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-4a303362.js → p-02ccc496.js} +2 -2
  4. package/dist/arcgis-coding-components/{p-feace5dd.js → p-0da6eb96.js} +1 -1
  5. package/dist/arcgis-coding-components/{p-4b27350e.js → p-4ae25593.js} +2 -2
  6. package/dist/arcgis-coding-components/{p-50b6a7b0.js → p-630ccf17.js} +10 -10
  7. package/dist/arcgis-coding-components/{p-243ebec0.js → p-664bca0c.js} +2 -2
  8. package/dist/arcgis-coding-components/{p-6ef051be.js → p-930f8ade.js} +3 -3
  9. package/dist/arcgis-coding-components/p-c06a8ded.entry.js +6 -0
  10. package/dist/arcgis-coding-components/{p-49edfded.js → p-c1993cad.js} +2 -2
  11. package/dist/arcgis-coding-components/{p-563852d4.js → p-c72266dd.js} +2 -2
  12. package/dist/arcgis-coding-components/{p-b2cf4413.js → p-cf01c224.js} +2 -2
  13. package/dist/arcgis-coding-components/{p-3a99e42d.js → p-cffb1101.js} +2 -2
  14. package/dist/arcgis-coding-components/{p-39e15385.js → p-e3c317aa.js} +1 -1
  15. package/dist/cjs/{arcade-defaults-646624d2.js → arcade-defaults-c23503e3.js} +214 -186
  16. package/dist/cjs/{arcade-mode-1a1ca08b.js → arcade-mode-fe4cdb2f.js} +3 -3
  17. package/dist/cjs/arcgis-arcade-api_6.cjs.entry.js +23 -20
  18. package/dist/cjs/arcgis-coding-components.cjs.js +2 -2
  19. package/dist/cjs/{css-b47bf04d.js → css-5f31bd3e.js} +1 -1
  20. package/dist/cjs/{cssMode-619368e7.js → cssMode-ff492b59.js} +3 -3
  21. package/dist/cjs/{html-eb9548ca.js → html-1c2bd19b.js} +3 -3
  22. package/dist/cjs/{htmlMode-78a30987.js → htmlMode-c41a13a0.js} +3 -3
  23. package/dist/cjs/{index-8ffe572c.js → index-5b78b967.js} +1 -1
  24. package/dist/cjs/index.cjs.js +3 -3
  25. package/dist/cjs/{javascript-8ccb9efd.js → javascript-df448d9d.js} +4 -4
  26. package/dist/cjs/{jsonMode-c1011baf.js → jsonMode-84bbbd5c.js} +3 -3
  27. package/dist/cjs/loader.cjs.js +2 -2
  28. package/dist/cjs/{tsMode-50f29f5b.js → tsMode-2a17886d.js} +3 -3
  29. package/dist/cjs/{typescript-28048dfb.js → typescript-8bd442e6.js} +3 -3
  30. package/dist/components/arcade-api.js +1 -1
  31. package/dist/components/arcade-contribution.js +2 -2
  32. package/dist/components/arcade-defaults.js +165 -145
  33. package/dist/components/arcade-mode.js +1 -1
  34. package/dist/components/arcade-results.js +2 -2
  35. package/dist/components/arcade-suggestions.js +1 -1
  36. package/dist/components/arcade-variables.js +19 -16
  37. package/dist/components/arcgis-arcade-api.js +1 -1
  38. package/dist/components/arcgis-arcade-editor.js +1 -1
  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 +10 -2
  45. package/dist/components/functional-components.js +1 -1
  46. package/dist/components/index.js +1 -1
  47. package/dist/components/index2.js +1 -1
  48. package/dist/components/markdown.js +1 -1
  49. package/dist/components/utilities.js +1 -1
  50. package/dist/esm/{arcade-defaults-9580166e.js → arcade-defaults-76893f90.js} +214 -186
  51. package/dist/esm/{arcade-mode-30ce5e7d.js → arcade-mode-184b9a72.js} +3 -3
  52. package/dist/esm/arcgis-arcade-api_6.entry.js +23 -20
  53. package/dist/esm/arcgis-coding-components.js +3 -3
  54. package/dist/esm/{css-96f30c46.js → css-df075703.js} +1 -1
  55. package/dist/esm/{cssMode-405cf05c.js → cssMode-29792b94.js} +3 -3
  56. package/dist/esm/{html-dbe2e22c.js → html-8af94c18.js} +3 -3
  57. package/dist/esm/{htmlMode-314f2362.js → htmlMode-9b0c0d01.js} +3 -3
  58. package/dist/esm/{index-ad0aa031.js → index-e24c1311.js} +1 -1
  59. package/dist/esm/index.js +3 -3
  60. package/dist/esm/{javascript-7abc2fbd.js → javascript-405fba1f.js} +4 -4
  61. package/dist/esm/{jsonMode-38e2687b.js → jsonMode-8e88248b.js} +3 -3
  62. package/dist/esm/loader.js +3 -3
  63. package/dist/esm/{tsMode-3249efaa.js → tsMode-dd509037.js} +3 -3
  64. package/dist/esm/{typescript-05c0fa91.js → typescript-affc39d2.js} +3 -3
  65. package/dist/loader/cdn.js +1 -1
  66. package/dist/loader/index.cjs.js +1 -1
  67. package/dist/loader/index.es2017.js +1 -1
  68. package/dist/loader/index.js +1 -1
  69. package/dist/types/components/arcade-variables/arcade-variables.d.ts +0 -1
  70. package/dist/types/utils/profile/editor-profile.d.ts +47 -62
  71. package/dist/types/utils/profile/types.d.ts +122 -1
  72. package/dist/types/utils/profile/utils.d.ts +22 -9
  73. package/package.json +8 -8
  74. package/dist/arcgis-coding-components/p-766b1b43.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.0-beta.106
4
+ * v4.29.0-beta.108
5
5
  */
6
6
  import { A as ArcgisArcadeResults$1, d as defineCustomElement$1 } from './arcade-results.js';
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.0-beta.106
4
+ * v4.29.0-beta.108
5
5
  */
6
6
  import { A as ArcgisArcadeSuggestions$1, d as defineCustomElement$1 } from './arcade-suggestions.js';
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.0-beta.106
4
+ * v4.29.0-beta.108
5
5
  */
6
6
  import { A as ArcgisArcadeVariables$1, d as defineCustomElement$1 } from './arcade-variables.js';
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.0-beta.106
4
+ * v4.29.0-beta.108
5
5
  */
6
6
  import { A as ArcgisCodeEditor$1, d as defineCustomElement$1 } from './code-editor.js';
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.0-beta.106
4
+ * v4.29.0-beta.108
5
5
  */
6
6
  import { proxyCustomElement, HTMLElement, createEvent, getAssetPath, h as h$1, Host } from '@stencil/core/internal/client';
7
7
  import { Range, editor, Uri, KeyMod, KeyCode } from 'monaco-editor';
@@ -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.0-beta.106
4
+ * v4.29.0-beta.108
5
5
  */
6
6
  const amd = "define" in window && typeof window.define === "function" && "amd" in window.define;
7
7
  function requireModule(modulePath) {
@@ -23,6 +23,10 @@ async function importPortalPortalItem() {
23
23
  const module = await import('@arcgis/core/portal/PortalItem.js');
24
24
  return module.default;
25
25
  }
26
+ async function newPortalPortalItem(properties) {
27
+ const ModConstructor = await importPortalPortalItem();
28
+ return new ModConstructor(properties);
29
+ }
26
30
  async function importWebMap() {
27
31
  if (amd) {
28
32
  return requireModule("esri/WebMap");
@@ -30,6 +34,10 @@ async function importWebMap() {
30
34
  const module = await import('@arcgis/core/WebMap.js');
31
35
  return module.default;
32
36
  }
37
+ async function newWebMap(properties) {
38
+ const ModConstructor = await importWebMap();
39
+ return new ModConstructor(properties);
40
+ }
33
41
  async function importWebScene() {
34
42
  if (amd) {
35
43
  return requireModule("esri/WebScene");
@@ -138,4 +146,4 @@ function supportedFields(fields) {
138
146
  });
139
147
  }
140
148
 
141
- export { importLayersFeatureLayer as a, importWebMap as b, importRequest as c, fieldTypeToArcadeType as d, importArcade as e, fieldTypeToIconName as f, importPortalPortalItem as i, newWebScene as n, supportedFields as s };
149
+ export { importRequest as a, newWebScene as b, newWebMap as c, fieldTypeToArcadeType as d, importArcade as e, fieldTypeToIconName as f, importLayersFeatureLayer as i, newPortalPortalItem as n, supportedFields as s };
@@ -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.0-beta.106
4
+ * v4.29.0-beta.108
5
5
  */
6
6
  import { h } from '@stencil/core/internal/client';
7
7
  import '@esri/calcite-components/dist/components/calcite-input.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.0-beta.106
4
+ * v4.29.0-beta.108
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.0-beta.106
4
+ * v4.29.0-beta.108
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 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}}
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.0-beta.106
4
+ * v4.29.0-beta.108
5
5
  */
6
6
  import { editor } from 'monaco-editor';
7
7
  import { StandaloneServices } from 'monaco-editor/esm/vs/editor/standalone/browser/standaloneServices.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.0-beta.106
4
+ * v4.29.0-beta.108
5
5
  */
6
6
  import { D } from './index2.js';
7
7