@arcgis/coding-components 4.31.0-next.3 → 4.31.0-next.30

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/sql-expr.worker.js +447 -7
  43. package/dist/arcgis-coding-components/assets/language-api-panel/t9n/language-api-panel.t9n.ca.json +1 -1
  44. package/dist/arcgis-coding-components/index.esm.js +2 -2
  45. package/dist/arcgis-coding-components/{p-42c8b545.js → p-1cec2132.js} +3 -3
  46. package/dist/arcgis-coding-components/{p-3ca5ba95.entry.js → p-2186676a.entry.js} +2 -2
  47. package/dist/arcgis-coding-components/{p-86106a9a.js → p-26f5a06d.js} +1 -1
  48. package/dist/arcgis-coding-components/p-3645c71d.entry.js +6 -0
  49. package/dist/arcgis-coding-components/{p-8b4298d5.js → p-4ce2a213.js} +2 -2
  50. package/dist/arcgis-coding-components/{p-111ba641.js → p-57bde3ee.js} +2 -2
  51. package/dist/arcgis-coding-components/p-57dbf777.js +7 -0
  52. package/dist/arcgis-coding-components/{p-9132bc9c.entry.js → p-639adfca.entry.js} +2 -2
  53. package/dist/arcgis-coding-components/p-71d639a6.js +6 -0
  54. package/dist/arcgis-coding-components/{p-6554a853.js → p-72266079.js} +1 -1
  55. package/dist/arcgis-coding-components/p-7e2ae261.js +6 -0
  56. package/dist/arcgis-coding-components/{p-5eb82abf.js → p-8897f806.js} +2 -2
  57. package/dist/arcgis-coding-components/p-91bb956b.js +6 -0
  58. package/dist/arcgis-coding-components/p-9b2002c3.js +6 -0
  59. package/dist/arcgis-coding-components/{p-7c6b3d40.js → p-9c411f13.js} +2 -2
  60. package/dist/arcgis-coding-components/{p-c4a5150e.js → p-bd309794.js} +3 -3
  61. package/dist/arcgis-coding-components/{p-4986aaf2.js → p-cc0edd81.js} +3 -3
  62. package/dist/arcgis-coding-components/{p-93d0e0cc.js → p-e295aee1.js} +12 -12
  63. package/dist/arcgis-coding-components/p-fe4ee070.js +6 -0
  64. package/dist/cjs/{app-globals-92c5b499.js → app-globals-e98febdb.js} +1 -1
  65. package/dist/cjs/arcade-defaults-c6ecbcbe.js +349 -0
  66. package/dist/cjs/arcade-language-features-eeb1f261.js +274 -0
  67. package/dist/cjs/{arcade-mode-dfd66b4b.js → arcade-mode-a2d05415.js} +6 -266
  68. package/dist/cjs/arcgis-arcade-editor_6.cjs.entry.js +20 -26
  69. package/dist/cjs/arcgis-coding-components.cjs.js +5 -5
  70. package/dist/cjs/arcgis-sql-expression-editor.cjs.entry.js +4 -4
  71. package/dist/cjs/arcgis-sql-expression-fields.cjs.entry.js +4 -4
  72. package/dist/cjs/{css-9b0053c3.js → css-1b37a5a3.js} +1 -1
  73. package/dist/cjs/{cssMode-62e53008.js → cssMode-e08a9e80.js} +2 -3
  74. package/dist/cjs/{html-3036e89e.js → html-b55754c8.js} +2 -3
  75. package/dist/cjs/{htmlMode-c37eee42.js → htmlMode-e335e2e0.js} +2 -3
  76. package/dist/cjs/{index-be6b2520.js → index-1e6c6daf.js} +43 -15
  77. package/dist/cjs/index.cjs.js +4 -4
  78. package/dist/cjs/{javascript-7276c023.js → javascript-5d6e0e2f.js} +3 -4
  79. package/dist/cjs/{jsonMode-baa295f0.js → jsonMode-5aeae11c.js} +2 -3
  80. package/dist/cjs/{language-defaults-base-5817af52.js → language-defaults-base-b33c98c5.js} +842 -1062
  81. package/dist/cjs/loader.cjs.js +4 -4
  82. package/dist/cjs/{sql-expr-defaults-746bbc5f.js → sql-expr-defaults-2fcbfae4.js} +101 -39
  83. package/dist/cjs/sql-expr-mode-72880fff.js +1171 -0
  84. package/dist/cjs/{tsMode-36398912.js → tsMode-5559948f.js} +2 -3
  85. package/dist/cjs/{typescript-608a420b.js → typescript-6dfdd308.js} +2 -3
  86. package/dist/components/arcade-defaults.js +238 -4
  87. package/dist/components/arcade-language-features.js +271 -0
  88. package/dist/components/arcade-mode.js +4 -264
  89. package/dist/components/arcade-results.js +3 -3
  90. package/dist/components/arcade-suggestions.js +2 -2
  91. package/dist/components/arcade-variables.js +2 -2
  92. package/dist/components/arcgis-arcade-editor.js +7 -6
  93. package/dist/components/arcgis-arcade-results.js +1 -1
  94. package/dist/components/arcgis-arcade-suggestions.js +1 -1
  95. package/dist/components/arcgis-arcade-variables.js +1 -1
  96. package/dist/components/arcgis-assets.d.ts +1 -1
  97. package/dist/components/arcgis-assets.js +1 -1
  98. package/dist/components/arcgis-code-editor.js +1 -1
  99. package/dist/components/arcgis-language-api-panel.js +1 -1
  100. package/dist/components/arcgis-sql-expression-editor.js +2 -2
  101. package/dist/components/arcgis-sql-expression-fields.js +1 -1
  102. package/dist/components/{chunk-6TARY3NN.js → chunk-EOMOY2EF.js} +12 -17
  103. package/dist/components/code-editor.js +16 -23
  104. package/dist/components/fields.js +22 -4
  105. package/dist/components/index.d.ts +18 -3
  106. package/dist/components/index.js +1 -1
  107. package/dist/components/index2.js +2 -2
  108. package/dist/components/language-api-panel.js +2 -2
  109. package/dist/components/language-defaults-base.js +81 -323
  110. package/dist/components/markdown.js +1 -1
  111. package/dist/components/sql-expr-defaults.js +89 -24
  112. package/dist/components/sql-expr-mode.js +1009 -24971
  113. package/dist/components/sql-expression-fields.js +2 -2
  114. package/dist/components/useT9n.js +2 -2
  115. package/dist/components/utilities.js +1 -1
  116. package/dist/esm/{app-globals-5e178541.js → app-globals-906d2920.js} +1 -1
  117. package/dist/esm/arcade-defaults-01c1778e.js +344 -0
  118. package/dist/esm/arcade-language-features-5d86df55.js +269 -0
  119. package/dist/esm/{arcade-mode-02336ce9.js → arcade-mode-ffa50b73.js} +3 -263
  120. package/dist/esm/arcgis-arcade-editor_6.entry.js +21 -27
  121. package/dist/esm/arcgis-coding-components.js +6 -6
  122. package/dist/esm/arcgis-sql-expression-editor.entry.js +4 -4
  123. package/dist/esm/arcgis-sql-expression-fields.entry.js +4 -4
  124. package/dist/esm/{css-e79f1ed1.js → css-e6d12b19.js} +1 -1
  125. package/dist/esm/{cssMode-cd007d02.js → cssMode-eda5bf61.js} +2 -3
  126. package/dist/esm/{html-d079d00d.js → html-b5f697d7.js} +2 -3
  127. package/dist/esm/{htmlMode-ff14e035.js → htmlMode-1b54015e.js} +2 -3
  128. package/dist/esm/{index-88fc341d.js → index-0ec9c3f1.js} +43 -15
  129. package/dist/esm/index.js +4 -4
  130. package/dist/esm/{javascript-69f7c282.js → javascript-f1c7843a.js} +3 -4
  131. package/dist/esm/{jsonMode-18ddadde.js → jsonMode-2277640b.js} +2 -3
  132. package/dist/esm/{language-defaults-base-6687d11a.js → language-defaults-base-b508c08f.js} +837 -1062
  133. package/dist/esm/loader.js +5 -5
  134. package/dist/esm/{sql-expr-defaults-2cdfe08a.js → sql-expr-defaults-715f6bad.js} +100 -40
  135. package/dist/esm/sql-expr-mode-3cd5df90.js +1167 -0
  136. package/dist/esm/{tsMode-c2e5d33a.js → tsMode-075abf4a.js} +2 -3
  137. package/dist/esm/{typescript-a0fbebf0.js → typescript-22cfacaa.js} +2 -3
  138. package/dist/loader/cdn.js +2 -3
  139. package/dist/loader/index.cjs.js +2 -3
  140. package/dist/loader/index.es2017.js +2 -3
  141. package/dist/loader/index.js +2 -3
  142. package/dist/types/components/arcade-editor/arcade-editor.d.ts +13 -3
  143. package/dist/types/components/arcade-results/arcade-results.d.ts +1 -1
  144. package/dist/types/components/arcade-suggestions/arcade-suggestions.d.ts +1 -1
  145. package/dist/types/components/arcade-variables/arcade-variables.d.ts +1 -1
  146. package/dist/types/components/code-editor/code-editor.d.ts +14 -4
  147. package/dist/types/components/language-api-panel/language-api-panel.d.ts +1 -1
  148. package/dist/types/components.d.ts +13 -13
  149. 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
  150. 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
  151. package/dist/types/stencil-public-runtime.d.ts +3 -8
  152. package/dist/types/utils/arcade-monaco/arcade-language-features.d.ts +1 -0
  153. package/dist/types/utils/arcade-monaco/arcade-profile-strategy.d.ts +9 -0
  154. package/dist/types/utils/fields.d.ts +2 -2
  155. package/dist/types/utils/profile/editor-profile.d.ts +7 -6
  156. package/dist/types/utils/profile/types.d.ts +53 -65
  157. package/dist/types/utils/profile/utils.d.ts +9 -8
  158. package/dist/types/utils/sql-expr-monaco/sql-expr-completion.d.ts +3 -2
  159. package/dist/types/utils/sql-expr-monaco/sql-expr-constants.d.ts +45 -0
  160. package/dist/types/utils/sql-expr-monaco/sql-expr-contribution.d.ts +1 -11
  161. package/dist/types/utils/sql-expr-monaco/sql-expr-defaults.d.ts +0 -1
  162. package/dist/types/utils/sql-expr-monaco/sql-expr-language-features.d.ts +19 -520
  163. package/dist/types/utils/sql-expr-monaco/sql-expr-mode.d.ts +34 -1
  164. package/dist/types/utils/sql-expr-monaco/sql-expr-service-accessors.d.ts +19 -0
  165. package/dist/types/utils/sql-expr-monaco/sql-expr-validation-diagnostic-adapter.d.ts +0 -7
  166. package/dist/types/utils/sql-expr-monaco/sql-expr-validation-utils.d.ts +75 -77
  167. package/dist/types/utils/sql-expr-monaco/sql-expr-validation.d.ts +5 -6
  168. package/dist/types/utils/sql-expr-monaco/sql-expr-worker-manager.d.ts +2 -0
  169. package/dist/types/utils/sql-expr-monaco/sql-expr.worker.d.ts +9 -6
  170. package/dist/types/utils/sql-expr-monaco/sql-expression-profile-strategy.d.ts +13 -0
  171. package/dist/types/utils/sql-expr-monaco/types.d.ts +6 -12
  172. package/package.json +19 -19
  173. package/dist/arcgis-coding-components/p-0105cc95.js +0 -6
  174. package/dist/arcgis-coding-components/p-5e26a360.js +0 -6
  175. package/dist/arcgis-coding-components/p-9c7e0089.js +0 -7
  176. package/dist/arcgis-coding-components/p-b82e98f0.js +0 -6
  177. package/dist/arcgis-coding-components/p-d353f1ba.entry.js +0 -6
  178. package/dist/arcgis-coding-components/p-fe6ccfe0.js +0 -6
  179. package/dist/cjs/arcade-defaults-34e82ff5.js +0 -116
  180. package/dist/cjs/sql-expr-mode-a9f1b697.js +0 -25135
  181. package/dist/esm/arcade-defaults-6dac6b30.js +0 -111
  182. package/dist/esm/polyfills/core-js.js +0 -11
  183. package/dist/esm/polyfills/dom.js +0 -79
  184. package/dist/esm/polyfills/es5-html-element.js +0 -1
  185. package/dist/esm/polyfills/index.js +0 -34
  186. package/dist/esm/polyfills/system.js +0 -6
  187. package/dist/esm/sql-expr-mode-f10e5a43.js +0 -25132
  188. package/dist/types/utils/profile/predefined-profile.d.ts +0 -4
  189. package/dist/types/utils/sql-expr-monaco/DependentFiles/DateOnly.d.ts +0 -41
  190. package/dist/types/utils/sql-expr-monaco/DependentFiles/SqlInterval.d.ts +0 -16
  191. package/dist/types/utils/sql-expr-monaco/DependentFiles/SqlTimestampOffset.d.ts +0 -26
  192. package/dist/types/utils/sql-expr-monaco/DependentFiles/TimeOnly.d.ts +0 -37
  193. package/dist/types/utils/sql-expr-monaco/DependentFiles/UnknownTimeZone.d.ts +0 -11
  194. package/dist/types/utils/sql-expr-monaco/DependentFiles/WhereGrammar.d.ts +0 -122
  195. package/dist/types/utils/sql-expr-monaco/DependentFiles/sqlCompareUtils.d.ts +0 -5
  196. package/dist/types/utils/sql-expr-monaco/DependentFiles/sqlDateParsingUtils.d.ts +0 -18
  197. package/dist/types/utils/sql-expr-monaco/DependentFiles/sqlUtils.d.ts +0 -6
  198. package/dist/types/utils/sql-expr-monaco/DependentFiles/standardizedFunctions.d.ts +0 -156
  199. package/dist/types/utils/sql-expr-monaco/DependentFiles/support.d.ts +0 -150
  200. package/dist/types/utils/sql-expr-monaco/PeggyGrammar/sql92grammar.d.ts +0 -1397
  201. package/dist/types/utils/sql-expr-monaco/libraries/date/properties/index.d.ts +0 -59
  202. package/dist/types/utils/sql-expr-monaco/libraries/numeric/properties/index.d.ts +0 -295
  203. package/dist/types/utils/sql-expr-monaco/libraries/string/properties/index.d.ts +0 -135
  204. package/dist/types/utils/sql-expr-monaco/sql-expr-validation-adapter.d.ts +0 -3
  205. package/dist/types/utils/sql-expr-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.3
4
+ * v4.31.0-next.30
5
5
  */
6
- import { H as typescriptDefaults, G as monaco_editor_core_star } from './language-defaults-base-6687d11a.js';
7
- import './index-88fc341d.js';
6
+ import { N as typescriptDefaults, M as monaco_editor_core_star } from './language-defaults-base-b508c08f.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.3
4
+ * v4.31.0-next.30
5
5
  */
6
- import { G as monaco_editor_core_star } from './language-defaults-base-6687d11a.js';
7
- import './index-88fc341d.js';
6
+ import { M as monaco_editor_core_star } from './language-defaults-base-b508c08f.js';
8
7
 
9
8
  /*!-----------------------------------------------------------------------------
10
9
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,7 +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.3
4
+ * v4.31.0-next.30
5
5
  */
6
- module.exports = require('../cjs/loader.cjs.js');
7
- module.exports.applyPolyfills = function() { return Promise.resolve() };
6
+ module.exports = require('../cjs/loader.cjs.js');
@@ -1,7 +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.3
4
+ * v4.31.0-next.30
5
5
  */
6
- module.exports = require('../cjs/loader.cjs.js');
7
- module.exports.applyPolyfills = function() { return Promise.resolve() };
6
+ module.exports = require('../cjs/loader.cjs.js');
@@ -1,7 +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.3
4
+ * v4.31.0-next.30
5
5
  */
6
- export * from '../esm/polyfills/index.js';
7
- export * from '../esm/loader.js';
6
+ export * from '../esm/loader.js';
@@ -1,8 +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.3
4
+ * v4.31.0-next.30
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
- export * from '../esm/polyfills/index.js';
8
- export * from '../esm/loader.js';
7
+ export * from '../esm/loader.js';
@@ -27,7 +27,7 @@ export declare class ArcgisArcadeEditor implements ComponentInterface {
27
27
  _executionResult?: ArcadeResult;
28
28
  messages: {
29
29
  _lang: string;
30
- _t9nLocale: "en" | "id" | "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";
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
31
  _loading: boolean;
32
32
  _overrides: {
33
33
  help?: string | undefined;
@@ -107,11 +107,21 @@ export declare class ArcgisArcadeEditor implements ComponentInterface {
107
107
  */
108
108
  openedSidePanel: SidePanelName;
109
109
  /**
110
- * 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.
111
119
  */
112
120
  editorOptions: (editor.IEditorOptions & editor.IGlobalEditorOptions) | undefined;
113
121
  /**
114
- * 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.
115
125
  * @readonly
116
126
  * @internal
117
127
  */
@@ -7,7 +7,7 @@ export declare class ArcgisArcadeResults implements ComponentInterface {
7
7
  manager: ControllerManager<this>;
8
8
  messages: {
9
9
  _lang: string;
10
- _t9nLocale: "en" | "id" | "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
+ _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
11
  _loading: boolean;
12
12
  _overrides: {
13
13
  close?: string | undefined;
@@ -8,7 +8,7 @@ export declare class ArcgisArcadeSuggestions implements ComponentInterface {
8
8
  private _themeChangedListener?;
9
9
  messages: {
10
10
  _lang: string;
11
- _t9nLocale: "en" | "id" | "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
+ _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
12
  _loading: boolean;
13
13
  _overrides: {
14
14
  expand?: string | undefined;
@@ -6,7 +6,7 @@ export declare class ArcgisArcadeVariables implements ComponentInterface {
6
6
  private _flowObserver?;
7
7
  messages: {
8
8
  _lang: string;
9
- _t9nLocale: "en" | "id" | "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";
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
10
  _loading: boolean;
11
11
  _overrides: {
12
12
  backtotop?: string | undefined;
@@ -32,12 +32,22 @@ export declare class ArcgisCodeEditor implements ComponentInterface {
32
32
  modelId: string;
33
33
  modelIdPropChange(): void;
34
34
  /**
35
- * 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.
36
44
  */
37
- options: (editor.IEditorOptions & editor.IGlobalEditorOptions) | undefined;
38
- optionsPropChange(newValue: (editor.IEditorOptions & editor.IGlobalEditorOptions) | undefined): void;
45
+ editorOptions: (editor.IEditorOptions & editor.IGlobalEditorOptions) | undefined;
46
+ editorOptionsPropChange(newValue: (editor.IEditorOptions & editor.IGlobalEditorOptions) | undefined): void;
39
47
  /**
40
- * 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.
41
51
  * @readonly
42
52
  */
43
53
  editorInstance: editor.IStandaloneCodeEditor | undefined;
@@ -8,7 +8,7 @@ export declare class ArcgisLanguageApiPanel implements ComponentInterface {
8
8
  private _themeChangedListener?;
9
9
  messages: {
10
10
  _lang: string;
11
- _t9nLocale: "en" | "id" | "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
+ _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
12
  _loading: boolean;
13
13
  _overrides: {
14
14
  expand?: string | undefined;
@@ -26,12 +26,12 @@ export { IPredefinedProfile as IPredefinedProfile1 } from "./components";
26
26
  export namespace Components {
27
27
  interface ArcgisArcadeEditor {
28
28
  /**
29
- * The instance of the Monaco Editor.
29
+ * The instance of the Monaco Editor after the component has been rendered. To determine when a component is rendered, you can use componentOnReady() method. The method returns a Promise that resolves after the component rendered for the first time.
30
30
  * @readonly
31
31
  */
32
32
  "editorInstance": editor.IStandaloneCodeEditor | undefined;
33
33
  /**
34
- * The options for the editor (see Monaco Editor options documentation for more details).
34
+ * Options to update on the editor. For example: ```json { "fontSize": 18 } ``` To get the full list of available options, see the Monaco Editor options documentation for more details.
35
35
  */
36
36
  "editorOptions": (editor.IEditorOptions & editor.IGlobalEditorOptions) | undefined;
37
37
  /**
@@ -127,10 +127,14 @@ export namespace Components {
127
127
  }
128
128
  interface ArcgisCodeEditor {
129
129
  /**
130
- * The instance of the Monaco Editor.
130
+ * The instance of the Monaco Editor after the component has been rendered. To determine when a component is rendered, you can use componentOnReady() method. The method returns a Promise that resolves after the component rendered for the first time.
131
131
  * @readonly
132
132
  */
133
133
  "editorInstance": editor.IStandaloneCodeEditor | undefined;
134
+ /**
135
+ * Options to update on the editor. For example: ```json { "fontSize": 18 } ``` To get the full list of options set on the editor, use the editorInstance property and see Monaco Editor options documentation for more details.
136
+ */
137
+ "editorOptions": (editor.IEditorOptions & editor.IGlobalEditorOptions) | undefined;
134
138
  /**
135
139
  * @deprecated Use `editorInstance` property instead.
136
140
  */
@@ -159,10 +163,6 @@ export namespace Components {
159
163
  * A unique identifier for the model. The unique identifier is sometimes used by language defaults to store model metadata. For example, with arcade, the model id is used to store the arcade profile and other metadata. The unique identifier is especially useful when there are multiple editors on the same page.
160
164
  */
161
165
  "modelId": string;
162
- /**
163
- * The options for the editor (see Monaco Editor options documentation for more details).
164
- */
165
- "options": (editor.IEditorOptions & editor.IGlobalEditorOptions) | undefined;
166
166
  /**
167
167
  * Sets the focus on the editor.
168
168
  * @returns
@@ -383,7 +383,7 @@ declare global {
383
383
  declare namespace LocalJSX {
384
384
  interface ArcgisArcadeEditor {
385
385
  /**
386
- * The options for the editor (see Monaco Editor options documentation for more details).
386
+ * Options to update on the editor. For example: ```json { "fontSize": 18 } ``` To get the full list of available options, see the Monaco Editor options documentation for more details.
387
387
  */
388
388
  "editorOptions"?: (editor.IEditorOptions & editor.IGlobalEditorOptions) | undefined;
389
389
  /**
@@ -491,10 +491,14 @@ declare namespace LocalJSX {
491
491
  }
492
492
  interface ArcgisCodeEditor {
493
493
  /**
494
- * The instance of the Monaco Editor.
494
+ * The instance of the Monaco Editor after the component has been rendered. To determine when a component is rendered, you can use componentOnReady() method. The method returns a Promise that resolves after the component rendered for the first time.
495
495
  * @readonly
496
496
  */
497
497
  "editorInstance"?: editor.IStandaloneCodeEditor | undefined;
498
+ /**
499
+ * Options to update on the editor. For example: ```json { "fontSize": 18 } ``` To get the full list of options set on the editor, use the editorInstance property and see Monaco Editor options documentation for more details.
500
+ */
501
+ "editorOptions"?: (editor.IEditorOptions & editor.IGlobalEditorOptions) | undefined;
498
502
  /**
499
503
  * The language for the editor. Currently supported language: arcade, arcgis-sql-expression, json, css, html, javascript, typescript, and text.
500
504
  */
@@ -514,10 +518,6 @@ declare namespace LocalJSX {
514
518
  * Emitted when the value has changed (script, code, css, json, etc.)
515
519
  */
516
520
  "onArcgisValueChange"?: (event: ArcgisCodeEditorCustomEvent<string>) => void;
517
- /**
518
- * The options for the editor (see Monaco Editor options documentation for more details).
519
- */
520
- "options"?: (editor.IEditorOptions & editor.IGlobalEditorOptions) | undefined;
521
521
  /**
522
522
  * The initial value for the editor. The value is the script, code, css, json, etc.
523
523
  */
@@ -1,6 +1,8 @@
1
1
  import type { Meta, StoryObj } from "@storybook/web-components";
2
2
  import type { Components } from "../../../src/components";
3
+ import type { LayerItemPopupProfileConfiguration } from "./editorContext";
3
4
  import { type PopupProfileConfiguration } from "./editorContext";
5
+ import type { BundleType } from "@arcgis/arcade-languageservice";
4
6
  declare const meta: Meta<Components.ArcgisArcadeEditor>;
5
7
  export default meta;
6
8
  interface PopupProfileAdditionalArgs {
@@ -8,8 +10,13 @@ interface PopupProfileAdditionalArgs {
8
10
  }
9
11
  type PopupProfileStoryType = Components.ArcgisArcadeEditor & PopupProfileAdditionalArgs;
10
12
  export declare const PopupProfileStory: StoryObj<PopupProfileStoryType>;
13
+ interface SLPopupProfileAdditionalArgs {
14
+ configuration: LayerItemPopupProfileConfiguration;
15
+ }
16
+ type SLPopupProfileStoryType = Components.ArcgisArcadeEditor & SLPopupProfileAdditionalArgs;
17
+ export declare const SLPopupProfileStory: StoryObj<SLPopupProfileStoryType>;
11
18
  export declare const HideItemsCustomProfileStory: StoryObj<Components.ArcgisArcadeEditor & {
12
- bundles?: string[];
19
+ bundles?: BundleType[];
13
20
  hiddenApiItems: string[];
14
21
  }>;
15
22
  export declare const HideItemsPredefinedProfileStory: StoryObj<Components.ArcgisArcadeEditor & {
@@ -1,6 +1,7 @@
1
1
  import type { Components } from "../../../src/components";
2
+ type PortalKeyType = "devext" | "qaext" | "www";
2
3
  export interface PopupProfileConfiguration {
3
- portalKey: "devext" | "qaext" | "www";
4
+ portalKey: PortalKeyType;
4
5
  itemId: string;
5
6
  layerId: string;
6
7
  subtypeCode?: number;
@@ -9,3 +10,6 @@ export interface PopupProfileConfiguration {
9
10
  }
10
11
  export type PopupProfileEditorContext = Partial<Pick<Components.ArcgisArcadeEditor, "profile" | "testData">>;
11
12
  export declare function getPopupProfileEditorContext({ portalKey, itemId, layerId, timeZone, subtypeCode, sublayerId, }: PopupProfileConfiguration): Promise<PopupProfileEditorContext>;
13
+ export type LayerItemPopupProfileConfiguration = Pick<PopupProfileConfiguration, "layerId" | "portalKey">;
14
+ export declare function getPopupProfileEditorContextForLayerItem({ portalKey, layerId }: LayerItemPopupProfileConfiguration, createTestData?: boolean): Promise<PopupProfileEditorContext>;
15
+ export {};
@@ -768,6 +768,7 @@ export declare namespace JSXBase {
768
768
  hrefLang?: string;
769
769
  hreflang?: string;
770
770
  media?: string;
771
+ ping?: string;
771
772
  rel?: string;
772
773
  target?: string;
773
774
  referrerPolicy?: ReferrerPolicy;
@@ -794,7 +795,6 @@ export declare namespace JSXBase {
794
795
  cite?: string;
795
796
  }
796
797
  interface ButtonHTMLAttributes<T> extends HTMLAttributes<T> {
797
- autoFocus?: boolean;
798
798
  disabled?: boolean;
799
799
  form?: string;
800
800
  formAction?: string;
@@ -921,8 +921,6 @@ export declare namespace JSXBase {
921
921
  autocapitalize?: string;
922
922
  autoComplete?: string;
923
923
  autocomplete?: string;
924
- autoFocus?: boolean;
925
- autofocus?: boolean | string;
926
924
  capture?: string;
927
925
  checked?: boolean;
928
926
  crossOrigin?: string;
@@ -979,8 +977,6 @@ export declare namespace JSXBase {
979
977
  popoverTarget?: string;
980
978
  }
981
979
  interface KeygenHTMLAttributes<T> extends HTMLAttributes<T> {
982
- autoFocus?: boolean;
983
- autofocus?: boolean | string;
984
980
  challenge?: string;
985
981
  disabled?: boolean;
986
982
  form?: string;
@@ -1129,7 +1125,6 @@ export declare namespace JSXBase {
1129
1125
  type?: string;
1130
1126
  }
1131
1127
  interface SelectHTMLAttributes<T> extends HTMLAttributes<T> {
1132
- autoFocus?: boolean;
1133
1128
  disabled?: boolean;
1134
1129
  form?: string;
1135
1130
  multiple?: boolean;
@@ -1164,8 +1159,6 @@ export declare namespace JSXBase {
1164
1159
  interface TextareaHTMLAttributes<T> extends HTMLAttributes<T> {
1165
1160
  autoComplete?: string;
1166
1161
  autocomplete?: string;
1167
- autoFocus?: boolean;
1168
- autofocus?: boolean | string;
1169
1162
  cols?: number;
1170
1163
  disabled?: boolean;
1171
1164
  form?: string;
@@ -1218,6 +1211,8 @@ export declare namespace JSXBase {
1218
1211
  interface HTMLAttributes<T = HTMLElement> extends DOMAttributes<T> {
1219
1212
  innerHTML?: string;
1220
1213
  accessKey?: string;
1214
+ autoFocus?: boolean;
1215
+ autofocus?: boolean | string;
1221
1216
  class?: string | {
1222
1217
  [className: string]: boolean;
1223
1218
  };
@@ -19,6 +19,7 @@ export declare class DiagnosticsAdapter {
19
19
  dispose(): void;
20
20
  private _doValidate;
21
21
  }
22
+ export declare function toCompletionItemKind(kind: number | undefined): languages.CompletionItemKind;
22
23
  export declare class CompletionProvider implements languages.CompletionItemProvider {
23
24
  private _worker;
24
25
  private _defaults;
@@ -0,0 +1,9 @@
1
+ import type { ApiProfile } from "@arcgis/arcade-languageservice";
2
+ import type { EditorProfile } from "../profile/editor-profile";
3
+ import type { IPredefinedProfile, IEditorProfileDefinition } from "../profile/types";
4
+ /**
5
+ * Converts an editor profile to an api profile.
6
+ * The api profile is an optimized version of the editor profile designed for minimal data transfer between the main thread and the worker.
7
+ */
8
+ export declare function arcadeEditorToApiProfile(editorProfile: EditorProfile): Promise<ApiProfile>;
9
+ export declare function convertToEditorProfileDefinition(predefinedProfile: IPredefinedProfile, locale?: string): Promise<IEditorProfileDefinition | undefined>;
@@ -4,8 +4,8 @@ import type { ApiValueVariableType } from "@arcgis/arcade-languageservice";
4
4
  */
5
5
  export declare function fieldTypeToIconName(field: __esri.Field): string;
6
6
  /**
7
- * Returns the Arcade type for the given field.
7
+ * Returns the ApiValueVariable type for the given field.
8
8
  */
9
- export declare function fieldTypeToArcadeType(field: __esri.Field): ApiValueVariableType;
9
+ export declare function fieldTypeToApiValueVarType(field: __esri.Field): ApiValueVariableType;
10
10
  export declare function supportedFields(fields: __esri.Field[] | null | undefined): __esri.Field[];
11
11
  export declare function fieldAlias(field: __esri.Field): string;
@@ -1,5 +1,6 @@
1
- import type { ApiVariableType, ApiProfile } from "@arcgis/arcade-languageservice";
1
+ import type { ApiVariableType } from "@arcgis/arcade-languageservice";
2
2
  import type * as types from "./types";
3
+ import type { ApiValueVariable } from "@arcgis/languages-api-utils";
3
4
  /**
4
5
  * FeatureSetCollection interface. Used in Arcade expressions to represent Web Maps
5
6
  * or Feature Services.
@@ -21,6 +22,10 @@ interface IFeatureSetCollections {
21
22
  */
22
23
  source: __esri.Map | __esri.WebMap | __esri.WebScene | string;
23
24
  }
25
+ /**
26
+ * converts fields to profile values and calculates the feature completion description all in one iteration
27
+ */
28
+ export declare function fieldsToProfileValues(fields: __esri.Field[], initialFeatureCompletionDescription: string, includeAliases?: boolean): [ApiValueVariable[], string];
24
29
  type ProfileItemType = ApiVariableType | "group";
25
30
  export type EditorVariable = ArrayVariable | DictionaryVariable | FeatureSetCollectionVariable | FeatureSetVariable | FeatureVariable | ValueVariable;
26
31
  interface ConstructorProperties<T> {
@@ -200,7 +205,7 @@ export declare class FeatureSetVariable extends SourceBasedVariable {
200
205
  constructor(owner: CollectionBasedVariable | undefined, props: ConstructorProperties<types.IProfileFeatureSet>, featureSetSnippets?: ValueVariable[], relationshipProps?: IRelationshipsProperties);
201
206
  get title(): types.IIntlString | string;
202
207
  protected _loadSource(): Promise<types.SupportedSource | null>;
203
- toProfileVariableDefinition(): types.IProfileVariable;
208
+ toProfileVariableDefinition(): types.IProfileFeatureSet;
204
209
  }
205
210
  export declare class FeatureSetCollectionVariable extends CollectionBasedVariable {
206
211
  type: "featureSetCollection";
@@ -239,10 +244,6 @@ export declare class EditorProfile extends DictionaryVariable {
239
244
  * Returns true if the profile supports feature set functions for snippets.
240
245
  */
241
246
  get supportFeatureSetFunctions(): boolean;
242
- /**
243
- * Returns the language service profile. It is different than the editor profile as it is optimized for Monaco.
244
- */
245
- toLSProfile(): Promise<ApiProfile>;
246
247
  /**
247
248
  * Returns the EditorProfile as a json. The EditorProfile may have been updated. This function allows to
248
249
  * get the new json representing mutations.
@@ -13,7 +13,7 @@ export interface IEditorProfileDefinition {
13
13
  label?: string;
14
14
  /**
15
15
  * The collection of variables that will be passed to the expression at execution time.
16
- * The variable declartions are used to help the editor provide validation and completion.
16
+ * The variable declarations are used to help the editor provide validation and completion.
17
17
  */
18
18
  variables: IProfileVariable[];
19
19
  /**
@@ -165,12 +165,7 @@ export interface IUrlDefinition {
165
165
  /**
166
166
  * The most basic way to define a feature or feature set is by passing a collection of fields
167
167
  */
168
- export interface IFieldsDefinition {
169
- /**
170
- * An array of fields.
171
- */
172
- fields: __esri.Field[];
173
- }
168
+ export type IFieldsDefinition = Pick<__esri.FeatureLayer, "fields">;
174
169
  /**
175
170
  * FeatureDefinition represents various ways a Feature variable could be defined.
176
171
  * Layer instance is the most common way to define a feature,
@@ -218,29 +213,39 @@ export type SupportedSource = IFieldsDefinition;
218
213
  /**
219
214
  * Layer that supports title.
220
215
  */
221
- export interface ITitleCapableSource {
222
- /**
223
- * The title of the source.
224
- */
225
- title: string;
226
- }
216
+ export type ITitleCapableSource = Pick<__esri.Layer, "title">;
227
217
  /**
228
218
  * Layer that supports url.
229
219
  */
230
- export interface IUrlCapableSource {
231
- /**
232
- * The url of the source.
233
- */
234
- url: string;
235
- }
220
+ export type IUrlCapableSource = Pick<__esri.FeatureLayer, "url">;
236
221
  /**
237
222
  * Layer that supports layer id.
238
223
  */
239
- export interface ILayerIdCapableSource {
224
+ export type ILayerIdCapableSource = Pick<__esri.FeatureLayer, "layerId">;
225
+ /**
226
+ * Layer that supports queryFeatures
227
+ */
228
+ export interface IFeatureLayerLikeInstance extends IFieldsDefinition, ITitleCapableSource {
229
+ /**
230
+ * The declared class of the layer.
231
+ */
232
+ declaredClass: string;
240
233
  /**
241
- * The layer id of the source.
234
+ * The unique ID assigned to the layer.
235
+ */
236
+ id: string;
237
+ /**
238
+ * The layer ID, or layer index, of a Feature Service layer.
242
239
  */
243
240
  layerId: number;
241
+ /**
242
+ * Executes a Query against the feature service and returns a Promise to a FeatureSet.
243
+ */
244
+ queryFeatures: (query?: __esri.Query | __esri.QueryProperties) => Promise<__esri.FeatureSet>;
245
+ /**
246
+ * The service's metadata JSON exposed by the ArcGIS REST API.
247
+ */
248
+ sourceJSON?: any;
244
249
  }
245
250
  /**
246
251
  * Layer that supports field domains.
@@ -254,62 +259,39 @@ export interface IDomainsCapableSource {
254
259
  /**
255
260
  * Layer that implements types
256
261
  */
257
- export interface IFeatureTypesCapableSource extends IDomainsCapableSource {
258
- /**
259
- * The name of the field holding the type ID or subtypes for the features.
260
- */
261
- typeIdField: string;
262
- /**
263
- * An array of subtypes defined in the feature service exposed by ArcGIS REST API.
264
- */
265
- types: __esri.FeatureType[];
266
- }
262
+ export type IFeatureTypesCapableSource = IDomainsCapableSource & Pick<__esri.FeatureLayer, "typeIdField" | "types">;
267
263
  /**
268
264
  * Layer that has a subtype field
269
265
  */
270
- export interface ISubtypeFieldCapableSource extends IDomainsCapableSource {
271
- /**
272
- * The name of the field which holds the id of the subtypes.
273
- */
274
- subtypeField: string;
275
- }
266
+ export type ISubtypeFieldCapableSource = IDomainsCapableSource & Pick<__esri.FeatureLayer, "subtypeField">;
276
267
  /**
277
268
  * Layer that exposes subtypes.
278
269
  */
279
- export interface ISubtypesCapableSource extends ISubtypeFieldCapableSource {
280
- /**
281
- * An array of subtypes defined in the layer.
282
- */
283
- subtypes: __esri.Subtype[];
284
- }
270
+ export type ISubtypesCapableSource = ISubtypeFieldCapableSource & Pick<__esri.FeatureLayer, "subtypes">;
285
271
  /**
286
272
  * Layer that supports relationships.
287
273
  */
288
- export interface IRelationshipsCapableSource extends ILayerIdCapableSource {
289
- /**
290
- * Array of relationships set up for the layer.
291
- */
292
- relationships: __esri.Relationship[];
293
- /**
294
- * The absolute URL of the REST endpoint of the layer, non-spatial table or service.
295
- */
296
- url: string;
297
- }
274
+ export type IRelationshipsCapableSource = ILayerIdCapableSource & IUrlCapableSource & Pick<__esri.FeatureLayer, "relationships">;
298
275
  /**
299
276
  * Layer that is capable of being npn-spatial.
300
277
  */
301
- export interface ITableCapableSource {
302
- /**
303
- * Returns `true` if the layer is loaded from a non-spatial table in a service.
304
- */
305
- isTable: boolean;
306
- }
307
- export interface ILoadableSource {
308
- /**
309
- * Loads the resources referenced by the layer.
310
- */
311
- load: (signal?: AbortSignal) => Promise<any>;
312
- }
278
+ export type ITableCapableSource = Pick<__esri.FeatureLayer, "isTable">;
279
+ /**
280
+ * An instance that requires a load operation to be performed.
281
+ */
282
+ export type ILoadableSource = Pick<__esri.Layer, "load">;
283
+ /**
284
+ * An instance that requires a loadAll operation to be performed.
285
+ */
286
+ export type ILoadAllCapable = Pick<__esri.WebMap | __esri.WebScene, "loadAll">;
287
+ /**
288
+ * An instance that is based on a portal item.
289
+ */
290
+ export type IPortalItemCapable = Pick<__esri.PortalItemResource, "portalItem">;
291
+ /**
292
+ * An instance that exposes all layers and tables collections.
293
+ */
294
+ export type IGroupLayerCapable = Pick<__esri.Map, "allLayers" | "allTables">;
313
295
  /**
314
296
  * Represents a string that will have to be manufactured from a Intl strings resource.
315
297
  */
@@ -326,8 +308,14 @@ export interface IIntlString {
326
308
  */
327
309
  formatValues?: Record<string, string>;
328
310
  }
311
+ /**
312
+ * The bare minimum interface for layer information coming from the rest API.
313
+ */
329
314
  export interface LayerInfo {
330
315
  id: number;
331
316
  type: string;
332
317
  capabilities?: string;
333
318
  }
319
+ export interface IExtendedPredefinedProfile extends IPredefinedProfile {
320
+ additionalVariables?: IProfileVariable[];
321
+ }