@arcgis/coding-components 4.29.5 → 4.29.6

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 (72) 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-e8b3e3ae.js → p-016c4b1a.js} +2 -2
  4. package/dist/arcgis-coding-components/p-01a4e3b6.entry.js +6 -0
  5. package/dist/arcgis-coding-components/{p-29c22c73.js → p-1a93c7e0.js} +2 -2
  6. package/dist/arcgis-coding-components/{p-cd7c9720.js → p-247cb90b.js} +2 -2
  7. package/dist/arcgis-coding-components/{p-1a2cbd53.js → p-36728596.js} +1 -1
  8. package/dist/arcgis-coding-components/{p-bc3db4c9.js → p-46854d9e.js} +2 -2
  9. package/dist/arcgis-coding-components/{p-31731664.js → p-631633fb.js} +2 -2
  10. package/dist/arcgis-coding-components/{p-f748c7b4.js → p-673b2ff8.js} +2 -2
  11. package/dist/arcgis-coding-components/{p-ce3693b8.js → p-69dd71a0.js} +1 -1
  12. package/dist/arcgis-coding-components/{p-977c1293.js → p-a6aa3329.js} +2 -2
  13. package/dist/arcgis-coding-components/{p-6ab17501.js → p-a83c87b2.js} +2 -2
  14. package/dist/arcgis-coding-components/{p-a7a38110.js → p-e16a2989.js} +10 -10
  15. package/dist/cjs/{arcade-defaults-f3afa4a9.js → arcade-defaults-bb91d772.js} +10 -10
  16. package/dist/cjs/{arcade-mode-3001023b.js → arcade-mode-dc314608.js} +3 -3
  17. package/dist/cjs/arcgis-arcade-api_6.cjs.entry.js +16 -10
  18. package/dist/cjs/arcgis-coding-components.cjs.js +3 -3
  19. package/dist/cjs/{css-7ddf55e8.js → css-953f7a6c.js} +1 -1
  20. package/dist/cjs/{cssMode-d75d0fcd.js → cssMode-678f2118.js} +3 -3
  21. package/dist/cjs/{html-30c97d1e.js → html-4eef7139.js} +3 -3
  22. package/dist/cjs/{htmlMode-8876fe24.js → htmlMode-bb9d77a0.js} +3 -3
  23. package/dist/cjs/{index-69db6bc6.js → index-dbf35f05.js} +1 -1
  24. package/dist/cjs/index.cjs.js +3 -3
  25. package/dist/cjs/{javascript-2cd4b91d.js → javascript-c59907bb.js} +4 -4
  26. package/dist/cjs/{jsonMode-5eeb046c.js → jsonMode-e01ed2f6.js} +3 -3
  27. package/dist/cjs/loader.cjs.js +3 -3
  28. package/dist/cjs/{tsMode-ad612219.js → tsMode-e2ee5182.js} +3 -3
  29. package/dist/cjs/{typescript-c84caf0f.js → typescript-d7c1e747.js} +3 -3
  30. package/dist/components/arcade-api.js +1 -1
  31. package/dist/components/arcade-contribution.js +1 -1
  32. package/dist/components/arcade-defaults.js +1 -1
  33. package/dist/components/arcade-mode.js +1 -1
  34. package/dist/components/arcade-results.js +1 -1
  35. package/dist/components/arcade-suggestions.js +1 -1
  36. package/dist/components/arcade-variables.js +1 -1
  37. package/dist/components/arcgis-arcade-api.js +1 -1
  38. package/dist/components/arcgis-arcade-editor.js +4 -6
  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 +14 -3
  44. package/dist/components/fields.js +1 -1
  45. package/dist/components/index.js +1 -1
  46. package/dist/components/index2.js +1 -1
  47. package/dist/components/markdown.js +1 -1
  48. package/dist/components/utilities.js +1 -1
  49. package/dist/esm/{arcade-defaults-967ffd46.js → arcade-defaults-8bb44c25.js} +10 -10
  50. package/dist/esm/{arcade-mode-5e97b306.js → arcade-mode-df0e1c4a.js} +3 -3
  51. package/dist/esm/arcgis-arcade-api_6.entry.js +16 -10
  52. package/dist/esm/arcgis-coding-components.js +4 -4
  53. package/dist/esm/{css-28548067.js → css-57afc054.js} +1 -1
  54. package/dist/esm/{cssMode-04a688b3.js → cssMode-efab9c31.js} +3 -3
  55. package/dist/esm/{html-b7ac30a0.js → html-07054741.js} +3 -3
  56. package/dist/esm/{htmlMode-f0abf9d5.js → htmlMode-45d1db7f.js} +3 -3
  57. package/dist/esm/{index-36478840.js → index-f91da374.js} +1 -1
  58. package/dist/esm/index.js +3 -3
  59. package/dist/esm/{javascript-983a4e20.js → javascript-33f2acbf.js} +4 -4
  60. package/dist/esm/{jsonMode-f5cdf27c.js → jsonMode-a8e86fc8.js} +3 -3
  61. package/dist/esm/loader.js +4 -4
  62. package/dist/esm/{tsMode-23faab8a.js → tsMode-ff8c6cfa.js} +3 -3
  63. package/dist/esm/{typescript-6f54aead.js → typescript-9426612f.js} +3 -3
  64. package/dist/loader/cdn.js +1 -1
  65. package/dist/loader/index.cjs.js +1 -1
  66. package/dist/loader/index.es2017.js +1 -1
  67. package/dist/loader/index.js +1 -1
  68. package/dist/types/components/arcade-editor/arcade-editor.d.ts +4 -0
  69. package/dist/types/components/code-editor/code-editor.d.ts +7 -1
  70. package/dist/types/components.d.ts +17 -1
  71. package/package.json +8 -8
  72. package/dist/arcgis-coding-components/p-6ddf8939.entry.js +0 -6
@@ -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.5
4
+ * v4.29.6
5
5
  */
6
6
  'use strict';
7
7
 
8
- const index = require('./index-69db6bc6.js');
8
+ const index = require('./index-dbf35f05.js');
9
9
 
10
10
  function _interopNamespace(e) {
11
11
  if (e && e.__esModule) return e;
@@ -120544,7 +120544,7 @@ registerLanguage({
120544
120544
  mimetypes: ["text/css"],
120545
120545
  loader: () => {
120546
120546
  {
120547
- return Promise.resolve().then(function () { return require('./css-7ddf55e8.js'); });
120547
+ return Promise.resolve().then(function () { return require('./css-953f7a6c.js'); });
120548
120548
  }
120549
120549
  }
120550
120550
  });
@@ -120562,7 +120562,7 @@ registerLanguage({
120562
120562
  mimetypes: ["text/html", "text/x-jshtm", "text/template", "text/ng-template"],
120563
120563
  loader: () => {
120564
120564
  {
120565
- return Promise.resolve().then(function () { return require('./html-30c97d1e.js'); });
120565
+ return Promise.resolve().then(function () { return require('./html-4eef7139.js'); });
120566
120566
  }
120567
120567
  }
120568
120568
  });
@@ -120582,7 +120582,7 @@ registerLanguage({
120582
120582
  mimetypes: ["text/javascript"],
120583
120583
  loader: () => {
120584
120584
  {
120585
- return Promise.resolve().then(function () { return require('./javascript-2cd4b91d.js'); });
120585
+ return Promise.resolve().then(function () { return require('./javascript-c59907bb.js'); });
120586
120586
  }
120587
120587
  }
120588
120588
  });
@@ -120600,7 +120600,7 @@ registerLanguage({
120600
120600
  mimetypes: ["text/typescript"],
120601
120601
  loader: () => {
120602
120602
  {
120603
- return Promise.resolve().then(function () { return require('./typescript-c84caf0f.js'); });
120603
+ return Promise.resolve().then(function () { return require('./typescript-d7c1e747.js'); });
120604
120604
  }
120605
120605
  }
120606
120606
  });
@@ -120721,7 +120721,7 @@ var lessDefaults = new LanguageServiceDefaultsImpl$3("less", optionsDefault$1, m
120721
120721
  monaco_editor_core_exports$3.languages.css = { cssDefaults, lessDefaults, scssDefaults };
120722
120722
  function getMode$3() {
120723
120723
  {
120724
- return Promise.resolve().then(function () { return require('./cssMode-d75d0fcd.js'); });
120724
+ return Promise.resolve().then(function () { return require('./cssMode-678f2118.js'); });
120725
120725
  }
120726
120726
  }
120727
120727
  monaco_editor_core_exports$3.languages.onLanguage("less", () => {
@@ -120846,7 +120846,7 @@ monaco_editor_core_exports$2.languages.html = {
120846
120846
  };
120847
120847
  function getMode$2() {
120848
120848
  {
120849
- return Promise.resolve().then(function () { return require('./htmlMode-8876fe24.js'); });
120849
+ return Promise.resolve().then(function () { return require('./htmlMode-bb9d77a0.js'); });
120850
120850
  }
120851
120851
  }
120852
120852
  function registerHTMLLanguageService(languageId, options = optionsDefault, modeConfiguration = getConfigurationDefault(languageId)) {
@@ -120948,7 +120948,7 @@ var jsonDefaults = new LanguageServiceDefaultsImpl$1("json", diagnosticDefault,
120948
120948
  monaco_editor_core_exports$1.languages.json = { jsonDefaults };
120949
120949
  function getMode$1() {
120950
120950
  {
120951
- return Promise.resolve().then(function () { return require('./jsonMode-5eeb046c.js'); });
120951
+ return Promise.resolve().then(function () { return require('./jsonMode-e01ed2f6.js'); });
120952
120952
  }
120953
120953
  }
120954
120954
  monaco_editor_core_exports$1.languages.register({
@@ -121217,7 +121217,7 @@ monaco_editor_core_exports.languages.typescript = {
121217
121217
  };
121218
121218
  function getMode() {
121219
121219
  {
121220
- return Promise.resolve().then(function () { return require('./tsMode-ad612219.js'); });
121220
+ return Promise.resolve().then(function () { return require('./tsMode-e2ee5182.js'); });
121221
121221
  }
121222
121222
  }
121223
121223
  monaco_editor_core_exports.languages.onLanguage("typescript", () => {
@@ -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.5
4
+ * v4.29.6
5
5
  */
6
6
  'use strict';
7
7
 
8
- const arcadeDefaults = require('./arcade-defaults-f3afa4a9.js');
9
- require('./index-69db6bc6.js');
8
+ const arcadeDefaults = require('./arcade-defaults-bb91d772.js');
9
+ require('./index-dbf35f05.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.5
4
+ * v4.29.6
5
5
  */
6
6
  'use strict';
7
7
 
8
8
  Object.defineProperty(exports, '__esModule', { value: true });
9
9
 
10
- const index = require('./index-69db6bc6.js');
11
- const arcadeDefaults = require('./arcade-defaults-f3afa4a9.js');
10
+ const index = require('./index-dbf35f05.js');
11
+ const arcadeDefaults = require('./arcade-defaults-bb91d772.js');
12
12
 
13
13
  async function colorizeCode(code) {
14
14
  return await arcadeDefaults.editor.colorize(code, "arcade", { tabSize: 2 });
@@ -3028,7 +3028,7 @@ async function getArcadeWorker(uri) {
3028
3028
  * @returns mode for arcade
3029
3029
  */
3030
3030
  async function getMode() {
3031
- return await Promise.resolve().then(function () { return require('./arcade-mode-3001023b.js'); });
3031
+ return await Promise.resolve().then(function () { return require('./arcade-mode-dc314608.js'); });
3032
3032
  }
3033
3033
  // Register the language in Monaco
3034
3034
  arcadeDefaults.languages.register({
@@ -3565,6 +3565,7 @@ const ArcgisArcadeEditor = class {
3565
3565
  this.hideSideBar = false;
3566
3566
  this.sideActionBarExpanded = false;
3567
3567
  this.openedSidePanel = "none";
3568
+ this.editorOptions = undefined;
3568
3569
  }
3569
3570
  _profileChanged(newValue, oldValue) {
3570
3571
  // Prevent the execution as long as the component has not been fully loaded
@@ -3732,11 +3733,7 @@ const ArcgisArcadeEditor = class {
3732
3733
  //#endregion
3733
3734
  //#region Render Main Panel
3734
3735
  renderMainPanel() {
3735
- return (
3736
- // <div class="flex-adjustable">
3737
- index.h("arcgis-code-editor", { class: "flex-adjustable", language: arcadeDefaults.arcadeDefaults.languageId, value: this.script ?? "", modelId: this._modelId, onValueChange: this._emitScriptChange, ref: (e) => (this._codeEditorElt = e) })
3738
- // </div>
3739
- );
3736
+ return (index.h("arcgis-code-editor", { class: "flex-adjustable", language: arcadeDefaults.arcadeDefaults.languageId, value: this.script ?? "", modelId: this._modelId, options: this.editorOptions, onValueChange: this._emitScriptChange, ref: (e) => (this._codeEditorElt = e) }));
3740
3737
  }
3741
3738
  //#endregion
3742
3739
  //#region Rendering the Action Bar
@@ -4359,6 +4356,7 @@ const ArcgisCodeEditor = class {
4359
4356
  this.value = undefined;
4360
4357
  this.language = undefined;
4361
4358
  this.modelId = arcadeDefaults.U();
4359
+ this.options = undefined;
4362
4360
  }
4363
4361
  valuePropChange(newValue, oldValue) {
4364
4362
  if (!this._editorInstance || newValue === oldValue) {
@@ -4378,6 +4376,12 @@ const ArcgisCodeEditor = class {
4378
4376
  }
4379
4377
  this.updateModel();
4380
4378
  }
4379
+ optionsPropChange(newValue) {
4380
+ if (!this._editorInstance || !newValue) {
4381
+ return;
4382
+ }
4383
+ this._editorInstance.updateOptions(newValue);
4384
+ }
4381
4385
  //#endregion
4382
4386
  // #region Public methods API
4383
4387
  /**
@@ -4476,6 +4480,7 @@ const ArcgisCodeEditor = class {
4476
4480
  // Create the editor for the host element.
4477
4481
  // This will not trigger a diagnostic.
4478
4482
  this._editorInstance = arcadeDefaults.editor.create(this._hostElt, {
4483
+ ...(this.options ?? {}),
4479
4484
  model,
4480
4485
  fixedOverflowWidgets: true,
4481
4486
  scrollBeyondLastLine: false
@@ -4569,7 +4574,8 @@ const ArcgisCodeEditor = class {
4569
4574
  static get watchers() { return {
4570
4575
  "value": ["valuePropChange"],
4571
4576
  "language": ["languagePropChange"],
4572
- "modelId": ["modelIdPropChange"]
4577
+ "modelId": ["modelIdPropChange"],
4578
+ "options": ["optionsPropChange"]
4573
4579
  }; }
4574
4580
  };
4575
4581
  ArcgisCodeEditor.style = codeEditorCss;
@@ -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.5
4
+ * v4.29.6
5
5
  */
6
6
  'use strict';
7
7
 
8
8
  Object.defineProperty(exports, '__esModule', { value: true });
9
9
 
10
- const index = require('./index-69db6bc6.js');
10
+ const index = require('./index-dbf35f05.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],"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"],"editorOptions":[16],"_lang":[32],"_t9nLocale":[32],"_t9nStrings":[32],"_standaloneCodeEditor":[32],"_preparingProfile":[32],"_editorProfile":[32],"_showExecutionPanel":[32],"_resultPanel":[32],"_executingScript":[32],"_consoleLogs":[32],"_executionResult":[32],"getScript":[64],"setFocus":[64],"getEditorInstance":[64],"getTestResult":[64],"updateThemeColors":[64]},null,{"profile":["_profileChanged"],"testData":["_testDataChanged"],"snippets":["_snippetChanged"]}],[1,"arcgis-arcade-api",{"hideDocumentationActions":[4,"hide-documentation-actions"],"modelId":[1,"model-id"],"_lang":[32],"_t9nLocale":[32],"_t9nStrings":[32],"_selectedApiItem":[32],"_filterValue":[32],"_colorizeStyle":[32],"_preparingApi":[32],"_apiLibrary":[32]}],[1,"arcgis-arcade-results",{"loading":[4],"openedResultPanel":[1537,"opened-result-panel"],"result":[16],"consoleLogs":[16],"_lang":[32],"_t9nLocale":[32],"_t9nStrings":[32]}],[1,"arcgis-arcade-suggestions",{"suggestions":[16],"_lang":[32],"_t9nLocale":[32],"_t9nStrings":[32],"_selectedSuggestion":[32],"_filterValue":[32],"_colorizeStyle":[32]},null,{"suggestions":["suggestionsPropChanged"]}],[1,"arcgis-arcade-variables",{"loading":[4],"modelId":[1,"model-id"],"_lang":[32],"_t9nLocale":[32],"_t9nStrings":[32],"_mutationCounter":[32],"_flowItemRenderers":[32],"_filterValue":[32]},null,{"modelId":["modelIdPropChanged"]}],[0,"arcgis-code-editor",{"value":[1],"language":[1],"modelId":[1,"model-id"],"options":[16],"getValue":[64],"setValue":[64],"insertText":[64],"insertSnippet":[64],"getEditorInstance":[64],"setFocus":[64]},null,{"value":["valuePropChange"],"language":["languagePropChange"],"modelId":["modelIdPropChange"],"options":["optionsPropChange"]}]]]], options);
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.5
4
+ * v4.29.6
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.5
4
+ * v4.29.6
5
5
  */
6
6
  'use strict';
7
7
 
8
- const arcadeDefaults = require('./arcade-defaults-f3afa4a9.js');
9
- require('./index-69db6bc6.js');
8
+ const arcadeDefaults = require('./arcade-defaults-bb91d772.js');
9
+ require('./index-dbf35f05.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.5
4
+ * v4.29.6
5
5
  */
6
6
  'use strict';
7
7
 
8
- const arcadeDefaults = require('./arcade-defaults-f3afa4a9.js');
9
- require('./index-69db6bc6.js');
8
+ const arcadeDefaults = require('./arcade-defaults-bb91d772.js');
9
+ require('./index-dbf35f05.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.5
4
+ * v4.29.6
5
5
  */
6
6
  'use strict';
7
7
 
8
- const arcadeDefaults = require('./arcade-defaults-f3afa4a9.js');
9
- require('./index-69db6bc6.js');
8
+ const arcadeDefaults = require('./arcade-defaults-bb91d772.js');
9
+ require('./index-dbf35f05.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.5
4
+ * v4.29.6
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.5
4
+ * v4.29.6
5
5
  */
6
6
  'use strict';
7
7
 
8
8
  Object.defineProperty(exports, '__esModule', { value: true });
9
9
 
10
- const arcadeDefaults = require('./arcade-defaults-f3afa4a9.js');
11
- require('./index-69db6bc6.js');
10
+ const arcadeDefaults = require('./arcade-defaults-bb91d772.js');
11
+ require('./index-dbf35f05.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.5
4
+ * v4.29.6
5
5
  */
6
6
  'use strict';
7
7
 
8
- const typescript = require('./typescript-c84caf0f.js');
9
- require('./arcade-defaults-f3afa4a9.js');
10
- require('./index-69db6bc6.js');
8
+ const typescript = require('./typescript-d7c1e747.js');
9
+ require('./arcade-defaults-bb91d772.js');
10
+ require('./index-dbf35f05.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.5
4
+ * v4.29.6
5
5
  */
6
6
  'use strict';
7
7
 
8
- const arcadeDefaults = require('./arcade-defaults-f3afa4a9.js');
9
- require('./index-69db6bc6.js');
8
+ const arcadeDefaults = require('./arcade-defaults-bb91d772.js');
9
+ require('./index-dbf35f05.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.5
4
+ * v4.29.6
5
5
  */
6
6
  'use strict';
7
7
 
8
8
  Object.defineProperty(exports, '__esModule', { value: true });
9
9
 
10
- const index = require('./index-69db6bc6.js');
10
+ const index = require('./index-dbf35f05.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],"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"],"editorOptions":[16],"_lang":[32],"_t9nLocale":[32],"_t9nStrings":[32],"_standaloneCodeEditor":[32],"_preparingProfile":[32],"_editorProfile":[32],"_showExecutionPanel":[32],"_resultPanel":[32],"_executingScript":[32],"_consoleLogs":[32],"_executionResult":[32],"getScript":[64],"setFocus":[64],"getEditorInstance":[64],"getTestResult":[64],"updateThemeColors":[64]},null,{"profile":["_profileChanged"],"testData":["_testDataChanged"],"snippets":["_snippetChanged"]}],[1,"arcgis-arcade-api",{"hideDocumentationActions":[4,"hide-documentation-actions"],"modelId":[1,"model-id"],"_lang":[32],"_t9nLocale":[32],"_t9nStrings":[32],"_selectedApiItem":[32],"_filterValue":[32],"_colorizeStyle":[32],"_preparingApi":[32],"_apiLibrary":[32]}],[1,"arcgis-arcade-results",{"loading":[4],"openedResultPanel":[1537,"opened-result-panel"],"result":[16],"consoleLogs":[16],"_lang":[32],"_t9nLocale":[32],"_t9nStrings":[32]}],[1,"arcgis-arcade-suggestions",{"suggestions":[16],"_lang":[32],"_t9nLocale":[32],"_t9nStrings":[32],"_selectedSuggestion":[32],"_filterValue":[32],"_colorizeStyle":[32]},null,{"suggestions":["suggestionsPropChanged"]}],[1,"arcgis-arcade-variables",{"loading":[4],"modelId":[1,"model-id"],"_lang":[32],"_t9nLocale":[32],"_t9nStrings":[32],"_mutationCounter":[32],"_flowItemRenderers":[32],"_filterValue":[32]},null,{"modelId":["modelIdPropChanged"]}],[0,"arcgis-code-editor",{"value":[1],"language":[1],"modelId":[1,"model-id"],"options":[16],"getValue":[64],"setValue":[64],"insertText":[64],"insertSnippet":[64],"getEditorInstance":[64],"setFocus":[64]},null,{"value":["valuePropChange"],"language":["languagePropChange"],"modelId":["modelIdPropChange"],"options":["optionsPropChange"]}]]]], options);
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.5
4
+ * v4.29.6
5
5
  */
6
6
  'use strict';
7
7
 
8
- const arcadeDefaults = require('./arcade-defaults-f3afa4a9.js');
9
- require('./index-69db6bc6.js');
8
+ const arcadeDefaults = require('./arcade-defaults-bb91d772.js');
9
+ require('./index-dbf35f05.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.5
4
+ * v4.29.6
5
5
  */
6
6
  'use strict';
7
7
 
8
- const arcadeDefaults = require('./arcade-defaults-f3afa4a9.js');
9
- require('./index-69db6bc6.js');
8
+ const arcadeDefaults = require('./arcade-defaults-bb91d772.js');
9
+ require('./index-dbf35f05.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.5
4
+ * v4.29.6
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,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.5
4
+ * v4.29.6
5
5
  */
6
6
  import { languages } from 'monaco-editor';
7
7
  import { b as arcadeDefaults } from './arcade-defaults.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.5
4
+ * v4.29.6
5
5
  */
6
6
  import { Emitter, Uri } from 'monaco-editor';
7
7
  import { InsertTextMode, InsertTextFormat, CompletionItemKind } from 'vscode-languageserver-types';
@@ -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.5
4
+ * v4.29.6
5
5
  */
6
6
  import { editor, MarkerSeverity, Range, languages, Emitter } from 'monaco-editor';
7
7
  import { CompletionItemKind, DiagnosticSeverity, InsertTextFormat } from 'vscode-languageserver-types';
@@ -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.5
4
+ * v4.29.6
5
5
  */
6
6
  import { proxyCustomElement, HTMLElement, createEvent, getAssetPath, h, Fragment, Host } from '@stencil/core/internal/client';
7
7
  import { g as importArcade, s as supportedFields } from './fields.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.5
4
+ * v4.29.6
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, b as colorizeCodeElement } from './markdown.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.5
4
+ * v4.29.6
5
5
  */
6
6
  import { proxyCustomElement, HTMLElement, createEvent, getAssetPath, h } from '@stencil/core/internal/client';
7
7
  import { B, q, W, K } from './index2.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.5
4
+ * v4.29.6
5
5
  */
6
6
  import { A as ArcgisArcadeApi$1, d as defineCustomElement$1 } from './arcade-api.js';
7
7
 
@@ -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.5
4
+ * v4.29.6
5
5
  */
6
6
  import { proxyCustomElement, HTMLElement, createEvent, getAssetPath, h as h$1, Fragment, Host } from '@stencil/core/internal/client';
7
7
  import { editor, KeyCode } from 'monaco-editor';
@@ -157,6 +157,7 @@ const ArcgisArcadeEditor$1 = /*@__PURE__*/ proxyCustomElement(class ArcgisArcade
157
157
  this.hideSideBar = false;
158
158
  this.sideActionBarExpanded = false;
159
159
  this.openedSidePanel = "none";
160
+ this.editorOptions = undefined;
160
161
  }
161
162
  _profileChanged(newValue, oldValue) {
162
163
  // Prevent the execution as long as the component has not been fully loaded
@@ -324,11 +325,7 @@ const ArcgisArcadeEditor$1 = /*@__PURE__*/ proxyCustomElement(class ArcgisArcade
324
325
  //#endregion
325
326
  //#region Render Main Panel
326
327
  renderMainPanel() {
327
- return (
328
- // <div class="flex-adjustable">
329
- h$1("arcgis-code-editor", { class: "flex-adjustable", language: arcadeDefaults.languageId, value: this.script ?? "", modelId: this._modelId, onValueChange: this._emitScriptChange, ref: (e) => (this._codeEditorElt = e) })
330
- // </div>
331
- );
328
+ return (h$1("arcgis-code-editor", { class: "flex-adjustable", language: arcadeDefaults.languageId, value: this.script ?? "", modelId: this._modelId, options: this.editorOptions, onValueChange: this._emitScriptChange, ref: (e) => (this._codeEditorElt = e) }));
332
329
  }
333
330
  //#endregion
334
331
  //#region Rendering the Action Bar
@@ -419,6 +416,7 @@ const ArcgisArcadeEditor$1 = /*@__PURE__*/ proxyCustomElement(class ArcgisArcade
419
416
  "hideSideBar": [4, "hide-side-bar"],
420
417
  "sideActionBarExpanded": [1540, "side-action-bar-expanded"],
421
418
  "openedSidePanel": [1537, "opened-side-panel"],
419
+ "editorOptions": [16],
422
420
  "_lang": [32],
423
421
  "_t9nLocale": [32],
424
422
  "_t9nStrings": [32],
@@ -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.5
4
+ * v4.29.6
5
5
  */
6
6
  import { A as ArcgisArcadeResults$1, d as defineCustomElement$1 } from './arcade-results.js';
7
7
 
@@ -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.5
4
+ * v4.29.6
5
5
  */
6
6
  import { A as ArcgisArcadeSuggestions$1, d as defineCustomElement$1 } from './arcade-suggestions.js';
7
7
 
@@ -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.5
4
+ * v4.29.6
5
5
  */
6
6
  import { A as ArcgisArcadeVariables$1, d as defineCustomElement$1 } from './arcade-variables.js';
7
7
 
@@ -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.5
4
+ * v4.29.6
5
5
  */
6
6
  import { A as ArcgisCodeEditor$1, d as defineCustomElement$1 } from './code-editor.js';
7
7
 
@@ -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.5
4
+ * v4.29.6
5
5
  */
6
6
  import { proxyCustomElement, HTMLElement, createEvent, getAssetPath, h as h$1, Host } from '@stencil/core/internal/client';
7
7
  import { Range, editor, Uri, KeyMod, KeyCode } from 'monaco-editor';
@@ -34,6 +34,7 @@ const ArcgisCodeEditor = /*@__PURE__*/ proxyCustomElement(class ArcgisCodeEditor
34
34
  this.value = undefined;
35
35
  this.language = undefined;
36
36
  this.modelId = U();
37
+ this.options = undefined;
37
38
  }
38
39
  valuePropChange(newValue, oldValue) {
39
40
  if (!this._editorInstance || newValue === oldValue) {
@@ -53,6 +54,12 @@ const ArcgisCodeEditor = /*@__PURE__*/ proxyCustomElement(class ArcgisCodeEditor
53
54
  }
54
55
  this.updateModel();
55
56
  }
57
+ optionsPropChange(newValue) {
58
+ if (!this._editorInstance || !newValue) {
59
+ return;
60
+ }
61
+ this._editorInstance.updateOptions(newValue);
62
+ }
56
63
  //#endregion
57
64
  // #region Public methods API
58
65
  /**
@@ -151,6 +158,7 @@ const ArcgisCodeEditor = /*@__PURE__*/ proxyCustomElement(class ArcgisCodeEditor
151
158
  // Create the editor for the host element.
152
159
  // This will not trigger a diagnostic.
153
160
  this._editorInstance = editor.create(this._hostElt, {
161
+ ...(this.options ?? {}),
154
162
  model,
155
163
  fixedOverflowWidgets: true,
156
164
  scrollBeyondLastLine: false
@@ -244,13 +252,15 @@ const ArcgisCodeEditor = /*@__PURE__*/ proxyCustomElement(class ArcgisCodeEditor
244
252
  static get watchers() { return {
245
253
  "value": ["valuePropChange"],
246
254
  "language": ["languagePropChange"],
247
- "modelId": ["modelIdPropChange"]
255
+ "modelId": ["modelIdPropChange"],
256
+ "options": ["optionsPropChange"]
248
257
  }; }
249
258
  static get style() { return codeEditorCss; }
250
259
  }, [0, "arcgis-code-editor", {
251
260
  "value": [1],
252
261
  "language": [1],
253
262
  "modelId": [1, "model-id"],
263
+ "options": [16],
254
264
  "getValue": [64],
255
265
  "setValue": [64],
256
266
  "insertText": [64],
@@ -260,7 +270,8 @@ const ArcgisCodeEditor = /*@__PURE__*/ proxyCustomElement(class ArcgisCodeEditor
260
270
  }, undefined, {
261
271
  "value": ["valuePropChange"],
262
272
  "language": ["languagePropChange"],
263
- "modelId": ["modelIdPropChange"]
273
+ "modelId": ["modelIdPropChange"],
274
+ "options": ["optionsPropChange"]
264
275
  }]);
265
276
  function defineCustomElement() {
266
277
  if (typeof customElements === "undefined") {