@arcgis/coding-components 4.31.0-next.14 → 4.31.0-next.16

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 (103) 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 +22 -22
  3. package/dist/arcgis-coding-components/index.esm.js +2 -2
  4. package/dist/arcgis-coding-components/{p-14a7e4a7.js → p-02b874e8.js} +2 -2
  5. package/dist/arcgis-coding-components/{p-15035308.js → p-1e2279cc.js} +2 -2
  6. package/dist/arcgis-coding-components/{p-5edb4dd5.entry.js → p-2b27a086.entry.js} +2 -2
  7. package/dist/arcgis-coding-components/{p-349081dc.js → p-3c74050b.js} +2 -2
  8. package/dist/arcgis-coding-components/{p-02a3028d.js → p-50e86b46.js} +1 -1
  9. package/dist/arcgis-coding-components/{p-4e1baf2b.js → p-76006e9c.js} +2 -2
  10. package/dist/arcgis-coding-components/p-79dcb258.js +6 -0
  11. package/dist/arcgis-coding-components/{p-56114077.js → p-8966872b.js} +2 -2
  12. package/dist/arcgis-coding-components/{p-a3f5b077.js → p-8cdd34ef.js} +2 -2
  13. package/dist/arcgis-coding-components/{p-3194dfce.js → p-8d330c99.js} +1 -1
  14. package/dist/arcgis-coding-components/{p-ac75f363.js → p-90d805b1.js} +9 -9
  15. package/dist/arcgis-coding-components/{p-64529cc4.entry.js → p-a32d87a7.entry.js} +2 -2
  16. package/dist/arcgis-coding-components/{p-dbed8024.js → p-b6a71f8c.js} +2 -2
  17. package/dist/arcgis-coding-components/{p-f5478e14.js → p-b79b8d05.js} +1 -1
  18. package/dist/arcgis-coding-components/{p-014dd2cb.js → p-bf67decd.js} +2 -2
  19. package/dist/arcgis-coding-components/{p-4c90e818.js → p-c1e96e20.js} +2 -2
  20. package/dist/arcgis-coding-components/{p-491f66f0.js → p-c99fd015.js} +2 -2
  21. package/dist/arcgis-coding-components/{p-d254ce20.js → p-cb51690f.js} +2 -2
  22. package/dist/arcgis-coding-components/{p-b9abe4b6.entry.js → p-cff33f10.entry.js} +2 -2
  23. package/dist/cjs/{app-globals-c3a9c6b5.js → app-globals-14a87b68.js} +1 -1
  24. package/dist/cjs/{arcade-defaults-74a4b002.js → arcade-defaults-42912ee7.js} +4 -4
  25. package/dist/cjs/{arcade-language-features-1bb16f23.js → arcade-language-features-74cd4206.js} +2 -2
  26. package/dist/cjs/{arcade-mode-2f03fbdc.js → arcade-mode-b71d8dae.js} +3 -3
  27. package/dist/cjs/arcgis-arcade-editor_6.cjs.entry.js +5 -5
  28. package/dist/cjs/arcgis-coding-components.cjs.js +3 -3
  29. package/dist/cjs/arcgis-sql-expression-editor.cjs.entry.js +4 -4
  30. package/dist/cjs/arcgis-sql-expression-fields.cjs.entry.js +4 -4
  31. package/dist/cjs/{css-7633e68d.js → css-594f973c.js} +1 -1
  32. package/dist/cjs/{cssMode-5c521540.js → cssMode-425aeb95.js} +2 -2
  33. package/dist/cjs/{html-eca36b9c.js → html-24c1de87.js} +2 -2
  34. package/dist/cjs/{htmlMode-884edc98.js → htmlMode-4c5fbc92.js} +2 -2
  35. package/dist/cjs/{index-2f8d54a3.js → index-550792e3.js} +1 -1
  36. package/dist/cjs/index.cjs.js +4 -4
  37. package/dist/cjs/{javascript-97857961.js → javascript-f01029cd.js} +3 -3
  38. package/dist/cjs/{jsonMode-19915981.js → jsonMode-bcac26bd.js} +2 -2
  39. package/dist/cjs/{language-defaults-base-a485a25f.js → language-defaults-base-3b76c8f8.js} +9 -9
  40. package/dist/cjs/loader.cjs.js +3 -3
  41. package/dist/cjs/{sql-expr-defaults-a49a3cba.js → sql-expr-defaults-f4f96eff.js} +17 -4
  42. package/dist/cjs/{sql-expr-mode-846a0a87.js → sql-expr-mode-1940aabc.js} +17 -13
  43. package/dist/cjs/{tsMode-c396dc6b.js → tsMode-e5306938.js} +2 -2
  44. package/dist/cjs/{typescript-1a84bd43.js → typescript-45aff197.js} +2 -2
  45. package/dist/components/arcade-defaults.js +1 -1
  46. package/dist/components/arcade-language-features.js +1 -1
  47. package/dist/components/arcade-mode.js +1 -1
  48. package/dist/components/arcade-results.js +1 -1
  49. package/dist/components/arcade-suggestions.js +1 -1
  50. package/dist/components/arcade-variables.js +1 -1
  51. package/dist/components/arcgis-arcade-editor.js +1 -1
  52. package/dist/components/arcgis-arcade-results.js +1 -1
  53. package/dist/components/arcgis-arcade-suggestions.js +1 -1
  54. package/dist/components/arcgis-arcade-variables.js +1 -1
  55. package/dist/components/arcgis-assets.d.ts +1 -1
  56. package/dist/components/arcgis-assets.js +1 -1
  57. package/dist/components/arcgis-code-editor.js +1 -1
  58. package/dist/components/arcgis-language-api-panel.js +1 -1
  59. package/dist/components/arcgis-sql-expression-editor.js +1 -1
  60. package/dist/components/arcgis-sql-expression-fields.js +1 -1
  61. package/dist/components/chunk-2JTWBRMN.js +1 -1
  62. package/dist/components/code-editor.js +1 -1
  63. package/dist/components/fields.js +1 -1
  64. package/dist/components/index.js +1 -1
  65. package/dist/components/index2.js +1 -1
  66. package/dist/components/language-api-panel.js +1 -1
  67. package/dist/components/language-defaults-base.js +1 -1
  68. package/dist/components/markdown.js +1 -1
  69. package/dist/components/sql-expr-defaults.js +14 -2
  70. package/dist/components/sql-expr-mode.js +14 -10
  71. package/dist/components/sql-expression-fields.js +1 -1
  72. package/dist/components/useT9n.js +1 -1
  73. package/dist/components/utilities.js +1 -1
  74. package/dist/esm/{app-globals-ae203c41.js → app-globals-19951ed9.js} +1 -1
  75. package/dist/esm/{arcade-defaults-7b3d6288.js → arcade-defaults-488898c2.js} +4 -4
  76. package/dist/esm/{arcade-language-features-2eca78bd.js → arcade-language-features-ce5bcb3f.js} +2 -2
  77. package/dist/esm/{arcade-mode-3b2440c4.js → arcade-mode-a6cddce1.js} +3 -3
  78. package/dist/esm/arcgis-arcade-editor_6.entry.js +5 -5
  79. package/dist/esm/arcgis-coding-components.js +4 -4
  80. package/dist/esm/arcgis-sql-expression-editor.entry.js +4 -4
  81. package/dist/esm/arcgis-sql-expression-fields.entry.js +4 -4
  82. package/dist/esm/{css-45d2198d.js → css-961e913d.js} +1 -1
  83. package/dist/esm/{cssMode-bd462b9a.js → cssMode-b0f996af.js} +2 -2
  84. package/dist/esm/{html-8ed9cf62.js → html-d6c5dbdf.js} +2 -2
  85. package/dist/esm/{htmlMode-10b70ba3.js → htmlMode-0e58d960.js} +2 -2
  86. package/dist/esm/{index-25e55ede.js → index-6ce21710.js} +1 -1
  87. package/dist/esm/index.js +4 -4
  88. package/dist/esm/{javascript-4f75e997.js → javascript-d2ba63d4.js} +3 -3
  89. package/dist/esm/{jsonMode-86c9aa9c.js → jsonMode-41027f93.js} +2 -2
  90. package/dist/esm/{language-defaults-base-89690034.js → language-defaults-base-e18def9a.js} +9 -9
  91. package/dist/esm/loader.js +4 -4
  92. package/dist/esm/{sql-expr-defaults-d07828da.js → sql-expr-defaults-6435e270.js} +17 -5
  93. package/dist/esm/{sql-expr-mode-0f5995a6.js → sql-expr-mode-dd9d29e1.js} +17 -13
  94. package/dist/esm/{tsMode-c4e4bef1.js → tsMode-6985d50b.js} +2 -2
  95. package/dist/esm/{typescript-bcfb687b.js → typescript-d9927631.js} +2 -2
  96. package/dist/loader/cdn.js +1 -1
  97. package/dist/loader/index.cjs.js +1 -1
  98. package/dist/loader/index.es2017.js +1 -1
  99. package/dist/loader/index.js +1 -1
  100. package/dist/types/utils/sql-expr-monaco/sql-expr-completion.d.ts +2 -2
  101. package/dist/types/utils/sql-expr-monaco/sql-expression-profile-strategy.d.ts +5 -1
  102. package/package.json +12 -11
  103. package/dist/arcgis-coding-components/p-2fb72ae0.js +0 -6
@@ -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.14
4
+ * v4.31.0-next.16
5
5
  */
6
6
  'use strict';
7
7
 
@@ -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.14
4
+ * v4.31.0-next.16
5
5
  */
6
6
  'use strict';
7
7
 
8
- const languageDefaultsBase = require('./language-defaults-base-a485a25f.js');
9
- const index = require('./index-2f8d54a3.js');
8
+ const languageDefaultsBase = require('./language-defaults-base-3b76c8f8.js');
9
+ const index = require('./index-550792e3.js');
10
10
 
11
11
  /**
12
12
  * Returns the arcade diagnostic service.
@@ -40,7 +40,7 @@ async function getArcadeWorker(uri) {
40
40
  * @returns arcade mode module
41
41
  */
42
42
  async function getMode() {
43
- return await Promise.resolve().then(function () { return require('./arcade-mode-2f03fbdc.js'); });
43
+ return await Promise.resolve().then(function () { return require('./arcade-mode-b71d8dae.js'); });
44
44
  }
45
45
 
46
46
  // #region convert editor profile to apiProfile
@@ -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.14
4
+ * v4.31.0-next.16
5
5
  */
6
6
  'use strict';
7
7
 
8
- const languageDefaultsBase = require('./language-defaults-base-a485a25f.js');
8
+ const languageDefaultsBase = require('./language-defaults-base-3b76c8f8.js');
9
9
 
10
10
  //#region Diagnostic
11
11
  class DiagnosticsAdapter {
@@ -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.14
4
+ * v4.31.0-next.16
5
5
  */
6
6
  'use strict';
7
7
 
8
- const languageDefaultsBase = require('./language-defaults-base-a485a25f.js');
9
- const arcadeLanguageFeatures = require('./arcade-language-features-1bb16f23.js');
8
+ const languageDefaultsBase = require('./language-defaults-base-3b76c8f8.js');
9
+ const arcadeLanguageFeatures = require('./arcade-language-features-74cd4206.js');
10
10
 
11
11
  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"},Ee=["++","--"],Je=["-","+","!","~"],Qe=["=","/=","*=","%=","+=","-="],Ze=["||","&&"],Lt=["|","&",">>","<<",">>>","^","==","!=","<","<=",">",">=","+","-","*","/","%"];var U=[[],[],[]];Ee.forEach(t=>U[t.length-1]?.push(t));Je.forEach(t=>U[t.length-1]?.push(t));Ze.forEach(t=>U[t.length-1]?.push(t));Qe.forEach(t=>U[t.length-1]?.push(t));Lt.forEach(t=>U[t.length-1]?.push(t));var ft=Object.values(f),gt=Object.values(V);gt.map(t=>({label:t,kind:languageDefaultsBase.main.exports.CompletionItemKind.Constant}));ft.map(t=>({label:t,kind:languageDefaultsBase.main.exports.CompletionItemKind.Keyword}));
12
12
 
@@ -1,16 +1,16 @@
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.14
4
+ * v4.31.0-next.16
5
5
  */
6
6
  'use strict';
7
7
 
8
8
  Object.defineProperty(exports, '__esModule', { value: true });
9
9
 
10
- const index = require('./index-2f8d54a3.js');
11
- const languageDefaultsBase = require('./language-defaults-base-a485a25f.js');
12
- const sqlExprDefaults = require('./sql-expr-defaults-a49a3cba.js');
13
- const arcadeDefaults = require('./arcade-defaults-74a4b002.js');
10
+ const index = require('./index-550792e3.js');
11
+ const languageDefaultsBase = require('./language-defaults-base-3b76c8f8.js');
12
+ const sqlExprDefaults = require('./sql-expr-defaults-f4f96eff.js');
13
+ const arcadeDefaults = require('./arcade-defaults-42912ee7.js');
14
14
 
15
15
  const DevelopersWebSitePath = "https://developers.arcgis.com/arcade/";
16
16
  const MaxArrayItems = 100;
@@ -1,14 +1,14 @@
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.14
4
+ * v4.31.0-next.16
5
5
  */
6
6
  'use strict';
7
7
 
8
8
  Object.defineProperty(exports, '__esModule', { value: true });
9
9
 
10
- const index = require('./index-2f8d54a3.js');
11
- const appGlobals = require('./app-globals-c3a9c6b5.js');
10
+ const index = require('./index-550792e3.js');
11
+ const appGlobals = require('./app-globals-14a87b68.js');
12
12
 
13
13
  /*
14
14
  Stencil Client Patch Browser v4.17.1 | MIT Licensed | https://stenciljs.com
@@ -1,15 +1,15 @@
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.14
4
+ * v4.31.0-next.16
5
5
  */
6
6
  'use strict';
7
7
 
8
8
  Object.defineProperty(exports, '__esModule', { value: true });
9
9
 
10
- const index = require('./index-2f8d54a3.js');
11
- const sqlExprDefaults = require('./sql-expr-defaults-a49a3cba.js');
12
- const languageDefaultsBase = require('./language-defaults-base-a485a25f.js');
10
+ const index = require('./index-550792e3.js');
11
+ const sqlExprDefaults = require('./sql-expr-defaults-f4f96eff.js');
12
+ const languageDefaultsBase = require('./language-defaults-base-3b76c8f8.js');
13
13
 
14
14
  const sqlExpressionEditorCss = "arcgis-sql-expression-editor{display:flex;flex-direction:column;position:relative;overflow:hidden;border:1px solid var(--calcite-color-border-3);box-sizing:border-box;background-color:var(--calcite-color-foreground-1);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:1px solid var(--calcite-color-border-3);box-sizing:border-box}arcgis-sql-expression-editor .border-inline-end{border-inline-end:1px solid var(--calcite-color-border-3);box-sizing:border-box}arcgis-sql-expression-editor .side-action-bar{max-width:25%}arcgis-sql-expression-editor .side-panel{max-width:45%;width:600px}arcgis-sql-expression-editor .side-panel calcite-flow{height:100%}";
15
15
  const ArcgisSqlExpressionEditorStyle0 = sqlExpressionEditorCss;
@@ -1,15 +1,15 @@
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.14
4
+ * v4.31.0-next.16
5
5
  */
6
6
  'use strict';
7
7
 
8
8
  Object.defineProperty(exports, '__esModule', { value: true });
9
9
 
10
- const index = require('./index-2f8d54a3.js');
11
- const sqlExprDefaults = require('./sql-expr-defaults-a49a3cba.js');
12
- require('./language-defaults-base-a485a25f.js');
10
+ const index = require('./index-550792e3.js');
11
+ const sqlExprDefaults = require('./sql-expr-defaults-f4f96eff.js');
12
+ require('./language-defaults-base-3b76c8f8.js');
13
13
 
14
14
  const sqlExpressionFieldsCss = ":host calcite-flow{height:100%}:host calcite-list-item-group{background-color:var(--calcite-color-foreground-2)}";
15
15
  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.14
4
+ * v4.31.0-next.16
5
5
  */
6
6
  'use strict';
7
7
 
@@ -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.14
4
+ * v4.31.0-next.16
5
5
  */
6
6
  'use strict';
7
7
 
8
- const languageDefaultsBase = require('./language-defaults-base-a485a25f.js');
8
+ const languageDefaultsBase = require('./language-defaults-base-3b76c8f8.js');
9
9
 
10
10
  /*!-----------------------------------------------------------------------------
11
11
  * 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.14
4
+ * v4.31.0-next.16
5
5
  */
6
6
  'use strict';
7
7
 
8
- const languageDefaultsBase = require('./language-defaults-base-a485a25f.js');
8
+ const languageDefaultsBase = require('./language-defaults-base-3b76c8f8.js');
9
9
 
10
10
  /*!-----------------------------------------------------------------------------
11
11
  * 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.14
4
+ * v4.31.0-next.16
5
5
  */
6
6
  'use strict';
7
7
 
8
- const languageDefaultsBase = require('./language-defaults-base-a485a25f.js');
8
+ const languageDefaultsBase = require('./language-defaults-base-3b76c8f8.js');
9
9
 
10
10
  /*!-----------------------------------------------------------------------------
11
11
  * 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.14
4
+ * v4.31.0-next.16
5
5
  */
6
6
  'use strict';
7
7
 
@@ -1,15 +1,15 @@
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.14
4
+ * v4.31.0-next.16
5
5
  */
6
6
  'use strict';
7
7
 
8
8
  Object.defineProperty(exports, '__esModule', { value: true });
9
9
 
10
- const arcadeDefaults = require('./arcade-defaults-74a4b002.js');
11
- require('./language-defaults-base-a485a25f.js');
12
- require('./index-2f8d54a3.js');
10
+ const arcadeDefaults = require('./arcade-defaults-42912ee7.js');
11
+ require('./language-defaults-base-3b76c8f8.js');
12
+ require('./index-550792e3.js');
13
13
 
14
14
 
15
15
 
@@ -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.14
4
+ * v4.31.0-next.16
5
5
  */
6
6
  'use strict';
7
7
 
8
- const typescript = require('./typescript-1a84bd43.js');
9
- require('./language-defaults-base-a485a25f.js');
8
+ const typescript = require('./typescript-45aff197.js');
9
+ require('./language-defaults-base-3b76c8f8.js');
10
10
 
11
11
  /*!-----------------------------------------------------------------------------
12
12
  * 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.14
4
+ * v4.31.0-next.16
5
5
  */
6
6
  'use strict';
7
7
 
8
- const languageDefaultsBase = require('./language-defaults-base-a485a25f.js');
8
+ const languageDefaultsBase = require('./language-defaults-base-3b76c8f8.js');
9
9
 
10
10
  /*!-----------------------------------------------------------------------------
11
11
  * 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.14
4
+ * v4.31.0-next.16
5
5
  */
6
6
  'use strict';
7
7
 
@@ -120614,7 +120614,7 @@ registerLanguage({
120614
120614
  mimetypes: ["text/css"],
120615
120615
  loader: () => {
120616
120616
  {
120617
- return Promise.resolve().then(function () { return require('./css-7633e68d.js'); });
120617
+ return Promise.resolve().then(function () { return require('./css-594f973c.js'); });
120618
120618
  }
120619
120619
  }
120620
120620
  });
@@ -120632,7 +120632,7 @@ registerLanguage({
120632
120632
  mimetypes: ["text/html", "text/x-jshtm", "text/template", "text/ng-template"],
120633
120633
  loader: () => {
120634
120634
  {
120635
- return Promise.resolve().then(function () { return require('./html-eca36b9c.js'); });
120635
+ return Promise.resolve().then(function () { return require('./html-24c1de87.js'); });
120636
120636
  }
120637
120637
  }
120638
120638
  });
@@ -120652,7 +120652,7 @@ registerLanguage({
120652
120652
  mimetypes: ["text/javascript"],
120653
120653
  loader: () => {
120654
120654
  {
120655
- return Promise.resolve().then(function () { return require('./javascript-97857961.js'); });
120655
+ return Promise.resolve().then(function () { return require('./javascript-f01029cd.js'); });
120656
120656
  }
120657
120657
  }
120658
120658
  });
@@ -120670,7 +120670,7 @@ registerLanguage({
120670
120670
  mimetypes: ["text/typescript"],
120671
120671
  loader: () => {
120672
120672
  {
120673
- return Promise.resolve().then(function () { return require('./typescript-1a84bd43.js'); });
120673
+ return Promise.resolve().then(function () { return require('./typescript-45aff197.js'); });
120674
120674
  }
120675
120675
  }
120676
120676
  });
@@ -120791,7 +120791,7 @@ var lessDefaults = new LanguageServiceDefaultsImpl$3("less", optionsDefault$1, m
120791
120791
  monaco_editor_core_exports$3.languages.css = { cssDefaults, lessDefaults, scssDefaults };
120792
120792
  function getMode$3() {
120793
120793
  {
120794
- return Promise.resolve().then(function () { return require('./cssMode-5c521540.js'); });
120794
+ return Promise.resolve().then(function () { return require('./cssMode-425aeb95.js'); });
120795
120795
  }
120796
120796
  }
120797
120797
  monaco_editor_core_exports$3.languages.onLanguage("less", () => {
@@ -120916,7 +120916,7 @@ monaco_editor_core_exports$2.languages.html = {
120916
120916
  };
120917
120917
  function getMode$2() {
120918
120918
  {
120919
- return Promise.resolve().then(function () { return require('./htmlMode-884edc98.js'); });
120919
+ return Promise.resolve().then(function () { return require('./htmlMode-4c5fbc92.js'); });
120920
120920
  }
120921
120921
  }
120922
120922
  function registerHTMLLanguageService(languageId, options = optionsDefault, modeConfiguration = getConfigurationDefault(languageId)) {
@@ -121018,7 +121018,7 @@ var jsonDefaults = new LanguageServiceDefaultsImpl$1("json", diagnosticDefault,
121018
121018
  monaco_editor_core_exports$1.languages.json = { jsonDefaults };
121019
121019
  function getMode$1() {
121020
121020
  {
121021
- return Promise.resolve().then(function () { return require('./jsonMode-19915981.js'); });
121021
+ return Promise.resolve().then(function () { return require('./jsonMode-bcac26bd.js'); });
121022
121022
  }
121023
121023
  }
121024
121024
  monaco_editor_core_exports$1.languages.register({
@@ -121287,7 +121287,7 @@ monaco_editor_core_exports.languages.typescript = {
121287
121287
  };
121288
121288
  function getMode() {
121289
121289
  {
121290
- return Promise.resolve().then(function () { return require('./tsMode-c396dc6b.js'); });
121290
+ return Promise.resolve().then(function () { return require('./tsMode-e5306938.js'); });
121291
121291
  }
121292
121292
  }
121293
121293
  monaco_editor_core_exports.languages.onLanguage("typescript", () => {
@@ -1,14 +1,14 @@
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.14
4
+ * v4.31.0-next.16
5
5
  */
6
6
  'use strict';
7
7
 
8
8
  Object.defineProperty(exports, '__esModule', { value: true });
9
9
 
10
- const index = require('./index-2f8d54a3.js');
11
- const appGlobals = require('./app-globals-c3a9c6b5.js');
10
+ const index = require('./index-550792e3.js');
11
+ const appGlobals = require('./app-globals-14a87b68.js');
12
12
 
13
13
  const defineCustomElements = async (win, options) => {
14
14
  if (typeof window === 'undefined') return undefined;
@@ -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.14
4
+ * v4.31.0-next.16
5
5
  */
6
6
  'use strict';
7
7
 
8
- const languageDefaultsBase = require('./language-defaults-base-a485a25f.js');
9
- const index = require('./index-2f8d54a3.js');
8
+ const languageDefaultsBase = require('./language-defaults-base-3b76c8f8.js');
9
+ const index = require('./index-550792e3.js');
10
10
 
11
11
  // src/framework.ts
12
12
  function retrieveComponentMembers(component, isLit) {
@@ -1253,6 +1253,18 @@ async function convertToEditorProfileDefinition(predefinedProfile, locale = "en"
1253
1253
  return editorProfile;
1254
1254
  }
1255
1255
  // #endregion
1256
+ // #region profile utils
1257
+ /**
1258
+ * util to retrieve fields from the $layer variable in the api context.
1259
+ */
1260
+ const getFieldsFromLayerVariable = (profile) => {
1261
+ if (profile.variables) {
1262
+ const layerVar = profile.variables.find((variable) => variable.name === "$layer" && variable.type === "dictionary");
1263
+ return layerVar.properties ?? [];
1264
+ }
1265
+ return [];
1266
+ };
1267
+ // #endregion
1256
1268
 
1257
1269
  /**
1258
1270
  * Returns the sql-expression worker for the model.
@@ -1271,7 +1283,7 @@ async function getSqlExprWorker(uri) {
1271
1283
  * @returns sql-expression mode module
1272
1284
  */
1273
1285
  async function getMode() {
1274
- return await Promise.resolve().then(function () { return require('./sql-expr-mode-846a0a87.js'); });
1286
+ return await Promise.resolve().then(function () { return require('./sql-expr-mode-1940aabc.js'); });
1275
1287
  }
1276
1288
 
1277
1289
  const languageId = "arcgis-sql-expression";
@@ -1326,6 +1338,7 @@ class SqlExprDefaults extends languageDefaultsBase.LanguageDefaultsBase {
1326
1338
  }
1327
1339
  const sqlExprDefaults = new SqlExprDefaults();
1328
1340
 
1341
+ exports.getFieldsFromLayerVariable = getFieldsFromLayerVariable;
1329
1342
  exports.getMode = getMode;
1330
1343
  exports.getSet = getSet;
1331
1344
  exports.makeController = makeController;
@@ -1,14 +1,14 @@
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.14
4
+ * v4.31.0-next.16
5
5
  */
6
6
  'use strict';
7
7
 
8
- const languageDefaultsBase = require('./language-defaults-base-a485a25f.js');
9
- const sqlExprDefaults = require('./sql-expr-defaults-a49a3cba.js');
10
- const arcadeLanguageFeatures = require('./arcade-language-features-1bb16f23.js');
11
- require('./index-2f8d54a3.js');
8
+ const languageDefaultsBase = require('./language-defaults-base-3b76c8f8.js');
9
+ const sqlExprDefaults = require('./sql-expr-defaults-f4f96eff.js');
10
+ const arcadeLanguageFeatures = require('./arcade-language-features-74cd4206.js');
11
+ require('./index-550792e3.js');
12
12
 
13
13
  /**
14
14
  * Manager to create our sql-expression worker and client proxy
@@ -20377,13 +20377,15 @@ const sortTextValues = {
20377
20377
  keywords: "c",
20378
20378
  dataType: "d",
20379
20379
  };
20380
- function generateCompletionItems(layer, range, sdkFunctions) {
20381
- const fieldsCompletion = layer.fields.map((field) => ({
20382
- label: field.name,
20383
- kind: languageDefaultsBase.languages.CompletionItemKind.Variable,
20384
- insertText: field.name,
20385
- range,
20380
+ function generateCompletionItems(fields, range, sdkFunctions) {
20381
+ const fieldsCompletion = fields.map((field) => ({
20382
+ label: field.completion?.label ?? field.name,
20383
+ insertText: field.completion?.insertText ?? field.name,
20386
20384
  sortText: `z${sortTextValues.fields}`,
20385
+ detail: field.completion?.detail,
20386
+ range,
20387
+ kind: languageDefaultsBase.languages.CompletionItemKind.Variable,
20388
+ documentation: field.completion?.documentation,
20387
20389
  }));
20388
20390
  // {
20389
20391
  // const funcName = func.toLowerCase();
@@ -20537,7 +20539,6 @@ class SqlExprCompletionProvider {
20537
20539
  this._sdkFunctions = transposeSdkFunctions([]);
20538
20540
  }
20539
20541
  async provideCompletionItems(model, position) {
20540
- const layer = this._defaults.getFeatureLayerForModel(model.uri.toString());
20541
20542
  const word = model.getWordUntilPosition(position);
20542
20543
  const range = {
20543
20544
  startLineNumber: position.lineNumber,
@@ -20545,10 +20546,13 @@ class SqlExprCompletionProvider {
20545
20546
  startColumn: word.startColumn,
20546
20547
  endColumn: word.endColumn,
20547
20548
  };
20549
+ const apiContext = this._defaults.getApiContextForModel(model.uri);
20550
+ // get the fields from the api context
20551
+ const fields = apiContext.profile ? sqlExprDefaults.getFieldsFromLayerVariable(apiContext.profile) : [];
20548
20552
  const sdkLibrary = await this._defaults.getApiLibrary(model.uri.toString());
20549
20553
  this._sdkFunctions = transposeSdkFunctions(sdkLibrary);
20550
20554
  const sqlContextCompletion = sqlExpressionCompletion(range, model, position, this._sdkFunctions);
20551
- const { sqlKeywordsCompletion, sqlBinOpsCompletion, sqlFunctionCompletion, fieldsCompletion, sqlDataTypeCompletion, } = generateCompletionItems(layer, range, this._sdkFunctions);
20555
+ const { sqlKeywordsCompletion, sqlBinOpsCompletion, sqlFunctionCompletion, fieldsCompletion, sqlDataTypeCompletion, } = generateCompletionItems(fields, range, this._sdkFunctions);
20552
20556
  /*
20553
20557
  Filters our completion items list so that if we happen to have the same label but
20554
20558
  different sortText order, we keep the sortText with the lowest ASCII value (i.e.
@@ -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.14
4
+ * v4.31.0-next.16
5
5
  */
6
6
  'use strict';
7
7
 
8
- const languageDefaultsBase = require('./language-defaults-base-a485a25f.js');
8
+ const languageDefaultsBase = require('./language-defaults-base-3b76c8f8.js');
9
9
 
10
10
  /*!-----------------------------------------------------------------------------
11
11
  * 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.14
4
+ * v4.31.0-next.16
5
5
  */
6
6
  'use strict';
7
7
 
8
- const languageDefaultsBase = require('./language-defaults-base-a485a25f.js');
8
+ const languageDefaultsBase = require('./language-defaults-base-3b76c8f8.js');
9
9
 
10
10
  /*!-----------------------------------------------------------------------------
11
11
  * 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.14
4
+ * v4.31.0-next.16
5
5
  */
6
6
  import { Uri } from 'monaco-editor';
7
7
  import { f as fieldsToProfileValues, i as isPredefinedProfile, a as isFeatureSetCollectionDefinition, b as isFeatureSetDefinition, c as isFeatureDefinition, L as LanguageDefaultsBase, E as EditorProfile } from './language-defaults-base.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.14
4
+ * v4.31.0-next.16
5
5
  */
6
6
  import { editor, MarkerSeverity, Range, languages } from 'monaco-editor';
7
7
  import { DiagnosticSeverity, InsertTextFormat, CompletionItemKind } 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.14
4
+ * v4.31.0-next.16
5
5
  */
6
6
  import { editor, languages, Emitter } from 'monaco-editor';
7
7
  import { CompletionItemKind } 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.14
4
+ * v4.31.0-next.16
5
5
  */
6
6
  import { proxyCustomElement, HTMLElement, createEvent, h, Fragment, Host, forceUpdate } from '@stencil/core/internal/client';
7
7
  import { g as importArcade, s as supportedFields } from './fields.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.14
4
+ * v4.31.0-next.16
5
5
  */
6
6
  import { proxyCustomElement, HTMLElement, createEvent, forceUpdate, h, Host } from '@stencil/core/internal/client';
7
7
  import { g as generateColorizeStyles, o as onColorizeThemeChanged, c as convertMarkdownString, a as colorizeCodeElement } from './markdown.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.14
4
+ * v4.31.0-next.16
5
5
  */
6
6
  import { proxyCustomElement, HTMLElement, createEvent, forceUpdate, h } from '@stencil/core/internal/client';
7
7
  import { u as useControllerManager } from './chunk-2JTWBRMN.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.14
4
+ * v4.31.0-next.16
5
5
  */
6
6
  import { proxyCustomElement, HTMLElement, createEvent, forceUpdate, h, Fragment, Host } from '@stencil/core/internal/client';
7
7
  import { KeyCode } from 'monaco-editor';
@@ -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.14
4
+ * v4.31.0-next.16
5
5
  */
6
6
  import { A as ArcgisArcadeResults$1, d as defineCustomElement$1 } from './arcade-results.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.14
4
+ * v4.31.0-next.16
5
5
  */
6
6
  import { A as ArcgisArcadeSuggestions$1, d as defineCustomElement$1 } from './arcade-suggestions.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.14
4
+ * v4.31.0-next.16
5
5
  */
6
6
  import { A as ArcgisArcadeVariables$1, d as defineCustomElement$1 } from './arcade-variables.js';
7
7
 
@@ -2,7 +2,7 @@
2
2
  /*!
3
3
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
4
4
  * See https://js.arcgis.com/4.31/esri/copyright.txt for details.
5
- * v4.31.0-next.14
5
+ * v4.31.0-next.16
6
6
  */
7
7
  /**
8
8
  * Get the base path to where the package assets can be found.
@@ -2,7 +2,7 @@
2
2
  /*!
3
3
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
4
4
  * See https://js.arcgis.com/4.31/esri/copyright.txt for details.
5
- * v4.31.0-next.14
5
+ * v4.31.0-next.16
6
6
  */
7
7
  let resourceUrl = "https://js.arcgis.com/coding-components/next/";
8
8
  export const getArcgisAssetPath = (path) => {