@arcgis/coding-components 4.30.0-next.0 → 4.30.0-next.2

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 (78) hide show
  1. package/README.md +2 -0
  2. package/dist/arcgis-coding-components/arcgis-coding-components.esm.js +2 -2
  3. package/dist/arcgis-coding-components/assets/arcade-language/t9n/profile.t9n.en.json +2 -0
  4. package/dist/arcgis-coding-components/index.esm.js +2 -2
  5. package/dist/arcgis-coding-components/{p-94841fa0.js → p-1f472679.js} +2 -2
  6. package/dist/arcgis-coding-components/{p-e1ba5135.js → p-1f933dba.js} +2 -2
  7. package/dist/arcgis-coding-components/{p-58af3ef8.js → p-30100e82.js} +1 -1
  8. package/dist/arcgis-coding-components/{p-74f09606.js → p-30e98420.js} +10 -10
  9. package/dist/arcgis-coding-components/{p-d1d9012a.js → p-758218e2.js} +2 -2
  10. package/dist/arcgis-coding-components/{p-53ed4d0b.js → p-8c6bf361.js} +2 -2
  11. package/dist/arcgis-coding-components/{p-f5feaf75.js → p-b22a71b8.js} +1 -1
  12. package/dist/arcgis-coding-components/{p-be2f2746.js → p-c4b91917.js} +3 -3
  13. package/dist/arcgis-coding-components/{p-e6a14b51.js → p-e55a59ff.js} +2 -2
  14. package/dist/arcgis-coding-components/p-f0b811ba.entry.js +6 -0
  15. package/dist/arcgis-coding-components/{p-e769db2c.js → p-f3068c90.js} +2 -2
  16. package/dist/arcgis-coding-components/{p-1cd7563b.js → p-fdf8d908.js} +2 -2
  17. package/dist/cjs/{arcade-defaults-116ec741.js → arcade-defaults-eb3968a5.js} +42 -17
  18. package/dist/cjs/{arcade-mode-1568f304.js → arcade-mode-5275cbeb.js} +3 -3
  19. package/dist/cjs/arcgis-arcade-api_6.cjs.entry.js +27 -28
  20. package/dist/cjs/arcgis-coding-components.cjs.js +3 -3
  21. package/dist/cjs/{css-783129f2.js → css-bbfdb831.js} +1 -1
  22. package/dist/cjs/{cssMode-ea737a4f.js → cssMode-f296c8f9.js} +3 -3
  23. package/dist/cjs/{html-1592d53e.js → html-bc3c7f14.js} +3 -3
  24. package/dist/cjs/{htmlMode-00d63c80.js → htmlMode-651ef412.js} +3 -3
  25. package/dist/cjs/{index-2a242e78.js → index-d28fe547.js} +1 -1
  26. package/dist/cjs/index.cjs.js +3 -3
  27. package/dist/cjs/{javascript-4f36066e.js → javascript-a30f18a4.js} +4 -4
  28. package/dist/cjs/{jsonMode-1a4a229c.js → jsonMode-6861e18a.js} +3 -3
  29. package/dist/cjs/loader.cjs.js +3 -3
  30. package/dist/cjs/{tsMode-2250adae.js → tsMode-8b347861.js} +3 -3
  31. package/dist/cjs/{typescript-e0aa847b.js → typescript-44b2647a.js} +3 -3
  32. package/dist/components/arcade-api.js +13 -12
  33. package/dist/components/arcade-contribution.js +1 -1
  34. package/dist/components/arcade-defaults.js +34 -9
  35. package/dist/components/arcade-mode.js +1 -1
  36. package/dist/components/arcade-results.js +12 -11
  37. package/dist/components/arcade-suggestions.js +12 -11
  38. package/dist/components/arcade-variables.js +12 -11
  39. package/dist/components/arcgis-arcade-api.js +1 -1
  40. package/dist/components/arcgis-arcade-editor.js +15 -23
  41. package/dist/components/arcgis-arcade-results.js +1 -1
  42. package/dist/components/arcgis-arcade-suggestions.js +1 -1
  43. package/dist/components/arcgis-arcade-variables.js +1 -1
  44. package/dist/components/arcgis-assets.js +12 -0
  45. package/dist/components/arcgis-code-editor.js +1 -1
  46. package/dist/components/code-editor.js +22 -10
  47. package/dist/components/fields.js +1 -1
  48. package/dist/components/index.js +3 -2
  49. package/dist/components/index2.js +1 -1
  50. package/dist/components/markdown.js +1 -1
  51. package/dist/components/utilities.js +1 -1
  52. package/dist/esm/{arcade-defaults-80f61735.js → arcade-defaults-631dc093.js} +42 -17
  53. package/dist/esm/{arcade-mode-686cb41f.js → arcade-mode-43856469.js} +3 -3
  54. package/dist/esm/arcgis-arcade-api_6.entry.js +27 -28
  55. package/dist/esm/arcgis-coding-components.js +4 -4
  56. package/dist/esm/{css-bbfd2b32.js → css-6b2305f7.js} +1 -1
  57. package/dist/esm/{cssMode-f294e128.js → cssMode-4a41975b.js} +3 -3
  58. package/dist/esm/{html-323efee8.js → html-b3b2f1bc.js} +3 -3
  59. package/dist/esm/{htmlMode-47c1317c.js → htmlMode-cedfb87b.js} +3 -3
  60. package/dist/esm/{index-b3656b7b.js → index-84f054b0.js} +1 -1
  61. package/dist/esm/index.js +3 -3
  62. package/dist/esm/{javascript-382166f6.js → javascript-2482aacb.js} +4 -4
  63. package/dist/esm/{jsonMode-6e9a0acf.js → jsonMode-8afe11aa.js} +3 -3
  64. package/dist/esm/loader.js +4 -4
  65. package/dist/esm/{tsMode-ad3a38e5.js → tsMode-f4368447.js} +3 -3
  66. package/dist/esm/{typescript-f090f4b9.js → typescript-40b2f5cb.js} +3 -3
  67. package/dist/loader/cdn.js +1 -1
  68. package/dist/loader/index.cjs.js +1 -1
  69. package/dist/loader/index.es2017.js +1 -1
  70. package/dist/loader/index.js +1 -1
  71. package/dist/types/components/arcade-editor/arcade-editor.d.ts +7 -3
  72. package/dist/types/components/code-editor/code-editor.d.ts +10 -4
  73. package/dist/types/components.d.ts +17 -1
  74. package/dist/types/utils/profile/editor-profile.d.ts +1 -1
  75. package/dist/types/utils/profile/types.d.ts +1 -1
  76. package/dist/types/utils/profile/utils.d.ts +4 -1
  77. package/package.json +11 -13
  78. package/dist/arcgis-coding-components/p-c7946869.entry.js +0 -6
@@ -1,9 +1,9 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  * See https://js.arcgis.com/4.30/esri/copyright.txt for details.
4
- * v4.30.0-next.0
4
+ * v4.30.0-next.2
5
5
  */
6
- import{u as t,t as e}from"./p-74f09606.js";import"./p-58af3ef8.js";
6
+ import{u as t,t as e}from"./p-30e98420.js";import"./p-30100e82.js";
7
7
  /*!-----------------------------------------------------------------------------
8
8
  * Copyright (c) Microsoft Corporation. All rights reserved.
9
9
  * Version: 0.45.0(5e5af013f8d295555a7210df0d5f2cea0bf5dd56)
@@ -1,9 +1,9 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  * See https://js.arcgis.com/4.30/esri/copyright.txt for details.
4
- * v4.30.0-next.0
4
+ * v4.30.0-next.2
5
5
  */
6
- import{t}from"./p-74f09606.js";import"./p-58af3ef8.js";
6
+ import{t}from"./p-30e98420.js";import"./p-30100e82.js";
7
7
  /*!-----------------------------------------------------------------------------
8
8
  * Copyright (c) Microsoft Corporation. All rights reserved.
9
9
  * Version: 0.45.0(5e5af013f8d295555a7210df0d5f2cea0bf5dd56)
@@ -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.30/esri/copyright.txt for details.
4
- * v4.30.0-next.0
4
+ * v4.30.0-next.2
5
5
  */
6
6
  'use strict';
7
7
 
8
- const index = require('./index-2a242e78.js');
8
+ const index = require('./index-d28fe547.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-783129f2.js'); });
120547
+ return Promise.resolve().then(function () { return require('./css-bbfdb831.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-1592d53e.js'); });
120565
+ return Promise.resolve().then(function () { return require('./html-bc3c7f14.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-4f36066e.js'); });
120585
+ return Promise.resolve().then(function () { return require('./javascript-a30f18a4.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-e0aa847b.js'); });
120603
+ return Promise.resolve().then(function () { return require('./typescript-44b2647a.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-ea737a4f.js'); });
120724
+ return Promise.resolve().then(function () { return require('./cssMode-f296c8f9.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-00d63c80.js'); });
120849
+ return Promise.resolve().then(function () { return require('./htmlMode-651ef412.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-1a4a229c.js'); });
120951
+ return Promise.resolve().then(function () { return require('./jsonMode-6861e18a.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-2250adae.js'); });
121220
+ return Promise.resolve().then(function () { return require('./tsMode-8b347861.js'); });
121221
121221
  }
121222
121222
  }
121223
121223
  monaco_editor_core_exports.languages.onLanguage("typescript", () => {
@@ -169062,7 +169062,18 @@ function isMapInstance(item) {
169062
169062
  typeof item === "object" &&
169063
169063
  "declaredClass" in item &&
169064
169064
  typeof item.declaredClass === "string" &&
169065
- (item.declaredClass === "esri.WebMap" || item.declaredClass === "esri.WebScene"));
169065
+ (item.declaredClass === "esri.Map" ||
169066
+ item.declaredClass === "esri.WebMap" ||
169067
+ item.declaredClass === "esri.WebScene"));
169068
+ }
169069
+ function isWebMapInstance(item) {
169070
+ return item.declaredClass === "esri.WebMap";
169071
+ }
169072
+ function isWebSceneInstance(item) {
169073
+ return item.declaredClass === "esri.WebScene";
169074
+ }
169075
+ function isLoadableMapInstance(item) {
169076
+ return item.declaredClass === "esri.WebMap" || item.declaredClass === "esri.WebScene";
169066
169077
  }
169067
169078
  function isPortalItemDefinition(item) {
169068
169079
  return !!item && typeof item === "object" && "portalItem" in item && item.portalItem != null;
@@ -169363,6 +169374,12 @@ function assembleMemberExpression(obj, prop) {
169363
169374
  }
169364
169375
  return `${obj}${getMemberExpressionProperty(prop)}`;
169365
169376
  }
169377
+ function getMapPortalItem(map) {
169378
+ if (isWebMapInstance(map) || isWebSceneInstance(map)) {
169379
+ return map.portalItem;
169380
+ }
169381
+ return null;
169382
+ }
169366
169383
  //#endregion
169367
169384
  //#region Editor Profile to Language Service Profile functions
169368
169385
  async function variablesToLSVariable(editorVariables, kind = main.CompletionItemKind.Variable) {
@@ -170198,7 +170215,7 @@ class FeatureSetCollectionVariable extends CollectionBasedVariable {
170198
170215
  return null;
170199
170216
  }
170200
170217
  if (typeof this._featureSetCollections.source !== "string") {
170201
- return portalItemPageUrl(this._featureSetCollections.source.portalItem);
170218
+ return portalItemPageUrl(getMapPortalItem(this._featureSetCollections.source));
170202
170219
  }
170203
170220
  // const firstLayer = this._featureSetCollection.layers[0] ?? this._featureSetCollection.tables[0];
170204
170221
  // if (!firstLayer) {
@@ -170210,10 +170227,16 @@ class FeatureSetCollectionVariable extends CollectionBasedVariable {
170210
170227
  if (!this.loaded || !this._featureSetCollections) {
170211
170228
  return "";
170212
170229
  }
170213
- if (typeof this._featureSetCollections.source !== "string") {
170230
+ if (typeof this._featureSetCollections.source === "string") {
170231
+ return this._profile?.intlStrings.featureservice ?? "featureservice";
170232
+ }
170233
+ if (isWebSceneInstance(this._featureSetCollections.source)) {
170234
+ return this._profile?.intlStrings.webscene ?? "webscene";
170235
+ }
170236
+ if (isWebMapInstance(this._featureSetCollections.source)) {
170214
170237
  return this._profile?.intlStrings.webmap ?? "webmap";
170215
170238
  }
170216
- return this._profile?.intlStrings.featureservice ?? "featureservice";
170239
+ return this._profile?.intlStrings.map ?? "map";
170217
170240
  }
170218
170241
  async loadSource() {
170219
170242
  if (ee(this._loadPromise) && te(this._loadPromise)) {
@@ -170237,7 +170260,7 @@ class FeatureSetCollectionVariable extends CollectionBasedVariable {
170237
170260
  : {
170238
170261
  code: "webmapformat",
170239
170262
  formatValues: {
170240
- webMapTitle: this._featureSetCollections.source.portalItem?.title || "Untitled map"
170263
+ webMapTitle: getMapPortalItem(this._featureSetCollections.source)?.title || "Untitled map"
170241
170264
  }
170242
170265
  };
170243
170266
  const headerGroup = new GroupOfVariables(this._profile, groupLabel, [
@@ -170284,8 +170307,10 @@ class FeatureSetCollectionVariable extends CollectionBasedVariable {
170284
170307
  return null;
170285
170308
  }
170286
170309
  async _featureSetCollectionFromMap(map) {
170287
- // Make sure the map is loaded
170288
- await map.loadAll();
170310
+ if (isLoadableMapInstance(map)) {
170311
+ // Make sure the map is loaded
170312
+ await map.loadAll();
170313
+ }
170289
170314
  // Until jsapi fix a bug we have to load the table separately
170290
170315
  await Promise.all(map.tables.map(async (t) => (await t.load())));
170291
170316
  return {
@@ -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.30/esri/copyright.txt for details.
4
- * v4.30.0-next.0
4
+ * v4.30.0-next.2
5
5
  */
6
6
  'use strict';
7
7
 
8
- const arcadeDefaults = require('./arcade-defaults-116ec741.js');
9
- require('./index-2a242e78.js');
8
+ const arcadeDefaults = require('./arcade-defaults-eb3968a5.js');
9
+ require('./index-d28fe547.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.30/esri/copyright.txt for details.
4
- * v4.30.0-next.0
4
+ * v4.30.0-next.2
5
5
  */
6
6
  'use strict';
7
7
 
8
8
  Object.defineProperty(exports, '__esModule', { value: true });
9
9
 
10
- const index = require('./index-2a242e78.js');
11
- const arcadeDefaults = require('./arcade-defaults-116ec741.js');
10
+ const index = require('./index-d28fe547.js');
11
+ const arcadeDefaults = require('./arcade-defaults-eb3968a5.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-1568f304.js'); });
3031
+ return await Promise.resolve().then(function () { return require('./arcade-mode-5275cbeb.js'); });
3032
3032
  }
3033
3033
  // Register the language in Monaco
3034
3034
  arcadeDefaults.languages.register({
@@ -3565,24 +3565,18 @@ 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
- _profileChanged(newValue, oldValue) {
3570
- // Prevent the execution as long as the component has not been fully loaded
3571
- if (newValue === oldValue) {
3572
- return;
3573
- }
3570
+ _profileChanged() {
3574
3571
  this._updateEditorProfile().catch(console.error);
3575
3572
  }
3576
- _testDataChanged(newValue, oldValue) {
3577
- if (newValue === oldValue || !this._showExecutionPanel) {
3573
+ _testDataChanged() {
3574
+ if (!this._showExecutionPanel) {
3578
3575
  return;
3579
3576
  }
3580
3577
  this._executeScript().catch(console.error);
3581
3578
  }
3582
- _snippetChanged(newValue, oldValue) {
3583
- if (newValue === oldValue) {
3584
- return;
3585
- }
3579
+ _snippetChanged() {
3586
3580
  arcadeDefaults.arcadeDefaults.updateApiContextForModel(this._modelId, {
3587
3581
  snippets: this.snippets
3588
3582
  });
@@ -3611,7 +3605,7 @@ const ArcgisArcadeEditor = class {
3611
3605
  */
3612
3606
  async getEditorInstance() {
3613
3607
  await this._componentReadyDefer.promise;
3614
- return (await this._codeEditorElt?.getEditorInstance());
3608
+ return await this._codeEditorElt?.getEditorInstance();
3615
3609
  }
3616
3610
  /**
3617
3611
  * Returns the Arcade result for the script for the provided test data.
@@ -3732,11 +3726,7 @@ const ArcgisArcadeEditor = class {
3732
3726
  //#endregion
3733
3727
  //#region Render Main Panel
3734
3728
  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
- );
3729
+ 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
3730
  }
3741
3731
  //#endregion
3742
3732
  //#region Rendering the Action Bar
@@ -4359,25 +4349,32 @@ const ArcgisCodeEditor = class {
4359
4349
  this.value = undefined;
4360
4350
  this.language = undefined;
4361
4351
  this.modelId = arcadeDefaults.U();
4352
+ this.options = undefined;
4362
4353
  }
4363
- valuePropChange(newValue, oldValue) {
4364
- if (!this._editorInstance || newValue === oldValue) {
4354
+ valuePropChange(newValue) {
4355
+ if (!this._editorInstance) {
4365
4356
  return;
4366
4357
  }
4367
4358
  this._editorInstance.setValue(newValue ?? "");
4368
4359
  }
4369
- languagePropChange(newValue, oldValue) {
4370
- if (!this._editorInstance || newValue === oldValue) {
4360
+ languagePropChange() {
4361
+ if (!this._editorInstance) {
4371
4362
  return;
4372
4363
  }
4373
4364
  this.updateModel();
4374
4365
  }
4375
- modelIdPropChange(newValue, oldValue) {
4376
- if (!this._editorInstance || newValue === oldValue) {
4366
+ modelIdPropChange() {
4367
+ if (!this._editorInstance) {
4377
4368
  return;
4378
4369
  }
4379
4370
  this.updateModel();
4380
4371
  }
4372
+ optionsPropChange(newValue) {
4373
+ if (!this._editorInstance || !newValue) {
4374
+ return;
4375
+ }
4376
+ this._editorInstance.updateOptions(newValue);
4377
+ }
4381
4378
  //#endregion
4382
4379
  // #region Public methods API
4383
4380
  /**
@@ -4476,6 +4473,7 @@ const ArcgisCodeEditor = class {
4476
4473
  // Create the editor for the host element.
4477
4474
  // This will not trigger a diagnostic.
4478
4475
  this._editorInstance = arcadeDefaults.editor.create(this._hostElt, {
4476
+ ...(this.options ?? {}),
4479
4477
  model,
4480
4478
  fixedOverflowWidgets: true,
4481
4479
  scrollBeyondLastLine: false
@@ -4569,7 +4567,8 @@ const ArcgisCodeEditor = class {
4569
4567
  static get watchers() { return {
4570
4568
  "value": ["valuePropChange"],
4571
4569
  "language": ["languagePropChange"],
4572
- "modelId": ["modelIdPropChange"]
4570
+ "modelId": ["modelIdPropChange"],
4571
+ "options": ["optionsPropChange"]
4573
4572
  }; }
4574
4573
  };
4575
4574
  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.30/esri/copyright.txt for details.
4
- * v4.30.0-next.0
4
+ * v4.30.0-next.2
5
5
  */
6
6
  'use strict';
7
7
 
8
8
  Object.defineProperty(exports, '__esModule', { value: true });
9
9
 
10
- const index = require('./index-2a242e78.js');
10
+ const index = require('./index-d28fe547.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.30/esri/copyright.txt for details.
4
- * v4.30.0-next.0
4
+ * v4.30.0-next.2
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.30/esri/copyright.txt for details.
4
- * v4.30.0-next.0
4
+ * v4.30.0-next.2
5
5
  */
6
6
  'use strict';
7
7
 
8
- const arcadeDefaults = require('./arcade-defaults-116ec741.js');
9
- require('./index-2a242e78.js');
8
+ const arcadeDefaults = require('./arcade-defaults-eb3968a5.js');
9
+ require('./index-d28fe547.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.30/esri/copyright.txt for details.
4
- * v4.30.0-next.0
4
+ * v4.30.0-next.2
5
5
  */
6
6
  'use strict';
7
7
 
8
- const arcadeDefaults = require('./arcade-defaults-116ec741.js');
9
- require('./index-2a242e78.js');
8
+ const arcadeDefaults = require('./arcade-defaults-eb3968a5.js');
9
+ require('./index-d28fe547.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.30/esri/copyright.txt for details.
4
- * v4.30.0-next.0
4
+ * v4.30.0-next.2
5
5
  */
6
6
  'use strict';
7
7
 
8
- const arcadeDefaults = require('./arcade-defaults-116ec741.js');
9
- require('./index-2a242e78.js');
8
+ const arcadeDefaults = require('./arcade-defaults-eb3968a5.js');
9
+ require('./index-d28fe547.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.30/esri/copyright.txt for details.
4
- * v4.30.0-next.0
4
+ * v4.30.0-next.2
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.30/esri/copyright.txt for details.
4
- * v4.30.0-next.0
4
+ * v4.30.0-next.2
5
5
  */
6
6
  'use strict';
7
7
 
8
8
  Object.defineProperty(exports, '__esModule', { value: true });
9
9
 
10
- const arcadeDefaults = require('./arcade-defaults-116ec741.js');
11
- require('./index-2a242e78.js');
10
+ const arcadeDefaults = require('./arcade-defaults-eb3968a5.js');
11
+ require('./index-d28fe547.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.30/esri/copyright.txt for details.
4
- * v4.30.0-next.0
4
+ * v4.30.0-next.2
5
5
  */
6
6
  'use strict';
7
7
 
8
- const typescript = require('./typescript-e0aa847b.js');
9
- require('./arcade-defaults-116ec741.js');
10
- require('./index-2a242e78.js');
8
+ const typescript = require('./typescript-44b2647a.js');
9
+ require('./arcade-defaults-eb3968a5.js');
10
+ require('./index-d28fe547.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.30/esri/copyright.txt for details.
4
- * v4.30.0-next.0
4
+ * v4.30.0-next.2
5
5
  */
6
6
  'use strict';
7
7
 
8
- const arcadeDefaults = require('./arcade-defaults-116ec741.js');
9
- require('./index-2a242e78.js');
8
+ const arcadeDefaults = require('./arcade-defaults-eb3968a5.js');
9
+ require('./index-d28fe547.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.30/esri/copyright.txt for details.
4
- * v4.30.0-next.0
4
+ * v4.30.0-next.2
5
5
  */
6
6
  'use strict';
7
7
 
8
8
  Object.defineProperty(exports, '__esModule', { value: true });
9
9
 
10
- const index = require('./index-2a242e78.js');
10
+ const index = require('./index-d28fe547.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.30/esri/copyright.txt for details.
4
- * v4.30.0-next.0
4
+ * v4.30.0-next.2
5
5
  */
6
6
  'use strict';
7
7
 
8
- const arcadeDefaults = require('./arcade-defaults-116ec741.js');
9
- require('./index-2a242e78.js');
8
+ const arcadeDefaults = require('./arcade-defaults-eb3968a5.js');
9
+ require('./index-d28fe547.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.30/esri/copyright.txt for details.
4
- * v4.30.0-next.0
4
+ * v4.30.0-next.2
5
5
  */
6
6
  'use strict';
7
7
 
8
- const arcadeDefaults = require('./arcade-defaults-116ec741.js');
9
- require('./index-2a242e78.js');
8
+ const arcadeDefaults = require('./arcade-defaults-eb3968a5.js');
9
+ require('./index-d28fe547.js');
10
10
 
11
11
  /*!-----------------------------------------------------------------------------
12
12
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,25 +1,26 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  * See https://js.arcgis.com/4.30/esri/copyright.txt for details.
4
- * v4.30.0-next.0
4
+ * v4.30.0-next.2
5
5
  */
6
- import { proxyCustomElement, HTMLElement, createEvent, getAssetPath, h, Host } from '@stencil/core/internal/client';
6
+ import { proxyCustomElement, HTMLElement, createEvent, 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';
8
8
  import { f as filterCollection } from './utilities.js';
9
9
  import { Uri } from 'monaco-editor';
10
10
  import { B, q, W, G } from './index2.js';
11
11
  import { b as arcadeDefaults } from './arcade-defaults.js';
12
12
  import { g as getArcadeWorker } from './arcade-contribution.js';
13
- import '@esri/calcite-components/dist/components/calcite-list-item-group.js';
14
- import '@esri/calcite-components/dist/components/calcite-list-item.js';
15
- import '@esri/calcite-components/dist/components/calcite-action.js';
16
- import '@esri/calcite-components/dist/components/calcite-flow-item.js';
17
- import '@esri/calcite-components/dist/components/calcite-button.js';
18
- import '@esri/calcite-components/dist/components/calcite-block.js';
19
- import '@esri/calcite-components/dist/components/calcite-flow.js';
20
- import '@esri/calcite-components/dist/components/calcite-input.js';
21
- import '@esri/calcite-components/dist/components/calcite-loader.js';
22
- import '@esri/calcite-components/dist/components/calcite-list.js';
13
+ import "@esri/calcite-components/dist/components/calcite-list-item-group.js";
14
+ import "@esri/calcite-components/dist/components/calcite-list-item.js";
15
+ import "@esri/calcite-components/dist/components/calcite-action.js";
16
+ import "@esri/calcite-components/dist/components/calcite-flow-item.js";
17
+ import "@esri/calcite-components/dist/components/calcite-button.js";
18
+ import "@esri/calcite-components/dist/components/calcite-block.js";
19
+ import "@esri/calcite-components/dist/components/calcite-flow.js";
20
+ import "@esri/calcite-components/dist/components/calcite-input.js";
21
+ import "@esri/calcite-components/dist/components/calcite-loader.js";
22
+ import "@esri/calcite-components/dist/components/calcite-list.js";
23
+ import { getAssetPath } from "./arcgis-assets.js";
23
24
 
24
25
  const arcadeApiCss = ":host{background-color:var(--calcite-color-foreground-1)}:host .notice-container{margin:var(--calcite-spacing-quarter);padding:var(--calcite-spacing-half);background-color:var(--calcite-color-foreground-1)}:host .sticky{position:sticky;top:0px;z-index:10}:host calcite-flow{height:100%}:host calcite-block p:first-of-type{margin-top:0}:host calcite-block code{font-family:var(--calcite-code-family)}:host calcite-block pre{direction:ltr;overflow-x:auto;background-color:var(--calcite-color-foreground-2);padding:var(--calcite-spacing-half)}:host calcite-block pre code{font-size:var(--calcite-font-size--2)}";
25
26
 
@@ -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.30/esri/copyright.txt for details.
4
- * v4.30.0-next.0
4
+ * v4.30.0-next.2
5
5
  */
6
6
  import { languages } from 'monaco-editor';
7
7
  import { b as arcadeDefaults } from './arcade-defaults.js';