@arcgis/coding-components 4.31.0-next.113 → 4.31.0-next.116

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 (98) hide show
  1. package/dist/arcgis-coding-components/arcgis-coding-components.esm.js +2 -2
  2. package/dist/arcgis-coding-components/assets/code-editor/sql-expr.worker.js +2 -2
  3. package/dist/arcgis-coding-components/index.esm.js +2 -2
  4. package/dist/arcgis-coding-components/{p-618c89c9.js → p-0e69f4d3.js} +2 -2
  5. package/dist/arcgis-coding-components/{p-f9b54575.js → p-17149384.js} +2 -2
  6. package/dist/arcgis-coding-components/{p-9806248b.js → p-255e89a3.js} +2 -2
  7. package/dist/arcgis-coding-components/{p-966ace47.js → p-3ec6456d.js} +2 -2
  8. package/dist/arcgis-coding-components/p-4d4d7911.js +6 -0
  9. package/dist/arcgis-coding-components/{p-0afad5c2.js → p-56a8b150.js} +2 -2
  10. package/dist/arcgis-coding-components/{p-90f12488.js → p-56cc5eb6.js} +2 -2
  11. package/dist/arcgis-coding-components/{p-2251458d.entry.js → p-61318e1c.entry.js} +2 -2
  12. package/dist/arcgis-coding-components/{p-9c267d57.entry.js → p-764fe492.entry.js} +2 -2
  13. package/dist/arcgis-coding-components/{p-0c1fb484.js → p-843153f0.js} +2 -2
  14. package/dist/arcgis-coding-components/{p-eb7b2990.js → p-8b88dab1.js} +1 -1
  15. package/dist/arcgis-coding-components/{p-2cc49c00.js → p-b363c77b.js} +2 -2
  16. package/dist/arcgis-coding-components/{p-1ad268b8.js → p-d630d7bc.js} +2 -2
  17. package/dist/arcgis-coding-components/{p-a83b8941.js → p-d82cab4e.js} +10 -10
  18. package/dist/arcgis-coding-components/{p-e47f85a6.js → p-e465d820.js} +1 -1
  19. package/dist/arcgis-coding-components/{p-070f7d33.js → p-e85982ed.js} +1 -1
  20. package/dist/arcgis-coding-components/{p-987c1ab6.entry.js → p-f5fd5167.entry.js} +2 -2
  21. package/dist/arcgis-coding-components/{p-ec1714b0.js → p-feffe66d.js} +2 -2
  22. package/dist/cjs/{app-globals-63de5687.js → app-globals-d69eda30.js} +1 -1
  23. package/dist/cjs/{arcade-defaults-4c7bc66d.js → arcade-defaults-660964c9.js} +3 -3
  24. package/dist/cjs/{arcade-mode-215ca906.js → arcade-mode-a5dd08c4.js} +15 -11
  25. package/dist/cjs/arcgis-arcade-editor_6.cjs.entry.js +7 -7
  26. package/dist/cjs/arcgis-coding-components.cjs.js +3 -3
  27. package/dist/cjs/arcgis-sql-expression-editor.cjs.entry.js +4 -4
  28. package/dist/cjs/arcgis-sql-expression-fields.cjs.entry.js +4 -4
  29. package/dist/cjs/{css-905c8808.js → css-9b19340b.js} +1 -1
  30. package/dist/cjs/{cssMode-78d08208.js → cssMode-6a77efb9.js} +3 -3
  31. package/dist/cjs/{html-4e3df32f.js → html-4519cf32.js} +3 -3
  32. package/dist/cjs/{htmlMode-761326b4.js → htmlMode-182ce1ff.js} +3 -3
  33. package/dist/cjs/{index-d217a0aa.js → index-2d8ee6bc.js} +1 -1
  34. package/dist/cjs/index.cjs.js +4 -4
  35. package/dist/cjs/{javascript-4defb759.js → javascript-ee667abb.js} +4 -4
  36. package/dist/cjs/{jsonMode-e4065732.js → jsonMode-084138cb.js} +3 -3
  37. package/dist/cjs/loader.cjs.js +3 -3
  38. package/dist/cjs/{sql-expr-defaults-7445738b.js → sql-expr-defaults-55ee20e4.js} +10 -10
  39. package/dist/cjs/{sql-expr-mode-2865dbf3.js → sql-expr-mode-f8f35aec.js} +16 -12
  40. package/dist/cjs/{tsMode-79e29292.js → tsMode-70248fbd.js} +3 -3
  41. package/dist/cjs/{typescript-d9d16bb8.js → typescript-c40a4348.js} +3 -3
  42. package/dist/cjs/{useT9n-96a44f73.js → useT9n-effe847e.js} +3 -3
  43. package/dist/components/arcade-defaults.js +1 -1
  44. package/dist/components/arcade-mode.js +13 -9
  45. package/dist/components/arcade-results.js +1 -1
  46. package/dist/components/arcade-suggestions.js +1 -1
  47. package/dist/components/arcgis-arcade-editor.js +1 -1
  48. package/dist/components/arcgis-arcade-results.js +1 -1
  49. package/dist/components/arcgis-arcade-suggestions.js +1 -1
  50. package/dist/components/arcgis-assets.d.ts +1 -1
  51. package/dist/components/arcgis-assets.js +1 -1
  52. package/dist/components/arcgis-code-editor.js +1 -1
  53. package/dist/components/arcgis-editor-variables.js +1 -1
  54. package/dist/components/arcgis-language-api-panel.js +1 -1
  55. package/dist/components/arcgis-sql-expression-editor.js +1 -1
  56. package/dist/components/arcgis-sql-expression-fields.js +1 -1
  57. package/dist/components/chunk-UFIZBDFE.js +1 -1
  58. package/dist/components/code-editor.js +1 -1
  59. package/dist/components/editor-variables.js +1 -1
  60. package/dist/components/fields.js +1 -1
  61. package/dist/components/index.js +1 -1
  62. package/dist/components/index2.js +1 -1
  63. package/dist/components/language-api-panel.js +1 -1
  64. package/dist/components/markdown.js +1 -1
  65. package/dist/components/sql-expr-defaults.js +1 -1
  66. package/dist/components/sql-expr-mode.js +14 -10
  67. package/dist/components/useT9n.js +1 -1
  68. package/dist/components/utilities.js +1 -1
  69. package/dist/esm/{app-globals-eb3d33b4.js → app-globals-30b10354.js} +1 -1
  70. package/dist/esm/{arcade-defaults-588d1890.js → arcade-defaults-9da992ad.js} +3 -3
  71. package/dist/esm/{arcade-mode-f7edf7e7.js → arcade-mode-8bc1c8b4.js} +15 -11
  72. package/dist/esm/arcgis-arcade-editor_6.entry.js +7 -7
  73. package/dist/esm/arcgis-coding-components.js +4 -4
  74. package/dist/esm/arcgis-sql-expression-editor.entry.js +4 -4
  75. package/dist/esm/arcgis-sql-expression-fields.entry.js +4 -4
  76. package/dist/esm/{css-c3c0b5ee.js → css-2d90e711.js} +1 -1
  77. package/dist/esm/{cssMode-a7f12eb5.js → cssMode-a352628f.js} +3 -3
  78. package/dist/esm/{html-31d10398.js → html-36ea92fd.js} +3 -3
  79. package/dist/esm/{htmlMode-348d6325.js → htmlMode-982376b7.js} +3 -3
  80. package/dist/esm/{index-bc17b51e.js → index-a2a63d6c.js} +1 -1
  81. package/dist/esm/index.js +4 -4
  82. package/dist/esm/{javascript-5e0d1fcc.js → javascript-b1f0b115.js} +4 -4
  83. package/dist/esm/{jsonMode-90575ddb.js → jsonMode-320e548d.js} +3 -3
  84. package/dist/esm/loader.js +4 -4
  85. package/dist/esm/{sql-expr-defaults-366bc70d.js → sql-expr-defaults-bc80dd44.js} +10 -10
  86. package/dist/esm/{sql-expr-mode-f7a09074.js → sql-expr-mode-39319366.js} +16 -12
  87. package/dist/esm/{tsMode-8d9b0423.js → tsMode-46dc4923.js} +3 -3
  88. package/dist/esm/{typescript-659f5be1.js → typescript-ea40b282.js} +3 -3
  89. package/dist/esm/{useT9n-c5241af3.js → useT9n-2ef85b20.js} +3 -3
  90. package/dist/loader/cdn.js +1 -1
  91. package/dist/loader/index.cjs.js +1 -1
  92. package/dist/loader/index.es2017.js +1 -1
  93. package/dist/loader/index.js +1 -1
  94. package/dist/types/data/arcgis-web-compoments/actions-runner-1/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/stories/internal/sql-expression-editor/sql-expression-editor.stories.d.ts +1 -0
  95. package/dist/types/utils/arcade-monaco/arcade-language-features.d.ts +1 -1
  96. package/dist/types/utils/sql-expr-monaco/sql-expr-language-features.d.ts +1 -1
  97. package/package.json +13 -13
  98. package/dist/arcgis-coding-components/p-f485eff4.js +0 -6
@@ -1,12 +1,12 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  * See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
- * v4.31.0-next.113
4
+ * v4.31.0-next.116
5
5
  */
6
6
  'use strict';
7
7
 
8
- const sqlExprDefaults = require('./sql-expr-defaults-7445738b.js');
9
- require('./index-d217a0aa.js');
8
+ const sqlExprDefaults = require('./sql-expr-defaults-55ee20e4.js');
9
+ require('./index-2d8ee6bc.js');
10
10
 
11
11
  /*!-----------------------------------------------------------------------------
12
12
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,12 +1,12 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  * See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
- * v4.31.0-next.113
4
+ * v4.31.0-next.116
5
5
  */
6
6
  'use strict';
7
7
 
8
- const sqlExprDefaults = require('./sql-expr-defaults-7445738b.js');
9
- const index = require('./index-d217a0aa.js');
8
+ const sqlExprDefaults = require('./sql-expr-defaults-55ee20e4.js');
9
+ const index = require('./index-2d8ee6bc.js');
10
10
 
11
11
  // src/framework.ts
12
12
  function retrieveComponentMembers(component, isLit) {
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  * See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
- * v4.31.0-next.113
4
+ * v4.31.0-next.116
5
5
  */
6
6
  import { f as fieldsToProfileValues, i as isPredefinedProfile, a as isFeatureSetCollectionDefinition, b as isFeatureSetDefinition, c as isFeatureDefinition, L as LanguageDefaultsBase, E as EditorProfile } from './sql-expr-defaults.js';
7
7
  import { s as supportedLocales, f as fetchT9nStringsBundle } from './index2.js';
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  * See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
- * v4.31.0-next.113
4
+ * v4.31.0-next.116
5
5
  */
6
6
  import { editor, MarkerSeverity, Range, languages, Emitter } from 'monaco-editor';
7
7
  import { CompletionItemKind, DiagnosticSeverity, InsertTextFormat } from 'vscode-languageserver-types';
@@ -223,7 +223,7 @@ class DiagnosticsAdapter {
223
223
  this._languageId = _languageId;
224
224
  this._worker = _worker;
225
225
  this._disposables = [];
226
- this._listener = new Map();
226
+ this._modelListeners = new Map();
227
227
  this._diagnosticsService = diagnosticsService;
228
228
  this._defaults = defaults;
229
229
  const onModelAdd = (model) => {
@@ -236,16 +236,20 @@ class DiagnosticsAdapter {
236
236
  throw err;
237
237
  });
238
238
  });
239
- this._listener.set(model.uri.toString(), model.onDidChangeContent(debouncedValidate));
239
+ const didChangeListener = model.onDidChangeContent(debouncedValidate);
240
+ const didChangeAttachedListener = model.onDidChangeAttached(debouncedValidate);
241
+ this._modelListeners.set(model.uri.toString(), [didChangeListener, didChangeAttachedListener]);
240
242
  this._doValidate(model, languageId).catch(console.error);
241
243
  };
242
244
  const onModelRemoved = (model) => {
243
245
  const uriStr = model.uri.toString();
244
246
  editor.setModelMarkers(model, this._languageId, []);
245
- const listener = this._listener.get(uriStr);
246
- if (listener) {
247
- listener.dispose();
248
- this._listener.delete(uriStr);
247
+ const listeners = this._modelListeners.get(uriStr);
248
+ if (listeners) {
249
+ while (listeners.length) {
250
+ listeners.pop()?.dispose();
251
+ }
252
+ this._modelListeners.delete(uriStr);
249
253
  }
250
254
  };
251
255
  this._disposables.push(editor.onDidCreateModel(onModelAdd));
@@ -273,8 +277,8 @@ class DiagnosticsAdapter {
273
277
  }));
274
278
  this._disposables.push({
275
279
  dispose: () => {
276
- this._listener.forEach((value) => value.dispose());
277
- this._listener.clear();
280
+ this._modelListeners.forEach((listeners) => listeners.forEach((disposable) => disposable.dispose()));
281
+ this._modelListeners.clear();
278
282
  },
279
283
  });
280
284
  editor.getModels().forEach(onModelAdd);
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  * See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
- * v4.31.0-next.113
4
+ * v4.31.0-next.116
5
5
  */
6
6
  import { proxyCustomElement, HTMLElement, createEvent, h, Fragment, Host, forceUpdate } from '@stencil/core/internal/client';
7
7
  import { g as importArcade, s as supportedFields } from './fields.js';
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  * See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
- * v4.31.0-next.113
4
+ * v4.31.0-next.116
5
5
  */
6
6
  import { proxyCustomElement, HTMLElement, createEvent, forceUpdate, h, Host } from '@stencil/core/internal/client';
7
7
  import { g as generateColorizeStyles, o as onColorizeThemeChanged, c as convertMarkdownString, a as colorizeCodeElement } from './markdown.js';
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  * See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
- * v4.31.0-next.113
4
+ * v4.31.0-next.116
5
5
  */
6
6
  import { proxyCustomElement, HTMLElement, createEvent, forceUpdate, h, Fragment, Host } from '@stencil/core/internal/client';
7
7
  import { KeyCode } from 'monaco-editor';
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  * See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
- * v4.31.0-next.113
4
+ * v4.31.0-next.116
5
5
  */
6
6
  import { A as ArcgisArcadeResults$1, d as defineCustomElement$1 } from './arcade-results.js';
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  * See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
- * v4.31.0-next.113
4
+ * v4.31.0-next.116
5
5
  */
6
6
  import { A as ArcgisArcadeSuggestions$1, d as defineCustomElement$1 } from './arcade-suggestions.js';
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  * See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
- * v4.31.0-next.113
4
+ * v4.31.0-next.116
5
5
  */
6
6
 
7
7
  /**
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  * See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
- * v4.31.0-next.113
4
+ * v4.31.0-next.116
5
5
  */
6
6
  let resourceUrl = "https://js.arcgis.com/coding-components/next/";
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  * See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
- * v4.31.0-next.113
4
+ * v4.31.0-next.116
5
5
  */
6
6
  import { A as ArcgisCodeEditor$1, d as defineCustomElement$1 } from './code-editor.js';
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  * See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
- * v4.31.0-next.113
4
+ * v4.31.0-next.116
5
5
  */
6
6
  import { A as ArcgisEditorVariables$1, d as defineCustomElement$1 } from './editor-variables.js';
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  * See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
- * v4.31.0-next.113
4
+ * v4.31.0-next.116
5
5
  */
6
6
  import { A as ArcgisLanguageApiPanel$1, d as defineCustomElement$1 } from './language-api-panel.js';
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  * See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
- * v4.31.0-next.113
4
+ * v4.31.0-next.116
5
5
  */
6
6
  import { proxyCustomElement, HTMLElement, createEvent, forceUpdate, h, Host } from '@stencil/core/internal/client';
7
7
  import { u as useControllerManager } from './chunk-UFIZBDFE.js';
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  * See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
- * v4.31.0-next.113
4
+ * v4.31.0-next.116
5
5
  */
6
6
  import { proxyCustomElement, HTMLElement, createEvent, forceUpdate, h } from '@stencil/core/internal/client';
7
7
  import { u as useControllerManager } from './chunk-UFIZBDFE.js';
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  * See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
- * v4.31.0-next.113
4
+ * v4.31.0-next.116
5
5
  */
6
6
  import { a as isNotUndefined, D as Deferred, e as safeAsyncCall, h as devToolsAwareTimeout, j as safeCall } from './index2.js';
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  * See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
- * v4.31.0-next.113
4
+ * v4.31.0-next.116
5
5
  */
6
6
  import { proxyCustomElement, HTMLElement, createEvent, forceUpdate, h, Host } from '@stencil/core/internal/client';
7
7
  import { languages, editor, Range, Uri, KeyMod, KeyCode } from 'monaco-editor';
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  * See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
- * v4.31.0-next.113
4
+ * v4.31.0-next.116
5
5
  */
6
6
  import { proxyCustomElement, HTMLElement, createEvent, forceUpdate, h } from '@stencil/core/internal/client';
7
7
  import { u as useControllerManager } from './chunk-UFIZBDFE.js';
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  * See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
- * v4.31.0-next.113
4
+ * v4.31.0-next.116
5
5
  */
6
6
  // src/index.ts
7
7
  var isAMD = typeof window !== "undefined" && "$arcgis" in window && typeof window.$arcgis === "object" && "import" in window.$arcgis && !("forceESM" in window.$arcgis);
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  * See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
- * v4.31.0-next.113
4
+ * v4.31.0-next.116
5
5
  */
6
6
  export { setNonce, setPlatformOptions } from '@stencil/core/internal/client';
7
7
  export { a as arcade } from './arcade-defaults.js';
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  * See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
- * v4.31.0-next.113
4
+ * v4.31.0-next.116
5
5
  */
6
6
  // src/array-utils.ts
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  * See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
- * v4.31.0-next.113
4
+ * v4.31.0-next.116
5
5
  */
6
6
  import { proxyCustomElement, HTMLElement, createEvent, forceUpdate, h, Host } from '@stencil/core/internal/client';
7
7
  import { g as generateColorizeStyles, o as onColorizeThemeChanged, c as convertMarkdownString, b as colorizedAllCodeElements } from './markdown.js';
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  * See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
- * v4.31.0-next.113
4
+ * v4.31.0-next.116
5
5
  */
6
6
  import { editor } from 'monaco-editor';
7
7
  import { StandaloneServices } from 'monaco-editor/esm/vs/editor/standalone/browser/standaloneServices.js';
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  * See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
- * v4.31.0-next.113
4
+ * v4.31.0-next.116
5
5
  */
6
6
  import { n as newLayersFeatureLayer, i as importRequest, s as supportedFields, a as newPortalPortalItem, b as newWebScene, c as newWebMap, f as fieldAlias, d as fieldTypeToIconName, e as fieldTypeToApiValueVarType } from './fields.js';
7
7
  import { InsertTextMode, InsertTextFormat, CompletionItemKind, MarkupKind } from 'vscode-languageserver-types';
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  * See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
- * v4.31.0-next.113
4
+ * v4.31.0-next.116
5
5
  */
6
6
  import { editor, languages, Emitter } from 'monaco-editor';
7
7
  import { D as Deferred, u as debounce } from './index2.js';
@@ -331,7 +331,7 @@ class SqlExprDiagnosticsAdapter {
331
331
  this._languageId = _languageId;
332
332
  this._worker = _worker;
333
333
  this._disposables = [];
334
- this._listener = new Map();
334
+ this._modelListeners = new Map();
335
335
  this._diagnosticsService = diagnosticService;
336
336
  this._defaults = defaults;
337
337
  const onModelAdd = (model) => {
@@ -344,16 +344,20 @@ class SqlExprDiagnosticsAdapter {
344
344
  throw err;
345
345
  });
346
346
  });
347
- this._listener.set(model.uri.toString(), model.onDidChangeContent(debouncedValidate));
347
+ const didChangeListener = model.onDidChangeContent(debouncedValidate);
348
+ const didChangeAttachedListener = model.onDidChangeAttached(debouncedValidate);
349
+ this._modelListeners.set(model.uri.toString(), [didChangeListener, didChangeAttachedListener]);
348
350
  this._doValidate(model, languageId).catch(console.error);
349
351
  };
350
352
  const onModelRemoved = (model) => {
351
- const uri = model.uri.toString();
353
+ const uriStr = model.uri.toString();
352
354
  editor.setModelMarkers(model, this._languageId, []);
353
- const listener = this._listener.get(uri);
354
- if (listener) {
355
- listener.dispose();
356
- this._listener.delete(uri);
355
+ const listeners = this._modelListeners.get(uriStr);
356
+ if (listeners) {
357
+ while (listeners.length) {
358
+ listeners.pop()?.dispose();
359
+ }
360
+ this._modelListeners.delete(uriStr);
357
361
  }
358
362
  };
359
363
  this._disposables.push(editor.onDidCreateModel(onModelAdd));
@@ -379,8 +383,8 @@ class SqlExprDiagnosticsAdapter {
379
383
  }));
380
384
  this._disposables.push({
381
385
  dispose: () => {
382
- this._listener.forEach((value) => value.dispose());
383
- this._listener.clear();
386
+ this._modelListeners.forEach((listeners) => listeners.forEach((disposable) => disposable.dispose()));
387
+ this._modelListeners.clear();
384
388
  },
385
389
  });
386
390
  editor.getModels().forEach(onModelAdd);
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  * See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
- * v4.31.0-next.113
4
+ * v4.31.0-next.116
5
5
  */
6
6
  import { p as proxyExports, w as watch, C as Controller, s as setAmbientComponent } from './chunk-UFIZBDFE.js';
7
7
  import { p as startLocaleObserver, r as getElementLocales } from './index2.js';
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  * See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
- * v4.31.0-next.113
4
+ * v4.31.0-next.116
5
5
  */
6
6
  import { d as createFilterExpression } from './index2.js';
7
7
 
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  * See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
- * v4.31.0-next.113
4
+ * v4.31.0-next.116
5
5
  */
6
6
  const globalScripts = () => {};
7
7
 
@@ -1,10 +1,10 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  * See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
- * v4.31.0-next.113
4
+ * v4.31.0-next.116
5
5
  */
6
- import { m as main, f as fieldsToProfileValues, i as isPredefinedProfile, a as isFeatureSetCollectionDefinition, b as isFeatureSetDefinition, c as isFeatureDefinition, d as supportedLocales, L as LanguageDefaultsBase, e as fetchT9nStringsBundle, E as EditorProfile } from './sql-expr-defaults-366bc70d.js';
7
- import { g as getAssetPath } from './index-bc17b51e.js';
6
+ import { m as main, f as fieldsToProfileValues, i as isPredefinedProfile, a as isFeatureSetCollectionDefinition, b as isFeatureSetDefinition, c as isFeatureDefinition, d as supportedLocales, L as LanguageDefaultsBase, e as fetchT9nStringsBundle, E as EditorProfile } from './sql-expr-defaults-bc80dd44.js';
7
+ import { g as getAssetPath } from './index-a2a63d6c.js';
8
8
 
9
9
  // #region convert editor profile to apiProfile
10
10
  /**
@@ -1,10 +1,10 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  * See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
- * v4.31.0-next.113
4
+ * v4.31.0-next.116
5
5
  */
6
- import { m as main, r as editor, Q as MarkerSeverity, R as Range, w as languages, T as debounce, D as Deferred, V as Emitter } from './sql-expr-defaults-366bc70d.js';
7
- import './index-bc17b51e.js';
6
+ import { m as main, r as editor, Q as MarkerSeverity, R as Range, w as languages, T as debounce, D as Deferred, V as Emitter } from './sql-expr-defaults-bc80dd44.js';
7
+ import './index-a2a63d6c.js';
8
8
 
9
9
  var V={False:"false",Null:"null",True:"true"},f={Break:"break",Continue:"continue",Else:"else",For:"for",From:"from",Function:"function",If:"if",Import:"import",Export:"export",In:"in",Return:"return",Var:"var",While:"while"},xe=["++","--"],Ge=["-","+","!","~"],Je=["=","/=","*=","%=","+=","-="],Qe=["||","&&"],Lt=["|","&",">>","<<",">>>","^","==","!=","<","<=",">",">=","+","-","*","/","%"];var U=[[],[],[]];xe.forEach(e=>U[e.length-1]?.push(e));Ge.forEach(e=>U[e.length-1]?.push(e));Qe.forEach(e=>U[e.length-1]?.push(e));Je.forEach(e=>U[e.length-1]?.push(e));Lt.forEach(e=>U[e.length-1]?.push(e));var lt=Object.values(f),pt=Object.values(V);pt.map(e=>({label:e,kind:main.exports.CompletionItemKind.Constant}));lt.map(e=>({label:e,kind:main.exports.CompletionItemKind.Keyword}));
10
10
 
@@ -222,7 +222,7 @@ class DiagnosticsAdapter {
222
222
  this._languageId = _languageId;
223
223
  this._worker = _worker;
224
224
  this._disposables = [];
225
- this._listener = new Map();
225
+ this._modelListeners = new Map();
226
226
  this._diagnosticsService = diagnosticsService;
227
227
  this._defaults = defaults;
228
228
  const onModelAdd = (model) => {
@@ -235,16 +235,20 @@ class DiagnosticsAdapter {
235
235
  throw err;
236
236
  });
237
237
  });
238
- this._listener.set(model.uri.toString(), model.onDidChangeContent(debouncedValidate));
238
+ const didChangeListener = model.onDidChangeContent(debouncedValidate);
239
+ const didChangeAttachedListener = model.onDidChangeAttached(debouncedValidate);
240
+ this._modelListeners.set(model.uri.toString(), [didChangeListener, didChangeAttachedListener]);
239
241
  this._doValidate(model, languageId).catch(console.error);
240
242
  };
241
243
  const onModelRemoved = (model) => {
242
244
  const uriStr = model.uri.toString();
243
245
  editor.setModelMarkers(model, this._languageId, []);
244
- const listener = this._listener.get(uriStr);
245
- if (listener) {
246
- listener.dispose();
247
- this._listener.delete(uriStr);
246
+ const listeners = this._modelListeners.get(uriStr);
247
+ if (listeners) {
248
+ while (listeners.length) {
249
+ listeners.pop()?.dispose();
250
+ }
251
+ this._modelListeners.delete(uriStr);
248
252
  }
249
253
  };
250
254
  this._disposables.push(editor.onDidCreateModel(onModelAdd));
@@ -272,8 +276,8 @@ class DiagnosticsAdapter {
272
276
  }));
273
277
  this._disposables.push({
274
278
  dispose: () => {
275
- this._listener.forEach((value) => value.dispose());
276
- this._listener.clear();
279
+ this._modelListeners.forEach((listeners) => listeners.forEach((disposable) => disposable.dispose()));
280
+ this._modelListeners.clear();
277
281
  },
278
282
  });
279
283
  editor.getModels().forEach(onModelAdd);
@@ -1,12 +1,12 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  * See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
- * v4.31.0-next.113
4
+ * v4.31.0-next.116
5
5
  */
6
- import { r as registerInstance, c as createEvent, g as getAssetPath, h, F as Fragment, H as Host, a as getElement } from './index-bc17b51e.js';
7
- import { g as importArcade, h as isURL, j as hasSameOrigin, k as importRequest, D as Deferred, l as generateGuid, K as KeyCode, n as setValuesInString, q as quoteString, o as supportedFields, p as generateTokensCSSForColorMap, S as StandaloneServices, I as IStandaloneThemeService, r as editor, t as commonjsGlobal, u as setFocusOnElement, v as filterCollection, w as languages, x as sqlExprDefaults, R as Range, y as observeAncestorsMutation, U as Uri, z as getElementTheme, A as KeyMod, B as createFilterExpression, C as addLTRMark } from './sql-expr-defaults-366bc70d.js';
8
- import { u as useControllerManager, a as useT9n, g as getSet } from './useT9n-c5241af3.js';
9
- import { b as arcadeDefaults } from './arcade-defaults-588d1890.js';
6
+ import { r as registerInstance, c as createEvent, g as getAssetPath, h, F as Fragment, H as Host, a as getElement } from './index-a2a63d6c.js';
7
+ import { g as importArcade, h as isURL, j as hasSameOrigin, k as importRequest, D as Deferred, l as generateGuid, K as KeyCode, n as setValuesInString, q as quoteString, o as supportedFields, p as generateTokensCSSForColorMap, S as StandaloneServices, I as IStandaloneThemeService, r as editor, t as commonjsGlobal, u as setFocusOnElement, v as filterCollection, w as languages, x as sqlExprDefaults, R as Range, y as observeAncestorsMutation, U as Uri, z as getElementTheme, A as KeyMod, B as createFilterExpression, C as addLTRMark } from './sql-expr-defaults-bc80dd44.js';
8
+ import { u as useControllerManager, a as useT9n, g as getSet } from './useT9n-2ef85b20.js';
9
+ import { b as arcadeDefaults } from './arcade-defaults-9da992ad.js';
10
10
 
11
11
  const DevelopersWebSitePath = "https://developers.arcgis.com/arcade/";
12
12
  const MaxArrayItems = 100;
@@ -303,7 +303,7 @@ async function getArcadeDiagnosticService() {
303
303
  * @returns arcade mode module
304
304
  */
305
305
  async function getMode$1() {
306
- return await import('./arcade-mode-f7edf7e7.js');
306
+ return await import('./arcade-mode-8bc1c8b4.js');
307
307
  }
308
308
 
309
309
  const arcadeEditorCss = "arcgis-arcade-editor{display:flex;flex-direction:column;position:relative;overflow:hidden;border:var(--arcgis-coding-components-border);box-sizing:border-box;background-color:var(--arcgis-coding-components-background-color);height:100%}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:var(--arcgis-coding-components-border);box-sizing:border-box}arcgis-arcade-editor .border-inline-end{border-inline-end:var(--arcgis-coding-components-border);box-sizing:border-box}arcgis-arcade-editor .sticky{position:sticky;top:0px;z-index:10}arcgis-arcade-editor .notice-container{margin:var(--calcite-spacing-xxs);padding:var(--calcite-spacing-sm);background-color:var(--calcite-color-foreground-1);text-align:center}arcgis-arcade-editor .side-action-bar{max-width:var(--arcgis-coding-components-side-action-bar-max-w)}arcgis-arcade-editor .side-panel{max-width:var(--arcgis-coding-components-side-panel-max-w);width:var(--arcgis-coding-components-side-panel-w)}arcgis-arcade-editor .side-panel calcite-flow{height:100%}arcgis-arcade-editor .main-action-bar{border-bottom:var(--arcgis-coding-components-border);flex:0 0 auto}arcgis-arcade-editor .main-action-bar calcite-action-group{padding-inline-end:var(--calcite-spacing-sm)}arcgis-arcade-editor .main-action-bar calcite-action-group calcite-action{padding-inline-end:var(--calcite-spacing-sm)}arcgis-arcade-editor .main-action-bar calcite-action-group calcite-action:not(:first-child){padding-inline-start:var(--calcite-spacing-sm)}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-sm)}arcgis-arcade-editor arcgis-arcade-results{border-top:var(--arcgis-coding-components-border);box-sizing:border-box;max-height:50%;min-height:50%;margin-bottom:-1px}arcgis-arcade-editor calcite-flow [slot=footer]{word-break:break-word}";
@@ -3953,7 +3953,7 @@ languages.onLanguage(arcadeDefaults.languageId, () => {
3953
3953
  * @returns sql-expression mode module
3954
3954
  */
3955
3955
  async function getMode() {
3956
- return await import('./sql-expr-mode-f7a09074.js');
3956
+ return await import('./sql-expr-mode-39319366.js');
3957
3957
  }
3958
3958
 
3959
3959
  // Register the language in Monaco
@@ -1,11 +1,11 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  * See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
- * v4.31.0-next.113
4
+ * v4.31.0-next.116
5
5
  */
6
- import { p as promiseResolve, b as bootstrapLazy } from './index-bc17b51e.js';
7
- export { s as setNonce } from './index-bc17b51e.js';
8
- import { g as globalScripts } from './app-globals-eb3d33b4.js';
6
+ import { p as promiseResolve, b as bootstrapLazy } from './index-a2a63d6c.js';
7
+ export { s as setNonce } from './index-a2a63d6c.js';
8
+ import { g as globalScripts } from './app-globals-30b10354.js';
9
9
 
10
10
  /*
11
11
  Stencil Client Patch Browser v4.20.0 | MIT Licensed | https://stenciljs.com
@@ -1,11 +1,11 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  * See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
- * v4.31.0-next.113
4
+ * v4.31.0-next.116
5
5
  */
6
- import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-bc17b51e.js';
7
- import { u as useControllerManager, a as useT9n } from './useT9n-c5241af3.js';
8
- import { l as generateGuid, x as sqlExprDefaults } from './sql-expr-defaults-366bc70d.js';
6
+ import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-a2a63d6c.js';
7
+ import { u as useControllerManager, a as useT9n } from './useT9n-2ef85b20.js';
8
+ import { l as generateGuid, x as sqlExprDefaults } from './sql-expr-defaults-bc80dd44.js';
9
9
 
10
10
  const sqlExpressionEditorCss = "arcgis-sql-expression-editor{display:flex;flex-direction:column;position:relative;overflow:hidden;border:var(--arcgis-coding-components-border);box-sizing:border-box;background-color:var(--arcgis-coding-components-background-color);height:100%}arcgis-sql-expression-editor .flex-adjustable{flex:1 1 auto;overflow:hidden}arcgis-sql-expression-editor .flex-panel{flex:1 0 auto}arcgis-sql-expression-editor .position-relative{position:relative}arcgis-sql-expression-editor .flex-row{display:flex;flex-direction:row;overflow:hidden}arcgis-sql-expression-editor .flex-column{display:flex;flex-direction:column;overflow:hidden}arcgis-sql-expression-editor .border-inline-start{border-inline-start:var(--arcgis-coding-components-border);box-sizing:border-box}arcgis-sql-expression-editor .border-inline-end{border-inline-end:var(--arcgis-coding-components-border);box-sizing:border-box}arcgis-sql-expression-editor .side-action-bar{max-width:var(--arcgis-coding-components-side-action-bar-max-w)}arcgis-sql-expression-editor .side-panel{max-width:var(--arcgis-coding-components-side-panel-max-w);width:var(--arcgis-coding-components-side-panel-w)}arcgis-sql-expression-editor .side-panel calcite-flow{height:100%}";
11
11
  const ArcgisSqlExpressionEditorStyle0 = sqlExpressionEditorCss;
@@ -1,11 +1,11 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  * See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
- * v4.31.0-next.113
4
+ * v4.31.0-next.116
5
5
  */
6
- import { r as registerInstance, c as createEvent, h, a as getElement } from './index-bc17b51e.js';
7
- import { u as useControllerManager, a as useT9n } from './useT9n-c5241af3.js';
8
- import { x as sqlExprDefaults } from './sql-expr-defaults-366bc70d.js';
6
+ import { r as registerInstance, c as createEvent, h, a as getElement } from './index-a2a63d6c.js';
7
+ import { u as useControllerManager, a as useT9n } from './useT9n-2ef85b20.js';
8
+ import { x as sqlExprDefaults } from './sql-expr-defaults-bc80dd44.js';
9
9
 
10
10
  const sqlExpressionFieldsCss = ":host calcite-flow{height:100%}:host calcite-list-item-group{background-color:var(--calcite-color-foreground-2)}";
11
11
  const ArcgisSqlExpressionFieldsStyle0 = sqlExpressionFieldsCss;
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  * See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
- * v4.31.0-next.113
4
+ * v4.31.0-next.116
5
5
  */
6
6
  /*!-----------------------------------------------------------------------------
7
7
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,10 +1,10 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  * See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
- * v4.31.0-next.113
4
+ * v4.31.0-next.116
5
5
  */
6
- import { O as monaco_editor_core_star } from './sql-expr-defaults-366bc70d.js';
7
- import './index-bc17b51e.js';
6
+ import { O as monaco_editor_core_star } from './sql-expr-defaults-bc80dd44.js';
7
+ import './index-a2a63d6c.js';
8
8
 
9
9
  /*!-----------------------------------------------------------------------------
10
10
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,10 +1,10 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  * See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
- * v4.31.0-next.113
4
+ * v4.31.0-next.116
5
5
  */
6
- import { O as monaco_editor_core_star } from './sql-expr-defaults-366bc70d.js';
7
- import './index-bc17b51e.js';
6
+ import { O as monaco_editor_core_star } from './sql-expr-defaults-bc80dd44.js';
7
+ import './index-a2a63d6c.js';
8
8
 
9
9
  /*!-----------------------------------------------------------------------------
10
10
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,10 +1,10 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  * See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
- * v4.31.0-next.113
4
+ * v4.31.0-next.116
5
5
  */
6
- import { O as monaco_editor_core_star } from './sql-expr-defaults-366bc70d.js';
7
- import './index-bc17b51e.js';
6
+ import { O as monaco_editor_core_star } from './sql-expr-defaults-bc80dd44.js';
7
+ import './index-a2a63d6c.js';
8
8
 
9
9
  /*!-----------------------------------------------------------------------------
10
10
  * Copyright (c) Microsoft Corporation. All rights reserved.