@arcgis/coding-components 4.30.0-next.7 → 4.30.0-next.70

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 +2 -2
  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 +2 -2
  91. package/dist/arcgis-coding-components/{p-1b2a100f.js → p-037e779a.js} +1 -1
  92. package/dist/arcgis-coding-components/{p-3ad3b485.js → p-03a88de8.js} +3 -3
  93. package/dist/arcgis-coding-components/{p-7d529ae0.js → p-456e4ea5.js} +3 -3
  94. package/dist/arcgis-coding-components/p-4d1b559c.js +7 -0
  95. package/dist/arcgis-coding-components/{p-41f5c613.js → p-7824a17a.js} +2 -2
  96. package/dist/arcgis-coding-components/{p-19e41297.js → p-94de647f.js} +2 -2
  97. package/dist/arcgis-coding-components/{p-d15b541d.js → p-9bd93ac2.js} +2 -2
  98. package/dist/arcgis-coding-components/{p-43ca4ff8.js → p-ab3f6c19.js} +2 -2
  99. package/dist/arcgis-coding-components/{p-7d8a653c.js → p-d06c37f8.js} +2 -2
  100. package/dist/arcgis-coding-components/p-e816fac5.js +68 -0
  101. package/dist/arcgis-coding-components/{p-53a0b083.js → p-eefe3c2b.js} +3 -3
  102. package/dist/arcgis-coding-components/p-f5547a20.entry.js +6 -0
  103. package/dist/cjs/{arcade-defaults-85d2771a.js → arcade-defaults-ca722f9f.js} +620 -248
  104. package/dist/cjs/{arcade-mode-d675c5ea.js → arcade-mode-60603548.js} +45 -51
  105. package/dist/cjs/arcgis-arcade-api_6.cjs.entry.js +1560 -289
  106. package/dist/cjs/arcgis-coding-components.cjs.js +3 -3
  107. package/dist/cjs/{css-5e66f5d3.js → css-daddb1cf.js} +1 -1
  108. package/dist/cjs/{cssMode-b94f6c97.js → cssMode-65dddafc.js} +3 -3
  109. package/dist/cjs/{html-b264fb71.js → html-fd58ee3a.js} +3 -3
  110. package/dist/cjs/{htmlMode-14366ebc.js → htmlMode-591a0fc6.js} +3 -3
  111. package/dist/cjs/{index-6542b576.js → index-c731f1b4.js} +40 -4
  112. package/dist/cjs/index.cjs.js +3 -3
  113. package/dist/cjs/{javascript-40266757.js → javascript-07b4dfdf.js} +4 -4
  114. package/dist/cjs/{jsonMode-241f2a4a.js → jsonMode-b9e12d85.js} +3 -3
  115. package/dist/cjs/loader.cjs.js +3 -3
  116. package/dist/cjs/{tsMode-066b04bf.js → tsMode-fc2a3eea.js} +3 -3
  117. package/dist/cjs/{typescript-9ac6fd5a.js → typescript-8a136799.js} +3 -3
  118. package/dist/components/arcade-api.js +21 -32
  119. package/dist/components/arcade-contribution.js +72 -13
  120. package/dist/components/arcade-defaults.js +131 -149
  121. package/dist/components/arcade-mode.js +44 -50
  122. package/dist/components/arcade-results.js +47 -60
  123. package/dist/components/arcade-suggestions.js +23 -33
  124. package/dist/components/arcade-variables.js +22 -36
  125. package/dist/components/arcgis-arcade-api.js +1 -1
  126. package/dist/components/arcgis-arcade-editor.js +60 -150
  127. package/dist/components/arcgis-arcade-results.js +1 -1
  128. package/dist/components/arcgis-arcade-suggestions.js +1 -1
  129. package/dist/components/arcgis-arcade-variables.js +1 -1
  130. package/dist/components/arcgis-assets.d.ts +1 -1
  131. package/dist/components/arcgis-assets.js +1 -1
  132. package/dist/components/arcgis-code-editor.js +1 -1
  133. package/dist/components/chunk-63RMNUHL.js +1275 -0
  134. package/dist/components/code-editor.js +70 -78
  135. package/dist/components/fields.js +45 -45
  136. package/dist/components/index.js +1 -1
  137. package/dist/components/index2.js +389 -3
  138. package/dist/components/markdown.js +9 -11
  139. package/dist/components/useT9n.js +35 -0
  140. package/dist/components/utilities.js +3 -3
  141. package/dist/esm/{arcade-defaults-ef372fd5.js → arcade-defaults-e4c7078b.js} +603 -235
  142. package/dist/esm/{arcade-mode-04d65df2.js → arcade-mode-73b62736.js} +45 -51
  143. package/dist/esm/arcgis-arcade-api_6.entry.js +1560 -289
  144. package/dist/esm/arcgis-coding-components.js +4 -4
  145. package/dist/esm/{css-50e0f632.js → css-4de308d6.js} +1 -1
  146. package/dist/esm/{cssMode-0740511f.js → cssMode-f2830819.js} +3 -3
  147. package/dist/esm/{html-9d2b157c.js → html-88822b8e.js} +3 -3
  148. package/dist/esm/{htmlMode-fd1c3eea.js → htmlMode-812062b4.js} +3 -3
  149. package/dist/esm/{index-7f8b9422.js → index-03c42e1e.js} +40 -4
  150. package/dist/esm/index.js +3 -3
  151. package/dist/esm/{javascript-014d6512.js → javascript-3e83e341.js} +4 -4
  152. package/dist/esm/{jsonMode-ccac7c7d.js → jsonMode-6921d65e.js} +3 -3
  153. package/dist/esm/loader.js +4 -4
  154. package/dist/esm/{tsMode-cfa861b3.js → tsMode-c235482f.js} +3 -3
  155. package/dist/esm/{typescript-9c1ebeca.js → typescript-c0a8cf29.js} +3 -3
  156. package/dist/loader/cdn.js +1 -1
  157. package/dist/loader/index.cjs.js +1 -1
  158. package/dist/loader/index.es2017.js +1 -1
  159. package/dist/loader/index.js +1 -1
  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-1/_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-1/_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-1/_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-1/_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-1/_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-1/_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-1/_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-1/_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-1927140d.js +0 -68
  181. package/dist/arcgis-coding-components/p-6aa84514.js +0 -7
  182. package/dist/arcgis-coding-components/p-c4f70a58.entry.js +0 -6
@@ -1,13 +1,13 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  * See https://js.arcgis.com/4.30/esri/copyright.txt for details.
4
- * v4.30.0-next.7
4
+ * v4.30.0-next.70
5
5
  */
6
6
  'use strict';
7
7
 
8
8
  Object.defineProperty(exports, '__esModule', { value: true });
9
9
 
10
- const index = require('./index-6542b576.js');
10
+ const index = require('./index-c731f1b4.js');
11
11
 
12
12
  /*
13
13
  Stencil Client Patch Browser v4.9.0 | MIT Licensed | https://stenciljs.com
@@ -22,7 +22,7 @@ const patchBrowser = () => {
22
22
  };
23
23
 
24
24
  patchBrowser().then(options => {
25
- return index.bootstrapLazy([["arcgis-arcade-api_6.cjs",[[0,"arcgis-arcade-editor",{"profile":[16],"script":[1],"testData":[16],"suggestions":[16],"snippets":[16],"hideDocumentationActions":[4,"hide-documentation-actions"],"hideSideBar":[4,"hide-side-bar"],"sideActionBarExpanded":[1540,"side-action-bar-expanded"],"openedSidePanel":[1537,"opened-side-panel"],"editorOptions":[16],"_lang":[32],"_t9nLocale":[32],"_t9nStrings":[32],"_standaloneCodeEditor":[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]},null,{"profile":["_profileChanged"],"testData":["_testDataChanged"],"snippets":["_snippetChanged"]}],[1,"arcgis-arcade-api",{"hideDocumentationActions":[4,"hide-documentation-actions"],"modelId":[1,"model-id"],"_lang":[32],"_t9nLocale":[32],"_t9nStrings":[32],"_selectedApiItem":[32],"_filterValue":[32],"_colorizeStyle":[32],"_preparingApi":[32],"_apiLibrary":[32]}],[1,"arcgis-arcade-results",{"loading":[4],"openedResultPanel":[1537,"opened-result-panel"],"result":[16],"consoleLogs":[16],"_lang":[32],"_t9nLocale":[32],"_t9nStrings":[32]}],[1,"arcgis-arcade-suggestions",{"suggestions":[16],"_lang":[32],"_t9nLocale":[32],"_t9nStrings":[32],"_selectedSuggestion":[32],"_filterValue":[32],"_colorizeStyle":[32]},null,{"suggestions":["suggestionsPropChanged"]}],[1,"arcgis-arcade-variables",{"loading":[4],"modelId":[1,"model-id"],"_lang":[32],"_t9nLocale":[32],"_t9nStrings":[32],"_mutationCounter":[32],"_flowItemRenderers":[32],"_filterValue":[32]},null,{"modelId":["modelIdPropChanged"]}],[0,"arcgis-code-editor",{"value":[1],"language":[1],"modelId":[1,"model-id"],"options":[16],"getValue":[64],"setValue":[64],"insertText":[64],"insertSnippet":[64],"getEditorInstance":[64],"setFocus":[64]},null,{"value":["valuePropChange"],"language":["languagePropChange"],"modelId":["modelIdPropChange"],"options":["optionsPropChange"]}]]]], options);
25
+ return index.bootstrapLazy([["arcgis-arcade-api_6.cjs",[[0,"arcgis-arcade-editor",{"profile":[16],"script":[1025],"testData":[16],"suggestions":[16],"snippets":[16],"hideDocumentationActions":[4,"hide-documentation-actions"],"hideSideBar":[4,"hide-side-bar"],"sideActionBarExpanded":[1540,"side-action-bar-expanded"],"openedSidePanel":[1537,"opened-side-panel"],"editorOptions":[16],"editorInstance":[16],"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]},null,{"profile":["_profileChanged"],"testData":["_testDataChanged"],"snippets":["_snippetChanged"]}],[1,"arcgis-arcade-api",{"hideDocumentationActions":[4,"hide-documentation-actions"],"modelId":[1,"model-id"],"_selectedApiItem":[32],"_filterValue":[32],"_colorizeStyle":[32],"_preparingApi":[32],"_apiLibrary":[32]}],[1,"arcgis-arcade-results",{"loading":[4],"openedResultPanel":[1537,"opened-result-panel"],"result":[16],"consoleLogs":[16]}],[1,"arcgis-arcade-suggestions",{"suggestions":[16],"_selectedSuggestion":[32],"_filterValue":[32],"_colorizeStyle":[32]},null,{"suggestions":["suggestionsPropChanged"]}],[1,"arcgis-arcade-variables",{"loading":[4],"modelId":[1,"model-id"],"_mutationCounter":[32],"_flowItemRenderers":[32],"_filterValue":[32]},null,{"modelId":["modelIdPropChanged"]}],[0,"arcgis-code-editor",{"value":[1],"language":[1],"modelId":[1,"model-id"],"options":[16],"editorInstance":[16],"getValue":[64],"setValue":[64],"insertText":[64],"insertSnippet":[64],"getEditorInstance":[64],"setFocus":[64]},null,{"language":["languagePropChange"],"modelId":["modelIdPropChange"],"options":["optionsPropChange"]}]]]], options);
26
26
  });
27
27
 
28
28
  exports.setNonce = index.setNonce;
@@ -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.30/esri/copyright.txt for details.
4
- * v4.30.0-next.7
4
+ * v4.30.0-next.70
5
5
  */
6
6
  'use strict';
7
7
 
@@ -1,12 +1,12 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  * See https://js.arcgis.com/4.30/esri/copyright.txt for details.
4
- * v4.30.0-next.7
4
+ * v4.30.0-next.70
5
5
  */
6
6
  'use strict';
7
7
 
8
- const arcadeDefaults = require('./arcade-defaults-85d2771a.js');
9
- require('./index-6542b576.js');
8
+ const arcadeDefaults = require('./arcade-defaults-ca722f9f.js');
9
+ require('./index-c731f1b4.js');
10
10
 
11
11
  /*!-----------------------------------------------------------------------------
12
12
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,12 +1,12 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  * See https://js.arcgis.com/4.30/esri/copyright.txt for details.
4
- * v4.30.0-next.7
4
+ * v4.30.0-next.70
5
5
  */
6
6
  'use strict';
7
7
 
8
- const arcadeDefaults = require('./arcade-defaults-85d2771a.js');
9
- require('./index-6542b576.js');
8
+ const arcadeDefaults = require('./arcade-defaults-ca722f9f.js');
9
+ require('./index-c731f1b4.js');
10
10
 
11
11
  /*!-----------------------------------------------------------------------------
12
12
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,12 +1,12 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  * See https://js.arcgis.com/4.30/esri/copyright.txt for details.
4
- * v4.30.0-next.7
4
+ * v4.30.0-next.70
5
5
  */
6
6
  'use strict';
7
7
 
8
- const arcadeDefaults = require('./arcade-defaults-85d2771a.js');
9
- require('./index-6542b576.js');
8
+ const arcadeDefaults = require('./arcade-defaults-ca722f9f.js');
9
+ require('./index-c731f1b4.js');
10
10
 
11
11
  /*!-----------------------------------------------------------------------------
12
12
  * 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.30/esri/copyright.txt for details.
4
- * v4.30.0-next.7
4
+ * v4.30.0-next.70
5
5
  */
6
6
  'use strict';
7
7
 
@@ -1131,6 +1131,16 @@ const dispatchHooks = (hostRef, isInitialLoad) => {
1131
1131
  maybePromise = safeCall(instance, 'componentWillLoad');
1132
1132
  }
1133
1133
  }
1134
+ else {
1135
+ {
1136
+ // Like `componentWillLoad` above, we allow Stencil component
1137
+ // authors to return a `Promise` from this lifecycle callback, and
1138
+ // we specify that our runtime will wait for that `Promise` to
1139
+ // resolve before the component re-renders. So if the method
1140
+ // returns a `Promise` we need to keep it around!
1141
+ maybePromise = safeCall(instance, 'componentWillUpdate');
1142
+ }
1143
+ }
1134
1144
  endSchedule();
1135
1145
  return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
1136
1146
  };
@@ -1273,6 +1283,9 @@ const postUpdateComponent = (hostRef) => {
1273
1283
  }
1274
1284
  }
1275
1285
  else {
1286
+ {
1287
+ safeCall(instance, 'componentDidUpdate');
1288
+ }
1276
1289
  endPostUpdate();
1277
1290
  }
1278
1291
  {
@@ -1294,6 +1307,18 @@ const postUpdateComponent = (hostRef) => {
1294
1307
  // ( •_•)>⌐■-■
1295
1308
  // (⌐■_■)
1296
1309
  };
1310
+ const forceUpdate = (ref) => {
1311
+ {
1312
+ const hostRef = getHostRef(ref);
1313
+ const isConnected = hostRef.$hostElement$.isConnected;
1314
+ if (isConnected &&
1315
+ (hostRef.$flags$ & (2 /* HOST_FLAGS.hasRendered */ | 16 /* HOST_FLAGS.isQueuedForUpdate */)) === 2 /* HOST_FLAGS.hasRendered */) {
1316
+ scheduleUpdate(hostRef, false);
1317
+ }
1318
+ // Returns "true" when the forced update was successfully scheduled
1319
+ return isConnected;
1320
+ }
1321
+ };
1297
1322
  const appDidLoad = (who) => {
1298
1323
  // on appload
1299
1324
  // we have finish the first big initial render
@@ -1359,6 +1384,11 @@ const setValue = (ref, propName, newVal, cmpMeta) => {
1359
1384
  }
1360
1385
  }
1361
1386
  if ((flags & (2 /* HOST_FLAGS.hasRendered */ | 16 /* HOST_FLAGS.isQueuedForUpdate */)) === 2 /* HOST_FLAGS.hasRendered */) {
1387
+ if (instance.componentShouldUpdate) {
1388
+ if (instance.componentShouldUpdate(newVal, oldVal, propName) === false) {
1389
+ return;
1390
+ }
1391
+ }
1362
1392
  // looks like this value actually changed, so we've got work to do!
1363
1393
  // but only if we've already rendered, otherwise just chill out
1364
1394
  // queue that we need to do an update, but don't worry about queuing
@@ -1565,7 +1595,7 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1565
1595
  // construction in order to directly wire together the
1566
1596
  // host element and the lazy-loaded instance
1567
1597
  try {
1568
- new Cstr(hostRef);
1598
+ Cstr.__forceUpdate=forceUpdate;Cstr.__registerControllers=(component)=>{registerInstance(component,hostRef);return hostRef.$cmpMeta$.$members$??{}};new Cstr(hostRef);Cstr.__registerControllers=undefined;
1569
1599
  }
1570
1600
  catch (e) {
1571
1601
  consoleError(e);
@@ -1577,6 +1607,7 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1577
1607
  hostRef.$flags$ |= 128 /* HOST_FLAGS.isWatchReady */;
1578
1608
  }
1579
1609
  endNewInstance();
1610
+ fireConnectedCallback(hostRef.$lazyInstance$);
1580
1611
  }
1581
1612
  if (Cstr.style) {
1582
1613
  // this component has styles but we haven't registered them yet
@@ -1606,6 +1637,9 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1606
1637
  }
1607
1638
  };
1608
1639
  const fireConnectedCallback = (instance) => {
1640
+ {
1641
+ safeCall(instance, 'connectedCallback');
1642
+ }
1609
1643
  };
1610
1644
  const connectedCallback = (elm) => {
1611
1645
  if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
@@ -1647,9 +1681,11 @@ const connectedCallback = (elm) => {
1647
1681
  }
1648
1682
  else {
1649
1683
  // fire off connectedCallback() on component instance
1650
- if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$lazyInstance$) ;
1684
+ if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$lazyInstance$) {
1685
+ fireConnectedCallback(hostRef.$lazyInstance$);
1686
+ }
1651
1687
  else if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$onReadyPromise$) {
1652
- hostRef.$onReadyPromise$.then(() => fireConnectedCallback());
1688
+ hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$));
1653
1689
  }
1654
1690
  }
1655
1691
  endConnected();
@@ -1,14 +1,14 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  * See https://js.arcgis.com/4.30/esri/copyright.txt for details.
4
- * v4.30.0-next.7
4
+ * v4.30.0-next.70
5
5
  */
6
6
  'use strict';
7
7
 
8
8
  Object.defineProperty(exports, '__esModule', { value: true });
9
9
 
10
- const arcadeDefaults = require('./arcade-defaults-85d2771a.js');
11
- require('./index-6542b576.js');
10
+ const arcadeDefaults = require('./arcade-defaults-ca722f9f.js');
11
+ require('./index-c731f1b4.js');
12
12
 
13
13
 
14
14
 
@@ -1,13 +1,13 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  * See https://js.arcgis.com/4.30/esri/copyright.txt for details.
4
- * v4.30.0-next.7
4
+ * v4.30.0-next.70
5
5
  */
6
6
  'use strict';
7
7
 
8
- const typescript = require('./typescript-9ac6fd5a.js');
9
- require('./arcade-defaults-85d2771a.js');
10
- require('./index-6542b576.js');
8
+ const typescript = require('./typescript-8a136799.js');
9
+ require('./arcade-defaults-ca722f9f.js');
10
+ require('./index-c731f1b4.js');
11
11
 
12
12
  /*!-----------------------------------------------------------------------------
13
13
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,12 +1,12 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  * See https://js.arcgis.com/4.30/esri/copyright.txt for details.
4
- * v4.30.0-next.7
4
+ * v4.30.0-next.70
5
5
  */
6
6
  'use strict';
7
7
 
8
- const arcadeDefaults = require('./arcade-defaults-85d2771a.js');
9
- require('./index-6542b576.js');
8
+ const arcadeDefaults = require('./arcade-defaults-ca722f9f.js');
9
+ require('./index-c731f1b4.js');
10
10
 
11
11
  /*!-----------------------------------------------------------------------------
12
12
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,17 +1,17 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  * See https://js.arcgis.com/4.30/esri/copyright.txt for details.
4
- * v4.30.0-next.7
4
+ * v4.30.0-next.70
5
5
  */
6
6
  'use strict';
7
7
 
8
8
  Object.defineProperty(exports, '__esModule', { value: true });
9
9
 
10
- const index = require('./index-6542b576.js');
10
+ const index = require('./index-c731f1b4.js');
11
11
 
12
12
  const defineCustomElements = (win, options) => {
13
13
  if (typeof window === 'undefined') return undefined;
14
- return index.bootstrapLazy([["arcgis-arcade-api_6.cjs",[[0,"arcgis-arcade-editor",{"profile":[16],"script":[1],"testData":[16],"suggestions":[16],"snippets":[16],"hideDocumentationActions":[4,"hide-documentation-actions"],"hideSideBar":[4,"hide-side-bar"],"sideActionBarExpanded":[1540,"side-action-bar-expanded"],"openedSidePanel":[1537,"opened-side-panel"],"editorOptions":[16],"_lang":[32],"_t9nLocale":[32],"_t9nStrings":[32],"_standaloneCodeEditor":[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]},null,{"profile":["_profileChanged"],"testData":["_testDataChanged"],"snippets":["_snippetChanged"]}],[1,"arcgis-arcade-api",{"hideDocumentationActions":[4,"hide-documentation-actions"],"modelId":[1,"model-id"],"_lang":[32],"_t9nLocale":[32],"_t9nStrings":[32],"_selectedApiItem":[32],"_filterValue":[32],"_colorizeStyle":[32],"_preparingApi":[32],"_apiLibrary":[32]}],[1,"arcgis-arcade-results",{"loading":[4],"openedResultPanel":[1537,"opened-result-panel"],"result":[16],"consoleLogs":[16],"_lang":[32],"_t9nLocale":[32],"_t9nStrings":[32]}],[1,"arcgis-arcade-suggestions",{"suggestions":[16],"_lang":[32],"_t9nLocale":[32],"_t9nStrings":[32],"_selectedSuggestion":[32],"_filterValue":[32],"_colorizeStyle":[32]},null,{"suggestions":["suggestionsPropChanged"]}],[1,"arcgis-arcade-variables",{"loading":[4],"modelId":[1,"model-id"],"_lang":[32],"_t9nLocale":[32],"_t9nStrings":[32],"_mutationCounter":[32],"_flowItemRenderers":[32],"_filterValue":[32]},null,{"modelId":["modelIdPropChanged"]}],[0,"arcgis-code-editor",{"value":[1],"language":[1],"modelId":[1,"model-id"],"options":[16],"getValue":[64],"setValue":[64],"insertText":[64],"insertSnippet":[64],"getEditorInstance":[64],"setFocus":[64]},null,{"value":["valuePropChange"],"language":["languagePropChange"],"modelId":["modelIdPropChange"],"options":["optionsPropChange"]}]]]], options);
14
+ return index.bootstrapLazy([["arcgis-arcade-api_6.cjs",[[0,"arcgis-arcade-editor",{"profile":[16],"script":[1025],"testData":[16],"suggestions":[16],"snippets":[16],"hideDocumentationActions":[4,"hide-documentation-actions"],"hideSideBar":[4,"hide-side-bar"],"sideActionBarExpanded":[1540,"side-action-bar-expanded"],"openedSidePanel":[1537,"opened-side-panel"],"editorOptions":[16],"editorInstance":[16],"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]},null,{"profile":["_profileChanged"],"testData":["_testDataChanged"],"snippets":["_snippetChanged"]}],[1,"arcgis-arcade-api",{"hideDocumentationActions":[4,"hide-documentation-actions"],"modelId":[1,"model-id"],"_selectedApiItem":[32],"_filterValue":[32],"_colorizeStyle":[32],"_preparingApi":[32],"_apiLibrary":[32]}],[1,"arcgis-arcade-results",{"loading":[4],"openedResultPanel":[1537,"opened-result-panel"],"result":[16],"consoleLogs":[16]}],[1,"arcgis-arcade-suggestions",{"suggestions":[16],"_selectedSuggestion":[32],"_filterValue":[32],"_colorizeStyle":[32]},null,{"suggestions":["suggestionsPropChanged"]}],[1,"arcgis-arcade-variables",{"loading":[4],"modelId":[1,"model-id"],"_mutationCounter":[32],"_flowItemRenderers":[32],"_filterValue":[32]},null,{"modelId":["modelIdPropChanged"]}],[0,"arcgis-code-editor",{"value":[1],"language":[1],"modelId":[1,"model-id"],"options":[16],"editorInstance":[16],"getValue":[64],"setValue":[64],"insertText":[64],"insertSnippet":[64],"getEditorInstance":[64],"setFocus":[64]},null,{"language":["languagePropChange"],"modelId":["modelIdPropChange"],"options":["optionsPropChange"]}]]]], options);
15
15
  };
16
16
 
17
17
  exports.setNonce = index.setNonce;
@@ -1,12 +1,12 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  * See https://js.arcgis.com/4.30/esri/copyright.txt for details.
4
- * v4.30.0-next.7
4
+ * v4.30.0-next.70
5
5
  */
6
6
  'use strict';
7
7
 
8
- const arcadeDefaults = require('./arcade-defaults-85d2771a.js');
9
- require('./index-6542b576.js');
8
+ const arcadeDefaults = require('./arcade-defaults-ca722f9f.js');
9
+ require('./index-c731f1b4.js');
10
10
 
11
11
  /*!-----------------------------------------------------------------------------
12
12
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,12 +1,12 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  * See https://js.arcgis.com/4.30/esri/copyright.txt for details.
4
- * v4.30.0-next.7
4
+ * v4.30.0-next.70
5
5
  */
6
6
  'use strict';
7
7
 
8
- const arcadeDefaults = require('./arcade-defaults-85d2771a.js');
9
- require('./index-6542b576.js');
8
+ const arcadeDefaults = require('./arcade-defaults-ca722f9f.js');
9
+ require('./index-c731f1b4.js');
10
10
 
11
11
  /*!-----------------------------------------------------------------------------
12
12
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,15 +1,17 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  * See https://js.arcgis.com/4.30/esri/copyright.txt for details.
4
- * v4.30.0-next.7
4
+ * v4.30.0-next.70
5
5
  */
6
- import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
6
+ import { proxyCustomElement, HTMLElement, createEvent, h, Host, forceUpdate } from '@stencil/core/internal/client';
7
7
  import { g as generateColorizeStyles, o as onColorizeThemeChanged, c as convertMarkdownString, a as colorizedAllCodeElements } from './markdown.js';
8
8
  import { f as filterCollection } from './utilities.js';
9
9
  import { Uri } from 'monaco-editor';
10
- import { B, q, W, G } from './index2.js';
10
+ import { u as useControllerManager } from './chunk-63RMNUHL.js';
11
+ import { e as setFocusOnElement, b as addLTRMark } from './index2.js';
11
12
  import { b as arcadeDefaults } from './arcade-defaults.js';
12
13
  import { g as getArcadeWorker } from './arcade-contribution.js';
14
+ import { u as useT9n } from './useT9n.js';
13
15
  import "@esri/calcite-components/dist/components/calcite-list-item-group.js";
14
16
  import "@esri/calcite-components/dist/components/calcite-list-item.js";
15
17
  import "@esri/calcite-components/dist/components/calcite-action.js";
@@ -20,17 +22,20 @@ import "@esri/calcite-components/dist/components/calcite-flow.js";
20
22
  import "@esri/calcite-components/dist/components/calcite-input.js";
21
23
  import "@esri/calcite-components/dist/components/calcite-loader.js";
22
24
  import "@esri/calcite-components/dist/components/calcite-list.js";
23
- import { getArcgisAssetPath as getAssetPath } from "./arcgis-assets.js";
24
25
 
25
- const arcadeApiCss = ":host{background-color:var(--calcite-color-foreground-1)}:host .notice-container{margin:var(--calcite-spacing-quarter);padding:var(--calcite-spacing-half);background-color:var(--calcite-color-foreground-1)}:host .sticky{position:sticky;top:0px;z-index:10}:host calcite-flow{height:100%}:host calcite-block p:first-of-type{margin-top:0}:host calcite-block code{font-family:var(--calcite-code-family)}:host calcite-block pre{direction:ltr;overflow-x:auto;background-color:var(--calcite-color-foreground-2);padding:var(--calcite-spacing-half)}:host calcite-block pre code{font-size:var(--calcite-font-size--2)}";
26
+ const arcadeApiCss = ":host{background-color:var(--calcite-color-foreground-1)}:host .notice-container{margin:var(--calcite-spacing-xxs);padding:var(--calcite-spacing-sm);background-color:var(--calcite-color-foreground-1)}:host .sticky{position:sticky;top:0px;z-index:10}:host calcite-flow{height:100%}:host calcite-block p:first-of-type{margin-top:0}:host calcite-block code{font-family:var(--calcite-code-family)}:host calcite-block pre{direction:ltr;overflow-x:auto;background-color:var(--calcite-color-foreground-2);padding:var(--calcite-spacing-sm)}:host calcite-block pre code{font-size:var(--calcite-font-size--2)}:host calcite-list-item-group{background-color:var(--calcite-color-foreground-2)}";
26
27
 
28
+ const __cmpMeta = [1,"arcgis-arcade-api",{"hideDocumentationActions":[1028,"hide-documentation-actions"],"modelId":[1025,"model-id"],"_selectedApiItem":[32],"_filterValue":[32],"_colorizeStyle":[32],"_preparingApi":[32],"_apiLibrary":[32]}];
27
29
  const ArcgisArcadeApi = /*@__PURE__*/ proxyCustomElement(class ArcgisArcadeApi extends HTMLElement {
28
30
  constructor() {
29
31
  super();
30
32
  this.__registerHost();
33
+ this.constructor.__registerControllers = ()=>__cmpMeta[2]??{};
31
34
  this.__attachShadow();
32
- this.close = createEvent(this, "close", 3);
33
- this.itemSelected = createEvent(this, "itemSelected", 3);
35
+ this.arcgisClose = createEvent(this, "arcgisClose", 3);
36
+ this.arcgisItemSelected = createEvent(this, "arcgisItemSelected", 3);
37
+ this.manager = useControllerManager(this,forceUpdate);
38
+ this.messages = useT9n();
34
39
  this._emitItemSelected = (e) => {
35
40
  const item = e.target?.["data-item"];
36
41
  if (!item) {
@@ -39,10 +44,10 @@ const ArcgisArcadeApi = /*@__PURE__*/ proxyCustomElement(class ArcgisArcadeApi e
39
44
  const keyEvent = e;
40
45
  if (!keyEvent.key || keyEvent.key === "Enter") {
41
46
  e.preventDefault();
42
- this.itemSelected.emit(item.completion.insertText);
47
+ this.arcgisItemSelected.emit(item.completion.insertText);
43
48
  }
44
49
  };
45
- this._emitClose = () => this.close.emit();
50
+ this._emitClose = () => this.arcgisClose.emit();
46
51
  this._emitItemSelectedAndClose = (e) => {
47
52
  if (!e.target) {
48
53
  return;
@@ -54,7 +59,7 @@ const ArcgisArcadeApi = /*@__PURE__*/ proxyCustomElement(class ArcgisArcadeApi e
54
59
  if (!item) {
55
60
  return;
56
61
  }
57
- this.itemSelected.emit(item.completion.insertText);
62
+ this.arcgisItemSelected.emit(item.completion.insertText);
58
63
  }
59
64
  };
60
65
  this._selectItem = (e) => {
@@ -70,9 +75,6 @@ const ArcgisArcadeApi = /*@__PURE__*/ proxyCustomElement(class ArcgisArcadeApi e
70
75
  this._updateFilterValue = (e) => {
71
76
  this._filterValue = e.target?.value ?? "";
72
77
  };
73
- this._lang = "";
74
- this._t9nLocale = "";
75
- this._t9nStrings = undefined;
76
78
  this._selectedApiItem = undefined;
77
79
  this._filterValue = "";
78
80
  this._colorizeStyle = "";
@@ -86,7 +88,6 @@ const ArcgisArcadeApi = /*@__PURE__*/ proxyCustomElement(class ArcgisArcadeApi e
86
88
  async componentWillLoad() {
87
89
  this._colorizeStyle = generateColorizeStyles();
88
90
  this._themeChangedListner = onColorizeThemeChanged(() => (this._colorizeStyle = generateColorizeStyles()));
89
- await B(this, getAssetPath("./assets"));
90
91
  arcadeDefaults.onModelContextDidChange((key) => {
91
92
  if (!this.modelId || key !== Uri.parse(this.modelId).toString()) {
92
93
  return;
@@ -96,7 +97,6 @@ const ArcgisArcadeApi = /*@__PURE__*/ proxyCustomElement(class ArcgisArcadeApi e
96
97
  await this._updateApiLibrary();
97
98
  }
98
99
  disconnectedCallback() {
99
- q(this);
100
100
  this._flowObserver?.disconnect();
101
101
  this._themeChangedListner?.dispose();
102
102
  }
@@ -141,7 +141,7 @@ const ArcgisArcadeApi = /*@__PURE__*/ proxyCustomElement(class ArcgisArcadeApi e
141
141
  // When switching between flow the same reference is reused
142
142
  this._flowObserver = new MutationObserver(() => {
143
143
  // Get the last panel and try to set focus on the input element
144
- W(ref.querySelector("calcite-flow-item:last-child"), "calcite-input");
144
+ setFocusOnElement(ref.querySelector("calcite-flow-item:last-child"), "calcite-input");
145
145
  });
146
146
  this._flowObserver.observe(ref, { attributes: true, attributeFilter: ["id"], childList: true });
147
147
  }
@@ -152,14 +152,14 @@ const ArcgisArcadeApi = /*@__PURE__*/ proxyCustomElement(class ArcgisArcadeApi e
152
152
  if (!filteredApiItems.length) {
153
153
  return null;
154
154
  }
155
- return (h("calcite-list-item-group", { heading: category.title }, filteredApiItems.map((apiItem) => (h("calcite-list-item", { label: G(apiItem.completion.detail), onCalciteListItemSelect: this._emitItemSelected, onKeyPress: this._emitItemSelected, "data-item": apiItem }, h("calcite-action", { slot: "actions-end", text: this._t9nStrings?.expand ?? "Expand", icon: "chevron-right", iconFlipRtl: true, scale: "s", onClick: this._selectItem, "data-item": apiItem }))))));
155
+ return (h("calcite-list-item-group", { heading: category.title }, filteredApiItems.map((apiItem) => (h("calcite-list-item", { label: addLTRMark(apiItem.completion.detail), onCalciteListItemSelect: this._emitItemSelected, onKeyPress: this._emitItemSelected, "data-item": apiItem }, h("calcite-action", { slot: "actions-end", text: this.messages.expand ?? "Expand", icon: "chevron-right", iconFlipRtl: true, scale: "s", onClick: this._selectItem, "data-item": apiItem }))))));
156
156
  }
157
157
  renderApiItemFlowItem() {
158
158
  const apiItem = this._selectedApiItem;
159
159
  if (!apiItem) {
160
160
  return null;
161
161
  }
162
- return (h("calcite-flow-item", { heading: this._t9nStrings?.constantsandfunctions, beforeBack: this._unselectItem, closable: true, onCalciteFlowItemClose: this._emitClose }, this.hideDocumentationActions ? null : (h("calcite-button", { width: "half", slot: "footer", appearance: "outline", kind: "brand", scale: "s", href: apiItem.link, target: "Arcade Help", "icon-start": "information" }, this._t9nStrings?.moreinformation)), h("calcite-button", { width: "half", slot: "footer", appearance: "outline", kind: "brand", "icon-start": "code", scale: "s", onClick: this._emitItemSelectedAndClose, "data-item": apiItem, ref: (e) => void e?.setFocus() }, this._t9nStrings?.insert ?? "Insert"), h("calcite-block", { open: true, heading: G(apiItem.completion.detail) }, h("div", { innerHTML: convertMarkdownString(apiItem.completion.documentation) }), apiItem.examples ? (h("div", { ref: (e) => {
162
+ return (h("calcite-flow-item", { heading: this.messages.constantsandfunctions, beforeBack: this._unselectItem, closable: true, onCalciteFlowItemClose: this._emitClose }, this.hideDocumentationActions ? null : (h("calcite-button", { width: "half", slot: "footer", appearance: "outline", kind: "brand", scale: "s", href: apiItem.link, target: "Arcade Help", "icon-start": "information" }, this.messages.moreinformation)), h("calcite-button", { width: "half", slot: "footer", appearance: "outline", kind: "brand", "icon-start": "code", scale: "s", onClick: this._emitItemSelectedAndClose, "data-item": apiItem, ref: (e) => void e?.setFocus() }, this.messages.insert ?? "Insert"), h("calcite-block", { open: true, heading: addLTRMark(apiItem.completion.detail) }, h("div", { innerHTML: convertMarkdownString(apiItem.completion.documentation) }), apiItem.examples ? (h("div", { ref: (e) => {
163
163
  if (!e) {
164
164
  return;
165
165
  }
@@ -170,23 +170,12 @@ const ArcgisArcadeApi = /*@__PURE__*/ proxyCustomElement(class ArcgisArcadeApi e
170
170
  render() {
171
171
  const categories = (this._apiLibrary ?? []).map((apiCategory) => this.renderApiCategory(apiCategory));
172
172
  const empty = categories.every((g) => !g);
173
- return (h(Host, null, h("style", null, this._colorizeStyle), h("calcite-flow", { ref: (ref) => this.flowFocusHandler(ref) }, h("calcite-flow-item", { heading: this._t9nStrings?.constantsandfunctions, closable: true, onCalciteFlowItemClose: this._emitClose }, h("calcite-input", { value: this._filterValue, icon: "magnifying-glass", clearable: true, onCalciteInputInput: this._updateFilterValue, class: "sticky", scale: "m" }), this._preparingApi ? (h("calcite-loader", { scale: "s", type: "indeterminate", label: this._t9nStrings?.loading ?? "Loading" })) : (h("calcite-list", null, empty ? h("div", { class: "notice-container" }, this._t9nStrings?.noitems ?? "No items") : categories))), this.renderApiItemFlowItem())));
173
+ return (h(Host, null, h("style", null, this._colorizeStyle), h("calcite-flow", { ref: (ref) => this.flowFocusHandler(ref) }, h("calcite-flow-item", { heading: this.messages.constantsandfunctions, closable: true, onCalciteFlowItemClose: this._emitClose }, h("calcite-input", { value: this._filterValue, icon: "magnifying-glass", clearable: true, onCalciteInputInput: this._updateFilterValue, class: "sticky", scale: "m" }), this._preparingApi ? (h("calcite-loader", { scale: "s", type: "indeterminate", label: this.messages.loading ?? "Loading" })) : (h("calcite-list", null, empty ? h("div", { class: "notice-container" }, this.messages.noitems ?? "No items") : categories))), this.renderApiItemFlowItem())));
174
174
  }
175
175
  static get assetsDirs() { return ["assets"]; }
176
- get _hostElement() { return this; }
176
+ get el() { return this; }
177
177
  static get style() { return arcadeApiCss; }
178
- }, [1, "arcgis-arcade-api", {
179
- "hideDocumentationActions": [4, "hide-documentation-actions"],
180
- "modelId": [1, "model-id"],
181
- "_lang": [32],
182
- "_t9nLocale": [32],
183
- "_t9nStrings": [32],
184
- "_selectedApiItem": [32],
185
- "_filterValue": [32],
186
- "_colorizeStyle": [32],
187
- "_preparingApi": [32],
188
- "_apiLibrary": [32]
189
- }]);
178
+ }, __cmpMeta);
190
179
  function defineCustomElement() {
191
180
  if (typeof customElements === "undefined") {
192
181
  return;
@@ -1,12 +1,12 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  * See https://js.arcgis.com/4.30/esri/copyright.txt for details.
4
- * v4.30.0-next.7
4
+ * v4.30.0-next.70
5
5
  */
6
- import { languages } from 'monaco-editor';
6
+ import { editor, languages } from 'monaco-editor';
7
7
  import { b as arcadeDefaults } from './arcade-defaults.js';
8
- import { a as importRequest } from './fields.js';
9
- import { i as ie, s as se } from './index2.js';
8
+ import { i as importRequest } from './fields.js';
9
+ import { l as isURL, m as hasSameOrigin } from './index2.js';
10
10
 
11
11
  function isMonacoEnvironmentSetup() {
12
12
  return !!window.MonacoEnvironment?.getWorkerUrl;
@@ -48,21 +48,81 @@ function setupMonacoEnvironment(assetsPath) {
48
48
  break;
49
49
  }
50
50
  // If we have a relative path or we are on same orgin, we can use the default js implementation
51
- if (!ie(url) || se(url, globalThis.location.href, true)) {
51
+ if (!isURL(url) || hasSameOrigin(url, globalThis.location.href, true)) {
52
52
  return new Worker(url, { name: languageId });
53
53
  }
54
54
  // For cross orgin, we will load the worker code as a string and manufacture a blob
55
55
  const esriRequest = await importRequest();
56
56
  const response = await esriRequest(url, {
57
- responseType: "text"
57
+ responseType: "text",
58
58
  });
59
59
  return new Worker(URL.createObjectURL(new Blob([response.data], {
60
- type: "text/javascript"
60
+ type: "text/javascript",
61
61
  })));
62
- }
62
+ },
63
63
  };
64
64
  }
65
65
 
66
+ const themeConfig = {
67
+ "arcade-light-theme": {
68
+ comment: "#606060",
69
+ constant: "#9809C8",
70
+ date: "#296389",
71
+ identifier: "#0000B3",
72
+ keyword: "#BF4900",
73
+ number: "#136D3D",
74
+ string: "#A31515"
75
+ },
76
+ "arcade-dark-theme": {
77
+ comment: "#BFBFBF",
78
+ constant: "#CDBAEA",
79
+ date: "#97A6CE",
80
+ identifier: "#9FD4F3",
81
+ keyword: "#EEAA5A",
82
+ number: "#AAD04B",
83
+ string: "#F2877B"
84
+ }
85
+ };
86
+
87
+ function setupArcadeTheme() {
88
+ ["light", "dark"].forEach((theme) => {
89
+ const base = theme === "light" ? "vs" : "vs-dark";
90
+ const colors = themeConfig[`arcade-${theme}-theme`];
91
+ // Defines the light and dark theme based on the calcite theme name
92
+ editor.defineTheme(base, {
93
+ base,
94
+ inherit: true,
95
+ rules: [
96
+ { token: "comment.arc", foreground: colors.comment },
97
+ { token: "constant.arc", foreground: colors.constant },
98
+ { token: "keyword.arc", foreground: colors.keyword },
99
+ { token: "identifier.arc", foreground: colors.identifier },
100
+ { token: "number.arc", foreground: colors.number },
101
+ { token: "string.arc", foreground: colors.string },
102
+ ],
103
+ colors: {},
104
+ });
105
+ });
106
+ }
107
+ const monacoThemeKeys = ["comment", "keyword", "identifier", "string", "number", "constant"];
108
+ const colorRulesKeys = [...monacoThemeKeys, "date"];
109
+ function updateThemeColors(theme, colorRules) {
110
+ if (colorRules === undefined) {
111
+ setupArcadeTheme();
112
+ return;
113
+ }
114
+ const base = theme === "light" ? "vs" : "vs-dark";
115
+ const rules = [];
116
+ monacoThemeKeys.forEach((key) => {
117
+ const foreground = colorRules[key];
118
+ if (!foreground) {
119
+ return;
120
+ }
121
+ rules.push({ token: `${key}.arc`, foreground });
122
+ });
123
+ editor.defineTheme(base, { base, inherit: true, rules, colors: {} });
124
+ }
125
+
66
126
  /**
67
127
  * Returns the arcade diagnostic service.
68
128
  * Example:
@@ -92,7 +152,7 @@ async function getArcadeWorker(uri) {
92
152
  }
93
153
  /**
94
154
  * Request the arcade mode
95
- * @returns mode for arcade
155
+ * @returns arcade mode module
96
156
  */
97
157
  async function getMode() {
98
158
  return await import('./arcade-mode.js');
@@ -102,13 +162,12 @@ languages.register({
102
162
  id: arcadeDefaults.languageId,
103
163
  aliases: ["Arcade", "arcade"],
104
164
  extensions: [".arc"],
105
- mimetypes: ["application/arcade"]
165
+ mimetypes: ["application/arcade"],
106
166
  });
107
167
  // An event emitted when a language is first time needed
108
168
  languages.onLanguage(arcadeDefaults.languageId, () => {
109
- // Setup the assets path on the arcadeDefaults
169
+ setupArcadeTheme();
110
170
  arcadeDefaults.setLanguageOptions({ assetsPath: `${getAssetsPath() ?? "."}/arcade-language` });
111
- // Async import the language mode
112
171
  getMode()
113
172
  .then((mode) => {
114
173
  // Setup the language mode
@@ -119,4 +178,4 @@ languages.onLanguage(arcadeDefaults.languageId, () => {
119
178
  });
120
179
  });
121
180
 
122
- export { getArcadeDiagnosticService as a, getArcadeWorker as g, setupMonacoEnvironment as s };
181
+ export { getArcadeDiagnosticService as a, colorRulesKeys as c, getArcadeWorker as g, setupMonacoEnvironment as s, updateThemeColors as u };