@arcgis/coding-components 4.32.0-next.13 → 4.32.0-next.15

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 (63) hide show
  1. package/dist/arcgis-coding-components/{FPOL2BEL.js → 2CVIOMKH.js} +2 -2
  2. package/dist/arcgis-coding-components/{USJ7SAB2.js → 2D3BWPSU.js} +2 -2
  3. package/dist/arcgis-coding-components/{4RHZSPJV.js → 2YFJS7XQ.js} +3 -3
  4. package/dist/arcgis-coding-components/{CL373GDF.js → 3422DY3P.js} +2 -2
  5. package/dist/arcgis-coding-components/{LDSUVXW2.js → 3LSWS7FT.js} +2 -2
  6. package/dist/arcgis-coding-components/{CEHUYPP2.js → 5T663F6Q.js} +2 -2
  7. package/dist/arcgis-coding-components/{BWOKZODB.js → 64VEBYVX.js} +2 -2
  8. package/dist/arcgis-coding-components/{TUB427UW.js → 7OBIA2XJ.js} +2 -2
  9. package/dist/arcgis-coding-components/{UUUC7XIZ.js → BJGUCS43.js} +2 -2
  10. package/dist/arcgis-coding-components/{XI5ZWDUN.js → BWK7EQP6.js} +2 -2
  11. package/dist/arcgis-coding-components/{5LMSN5RL.js → CAA47EUZ.js} +2 -2
  12. package/dist/arcgis-coding-components/{QONAMC3B.js → DZDQDVV3.js} +2 -2
  13. package/dist/arcgis-coding-components/{CIGCJXO5.js → FAGIYQPW.js} +2 -2
  14. package/dist/arcgis-coding-components/{BF7JEABZ.js → GYBX7QS7.js} +2 -2
  15. package/dist/arcgis-coding-components/{WBUEC35L.js → IQZDPPD7.js} +2 -2
  16. package/dist/arcgis-coding-components/{I3RBYSZA.js → JNWI6EDP.js} +2 -2
  17. package/dist/arcgis-coding-components/{ZQQDQBDT.js → K4L2UZRI.js} +2 -2
  18. package/dist/arcgis-coding-components/{3RRBRW2X.js → LIYPNMUL.js} +1 -1
  19. package/dist/arcgis-coding-components/{OHJTM2C5.js → LYEPMZLP.js} +2 -2
  20. package/dist/arcgis-coding-components/{B6XCXAED.js → NIIJIQZX.js} +2 -2
  21. package/dist/arcgis-coding-components/{CZ6YM5LE.js → O7AZMWXX.js} +2 -2
  22. package/dist/arcgis-coding-components/{5MH2Z2IX.js → ODJ5UGMY.js} +2 -2
  23. package/dist/arcgis-coding-components/{5P2NCGKI.js → OKFR5LOF.js} +1 -1
  24. package/dist/arcgis-coding-components/{BDC2JQ6B.js → OKJVLQMC.js} +2 -2
  25. package/dist/arcgis-coding-components/{QI3AZ6GD.js → OYXWVZMR.js} +2 -2
  26. package/dist/arcgis-coding-components/{HMAPGZSJ.js → PUYCSL7H.js} +2 -2
  27. package/dist/arcgis-coding-components/{FFLPWSG3.js → RADIZXOV.js} +2 -2
  28. package/dist/arcgis-coding-components/{U4LWIF7T.js → RVGSEQOS.js} +2 -2
  29. package/dist/arcgis-coding-components/{P4JNCJKA.js → SOSUHTY6.js} +2 -2
  30. package/dist/arcgis-coding-components/{BK7KEM33.js → TMBWTB7Q.js} +2 -2
  31. package/dist/arcgis-coding-components/{M5OFOACH.js → TQQPW3EU.js} +1 -1
  32. package/dist/arcgis-coding-components/{SZSNDETG.js → U73HUAYO.js} +2 -2
  33. package/dist/arcgis-coding-components/{5QM4GBKS.js → WQ74UIHL.js} +2 -2
  34. package/dist/arcgis-coding-components/{5TDJBX35.js → WXEPBHKV.js} +2 -2
  35. package/dist/arcgis-coding-components/{REBWA5VB.js → XUK7QRPC.js} +1 -1
  36. package/dist/arcgis-coding-components/arcgis-coding-components.esm.js +2 -2
  37. package/dist/arcgis-coding-components/assets/code-editor/sql-expr.worker.js +1 -1
  38. package/dist/chunks/arcade-defaults.js +1 -1
  39. package/dist/chunks/arcade-executor.js +1 -1
  40. package/dist/chunks/arcade-mode.js +1 -1
  41. package/dist/chunks/arcade-service-accessors.js +1 -1
  42. package/dist/chunks/fields.js +1 -1
  43. package/dist/chunks/language-defaults-base.js +1 -1
  44. package/dist/chunks/markdown.js +1 -1
  45. package/dist/chunks/monaco-importer.js +1 -1
  46. package/dist/chunks/runtime.js +1 -1
  47. package/dist/chunks/sql-expr-defaults.js +1 -1
  48. package/dist/chunks/sql-expr-mode.js +1 -1
  49. package/dist/chunks/useT9n.js +1 -1
  50. package/dist/components/arcgis-arcade-editor/customElement.js +1 -1
  51. package/dist/components/arcgis-arcade-results/customElement.js +1 -1
  52. package/dist/components/arcgis-arcade-suggestions/customElement.js +1 -1
  53. package/dist/components/arcgis-code-editor/customElement.js +1 -1
  54. package/dist/components/arcgis-editor-variables/customElement.js +1 -1
  55. package/dist/components/arcgis-language-api-panel/customElement.js +1 -1
  56. package/dist/components/arcgis-sql-expression-editor/customElement.js +1 -1
  57. package/dist/components/arcgis-sql-expression-fields/customElement.js +1 -1
  58. package/dist/docs/api.json +2 -2
  59. package/dist/docs/docs.json +2 -2
  60. package/dist/docs/web-types.json +1 -1
  61. package/dist/index.js +1 -1
  62. package/dist/loader.js +1 -1
  63. package/package.json +6 -6
@@ -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.32/esri/copyright.txt for details.
4
- * v4.32.0-next.13
4
+ * v4.32.0-next.15
5
5
  */
6
- import{b,d,e as g,f as F,g as M}from"./BWOKZODB.js";import{c as m,d as y,e as h}from"./REBWA5VB.js";import{x as f}from"./WBUEC35L.js";import{i as u}from"./5P2NCGKI.js";var A=a=>{let e=a.variables[0],i=e&&e.type==="featureSet"?w(e):void 0,{apiVersion:t,bundles:o,hiddenApiItems:r}=a.toEditorProfileDefinition();return{apiVersion:t,bundles:o,variables:i?[i]:[],hiddenApiItems:r?.map(s=>s.toLowerCase())}};function w(a){let{name:e}=a,i=a.getDescription(),{definition:t}=a.toProfileVariableDefinition(),o={label:e,detail:e,insertText:e,insertTextMode:h.asIs,insertTextFormat:y.PlainText,kind:m.Field},r={name:e,description:i,type:"dictionary",properties:[],completion:o};if(!t||!("fields"in t))return r;let[s,l]=g(t.fields,i);return r.properties=s,o.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(a){if(!d(a))return;let e=T();if(!e)return;let i={variables:[],hiddenApiItems:a.hiddenApiItems?.map(t=>t.toLowerCase())};return e.variables.forEach(t=>{if(a.disabledVariables?.includes(t.name))return;let o=a.definitions[t.name];switch(t.type){case"featureSet":return b(o)?i.variables.push({...t,type:t.type,definition:o}):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 o=await u(t.locale,f("./assets/arcade-language/t9n"),"profile.t9n.");if(!o)throw new Error(`Failed to load the language bundle for ${t.locale}`);this.disposeForModel(e);let r=this._getApiKey(e),s=new F(i,o);this._modelToProfileMap.set(r,s);let l=A(s);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)};export{n as a};
6
+ import{b,d,e as g,f as F,g as M}from"./64VEBYVX.js";import{c as m,d as y,e as h}from"./XUK7QRPC.js";import{x as f}from"./IQZDPPD7.js";import{i as u}from"./OKFR5LOF.js";var A=a=>{let e=a.variables[0],i=e&&e.type==="featureSet"?w(e):void 0,{apiVersion:t,bundles:o,hiddenApiItems:r}=a.toEditorProfileDefinition();return{apiVersion:t,bundles:o,variables:i?[i]:[],hiddenApiItems:r?.map(s=>s.toLowerCase())}};function w(a){let{name:e}=a,i=a.getDescription(),{definition:t}=a.toProfileVariableDefinition(),o={label:e,detail:e,insertText:e,insertTextMode:h.asIs,insertTextFormat:y.PlainText,kind:m.Field},r={name:e,description:i,type:"dictionary",properties:[],completion:o};if(!t||!("fields"in t))return r;let[s,l]=g(t.fields,i);return r.properties=s,o.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(a){if(!d(a))return;let e=T();if(!e)return;let i={variables:[],hiddenApiItems:a.hiddenApiItems?.map(t=>t.toLowerCase())};return e.variables.forEach(t=>{if(a.disabledVariables?.includes(t.name))return;let o=a.definitions[t.name];switch(t.type){case"featureSet":return b(o)?i.variables.push({...t,type:t.type,definition:o}):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 o=await u(t.locale,f("./assets/arcade-language/t9n"),"profile.t9n.");if(!o)throw new Error(`Failed to load the language bundle for ${t.locale}`);this.disposeForModel(e);let r=this._getApiKey(e),s=new F(i,o);this._modelToProfileMap.set(r,s);let l=A(s);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)};export{n as a};
@@ -1,8 +1,8 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  * See https://js.arcgis.com/4.32/esri/copyright.txt for details.
4
- * v4.32.0-next.13
4
+ * v4.32.0-next.15
5
5
  */
6
- import"./M5OFOACH.js";var e={wordPattern:/(#?-?\d*\.\d\w*%?)|((::|[@#.!:])?[\w-?]+%?)|::|[@#.!:]/g,comments:{blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string","comment"]},{open:"'",close:"'",notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:new RegExp("^\\s*\\/\\*\\s*#region\\b\\s*(.*?)\\s*\\*\\/"),end:new RegExp("^\\s*\\/\\*\\s*#endregion\\b.*\\*\\/")}}},t={defaultToken:"",tokenPostfix:".css",ws:`[
6
+ import"./TQQPW3EU.js";var e={wordPattern:/(#?-?\d*\.\d\w*%?)|((::|[@#.!:])?[\w-?]+%?)|::|[@#.!:]/g,comments:{blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}",notIn:["string","comment"]},{open:"[",close:"]",notIn:["string","comment"]},{open:"(",close:")",notIn:["string","comment"]},{open:'"',close:'"',notIn:["string","comment"]},{open:"'",close:"'",notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{markers:{start:new RegExp("^\\s*\\/\\*\\s*#region\\b\\s*(.*?)\\s*\\*\\/"),end:new RegExp("^\\s*\\/\\*\\s*#endregion\\b.*\\*\\/")}}},t={defaultToken:"",tokenPostfix:".css",ws:`[
7
7
  \r\f]*`,identifier:"-?-?([a-zA-Z]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))([\\w\\-]|(\\\\(([0-9a-fA-F]{1,6}\\s?)|[^[0-9a-fA-F])))*",brackets:[{open:"{",close:"}",token:"delimiter.bracket"},{open:"[",close:"]",token:"delimiter.bracket"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],tokenizer:{root:[{include:"@selector"}],selector:[{include:"@comments"},{include:"@import"},{include:"@strings"},["[@](keyframes|-webkit-keyframes|-moz-keyframes|-o-keyframes)",{token:"keyword",next:"@keyframedeclaration"}],["[@](page|content|font-face|-moz-document)",{token:"keyword"}],["[@](charset|namespace)",{token:"keyword",next:"@declarationbody"}],["(url-prefix)(\\()",["attribute.value",{token:"delimiter.parenthesis",next:"@urldeclaration"}]],["(url)(\\()",["attribute.value",{token:"delimiter.parenthesis",next:"@urldeclaration"}]],{include:"@selectorname"},["[\\*]","tag"],["[>\\+,]","delimiter"],["\\[",{token:"delimiter.bracket",next:"@selectorattribute"}],["{",{token:"delimiter.bracket",next:"@selectorbody"}]],selectorbody:[{include:"@comments"},["[*_]?@identifier@ws:(?=(\\s|\\d|[^{;}]*[;}]))","attribute.name","@rulevalue"],["}",{token:"delimiter.bracket",next:"@pop"}]],selectorname:[["(\\.|#(?=[^{])|%|(@identifier)|:)+","tag"]],selectorattribute:[{include:"@term"},["]",{token:"delimiter.bracket",next:"@pop"}]],term:[{include:"@comments"},["(url-prefix)(\\()",["attribute.value",{token:"delimiter.parenthesis",next:"@urldeclaration"}]],["(url)(\\()",["attribute.value",{token:"delimiter.parenthesis",next:"@urldeclaration"}]],{include:"@functioninvocation"},{include:"@numbers"},{include:"@name"},{include:"@strings"},["([<>=\\+\\-\\*\\/\\^\\|\\~,])","delimiter"],[",","delimiter"]],rulevalue:[{include:"@comments"},{include:"@strings"},{include:"@term"},["!important","keyword"],[";","delimiter","@pop"],["(?=})",{token:"",next:"@pop"}]],warndebug:[["[@](warn|debug)",{token:"keyword",next:"@declarationbody"}]],import:[["[@](import)",{token:"keyword",next:"@declarationbody"}]],urldeclaration:[{include:"@strings"},[`[^)\r
8
8
  ]+`,"string"],["\\)",{token:"delimiter.parenthesis",next:"@pop"}]],parenthizedterm:[{include:"@term"},["\\)",{token:"delimiter.parenthesis",next:"@pop"}]],declarationbody:[{include:"@term"},[";","delimiter","@pop"],["(?=})",{token:"",next:"@pop"}]],comments:[["\\/\\*","comment","@comment"],["\\/\\/+.*","comment"]],comment:[["\\*\\/","comment","@pop"],[/[^*/]+/,"comment"],[/./,"comment"]],name:[["@identifier","attribute.value"]],numbers:[["-?(\\d*\\.)?\\d+([eE][\\-+]?\\d+)?",{token:"attribute.value.number",next:"@units"}],["#[0-9a-fA-F_]+(?!\\w)","attribute.value.hex"]],units:[["(em|ex|ch|rem|fr|vmin|vmax|vw|vh|vm|cm|mm|in|px|pt|pc|deg|grad|rad|turn|s|ms|Hz|kHz|%)?","attribute.value.unit","@pop"]],keyframedeclaration:[["@identifier","attribute.value"],["{",{token:"delimiter.bracket",switchTo:"@keyframebody"}]],keyframebody:[{include:"@term"},["{",{token:"delimiter.bracket",next:"@selectorbody"}],["}",{token:"delimiter.bracket",next:"@pop"}]],functioninvocation:[["@identifier\\(",{token:"attribute.value",next:"@functionarguments"}]],functionarguments:[["\\$@identifier@ws:","attribute.name"],["[,]","delimiter"],{include:"@term"},["\\)",{token:"attribute.value",next:"@pop"}]],strings:[['~?"',{token:"string",next:"@stringenddoublequote"}],["~?'",{token:"string",next:"@stringendquote"}]],stringenddoublequote:[["\\\\.","string"],['"',{token:"string",next:"@pop"}],[/[^\\"]+/,"string"],[".","string"]],stringendquote:[["\\\\.","string"],["'",{token:"string",next:"@pop"}],[/[^\\']+/,"string"],[".","string"]]}};export{e as conf,t as language};