@arcgis/coding-components 4.30.0-next.9 → 4.31.0-next.0

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 (182) hide show
  1. package/LICENSE.md +1 -1
  2. package/README.md +2 -4
  3. package/dist/arcgis-coding-components/arcgis-coding-components.css +1 -1
  4. package/dist/arcgis-coding-components/arcgis-coding-components.esm.js +3 -3
  5. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ar.json +25 -0
  6. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.bg.json +25 -0
  7. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.bs.json +25 -0
  8. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ca.json +25 -0
  9. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.cs.json +25 -0
  10. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.da.json +25 -0
  11. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.de.json +25 -0
  12. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.el.json +25 -0
  13. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.en.json +25 -0
  14. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.es.json +25 -0
  15. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.et.json +25 -0
  16. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.fi.json +25 -0
  17. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.fr.json +25 -0
  18. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.he.json +25 -0
  19. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.hr.json +25 -0
  20. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.hu.json +25 -0
  21. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.id.json +25 -0
  22. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.it.json +25 -0
  23. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ja.json +25 -0
  24. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ko.json +25 -0
  25. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.lt.json +25 -0
  26. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.lv.json +25 -0
  27. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.nb.json +25 -0
  28. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.nl.json +25 -0
  29. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.pl.json +25 -0
  30. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.pt-BR.json +25 -0
  31. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.pt-PT.json +25 -0
  32. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ro.json +25 -0
  33. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ru.json +25 -0
  34. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sk.json +25 -0
  35. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sl.json +25 -0
  36. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sr.json +25 -0
  37. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sv.json +25 -0
  38. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.th.json +25 -0
  39. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.tr.json +25 -0
  40. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.uk.json +25 -0
  41. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.vi.json +25 -0
  42. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.zh-CN.json +25 -0
  43. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.zh-HK.json +25 -0
  44. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.zh-TW.json +25 -0
  45. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.ar.json +2 -0
  46. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.bg.json +2 -0
  47. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.bs.json +2 -0
  48. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.ca.json +2 -0
  49. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.cs.json +2 -0
  50. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.da.json +2 -0
  51. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.de.json +2 -0
  52. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.el.json +2 -0
  53. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.es.json +2 -0
  54. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.et.json +2 -0
  55. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.fi.json +2 -0
  56. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.fr.json +2 -0
  57. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.he.json +2 -0
  58. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.hr.json +2 -0
  59. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.hu.json +2 -0
  60. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.id.json +2 -0
  61. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.it.json +2 -0
  62. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.ja.json +2 -0
  63. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.ko.json +2 -0
  64. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.lt.json +2 -0
  65. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.lv.json +2 -0
  66. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.nb.json +2 -0
  67. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.nl.json +2 -0
  68. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.pl.json +2 -0
  69. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.pt-BR.json +2 -0
  70. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.pt-PT.json +2 -0
  71. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.ro.json +2 -0
  72. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.ru.json +2 -0
  73. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.sk.json +2 -0
  74. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.sl.json +2 -0
  75. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.sr.json +2 -0
  76. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.sv.json +2 -0
  77. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.th.json +2 -0
  78. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.tr.json +2 -0
  79. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.uk.json +2 -0
  80. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.vi.json +2 -0
  81. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.zh-CN.json +2 -0
  82. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.zh-HK.json +2 -0
  83. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.zh-TW.json +2 -0
  84. package/dist/arcgis-coding-components/assets/code-editor/arcade.worker.js +2 -2
  85. package/dist/arcgis-coding-components/assets/code-editor/css.worker.js +1 -1
  86. package/dist/arcgis-coding-components/assets/code-editor/editor.worker.js +1 -1
  87. package/dist/arcgis-coding-components/assets/code-editor/html.worker.js +1 -1
  88. package/dist/arcgis-coding-components/assets/code-editor/json.worker.js +1 -1
  89. package/dist/arcgis-coding-components/assets/code-editor/ts.worker.js +1 -1
  90. package/dist/arcgis-coding-components/index.esm.js +3 -3
  91. package/dist/arcgis-coding-components/{p-acf1a47b.js → p-25960980.js} +3 -3
  92. package/dist/arcgis-coding-components/{p-07a4996f.js → p-3fb3347e.js} +3 -3
  93. package/dist/arcgis-coding-components/{p-5bb0cc6f.js → p-4b079737.js} +3 -3
  94. package/dist/arcgis-coding-components/p-52fc1b44.js +7 -0
  95. package/dist/arcgis-coding-components/{p-24963fee.js → p-73af647c.js} +4 -4
  96. package/dist/arcgis-coding-components/p-75571c31.entry.js +6 -0
  97. package/dist/arcgis-coding-components/{p-f6ac0a47.js → p-a333eca1.js} +4 -4
  98. package/dist/arcgis-coding-components/{p-ee8182a0.js → p-b0f66fd8.js} +3 -3
  99. package/dist/arcgis-coding-components/{p-3861533c.js → p-bd97ed67.js} +4 -4
  100. package/dist/arcgis-coding-components/p-c07f51a4.js +68 -0
  101. package/dist/arcgis-coding-components/{p-e8d8cb26.js → p-d34c7a85.js} +3 -3
  102. package/dist/arcgis-coding-components/{p-22acdf9e.js → p-f32a81b3.js} +2 -2
  103. package/dist/cjs/{arcade-defaults-9a205209.js → arcade-defaults-fa428ea6.js} +621 -249
  104. package/dist/cjs/{arcade-mode-b45aee7d.js → arcade-mode-75d2c139.js} +46 -52
  105. package/dist/cjs/arcgis-arcade-api_6.cjs.entry.js +1561 -290
  106. package/dist/cjs/arcgis-coding-components.cjs.js +4 -4
  107. package/dist/cjs/{css-19232df4.js → css-c5819912.js} +2 -2
  108. package/dist/cjs/{cssMode-4f290a37.js → cssMode-555a44d1.js} +4 -4
  109. package/dist/cjs/{html-8e42ebe7.js → html-2bff0c65.js} +4 -4
  110. package/dist/cjs/{htmlMode-062349b7.js → htmlMode-77c4a499.js} +4 -4
  111. package/dist/cjs/{index-f8b11b82.js → index-f61a8dce.js} +41 -5
  112. package/dist/cjs/index.cjs.js +4 -4
  113. package/dist/cjs/{javascript-337ae21a.js → javascript-70a512ed.js} +5 -5
  114. package/dist/cjs/{jsonMode-247b2a02.js → jsonMode-0a74131c.js} +4 -4
  115. package/dist/cjs/loader.cjs.js +4 -4
  116. package/dist/cjs/{tsMode-a95a4dea.js → tsMode-8cb776f7.js} +4 -4
  117. package/dist/cjs/{typescript-78dffda3.js → typescript-2695cf9d.js} +4 -4
  118. package/dist/components/arcade-api.js +22 -33
  119. package/dist/components/arcade-contribution.js +73 -14
  120. package/dist/components/arcade-defaults.js +132 -150
  121. package/dist/components/arcade-mode.js +45 -51
  122. package/dist/components/arcade-results.js +48 -61
  123. package/dist/components/arcade-suggestions.js +24 -34
  124. package/dist/components/arcade-variables.js +23 -37
  125. package/dist/components/arcgis-arcade-api.js +2 -2
  126. package/dist/components/arcgis-arcade-editor.js +61 -151
  127. package/dist/components/arcgis-arcade-results.js +2 -2
  128. package/dist/components/arcgis-arcade-suggestions.js +2 -2
  129. package/dist/components/arcgis-arcade-variables.js +2 -2
  130. package/dist/components/arcgis-assets.d.ts +2 -2
  131. package/dist/components/arcgis-assets.js +2 -2
  132. package/dist/components/arcgis-code-editor.js +2 -2
  133. package/dist/components/chunk-63RMNUHL.js +1275 -0
  134. package/dist/components/code-editor.js +71 -79
  135. package/dist/components/fields.js +46 -46
  136. package/dist/components/index.js +2 -2
  137. package/dist/components/index2.js +390 -4
  138. package/dist/components/markdown.js +10 -12
  139. package/dist/components/useT9n.js +35 -0
  140. package/dist/components/utilities.js +4 -4
  141. package/dist/esm/{arcade-defaults-2280f825.js → arcade-defaults-ef553659.js} +604 -236
  142. package/dist/esm/{arcade-mode-85d869d0.js → arcade-mode-f534f6f8.js} +46 -52
  143. package/dist/esm/arcgis-arcade-api_6.entry.js +1561 -290
  144. package/dist/esm/arcgis-coding-components.js +5 -5
  145. package/dist/esm/{css-da967c43.js → css-34fa13c1.js} +2 -2
  146. package/dist/esm/{cssMode-b235d424.js → cssMode-8758c994.js} +4 -4
  147. package/dist/esm/{html-4b5f94a0.js → html-c2757f30.js} +4 -4
  148. package/dist/esm/{htmlMode-c9b00fcc.js → htmlMode-64bfdd08.js} +4 -4
  149. package/dist/esm/{index-f5eb0427.js → index-7be467d0.js} +41 -5
  150. package/dist/esm/index.js +4 -4
  151. package/dist/esm/{javascript-42627a0e.js → javascript-7cb6a2cd.js} +5 -5
  152. package/dist/esm/{jsonMode-7dce6c2d.js → jsonMode-728cfcab.js} +4 -4
  153. package/dist/esm/loader.js +5 -5
  154. package/dist/esm/{tsMode-85663f7f.js → tsMode-f3c09a15.js} +4 -4
  155. package/dist/esm/{typescript-911c34c6.js → typescript-a359e263.js} +4 -4
  156. package/dist/loader/cdn.js +2 -2
  157. package/dist/loader/index.cjs.js +2 -2
  158. package/dist/loader/index.es2017.js +2 -2
  159. package/dist/loader/index.js +2 -2
  160. package/dist/types/components/arcade-api/arcade-api.d.ts +6 -7
  161. package/dist/types/components/arcade-editor/arcade-editor.d.ts +18 -12
  162. package/dist/types/components/arcade-results/arcade-results.d.ts +6 -9
  163. package/dist/types/components/arcade-suggestions/arcade-suggestions.d.ts +7 -8
  164. package/dist/types/components/arcade-variables/arcade-variables.d.ts +6 -8
  165. package/dist/types/components/code-editor/code-editor.d.ts +23 -13
  166. package/dist/types/components.d.ts +57 -35
  167. package/dist/types/controllers/useT9n.d.ts +1 -0
  168. package/dist/types/data/actions-runner-2/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/stencil.config.d.ts +3 -0
  169. package/dist/types/data/actions-runner-2/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/stories/internal/arcade-editor/arcade-editor.stories.d.ts +27 -0
  170. package/dist/types/data/actions-runner-2/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/stories/internal/arcade-editor/editorContext.d.ts +11 -0
  171. package/dist/types/data/actions-runner-2/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/stories/internal/code-editor/code-editor.stories.d.ts +6 -0
  172. package/dist/types/data/actions-runner-2/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/stories/reference/stories/arcade-editor.stories.d.ts +9 -0
  173. package/dist/types/data/actions-runner-2/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/support/sass-inline-url-importer.d.ts +9 -0
  174. package/dist/types/data/actions-runner-2/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/support/sass-json-importer.d.ts +19 -0
  175. package/dist/types/data/actions-runner-2/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/support/stencil-monaco-plugins.d.ts +6 -0
  176. package/dist/types/utils/arcade-monaco/arcade-language-features.d.ts +1 -1
  177. package/dist/types/utils/profile/types.d.ts +15 -13
  178. package/dist/types/utils/profile/utils.d.ts +1 -3
  179. package/package.json +21 -21
  180. package/dist/arcgis-coding-components/p-8f70519f.js +0 -7
  181. package/dist/arcgis-coding-components/p-9d23e7cc.entry.js +0 -6
  182. package/dist/arcgis-coding-components/p-e9157a8c.js +0 -68
@@ -1,14 +1,16 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
- * See https://js.arcgis.com/4.30/esri/copyright.txt for details.
4
- * v4.30.0-next.9
3
+ * See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
+ * v4.31.0-next.0
5
5
  */
6
- import { proxyCustomElement, HTMLElement, createEvent, h as h$1, Fragment, Host } from '@stencil/core/internal/client';
7
- import { editor, KeyCode } from 'monaco-editor';
6
+ import { proxyCustomElement, HTMLElement, createEvent, forceUpdate, h, Fragment, Host } from '@stencil/core/internal/client';
7
+ import { KeyCode } from 'monaco-editor';
8
8
  import { e as executeScript, D as DevelopersWebSitePath, d as defineCustomElement$5 } from './arcade-results.js';
9
- import { h, U, k, B, q } from './index2.js';
10
- import { s as setupMonacoEnvironment, a as getArcadeDiagnosticService } from './arcade-contribution.js';
9
+ import { u as updateThemeColors, c as colorRulesKeys, s as setupMonacoEnvironment, a as getArcadeDiagnosticService } from './arcade-contribution.js';
10
+ import { u as useControllerManager } from './chunk-63RMNUHL.js';
11
+ import { D as Deferred, p as generateGuid, q as getElementTheme } from './index2.js';
11
12
  import { b as arcadeDefaults } from './arcade-defaults.js';
13
+ import { u as useT9n } from './useT9n.js';
12
14
  import { d as defineCustomElement$6 } from './arcade-api.js';
13
15
  import { d as defineCustomElement$4 } from './arcade-suggestions.js';
14
16
  import { d as defineCustomElement$3 } from './arcade-variables.js';
@@ -19,77 +21,19 @@ import "@esri/calcite-components/dist/components/calcite-action.js";
19
21
  import "@esri/calcite-components/dist/components/calcite-tooltip.js";
20
22
  import { getArcgisAssetPath as getAssetPath } from "./arcgis-assets.js";
21
23
 
22
- const themeConfig = {
23
- "arcade-light-theme": {
24
- comment: "#606060",
25
- constant: "#9809C8",
26
- date: "#296389",
27
- identifier: "#0000B3",
28
- keyword: "#BF4900",
29
- number: "#136D3D",
30
- string: "#A31515"
31
- },
32
- "arcade-dark-theme": {
33
- comment: "#BFBFBF",
34
- constant: "#CDBAEA",
35
- date: "#97A6CE",
36
- identifier: "#9FD4F3",
37
- keyword: "#EEAA5A",
38
- number: "#AAD04B",
39
- string: "#F2877B"
40
- }
41
- };
24
+ const arcadeEditorCss = "arcgis-arcade-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-arcade-editor .flex-adjustable{flex:1 1 auto;overflow:hidden}arcgis-arcade-editor .flex-panel{flex:1 0 auto}arcgis-arcade-editor .position-relative{position:relative}arcgis-arcade-editor .flex-row{display:flex;flex-direction:row;overflow:hidden}arcgis-arcade-editor .flex-column{display:flex;flex-direction:column;overflow:hidden}arcgis-arcade-editor .border-inline-start{border-inline-start:1px solid var(--calcite-color-border-3);box-sizing:border-box}arcgis-arcade-editor .border-inline-end{border-inline-end:1px solid var(--calcite-color-border-3);box-sizing:border-box}arcgis-arcade-editor .sticky{position:sticky;top:0px;z-index:10}arcgis-arcade-editor .notice-container{margin:var(--calcite-spacing-xxs);padding:var(--calcite-spacing-sm);background-color:var(--calcite-color-foreground-1);text-align:center}arcgis-arcade-editor .side-action-bar{max-width:25%}arcgis-arcade-editor .side-panel{max-width:45%;width:600px}arcgis-arcade-editor .side-panel calcite-flow{height:100%}arcgis-arcade-editor .main-action-bar{border-bottom:1px solid var(--calcite-color-border-3);flex:0 0 auto}arcgis-arcade-editor .main-action-bar calcite-action-group{padding-inline-end:var(--calcite-spacing-sm)}arcgis-arcade-editor .main-action-bar calcite-action-group calcite-action{padding-inline-end:var(--calcite-spacing-sm)}arcgis-arcade-editor .main-action-bar calcite-action-group calcite-action:not(:first-child){padding-inline-start:var(--calcite-spacing-sm)}arcgis-arcade-editor .main-action-bar calcite-action-group:last-child{border-inline-end-width:0px}arcgis-arcade-editor .main-action-bar calcite-action-group:not(:first-child){padding-inline-start:var(--calcite-spacing-sm)}arcgis-arcade-editor arcgis-arcade-results{border-top:1px solid var(--calcite-color-border-3);box-sizing:border-box;max-height:50%;min-height:50%;margin-bottom:-1px}arcgis-arcade-editor calcite-flow [slot=footer]{word-break:break-word}";
42
25
 
43
- function setupArcadeTheme() {
44
- ["light", "dark"].forEach((theme) => {
45
- const base = theme === "light" ? "vs" : "vs-dark";
46
- const colors = themeConfig[`arcade-${theme}-theme`];
47
- // Defines the light and dark theme based on the calcite theme name
48
- editor.defineTheme(base, {
49
- base,
50
- inherit: true,
51
- rules: [
52
- { token: "comment.arc", foreground: colors.comment },
53
- { token: "constant.arc", foreground: colors.constant },
54
- { token: "keyword.arc", foreground: colors.keyword },
55
- { token: "identifier.arc", foreground: colors.identifier },
56
- { token: "number.arc", foreground: colors.number },
57
- { token: "string.arc", foreground: colors.string }
58
- ],
59
- colors: {}
60
- });
61
- });
62
- }
63
- const monacoThemeKeys = ["comment", "keyword", "identifier", "string", "number", "constant"];
64
- const colorRulesKeys = [...monacoThemeKeys, "date"];
65
- function updateThemeColors(theme, colorRules) {
66
- if (colorRules === undefined) {
67
- setupArcadeTheme();
68
- return;
69
- }
70
- const base = theme === "light" ? "vs" : "vs-dark";
71
- const rules = [];
72
- monacoThemeKeys.forEach((key) => {
73
- const foreground = colorRules[key];
74
- if (!foreground) {
75
- return;
76
- }
77
- rules.push({ token: `${key}.arc`, foreground });
78
- });
79
- editor.defineTheme(base, { base, inherit: true, rules, colors: {} });
80
- }
81
-
82
- const arcadeEditorCss = "arcgis-arcade-editor{display:flex;flex-direction:column;height:100%;width:100%;position:relative;overflow:hidden;border:1px solid var(--calcite-color-border-3);box-sizing:border-box;background-color:var(--calcite-color-foreground-1)}arcgis-arcade-editor .flex-adjustable{flex:1 1 auto;overflow:hidden}arcgis-arcade-editor .flex-panel{flex:1 0 auto}arcgis-arcade-editor .position-relative{position:relative}arcgis-arcade-editor .flex-row{display:flex;flex-direction:row;overflow:hidden}arcgis-arcade-editor .flex-column{display:flex;flex-direction:column;overflow:hidden}arcgis-arcade-editor .border-inline-start{border-inline-start:1px solid var(--calcite-color-border-3);box-sizing:border-box}arcgis-arcade-editor .border-inline-end{border-inline-end:1px solid var(--calcite-color-border-3);box-sizing:border-box}arcgis-arcade-editor .sticky{position:sticky;top:0px;z-index:10}arcgis-arcade-editor .notice-container{margin:var(--calcite-spacing-quarter);padding:var(--calcite-spacing-half);background-color:var(--calcite-color-foreground-1);text-align:center}arcgis-arcade-editor .side-action-bar{max-width:25%}arcgis-arcade-editor .side-panel{max-width:45%;width:600px}arcgis-arcade-editor .side-panel calcite-flow{height:100%}arcgis-arcade-editor .main-action-bar{border-bottom:1px solid var(--calcite-color-border-3);flex:0 0 auto}arcgis-arcade-editor .main-action-bar calcite-action-group{padding-inline-end:var(--calcite-spacing-half)}arcgis-arcade-editor .main-action-bar calcite-action-group calcite-action{padding-inline-end:var(--calcite-spacing-half)}arcgis-arcade-editor .main-action-bar calcite-action-group calcite-action:not(:first-child){padding-inline-start:var(--calcite-spacing-half)}arcgis-arcade-editor .main-action-bar calcite-action-group:last-child{border-inline-end-width:0px}arcgis-arcade-editor .main-action-bar calcite-action-group:not(:first-child){padding-inline-start:var(--calcite-spacing-half)}arcgis-arcade-editor arcgis-arcade-results{border-top:1px solid var(--calcite-color-border-3);box-sizing:border-box;max-height:50%;min-height:50%;margin-bottom:-1px}arcgis-arcade-editor calcite-flow [slot=footer]{word-break:break-word}arcgis-arcade-editor calcite-list-item-group calcite-list-item{margin-bottom:1px;box-shadow:0 1px 0 var(--calcite-color-border-3)}arcgis-arcade-editor calcite-list-item-group calcite-list-item:last-child{box-shadow:none}arcgis-arcade-editor calcite-list-item-group:last-child{margin-bottom:var(--calcite-spacing-1)}";
83
-
84
- setupArcadeTheme();
26
+ const __cmpMeta = [0,"arcgis-arcade-editor",{"profile":[1040],"script":[1025],"testData":[1040],"suggestions":[1040],"snippets":[1040],"hideDocumentationActions":[1028,"hide-documentation-actions"],"hideSideBar":[1028,"hide-side-bar"],"sideActionBarExpanded":[1540,"side-action-bar-expanded"],"openedSidePanel":[1537,"opened-side-panel"],"editorOptions":[1040],"editorInstance":[1040],"messages":[32],"_preparingProfile":[32],"_editorProfile":[32],"_showExecutionPanel":[32],"_resultPanel":[32],"_executingScript":[32],"_consoleLogs":[32],"_executionResult":[32],"getScript":[64],"setFocus":[64],"getEditorInstance":[64],"getTestResult":[64],"updateThemeColors":[64]},undefined,{"profile":["_profileChanged"],"testData":["_testDataChanged"],"snippets":["_snippetChanged"]}];
85
27
  const ArcgisArcadeEditor$1 = /*@__PURE__*/ proxyCustomElement(class ArcgisArcadeEditor extends HTMLElement {
86
28
  constructor() {
87
29
  super();
88
30
  this.__registerHost();
89
- this.scriptChange = createEvent(this, "scriptChange", 3);
90
- this.diagnosticsChange = createEvent(this, "diagnosticsChange", 3);
91
- this._componentReadyDefer = new h();
92
- this._modelId = U();
31
+ this.constructor.__registerControllers = ()=>__cmpMeta[2]??{};
32
+ this.arcgisScriptChange = createEvent(this, "arcgisScriptChange", 3);
33
+ this.arcgisDiagnosticsChange = createEvent(this, "arcgisDiagnosticsChange", 3);
34
+ this.manager = useControllerManager(this,forceUpdate);
35
+ this._componentReadyDefer = new Deferred();
36
+ this._modelId = generateGuid();
93
37
  this._editorProfilePromise = Promise.resolve(undefined);
94
38
  this._disposables = [];
95
39
  this._executeScript = async () => {
@@ -130,18 +74,16 @@ const ArcgisArcadeEditor$1 = /*@__PURE__*/ proxyCustomElement(class ArcgisArcade
130
74
  }
131
75
  };
132
76
  this._openArcadeHelp = () => void window.open(DevelopersWebSitePath, "Arcade Help");
133
- this._emitScriptChange = (e) => {
77
+ this._onCodeEditorValueChange = (e) => {
134
78
  e.stopPropagation();
135
- this.scriptChange.emit(e.detail);
79
+ this.script = e.detail;
80
+ this.arcgisScriptChange.emit(e.detail);
136
81
  };
137
82
  this._insertAsSnippet = (e) => void this._codeEditorElt?.insertSnippet(e.detail).catch(console.error);
138
83
  this._insertAsText = (e) => void this._codeEditorElt?.insertText(e.detail).catch(console.error);
139
84
  this._onResultPanelChange = (e) => void (this._resultPanel = e.detail);
140
85
  this._onExecutionPanelClose = () => void (this._showExecutionPanel = false);
141
- this._lang = "";
142
- this._t9nLocale = "";
143
- this._t9nStrings = undefined;
144
- this._standaloneCodeEditor = undefined;
86
+ this.messages = useT9n();
145
87
  this._preparingProfile = false;
146
88
  this._editorProfile = undefined;
147
89
  this._showExecutionPanel = false;
@@ -159,6 +101,10 @@ const ArcgisArcadeEditor$1 = /*@__PURE__*/ proxyCustomElement(class ArcgisArcade
159
101
  this.sideActionBarExpanded = false;
160
102
  this.openedSidePanel = "none";
161
103
  this.editorOptions = undefined;
104
+ this.editorInstance = this.manager.getSet(undefined, {
105
+ get: () => this._codeEditorElt?.editorInstance,
106
+ set: "ignore",
107
+ });
162
108
  }
163
109
  _profileChanged() {
164
110
  this._updateEditorProfile().catch(console.error);
@@ -171,18 +117,17 @@ const ArcgisArcadeEditor$1 = /*@__PURE__*/ proxyCustomElement(class ArcgisArcade
171
117
  }
172
118
  _snippetChanged() {
173
119
  arcadeDefaults.updateApiContextForModel(this._modelId, {
174
- snippets: this.snippets
120
+ snippets: this.snippets,
175
121
  });
176
122
  }
177
123
  // #endregion
178
124
  // #region Public methods API
179
125
  /**
180
- * Returns the current script.
181
- * @returns {Promise<string>}
126
+ * @deprecated Use `script` property instead.
182
127
  */
183
128
  async getScript() {
184
129
  await this._componentReadyDefer.promise;
185
- return await this._codeEditorElt?.getValue();
130
+ return this._codeEditorElt?.value;
186
131
  }
187
132
  /**
188
133
  * Set the focus on the element.
@@ -193,12 +138,11 @@ const ArcgisArcadeEditor$1 = /*@__PURE__*/ proxyCustomElement(class ArcgisArcade
193
138
  }
194
139
  /**
195
140
  * @internal
196
- * Returns the editor instance.
197
- * @returns {Promise<IStandaloneCodeEditor>} - The monaco editor instance
141
+ * @deprecated Use `editorInstance` property instead.
198
142
  */
199
143
  async getEditorInstance() {
200
144
  await this._componentReadyDefer.promise;
201
- return await this._codeEditorElt?.getEditorInstance();
145
+ return this._codeEditorElt?.editorInstance;
202
146
  }
203
147
  /**
204
148
  * Returns the Arcade result for the script for the provided test data.
@@ -220,11 +164,11 @@ const ArcgisArcadeEditor$1 = /*@__PURE__*/ proxyCustomElement(class ArcgisArcade
220
164
  * @internal
221
165
  */
222
166
  async updateThemeColors(colorRules) {
223
- const theme = k(this._hostElement);
167
+ const theme = getElementTheme(this.el);
224
168
  updateThemeColors(theme, colorRules);
225
169
  if (colorRules === undefined) {
226
170
  colorRulesKeys.forEach((key) => {
227
- this._hostElement.style.removeProperty(`--arcgis-arcade-editor-${key}`);
171
+ this.el.style.removeProperty(`--arcgis-arcade-editor-${key}`);
228
172
  });
229
173
  return;
230
174
  }
@@ -233,7 +177,7 @@ const ArcgisArcadeEditor$1 = /*@__PURE__*/ proxyCustomElement(class ArcgisArcade
233
177
  if (!foreground) {
234
178
  return;
235
179
  }
236
- this._hostElement.style.setProperty(`--arcgis-arcade-editor-${key}`, foreground);
180
+ this.el.style.setProperty(`--arcgis-arcade-editor-${key}`, foreground);
237
181
  });
238
182
  }
239
183
  // #endregion
@@ -241,14 +185,13 @@ const ArcgisArcadeEditor$1 = /*@__PURE__*/ proxyCustomElement(class ArcgisArcade
241
185
  async componentWillLoad() {
242
186
  const assetsPath = getAssetPath("./assets");
243
187
  // We are a bit in a chicken and egg situation here.
244
- // Normally, it is the code editor that is responsible for setting up the Monaco environement.
188
+ // Normally, it is the code editor that is responsible for setting up the Monaco environment.
245
189
  // However, we need to setup the environment before the code editor is instantiated because
246
190
  // we need to access the arcade language service to get the api library.
247
191
  setupMonacoEnvironment(assetsPath);
248
- // Starts a locale observer. It will load the correct t9n strings for the component
249
- // when the locale changes. We also pass updateEditorProfile. It will be invoked the first
250
- // and on each locale change. The profile has to be refreshed on locale change as well.
251
- await B(this, assetsPath, async () => await this._updateEditorProfile());
192
+ await this._updateEditorProfile();
193
+ // The profile has to be refreshed on locale change
194
+ this.manager.watch("messages", () => void this._updateEditorProfile().catch(console.error));
252
195
  }
253
196
  async componentDidLoad() {
254
197
  // Mark on component as ready.
@@ -257,10 +200,9 @@ const ArcgisArcadeEditor$1 = /*@__PURE__*/ proxyCustomElement(class ArcgisArcade
257
200
  // Start listening to the validation diagnostics.
258
201
  // We are doing this as late as possible
259
202
  const diagnosticsService = await getArcadeDiagnosticService();
260
- this._disposables.push(diagnosticsService.onDiagnosticsChange((event) => !this._preparingProfile && this.diagnosticsChange.emit(event.diagnostics)));
203
+ this._disposables.push(diagnosticsService.onDiagnosticsChange((event) => !this._preparingProfile && this.arcgisDiagnosticsChange.emit(event.diagnostics)));
261
204
  // Get editor instance and add action
262
- this._standaloneCodeEditor = await this.getEditorInstance();
263
- this._standaloneCodeEditor?.addAction({
205
+ this.editorInstance?.addAction({
264
206
  // An unique identifier for the action.
265
207
  id: "run-script",
266
208
  label: "Run Arcade Expression",
@@ -271,12 +213,11 @@ const ArcgisArcadeEditor$1 = /*@__PURE__*/ proxyCustomElement(class ArcgisArcade
271
213
  if (this.testData) {
272
214
  this._executeScript().catch(console.error);
273
215
  }
274
- }
216
+ },
275
217
  });
276
218
  await this._codeEditorElt?.setFocus();
277
219
  }
278
220
  disconnectedCallback() {
279
- q(this);
280
221
  arcadeDefaults.disposeApiContextForModel(this._modelId);
281
222
  arcadeDefaults.disposeEditorProfileForModel(this._modelId);
282
223
  while (this._disposables.length) {
@@ -293,8 +234,8 @@ const ArcgisArcadeEditor$1 = /*@__PURE__*/ proxyCustomElement(class ArcgisArcade
293
234
  try {
294
235
  // Set a new profile for the model using the profile definition and the locale.
295
236
  await arcadeDefaults.setProfileForModel(this._modelId, this.profile, {
296
- locale: this._t9nLocale,
297
- snippets: this.snippets
237
+ locale: this.messages._t9nLocale,
238
+ snippets: this.snippets,
298
239
  });
299
240
  // Get the corresponding editor profile for the model.
300
241
  // The editor profile contains the specialized profile for the UI.
@@ -314,51 +255,51 @@ const ArcgisArcadeEditor$1 = /*@__PURE__*/ proxyCustomElement(class ArcgisArcade
314
255
  if (!this.testData) {
315
256
  return null;
316
257
  }
317
- return (h$1("calcite-action-bar", { class: "main-action-bar", layout: "horizontal", scale: "s", expanded: true, "expand-disabled": true }, h$1("calcite-action-group", { scale: "s" }, h$1("calcite-action", { text: this._t9nStrings?.run ?? "Run", "text-enabled": true, icon: "play", scale: "s", loading: this._preparingProfile, onClick: this._executeScript }), this._executionResult ? (h$1("calcite-action", { text: this._t9nStrings?.lastresults ?? "Last results", active: this._showExecutionPanel, "text-enabled": true, icon: "access-string-results", iconFlipRtl: true, scale: "s", onClick: this._toggleShowExecutionPanel })) : null)));
258
+ return (h("calcite-action-bar", { class: "main-action-bar", layout: "horizontal", scale: "s", expanded: true, "expand-disabled": true }, h("calcite-action-group", { scale: "s" }, h("calcite-action", { text: this.messages.run ?? "Run", "text-enabled": true, icon: "play", scale: "s", loading: this._preparingProfile, onClick: this._executeScript }), this._executionResult ? (h("calcite-action", { text: this.messages.lastresults ?? "Last results", active: this._showExecutionPanel, "text-enabled": true, icon: "access-string-results", iconFlipRtl: true, scale: "s", onClick: this._toggleShowExecutionPanel })) : null)));
318
259
  }
319
260
  //#endregion
320
261
  //#region Render Main Panel
321
262
  renderMainPanel() {
322
- return (h$1("arcgis-code-editor", { class: "flex-adjustable", language: arcadeDefaults.languageId, value: this.script ?? "", modelId: this._modelId, options: this.editorOptions, onValueChange: this._emitScriptChange, ref: (e) => (this._codeEditorElt = e) }));
263
+ return (h("arcgis-code-editor", { class: "flex-adjustable", language: arcadeDefaults.languageId, value: this.script ?? "", modelId: this._modelId, options: this.editorOptions, onArcgisValueChange: this._onCodeEditorValueChange, ref: (e) => (this._codeEditorElt = e) }));
323
264
  }
324
265
  //#endregion
325
266
  //#region Rendering the Action Bar
326
- renderAction({ id, label, icon, active, panelName, onClick = this._toggleSidePanel }) {
327
- return (h$1(Fragment, null, h$1("calcite-action", { id: id, text: label, icon: icon, active: active, onClick: onClick, "data-panel-name": panelName }), !this.sideActionBarExpanded && (h$1("calcite-tooltip", { label: label, "reference-element": id }, h$1("span", null, label)))));
267
+ renderAction({ id, label, icon, active, panelName, onClick = this._toggleSidePanel, }) {
268
+ return (h(Fragment, null, h("calcite-action", { id: id, text: label, icon: icon, active: active, onClick: onClick, "data-panel-name": panelName }), !this.sideActionBarExpanded && (h("calcite-tooltip", { label: label, "reference-element": id }, h("span", null, label)))));
328
269
  }
329
270
  renderSideActionBar() {
330
271
  if (this.hideSideBar) {
331
272
  return null;
332
273
  }
333
- return (h$1("calcite-action-bar", { class: "side-action-bar border-inline-start", expanded: !!this.sideActionBarExpanded, position: "end", onCalciteActionBarToggle: this._toggleSideActionBarExpanded }, h$1("calcite-action-group", null, this.renderAction({
274
+ return (h("calcite-action-bar", { class: "side-action-bar border-inline-start", expanded: !!this.sideActionBarExpanded, position: "end", onCalciteActionBarToggle: this._toggleSideActionBarExpanded }, h("calcite-action-group", null, this.renderAction({
334
275
  id: "profile-variables-action",
335
- label: this._t9nStrings?.profilevariables ?? "Profile variables",
276
+ label: this.messages.profilevariables ?? "Profile variables",
336
277
  icon: "profile-variables",
337
278
  active: this.openedSidePanel === "variables",
338
- panelName: "variables"
279
+ panelName: "variables",
339
280
  }), this.renderAction({
340
281
  id: "function-action",
341
- label: this._t9nStrings?.constantsandfunctions ?? "Constants and functions",
282
+ label: this.messages.constantsandfunctions ?? "Constants and functions",
342
283
  icon: "function",
343
284
  active: this.openedSidePanel === "api",
344
- panelName: "api"
285
+ panelName: "api",
345
286
  }), this.suggestions?.length
346
287
  ? this.renderAction({
347
288
  id: "suggestions-action",
348
- label: this._t9nStrings?.suggestions ?? "Suggestions",
289
+ label: this.messages.suggestions ?? "Suggestions",
349
290
  icon: "lightbulb",
350
291
  active: this.openedSidePanel === "suggestions",
351
- panelName: "suggestions"
292
+ panelName: "suggestions",
352
293
  })
353
294
  : null, this.hideDocumentationActions
354
295
  ? null
355
296
  : this.renderAction({
356
297
  id: "developer-website-action",
357
- label: this._t9nStrings?.help ?? "Help",
298
+ label: this.messages.help ?? "Help",
358
299
  icon: "question",
359
300
  active: false,
360
301
  panelName: "none",
361
- onClick: this._openArcadeHelp
302
+ onClick: this._openArcadeHelp,
362
303
  }))));
363
304
  }
364
305
  //#endregion
@@ -369,11 +310,11 @@ const ArcgisArcadeEditor$1 = /*@__PURE__*/ proxyCustomElement(class ArcgisArcade
369
310
  }
370
311
  switch (this.openedSidePanel) {
371
312
  case "api":
372
- return (h$1("arcgis-arcade-api", { class: "side-panel flex-panel border-inline-start", modelId: this._modelId, hideDocumentationActions: this.hideDocumentationActions, onItemSelected: this._insertAsSnippet, onClose: this._toggleSidePanel, "data-panel-name": "none" }));
313
+ return (h("arcgis-arcade-api", { class: "side-panel flex-panel border-inline-start", modelId: this._modelId, hideDocumentationActions: this.hideDocumentationActions, onArcgisItemSelected: this._insertAsSnippet, onArcgisClose: this._toggleSidePanel, "data-panel-name": "none" }));
373
314
  case "variables":
374
- return (h$1("arcgis-arcade-variables", { class: "side-panel flex-panel border-inline-start", loading: this._preparingProfile, modelId: this._modelId, onItemSelected: this._insertAsText, onClose: this._toggleSidePanel, "data-panel-name": "none" }));
315
+ return (h("arcgis-arcade-variables", { class: "side-panel flex-panel border-inline-start", loading: this._preparingProfile, modelId: this._modelId, onArcgisItemSelected: this._insertAsText, onArcgisClose: this._toggleSidePanel, "data-panel-name": "none" }));
375
316
  case "suggestions":
376
- return (h$1("arcgis-arcade-suggestions", { class: "side-panel flex-panel border-inline-start", suggestions: this.suggestions, onItemSelected: this._insertAsText, onClose: this._toggleSidePanel, "data-panel-name": "none" }));
317
+ return (h("arcgis-arcade-suggestions", { class: "side-panel flex-panel border-inline-start", suggestions: this.suggestions, onArcgisItemSelected: this._insertAsText, onArcgisClose: this._toggleSidePanel, "data-panel-name": "none" }));
377
318
  default:
378
319
  return null;
379
320
  }
@@ -384,53 +325,22 @@ const ArcgisArcadeEditor$1 = /*@__PURE__*/ proxyCustomElement(class ArcgisArcade
384
325
  if (!this._showExecutionPanel) {
385
326
  return null;
386
327
  }
387
- return (h$1("arcgis-arcade-results", { class: "flex-adjustable", openedResultPanel: this._resultPanel, loading: this._executingScript, result: this._executionResult, consoleLogs: this._consoleLogs, onOpenedResultPanelChange: this._onResultPanelChange, onClose: this._onExecutionPanelClose }));
328
+ return (h("arcgis-arcade-results", { class: "flex-adjustable", openedResultPanel: this._resultPanel, loading: this._executingScript, result: this._executionResult, consoleLogs: this._consoleLogs, onArcgisOpenedResultPanelChange: this._onResultPanelChange, onArcgisClose: this._onExecutionPanelClose }));
388
329
  }
389
330
  //#endregion
390
331
  //#region Render
391
332
  render() {
392
- return (h$1(Host, null, this.renderMainActionBar(), h$1("div", { class: "flex-row flex-adjustable" }, h$1("div", { class: "flex-column flex-adjustable" }, this.renderMainPanel(), this.renderResultsPanel()), this.renderSidePanel(), this.renderSideActionBar())));
333
+ return (h(Host, null, this.renderMainActionBar(), h("div", { class: "flex-row flex-adjustable" }, h("div", { class: "flex-column flex-adjustable" }, this.renderMainPanel(), this.renderResultsPanel()), this.renderSidePanel(), this.renderSideActionBar())));
393
334
  }
394
335
  static get assetsDirs() { return ["assets"]; }
395
- get _hostElement() { return this; }
336
+ get el() { return this; }
396
337
  static get watchers() { return {
397
338
  "profile": ["_profileChanged"],
398
339
  "testData": ["_testDataChanged"],
399
340
  "snippets": ["_snippetChanged"]
400
341
  }; }
401
342
  static get style() { return arcadeEditorCss; }
402
- }, [0, "arcgis-arcade-editor", {
403
- "profile": [16],
404
- "script": [1],
405
- "testData": [16],
406
- "suggestions": [16],
407
- "snippets": [16],
408
- "hideDocumentationActions": [4, "hide-documentation-actions"],
409
- "hideSideBar": [4, "hide-side-bar"],
410
- "sideActionBarExpanded": [1540, "side-action-bar-expanded"],
411
- "openedSidePanel": [1537, "opened-side-panel"],
412
- "editorOptions": [16],
413
- "_lang": [32],
414
- "_t9nLocale": [32],
415
- "_t9nStrings": [32],
416
- "_standaloneCodeEditor": [32],
417
- "_preparingProfile": [32],
418
- "_editorProfile": [32],
419
- "_showExecutionPanel": [32],
420
- "_resultPanel": [32],
421
- "_executingScript": [32],
422
- "_consoleLogs": [32],
423
- "_executionResult": [32],
424
- "getScript": [64],
425
- "setFocus": [64],
426
- "getEditorInstance": [64],
427
- "getTestResult": [64],
428
- "updateThemeColors": [64]
429
- }, undefined, {
430
- "profile": ["_profileChanged"],
431
- "testData": ["_testDataChanged"],
432
- "snippets": ["_snippetChanged"]
433
- }]);
343
+ }, __cmpMeta);
434
344
  function defineCustomElement$1() {
435
345
  if (typeof customElements === "undefined") {
436
346
  return;
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
- * See https://js.arcgis.com/4.30/esri/copyright.txt for details.
4
- * v4.30.0-next.9
3
+ * See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
+ * v4.31.0-next.0
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
- * See https://js.arcgis.com/4.30/esri/copyright.txt for details.
4
- * v4.30.0-next.9
3
+ * See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
+ * v4.31.0-next.0
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
- * See https://js.arcgis.com/4.30/esri/copyright.txt for details.
4
- * v4.30.0-next.9
3
+ * See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
+ * v4.31.0-next.0
5
5
  */
6
6
  import { A as ArcgisArcadeVariables$1, d as defineCustomElement$1 } from './arcade-variables.js';
7
7
 
@@ -1,8 +1,8 @@
1
1
 
2
2
  /*!
3
3
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
4
- * See https://js.arcgis.com/4.30/esri/copyright.txt for details.
5
- * v4.30.0-next.9
4
+ * See https://js.arcgis.com/4.31/esri/copyright.txt for details.
5
+ * v4.31.0-next.0
6
6
  */
7
7
  /**
8
8
  * Get the base path to where the package assets can be found.
@@ -1,8 +1,8 @@
1
1
 
2
2
  /*!
3
3
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
4
- * See https://js.arcgis.com/4.30/esri/copyright.txt for details.
5
- * v4.30.0-next.9
4
+ * See https://js.arcgis.com/4.31/esri/copyright.txt for details.
5
+ * v4.31.0-next.0
6
6
  */
7
7
  let resourceUrl = "https://js.arcgis.com/coding-components/next/";
8
8
  export const getArcgisAssetPath = (path) => {
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
- * See https://js.arcgis.com/4.30/esri/copyright.txt for details.
4
- * v4.30.0-next.9
3
+ * See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
+ * v4.31.0-next.0
5
5
  */
6
6
  import { A as ArcgisCodeEditor$1, d as defineCustomElement$1 } from './code-editor.js';
7
7