@arcgis/coding-components 4.31.0-next.2 → 4.31.0-next.21

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 (205) hide show
  1. package/README.md +22 -3
  2. package/dist/arcgis-coding-components/arcgis-coding-components.esm.js +2 -2
  3. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.ar.json +1 -1
  4. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.bg.json +1 -1
  5. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.bs.json +1 -1
  6. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.ca.json +6 -6
  7. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.cs.json +1 -1
  8. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.da.json +1 -1
  9. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.de.json +1 -1
  10. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.el.json +1 -1
  11. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.es.json +1 -1
  12. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.et.json +1 -1
  13. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.fi.json +1 -1
  14. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.fr.json +1 -1
  15. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.he.json +1 -1
  16. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.hr.json +1 -1
  17. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.id.json +1 -1
  18. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.it.json +1 -1
  19. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.ko.json +1 -1
  20. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.nb.json +1 -1
  21. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.nl.json +1 -1
  22. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.pl.json +1 -1
  23. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.pt-BR.json +1 -1
  24. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.pt-PT.json +1 -1
  25. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.ru.json +1 -1
  26. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.sk.json +1 -1
  27. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.sl.json +1 -1
  28. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.sr.json +1 -1
  29. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.sv.json +1 -1
  30. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.th.json +1 -1
  31. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.tr.json +1 -1
  32. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.uk.json +5 -5
  33. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.vi.json +1 -1
  34. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.zh-CN.json +1 -1
  35. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.zh-HK.json +1 -1
  36. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.zh-TW.json +1 -1
  37. package/dist/arcgis-coding-components/assets/arcade-results/t9n/arcade-results.t9n.ca.json +2 -2
  38. package/dist/arcgis-coding-components/assets/arcade-results/t9n/arcade-results.t9n.de.json +1 -1
  39. package/dist/arcgis-coding-components/assets/arcade-results/t9n/arcade-results.t9n.he.json +1 -1
  40. package/dist/arcgis-coding-components/assets/arcade-variables/t9n/arcade-variables.t9n.ca.json +1 -1
  41. package/dist/arcgis-coding-components/assets/arcade-variables/t9n/arcade-variables.t9n.it.json +1 -1
  42. package/dist/arcgis-coding-components/assets/code-editor/css.worker.js +1 -1
  43. package/dist/arcgis-coding-components/assets/code-editor/html.worker.js +1 -1
  44. package/dist/arcgis-coding-components/assets/code-editor/json.worker.js +1 -1
  45. package/dist/arcgis-coding-components/assets/code-editor/sql-expr.worker.js +33 -0
  46. package/dist/arcgis-coding-components/assets/code-editor/ts.worker.js +1 -1
  47. package/dist/arcgis-coding-components/assets/language-api-panel/t9n/language-api-panel.t9n.ca.json +1 -1
  48. package/dist/arcgis-coding-components/assets/sql-expression-editor/api/sql-expression-api.t9n.en.json +735 -0
  49. package/dist/arcgis-coding-components/index.esm.js +2 -2
  50. package/dist/arcgis-coding-components/{p-7984ea8e.js → p-1b799777.js} +2 -2
  51. package/dist/arcgis-coding-components/p-4d5cf512.entry.js +6 -0
  52. package/dist/arcgis-coding-components/{p-60c2a820.js → p-56266a64.js} +2 -2
  53. package/dist/arcgis-coding-components/{p-e8211ffe.js → p-57b8bcd7.js} +1 -1
  54. package/dist/arcgis-coding-components/{p-9eced6fc.js → p-5b67b62b.js} +2 -2
  55. package/dist/arcgis-coding-components/{p-93a97573.js → p-64137fec.js} +3 -3
  56. package/dist/arcgis-coding-components/{p-e7ee4d64.js → p-6621a80f.js} +3 -3
  57. package/dist/arcgis-coding-components/p-77dd5521.js +6 -0
  58. package/dist/arcgis-coding-components/p-8eb7e694.js +6 -0
  59. package/dist/arcgis-coding-components/p-a2341e0c.js +6 -0
  60. package/dist/arcgis-coding-components/{p-bb7e832e.js → p-b715834b.js} +3 -3
  61. package/dist/arcgis-coding-components/p-cbee273f.js +6 -0
  62. package/dist/arcgis-coding-components/{p-5ef7cce5.js → p-cdc52d2f.js} +1 -1
  63. package/dist/arcgis-coding-components/{p-36fedc23.js → p-d7d1f130.js} +12 -12
  64. package/dist/arcgis-coding-components/p-e1f9b463.entry.js +6 -0
  65. package/dist/arcgis-coding-components/{p-62ee6251.js → p-e5a924a1.js} +1 -1
  66. package/dist/arcgis-coding-components/p-f2d64a9d.js +6 -0
  67. package/dist/arcgis-coding-components/{p-03ea6cd7.js → p-ff62d134.js} +3 -3
  68. package/dist/arcgis-coding-components/p-ffce0588.entry.js +6 -0
  69. package/dist/cjs/{app-globals-aee5f4b5.js → app-globals-a9ef3ca8.js} +1 -1
  70. package/dist/cjs/arcade-defaults-f5241680.js +349 -0
  71. package/dist/cjs/arcade-language-features-0b9f3947.js +274 -0
  72. package/dist/cjs/arcade-mode-cc08d9cd.js +335 -0
  73. package/dist/cjs/arcgis-arcade-editor_6.cjs.entry.js +181 -1501
  74. package/dist/cjs/arcgis-coding-components.cjs.js +4 -4
  75. package/dist/cjs/arcgis-sql-expression-editor.cjs.entry.js +81 -0
  76. package/dist/cjs/arcgis-sql-expression-fields.cjs.entry.js +80 -0
  77. package/dist/cjs/{css-7cc05f76.js → css-bb6a49ec.js} +1 -1
  78. package/dist/cjs/{cssMode-2b0daeae.js → cssMode-e7fac7d7.js} +3 -4
  79. package/dist/cjs/{html-f56911e1.js → html-7ff4071d.js} +3 -4
  80. package/dist/cjs/{htmlMode-43eed674.js → htmlMode-c89193ec.js} +3 -4
  81. package/dist/cjs/{index-b34238a6.js → index-4b7880ab.js} +9 -1
  82. package/dist/cjs/index.cjs.js +4 -3
  83. package/dist/cjs/{javascript-5115cb76.js → javascript-864c0220.js} +3 -4
  84. package/dist/cjs/{jsonMode-550dda36.js → jsonMode-ac4a7be7.js} +3 -4
  85. package/dist/cjs/{arcade-defaults-a8d8f8e2.js → language-defaults-base-57b37f9f.js} +842 -1183
  86. package/dist/cjs/loader.cjs.js +4 -4
  87. package/dist/cjs/sql-expr-defaults-245b036d.js +1347 -0
  88. package/dist/cjs/sql-expr-mode-304f5ce2.js +20844 -0
  89. package/dist/cjs/{tsMode-336306a9.js → tsMode-d30d4ab1.js} +4 -5
  90. package/dist/cjs/{typescript-b395242f.js → typescript-6c87ddb3.js} +3 -4
  91. package/dist/components/arcade-defaults.js +54 -1369
  92. package/dist/components/arcade-language-features.js +271 -0
  93. package/dist/components/arcade-mode.js +4 -264
  94. package/dist/components/arcade-results.js +7 -5
  95. package/dist/components/arcade-suggestions.js +7 -5
  96. package/dist/components/arcade-variables.js +8 -6
  97. package/dist/components/arcgis-arcade-editor.js +37 -35
  98. package/dist/components/arcgis-arcade-results.js +1 -1
  99. package/dist/components/arcgis-arcade-suggestions.js +1 -1
  100. package/dist/components/arcgis-arcade-variables.js +1 -1
  101. package/dist/components/arcgis-assets.d.ts +1 -1
  102. package/dist/components/arcgis-assets.js +1 -1
  103. package/dist/components/arcgis-code-editor.js +1 -1
  104. package/dist/components/arcgis-language-api-panel.js +1 -1
  105. package/dist/components/arcgis-sql-expression-editor.d.ts +11 -0
  106. package/dist/components/arcgis-sql-expression-editor.js +120 -0
  107. package/dist/components/arcgis-sql-expression-fields.d.ts +11 -0
  108. package/dist/components/arcgis-sql-expression-fields.js +11 -0
  109. package/dist/components/chunk-2JTWBRMN.js +1154 -0
  110. package/dist/components/code-editor.js +40 -13
  111. package/dist/components/fields.js +5 -5
  112. package/dist/components/index.js +1 -1
  113. package/dist/components/index2.js +30 -22
  114. package/dist/components/language-api-panel.js +13 -40
  115. package/dist/components/language-defaults-base.js +1309 -0
  116. package/dist/components/markdown.js +1 -1
  117. package/dist/components/sql-expr-defaults.js +196 -0
  118. package/dist/components/sql-expr-mode.js +20842 -0
  119. package/dist/components/sql-expression-fields.js +102 -0
  120. package/dist/components/useT9n.js +45 -8
  121. package/dist/components/utilities.js +1 -1
  122. package/dist/esm/{app-globals-59faaf33.js → app-globals-6d0ca11d.js} +1 -1
  123. package/dist/esm/arcade-defaults-066445c4.js +344 -0
  124. package/dist/esm/arcade-language-features-0e00c199.js +269 -0
  125. package/dist/esm/{arcade-mode-5d46035e.js → arcade-mode-abf1e1cf.js} +3 -263
  126. package/dist/esm/arcgis-arcade-editor_6.entry.js +127 -1447
  127. package/dist/esm/arcgis-coding-components.js +5 -5
  128. package/dist/esm/arcgis-sql-expression-editor.entry.js +77 -0
  129. package/dist/esm/arcgis-sql-expression-fields.entry.js +76 -0
  130. package/dist/esm/{css-e257dc49.js → css-c6dae12d.js} +1 -1
  131. package/dist/esm/{cssMode-c11f7f40.js → cssMode-052bb603.js} +2 -3
  132. package/dist/esm/{html-a6c37a99.js → html-572696a1.js} +2 -3
  133. package/dist/esm/{htmlMode-1270bc7d.js → htmlMode-fc184f2d.js} +2 -3
  134. package/dist/esm/{index-a970952c.js → index-0edd9846.js} +9 -1
  135. package/dist/esm/index.js +4 -3
  136. package/dist/esm/{javascript-ee179624.js → javascript-8bfc0096.js} +3 -4
  137. package/dist/esm/{jsonMode-07502ccb.js → jsonMode-7adf94ff.js} +2 -3
  138. package/dist/esm/{arcade-defaults-9eb28407.js → language-defaults-base-85a7f476.js} +833 -1179
  139. package/dist/esm/loader.js +5 -5
  140. package/dist/esm/sql-expr-defaults-be84ec7f.js +1339 -0
  141. package/dist/esm/sql-expr-mode-a4413e5c.js +20840 -0
  142. package/dist/esm/{tsMode-96749a12.js → tsMode-d10773c8.js} +2 -3
  143. package/dist/esm/{typescript-a3cf9881.js → typescript-9491f23e.js} +2 -3
  144. package/dist/loader/cdn.js +1 -1
  145. package/dist/loader/index.cjs.js +1 -1
  146. package/dist/loader/index.es2017.js +1 -1
  147. package/dist/loader/index.js +1 -1
  148. package/dist/types/components/arcade-editor/arcade-editor.d.ts +45 -10
  149. package/dist/types/components/arcade-results/arcade-results.d.ts +43 -1
  150. package/dist/types/components/arcade-suggestions/arcade-suggestions.d.ts +22 -1
  151. package/dist/types/components/arcade-variables/arcade-variables.d.ts +28 -1
  152. package/dist/types/components/code-editor/code-editor.d.ts +16 -5
  153. package/dist/types/components/language-api-panel/language-api-panel.d.ts +34 -8
  154. package/dist/types/components/sql-expression-editor/sql-expression-editor.d.ts +24 -0
  155. package/dist/types/components/sql-expression-fields/sql-expression-fields.d.ts +32 -0
  156. package/dist/types/components.d.ts +98 -24
  157. package/dist/types/data/actions-runner-1/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/stories/internal/arcade-editor/arcade-editor.stories.d.ts +8 -1
  158. package/dist/types/data/actions-runner-1/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/stories/internal/arcade-editor/editorContext.d.ts +5 -1
  159. package/dist/types/data/actions-runner-1/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/stories/internal/sql-expression-editor/sql-expression-editor.stories.d.ts +13 -0
  160. package/dist/types/dependencies.d.ts +6 -10
  161. package/dist/types/utils/arcade-monaco/arcade-language-features.d.ts +1 -0
  162. package/dist/types/utils/arcade-monaco/arcade-profile-strategy.d.ts +9 -0
  163. package/dist/types/utils/fields.d.ts +2 -2
  164. package/dist/types/utils/language-defaults-base.d.ts +2 -9
  165. package/dist/types/utils/profile/editor-profile.d.ts +7 -6
  166. package/dist/types/utils/profile/types.d.ts +53 -65
  167. package/dist/types/utils/profile/utils.d.ts +9 -8
  168. package/dist/types/utils/sql-expr-monaco/DependentFiles/DateOnly.d.ts +41 -0
  169. package/dist/types/utils/sql-expr-monaco/DependentFiles/SqlInterval.d.ts +16 -0
  170. package/dist/types/utils/sql-expr-monaco/DependentFiles/SqlTimestampOffset.d.ts +26 -0
  171. package/dist/types/utils/sql-expr-monaco/DependentFiles/TimeOnly.d.ts +37 -0
  172. package/dist/types/utils/sql-expr-monaco/DependentFiles/UnknownTimeZone.d.ts +11 -0
  173. package/dist/types/utils/sql-expr-monaco/DependentFiles/WhereGrammar.d.ts +122 -0
  174. package/dist/types/utils/sql-expr-monaco/DependentFiles/sqlCompareUtils.d.ts +5 -0
  175. package/dist/types/utils/sql-expr-monaco/DependentFiles/sqlDateParsingUtils.d.ts +18 -0
  176. package/dist/types/utils/sql-expr-monaco/DependentFiles/sqlUtils.d.ts +6 -0
  177. package/dist/types/utils/sql-expr-monaco/DependentFiles/standardizedFunctions.d.ts +156 -0
  178. package/dist/types/utils/sql-expr-monaco/DependentFiles/support.d.ts +150 -0
  179. package/dist/types/utils/sql-expr-monaco/PeggyGrammar/sql92grammar.d.ts +1397 -0
  180. package/dist/types/utils/sql-expr-monaco/sql-expr-completion.d.ts +6 -0
  181. package/dist/types/utils/sql-expr-monaco/sql-expr-constants.d.ts +45 -0
  182. package/dist/types/utils/sql-expr-monaco/sql-expr-contribution.d.ts +1 -0
  183. package/dist/types/utils/sql-expr-monaco/sql-expr-defaults.d.ts +21 -0
  184. package/dist/types/utils/sql-expr-monaco/sql-expr-language-features.d.ts +39 -0
  185. package/dist/types/utils/sql-expr-monaco/sql-expr-language-syntax.d.ts +8 -0
  186. package/dist/types/utils/sql-expr-monaco/sql-expr-mode.d.ts +43 -0
  187. package/dist/types/utils/sql-expr-monaco/sql-expr-service-accessors.d.ts +19 -0
  188. package/dist/types/utils/sql-expr-monaco/sql-expr-validation-diagnostic-adapter.d.ts +34 -0
  189. package/dist/types/utils/sql-expr-monaco/sql-expr-validation-utils.d.ts +100 -0
  190. package/dist/types/utils/sql-expr-monaco/sql-expr-validation.d.ts +41 -0
  191. package/dist/types/utils/sql-expr-monaco/sql-expr-worker-manager.d.ts +17 -0
  192. package/dist/types/utils/sql-expr-monaco/sql-expr.worker.d.ts +24 -0
  193. package/dist/types/utils/sql-expr-monaco/sql-expression-profile-strategy.d.ts +13 -0
  194. package/dist/types/utils/sql-expr-monaco/types.d.ts +89 -0
  195. package/package.json +27 -21
  196. package/dist/arcgis-coding-components/p-0c6de9b3.js +0 -6
  197. package/dist/arcgis-coding-components/p-81c37dab.entry.js +0 -6
  198. package/dist/cjs/arcade-mode-b85ae7d4.js +0 -595
  199. package/dist/components/chunk-IHYYRFLQ.js +0 -1363
  200. package/dist/types/components/arcade-editor/t9n-types.d.ts +0 -8
  201. package/dist/types/components/arcade-results/t9n-types.d.ts +0 -13
  202. package/dist/types/components/arcade-suggestions/t9n-types.d.ts +0 -6
  203. package/dist/types/components/arcade-variables/t9n-types.d.ts +0 -8
  204. package/dist/types/components/language-api-panel/t9n-types.d.ts +0 -8
  205. package/dist/types/utils/profile/predefined-profile.d.ts +0 -2
@@ -1,10 +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.2
4
+ * v4.31.0-next.21
5
5
  */
6
- import { F as typescriptDefaults, E as monaco_editor_core_star } from './arcade-defaults-9eb28407.js';
7
- import './index-a970952c.js';
6
+ import { N as typescriptDefaults, M as monaco_editor_core_star } from './language-defaults-base-85a7f476.js';
8
7
 
9
8
  /*!-----------------------------------------------------------------------------
10
9
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,10 +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.2
4
+ * v4.31.0-next.21
5
5
  */
6
- import { E as monaco_editor_core_star } from './arcade-defaults-9eb28407.js';
7
- import './index-a970952c.js';
6
+ import { M as monaco_editor_core_star } from './language-defaults-base-85a7f476.js';
8
7
 
9
8
  /*!-----------------------------------------------------------------------------
10
9
  * 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.2
4
+ * v4.31.0-next.21
5
5
  */
6
6
  module.exports = require('../cjs/loader.cjs.js');
7
7
  module.exports.applyPolyfills = function() { return Promise.resolve() };
@@ -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.2
4
+ * v4.31.0-next.21
5
5
  */
6
6
  module.exports = require('../cjs/loader.cjs.js');
7
7
  module.exports.applyPolyfills = function() { return Promise.resolve() };
@@ -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.2
4
+ * v4.31.0-next.21
5
5
  */
6
6
  export * from '../esm/polyfills/index.js';
7
7
  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.2
4
+ * v4.31.0-next.21
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/polyfills/index.js';
@@ -1,6 +1,5 @@
1
1
  import type { EventEmitter, VNode, ComponentInterface } from "../../stencil-public-runtime";
2
- import type { ApiSnippet, Diagnostic } from "@arcgis/arcade-languageservice";
3
- import type { ArcadeEditorStrings } from "./t9n-types";
2
+ import type { ApiCategory, ApiSnippet, Diagnostic } from "@arcgis/arcade-languageservice";
4
3
  import type { IEditorCodeSuggestion, IEditorCodeSuggestionGroup } from "../../utils/editor-suggestions";
5
4
  import type { IEditorProfileDefinition, IPredefinedProfile } from "../../utils/profile/types";
6
5
  import type { editor } from "monaco-editor";
@@ -18,17 +17,43 @@ export declare class ArcgisArcadeEditor implements ComponentInterface {
18
17
  private _editorProfilePromise;
19
18
  private _disposables;
20
19
  el: HTMLArcgisArcadeEditorElement;
21
- messages: {
22
- _lang: string;
23
- _t9nLocale: string;
24
- } & Partial<ArcadeEditorStrings>;
25
- _preparingProfile: boolean;
20
+ _preparingArcade: boolean;
26
21
  _editorProfile: EditorProfile | undefined;
22
+ _apiLibrary: ApiCategory[] | undefined;
27
23
  _showExecutionPanel: boolean;
28
24
  _resultPanel: ResultPanelName;
29
25
  _executingScript: boolean;
30
26
  _consoleLogs: string[];
31
27
  _executionResult?: ArcadeResult;
28
+ messages: {
29
+ _lang: string;
30
+ _t9nLocale: "id" | "en" | "el" | "ar" | "bg" | "bs" | "ca" | "cs" | "da" | "de" | "es" | "et" | "fi" | "fr" | "he" | "hr" | "hu" | "it" | "ja" | "ko" | "lt" | "lv" | "nl" | "nb" | "pl" | "pt-BR" | "pt-PT" | "ro" | "ru" | "sk" | "sl" | "sr" | "sv" | "th" | "tr" | "uk" | "vi" | "zh-CN" | "zh-HK" | "zh-TW";
31
+ _loading: boolean;
32
+ _overrides: {
33
+ help?: string | undefined;
34
+ profilevariables?: string | undefined;
35
+ constantsandfunctions?: string | undefined;
36
+ suggestions?: string | undefined;
37
+ run?: string | undefined;
38
+ lastresults?: string | undefined;
39
+ };
40
+ _original?: {
41
+ help: string;
42
+ profilevariables: string;
43
+ constantsandfunctions: string;
44
+ suggestions: string;
45
+ run: string;
46
+ lastresults: string;
47
+ } | undefined;
48
+ } & Partial<{
49
+ help: string;
50
+ profilevariables: string;
51
+ constantsandfunctions: string;
52
+ suggestions: string;
53
+ run: string;
54
+ lastresults: string;
55
+ }>;
56
+ _messagesChanged(): void;
32
57
  /**
33
58
  * The profile contains metadata used by the editor for editing context and help.
34
59
  * Example:
@@ -82,11 +107,21 @@ export declare class ArcgisArcadeEditor implements ComponentInterface {
82
107
  */
83
108
  openedSidePanel: SidePanelName;
84
109
  /**
85
- * The options for the editor (see Monaco Editor options documentation for more details).
110
+ * Options to update on the editor.
111
+ * For example:
112
+ * ```json
113
+ * {
114
+ * "fontSize": 18
115
+ * }
116
+ * ```
117
+ *
118
+ * To get the full list of available options, see the Monaco Editor options documentation for more details.
86
119
  */
87
120
  editorOptions: (editor.IEditorOptions & editor.IGlobalEditorOptions) | undefined;
88
121
  /**
89
- * The instance of the Monaco Editor.
122
+ * The instance of the Monaco Editor after the component has been rendered.
123
+ * To determine when a component is rendered, you can use componentOnReady() method.
124
+ * The method returns a Promise that resolves after the component rendered for the first time.
90
125
  * @readonly
91
126
  * @internal
92
127
  */
@@ -124,7 +159,7 @@ export declare class ArcgisArcadeEditor implements ComponentInterface {
124
159
  componentWillLoad(): Promise<void>;
125
160
  componentDidLoad(): Promise<void>;
126
161
  disconnectedCallback(): void;
127
- private _updateEditorProfile;
162
+ private _updateArcadeDefaults;
128
163
  private _executeScript;
129
164
  private _toggleShowExecutionPanel;
130
165
  private _toggleSideActionBarExpanded;
@@ -5,7 +5,49 @@ export type ResultPanelName = "console" | "log" | "output";
5
5
  /** @internal */
6
6
  export declare class ArcgisArcadeResults implements ComponentInterface {
7
7
  manager: ControllerManager<this>;
8
- private messages;
8
+ messages: {
9
+ _lang: string;
10
+ _t9nLocale: "id" | "en" | "el" | "ar" | "bg" | "bs" | "ca" | "cs" | "da" | "de" | "es" | "et" | "fi" | "fr" | "he" | "hr" | "hu" | "it" | "ja" | "ko" | "lt" | "lv" | "nl" | "nb" | "pl" | "pt-BR" | "pt-PT" | "ro" | "ru" | "sk" | "sl" | "sr" | "sv" | "th" | "tr" | "uk" | "vi" | "zh-CN" | "zh-HK" | "zh-TW";
11
+ _loading: boolean;
12
+ _overrides: {
13
+ close?: string | undefined;
14
+ console?: string | undefined;
15
+ output?: string | undefined;
16
+ log?: string | undefined;
17
+ consolemessage?: string | undefined;
18
+ lastexecutionformat?: string | undefined;
19
+ compilationtimeformat?: string | undefined;
20
+ executiontimeformat?: string | undefined;
21
+ runscriptmessage?: string | undefined;
22
+ showingfirstitemsformat?: string | undefined;
23
+ executionerrorformat?: string | undefined;
24
+ };
25
+ _original?: {
26
+ close: string;
27
+ console: string;
28
+ output: string;
29
+ log: string;
30
+ consolemessage: string;
31
+ lastexecutionformat: string;
32
+ compilationtimeformat: string;
33
+ executiontimeformat: string;
34
+ runscriptmessage: string;
35
+ showingfirstitemsformat: string;
36
+ executionerrorformat: string;
37
+ } | undefined;
38
+ } & Partial<{
39
+ close: string;
40
+ console: string;
41
+ output: string;
42
+ log: string;
43
+ consolemessage: string;
44
+ lastexecutionformat: string;
45
+ compilationtimeformat: string;
46
+ executiontimeformat: string;
47
+ runscriptmessage: string;
48
+ showingfirstitemsformat: string;
49
+ executionerrorformat: string;
50
+ }>;
9
51
  el: HTMLArcgisArcadeResultsElement;
10
52
  /**
11
53
  * Loading state
@@ -6,7 +6,28 @@ export declare class ArcgisArcadeSuggestions implements ComponentInterface {
6
6
  manager: ControllerManager<this>;
7
7
  private _flowObserver?;
8
8
  private _themeChangedListener?;
9
- private messages;
9
+ messages: {
10
+ _lang: string;
11
+ _t9nLocale: "id" | "en" | "el" | "ar" | "bg" | "bs" | "ca" | "cs" | "da" | "de" | "es" | "et" | "fi" | "fr" | "he" | "hr" | "hu" | "it" | "ja" | "ko" | "lt" | "lv" | "nl" | "nb" | "pl" | "pt-BR" | "pt-PT" | "ro" | "ru" | "sk" | "sl" | "sr" | "sv" | "th" | "tr" | "uk" | "vi" | "zh-CN" | "zh-HK" | "zh-TW";
12
+ _loading: boolean;
13
+ _overrides: {
14
+ expand?: string | undefined;
15
+ suggestions?: string | undefined;
16
+ insert?: string | undefined;
17
+ noitems?: string | undefined;
18
+ };
19
+ _original?: {
20
+ expand: string;
21
+ suggestions: string;
22
+ insert: string;
23
+ noitems: string;
24
+ } | undefined;
25
+ } & Partial<{
26
+ expand: string;
27
+ suggestions: string;
28
+ insert: string;
29
+ noitems: string;
30
+ }>;
10
31
  el: HTMLArcgisArcadeSuggestionsElement;
11
32
  _selectedSuggestion: IEditorCodeSuggestion | undefined;
12
33
  _filterValue: string;
@@ -4,7 +4,34 @@ import type { ControllerManager } from "@arcgis/components-controllers";
4
4
  export declare class ArcgisArcadeVariables implements ComponentInterface {
5
5
  manager: ControllerManager<this>;
6
6
  private _flowObserver?;
7
- private messages;
7
+ messages: {
8
+ _lang: string;
9
+ _t9nLocale: "id" | "en" | "el" | "ar" | "bg" | "bs" | "ca" | "cs" | "da" | "de" | "es" | "et" | "fi" | "fr" | "he" | "hr" | "hu" | "it" | "ja" | "ko" | "lt" | "lv" | "nl" | "nb" | "pl" | "pt-BR" | "pt-PT" | "ro" | "ru" | "sk" | "sl" | "sr" | "sv" | "th" | "tr" | "uk" | "vi" | "zh-CN" | "zh-HK" | "zh-TW";
10
+ _loading: boolean;
11
+ _overrides: {
12
+ backtotop?: string | undefined;
13
+ expand?: string | undefined;
14
+ loading?: string | undefined;
15
+ profilevariables?: string | undefined;
16
+ noitems?: string | undefined;
17
+ noprofilevariablesmessage?: string | undefined;
18
+ };
19
+ _original?: {
20
+ backtotop: string;
21
+ expand: string;
22
+ loading: string;
23
+ profilevariables: string;
24
+ noitems: string;
25
+ noprofilevariablesmessage: string;
26
+ } | undefined;
27
+ } & Partial<{
28
+ backtotop: string;
29
+ expand: string;
30
+ loading: string;
31
+ profilevariables: string;
32
+ noitems: string;
33
+ noprofilevariablesmessage: string;
34
+ }>;
8
35
  el: HTMLArcgisArcadeVariablesElement;
9
36
  _mutationCounter: number;
10
37
  _flowItemRenderers: (() => VNode)[];
@@ -3,6 +3,7 @@ import type { Selection } from "monaco-editor";
3
3
  import { editor } from "monaco-editor";
4
4
  import type { ControllerManager } from "@arcgis/components-controllers";
5
5
  import "../../utils/arcade-monaco/arcade-contribution";
6
+ import "../../utils/sql-expr-monaco/sql-expr-contribution";
6
7
  export declare class ArcgisCodeEditor implements ComponentInterface {
7
8
  manager: ControllerManager<this>;
8
9
  private _editorInstance;
@@ -18,7 +19,7 @@ export declare class ArcgisCodeEditor implements ComponentInterface {
18
19
  value: string;
19
20
  /**
20
21
  * The language for the editor.
21
- * Currently supported language: arcade, json, css, html, javascript, typescript, and text.
22
+ * Currently supported language: arcade, arcgis-sql-expression, json, css, html, javascript, typescript, and text.
22
23
  */
23
24
  language: string | undefined;
24
25
  languagePropChange(): void;
@@ -31,12 +32,22 @@ export declare class ArcgisCodeEditor implements ComponentInterface {
31
32
  modelId: string;
32
33
  modelIdPropChange(): void;
33
34
  /**
34
- * The options for the editor (see Monaco Editor options documentation for more details).
35
+ * Options to update on the editor.
36
+ * For example:
37
+ * ```json
38
+ * {
39
+ * "fontSize": 18
40
+ * }
41
+ * ```
42
+ *
43
+ * To get the full list of options set on the editor, use the editorInstance property and see Monaco Editor options documentation for more details.
35
44
  */
36
- options: (editor.IEditorOptions & editor.IGlobalEditorOptions) | undefined;
37
- optionsPropChange(newValue: (editor.IEditorOptions & editor.IGlobalEditorOptions) | undefined): void;
45
+ editorOptions: (editor.IEditorOptions & editor.IGlobalEditorOptions) | undefined;
46
+ editorOptionsPropChange(newValue: (editor.IEditorOptions & editor.IGlobalEditorOptions) | undefined): void;
38
47
  /**
39
- * The instance of the Monaco Editor.
48
+ * The instance of the Monaco Editor after the component has been rendered.
49
+ * To determine when a component is rendered, you can use componentOnReady() method.
50
+ * The method returns a Promise that resolves after the component rendered for the first time.
40
51
  * @readonly
41
52
  */
42
53
  editorInstance: editor.IStandaloneCodeEditor | undefined;
@@ -1,28 +1,55 @@
1
1
  import type { VNode, EventEmitter, ComponentInterface } from "../../stencil-public-runtime";
2
2
  import type { ApiCategory, ApiItem } from "@arcgis/arcade-languageservice";
3
3
  import type { ControllerManager } from "@arcgis/components-controllers";
4
- import type { LanguageDefaultsBase } from "../../utils/language-defaults-base";
5
4
  /** @internal */
6
5
  export declare class ArcgisLanguageApiPanel implements ComponentInterface {
7
6
  manager: ControllerManager<this>;
8
7
  private _flowObserver?;
9
8
  private _themeChangedListener?;
10
- private messages;
9
+ messages: {
10
+ _lang: string;
11
+ _t9nLocale: "id" | "en" | "el" | "ar" | "bg" | "bs" | "ca" | "cs" | "da" | "de" | "es" | "et" | "fi" | "fr" | "he" | "hr" | "hu" | "it" | "ja" | "ko" | "lt" | "lv" | "nl" | "nb" | "pl" | "pt-BR" | "pt-PT" | "ro" | "ru" | "sk" | "sl" | "sr" | "sv" | "th" | "tr" | "uk" | "vi" | "zh-CN" | "zh-HK" | "zh-TW";
12
+ _loading: boolean;
13
+ _overrides: {
14
+ expand?: string | undefined;
15
+ loading?: string | undefined;
16
+ constantsandfunctions?: string | undefined;
17
+ insert?: string | undefined;
18
+ noitems?: string | undefined;
19
+ moreinformation?: string | undefined;
20
+ };
21
+ _original?: {
22
+ expand: string;
23
+ loading: string;
24
+ constantsandfunctions: string;
25
+ insert: string;
26
+ noitems: string;
27
+ moreinformation: string;
28
+ } | undefined;
29
+ } & Partial<{
30
+ expand: string;
31
+ loading: string;
32
+ constantsandfunctions: string;
33
+ insert: string;
34
+ noitems: string;
35
+ moreinformation: string;
36
+ }>;
11
37
  el: HTMLArcgisLanguageApiPanelElement;
12
38
  _selectedApiItem: ApiItem | undefined;
13
39
  _filterValue: string;
14
40
  _colorizeStyle: string;
15
- _preparingApi: boolean;
16
- _apiLibrary: ApiCategory[] | undefined;
17
41
  /**
18
42
  * Should the documentation action be hidden
19
43
  */
20
44
  hideDocumentationActions: boolean;
21
45
  /**
22
- * The model id used by the component to retrieve the api library
46
+ * When true, a busy indicator is displayed
23
47
  */
24
- modelId: string | undefined;
25
- languageDefaults: LanguageDefaultsBase;
48
+ loading: boolean;
49
+ /**
50
+ * The api library to display
51
+ */
52
+ apiLibrary: ApiCategory[] | undefined;
26
53
  /**
27
54
  * Raised when the close action has been requested
28
55
  */
@@ -33,7 +60,6 @@ export declare class ArcgisLanguageApiPanel implements ComponentInterface {
33
60
  arcgisItemSelected: EventEmitter<string>;
34
61
  componentWillLoad(): Promise<void>;
35
62
  disconnectedCallback(): void;
36
- private _updateApiLibrary;
37
63
  private flowFocusHandler;
38
64
  private _emitItemSelected;
39
65
  private _emitClose;
@@ -0,0 +1,24 @@
1
+ import type { ComponentInterface, VNode } from "../../stencil-public-runtime";
2
+ import type { ControllerManager } from "@arcgis/components-controllers";
3
+ import type { EditorProfile } from "../../utils/profile/editor-profile";
4
+ import type { IPredefinedProfile } from "../../components";
5
+ import type { ApiCategory } from "@arcgis/languages-api-utils";
6
+ export declare class SqlExpressionEditor implements ComponentInterface {
7
+ manager: ControllerManager<this>;
8
+ el: HTMLArcgisArcadeEditorElement;
9
+ private _modelId;
10
+ private _codeEditorElt?;
11
+ _preparing: boolean;
12
+ _editorProfile: EditorProfile | undefined;
13
+ _activeAction: "fields" | "functions" | undefined;
14
+ _apiLibrary: ApiCategory[] | undefined;
15
+ profile: IPredefinedProfile | undefined;
16
+ _profileChanged(): void;
17
+ private _updateSqlExprDefaults;
18
+ private _setActiveAction;
19
+ private _handleActionClick;
20
+ private _insertAsSnippet;
21
+ componentWillLoad(): Promise<void>;
22
+ disconnectedCallback(): void;
23
+ render(): VNode;
24
+ }
@@ -0,0 +1,32 @@
1
+ import { type ControllerManager } from "@arcgis/components-controllers";
2
+ import { type ComponentInterface, type EventEmitter, type VNode } from "../../stencil-public-runtime";
3
+ /** @internal */
4
+ export declare class SqlExpressionFields implements ComponentInterface {
5
+ manager: ControllerManager<this>;
6
+ private _flowObserver?;
7
+ el: HTMLDivElement;
8
+ _mutationCounter: number;
9
+ _flowItemRenderers: (() => VNode)[];
10
+ _filterValue: string;
11
+ /**
12
+ * Loading state
13
+ */
14
+ loading: boolean;
15
+ /**
16
+ * The model id
17
+ */
18
+ modelId: string | undefined;
19
+ modelIdPropChanged(): void;
20
+ /**
21
+ * Emitted when close action has been activated
22
+ */
23
+ arcgisClose: EventEmitter<void>;
24
+ /**
25
+ * Emitted when a field has been selected
26
+ */
27
+ arcgisFieldSelected: EventEmitter<string>;
28
+ disconnectedCallback(): void;
29
+ private _handleSelectField;
30
+ private _emitClose;
31
+ render(): VNode;
32
+ }