@arcgis/coding-components 4.29.0-beta.61 → 4.29.0-beta.63

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 (122) hide show
  1. package/dist/arcgis-coding-components/arcgis-coding-components.esm.js +1 -1
  2. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ar.json +3 -3
  3. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.bg.json +3 -3
  4. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.bs.json +3 -3
  5. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ca.json +3 -3
  6. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.cs.json +3 -3
  7. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.da.json +3 -3
  8. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.de.json +3 -3
  9. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.el.json +3 -3
  10. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.es.json +3 -3
  11. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.et.json +3 -3
  12. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.fi.json +3 -3
  13. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.fr.json +3 -3
  14. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.he.json +3 -3
  15. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.hr.json +3 -3
  16. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.hu.json +3 -3
  17. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.id.json +3 -3
  18. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.it.json +3 -3
  19. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ja.json +3 -3
  20. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ko.json +3 -3
  21. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.lt.json +3 -3
  22. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.lv.json +3 -3
  23. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.nb.json +3 -3
  24. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.nl.json +3 -3
  25. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.pl.json +3 -3
  26. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.pt-BR.json +3 -3
  27. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.pt-PT.json +3 -3
  28. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ro.json +3 -3
  29. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.ru.json +3 -3
  30. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sk.json +3 -3
  31. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sl.json +3 -3
  32. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sr.json +3 -3
  33. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.sv.json +3 -3
  34. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.th.json +3 -3
  35. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.tr.json +3 -3
  36. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.uk.json +3 -3
  37. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.vi.json +3 -3
  38. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.zh-CN.json +3 -3
  39. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.zh-HK.json +3 -3
  40. package/dist/arcgis-coding-components/assets/arcade-language/api/arcade-api.t9n.zh-TW.json +3 -3
  41. package/dist/arcgis-coding-components/assets/code-editor/arcade.worker.js +23 -23
  42. package/dist/arcgis-coding-components/assets/code-editor/css.worker.js +30 -30
  43. package/dist/arcgis-coding-components/assets/code-editor/editor.worker.js +7 -7
  44. package/dist/arcgis-coding-components/assets/code-editor/html.worker.js +18 -18
  45. package/dist/arcgis-coding-components/assets/code-editor/json.worker.js +20 -20
  46. package/dist/arcgis-coding-components/assets/code-editor/ts.worker.js +77 -77
  47. package/dist/arcgis-coding-components/index.esm.js +1 -1
  48. package/dist/arcgis-coding-components/{p-cfff9500.js → p-009eaccf.js} +1 -1
  49. package/dist/arcgis-coding-components/{p-2bd81bb5.js → p-2a665136.js} +2 -2
  50. package/dist/arcgis-coding-components/p-3ba4deea.js +1 -0
  51. package/dist/arcgis-coding-components/{p-4dce7d14.js → p-595d9a06.js} +2 -2
  52. package/dist/arcgis-coding-components/{p-665d75bc.js → p-7b6af57c.js} +2 -2
  53. package/dist/arcgis-coding-components/p-7d5fcf2e.js +63 -0
  54. package/dist/arcgis-coding-components/{p-e26e9f42.js → p-989439a0.js} +2 -2
  55. package/dist/arcgis-coding-components/{p-4e2e25e0.js → p-9b4a0643.js} +2 -2
  56. package/dist/arcgis-coding-components/{p-2e47d2b1.js → p-d7ca1083.js} +2 -2
  57. package/dist/arcgis-coding-components/p-e4efcbd0.entry.js +1 -0
  58. package/dist/arcgis-coding-components/{p-f7369d73.js → p-fcdd0366.js} +2 -2
  59. package/dist/cjs/{arcade-defaults-a0f45ab1.js → arcade-defaults-5c2ff166.js} +11507 -9772
  60. package/dist/cjs/{arcade-mode-579b4052.js → arcade-mode-23925c8d.js} +10 -9
  61. package/dist/cjs/arcgis-arcade-api_6.cjs.entry.js +47 -51
  62. package/dist/cjs/{css-7229b372.js → css-eb1c8e5c.js} +1 -1
  63. package/dist/cjs/{cssMode-c3cf6180.js → cssMode-2e878b70.js} +2 -2
  64. package/dist/cjs/{html-0017e4c9.js → html-847c7e39.js} +2 -2
  65. package/dist/cjs/{htmlMode-17c8c42c.js → htmlMode-7a36db6d.js} +2 -2
  66. package/dist/cjs/index.cjs.js +1 -1
  67. package/dist/cjs/{javascript-8270accf.js → javascript-f5ca9a1a.js} +3 -3
  68. package/dist/cjs/{jsonMode-31e5160f.js → jsonMode-0d326a6e.js} +2 -2
  69. package/dist/cjs/{tsMode-db6b702f.js → tsMode-e4abe99d.js} +2 -2
  70. package/dist/cjs/{typescript-b962205d.js → typescript-c43b7258.js} +2 -2
  71. package/dist/components/arcade-api.js +6 -6
  72. package/dist/components/arcade-contribution.js +5 -5
  73. package/dist/components/arcade-defaults.js +35 -35
  74. package/dist/components/arcade-mode.js +9 -8
  75. package/dist/components/arcade-results.js +12 -12
  76. package/dist/components/arcade-suggestions.js +6 -6
  77. package/dist/components/arcade-variables.js +5 -5
  78. package/dist/components/arcgis-arcade-editor.js +20 -20
  79. package/dist/components/code-editor.js +9 -13
  80. package/dist/components/fields.js +2 -2
  81. package/dist/components/index2.js +2 -2
  82. package/dist/components/markdown.js +1 -1
  83. package/dist/components/utilities.js +2 -2
  84. package/dist/esm/{arcade-defaults-d96f16cd.js → arcade-defaults-7525fe7a.js} +11500 -9765
  85. package/dist/esm/{arcade-mode-8662cb42.js → arcade-mode-312bbd22.js} +10 -9
  86. package/dist/esm/arcgis-arcade-api_6.entry.js +47 -51
  87. package/dist/esm/{css-ff1e9f8c.js → css-aade9167.js} +1 -1
  88. package/dist/esm/{cssMode-eb4872e0.js → cssMode-71ce0374.js} +2 -2
  89. package/dist/esm/{html-074ac87c.js → html-37ae4460.js} +2 -2
  90. package/dist/esm/{htmlMode-3a5d257f.js → htmlMode-ae5b0f39.js} +2 -2
  91. package/dist/esm/index.js +1 -1
  92. package/dist/esm/{javascript-edca9928.js → javascript-ad435a4b.js} +3 -3
  93. package/dist/esm/{jsonMode-e7283fe9.js → jsonMode-b8bb4df0.js} +2 -2
  94. package/dist/esm/{tsMode-1dba46bc.js → tsMode-b967128d.js} +2 -2
  95. package/dist/esm/{typescript-21a54a2f.js → typescript-a9a22ab3.js} +2 -2
  96. package/dist/types/components/arcade-api/arcade-api.d.ts +3 -3
  97. package/dist/types/components/arcade-editor/arcade-editor.d.ts +8 -8
  98. package/dist/types/components/arcade-results/arcade-results.d.ts +4 -4
  99. package/dist/types/components/arcade-suggestions/arcade-suggestions.d.ts +5 -5
  100. package/dist/types/components/arcade-variables/arcade-variables.d.ts +3 -3
  101. package/dist/types/components/code-editor/code-editor.d.ts +2 -2
  102. package/dist/types/components.d.ts +7 -5
  103. package/dist/types/index.d.ts +1 -1
  104. package/dist/types/utils/arcade-executor.d.ts +14 -14
  105. package/dist/types/utils/arcade-monaco/arcade-contribution.d.ts +1 -1
  106. package/dist/types/utils/arcade-monaco/arcade-defaults.d.ts +11 -10
  107. package/dist/types/utils/arcade-monaco/arcade-language-features.d.ts +5 -4
  108. package/dist/types/utils/arcade-monaco/arcade-mode.d.ts +1 -1
  109. package/dist/types/utils/arcade-monaco/arcade-theme.d.ts +1 -1
  110. package/dist/types/utils/arcade-monaco/arcade-worker-manager.d.ts +2 -2
  111. package/dist/types/utils/arcade-monaco/arcade.worker.d.ts +2 -2
  112. package/dist/types/utils/arcade-monaco/types.d.ts +8 -10
  113. package/dist/types/utils/colorize.d.ts +1 -1
  114. package/dist/types/utils/functional-components.d.ts +1 -1
  115. package/dist/types/utils/profile/editor-profile.d.ts +16 -18
  116. package/dist/types/utils/profile/types.d.ts +14 -14
  117. package/dist/types/utils/profile/utils.d.ts +1 -1
  118. package/dist/types/utils/utilities.d.ts +1 -1
  119. package/package.json +7 -7
  120. package/dist/arcgis-coding-components/p-0e589f27.entry.js +0 -1
  121. package/dist/arcgis-coding-components/p-15c465b1.js +0 -1
  122. package/dist/arcgis-coding-components/p-abb70533.js +0 -62
@@ -2,7 +2,7 @@
2
2
 
3
3
  /*!-----------------------------------------------------------------------------
4
4
  * Copyright (c) Microsoft Corporation. All rights reserved.
5
- * Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
5
+ * Version: 0.45.0(5e5af013f8d295555a7210df0d5f2cea0bf5dd56)
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-a0f45ab1.js');
3
+ const arcadeDefaults = require('./arcade-defaults-5c2ff166.js');
4
4
  require('./index-ac186201.js');
5
5
 
6
6
  /*!-----------------------------------------------------------------------------
7
7
  * Copyright (c) Microsoft Corporation. All rights reserved.
8
- * Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
8
+ * Version: 0.45.0(5e5af013f8d295555a7210df0d5f2cea0bf5dd56)
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-a0f45ab1.js');
3
+ const arcadeDefaults = require('./arcade-defaults-5c2ff166.js');
4
4
  require('./index-ac186201.js');
5
5
 
6
6
  /*!-----------------------------------------------------------------------------
7
7
  * Copyright (c) Microsoft Corporation. All rights reserved.
8
- * Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
8
+ * Version: 0.45.0(5e5af013f8d295555a7210df0d5f2cea0bf5dd56)
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-a0f45ab1.js');
3
+ const arcadeDefaults = require('./arcade-defaults-5c2ff166.js');
4
4
  require('./index-ac186201.js');
5
5
 
6
6
  /*!-----------------------------------------------------------------------------
7
7
  * Copyright (c) Microsoft Corporation. All rights reserved.
8
- * Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
8
+ * Version: 0.45.0(5e5af013f8d295555a7210df0d5f2cea0bf5dd56)
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-a0f45ab1.js');
5
+ const arcadeDefaults = require('./arcade-defaults-5c2ff166.js');
6
6
  require('./index-ac186201.js');
7
7
 
8
8
 
@@ -1,12 +1,12 @@
1
1
  'use strict';
2
2
 
3
- const typescript = require('./typescript-b962205d.js');
4
- require('./arcade-defaults-a0f45ab1.js');
3
+ const typescript = require('./typescript-c43b7258.js');
4
+ require('./arcade-defaults-5c2ff166.js');
5
5
  require('./index-ac186201.js');
6
6
 
7
7
  /*!-----------------------------------------------------------------------------
8
8
  * Copyright (c) Microsoft Corporation. All rights reserved.
9
- * Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
9
+ * Version: 0.45.0(5e5af013f8d295555a7210df0d5f2cea0bf5dd56)
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-a0f45ab1.js');
3
+ const arcadeDefaults = require('./arcade-defaults-5c2ff166.js');
4
4
  require('./index-ac186201.js');
5
5
 
6
6
  /*!-----------------------------------------------------------------------------
7
7
  * Copyright (c) Microsoft Corporation. All rights reserved.
8
- * Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
8
+ * Version: 0.45.0(5e5af013f8d295555a7210df0d5f2cea0bf5dd56)
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-a0f45ab1.js');
3
+ const arcadeDefaults = require('./arcade-defaults-5c2ff166.js');
4
4
  require('./index-ac186201.js');
5
5
 
6
6
  /*!-----------------------------------------------------------------------------
7
7
  * Copyright (c) Microsoft Corporation. All rights reserved.
8
- * Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
8
+ * Version: 0.45.0(5e5af013f8d295555a7210df0d5f2cea0bf5dd56)
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-a0f45ab1.js');
3
+ const arcadeDefaults = require('./arcade-defaults-5c2ff166.js');
4
4
  require('./index-ac186201.js');
5
5
 
6
6
  /*!-----------------------------------------------------------------------------
7
7
  * Copyright (c) Microsoft Corporation. All rights reserved.
8
- * Version: 0.44.0(3e047efd345ff102c8c61b5398fb30845aaac166)
8
+ * Version: 0.45.0(5e5af013f8d295555a7210df0d5f2cea0bf5dd56)
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, U, O, q } from './index2.js';
6
+ import { W, B, j, G } from './index2.js';
7
7
  import { b as arcadeDefaults } from './arcade-defaults.js';
8
8
  import { g as getArcadeWorker } from './arcade-contribution.js';
9
9
  import '@esri/calcite-components/dist/components/calcite-list-item-group.js';
@@ -78,7 +78,7 @@ const ArcgisArcadeApi = /*@__PURE__*/ proxyCustomElement(class ArcgisArcadeApi e
78
78
  async componentWillLoad() {
79
79
  this._colorizeStyle = generateColorizeStyles();
80
80
  this._themeChangedListner = onColorizeThemeChanged(() => (this._colorizeStyle = generateColorizeStyles()));
81
- await F(this, getAssetPath("./assets"));
81
+ await W(this, getAssetPath("./assets"));
82
82
  arcadeDefaults.onModelContextDidChange((key) => {
83
83
  if (!this.modelId || key !== Uri.parse(this.modelId).toString()) {
84
84
  return;
@@ -88,7 +88,7 @@ const ArcgisArcadeApi = /*@__PURE__*/ proxyCustomElement(class ArcgisArcadeApi e
88
88
  this._updateApiLibrary();
89
89
  }
90
90
  disconnectedCallback() {
91
- U(this);
91
+ B(this);
92
92
  this._flowObserver?.disconnect();
93
93
  this._themeChangedListner?.dispose();
94
94
  }
@@ -133,7 +133,7 @@ const ArcgisArcadeApi = /*@__PURE__*/ proxyCustomElement(class ArcgisArcadeApi e
133
133
  // When switching between flow the same reference is reused
134
134
  this._flowObserver = new MutationObserver(() => {
135
135
  // Get the last panel and try to set focus on the input element
136
- O(ref.querySelector("calcite-flow-item:last-child"), "calcite-input");
136
+ j(ref.querySelector("calcite-flow-item:last-child"), "calcite-input");
137
137
  });
138
138
  this._flowObserver.observe(ref, { attributes: true, attributeFilter: ["id"], childList: true });
139
139
  }
@@ -144,14 +144,14 @@ const ArcgisArcadeApi = /*@__PURE__*/ proxyCustomElement(class ArcgisArcadeApi e
144
144
  if (!filteredApiItems.length) {
145
145
  return null;
146
146
  }
147
- return (h("calcite-list-item-group", { heading: category.title }, filteredApiItems.map((apiItem) => (h("calcite-list-item", { label: q(apiItem.completion.detail), onCalciteListItemSelect: this._emitItemSelected, onKeyPress: this._emitItemSelected, "data-item": apiItem }, h("calcite-action", { slot: "actions-end", text: this._t9nStrings?.expand ?? "Expand", icon: "chevron-right", iconFlipRtl: true, scale: "s", onClick: this._selectItem, "data-item": apiItem }))))));
147
+ return (h("calcite-list-item-group", { heading: category.title }, filteredApiItems.map((apiItem) => (h("calcite-list-item", { label: G(apiItem.completion.detail), onCalciteListItemSelect: this._emitItemSelected, onKeyPress: this._emitItemSelected, "data-item": apiItem }, h("calcite-action", { slot: "actions-end", text: this._t9nStrings?.expand ?? "Expand", icon: "chevron-right", iconFlipRtl: true, scale: "s", onClick: this._selectItem, "data-item": apiItem }))))));
148
148
  }
149
149
  renderApiItemFlowItem() {
150
150
  const apiItem = this._selectedApiItem;
151
151
  if (!apiItem) {
152
152
  return null;
153
153
  }
154
- 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) => {
154
+ 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) => void e?.setFocus() }, this._t9nStrings?.insert ?? "Insert"), h("calcite-block", { open: true, heading: G(apiItem.completion.detail) }, h("div", { innerHTML: convertMarkdownString(apiItem.completion.documentation) }), apiItem.examples ? (h("div", { ref: (e) => {
155
155
  if (!e) {
156
156
  return;
157
157
  }
@@ -1,7 +1,7 @@
1
1
  import { languages } from 'monaco-editor';
2
2
  import { b as arcadeDefaults } from './arcade-defaults.js';
3
3
  import { c as importRequest } from './fields.js';
4
- import { X, V } from './index2.js';
4
+ import { n as ne, t as te } from './index2.js';
5
5
 
6
6
  function isMonacoEnvironmentSetup() {
7
7
  return !!globalThis.MonacoEnvironment?.getWorkerUrl;
@@ -42,7 +42,7 @@ function setupMonacoEnvironment(assetsPath) {
42
42
  break;
43
43
  }
44
44
  // If we have a relative path or we are on same orgin, we can use the default js implementation
45
- if (!X(url) || V(url, globalThis.location.href, true)) {
45
+ if (!ne(url) || te(url, globalThis.location.href, true)) {
46
46
  return new Worker(url, { name: languageId });
47
47
  }
48
48
  // For cross orgin, we will load the worker code as a string and manufacture a blob
@@ -82,14 +82,14 @@ async function getArcadeDiagnosticService() {
82
82
  */
83
83
  async function getArcadeWorker(uri) {
84
84
  const mode = await getMode();
85
- return mode.getArcadeWorker(uri);
85
+ return await mode.getArcadeWorker(uri);
86
86
  }
87
87
  /**
88
88
  * Request the arcade mode
89
89
  * @returns mode for arcade
90
90
  */
91
- function getMode() {
92
- return import('./arcade-mode.js');
91
+ async function getMode() {
92
+ return await import('./arcade-mode.js');
93
93
  }
94
94
  // Register the language in Monaco
95
95
  languages.register({
@@ -2,7 +2,7 @@ import { Emitter, Uri } from 'monaco-editor';
2
2
  import { CompletionItemKind, InsertTextMode, InsertTextFormat } from 'vscode-languageserver-types';
3
3
  import { i as importPortalPortalItem, a as importLayersFeatureLayer, b as importWebMap, s as supportedFields, c as importRequest, f as fieldTypeToIconName, d as fieldTypeToArcadeType } from './fields.js';
4
4
  import { p as portalItemPageUrl } from './utilities.js';
5
- import { D, G, q, H, x, N } from './index2.js';
5
+ import { V, X, G, D, E, N } from './index2.js';
6
6
  import { getAssetPath } from '@stencil/core/internal/client';
7
7
 
8
8
  async function newPortalItem(definition) {
@@ -151,7 +151,7 @@ function getDomainValuesProperties(profile, domain, label) {
151
151
  function getDomainValuesBySubtypeGroup(profile, types, field) {
152
152
  const variables = [];
153
153
  types.forEach((t) => {
154
- let domain = t.domains?.[field.name];
154
+ let domain = t.domains[field.name];
155
155
  if (!domain) {
156
156
  return;
157
157
  }
@@ -252,9 +252,9 @@ async function variablesToLSVariable(editorVariables, kind = CompletionItemKind.
252
252
  const properties = await Promise.all(editorVariables.map(async (editorVariable) => {
253
253
  switch (editorVariable.type) {
254
254
  case "dictionary":
255
- return dictionaryToLSDictionary(editorVariable, kind);
255
+ return await dictionaryToLSDictionary(editorVariable, kind);
256
256
  case "feature":
257
- return featureToLSFeature(editorVariable, kind);
257
+ return await featureToLSFeature(editorVariable, kind);
258
258
  default:
259
259
  return variableToLSVariable(editorVariable, kind);
260
260
  }
@@ -418,9 +418,9 @@ class ProfileItemBase {
418
418
  // If the component is under RTL, the string is messed up.
419
419
  // It is converted from $feature to feature$, This is not acceptable since the label
420
420
  // represents a variable name. We are adding in front of the $ sign a right to left mark.
421
- return q(this._label);
421
+ return G(this._label);
422
422
  }
423
- return H(this._profile?.intlStrings?.[this._label.code], this._label.formatValues);
423
+ return D(this._profile?.intlStrings[this._label.code], this._label.formatValues);
424
424
  }
425
425
  /**
426
426
  * Returns the description string.
@@ -432,7 +432,7 @@ class ProfileItemBase {
432
432
  if (typeof this.description === "string") {
433
433
  return this.description;
434
434
  }
435
- return H(this._profile?.intlStrings?.[this.description.code ?? ""], this.description.formatValues);
435
+ return D(this._profile?.intlStrings[this.description.code ?? ""], this.description.formatValues);
436
436
  }
437
437
  /**
438
438
  * Returns true if the item pass the filter test
@@ -469,7 +469,7 @@ class ValueVariable extends VariableBase {
469
469
  super(props);
470
470
  this.type = "text";
471
471
  this.isCollection = false;
472
- this.type = props?.declaration?.type ?? "text";
472
+ this.type = props.declaration?.type ?? "text";
473
473
  }
474
474
  getDescription() {
475
475
  if (this.description == null) {
@@ -563,7 +563,7 @@ class DictionaryVariable extends CollectionBasedVariable {
563
563
  * The variables may contain grouping.
564
564
  */
565
565
  this.dictionaryVariables = [];
566
- this.loadPropertyDeclarations(props?.declaration?.properties);
566
+ this.loadPropertyDeclarations(props.declaration?.properties);
567
567
  // If we have a snippet then wrap the properties in a group and use the snippet as the heading
568
568
  // This is not applicable for root Dictionary such as Profile
569
569
  if (this.snippet && this.dictionaryVariables.length) {
@@ -643,7 +643,7 @@ class SourceBasedVariable extends CollectionBasedVariable {
643
643
  this.relationshipsProperties = relationshipsProperties;
644
644
  this._source = null;
645
645
  this._loaded = false;
646
- this._definition = props?.declaration?.definition;
646
+ this._definition = props.declaration?.definition;
647
647
  }
648
648
  get title() {
649
649
  return this._source?.title ?? "";
@@ -663,14 +663,14 @@ class SourceBasedVariable extends CollectionBasedVariable {
663
663
  return `${url}/${layerId}`;
664
664
  }
665
665
  get informationType() {
666
- return this._profile?.intlStrings?.layer ?? "layer";
666
+ return this._profile?.intlStrings.layer ?? "layer";
667
667
  }
668
- loadSource() {
669
- if (D(this._loadPromise) && G(this._loadPromise)) {
670
- return this._loadPromise;
668
+ async loadSource() {
669
+ if (V(this._loadPromise) && X(this._loadPromise)) {
670
+ return await this._loadPromise;
671
671
  }
672
672
  this._loadPromise = this._loadSource();
673
- return this._loadPromise;
673
+ return await this._loadPromise;
674
674
  }
675
675
  _getFieldProperty(field) {
676
676
  // Check if the field is the type id field or of the field has a coded domain.
@@ -733,7 +733,7 @@ class SourceBasedVariable extends CollectionBasedVariable {
733
733
  if (isTypesCapabaleLayer(this._source)) {
734
734
  // Check if all the domains for the field in the types are inherited.
735
735
  // If it is we can simplify the structure by avoiding splitting in subtypes
736
- const allInherited = this._source.types.every((t) => t.domains?.[field.name]?.type === "inherited");
736
+ const allInherited = this._source.types.every((t) => t.domains[field.name].type === "inherited");
737
737
  if (!allInherited) {
738
738
  // We have domains per subtype
739
739
  // We need to go thru each types and create a dictionary.
@@ -746,7 +746,7 @@ class SourceBasedVariable extends CollectionBasedVariable {
746
746
  }
747
747
  }
748
748
  // Either we have types but all the domains are inherited or we don't have types
749
- const domainValuesGroup = getDomainValuesProperties(this._profile, this._source.getFieldDomain?.(field.name), {
749
+ const domainValuesGroup = getDomainValuesProperties(this._profile, this._source.getFieldDomain(field.name), {
750
750
  code: "domainvalues"
751
751
  });
752
752
  if (!domainValuesGroup) {
@@ -783,7 +783,7 @@ class SourceBasedVariable extends CollectionBasedVariable {
783
783
  nonInteractive: true
784
784
  }, [new ValueVariable({ profile: this._profile, label: snippet, description: "", snippet })], { exposeRelationships: true, sourceTableId: source.layerId });
785
785
  }));
786
- relationshipsGroup.variables = relationshipItems.filter(D);
786
+ relationshipsGroup.variables = relationshipItems.filter(V);
787
787
  if (!relationshipsGroup.variables.length) {
788
788
  return null;
789
789
  }
@@ -916,7 +916,7 @@ class FeatureSetCollectionVariable extends CollectionBasedVariable {
916
916
  this.type = "featureSetCollection";
917
917
  this._featureSetCollections = null;
918
918
  this._loaded = false;
919
- this._definition = props?.declaration?.definition;
919
+ this._definition = props.declaration?.definition;
920
920
  }
921
921
  get informationUrl() {
922
922
  if (!this.loaded || !this._featureSetCollections) {
@@ -936,16 +936,16 @@ class FeatureSetCollectionVariable extends CollectionBasedVariable {
936
936
  return "";
937
937
  }
938
938
  if (typeof this._featureSetCollections.source !== "string") {
939
- return this._profile?.intlStrings?.webmap ?? "webmap";
939
+ return this._profile?.intlStrings.webmap ?? "webmap";
940
940
  }
941
- return this._profile?.intlStrings?.featureservice ?? "featureservice";
941
+ return this._profile?.intlStrings.featureservice ?? "featureservice";
942
942
  }
943
943
  async loadSource() {
944
- if (D(this._loadPromise) && G(this._loadPromise)) {
945
- return this._loadPromise;
944
+ if (V(this._loadPromise) && X(this._loadPromise)) {
945
+ return await this._loadPromise;
946
946
  }
947
947
  this._loadPromise = this._loadSource();
948
- return this._loadPromise;
948
+ return await this._loadPromise;
949
949
  }
950
950
  async _loadSource() {
951
951
  if (this.loaded) {
@@ -962,7 +962,7 @@ class FeatureSetCollectionVariable extends CollectionBasedVariable {
962
962
  : {
963
963
  code: "webmapformat",
964
964
  formatValues: {
965
- webMapTitle: this._featureSetCollections.source.portalItem?.title ?? "Untitled map"
965
+ webMapTitle: this._featureSetCollections.source.portalItem.title ?? "Untitled map"
966
966
  }
967
967
  };
968
968
  const headerGroup = new GroupOfVariables(this._profile, groupLabel, [
@@ -992,19 +992,19 @@ class FeatureSetCollectionVariable extends CollectionBasedVariable {
992
992
  return null;
993
993
  }
994
994
  if (isWebMapInstance(this._definition)) {
995
- return this._featureSetCollectionFromWebMap(this._definition);
995
+ return await this._featureSetCollectionFromWebMap(this._definition);
996
996
  }
997
997
  if (isSupportedLayerInstance(this._definition)) {
998
- return this._featureSetCollectionFromUrl(this._definition.url);
998
+ return await this._featureSetCollectionFromUrl(this._definition.url);
999
999
  }
1000
1000
  if (isPortalItemDefinition(this._definition)) {
1001
1001
  // Preload the portal item so we can discover if are dealing with a Web Map
1002
1002
  // or Feature Service
1003
- return this._featureSetCollectionFromPortalItem(this._definition.portalItem);
1003
+ return await this._featureSetCollectionFromPortalItem(this._definition.portalItem);
1004
1004
  }
1005
1005
  if (isUrlDefinition(this._definition)) {
1006
1006
  // Assume that the url is pointing to a feature server
1007
- return this._featureSetCollectionFromUrl(this._definition.url);
1007
+ return await this._featureSetCollectionFromUrl(this._definition.url);
1008
1008
  }
1009
1009
  return null;
1010
1010
  }
@@ -1012,7 +1012,7 @@ class FeatureSetCollectionVariable extends CollectionBasedVariable {
1012
1012
  const webMap = isWebMapInstance(definition) ? definition : await newWebMap({ portalItem: definition });
1013
1013
  await webMap.loadAll();
1014
1014
  // Until jsapi fix a bug we have to load the table separately
1015
- await Promise.all(webMap.tables.map(async (t) => t.load()));
1015
+ await Promise.all(webMap.tables.map(async (t) => await t.load()));
1016
1016
  return {
1017
1017
  layers: this._convertWebMapLayersToVariables(webMap.layers),
1018
1018
  tables: this._convertWebMapLayersToVariables(webMap.tables, true),
@@ -1024,9 +1024,9 @@ class FeatureSetCollectionVariable extends CollectionBasedVariable {
1024
1024
  await portalItem.load();
1025
1025
  switch (portalItem.type) {
1026
1026
  case "Web Map":
1027
- return this._featureSetCollectionFromWebMap(portalItem);
1027
+ return await this._featureSetCollectionFromWebMap(portalItem);
1028
1028
  case "Feature Service":
1029
- return this._featureSetCollectionFromUrl(portalItem.url);
1029
+ return await this._featureSetCollectionFromUrl(portalItem.url);
1030
1030
  default:
1031
1031
  console.error("Unsupported portal item", definition);
1032
1032
  return null;
@@ -1177,8 +1177,8 @@ async function getSdkPredefinedProfiles(locale = "en") {
1177
1177
  if (profiles) {
1178
1178
  return profiles;
1179
1179
  }
1180
- if (!x.has(locale)) {
1181
- return getSdkPredefinedProfiles("en");
1180
+ if (!E.has(locale)) {
1181
+ return await getSdkPredefinedProfiles("en");
1182
1182
  }
1183
1183
  try {
1184
1184
  const response = await fetch(getAssetPath(`./assets/arcade-language/profiles/arcade-profiles.t9n.${locale}.json`));
@@ -1188,7 +1188,7 @@ async function getSdkPredefinedProfiles(locale = "en") {
1188
1188
  if (locale === "en") {
1189
1189
  return null;
1190
1190
  }
1191
- return getSdkPredefinedProfiles("en");
1191
+ return await getSdkPredefinedProfiles("en");
1192
1192
  }
1193
1193
  catch {
1194
1194
  return null;
@@ -1,7 +1,7 @@
1
1
  import { editor, MarkerSeverity, Range, languages, Emitter } from 'monaco-editor';
2
2
  import { CompletionItemKind, DiagnosticSeverity, InsertTextFormat } from 'vscode-languageserver-types';
3
3
 
4
- var ge=(e=>(e.False="false",e.Null="null",e.True="true",e))(ge||{}),xe=(e=>(e.Break="break",e.Continue="continue",e.Else="else",e.For="for",e.From="from",e.Function="function",e.If="if",e.Import="import",e.Export="export",e.In="in",e.Return="return",e.Var="var",e.While="while",e))(xe||{}),c=(e=>(e.AssignmentExpression="AssignmentExpression",e.ArrayExpression="ArrayExpression",e.BlockComment="BlockComment",e.BlockStatement="BlockStatement",e.BinaryExpression="BinaryExpression",e.BreakStatement="BreakStatement",e.CallExpression="CallExpression",e.ContinueStatement="ContinueStatement",e.EmptyStatement="EmptyStatement",e.ExpressionStatement="ExpressionStatement",e.ExportNamedDeclaration="ExportNamedDeclaration",e.ExportSpecifier="ExportSpecifier",e.ForStatement="ForStatement",e.ForInStatement="ForInStatement",e.FunctionDeclaration="FunctionDeclaration",e.Identifier="Identifier",e.IfStatement="IfStatement",e.ImportDeclaration="ImportDeclaration",e.ImportDefaultSpecifier="ImportDefaultSpecifier",e.LineComment="LineComment",e.Literal="Literal",e.LogicalExpression="LogicalExpression",e.MemberExpression="MemberExpression",e.ObjectExpression="ObjectExpression",e.Program="Program",e.Property="Property",e.ReturnStatement="ReturnStatement",e.TemplateElement="TemplateElement",e.TemplateLiteral="TemplateLiteral",e.UnaryExpression="UnaryExpression",e.UpdateExpression="UpdateExpression",e.VariableDeclaration="VariableDeclaration",e.VariableDeclarator="VariableDeclarator",e.WhileStatement="WhileStatement",e))(c||{}),De=["++","--"],We=["-","+","!","~"],qe=["=","/=","*=","%=","+=","-="],He=["||","&&"],bt=["|","&",">>","<<",">>>","^","==","!=","<","<=",">",">=","+","-","*","/","%"],It=(e=>(e[e.Unknown=0]="Unknown",e[e.BooleanLiteral=1]="BooleanLiteral",e[e.EOF=2]="EOF",e[e.Identifier=3]="Identifier",e[e.Keyword=4]="Keyword",e[e.NullLiteral=5]="NullLiteral",e[e.NumericLiteral=6]="NumericLiteral",e[e.Punctuator=7]="Punctuator",e[e.StringLiteral=8]="StringLiteral",e[e.Template=10]="Template",e))(It||{}),kt=(e=>(e.InvalidModuleUri="InvalidModuleUri",e.ForInOfLoopInitializer="ForInOfLoopInitializer",e.IdentiferExpected="IdentiferExpected",e.InvalidEscapedReservedWord="InvalidEscapedReservedWord",e.InvalidExpression="InvalidExpression",e.InvalidFunctionIdentifier="InvalidFunctionIdentifier",e.InvalidHexEscapeSequence="InvalidHexEscapeSequence",e.InvalidLeftHandSideInAssignment="InvalidLeftHandSideInAssignment",e.InvalidLeftHandSideInForIn="InvalidLeftHandSideInForIn",e.InvalidTemplateHead="InvalidTemplateHead",e.InvalidVariableAssignment="InvalidVariableAssignment",e.KeyMustBeString="KeyMustBeString",e.NoFunctionInsideBlock="NoFunctionInsideBlock",e.NoFunctionInsideFunction="NoFunctionInsideFunction",e.ModuleExportRootOnly="ModuleExportRootOnly",e.ModuleImportRootOnly="ModuleImportRootOnly",e.PunctuatorExpected="PunctuatorExpected",e.TemplateOctalLiteral="TemplateOctalLiteral",e.UnexpectedBoolean="UnexpectedBoolean",e.UnexpectedEndOfScript="UnexpectedEndOfScript",e.UnexpectedIdentifier="UnexpectedIdentifier",e.UnexpectedKeyword="UnexpectedKeyword",e.UnexpectedNull="UnexpectedNull",e.UnexpectedNumber="UnexpectedNumber",e.UnexpectedPunctuator="UnexpectedPunctuator",e.UnexpectedString="UnexpectedString",e.UnexpectedTemplate="UnexpectedTemplate",e.UnexpectedToken="UnexpectedToken",e))(kt||{});var v=[[],[],[]];De.forEach(e=>v[e.length-1].push(e));We.forEach(e=>v[e.length-1].push(e));He.forEach(e=>v[e.length-1].push(e));qe.forEach(e=>v[e.length-1].push(e));bt.forEach(e=>v[e.length-1].push(e));var rt=(D=>(D.AlreadyDefined="AlreadyDefined",D.ApiConflict="ApiConflict",D.AssignedNeverUsed="AssignedNeverUsed",D.DefinedNeverAssigned="DefinedNeverAssigned",D.DefinedNeverUsed="DefinedNeverUsed",D.EmptyBlockStatement="EmptyBlockStatement",D.ExecutionError="ExecutionError",D.InvalidApiFunctionUsage="InvalidApiFunctionUsage",D.InvalidConstantIdentifier="InvalidConstantIdentifier",D.InvalidPropertyIdentifier="InvalidPropertyIdentifier",D.NoArgumentExpected="NoArgumentExpected",D.NotADictionary="NotADictionary",D.NotDefined="NotDefined",D.NotEnoughArguments="NotEnoughArguments",D.ProfileVariablesAreImmutable="ProfileVariablesAreImmutable",D.ProfileVariablesConflict="ProfileVariablesConflict",D.ReservedKeyword="ReservedKeyword",D.TooManyArguments="TooManyArguments",D.UnexpectedEmptyFunction="UnexpectedEmptyFunction",D.UnexpectedPropertyIdentifier="UnexpectedPropertyIdentifier",D.UnknownPropertyIdentifier="UnknownPropertyIdentifier",D))(rt||{});var st=Object.values(xe),at=Object.values(ge);at.map(e=>({label:e,kind:CompletionItemKind.Constant}));st.map(e=>({label:e,kind:CompletionItemKind.Keyword}));
4
+ var fe=(e=>(e.False="false",e.Null="null",e.True="true",e))(fe||{}),ge=(e=>(e.Break="break",e.Continue="continue",e.Else="else",e.For="for",e.From="from",e.Function="function",e.If="if",e.Import="import",e.Export="export",e.In="in",e.Return="return",e.Var="var",e.While="while",e))(ge||{}),c=(e=>(e.AssignmentExpression="AssignmentExpression",e.ArrayExpression="ArrayExpression",e.BlockComment="BlockComment",e.BlockStatement="BlockStatement",e.BinaryExpression="BinaryExpression",e.BreakStatement="BreakStatement",e.CallExpression="CallExpression",e.ContinueStatement="ContinueStatement",e.EmptyStatement="EmptyStatement",e.ExpressionStatement="ExpressionStatement",e.ExportNamedDeclaration="ExportNamedDeclaration",e.ExportSpecifier="ExportSpecifier",e.ForStatement="ForStatement",e.ForInStatement="ForInStatement",e.FunctionDeclaration="FunctionDeclaration",e.Identifier="Identifier",e.IfStatement="IfStatement",e.ImportDeclaration="ImportDeclaration",e.ImportDefaultSpecifier="ImportDefaultSpecifier",e.LineComment="LineComment",e.Literal="Literal",e.LogicalExpression="LogicalExpression",e.MemberExpression="MemberExpression",e.ObjectExpression="ObjectExpression",e.Program="Program",e.Property="Property",e.ReturnStatement="ReturnStatement",e.TemplateElement="TemplateElement",e.TemplateLiteral="TemplateLiteral",e.UnaryExpression="UnaryExpression",e.UpdateExpression="UpdateExpression",e.VariableDeclaration="VariableDeclaration",e.VariableDeclarator="VariableDeclarator",e.WhileStatement="WhileStatement",e))(c||{}),me=["++","--"],We=["-","+","!","~"],qe=["=","/=","*=","%=","+=","-="],He=["||","&&"],Pt=["|","&",">>","<<",">>>","^","==","!=","<","<=",">",">=","+","-","*","/","%"],bt=(e=>(e[e.Unknown=0]="Unknown",e[e.BooleanLiteral=1]="BooleanLiteral",e[e.EOF=2]="EOF",e[e.Identifier=3]="Identifier",e[e.Keyword=4]="Keyword",e[e.NullLiteral=5]="NullLiteral",e[e.NumericLiteral=6]="NumericLiteral",e[e.Punctuator=7]="Punctuator",e[e.StringLiteral=8]="StringLiteral",e[e.Template=10]="Template",e))(bt||{}),It=(e=>(e.InvalidModuleUri="InvalidModuleUri",e.ForInOfLoopInitializer="ForInOfLoopInitializer",e.IdentiferExpected="IdentiferExpected",e.InvalidEscapedReservedWord="InvalidEscapedReservedWord",e.InvalidExpression="InvalidExpression",e.InvalidFunctionIdentifier="InvalidFunctionIdentifier",e.InvalidHexEscapeSequence="InvalidHexEscapeSequence",e.InvalidLeftHandSideInAssignment="InvalidLeftHandSideInAssignment",e.InvalidLeftHandSideInForIn="InvalidLeftHandSideInForIn",e.InvalidTemplateHead="InvalidTemplateHead",e.InvalidVariableAssignment="InvalidVariableAssignment",e.KeyMustBeString="KeyMustBeString",e.NoFunctionInsideBlock="NoFunctionInsideBlock",e.NoFunctionInsideFunction="NoFunctionInsideFunction",e.ModuleExportRootOnly="ModuleExportRootOnly",e.ModuleImportRootOnly="ModuleImportRootOnly",e.PunctuatorExpected="PunctuatorExpected",e.TemplateOctalLiteral="TemplateOctalLiteral",e.UnexpectedBoolean="UnexpectedBoolean",e.UnexpectedEndOfScript="UnexpectedEndOfScript",e.UnexpectedIdentifier="UnexpectedIdentifier",e.UnexpectedKeyword="UnexpectedKeyword",e.UnexpectedNull="UnexpectedNull",e.UnexpectedNumber="UnexpectedNumber",e.UnexpectedPunctuator="UnexpectedPunctuator",e.UnexpectedString="UnexpectedString",e.UnexpectedTemplate="UnexpectedTemplate",e.UnexpectedToken="UnexpectedToken",e))(It||{});var L=[[],[],[]];me.forEach(e=>L[e.length-1].push(e));We.forEach(e=>L[e.length-1].push(e));He.forEach(e=>L[e.length-1].push(e));qe.forEach(e=>L[e.length-1].push(e));Pt.forEach(e=>L[e.length-1].push(e));var nt=Object.values(ge),st=Object.values(fe);st.map(e=>({label:e,kind:CompletionItemKind.Constant}));nt.map(e=>({label:e,kind:CompletionItemKind.Keyword}));
5
5
 
6
6
  const operators = [
7
7
  "<=",
@@ -76,7 +76,7 @@ const arcadeMonarchLanguage = {
76
76
  // builtinFunctions: [...arcadeService.FunctionNames],
77
77
  // Arcade keywords. 'from' is a special case as we want to treat it as a keyword in
78
78
  // import statement but as an identifer in var statement.
79
- keywords: st.filter((k) => k !== "from"),
79
+ keywords: nt.filter((k) => k !== "from"),
80
80
  operators,
81
81
  constants: ["true", "false", "null"],
82
82
  // we include these common regular expressions
@@ -228,7 +228,7 @@ class DiagnosticsAdapter {
228
228
  let handle;
229
229
  this._listener[model.uri.toString()] = model.onDidChangeContent(() => {
230
230
  window.clearTimeout(handle);
231
- handle = window.setTimeout(() => this._doValidate(model, languageId), 500);
231
+ handle = window.setTimeout(async () => await this._doValidate(model, languageId), 500);
232
232
  });
233
233
  this._doValidate(model, languageId);
234
234
  };
@@ -335,7 +335,8 @@ function toTextEdit(textEdit) {
335
335
  };
336
336
  }
337
337
  function isInsertReplaceEdit(edit) {
338
- return (typeof edit.insert !== "undefined" && typeof edit.replace !== "undefined");
338
+ return (typeof edit.insert !== "undefined" &&
339
+ typeof edit.replace !== "undefined");
339
340
  }
340
341
  function toCompletionItemKind(kind) {
341
342
  const mItemKind = languages.CompletionItemKind;
@@ -503,7 +504,7 @@ class WorkerManager {
503
504
  }
504
505
  this._client = null;
505
506
  }
506
- _getClientProxy() {
507
+ async _getClientProxy() {
507
508
  // We used createWebWorker to create or run the web worker if it isn’t already created.
508
509
  // Otherwise, we get and return the proxy client.
509
510
  if (!this._client) {
@@ -518,7 +519,7 @@ class WorkerManager {
518
519
  });
519
520
  this._client = this._worker.getProxy();
520
521
  }
521
- return this._client;
522
+ return await this._client;
522
523
  }
523
524
  async getLanguageServiceWorker(...resources) {
524
525
  const _client = await this._getClientProxy();
@@ -534,7 +535,7 @@ let arcadeWorker;
534
535
  * @returns The arcade worker.
535
536
  */
536
537
  async function getArcadeWorker(...uris) {
537
- return new Promise((resolve, reject) => {
538
+ return await new Promise((resolve, reject) => {
538
539
  if (!arcadeWorker) {
539
540
  return reject(new Error("TypeScript not registered!"));
540
541
  }
@@ -575,7 +576,7 @@ function getArcadeDiagnosticService() {
575
576
  }
576
577
  function setupMode(arcadeDefaults) {
577
578
  const client = new WorkerManager(arcadeDefaults);
578
- const workerAccessor = (...uris) => client.getLanguageServiceWorker(...uris);
579
+ const workerAccessor = async (...uris) => await client.getLanguageServiceWorker(...uris);
579
580
  arcadeWorker = workerAccessor;
580
581
  // Use the arcade Monarch Json to define the highlighting
581
582
  languages.setMonarchTokensProvider(arcadeDefaults.languageId, arcadeMonarchLanguage);
@@ -1,6 +1,6 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, getAssetPath, h, Fragment, Host } from '@stencil/core/internal/client';
2
2
  import { e as importArcade, s as supportedFields } from './fields.js';
3
- import { F, U, H, z } from './index2.js';
3
+ import { W, B, D, q } from './index2.js';
4
4
  import '@esri/calcite-components/dist/components/calcite-loader.js';
5
5
  import '@esri/calcite-components/dist/components/calcite-list.js';
6
6
  import '@esri/calcite-components/dist/components/calcite-list-item.js';
@@ -288,10 +288,10 @@ const ArcgisArcadeResults = /*@__PURE__*/ proxyCustomElement(class ArcgisArcadeR
288
288
  //#endregion
289
289
  // #region Component lifecycle events
290
290
  async componentWillLoad() {
291
- await F(this, getAssetPath("./assets"));
291
+ await W(this, getAssetPath("./assets"));
292
292
  }
293
293
  disconnectedCallback() {
294
- U(this);
294
+ B(this);
295
295
  }
296
296
  // #endregion
297
297
  //#region Private Methods
@@ -318,18 +318,18 @@ const ArcgisArcadeResults = /*@__PURE__*/ proxyCustomElement(class ArcgisArcadeR
318
318
  return h("calcite-loader", { scale: "s", type: "indeterminate", label: "" });
319
319
  }
320
320
  const iconClass = this.result?.type === "error" ? "color-error" : "color-success";
321
- return (h("calcite-list", null, this.result ? (h(Fragment, null, h("calcite-list-item", { label: H(this._t9nStrings?.lastexecutionformat, {
321
+ return (h("calcite-list", null, this.result ? (h(Fragment, null, h("calcite-list-item", { label: D(this._t9nStrings?.lastexecutionformat, {
322
322
  timeStamp: new Intl.DateTimeFormat(this._t9nLocale, {
323
323
  dateStyle: "medium",
324
324
  timeStyle: "medium"
325
325
  }).format(this.result.timeStamp)
326
- }) }, h("calcite-icon", { slot: "content-start", icon: "information", scale: "s", class: iconClass })), h("calcite-list-item", { label: H(this._t9nStrings?.compilationtimeformat, {
326
+ }) }, h("calcite-icon", { slot: "content-start", icon: "information", scale: "s", class: iconClass })), h("calcite-list-item", { label: D(this._t9nStrings?.compilationtimeformat, {
327
327
  time: new Intl.NumberFormat(this._t9nLocale, {
328
328
  style: "unit",
329
329
  unit: "millisecond",
330
330
  maximumFractionDigits: 2
331
331
  }).format(this.result.compilationTime ?? 0)
332
- }) }, h("calcite-icon", { slot: "content-start", icon: "information", scale: "s", class: iconClass })), h("calcite-list-item", { label: H(this._t9nStrings?.executiontimeformat, {
332
+ }) }, h("calcite-icon", { slot: "content-start", icon: "information", scale: "s", class: iconClass })), h("calcite-list-item", { label: D(this._t9nStrings?.executiontimeformat, {
333
333
  time: new Intl.NumberFormat(this._t9nLocale, {
334
334
  style: "unit",
335
335
  unit: "millisecond",
@@ -346,7 +346,7 @@ const ArcgisArcadeResults = /*@__PURE__*/ proxyCustomElement(class ArcgisArcadeR
346
346
  }
347
347
  switch (this.result?.type) {
348
348
  case "error":
349
- return (h("div", { class: "result-value-simple flex-adjustable" }, H(this._t9nStrings?.executionerrorformat, {
349
+ return (h("div", { class: "result-value-simple flex-adjustable" }, D(this._t9nStrings?.executionerrorformat, {
350
350
  message: this.result.value
351
351
  })));
352
352
  case "null":
@@ -387,7 +387,7 @@ const ArcgisArcadeResults = /*@__PURE__*/ proxyCustomElement(class ArcgisArcadeR
387
387
  case "null":
388
388
  return h("span", { class: "constant-value" }, arcadeResult.type);
389
389
  case "text":
390
- return h("span", { class: "string-value" }, z(arcadeResult.value));
390
+ return h("span", { class: "string-value" }, q(arcadeResult.value));
391
391
  case "number":
392
392
  return h("span", { class: "number-value" }, arcadeResult.value.toString());
393
393
  case "boolean":
@@ -395,9 +395,9 @@ const ArcgisArcadeResults = /*@__PURE__*/ proxyCustomElement(class ArcgisArcadeR
395
395
  case "date":
396
396
  return h("span", { class: "date-value" }, formatArcadeResultDate(arcadeResult));
397
397
  case "dateOnly":
398
- return h("span", { class: "string-value" }, z(formatArcadeResultDateOnly(arcadeResult)));
398
+ return h("span", { class: "string-value" }, q(formatArcadeResultDateOnly(arcadeResult)));
399
399
  case "time":
400
- return h("span", { class: "string-value" }, z(formatArcadeResultTimeOnly(arcadeResult)));
400
+ return h("span", { class: "string-value" }, q(formatArcadeResultTimeOnly(arcadeResult)));
401
401
  default:
402
402
  return null;
403
403
  }
@@ -405,7 +405,7 @@ const ArcgisArcadeResults = /*@__PURE__*/ proxyCustomElement(class ArcgisArcadeR
405
405
  renderArrayHeader(arcadeResult) {
406
406
  const items = arcadeResult.value ?? [];
407
407
  const leftoverCount = Math.max(items.length - MaxArrayItems, 0);
408
- return (h(Fragment, null, h("span", null, `${arcadeResult.type}(${items.length ?? 0})`), leftoverCount > 0 ? (h("span", null, "\u00A0", H(this._t9nStrings?.showingfirstitemsformat, {
408
+ return (h(Fragment, null, h("span", null, `${arcadeResult.type}(${items.length ?? 0})`), leftoverCount > 0 ? (h("span", null, "\u00A0", D(this._t9nStrings?.showingfirstitemsformat, {
409
409
  count: MaxArrayItems.toString()
410
410
  }))) : null));
411
411
  }
@@ -457,7 +457,7 @@ const ArcgisArcadeResults = /*@__PURE__*/ proxyCustomElement(class ArcgisArcadeR
457
457
  }
458
458
  }
459
459
  renderFeatureSetLabel(arcadeResult) {
460
- return (h("div", { class: "value-type" }, h("span", null, arcadeResult.type, ":"), arcadeResult.features.length >= BatchSize ? (h("span", null, "\u00A0", H(this._t9nStrings?.showingfirstitemsformat, {
460
+ return (h("div", { class: "value-type" }, h("span", null, arcadeResult.type, ":"), arcadeResult.features.length >= BatchSize ? (h("span", null, "\u00A0", D(this._t9nStrings?.showingfirstitemsformat, {
461
461
  count: BatchSize.toString()
462
462
  }))) : null));
463
463
  }