@arcgis/coding-components 4.31.0-next.120 → 4.31.0-next.121
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/api/test.json +6861 -0
- package/dist/arcgis-coding-components/assets/code-editor/arcgis-sql-expression.worker.js +18943 -0
- package/dist/arcgis-coding-components/assets/code-editor/arcgis-sql-expression.worker.js.map +7 -0
- package/dist/arcgis-coding-components/assets/code-editor/sql-expr.worker.js +94 -84
- package/dist/arcgis-coding-components/index.esm.js +2 -2
- package/dist/arcgis-coding-components/{p-392424d7.entry.js → p-056f50b1.entry.js} +2 -2
- package/dist/arcgis-coding-components/{p-701b064f.js → p-1f2cbe7b.js} +2 -2
- package/dist/arcgis-coding-components/{p-6f0aedeb.js → p-22e665d7.js} +2 -2
- package/dist/arcgis-coding-components/{p-31ab280f.entry.js → p-2a2df3e0.entry.js} +2 -2
- package/dist/arcgis-coding-components/{p-661f1809.js → p-30a4ef07.js} +2 -2
- package/dist/arcgis-coding-components/{p-d8f35b42.js → p-38423709.js} +2 -2
- package/dist/arcgis-coding-components/{p-268ef762.js → p-4850087a.js} +2 -2
- package/dist/arcgis-coding-components/{p-d2cb652a.js → p-4d512263.js} +2 -2
- package/dist/arcgis-coding-components/{p-ab0c7293.js → p-806703a9.js} +1 -1
- package/dist/arcgis-coding-components/{p-8c6acbe3.js → p-90db2c45.js} +2 -2
- package/dist/arcgis-coding-components/{p-a64345ec.js → p-9e097006.js} +1 -1
- package/dist/arcgis-coding-components/{p-c3a77297.js → p-a9ee967a.js} +2 -2
- package/dist/arcgis-coding-components/{p-f3067adc.js → p-c5762943.js} +10 -10
- package/dist/arcgis-coding-components/{p-5bd2ea82.js → p-ca0d4855.js} +2 -2
- package/dist/arcgis-coding-components/{p-1ed6d5d2.js → p-caf814b9.js} +2 -2
- package/dist/arcgis-coding-components/{p-3d70584f.js → p-cf6cbac6.js} +2 -2
- package/dist/arcgis-coding-components/{p-fefa16f8.entry.js → p-d8558859.entry.js} +2 -2
- package/dist/arcgis-coding-components/{p-b2478059.js → p-f3e28388.js} +1 -1
- package/dist/cjs/{app-globals-a5ca2733.js → app-globals-2bb8bf1c.js} +1 -1
- package/dist/cjs/{arcade-defaults-750df323.js → arcade-defaults-13751288.js} +3 -3
- package/dist/cjs/{arcade-mode-7276b964.js → arcade-mode-1bdbc316.js} +3 -3
- package/dist/cjs/arcgis-arcade-editor_6.cjs.entry.js +7 -7
- package/dist/cjs/arcgis-coding-components.cjs.js +3 -3
- package/dist/cjs/arcgis-sql-expression-editor.cjs.entry.js +4 -4
- package/dist/cjs/arcgis-sql-expression-fields.cjs.entry.js +4 -4
- package/dist/cjs/{css-5dcbf2f9.js → css-3452e611.js} +1 -1
- package/dist/cjs/{cssMode-28dff329.js → cssMode-e1f8d5eb.js} +3 -3
- package/dist/cjs/{html-7686bcbd.js → html-55a65899.js} +3 -3
- package/dist/cjs/{htmlMode-dc221611.js → htmlMode-d31214fd.js} +3 -3
- package/dist/cjs/{index-6fdabe00.js → index-61fdde8c.js} +1 -1
- package/dist/cjs/index.cjs.js +4 -4
- package/dist/cjs/{javascript-6815876d.js → javascript-a0a23b70.js} +4 -4
- package/dist/cjs/{jsonMode-25d764f8.js → jsonMode-f9286004.js} +3 -3
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/{sql-expr-defaults-c27030fd.js → sql-expr-defaults-c9338e8a.js} +10 -10
- package/dist/cjs/{sql-expr-mode-e3c04515.js → sql-expr-mode-ccdb453a.js} +3 -3
- package/dist/cjs/{tsMode-d397f757.js → tsMode-44abacac.js} +3 -3
- package/dist/cjs/{typescript-e1976545.js → typescript-3c1b1f15.js} +3 -3
- package/dist/cjs/{useT9n-2bcb3300.js → useT9n-464a83ef.js} +3 -3
- package/dist/components/arcade-defaults.js +1 -1
- package/dist/components/arcade-mode.js +1 -1
- package/dist/components/arcade-results.js +1 -1
- package/dist/components/arcade-suggestions.js +1 -1
- package/dist/components/arcgis-arcade-editor.js +1 -1
- package/dist/components/arcgis-arcade-results.js +1 -1
- package/dist/components/arcgis-arcade-suggestions.js +1 -1
- package/dist/components/arcgis-assets.d.ts +1 -1
- package/dist/components/arcgis-assets.js +1 -1
- package/dist/components/arcgis-code-editor.js +1 -1
- package/dist/components/arcgis-editor-variables.js +1 -1
- package/dist/components/arcgis-language-api-panel.js +1 -1
- package/dist/components/arcgis-sql-expression-editor.js +1 -1
- package/dist/components/arcgis-sql-expression-fields.js +1 -1
- package/dist/components/chunk-UFIZBDFE.js +1 -1
- package/dist/components/code-editor.js +1 -1
- package/dist/components/editor-variables.js +1 -1
- package/dist/components/fields.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/index2.js +1 -1
- package/dist/components/language-api-panel.js +1 -1
- package/dist/components/markdown.js +1 -1
- package/dist/components/sql-expr-defaults.js +1 -1
- package/dist/components/sql-expr-mode.js +1 -1
- package/dist/components/useT9n.js +1 -1
- package/dist/components/utilities.js +1 -1
- package/dist/esm/{app-globals-248cbe6a.js → app-globals-41a6b34d.js} +1 -1
- package/dist/esm/{arcade-defaults-6ff6dcc1.js → arcade-defaults-ac261060.js} +3 -3
- package/dist/esm/{arcade-mode-07971823.js → arcade-mode-3ee81b1e.js} +3 -3
- package/dist/esm/arcgis-arcade-editor_6.entry.js +7 -7
- package/dist/esm/arcgis-coding-components.js +4 -4
- package/dist/esm/arcgis-sql-expression-editor.entry.js +4 -4
- package/dist/esm/arcgis-sql-expression-fields.entry.js +4 -4
- package/dist/esm/{css-d4d8c34f.js → css-b0b5b07d.js} +1 -1
- package/dist/esm/{cssMode-28616dad.js → cssMode-5b0eab64.js} +3 -3
- package/dist/esm/{html-95a59c55.js → html-6c250ff5.js} +3 -3
- package/dist/esm/{htmlMode-b90373e1.js → htmlMode-2cc030df.js} +3 -3
- package/dist/esm/{index-d20d28ef.js → index-bc8e0b63.js} +1 -1
- package/dist/esm/index.js +4 -4
- package/dist/esm/{javascript-c47641c7.js → javascript-3e7f6f85.js} +4 -4
- package/dist/esm/{jsonMode-5006bcad.js → jsonMode-131ed2b4.js} +3 -3
- package/dist/esm/loader.js +4 -4
- package/dist/esm/{sql-expr-defaults-239b0c66.js → sql-expr-defaults-965a8084.js} +10 -10
- package/dist/esm/{sql-expr-mode-7ce7ae5c.js → sql-expr-mode-3dd733ea.js} +3 -3
- package/dist/esm/{tsMode-b7619b7d.js → tsMode-eec20ddf.js} +3 -3
- package/dist/esm/{typescript-d2a6bc05.js → typescript-5a2de2bf.js} +3 -3
- package/dist/esm/{useT9n-f1cdb123.js → useT9n-3a04e7f1.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/Users/fred/Projects/arcgis-web-components-work/packages/coding-packages/coding-components/.stencil/stencil.config.d.ts +3 -0
- package/package.json +8 -80
- package/dist/types/data/arcgis-web-compoments/actions-runner-1/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/stencil.config.d.ts +0 -3
- /package/dist/types/{data/arcgis-web-compoments/actions-runner-1/_work/arcgis-web-components/arcgis-web-components → Users/fred/Projects/arcgis-web-components-work}/packages/coding-packages/coding-components/.stencil/stories/internal/arcade-editor/arcade-editor.stories.d.ts +0 -0
- /package/dist/types/{data/arcgis-web-compoments/actions-runner-1/_work/arcgis-web-components/arcgis-web-components → Users/fred/Projects/arcgis-web-components-work}/packages/coding-packages/coding-components/.stencil/stories/internal/arcade-editor/editorContext.d.ts +0 -0
- /package/dist/types/{data/arcgis-web-compoments/actions-runner-1/_work/arcgis-web-components/arcgis-web-components → Users/fred/Projects/arcgis-web-components-work}/packages/coding-packages/coding-components/.stencil/stories/internal/code-editor/code-editor.stories.d.ts +0 -0
- /package/dist/types/{data/arcgis-web-compoments/actions-runner-1/_work/arcgis-web-components/arcgis-web-components → Users/fred/Projects/arcgis-web-components-work}/packages/coding-packages/coding-components/.stencil/stories/internal/sql-expression-editor/sql-expression-editor.stories.d.ts +0 -0
- /package/dist/types/{data/arcgis-web-compoments/actions-runner-1/_work/arcgis-web-components/arcgis-web-components → Users/fred/Projects/arcgis-web-components-work}/packages/coding-packages/coding-components/.stencil/stories/reference/stories/arcade-editor.stories.d.ts +0 -0
- /package/dist/types/{data/arcgis-web-compoments/actions-runner-1/_work/arcgis-web-components/arcgis-web-components → Users/fred/Projects/arcgis-web-components-work}/packages/coding-packages/coding-components/.stencil/support/sass-inline-url-importer.d.ts +0 -0
- /package/dist/types/{data/arcgis-web-compoments/actions-runner-1/_work/arcgis-web-components/arcgis-web-components → Users/fred/Projects/arcgis-web-components-work}/packages/coding-packages/coding-components/.stencil/support/sass-json-importer.d.ts +0 -0
- /package/dist/types/{data/arcgis-web-compoments/actions-runner-1/_work/arcgis-web-components/arcgis-web-components → Users/fred/Projects/arcgis-web-components-work}/packages/coding-packages/coding-components/.stencil/support/stencil-monaco-plugins.d.ts +0 -0
|
@@ -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.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.0-next.
|
|
4
|
+
* v4.31.0-next.121
|
|
5
5
|
*/
|
|
6
|
-
import{O as e}from"./p-
|
|
6
|
+
import{O as e}from"./p-c5762943.js";import"./p-806703a9.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.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.0-next.
|
|
4
|
+
* v4.31.0-next.121
|
|
5
5
|
*/
|
|
6
|
-
import{O as e}from"./p-
|
|
6
|
+
import{O as e}from"./p-c5762943.js";import"./p-806703a9.js";
|
|
7
7
|
/*!-----------------------------------------------------------------------------
|
|
8
8
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
9
9
|
* Version: 0.45.0(5e5af013f8d295555a7210df0d5f2cea0bf5dd56)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.0-next.
|
|
4
|
+
* v4.31.0-next.121
|
|
5
5
|
*/
|
|
6
|
-
import{m as e,f as t,i as n,a,b as r,c as i,d as s,L as o,e as c,E as u}from"./p-
|
|
6
|
+
import{m as e,f as t,i as n,a,b as r,c as i,d as s,L as o,e as c,E as u}from"./p-c5762943.js";import{g as d}from"./p-806703a9.js";async function l(n,a=e.exports.CompletionItemKind.Variable){return await Promise.all(n.map((async n=>{switch(n.type){case"dictionary":return await async function(t,n){const{name:a,dictionaryVariables:r}=t,i=t.getDescription(),s=r.reduce(((e,t)=>{""!==e&&(e+=" \n \n"),e+=`**${t.name}** \n${t.type}`;const n=t.getDescription();return n&&(e+=` \n${n}`),e}),i);return{name:a,description:i,type:"dictionary",properties:await l(r,e.exports.CompletionItemKind.Field),completion:{label:a,detail:a,insertText:a,insertTextMode:e.exports.InsertTextMode.asIs,insertTextFormat:e.exports.InsertTextFormat.PlainText,kind:n,documentation:{kind:"markdown",value:s}}}}(n,a);case"feature":return await async function(n,a){const r=await n.loadSource(),{name:i}=n,s=n.getDescription(),o={label:i,detail:i,insertText:i,insertTextMode:e.exports.InsertTextMode.asIs,insertTextFormat:e.exports.InsertTextFormat.PlainText,kind:a},c={name:i,description:s,type:"dictionary",properties:[],completion:o};if(!r)return c;const[u,d]=t(r.fields,s,!0);return c.properties=u,o.documentation={kind:"markdown",value:d},c}(n,a);default:return function(t,n){const{name:a,type:r}=t,i=t.getDescription();return{name:a,description:i,type:r,completion:{label:a,detail:a,insertText:a,insertTextMode:e.exports.InsertTextMode.asIs,insertTextFormat:e.exports.InsertTextFormat.PlainText,kind:n,documentation:{kind:"markdown",value:i}}}}(n,a)}})))}async function p(e="en"){const t=f.get(e);if(t)return t;if(!s.has(e))return await p("en");try{const t=await fetch(d(`./assets/arcade-language/profiles/arcade-profiles.t9n.${e}.json`));return t.ok?function(e,t){const n=new Map;return t.forEach((e=>{n.set(e.id,e)})),f.set(e,n),n}(e,await t.json()):"en"===e?null:await p("en")}catch{return null}}const f=new Map;function y(e){switch(e.type){case"dictionary":return{...e,type:e.type,properties:(t=e.properties,t?.map(y))};case"array":return{...e,type:e.type,elementType:{type:"number",name:"number"}};default:return{...e,type:e.type}}var t}async function m(e,t="en"){if(!n(e))return;const s=await async function(e,t="en"){const n=await p(t);return n?.get(e)??null}(e.id,t);if(!s)return;const o={bundles:[...s.bundles],variables:[],hiddenApiItems:e.hiddenApiItems?.map((e=>e.toLowerCase()))};var c;return s.variables.forEach((t=>{if(e.disabledVariables?.includes(t.name))return;const n=e.definitions[t.name];switch(t.type){case"dictionary":return o.variables.push(y({...t,type:t.type,properties:Array.isArray(n)?[...n]:t.properties}));case"feature":if(!i(n))return;return o.variables.push({...t,type:t.type,definition:n});case"featureSet":if(!r(n))return;return o.variables.push({...t,type:t.type,definition:n});case"featureSetCollection":if(!a(n))return;return o.variables.push({...t,type:t.type,definition:n});default:return o.variables.push(y(t))}})),(c=e)&&"object"==typeof c&&"additionalVariables"in c&&Array.isArray(c.additionalVariables)&&o.variables.push(...e.additionalVariables??[]),o}const w=new class extends o{constructor(){super("arcade",{apiPath:"./assets/arcade-language/api",apiPrefix:"arcade-api.t9n."})}async setProfileForModel(e,t,a={locale:"en"}){n(t)&&(t=await m(t,a.locale));const r=await c(a.locale,d("./assets/arcade-language/t9n"),"profile.t9n.");if(!r)throw new Error(`Failed to load the language bundle for ${a.locale}`);this.disposeForModel(e);const i=this._getApiKey(e),s=new u(t,r);this._modelToProfileMap.set(i,s);const o=await async function(e){const{apiVersion:t,bundles:n,hiddenApiItems:a}=e.toEditorProfileDefinition();return{apiVersion:t,bundles:n,variables:await l(e.dictionaryVariables),hiddenApiItems:a?.map((e=>e.toLowerCase()))}}(s);this.updateApiContextForModel(e,{locale:a.locale,profile:o,snippets:a.snippets})}},b={setProfileForModel:w.setProfileForModel.bind(w),getApiLibraryForModel:w.getApiLibraryForModel.bind(w)};export{b as a,w as b}
|