@arcgis/coding-components 4.31.0-next.38 → 4.31.0-next.39
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-073d8983.js → p-015b1d68.js} +2 -2
- package/dist/arcgis-coding-components/{p-3381cbb3.js → p-28acab6c.js} +2 -2
- package/dist/arcgis-coding-components/{p-b0adca59.entry.js → p-2eb422a3.entry.js} +2 -2
- package/dist/arcgis-coding-components/{p-c60f1c50.js → p-49609316.js} +2 -2
- package/dist/arcgis-coding-components/{p-7ce1f34b.js → p-4e2e3e01.js} +9 -9
- package/dist/arcgis-coding-components/{p-69f6692f.js → p-6a19be9f.js} +2 -2
- package/dist/arcgis-coding-components/{p-ffed1f26.js → p-76c32028.js} +2 -2
- package/dist/arcgis-coding-components/{p-55dc17b5.entry.js → p-7c8b04e3.entry.js} +2 -2
- package/dist/arcgis-coding-components/{p-e37185ef.js → p-888bb59b.js} +2 -2
- package/dist/arcgis-coding-components/{p-fce66178.js → p-9069a0c1.js} +1 -1
- package/dist/arcgis-coding-components/{p-4e928153.entry.js → p-b8c9bf7d.entry.js} +2 -2
- package/dist/arcgis-coding-components/{p-76acc36e.js → p-ccf6336a.js} +2 -2
- package/dist/arcgis-coding-components/{p-eef6fa27.js → p-db2a170c.js} +2 -2
- package/dist/arcgis-coding-components/{p-faf88d6b.js → p-dcf253ab.js} +2 -2
- package/dist/arcgis-coding-components/{p-c27e1be0.js → p-e0f1e7f3.js} +1 -1
- package/dist/arcgis-coding-components/{p-e6c85bbb.js → p-e2d85032.js} +2 -2
- package/dist/arcgis-coding-components/{p-e0cea0a8.js → p-ea7529ed.js} +1 -1
- package/dist/arcgis-coding-components/{p-1d458152.js → p-f8ee27ad.js} +2 -2
- package/dist/cjs/{app-globals-8c111153.js → app-globals-6fb78710.js} +1 -1
- package/dist/cjs/{arcade-defaults-11f7d268.js → arcade-defaults-d036104c.js} +4 -4
- package/dist/cjs/{arcade-mode-07c807b8.js → arcade-mode-eb056788.js} +2 -2
- package/dist/cjs/arcgis-arcade-editor_6.cjs.entry.js +5 -5
- 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-34ad091b.js → css-7b04b068.js} +1 -1
- package/dist/cjs/{cssMode-bfb409ae.js → cssMode-8013f438.js} +2 -2
- package/dist/cjs/{html-b91f2de3.js → html-50ec430d.js} +2 -2
- package/dist/cjs/{htmlMode-5a9f2b7b.js → htmlMode-4cdcf1ff.js} +2 -2
- package/dist/cjs/{index-398efbd8.js → index-eeeca2f5.js} +1 -1
- package/dist/cjs/index.cjs.js +4 -4
- package/dist/cjs/{javascript-9c5e51cf.js → javascript-548ba2c8.js} +3 -3
- package/dist/cjs/{jsonMode-7e3a4ee0.js → jsonMode-c8c7e04c.js} +2 -2
- package/dist/cjs/{language-defaults-base-37d42cfc.js → language-defaults-base-f30a54dd.js} +9 -9
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/{sql-expr-defaults-e6b4b714.js → sql-expr-defaults-e70d9835.js} +4 -4
- package/dist/cjs/{sql-expr-mode-389da910.js → sql-expr-mode-55997400.js} +4 -4
- package/dist/cjs/{tsMode-ad3d89e7.js → tsMode-853ae732.js} +2 -2
- package/dist/cjs/{typescript-75eb2530.js → typescript-89445900.js} +2 -2
- 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/arcade-variables.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-arcade-variables.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-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-656WPE3G.js +1 -1
- package/dist/components/code-editor.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/language-defaults-base.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/sql-expression-fields.js +1 -1
- package/dist/components/useT9n.js +1 -1
- package/dist/components/utilities.js +1 -1
- package/dist/esm/{app-globals-a5f17ef9.js → app-globals-dbbf7d2a.js} +1 -1
- package/dist/esm/{arcade-defaults-00680bcb.js → arcade-defaults-011c78bc.js} +4 -4
- package/dist/esm/{arcade-mode-627341f8.js → arcade-mode-d466bba8.js} +2 -2
- package/dist/esm/arcgis-arcade-editor_6.entry.js +5 -5
- 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-8ad9d577.js → css-b9780251.js} +1 -1
- package/dist/esm/{cssMode-17974b04.js → cssMode-247a9125.js} +2 -2
- package/dist/esm/{html-fb4b0ddf.js → html-2596cb9e.js} +2 -2
- package/dist/esm/{htmlMode-8fb4b96c.js → htmlMode-98eaa399.js} +2 -2
- package/dist/esm/{index-368c6a65.js → index-a93d1ad8.js} +1 -1
- package/dist/esm/index.js +4 -4
- package/dist/esm/{javascript-41a8850e.js → javascript-56762342.js} +3 -3
- package/dist/esm/{jsonMode-95982e18.js → jsonMode-9498fe95.js} +2 -2
- package/dist/esm/{language-defaults-base-b8c444af.js → language-defaults-base-3db6a0a1.js} +9 -9
- package/dist/esm/loader.js +4 -4
- package/dist/esm/{sql-expr-defaults-a6190532.js → sql-expr-defaults-58c1461c.js} +4 -4
- package/dist/esm/{sql-expr-mode-c034d7e3.js → sql-expr-mode-d4ba81c5.js} +4 -4
- package/dist/esm/{tsMode-6a09145b.js → tsMode-6d3c0b38.js} +2 -2
- package/dist/esm/{typescript-1b68bb5a.js → typescript-1c651a24.js} +2 -2
- 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.39
|
|
5
5
|
*/
|
|
6
|
-
import{p as e,b as
|
|
6
|
+
import{p as e,b as i}from"./p-ea7529ed.js";export{s as setNonce}from"./p-ea7529ed.js";import{g as t}from"./p-e0f1e7f3.js";(()=>{const i=import.meta.url,t={};return""!==i&&(t.resourcesUrl=new URL(".",i).href),e(t)})().then((async e=>(await t(),i([["p-7c8b04e3",[[1,"arcgis-sql-expression-fields",{loading:[4],modelId:[1,"model-id"],_mutationCounter:[32],_flowItemRenderers:[32],_filterValue:[32]},null,{modelId:["modelIdPropChanged"]}]]],["p-2eb422a3",[[0,"arcgis-arcade-editor",{profile:[16],script:[1025],testData:[16],suggestions:[16],snippets:[16],hideDocumentationActions:[4,"hide-documentation-actions"],hideSideBar:[4,"hide-side-bar"],sideActionBarExpanded:[1540,"side-action-bar-expanded"],openedSidePanel:[1537,"opened-side-panel"],editorOptions:[16],editorInstance:[16],_preparingArcade:[32],_editorProfile:[32],_apiLibrary:[32],_showExecutionPanel:[32],_resultPanel:[32],_executingScript:[32],_consoleLogs:[32],_executionResult:[32],messages:[32],getScript:[64],setFocus:[64],getEditorInstance:[64],getTestResult:[64],updateThemeColors:[64]},null,{messages:["_messagesChanged"],profile:["_profileChanged"],testData:["_testDataChanged"],snippets:["_snippetChanged"]}],[1,"arcgis-arcade-results",{loading:[4],openedResultPanel:[1537,"opened-result-panel"],result:[16],consoleLogs:[16]}],[1,"arcgis-arcade-suggestions",{suggestions:[16],_selectedSuggestion:[32],_filterValue:[32],_colorizeStyle:[32]},null,{suggestions:["suggestionsPropChanged"]}],[1,"arcgis-arcade-variables",{loading:[4],modelId:[1,"model-id"],_mutationCounter:[32],_flowItemRenderers:[32],_filterValue:[32]},null,{modelId:["modelIdPropChanged"]}],[0,"arcgis-code-editor",{value:[1],language:[1],modelId:[1,"model-id"],editorOptions:[16],editorInstance:[16],getValue:[64],setValue:[64],insertText:[64],insertSnippet:[64],getEditorInstance:[64],setFocus:[64]},null,{language:["languagePropChange"],modelId:["modelIdPropChange"],editorOptions:["editorOptionsPropChange"]}],[1,"arcgis-language-api-panel",{hideDocumentationActions:[4,"hide-documentation-actions"],loading:[4],apiLibrary:[16],_selectedApiItem:[32],_filterValue:[32],_colorizeStyle:[32]}]]],["p-b8c9bf7d",[[0,"arcgis-sql-expression-editor",{profile:[16],_preparing:[32],_editorProfile:[32],_activeAction:[32],_apiLibrary:[32]},null,{profile:["_profileChanged"]}]]]],e))));
|
|
@@ -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.39
|
|
5
5
|
*/
|
|
6
|
-
export{a as arcade}from"./p-
|
|
6
|
+
export{a as arcade}from"./p-888bb59b.js";import"./p-4e2e3e01.js";import"./p-ea7529ed.js";
|
|
@@ -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.39
|
|
5
5
|
*/
|
|
6
|
-
import{N as t,M as e}from"./p-
|
|
6
|
+
import{N as t,M as e}from"./p-4e2e3e01.js";
|
|
7
7
|
/*!-----------------------------------------------------------------------------
|
|
8
8
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
9
9
|
* Version: 0.45.0(5e5af013f8d295555a7210df0d5f2cea0bf5dd56)
|
|
@@ -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.39
|
|
5
5
|
*/
|
|
6
|
-
import{g as e,P as t,z as s,Q as i}from"./p-
|
|
6
|
+
import{g as e,P as t,z as s,Q as i}from"./p-4e2e3e01.js";import{s as n}from"./p-dcf253ab.js";import"./p-ea7529ed.js";class o{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),this._client=null}async _getClientProxy(){if(!this._client){const{languageId:t,languageOptions:s}=this._defaults;this._worker=e.createWebWorker({moduleId:"SqlExprWorker",label:t,createData:{languageId:t,languageOptions:s}}),this._client=this._worker.getProxy()}return await this._client}async getLanguageServiceWorker(...e){const t=await this._getClientProxy();return await(this._worker?.withSyncedResources(e)),t}}var r,a;!function(e){e.ARGS="args",e.CLAUSES="clauses",e.ELSE="else",e.END="end",e.EXPR="expr",e.LEFT="left",e.OPERAND="operand",e.QUALIFIER="qualifier",e.RIGHT="right",e.START="start",e.VALUE="value"}(r||(r={})),function(e){e.CASE_EXPRESSION="case-expression",e.EXPRESSION_LIST="expression-list",e.FUNCTION="function",e.INTERVAL="interval",e.INTERVAL_QUALIFIER="interval-qualifier",e.WHEN_CLAUSE="when-clause",e.UNARY_EXPRESSION="unary-expression",e.BINARY_EXPRESSION="binary-expression"}(a||(a={})),Object.values({date:"DATE",float:"FLOAT",integer:"INTEGER",real:"REAL",smallint:"SMALLINT",time:"TIME",timestamp:"TIMESTAMP",varchar:"VARCHAR"});const c={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:"'"}]},l={defaultToken:"",tokenPostfix:".sql",ignoreCase:!0,brackets:[{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"}],keywords:["AND","AS","BETWEEN","BOTH","CASE","CAST","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","DATE","DAY","ELSE","END","ESCAPE","FALSE","FLOAT","FOR","FROM","HOUR","IN","INTEGER","INTERVAL","IS","LEADING","LIKE","MINUTE","MONTH","NOT","NULL","OR","POSITION","REAL","SECOND","SMALLINT","SUBSTRING","THEN","TIME","TIMESTAMP","TIMEZONE_HOUR","TIMEZONE_MINUTE","TO","TRAILING","TRIM","TRUE","VARCHAR","WHEN","WITH","YEAR","ZONE"],operators:["AND","BETWEEN","IN","LIKE","NOT","OR","IS","NULL"],builtinFunctions:["CAST","EXTRACT","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","ABS","ACOS","ASIN","ATAN","CEILING","COS","FLOOR","LOG","LOG10","POWER","ROUND","SIGN","SIN","TAN","CHAR_LENGTH","COALESCE","CONCAT","LOWER","POSITION","TRIM","UPPER"],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 u{constructor(e,t){this._worker=e,this._defaults=t}async provideCompletionItems(e,t){try{const s=await this._worker(e.uri),i=e.getWordUntilPosition(t),n={startLineNumber:t.lineNumber,endLineNumber:t.lineNumber,startColumn:i.startColumn,endColumn:i.endColumn},o=this._defaults.getApiContextForModel(e.uri);return await s.doComplete(e.uri.toString(),n,t,o)}catch(e){return console.error(e),{suggestions:[]}}}}class h{constructor(s,i,{defaults:n,diagnosticService:o}){this._languageId=s,this._worker=i,this._disposables=[],this._listener=new Map,this._diagnosticsService=o,this._defaults=n;const r=e=>{const s=e.getLanguageId();if(s!==this._languageId)return;const i=t((()=>{this._doValidate(e,s).catch((e=>{throw e}))}));this._listener.set(e.uri.toString(),e.onDidChangeContent(i)),this._doValidate(e,s).catch(console.error)},a=t=>{const s=t.uri.toString();e.setModelMarkers(t,this._languageId,[]);const i=this._listener.get(s);i&&(i.dispose(),this._listener.delete(s))};this._disposables.push(e.onDidCreateModel(r)),this._disposables.push(e.onWillDisposeModel((e=>a(e)))),this._disposables.push(e.onDidChangeModelLanguage((e=>{a(e.model),r(e.model)}))),this._disposables.push(n.onDidChange((()=>{e.getModels().forEach((e=>{e.getLanguageId()===this._languageId&&(a(e),r(e))}))}))),this._disposables.push(n.onModelContextDidChange((t=>{e.getModels().forEach((e=>{e.getLanguageId()===this._languageId&&e.uri.toString()===t&&this._doValidate(e,this._languageId).catch(console.error)}))}))),this._disposables.push({dispose:()=>{this._listener.forEach((e=>e.dispose())),this._listener.clear()}}),e.getModels().forEach(r)}async _doValidate(t,s){if(t.isAttachedToEditor())try{const i=await this._worker(t.uri),n=this._defaults.getApiContextForModel(t.uri),o=await i.doValidation(t.uri.toString(),n);this._diagnosticsService.fireDiagnosticsChange(t.uri,o),e.setModelMarkers(t,s,o)}catch(e){console.error(e)}}}let E;async function d(...e){return await new Promise(((t,s)=>{E?t(E(...e)):s(new Error("sql expression worker not registered!"))}))}const T=new class{constructor(){this._onDiagnosticsChange=new i}get onDiagnosticsChange(){return this._onDiagnosticsChange.event}fireDiagnosticsChange(e,t){this._onDiagnosticsChange.fire({uri:e,diagnostics:t})}};function p(){return T}function N(e){const t=new o(e),i=async(...e)=>await t.getLanguageServiceWorker(...e);E=i,s.setMonarchTokensProvider(n.languageId,l),s.setLanguageConfiguration(n.languageId,c);const r=new u(i,n);s.registerCompletionItemProvider(n.languageId,r),new h(e.languageId,i,{defaults:e,diagnosticService:T})}export{p as getSqlExprDiagnosticService,d as getSqlExprWorker,N as setupMode}
|