@arcgis/coding-components 4.29.0-beta.4 → 4.29.0-beta.41

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 (79) hide show
  1. package/LICENSE.md +1 -1
  2. package/dist/arcgis-coding-components/arcgis-coding-components.esm.js +1 -1
  3. package/dist/arcgis-coding-components/assets/arcade-api/t9n/arcade-api.t9n.en.json +8 -8
  4. package/dist/arcgis-coding-components/assets/arcade-editor/t9n/arcade-editor.t9n.en.json +8 -8
  5. package/dist/arcgis-coding-components/assets/arcade-results/t9n/arcade-results.t9n.en.json +13 -13
  6. package/dist/arcgis-coding-components/assets/arcade-suggestions/t9n/arcade-suggestions.t9n.en.json +6 -6
  7. package/dist/arcgis-coding-components/assets/arcade-variables/t9n/arcade-variables.t9n.en.json +8 -8
  8. package/dist/arcgis-coding-components/assets/code-editor/arcade.worker.js +24 -22
  9. package/dist/arcgis-coding-components/assets/code-editor/css.worker.js +34 -35
  10. package/dist/arcgis-coding-components/assets/code-editor/editor.worker.js +7 -5
  11. package/dist/arcgis-coding-components/assets/code-editor/html.worker.js +41 -40
  12. package/dist/arcgis-coding-components/assets/code-editor/json.worker.js +24 -22
  13. package/dist/arcgis-coding-components/assets/code-editor/ts.worker.js +163 -161
  14. package/dist/arcgis-coding-components/index.esm.js +1 -1
  15. package/dist/arcgis-coding-components/{p-3eb641a2.js → p-15b09ea0.js} +2 -2
  16. package/dist/arcgis-coding-components/{p-74e0738d.js → p-2053efe5.js} +3 -3
  17. package/dist/arcgis-coding-components/{p-5fe913f0.js → p-4056fd39.js} +3 -3
  18. package/dist/arcgis-coding-components/p-5d670bd2.js +2 -0
  19. package/dist/arcgis-coding-components/p-6b0c537d.js +62 -0
  20. package/dist/arcgis-coding-components/{p-683e3dd4.js → p-739259a0.js} +1 -1
  21. package/dist/arcgis-coding-components/{p-96c3ebcb.js → p-8919c3fb.js} +2 -2
  22. package/dist/arcgis-coding-components/p-a67252ce.entry.js +1 -0
  23. package/dist/arcgis-coding-components/{p-7fb19e9b.js → p-a8cfb543.js} +2 -2
  24. package/dist/arcgis-coding-components/{p-27d03fb2.js → p-c66fdb0b.js} +2 -2
  25. package/dist/arcgis-coding-components/{p-98f0e116.js → p-cfff9500.js} +1 -1
  26. package/dist/arcgis-coding-components/{p-a152b643.js → p-f56ec2fe.js} +2 -2
  27. package/dist/cjs/{arcade-defaults-55c18abe.js → arcade-defaults-0bd884a4.js} +64439 -59097
  28. package/dist/cjs/{arcade-mode-bd1630dd.js → arcade-mode-7bc7978f.js} +2 -2
  29. package/dist/cjs/arcgis-arcade-api_6.cjs.entry.js +40 -32
  30. package/dist/cjs/arcgis-coding-components.cjs.js +3 -3
  31. package/dist/cjs/{css-3c67d381.js → css-7229b372.js} +1 -1
  32. package/dist/cjs/{cssMode-73d4ac47.js → cssMode-04695efd.js} +3 -3
  33. package/dist/cjs/{html-da599f39.js → html-4364b57b.js} +3 -3
  34. package/dist/cjs/{htmlMode-6f0883d3.js → htmlMode-3232d4d2.js} +3 -3
  35. package/dist/cjs/{index-f8a85eb8.js → index-6a382a34.js} +302 -64
  36. package/dist/cjs/index.cjs.js +2 -2
  37. package/dist/cjs/{javascript-92268a2f.js → javascript-1b17ffb0.js} +4 -4
  38. package/dist/cjs/{jsonMode-110ef3c9.js → jsonMode-85cfe5d7.js} +3 -3
  39. package/dist/cjs/loader.cjs.js +3 -12
  40. package/dist/cjs/{tsMode-8cb72aa2.js → tsMode-6ac3dd97.js} +3 -3
  41. package/dist/cjs/{typescript-edaad128.js → typescript-e8854a4f.js} +3 -3
  42. package/dist/components/arcade-api.js +10 -8
  43. package/dist/components/arcade-contribution.js +1 -1
  44. package/dist/components/arcade-results.js +13 -8
  45. package/dist/components/arcade-suggestions.js +11 -7
  46. package/dist/components/arcade-variables.js +10 -6
  47. package/dist/components/arcgis-arcade-editor.js +20 -14
  48. package/dist/components/code-editor.js +8 -4
  49. package/dist/components/index.d.ts +5 -8
  50. package/dist/components/index.js +1 -7
  51. package/dist/components/index2.js +2 -2
  52. package/dist/esm/{arcade-defaults-ac486973.js → arcade-defaults-145d902c.js} +64438 -59096
  53. package/dist/esm/{arcade-mode-fc719356.js → arcade-mode-4f74179e.js} +2 -2
  54. package/dist/esm/arcgis-arcade-api_6.entry.js +40 -32
  55. package/dist/esm/arcgis-coding-components.js +4 -4
  56. package/dist/esm/{css-9066b96a.js → css-ff1e9f8c.js} +1 -1
  57. package/dist/esm/{cssMode-f452e699.js → cssMode-93b88d81.js} +3 -3
  58. package/dist/esm/{html-7c0b7520.js → html-7d557330.js} +3 -3
  59. package/dist/esm/{htmlMode-200a28b3.js → htmlMode-e9b83ec7.js} +3 -3
  60. package/dist/esm/{index-d4ec142a.js → index-fd6b2fd8.js} +302 -64
  61. package/dist/esm/index.js +2 -2
  62. package/dist/esm/{javascript-44a7aba3.js → javascript-83c892dd.js} +4 -4
  63. package/dist/esm/{jsonMode-fb784fa5.js → jsonMode-5c5eb0e2.js} +3 -3
  64. package/dist/esm/loader.js +4 -13
  65. package/dist/esm/{tsMode-890f3141.js → tsMode-77877670.js} +3 -3
  66. package/dist/esm/{typescript-4b8bacca.js → typescript-dab44a94.js} +3 -3
  67. package/dist/loader/index.d.ts +2 -2
  68. package/dist/types/components/arcade-api/arcade-api.d.ts +3 -2
  69. package/dist/types/components/arcade-editor/arcade-editor.d.ts +3 -2
  70. package/dist/types/components/arcade-results/arcade-results.d.ts +3 -2
  71. package/dist/types/components/arcade-suggestions/arcade-suggestions.d.ts +3 -2
  72. package/dist/types/components/arcade-variables/arcade-variables.d.ts +3 -2
  73. package/dist/types/components.d.ts +78 -0
  74. package/dist/types/stencil-public-runtime.d.ts +53 -17
  75. package/package.json +26 -30
  76. package/dist/arcgis-coding-components/p-0fa0a06d.js +0 -2
  77. package/dist/arcgis-coding-components/p-2c5583d5.entry.js +0 -1
  78. package/dist/arcgis-coding-components/p-a388e974.js +0 -62
  79. package/dist/esm/polyfills/css-shim.js +0 -1
@@ -2,20 +2,11 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-f8a85eb8.js');
6
-
7
- /*
8
- Stencil Client Patch Esm v2.22.3 | MIT Licensed | https://stenciljs.com
9
- */
10
- const patchEsm = () => {
11
- return index.promiseResolve();
12
- };
5
+ const index = require('./index-6a382a34.js');
13
6
 
14
7
  const defineCustomElements = (win, options) => {
15
- if (typeof window === 'undefined') return Promise.resolve();
16
- return patchEsm().then(() => {
17
- 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"],"_locale":[32],"_t9nStrings":[32],"_standaloneCodeEditor":[32],"_preparingProfile":[32],"_editorProfile":[32],"_showExecutionPanel":[32],"_resultPanel":[32],"_executingScript":[32],"_consoleLogs":[32],"_executionResult":[32],"getScript":[64],"setFocus":[64],"getEditorInstance":[64],"getTestResult":[64],"getOutputType":[64],"updateThemeColors":[64]}],[1,"arcgis-arcade-api",{"hideDocumentationActions":[4,"hide-documentation-actions"],"modelId":[1,"model-id"],"_locale":[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],"_locale":[32],"_t9nStrings":[32]}],[1,"arcgis-arcade-suggestions",{"suggestions":[16],"_locale":[32],"_t9nStrings":[32],"_selectedSuggestion":[32],"_filterValue":[32],"_colorizeStyle":[32]}],[1,"arcgis-arcade-variables",{"loading":[4],"modelId":[1,"model-id"],"_locale":[32],"_t9nStrings":[32],"_mutationCounter":[32],"_flowItemRenderers":[32],"_filterValue":[32]}],[0,"arcgis-code-editor",{"value":[1],"language":[1],"modelId":[1,"model-id"],"getValue":[64],"setValue":[64],"insertText":[64],"insertSnippet":[64],"getEditorInstance":[64],"setFocus":[64]}]]]], options);
18
- });
8
+ if (typeof window === 'undefined') return undefined;
9
+ return index.bootstrapLazy([["arcgis-arcade-api_6.cjs",[[0,"arcgis-arcade-editor",{"profile":[16],"script":[1],"testData":[16],"suggestions":[16],"snippets":[16],"hideDocumentationActions":[4,"hide-documentation-actions"],"hideSideBar":[4,"hide-side-bar"],"sideActionBarExpanded":[1540,"side-action-bar-expanded"],"openedSidePanel":[1537,"opened-side-panel"],"_lang":[32],"_t9nLocale":[32],"_t9nStrings":[32],"_standaloneCodeEditor":[32],"_preparingProfile":[32],"_editorProfile":[32],"_showExecutionPanel":[32],"_resultPanel":[32],"_executingScript":[32],"_consoleLogs":[32],"_executionResult":[32],"getScript":[64],"setFocus":[64],"getEditorInstance":[64],"getTestResult":[64],"getOutputType":[64],"updateThemeColors":[64]},null,{"profile":["_profileChanged"],"testData":["_testDataChanged"],"snippets":["_snippetChanged"]}],[1,"arcgis-arcade-api",{"hideDocumentationActions":[4,"hide-documentation-actions"],"modelId":[1,"model-id"],"_lang":[32],"_t9nLocale":[32],"_t9nStrings":[32],"_selectedApiItem":[32],"_filterValue":[32],"_colorizeStyle":[32],"_preparingApi":[32],"_apiLibrary":[32]}],[1,"arcgis-arcade-results",{"loading":[4],"openedResultPanel":[1537,"opened-result-panel"],"result":[16],"consoleLogs":[16],"_lang":[32],"_t9nLocale":[32],"_t9nStrings":[32]}],[1,"arcgis-arcade-suggestions",{"suggestions":[16],"_lang":[32],"_t9nLocale":[32],"_t9nStrings":[32],"_selectedSuggestion":[32],"_filterValue":[32],"_colorizeStyle":[32]},null,{"suggestions":["suggestionsPropChanged"]}],[1,"arcgis-arcade-variables",{"loading":[4],"modelId":[1,"model-id"],"_lang":[32],"_t9nLocale":[32],"_t9nStrings":[32],"_mutationCounter":[32],"_flowItemRenderers":[32],"_filterValue":[32]},null,{"modelId":["modelIdPropChanged"]}],[0,"arcgis-code-editor",{"value":[1],"language":[1],"modelId":[1,"model-id"],"getValue":[64],"setValue":[64],"insertText":[64],"insertSnippet":[64],"getEditorInstance":[64],"setFocus":[64]},null,{"value":["valuePropChange"],"language":["languagePropChange"],"modelId":["modelIdPropChange"]}]]]], options);
19
10
  };
20
11
 
21
12
  exports.setNonce = index.setNonce;
@@ -1,11 +1,11 @@
1
1
  'use strict';
2
2
 
3
- const arcadeDefaults = require('./arcade-defaults-55c18abe.js');
4
- require('./index-f8a85eb8.js');
3
+ const arcadeDefaults = require('./arcade-defaults-0bd884a4.js');
4
+ require('./index-6a382a34.js');
5
5
 
6
6
  /*!-----------------------------------------------------------------------------
7
7
  * Copyright (c) Microsoft Corporation. All rights reserved.
8
- * Version: 0.39.0(ff3621a3fa6389873be5412d17554294ea1b0941)
8
+ * Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
9
9
  * Released under the MIT license
10
10
  * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
11
11
  *-----------------------------------------------------------------------------*/
@@ -1,11 +1,11 @@
1
1
  'use strict';
2
2
 
3
- const arcadeDefaults = require('./arcade-defaults-55c18abe.js');
4
- require('./index-f8a85eb8.js');
3
+ const arcadeDefaults = require('./arcade-defaults-0bd884a4.js');
4
+ require('./index-6a382a34.js');
5
5
 
6
6
  /*!-----------------------------------------------------------------------------
7
7
  * Copyright (c) Microsoft Corporation. All rights reserved.
8
- * Version: 0.39.0(ff3621a3fa6389873be5412d17554294ea1b0941)
8
+ * Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
9
9
  * Released under the MIT license
10
10
  * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
11
11
  *-----------------------------------------------------------------------------*/
@@ -3,9 +3,9 @@ import { g as generateColorizeStyles, o as onColorizeThemeChanged, c as convertM
3
3
  import { S as StickyFilterInput } from './functional-components.js';
4
4
  import { f as filterCollection } from './utilities.js';
5
5
  import { Uri } from 'monaco-editor';
6
- import { $, F, O, q } from './index2.js';
6
+ import { $, F, C, q } from './index2.js';
7
7
  import { b as arcadeDefaults } from './arcade-defaults.js';
8
- import { a as getArcadeWorker } from './arcade-contribution.js';
8
+ import { g as getArcadeWorker } from './arcade-contribution.js';
9
9
  import '@esri/calcite-components/dist/components/calcite-list-item-group.js';
10
10
  import '@esri/calcite-components/dist/components/calcite-list-item.js';
11
11
  import '@esri/calcite-components/dist/components/calcite-action.js';
@@ -18,7 +18,7 @@ import '@esri/calcite-components/dist/components/calcite-list.js';
18
18
 
19
19
  const arcadeApiCss = ":host{background-color:var(--calcite-ui-foreground-1)}:host .notice-container{margin:var(--calcite-spacing-quarter);padding:var(--calcite-spacing-half);background-color:var(--calcite-ui-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-ui-foreground-2);padding:var(--calcite-spacing-half)}:host calcite-block pre code{font-size:var(--calcite-font-size--2)}";
20
20
 
21
- const ArcgisArcadeApi = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
21
+ const ArcgisArcadeApi = /*@__PURE__*/ proxyCustomElement(class ArcgisArcadeApi extends HTMLElement {
22
22
  constructor() {
23
23
  super();
24
24
  this.__registerHost();
@@ -62,7 +62,8 @@ const ArcgisArcadeApi = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
62
62
  };
63
63
  // @ts-expect-error
64
64
  this._updateFilterValue = (e) => (this._filterValue = e.target?.["value"] ?? "");
65
- this._locale = "";
65
+ this._lang = "";
66
+ this._t9nLocale = "";
66
67
  this._t9nStrings = undefined;
67
68
  this._selectedApiItem = undefined;
68
69
  this._filterValue = "";
@@ -131,7 +132,7 @@ const ArcgisArcadeApi = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
131
132
  // When switching between flow the same reference is reused
132
133
  this._flowObserver = new MutationObserver(() => {
133
134
  // Get the last panel and try to set focus on the input element
134
- O(ref.querySelector("calcite-flow-item:last-child"), "calcite-input");
135
+ C(ref.querySelector("calcite-flow-item:last-child"), "calcite-input");
135
136
  });
136
137
  this._flowObserver.observe(ref, { attributes: true, attributeFilter: ["id"], childList: true });
137
138
  }
@@ -149,7 +150,7 @@ const ArcgisArcadeApi = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
149
150
  if (!apiItem) {
150
151
  return null;
151
152
  }
152
- return (h("calcite-flow-item", { heading: this._t9nStrings?.constantsandfunctions, beforeBack: this._unselectItem, closable: true, onCalciteFlowItemClose: this._emitClose }, this.hideDocumentationActions ? null : (h("calcite-button", { width: "half", slot: "footer-actions", appearance: "outline", kind: "brand", scale: "s", href: apiItem.link, target: "Arcade Help", "icon-start": "information" }, this._t9nStrings?.moreinformation)), h("calcite-button", { width: "half", slot: "footer-actions", appearance: "outline", kind: "brand", "icon-start": "code", scale: "s", onClick: this._emitItemSelectedAndClose, "data-item": apiItem, ref: (e) => e?.setFocus() }, this._t9nStrings?.insert ?? "Insert"), h("calcite-block", { open: true, heading: q(apiItem.completion.detail) }, h("div", { innerHTML: convertMarkdownString(apiItem.completion.documentation) }), apiItem.examples ? (h("div", { ref: (e) => {
153
+ return (h("calcite-flow-item", { heading: this._t9nStrings?.constantsandfunctions, beforeBack: this._unselectItem, closable: true, onCalciteFlowItemClose: this._emitClose }, this.hideDocumentationActions ? null : (h("calcite-button", { width: "half", slot: "footer", appearance: "outline", kind: "brand", scale: "s", href: apiItem.link, target: "Arcade Help", "icon-start": "information" }, this._t9nStrings?.moreinformation)), h("calcite-button", { width: "half", slot: "footer", appearance: "outline", kind: "brand", "icon-start": "code", scale: "s", onClick: this._emitItemSelectedAndClose, "data-item": apiItem, ref: (e) => e?.setFocus() }, this._t9nStrings?.insert ?? "Insert"), h("calcite-block", { open: true, heading: q(apiItem.completion.detail) }, h("div", { innerHTML: convertMarkdownString(apiItem.completion.documentation) }), apiItem.examples ? (h("div", { ref: (e) => {
153
154
  if (!e) {
154
155
  return;
155
156
  }
@@ -163,12 +164,13 @@ const ArcgisArcadeApi = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
163
164
  return (h(Host, null, h("style", null, this._colorizeStyle), h("calcite-flow", { ref: (ref) => this.flowFocusHandler(ref) }, h("calcite-flow-item", { heading: this._t9nStrings?.constantsandfunctions, closable: true, onCalciteFlowItemClose: this._emitClose }, h(StickyFilterInput, { filterValue: this._filterValue, onCalciteInputInput: this._updateFilterValue }), this._preparingApi ? (h("calcite-loader", { scale: "s", type: "indeterminate", label: this._t9nStrings?.loading ?? "Loading" })) : (h("calcite-list", null, empty ? h("div", { class: "notice-container" }, this._t9nStrings?.noitems ?? "No items") : categories))), this.renderApiItemFlowItem())));
164
165
  }
165
166
  static get assetsDirs() { return ["assets"]; }
166
- get _hostElt() { return this; }
167
+ get _hostElement() { return this; }
167
168
  static get style() { return arcadeApiCss; }
168
169
  }, [1, "arcgis-arcade-api", {
169
170
  "hideDocumentationActions": [4, "hide-documentation-actions"],
170
171
  "modelId": [1, "model-id"],
171
- "_locale": [32],
172
+ "_lang": [32],
173
+ "_t9nLocale": [32],
172
174
  "_t9nStrings": [32],
173
175
  "_selectedApiItem": [32],
174
176
  "_filterValue": [32],
@@ -108,4 +108,4 @@ languages.onLanguage(arcadeDefaults.languageId, async () => {
108
108
  mode.setupMode(arcadeDefaults);
109
109
  });
110
110
 
111
- export { getArcadeWorker as a, getArcadeDiagnosticService as g, setupMonacoEnvironment as s };
111
+ export { getArcadeDiagnosticService as a, getArcadeWorker as g, setupMonacoEnvironment as s };
@@ -259,7 +259,7 @@ const expandableTreeItemProps = {
259
259
  item.expanded = !item.expanded;
260
260
  }
261
261
  };
262
- const ArcgisArcadeResults = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
262
+ const ArcgisArcadeResults = /*@__PURE__*/ proxyCustomElement(class ArcgisArcadeResults extends HTMLElement {
263
263
  constructor() {
264
264
  super();
265
265
  this.__registerHost();
@@ -277,7 +277,8 @@ const ArcgisArcadeResults = /*@__PURE__*/ proxyCustomElement(class extends HTMLE
277
277
  this.updateResultPanel(panelName);
278
278
  };
279
279
  this._emitClose = () => this.close.emit();
280
- this._locale = "";
280
+ this._lang = "";
281
+ this._t9nLocale = "";
281
282
  this._t9nStrings = undefined;
282
283
  this.loading = true;
283
284
  this.openedResultPanel = "output";
@@ -320,15 +321,18 @@ const ArcgisArcadeResults = /*@__PURE__*/ proxyCustomElement(class extends HTMLE
320
321
  }
321
322
  const iconClass = this.result?.type === "error" ? "color-error" : "color-success";
322
323
  return (h("calcite-list", null, this.result ? (h(Fragment, null, h("calcite-list-item", { label: B(this._t9nStrings?.lastexecutionformat, {
323
- timeStamp: new Intl.DateTimeFormat(this._locale, { dateStyle: "medium", timeStyle: "medium" }).format(this.result.timeStamp)
324
+ timeStamp: new Intl.DateTimeFormat(this._t9nLocale, {
325
+ dateStyle: "medium",
326
+ timeStyle: "medium"
327
+ }).format(this.result.timeStamp)
324
328
  }) }, h("calcite-icon", { slot: "content-start", icon: "information", scale: "s", class: iconClass })), h("calcite-list-item", { label: B(this._t9nStrings?.compilationtimeformat, {
325
- time: new Intl.NumberFormat(this._locale, {
329
+ time: new Intl.NumberFormat(this._t9nLocale, {
326
330
  style: "unit",
327
331
  unit: "millisecond",
328
332
  maximumFractionDigits: 2
329
333
  }).format(this.result.compilationTime ?? 0)
330
334
  }) }, h("calcite-icon", { slot: "content-start", icon: "information", scale: "s", class: iconClass })), h("calcite-list-item", { label: B(this._t9nStrings?.executiontimeformat, {
331
- time: new Intl.NumberFormat(this._locale, {
335
+ time: new Intl.NumberFormat(this._t9nLocale, {
332
336
  style: "unit",
333
337
  unit: "millisecond",
334
338
  maximumFractionDigits: 2
@@ -474,17 +478,18 @@ const ArcgisArcadeResults = /*@__PURE__*/ proxyCustomElement(class extends HTMLE
474
478
  }))));
475
479
  }
476
480
  render() {
477
- return (h(Host, null, h("header", { class: "flex-row" }, h("calcite-action-bar", { class: "flex-adjustable", layout: "horizontal", scale: "s", expanded: true, "expand-disabled": true }, h("calcite-action-group", { layout: "horizontal", scale: "s" }, h("calcite-action", { active: this.openedResultPanel === "output", text: this._t9nStrings?.output ?? "Output", "text-enabled": true, scale: "s", icon: "list-show-all", iconFlipRtl: true, onClick: this._switchResultPanel, "data-panel-name": "output" }), h("calcite-action", { active: this.openedResultPanel === "console", text: this._t9nStrings?.console ?? "Console", "text-enabled": true, scale: "s", icon: "console", iconFlipRtl: true, onClick: this._switchResultPanel, "data-panel-name": "console" }), h("calcite-action", { active: this.openedResultPanel === "log", text: this._t9nStrings?.log ?? "Log", "text-enabled": true, scale: "s", icon: "list", iconFlipRtl: true, onClick: this._switchResultPanel, "data-panel-name": "log" }))), h("calcite-action", { scale: "s", icon: "x", text: this._t9nStrings?.close ?? "", onClick: this._emitClose })), h("article", { class: "flex-adjustable" }, this.loading ? (h("calcite-loader", { scale: "s", type: "indeterminate", label: "" })) : (h("div", { class: "flex-column y-scrollable-container" }, this.renderOutputPanel(), this.renderConsolePanel(), this.renderLogPanel())))));
481
+ return (h(Host, null, h("header", { class: "flex-row" }, h("calcite-action-bar", { class: "flex-adjustable", layout: "horizontal", scale: "s", expanded: true, "expand-disabled": true }, h("calcite-action-group", { scale: "s" }, h("calcite-action", { active: this.openedResultPanel === "output", text: this._t9nStrings?.output ?? "Output", "text-enabled": true, scale: "s", icon: "list-show-all", iconFlipRtl: true, onClick: this._switchResultPanel, "data-panel-name": "output" }), h("calcite-action", { active: this.openedResultPanel === "console", text: this._t9nStrings?.console ?? "Console", "text-enabled": true, scale: "s", icon: "console", iconFlipRtl: true, onClick: this._switchResultPanel, "data-panel-name": "console" }), h("calcite-action", { active: this.openedResultPanel === "log", text: this._t9nStrings?.log ?? "Log", "text-enabled": true, scale: "s", icon: "list", iconFlipRtl: true, onClick: this._switchResultPanel, "data-panel-name": "log" }))), h("calcite-action", { scale: "s", icon: "x", text: this._t9nStrings?.close ?? "", onClick: this._emitClose })), h("article", { class: "flex-adjustable" }, this.loading ? (h("calcite-loader", { scale: "s", type: "indeterminate", label: "" })) : (h("div", { class: "flex-column y-scrollable-container" }, this.renderOutputPanel(), this.renderConsolePanel(), this.renderLogPanel())))));
478
482
  }
479
483
  static get assetsDirs() { return ["assets"]; }
480
- get _hostElt() { return this; }
484
+ get _hostElement() { return this; }
481
485
  static get style() { return arcadeResultsCss; }
482
486
  }, [1, "arcgis-arcade-results", {
483
487
  "loading": [4],
484
488
  "openedResultPanel": [1537, "opened-result-panel"],
485
489
  "result": [16],
486
490
  "consoleLogs": [16],
487
- "_locale": [32],
491
+ "_lang": [32],
492
+ "_t9nLocale": [32],
488
493
  "_t9nStrings": [32]
489
494
  }]);
490
495
  function defineCustomElement() {
@@ -2,7 +2,7 @@ import { proxyCustomElement, HTMLElement, createEvent, getAssetPath, h, Host } f
2
2
  import { g as generateColorizeStyles, o as onColorizeThemeChanged, c as convertMarkdownString, b as colorizeCodeElement } from './markdown.js';
3
3
  import { S as StickyFilterInput } from './functional-components.js';
4
4
  import { f as filterCollection } from './utilities.js';
5
- import { $, F, O } from './index2.js';
5
+ import { $, F, C } from './index2.js';
6
6
  import '@esri/calcite-components/dist/components/calcite-list-item-group.js';
7
7
  import '@esri/calcite-components/dist/components/calcite-list-item.js';
8
8
  import '@esri/calcite-components/dist/components/calcite-action.js';
@@ -24,7 +24,7 @@ function isSuggestionGroups(item) {
24
24
 
25
25
  const arcadeSuggestionsCss = ":host{background-color:var(--calcite-ui-foreground-1)}:host .notice-container{margin:var(--calcite-spacing-quarter);padding:var(--calcite-spacing-half);background-color:var(--calcite-ui-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-ui-foreground-2);padding:var(--calcite-spacing-half)}:host calcite-block pre code{font-size:var(--calcite-font-size--2)}";
26
26
 
27
- const ArcgisArcadeSuggestions = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
27
+ const ArcgisArcadeSuggestions = /*@__PURE__*/ proxyCustomElement(class ArcgisArcadeSuggestions extends HTMLElement {
28
28
  constructor() {
29
29
  super();
30
30
  this.__registerHost();
@@ -56,7 +56,8 @@ const ArcgisArcadeSuggestions = /*@__PURE__*/ proxyCustomElement(class extends H
56
56
  };
57
57
  this._emitClose = () => this.close.emit();
58
58
  this._beforeBack = async () => (this._selectedSuggestion = undefined);
59
- this._locale = "";
59
+ this._lang = "";
60
+ this._t9nLocale = "";
60
61
  this._t9nStrings = undefined;
61
62
  this._selectedSuggestion = undefined;
62
63
  this._filterValue = "";
@@ -94,7 +95,7 @@ const ArcgisArcadeSuggestions = /*@__PURE__*/ proxyCustomElement(class extends H
94
95
  // When switching between flow the same reference is reused
95
96
  this._flowObserver = new MutationObserver(() => {
96
97
  // Get the last panel and try to set focus on the input element
97
- O(ref.querySelector("calcite-flow-item:last-child"), "calcite-input");
98
+ C(ref.querySelector("calcite-flow-item:last-child"), "calcite-input");
98
99
  });
99
100
  this._flowObserver.observe(ref, { attributes: true, attributeFilter: ["id"], childList: true });
100
101
  }
@@ -123,24 +124,27 @@ const ArcgisArcadeSuggestions = /*@__PURE__*/ proxyCustomElement(class extends H
123
124
  if (!suggestion) {
124
125
  return null;
125
126
  }
126
- return (h("calcite-flow-item", { heading: this._t9nStrings?.suggestions, closable: true, onCalciteFlowItemClose: this._emitClose, beforeBack: this._beforeBack }, h("calcite-button", { width: "half", slot: "footer-actions", appearance: "outline", kind: "brand", "icon-start": "code", scale: "s", onClick: this._emitItemSelected, ref: (e) => e?.setFocus(), "data-item": suggestion }, this._t9nStrings?.insert), h("calcite-block", { open: true, heading: suggestion.label, description: suggestion.description }, h("div", { innerHTML: convertMarkdownString(suggestion.documentation) }), h("pre", null, h("code", { ref: async (e) => await colorizeCodeElement(e, suggestion.code) })))));
127
+ return (h("calcite-flow-item", { heading: this._t9nStrings?.suggestions, closable: true, onCalciteFlowItemClose: this._emitClose, beforeBack: this._beforeBack }, h("calcite-button", { width: "half", slot: "footer", appearance: "outline", kind: "brand", "icon-start": "code", scale: "s", onClick: this._emitItemSelected, ref: (e) => e?.setFocus(), "data-item": suggestion }, this._t9nStrings?.insert), h("calcite-block", { open: true, heading: suggestion.label, description: suggestion.description }, h("div", { innerHTML: convertMarkdownString(suggestion.documentation) }), h("pre", null, h("code", { ref: async (e) => await colorizeCodeElement(e, suggestion.code) })))));
127
128
  }
128
129
  render() {
129
130
  return (h(Host, null, h("style", null, this._colorizeStyle), h("calcite-flow", { ref: (ref) => this.flowFocusHandler(ref) }, h("calcite-flow-item", { heading: this._t9nStrings?.suggestions, closable: true, onCalciteFlowItemClose: this._emitClose }, h(StickyFilterInput, { filterValue: this._filterValue, onCalciteInputInput: this._updateFilterValue }), h("calcite-list", null, this.renderSuggestionGroups())), this.renderSuggestionFlowItem())));
130
131
  }
131
132
  static get assetsDirs() { return ["assets"]; }
132
- get _hostElt() { return this; }
133
+ get _hostElement() { return this; }
133
134
  static get watchers() { return {
134
135
  "suggestions": ["suggestionsPropChanged"]
135
136
  }; }
136
137
  static get style() { return arcadeSuggestionsCss; }
137
138
  }, [1, "arcgis-arcade-suggestions", {
138
139
  "suggestions": [16],
139
- "_locale": [32],
140
+ "_lang": [32],
141
+ "_t9nLocale": [32],
140
142
  "_t9nStrings": [32],
141
143
  "_selectedSuggestion": [32],
142
144
  "_filterValue": [32],
143
145
  "_colorizeStyle": [32]
146
+ }, undefined, {
147
+ "suggestions": ["suggestionsPropChanged"]
144
148
  }]);
145
149
  function defineCustomElement() {
146
150
  if (typeof customElements === "undefined") {
@@ -1,6 +1,6 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, getAssetPath, h } from '@stencil/core/internal/client';
2
2
  import { S as StickyFilterInput } from './functional-components.js';
3
- import { $, F, O, z } from './index2.js';
3
+ import { $, F, C, z } from './index2.js';
4
4
  import { b as arcadeDefaults } from './arcade-defaults.js';
5
5
  import '@esri/calcite-components/dist/components/calcite-flow-item.js';
6
6
  import '@esri/calcite-components/dist/components/calcite-action.js';
@@ -13,7 +13,7 @@ import '@esri/calcite-components/dist/components/calcite-flow.js';
13
13
 
14
14
  const arcadeVariablesCss = ":host{background-color:var(--calcite-ui-foreground-1)}:host .notice-container{margin:var(--calcite-spacing-quarter);padding:var(--calcite-spacing-half);background-color:var(--calcite-ui-foreground-1)}:host .sticky{position:sticky;top:0px;z-index:10}:host calcite-flow{height:100%}";
15
15
 
16
- const ArcgisArcadeVariables = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
16
+ const ArcgisArcadeVariables = /*@__PURE__*/ proxyCustomElement(class ArcgisArcadeVariables extends HTMLElement {
17
17
  constructor() {
18
18
  super();
19
19
  this.__registerHost();
@@ -54,7 +54,8 @@ const ArcgisArcadeVariables = /*@__PURE__*/ proxyCustomElement(class extends HTM
54
54
  e.stopPropagation();
55
55
  this.addPanelRenderer(this.collectionBasedVariableRenderer(collectionVariable));
56
56
  };
57
- this._locale = "";
57
+ this._lang = "";
58
+ this._t9nLocale = "";
58
59
  this._t9nStrings = undefined;
59
60
  this._mutationCounter = 1;
60
61
  this._flowItemRenderers = [];
@@ -96,7 +97,7 @@ const ArcgisArcadeVariables = /*@__PURE__*/ proxyCustomElement(class extends HTM
96
97
  // When switching between flow the same reference is reused
97
98
  this._flowObserver = new MutationObserver(() => {
98
99
  // Get the last panel and try to set focus on the input element
99
- O(ref.querySelector("calcite-flow-item:last-child"), "calcite-input");
100
+ C(ref.querySelector("calcite-flow-item:last-child"), "calcite-input");
100
101
  });
101
102
  this._flowObserver.observe(ref, { attributes: true, attributeFilter: ["id"], childList: true });
102
103
  }
@@ -146,7 +147,7 @@ const ArcgisArcadeVariables = /*@__PURE__*/ proxyCustomElement(class extends HTM
146
147
  return (h("calcite-flow", { ref: (ref) => this.flowFocusHandler(ref) }, this.collectionBasedVariableRenderer(profile, true)(), this._flowItemRenderers.map((renderer) => renderer())));
147
148
  }
148
149
  static get assetsDirs() { return ["assets"]; }
149
- get _hostElt() { return this; }
150
+ get _hostElement() { return this; }
150
151
  static get watchers() { return {
151
152
  "modelId": ["modelIdPropChanged"]
152
153
  }; }
@@ -154,11 +155,14 @@ const ArcgisArcadeVariables = /*@__PURE__*/ proxyCustomElement(class extends HTM
154
155
  }, [1, "arcgis-arcade-variables", {
155
156
  "loading": [4],
156
157
  "modelId": [1, "model-id"],
157
- "_locale": [32],
158
+ "_lang": [32],
159
+ "_t9nLocale": [32],
158
160
  "_t9nStrings": [32],
159
161
  "_mutationCounter": [32],
160
162
  "_flowItemRenderers": [32],
161
163
  "_filterValue": [32]
164
+ }, undefined, {
165
+ "modelId": ["modelIdPropChanged"]
162
166
  }]);
163
167
  function defineCustomElement() {
164
168
  if (typeof customElements === "undefined") {
@@ -1,8 +1,8 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, getAssetPath, h as h$1, Fragment, Host } from '@stencil/core/internal/client';
2
2
  import { editor, KeyCode } from 'monaco-editor';
3
3
  import { e as executeScript, D as DevelopersWebSitePath, d as defineCustomElement$5 } from './arcade-results.js';
4
- import { h, _, C, $, F } from './index2.js';
5
- import { s as setupMonacoEnvironment, g as getArcadeDiagnosticService } from './arcade-contribution.js';
4
+ import { h, k, P, $, F } from './index2.js';
5
+ import { s as setupMonacoEnvironment, a as getArcadeDiagnosticService } from './arcade-contribution.js';
6
6
  import { b as arcadeDefaults } from './arcade-defaults.js';
7
7
  import '@esri/calcite-components/dist/components/calcite-action-bar.js';
8
8
  import '@esri/calcite-components/dist/components/calcite-action-group.js';
@@ -71,17 +71,17 @@ function updateThemeColors(theme, colorRules) {
71
71
  editor.defineTheme(base, { base, inherit: true, rules, colors: {} });
72
72
  }
73
73
 
74
- const arcadeEditorCss = "arcgis-arcade-editor{display:flex;flex-direction:column;height:100%;width:100%;position:relative;overflow:hidden;border:1px solid var(--calcite-ui-border-3);box-sizing:border-box;background-color:var(--calcite-ui-foreground-1)}arcgis-arcade-editor .flex-adjustable{flex:1 1 auto;overflow:hidden}arcgis-arcade-editor .flex-panel{flex:1 0 auto}arcgis-arcade-editor .position-relative{position:relative}arcgis-arcade-editor .flex-row{display:flex;flex-direction:row;overflow:hidden}arcgis-arcade-editor .flex-column{display:flex;flex-direction:column;overflow:hidden}arcgis-arcade-editor .border-inline-start{border-inline-start:1px solid var(--calcite-ui-border-3);box-sizing:border-box}arcgis-arcade-editor .border-inline-end{border-inline-end:1px solid var(--calcite-ui-border-3);box-sizing:border-box}arcgis-arcade-editor .sticky{position:sticky;top:0px;z-index:10}arcgis-arcade-editor .notice-container{margin:var(--calcite-spacing-quarter);padding:var(--calcite-spacing-half);background-color:var(--calcite-ui-foreground-1);text-align:center}arcgis-arcade-editor .side-action-bar{max-width:25%}arcgis-arcade-editor .side-panel{max-width:45%;width:600px}arcgis-arcade-editor .side-panel calcite-flow{height:100%}arcgis-arcade-editor .main-action-bar{border-bottom:1px solid var(--calcite-ui-border-3);flex:0 0 auto}arcgis-arcade-editor .main-action-bar calcite-action-group{padding-inline-end:var(--calcite-spacing-half)}arcgis-arcade-editor .main-action-bar calcite-action-group calcite-action{padding-inline-end:var(--calcite-spacing-half)}arcgis-arcade-editor .main-action-bar calcite-action-group calcite-action:not(:first-child){padding-inline-start:var(--calcite-spacing-half)}arcgis-arcade-editor .main-action-bar calcite-action-group:last-child{border-inline-end-width:0px}arcgis-arcade-editor .main-action-bar calcite-action-group:not(:first-child){padding-inline-start:var(--calcite-spacing-half)}arcgis-arcade-editor arcgis-arcade-results{border-top:1px solid var(--calcite-ui-border-3);box-sizing:border-box;max-height:50%;min-height:50%;margin-bottom:-1px}arcgis-arcade-editor calcite-flow [slot=footer-actions]{word-break:break-word}arcgis-arcade-editor calcite-list-item-group calcite-list-item{margin-bottom:1px;box-shadow:0 1px 0 var(--calcite-ui-border-3)}arcgis-arcade-editor calcite-list-item-group calcite-list-item:last-child{box-shadow:none}arcgis-arcade-editor calcite-list-item-group:last-child{margin-bottom:var(--calcite-spacing-1)}";
74
+ const arcadeEditorCss = "arcgis-arcade-editor{display:flex;flex-direction:column;height:100%;width:100%;position:relative;overflow:hidden;border:1px solid var(--calcite-ui-border-3);box-sizing:border-box;background-color:var(--calcite-ui-foreground-1)}arcgis-arcade-editor .flex-adjustable{flex:1 1 auto;overflow:hidden}arcgis-arcade-editor .flex-panel{flex:1 0 auto}arcgis-arcade-editor .position-relative{position:relative}arcgis-arcade-editor .flex-row{display:flex;flex-direction:row;overflow:hidden}arcgis-arcade-editor .flex-column{display:flex;flex-direction:column;overflow:hidden}arcgis-arcade-editor .border-inline-start{border-inline-start:1px solid var(--calcite-ui-border-3);box-sizing:border-box}arcgis-arcade-editor .border-inline-end{border-inline-end:1px solid var(--calcite-ui-border-3);box-sizing:border-box}arcgis-arcade-editor .sticky{position:sticky;top:0px;z-index:10}arcgis-arcade-editor .notice-container{margin:var(--calcite-spacing-quarter);padding:var(--calcite-spacing-half);background-color:var(--calcite-ui-foreground-1);text-align:center}arcgis-arcade-editor .side-action-bar{max-width:25%}arcgis-arcade-editor .side-panel{max-width:45%;width:600px}arcgis-arcade-editor .side-panel calcite-flow{height:100%}arcgis-arcade-editor .main-action-bar{border-bottom:1px solid var(--calcite-ui-border-3);flex:0 0 auto}arcgis-arcade-editor .main-action-bar calcite-action-group{padding-inline-end:var(--calcite-spacing-half)}arcgis-arcade-editor .main-action-bar calcite-action-group calcite-action{padding-inline-end:var(--calcite-spacing-half)}arcgis-arcade-editor .main-action-bar calcite-action-group calcite-action:not(:first-child){padding-inline-start:var(--calcite-spacing-half)}arcgis-arcade-editor .main-action-bar calcite-action-group:last-child{border-inline-end-width:0px}arcgis-arcade-editor .main-action-bar calcite-action-group:not(:first-child){padding-inline-start:var(--calcite-spacing-half)}arcgis-arcade-editor arcgis-arcade-results{border-top:1px solid var(--calcite-ui-border-3);box-sizing:border-box;max-height:50%;min-height:50%;margin-bottom:-1px}arcgis-arcade-editor calcite-flow [slot=footer]{word-break:break-word}arcgis-arcade-editor calcite-list-item-group calcite-list-item{margin-bottom:1px;box-shadow:0 1px 0 var(--calcite-ui-border-3)}arcgis-arcade-editor calcite-list-item-group calcite-list-item:last-child{box-shadow:none}arcgis-arcade-editor calcite-list-item-group:last-child{margin-bottom:var(--calcite-spacing-1)}";
75
75
 
76
76
  setupArcadeTheme();
77
- const ArcgisArcadeEditor$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
77
+ const ArcgisArcadeEditor$1 = /*@__PURE__*/ proxyCustomElement(class ArcgisArcadeEditor extends HTMLElement {
78
78
  constructor() {
79
79
  super();
80
80
  this.__registerHost();
81
81
  this.scriptChange = createEvent(this, "scriptChange", 3);
82
82
  this.diagnosticsChange = createEvent(this, "diagnosticsChange", 3);
83
83
  this._componentReadyDefer = new h();
84
- this._modelId = _();
84
+ this._modelId = k();
85
85
  this._editorProfilePromise = Promise.resolve(undefined);
86
86
  this._disposables = [];
87
87
  this._executeScript = async () => {
@@ -126,7 +126,8 @@ const ArcgisArcadeEditor$1 = /*@__PURE__*/ proxyCustomElement(class extends HTML
126
126
  this._insertAsText = (e) => this._codeEditorElt?.insertText(e.detail);
127
127
  this._onResultPanelChange = (e) => (this._resultPanel = e.detail);
128
128
  this._onExecutionPanelClose = () => (this._showExecutionPanel = false);
129
- this._locale = "";
129
+ this._lang = "";
130
+ this._t9nLocale = "";
130
131
  this._t9nStrings = undefined;
131
132
  this._standaloneCodeEditor = undefined;
132
133
  this._preparingProfile = false;
@@ -221,11 +222,11 @@ const ArcgisArcadeEditor$1 = /*@__PURE__*/ proxyCustomElement(class extends HTML
221
222
  * @internal
222
223
  */
223
224
  async updateThemeColors(colorRules) {
224
- const theme = C(this._hostElt);
225
+ const theme = P(this._hostElement);
225
226
  updateThemeColors(theme, colorRules);
226
227
  if (colorRules === undefined) {
227
228
  ["comment", "keyword", "identifier", "string", "number", "constant", "date"].forEach((key) => {
228
- this._hostElt.style.removeProperty(`--arcgis-arcade-editor-${key}`);
229
+ this._hostElement.style.removeProperty(`--arcgis-arcade-editor-${key}`);
229
230
  });
230
231
  return;
231
232
  }
@@ -235,7 +236,7 @@ const ArcgisArcadeEditor$1 = /*@__PURE__*/ proxyCustomElement(class extends HTML
235
236
  if (!foreground) {
236
237
  return;
237
238
  }
238
- this._hostElt.style.setProperty(`--arcgis-arcade-editor-${key}`, foreground);
239
+ this._hostElement.style.setProperty(`--arcgis-arcade-editor-${key}`, foreground);
239
240
  });
240
241
  }
241
242
  // #endregion
@@ -295,7 +296,7 @@ const ArcgisArcadeEditor$1 = /*@__PURE__*/ proxyCustomElement(class extends HTML
295
296
  try {
296
297
  // Set a new profile for the model using the profile definition and the locale.
297
298
  await arcadeDefaults.setProfileForModel(this._modelId, this.profile, {
298
- locale: this._locale,
299
+ locale: this._t9nLocale,
299
300
  snippets: this.snippets
300
301
  });
301
302
  // Get the corresponding editor profile for the model.
@@ -316,7 +317,7 @@ const ArcgisArcadeEditor$1 = /*@__PURE__*/ proxyCustomElement(class extends HTML
316
317
  if (!this.testData) {
317
318
  return null;
318
319
  }
319
- return (h$1("calcite-action-bar", { class: "main-action-bar", layout: "horizontal", scale: "s", expanded: true, "expand-disabled": true }, h$1("calcite-action-group", { layout: "horizontal", scale: "s" }, h$1("calcite-action", { text: this._t9nStrings?.run ?? "Run", "text-enabled": true, icon: "play", scale: "s", loading: this._preparingProfile, onClick: this._executeScript }), this._executionResult ? (h$1("calcite-action", { text: this._t9nStrings?.lastresults ?? "Last results", active: this._showExecutionPanel, "text-enabled": true, icon: "access-string-results", iconFlipRtl: true, scale: "s", onClick: this._toggleShowExecutionPanel })) : null)));
320
+ return (h$1("calcite-action-bar", { class: "main-action-bar", layout: "horizontal", scale: "s", expanded: true, "expand-disabled": true }, h$1("calcite-action-group", { scale: "s" }, h$1("calcite-action", { text: this._t9nStrings?.run ?? "Run", "text-enabled": true, icon: "play", scale: "s", loading: this._preparingProfile, onClick: this._executeScript }), this._executionResult ? (h$1("calcite-action", { text: this._t9nStrings?.lastresults ?? "Last results", active: this._showExecutionPanel, "text-enabled": true, icon: "access-string-results", iconFlipRtl: true, scale: "s", onClick: this._toggleShowExecutionPanel })) : null)));
320
321
  }
321
322
  //#endregion
322
323
  //#region Render Main Panel
@@ -333,7 +334,7 @@ const ArcgisArcadeEditor$1 = /*@__PURE__*/ proxyCustomElement(class extends HTML
333
334
  if (this.hideSideBar) {
334
335
  return null;
335
336
  }
336
- return (h$1("calcite-action-bar", { class: "side-action-bar border-inline-start", expanded: !!this.sideActionBarExpanded, position: "end", onCalciteActionBarToggle: this._toggleSideActionBarExpanded }, h$1("calcite-action-group", null, h$1("calcite-action", { id: "profile-variables-action", text: this._t9nStrings?.profilevariables ?? "Profile variables", icon: "profile-variables", active: this.openedSidePanel === "variables", onClick: this._toggleSidePanel, "data-panel-name": "variables" }), h$1("calcite-action", { id: "function-action", text: this._t9nStrings?.constantsandfunctions ?? "Constants and functions", icon: "function", active: this.openedSidePanel === "api", onClick: this._toggleSidePanel, "data-panel-name": "api" }), this.suggestions?.length ? (h$1(Fragment, null, h$1("calcite-action", { id: "suggestions-action", text: this._t9nStrings?.suggestions ?? "Suggestions", icon: "lightbulb", active: this.openedSidePanel === "suggestions", onClick: this._toggleSidePanel, "data-panel-name": "suggestions" }))) : null, this.hideDocumentationActions ? null : (h$1(Fragment, null, h$1("calcite-action", { id: "developer-website-action", text: this._t9nStrings?.help ?? "Help", icon: "question", iconFlipRtl: this._locale === "ar", onClick: this._openArcadeHelp }))))));
337
+ return (h$1("calcite-action-bar", { class: "side-action-bar border-inline-start", expanded: !!this.sideActionBarExpanded, position: "end", onCalciteActionBarToggle: this._toggleSideActionBarExpanded }, h$1("calcite-action-group", null, h$1("calcite-action", { id: "profile-variables-action", text: this._t9nStrings?.profilevariables ?? "Profile variables", icon: "profile-variables", active: this.openedSidePanel === "variables", onClick: this._toggleSidePanel, "data-panel-name": "variables" }), h$1("calcite-action", { id: "function-action", text: this._t9nStrings?.constantsandfunctions ?? "Constants and functions", icon: "function", active: this.openedSidePanel === "api", onClick: this._toggleSidePanel, "data-panel-name": "api" }), this.suggestions?.length ? (h$1(Fragment, null, h$1("calcite-action", { id: "suggestions-action", text: this._t9nStrings?.suggestions ?? "Suggestions", icon: "lightbulb", active: this.openedSidePanel === "suggestions", onClick: this._toggleSidePanel, "data-panel-name": "suggestions" }))) : null, this.hideDocumentationActions ? null : (h$1(Fragment, null, h$1("calcite-action", { id: "developer-website-action", text: this._t9nStrings?.help ?? "Help", icon: "question", iconFlipRtl: this._t9nLocale === "ar", onClick: this._openArcadeHelp }))))));
337
338
  }
338
339
  // private renderTooltip(id: string, label: string | undefined): VNode | null {
339
340
  // if (this.sideActionBarExpanded || !label) {
@@ -376,7 +377,7 @@ const ArcgisArcadeEditor$1 = /*@__PURE__*/ proxyCustomElement(class extends HTML
376
377
  return (h$1(Host, null, this.renderMainActionBar(), h$1("div", { class: "flex-row flex-adjustable" }, h$1("div", { class: "flex-column flex-adjustable" }, this.renderMainPanel(), this.renderResultsPanel()), this.renderSidePanel(), this.renderSideActionBar())));
377
378
  }
378
379
  static get assetsDirs() { return ["assets"]; }
379
- get _hostElt() { return this; }
380
+ get _hostElement() { return this; }
380
381
  static get watchers() { return {
381
382
  "profile": ["_profileChanged"],
382
383
  "testData": ["_testDataChanged"],
@@ -393,7 +394,8 @@ const ArcgisArcadeEditor$1 = /*@__PURE__*/ proxyCustomElement(class extends HTML
393
394
  "hideSideBar": [4, "hide-side-bar"],
394
395
  "sideActionBarExpanded": [1540, "side-action-bar-expanded"],
395
396
  "openedSidePanel": [1537, "opened-side-panel"],
396
- "_locale": [32],
397
+ "_lang": [32],
398
+ "_t9nLocale": [32],
397
399
  "_t9nStrings": [32],
398
400
  "_standaloneCodeEditor": [32],
399
401
  "_preparingProfile": [32],
@@ -409,6 +411,10 @@ const ArcgisArcadeEditor$1 = /*@__PURE__*/ proxyCustomElement(class extends HTML
409
411
  "getTestResult": [64],
410
412
  "getOutputType": [64],
411
413
  "updateThemeColors": [64]
414
+ }, undefined, {
415
+ "profile": ["_profileChanged"],
416
+ "testData": ["_testDataChanged"],
417
+ "snippets": ["_snippetChanged"]
412
418
  }]);
413
419
  function defineCustomElement$1() {
414
420
  if (typeof customElements === "undefined") {