@arcgis/coding-components 5.0.0-next.48 → 5.0.0-next.49

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 (84) hide show
  1. package/dist/addons.js +1 -1
  2. package/dist/cdn/{NPYMLDL7.js → 2CWMDJ7N.js} +2 -2
  3. package/dist/cdn/{ORAIHCZU.js → 2LGQHOFB.js} +2 -2
  4. package/dist/cdn/{UFPJAC7J.js → 3ZA27IVO.js} +2 -2
  5. package/dist/cdn/{GETWCRTV.js → 42PRVX7X.js} +2 -2
  6. package/dist/cdn/{VNPGBNUQ.js → 4JEAYZZP.js} +2 -2
  7. package/dist/cdn/{GYSBLOJJ.js → 4RLS3LTR.js} +2 -2
  8. package/dist/cdn/{LCGDWKBQ.js → 57MHFOW6.js} +2 -2
  9. package/dist/cdn/{3H3HZXTB.js → 5J2PUGN5.js} +2 -2
  10. package/dist/cdn/{MPT7B7MD.js → 5WELIQIW.js} +1 -1
  11. package/dist/cdn/{LWP6FLLV.js → 6UU3AZIV.js} +1 -1
  12. package/dist/cdn/{3GS662UF.js → BA6WLKZM.js} +2 -2
  13. package/dist/cdn/{4L34AVJE.js → BY4AFKIC.js} +2 -2
  14. package/dist/cdn/{2PBTYW6O.js → BZLN2SFC.js} +2 -2
  15. package/dist/cdn/{67M4T47G.js → CDP2XNXH.js} +2 -2
  16. package/dist/cdn/{7FCZO3IH.js → CH4A2OJ6.js} +2 -2
  17. package/dist/cdn/{RGZ72UDH.js → CTP32LBR.js} +2 -2
  18. package/dist/cdn/{ZPSCKCHP.js → D5O6UHQG.js} +2 -2
  19. package/dist/cdn/{22D4IJ74.js → EZHZAVDA.js} +2 -2
  20. package/dist/cdn/{O3CVBL5Z.js → FP5U4QC6.js} +2 -2
  21. package/dist/cdn/{WTLQ3JYG.js → FT4UGWHI.js} +1 -1
  22. package/dist/cdn/{YINPXUSP.js → HXJE3VGW.js} +1 -1
  23. package/dist/cdn/{NXPDOPBX.js → IBIR3PUX.js} +2 -2
  24. package/dist/cdn/{A64PTIMU.js → IEUH4RSG.js} +2 -2
  25. package/dist/cdn/{52ED2BNS.js → IP4SB23U.js} +2 -2
  26. package/dist/cdn/{6TQ55IOA.js → IPHOEZWJ.js} +2 -2
  27. package/dist/cdn/{UBTVPDWP.js → IVLTMCDK.js} +2 -2
  28. package/dist/cdn/{CHW2EHOX.js → JNINOYOA.js} +3 -3
  29. package/dist/cdn/JU3PVOWY.js +4 -0
  30. package/dist/cdn/{SQ22L6VG.js → N24OTAZ3.js} +2 -2
  31. package/dist/cdn/{RK2VCUEE.js → N3ZYNPZI.js} +1 -1
  32. package/dist/cdn/{CIKAEZNX.js → NCI6IR52.js} +1 -1
  33. package/dist/cdn/{7WY7ECII.js → PJ6BYRSO.js} +1 -1
  34. package/dist/cdn/{J3PBJDVP.js → QUAEYILR.js} +2 -2
  35. package/dist/cdn/{P5AYVVOM.js → QZXAUE65.js} +2 -2
  36. package/dist/cdn/{KT6MJ6Z5.js → RO2FI4MA.js} +2 -2
  37. package/dist/cdn/{6EYIWK5Z.js → S5M26M4N.js} +2 -2
  38. package/dist/cdn/{7BZYGHJQ.js → SABVOJJN.js} +2 -2
  39. package/dist/cdn/{NVU7MTWQ.js → SGDNM22A.js} +1 -1
  40. package/dist/cdn/{NIEX7EWZ.js → VQJPRJ4D.js} +2 -2
  41. package/dist/cdn/{BMQKYWF4.js → VW4LVEJJ.js} +2 -2
  42. package/dist/cdn/{22LOUWDB.js → WTB3GNRJ.js} +2 -2
  43. package/dist/cdn/{NMLNQG3A.js → WXRUVJSI.js} +2 -2
  44. package/dist/cdn/{V5Z6LL7P.js → YGYBHZLF.js} +2 -2
  45. package/dist/cdn/{G4PQ7JVR.js → YLGV5W3C.js} +2 -2
  46. package/dist/cdn/{JKXBLMUJ.js → YN5NPZOK.js} +2 -2
  47. package/dist/cdn/{CNI5CD3V.js → YXSOCPKK.js} +2 -2
  48. package/dist/cdn/{PDEQ3BV7.js → ZB6CW54L.js} +2 -2
  49. package/dist/cdn/index.js +2 -2
  50. package/dist/chunks/arcade-contribution.js +1 -1
  51. package/dist/chunks/arcade-defaults.js +1 -1
  52. package/dist/chunks/arcade-executor.js +1 -1
  53. package/dist/chunks/arcade-mode.js +1 -1
  54. package/dist/chunks/arcade-service-accessors.js +1 -1
  55. package/dist/chunks/colorize.js +1 -1
  56. package/dist/chunks/editor.js +1 -1
  57. package/dist/chunks/fields.js +1 -1
  58. package/dist/chunks/language-defaults-base.js +1 -1
  59. package/dist/chunks/markdown.js +1 -1
  60. package/dist/chunks/monaco-importer.js +1 -1
  61. package/dist/chunks/runtime.js +1 -1
  62. package/dist/chunks/sql-expr-defaults.js +1 -1
  63. package/dist/chunks/sql-expr-mode.js +1 -1
  64. package/dist/chunks/sql-expr-service-accessors.js +1 -1
  65. package/dist/chunks/useT9n.js +1 -1
  66. package/dist/chunks/utilities.js +1 -1
  67. package/dist/components/arcgis-arcade-coding-assistant/customElement.js +1 -1
  68. package/dist/components/arcgis-arcade-editor/customElement.js +1 -1
  69. package/dist/components/arcgis-arcade-results/customElement.js +1 -1
  70. package/dist/components/arcgis-arcade-suggestions/customElement.js +1 -1
  71. package/dist/components/arcgis-code-editor/customElement.js +1 -1
  72. package/dist/components/arcgis-code-viewer/customElement.js +1 -1
  73. package/dist/components/arcgis-editor-variables/customElement.js +1 -1
  74. package/dist/components/arcgis-language-api-panel/customElement.js +1 -1
  75. package/dist/components/arcgis-sql-expression-editor/customElement.js +1 -1
  76. package/dist/components/arcgis-sql-expression-fields/customElement.js +1 -1
  77. package/dist/docs/api.json +2 -2
  78. package/dist/docs/docs.json +2 -2
  79. package/dist/docs/web-types.json +1 -1
  80. package/dist/index.js +1 -1
  81. package/dist/loader.js +1 -1
  82. package/dist/monacoStyles.js +1 -1
  83. package/package.json +5 -5
  84. package/dist/cdn/5TEOU7N3.js +0 -4
@@ -1,7 +1,7 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
3
- v5.0.0-next.48 */
4
- import{a as Q,b as X,c as Y,d,e as f}from"./LWP6FLLV.js";import{b as J}from"./A64PTIMU.js";import{a as Z}from"./CHW2EHOX.js";import{b as D,c as S,d as v,e as H}from"./YINPXUSP.js";import{i as z}from"./7WY7ECII.js";import{K as B,q,s as V}from"./LCGDWKBQ.js";import{Gl as $,Pl as A}from"./7FCZO3IH.js";export default $arcgis.t(([x,_e,me,be,ge,{getDeclaredVoxelMembers:we,getDeclaredPixelMembers:Ce}])=>{var L=t=>t!==void 0,F=t=>t!==null;function le(t){return!!t&&typeof t=="object"&&"declaredClass"in t&&typeof t.declaredClass=="string"&&t.declaredClass.startsWith("esri.layers.")&&P(t)&&"queryFeatures"in t&&typeof t.queryFeatures=="function"}function pe(t){return!!t&&typeof t=="object"&&"declaredClass"in t&&typeof t.declaredClass=="string"&&(t.declaredClass==="esri.Map"||t.declaredClass==="esri.WebMap"||t.declaredClass==="esri.WebScene")}function De(t){return!!t&&typeof t=="object"&&"loadAll"in t&&typeof t.loadAll=="function"}function ce(t){return!!t&&typeof t=="object"&&"portalItem"in t&&t.portalItem!=null}function ue(t){return!!t&&typeof t=="object"&&"portalItem"in t&&t.portalItem!=null}function P(t){return!!t&&typeof t=="object"&&"fields"in t&&Array.isArray(t.fields)}function M(t){return!!t&&typeof t=="object"&&"url"in t&&typeof t.url=="string"}function Se(t){return M(t)&&/\/(?:featureserver|mapserver)(?:\/|$)/iu.test(t.url??"")}function he(t){return M(t)||P(t)||ue(t)}function tt(t){return he(t)&&"type"in t&&t.type==="voxel"}function it(t){return he(t)&&"type"in t&&t.type==="pixel"}function rt(t){return M(t)||P(t)||ue(t)}function st(t){return ce(t)||pe(t)||Se(t)}function ee(t){return!!t&&typeof t=="object"&&"declaredClass"in t&&t.declaredClass==="esri.layers.support.Subtype"}function j(t){return!!t&&typeof t=="object"&&"declaredClass"in t&&t.declaredClass==="esri.layers.support.CodedValueDomain"}function ve(t){return!!t&&typeof t=="object"&&"declaredClass"in t&&t.declaredClass==="esri.layers.support.InheritedDomain"}function nt(t){return!!t&&typeof t=="object"&&"id"in t&&typeof t.id=="string"&&"definitions"in t&&typeof t.definitions=="object"&&!Array.isArray(t.definitions)}function h(t){return!!t&&typeof t=="object"&&"title"in t&&typeof t.title=="string"}function Fe(t){return!!t&&typeof t=="object"&&"url"in t&&typeof t.url=="string"}function de(t){return!!t&&typeof t=="object"&&"layerId"in t&&typeof t.layerId=="number"}function E(t){return!!t&&typeof t=="object"&&"typeIdField"in t&&"types"in t}function te(t){return!!t&&typeof t=="object"&&"getFieldDomain"in t&&typeof t.getFieldDomain=="function"}function y(t){return!!t&&typeof t=="object"&&"subtypeField"in t}function xe(t){return y(t)&&"subtypes"in t}function Te(t){return!!t&&typeof t=="object"&&"portalItem"in t}function Ie(t){return de(t)&&"relationships"in t&&"url"in t&&Array.isArray(t.relationships)&&typeof t.url=="string"}function Pe(t){return!!t&&typeof t=="object"&&"isTable"in t&&typeof t.isTable=="boolean"}function Me(t){if(t&&typeof t=="object"){if(Pe(t))return t.isTable||"type"in t&&t.type==="table";if("geometryType"in t)return t.geometryType===""||t.geometryType==="esriGeometryNull"||t.geometryType===null}return!1}function Ve(t){return!Me(t)}function $e(t){return!!t&&typeof t=="object"&&"load"in t&&typeof t.load=="function"}function Ae(t){return!!t&&typeof t=="object"&&"type"in t&&t.type==="voxel"}function ie(t){return!!t&&typeof t=="object"&&"type"in t&&typeof t.type=="string"&&["imagery","imagery-tile"].includes(t.type)}async function fe(t){if(!t)return null;let e;return P(t)?e=t:e=new x(t),$e(e)&&await e.load(),e}async function Le(t){t+="/layers";let e=await _e(t,{responseType:"json",query:{f:"json"}}),i=t.endsWith("MapServer/layers")?"data":"query",r=re(e.data?.layers,i),s=re(e.data?.tables,i);return{layers:r,tables:s}}function re(t,e){return t?t.filter(i=>{switch(i.type){case"Feature Layer":case"Oriented Imagery Layer":case"Catalog Layer":case"Table":return(i.capabilities?i.capabilities.toLowerCase().split(",").map(r=>r.trim()):[]).includes(e);default:return!1}}):[]}async function je(t,e){let i=new x({url:`${t.url}/${e.relatedTableId}`});return await i.load(),i}function R(t){return(e,i)=>{if(e.type==="oid")return-1;if(i.type==="oid")return 1;if(y(t)){if(e.name===t.subtypeField)return-1;if(i.name===t.subtypeField)return 1}if(E(t)){if(e.name===t.typeIdField)return-1;if(i.name===t.typeIdField)return 1}return e.name.localeCompare(i.name,"en",{sensitivity:"base"})}}function se(t,e){return t?.every(i=>i.domains?.[e.name]?.type==="inherited")??!1}var Ee=/^[a-z_$][a-z0-9_$]*$/giu;function O(t,e=!0){return t.match(Ee)?`${e?".":""}${t}`:`["${t}"]`}function ye(t,e){return t?`${t}${O(e)}`:e}function ne(t){return Te(t)?t.portalItem:null}function ot(t,e,i=!1){let r=e,s=[],o=[];return d(t).forEach(n=>{r&&(r+=`
3
+ v5.0.0-next.49 */
4
+ import{a as Q,b as X,c as Y,d,e as f}from"./6UU3AZIV.js";import{b as J}from"./IEUH4RSG.js";import{a as Z}from"./JNINOYOA.js";import{b as D,c as S,d as v,e as H}from"./HXJE3VGW.js";import{i as z}from"./PJ6BYRSO.js";import{K as B,q,s as V}from"./57MHFOW6.js";import{Gl as $,Pl as A}from"./CH4A2OJ6.js";export default $arcgis.t(([x,_e,me,be,ge,{getDeclaredVoxelMembers:we,getDeclaredPixelMembers:Ce}])=>{var L=t=>t!==void 0,F=t=>t!==null;function le(t){return!!t&&typeof t=="object"&&"declaredClass"in t&&typeof t.declaredClass=="string"&&t.declaredClass.startsWith("esri.layers.")&&P(t)&&"queryFeatures"in t&&typeof t.queryFeatures=="function"}function pe(t){return!!t&&typeof t=="object"&&"declaredClass"in t&&typeof t.declaredClass=="string"&&(t.declaredClass==="esri.Map"||t.declaredClass==="esri.WebMap"||t.declaredClass==="esri.WebScene")}function De(t){return!!t&&typeof t=="object"&&"loadAll"in t&&typeof t.loadAll=="function"}function ce(t){return!!t&&typeof t=="object"&&"portalItem"in t&&t.portalItem!=null}function ue(t){return!!t&&typeof t=="object"&&"portalItem"in t&&t.portalItem!=null}function P(t){return!!t&&typeof t=="object"&&"fields"in t&&Array.isArray(t.fields)}function M(t){return!!t&&typeof t=="object"&&"url"in t&&typeof t.url=="string"}function Se(t){return M(t)&&/\/(?:featureserver|mapserver)(?:\/|$)/iu.test(t.url??"")}function he(t){return M(t)||P(t)||ue(t)}function tt(t){return he(t)&&"type"in t&&t.type==="voxel"}function it(t){return he(t)&&"type"in t&&t.type==="pixel"}function rt(t){return M(t)||P(t)||ue(t)}function st(t){return ce(t)||pe(t)||Se(t)}function ee(t){return!!t&&typeof t=="object"&&"declaredClass"in t&&t.declaredClass==="esri.layers.support.Subtype"}function j(t){return!!t&&typeof t=="object"&&"declaredClass"in t&&t.declaredClass==="esri.layers.support.CodedValueDomain"}function ve(t){return!!t&&typeof t=="object"&&"declaredClass"in t&&t.declaredClass==="esri.layers.support.InheritedDomain"}function nt(t){return!!t&&typeof t=="object"&&"id"in t&&typeof t.id=="string"&&"definitions"in t&&typeof t.definitions=="object"&&!Array.isArray(t.definitions)}function h(t){return!!t&&typeof t=="object"&&"title"in t&&typeof t.title=="string"}function Fe(t){return!!t&&typeof t=="object"&&"url"in t&&typeof t.url=="string"}function de(t){return!!t&&typeof t=="object"&&"layerId"in t&&typeof t.layerId=="number"}function E(t){return!!t&&typeof t=="object"&&"typeIdField"in t&&"types"in t}function te(t){return!!t&&typeof t=="object"&&"getFieldDomain"in t&&typeof t.getFieldDomain=="function"}function y(t){return!!t&&typeof t=="object"&&"subtypeField"in t}function xe(t){return y(t)&&"subtypes"in t}function Te(t){return!!t&&typeof t=="object"&&"portalItem"in t}function Ie(t){return de(t)&&"relationships"in t&&"url"in t&&Array.isArray(t.relationships)&&typeof t.url=="string"}function Pe(t){return!!t&&typeof t=="object"&&"isTable"in t&&typeof t.isTable=="boolean"}function Me(t){if(t&&typeof t=="object"){if(Pe(t))return t.isTable||"type"in t&&t.type==="table";if("geometryType"in t)return t.geometryType===""||t.geometryType==="esriGeometryNull"||t.geometryType===null}return!1}function Ve(t){return!Me(t)}function $e(t){return!!t&&typeof t=="object"&&"load"in t&&typeof t.load=="function"}function Ae(t){return!!t&&typeof t=="object"&&"type"in t&&t.type==="voxel"}function ie(t){return!!t&&typeof t=="object"&&"type"in t&&typeof t.type=="string"&&["imagery","imagery-tile"].includes(t.type)}async function fe(t){if(!t)return null;let e;return P(t)?e=t:e=new x(t),$e(e)&&await e.load(),e}async function Le(t){t+="/layers";let e=await _e(t,{responseType:"json",query:{f:"json"}}),i=t.endsWith("MapServer/layers")?"data":"query",r=re(e.data?.layers,i),s=re(e.data?.tables,i);return{layers:r,tables:s}}function re(t,e){return t?t.filter(i=>{switch(i.type){case"Feature Layer":case"Oriented Imagery Layer":case"Catalog Layer":case"Table":return(i.capabilities?i.capabilities.toLowerCase().split(",").map(r=>r.trim()):[]).includes(e);default:return!1}}):[]}async function je(t,e){let i=new x({url:`${t.url}/${e.relatedTableId}`});return await i.load(),i}function R(t){return(e,i)=>{if(e.type==="oid")return-1;if(i.type==="oid")return 1;if(y(t)){if(e.name===t.subtypeField)return-1;if(i.name===t.subtypeField)return 1}if(E(t)){if(e.name===t.typeIdField)return-1;if(i.name===t.typeIdField)return 1}return e.name.localeCompare(i.name,"en",{sensitivity:"base"})}}function se(t,e){return t?.every(i=>i.domains?.[e.name]?.type==="inherited")??!1}var Ee=/^[a-z_$][a-z0-9_$]*$/giu;function O(t,e=!0){return t.match(Ee)?`${e?".":""}${t}`:`["${t}"]`}function ye(t,e){return t?`${t}${O(e)}`:e}function ne(t){return Te(t)?t.portalItem:null}function ot(t,e,i=!1){let r=e,s=[],o=[];return d(t).forEach(n=>{r&&(r+=`
5
5
 
6
6
  `),r+=`**${n.name}** (${n.alias})
7
7
  ${n.type}`,n.description&&(r+=`
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
3
- v5.0.0-next.48 */
4
- import a from"./52ED2BNS.js";import{b as m,c as y,d as h}from"./YINPXUSP.js";import{g as f}from"./7WY7ECII.js";import{K as u}from"./LCGDWKBQ.js";export default $arcgis.t(([{e:b,g:d,h:g,j:F,k:M}])=>{var A=o=>{let e=o.variables[0],i=e&&e.type==="featureSet"?w(e):void 0,{apiVersion:t,bundles:a,hiddenApiItems:s}=o.toEditorProfileDefinition();return{apiVersion:t,bundles:a,variables:i?[i]:[],hiddenApiItems:s?.map(r=>r.toLowerCase())}};function w(o){let{name:e}=o,i=o.getDescription(),{definition:t}=o.toProfileVariableDefinition(),a={label:e,detail:e,insertText:e,insertTextMode:h.asIs,insertTextFormat:y.PlainText,kind:m.Field},s={name:e,description:i,type:"dictionary",properties:[],completion:a};if(!t||!("fields"in t))return s;let[r,l]=g(t.fields,i);return s.properties=r,a.documentation={kind:"markdown",value:l},s}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 e=T();if(!e)return;let i={variables:[],hiddenApiItems:o.hiddenApiItems?.map(t=>t.toLowerCase())};return e.variables.forEach(t=>{if(o.disabledVariables?.includes(t.name))return;let a=o.definitions[t.name];switch(t.type){case"featureSet":return b(a)?i.variables.push({...t,type:t.type,definition:a}):void 0;default:throw Error(`sdkVariable type not supported (yet) type: ${t.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(e,i){let t=this._getApiKey(e);this._layerMap.set(t,i)}getFeatureLayerForModel(e){let i=this._getApiKey(e);return this._layerMap.get(i)}async setProfileForModel(e,i,t={locale:"en"}){d(i)&&(i=I(i));let a=await f(t.locale,u("./assets/editor-profile/t9n"),"messages.");if(!a)throw new Error(`Failed to load the language bundle for ${t.locale}`);this.disposeForModel(e);let s=this._getApiKey(e),r=new F(i,a);this._modelToProfileMap.set(s,r);let l=A(r);this.updateApiContextForModel(e,{locale:t.locale,profile:l});let c=i?.variables?.find(v=>v.name==="$layer");c&&this.updateFeatureLayerForModel(e,c.definition)}},n=new p,k={setProfileForModel:n.setProfileForModel.bind(n),getApiLibraryForModel:n.getApiLibraryForModel.bind(n)};return n},a)
3
+ v5.0.0-next.49 */
4
+ import a from"./IP4SB23U.js";import{b as m,c as y,d as h}from"./HXJE3VGW.js";import{g as f}from"./PJ6BYRSO.js";import{K as u}from"./57MHFOW6.js";export default $arcgis.t(([{e:b,g:d,h:g,j:F,k:M}])=>{var A=o=>{let e=o.variables[0],i=e&&e.type==="featureSet"?w(e):void 0,{apiVersion:t,bundles:a,hiddenApiItems:s}=o.toEditorProfileDefinition();return{apiVersion:t,bundles:a,variables:i?[i]:[],hiddenApiItems:s?.map(r=>r.toLowerCase())}};function w(o){let{name:e}=o,i=o.getDescription(),{definition:t}=o.toProfileVariableDefinition(),a={label:e,detail:e,insertText:e,insertTextMode:h.asIs,insertTextFormat:y.PlainText,kind:m.Field},s={name:e,description:i,type:"dictionary",properties:[],completion:a};if(!t||!("fields"in t))return s;let[r,l]=g(t.fields,i);return s.properties=r,a.documentation={kind:"markdown",value:l},s}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 e=T();if(!e)return;let i={variables:[],hiddenApiItems:o.hiddenApiItems?.map(t=>t.toLowerCase())};return e.variables.forEach(t=>{if(o.disabledVariables?.includes(t.name))return;let a=o.definitions[t.name];switch(t.type){case"featureSet":return b(a)?i.variables.push({...t,type:t.type,definition:a}):void 0;default:throw Error(`sdkVariable type not supported (yet) type: ${t.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(e,i){let t=this._getApiKey(e);this._layerMap.set(t,i)}getFeatureLayerForModel(e){let i=this._getApiKey(e);return this._layerMap.get(i)}async setProfileForModel(e,i,t={locale:"en"}){d(i)&&(i=I(i));let a=await f(t.locale,u("./assets/editor-profile/t9n"),"messages.");if(!a)throw new Error(`Failed to load the language bundle for ${t.locale}`);this.disposeForModel(e);let s=this._getApiKey(e),r=new F(i,a);this._modelToProfileMap.set(s,r);let l=A(r);this.updateApiContextForModel(e,{locale:t.locale,profile:l});let c=i?.variables?.find(v=>v.name==="$layer");c&&this.updateFeatureLayerForModel(e,c.definition)}},n=new p,k={setProfileForModel:n.setProfileForModel.bind(n),getApiLibraryForModel:n.getApiLibraryForModel.bind(n)};return n},a)
@@ -1,4 +1,4 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
3
- v5.0.0-next.48 */
4
- import{a}from"./P5AYVVOM.js";import{a as m}from"./22LOUWDB.js";import"./NXPDOPBX.js";import c from"./6TQ55IOA.js";import b from"./52ED2BNS.js";import"./LWP6FLLV.js";import"./A64PTIMU.js";import"./CHW2EHOX.js";import"./YINPXUSP.js";import"./NMLNQG3A.js";import"./7WY7ECII.js";import{F as n,J as d,g as r,i,m as s}from"./LCGDWKBQ.js";import"./CIKAEZNX.js";import"./7FCZO3IH.js";import"./WTLQ3JYG.js";export default $arcgis.t(([,h])=>{var g=r`:host{calcite-flow{height:100%}calcite-list-item-group{background-color:var(--calcite-color-foreground-2)}}`,c=class extends n{constructor(){super(...arguments),this.messages=m(),this._filterValue="",this._flowItemRenderers=[],this._mutationCounter=1,this.loading=!1,this.arcgisClose=s({bubbles:!1}),this.arcgisFieldSelected=s({bubbles:!1})}static{this.properties={_filterValue:16,_flowItemRenderers:16,_mutationCounter:16,loading:5,modelId:1}}static{this.styles=g}willUpdate(t){t.has("modelId")&&(this._flowItemRenderers=[])}disconnectedCallback(){super.disconnectedCallback(),this._flowObserver?.disconnect()}_handleSelectField(t){if(t.target instanceof HTMLElement)switch(t.target.tagName.toLowerCase()){case"calcite-list-item":{let e=t.target.value;this.arcgisFieldSelected.emit(e??"");break}case"calcite-action":t.stopPropagation();break}}_handleSelectDomain(t){let e=t.target.value;this.arcgisFieldSelected.emit(e?`'${e}'`:"")}_emitClose(){this.arcgisClose.emit()}render(){let t=h.getFeatureLayerForModel(this.modelId??"");return this.loading||!this.modelId||!t?i`<calcite-block .heading=${this.messages.availablefields??""}></calcite-block>`:i`<calcite-flow><calcite-flow-item heading-level=2 .heading=${this.messages.availablefields??""} closable @calciteFlowItemClose=${this._emitClose}><calcite-list label=fields filter-enabled>${a(t.fields,e=>e.name,e=>i`<calcite-list-item @click=${this._handleSelectField} .label=${e.name} .description=${e.alias??""} .value=${e.name}>${e.domain&&i`<calcite-action slot=actions-end text=open icon=chevron-right @click=${()=>{let o=e.domain;o?.type==="coded-value"&&(this._flowItemRenderers=[...this._flowItemRenderers,()=>i`<calcite-flow-item closable heading-level=2 .heading=${this.messages.domainvalues??""} .description=${e.name} @calciteFlowItemClose=${this._emitClose}><calcite-list label=domains>${a(o.codedValues,l=>l.code,l=>i`<calcite-list-item @click=${this._handleSelectDomain} .label=${l.name} .description=${String(l.code)} .value=${String(l.code)}></calcite-list-item>`)}</calcite-list></calcite-flow-item>`])}}></calcite-action>`||""}</calcite-list-item>`)}</calcite-list></calcite-flow-item>${this._flowItemRenderers.map(e=>e())}</calcite-flow>`}};d("arcgis-sql-expression-fields",c);return c},b,c)
3
+ v5.0.0-next.49 */
4
+ import{a}from"./QZXAUE65.js";import{a as m}from"./WTB3GNRJ.js";import"./IBIR3PUX.js";import c from"./IPHOEZWJ.js";import b from"./IP4SB23U.js";import"./6UU3AZIV.js";import"./IEUH4RSG.js";import"./JNINOYOA.js";import"./HXJE3VGW.js";import"./WXRUVJSI.js";import"./PJ6BYRSO.js";import{F as n,J as d,g as r,i,m as s}from"./57MHFOW6.js";import"./NCI6IR52.js";import"./CH4A2OJ6.js";import"./FT4UGWHI.js";export default $arcgis.t(([,h])=>{var g=r`:host{calcite-flow{height:100%}calcite-list-item-group{background-color:var(--calcite-color-foreground-2)}}`,c=class extends n{constructor(){super(...arguments),this.messages=m(),this._filterValue="",this._flowItemRenderers=[],this._mutationCounter=1,this.loading=!1,this.arcgisClose=s({bubbles:!1}),this.arcgisFieldSelected=s({bubbles:!1})}static{this.properties={_filterValue:16,_flowItemRenderers:16,_mutationCounter:16,loading:5,modelId:1}}static{this.styles=g}willUpdate(t){t.has("modelId")&&(this._flowItemRenderers=[])}disconnectedCallback(){super.disconnectedCallback(),this._flowObserver?.disconnect()}_handleSelectField(t){if(t.target instanceof HTMLElement)switch(t.target.tagName.toLowerCase()){case"calcite-list-item":{let e=t.target.value;this.arcgisFieldSelected.emit(e??"");break}case"calcite-action":t.stopPropagation();break}}_handleSelectDomain(t){let e=t.target.value;this.arcgisFieldSelected.emit(e?`'${e}'`:"")}_emitClose(){this.arcgisClose.emit()}render(){let t=h.getFeatureLayerForModel(this.modelId??"");return this.loading||!this.modelId||!t?i`<calcite-block .heading=${this.messages.availablefields??""}></calcite-block>`:i`<calcite-flow><calcite-flow-item heading-level=2 .heading=${this.messages.availablefields??""} closable @calciteFlowItemClose=${this._emitClose}><calcite-list label=fields filter-enabled>${a(t.fields,e=>e.name,e=>i`<calcite-list-item @click=${this._handleSelectField} .label=${e.name} .description=${e.alias??""} .value=${e.name}>${e.domain&&i`<calcite-action slot=actions-end text=open icon=chevron-right @click=${()=>{let o=e.domain;o?.type==="coded-value"&&(this._flowItemRenderers=[...this._flowItemRenderers,()=>i`<calcite-flow-item closable heading-level=2 .heading=${this.messages.domainvalues??""} .description=${e.name} @calciteFlowItemClose=${this._emitClose}><calcite-list label=domains>${a(o.codedValues,l=>l.code,l=>i`<calcite-list-item @click=${this._handleSelectDomain} .label=${l.name} .description=${String(l.code)} .value=${String(l.code)}></calcite-list-item>`)}</calcite-list></calcite-flow-item>`])}}></calcite-action>`||""}</calcite-list-item>`)}</calcite-list></calcite-flow-item>${this._flowItemRenderers.map(e=>e())}</calcite-flow>`}};d("arcgis-sql-expression-fields",c);return c},b,c)