@arcgis/coding-components 4.29.0-beta.113 → 4.29.0-beta.115

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 (156) hide show
  1. package/dist/arcgis-coding-components/arcgis-coding-components.esm.js +2 -2
  2. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ar.json +111 -111
  3. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.bg.json +113 -113
  4. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.bs.json +111 -111
  5. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ca.json +111 -111
  6. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.cs.json +111 -111
  7. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.da.json +111 -111
  8. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.de.json +111 -111
  9. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.el.json +111 -111
  10. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.en.json +19 -19
  11. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.es.json +111 -111
  12. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.et.json +111 -111
  13. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.fi.json +111 -111
  14. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.fr.json +111 -111
  15. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.he.json +111 -111
  16. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.hr.json +111 -111
  17. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.hu.json +111 -111
  18. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.id.json +111 -111
  19. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.it.json +111 -111
  20. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ja.json +111 -111
  21. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ko.json +111 -111
  22. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.lt.json +111 -111
  23. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.lv.json +111 -111
  24. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.nb.json +111 -111
  25. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.nl.json +66 -66
  26. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.pl.json +66 -66
  27. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.pt-BR.json +111 -111
  28. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.pt-PT.json +111 -111
  29. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ro.json +66 -66
  30. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ru.json +111 -111
  31. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sk.json +111 -111
  32. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sl.json +111 -111
  33. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sr.json +111 -111
  34. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sv.json +111 -111
  35. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.th.json +111 -111
  36. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.tr.json +111 -111
  37. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.uk.json +111 -111
  38. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.vi.json +111 -111
  39. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.zh-CN.json +66 -66
  40. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.zh-HK.json +66 -66
  41. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.zh-TW.json +66 -66
  42. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ar.json +4 -4
  43. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.bg.json +4 -4
  44. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.bs.json +4 -4
  45. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ca.json +4 -4
  46. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.cs.json +4 -4
  47. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.da.json +3 -3
  48. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.de.json +3 -3
  49. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.el.json +4 -4
  50. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.en.json +3 -3
  51. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.es.json +4 -4
  52. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.et.json +3 -3
  53. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.fi.json +4 -4
  54. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.fr.json +4 -4
  55. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.he.json +4 -4
  56. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.hr.json +4 -4
  57. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.hu.json +4 -4
  58. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.id.json +4 -4
  59. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.it.json +4 -4
  60. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ja.json +4 -4
  61. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ko.json +4 -4
  62. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.lt.json +4 -4
  63. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.lv.json +4 -4
  64. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.nb.json +4 -4
  65. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.nl.json +4 -4
  66. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.pl.json +4 -4
  67. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.pt-BR.json +4 -4
  68. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.pt-PT.json +4 -4
  69. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ro.json +4 -4
  70. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ru.json +3 -3
  71. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.sk.json +4 -4
  72. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.sl.json +4 -4
  73. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.sr.json +4 -4
  74. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.sv.json +4 -4
  75. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.th.json +4 -4
  76. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.tr.json +4 -4
  77. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.uk.json +4 -4
  78. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.vi.json +4 -4
  79. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.zh-CN.json +4 -4
  80. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.zh-HK.json +4 -4
  81. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.zh-TW.json +4 -4
  82. package/dist/arcgis-coding-components/index.esm.js +2 -2
  83. package/dist/arcgis-coding-components/{p-1d1df020.js → p-6e8b9fe5.js} +2 -2
  84. package/dist/arcgis-coding-components/{p-e530878b.js → p-7a93bb3b.js} +2 -2
  85. package/dist/arcgis-coding-components/{p-4b7291cc.js → p-9cb71acd.js} +1 -1
  86. package/dist/arcgis-coding-components/p-a204229b.entry.js +6 -0
  87. package/dist/arcgis-coding-components/p-af7e61b6.js +6 -0
  88. package/dist/arcgis-coding-components/{p-4088f191.js → p-ba6773e0.js} +1 -1
  89. package/dist/arcgis-coding-components/{p-e1eaafa9.js → p-d8743a57.js} +2 -2
  90. package/dist/arcgis-coding-components/{p-ed0acf1d.js → p-d96dc356.js} +2 -2
  91. package/dist/arcgis-coding-components/{p-e4fb8f11.js → p-dfbc8c11.js} +11 -11
  92. package/dist/arcgis-coding-components/{p-8fa7b6b3.js → p-e67455ae.js} +2 -2
  93. package/dist/arcgis-coding-components/{p-b2b27bbe.js → p-e8238684.js} +2 -2
  94. package/dist/arcgis-coding-components/{p-b7f6269a.js → p-f71b9ff8.js} +2 -2
  95. package/dist/cjs/{arcade-defaults-4a549303.js → arcade-defaults-72ad69bb.js} +34 -30
  96. package/dist/cjs/{arcade-mode-6c189663.js → arcade-mode-d0e254e7.js} +11 -14
  97. package/dist/cjs/arcgis-arcade-api_6.cjs.entry.js +100 -135
  98. package/dist/cjs/arcgis-coding-components.cjs.js +2 -2
  99. package/dist/cjs/{css-6f7dcd5a.js → css-7e80b850.js} +1 -1
  100. package/dist/cjs/{cssMode-245d6467.js → cssMode-acc88f93.js} +3 -3
  101. package/dist/cjs/{html-2774c64f.js → html-c634cfab.js} +3 -3
  102. package/dist/cjs/{htmlMode-0606c7e3.js → htmlMode-7446fade.js} +3 -3
  103. package/dist/cjs/{index-b518646d.js → index-135d850f.js} +1 -1
  104. package/dist/cjs/index.cjs.js +3 -3
  105. package/dist/cjs/{javascript-6b11fc9d.js → javascript-7de4f2e5.js} +4 -4
  106. package/dist/cjs/{jsonMode-11883f07.js → jsonMode-ba23faf1.js} +3 -3
  107. package/dist/cjs/loader.cjs.js +2 -2
  108. package/dist/cjs/{tsMode-4de8b5c1.js → tsMode-f95cf2a3.js} +3 -3
  109. package/dist/cjs/{typescript-96d879a2.js → typescript-fd97c5c9.js} +3 -3
  110. package/dist/components/arcade-api.js +20 -18
  111. package/dist/components/arcade-contribution.js +8 -7
  112. package/dist/components/arcade-defaults.js +9 -9
  113. package/dist/components/arcade-mode.js +10 -12
  114. package/dist/components/arcade-results.js +27 -81
  115. package/dist/components/arcade-suggestions.js +15 -12
  116. package/dist/components/arcade-variables.js +16 -10
  117. package/dist/components/arcgis-arcade-api.js +1 -1
  118. package/dist/components/arcgis-arcade-editor.js +16 -12
  119. package/dist/components/arcgis-arcade-results.js +1 -1
  120. package/dist/components/arcgis-arcade-suggestions.js +1 -1
  121. package/dist/components/arcgis-arcade-variables.js +1 -1
  122. package/dist/components/arcgis-code-editor.js +1 -1
  123. package/dist/components/code-editor.js +1 -1
  124. package/dist/components/fields.js +10 -7
  125. package/dist/components/index.js +1 -1
  126. package/dist/components/index2.js +3 -3
  127. package/dist/components/markdown.js +10 -1
  128. package/dist/components/utilities.js +4 -4
  129. package/dist/esm/{arcade-defaults-1e50716f.js → arcade-defaults-341d3ba2.js} +30 -27
  130. package/dist/esm/{arcade-mode-95cf5178.js → arcade-mode-c6b62779.js} +11 -14
  131. package/dist/esm/arcgis-arcade-api_6.entry.js +100 -135
  132. package/dist/esm/arcgis-coding-components.js +3 -3
  133. package/dist/esm/{css-e2349c2b.js → css-a5c8eae7.js} +1 -1
  134. package/dist/esm/{cssMode-3fae4ab5.js → cssMode-2775c361.js} +3 -3
  135. package/dist/esm/{html-961458b7.js → html-21177d74.js} +3 -3
  136. package/dist/esm/{htmlMode-33dab68c.js → htmlMode-f07e5f14.js} +3 -3
  137. package/dist/esm/{index-751e780b.js → index-17ee3129.js} +1 -1
  138. package/dist/esm/index.js +3 -3
  139. package/dist/esm/{javascript-996fdadb.js → javascript-e4b517d9.js} +4 -4
  140. package/dist/esm/{jsonMode-d3634539.js → jsonMode-ca5b2b48.js} +3 -3
  141. package/dist/esm/loader.js +3 -3
  142. package/dist/esm/{tsMode-e2bb6f87.js → tsMode-fe489f62.js} +3 -3
  143. package/dist/esm/{typescript-e9a34331.js → typescript-2541a3e5.js} +3 -3
  144. package/dist/loader/cdn.js +1 -1
  145. package/dist/loader/index.cjs.js +1 -1
  146. package/dist/loader/index.es2017.js +1 -1
  147. package/dist/loader/index.js +1 -1
  148. package/dist/types/utils/arcade-monaco/arcade-contribution.d.ts +2 -2
  149. package/dist/types/utils/constants.d.ts +2 -2
  150. package/dist/types/utils/markdown.d.ts +3 -0
  151. package/package.json +8 -8
  152. package/dist/arcgis-coding-components/p-6c13dba0.entry.js +0 -6
  153. package/dist/arcgis-coding-components/p-d80df481.js +0 -6
  154. package/dist/components/functional-components.js +0 -15
  155. package/dist/types/utils/functional-components.d.ts +0 -7
  156. package/dist/types/utils/json-format.d.ts +0 -1
@@ -1,10 +1,10 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  * See https://js.arcgis.com/4.29/esri/copyright.txt for details.
4
- * v4.29.0-beta.113
4
+ * v4.29.0-beta.115
5
5
  */
6
- import { h, r as registerInstance, c as createEvent, g as getAssetPath, H as Host, a as getElement, F as Fragment } from './index-751e780b.js';
7
- import { g as generateTokensCSSForColorMap, e as editor, S as StandaloneServices, I as IStandaloneThemeService, c as createCommonjsModule, b as commonjsGlobal, s as se, o as oe, i as importRequest, l as languages, d as arcadeDefaults, B, U as Uri, H, F, f as filterCollection, Z, h as importArcade, j as h$1, k as U, m as k, K as KeyCode, n as K, Q, p as supportedFields, D, R as Range, x, q as KeyMod } from './arcade-defaults-1e50716f.js';
6
+ import { r as registerInstance, c as createEvent, g as getAssetPath, h, H as Host, a as getElement, F as Fragment } from './index-17ee3129.js';
7
+ import { g as generateTokensCSSForColorMap, e as editor, S as StandaloneServices, I as IStandaloneThemeService, c as createCommonjsModule, b as commonjsGlobal, i as ie, s as se, d as importRequest, l as languages, f as arcadeDefaults, B, U as Uri, q, W, h as filterCollection, G, j as importArcade, k as h$1, m as U, n as k, K as KeyCode, Z, D, o as supportedFields, p as K, R as Range, x, r as KeyMod } from './arcade-defaults-341d3ba2.js';
8
8
 
9
9
  async function colorizeCode(code) {
10
10
  return await editor.colorize(code, "arcade", { tabSize: 2 });
@@ -20,24 +20,23 @@ async function colorizeCodeElement(e, text) {
20
20
  if (!e || e.tagName !== "CODE") {
21
21
  return;
22
22
  }
23
+ // eslint-disable-next-line require-atomic-updates
23
24
  e.innerHTML = await colorizeCode(text ?? "");
24
25
  }
25
26
  function generateColorizeStyles() {
27
+ /* eslint-disable @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-call, @typescript-eslint/no-unsafe-member-access */
26
28
  const themeService = StandaloneServices.get(IStandaloneThemeService);
27
29
  const theme = themeService.getColorTheme();
28
30
  return generateTokensCSSForColorMap(theme.tokenTheme.getColorMap());
31
+ /* eslint-enable @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-call, @typescript-eslint/no-unsafe-member-access */
29
32
  }
30
33
  function onColorizeThemeChanged(func) {
34
+ /* eslint-disable @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-call, @typescript-eslint/no-unsafe-member-access */
31
35
  const themeService = StandaloneServices.get(IStandaloneThemeService);
32
36
  return themeService.onDidColorThemeChange(() => func());
37
+ /* eslint-enable @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-call, @typescript-eslint/no-unsafe-member-access */
33
38
  }
34
39
 
35
- const StickyFilterInput = ({ filterValue, ...rest }) => (
36
- // TODO: Remove when calcite-input bug with scale is fixed
37
- // @ts-expect-error
38
- h("div", { class: "sticky", scale: "m" },
39
- h("calcite-input", { value: filterValue, icon: "magnifying-glass", clearable: true, ...rest })));
40
-
41
40
  var marked_umd = createCommonjsModule(function (module, exports) {
42
41
  /**
43
42
  * marked v5.1.2 - a markdown parser
@@ -2915,6 +2914,7 @@ var marked_umd = createCommonjsModule(function (module, exports) {
2915
2914
  }));
2916
2915
  });
2917
2916
 
2917
+ // Set up the marked library to use GitHub Flavored Markdown and to use the custom renderer for links.
2918
2918
  marked_umd.marked.use({
2919
2919
  gfm: true,
2920
2920
  renderer: {
@@ -2923,6 +2923,9 @@ marked_umd.marked.use({
2923
2923
  }
2924
2924
  }
2925
2925
  });
2926
+ /**
2927
+ * Converts a markdown string to HTML using the marked library.
2928
+ */
2926
2929
  function convertMarkdownString(value) {
2927
2930
  value ?? (value = "");
2928
2931
  const result = marked_umd.marked(typeof value === "string" ? value : value.value, {
@@ -2935,11 +2938,12 @@ function convertMarkdownString(value) {
2935
2938
  }
2936
2939
 
2937
2940
  function isMonacoEnvironmentSetup() {
2938
- return !!globalThis.MonacoEnvironment?.getWorkerUrl;
2941
+ return !!window.MonacoEnvironment?.getWorkerUrl;
2939
2942
  }
2940
2943
  const additionalLanguageWorkersMap = new Map();
2944
+ let _assetsPath = "";
2941
2945
  function getAssetsPath() {
2942
- return globalThis.MonacoEnvironment?.assetsPath;
2946
+ return _assetsPath;
2943
2947
  }
2944
2948
  function setupMonacoEnvironment(assetsPath) {
2945
2949
  //
@@ -2947,10 +2951,10 @@ function setupMonacoEnvironment(assetsPath) {
2947
2951
  if (isMonacoEnvironmentSetup()) {
2948
2952
  return;
2949
2953
  }
2954
+ _assetsPath = assetsPath;
2950
2955
  // Since we are using workers, monaco needs to find them.
2951
2956
  // Using the global MonacoEnvironment.
2952
- globalThis.MonacoEnvironment = {
2953
- assetsPath,
2957
+ window.MonacoEnvironment = {
2954
2958
  getWorker: async (_, languageId) => {
2955
2959
  // Manufacture the url for the web worker
2956
2960
  let url = additionalLanguageWorkersMap.get(languageId) ?? `${assetsPath}/code-editor/editor.worker.js`;
@@ -2973,7 +2977,7 @@ function setupMonacoEnvironment(assetsPath) {
2973
2977
  break;
2974
2978
  }
2975
2979
  // If we have a relative path or we are on same orgin, we can use the default js implementation
2976
- if (!se(url) || oe(url, globalThis.location.href, true)) {
2980
+ if (!ie(url) || se(url, globalThis.location.href, true)) {
2977
2981
  return new Worker(url, { name: languageId });
2978
2982
  }
2979
2983
  // For cross orgin, we will load the worker code as a string and manufacture a blob
@@ -3020,7 +3024,7 @@ async function getArcadeWorker(uri) {
3020
3024
  * @returns mode for arcade
3021
3025
  */
3022
3026
  async function getMode() {
3023
- return await import('./arcade-mode-95cf5178.js');
3027
+ return await import('./arcade-mode-c6b62779.js');
3024
3028
  }
3025
3029
  // Register the language in Monaco
3026
3030
  languages.register({
@@ -3052,7 +3056,6 @@ const ArcgisArcadeApi = class {
3052
3056
  this.close = createEvent(this, "close", 3);
3053
3057
  this.itemSelected = createEvent(this, "itemSelected", 3);
3054
3058
  this._emitItemSelected = (e) => {
3055
- // @ts-expect-error
3056
3059
  const item = e.target?.["data-item"];
3057
3060
  if (!item) {
3058
3061
  return;
@@ -3071,8 +3074,11 @@ const ArcgisArcadeApi = class {
3071
3074
  const keyEvent = e;
3072
3075
  if (!keyEvent.key || keyEvent.key === "Enter") {
3073
3076
  e.preventDefault();
3074
- // @ts-expect-error
3075
- this.itemSelected.emit(e.target["data-item"].completion.insertText);
3077
+ const item = e.target?.["data-item"];
3078
+ if (!item) {
3079
+ return;
3080
+ }
3081
+ this.itemSelected.emit(item.completion.insertText);
3076
3082
  }
3077
3083
  };
3078
3084
  this._selectItem = (e) => {
@@ -3080,14 +3086,14 @@ const ArcgisArcadeApi = class {
3080
3086
  return;
3081
3087
  }
3082
3088
  e.stopPropagation();
3083
- // @ts-expect-error
3084
- this._selectedApiItem = e.target["data-item"];
3089
+ this._selectedApiItem = e.target?.["data-item"];
3085
3090
  };
3086
3091
  this._unselectItem = async () => {
3087
3092
  this._selectedApiItem = undefined;
3088
3093
  };
3089
- // @ts-expect-error
3090
- this._updateFilterValue = (e) => (this._filterValue = e.target?.value ?? "");
3094
+ this._updateFilterValue = (e) => {
3095
+ this._filterValue = e.target?.value ?? "";
3096
+ };
3091
3097
  this._lang = "";
3092
3098
  this._t9nLocale = "";
3093
3099
  this._t9nStrings = undefined;
@@ -3109,12 +3115,12 @@ const ArcgisArcadeApi = class {
3109
3115
  if (!this.modelId || key !== Uri.parse(this.modelId).toString()) {
3110
3116
  return;
3111
3117
  }
3112
- this._updateApiLibrary();
3118
+ this._updateApiLibrary().catch(console.error);
3113
3119
  });
3114
- this._updateApiLibrary();
3120
+ await this._updateApiLibrary();
3115
3121
  }
3116
3122
  disconnectedCallback() {
3117
- H(this);
3123
+ q(this);
3118
3124
  this._flowObserver?.disconnect();
3119
3125
  this._themeChangedListner?.dispose();
3120
3126
  }
@@ -3159,7 +3165,7 @@ const ArcgisArcadeApi = class {
3159
3165
  // When switching between flow the same reference is reused
3160
3166
  this._flowObserver = new MutationObserver(() => {
3161
3167
  // Get the last panel and try to set focus on the input element
3162
- F(ref.querySelector("calcite-flow-item:last-child"), "calcite-input");
3168
+ W(ref.querySelector("calcite-flow-item:last-child"), "calcite-input");
3163
3169
  });
3164
3170
  this._flowObserver.observe(ref, { attributes: true, attributeFilter: ["id"], childList: true });
3165
3171
  }
@@ -3170,25 +3176,25 @@ const ArcgisArcadeApi = class {
3170
3176
  if (!filteredApiItems.length) {
3171
3177
  return null;
3172
3178
  }
3173
- return (h("calcite-list-item-group", { heading: category.title }, filteredApiItems.map((apiItem) => (h("calcite-list-item", { label: Z(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 }))))));
3179
+ 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 }))))));
3174
3180
  }
3175
3181
  renderApiItemFlowItem() {
3176
3182
  const apiItem = this._selectedApiItem;
3177
3183
  if (!apiItem) {
3178
3184
  return null;
3179
3185
  }
3180
- 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: Z(apiItem.completion.detail) }, h("div", { innerHTML: convertMarkdownString(apiItem.completion.documentation) }), apiItem.examples ? (h("div", { ref: (e) => {
3186
+ 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) => {
3181
3187
  if (!e) {
3182
3188
  return;
3183
3189
  }
3184
3190
  e.innerHTML = convertMarkdownString(apiItem.examples);
3185
- colorizedAllCodeElements(e);
3191
+ colorizedAllCodeElements(e).catch(console.error);
3186
3192
  } })) : null)));
3187
3193
  }
3188
3194
  render() {
3189
3195
  const categories = (this._apiLibrary ?? []).map((apiCategory) => this.renderApiCategory(apiCategory));
3190
3196
  const empty = categories.every((g) => !g);
3191
- 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(StickyFilterInput, { filterValue: this._filterValue, onCalciteInputInput: this._updateFilterValue }), 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())));
3197
+ 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())));
3192
3198
  }
3193
3199
  static get assetsDirs() { return ["assets"]; }
3194
3200
  get _hostElement() { return getElement(this); }
@@ -3354,17 +3360,18 @@ function formatArcadeResultDateOnly(dateObject) {
3354
3360
  function formatArcadeResultTimeOnly(dateObject) {
3355
3361
  return dateObject.value.toString();
3356
3362
  }
3357
- async function loadArcadeResult(result, timeZone = "system") {
3358
- if (result.type !== "featureSet") {
3359
- return result;
3363
+ async function convertScriptOutputToArcadeResult(scriptOutput, timeZone = "system") {
3364
+ const arcadeResult = valueToArcadeResult(scriptOutput);
3365
+ if (arcadeResult.type !== "featureSet") {
3366
+ return arcadeResult;
3360
3367
  }
3361
3368
  // Feature Set needs to be loaded
3362
- await result.value.load();
3369
+ await arcadeResult.value.load();
3363
3370
  // Create the first iterator
3364
- result.iterator = result.value.iterator({ aborted: false });
3371
+ arcadeResult.iterator = arcadeResult.value.iterator({ aborted: false });
3365
3372
  // Load the first batch of items
3366
- result.features = (await result.iterator.nextBatchAsArcadeFeatures(BatchSize, timeZone)) ?? [];
3367
- return result;
3373
+ arcadeResult.features = (await arcadeResult.iterator.nextBatchAsArcadeFeatures(BatchSize, timeZone)) ?? [];
3374
+ return arcadeResult;
3368
3375
  }
3369
3376
  async function executeScript(editorProfile, script, testContext, console) {
3370
3377
  //
@@ -3392,12 +3399,12 @@ async function executeScript(editorProfile, script, testContext, console) {
3392
3399
  // Execute the script
3393
3400
  const scriptOutput = await executor.executeAsync(profileVariableInstances, executeContext);
3394
3401
  // Convert script output to arcade result object and load data if necessary
3395
- const scriptResult = await loadArcadeResult(valueToArcadeResult(scriptOutput), timeZone);
3402
+ const arcadeResult = await convertScriptOutputToArcadeResult(scriptOutput, timeZone);
3396
3403
  // Timestamp and measure cost
3397
- scriptResult.timeStamp = timeStamp;
3398
- scriptResult.compilationTime = t1 - t0;
3399
- scriptResult.executionTime = performance.now() - t1;
3400
- return scriptResult;
3404
+ arcadeResult.timeStamp = timeStamp;
3405
+ arcadeResult.compilationTime = t1 - t0;
3406
+ arcadeResult.executionTime = performance.now() - t1;
3407
+ return arcadeResult;
3401
3408
  //
3402
3409
  }
3403
3410
  catch (error) {
@@ -3507,9 +3514,13 @@ const ArcgisArcadeEditor = class {
3507
3514
  this._executingScript = false;
3508
3515
  })(), 0);
3509
3516
  };
3510
- this._toggleShowExecutionPanel = () => void (this._showExecutionPanel = !this._showExecutionPanel);
3511
- this._toggleSideActionBarExpanded = () => void (this.sideActionBarExpanded = !this.sideActionBarExpanded);
3512
- this._toggleSidePanel = async (e) => {
3517
+ this._toggleShowExecutionPanel = () => {
3518
+ this._showExecutionPanel = !this._showExecutionPanel;
3519
+ };
3520
+ this._toggleSideActionBarExpanded = () => {
3521
+ this.sideActionBarExpanded = !this.sideActionBarExpanded;
3522
+ };
3523
+ this._toggleSidePanel = (e) => {
3513
3524
  if (!e.target) {
3514
3525
  return;
3515
3526
  }
@@ -3518,7 +3529,7 @@ const ArcgisArcadeEditor = class {
3518
3529
  this.openedSidePanel = panelName === this.openedSidePanel ? "none" : panelName;
3519
3530
  if (this.openedSidePanel === "none") {
3520
3531
  // Reset focus on the code editor if no panel displayed
3521
- await this._codeEditorElt?.setFocus();
3532
+ this._codeEditorElt?.setFocus().catch(console.error);
3522
3533
  }
3523
3534
  };
3524
3535
  this._openArcadeHelp = () => void window.open(DevelopersWebSitePath, "Arcade Help");
@@ -3526,8 +3537,8 @@ const ArcgisArcadeEditor = class {
3526
3537
  e.stopPropagation();
3527
3538
  this.scriptChange.emit(e.detail);
3528
3539
  };
3529
- this._insertAsSnippet = async (e) => await this._codeEditorElt?.insertSnippet(e.detail);
3530
- this._insertAsText = async (e) => await this._codeEditorElt?.insertText(e.detail);
3540
+ this._insertAsSnippet = (e) => void this._codeEditorElt?.insertSnippet(e.detail).catch(console.error);
3541
+ this._insertAsText = (e) => void this._codeEditorElt?.insertText(e.detail).catch(console.error);
3531
3542
  this._onResultPanelChange = (e) => void (this._resultPanel = e.detail);
3532
3543
  this._onExecutionPanelClose = () => void (this._showExecutionPanel = false);
3533
3544
  this._lang = "";
@@ -3674,7 +3685,7 @@ const ArcgisArcadeEditor = class {
3674
3685
  await this._codeEditorElt?.setFocus();
3675
3686
  }
3676
3687
  disconnectedCallback() {
3677
- H(this);
3688
+ q(this);
3678
3689
  arcadeDefaults.disposeApiContextForModel(this._modelId);
3679
3690
  arcadeDefaults.disposeEditorProfileForModel(this._modelId);
3680
3691
  while (this._disposables.length) {
@@ -3772,11 +3783,11 @@ const ArcgisArcadeEditor = class {
3772
3783
  }
3773
3784
  switch (this.openedSidePanel) {
3774
3785
  case "api":
3775
- return (h("arcgis-arcade-api", { class: "side-panel flex-panel border-inline-start", modelId: this._modelId, hideDocumentationActions: this.hideDocumentationActions, onItemSelected: void this._insertAsSnippet, onClose: void this._toggleSidePanel, "data-panel-name": "none" }));
3786
+ return (h("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" }));
3776
3787
  case "variables":
3777
- return (h("arcgis-arcade-variables", { class: "side-panel flex-panel border-inline-start", loading: this._preparingProfile, modelId: this._modelId, onItemSelected: void this._insertAsText, onClose: void this._toggleSidePanel, "data-panel-name": "none" }));
3788
+ return (h("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" }));
3778
3789
  case "suggestions":
3779
- return (h("arcgis-arcade-suggestions", { class: "side-panel flex-panel border-inline-start", suggestions: this.suggestions, onItemSelected: void this._insertAsText, onClose: void this._toggleSidePanel, "data-panel-name": "none" }));
3790
+ return (h("arcgis-arcade-suggestions", { class: "side-panel flex-panel border-inline-start", suggestions: this.suggestions, onItemSelected: this._insertAsText, onClose: this._toggleSidePanel, "data-panel-name": "none" }));
3780
3791
  default:
3781
3792
  return null;
3782
3793
  }
@@ -3804,61 +3815,6 @@ const ArcgisArcadeEditor = class {
3804
3815
  };
3805
3816
  ArcgisArcadeEditor.style = arcadeEditorCss;
3806
3817
 
3807
- const indentSpecs = { char: " ", size: 2 };
3808
- const indentType = new Array(indentSpecs.size + 1).join(indentSpecs.char);
3809
- function createPushFunc(p) {
3810
- return (substring) => `\\${p.push(substring)}\\`;
3811
- }
3812
- function createPopFunc(p) {
3813
- return (_, offset) => p[offset - 1] ?? "";
3814
- }
3815
- function indent(index, indentType) {
3816
- return new Array(index + 1).join(indentType);
3817
- }
3818
- function jsonFormat(json) {
3819
- // Convert to string and extract backslashes and strings
3820
- const p = [];
3821
- const pushFunc = createPushFunc(p);
3822
- const jsonString = JSON.stringify(json)
3823
- .replace(/\\./gu, pushFunc)
3824
- .replace(/(".*?"|'.*?')/gu, pushFunc)
3825
- .replace(/\s+/u, "");
3826
- // Indent and insert newlines
3827
- let indentIndex = 0;
3828
- let out = "";
3829
- for (let i = 0; i < jsonString.length; i++) {
3830
- const c = jsonString.charAt(i);
3831
- switch (c) {
3832
- case "{":
3833
- case "[":
3834
- indentIndex += 1;
3835
- out += `${c}\n${indent(indentIndex, indentType)}`;
3836
- break;
3837
- case "}":
3838
- case "]":
3839
- indentIndex -= 1;
3840
- out += `\n${indent(indentIndex, indentType)}${c}`;
3841
- break;
3842
- case ",":
3843
- out += `,\n${indent(indentIndex, indentType)}`;
3844
- break;
3845
- case ":":
3846
- out += ": ";
3847
- break;
3848
- default:
3849
- out += c;
3850
- break;
3851
- }
3852
- }
3853
- // Strip whitespace from numeric arrays and put backslashes
3854
- // and strings back in
3855
- const popFunc = createPopFunc(p);
3856
- return out
3857
- .replace(/\[[\d,\s]+?\]/gu, (m) => m.replace(/\s/gu, ""))
3858
- .replace(/\\(\d+)\\/gu, popFunc) // strings
3859
- .replace(/\\(\d+)\\/gu, popFunc); // backslashes in strings
3860
- }
3861
-
3862
3818
  const arcadeResultsCss = ":host{display:flex;flex-direction:column;width:100%;background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-2)}:host .flex-adjustable{flex:1 1 auto;overflow:hidden}:host .flex-row{display:flex;flex-direction:row;overflow:hidden}:host .flex-column{display:flex;flex-direction:column;overflow:hidden}:host .y-scrollable-container{overflow-y:auto;block-size:100%;background-color:var(--calcite-color-foreground-1)}:host header{border-bottom:1px solid var(--calcite-color-border-3);flex:0 0 auto}:host .ltr-container{direction:ltr}:host calcite-action-bar calcite-action-group{padding-inline-end:var(--calcite-spacing-half)}:host calcite-action-bar calcite-action-group calcite-action{padding-inline-end:var(--calcite-spacing-half)}:host calcite-action-bar calcite-action-group calcite-action:not(:first-child){padding-inline-start:var(--calcite-spacing-half)}:host calcite-action-bar calcite-action-group:last-child{border-inline-end-width:0px}:host calcite-action-bar calcite-action-group:not(:first-child){padding-inline-start:var(--calcite-spacing-half)}:host .notice-container{margin:var(--calcite-spacing-quarter);padding:var(--calcite-spacing-half);background-color:var(--calcite-color-foreground-1)}:host .color-info{color:var(--calcite-color-status-info)}:host .color-error{color:var(--calcite-color-status-danger)}:host .color-success{color:var(--calcite-color-status-success)}:host [class*=result-value-]{font-size:var(--calcite-font-size--2);line-height:1.25rem;background-color:var(--calcite-color-foreground-1);margin:var(--calcite-spacing-three-quarter)}:host .console-logs-container{background-color:var(--calcite-color-foreground-1);padding:0 var(--calcite-spacing-three-quarter);font-family:var(--calcite-code-family);font-size:var(--calcite-font-size--2);font-weight:var(--calcite-font-weight-normal)}:host .result-value-table table{display:block;max-width:fit-content;overflow-x:auto;border-spacing:0;border-collapse:collapse;text-align:start;white-space:nowrap}:host .result-value-table table thead{background-color:var(--calcite-color-foreground-2)}:host .result-value-table table tr{border-top:1px solid var(--calcite-color-border-3);border-bottom:1px solid var(--calcite-color-border-3)}:host .result-value-table table th,:host .result-value-table table td{border-inline-start:1px solid var(--calcite-color-border-3);border-inline-end:1px solid var(--calcite-color-border-3);text-align:start;padding:var(--calcite-spacing-quarter)}:host .result-value-table table th .string-value,:host .result-value-table table td .string-value{white-space:pre}:host .result-value-table table th{font-weight:var(--calcite-font-weight-medium)}:host .tree-item-label,:host .number-value,:host .string-value,:host .boolean-value{font-family:var(--calcite-code-family)}:host .tree-item-label,:host .value-type{color:var(--calcite-color-text-2);font-weight:var(--calcite-font-weight-normal)}:host .dictionary-property{color:var(--arcgis-arcade-editor-identifier)}:host .number-value{color:var(--arcgis-arcade-editor-number)}:host .string-value{color:var(--arcgis-arcade-editor-string);white-space:pre-wrap}:host .constant-value{color:var(--arcgis-arcade-editor-constant)}:host .date-value{color:var(--arcgis-arcade-editor-date)}";
3863
3819
 
3864
3820
  //#region Specialized Constants
@@ -3880,10 +3836,10 @@ function renderDictionaryProperty(key) {
3880
3836
  return (h(Fragment, null, h("span", { class: "dictionary-property" }, key), h("span", null, ":\u00A0")));
3881
3837
  }
3882
3838
  function renderDictionaryAsJsonTree(value, subtree = false) {
3883
- return (h("calcite-tree", { slot: subtree ? "children" : undefined, ...treeProps }, h("calcite-tree-item", { class: "string-value" }, jsonFormat(value.castAsJson()))));
3839
+ return (h("calcite-tree", { slot: subtree ? "children" : undefined, ...treeProps }, h("calcite-tree-item", { class: "string-value" }, JSON.stringify(value.castAsJson(), undefined, 2))));
3884
3840
  }
3885
3841
  function renderGeometryTree(value, subtree = false) {
3886
- return (h("calcite-tree", { slot: subtree ? "children" : undefined, ...treeProps }, h("calcite-tree-item", null, h("div", { class: "tree-item-label" }, renderDictionaryProperty("type"), value.type)), h("calcite-tree-item", null, h("div", { class: "tree-item-label" }, renderDictionaryProperty("value"), h("span", { class: "string-value" }, jsonFormat(value.toJSON()))))));
3842
+ return (h("calcite-tree", { slot: subtree ? "children" : undefined, ...treeProps }, h("calcite-tree-item", null, h("div", { class: "tree-item-label" }, renderDictionaryProperty("type"), value.type)), h("calcite-tree-item", null, h("div", { class: "tree-item-label" }, renderDictionaryProperty("value"), h("span", { class: "string-value" }, JSON.stringify(value, undefined, 2))))));
3887
3843
  }
3888
3844
  function renderSimpleValue(arcadeResult) {
3889
3845
  switch (arcadeResult.type) {
@@ -3891,7 +3847,7 @@ function renderSimpleValue(arcadeResult) {
3891
3847
  case "null":
3892
3848
  return h("span", { class: "constant-value" }, arcadeResult.type);
3893
3849
  case "text":
3894
- return h("span", { class: "string-value" }, Q(arcadeResult.value));
3850
+ return h("span", { class: "string-value" }, D(arcadeResult.value));
3895
3851
  case "number":
3896
3852
  return h("span", { class: "number-value" }, arcadeResult.value.toString());
3897
3853
  case "boolean":
@@ -3899,9 +3855,9 @@ function renderSimpleValue(arcadeResult) {
3899
3855
  case "date":
3900
3856
  return h("span", { class: "date-value" }, formatArcadeResultDate(arcadeResult));
3901
3857
  case "dateOnly":
3902
- return h("span", { class: "string-value" }, Q(formatArcadeResultDateOnly(arcadeResult)));
3858
+ return h("span", { class: "string-value" }, D(formatArcadeResultDateOnly(arcadeResult)));
3903
3859
  case "time":
3904
- return h("span", { class: "string-value" }, Q(formatArcadeResultTimeOnly(arcadeResult)));
3860
+ return h("span", { class: "string-value" }, D(formatArcadeResultTimeOnly(arcadeResult)));
3905
3861
  default:
3906
3862
  return null;
3907
3863
  }
@@ -3948,7 +3904,7 @@ const ArcgisArcadeResults = class {
3948
3904
  await B(this, getAssetPath("./assets"));
3949
3905
  }
3950
3906
  disconnectedCallback() {
3951
- H(this);
3907
+ q(this);
3952
3908
  }
3953
3909
  // #endregion
3954
3910
  //#region Private Methods
@@ -3975,18 +3931,18 @@ const ArcgisArcadeResults = class {
3975
3931
  return h("calcite-loader", { scale: "s", type: "indeterminate", label: "" });
3976
3932
  }
3977
3933
  const iconClass = this.result?.type === "error" ? "color-error" : "color-success";
3978
- return (h("calcite-list", null, this.result ? (h(Fragment, null, h("calcite-list-item", { label: K(this._t9nStrings?.lastexecutionformat, {
3934
+ return (h("calcite-list", null, this.result ? (h(Fragment, null, h("calcite-list-item", { label: Z(this._t9nStrings?.lastexecutionformat, {
3979
3935
  timeStamp: new Intl.DateTimeFormat(this._t9nLocale, {
3980
3936
  dateStyle: "medium",
3981
3937
  timeStyle: "medium"
3982
3938
  }).format(this.result.timeStamp)
3983
- }) }, h("calcite-icon", { slot: "content-start", icon: "information", scale: "s", class: iconClass })), h("calcite-list-item", { label: K(this._t9nStrings?.compilationtimeformat, {
3939
+ }) }, h("calcite-icon", { slot: "content-start", icon: "information", scale: "s", class: iconClass })), h("calcite-list-item", { label: Z(this._t9nStrings?.compilationtimeformat, {
3984
3940
  time: new Intl.NumberFormat(this._t9nLocale, {
3985
3941
  style: "unit",
3986
3942
  unit: "millisecond",
3987
3943
  maximumFractionDigits: 2
3988
3944
  }).format(this.result.compilationTime ?? 0)
3989
- }) }, h("calcite-icon", { slot: "content-start", icon: "information", scale: "s", class: iconClass })), h("calcite-list-item", { label: K(this._t9nStrings?.executiontimeformat, {
3945
+ }) }, h("calcite-icon", { slot: "content-start", icon: "information", scale: "s", class: iconClass })), h("calcite-list-item", { label: Z(this._t9nStrings?.executiontimeformat, {
3990
3946
  time: new Intl.NumberFormat(this._t9nLocale, {
3991
3947
  style: "unit",
3992
3948
  unit: "millisecond",
@@ -4003,7 +3959,7 @@ const ArcgisArcadeResults = class {
4003
3959
  }
4004
3960
  switch (this.result?.type) {
4005
3961
  case "error":
4006
- return (h("div", { class: "result-value-simple flex-adjustable" }, K(this._t9nStrings?.executionerrorformat, {
3962
+ return (h("div", { class: "result-value-simple flex-adjustable" }, Z(this._t9nStrings?.executionerrorformat, {
4007
3963
  message: this.result.value
4008
3964
  })));
4009
3965
  case "null":
@@ -4040,7 +3996,7 @@ const ArcgisArcadeResults = class {
4040
3996
  renderArrayHeader(arcadeResult) {
4041
3997
  const items = arcadeResult.value ?? [];
4042
3998
  const leftoverCount = Math.max(items.length - MaxArrayItems, 0);
4043
- return (h(Fragment, null, h("span", null, `${arcadeResult.type}(${items.length ?? 0})`), leftoverCount > 0 ? (h("span", null, "\u00A0", K(this._t9nStrings?.showingfirstitemsformat, {
3999
+ return (h(Fragment, null, h("span", null, `${arcadeResult.type}(${items.length ?? 0})`), leftoverCount > 0 ? (h("span", null, "\u00A0", Z(this._t9nStrings?.showingfirstitemsformat, {
4044
4000
  count: MaxArrayItems.toString()
4045
4001
  }))) : null));
4046
4002
  }
@@ -4086,7 +4042,7 @@ const ArcgisArcadeResults = class {
4086
4042
  }
4087
4043
  }
4088
4044
  renderFeatureSetLabel(arcadeResult) {
4089
- return (h("div", { class: "value-type" }, h("span", null, arcadeResult.type, ":"), arcadeResult.features.length >= BatchSize ? (h("span", null, "\u00A0", K(this._t9nStrings?.showingfirstitemsformat, {
4045
+ return (h("div", { class: "value-type" }, h("span", null, arcadeResult.type, ":"), arcadeResult.features.length >= BatchSize ? (h("span", null, "\u00A0", Z(this._t9nStrings?.showingfirstitemsformat, {
4090
4046
  count: BatchSize.toString()
4091
4047
  }))) : null));
4092
4048
  }
@@ -4115,10 +4071,10 @@ const ArcgisArcadeSuggestions = class {
4115
4071
  registerInstance(this, hostRef);
4116
4072
  this.close = createEvent(this, "close", 3);
4117
4073
  this.itemSelected = createEvent(this, "itemSelected", 3);
4118
- // @ts-expect-error
4119
- this._updateFilterValue = (e) => (this._filterValue = e.target?.value ?? "");
4074
+ this._updateFilterValue = (e) => {
4075
+ this._filterValue = e.target?.value ?? "";
4076
+ };
4120
4077
  this._emitItemSelected = (e) => {
4121
- // @ts-expect-error
4122
4078
  const item = e.target?.["data-item"];
4123
4079
  if (!item) {
4124
4080
  return;
@@ -4130,7 +4086,6 @@ const ArcgisArcadeSuggestions = class {
4130
4086
  }
4131
4087
  };
4132
4088
  this._showSuggestionDetail = (e) => {
4133
- // @ts-expect-error
4134
4089
  const item = e.target?.["data-item"];
4135
4090
  if (!item) {
4136
4091
  return;
@@ -4138,8 +4093,12 @@ const ArcgisArcadeSuggestions = class {
4138
4093
  e.stopPropagation();
4139
4094
  this._selectedSuggestion = item;
4140
4095
  };
4141
- this._emitClose = () => this.close.emit();
4142
- this._beforeBack = async () => (this._selectedSuggestion = undefined);
4096
+ this._emitClose = () => {
4097
+ this.close.emit();
4098
+ };
4099
+ this._beforeBack = async () => {
4100
+ this._selectedSuggestion = undefined;
4101
+ };
4143
4102
  this._lang = "";
4144
4103
  this._t9nLocale = "";
4145
4104
  this._t9nStrings = undefined;
@@ -4161,7 +4120,7 @@ const ArcgisArcadeSuggestions = class {
4161
4120
  disconnectedCallback() {
4162
4121
  this._flowObserver?.disconnect();
4163
4122
  this._themeChangedListner?.dispose();
4164
- H(this);
4123
+ q(this);
4165
4124
  }
4166
4125
  // #endregion
4167
4126
  //#region Private Methods
@@ -4179,7 +4138,7 @@ const ArcgisArcadeSuggestions = class {
4179
4138
  // When switching between flow the same reference is reused
4180
4139
  this._flowObserver = new MutationObserver(() => {
4181
4140
  // Get the last panel and try to set focus on the input element
4182
- F(ref.querySelector("calcite-flow-item:last-child"), "calcite-input");
4141
+ W(ref.querySelector("calcite-flow-item:last-child"), "calcite-input");
4183
4142
  });
4184
4143
  this._flowObserver.observe(ref, { attributes: true, attributeFilter: ["id"], childList: true });
4185
4144
  }
@@ -4209,7 +4168,7 @@ const ArcgisArcadeSuggestions = class {
4209
4168
  return (h("calcite-flow-item", { heading: this._t9nStrings?.suggestions, closable: true, onCalciteFlowItemClose: this._emitClose, beforeBack: this._beforeBack }, h("calcite-button", { width: "half", slot: "footer", appearance: "outline", kind: "brand", "icon-start": "code", scale: "s", onClick: this._emitItemSelected, ref: (e) => void e?.setFocus(), "data-item": suggestion }, this._t9nStrings?.insert), h("calcite-block", { open: true, heading: suggestion.label, description: suggestion.description }, h("div", { innerHTML: convertMarkdownString(suggestion.documentation) }), h("pre", null, h("code", { ref: (e) => e === undefined ? undefined : void colorizeCodeElement(e, suggestion.code).catch(console.error) })))));
4210
4169
  }
4211
4170
  render() {
4212
- return (h(Host, null, h("style", null, this._colorizeStyle), h("calcite-flow", { ref: (ref) => this.flowFocusHandler(ref) }, h("calcite-flow-item", { heading: this._t9nStrings?.suggestions, closable: true, onCalciteFlowItemClose: this._emitClose }, h(StickyFilterInput, { filterValue: this._filterValue, onCalciteInputInput: this._updateFilterValue }), h("calcite-list", null, this.renderSuggestionGroups())), this.renderSuggestionFlowItem())));
4171
+ return (h(Host, null, h("style", null, this._colorizeStyle), h("calcite-flow", { ref: (ref) => this.flowFocusHandler(ref) }, h("calcite-flow-item", { heading: this._t9nStrings?.suggestions, closable: true, onCalciteFlowItemClose: this._emitClose }, h("calcite-input", { value: this._filterValue, icon: "magnifying-glass", clearable: true, onCalciteInputInput: this._updateFilterValue, class: "sticky", scale: "m" }), h("calcite-list", null, this.renderSuggestionGroups())), this.renderSuggestionFlowItem())));
4213
4172
  }
4214
4173
  static get assetsDirs() { return ["assets"]; }
4215
4174
  get _hostElement() { return getElement(this); }
@@ -4231,13 +4190,19 @@ const ArcgisArcadeVariables = class {
4231
4190
  registerInstance(this, hostRef);
4232
4191
  this.close = createEvent(this, "close", 3);
4233
4192
  this.itemSelected = createEvent(this, "itemSelected", 3);
4234
- this._updateFilterValue = (e) => (this._filterValue = e.target.value);
4193
+ this._updateFilterValue = (e) => {
4194
+ this._filterValue = e.target.value;
4195
+ };
4235
4196
  this._beforeBack = async () => {
4236
4197
  this.removeLastPanelRenderer();
4237
4198
  this._filterValue = "";
4238
4199
  };
4239
- this._emitClose = () => void this.close.emit();
4240
- this._backToTop = () => void (this._flowItemRenderers = []);
4200
+ this._emitClose = () => {
4201
+ this.close.emit();
4202
+ };
4203
+ this._backToTop = () => {
4204
+ this._flowItemRenderers = [];
4205
+ };
4241
4206
  this._emitItemSelected = (e) => {
4242
4207
  const variable = e.target?.["data-item"];
4243
4208
  if (!variable || variable.nonInteractive) {
@@ -4275,7 +4240,7 @@ const ArcgisArcadeVariables = class {
4275
4240
  await B(this, getAssetPath("./assets"));
4276
4241
  }
4277
4242
  disconnectedCallback() {
4278
- H(this);
4243
+ q(this);
4279
4244
  this._flowObserver?.disconnect();
4280
4245
  }
4281
4246
  // #endregion
@@ -4300,7 +4265,7 @@ const ArcgisArcadeVariables = class {
4300
4265
  // When switching between flow the same reference is reused
4301
4266
  this._flowObserver = new MutationObserver(() => {
4302
4267
  // Get the last panel and try to set focus on the input element
4303
- F(ref.querySelector("calcite-flow-item:last-child"), "calcite-input");
4268
+ W(ref.querySelector("calcite-flow-item:last-child"), "calcite-input");
4304
4269
  });
4305
4270
  this._flowObserver.observe(ref, { attributes: true, attributeFilter: ["id"], childList: true });
4306
4271
  }
@@ -4329,12 +4294,12 @@ const ArcgisArcadeVariables = class {
4329
4294
  });
4330
4295
  loading = true;
4331
4296
  }
4332
- return (h("calcite-flow-item", { heading: this._t9nStrings?.profilevariables, description: collection.breadcrumb, beforeBack: this._beforeBack, closable: true, onCalciteFlowItemClose: this._emitClose }, h("calcite-action", { slot: "header-actions-end", text: this._t9nStrings?.backtotop ?? "Back to top", scale: "m", hidden: topPanel, icon: "chevrons-left", iconFlipRtl: true, onClick: this._backToTop }), h(StickyFilterInput, { filterValue: this._filterValue, onCalciteInputInput: this._updateFilterValue }), loading ? (h("calcite-loader", { scale: "s", type: "indeterminate", label: this._t9nStrings?.loading ?? "Loading" })) : (h("calcite-list", null, this.renderEditorVariables(collection)))));
4297
+ return (h("calcite-flow-item", { heading: this._t9nStrings?.profilevariables, description: collection.breadcrumb, beforeBack: this._beforeBack, closable: true, onCalciteFlowItemClose: this._emitClose }, h("calcite-action", { slot: "header-actions-end", text: this._t9nStrings?.backtotop ?? "Back to top", scale: "m", hidden: topPanel, icon: "chevrons-left", iconFlipRtl: true, onClick: this._backToTop }), h("calcite-input", { value: this._filterValue, icon: "magnifying-glass", clearable: true, onCalciteInputInput: this._updateFilterValue, class: "sticky", scale: "m" }), loading ? (h("calcite-loader", { scale: "s", type: "indeterminate", label: this._t9nStrings?.loading ?? "Loading" })) : (h("calcite-list", null, this.renderEditorVariables(collection)))));
4333
4298
  };
4334
4299
  }
4335
4300
  renderEditorVariables(collection) {
4336
4301
  // Filter the variables. Skip group, we will filter the children later on.
4337
- const filterExpression = D(this._filterValue);
4302
+ const filterExpression = K(this._filterValue);
4338
4303
  const filteredVariables = collection.variables.filter((variable) => variable.passFilter(filterExpression));
4339
4304
  if (!filteredVariables.length) {
4340
4305
  return h("div", { class: "notice-container" }, this._t9nStrings?.noitems ?? "No item");
@@ -1,10 +1,10 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  * See https://js.arcgis.com/4.29/esri/copyright.txt for details.
4
- * v4.29.0-beta.113
4
+ * v4.29.0-beta.115
5
5
  */
6
- import { p as promiseResolve, b as bootstrapLazy } from './index-751e780b.js';
7
- export { s as setNonce } from './index-751e780b.js';
6
+ import { p as promiseResolve, b as bootstrapLazy } from './index-17ee3129.js';
7
+ export { s as setNonce } from './index-17ee3129.js';
8
8
 
9
9
  /*
10
10
  Stencil Client Patch Browser v4.10.0 | MIT Licensed | https://stenciljs.com
@@ -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.29/esri/copyright.txt for details.
4
- * v4.29.0-beta.113
4
+ * v4.29.0-beta.115
5
5
  */
6
6
  /*!-----------------------------------------------------------------------------
7
7
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,10 +1,10 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  * See https://js.arcgis.com/4.29/esri/copyright.txt for details.
4
- * v4.29.0-beta.113
4
+ * v4.29.0-beta.115
5
5
  */
6
- import { r as monaco_editor_core_star } from './arcade-defaults-1e50716f.js';
7
- import './index-751e780b.js';
6
+ import { t as monaco_editor_core_star } from './arcade-defaults-341d3ba2.js';
7
+ import './index-17ee3129.js';
8
8
 
9
9
  /*!-----------------------------------------------------------------------------
10
10
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,10 +1,10 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  * See https://js.arcgis.com/4.29/esri/copyright.txt for details.
4
- * v4.29.0-beta.113
4
+ * v4.29.0-beta.115
5
5
  */
6
- import { r as monaco_editor_core_star } from './arcade-defaults-1e50716f.js';
7
- import './index-751e780b.js';
6
+ import { t as monaco_editor_core_star } from './arcade-defaults-341d3ba2.js';
7
+ import './index-17ee3129.js';
8
8
 
9
9
  /*!-----------------------------------------------------------------------------
10
10
  * Copyright (c) Microsoft Corporation. All rights reserved.