@arcgis/coding-components 5.0.4 → 5.0.6
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/cdn/{NIYJTGTP.js → 3WBAITXT.js} +1 -1
- package/dist/cdn/{MJSQTSOK.js → 3ZU3ZD2O.js} +1 -1
- package/dist/cdn/{CC25THK2.js → BR2I6DGK.js} +1 -1
- package/dist/cdn/{UB65KLBZ.js → COCRZYES.js} +1 -1
- package/dist/cdn/{3LPRAQTY.js → FLZMWGMW.js} +1 -1
- package/dist/cdn/{OSDOBBYC.js → HO6XAGTW.js} +1 -1
- package/dist/cdn/{PLR4WX3O.js → JLV5FPQP.js} +1 -1
- package/dist/cdn/{7XJ7G5H5.js → N5HUQCKD.js} +1 -1
- package/dist/cdn/O6HSGCKR.js +2 -0
- package/dist/cdn/{A4OWORZA.js → PDYEJVNZ.js} +1 -1
- package/dist/cdn/{GAEVCFPO.js → PSXWBBXB.js} +1 -1
- package/dist/cdn/{IC26XJYA.js → QKWEDAOA.js} +1 -1
- package/dist/cdn/{5ALY3XQI.js → RIF3HBWL.js} +1 -1
- package/dist/cdn/{YODLOKH4.js → TQJ76SE4.js} +1 -1
- package/dist/cdn/{K4TX7B4D.js → W7O4SPFV.js} +1 -1
- package/dist/cdn/{3A4STQXM.js → Z3QPSCZM.js} +1 -1
- package/dist/cdn/{GQLL5GUB.js → ZBA3RN72.js} +1 -1
- package/dist/cdn/{A3T45VXN.js → ZHBYJI27.js} +1 -1
- package/dist/cdn/{5K6LAVPW.js → ZL7DPNWV.js} +1 -1
- package/dist/cdn/{FNSSKYBZ.js → ZMNPEBC4.js} +1 -1
- package/dist/cdn/assets/code-editor/sql-expr.worker.js +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/runtime.js +1 -1
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/package.json +5 -5
- package/dist/cdn/QFDJFS6E.js +0 -2
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
|
|
2
|
-
import a from"./
|
|
2
|
+
import a from"./ZL7DPNWV.js";import{b as m,c as y,d as h}from"./3YF4QLXU.js";import{g as f}from"./NMIFSDFV.js";import{K as u}from"./JLV5FPQP.js";export default $arcgis.t(([{d:b,f:d,j:g,l:F,m:M}])=>{var w=o=>{let t=o.variables[0],i=t?.type==="featureSet"?A(t):void 0,{apiVersion:e,bundles:a,hiddenApiItems:r}=o.toEditorProfileDefinition();return{apiVersion:e,bundles:a,variables:i?[i]:[],hiddenApiItems:r?.map(s=>s.toLowerCase())}};function A(o){let{name:t}=o,i=o.getDescription(),{definition:e}=o.toProfileVariableDefinition(),a={label:t,detail:t,insertText:t,insertTextMode:h.asIs,insertTextFormat:y.PlainText,kind:m.Field},r={name:t,description:i,type:"dictionary",properties:[],completion:a};if(!e||!("fields"in e))return r;let[s,l]=g(e.fields,i);return r.properties=s,a.documentation={kind:"markdown",value:l},r}var P={id:"field-calculation",variables:[{name:"$layer",type:"featureSet",description:"The layer being calculated."}]};function T(){return P}function I(o){if(!d(o))return;let t=T();if(!t)return;let i={variables:[],hiddenApiItems:o.hiddenApiItems?.map(e=>e.toLowerCase())};return t.variables.forEach(e=>{if(o.disabledVariables?.includes(e.name))return;let a=o.definitions[e.name];switch(e.type){case"featureSet":return b(a)?i.variables.push({...e,type:e.type,definition:a}):void 0;default:throw Error(`sdkVariable type not supported (yet) type: ${e.type}`)}}),i}var x="arcgis-sql-expression",p=class extends M{constructor(){super(x,{apiPath:"./assets/sql-language/api",apiPrefix:"sql-api.t9n."}),this._languageId=x,this._layerMap=new Map}updateFeatureLayerForModel(t,i){let e=this._getApiKey(t);this._layerMap.set(e,i)}getFeatureLayerForModel(t){let i=this._getApiKey(t);return this._layerMap.get(i)}async setProfileForModel(t,i,e={locale:"en"}){d(i)&&(i=I(i));let a=await f(e.locale,u("./assets/editor-profile/t9n"),"messages.");if(!a)throw new Error(`Failed to load the language bundle for ${e.locale}`);this.disposeForModel(t);let r=this._getApiKey(t),s=new F(i,a);this._modelToProfileMap.set(r,s);let l=w(s);this.updateApiContextForModel(t,{locale:e.locale,profile:l});let c=i?.variables?.find(v=>v.name==="$layer");c&&this.updateFeatureLayerForModel(t,c.definition)}},n=new p,k={setProfileForModel:n.setProfileForModel.bind(n),getApiLibraryForModel:n.getApiLibraryForModel.bind(n)};async function C(){return await import("./O6HSGCKR.js").then(m=>m.default)}return{a:n,b:C}},a)
|