@arcgis/coding-components 4.29.0-beta.2 → 4.29.0-beta.21

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 (63) hide show
  1. package/{readme.md → README.md} +1 -1
  2. package/dist/arcgis-coding-components/arcgis-coding-components.esm.js +1 -1
  3. package/dist/arcgis-coding-components/assets/code-editor/arcade.worker.js +25 -22
  4. package/dist/arcgis-coding-components/assets/code-editor/css.worker.js +38 -35
  5. package/dist/arcgis-coding-components/assets/code-editor/editor.worker.js +8 -5
  6. package/dist/arcgis-coding-components/assets/code-editor/html.worker.js +43 -40
  7. package/dist/arcgis-coding-components/assets/code-editor/json.worker.js +25 -22
  8. package/dist/arcgis-coding-components/assets/code-editor/ts.worker.js +164 -161
  9. package/dist/arcgis-coding-components/index.esm.js +1 -1
  10. package/dist/arcgis-coding-components/{p-683e3dd4.js → p-03fdafca.js} +1 -1
  11. package/dist/arcgis-coding-components/{p-74e0738d.js → p-0576dbec.js} +2 -2
  12. package/dist/arcgis-coding-components/{p-7fb19e9b.js → p-06933e66.js} +2 -2
  13. package/dist/arcgis-coding-components/p-1026ac44.js +62 -0
  14. package/dist/arcgis-coding-components/{p-5fe913f0.js → p-19e5c819.js} +2 -2
  15. package/dist/arcgis-coding-components/{p-3eb641a2.js → p-27c32cb5.js} +2 -2
  16. package/dist/arcgis-coding-components/{p-a152b643.js → p-3230ff72.js} +2 -2
  17. package/dist/arcgis-coding-components/{p-96c3ebcb.js → p-5886ff57.js} +2 -2
  18. package/dist/arcgis-coding-components/p-b22ca8bd.entry.js +1 -0
  19. package/dist/arcgis-coding-components/{p-98f0e116.js → p-cfff9500.js} +1 -1
  20. package/dist/arcgis-coding-components/{p-27d03fb2.js → p-d295623f.js} +2 -2
  21. package/dist/cjs/{arcade-defaults-55c18abe.js → arcade-defaults-f3018d42.js} +64438 -59096
  22. package/dist/cjs/{arcade-mode-bd1630dd.js → arcade-mode-d8992eff.js} +1 -1
  23. package/dist/cjs/arcgis-arcade-api_6.cjs.entry.js +31 -26
  24. package/dist/cjs/arcgis-coding-components.cjs.js +1 -1
  25. package/dist/cjs/{css-3c67d381.js → css-7229b372.js} +1 -1
  26. package/dist/cjs/{cssMode-73d4ac47.js → cssMode-ff46e730.js} +2 -2
  27. package/dist/cjs/{html-da599f39.js → html-bda3d1b5.js} +2 -2
  28. package/dist/cjs/{htmlMode-6f0883d3.js → htmlMode-8f94c96b.js} +2 -2
  29. package/dist/cjs/index.cjs.js +1 -1
  30. package/dist/cjs/{javascript-92268a2f.js → javascript-30f6d6ec.js} +3 -3
  31. package/dist/cjs/{jsonMode-110ef3c9.js → jsonMode-8fa83206.js} +2 -2
  32. package/dist/cjs/loader.cjs.js +1 -1
  33. package/dist/cjs/{tsMode-8cb72aa2.js → tsMode-cbdd6b63.js} +2 -2
  34. package/dist/cjs/{typescript-edaad128.js → typescript-62fca9c7.js} +2 -2
  35. package/dist/components/arcade-api.js +7 -5
  36. package/dist/components/arcade-results.js +8 -6
  37. package/dist/components/arcade-suggestions.js +7 -5
  38. package/dist/components/arcade-variables.js +7 -5
  39. package/dist/components/arcgis-arcade-editor.js +12 -10
  40. package/dist/components/code-editor.js +3 -3
  41. package/dist/components/index2.js +2 -2
  42. package/dist/esm/{arcade-defaults-ac486973.js → arcade-defaults-ad21b36b.js} +64437 -59095
  43. package/dist/esm/{arcade-mode-fc719356.js → arcade-mode-b5543a19.js} +1 -1
  44. package/dist/esm/arcgis-arcade-api_6.entry.js +31 -26
  45. package/dist/esm/arcgis-coding-components.js +1 -1
  46. package/dist/esm/{css-9066b96a.js → css-ff1e9f8c.js} +1 -1
  47. package/dist/esm/{cssMode-f452e699.js → cssMode-36fbfe4d.js} +2 -2
  48. package/dist/esm/{html-7c0b7520.js → html-f3e092fc.js} +2 -2
  49. package/dist/esm/{htmlMode-200a28b3.js → htmlMode-488c22d0.js} +2 -2
  50. package/dist/esm/index.js +1 -1
  51. package/dist/esm/{javascript-44a7aba3.js → javascript-252e8a68.js} +3 -3
  52. package/dist/esm/{jsonMode-fb784fa5.js → jsonMode-5b163853.js} +2 -2
  53. package/dist/esm/loader.js +1 -1
  54. package/dist/esm/{tsMode-890f3141.js → tsMode-7ddbcb35.js} +2 -2
  55. package/dist/esm/{typescript-4b8bacca.js → typescript-ab3b951e.js} +2 -2
  56. package/dist/types/components/arcade-api/arcade-api.d.ts +3 -2
  57. package/dist/types/components/arcade-editor/arcade-editor.d.ts +3 -2
  58. package/dist/types/components/arcade-results/arcade-results.d.ts +3 -2
  59. package/dist/types/components/arcade-suggestions/arcade-suggestions.d.ts +3 -2
  60. package/dist/types/components/arcade-variables/arcade-variables.d.ts +3 -2
  61. package/package.json +20 -19
  62. package/dist/arcgis-coding-components/p-2c5583d5.entry.js +0 -1
  63. package/dist/arcgis-coding-components/p-a388e974.js +0 -62
@@ -17,7 +17,7 @@ const patchBrowser = () => {
17
17
  };
18
18
 
19
19
  patchBrowser().then(options => {
20
- 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);
20
+ 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]}],[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]}],[1,"arcgis-arcade-variables",{"loading":[4],"modelId":[1,"model-id"],"_lang":[32],"_t9nLocale":[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);
21
21
  });
22
22
 
23
23
  exports.setNonce = index.setNonce;
@@ -2,7 +2,7 @@
2
2
 
3
3
  /*!-----------------------------------------------------------------------------
4
4
  * Copyright (c) Microsoft Corporation. All rights reserved.
5
- * Version: 0.39.0(ff3621a3fa6389873be5412d17554294ea1b0941)
5
+ * Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
6
6
  * Released under the MIT license
7
7
  * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
8
8
  *-----------------------------------------------------------------------------*/
@@ -1,11 +1,11 @@
1
1
  'use strict';
2
2
 
3
- const arcadeDefaults = require('./arcade-defaults-55c18abe.js');
3
+ const arcadeDefaults = require('./arcade-defaults-f3018d42.js');
4
4
  require('./index-f8a85eb8.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');
3
+ const arcadeDefaults = require('./arcade-defaults-f3018d42.js');
4
4
  require('./index-f8a85eb8.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');
3
+ const arcadeDefaults = require('./arcade-defaults-f3018d42.js');
4
4
  require('./index-f8a85eb8.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
  *-----------------------------------------------------------------------------*/
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const arcadeDefaults = require('./arcade-defaults-55c18abe.js');
5
+ const arcadeDefaults = require('./arcade-defaults-f3018d42.js');
6
6
  require('./index-f8a85eb8.js');
7
7
 
8
8
 
@@ -1,12 +1,12 @@
1
1
  'use strict';
2
2
 
3
- const typescript = require('./typescript-edaad128.js');
4
- require('./arcade-defaults-55c18abe.js');
3
+ const typescript = require('./typescript-62fca9c7.js');
4
+ require('./arcade-defaults-f3018d42.js');
5
5
  require('./index-f8a85eb8.js');
6
6
 
7
7
  /*!-----------------------------------------------------------------------------
8
8
  * Copyright (c) Microsoft Corporation. All rights reserved.
9
- * Version: 0.39.0(ff3621a3fa6389873be5412d17554294ea1b0941)
9
+ * Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
10
10
  * Released under the MIT license
11
11
  * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
12
12
  *-----------------------------------------------------------------------------*/
@@ -1,11 +1,11 @@
1
1
  'use strict';
2
2
 
3
- const arcadeDefaults = require('./arcade-defaults-55c18abe.js');
3
+ const arcadeDefaults = require('./arcade-defaults-f3018d42.js');
4
4
  require('./index-f8a85eb8.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
  *-----------------------------------------------------------------------------*/
@@ -14,7 +14,7 @@ const patchEsm = () => {
14
14
  const defineCustomElements = (win, options) => {
15
15
  if (typeof window === 'undefined') return Promise.resolve();
16
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);
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"],"_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]}],[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]}],[1,"arcgis-arcade-variables",{"loading":[4],"modelId":[1,"model-id"],"_lang":[32],"_t9nLocale":[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
18
  });
19
19
  };
20
20
 
@@ -1,11 +1,11 @@
1
1
  'use strict';
2
2
 
3
- const arcadeDefaults = require('./arcade-defaults-55c18abe.js');
3
+ const arcadeDefaults = require('./arcade-defaults-f3018d42.js');
4
4
  require('./index-f8a85eb8.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');
3
+ const arcadeDefaults = require('./arcade-defaults-f3018d42.js');
4
4
  require('./index-f8a85eb8.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,7 +3,7 @@ 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
8
  import { a as getArcadeWorker } from './arcade-contribution.js';
9
9
  import '@esri/calcite-components/dist/components/calcite-list-item-group.js';
@@ -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
  }
@@ -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],
@@ -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,15 @@ 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, { dateStyle: "medium", timeStyle: "medium" }).format(this.result.timeStamp)
324
325
  }) }, 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, {
326
+ time: new Intl.NumberFormat(this._t9nLocale, {
326
327
  style: "unit",
327
328
  unit: "millisecond",
328
329
  maximumFractionDigits: 2
329
330
  }).format(this.result.compilationTime ?? 0)
330
331
  }) }, 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, {
332
+ time: new Intl.NumberFormat(this._t9nLocale, {
332
333
  style: "unit",
333
334
  unit: "millisecond",
334
335
  maximumFractionDigits: 2
@@ -477,14 +478,15 @@ const ArcgisArcadeResults = /*@__PURE__*/ proxyCustomElement(class extends HTMLE
477
478
  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())))));
478
479
  }
479
480
  static get assetsDirs() { return ["assets"]; }
480
- get _hostElt() { return this; }
481
+ get _hostElement() { return this; }
481
482
  static get style() { return arcadeResultsCss; }
482
483
  }, [1, "arcgis-arcade-results", {
483
484
  "loading": [4],
484
485
  "openedResultPanel": [1537, "opened-result-panel"],
485
486
  "result": [16],
486
487
  "consoleLogs": [16],
487
- "_locale": [32],
488
+ "_lang": [32],
489
+ "_t9nLocale": [32],
488
490
  "_t9nStrings": [32]
489
491
  }]);
490
492
  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';
@@ -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
  }
@@ -129,14 +130,15 @@ const ArcgisArcadeSuggestions = /*@__PURE__*/ proxyCustomElement(class extends H
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],
@@ -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';
@@ -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,7 +155,8 @@ 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],
@@ -1,7 +1,7 @@
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';
4
+ import { h, k, P, $, F } from './index2.js';
5
5
  import { s as setupMonacoEnvironment, g 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';
@@ -81,7 +81,7 @@ const ArcgisArcadeEditor$1 = /*@__PURE__*/ proxyCustomElement(class extends HTML
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.
@@ -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],