@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,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
  import { Emitter, Uri } from 'monaco-editor';
7
7
  import { InsertTextMode, InsertTextFormat, CompletionItemKind } from 'vscode-languageserver-types';
8
8
  import { i as importLayersFeatureLayer, a as importRequest, s as supportedFields, n as newPortalPortalItem, b as newWebScene, c as newWebMap, f as fieldAlias, d as fieldTypeToIconName, e as fieldTypeToArcadeType } from './fields.js';
9
9
  import { p as portalItemPageUrl } from './utilities.js';
10
10
  import { e as ee, t as te, G, Z, E, v } from './index2.js';
11
- import { getAssetPath } from '@stencil/core/internal/client';
11
+ import { getAssetPath } from "./arcgis-assets.js";
12
12
 
13
13
  //#region core adapter fix
14
14
  async function newFeatureLayer(definition) {
@@ -61,7 +61,18 @@ function isMapInstance(item) {
61
61
  typeof item === "object" &&
62
62
  "declaredClass" in item &&
63
63
  typeof item.declaredClass === "string" &&
64
- (item.declaredClass === "esri.WebMap" || item.declaredClass === "esri.WebScene"));
64
+ (item.declaredClass === "esri.Map" ||
65
+ item.declaredClass === "esri.WebMap" ||
66
+ item.declaredClass === "esri.WebScene"));
67
+ }
68
+ function isWebMapInstance(item) {
69
+ return item.declaredClass === "esri.WebMap";
70
+ }
71
+ function isWebSceneInstance(item) {
72
+ return item.declaredClass === "esri.WebScene";
73
+ }
74
+ function isLoadableMapInstance(item) {
75
+ return item.declaredClass === "esri.WebMap" || item.declaredClass === "esri.WebScene";
65
76
  }
66
77
  function isPortalItemDefinition(item) {
67
78
  return !!item && typeof item === "object" && "portalItem" in item && item.portalItem != null;
@@ -242,6 +253,12 @@ function assembleMemberExpression(obj, prop) {
242
253
  }
243
254
  return `${obj}${getMemberExpressionProperty(prop)}`;
244
255
  }
256
+ function getMapPortalItem(map) {
257
+ if (isWebMapInstance(map) || isWebSceneInstance(map)) {
258
+ return map.portalItem;
259
+ }
260
+ return null;
261
+ }
245
262
  //#endregion
246
263
  //#region Editor Profile to Language Service Profile functions
247
264
  async function variablesToLSVariable(editorVariables, kind = CompletionItemKind.Variable) {
@@ -1077,7 +1094,7 @@ class FeatureSetCollectionVariable extends CollectionBasedVariable {
1077
1094
  return null;
1078
1095
  }
1079
1096
  if (typeof this._featureSetCollections.source !== "string") {
1080
- return portalItemPageUrl(this._featureSetCollections.source.portalItem);
1097
+ return portalItemPageUrl(getMapPortalItem(this._featureSetCollections.source));
1081
1098
  }
1082
1099
  // const firstLayer = this._featureSetCollection.layers[0] ?? this._featureSetCollection.tables[0];
1083
1100
  // if (!firstLayer) {
@@ -1089,10 +1106,16 @@ class FeatureSetCollectionVariable extends CollectionBasedVariable {
1089
1106
  if (!this.loaded || !this._featureSetCollections) {
1090
1107
  return "";
1091
1108
  }
1092
- if (typeof this._featureSetCollections.source !== "string") {
1109
+ if (typeof this._featureSetCollections.source === "string") {
1110
+ return this._profile?.intlStrings.featureservice ?? "featureservice";
1111
+ }
1112
+ if (isWebSceneInstance(this._featureSetCollections.source)) {
1113
+ return this._profile?.intlStrings.webscene ?? "webscene";
1114
+ }
1115
+ if (isWebMapInstance(this._featureSetCollections.source)) {
1093
1116
  return this._profile?.intlStrings.webmap ?? "webmap";
1094
1117
  }
1095
- return this._profile?.intlStrings.featureservice ?? "featureservice";
1118
+ return this._profile?.intlStrings.map ?? "map";
1096
1119
  }
1097
1120
  async loadSource() {
1098
1121
  if (ee(this._loadPromise) && te(this._loadPromise)) {
@@ -1116,7 +1139,7 @@ class FeatureSetCollectionVariable extends CollectionBasedVariable {
1116
1139
  : {
1117
1140
  code: "webmapformat",
1118
1141
  formatValues: {
1119
- webMapTitle: this._featureSetCollections.source.portalItem?.title || "Untitled map"
1142
+ webMapTitle: getMapPortalItem(this._featureSetCollections.source)?.title || "Untitled map"
1120
1143
  }
1121
1144
  };
1122
1145
  const headerGroup = new GroupOfVariables(this._profile, groupLabel, [
@@ -1163,8 +1186,10 @@ class FeatureSetCollectionVariable extends CollectionBasedVariable {
1163
1186
  return null;
1164
1187
  }
1165
1188
  async _featureSetCollectionFromMap(map) {
1166
- // Make sure the map is loaded
1167
- await map.loadAll();
1189
+ if (isLoadableMapInstance(map)) {
1190
+ // Make sure the map is loaded
1191
+ await map.loadAll();
1192
+ }
1168
1193
  // Until jsapi fix a bug we have to load the table separately
1169
1194
  await Promise.all(map.tables.map(async (t) => (await t.load())));
1170
1195
  return {
@@ -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 { editor, MarkerSeverity, Range, languages, Emitter } from 'monaco-editor';
7
7
  import { CompletionItemKind, DiagnosticSeverity, InsertTextFormat } from 'vscode-languageserver-types';
@@ -1,20 +1,21 @@
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, Fragment, Host } from '@stencil/core/internal/client';
6
+ import { proxyCustomElement, HTMLElement, createEvent, h, Fragment, Host } from '@stencil/core/internal/client';
7
7
  import { g as importArcade, s as supportedFields } from './fields.js';
8
8
  import { B, q, Z, D } from './index2.js';
9
- import '@esri/calcite-components/dist/components/calcite-tree.js';
10
- import '@esri/calcite-components/dist/components/calcite-tree-item.js';
11
- import '@esri/calcite-components/dist/components/calcite-loader.js';
12
- import '@esri/calcite-components/dist/components/calcite-list.js';
13
- import '@esri/calcite-components/dist/components/calcite-list-item.js';
14
- import '@esri/calcite-components/dist/components/calcite-icon.js';
15
- import '@esri/calcite-components/dist/components/calcite-action-bar.js';
16
- import '@esri/calcite-components/dist/components/calcite-action-group.js';
17
- import '@esri/calcite-components/dist/components/calcite-action.js';
9
+ import "@esri/calcite-components/dist/components/calcite-tree.js";
10
+ import "@esri/calcite-components/dist/components/calcite-tree-item.js";
11
+ import "@esri/calcite-components/dist/components/calcite-loader.js";
12
+ import "@esri/calcite-components/dist/components/calcite-list.js";
13
+ import "@esri/calcite-components/dist/components/calcite-list-item.js";
14
+ import "@esri/calcite-components/dist/components/calcite-icon.js";
15
+ import "@esri/calcite-components/dist/components/calcite-action-bar.js";
16
+ import "@esri/calcite-components/dist/components/calcite-action-group.js";
17
+ import "@esri/calcite-components/dist/components/calcite-action.js";
18
+ import { getAssetPath } from "./arcgis-assets.js";
18
19
 
19
20
  const DevelopersWebSitePath = "https://developers.arcgis.com/arcade/";
20
21
  const MaxArrayItems = 100;
@@ -1,21 +1,22 @@
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, b as colorizeCodeElement } from './markdown.js';
8
8
  import { f as filterCollection } from './utilities.js';
9
9
  import { B, q, W } from './index2.js';
10
- import '@esri/calcite-components/dist/components/calcite-list-item-group.js';
11
- import '@esri/calcite-components/dist/components/calcite-list-item.js';
12
- import '@esri/calcite-components/dist/components/calcite-action.js';
13
- import '@esri/calcite-components/dist/components/calcite-flow-item.js';
14
- import '@esri/calcite-components/dist/components/calcite-button.js';
15
- import '@esri/calcite-components/dist/components/calcite-block.js';
16
- import '@esri/calcite-components/dist/components/calcite-flow.js';
17
- import '@esri/calcite-components/dist/components/calcite-input.js';
18
- import '@esri/calcite-components/dist/components/calcite-list.js';
10
+ import "@esri/calcite-components/dist/components/calcite-list-item-group.js";
11
+ import "@esri/calcite-components/dist/components/calcite-list-item.js";
12
+ import "@esri/calcite-components/dist/components/calcite-action.js";
13
+ import "@esri/calcite-components/dist/components/calcite-flow-item.js";
14
+ import "@esri/calcite-components/dist/components/calcite-button.js";
15
+ import "@esri/calcite-components/dist/components/calcite-block.js";
16
+ import "@esri/calcite-components/dist/components/calcite-flow.js";
17
+ import "@esri/calcite-components/dist/components/calcite-input.js";
18
+ import "@esri/calcite-components/dist/components/calcite-list.js";
19
+ import { getAssetPath } from "./arcgis-assets.js";
19
20
 
20
21
  function isSuggestionGroups(item) {
21
22
  if (!Array.isArray(item)) {
@@ -1,20 +1,21 @@
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 } from '@stencil/core/internal/client';
6
+ import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
7
7
  import { B, q, W, K } from './index2.js';
8
8
  import { b as arcadeDefaults } from './arcade-defaults.js';
9
- import '@esri/calcite-components/dist/components/calcite-flow-item.js';
10
- import '@esri/calcite-components/dist/components/calcite-action.js';
11
- import '@esri/calcite-components/dist/components/calcite-input.js';
12
- import '@esri/calcite-components/dist/components/calcite-loader.js';
13
- import '@esri/calcite-components/dist/components/calcite-list.js';
14
- import '@esri/calcite-components/dist/components/calcite-list-item-group.js';
15
- import '@esri/calcite-components/dist/components/calcite-list-item.js';
16
- import '@esri/calcite-components/dist/components/calcite-icon.js';
17
- import '@esri/calcite-components/dist/components/calcite-flow.js';
9
+ import "@esri/calcite-components/dist/components/calcite-flow-item.js";
10
+ import "@esri/calcite-components/dist/components/calcite-action.js";
11
+ import "@esri/calcite-components/dist/components/calcite-input.js";
12
+ import "@esri/calcite-components/dist/components/calcite-loader.js";
13
+ import "@esri/calcite-components/dist/components/calcite-list.js";
14
+ import "@esri/calcite-components/dist/components/calcite-list-item-group.js";
15
+ import "@esri/calcite-components/dist/components/calcite-list-item.js";
16
+ import "@esri/calcite-components/dist/components/calcite-icon.js";
17
+ import "@esri/calcite-components/dist/components/calcite-flow.js";
18
+ import { getAssetPath } from "./arcgis-assets.js";
18
19
 
19
20
  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%}";
20
21
 
@@ -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 { A as ArcgisArcadeApi$1, d as defineCustomElement$1 } from './arcade-api.js';
7
7
 
@@ -1,22 +1,23 @@
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 as h$1, Fragment, Host } from '@stencil/core/internal/client';
6
+ import { proxyCustomElement, HTMLElement, createEvent, h as h$1, Fragment, Host } from '@stencil/core/internal/client';
7
7
  import { editor, KeyCode } from 'monaco-editor';
8
8
  import { e as executeScript, D as DevelopersWebSitePath, d as defineCustomElement$5 } from './arcade-results.js';
9
9
  import { h, U, k, B, q } from './index2.js';
10
10
  import { s as setupMonacoEnvironment, a as getArcadeDiagnosticService } from './arcade-contribution.js';
11
11
  import { b as arcadeDefaults } from './arcade-defaults.js';
12
- import '@esri/calcite-components/dist/components/calcite-action-bar.js';
13
- import '@esri/calcite-components/dist/components/calcite-action-group.js';
14
- import '@esri/calcite-components/dist/components/calcite-action.js';
15
- import '@esri/calcite-components/dist/components/calcite-tooltip.js';
16
12
  import { d as defineCustomElement$6 } from './arcade-api.js';
17
13
  import { d as defineCustomElement$4 } from './arcade-suggestions.js';
18
14
  import { d as defineCustomElement$3 } from './arcade-variables.js';
19
15
  import { d as defineCustomElement$2 } from './code-editor.js';
16
+ import "@esri/calcite-components/dist/components/calcite-action-bar.js";
17
+ import "@esri/calcite-components/dist/components/calcite-action-group.js";
18
+ import "@esri/calcite-components/dist/components/calcite-action.js";
19
+ import "@esri/calcite-components/dist/components/calcite-tooltip.js";
20
+ import { getAssetPath } from "./arcgis-assets.js";
20
21
 
21
22
  const themeConfig = {
22
23
  "arcade-light-theme": {
@@ -157,24 +158,18 @@ const ArcgisArcadeEditor$1 = /*@__PURE__*/ proxyCustomElement(class ArcgisArcade
157
158
  this.hideSideBar = false;
158
159
  this.sideActionBarExpanded = false;
159
160
  this.openedSidePanel = "none";
161
+ this.editorOptions = undefined;
160
162
  }
161
- _profileChanged(newValue, oldValue) {
162
- // Prevent the execution as long as the component has not been fully loaded
163
- if (newValue === oldValue) {
164
- return;
165
- }
163
+ _profileChanged() {
166
164
  this._updateEditorProfile().catch(console.error);
167
165
  }
168
- _testDataChanged(newValue, oldValue) {
169
- if (newValue === oldValue || !this._showExecutionPanel) {
166
+ _testDataChanged() {
167
+ if (!this._showExecutionPanel) {
170
168
  return;
171
169
  }
172
170
  this._executeScript().catch(console.error);
173
171
  }
174
- _snippetChanged(newValue, oldValue) {
175
- if (newValue === oldValue) {
176
- return;
177
- }
172
+ _snippetChanged() {
178
173
  arcadeDefaults.updateApiContextForModel(this._modelId, {
179
174
  snippets: this.snippets
180
175
  });
@@ -203,7 +198,7 @@ const ArcgisArcadeEditor$1 = /*@__PURE__*/ proxyCustomElement(class ArcgisArcade
203
198
  */
204
199
  async getEditorInstance() {
205
200
  await this._componentReadyDefer.promise;
206
- return (await this._codeEditorElt?.getEditorInstance());
201
+ return await this._codeEditorElt?.getEditorInstance();
207
202
  }
208
203
  /**
209
204
  * Returns the Arcade result for the script for the provided test data.
@@ -324,11 +319,7 @@ const ArcgisArcadeEditor$1 = /*@__PURE__*/ proxyCustomElement(class ArcgisArcade
324
319
  //#endregion
325
320
  //#region Render Main Panel
326
321
  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
- );
322
+ 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
323
  }
333
324
  //#endregion
334
325
  //#region Rendering the Action Bar
@@ -419,6 +410,7 @@ const ArcgisArcadeEditor$1 = /*@__PURE__*/ proxyCustomElement(class ArcgisArcade
419
410
  "hideSideBar": [4, "hide-side-bar"],
420
411
  "sideActionBarExpanded": [1540, "side-action-bar-expanded"],
421
412
  "openedSidePanel": [1537, "opened-side-panel"],
413
+ "editorOptions": [16],
422
414
  "_lang": [32],
423
415
  "_t9nLocale": [32],
424
416
  "_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.30/esri/copyright.txt for details.
4
- * v4.30.0-next.0
4
+ * v4.30.0-next.2
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.30/esri/copyright.txt for details.
4
- * v4.30.0-next.0
4
+ * v4.30.0-next.2
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.30/esri/copyright.txt for details.
4
- * v4.30.0-next.0
4
+ * v4.30.0-next.2
5
5
  */
6
6
  import { A as ArcgisArcadeVariables$1, d as defineCustomElement$1 } from './arcade-variables.js';
7
7
 
@@ -0,0 +1,12 @@
1
+
2
+ /*!
3
+ * All material copyright Esri, All Rights Reserved, unless otherwise specified.
4
+ * See https://js.arcgis.com/4.30/esri/copyright.txt for details.
5
+ * v4.30.0-next.2
6
+ */
7
+ let resourceUrl = "https://js.arcgis.com/coding-components/next/";
8
+ export const getAssetPath = (path) => {
9
+ const assetUrl = new URL(path, resourceUrl);
10
+ return assetUrl.origin !== window.location.origin ? assetUrl.href : assetUrl.pathname;
11
+ };
12
+ export const setArcgisAssetPath = (path) => (resourceUrl = path);
@@ -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 { A as ArcgisCodeEditor$1, d as defineCustomElement$1 } from './code-editor.js';
7
7