@arcgis/coding-components 4.29.0-beta.93 → 4.29.0-beta.94

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 (160) hide show
  1. package/dist/arcgis-coding-components/arcgis-coding-components.esm.js +6 -1
  2. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ar.json +466 -26
  3. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.bg.json +466 -26
  4. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.bs.json +466 -26
  5. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ca.json +466 -26
  6. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.cs.json +466 -26
  7. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.da.json +466 -26
  8. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.de.json +466 -26
  9. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.el.json +466 -26
  10. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.en.json +466 -26
  11. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.es.json +466 -26
  12. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.et.json +466 -26
  13. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.fi.json +466 -26
  14. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.fr.json +466 -26
  15. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.he.json +466 -26
  16. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.hr.json +466 -26
  17. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.hu.json +466 -26
  18. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.id.json +466 -26
  19. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.it.json +466 -26
  20. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ja.json +466 -26
  21. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ko.json +466 -26
  22. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.lt.json +466 -26
  23. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.lv.json +466 -26
  24. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.nb.json +466 -26
  25. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.nl.json +466 -26
  26. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.pl.json +466 -26
  27. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.pt-BR.json +466 -26
  28. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.pt-PT.json +466 -26
  29. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ro.json +466 -26
  30. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ru.json +466 -26
  31. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sk.json +466 -26
  32. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sl.json +466 -26
  33. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sr.json +466 -26
  34. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sv.json +466 -26
  35. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.th.json +466 -26
  36. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.tr.json +466 -26
  37. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.uk.json +466 -26
  38. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.vi.json +466 -26
  39. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.zh-CN.json +466 -26
  40. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.zh-HK.json +466 -26
  41. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.zh-TW.json +466 -26
  42. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ar.json +9 -2
  43. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.bg.json +9 -2
  44. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.bs.json +9 -2
  45. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ca.json +9 -2
  46. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.cs.json +9 -2
  47. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.da.json +9 -2
  48. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.de.json +9 -2
  49. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.el.json +9 -2
  50. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.en.json +9 -2
  51. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.es.json +9 -2
  52. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.et.json +9 -2
  53. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.fi.json +9 -2
  54. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.fr.json +9 -2
  55. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.he.json +9 -2
  56. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.hr.json +9 -2
  57. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.hu.json +9 -2
  58. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.id.json +9 -2
  59. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.it.json +9 -2
  60. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ja.json +9 -2
  61. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ko.json +9 -2
  62. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.lt.json +9 -2
  63. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.lv.json +9 -2
  64. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.nb.json +9 -2
  65. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.nl.json +9 -2
  66. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.pl.json +9 -2
  67. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.pt-BR.json +9 -2
  68. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.pt-PT.json +9 -2
  69. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ro.json +9 -2
  70. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.ru.json +9 -2
  71. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.sk.json +9 -2
  72. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.sl.json +9 -2
  73. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.sr.json +9 -2
  74. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.sv.json +9 -2
  75. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.th.json +9 -2
  76. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.tr.json +9 -2
  77. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.uk.json +9 -2
  78. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.vi.json +9 -2
  79. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.zh-CN.json +9 -2
  80. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.zh-HK.json +9 -2
  81. package/dist/arcgis-coding-components/assets/arcade-language/profiles/arcade-profiles.t9n.zh-TW.json +9 -2
  82. package/dist/arcgis-coding-components/assets/code-editor/arcade.worker.js +1 -1
  83. package/dist/arcgis-coding-components/index.esm.js +6 -1
  84. package/dist/arcgis-coding-components/{p-a1a4f5fc.js → p-06b7a85d.js} +6 -1
  85. package/dist/arcgis-coding-components/{p-4c959bce.js → p-22837217.js} +15 -10
  86. package/dist/arcgis-coding-components/{p-ccafed7f.js → p-2b1aca7c.js} +5 -0
  87. package/dist/arcgis-coding-components/{p-75ae922a.js → p-4c4149bc.js} +6 -1
  88. package/dist/arcgis-coding-components/{p-79707082.js → p-5fb23065.js} +6 -1
  89. package/dist/arcgis-coding-components/{p-009eaccf.js → p-8f020f20.js} +5 -0
  90. package/dist/arcgis-coding-components/p-a051ec0a.entry.js +6 -0
  91. package/dist/arcgis-coding-components/{p-cdfe57a1.js → p-a17571b6.js} +6 -1
  92. package/dist/arcgis-coding-components/{p-1d062d47.js → p-a6429039.js} +6 -1
  93. package/dist/arcgis-coding-components/{p-590b795b.js → p-c2344fd6.js} +6 -1
  94. package/dist/arcgis-coding-components/{p-ca7059d4.js → p-d37fa51c.js} +6 -1
  95. package/dist/arcgis-coding-components/p-db60fe10.js +6 -0
  96. package/dist/cjs/{arcade-defaults-7faf4d5f.js → arcade-defaults-042fbece.js} +487 -362
  97. package/dist/cjs/{arcade-mode-26b8bc7a.js → arcade-mode-b495cb6f.js} +24 -20
  98. package/dist/cjs/arcgis-arcade-api_6.cjs.entry.js +176 -112
  99. package/dist/cjs/arcgis-coding-components.cjs.js +6 -1
  100. package/dist/cjs/{css-eb1c8e5c.js → css-19093b80.js} +5 -0
  101. package/dist/cjs/{cssMode-90f06d02.js → cssMode-ce70c012.js} +7 -2
  102. package/dist/cjs/{html-1aa8e458.js → html-04cbd899.js} +7 -2
  103. package/dist/cjs/{htmlMode-d3283acc.js → htmlMode-5e973c6f.js} +7 -2
  104. package/dist/cjs/{index-aaf14a3e.js → index-30445be8.js} +5 -0
  105. package/dist/cjs/index.cjs.js +7 -2
  106. package/dist/cjs/{javascript-7a4d9023.js → javascript-8717f18b.js} +8 -3
  107. package/dist/cjs/{jsonMode-73be73dc.js → jsonMode-b93b2667.js} +7 -2
  108. package/dist/cjs/loader.cjs.js +6 -1
  109. package/dist/cjs/{tsMode-95a699e0.js → tsMode-73e2fe2f.js} +7 -2
  110. package/dist/cjs/{typescript-588df930.js → typescript-a75c0ef4.js} +7 -2
  111. package/dist/components/arcade-api.js +11 -6
  112. package/dist/components/arcade-contribution.js +16 -6
  113. package/dist/components/arcade-defaults.js +243 -118
  114. package/dist/components/arcade-mode.js +22 -18
  115. package/dist/components/arcade-results.js +137 -85
  116. package/dist/components/arcade-suggestions.js +9 -4
  117. package/dist/components/arcade-variables.js +10 -5
  118. package/dist/components/arcgis-arcade-api.js +5 -0
  119. package/dist/components/arcgis-arcade-editor.js +20 -8
  120. package/dist/components/arcgis-arcade-results.js +5 -0
  121. package/dist/components/arcgis-arcade-suggestions.js +5 -0
  122. package/dist/components/arcgis-arcade-variables.js +5 -0
  123. package/dist/components/arcgis-code-editor.js +5 -0
  124. package/dist/components/code-editor.js +9 -4
  125. package/dist/components/fields.js +5 -0
  126. package/dist/components/functional-components.js +5 -0
  127. package/dist/components/index.js +5 -0
  128. package/dist/components/index2.js +7 -2
  129. package/dist/components/markdown.js +5 -0
  130. package/dist/components/utilities.js +7 -2
  131. package/dist/esm/{arcade-defaults-0bc49d1c.js → arcade-defaults-106e7abf.js} +479 -354
  132. package/dist/esm/{arcade-mode-01365fb8.js → arcade-mode-a890a073.js} +24 -20
  133. package/dist/esm/arcgis-arcade-api_6.entry.js +176 -112
  134. package/dist/esm/arcgis-coding-components.js +7 -2
  135. package/dist/esm/{css-aade9167.js → css-5029659c.js} +5 -0
  136. package/dist/esm/{cssMode-edce5a89.js → cssMode-c3ebc40a.js} +7 -2
  137. package/dist/esm/{html-00b724af.js → html-13c9342a.js} +7 -2
  138. package/dist/esm/{htmlMode-ad3459b7.js → htmlMode-053279f0.js} +7 -2
  139. package/dist/esm/{index-3732acb8.js → index-c845e955.js} +5 -0
  140. package/dist/esm/index.js +7 -2
  141. package/dist/esm/{javascript-bdd52d83.js → javascript-c580af02.js} +8 -3
  142. package/dist/esm/{jsonMode-7b4c07fb.js → jsonMode-cd51566e.js} +7 -2
  143. package/dist/esm/loader.js +7 -2
  144. package/dist/esm/{tsMode-0bd06180.js → tsMode-c0164816.js} +7 -2
  145. package/dist/esm/{typescript-dfdad07a.js → typescript-7e6d57f4.js} +7 -2
  146. package/dist/loader/cdn.js +5 -1
  147. package/dist/loader/index.cjs.js +5 -1
  148. package/dist/loader/index.es2017.js +5 -1
  149. package/dist/loader/index.js +5 -1
  150. package/dist/types/components/arcade-editor/arcade-editor.d.ts +1 -1
  151. package/dist/types/components/arcade-results/arcade-results.d.ts +0 -5
  152. package/dist/types/components.d.ts +3 -3
  153. package/dist/types/utils/arcade-executor.d.ts +12 -4
  154. package/dist/types/utils/arcade-monaco/arcade.worker.d.ts +6 -4
  155. package/dist/types/utils/profile/editor-profile.d.ts +10 -5
  156. package/dist/types/utils/profile/types.d.ts +3 -3
  157. package/dist/types/utils/profile/utils.d.ts +4 -0
  158. package/package.json +10 -10
  159. package/dist/arcgis-coding-components/p-86772125.js +0 -1
  160. package/dist/arcgis-coding-components/p-ac769046.entry.js +0 -1
@@ -1,5 +1,10 @@
1
- import { h, r as registerInstance, c as createEvent, g as getAssetPath, H as Host, a as getElement, F as Fragment } from './index-3732acb8.js';
2
- import { g as generateTokensCSSForColorMap, e as editor, S as StandaloneServices, I as IStandaloneThemeService, c as createCommonjsModule, b as commonjsGlobal, n as ne, t as te, i as importRequest, l as languages, d as arcadeDefaults, W, U as Uri, B, j, f as filterCollection, G, h as importArcade, k as h$1, F, $, K as KeyCode, D, q, s as supportedFields, Q, R as Range, T, m as KeyMod } from './arcade-defaults-0bc49d1c.js';
1
+ /*!
2
+ * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
+ * See https://js.arcgis.com/4.29/esri/copyright.txt for details.
4
+ * v4.29.0-beta.94
5
+ */
6
+ import { h, r as registerInstance, c as createEvent, g as getAssetPath, H as Host, a as getElement, F as Fragment } from './index-c845e955.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, H, U as Uri, q, f as U, h as filterCollection, J, j as importArcade, k as h$1, z, O, K as KeyCode, m as I, D, n as supportedFields, G, R as Range, x, p as KeyMod } from './arcade-defaults-106e7abf.js';
3
8
 
4
9
  async function colorizeCode(code) {
5
10
  return await editor.colorize(code, "arcade", { tabSize: 2 });
@@ -2968,7 +2973,7 @@ function setupMonacoEnvironment(assetsPath) {
2968
2973
  break;
2969
2974
  }
2970
2975
  // If we have a relative path or we are on same orgin, we can use the default js implementation
2971
- if (!ne(url) || te(url, globalThis.location.href, true)) {
2976
+ if (!se(url) || oe(url, globalThis.location.href, true)) {
2972
2977
  return new Worker(url, { name: languageId });
2973
2978
  }
2974
2979
  // For cross orgin, we will load the worker code as a string and manufacture a blob
@@ -3015,7 +3020,7 @@ async function getArcadeWorker(uri) {
3015
3020
  * @returns mode for arcade
3016
3021
  */
3017
3022
  async function getMode() {
3018
- return await import('./arcade-mode-01365fb8.js');
3023
+ return await import('./arcade-mode-a890a073.js');
3019
3024
  }
3020
3025
  // Register the language in Monaco
3021
3026
  languages.register({
@@ -3025,13 +3030,18 @@ languages.register({
3025
3030
  mimetypes: ["application/arcade"]
3026
3031
  });
3027
3032
  // An event emitted when a language is first time needed
3028
- languages.onLanguage(arcadeDefaults.languageId, async () => {
3033
+ languages.onLanguage(arcadeDefaults.languageId, () => {
3029
3034
  // Setup the assets path on the arcadeDefaults
3030
3035
  arcadeDefaults.setLanguageOptions({ assetsPath: `${getAssetsPath() ?? "."}/arcade-language` });
3031
3036
  // Async import the language mode
3032
- const mode = await getMode();
3033
- // Setup the language mode
3034
- mode.setupMode(arcadeDefaults);
3037
+ getMode()
3038
+ .then((mode) => {
3039
+ // Setup the language mode
3040
+ mode.setupMode(arcadeDefaults);
3041
+ })
3042
+ .catch((err) => {
3043
+ throw err;
3044
+ });
3035
3045
  });
3036
3046
 
3037
3047
  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)}";
@@ -3094,7 +3104,7 @@ const ArcgisArcadeApi = class {
3094
3104
  async componentWillLoad() {
3095
3105
  this._colorizeStyle = generateColorizeStyles();
3096
3106
  this._themeChangedListner = onColorizeThemeChanged(() => (this._colorizeStyle = generateColorizeStyles()));
3097
- await W(this, getAssetPath("./assets"));
3107
+ await H(this, getAssetPath("./assets"));
3098
3108
  arcadeDefaults.onModelContextDidChange((key) => {
3099
3109
  if (!this.modelId || key !== Uri.parse(this.modelId).toString()) {
3100
3110
  return;
@@ -3104,7 +3114,7 @@ const ArcgisArcadeApi = class {
3104
3114
  this._updateApiLibrary();
3105
3115
  }
3106
3116
  disconnectedCallback() {
3107
- B(this);
3117
+ q(this);
3108
3118
  this._flowObserver?.disconnect();
3109
3119
  this._themeChangedListner?.dispose();
3110
3120
  }
@@ -3149,7 +3159,7 @@ const ArcgisArcadeApi = class {
3149
3159
  // When switching between flow the same reference is reused
3150
3160
  this._flowObserver = new MutationObserver(() => {
3151
3161
  // Get the last panel and try to set focus on the input element
3152
- j(ref.querySelector("calcite-flow-item:last-child"), "calcite-input");
3162
+ U(ref.querySelector("calcite-flow-item:last-child"), "calcite-input");
3153
3163
  });
3154
3164
  this._flowObserver.observe(ref, { attributes: true, attributeFilter: ["id"], childList: true });
3155
3165
  }
@@ -3160,14 +3170,14 @@ const ArcgisArcadeApi = class {
3160
3170
  if (!filteredApiItems.length) {
3161
3171
  return null;
3162
3172
  }
3163
- 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 }))))));
3173
+ return (h("calcite-list-item-group", { heading: category.title }, filteredApiItems.map((apiItem) => (h("calcite-list-item", { label: J(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 }))))));
3164
3174
  }
3165
3175
  renderApiItemFlowItem() {
3166
3176
  const apiItem = this._selectedApiItem;
3167
3177
  if (!apiItem) {
3168
3178
  return null;
3169
3179
  }
3170
- 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) => {
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: J(apiItem.completion.detail) }, h("div", { innerHTML: convertMarkdownString(apiItem.completion.documentation) }), apiItem.examples ? (h("div", { ref: (e) => {
3171
3181
  if (!e) {
3172
3182
  return;
3173
3183
  }
@@ -3190,46 +3200,89 @@ const MaxArrayItems = 100;
3190
3200
  const BatchSize = 100;
3191
3201
 
3192
3202
  function isArcadeFeatureSet(value) {
3193
- return value.declaredRootClass === "esri.arcade.featureset.support.FeatureSet";
3203
+ return (!!value &&
3204
+ typeof value === "object" &&
3205
+ "declaredRootClass" in value &&
3206
+ typeof value.declaredRootClass === "string" &&
3207
+ value.declaredRootClass === "esri.arcade.featureset.support.FeatureSet");
3194
3208
  }
3195
3209
  function isArcadeFeature(value) {
3196
- return value.arcadeDeclaredClass === "esri.arcade.Feature";
3210
+ return (!!value &&
3211
+ typeof value === "object" &&
3212
+ "arcadeDeclaredClass" in value &&
3213
+ typeof value.arcadeDeclaredClass === "string" &&
3214
+ value.arcadeDeclaredClass === "esri.arcade.Feature");
3197
3215
  }
3198
3216
  function isArcadeDictionary(value) {
3199
- return value.declaredClass === "esri.arcade.Dictionary";
3217
+ return (!!value &&
3218
+ typeof value === "object" &&
3219
+ "declaredClass" in value &&
3220
+ typeof value.declaredClass === "string" &&
3221
+ value.declaredClass === "esri.arcade.Dictionary");
3200
3222
  }
3201
3223
  function isGeometry(value) {
3202
- const declaredClass = value.declaredClass;
3203
- return typeof declaredClass === "string" && declaredClass.startsWith("esri.geometry.");
3224
+ return (!!value &&
3225
+ typeof value === "object" &&
3226
+ "declaredClass" in value &&
3227
+ typeof value.declaredClass === "string" &&
3228
+ value.declaredClass.startsWith("esri.geometry."));
3229
+ }
3230
+ function isKnowledgeGraph(value) {
3231
+ return (!!value &&
3232
+ typeof value === "object" &&
3233
+ "declaredClass" in value &&
3234
+ typeof value.declaredClass === "string" &&
3235
+ value.declaredClass.startsWith("esri.rest.knowledgeGraph.KnowledgeGraph"));
3204
3236
  }
3205
3237
  function isArcadePortal(value) {
3206
- const declaredClass = value.declaredClass;
3207
- return typeof declaredClass === "string" && declaredClass === "esri.arcade.Portal";
3238
+ return (!!value &&
3239
+ typeof value === "object" &&
3240
+ "declaredClass" in value &&
3241
+ typeof value.declaredClass === "string" &&
3242
+ value.declaredClass === "esri.arcade.Portal");
3208
3243
  }
3209
3244
  function isArcadeAttachment(value) {
3210
- const declaredClass = value.declaredClass;
3211
- return typeof declaredClass === "string" && declaredClass === "esri.arcade.Attachment";
3245
+ return (!!value &&
3246
+ typeof value === "object" &&
3247
+ "declaredClass" in value &&
3248
+ typeof value.declaredClass === "string" &&
3249
+ value.declaredClass === "esri.arcade.Attachment");
3212
3250
  }
3213
3251
  function isArcadeDate(value) {
3214
- const declaredRootClass = value.declaredRootClass;
3215
- return typeof declaredRootClass === "string" && declaredRootClass === "esri.arcade.arcadedate";
3252
+ return (!!value &&
3253
+ typeof value === "object" &&
3254
+ "declaredRootClass" in value &&
3255
+ typeof value.declaredRootClass === "string" &&
3256
+ value.declaredRootClass === "esri.arcade.arcadedate");
3216
3257
  }
3217
3258
  function isArcadeDateOnly(value) {
3218
- const declaredRootClass = value.declaredRootClass;
3219
- return typeof declaredRootClass === "string" && declaredRootClass === "esri.core.sql.dateonly";
3259
+ return (!!value &&
3260
+ typeof value === "object" &&
3261
+ "declaredRootClass" in value &&
3262
+ typeof value.declaredRootClass === "string" &&
3263
+ value.declaredRootClass === "esri.core.sql.dateonly");
3220
3264
  }
3221
3265
  function isArcadeTimeOnly(value) {
3222
- const declaredRootClass = value.declaredRootClass;
3223
- return typeof declaredRootClass === "string" && declaredRootClass === "esri.core.sql.timeonly";
3266
+ return (!!value &&
3267
+ typeof value === "object" &&
3268
+ "declaredRootClass" in value &&
3269
+ typeof value.declaredRootClass === "string" &&
3270
+ value.declaredRootClass === "esri.core.sql.timeonly");
3224
3271
  }
3225
3272
  function isArcadeImmutableArray(value) {
3226
- return (typeof value.length === "function" &&
3273
+ return (!!value &&
3274
+ typeof value === "object" &&
3275
+ "length" in value &&
3276
+ typeof value.length === "function" &&
3277
+ "get" in value &&
3227
3278
  typeof value.get === "function" &&
3279
+ "toArray" in value &&
3228
3280
  typeof value.toArray === "function" &&
3281
+ "_elements" in value &&
3229
3282
  Array.isArray(value._elements));
3230
3283
  }
3231
3284
  function valueToArcadeResult(value) {
3232
- if (value == null || value === undefined) {
3285
+ if (value === null || value === undefined) {
3233
3286
  return { type: "null" };
3234
3287
  }
3235
3288
  if (Array.isArray(value)) {
@@ -3280,6 +3333,9 @@ function valueToArcadeResult(value) {
3280
3333
  if (isGeometry(value)) {
3281
3334
  return { type: "geometry", value };
3282
3335
  }
3336
+ if (isKnowledgeGraph(value)) {
3337
+ return { type: "knowledgeGraph", value };
3338
+ }
3283
3339
  return { type: "unknown" };
3284
3340
  }
3285
3341
  function formatArcadeResultDate(dateObject, lang = "en") {
@@ -3306,9 +3362,6 @@ async function loadArcadeResult(result, timeZone = "system") {
3306
3362
  await result.value.load();
3307
3363
  // Create the first iterator
3308
3364
  result.iterator = result.value.iterator({ aborted: false });
3309
- if (result.iterator == null) {
3310
- return result;
3311
- }
3312
3365
  // Load the first batch of items
3313
3366
  result.features = (await result.iterator.nextBatchAsArcadeFeatures(BatchSize, timeZone)) ?? [];
3314
3367
  return result;
@@ -3337,7 +3390,7 @@ async function executeScript(editorProfile, script, testContext, console) {
3337
3390
  console
3338
3391
  };
3339
3392
  // Execute the script
3340
- const scriptOutput = await executor.executeAsync(profileVariableInstances ?? {}, executeContext);
3393
+ const scriptOutput = await executor.executeAsync(profileVariableInstances, executeContext);
3341
3394
  // Convert script output to arcade result object and load data if necessary
3342
3395
  const scriptResult = await loadArcadeResult(valueToArcadeResult(scriptOutput), timeZone);
3343
3396
  // Timestamp and measure cost
@@ -3404,6 +3457,7 @@ function setupArcadeTheme() {
3404
3457
  });
3405
3458
  });
3406
3459
  }
3460
+ const validKeys = ["comment", "keyword", "identifier", "string", "number", "constant"];
3407
3461
  function updateThemeColors(theme, colorRules) {
3408
3462
  if (colorRules === undefined) {
3409
3463
  setupArcadeTheme();
@@ -3411,8 +3465,14 @@ function updateThemeColors(theme, colorRules) {
3411
3465
  }
3412
3466
  const base = theme === "light" ? "vs" : "vs-dark";
3413
3467
  const rules = [];
3414
- ["comment", "keyword", "identifier", "string", "number", "constant"].forEach((key) => {
3415
- // @ts-expect-error
3468
+ Object.keys(colorRules).forEach((key) => {
3469
+ const foreground = colorRules[key];
3470
+ if (!foreground) {
3471
+ return;
3472
+ }
3473
+ rules.push({ token: `${key}.arc`, foreground });
3474
+ });
3475
+ validKeys.forEach((key) => {
3416
3476
  const foreground = colorRules[key];
3417
3477
  if (!foreground) {
3418
3478
  return;
@@ -3431,7 +3491,7 @@ const ArcgisArcadeEditor = class {
3431
3491
  this.scriptChange = createEvent(this, "scriptChange", 3);
3432
3492
  this.diagnosticsChange = createEvent(this, "diagnosticsChange", 3);
3433
3493
  this._componentReadyDefer = new h$1();
3434
- this._modelId = F();
3494
+ this._modelId = z();
3435
3495
  this._editorProfilePromise = Promise.resolve(undefined);
3436
3496
  this._disposables = [];
3437
3497
  this._executeScript = async () => {
@@ -3542,7 +3602,7 @@ const ArcgisArcadeEditor = class {
3542
3602
  */
3543
3603
  async getEditorInstance() {
3544
3604
  await this._componentReadyDefer.promise;
3545
- return await this._codeEditorElt?.getEditorInstance();
3605
+ return (await this._codeEditorElt?.getEditorInstance());
3546
3606
  }
3547
3607
  /**
3548
3608
  * Returns the Arcade result for the script for the provided test data.
@@ -3572,7 +3632,7 @@ const ArcgisArcadeEditor = class {
3572
3632
  * @internal
3573
3633
  */
3574
3634
  async updateThemeColors(colorRules) {
3575
- const theme = $(this._hostElement);
3635
+ const theme = O(this._hostElement);
3576
3636
  updateThemeColors(theme, colorRules);
3577
3637
  if (colorRules === undefined) {
3578
3638
  ["comment", "keyword", "identifier", "string", "number", "constant", "date"].forEach((key) => {
@@ -3601,7 +3661,7 @@ const ArcgisArcadeEditor = class {
3601
3661
  // Starts a locale observer. It will load the correct t9n strings for the component
3602
3662
  // when the locale changes. We also pass updateEditorProfile. It will be invoked the first
3603
3663
  // and on each locale change. The profile has to be refreshed on locale change as well.
3604
- await W(this, assetsPath, async () => await this._updateEditorProfile());
3664
+ await H(this, assetsPath, async () => await this._updateEditorProfile());
3605
3665
  }
3606
3666
  async componentDidLoad() {
3607
3667
  // Mark on component as ready.
@@ -3629,7 +3689,7 @@ const ArcgisArcadeEditor = class {
3629
3689
  await this._codeEditorElt?.setFocus();
3630
3690
  }
3631
3691
  disconnectedCallback() {
3632
- B(this);
3692
+ q(this);
3633
3693
  arcadeDefaults.disposeApiContextForModel(this._modelId);
3634
3694
  arcadeDefaults.disposeEditorProfileForModel(this._modelId);
3635
3695
  while (this._disposables.length) {
@@ -3742,7 +3802,7 @@ function createPushFunc(p) {
3742
3802
  return (substring) => `\\${p.push(substring)}\\`;
3743
3803
  }
3744
3804
  function createPopFunc(p) {
3745
- return (_, offset) => p[offset - 1];
3805
+ return (_, offset) => p[offset - 1] ?? "";
3746
3806
  }
3747
3807
  function indent(index, indentType) {
3748
3808
  return new Array(index + 1).join(indentType);
@@ -3806,6 +3866,50 @@ const expandableTreeItemProps = {
3806
3866
  item.expanded = !item.expanded;
3807
3867
  }
3808
3868
  };
3869
+ //#endregion
3870
+ //#region Helper Functions
3871
+ function renderDictionaryProperty(key) {
3872
+ return (h(Fragment, null, h("span", { class: "dictionary-property" }, key), h("span", null, ":\u00A0")));
3873
+ }
3874
+ function renderDictionaryAsJsonTree(value, subtree = false) {
3875
+ return (h("calcite-tree", { slot: subtree ? "children" : undefined, ...treeProps }, h("calcite-tree-item", { class: "string-value" }, jsonFormat(value.castAsJson()))));
3876
+ }
3877
+ function renderGeometryTree(value, subtree = false) {
3878
+ 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()))))));
3879
+ }
3880
+ function renderSimpleValue(arcadeResult) {
3881
+ switch (arcadeResult.type) {
3882
+ case "unknown":
3883
+ case "null":
3884
+ return h("span", { class: "constant-value" }, arcadeResult.type);
3885
+ case "text":
3886
+ return h("span", { class: "string-value" }, D(arcadeResult.value));
3887
+ case "number":
3888
+ return h("span", { class: "number-value" }, arcadeResult.value.toString());
3889
+ case "boolean":
3890
+ return h("span", { class: "constant-value" }, arcadeResult.value.toString());
3891
+ case "date":
3892
+ return h("span", { class: "date-value" }, formatArcadeResultDate(arcadeResult));
3893
+ case "dateOnly":
3894
+ return h("span", { class: "string-value" }, D(formatArcadeResultDateOnly(arcadeResult)));
3895
+ case "time":
3896
+ return h("span", { class: "string-value" }, D(formatArcadeResultTimeOnly(arcadeResult)));
3897
+ default:
3898
+ return null;
3899
+ }
3900
+ }
3901
+ function renderFeatureSetTable(arcadeResult) {
3902
+ const fields = supportedFields(arcadeResult.value.fields);
3903
+ return (h("table", null, h("thead", null, h("tr", null, fields.map((field) => (h("th", null, field.name))))), h("tbody", null, arcadeResult.features.map((feature) => (h("tr", null, fields.map((field) => {
3904
+ try {
3905
+ const arcadeResult = valueToArcadeResult(feature.field(field.name));
3906
+ return h("td", null, renderSimpleValue(arcadeResult));
3907
+ }
3908
+ catch {
3909
+ return h("td", null);
3910
+ }
3911
+ })))))));
3912
+ }
3809
3913
  const ArcgisArcadeResults = class {
3810
3914
  constructor(hostRef) {
3811
3915
  registerInstance(this, hostRef);
@@ -3833,10 +3937,10 @@ const ArcgisArcadeResults = class {
3833
3937
  //#endregion
3834
3938
  // #region Component lifecycle events
3835
3939
  async componentWillLoad() {
3836
- await W(this, getAssetPath("./assets"));
3940
+ await H(this, getAssetPath("./assets"));
3837
3941
  }
3838
3942
  disconnectedCallback() {
3839
- B(this);
3943
+ q(this);
3840
3944
  }
3841
3945
  // #endregion
3842
3946
  //#region Private Methods
@@ -3863,18 +3967,18 @@ const ArcgisArcadeResults = class {
3863
3967
  return h("calcite-loader", { scale: "s", type: "indeterminate", label: "" });
3864
3968
  }
3865
3969
  const iconClass = this.result?.type === "error" ? "color-error" : "color-success";
3866
- return (h("calcite-list", null, this.result ? (h(Fragment, null, h("calcite-list-item", { label: D(this._t9nStrings?.lastexecutionformat, {
3970
+ return (h("calcite-list", null, this.result ? (h(Fragment, null, h("calcite-list-item", { label: I(this._t9nStrings?.lastexecutionformat, {
3867
3971
  timeStamp: new Intl.DateTimeFormat(this._t9nLocale, {
3868
3972
  dateStyle: "medium",
3869
3973
  timeStyle: "medium"
3870
3974
  }).format(this.result.timeStamp)
3871
- }) }, h("calcite-icon", { slot: "content-start", icon: "information", scale: "s", class: iconClass })), h("calcite-list-item", { label: D(this._t9nStrings?.compilationtimeformat, {
3975
+ }) }, h("calcite-icon", { slot: "content-start", icon: "information", scale: "s", class: iconClass })), h("calcite-list-item", { label: I(this._t9nStrings?.compilationtimeformat, {
3872
3976
  time: new Intl.NumberFormat(this._t9nLocale, {
3873
3977
  style: "unit",
3874
3978
  unit: "millisecond",
3875
3979
  maximumFractionDigits: 2
3876
3980
  }).format(this.result.compilationTime ?? 0)
3877
- }) }, h("calcite-icon", { slot: "content-start", icon: "information", scale: "s", class: iconClass })), h("calcite-list-item", { label: D(this._t9nStrings?.executiontimeformat, {
3981
+ }) }, h("calcite-icon", { slot: "content-start", icon: "information", scale: "s", class: iconClass })), h("calcite-list-item", { label: I(this._t9nStrings?.executiontimeformat, {
3878
3982
  time: new Intl.NumberFormat(this._t9nLocale, {
3879
3983
  style: "unit",
3880
3984
  unit: "millisecond",
@@ -3891,66 +3995,44 @@ const ArcgisArcadeResults = class {
3891
3995
  }
3892
3996
  switch (this.result?.type) {
3893
3997
  case "error":
3894
- return (h("div", { class: "result-value-simple flex-adjustable" }, D(this._t9nStrings?.executionerrorformat, {
3998
+ return (h("div", { class: "result-value-simple flex-adjustable" }, I(this._t9nStrings?.executionerrorformat, {
3895
3999
  message: this.result.value
3896
4000
  })));
3897
4001
  case "null":
3898
4002
  case "unknown":
3899
- return h("div", { class: "result-value-simple ltr-container" }, this.renderSimpleValue(this.result));
4003
+ return h("div", { class: "result-value-simple ltr-container" }, renderSimpleValue(this.result));
3900
4004
  case "text":
3901
4005
  case "number":
3902
4006
  case "date":
3903
4007
  case "dateOnly":
3904
4008
  case "time":
3905
4009
  case "boolean":
3906
- return (h("div", { class: "result-value-simple ltr-container" }, h("span", { class: "value-type" }, this.result.type, ":\u00A0"), this.renderSimpleValue(this.result)));
4010
+ return (h("div", { class: "result-value-simple ltr-container" }, h("span", { class: "value-type" }, this.result.type, ":\u00A0"), renderSimpleValue(this.result)));
3907
4011
  case "array": {
3908
4012
  const items = this.result.value ?? [];
3909
4013
  const firstItems = items.slice(0, MaxArrayItems);
3910
4014
  return (h("div", { class: "result-value-simple ltr-container" }, h("calcite-tree", { ...treeProps }, h("calcite-tree-item", { expanded: true, ...expandableTreeItemProps }, h("div", { class: "tree-item-label" }, this.renderArrayHeader(this.result)), this.renderArrayTree(firstItems, true)))));
3911
4015
  }
3912
4016
  case "geometry":
3913
- return (h("div", { class: "result-value-simple ltr-container" }, h("calcite-tree", { ...treeProps }, h("calcite-tree-item", { expanded: true, ...expandableTreeItemProps }, h("div", { class: "tree-item-label" }, this.result.type), this.renderGeometryTree(this.result.value, true)))));
4017
+ return (h("div", { class: "result-value-simple ltr-container" }, h("calcite-tree", { ...treeProps }, h("calcite-tree-item", { expanded: true, ...expandableTreeItemProps }, h("div", { class: "tree-item-label" }, this.result.type), renderGeometryTree(this.result.value, true)))));
3914
4018
  case "attachment":
3915
- return (h("div", { class: "result-value-simple ltr-container" }, h("calcite-tree", { ...treeProps }, h("calcite-tree-item", { expanded: true, ...expandableTreeItemProps }, h("div", { class: "tree-item-label" }, this.result.type), this.renderDictionaryAsJsonTree(this.result.value, true)))));
4019
+ return (h("div", { class: "result-value-simple ltr-container" }, h("calcite-tree", { ...treeProps }, h("calcite-tree-item", { expanded: true, ...expandableTreeItemProps }, h("div", { class: "tree-item-label" }, this.result.type), renderDictionaryAsJsonTree(this.result.value, true)))));
3916
4020
  case "feature":
3917
4021
  case "dictionary":
3918
4022
  case "portal":
3919
4023
  return (h("div", { class: "result-value-simple ltr-container" }, h("calcite-tree", { ...treeProps }, h("calcite-tree-item", { expanded: true, ...expandableTreeItemProps }, h("div", { class: "tree-item-label" }, this.result.type), this.renderDictionaryTree(this.result.value, true)))));
3920
4024
  case "featureSet":
3921
- return (h("div", { class: "result-value-table ltr-container" }, this.renderFeatureSetLabel(this.result), this.renderFeatureSetTable(this.result)));
4025
+ return (h("div", { class: "result-value-table ltr-container" }, this.renderFeatureSetLabel(this.result), renderFeatureSetTable(this.result)));
4026
+ case "knowledgeGraph":
4027
+ return (h("div", { class: "result-value-simple ltr-container" }, h("span", { class: "value-type" }, this.result.type, ":\u00A0"), h("span", { class: "string-value" }, this.result.value.url)));
3922
4028
  default:
3923
4029
  return (h("div", { class: "result-value-simple flex-adjustable ltr-container" }, this._t9nStrings?.runscriptmessage));
3924
4030
  }
3925
4031
  }
3926
- renderDictionaryProperty(key) {
3927
- return (h(Fragment, null, h("span", { class: "dictionary-property" }, key), h("span", null, ":\u00A0")));
3928
- }
3929
- renderSimpleValue(arcadeResult) {
3930
- switch (arcadeResult.type) {
3931
- case "unknown":
3932
- case "null":
3933
- return h("span", { class: "constant-value" }, arcadeResult.type);
3934
- case "text":
3935
- return h("span", { class: "string-value" }, q(arcadeResult.value));
3936
- case "number":
3937
- return h("span", { class: "number-value" }, arcadeResult.value.toString());
3938
- case "boolean":
3939
- return h("span", { class: "constant-value" }, arcadeResult.value.toString());
3940
- case "date":
3941
- return h("span", { class: "date-value" }, formatArcadeResultDate(arcadeResult));
3942
- case "dateOnly":
3943
- return h("span", { class: "string-value" }, q(formatArcadeResultDateOnly(arcadeResult)));
3944
- case "time":
3945
- return h("span", { class: "string-value" }, q(formatArcadeResultTimeOnly(arcadeResult)));
3946
- default:
3947
- return null;
3948
- }
3949
- }
3950
4032
  renderArrayHeader(arcadeResult) {
3951
4033
  const items = arcadeResult.value ?? [];
3952
4034
  const leftoverCount = Math.max(items.length - MaxArrayItems, 0);
3953
- return (h(Fragment, null, h("span", null, `${arcadeResult.type}(${items.length ?? 0})`), leftoverCount > 0 ? (h("span", null, "\u00A0", D(this._t9nStrings?.showingfirstitemsformat, {
4035
+ return (h(Fragment, null, h("span", null, `${arcadeResult.type}(${items.length ?? 0})`), leftoverCount > 0 ? (h("span", null, "\u00A0", I(this._t9nStrings?.showingfirstitemsformat, {
3954
4036
  count: MaxArrayItems.toString()
3955
4037
  }))) : null));
3956
4038
  }
@@ -3960,12 +4042,6 @@ const ArcgisArcadeResults = class {
3960
4042
  return this.renderTreeItem(arcadeValue, key, !subtree);
3961
4043
  })));
3962
4044
  }
3963
- renderGeometryTree(value, subtree = false) {
3964
- return (h("calcite-tree", { slot: subtree ? "children" : undefined, ...treeProps }, h("calcite-tree-item", null, h("div", { class: "tree-item-label" }, this.renderDictionaryProperty("type"), value.type)), h("calcite-tree-item", null, h("div", { class: "tree-item-label" }, this.renderDictionaryProperty("value"), h("span", { class: "string-value" }, jsonFormat(value.toJSON()))))));
3965
- }
3966
- renderDictionaryAsJsonTree(value, subtree = false) {
3967
- return (h("calcite-tree", { slot: subtree ? "children" : undefined, ...treeProps }, h("calcite-tree-item", { class: "string-value" }, jsonFormat(value.castAsJson()))));
3968
- }
3969
4045
  renderDictionaryTree(value, subtree = false) {
3970
4046
  const geometry = value.geometry?.();
3971
4047
  return (h("calcite-tree", { slot: subtree ? "children" : undefined, ...treeProps }, value.keys().map((key) => {
@@ -3983,41 +4059,29 @@ const ArcgisArcadeResults = class {
3983
4059
  case "dateOnly":
3984
4060
  case "time":
3985
4061
  case "boolean":
3986
- return (h("calcite-tree-item", null, h("div", { class: "tree-item-label" }, this.renderDictionaryProperty(key), this.renderSimpleValue(arcadeResult))));
4062
+ return (h("calcite-tree-item", null, h("div", { class: "tree-item-label" }, renderDictionaryProperty(key), renderSimpleValue(arcadeResult))));
3987
4063
  case "array": {
3988
4064
  const items = arcadeResult.value ?? [];
3989
4065
  const firstItems = items.slice(0, MaxArrayItems);
3990
- return (h("calcite-tree-item", { expanded: expanded, ...expandableTreeItemProps }, h("div", { class: "tree-item-label" }, this.renderDictionaryProperty(key), this.renderArrayHeader(arcadeResult)), this.renderArrayTree(firstItems, true)));
4066
+ return (h("calcite-tree-item", { expanded: expanded, ...expandableTreeItemProps }, h("div", { class: "tree-item-label" }, renderDictionaryProperty(key), this.renderArrayHeader(arcadeResult)), this.renderArrayTree(firstItems, true)));
3991
4067
  }
3992
4068
  case "geometry":
3993
- return (h("calcite-tree-item", { expanded: expanded, ...expandableTreeItemProps }, h("div", { class: "tree-item-label" }, this.renderDictionaryProperty(key), h("span", null, arcadeResult.type)), this.renderGeometryTree(arcadeResult.value, true)));
4069
+ return (h("calcite-tree-item", { expanded: expanded, ...expandableTreeItemProps }, h("div", { class: "tree-item-label" }, renderDictionaryProperty(key), h("span", null, arcadeResult.type)), renderGeometryTree(arcadeResult.value, true)));
3994
4070
  case "attachment":
3995
- return (h("calcite-tree-item", { expanded: expanded, ...expandableTreeItemProps }, h("div", { class: "tree-item-label" }, this.renderDictionaryProperty(key), h("span", null, arcadeResult.type)), this.renderDictionaryAsJsonTree(arcadeResult.value, true)));
4071
+ return (h("calcite-tree-item", { expanded: expanded, ...expandableTreeItemProps }, h("div", { class: "tree-item-label" }, renderDictionaryProperty(key), h("span", null, arcadeResult.type)), renderDictionaryAsJsonTree(arcadeResult.value, true)));
3996
4072
  case "feature":
3997
4073
  case "dictionary":
3998
4074
  case "portal":
3999
- return (h("calcite-tree-item", { expanded: expanded, ...expandableTreeItemProps }, h("div", { class: "tree-item-label" }, this.renderDictionaryProperty(key), h("span", null, arcadeResult.type)), this.renderDictionaryTree(arcadeResult.value, true)));
4075
+ return (h("calcite-tree-item", { expanded: expanded, ...expandableTreeItemProps }, h("div", { class: "tree-item-label" }, renderDictionaryProperty(key), h("span", null, arcadeResult.type)), this.renderDictionaryTree(arcadeResult.value, true)));
4000
4076
  default:
4001
4077
  return null;
4002
4078
  }
4003
4079
  }
4004
4080
  renderFeatureSetLabel(arcadeResult) {
4005
- return (h("div", { class: "value-type" }, h("span", null, arcadeResult.type, ":"), arcadeResult.features.length >= BatchSize ? (h("span", null, "\u00A0", D(this._t9nStrings?.showingfirstitemsformat, {
4081
+ return (h("div", { class: "value-type" }, h("span", null, arcadeResult.type, ":"), arcadeResult.features.length >= BatchSize ? (h("span", null, "\u00A0", I(this._t9nStrings?.showingfirstitemsformat, {
4006
4082
  count: BatchSize.toString()
4007
4083
  }))) : null));
4008
4084
  }
4009
- renderFeatureSetTable(arcadeResult) {
4010
- const fields = supportedFields(arcadeResult.value.fields);
4011
- return (h("table", null, h("thead", null, h("tr", null, fields.map((field) => (h("th", null, field.name))))), h("tbody", null, arcadeResult.features.map((feature) => (h("tr", null, fields.map((field) => {
4012
- try {
4013
- const arcadeResult = valueToArcadeResult(feature.field(field.name));
4014
- return h("td", null, this.renderSimpleValue(arcadeResult));
4015
- }
4016
- catch {
4017
- return h("td", null);
4018
- }
4019
- })))))));
4020
- }
4021
4085
  render() {
4022
4086
  return (h(Host, null, h("header", { class: "flex-row" }, h("calcite-action-bar", { class: "flex-adjustable", layout: "horizontal", scale: "s", expanded: true, "expand-disabled": true }, h("calcite-action-group", { scale: "s" }, h("calcite-action", { active: this.openedResultPanel === "output", text: this._t9nStrings?.output ?? "Output", "text-enabled": true, scale: "s", icon: "list-show-all", iconFlipRtl: true, onClick: this._switchResultPanel, "data-panel-name": "output" }), h("calcite-action", { active: this.openedResultPanel === "console", text: this._t9nStrings?.console ?? "Console", "text-enabled": true, scale: "s", icon: "console", iconFlipRtl: true, onClick: this._switchResultPanel, "data-panel-name": "console" }), h("calcite-action", { active: this.openedResultPanel === "log", text: this._t9nStrings?.log ?? "Log", "text-enabled": true, scale: "s", icon: "list", iconFlipRtl: true, onClick: this._switchResultPanel, "data-panel-name": "log" }))), h("calcite-action", { scale: "s", icon: "x", text: this._t9nStrings?.close ?? "", onClick: this._emitClose })), h("article", { class: "flex-adjustable" }, this.loading ? (h("calcite-loader", { scale: "s", type: "indeterminate", label: "" })) : (h("div", { class: "flex-column y-scrollable-container" }, this.renderOutputPanel(), this.renderConsolePanel(), this.renderLogPanel())))));
4023
4087
  }
@@ -4084,12 +4148,12 @@ const ArcgisArcadeSuggestions = class {
4084
4148
  async componentWillLoad() {
4085
4149
  this._colorizeStyle = generateColorizeStyles();
4086
4150
  this._themeChangedListner = onColorizeThemeChanged(() => (this._colorizeStyle = generateColorizeStyles()));
4087
- await W(this, getAssetPath("./assets"));
4151
+ await H(this, getAssetPath("./assets"));
4088
4152
  }
4089
4153
  disconnectedCallback() {
4090
4154
  this._flowObserver?.disconnect();
4091
4155
  this._themeChangedListner?.dispose();
4092
- B(this);
4156
+ q(this);
4093
4157
  }
4094
4158
  // #endregion
4095
4159
  //#region Private Methods
@@ -4107,7 +4171,7 @@ const ArcgisArcadeSuggestions = class {
4107
4171
  // When switching between flow the same reference is reused
4108
4172
  this._flowObserver = new MutationObserver(() => {
4109
4173
  // Get the last panel and try to set focus on the input element
4110
- j(ref.querySelector("calcite-flow-item:last-child"), "calcite-input");
4174
+ U(ref.querySelector("calcite-flow-item:last-child"), "calcite-input");
4111
4175
  });
4112
4176
  this._flowObserver.observe(ref, { attributes: true, attributeFilter: ["id"], childList: true });
4113
4177
  }
@@ -4203,10 +4267,10 @@ const ArcgisArcadeVariables = class {
4203
4267
  //#endregion
4204
4268
  // #region Component lifecycle events
4205
4269
  async componentWillLoad() {
4206
- await W(this, getAssetPath("./assets"));
4270
+ await H(this, getAssetPath("./assets"));
4207
4271
  }
4208
4272
  disconnectedCallback() {
4209
- B(this);
4273
+ q(this);
4210
4274
  this._flowObserver?.disconnect();
4211
4275
  }
4212
4276
  // #endregion
@@ -4231,7 +4295,7 @@ const ArcgisArcadeVariables = class {
4231
4295
  // When switching between flow the same reference is reused
4232
4296
  this._flowObserver = new MutationObserver(() => {
4233
4297
  // Get the last panel and try to set focus on the input element
4234
- j(ref.querySelector("calcite-flow-item:last-child"), "calcite-input");
4298
+ U(ref.querySelector("calcite-flow-item:last-child"), "calcite-input");
4235
4299
  });
4236
4300
  this._flowObserver.observe(ref, { attributes: true, attributeFilter: ["id"], childList: true });
4237
4301
  }
@@ -4259,7 +4323,7 @@ const ArcgisArcadeVariables = class {
4259
4323
  }
4260
4324
  renderEditorVariables(collection) {
4261
4325
  // Filter the variables. Skip group, we will filter the children later on.
4262
- const filterExpression = Q(this._filterValue);
4326
+ const filterExpression = G(this._filterValue);
4263
4327
  const filteredVariables = collection.variables.filter((variable) => variable.passFilter(filterExpression));
4264
4328
  if (!filteredVariables.length) {
4265
4329
  return h("div", { class: "notice-container" }, this._t9nStrings?.noitems ?? "No item");
@@ -4314,7 +4378,7 @@ const ArcgisCodeEditor = class {
4314
4378
  this._disposables = [];
4315
4379
  this.value = undefined;
4316
4380
  this.language = undefined;
4317
- this.modelId = F();
4381
+ this.modelId = z();
4318
4382
  }
4319
4383
  valuePropChange(newValue, oldValue) {
4320
4384
  if (!this._editorInstance || newValue === oldValue) {
@@ -4448,7 +4512,7 @@ const ArcgisCodeEditor = class {
4448
4512
  this.valueChange.emit(script);
4449
4513
  });
4450
4514
  // Detect if the host element or its ancestors got a theme attribute mutation
4451
- this._themeObserver = T(this._hostElt, ["class"], () => this.updateTheme());
4515
+ this._themeObserver = x(this._hostElt, ["class"], () => this.updateTheme());
4452
4516
  // Update the theme of the Monaco Editor
4453
4517
  this.updateTheme();
4454
4518
  // Creates a resize observer to re-layout the editor on size changing
@@ -4479,7 +4543,7 @@ const ArcgisCodeEditor = class {
4479
4543
  // This is called the first time and subsequently by the Mutation Observer
4480
4544
  // Figure out the theme by walking the ancestor path.
4481
4545
  // If no theme is found then default to light.
4482
- const theme = $(this._hostElt) === "light" ? "vs" : "vs-dark";
4546
+ const theme = O(this._hostElt) === "light" ? "vs" : "vs-dark";
4483
4547
  if (theme === this._currentTheme) {
4484
4548
  return;
4485
4549
  }
@@ -1,5 +1,10 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-3732acb8.js';
2
- export { s as setNonce } from './index-3732acb8.js';
1
+ /*!
2
+ * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
+ * See https://js.arcgis.com/4.29/esri/copyright.txt for details.
4
+ * v4.29.0-beta.94
5
+ */
6
+ import { p as promiseResolve, b as bootstrapLazy } from './index-c845e955.js';
7
+ export { s as setNonce } from './index-c845e955.js';
3
8
 
4
9
  /*
5
10
  Stencil Client Patch Browser v4.10.0 | MIT Licensed | https://stenciljs.com
@@ -1,3 +1,8 @@
1
+ /*!
2
+ * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
+ * See https://js.arcgis.com/4.29/esri/copyright.txt for details.
4
+ * v4.29.0-beta.94
5
+ */
1
6
  /*!-----------------------------------------------------------------------------
2
7
  * Copyright (c) Microsoft Corporation. All rights reserved.
3
8
  * Version: 0.45.0(5e5af013f8d295555a7210df0d5f2cea0bf5dd56)