@arcgis/coding-components 4.29.0-beta.107 → 4.29.0-beta.109

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 (77) hide show
  1. package/dist/arcgis-coding-components/arcgis-coding-components.esm.js +2 -2
  2. package/dist/arcgis-coding-components/index.esm.js +2 -2
  3. package/dist/arcgis-coding-components/{p-2c94e34e.js → p-09a0ee03.js} +2 -2
  4. package/dist/arcgis-coding-components/{p-94436a35.js → p-09dd5d6c.js} +1 -1
  5. package/dist/arcgis-coding-components/{p-599777f8.js → p-174178e7.js} +2 -2
  6. package/dist/arcgis-coding-components/{p-1f288af6.js → p-1cd316bf.js} +2 -2
  7. package/dist/arcgis-coding-components/p-690b6627.entry.js +6 -0
  8. package/dist/arcgis-coding-components/{p-ee0405a5.js → p-adf98d20.js} +2 -2
  9. package/dist/arcgis-coding-components/{p-54956a0b.js → p-b14ac5b8.js} +10 -10
  10. package/dist/arcgis-coding-components/{p-91bbadd0.js → p-c089ef80.js} +3 -3
  11. package/dist/arcgis-coding-components/{p-a2dcc80b.js → p-c441923b.js} +1 -1
  12. package/dist/arcgis-coding-components/{p-4ab89e7d.js → p-dd629a57.js} +2 -2
  13. package/dist/arcgis-coding-components/{p-4990e8c6.js → p-ec85d134.js} +2 -2
  14. package/dist/arcgis-coding-components/{p-1e9a909a.js → p-ffc1ca6e.js} +2 -2
  15. package/dist/cjs/{arcade-defaults-da037f39.js → arcade-defaults-243f1d0c.js} +218 -193
  16. package/dist/cjs/{arcade-mode-84768b0f.js → arcade-mode-713ce2c3.js} +3 -3
  17. package/dist/cjs/arcgis-arcade-api_6.cjs.entry.js +35 -47
  18. package/dist/cjs/arcgis-coding-components.cjs.js +3 -3
  19. package/dist/cjs/{css-373c87ad.js → css-d9452f0e.js} +1 -1
  20. package/dist/cjs/{cssMode-174c6a14.js → cssMode-4ba5410f.js} +3 -3
  21. package/dist/cjs/{html-34d84912.js → html-fc5c516e.js} +3 -3
  22. package/dist/cjs/{htmlMode-560580bc.js → htmlMode-8437fe37.js} +3 -3
  23. package/dist/cjs/{index-a28e8c4d.js → index-1b175662.js} +1 -1
  24. package/dist/cjs/index.cjs.js +3 -3
  25. package/dist/cjs/{javascript-0e9272ba.js → javascript-94bf8806.js} +4 -4
  26. package/dist/cjs/{jsonMode-f03296f5.js → jsonMode-3528dffd.js} +3 -3
  27. package/dist/cjs/loader.cjs.js +3 -3
  28. package/dist/cjs/{tsMode-61a0f476.js → tsMode-fe693a2d.js} +3 -3
  29. package/dist/cjs/{typescript-3bc44ecc.js → typescript-2f8ed118.js} +3 -3
  30. package/dist/components/arcade-api.js +1 -1
  31. package/dist/components/arcade-contribution.js +2 -2
  32. package/dist/components/arcade-defaults.js +169 -152
  33. package/dist/components/arcade-mode.js +1 -1
  34. package/dist/components/arcade-results.js +2 -2
  35. package/dist/components/arcade-suggestions.js +1 -1
  36. package/dist/components/arcade-variables.js +19 -16
  37. package/dist/components/arcgis-arcade-api.js +1 -1
  38. package/dist/components/arcgis-arcade-editor.js +13 -29
  39. package/dist/components/arcgis-arcade-results.js +1 -1
  40. package/dist/components/arcgis-arcade-suggestions.js +1 -1
  41. package/dist/components/arcgis-arcade-variables.js +1 -1
  42. package/dist/components/arcgis-code-editor.js +1 -1
  43. package/dist/components/code-editor.js +1 -1
  44. package/dist/components/fields.js +10 -2
  45. package/dist/components/functional-components.js +1 -1
  46. package/dist/components/index.js +1 -1
  47. package/dist/components/index2.js +1 -1
  48. package/dist/components/markdown.js +1 -1
  49. package/dist/components/utilities.js +1 -1
  50. package/dist/esm/{arcade-defaults-b0a0d60e.js → arcade-defaults-2be262c3.js} +218 -193
  51. package/dist/esm/{arcade-mode-886ad2c6.js → arcade-mode-9b5533a2.js} +3 -3
  52. package/dist/esm/arcgis-arcade-api_6.entry.js +35 -47
  53. package/dist/esm/arcgis-coding-components.js +4 -4
  54. package/dist/esm/{css-97e0bca1.js → css-09aa6c3a.js} +1 -1
  55. package/dist/esm/{cssMode-af0b0322.js → cssMode-f90a1e62.js} +3 -3
  56. package/dist/esm/{html-5b306e7f.js → html-2dae6cf1.js} +3 -3
  57. package/dist/esm/{htmlMode-ade22305.js → htmlMode-7e3483f9.js} +3 -3
  58. package/dist/esm/{index-318ffb0c.js → index-23b528c2.js} +1 -1
  59. package/dist/esm/index.js +3 -3
  60. package/dist/esm/{javascript-e24d6f51.js → javascript-84611956.js} +4 -4
  61. package/dist/esm/{jsonMode-dcc1e54f.js → jsonMode-cdf283a8.js} +3 -3
  62. package/dist/esm/loader.js +4 -4
  63. package/dist/esm/{tsMode-3c62ab70.js → tsMode-0c3bded5.js} +3 -3
  64. package/dist/esm/{typescript-b5ee74fa.js → typescript-6fb8a4c2.js} +3 -3
  65. package/dist/loader/cdn.js +1 -1
  66. package/dist/loader/index.cjs.js +1 -1
  67. package/dist/loader/index.es2017.js +1 -1
  68. package/dist/loader/index.js +1 -1
  69. package/dist/types/components/arcade-editor/arcade-editor.d.ts +1 -7
  70. package/dist/types/components/arcade-variables/arcade-variables.d.ts +0 -1
  71. package/dist/types/components.d.ts +2 -7
  72. package/dist/types/utils/arcade-monaco/arcade-theme.d.ts +1 -0
  73. package/dist/types/utils/profile/editor-profile.d.ts +49 -63
  74. package/dist/types/utils/profile/types.d.ts +122 -1
  75. package/dist/types/utils/profile/utils.d.ts +22 -9
  76. package/package.json +8 -8
  77. package/dist/arcgis-coding-components/p-0afd6c41.entry.js +0 -6
@@ -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.107
4
+ * v4.29.0-beta.109
5
5
  */
6
- import { u as main, e as editor, M as MarkerSeverity, R as Range, l as languages, E as Emitter } from './arcade-defaults-b0a0d60e.js';
7
- import './index-318ffb0c.js';
6
+ import { u as main, e as editor, M as MarkerSeverity, R as Range, l as languages, E as Emitter } from './arcade-defaults-2be262c3.js';
7
+ import './index-23b528c2.js';
8
8
 
9
9
  var j={False:"false",Null:"null",True:"true"},f={Break:"break",Continue:"continue",Else:"else",For:"for",From:"from",Function:"function",If:"if",Import:"import",Export:"export",In:"in",Return:"return",Var:"var",While:"while"},Fe=["++","--"],Qe=["-","+","!","~"],Ze=["=","/=","*=","%=","+=","-="],Xe=["||","&&"],Lt=["|","&",">>","<<",">>>","^","==","!=","<","<=",">",">=","+","-","*","/","%"];var U=[[],[],[]];Fe.forEach(t=>U[t.length-1]?.push(t));Qe.forEach(t=>U[t.length-1]?.push(t));Xe.forEach(t=>U[t.length-1]?.push(t));Ze.forEach(t=>U[t.length-1]?.push(t));Lt.forEach(t=>U[t.length-1]?.push(t));var ht=Object.values(f),dt=Object.values(j);dt.map(t=>({label:t,kind:main.CompletionItemKind.Constant}));ht.map(t=>({label:t,kind:main.CompletionItemKind.Keyword}));
10
10
 
@@ -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.107
4
+ * v4.29.0-beta.109
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-318ffb0c.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-b0a0d60e.js';
6
+ import { h, r as registerInstance, c as createEvent, g as getAssetPath, H as Host, a as getElement, F as Fragment } from './index-23b528c2.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-2be262c3.js';
8
8
 
9
9
  async function colorizeCode(code) {
10
10
  return await editor.colorize(code, "arcade", { tabSize: 2 });
@@ -3020,7 +3020,7 @@ async function getArcadeWorker(uri) {
3020
3020
  * @returns mode for arcade
3021
3021
  */
3022
3022
  async function getMode() {
3023
- return await import('./arcade-mode-886ad2c6.js');
3023
+ return await import('./arcade-mode-9b5533a2.js');
3024
3024
  }
3025
3025
  // Register the language in Monaco
3026
3026
  languages.register({
@@ -3457,7 +3457,8 @@ function setupArcadeTheme() {
3457
3457
  });
3458
3458
  });
3459
3459
  }
3460
- const validKeys = ["comment", "keyword", "identifier", "string", "number", "constant"];
3460
+ const monacoThemeKeys = ["comment", "keyword", "identifier", "string", "number", "constant"];
3461
+ const colorRulesKeys = [...monacoThemeKeys, "date"];
3461
3462
  function updateThemeColors(theme, colorRules) {
3462
3463
  if (colorRules === undefined) {
3463
3464
  setupArcadeTheme();
@@ -3465,14 +3466,7 @@ function updateThemeColors(theme, colorRules) {
3465
3466
  }
3466
3467
  const base = theme === "light" ? "vs" : "vs-dark";
3467
3468
  const rules = [];
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) => {
3469
+ monacoThemeKeys.forEach((key) => {
3476
3470
  const foreground = colorRules[key];
3477
3471
  if (!foreground) {
3478
3472
  return;
@@ -3513,8 +3507,8 @@ const ArcgisArcadeEditor = class {
3513
3507
  this._executingScript = false;
3514
3508
  }, 0);
3515
3509
  };
3516
- this._toggleShowExecutionPanel = () => (this._showExecutionPanel = !this._showExecutionPanel);
3517
- this._toggleSideActionBarExpanded = () => (this.sideActionBarExpanded = !this.sideActionBarExpanded);
3510
+ this._toggleShowExecutionPanel = () => void (this._showExecutionPanel = !this._showExecutionPanel);
3511
+ this._toggleSideActionBarExpanded = () => void (this.sideActionBarExpanded = !this.sideActionBarExpanded);
3518
3512
  this._toggleSidePanel = async (e) => {
3519
3513
  if (!e.target) {
3520
3514
  return;
@@ -3527,15 +3521,15 @@ const ArcgisArcadeEditor = class {
3527
3521
  await this._codeEditorElt?.setFocus();
3528
3522
  }
3529
3523
  };
3530
- this._openArcadeHelp = () => window.open(DevelopersWebSitePath, "Arcade Help");
3524
+ this._openArcadeHelp = () => void window.open(DevelopersWebSitePath, "Arcade Help");
3531
3525
  this._emitScriptChange = (e) => {
3532
3526
  e.stopPropagation();
3533
3527
  this.scriptChange.emit(e.detail);
3534
3528
  };
3535
3529
  this._insertAsSnippet = async (e) => await this._codeEditorElt?.insertSnippet(e.detail);
3536
3530
  this._insertAsText = async (e) => await this._codeEditorElt?.insertText(e.detail);
3537
- this._onResultPanelChange = (e) => (this._resultPanel = e.detail);
3538
- this._onExecutionPanelClose = () => (this._showExecutionPanel = false);
3531
+ this._onResultPanelChange = (e) => void (this._resultPanel = e.detail);
3532
+ this._onExecutionPanelClose = () => void (this._showExecutionPanel = false);
3539
3533
  this._lang = "";
3540
3534
  this._t9nLocale = "";
3541
3535
  this._t9nStrings = undefined;
@@ -3562,13 +3556,13 @@ const ArcgisArcadeEditor = class {
3562
3556
  if (newValue === oldValue) {
3563
3557
  return;
3564
3558
  }
3565
- this._updateEditorProfile();
3559
+ this._updateEditorProfile().catch(console.error);
3566
3560
  }
3567
3561
  _testDataChanged(newValue, oldValue) {
3568
3562
  if (newValue === oldValue || !this._showExecutionPanel) {
3569
3563
  return;
3570
3564
  }
3571
- this._executeScript();
3565
+ this._executeScript().catch(console.error);
3572
3566
  }
3573
3567
  _snippetChanged(newValue, oldValue) {
3574
3568
  if (newValue === oldValue) {
@@ -3619,14 +3613,6 @@ const ArcgisArcadeEditor = class {
3619
3613
  const script = await this._codeEditorElt?.getValue();
3620
3614
  return await executeScript(editorProfile.definition, script, this.testData);
3621
3615
  }
3622
- /**
3623
- * Returns the Arcade output type for the script.
3624
- * @deprecated Use getTestResult
3625
- * @internal
3626
- */
3627
- async getOutputType() {
3628
- return (await this.getTestResult()).type;
3629
- }
3630
3616
  /**
3631
3617
  * Allows to change theme colors
3632
3618
  * @internal
@@ -3635,13 +3621,12 @@ const ArcgisArcadeEditor = class {
3635
3621
  const theme = k(this._hostElement);
3636
3622
  updateThemeColors(theme, colorRules);
3637
3623
  if (colorRules === undefined) {
3638
- ["comment", "keyword", "identifier", "string", "number", "constant", "date"].forEach((key) => {
3624
+ colorRulesKeys.forEach((key) => {
3639
3625
  this._hostElement.style.removeProperty(`--arcgis-arcade-editor-${key}`);
3640
3626
  });
3641
3627
  return;
3642
3628
  }
3643
- ["comment", "keyword", "identifier", "string", "number", "constant", "date"].forEach((key) => {
3644
- // @ts-expect-error
3629
+ colorRulesKeys.forEach((key) => {
3645
3630
  const foreground = colorRules[key];
3646
3631
  if (!foreground) {
3647
3632
  return;
@@ -3851,7 +3836,7 @@ function jsonFormat(json) {
3851
3836
  .replace(/\\(\d+)\\/gu, popFunc); // backslashes in strings
3852
3837
  }
3853
3838
 
3854
- 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-info)}:host .color-error{color:var(--calcite-color-danger)}:host .color-success{color:var(--calcite-color-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-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)}";
3839
+ 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)}";
3855
3840
 
3856
3841
  //#region Specialized Constants
3857
3842
  const treeProps = {
@@ -4213,21 +4198,24 @@ ArcgisArcadeSuggestions.style = arcadeSuggestionsCss;
4213
4198
 
4214
4199
  const arcadeVariablesCss = ":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%}";
4215
4200
 
4201
+ function stopEnterPropagation(e) {
4202
+ if (e.key === "Enter") {
4203
+ e.stopPropagation();
4204
+ }
4205
+ }
4216
4206
  const ArcgisArcadeVariables = class {
4217
4207
  constructor(hostRef) {
4218
4208
  registerInstance(this, hostRef);
4219
4209
  this.close = createEvent(this, "close", 3);
4220
4210
  this.itemSelected = createEvent(this, "itemSelected", 3);
4221
- // @ts-expect-error
4222
- this._updateFilterValue = (e) => (this._filterValue = e.target?.value ?? "");
4211
+ this._updateFilterValue = (e) => (this._filterValue = e.target.value);
4223
4212
  this._beforeBack = async () => {
4224
4213
  this.removeLastPanelRenderer();
4225
4214
  this._filterValue = "";
4226
4215
  };
4227
- this._emitClose = () => this.close.emit();
4228
- this._backToTop = () => (this._flowItemRenderers = []);
4216
+ this._emitClose = () => void this.close.emit();
4217
+ this._backToTop = () => void (this._flowItemRenderers = []);
4229
4218
  this._emitItemSelected = (e) => {
4230
- // @ts-expect-error
4231
4219
  const variable = e.target?.["data-item"];
4232
4220
  if (!variable || variable.nonInteractive) {
4233
4221
  return;
@@ -4238,13 +4226,7 @@ const ArcgisArcadeVariables = class {
4238
4226
  this.itemSelected.emit(variable.snippet);
4239
4227
  }
4240
4228
  };
4241
- this._stopEnterPropagation = (e) => {
4242
- if (e.key === "Enter") {
4243
- e.stopPropagation();
4244
- }
4245
- };
4246
4229
  this._showCollectionPanel = (e) => {
4247
- // @ts-expect-error
4248
4230
  const collectionVariable = e.target?.["data-item"];
4249
4231
  if (!collectionVariable) {
4250
4232
  return;
@@ -4313,12 +4295,18 @@ const ArcgisArcadeVariables = class {
4313
4295
  let loading = this.loading;
4314
4296
  if (!loading && !collection.loaded) {
4315
4297
  // Request to load and update mutation counter when done
4316
- collection.loadSource().then(() => setTimeout(() => {
4298
+ collection
4299
+ .loadSource()
4300
+ .then(() => setTimeout(() => {
4317
4301
  this._mutationCounter += 1;
4318
- }));
4302
+ }))
4303
+ .catch(() => {
4304
+ console.error("Error loading collection");
4305
+ loading = false;
4306
+ });
4319
4307
  loading = true;
4320
4308
  }
4321
- return (h("calcite-flow-item", { heading: this._t9nStrings?.profilevariables, 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)))));
4309
+ 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)))));
4322
4310
  };
4323
4311
  }
4324
4312
  renderEditorVariables(collection) {
@@ -4336,7 +4324,7 @@ const ArcgisArcadeVariables = class {
4336
4324
  // Group is a collection but we represent it differently
4337
4325
  return (h("calcite-list-item-group", { heading: variable.getLabel() }, this.renderEditorVariables(variable)));
4338
4326
  default:
4339
- return (h("calcite-list-item", { label: variable.getLabel(), description: variable.getDescription(), onCalciteListItemSelect: this._emitItemSelected, onKeyPress: this._emitItemSelected, "data-item": variable }, variable.isCollection ? (h("calcite-action", { slot: "actions-end", text: this._t9nStrings?.expand ?? "", scale: "s", icon: "chevron-right", iconFlipRtl: true, onClick: this._showCollectionPanel, onKeyPress: this._stopEnterPropagation, "data-item": variable })) : null, variable.icon ? h("calcite-icon", { icon: variable.icon, scale: "s", slot: "content-start" }) : null));
4327
+ return (h("calcite-list-item", { label: variable.getLabel(), description: variable.getDescription(), onCalciteListItemSelect: this._emitItemSelected, onKeyPress: this._emitItemSelected, "data-item": variable }, variable.isCollection ? (h("calcite-action", { slot: "actions-end", text: this._t9nStrings?.expand ?? "", scale: "s", icon: "chevron-right", iconFlipRtl: true, onClick: this._showCollectionPanel, onKeyPress: stopEnterPropagation, "data-item": variable })) : null, variable.icon ? h("calcite-icon", { icon: variable.icon, scale: "s", slot: "content-start" }) : null));
4340
4328
  }
4341
4329
  }
4342
4330
  render() {
@@ -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.107
4
+ * v4.29.0-beta.109
5
5
  */
6
- import { p as promiseResolve, b as bootstrapLazy } from './index-318ffb0c.js';
7
- export { s as setNonce } from './index-318ffb0c.js';
6
+ import { p as promiseResolve, b as bootstrapLazy } from './index-23b528c2.js';
7
+ export { s as setNonce } from './index-23b528c2.js';
8
8
 
9
9
  /*
10
10
  Stencil Client Patch Browser v4.10.0 | MIT Licensed | https://stenciljs.com
@@ -19,5 +19,5 @@ const patchBrowser = () => {
19
19
  };
20
20
 
21
21
  patchBrowser().then(options => {
22
- return bootstrapLazy([["arcgis-arcade-api_6",[[0,"arcgis-arcade-editor",{"profile":[16],"script":[1],"testData":[16],"suggestions":[16],"snippets":[16],"hideDocumentationActions":[4,"hide-documentation-actions"],"hideSideBar":[4,"hide-side-bar"],"sideActionBarExpanded":[1540,"side-action-bar-expanded"],"openedSidePanel":[1537,"opened-side-panel"],"_lang":[32],"_t9nLocale":[32],"_t9nStrings":[32],"_standaloneCodeEditor":[32],"_preparingProfile":[32],"_editorProfile":[32],"_showExecutionPanel":[32],"_resultPanel":[32],"_executingScript":[32],"_consoleLogs":[32],"_executionResult":[32],"getScript":[64],"setFocus":[64],"getEditorInstance":[64],"getTestResult":[64],"getOutputType":[64],"updateThemeColors":[64]},null,{"profile":["_profileChanged"],"testData":["_testDataChanged"],"snippets":["_snippetChanged"]}],[1,"arcgis-arcade-api",{"hideDocumentationActions":[4,"hide-documentation-actions"],"modelId":[1,"model-id"],"_lang":[32],"_t9nLocale":[32],"_t9nStrings":[32],"_selectedApiItem":[32],"_filterValue":[32],"_colorizeStyle":[32],"_preparingApi":[32],"_apiLibrary":[32]}],[1,"arcgis-arcade-results",{"loading":[4],"openedResultPanel":[1537,"opened-result-panel"],"result":[16],"consoleLogs":[16],"_lang":[32],"_t9nLocale":[32],"_t9nStrings":[32]}],[1,"arcgis-arcade-suggestions",{"suggestions":[16],"_lang":[32],"_t9nLocale":[32],"_t9nStrings":[32],"_selectedSuggestion":[32],"_filterValue":[32],"_colorizeStyle":[32]},null,{"suggestions":["suggestionsPropChanged"]}],[1,"arcgis-arcade-variables",{"loading":[4],"modelId":[1,"model-id"],"_lang":[32],"_t9nLocale":[32],"_t9nStrings":[32],"_mutationCounter":[32],"_flowItemRenderers":[32],"_filterValue":[32]},null,{"modelId":["modelIdPropChanged"]}],[0,"arcgis-code-editor",{"value":[1],"language":[1],"modelId":[1,"model-id"],"getValue":[64],"setValue":[64],"insertText":[64],"insertSnippet":[64],"getEditorInstance":[64],"setFocus":[64]},null,{"value":["valuePropChange"],"language":["languagePropChange"],"modelId":["modelIdPropChange"]}]]]], options);
22
+ return bootstrapLazy([["arcgis-arcade-api_6",[[0,"arcgis-arcade-editor",{"profile":[16],"script":[1],"testData":[16],"suggestions":[16],"snippets":[16],"hideDocumentationActions":[4,"hide-documentation-actions"],"hideSideBar":[4,"hide-side-bar"],"sideActionBarExpanded":[1540,"side-action-bar-expanded"],"openedSidePanel":[1537,"opened-side-panel"],"_lang":[32],"_t9nLocale":[32],"_t9nStrings":[32],"_standaloneCodeEditor":[32],"_preparingProfile":[32],"_editorProfile":[32],"_showExecutionPanel":[32],"_resultPanel":[32],"_executingScript":[32],"_consoleLogs":[32],"_executionResult":[32],"getScript":[64],"setFocus":[64],"getEditorInstance":[64],"getTestResult":[64],"updateThemeColors":[64]},null,{"profile":["_profileChanged"],"testData":["_testDataChanged"],"snippets":["_snippetChanged"]}],[1,"arcgis-arcade-api",{"hideDocumentationActions":[4,"hide-documentation-actions"],"modelId":[1,"model-id"],"_lang":[32],"_t9nLocale":[32],"_t9nStrings":[32],"_selectedApiItem":[32],"_filterValue":[32],"_colorizeStyle":[32],"_preparingApi":[32],"_apiLibrary":[32]}],[1,"arcgis-arcade-results",{"loading":[4],"openedResultPanel":[1537,"opened-result-panel"],"result":[16],"consoleLogs":[16],"_lang":[32],"_t9nLocale":[32],"_t9nStrings":[32]}],[1,"arcgis-arcade-suggestions",{"suggestions":[16],"_lang":[32],"_t9nLocale":[32],"_t9nStrings":[32],"_selectedSuggestion":[32],"_filterValue":[32],"_colorizeStyle":[32]},null,{"suggestions":["suggestionsPropChanged"]}],[1,"arcgis-arcade-variables",{"loading":[4],"modelId":[1,"model-id"],"_lang":[32],"_t9nLocale":[32],"_t9nStrings":[32],"_mutationCounter":[32],"_flowItemRenderers":[32],"_filterValue":[32]},null,{"modelId":["modelIdPropChanged"]}],[0,"arcgis-code-editor",{"value":[1],"language":[1],"modelId":[1,"model-id"],"getValue":[64],"setValue":[64],"insertText":[64],"insertSnippet":[64],"getEditorInstance":[64],"setFocus":[64]},null,{"value":["valuePropChange"],"language":["languagePropChange"],"modelId":["modelIdPropChange"]}]]]], options);
23
23
  });
@@ -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.107
4
+ * v4.29.0-beta.109
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.107
4
+ * v4.29.0-beta.109
5
5
  */
6
- import { r as monaco_editor_core_star } from './arcade-defaults-b0a0d60e.js';
7
- import './index-318ffb0c.js';
6
+ import { r as monaco_editor_core_star } from './arcade-defaults-2be262c3.js';
7
+ import './index-23b528c2.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.107
4
+ * v4.29.0-beta.109
5
5
  */
6
- import { r as monaco_editor_core_star } from './arcade-defaults-b0a0d60e.js';
7
- import './index-318ffb0c.js';
6
+ import { r as monaco_editor_core_star } from './arcade-defaults-2be262c3.js';
7
+ import './index-23b528c2.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.107
4
+ * v4.29.0-beta.109
5
5
  */
6
- import { r as monaco_editor_core_star } from './arcade-defaults-b0a0d60e.js';
7
- import './index-318ffb0c.js';
6
+ import { r as monaco_editor_core_star } from './arcade-defaults-2be262c3.js';
7
+ import './index-23b528c2.js';
8
8
 
9
9
  /*!-----------------------------------------------------------------------------
10
10
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  * See https://js.arcgis.com/4.29/esri/copyright.txt for details.
4
- * v4.29.0-beta.107
4
+ * v4.29.0-beta.109
5
5
  */
6
6
  const NAMESPACE = 'arcgis-coding-components';
7
7
 
package/dist/esm/index.js CHANGED
@@ -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.107
4
+ * v4.29.0-beta.109
5
5
  */
6
- export { a as arcade } from './arcade-defaults-b0a0d60e.js';
7
- import './index-318ffb0c.js';
6
+ export { a as arcade } from './arcade-defaults-2be262c3.js';
7
+ import './index-23b528c2.js';
@@ -1,11 +1,11 @@
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.107
4
+ * v4.29.0-beta.109
5
5
  */
6
- import { conf as conf$1, language as language$1 } from './typescript-b5ee74fa.js';
7
- import './arcade-defaults-b0a0d60e.js';
8
- import './index-318ffb0c.js';
6
+ import { conf as conf$1, language as language$1 } from './typescript-6fb8a4c2.js';
7
+ import './arcade-defaults-2be262c3.js';
8
+ import './index-23b528c2.js';
9
9
 
10
10
  /*!-----------------------------------------------------------------------------
11
11
  * 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.107
4
+ * v4.29.0-beta.109
5
5
  */
6
- import { r as monaco_editor_core_star } from './arcade-defaults-b0a0d60e.js';
7
- import './index-318ffb0c.js';
6
+ import { r as monaco_editor_core_star } from './arcade-defaults-2be262c3.js';
7
+ import './index-23b528c2.js';
8
8
 
9
9
  /*!-----------------------------------------------------------------------------
10
10
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,14 +1,14 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  * See https://js.arcgis.com/4.29/esri/copyright.txt for details.
4
- * v4.29.0-beta.107
4
+ * v4.29.0-beta.109
5
5
  */
6
- import { b as bootstrapLazy } from './index-318ffb0c.js';
7
- export { s as setNonce } from './index-318ffb0c.js';
6
+ import { b as bootstrapLazy } from './index-23b528c2.js';
7
+ export { s as setNonce } from './index-23b528c2.js';
8
8
 
9
9
  const defineCustomElements = (win, options) => {
10
10
  if (typeof window === 'undefined') return undefined;
11
- return bootstrapLazy([["arcgis-arcade-api_6",[[0,"arcgis-arcade-editor",{"profile":[16],"script":[1],"testData":[16],"suggestions":[16],"snippets":[16],"hideDocumentationActions":[4,"hide-documentation-actions"],"hideSideBar":[4,"hide-side-bar"],"sideActionBarExpanded":[1540,"side-action-bar-expanded"],"openedSidePanel":[1537,"opened-side-panel"],"_lang":[32],"_t9nLocale":[32],"_t9nStrings":[32],"_standaloneCodeEditor":[32],"_preparingProfile":[32],"_editorProfile":[32],"_showExecutionPanel":[32],"_resultPanel":[32],"_executingScript":[32],"_consoleLogs":[32],"_executionResult":[32],"getScript":[64],"setFocus":[64],"getEditorInstance":[64],"getTestResult":[64],"getOutputType":[64],"updateThemeColors":[64]},null,{"profile":["_profileChanged"],"testData":["_testDataChanged"],"snippets":["_snippetChanged"]}],[1,"arcgis-arcade-api",{"hideDocumentationActions":[4,"hide-documentation-actions"],"modelId":[1,"model-id"],"_lang":[32],"_t9nLocale":[32],"_t9nStrings":[32],"_selectedApiItem":[32],"_filterValue":[32],"_colorizeStyle":[32],"_preparingApi":[32],"_apiLibrary":[32]}],[1,"arcgis-arcade-results",{"loading":[4],"openedResultPanel":[1537,"opened-result-panel"],"result":[16],"consoleLogs":[16],"_lang":[32],"_t9nLocale":[32],"_t9nStrings":[32]}],[1,"arcgis-arcade-suggestions",{"suggestions":[16],"_lang":[32],"_t9nLocale":[32],"_t9nStrings":[32],"_selectedSuggestion":[32],"_filterValue":[32],"_colorizeStyle":[32]},null,{"suggestions":["suggestionsPropChanged"]}],[1,"arcgis-arcade-variables",{"loading":[4],"modelId":[1,"model-id"],"_lang":[32],"_t9nLocale":[32],"_t9nStrings":[32],"_mutationCounter":[32],"_flowItemRenderers":[32],"_filterValue":[32]},null,{"modelId":["modelIdPropChanged"]}],[0,"arcgis-code-editor",{"value":[1],"language":[1],"modelId":[1,"model-id"],"getValue":[64],"setValue":[64],"insertText":[64],"insertSnippet":[64],"getEditorInstance":[64],"setFocus":[64]},null,{"value":["valuePropChange"],"language":["languagePropChange"],"modelId":["modelIdPropChange"]}]]]], options);
11
+ return bootstrapLazy([["arcgis-arcade-api_6",[[0,"arcgis-arcade-editor",{"profile":[16],"script":[1],"testData":[16],"suggestions":[16],"snippets":[16],"hideDocumentationActions":[4,"hide-documentation-actions"],"hideSideBar":[4,"hide-side-bar"],"sideActionBarExpanded":[1540,"side-action-bar-expanded"],"openedSidePanel":[1537,"opened-side-panel"],"_lang":[32],"_t9nLocale":[32],"_t9nStrings":[32],"_standaloneCodeEditor":[32],"_preparingProfile":[32],"_editorProfile":[32],"_showExecutionPanel":[32],"_resultPanel":[32],"_executingScript":[32],"_consoleLogs":[32],"_executionResult":[32],"getScript":[64],"setFocus":[64],"getEditorInstance":[64],"getTestResult":[64],"updateThemeColors":[64]},null,{"profile":["_profileChanged"],"testData":["_testDataChanged"],"snippets":["_snippetChanged"]}],[1,"arcgis-arcade-api",{"hideDocumentationActions":[4,"hide-documentation-actions"],"modelId":[1,"model-id"],"_lang":[32],"_t9nLocale":[32],"_t9nStrings":[32],"_selectedApiItem":[32],"_filterValue":[32],"_colorizeStyle":[32],"_preparingApi":[32],"_apiLibrary":[32]}],[1,"arcgis-arcade-results",{"loading":[4],"openedResultPanel":[1537,"opened-result-panel"],"result":[16],"consoleLogs":[16],"_lang":[32],"_t9nLocale":[32],"_t9nStrings":[32]}],[1,"arcgis-arcade-suggestions",{"suggestions":[16],"_lang":[32],"_t9nLocale":[32],"_t9nStrings":[32],"_selectedSuggestion":[32],"_filterValue":[32],"_colorizeStyle":[32]},null,{"suggestions":["suggestionsPropChanged"]}],[1,"arcgis-arcade-variables",{"loading":[4],"modelId":[1,"model-id"],"_lang":[32],"_t9nLocale":[32],"_t9nStrings":[32],"_mutationCounter":[32],"_flowItemRenderers":[32],"_filterValue":[32]},null,{"modelId":["modelIdPropChanged"]}],[0,"arcgis-code-editor",{"value":[1],"language":[1],"modelId":[1,"model-id"],"getValue":[64],"setValue":[64],"insertText":[64],"insertSnippet":[64],"getEditorInstance":[64],"setFocus":[64]},null,{"value":["valuePropChange"],"language":["languagePropChange"],"modelId":["modelIdPropChange"]}]]]], options);
12
12
  };
13
13
 
14
14
  export { defineCustomElements };
@@ -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.107
4
+ * v4.29.0-beta.109
5
5
  */
6
- import { t as typescriptDefaults, r as monaco_editor_core_star } from './arcade-defaults-b0a0d60e.js';
7
- import './index-318ffb0c.js';
6
+ import { t as typescriptDefaults, r as monaco_editor_core_star } from './arcade-defaults-2be262c3.js';
7
+ import './index-23b528c2.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.107
4
+ * v4.29.0-beta.109
5
5
  */
6
- import { r as monaco_editor_core_star } from './arcade-defaults-b0a0d60e.js';
7
- import './index-318ffb0c.js';
6
+ import { r as monaco_editor_core_star } from './arcade-defaults-2be262c3.js';
7
+ import './index-23b528c2.js';
8
8
 
9
9
  /*!-----------------------------------------------------------------------------
10
10
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  * See https://js.arcgis.com/4.29/esri/copyright.txt for details.
4
- * v4.29.0-beta.107
4
+ * v4.29.0-beta.109
5
5
  */
6
6
  module.exports = require('../cjs/loader.cjs.js');
7
7
  module.exports.applyPolyfills = function() { return Promise.resolve() };
@@ -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.107
4
+ * v4.29.0-beta.109
5
5
  */
6
6
  module.exports = require('../cjs/loader.cjs.js');
7
7
  module.exports.applyPolyfills = function() { return Promise.resolve() };
@@ -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.107
4
+ * v4.29.0-beta.109
5
5
  */
6
6
  export * from '../esm/polyfills/index.js';
7
7
  export * from '../esm/loader.js';
@@ -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.107
4
+ * v4.29.0-beta.109
5
5
  */
6
6
  (function(){if("undefined"!==typeof window&&void 0!==window.Reflect&&void 0!==window.customElements){var a=HTMLElement;window.HTMLElement=function(){return Reflect.construct(a,[],this.constructor)};HTMLElement.prototype=a.prototype;HTMLElement.prototype.constructor=HTMLElement;Object.setPrototypeOf(HTMLElement,a)}})();
7
7
  export * from '../esm/polyfills/index.js';
@@ -5,7 +5,7 @@ import type { IEditorCodeSuggestion, IEditorCodeSuggestionGroup } from "../../ut
5
5
  import type { IEditorProfileDefinition, IPredefinedProfile } from "../../utils/profile/types";
6
6
  import type { editor } from "monaco-editor";
7
7
  import type { EditorProfile } from "../../utils/profile/editor-profile";
8
- import type { ArcadeResult, IEditorTestContext, ResultType } from "../../utils/arcade-executor";
8
+ import type { ArcadeResult, IEditorTestContext } from "../../utils/arcade-executor";
9
9
  import type { IColorRules } from "../../utils/arcade-monaco/arcade-theme";
10
10
  import type { ResultPanelName } from "../arcade-results/arcade-results";
11
11
  export type SidePanelName = "api" | "none" | "suggestions" | "variables";
@@ -98,12 +98,6 @@ export declare class ArcgisArcadeEditor implements ComponentInterface {
98
98
  * Returns the Arcade result for the script for the provided test data.
99
99
  */
100
100
  getTestResult(): Promise<ArcadeResult>;
101
- /**
102
- * Returns the Arcade output type for the script.
103
- * @deprecated Use getTestResult
104
- * @internal
105
- */
106
- getOutputType(): Promise<ResultType>;
107
101
  /**
108
102
  * Allows to change theme colors
109
103
  * @internal
@@ -37,7 +37,6 @@ export declare class ArcgisArcadeVariables implements ComponentInterface {
37
37
  private _emitClose;
38
38
  private _backToTop;
39
39
  private _emitItemSelected;
40
- private _stopEnterPropagation;
41
40
  private _showCollectionPanel;
42
41
  private collectionBasedVariableRenderer;
43
42
  private renderEditorVariables;
@@ -6,7 +6,7 @@
6
6
  */
7
7
  import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
8
8
  import { IEditorProfileDefinition, IPredefinedProfile } from "./utils/profile/types";
9
- import { ArcadeResult, IEditorTestContext, ResultType } from "./utils/arcade-executor";
9
+ import { ArcadeResult, IEditorTestContext } from "./utils/arcade-executor";
10
10
  import { IEditorCodeSuggestion, IEditorCodeSuggestionGroup } from "./utils/editor-suggestions";
11
11
  import { ApiSnippet, Diagnostic } from "@arcgis/arcade-languageservice";
12
12
  import { SidePanelName } from "./components/arcade-editor/arcade-editor";
@@ -14,7 +14,7 @@ import { editor } from "monaco-editor";
14
14
  import { IColorRules } from "./utils/arcade-monaco/arcade-theme";
15
15
  import { ResultPanelName } from "./components/arcade-results/arcade-results";
16
16
  export { IEditorProfileDefinition, IPredefinedProfile } from "./utils/profile/types";
17
- export { ArcadeResult, IEditorTestContext, ResultType } from "./utils/arcade-executor";
17
+ export { ArcadeResult, IEditorTestContext } from "./utils/arcade-executor";
18
18
  export { IEditorCodeSuggestion, IEditorCodeSuggestionGroup } from "./utils/editor-suggestions";
19
19
  export { ApiSnippet, Diagnostic } from "@arcgis/arcade-languageservice";
20
20
  export { SidePanelName } from "./components/arcade-editor/arcade-editor";
@@ -37,11 +37,6 @@ export namespace Components {
37
37
  * @returns - The monaco editor instance
38
38
  */
39
39
  "getEditorInstance": () => Promise<editor.IStandaloneCodeEditor | undefined>;
40
- /**
41
- * Returns the Arcade output type for the script.
42
- * @deprecated Use getTestResult
43
- */
44
- "getOutputType": () => Promise<ResultType>;
45
40
  /**
46
41
  * Returns the current script.
47
42
  * @returns
@@ -8,4 +8,5 @@ export interface IColorRules {
8
8
  constant?: string;
9
9
  date?: string;
10
10
  }
11
+ export declare const colorRulesKeys: (keyof IColorRules)[];
11
12
  export declare function updateThemeColors(theme: "dark" | "light", colorRules: IColorRules | undefined): void;