@arcgis/coding-components 4.34.0-next.133 → 4.34.0-next.135
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/addons.js +1 -1
- package/dist/cdn/{NBC2N7DQ.js → 26U6WQKS.js} +2 -2
- package/dist/cdn/{TVXP2N25.js → 2UM2Y7V2.js} +2 -2
- package/dist/cdn/2YZ4PMTC.js +4 -0
- package/dist/cdn/{YSBS6TWD.js → 3UHKPHDU.js} +1 -1
- package/dist/cdn/{XHW3JCAA.js → 46WSIHRW.js} +1 -1
- package/dist/cdn/{SFZHBHD6.js → 4JBVT7NK.js} +2 -2
- package/dist/cdn/{ADOFXSHY.js → 55VBZFUY.js} +2 -2
- package/dist/cdn/{TY4ZPHY5.js → 6OYS3NK4.js} +2 -2
- package/dist/cdn/{HAQPAAAD.js → 6ZCJY3FM.js} +2 -2
- package/dist/cdn/{ELU3G7A2.js → 77PW5YJT.js} +2 -2
- package/dist/cdn/{EZPQRXVF.js → AE2DO5IY.js} +2 -2
- package/dist/cdn/{PMG7E6F7.js → B3WO75T6.js} +1 -1
- package/dist/cdn/{NJ4ZAXGL.js → B7UNWQLJ.js} +2 -2
- package/dist/cdn/{444YJJLQ.js → BEDVSMT5.js} +2 -2
- package/dist/cdn/{OAXYRUYW.js → BETHAEVX.js} +1 -1
- package/dist/cdn/{NJ5RM7DS.js → C5WNJSRL.js} +2 -2
- package/dist/cdn/{LB5UVB2T.js → CM223OSI.js} +2 -2
- package/dist/cdn/{IFNUEEY6.js → FLYTO5LR.js} +2 -2
- package/dist/cdn/{BHKLXIUC.js → GPNOANBI.js} +2 -2
- package/dist/cdn/{JYIKHQHZ.js → GQJIRLDI.js} +2 -2
- package/dist/cdn/{33FMU32I.js → GYLNCWS4.js} +2 -2
- package/dist/cdn/{H5JKFDB4.js → JEBKTCTX.js} +2 -2
- package/dist/cdn/JUM2FAM6.js +63 -0
- package/dist/cdn/{INUF6LI3.js → K6MDQLJP.js} +2 -2
- package/dist/cdn/{VTGZADX5.js → K6PW6FNL.js} +1 -1
- package/dist/cdn/{7RHH4P5M.js → KKYF7BKF.js} +2 -2
- package/dist/cdn/{RGU2XCZ4.js → LZRLMCLP.js} +2 -2
- package/dist/cdn/{KOTYZLXM.js → MFBQC4FM.js} +2 -2
- package/dist/cdn/{TXLNSKBC.js → MO6V6DS4.js} +4 -4
- package/dist/cdn/{3J4MHZTC.js → PACGWRLY.js} +2 -2
- package/dist/cdn/{OYEHPNOM.js → QQYFC2FJ.js} +2 -2
- package/dist/cdn/{RLM24PPW.js → RJBRWRLR.js} +2 -2
- package/dist/cdn/{SMJH5SA6.js → RQDDULN7.js} +2 -2
- package/dist/cdn/{MPYVEDWN.js → SGGSM4FY.js} +2 -2
- package/dist/cdn/{YR54KJQM.js → SOIAM2PR.js} +2 -2
- package/dist/cdn/{5ODW6NHY.js → SU575K7S.js} +2 -2
- package/dist/cdn/{DSIF4ZUF.js → TMK3TWBH.js} +2 -2
- package/dist/cdn/{HX5KCZE7.js → TR6FAD3O.js} +1 -1
- package/dist/cdn/{YUXMLOLC.js → UBQG6BIZ.js} +2 -2
- package/dist/cdn/{7XLORGVX.js → UQ56X7GZ.js} +1 -1
- package/dist/cdn/{B2ETOF6E.js → UT2IYCOE.js} +2 -2
- package/dist/cdn/{IIV3BOUP.js → V7RMMP2N.js} +2 -2
- package/dist/cdn/{6G3BWD4I.js → WAWAPHMK.js} +2 -2
- package/dist/cdn/{VCVT33O7.js → YXQYVIZ3.js} +2 -2
- package/dist/cdn/assets/code-editor/arcade.worker.js +1626 -1705
- package/dist/cdn/assets/code-editor/css.worker.js +1513 -1592
- package/dist/cdn/assets/code-editor/editor.worker.js +2010 -2089
- package/dist/cdn/assets/code-editor/html.worker.js +2222 -2301
- package/dist/cdn/assets/code-editor/json.worker.js +2148 -2227
- package/dist/cdn/assets/code-editor/sql-expr.worker.js +36616 -36602
- package/dist/cdn/assets/code-editor/ts.worker.js +23578 -23657
- package/dist/cdn/index.js +2 -2
- package/dist/chunks/arcade-defaults.js +1 -1
- package/dist/chunks/arcade-executor.js +1 -1
- package/dist/chunks/arcade-mode.js +1 -1
- package/dist/chunks/arcade-service-accessors.js +1 -1
- package/dist/chunks/editor.js +1 -1
- package/dist/chunks/fields.js +1 -1
- package/dist/chunks/language-defaults-base.js +1 -1
- package/dist/chunks/markdown.js +45 -40
- package/dist/chunks/monaco-importer.js +1 -1
- package/dist/chunks/runtime.js +1 -1
- package/dist/chunks/setup-monaco.js +1 -1
- package/dist/chunks/sql-expr-contribution.js +1 -1
- package/dist/chunks/sql-expr-defaults.js +1 -1
- package/dist/chunks/sql-expr-mode.js +1 -1
- package/dist/chunks/sql-expr-service-accessors.js +1 -1
- package/dist/chunks/useT9n.js +1 -1
- package/dist/components/arcgis-arcade-coding-assistant/customElement.d.ts +8 -0
- package/dist/components/arcgis-arcade-coding-assistant/customElement.js +1 -1
- package/dist/components/arcgis-arcade-editor/customElement.d.ts +71 -0
- package/dist/components/arcgis-arcade-editor/customElement.js +1 -1
- package/dist/components/arcgis-arcade-results/customElement.d.ts +14 -0
- package/dist/components/arcgis-arcade-results/customElement.js +1 -1
- package/dist/components/arcgis-arcade-suggestions/customElement.d.ts +8 -0
- package/dist/components/arcgis-arcade-suggestions/customElement.js +1 -1
- package/dist/components/arcgis-code-editor/customElement.d.ts +53 -0
- package/dist/components/arcgis-code-editor/customElement.js +1 -1
- package/dist/components/arcgis-editor-variables/customElement.d.ts +19 -0
- package/dist/components/arcgis-editor-variables/customElement.js +1 -1
- package/dist/components/arcgis-language-api-panel/customElement.d.ts +23 -0
- package/dist/components/arcgis-language-api-panel/customElement.js +1 -1
- package/dist/components/arcgis-sql-expression-editor/customElement.d.ts +28 -0
- package/dist/components/arcgis-sql-expression-editor/customElement.js +1 -1
- package/dist/components/arcgis-sql-expression-fields/customElement.d.ts +8 -0
- package/dist/components/arcgis-sql-expression-fields/customElement.js +1 -1
- package/dist/docs/api.json +2 -2
- package/dist/docs/docs.json +2 -2
- package/dist/docs/web-types.json +1 -1
- package/dist/index.js +1 -1
- package/dist/loader.js +1 -1
- package/dist/monacoStyles.js +1 -1
- package/dist/types/preact.d.ts +6 -6
- package/dist/types/preact10.d.ts +41 -0
- package/package.json +5 -5
- package/dist/cdn/CARPBLSL.js +0 -63
- package/dist/cdn/ZCOIOSPC.js +0 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
3
|
-
v4.34.0-next.
|
|
4
|
-
import{a as f}from"./
|
|
3
|
+
v4.34.0-next.135 */
|
|
4
|
+
import{a as f}from"./RJBRWRLR.js";import a from"./FLYTO5LR.js";import{a as w}from"./K6PW6FNL.js";import{k as u}from"./MO6V6DS4.js";import{a as m}from"./3UHKPHDU.js";import{Gl as k,Sl as g,kk as L}from"./RQDDULN7.js";export default $arcgis.t(([d])=>{L();var E=new m,h=class{constructor(e){this._defaults=e,this._worker=null,this._client=null,this._configChangeListener=this._defaults.onDidChange(()=>this.stopWorker())}dispose(){this._configChangeListener.dispose(),this.stopWorker()}stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null,E=new m),this._client=null}static async waitForWorker(){return await E.promise}async _getClientProxy(){let e=await u();if(!this._client){let{languageId:t}=this._defaults;this._worker=e.createWebWorker({moduleId:"SqlExprWorker",label:t,createData:{languageId:t},host:this._defaults.workerHost}),E.resolve(this._worker),this._client=this._worker.getProxy()}return await this._client}async getLanguageServiceWorker(...e){let t=await this._getClientProxy();return await this._worker?.withSyncedResources(e),t}},M=["AND","AS","BOTH","CASE","CAST","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","DATE","DAY","DOY","DOW","ELSE","END","ESCAPE","FALSE","FLOAT","FOR","FROM","HOUR","IN","INT","INTEGER","INTERVAL","LEADING","LIKE","MINUTE","MONTH","POSITION","REAL","SECOND","SMALLINT","THEN","TIME","TIMESTAMP","TIMEZONE_HOUR","TIMEZONE_MINUTE","TO","TRAILING","TRIM","TRUE","VARCHAR","WEEK","WHEN","WITH","YEAR","ZONE"],b=["AND","BETWEEN","LIKE","NOT","OR","IS","NULL"],O=["CAST","EXTRACT","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","CURRENT_USER","ABS","ACOS","ASIN","ATAN","CEILING","COS","FLOOR","LOG","LOG10","MOD","NULLIF","POWER","ROUND","SIGN","SIN","TAN","TRUNCATE","CHAR_LENGTH","COALESCE","CONCAT","LOWER","POSITION","SUBSTRING","TRIM","UPPER"],D={comments:{lineComment:"--",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]},x={defaultToken:"",tokenPostfix:".arcgis",ignoreCase:!0,brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],keywords:M,operators:b,builtinFunctions:O,builtinVariables:[],tokenizer:{root:[{include:"@comments"},{include:"@whitespace"},{include:"@numbers"},{include:"@strings"},{include:"@complexIdentifiers"},{include:"@scopes"},[/[;,.]/,"delimiter"],[/[()]/,"@brackets"],[/[\w@#$]+/,{cases:{"@operators":"operator","@builtinVariables":"predefined","@builtinFunctions":"predefined","@keywords":"keyword","@default":"identifier"}}],[/[<>=!%&+\-*/|~^]/,"operator"]],whitespace:[[/\s+/,"white"]],comments:[[/--+.*/,"comment"],[/\/\*/,{token:"comment.quote",next:"@comment"}]],comment:[[/[^*/]+/,"comment"],[/\*\//,{token:"comment.quote",next:"@pop"}],[/./,"comment"]],numbers:[[/0[xX][0-9a-fA-F]*/,"number"],[/[$][+-]*\d*(\.\d*)?/,"number"],[/((\d+(\.\d*)?)|(\.\d+))([eE][\-+]?\d+)?/,"number"]],strings:[[/N'/,{token:"string",next:"@string"}],[/'/,{token:"string",next:"@string"}]],string:[[/[^']+/,"string"],[/''/,"string"],[/'/,{token:"string",next:"@pop"}]],complexIdentifiers:[[/"/,{token:"identifier.quote",next:"@quotedIdentifier"}]],quotedIdentifier:[[/[^"]+/,"identifier"],[/""/,"identifier"],[/"/,{token:"identifier.quote",next:"@pop"}]],scopes:[[/(BEGIN|CASE)\b/i,{token:"keyword.block"}],[/END\b/i,{token:"keyword.block"}],[/WHEN\b/i,{token:"keyword.choice"}],[/THEN\b/i,{token:"keyword.choice"}]]}},_=class{constructor(e,t){this._worker=e,this._defaults=t}async provideCompletionItems(e,t){try{let o=await this._worker(e.uri),r=e.getWordUntilPosition(t),n={startLineNumber:t.lineNumber,endLineNumber:t.lineNumber,startColumn:r.startColumn,endColumn:r.endColumn},c=this._defaults.getApiContextForModel(e.uri);return await o.doComplete(e.uri.toString(),n,t,c)}catch(o){return console.error(o),{suggestions:[]}}}},C=class{constructor(e,t,{defaults:o,diagnosticService:r}){this._languageId=e,this._worker=t,this._disposables=[],this._modelListeners=new Map,this._diagnosticsService=r,this._defaults=o,u().then(n=>{let c=i=>{let s=i.getLanguageId();if(s!==this._languageId)return;let l=w(()=>{this._doValidate(i,s).catch(R=>{throw R})}),S=i.onDidChangeContent(l),A=i.onDidChangeAttached(l);this._modelListeners.set(i.uri.toString(),[S,A]),this._doValidate(i,s).catch(console.error)},p=i=>{let s=i.uri.toString();n.setModelMarkers(i,this._languageId,[]);let l=this._modelListeners.get(s);if(l){for(;l.length;)l.pop()?.dispose();this._modelListeners.delete(s)}};this._disposables.push(n.onDidCreateModel(c)),this._disposables.push(n.onWillDisposeModel(i=>p(i))),this._disposables.push(n.onDidChangeModelLanguage(i=>{p(i.model),c(i.model)})),this._disposables.push(o.onDidChange(()=>{n.getModels().forEach(i=>{i.getLanguageId()===this._languageId&&(p(i),c(i))})})),this._disposables.push(o.onModelContextDidChange(i=>{n.getModels().forEach(s=>{s.getLanguageId()===this._languageId&&s.uri.toString()===i&&this._doValidate(s,this._languageId).catch(console.error)})})),this._disposables.push({dispose:()=>{this._modelListeners.forEach(i=>i.forEach(s=>s.dispose())),this._modelListeners.clear()}}),n.getModels().forEach(c)})}async _doValidate(e,t){let o=await u();if(e.isAttachedToEditor())try{let r=await this._worker(e.uri),n=this._defaults.getApiContextForModel(e.uri),c=await r.doValidation(e.uri.toString(),n);this._diagnosticsService.fireDiagnosticsChange(e.uri,c),o.setModelMarkers(e,t,c)}catch(r){console.error(r)}}},I;async function V(...a){return await h.waitForWorker(),await new Promise((e,t)=>{if(!I){t(new Error("sql expression worker not registered!"));return}e(I(...a))})}var T=class{constructor(){this._onDiagnosticsChange=new k}get onDiagnosticsChange(){return this._onDiagnosticsChange.event}fireDiagnosticsChange(e,t){this._onDiagnosticsChange.fire({uri:e,diagnostics:t})}},N=new T;async function B(){return await f(),N}function K(a){let e=new h(a),t=async(...r)=>await e.getLanguageServiceWorker(...r);I=t,g.setMonarchTokensProvider(d.languageId,x),g.setLanguageConfiguration(d.languageId,D);let o=new _(t,d);g.registerCompletionItemProvider(d.languageId,o),new C(a.languageId,t,{defaults:a,diagnosticService:N})}return{a:V,b:B,c:K}},a)
|