@arcgis/coding-components 4.31.0-next.116 → 4.31.0-next.117
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-255e89a3.js → p-128a0aee.js} +2 -2
- package/dist/arcgis-coding-components/{p-8b88dab1.js → p-1a9f475d.js} +1 -1
- package/dist/arcgis-coding-components/{p-f5fd5167.entry.js → p-1ad930cc.entry.js} +2 -2
- package/dist/arcgis-coding-components/{p-61318e1c.entry.js → p-465435e1.entry.js} +2 -2
- package/dist/arcgis-coding-components/{p-b363c77b.js → p-524b5196.js} +2 -2
- package/dist/arcgis-coding-components/{p-feffe66d.js → p-60b0ff5a.js} +2 -2
- package/dist/arcgis-coding-components/{p-e85982ed.js → p-68b7973f.js} +1 -1
- package/dist/arcgis-coding-components/{p-0e69f4d3.js → p-7510add7.js} +2 -2
- package/dist/arcgis-coding-components/{p-3ec6456d.js → p-7f7da482.js} +2 -2
- package/dist/arcgis-coding-components/{p-764fe492.entry.js → p-8c9338b6.entry.js} +2 -2
- package/dist/arcgis-coding-components/{p-d630d7bc.js → p-8d0b03d6.js} +2 -2
- package/dist/arcgis-coding-components/{p-17149384.js → p-93a3652f.js} +2 -2
- package/dist/arcgis-coding-components/{p-e465d820.js → p-9d9b509b.js} +1 -1
- package/dist/arcgis-coding-components/{p-d82cab4e.js → p-a09a2995.js} +10 -10
- package/dist/arcgis-coding-components/{p-843153f0.js → p-ca5cde7d.js} +2 -2
- package/dist/arcgis-coding-components/{p-56cc5eb6.js → p-df7f4e90.js} +2 -2
- package/dist/arcgis-coding-components/{p-56a8b150.js → p-f4192303.js} +2 -2
- package/dist/arcgis-coding-components/{p-4d4d7911.js → p-f793651c.js} +2 -2
- package/dist/cjs/{app-globals-d69eda30.js → app-globals-ef1b44a9.js} +1 -1
- package/dist/cjs/{arcade-defaults-660964c9.js → arcade-defaults-4d3a6776.js} +3 -3
- package/dist/cjs/{arcade-mode-a5dd08c4.js → arcade-mode-9f1102b2.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-9b19340b.js → css-d1b6a768.js} +1 -1
- package/dist/cjs/{cssMode-6a77efb9.js → cssMode-a52f34b0.js} +3 -3
- package/dist/cjs/{html-4519cf32.js → html-a8fd5819.js} +3 -3
- package/dist/cjs/{htmlMode-182ce1ff.js → htmlMode-38e44197.js} +3 -3
- package/dist/cjs/{index-2d8ee6bc.js → index-9ee06dbb.js} +1 -1
- package/dist/cjs/index.cjs.js +4 -4
- package/dist/cjs/{javascript-ee667abb.js → javascript-4b0f387a.js} +4 -4
- package/dist/cjs/{jsonMode-084138cb.js → jsonMode-f9197c41.js} +3 -3
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/{sql-expr-defaults-55ee20e4.js → sql-expr-defaults-28864bc0.js} +10 -10
- package/dist/cjs/{sql-expr-mode-f8f35aec.js → sql-expr-mode-ff0b079a.js} +3 -3
- package/dist/cjs/{tsMode-70248fbd.js → tsMode-5edab23c.js} +3 -3
- package/dist/cjs/{typescript-c40a4348.js → typescript-6aeb5725.js} +3 -3
- package/dist/cjs/{useT9n-effe847e.js → useT9n-5f495adc.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-30b10354.js → app-globals-091b87ba.js} +1 -1
- package/dist/esm/{arcade-defaults-9da992ad.js → arcade-defaults-413bb46c.js} +3 -3
- package/dist/esm/{arcade-mode-8bc1c8b4.js → arcade-mode-9c21be34.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-2d90e711.js → css-930b25a7.js} +1 -1
- package/dist/esm/{cssMode-a352628f.js → cssMode-c8059805.js} +3 -3
- package/dist/esm/{html-36ea92fd.js → html-aa299729.js} +3 -3
- package/dist/esm/{htmlMode-982376b7.js → htmlMode-e383146f.js} +3 -3
- package/dist/esm/{index-a2a63d6c.js → index-5c929d0c.js} +1 -1
- package/dist/esm/index.js +4 -4
- package/dist/esm/{javascript-b1f0b115.js → javascript-1aec637d.js} +4 -4
- package/dist/esm/{jsonMode-320e548d.js → jsonMode-deabe739.js} +3 -3
- package/dist/esm/loader.js +4 -4
- package/dist/esm/{sql-expr-defaults-bc80dd44.js → sql-expr-defaults-e24aed0a.js} +10 -10
- package/dist/esm/{sql-expr-mode-39319366.js → sql-expr-mode-b6e67897.js} +3 -3
- package/dist/esm/{tsMode-46dc4923.js → tsMode-e5eb14a5.js} +3 -3
- package/dist/esm/{typescript-ea40b282.js → typescript-29f4259e.js} +3 -3
- package/dist/esm/{useT9n-2ef85b20.js → useT9n-0e6a80f8.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/package.json +11 -11
|
@@ -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.117
|
|
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-a09a2995.js";import{g as d}from"./p-1a9f475d.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}
|
|
@@ -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.117
|
|
5
5
|
*/
|
|
6
|
-
import{conf as e,language as t}from"./p-
|
|
6
|
+
import{conf as e,language as t}from"./p-f4192303.js";import"./p-a09a2995.js";import"./p-1a9f475d.js";
|
|
7
7
|
/*!-----------------------------------------------------------------------------
|
|
8
8
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
9
9
|
* Version: 0.45.0(5e5af013f8d295555a7210df0d5f2cea0bf5dd56)
|
|
@@ -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.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.0-next.
|
|
4
|
+
* v4.31.0-next.117
|
|
5
5
|
*/
|
|
6
6
|
/*!-----------------------------------------------------------------------------
|
|
7
7
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|