@arcgis/coding-components 4.31.0-next.94 → 4.31.0-next.96

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 (96) hide show
  1. package/dist/arcgis-coding-components/arcgis-coding-components.esm.js +2 -2
  2. package/dist/arcgis-coding-components/assets/code-editor/sql-expr.worker.js +37 -35
  3. package/dist/arcgis-coding-components/index.esm.js +2 -2
  4. package/dist/arcgis-coding-components/{p-973a4976.js → p-096f4565.js} +10 -10
  5. package/dist/arcgis-coding-components/{p-bf9b5da6.js → p-1682eead.js} +2 -2
  6. package/dist/arcgis-coding-components/{p-77b79cca.js → p-189cef6f.js} +2 -2
  7. package/dist/arcgis-coding-components/{p-7e2432a5.entry.js → p-3590cf7f.entry.js} +2 -2
  8. package/dist/arcgis-coding-components/{p-eb98521f.js → p-3f8d5222.js} +2 -2
  9. package/dist/arcgis-coding-components/{p-5c787aa4.entry.js → p-733023cc.entry.js} +2 -2
  10. package/dist/arcgis-coding-components/{p-6623351a.js → p-751c14fb.js} +1 -1
  11. package/dist/arcgis-coding-components/{p-4f49395b.entry.js → p-78b1bb02.entry.js} +2 -2
  12. package/dist/arcgis-coding-components/{p-3451638f.js → p-897eb0e2.js} +2 -2
  13. package/dist/arcgis-coding-components/{p-6227e5a2.js → p-8ba2e008.js} +2 -2
  14. package/dist/arcgis-coding-components/{p-11d8813b.js → p-8d7f4efe.js} +2 -2
  15. package/dist/arcgis-coding-components/{p-bb08ff15.js → p-9b065121.js} +2 -2
  16. package/dist/arcgis-coding-components/{p-64843088.js → p-9ccbfd99.js} +2 -2
  17. package/dist/arcgis-coding-components/{p-2f1ec781.js → p-a13a14b0.js} +1 -1
  18. package/dist/arcgis-coding-components/{p-677a0661.js → p-a7c11814.js} +1 -1
  19. package/dist/arcgis-coding-components/{p-9f1ccd63.js → p-ab29480f.js} +2 -2
  20. package/dist/arcgis-coding-components/{p-8d0bf22e.js → p-bf90142f.js} +3 -3
  21. package/dist/arcgis-coding-components/{p-d5c9cac8.js → p-eaf3e944.js} +2 -2
  22. package/dist/cjs/{app-globals-e46d727f.js → app-globals-d9fd6bf4.js} +1 -1
  23. package/dist/cjs/{arcade-defaults-dcb0f4b0.js → arcade-defaults-dbb08a08.js} +3 -3
  24. package/dist/cjs/{arcade-mode-d3713f5b.js → arcade-mode-354dd65a.js} +3 -3
  25. package/dist/cjs/arcgis-arcade-editor_6.cjs.entry.js +7 -7
  26. package/dist/cjs/arcgis-coding-components.cjs.js +3 -3
  27. package/dist/cjs/arcgis-sql-expression-editor.cjs.entry.js +4 -4
  28. package/dist/cjs/arcgis-sql-expression-fields.cjs.entry.js +4 -4
  29. package/dist/cjs/{css-295e3e78.js → css-87f7a82e.js} +1 -1
  30. package/dist/cjs/{cssMode-c12f94e2.js → cssMode-f7d50440.js} +3 -3
  31. package/dist/cjs/{html-cad5f4ed.js → html-2447aec5.js} +3 -3
  32. package/dist/cjs/{htmlMode-1e50e714.js → htmlMode-465f07e3.js} +3 -3
  33. package/dist/cjs/{index-df989bff.js → index-f7784f83.js} +1 -1
  34. package/dist/cjs/index.cjs.js +4 -4
  35. package/dist/cjs/{javascript-e7b094a0.js → javascript-a84b3dfd.js} +4 -4
  36. package/dist/cjs/{jsonMode-39d1263c.js → jsonMode-6e60fda1.js} +3 -3
  37. package/dist/cjs/loader.cjs.js +3 -3
  38. package/dist/cjs/{sql-expr-defaults-914e8354.js → sql-expr-defaults-d20b430f.js} +10 -10
  39. package/dist/cjs/{sql-expr-mode-cc3a3b21.js → sql-expr-mode-ca36b4d3.js} +4 -3
  40. package/dist/cjs/{tsMode-c628ad87.js → tsMode-94dce718.js} +3 -3
  41. package/dist/cjs/{typescript-3f9e8674.js → typescript-17dbaa12.js} +3 -3
  42. package/dist/cjs/{useT9n-49822c13.js → useT9n-59acb7fb.js} +3 -3
  43. package/dist/components/arcade-defaults.js +1 -1
  44. package/dist/components/arcade-mode.js +1 -1
  45. package/dist/components/arcade-results.js +1 -1
  46. package/dist/components/arcade-suggestions.js +1 -1
  47. package/dist/components/arcgis-arcade-editor.js +1 -1
  48. package/dist/components/arcgis-arcade-results.js +1 -1
  49. package/dist/components/arcgis-arcade-suggestions.js +1 -1
  50. package/dist/components/arcgis-assets.d.ts +1 -1
  51. package/dist/components/arcgis-assets.js +1 -1
  52. package/dist/components/arcgis-code-editor.js +1 -1
  53. package/dist/components/arcgis-editor-variables.js +1 -1
  54. package/dist/components/arcgis-language-api-panel.js +1 -1
  55. package/dist/components/arcgis-sql-expression-editor.js +1 -1
  56. package/dist/components/arcgis-sql-expression-fields.js +1 -1
  57. package/dist/components/chunk-IUUKU7EW.js +1 -1
  58. package/dist/components/code-editor.js +1 -1
  59. package/dist/components/editor-variables.js +1 -1
  60. package/dist/components/fields.js +1 -1
  61. package/dist/components/index.js +1 -1
  62. package/dist/components/index2.js +1 -1
  63. package/dist/components/language-api-panel.js +1 -1
  64. package/dist/components/markdown.js +1 -1
  65. package/dist/components/sql-expr-defaults.js +1 -1
  66. package/dist/components/sql-expr-mode.js +2 -1
  67. package/dist/components/useT9n.js +1 -1
  68. package/dist/components/utilities.js +1 -1
  69. package/dist/esm/{app-globals-ff8ecf1c.js → app-globals-5393f092.js} +1 -1
  70. package/dist/esm/{arcade-defaults-eea0f49a.js → arcade-defaults-75ce6d3e.js} +3 -3
  71. package/dist/esm/{arcade-mode-22179508.js → arcade-mode-7875f26b.js} +3 -3
  72. package/dist/esm/arcgis-arcade-editor_6.entry.js +7 -7
  73. package/dist/esm/arcgis-coding-components.js +4 -4
  74. package/dist/esm/arcgis-sql-expression-editor.entry.js +4 -4
  75. package/dist/esm/arcgis-sql-expression-fields.entry.js +4 -4
  76. package/dist/esm/{css-cce788e2.js → css-e0b72dc0.js} +1 -1
  77. package/dist/esm/{cssMode-e3d1519b.js → cssMode-32be63c9.js} +3 -3
  78. package/dist/esm/{html-2d7ce704.js → html-4d5f82ef.js} +3 -3
  79. package/dist/esm/{htmlMode-c520eb90.js → htmlMode-ce0703a2.js} +3 -3
  80. package/dist/esm/{index-d27fa889.js → index-41eb8945.js} +1 -1
  81. package/dist/esm/index.js +4 -4
  82. package/dist/esm/{javascript-731d88bd.js → javascript-ac8d281a.js} +4 -4
  83. package/dist/esm/{jsonMode-3d740d76.js → jsonMode-18f0c09f.js} +3 -3
  84. package/dist/esm/loader.js +4 -4
  85. package/dist/esm/{sql-expr-defaults-d9716c16.js → sql-expr-defaults-2136d2a9.js} +10 -10
  86. package/dist/esm/{sql-expr-mode-544eb8cb.js → sql-expr-mode-9885b07f.js} +4 -3
  87. package/dist/esm/{tsMode-664fa74d.js → tsMode-724af11f.js} +3 -3
  88. package/dist/esm/{typescript-e8be4b5c.js → typescript-648ed009.js} +3 -3
  89. package/dist/esm/{useT9n-dd9f43c8.js → useT9n-3fb56200.js} +3 -3
  90. package/dist/loader/cdn.js +1 -1
  91. package/dist/loader/index.cjs.js +1 -1
  92. package/dist/loader/index.es2017.js +1 -1
  93. package/dist/loader/index.js +1 -1
  94. package/dist/types/utils/sql-expr-monaco/sql-expr-completion.d.ts +19 -1
  95. package/dist/types/utils/sql-expr-monaco/sql-expr-parser-utils.d.ts +5 -0
  96. package/package.json +12 -13
@@ -1,7 +1,7 @@
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.94
4
+ * v4.31.0-next.96
5
5
  */
6
6
  import { editor } from 'monaco-editor';
7
7
  import { StandaloneServices } from 'monaco-editor/esm/vs/editor/standalone/browser/standaloneServices.js';
@@ -1,7 +1,7 @@
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.94
4
+ * v4.31.0-next.96
5
5
  */
6
6
  import { n as newLayersFeatureLayer, i as importRequest, s as supportedFields, a as newPortalPortalItem, b as newWebScene, c as newWebMap, f as fieldAlias, d as fieldTypeToIconName, e as fieldTypeToApiValueVarType } from './fields.js';
7
7
  import { InsertTextMode, InsertTextFormat, CompletionItemKind, MarkupKind } from 'vscode-languageserver-types';
@@ -1,7 +1,7 @@
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.94
4
+ * v4.31.0-next.96
5
5
  */
6
6
  import { editor, languages, Emitter } from 'monaco-editor';
7
7
  import { D as Deferred, u as debounce } from './index2.js';
@@ -316,6 +316,7 @@ class SqlExprCompletionProvider {
316
316
  endColumn: word.endColumn,
317
317
  };
318
318
  const apiContext = this._defaults.getApiContextForModel(model.uri);
319
+ console.log(await worker.doComplete(model.uri.toString(), range, position, apiContext));
319
320
  return await worker.doComplete(model.uri.toString(), range, position, apiContext);
320
321
  }
321
322
  catch (err) {
@@ -1,7 +1,7 @@
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.94
4
+ * v4.31.0-next.96
5
5
  */
6
6
  import { p as proxyExports, w as watch, C as Controller, s as setAmbientComponent } from './chunk-IUUKU7EW.js';
7
7
  import { p as startLocaleObserver, r as getElementLocales } from './index2.js';
@@ -1,7 +1,7 @@
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.94
4
+ * v4.31.0-next.96
5
5
  */
6
6
  import { d as createFilterExpression } from './index2.js';
7
7
 
@@ -1,7 +1,7 @@
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.94
4
+ * v4.31.0-next.96
5
5
  */
6
6
  const globalScripts = () => {};
7
7
 
@@ -1,10 +1,10 @@
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.94
4
+ * v4.31.0-next.96
5
5
  */
6
- import { m as main, f as fieldsToProfileValues, i as isPredefinedProfile, a as isFeatureSetCollectionDefinition, b as isFeatureSetDefinition, c as isFeatureDefinition, d as supportedLocales, L as LanguageDefaultsBase, e as fetchT9nStringsBundle, E as EditorProfile } from './sql-expr-defaults-d9716c16.js';
7
- import { g as getAssetPath } from './index-d27fa889.js';
6
+ import { m as main, f as fieldsToProfileValues, i as isPredefinedProfile, a as isFeatureSetCollectionDefinition, b as isFeatureSetDefinition, c as isFeatureDefinition, d as supportedLocales, L as LanguageDefaultsBase, e as fetchT9nStringsBundle, E as EditorProfile } from './sql-expr-defaults-2136d2a9.js';
7
+ import { g as getAssetPath } from './index-41eb8945.js';
8
8
 
9
9
  // #region convert editor profile to apiProfile
10
10
  /**
@@ -1,10 +1,10 @@
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.94
4
+ * v4.31.0-next.96
5
5
  */
6
- import { m as main, r as editor, Q as MarkerSeverity, R as Range, w as languages, T as debounce, D as Deferred, V as Emitter } from './sql-expr-defaults-d9716c16.js';
7
- import './index-d27fa889.js';
6
+ import { m as main, r as editor, Q as MarkerSeverity, R as Range, w as languages, T as debounce, D as Deferred, V as Emitter } from './sql-expr-defaults-2136d2a9.js';
7
+ import './index-41eb8945.js';
8
8
 
9
9
  var V={False:"false",Null:"null",True:"true"},f={Break:"break",Continue:"continue",Else:"else",For:"for",From:"from",Function:"function",If:"if",Import:"import",Export:"export",In:"in",Return:"return",Var:"var",While:"while"},xe=["++","--"],Ge=["-","+","!","~"],Je=["=","/=","*=","%=","+=","-="],Qe=["||","&&"],Lt=["|","&",">>","<<",">>>","^","==","!=","<","<=",">",">=","+","-","*","/","%"];var U=[[],[],[]];xe.forEach(e=>U[e.length-1]?.push(e));Ge.forEach(e=>U[e.length-1]?.push(e));Qe.forEach(e=>U[e.length-1]?.push(e));Je.forEach(e=>U[e.length-1]?.push(e));Lt.forEach(e=>U[e.length-1]?.push(e));var lt=Object.values(f),pt=Object.values(V);pt.map(e=>({label:e,kind:main.exports.CompletionItemKind.Constant}));lt.map(e=>({label:e,kind:main.exports.CompletionItemKind.Keyword}));
10
10
 
@@ -1,12 +1,12 @@
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.94
4
+ * v4.31.0-next.96
5
5
  */
6
- import { r as registerInstance, c as createEvent, g as getAssetPath, h, F as Fragment, H as Host, a as getElement } from './index-d27fa889.js';
7
- import { g as importArcade, h as isURL, j as hasSameOrigin, k as importRequest, D as Deferred, l as generateGuid, K as KeyCode, n as setValuesInString, q as quoteString, o as supportedFields, p as generateTokensCSSForColorMap, S as StandaloneServices, I as IStandaloneThemeService, r as editor, t as commonjsGlobal, u as setFocusOnElement, v as filterCollection, w as languages, x as sqlExprDefaults, R as Range, y as observeAncestorsMutation, U as Uri, z as getElementTheme, A as KeyMod, B as createFilterExpression, C as addLTRMark } from './sql-expr-defaults-d9716c16.js';
8
- import { u as useControllerManager, a as useT9n, g as getSet } from './useT9n-dd9f43c8.js';
9
- import { b as arcadeDefaults } from './arcade-defaults-eea0f49a.js';
6
+ import { r as registerInstance, c as createEvent, g as getAssetPath, h, F as Fragment, H as Host, a as getElement } from './index-41eb8945.js';
7
+ import { g as importArcade, h as isURL, j as hasSameOrigin, k as importRequest, D as Deferred, l as generateGuid, K as KeyCode, n as setValuesInString, q as quoteString, o as supportedFields, p as generateTokensCSSForColorMap, S as StandaloneServices, I as IStandaloneThemeService, r as editor, t as commonjsGlobal, u as setFocusOnElement, v as filterCollection, w as languages, x as sqlExprDefaults, R as Range, y as observeAncestorsMutation, U as Uri, z as getElementTheme, A as KeyMod, B as createFilterExpression, C as addLTRMark } from './sql-expr-defaults-2136d2a9.js';
8
+ import { u as useControllerManager, a as useT9n, g as getSet } from './useT9n-3fb56200.js';
9
+ import { b as arcadeDefaults } from './arcade-defaults-75ce6d3e.js';
10
10
 
11
11
  const DevelopersWebSitePath = "https://developers.arcgis.com/arcade/";
12
12
  const MaxArrayItems = 100;
@@ -303,7 +303,7 @@ async function getArcadeDiagnosticService() {
303
303
  * @returns arcade mode module
304
304
  */
305
305
  async function getMode$1() {
306
- return await import('./arcade-mode-22179508.js');
306
+ return await import('./arcade-mode-7875f26b.js');
307
307
  }
308
308
 
309
309
  const arcadeEditorCss = "arcgis-arcade-editor{display:flex;flex-direction:column;position:relative;overflow:hidden;border:var(--arcgis-coding-components-border);box-sizing:border-box;background-color:var(--arcgis-coding-components-background-color);height:100%}arcgis-arcade-editor .flex-adjustable{flex:1 1 auto;overflow:hidden}arcgis-arcade-editor .flex-panel{flex:1 0 auto}arcgis-arcade-editor .position-relative{position:relative}arcgis-arcade-editor .flex-row{display:flex;flex-direction:row;overflow:hidden}arcgis-arcade-editor .flex-column{display:flex;flex-direction:column;overflow:hidden}arcgis-arcade-editor .border-inline-start{border-inline-start:var(--arcgis-coding-components-border);box-sizing:border-box}arcgis-arcade-editor .border-inline-end{border-inline-end:var(--arcgis-coding-components-border);box-sizing:border-box}arcgis-arcade-editor .sticky{position:sticky;top:0px;z-index:10}arcgis-arcade-editor .notice-container{margin:var(--calcite-spacing-xxs);padding:var(--calcite-spacing-sm);background-color:var(--calcite-color-foreground-1);text-align:center}arcgis-arcade-editor .side-action-bar{max-width:var(--arcgis-coding-components-side-action-bar-max-w)}arcgis-arcade-editor .side-panel{max-width:var(--arcgis-coding-components-side-panel-max-w);width:var(--arcgis-coding-components-side-panel-w)}arcgis-arcade-editor .side-panel calcite-flow{height:100%}arcgis-arcade-editor .main-action-bar{border-bottom:var(--arcgis-coding-components-border);flex:0 0 auto}arcgis-arcade-editor .main-action-bar calcite-action-group{padding-inline-end:var(--calcite-spacing-sm)}arcgis-arcade-editor .main-action-bar calcite-action-group calcite-action{padding-inline-end:var(--calcite-spacing-sm)}arcgis-arcade-editor .main-action-bar calcite-action-group calcite-action:not(:first-child){padding-inline-start:var(--calcite-spacing-sm)}arcgis-arcade-editor .main-action-bar calcite-action-group:last-child{border-inline-end-width:0px}arcgis-arcade-editor .main-action-bar calcite-action-group:not(:first-child){padding-inline-start:var(--calcite-spacing-sm)}arcgis-arcade-editor arcgis-arcade-results{border-top:var(--arcgis-coding-components-border);box-sizing:border-box;max-height:50%;min-height:50%;margin-bottom:-1px}arcgis-arcade-editor calcite-flow [slot=footer]{word-break:break-word}";
@@ -3953,7 +3953,7 @@ languages.onLanguage(arcadeDefaults.languageId, () => {
3953
3953
  * @returns sql-expression mode module
3954
3954
  */
3955
3955
  async function getMode() {
3956
- return await import('./sql-expr-mode-544eb8cb.js');
3956
+ return await import('./sql-expr-mode-9885b07f.js');
3957
3957
  }
3958
3958
 
3959
3959
  // Register the language in Monaco
@@ -1,11 +1,11 @@
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.94
4
+ * v4.31.0-next.96
5
5
  */
6
- import { p as promiseResolve, b as bootstrapLazy } from './index-d27fa889.js';
7
- export { s as setNonce } from './index-d27fa889.js';
8
- import { g as globalScripts } from './app-globals-ff8ecf1c.js';
6
+ import { p as promiseResolve, b as bootstrapLazy } from './index-41eb8945.js';
7
+ export { s as setNonce } from './index-41eb8945.js';
8
+ import { g as globalScripts } from './app-globals-5393f092.js';
9
9
 
10
10
  /*
11
11
  Stencil Client Patch Browser v4.20.0 | MIT Licensed | https://stenciljs.com
@@ -1,11 +1,11 @@
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.94
4
+ * v4.31.0-next.96
5
5
  */
6
- import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-d27fa889.js';
7
- import { u as useControllerManager, a as useT9n } from './useT9n-dd9f43c8.js';
8
- import { l as generateGuid, x as sqlExprDefaults } from './sql-expr-defaults-d9716c16.js';
6
+ import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-41eb8945.js';
7
+ import { u as useControllerManager, a as useT9n } from './useT9n-3fb56200.js';
8
+ import { l as generateGuid, x as sqlExprDefaults } from './sql-expr-defaults-2136d2a9.js';
9
9
 
10
10
  const sqlExpressionEditorCss = "arcgis-sql-expression-editor{display:flex;flex-direction:column;position:relative;overflow:hidden;border:var(--arcgis-coding-components-border);box-sizing:border-box;background-color:var(--arcgis-coding-components-background-color);height:100%}arcgis-sql-expression-editor .flex-adjustable{flex:1 1 auto;overflow:hidden}arcgis-sql-expression-editor .flex-panel{flex:1 0 auto}arcgis-sql-expression-editor .position-relative{position:relative}arcgis-sql-expression-editor .flex-row{display:flex;flex-direction:row;overflow:hidden}arcgis-sql-expression-editor .flex-column{display:flex;flex-direction:column;overflow:hidden}arcgis-sql-expression-editor .border-inline-start{border-inline-start:var(--arcgis-coding-components-border);box-sizing:border-box}arcgis-sql-expression-editor .border-inline-end{border-inline-end:var(--arcgis-coding-components-border);box-sizing:border-box}arcgis-sql-expression-editor .side-action-bar{max-width:var(--arcgis-coding-components-side-action-bar-max-w)}arcgis-sql-expression-editor .side-panel{max-width:var(--arcgis-coding-components-side-panel-max-w);width:var(--arcgis-coding-components-side-panel-w)}arcgis-sql-expression-editor .side-panel calcite-flow{height:100%}";
11
11
  const ArcgisSqlExpressionEditorStyle0 = sqlExpressionEditorCss;
@@ -1,11 +1,11 @@
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.94
4
+ * v4.31.0-next.96
5
5
  */
6
- import { r as registerInstance, c as createEvent, h, a as getElement } from './index-d27fa889.js';
7
- import { u as useControllerManager, a as useT9n } from './useT9n-dd9f43c8.js';
8
- import { x as sqlExprDefaults } from './sql-expr-defaults-d9716c16.js';
6
+ import { r as registerInstance, c as createEvent, h, a as getElement } from './index-41eb8945.js';
7
+ import { u as useControllerManager, a as useT9n } from './useT9n-3fb56200.js';
8
+ import { x as sqlExprDefaults } from './sql-expr-defaults-2136d2a9.js';
9
9
 
10
10
  const sqlExpressionFieldsCss = ":host calcite-flow{height:100%}:host calcite-list-item-group{background-color:var(--calcite-color-foreground-2)}";
11
11
  const ArcgisSqlExpressionFieldsStyle0 = sqlExpressionFieldsCss;
@@ -1,7 +1,7 @@
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.94
4
+ * v4.31.0-next.96
5
5
  */
6
6
  /*!-----------------------------------------------------------------------------
7
7
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,10 +1,10 @@
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.94
4
+ * v4.31.0-next.96
5
5
  */
6
- import { O as monaco_editor_core_star } from './sql-expr-defaults-d9716c16.js';
7
- import './index-d27fa889.js';
6
+ import { O as monaco_editor_core_star } from './sql-expr-defaults-2136d2a9.js';
7
+ import './index-41eb8945.js';
8
8
 
9
9
  /*!-----------------------------------------------------------------------------
10
10
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,10 +1,10 @@
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.94
4
+ * v4.31.0-next.96
5
5
  */
6
- import { O as monaco_editor_core_star } from './sql-expr-defaults-d9716c16.js';
7
- import './index-d27fa889.js';
6
+ import { O as monaco_editor_core_star } from './sql-expr-defaults-2136d2a9.js';
7
+ import './index-41eb8945.js';
8
8
 
9
9
  /*!-----------------------------------------------------------------------------
10
10
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,10 +1,10 @@
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.94
4
+ * v4.31.0-next.96
5
5
  */
6
- import { O as monaco_editor_core_star } from './sql-expr-defaults-d9716c16.js';
7
- import './index-d27fa889.js';
6
+ import { O as monaco_editor_core_star } from './sql-expr-defaults-2136d2a9.js';
7
+ import './index-41eb8945.js';
8
8
 
9
9
  /*!-----------------------------------------------------------------------------
10
10
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,7 +1,7 @@
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.94
4
+ * v4.31.0-next.96
5
5
  */
6
6
  const NAMESPACE = 'arcgis-coding-components';
7
7
  const BUILD = /* arcgis-coding-components */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: false, cmpDidUnload: false, cmpDidUpdate: true, cmpShouldUpdate: true, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: true, connectedCallback: true, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: false, hostListenerTarget: false, hostListenerTargetBody: false, hostListenerTargetDocument: false, hostListenerTargetParent: false, hostListenerTargetWindow: false, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: true, hydratedClass: false, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: true, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: true, propNumber: false, propString: true, reflect: true, scoped: false, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: false, shadowDom: true, slot: false, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: false, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: true, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: true, watchCallback: true };
package/dist/esm/index.js CHANGED
@@ -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.31/esri/copyright.txt for details.
4
- * v4.31.0-next.94
4
+ * v4.31.0-next.96
5
5
  */
6
- export { a as arcade } from './arcade-defaults-eea0f49a.js';
7
- export { s as sqlExpression } from './sql-expr-defaults-d9716c16.js';
8
- import './index-d27fa889.js';
6
+ export { a as arcade } from './arcade-defaults-75ce6d3e.js';
7
+ export { s as sqlExpression } from './sql-expr-defaults-2136d2a9.js';
8
+ import './index-41eb8945.js';
@@ -1,11 +1,11 @@
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.94
4
+ * v4.31.0-next.96
5
5
  */
6
- import { conf as conf$1, language as language$1 } from './typescript-e8be4b5c.js';
7
- import './sql-expr-defaults-d9716c16.js';
8
- import './index-d27fa889.js';
6
+ import { conf as conf$1, language as language$1 } from './typescript-648ed009.js';
7
+ import './sql-expr-defaults-2136d2a9.js';
8
+ import './index-41eb8945.js';
9
9
 
10
10
  /*!-----------------------------------------------------------------------------
11
11
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,10 +1,10 @@
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.94
4
+ * v4.31.0-next.96
5
5
  */
6
- import { O as monaco_editor_core_star } from './sql-expr-defaults-d9716c16.js';
7
- import './index-d27fa889.js';
6
+ import { O as monaco_editor_core_star } from './sql-expr-defaults-2136d2a9.js';
7
+ import './index-41eb8945.js';
8
8
 
9
9
  /*!-----------------------------------------------------------------------------
10
10
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,11 +1,11 @@
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.94
4
+ * v4.31.0-next.96
5
5
  */
6
- import { b as bootstrapLazy } from './index-d27fa889.js';
7
- export { s as setNonce } from './index-d27fa889.js';
8
- import { g as globalScripts } from './app-globals-ff8ecf1c.js';
6
+ import { b as bootstrapLazy } from './index-41eb8945.js';
7
+ export { s as setNonce } from './index-41eb8945.js';
8
+ import { g as globalScripts } from './app-globals-5393f092.js';
9
9
 
10
10
  const defineCustomElements = async (win, options) => {
11
11
  if (typeof window === 'undefined') return undefined;
@@ -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.94
4
+ * v4.31.0-next.96
5
5
  */
6
- import { g as getAssetPath } from './index-d27fa889.js';
6
+ import { g as getAssetPath } from './index-41eb8945.js';
7
7
 
8
8
  // src/index.ts
9
9
  var isAMD = typeof window !== "undefined" && "$arcgis" in window && typeof window.$arcgis === "object" && "import" in window.$arcgis && !("forceESM" in window.$arcgis);
@@ -124672,7 +124672,7 @@ registerLanguage({
124672
124672
  mimetypes: ["text/css"],
124673
124673
  loader: () => {
124674
124674
  {
124675
- return import('./css-cce788e2.js');
124675
+ return import('./css-e0b72dc0.js');
124676
124676
  }
124677
124677
  }
124678
124678
  });
@@ -124690,7 +124690,7 @@ registerLanguage({
124690
124690
  mimetypes: ["text/html", "text/x-jshtm", "text/template", "text/ng-template"],
124691
124691
  loader: () => {
124692
124692
  {
124693
- return import('./html-2d7ce704.js');
124693
+ return import('./html-4d5f82ef.js');
124694
124694
  }
124695
124695
  }
124696
124696
  });
@@ -124710,7 +124710,7 @@ registerLanguage({
124710
124710
  mimetypes: ["text/javascript"],
124711
124711
  loader: () => {
124712
124712
  {
124713
- return import('./javascript-731d88bd.js');
124713
+ return import('./javascript-ac8d281a.js');
124714
124714
  }
124715
124715
  }
124716
124716
  });
@@ -124728,7 +124728,7 @@ registerLanguage({
124728
124728
  mimetypes: ["text/typescript"],
124729
124729
  loader: () => {
124730
124730
  {
124731
- return import('./typescript-e8be4b5c.js');
124731
+ return import('./typescript-648ed009.js');
124732
124732
  }
124733
124733
  }
124734
124734
  });
@@ -124849,7 +124849,7 @@ var lessDefaults = new LanguageServiceDefaultsImpl$3("less", optionsDefault$1, m
124849
124849
  monaco_editor_core_exports$3.languages.css = { cssDefaults, lessDefaults, scssDefaults };
124850
124850
  function getMode$3() {
124851
124851
  {
124852
- return import('./cssMode-e3d1519b.js');
124852
+ return import('./cssMode-32be63c9.js');
124853
124853
  }
124854
124854
  }
124855
124855
  monaco_editor_core_exports$3.languages.onLanguage("less", () => {
@@ -124974,7 +124974,7 @@ monaco_editor_core_exports$2.languages.html = {
124974
124974
  };
124975
124975
  function getMode$2() {
124976
124976
  {
124977
- return import('./htmlMode-c520eb90.js');
124977
+ return import('./htmlMode-ce0703a2.js');
124978
124978
  }
124979
124979
  }
124980
124980
  function registerHTMLLanguageService(languageId, options = optionsDefault, modeConfiguration = getConfigurationDefault(languageId)) {
@@ -125076,7 +125076,7 @@ var jsonDefaults = new LanguageServiceDefaultsImpl$1("json", diagnosticDefault,
125076
125076
  monaco_editor_core_exports$1.languages.json = { jsonDefaults };
125077
125077
  function getMode$1() {
125078
125078
  {
125079
- return import('./jsonMode-3d740d76.js');
125079
+ return import('./jsonMode-18f0c09f.js');
125080
125080
  }
125081
125081
  }
125082
125082
  monaco_editor_core_exports$1.languages.register({
@@ -125345,7 +125345,7 @@ monaco_editor_core_exports.languages.typescript = {
125345
125345
  };
125346
125346
  function getMode() {
125347
125347
  {
125348
- return import('./tsMode-664fa74d.js');
125348
+ return import('./tsMode-724af11f.js');
125349
125349
  }
125350
125350
  }
125351
125351
  monaco_editor_core_exports.languages.onLanguage("typescript", () => {
@@ -1,10 +1,10 @@
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.94
4
+ * v4.31.0-next.96
5
5
  */
6
- import { D as Deferred, r as editor, T as debounce, w as languages, x as sqlExprDefaults, V as Emitter } from './sql-expr-defaults-d9716c16.js';
7
- import './index-d27fa889.js';
6
+ import { D as Deferred, r as editor, T as debounce, w as languages, x as sqlExprDefaults, V as Emitter } from './sql-expr-defaults-2136d2a9.js';
7
+ import './index-41eb8945.js';
8
8
 
9
9
  // hold onto a promise that resolves when the worker is ready
10
10
  let deferredWorker = new Deferred();
@@ -315,6 +315,7 @@ class SqlExprCompletionProvider {
315
315
  endColumn: word.endColumn,
316
316
  };
317
317
  const apiContext = this._defaults.getApiContextForModel(model.uri);
318
+ console.log(await worker.doComplete(model.uri.toString(), range, position, apiContext));
318
319
  return await worker.doComplete(model.uri.toString(), range, position, apiContext);
319
320
  }
320
321
  catch (err) {
@@ -1,10 +1,10 @@
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.94
4
+ * v4.31.0-next.96
5
5
  */
6
- import { P as typescriptDefaults, O as monaco_editor_core_star } from './sql-expr-defaults-d9716c16.js';
7
- import './index-d27fa889.js';
6
+ import { P as typescriptDefaults, O as monaco_editor_core_star } from './sql-expr-defaults-2136d2a9.js';
7
+ import './index-41eb8945.js';
8
8
 
9
9
  /*!-----------------------------------------------------------------------------
10
10
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,10 +1,10 @@
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.94
4
+ * v4.31.0-next.96
5
5
  */
6
- import { O as monaco_editor_core_star } from './sql-expr-defaults-d9716c16.js';
7
- import './index-d27fa889.js';
6
+ import { O as monaco_editor_core_star } from './sql-expr-defaults-2136d2a9.js';
7
+ import './index-41eb8945.js';
8
8
 
9
9
  /*!-----------------------------------------------------------------------------
10
10
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,10 +1,10 @@
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.94
4
+ * v4.31.0-next.96
5
5
  */
6
- import { F as isNotUndefined, D as Deferred, G as safeAsyncCall, H as devToolsAwareTimeout, J as safeCall, M as startLocaleObserver, N as getElementLocales } from './sql-expr-defaults-d9716c16.js';
7
- import { g as getAssetPath } from './index-d27fa889.js';
6
+ import { F as isNotUndefined, D as Deferred, G as safeAsyncCall, H as devToolsAwareTimeout, J as safeCall, M as startLocaleObserver, N as getElementLocales } from './sql-expr-defaults-2136d2a9.js';
7
+ import { g as getAssetPath } from './index-41eb8945.js';
8
8
 
9
9
  // src/framework.ts
10
10
  function retrieveComponentMembers(component, isLit) {
@@ -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.94
4
+ * v4.31.0-next.96
5
5
  */
6
6
  module.exports = require('../cjs/loader.cjs.js');
@@ -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.94
4
+ * v4.31.0-next.96
5
5
  */
6
6
  module.exports = require('../cjs/loader.cjs.js');
@@ -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.94
4
+ * v4.31.0-next.96
5
5
  */
6
6
  export * from '../esm/loader.js';
@@ -1,7 +1,7 @@
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.94
4
+ * v4.31.0-next.96
5
5
  */
6
6
  (function(){if("undefined"!==typeof window&&void 0!==window.Reflect&&void 0!==window.customElements){var a=HTMLElement;window.HTMLElement=function(){return Reflect.construct(a,[],this.constructor)};HTMLElement.prototype=a.prototype;HTMLElement.prototype.constructor=HTMLElement;Object.setPrototypeOf(HTMLElement,a)}})();
7
7
  export * from '../esm/loader.js';
@@ -11,7 +11,23 @@ export declare class SqlExpressionCompletion {
11
11
  private _sdkFunctions;
12
12
  private _fields;
13
13
  constructor(sdkLibrary: ApiDatabase, fields: ApiVariable[]);
14
- getCompletions(range: IRange, modelContent: string, position: Position): Promise<languages.CompletionItem[]>;
14
+ /**
15
+ * gets completions for the sql expression.
16
+ * @param {Object} params - The parameters for the completion.
17
+ * @param {IRange} params.range - The range of the current position.
18
+ * @param {string} params.modelContent - The content of the model.
19
+ * @param {Position} params.position - The current position of the cursor in the model.
20
+ * @param {ICompletionContext} params.completionContext - The completion context.
21
+ * @param {boolean} params.terminateOnError - Whether to terminate the completion when it fails to parse.
22
+ * @returns {Promise<languages.CompletionItem[]>} The completion items.
23
+ */
24
+ getCompletions({ range, modelContent, position, completionContext, terminateOnError, }: {
25
+ range: IRange;
26
+ modelContent: string;
27
+ position: Position;
28
+ completionContext?: ICompletionContext;
29
+ terminateOnError?: boolean;
30
+ }): Promise<languages.CompletionItem[]>;
15
31
  /**
16
32
  * traverses the tree to find the node that contains the current position
17
33
  * @param node The current node to traverse
@@ -40,6 +56,7 @@ export declare class SqlExpressionCompletion {
40
56
  * @returns boolean
41
57
  */
42
58
  private _isPositionWithinNode;
59
+ private _isPositionWithinSQLSourcePosition;
43
60
  private _suggestFields;
44
61
  private _suggestFunctions;
45
62
  private _suggestDataTypes;
@@ -54,4 +71,5 @@ export declare class SqlExpressionCompletion {
54
71
  * @param node The current node to traverse
55
72
  */
56
73
  private _traverseChildren;
74
+ private _sliceToPosition;
57
75
  }
@@ -27,4 +27,9 @@ export declare function getSlotPosition(node: __esri.SQLNode, contextRoot: __esr
27
27
  * @returns The context root of the searchNode
28
28
  */
29
29
  export declare function identifyContextRoot(searchNode: __esri.SQLNode, searchTree: __esri.SQLNode[]): __esri.SQLNode;
30
+ /**
31
+ * Appends the required number of closing parentheses to the model content.
32
+ * This helps when the parsing fails. We try closing the unclosed parentheses, and resubmit the content for parsing.
33
+ */
34
+ export declare function closeUnclosedDelimiters(modelContent: string): string;
30
35
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcgis/coding-components",
3
- "version": "4.31.0-next.94",
3
+ "version": "4.31.0-next.96",
4
4
  "description": "Contains components for editing code in different languages. The currently supported languages are html, css, json, TypeScript, JavaScript, and Arcade.",
5
5
  "keywords": [
6
6
  "ArcGIS",
@@ -50,23 +50,23 @@
50
50
  "generate": "stencil generate"
51
51
  },
52
52
  "dependencies": {
53
- "@arcgis/arcade-languageservice": "4.31.0-next.94",
54
- "@arcgis/components-controllers": "4.31.0-next.94",
55
- "@arcgis/components-utils": "4.31.0-next.94",
56
- "@arcgis/languages-api-utils": "4.31.0-next.94",
53
+ "@arcgis/arcade-languageservice": "4.31.0-next.96",
54
+ "@arcgis/components-controllers": "4.31.0-next.96",
55
+ "@arcgis/components-utils": "4.31.0-next.96",
56
+ "@arcgis/languages-api-utils": "4.31.0-next.96",
57
57
  "@stencil/core": "4.20.0",
58
58
  "monaco-editor": "0.45.0",
59
59
  "tslib": "^2.7.0",
60
60
  "vscode-languageserver-types": "^3.17.5"
61
61
  },
62
62
  "devDependencies": {
63
- "@arcgis/components-build-utils": "4.31.0-next.94",
64
- "@arcgis/components-plugins": "4.31.0-next.94",
63
+ "@arcgis/components-build-utils": "4.31.0-next.96",
64
+ "@arcgis/components-plugins": "4.31.0-next.96",
65
65
  "@arcgis/core": ">=4.31.0-next <4.32",
66
- "@arcgis/core-adapter": "4.31.0-next.94",
66
+ "@arcgis/core-adapter": "4.31.0-next.96",
67
67
  "@arcgis/sql-expression-sdk": "^1.1.0-next.10",
68
- "@arcgis/storybook-utils": "4.31.0-next.94",
69
- "@arcgis/typescript-config": "4.31.0-next.94",
68
+ "@arcgis/storybook-utils": "4.31.0-next.96",
69
+ "@arcgis/typescript-config": "4.31.0-next.96",
70
70
  "@esri/calcite-components": "^2.12.1",
71
71
  "@stencil/react-output-target": "0.5.3",
72
72
  "@stencil/sass": "^3.0.12",
@@ -88,10 +88,9 @@
88
88
  "postcss": ">=8.4.31",
89
89
  "postcss-discard-comments": "^5.1.2",
90
90
  "postcss-url": "^10.1.3",
91
- "puppeteer": "^21.9.0",
92
91
  "resolve-pkg": "^2.0.0",
93
92
  "rimraf": "^5.0.0",
94
- "rollup": "^4.13.0",
93
+ "rollup": "^4.21.3",
95
94
  "rollup-plugin-import-css": "^3.1.0",
96
95
  "rollup-plugin-node-polyfills": "^0.2.1",
97
96
  "storybook": "^8.2.4",
@@ -104,5 +103,5 @@
104
103
  "@arcgis/core": ">=4.31.0-next <4.32",
105
104
  "@esri/calcite-components": "^2.12.1"
106
105
  },
107
- "gitHead": "376a7a2bc92f856047bc70538474a61f03581659"
106
+ "gitHead": "574b70bb276a6660cf8e84e1b9b2180f0d326c7d"
108
107
  }