@arcgis/coding-components 4.30.0-next.1 → 4.30.0-next.2
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/assets/arcade-language/t9n/profile.t9n.en.json +2 -0
- package/dist/arcgis-coding-components/index.esm.js +2 -2
- package/dist/arcgis-coding-components/{p-26cb350b.js → p-1f472679.js} +2 -2
- package/dist/arcgis-coding-components/{p-9556a8c6.js → p-1f933dba.js} +2 -2
- package/dist/arcgis-coding-components/{p-68bd0d31.js → p-30100e82.js} +1 -1
- package/dist/arcgis-coding-components/{p-bad6d07f.js → p-30e98420.js} +10 -10
- package/dist/arcgis-coding-components/{p-5050b8e6.js → p-758218e2.js} +2 -2
- package/dist/arcgis-coding-components/{p-0ecfaaf8.js → p-8c6bf361.js} +2 -2
- package/dist/arcgis-coding-components/{p-3162633c.js → p-b22a71b8.js} +1 -1
- package/dist/arcgis-coding-components/{p-4aab897b.js → p-c4b91917.js} +3 -3
- package/dist/arcgis-coding-components/{p-c5c082c2.js → p-e55a59ff.js} +3 -3
- package/dist/arcgis-coding-components/p-f0b811ba.entry.js +6 -0
- package/dist/arcgis-coding-components/{p-2c66cecd.js → p-f3068c90.js} +2 -2
- package/dist/arcgis-coding-components/{p-01d806ab.js → p-fdf8d908.js} +2 -2
- package/dist/cjs/{arcade-defaults-337189cc.js → arcade-defaults-eb3968a5.js} +42 -17
- package/dist/cjs/{arcade-mode-3b9ec201.js → arcade-mode-5275cbeb.js} +3 -3
- package/dist/cjs/arcgis-arcade-api_6.cjs.entry.js +15 -22
- package/dist/cjs/arcgis-coding-components.cjs.js +2 -2
- package/dist/cjs/{css-9d93d685.js → css-bbfdb831.js} +1 -1
- package/dist/cjs/{cssMode-cf97e01f.js → cssMode-f296c8f9.js} +3 -3
- package/dist/cjs/{html-9bbb2b9f.js → html-bc3c7f14.js} +3 -3
- package/dist/cjs/{htmlMode-29fbfd01.js → htmlMode-651ef412.js} +3 -3
- package/dist/cjs/{index-b66d3898.js → index-d28fe547.js} +1 -1
- package/dist/cjs/index.cjs.js +3 -3
- package/dist/cjs/{javascript-ea7308ab.js → javascript-a30f18a4.js} +4 -4
- package/dist/cjs/{jsonMode-25c548e6.js → jsonMode-6861e18a.js} +3 -3
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{tsMode-c54b0496.js → tsMode-8b347861.js} +3 -3
- package/dist/cjs/{typescript-89d35abd.js → typescript-44b2647a.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 +33 -8
- 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 +6 -13
- 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-assets.js +2 -2
- package/dist/components/arcgis-code-editor.js +1 -1
- package/dist/components/code-editor.js +7 -7
- 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-80ab7068.js → arcade-defaults-631dc093.js} +42 -17
- package/dist/esm/{arcade-mode-145e7a14.js → arcade-mode-43856469.js} +3 -3
- package/dist/esm/arcgis-arcade-api_6.entry.js +15 -22
- package/dist/esm/arcgis-coding-components.js +3 -3
- package/dist/esm/{css-d2e6a792.js → css-6b2305f7.js} +1 -1
- package/dist/esm/{cssMode-6d9545da.js → cssMode-4a41975b.js} +3 -3
- package/dist/esm/{html-0af5dfb9.js → html-b3b2f1bc.js} +3 -3
- package/dist/esm/{htmlMode-7006edc4.js → htmlMode-cedfb87b.js} +3 -3
- package/dist/esm/{index-a2b632a0.js → index-84f054b0.js} +1 -1
- package/dist/esm/index.js +3 -3
- package/dist/esm/{javascript-89b3eeb2.js → javascript-2482aacb.js} +4 -4
- package/dist/esm/{jsonMode-a3501a18.js → jsonMode-8afe11aa.js} +3 -3
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{tsMode-29dad6cb.js → tsMode-f4368447.js} +3 -3
- package/dist/esm/{typescript-6f3a39e0.js → typescript-40b2f5cb.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 +3 -3
- package/dist/types/components/code-editor/code-editor.d.ts +3 -3
- package/dist/types/utils/profile/editor-profile.d.ts +1 -1
- package/dist/types/utils/profile/types.d.ts +1 -1
- package/dist/types/utils/profile/utils.d.ts +4 -1
- package/package.json +9 -9
- package/dist/arcgis-coding-components/p-0f15d754.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.30/esri/copyright.txt for details.
|
|
4
|
-
* v4.30.0-next.
|
|
4
|
+
* v4.30.0-next.2
|
|
5
5
|
*/
|
|
6
6
|
import { A as ArcgisArcadeApi$1, d as defineCustomElement$1 } from './arcade-api.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.30/esri/copyright.txt for details.
|
|
4
|
-
* v4.30.0-next.
|
|
4
|
+
* v4.30.0-next.2
|
|
5
5
|
*/
|
|
6
6
|
import { proxyCustomElement, HTMLElement, createEvent, h as h$1, Fragment, Host } from '@stencil/core/internal/client';
|
|
7
7
|
import { editor, KeyCode } from 'monaco-editor';
|
|
@@ -160,23 +160,16 @@ const ArcgisArcadeEditor$1 = /*@__PURE__*/ proxyCustomElement(class ArcgisArcade
|
|
|
160
160
|
this.openedSidePanel = "none";
|
|
161
161
|
this.editorOptions = undefined;
|
|
162
162
|
}
|
|
163
|
-
_profileChanged(
|
|
164
|
-
// Prevent the execution as long as the component has not been fully loaded
|
|
165
|
-
if (newValue === oldValue) {
|
|
166
|
-
return;
|
|
167
|
-
}
|
|
163
|
+
_profileChanged() {
|
|
168
164
|
this._updateEditorProfile().catch(console.error);
|
|
169
165
|
}
|
|
170
|
-
_testDataChanged(
|
|
171
|
-
if (
|
|
166
|
+
_testDataChanged() {
|
|
167
|
+
if (!this._showExecutionPanel) {
|
|
172
168
|
return;
|
|
173
169
|
}
|
|
174
170
|
this._executeScript().catch(console.error);
|
|
175
171
|
}
|
|
176
|
-
_snippetChanged(
|
|
177
|
-
if (newValue === oldValue) {
|
|
178
|
-
return;
|
|
179
|
-
}
|
|
172
|
+
_snippetChanged() {
|
|
180
173
|
arcadeDefaults.updateApiContextForModel(this._modelId, {
|
|
181
174
|
snippets: this.snippets
|
|
182
175
|
});
|
|
@@ -205,7 +198,7 @@ const ArcgisArcadeEditor$1 = /*@__PURE__*/ proxyCustomElement(class ArcgisArcade
|
|
|
205
198
|
*/
|
|
206
199
|
async getEditorInstance() {
|
|
207
200
|
await this._componentReadyDefer.promise;
|
|
208
|
-
return
|
|
201
|
+
return await this._codeEditorElt?.getEditorInstance();
|
|
209
202
|
}
|
|
210
203
|
/**
|
|
211
204
|
* Returns the Arcade result for the script for the provided test data.
|
|
@@ -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.30/esri/copyright.txt for details.
|
|
4
|
-
* v4.30.0-next.
|
|
4
|
+
* v4.30.0-next.2
|
|
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.30/esri/copyright.txt for details.
|
|
4
|
-
* v4.30.0-next.
|
|
4
|
+
* v4.30.0-next.2
|
|
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.30/esri/copyright.txt for details.
|
|
4
|
-
* v4.30.0-next.
|
|
4
|
+
* v4.30.0-next.2
|
|
5
5
|
*/
|
|
6
6
|
import { A as ArcgisArcadeVariables$1, d as defineCustomElement$1 } from './arcade-variables.js';
|
|
7
7
|
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
/*!
|
|
3
3
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
4
4
|
* See https://js.arcgis.com/4.30/esri/copyright.txt for details.
|
|
5
|
-
* v4.30.0-next.
|
|
5
|
+
* v4.30.0-next.2
|
|
6
6
|
*/
|
|
7
7
|
let resourceUrl = "https://js.arcgis.com/coding-components/next/";
|
|
8
8
|
export const getAssetPath = (path) => {
|
|
9
9
|
const assetUrl = new URL(path, resourceUrl);
|
|
10
|
-
return assetUrl.origin !==
|
|
10
|
+
return assetUrl.origin !== window.location.origin ? assetUrl.href : assetUrl.pathname;
|
|
11
11
|
};
|
|
12
12
|
export const setArcgisAssetPath = (path) => (resourceUrl = path);
|
|
@@ -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.30/esri/copyright.txt for details.
|
|
4
|
-
* v4.30.0-next.
|
|
4
|
+
* v4.30.0-next.2
|
|
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.30/esri/copyright.txt for details.
|
|
4
|
-
* v4.30.0-next.
|
|
4
|
+
* v4.30.0-next.2
|
|
5
5
|
*/
|
|
6
6
|
import { proxyCustomElement, HTMLElement, createEvent, h as h$1, Host } from '@stencil/core/internal/client';
|
|
7
7
|
import { Range, editor, Uri, KeyMod, KeyCode } from 'monaco-editor';
|
|
@@ -37,20 +37,20 @@ const ArcgisCodeEditor = /*@__PURE__*/ proxyCustomElement(class ArcgisCodeEditor
|
|
|
37
37
|
this.modelId = U();
|
|
38
38
|
this.options = undefined;
|
|
39
39
|
}
|
|
40
|
-
valuePropChange(newValue
|
|
41
|
-
if (!this._editorInstance
|
|
40
|
+
valuePropChange(newValue) {
|
|
41
|
+
if (!this._editorInstance) {
|
|
42
42
|
return;
|
|
43
43
|
}
|
|
44
44
|
this._editorInstance.setValue(newValue ?? "");
|
|
45
45
|
}
|
|
46
|
-
languagePropChange(
|
|
47
|
-
if (!this._editorInstance
|
|
46
|
+
languagePropChange() {
|
|
47
|
+
if (!this._editorInstance) {
|
|
48
48
|
return;
|
|
49
49
|
}
|
|
50
50
|
this.updateModel();
|
|
51
51
|
}
|
|
52
|
-
modelIdPropChange(
|
|
53
|
-
if (!this._editorInstance
|
|
52
|
+
modelIdPropChange() {
|
|
53
|
+
if (!this._editorInstance) {
|
|
54
54
|
return;
|
|
55
55
|
}
|
|
56
56
|
this.updateModel();
|
|
@@ -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.30/esri/copyright.txt for details.
|
|
4
|
-
* v4.30.0-next.
|
|
4
|
+
* v4.30.0-next.2
|
|
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.30/esri/copyright.txt for details.
|
|
4
|
-
* v4.30.0-next.
|
|
4
|
+
* v4.30.0-next.2
|
|
5
5
|
*/
|
|
6
6
|
export { 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.30/esri/copyright.txt for details.
|
|
4
|
-
* v4.30.0-next.
|
|
4
|
+
* v4.30.0-next.2
|
|
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.30/esri/copyright.txt for details.
|
|
4
|
-
* v4.30.0-next.
|
|
4
|
+
* v4.30.0-next.2
|
|
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.30/esri/copyright.txt for details.
|
|
4
|
-
* v4.30.0-next.
|
|
4
|
+
* v4.30.0-next.2
|
|
5
5
|
*/
|
|
6
|
-
import { g as getAssetPath } from './index-
|
|
6
|
+
import { g as getAssetPath } from './index-84f054b0.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-6b2305f7.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-b3b2f1bc.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-2482aacb.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-40b2f5cb.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-4a41975b.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-cedfb87b.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-8afe11aa.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-f4368447.js');
|
|
121199
121199
|
}
|
|
121200
121200
|
}
|
|
121201
121201
|
monaco_editor_core_exports.languages.onLanguage("typescript", () => {
|
|
@@ -169040,7 +169040,18 @@ function isMapInstance(item) {
|
|
|
169040
169040
|
typeof item === "object" &&
|
|
169041
169041
|
"declaredClass" in item &&
|
|
169042
169042
|
typeof item.declaredClass === "string" &&
|
|
169043
|
-
(item.declaredClass === "esri.
|
|
169043
|
+
(item.declaredClass === "esri.Map" ||
|
|
169044
|
+
item.declaredClass === "esri.WebMap" ||
|
|
169045
|
+
item.declaredClass === "esri.WebScene"));
|
|
169046
|
+
}
|
|
169047
|
+
function isWebMapInstance(item) {
|
|
169048
|
+
return item.declaredClass === "esri.WebMap";
|
|
169049
|
+
}
|
|
169050
|
+
function isWebSceneInstance(item) {
|
|
169051
|
+
return item.declaredClass === "esri.WebScene";
|
|
169052
|
+
}
|
|
169053
|
+
function isLoadableMapInstance(item) {
|
|
169054
|
+
return item.declaredClass === "esri.WebMap" || item.declaredClass === "esri.WebScene";
|
|
169044
169055
|
}
|
|
169045
169056
|
function isPortalItemDefinition(item) {
|
|
169046
169057
|
return !!item && typeof item === "object" && "portalItem" in item && item.portalItem != null;
|
|
@@ -169341,6 +169352,12 @@ function assembleMemberExpression(obj, prop) {
|
|
|
169341
169352
|
}
|
|
169342
169353
|
return `${obj}${getMemberExpressionProperty(prop)}`;
|
|
169343
169354
|
}
|
|
169355
|
+
function getMapPortalItem(map) {
|
|
169356
|
+
if (isWebMapInstance(map) || isWebSceneInstance(map)) {
|
|
169357
|
+
return map.portalItem;
|
|
169358
|
+
}
|
|
169359
|
+
return null;
|
|
169360
|
+
}
|
|
169344
169361
|
//#endregion
|
|
169345
169362
|
//#region Editor Profile to Language Service Profile functions
|
|
169346
169363
|
async function variablesToLSVariable(editorVariables, kind = main.CompletionItemKind.Variable) {
|
|
@@ -170176,7 +170193,7 @@ class FeatureSetCollectionVariable extends CollectionBasedVariable {
|
|
|
170176
170193
|
return null;
|
|
170177
170194
|
}
|
|
170178
170195
|
if (typeof this._featureSetCollections.source !== "string") {
|
|
170179
|
-
return portalItemPageUrl(this._featureSetCollections.source
|
|
170196
|
+
return portalItemPageUrl(getMapPortalItem(this._featureSetCollections.source));
|
|
170180
170197
|
}
|
|
170181
170198
|
// const firstLayer = this._featureSetCollection.layers[0] ?? this._featureSetCollection.tables[0];
|
|
170182
170199
|
// if (!firstLayer) {
|
|
@@ -170188,10 +170205,16 @@ class FeatureSetCollectionVariable extends CollectionBasedVariable {
|
|
|
170188
170205
|
if (!this.loaded || !this._featureSetCollections) {
|
|
170189
170206
|
return "";
|
|
170190
170207
|
}
|
|
170191
|
-
if (typeof this._featureSetCollections.source
|
|
170208
|
+
if (typeof this._featureSetCollections.source === "string") {
|
|
170209
|
+
return this._profile?.intlStrings.featureservice ?? "featureservice";
|
|
170210
|
+
}
|
|
170211
|
+
if (isWebSceneInstance(this._featureSetCollections.source)) {
|
|
170212
|
+
return this._profile?.intlStrings.webscene ?? "webscene";
|
|
170213
|
+
}
|
|
170214
|
+
if (isWebMapInstance(this._featureSetCollections.source)) {
|
|
170192
170215
|
return this._profile?.intlStrings.webmap ?? "webmap";
|
|
170193
170216
|
}
|
|
170194
|
-
return this._profile?.intlStrings.
|
|
170217
|
+
return this._profile?.intlStrings.map ?? "map";
|
|
170195
170218
|
}
|
|
170196
170219
|
async loadSource() {
|
|
170197
170220
|
if (ee(this._loadPromise) && te(this._loadPromise)) {
|
|
@@ -170215,7 +170238,7 @@ class FeatureSetCollectionVariable extends CollectionBasedVariable {
|
|
|
170215
170238
|
: {
|
|
170216
170239
|
code: "webmapformat",
|
|
170217
170240
|
formatValues: {
|
|
170218
|
-
webMapTitle: this._featureSetCollections.source
|
|
170241
|
+
webMapTitle: getMapPortalItem(this._featureSetCollections.source)?.title || "Untitled map"
|
|
170219
170242
|
}
|
|
170220
170243
|
};
|
|
170221
170244
|
const headerGroup = new GroupOfVariables(this._profile, groupLabel, [
|
|
@@ -170262,8 +170285,10 @@ class FeatureSetCollectionVariable extends CollectionBasedVariable {
|
|
|
170262
170285
|
return null;
|
|
170263
170286
|
}
|
|
170264
170287
|
async _featureSetCollectionFromMap(map) {
|
|
170265
|
-
|
|
170266
|
-
|
|
170288
|
+
if (isLoadableMapInstance(map)) {
|
|
170289
|
+
// Make sure the map is loaded
|
|
170290
|
+
await map.loadAll();
|
|
170291
|
+
}
|
|
170267
170292
|
// Until jsapi fix a bug we have to load the table separately
|
|
170268
170293
|
await Promise.all(map.tables.map(async (t) => (await t.load())));
|
|
170269
170294
|
return {
|
|
@@ -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.30/esri/copyright.txt for details.
|
|
4
|
-
* v4.30.0-next.
|
|
4
|
+
* v4.30.0-next.2
|
|
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-631dc093.js';
|
|
7
|
+
import './index-84f054b0.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.30/esri/copyright.txt for details.
|
|
4
|
-
* v4.30.0-next.
|
|
4
|
+
* v4.30.0-next.2
|
|
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-84f054b0.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-631dc093.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-43856469.js');
|
|
3028
3028
|
}
|
|
3029
3029
|
// Register the language in Monaco
|
|
3030
3030
|
languages.register({
|
|
@@ -3563,23 +3563,16 @@ const ArcgisArcadeEditor = class {
|
|
|
3563
3563
|
this.openedSidePanel = "none";
|
|
3564
3564
|
this.editorOptions = undefined;
|
|
3565
3565
|
}
|
|
3566
|
-
_profileChanged(
|
|
3567
|
-
// Prevent the execution as long as the component has not been fully loaded
|
|
3568
|
-
if (newValue === oldValue) {
|
|
3569
|
-
return;
|
|
3570
|
-
}
|
|
3566
|
+
_profileChanged() {
|
|
3571
3567
|
this._updateEditorProfile().catch(console.error);
|
|
3572
3568
|
}
|
|
3573
|
-
_testDataChanged(
|
|
3574
|
-
if (
|
|
3569
|
+
_testDataChanged() {
|
|
3570
|
+
if (!this._showExecutionPanel) {
|
|
3575
3571
|
return;
|
|
3576
3572
|
}
|
|
3577
3573
|
this._executeScript().catch(console.error);
|
|
3578
3574
|
}
|
|
3579
|
-
_snippetChanged(
|
|
3580
|
-
if (newValue === oldValue) {
|
|
3581
|
-
return;
|
|
3582
|
-
}
|
|
3575
|
+
_snippetChanged() {
|
|
3583
3576
|
arcadeDefaults.updateApiContextForModel(this._modelId, {
|
|
3584
3577
|
snippets: this.snippets
|
|
3585
3578
|
});
|
|
@@ -3608,7 +3601,7 @@ const ArcgisArcadeEditor = class {
|
|
|
3608
3601
|
*/
|
|
3609
3602
|
async getEditorInstance() {
|
|
3610
3603
|
await this._componentReadyDefer.promise;
|
|
3611
|
-
return
|
|
3604
|
+
return await this._codeEditorElt?.getEditorInstance();
|
|
3612
3605
|
}
|
|
3613
3606
|
/**
|
|
3614
3607
|
* Returns the Arcade result for the script for the provided test data.
|
|
@@ -4354,20 +4347,20 @@ const ArcgisCodeEditor = class {
|
|
|
4354
4347
|
this.modelId = U();
|
|
4355
4348
|
this.options = undefined;
|
|
4356
4349
|
}
|
|
4357
|
-
valuePropChange(newValue
|
|
4358
|
-
if (!this._editorInstance
|
|
4350
|
+
valuePropChange(newValue) {
|
|
4351
|
+
if (!this._editorInstance) {
|
|
4359
4352
|
return;
|
|
4360
4353
|
}
|
|
4361
4354
|
this._editorInstance.setValue(newValue ?? "");
|
|
4362
4355
|
}
|
|
4363
|
-
languagePropChange(
|
|
4364
|
-
if (!this._editorInstance
|
|
4356
|
+
languagePropChange() {
|
|
4357
|
+
if (!this._editorInstance) {
|
|
4365
4358
|
return;
|
|
4366
4359
|
}
|
|
4367
4360
|
this.updateModel();
|
|
4368
4361
|
}
|
|
4369
|
-
modelIdPropChange(
|
|
4370
|
-
if (!this._editorInstance
|
|
4362
|
+
modelIdPropChange() {
|
|
4363
|
+
if (!this._editorInstance) {
|
|
4371
4364
|
return;
|
|
4372
4365
|
}
|
|
4373
4366
|
this.updateModel();
|
|
@@ -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.30/esri/copyright.txt for details.
|
|
4
|
-
* v4.30.0-next.
|
|
4
|
+
* v4.30.0-next.2
|
|
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-84f054b0.js';
|
|
7
|
+
export { s as setNonce } from './index-84f054b0.js';
|
|
8
8
|
|
|
9
9
|
/*
|
|
10
10
|
Stencil Client Patch Browser v4.10.0 | MIT Licensed | https://stenciljs.com
|
|
@@ -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.30/esri/copyright.txt for details.
|
|
4
|
-
* v4.30.0-next.
|
|
4
|
+
* v4.30.0-next.2
|
|
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.30/esri/copyright.txt for details.
|
|
4
|
-
* v4.30.0-next.
|
|
4
|
+
* v4.30.0-next.2
|
|
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-631dc093.js';
|
|
7
|
+
import './index-84f054b0.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.30/esri/copyright.txt for details.
|
|
4
|
-
* v4.30.0-next.
|
|
4
|
+
* v4.30.0-next.2
|
|
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-631dc093.js';
|
|
7
|
+
import './index-84f054b0.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.30/esri/copyright.txt for details.
|
|
4
|
-
* v4.30.0-next.
|
|
4
|
+
* v4.30.0-next.2
|
|
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-631dc093.js';
|
|
7
|
+
import './index-84f054b0.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.30/esri/copyright.txt for details.
|
|
4
|
-
* v4.30.0-next.
|
|
4
|
+
* v4.30.0-next.2
|
|
5
5
|
*/
|
|
6
|
-
export { a as arcade } from './arcade-defaults-
|
|
7
|
-
import './index-
|
|
6
|
+
export { a as arcade } from './arcade-defaults-631dc093.js';
|
|
7
|
+
import './index-84f054b0.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.30/esri/copyright.txt for details.
|
|
4
|
-
* v4.30.0-next.
|
|
4
|
+
* v4.30.0-next.2
|
|
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-40b2f5cb.js';
|
|
7
|
+
import './arcade-defaults-631dc093.js';
|
|
8
|
+
import './index-84f054b0.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.30/esri/copyright.txt for details.
|
|
4
|
-
* v4.30.0-next.
|
|
4
|
+
* v4.30.0-next.2
|
|
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-631dc093.js';
|
|
7
|
+
import './index-84f054b0.js';
|
|
8
8
|
|
|
9
9
|
/*!-----------------------------------------------------------------------------
|
|
10
10
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
package/dist/esm/loader.js
CHANGED
|
@@ -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.30/esri/copyright.txt for details.
|
|
4
|
-
* v4.30.0-next.
|
|
4
|
+
* v4.30.0-next.2
|
|
5
5
|
*/
|
|
6
|
-
import { b as bootstrapLazy } from './index-
|
|
7
|
-
export { s as setNonce } from './index-
|
|
6
|
+
import { b as bootstrapLazy } from './index-84f054b0.js';
|
|
7
|
+
export { s as setNonce } from './index-84f054b0.js';
|
|
8
8
|
|
|
9
9
|
const defineCustomElements = (win, options) => {
|
|
10
10
|
if (typeof window === 'undefined') return undefined;
|
|
@@ -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.30/esri/copyright.txt for details.
|
|
4
|
-
* v4.30.0-next.
|
|
4
|
+
* v4.30.0-next.2
|
|
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-631dc093.js';
|
|
7
|
+
import './index-84f054b0.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.30/esri/copyright.txt for details.
|
|
4
|
-
* v4.30.0-next.
|
|
4
|
+
* v4.30.0-next.2
|
|
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-631dc093.js';
|
|
7
|
+
import './index-84f054b0.js';
|
|
8
8
|
|
|
9
9
|
/*!-----------------------------------------------------------------------------
|
|
10
10
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|