@arcgis/coding-components 4.32.0-next.2 → 4.32.0-next.4

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 (100) 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 +82 -92
  3. package/dist/arcgis-coding-components/index.esm.js +2 -2
  4. package/dist/arcgis-coding-components/{p-f2133384.js → p-041d1692.js} +2 -2
  5. package/dist/arcgis-coding-components/{p-aa5ca703.entry.js → p-2a938946.entry.js} +2 -2
  6. package/dist/arcgis-coding-components/{p-2ff9c3b1.js → p-2f83b616.js} +2 -2
  7. package/dist/arcgis-coding-components/{p-3e3fe4e2.js → p-30a11326.js} +10 -10
  8. package/dist/arcgis-coding-components/{p-7ede01c4.js → p-34fbe145.js} +2 -2
  9. package/dist/arcgis-coding-components/p-4e4e83ba.js +6 -0
  10. package/dist/arcgis-coding-components/{p-5609ffa9.entry.js → p-53163bb8.entry.js} +2 -2
  11. package/dist/arcgis-coding-components/{p-45d5d08c.js → p-65af9b26.js} +2 -2
  12. package/dist/arcgis-coding-components/{p-86ac3ba3.js → p-65cc9080.js} +2 -2
  13. package/dist/arcgis-coding-components/{p-810982ce.js → p-6d8fdce9.js} +2 -2
  14. package/dist/arcgis-coding-components/{p-3a02ec49.js → p-8207f8e5.js} +1 -1
  15. package/dist/arcgis-coding-components/{p-fd292a0b.js → p-a1e848e4.js} +3 -3
  16. package/dist/arcgis-coding-components/{p-6ea55b0d.js → p-b5c3444f.js} +1 -1
  17. package/dist/arcgis-coding-components/{p-9bb0a9b8.js → p-b935d45d.js} +2 -2
  18. package/dist/arcgis-coding-components/p-c308b33c.js +6 -0
  19. package/dist/arcgis-coding-components/{p-c7e8f807.js → p-d3e1bf7c.js} +2 -2
  20. package/dist/arcgis-coding-components/{p-fbd8567b.js → p-d42b86d4.js} +1 -1
  21. package/dist/arcgis-coding-components/{p-93399310.entry.js → p-dfafee6e.entry.js} +2 -2
  22. package/dist/cjs/{app-globals-369fff1c.js → app-globals-f90c9cef.js} +1 -1
  23. package/dist/cjs/{arcade-defaults-f2f2aef5.js → arcade-defaults-d1a76de9.js} +3 -3
  24. package/dist/cjs/{arcade-mode-43f7ea6d.js → arcade-mode-b75bef25.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-bb9e6855.js → css-11bb5558.js} +1 -1
  30. package/dist/cjs/{cssMode-5a9f9458.js → cssMode-1a971201.js} +3 -3
  31. package/dist/cjs/{html-f0b7b602.js → html-f57c6240.js} +3 -3
  32. package/dist/cjs/{htmlMode-ebe8b57f.js → htmlMode-044b3b95.js} +3 -3
  33. package/dist/cjs/{index-661b6ae1.js → index-b9ac51eb.js} +1 -1
  34. package/dist/cjs/index.cjs.js +4 -4
  35. package/dist/cjs/{javascript-08435efd.js → javascript-00b82c69.js} +4 -4
  36. package/dist/cjs/{jsonMode-72f98a9f.js → jsonMode-0be75ae4.js} +3 -3
  37. package/dist/cjs/loader.cjs.js +3 -3
  38. package/dist/cjs/{sql-expr-defaults-2d1df28c.js → sql-expr-defaults-80b66c10.js} +10 -10
  39. package/dist/cjs/{sql-expr-mode-e3111d56.js → sql-expr-mode-3188e2b6.js} +16 -12
  40. package/dist/cjs/{tsMode-13683633.js → tsMode-4b36654a.js} +3 -3
  41. package/dist/cjs/{typescript-0da7ad5a.js → typescript-8dcdde12.js} +3 -3
  42. package/dist/cjs/{useT9n-07705722.js → useT9n-453c879a.js} +51 -52
  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 +2 -2
  46. package/dist/components/arcade-suggestions.js +2 -2
  47. package/dist/components/arcgis-arcade-editor.js +2 -2
  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 +2 -2
  56. package/dist/components/arcgis-sql-expression-fields.js +2 -2
  57. package/dist/components/{chunk-DH6FIUFH.js → chunk-UO6SL5WB.js} +3 -3
  58. package/dist/components/code-editor.js +2 -2
  59. package/dist/components/editor-variables.js +2 -2
  60. package/dist/components/fields.js +1 -1
  61. package/dist/components/index.d.ts +18 -3
  62. package/dist/components/index.js +1 -1
  63. package/dist/components/index2.js +2 -2
  64. package/dist/components/language-api-panel.js +2 -2
  65. package/dist/components/markdown.js +1 -1
  66. package/dist/components/sql-expr-defaults.js +1 -1
  67. package/dist/components/sql-expr-mode.js +14 -10
  68. package/dist/components/useT9n.js +49 -50
  69. package/dist/components/utilities.js +1 -1
  70. package/dist/esm/{app-globals-61a0b37f.js → app-globals-1ba0e0f1.js} +1 -1
  71. package/dist/esm/{arcade-defaults-39c09fb3.js → arcade-defaults-890ce4ef.js} +3 -3
  72. package/dist/esm/{arcade-mode-f71b93c3.js → arcade-mode-539b4860.js} +15 -11
  73. package/dist/esm/arcgis-arcade-editor_6.entry.js +7 -7
  74. package/dist/esm/arcgis-coding-components.js +4 -4
  75. package/dist/esm/arcgis-sql-expression-editor.entry.js +4 -4
  76. package/dist/esm/arcgis-sql-expression-fields.entry.js +4 -4
  77. package/dist/esm/{css-a277ad93.js → css-cebacbef.js} +1 -1
  78. package/dist/esm/{cssMode-8e69e001.js → cssMode-534d736c.js} +3 -3
  79. package/dist/esm/{html-1ee1e335.js → html-0dd67d20.js} +3 -3
  80. package/dist/esm/{htmlMode-f719c141.js → htmlMode-450c6dcf.js} +3 -3
  81. package/dist/esm/{index-8e0246ff.js → index-240f605a.js} +1 -1
  82. package/dist/esm/index.js +4 -4
  83. package/dist/esm/{javascript-bf625a2d.js → javascript-b9e20a1f.js} +4 -4
  84. package/dist/esm/{jsonMode-f2d341c1.js → jsonMode-330ba776.js} +3 -3
  85. package/dist/esm/loader.js +4 -4
  86. package/dist/esm/{sql-expr-defaults-803d0865.js → sql-expr-defaults-c38bd01c.js} +11 -11
  87. package/dist/esm/{sql-expr-mode-0acae40b.js → sql-expr-mode-82420487.js} +16 -12
  88. package/dist/esm/{tsMode-13293815.js → tsMode-b9dd20d3.js} +3 -3
  89. package/dist/esm/{typescript-e213d515.js → typescript-d3b21946.js} +3 -3
  90. package/dist/esm/{useT9n-a77e7a6f.js → useT9n-233b1a48.js} +51 -52
  91. package/dist/loader/cdn.js +1 -1
  92. package/dist/loader/index.cjs.js +1 -1
  93. package/dist/loader/index.es2017.js +1 -1
  94. package/dist/loader/index.js +1 -1
  95. 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
  96. package/dist/types/utils/arcade-monaco/arcade-language-features.d.ts +1 -1
  97. package/dist/types/utils/sql-expr-monaco/sql-expr-language-features.d.ts +1 -1
  98. package/package.json +13 -13
  99. package/dist/arcgis-coding-components/p-534574aa.js +0 -6
  100. package/dist/arcgis-coding-components/p-e40d1c72.js +0 -6
@@ -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.32/esri/copyright.txt for details.
4
- * v4.32.0-next.2
4
+ * v4.32.0-next.4
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.32/esri/copyright.txt for details.
4
- * v4.32.0-next.2
4
+ * v4.32.0-next.4
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.32/esri/copyright.txt for details.
4
- * v4.32.0-next.2
4
+ * v4.32.0-next.4
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.32/esri/copyright.txt for details.
4
- * v4.32.0-next.2
4
+ * v4.32.0-next.4
5
5
  */
6
6
  import { A as ArcgisLanguageApiPanel$1, d as defineCustomElement$1 } from './language-api-panel.js';
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.32/esri/copyright.txt for details.
4
- * v4.32.0-next.2
4
+ * v4.32.0-next.4
5
5
  */
6
6
  import { proxyCustomElement, HTMLElement, createEvent, forceUpdate, h, Host } from '@stencil/core/internal/client';
7
- import { u as useControllerManager } from './chunk-DH6FIUFH.js';
7
+ import { u as useControllerManager } from './chunk-UO6SL5WB.js';
8
8
  import { g as generateGuid } from './index2.js';
9
9
  import { d as sqlExprDefaults } from './sql-expr-defaults.js';
10
10
  import { u as useT9n } from './useT9n.js';
@@ -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.32/esri/copyright.txt for details.
4
- * v4.32.0-next.2
4
+ * v4.32.0-next.4
5
5
  */
6
6
  import { proxyCustomElement, HTMLElement, createEvent, forceUpdate, h } from '@stencil/core/internal/client';
7
- import { u as useControllerManager } from './chunk-DH6FIUFH.js';
7
+ import { u as useControllerManager } from './chunk-UO6SL5WB.js';
8
8
  import { d as sqlExprDefaults } from './sql-expr-defaults.js';
9
9
  import { u as useT9n } from './useT9n.js';
10
10
  import "@esri/calcite-components/dist/components/calcite-block.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.32/esri/copyright.txt for details.
4
- * v4.32.0-next.2
4
+ * v4.32.0-next.4
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
 
@@ -225,8 +225,8 @@ var Controller = class {
225
225
  }
226
226
  this._ready.resolve(exports);
227
227
  }
228
- setProvisionalExports(exports) {
229
- this._exports = makeProvisionalValue(exports);
228
+ setProvisionalExports(exports, proxy = true) {
229
+ this._exports = proxy ? makeProvisionalValue(exports) : exports;
230
230
  this._exportWatchers.forEach(safeCall);
231
231
  }
232
232
  watchExports(callback) {
@@ -1,13 +1,13 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  * See https://js.arcgis.com/4.32/esri/copyright.txt for details.
4
- * v4.32.0-next.2
4
+ * v4.32.0-next.4
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';
8
8
  import { i as importRequest } from './fields.js';
9
9
  import { k as isURL, l as hasSameOrigin, D as Deferred, g as generateGuid, o as observeAncestorsMutation, m as getElementTheme } from './index2.js';
10
- import { u as useControllerManager, g as getSet } from './chunk-DH6FIUFH.js';
10
+ import { u as useControllerManager, g as getSet } from './chunk-UO6SL5WB.js';
11
11
  import { b as arcadeDefaults } from './arcade-defaults.js';
12
12
  import { d as sqlExprDefaults } from './sql-expr-defaults.js';
13
13
  import { getArcgisAssetPath as getAssetPath } from "./arcgis-assets.js";
@@ -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.32/esri/copyright.txt for details.
4
- * v4.32.0-next.2
4
+ * v4.32.0-next.4
5
5
  */
6
6
  import { proxyCustomElement, HTMLElement, createEvent, forceUpdate, h } from '@stencil/core/internal/client';
7
- import { u as useControllerManager } from './chunk-DH6FIUFH.js';
7
+ import { u as useControllerManager } from './chunk-UO6SL5WB.js';
8
8
  import { t as setFocusOnElement, d as createFilterExpression } from './index2.js';
9
9
  import { u as useT9n } from './useT9n.js';
10
10
  import "@esri/calcite-components/dist/components/calcite-flow-item.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.32/esri/copyright.txt for details.
4
- * v4.32.0-next.2
4
+ * v4.32.0-next.4
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,3 +1,21 @@
1
+ /**
2
+ * Get the base path to where the assets can be found. Use "setAssetPath(path)"
3
+ * if the path needs to be customized.
4
+ */
5
+ export declare const getAssetPath: (path: string) => string;
6
+
7
+ /**
8
+ * Used to manually set the base path where assets can be found.
9
+ * If the script is used as "module", it's recommended to use "import.meta.url",
10
+ * such as "setAssetPath(import.meta.url)". Other options include
11
+ * "setAssetPath(document.currentScript.src)", or using a bundler's replace plugin to
12
+ * dynamically set the path at build time, such as "setAssetPath(process.env.ASSET_PATH)".
13
+ * But do note that this configuration depends on how your script is bundled, or lack of
14
+ * bundling, and where your assets can be loaded from. Additionally custom bundling
15
+ * will have to ensure the static assets are copied to its build directory.
16
+ */
17
+ export declare const setAssetPath: (path: string) => void;
18
+
1
19
  /**
2
20
  * Used to specify a nonce value that corresponds with an application's CSP.
3
21
  * When set, the nonce will be added to all dynamically created script and style tags at runtime.
@@ -13,6 +31,3 @@ export interface SetPlatformOptions {
13
31
  rel?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
14
32
  }
15
33
  export declare const setPlatformOptions: (opts: SetPlatformOptions) => void;
16
-
17
- export * from "../types";
18
- export * from "./arcgis-assets";
@@ -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.32/esri/copyright.txt for details.
4
- * v4.32.0-next.2
4
+ * v4.32.0-next.4
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.32/esri/copyright.txt for details.
4
- * v4.32.0-next.2
4
+ * v4.32.0-next.4
5
5
  */
6
6
  // src/array-utils.ts
7
7
 
@@ -412,4 +412,4 @@ function isURL(url) {
412
412
  }
413
413
  }
414
414
 
415
- export { Deferred as D, isNotUndefined as a, addLTRMark as b, setValuesInString as c, createFilterExpression as d, safeAsyncCall as e, fetchT9nStringsBundle as f, generateGuid as g, devToolsAwareTimeout as h, isNotNull as i, safeCall as j, isURL as k, hasSameOrigin as l, getElementTheme as m, normalizeLocale as n, observeAncestorsMutation as o, startLocaleObserver as p, quoteString as q, getElementLocales as r, supportedLocales as s, setFocusOnElement as t, debounce as u };
415
+ export { Deferred as D, isNotUndefined as a, addLTRMark as b, setValuesInString as c, createFilterExpression as d, safeAsyncCall as e, fetchT9nStringsBundle as f, generateGuid as g, devToolsAwareTimeout as h, isNotNull as i, safeCall as j, isURL as k, hasSameOrigin as l, getElementTheme as m, normalizeLocale as n, observeAncestorsMutation as o, getElementLocales as p, quoteString as q, startLocaleObserver as r, supportedLocales as s, setFocusOnElement as t, debounce as u };
@@ -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.32/esri/copyright.txt for details.
4
- * v4.32.0-next.2
4
+ * v4.32.0-next.4
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';
8
8
  import { f as filterCollection } from './utilities.js';
9
- import { u as useControllerManager } from './chunk-DH6FIUFH.js';
9
+ import { u as useControllerManager } from './chunk-UO6SL5WB.js';
10
10
  import { t as setFocusOnElement, b as addLTRMark } from './index2.js';
11
11
  import { u as useT9n } from './useT9n.js';
12
12
  import "@esri/calcite-components/dist/components/calcite-list-item-group.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.32/esri/copyright.txt for details.
4
- * v4.32.0-next.2
4
+ * v4.32.0-next.4
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.32/esri/copyright.txt for details.
4
- * v4.32.0-next.2
4
+ * v4.32.0-next.4
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.32/esri/copyright.txt for details.
4
- * v4.32.0-next.2
4
+ * v4.32.0-next.4
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,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.32/esri/copyright.txt for details.
4
- * v4.32.0-next.2
4
+ * v4.32.0-next.4
5
5
  */
6
- import { p as proxyExports, w as watch, C as Controller, s as setAmbientComponent } from './chunk-DH6FIUFH.js';
7
- import { p as startLocaleObserver, r as getElementLocales } from './index2.js';
6
+ import { p as proxyExports, w as watch, C as Controller, s as setAmbientComponent } from './chunk-UO6SL5WB.js';
7
+ import { p as getElementLocales, r as startLocaleObserver } from './index2.js';
8
8
  import { getArcgisAssetPath as getAssetPath } from "./arcgis-assets.js";
9
9
 
10
10
  // src/functional.ts
@@ -46,55 +46,54 @@ var FunctionalController = class extends Controller {
46
46
  }
47
47
  };
48
48
  var proxy = proxyExports(FunctionalController);
49
- var makeT9nController = (getAssetPath) => (options = {}) => (
50
- // eslint-disable-next-line @typescript-eslint/promise-function-async
51
- makeController((component, controller) => {
52
- const componentWithOverrides = component;
53
- controller.onLifecycle(
54
- () => startLocaleObserver(
55
- component.el,
56
- getAssetPath("./assets"),
57
- ({ t9nLocale, t9nStrings, lang }) => {
58
- const withoutOverrides = {
59
- ...t9nStrings,
60
- _lang: lang,
61
- _t9nLocale: t9nLocale,
62
- _loading: false
63
- };
64
- controller.exports = withoutOverrides;
65
- const label = t9nStrings.componentLabel ?? t9nStrings.widgetLabel;
66
- if (typeof label === "string" && "label" in component && component.label == null) {
67
- component.label ?? (component.label = label);
68
- }
69
- applyOverrides(componentWithOverrides.messageOverrides);
70
- },
71
- options.name
72
- )
73
- );
74
- function applyOverrides(messageOverrides) {
75
- const currentValue = controller.exports;
76
- const rawMessages = currentValue._original ?? currentValue;
77
- const updated = deepMerge(rawMessages, messageOverrides);
78
- if (messageOverrides) {
79
- updated._original = rawMessages;
80
- }
81
- controller.exports = updated;
82
- }
83
- if ("messageOverrides" in componentWithOverrides) {
84
- controller.onLifecycle(() => watch(componentWithOverrides, "messageOverrides", applyOverrides));
85
- }
86
- if (options.blocking) {
87
- return controller.ready;
49
+ var makeT9nController = (getAssetPath) => (options = {}) => makeController((component, controller) => {
50
+ const locale = getElementLocales(component.el);
51
+ const pending = {
52
+ _lang: locale.lang,
53
+ _t9nLocale: locale.t9nLocale,
54
+ _loading: true
55
+ };
56
+ const componentWithOverrides = component;
57
+ controller.onLifecycle(
58
+ () => startLocaleObserver(
59
+ component.el,
60
+ getAssetPath("./assets"),
61
+ ({ t9nLocale, t9nStrings, lang }) => {
62
+ const withoutOverrides = {
63
+ ...t9nStrings,
64
+ _lang: lang,
65
+ _t9nLocale: t9nLocale,
66
+ _loading: false
67
+ };
68
+ controller.exports = withoutOverrides;
69
+ const label = t9nStrings.componentLabel ?? t9nStrings.widgetLabel;
70
+ if (typeof label === "string" && "label" in component && component.label == null) {
71
+ component.label ?? (component.label = label);
72
+ }
73
+ applyOverrides(componentWithOverrides.messageOverrides);
74
+ },
75
+ options.name
76
+ )
77
+ );
78
+ function applyOverrides(messageOverrides) {
79
+ const currentValue = controller.exports;
80
+ const rawMessages = currentValue._original ?? currentValue;
81
+ const updated = deepMerge(rawMessages, messageOverrides);
82
+ if (messageOverrides) {
83
+ updated._original = rawMessages;
88
84
  }
89
- const locale = getElementLocales(component.el);
90
- const pending = {
91
- _lang: locale.lang,
92
- _t9nLocale: locale.t9nLocale,
93
- _loading: true
94
- };
85
+ controller.exports = updated;
86
+ }
87
+ if ("messageOverrides" in componentWithOverrides) {
88
+ controller.onLifecycle(() => watch(componentWithOverrides, "messageOverrides", applyOverrides));
89
+ }
90
+ if (options.blocking) {
91
+ controller.setProvisionalExports(pending, false);
92
+ return void 0;
93
+ } else {
95
94
  return pending;
96
- })
97
- );
95
+ }
96
+ });
98
97
  function deepMerge(original, overwrites) {
99
98
  if (!overwrites) {
100
99
  return original;
@@ -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.32/esri/copyright.txt for details.
4
- * v4.32.0-next.2
4
+ * v4.32.0-next.4
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.32/esri/copyright.txt for details.
4
- * v4.32.0-next.2
4
+ * v4.32.0-next.4
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.32/esri/copyright.txt for details.
4
- * v4.32.0-next.2
4
+ * v4.32.0-next.4
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-803d0865.js';
7
- import { g as getAssetPath } from './index-8e0246ff.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-c38bd01c.js';
7
+ import { g as getAssetPath } from './index-240f605a.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.32/esri/copyright.txt for details.
4
- * v4.32.0-next.2
4
+ * v4.32.0-next.4
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-803d0865.js';
7
- import './index-8e0246ff.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-c38bd01c.js';
7
+ import './index-240f605a.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.32/esri/copyright.txt for details.
4
- * v4.32.0-next.2
4
+ * v4.32.0-next.4
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-8e0246ff.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-803d0865.js';
8
- import { u as useControllerManager, a as useT9n, g as getSet } from './useT9n-a77e7a6f.js';
9
- import { b as arcadeDefaults } from './arcade-defaults-39c09fb3.js';
6
+ import { r as registerInstance, c as createEvent, g as getAssetPath, h, F as Fragment, H as Host, a as getElement } from './index-240f605a.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-c38bd01c.js';
8
+ import { u as useControllerManager, a as useT9n, g as getSet } from './useT9n-233b1a48.js';
9
+ import { b as arcadeDefaults } from './arcade-defaults-890ce4ef.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-f71b93c3.js');
306
+ return await import('./arcade-mode-539b4860.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-0acae40b.js');
3956
+ return await import('./sql-expr-mode-82420487.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.32/esri/copyright.txt for details.
4
- * v4.32.0-next.2
4
+ * v4.32.0-next.4
5
5
  */
6
- import { p as promiseResolve, b as bootstrapLazy } from './index-8e0246ff.js';
7
- export { s as setNonce } from './index-8e0246ff.js';
8
- import { g as globalScripts } from './app-globals-61a0b37f.js';
6
+ import { p as promiseResolve, b as bootstrapLazy } from './index-240f605a.js';
7
+ export { s as setNonce } from './index-240f605a.js';
8
+ import { g as globalScripts } from './app-globals-1ba0e0f1.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.32/esri/copyright.txt for details.
4
- * v4.32.0-next.2
4
+ * v4.32.0-next.4
5
5
  */
6
- import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-8e0246ff.js';
7
- import { u as useControllerManager, a as useT9n } from './useT9n-a77e7a6f.js';
8
- import { l as generateGuid, x as sqlExprDefaults } from './sql-expr-defaults-803d0865.js';
6
+ import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-240f605a.js';
7
+ import { u as useControllerManager, a as useT9n } from './useT9n-233b1a48.js';
8
+ import { l as generateGuid, x as sqlExprDefaults } from './sql-expr-defaults-c38bd01c.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.32/esri/copyright.txt for details.
4
- * v4.32.0-next.2
4
+ * v4.32.0-next.4
5
5
  */
6
- import { r as registerInstance, c as createEvent, h, a as getElement } from './index-8e0246ff.js';
7
- import { u as useControllerManager, a as useT9n } from './useT9n-a77e7a6f.js';
8
- import { x as sqlExprDefaults } from './sql-expr-defaults-803d0865.js';
6
+ import { r as registerInstance, c as createEvent, h, a as getElement } from './index-240f605a.js';
7
+ import { u as useControllerManager, a as useT9n } from './useT9n-233b1a48.js';
8
+ import { x as sqlExprDefaults } from './sql-expr-defaults-c38bd01c.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.32/esri/copyright.txt for details.
4
- * v4.32.0-next.2
4
+ * v4.32.0-next.4
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.32/esri/copyright.txt for details.
4
- * v4.32.0-next.2
4
+ * v4.32.0-next.4
5
5
  */
6
- import { O as monaco_editor_core_star } from './sql-expr-defaults-803d0865.js';
7
- import './index-8e0246ff.js';
6
+ import { O as monaco_editor_core_star } from './sql-expr-defaults-c38bd01c.js';
7
+ import './index-240f605a.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.32/esri/copyright.txt for details.
4
- * v4.32.0-next.2
4
+ * v4.32.0-next.4
5
5
  */
6
- import { O as monaco_editor_core_star } from './sql-expr-defaults-803d0865.js';
7
- import './index-8e0246ff.js';
6
+ import { O as monaco_editor_core_star } from './sql-expr-defaults-c38bd01c.js';
7
+ import './index-240f605a.js';
8
8
 
9
9
  /*!-----------------------------------------------------------------------------
10
10
  * Copyright (c) Microsoft Corporation. All rights reserved.