@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,12 +1,12 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  * See https://js.arcgis.com/4.29/esri/copyright.txt for details.
4
- * v4.29.0-beta.107
4
+ * v4.29.0-beta.109
5
5
  */
6
6
  'use strict';
7
7
 
8
- const arcadeDefaults = require('./arcade-defaults-da037f39.js');
9
- require('./index-a28e8c4d.js');
8
+ const arcadeDefaults = require('./arcade-defaults-243f1d0c.js');
9
+ require('./index-1b175662.js');
10
10
 
11
11
  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:arcadeDefaults.main.CompletionItemKind.Constant}));ht.map(t=>({label:t,kind:arcadeDefaults.main.CompletionItemKind.Keyword}));
12
12
 
@@ -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
6
  'use strict';
7
7
 
8
8
  Object.defineProperty(exports, '__esModule', { value: true });
9
9
 
10
- const index = require('./index-a28e8c4d.js');
11
- const arcadeDefaults = require('./arcade-defaults-da037f39.js');
10
+ const index = require('./index-1b175662.js');
11
+ const arcadeDefaults = require('./arcade-defaults-243f1d0c.js');
12
12
 
13
13
  async function colorizeCode(code) {
14
14
  return await arcadeDefaults.editor.colorize(code, "arcade", { tabSize: 2 });
@@ -3024,7 +3024,7 @@ async function getArcadeWorker(uri) {
3024
3024
  * @returns mode for arcade
3025
3025
  */
3026
3026
  async function getMode() {
3027
- return await Promise.resolve().then(function () { return require('./arcade-mode-84768b0f.js'); });
3027
+ return await Promise.resolve().then(function () { return require('./arcade-mode-713ce2c3.js'); });
3028
3028
  }
3029
3029
  // Register the language in Monaco
3030
3030
  arcadeDefaults.languages.register({
@@ -3461,7 +3461,8 @@ function setupArcadeTheme() {
3461
3461
  });
3462
3462
  });
3463
3463
  }
3464
- const validKeys = ["comment", "keyword", "identifier", "string", "number", "constant"];
3464
+ const monacoThemeKeys = ["comment", "keyword", "identifier", "string", "number", "constant"];
3465
+ const colorRulesKeys = [...monacoThemeKeys, "date"];
3465
3466
  function updateThemeColors(theme, colorRules) {
3466
3467
  if (colorRules === undefined) {
3467
3468
  setupArcadeTheme();
@@ -3469,14 +3470,7 @@ function updateThemeColors(theme, colorRules) {
3469
3470
  }
3470
3471
  const base = theme === "light" ? "vs" : "vs-dark";
3471
3472
  const rules = [];
3472
- Object.keys(colorRules).forEach((key) => {
3473
- const foreground = colorRules[key];
3474
- if (!foreground) {
3475
- return;
3476
- }
3477
- rules.push({ token: `${key}.arc`, foreground });
3478
- });
3479
- validKeys.forEach((key) => {
3473
+ monacoThemeKeys.forEach((key) => {
3480
3474
  const foreground = colorRules[key];
3481
3475
  if (!foreground) {
3482
3476
  return;
@@ -3517,8 +3511,8 @@ const ArcgisArcadeEditor = class {
3517
3511
  this._executingScript = false;
3518
3512
  }, 0);
3519
3513
  };
3520
- this._toggleShowExecutionPanel = () => (this._showExecutionPanel = !this._showExecutionPanel);
3521
- this._toggleSideActionBarExpanded = () => (this.sideActionBarExpanded = !this.sideActionBarExpanded);
3514
+ this._toggleShowExecutionPanel = () => void (this._showExecutionPanel = !this._showExecutionPanel);
3515
+ this._toggleSideActionBarExpanded = () => void (this.sideActionBarExpanded = !this.sideActionBarExpanded);
3522
3516
  this._toggleSidePanel = async (e) => {
3523
3517
  if (!e.target) {
3524
3518
  return;
@@ -3531,15 +3525,15 @@ const ArcgisArcadeEditor = class {
3531
3525
  await this._codeEditorElt?.setFocus();
3532
3526
  }
3533
3527
  };
3534
- this._openArcadeHelp = () => window.open(DevelopersWebSitePath, "Arcade Help");
3528
+ this._openArcadeHelp = () => void window.open(DevelopersWebSitePath, "Arcade Help");
3535
3529
  this._emitScriptChange = (e) => {
3536
3530
  e.stopPropagation();
3537
3531
  this.scriptChange.emit(e.detail);
3538
3532
  };
3539
3533
  this._insertAsSnippet = async (e) => await this._codeEditorElt?.insertSnippet(e.detail);
3540
3534
  this._insertAsText = async (e) => await this._codeEditorElt?.insertText(e.detail);
3541
- this._onResultPanelChange = (e) => (this._resultPanel = e.detail);
3542
- this._onExecutionPanelClose = () => (this._showExecutionPanel = false);
3535
+ this._onResultPanelChange = (e) => void (this._resultPanel = e.detail);
3536
+ this._onExecutionPanelClose = () => void (this._showExecutionPanel = false);
3543
3537
  this._lang = "";
3544
3538
  this._t9nLocale = "";
3545
3539
  this._t9nStrings = undefined;
@@ -3566,13 +3560,13 @@ const ArcgisArcadeEditor = class {
3566
3560
  if (newValue === oldValue) {
3567
3561
  return;
3568
3562
  }
3569
- this._updateEditorProfile();
3563
+ this._updateEditorProfile().catch(console.error);
3570
3564
  }
3571
3565
  _testDataChanged(newValue, oldValue) {
3572
3566
  if (newValue === oldValue || !this._showExecutionPanel) {
3573
3567
  return;
3574
3568
  }
3575
- this._executeScript();
3569
+ this._executeScript().catch(console.error);
3576
3570
  }
3577
3571
  _snippetChanged(newValue, oldValue) {
3578
3572
  if (newValue === oldValue) {
@@ -3623,14 +3617,6 @@ const ArcgisArcadeEditor = class {
3623
3617
  const script = await this._codeEditorElt?.getValue();
3624
3618
  return await executeScript(editorProfile.definition, script, this.testData);
3625
3619
  }
3626
- /**
3627
- * Returns the Arcade output type for the script.
3628
- * @deprecated Use getTestResult
3629
- * @internal
3630
- */
3631
- async getOutputType() {
3632
- return (await this.getTestResult()).type;
3633
- }
3634
3620
  /**
3635
3621
  * Allows to change theme colors
3636
3622
  * @internal
@@ -3639,13 +3625,12 @@ const ArcgisArcadeEditor = class {
3639
3625
  const theme = arcadeDefaults.k(this._hostElement);
3640
3626
  updateThemeColors(theme, colorRules);
3641
3627
  if (colorRules === undefined) {
3642
- ["comment", "keyword", "identifier", "string", "number", "constant", "date"].forEach((key) => {
3628
+ colorRulesKeys.forEach((key) => {
3643
3629
  this._hostElement.style.removeProperty(`--arcgis-arcade-editor-${key}`);
3644
3630
  });
3645
3631
  return;
3646
3632
  }
3647
- ["comment", "keyword", "identifier", "string", "number", "constant", "date"].forEach((key) => {
3648
- // @ts-expect-error
3633
+ colorRulesKeys.forEach((key) => {
3649
3634
  const foreground = colorRules[key];
3650
3635
  if (!foreground) {
3651
3636
  return;
@@ -3855,7 +3840,7 @@ function jsonFormat(json) {
3855
3840
  .replace(/\\(\d+)\\/gu, popFunc); // backslashes in strings
3856
3841
  }
3857
3842
 
3858
- 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)}";
3843
+ 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)}";
3859
3844
 
3860
3845
  //#region Specialized Constants
3861
3846
  const treeProps = {
@@ -4217,21 +4202,24 @@ ArcgisArcadeSuggestions.style = arcadeSuggestionsCss;
4217
4202
 
4218
4203
  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%}";
4219
4204
 
4205
+ function stopEnterPropagation(e) {
4206
+ if (e.key === "Enter") {
4207
+ e.stopPropagation();
4208
+ }
4209
+ }
4220
4210
  const ArcgisArcadeVariables = class {
4221
4211
  constructor(hostRef) {
4222
4212
  index.registerInstance(this, hostRef);
4223
4213
  this.close = index.createEvent(this, "close", 3);
4224
4214
  this.itemSelected = index.createEvent(this, "itemSelected", 3);
4225
- // @ts-expect-error
4226
- this._updateFilterValue = (e) => (this._filterValue = e.target?.value ?? "");
4215
+ this._updateFilterValue = (e) => (this._filterValue = e.target.value);
4227
4216
  this._beforeBack = async () => {
4228
4217
  this.removeLastPanelRenderer();
4229
4218
  this._filterValue = "";
4230
4219
  };
4231
- this._emitClose = () => this.close.emit();
4232
- this._backToTop = () => (this._flowItemRenderers = []);
4220
+ this._emitClose = () => void this.close.emit();
4221
+ this._backToTop = () => void (this._flowItemRenderers = []);
4233
4222
  this._emitItemSelected = (e) => {
4234
- // @ts-expect-error
4235
4223
  const variable = e.target?.["data-item"];
4236
4224
  if (!variable || variable.nonInteractive) {
4237
4225
  return;
@@ -4242,13 +4230,7 @@ const ArcgisArcadeVariables = class {
4242
4230
  this.itemSelected.emit(variable.snippet);
4243
4231
  }
4244
4232
  };
4245
- this._stopEnterPropagation = (e) => {
4246
- if (e.key === "Enter") {
4247
- e.stopPropagation();
4248
- }
4249
- };
4250
4233
  this._showCollectionPanel = (e) => {
4251
- // @ts-expect-error
4252
4234
  const collectionVariable = e.target?.["data-item"];
4253
4235
  if (!collectionVariable) {
4254
4236
  return;
@@ -4317,12 +4299,18 @@ const ArcgisArcadeVariables = class {
4317
4299
  let loading = this.loading;
4318
4300
  if (!loading && !collection.loaded) {
4319
4301
  // Request to load and update mutation counter when done
4320
- collection.loadSource().then(() => setTimeout(() => {
4302
+ collection
4303
+ .loadSource()
4304
+ .then(() => setTimeout(() => {
4321
4305
  this._mutationCounter += 1;
4322
- }));
4306
+ }))
4307
+ .catch(() => {
4308
+ console.error("Error loading collection");
4309
+ loading = false;
4310
+ });
4323
4311
  loading = true;
4324
4312
  }
4325
- return (index.h("calcite-flow-item", { heading: this._t9nStrings?.profilevariables, beforeBack: this._beforeBack, closable: true, onCalciteFlowItemClose: this._emitClose }, index.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 }), index.h(StickyFilterInput, { filterValue: this._filterValue, onCalciteInputInput: this._updateFilterValue }), loading ? (index.h("calcite-loader", { scale: "s", type: "indeterminate", label: this._t9nStrings?.loading ?? "Loading" })) : (index.h("calcite-list", null, this.renderEditorVariables(collection)))));
4313
+ return (index.h("calcite-flow-item", { heading: this._t9nStrings?.profilevariables, description: collection.breadcrumb, beforeBack: this._beforeBack, closable: true, onCalciteFlowItemClose: this._emitClose }, index.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 }), index.h(StickyFilterInput, { filterValue: this._filterValue, onCalciteInputInput: this._updateFilterValue }), loading ? (index.h("calcite-loader", { scale: "s", type: "indeterminate", label: this._t9nStrings?.loading ?? "Loading" })) : (index.h("calcite-list", null, this.renderEditorVariables(collection)))));
4326
4314
  };
4327
4315
  }
4328
4316
  renderEditorVariables(collection) {
@@ -4340,7 +4328,7 @@ const ArcgisArcadeVariables = class {
4340
4328
  // Group is a collection but we represent it differently
4341
4329
  return (index.h("calcite-list-item-group", { heading: variable.getLabel() }, this.renderEditorVariables(variable)));
4342
4330
  default:
4343
- return (index.h("calcite-list-item", { label: variable.getLabel(), description: variable.getDescription(), onCalciteListItemSelect: this._emitItemSelected, onKeyPress: this._emitItemSelected, "data-item": variable }, variable.isCollection ? (index.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 ? index.h("calcite-icon", { icon: variable.icon, scale: "s", slot: "content-start" }) : null));
4331
+ return (index.h("calcite-list-item", { label: variable.getLabel(), description: variable.getDescription(), onCalciteListItemSelect: this._emitItemSelected, onKeyPress: this._emitItemSelected, "data-item": variable }, variable.isCollection ? (index.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 ? index.h("calcite-icon", { icon: variable.icon, scale: "s", slot: "content-start" }) : null));
4344
4332
  }
4345
4333
  }
4346
4334
  render() {
@@ -1,13 +1,13 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  * See https://js.arcgis.com/4.29/esri/copyright.txt for details.
4
- * v4.29.0-beta.107
4
+ * v4.29.0-beta.109
5
5
  */
6
6
  'use strict';
7
7
 
8
8
  Object.defineProperty(exports, '__esModule', { value: true });
9
9
 
10
- const index = require('./index-a28e8c4d.js');
10
+ const index = require('./index-1b175662.js');
11
11
 
12
12
  /*
13
13
  Stencil Client Patch Browser v4.10.0 | MIT Licensed | https://stenciljs.com
@@ -22,7 +22,7 @@ const patchBrowser = () => {
22
22
  };
23
23
 
24
24
  patchBrowser().then(options => {
25
- return index.bootstrapLazy([["arcgis-arcade-api_6.cjs",[[0,"arcgis-arcade-editor",{"profile":[16],"script":[1],"testData":[16],"suggestions":[16],"snippets":[16],"hideDocumentationActions":[4,"hide-documentation-actions"],"hideSideBar":[4,"hide-side-bar"],"sideActionBarExpanded":[1540,"side-action-bar-expanded"],"openedSidePanel":[1537,"opened-side-panel"],"_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);
25
+ return index.bootstrapLazy([["arcgis-arcade-api_6.cjs",[[0,"arcgis-arcade-editor",{"profile":[16],"script":[1],"testData":[16],"suggestions":[16],"snippets":[16],"hideDocumentationActions":[4,"hide-documentation-actions"],"hideSideBar":[4,"hide-side-bar"],"sideActionBarExpanded":[1540,"side-action-bar-expanded"],"openedSidePanel":[1537,"opened-side-panel"],"_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);
26
26
  });
27
27
 
28
28
  exports.setNonce = index.setNonce;
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  * See https://js.arcgis.com/4.29/esri/copyright.txt for details.
4
- * v4.29.0-beta.107
4
+ * v4.29.0-beta.109
5
5
  */
6
6
  'use strict';
7
7
 
@@ -1,12 +1,12 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  * See https://js.arcgis.com/4.29/esri/copyright.txt for details.
4
- * v4.29.0-beta.107
4
+ * v4.29.0-beta.109
5
5
  */
6
6
  'use strict';
7
7
 
8
- const arcadeDefaults = require('./arcade-defaults-da037f39.js');
9
- require('./index-a28e8c4d.js');
8
+ const arcadeDefaults = require('./arcade-defaults-243f1d0c.js');
9
+ require('./index-1b175662.js');
10
10
 
11
11
  /*!-----------------------------------------------------------------------------
12
12
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,12 +1,12 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  * See https://js.arcgis.com/4.29/esri/copyright.txt for details.
4
- * v4.29.0-beta.107
4
+ * v4.29.0-beta.109
5
5
  */
6
6
  'use strict';
7
7
 
8
- const arcadeDefaults = require('./arcade-defaults-da037f39.js');
9
- require('./index-a28e8c4d.js');
8
+ const arcadeDefaults = require('./arcade-defaults-243f1d0c.js');
9
+ require('./index-1b175662.js');
10
10
 
11
11
  /*!-----------------------------------------------------------------------------
12
12
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,12 +1,12 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  * See https://js.arcgis.com/4.29/esri/copyright.txt for details.
4
- * v4.29.0-beta.107
4
+ * v4.29.0-beta.109
5
5
  */
6
6
  'use strict';
7
7
 
8
- const arcadeDefaults = require('./arcade-defaults-da037f39.js');
9
- require('./index-a28e8c4d.js');
8
+ const arcadeDefaults = require('./arcade-defaults-243f1d0c.js');
9
+ require('./index-1b175662.js');
10
10
 
11
11
  /*!-----------------------------------------------------------------------------
12
12
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  * See https://js.arcgis.com/4.29/esri/copyright.txt for details.
4
- * v4.29.0-beta.107
4
+ * v4.29.0-beta.109
5
5
  */
6
6
  'use strict';
7
7
 
@@ -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
6
  'use strict';
7
7
 
8
8
  Object.defineProperty(exports, '__esModule', { value: true });
9
9
 
10
- const arcadeDefaults = require('./arcade-defaults-da037f39.js');
11
- require('./index-a28e8c4d.js');
10
+ const arcadeDefaults = require('./arcade-defaults-243f1d0c.js');
11
+ require('./index-1b175662.js');
12
12
 
13
13
 
14
14
 
@@ -1,13 +1,13 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  * See https://js.arcgis.com/4.29/esri/copyright.txt for details.
4
- * v4.29.0-beta.107
4
+ * v4.29.0-beta.109
5
5
  */
6
6
  'use strict';
7
7
 
8
- const typescript = require('./typescript-3bc44ecc.js');
9
- require('./arcade-defaults-da037f39.js');
10
- require('./index-a28e8c4d.js');
8
+ const typescript = require('./typescript-2f8ed118.js');
9
+ require('./arcade-defaults-243f1d0c.js');
10
+ require('./index-1b175662.js');
11
11
 
12
12
  /*!-----------------------------------------------------------------------------
13
13
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,12 +1,12 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  * See https://js.arcgis.com/4.29/esri/copyright.txt for details.
4
- * v4.29.0-beta.107
4
+ * v4.29.0-beta.109
5
5
  */
6
6
  'use strict';
7
7
 
8
- const arcadeDefaults = require('./arcade-defaults-da037f39.js');
9
- require('./index-a28e8c4d.js');
8
+ const arcadeDefaults = require('./arcade-defaults-243f1d0c.js');
9
+ require('./index-1b175662.js');
10
10
 
11
11
  /*!-----------------------------------------------------------------------------
12
12
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,17 +1,17 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  * See https://js.arcgis.com/4.29/esri/copyright.txt for details.
4
- * v4.29.0-beta.107
4
+ * v4.29.0-beta.109
5
5
  */
6
6
  'use strict';
7
7
 
8
8
  Object.defineProperty(exports, '__esModule', { value: true });
9
9
 
10
- const index = require('./index-a28e8c4d.js');
10
+ const index = require('./index-1b175662.js');
11
11
 
12
12
  const defineCustomElements = (win, options) => {
13
13
  if (typeof window === 'undefined') return undefined;
14
- return index.bootstrapLazy([["arcgis-arcade-api_6.cjs",[[0,"arcgis-arcade-editor",{"profile":[16],"script":[1],"testData":[16],"suggestions":[16],"snippets":[16],"hideDocumentationActions":[4,"hide-documentation-actions"],"hideSideBar":[4,"hide-side-bar"],"sideActionBarExpanded":[1540,"side-action-bar-expanded"],"openedSidePanel":[1537,"opened-side-panel"],"_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);
14
+ return index.bootstrapLazy([["arcgis-arcade-api_6.cjs",[[0,"arcgis-arcade-editor",{"profile":[16],"script":[1],"testData":[16],"suggestions":[16],"snippets":[16],"hideDocumentationActions":[4,"hide-documentation-actions"],"hideSideBar":[4,"hide-side-bar"],"sideActionBarExpanded":[1540,"side-action-bar-expanded"],"openedSidePanel":[1537,"opened-side-panel"],"_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);
15
15
  };
16
16
 
17
17
  exports.setNonce = index.setNonce;
@@ -1,12 +1,12 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  * See https://js.arcgis.com/4.29/esri/copyright.txt for details.
4
- * v4.29.0-beta.107
4
+ * v4.29.0-beta.109
5
5
  */
6
6
  'use strict';
7
7
 
8
- const arcadeDefaults = require('./arcade-defaults-da037f39.js');
9
- require('./index-a28e8c4d.js');
8
+ const arcadeDefaults = require('./arcade-defaults-243f1d0c.js');
9
+ require('./index-1b175662.js');
10
10
 
11
11
  /*!-----------------------------------------------------------------------------
12
12
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,12 +1,12 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  * See https://js.arcgis.com/4.29/esri/copyright.txt for details.
4
- * v4.29.0-beta.107
4
+ * v4.29.0-beta.109
5
5
  */
6
6
  'use strict';
7
7
 
8
- const arcadeDefaults = require('./arcade-defaults-da037f39.js');
9
- require('./index-a28e8c4d.js');
8
+ const arcadeDefaults = require('./arcade-defaults-243f1d0c.js');
9
+ require('./index-1b175662.js');
10
10
 
11
11
  /*!-----------------------------------------------------------------------------
12
12
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  * See https://js.arcgis.com/4.29/esri/copyright.txt for details.
4
- * v4.29.0-beta.107
4
+ * v4.29.0-beta.109
5
5
  */
6
6
  import { proxyCustomElement, HTMLElement, createEvent, getAssetPath, h, Host } from '@stencil/core/internal/client';
7
7
  import { g as generateColorizeStyles, o as onColorizeThemeChanged, c as convertMarkdownString, a as colorizedAllCodeElements } from './markdown.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
6
  import { languages } from 'monaco-editor';
7
7
  import { b as arcadeDefaults } from './arcade-defaults.js';
8
- import { c as importRequest } from './fields.js';
8
+ import { a as importRequest } from './fields.js';
9
9
  import { s as se, o as oe } from './index2.js';
10
10
 
11
11
  function isMonacoEnvironmentSetup() {