@arcgis/coding-components 4.31.0-next.36 → 4.31.0-next.38

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 (97) 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 +40 -40
  3. package/dist/arcgis-coding-components/index.esm.js +2 -2
  4. package/dist/arcgis-coding-components/{p-b35496fa.js → p-073d8983.js} +2 -2
  5. package/dist/arcgis-coding-components/{p-e89fca83.js → p-1d458152.js} +2 -2
  6. package/dist/arcgis-coding-components/{p-236d12d3.js → p-3381cbb3.js} +2 -2
  7. package/dist/arcgis-coding-components/{p-16f8beba.entry.js → p-4e928153.entry.js} +2 -2
  8. package/dist/arcgis-coding-components/{p-bfb67195.entry.js → p-55dc17b5.entry.js} +2 -2
  9. package/dist/arcgis-coding-components/{p-f0d080e1.js → p-69f6692f.js} +2 -2
  10. package/dist/arcgis-coding-components/{p-cc07c26d.js → p-76acc36e.js} +2 -2
  11. package/dist/arcgis-coding-components/{p-5d68f261.js → p-7ce1f34b.js} +9 -9
  12. package/dist/arcgis-coding-components/{p-1edf2758.entry.js → p-b0adca59.entry.js} +2 -2
  13. package/dist/arcgis-coding-components/{p-4494f395.js → p-c27e1be0.js} +1 -1
  14. package/dist/arcgis-coding-components/{p-8995ea48.js → p-c60f1c50.js} +2 -2
  15. package/dist/arcgis-coding-components/{p-ea90961f.js → p-e0cea0a8.js} +1 -1
  16. package/dist/arcgis-coding-components/{p-b582c623.js → p-e37185ef.js} +2 -2
  17. package/dist/arcgis-coding-components/{p-66ca1d28.js → p-e6c85bbb.js} +2 -2
  18. package/dist/arcgis-coding-components/{p-c4463b73.js → p-eef6fa27.js} +2 -2
  19. package/dist/arcgis-coding-components/p-faf88d6b.js +6 -0
  20. package/dist/arcgis-coding-components/{p-b5242f41.js → p-fce66178.js} +1 -1
  21. package/dist/arcgis-coding-components/{p-8fbf75c8.js → p-ffed1f26.js} +2 -2
  22. package/dist/cjs/{app-globals-28d59deb.js → app-globals-8c111153.js} +1 -1
  23. package/dist/cjs/{arcade-defaults-d664a41b.js → arcade-defaults-11f7d268.js} +4 -4
  24. package/dist/cjs/{arcade-mode-0d9d8594.js → arcade-mode-07c807b8.js} +2 -2
  25. package/dist/cjs/arcgis-arcade-editor_6.cjs.entry.js +5 -5
  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-697a4f1f.js → css-34ad091b.js} +1 -1
  30. package/dist/cjs/{cssMode-0884af5c.js → cssMode-bfb409ae.js} +2 -2
  31. package/dist/cjs/{html-be2c5070.js → html-b91f2de3.js} +2 -2
  32. package/dist/cjs/{htmlMode-972b5d00.js → htmlMode-5a9f2b7b.js} +2 -2
  33. package/dist/cjs/{index-0286e65d.js → index-398efbd8.js} +1 -1
  34. package/dist/cjs/index.cjs.js +4 -4
  35. package/dist/cjs/{javascript-ca1a83c0.js → javascript-9c5e51cf.js} +3 -3
  36. package/dist/cjs/{jsonMode-f80b130e.js → jsonMode-7e3a4ee0.js} +2 -2
  37. package/dist/cjs/{language-defaults-base-4ef5a410.js → language-defaults-base-37d42cfc.js} +9 -9
  38. package/dist/cjs/loader.cjs.js +3 -3
  39. package/dist/cjs/{sql-expr-defaults-c2303d39.js → sql-expr-defaults-e6b4b714.js} +22 -9
  40. package/dist/cjs/{sql-expr-mode-8427e6a9.js → sql-expr-mode-389da910.js} +4 -4
  41. package/dist/cjs/{tsMode-9f7c1e47.js → tsMode-ad3d89e7.js} +2 -2
  42. package/dist/cjs/{typescript-a542d6e5.js → typescript-75eb2530.js} +2 -2
  43. package/dist/components/arcade-defaults.js +1 -1
  44. package/dist/components/arcade-mode.js +1 -1
  45. package/dist/components/arcade-results.js +2 -2
  46. package/dist/components/arcade-suggestions.js +2 -2
  47. package/dist/components/arcade-variables.js +2 -2
  48. package/dist/components/arcgis-arcade-editor.js +2 -2
  49. package/dist/components/arcgis-arcade-results.js +1 -1
  50. package/dist/components/arcgis-arcade-suggestions.js +1 -1
  51. package/dist/components/arcgis-arcade-variables.js +1 -1
  52. package/dist/components/arcgis-assets.d.ts +1 -1
  53. package/dist/components/arcgis-assets.js +1 -1
  54. package/dist/components/arcgis-code-editor.js +1 -1
  55. package/dist/components/arcgis-language-api-panel.js +1 -1
  56. package/dist/components/arcgis-sql-expression-editor.js +2 -2
  57. package/dist/components/arcgis-sql-expression-fields.js +1 -1
  58. package/dist/components/{chunk-EOMOY2EF.js → chunk-656WPE3G.js} +19 -6
  59. package/dist/components/code-editor.js +2 -2
  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 +2 -2
  64. package/dist/components/language-defaults-base.js +1 -1
  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 +1 -1
  68. package/dist/components/sql-expression-fields.js +2 -2
  69. package/dist/components/useT9n.js +2 -2
  70. package/dist/components/utilities.js +1 -1
  71. package/dist/esm/{app-globals-b8dea988.js → app-globals-a5f17ef9.js} +1 -1
  72. package/dist/esm/{arcade-defaults-86737d71.js → arcade-defaults-00680bcb.js} +4 -4
  73. package/dist/esm/{arcade-mode-94734b13.js → arcade-mode-627341f8.js} +2 -2
  74. package/dist/esm/arcgis-arcade-editor_6.entry.js +5 -5
  75. package/dist/esm/arcgis-coding-components.js +4 -4
  76. package/dist/esm/arcgis-sql-expression-editor.entry.js +4 -4
  77. package/dist/esm/arcgis-sql-expression-fields.entry.js +4 -4
  78. package/dist/esm/{css-ddcc1fba.js → css-8ad9d577.js} +1 -1
  79. package/dist/esm/{cssMode-40f96388.js → cssMode-17974b04.js} +2 -2
  80. package/dist/esm/{html-0003137e.js → html-fb4b0ddf.js} +2 -2
  81. package/dist/esm/{htmlMode-7e1bc03d.js → htmlMode-8fb4b96c.js} +2 -2
  82. package/dist/esm/{index-756fae1a.js → index-368c6a65.js} +1 -1
  83. package/dist/esm/index.js +4 -4
  84. package/dist/esm/{javascript-729f34fa.js → javascript-41a8850e.js} +3 -3
  85. package/dist/esm/{jsonMode-8bf91ede.js → jsonMode-95982e18.js} +2 -2
  86. package/dist/esm/{language-defaults-base-54c5450e.js → language-defaults-base-b8c444af.js} +9 -9
  87. package/dist/esm/loader.js +4 -4
  88. package/dist/esm/{sql-expr-defaults-3b31f1e6.js → sql-expr-defaults-a6190532.js} +22 -9
  89. package/dist/esm/{sql-expr-mode-eb602c14.js → sql-expr-mode-c034d7e3.js} +4 -4
  90. package/dist/esm/{tsMode-f1787a53.js → tsMode-6a09145b.js} +2 -2
  91. package/dist/esm/{typescript-b1cb128a.js → typescript-1b68bb5a.js} +2 -2
  92. package/dist/loader/cdn.js +1 -1
  93. package/dist/loader/index.cjs.js +1 -1
  94. package/dist/loader/index.es2017.js +1 -1
  95. package/dist/loader/index.js +1 -1
  96. package/package.json +11 -11
  97. package/dist/arcgis-coding-components/p-50318043.js +0 -6
package/dist/esm/index.js CHANGED
@@ -1,8 +1,8 @@
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.36
4
+ * v4.31.0-next.38
5
5
  */
6
- export { a as arcade } from './arcade-defaults-86737d71.js';
7
- import './language-defaults-base-54c5450e.js';
8
- import './index-756fae1a.js';
6
+ export { a as arcade } from './arcade-defaults-00680bcb.js';
7
+ import './language-defaults-base-b8c444af.js';
8
+ import './index-368c6a65.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.31/esri/copyright.txt for details.
4
- * v4.31.0-next.36
4
+ * v4.31.0-next.38
5
5
  */
6
- import { conf as conf$1, language as language$1 } from './typescript-b1cb128a.js';
7
- import './language-defaults-base-54c5450e.js';
6
+ import { conf as conf$1, language as language$1 } from './typescript-1b68bb5a.js';
7
+ import './language-defaults-base-b8c444af.js';
8
8
 
9
9
  /*!-----------------------------------------------------------------------------
10
10
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,9 +1,9 @@
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.36
4
+ * v4.31.0-next.38
5
5
  */
6
- import { M as monaco_editor_core_star } from './language-defaults-base-54c5450e.js';
6
+ import { M as monaco_editor_core_star } from './language-defaults-base-b8c444af.js';
7
7
 
8
8
  /*!-----------------------------------------------------------------------------
9
9
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -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.36
4
+ * v4.31.0-next.38
5
5
  */
6
6
  /**
7
7
  * Returns the last element of an array.
@@ -120592,7 +120592,7 @@ registerLanguage({
120592
120592
  mimetypes: ["text/css"],
120593
120593
  loader: () => {
120594
120594
  {
120595
- return import('./css-ddcc1fba.js');
120595
+ return import('./css-8ad9d577.js');
120596
120596
  }
120597
120597
  }
120598
120598
  });
@@ -120610,7 +120610,7 @@ registerLanguage({
120610
120610
  mimetypes: ["text/html", "text/x-jshtm", "text/template", "text/ng-template"],
120611
120611
  loader: () => {
120612
120612
  {
120613
- return import('./html-0003137e.js');
120613
+ return import('./html-fb4b0ddf.js');
120614
120614
  }
120615
120615
  }
120616
120616
  });
@@ -120630,7 +120630,7 @@ registerLanguage({
120630
120630
  mimetypes: ["text/javascript"],
120631
120631
  loader: () => {
120632
120632
  {
120633
- return import('./javascript-729f34fa.js');
120633
+ return import('./javascript-41a8850e.js');
120634
120634
  }
120635
120635
  }
120636
120636
  });
@@ -120648,7 +120648,7 @@ registerLanguage({
120648
120648
  mimetypes: ["text/typescript"],
120649
120649
  loader: () => {
120650
120650
  {
120651
- return import('./typescript-b1cb128a.js');
120651
+ return import('./typescript-1b68bb5a.js');
120652
120652
  }
120653
120653
  }
120654
120654
  });
@@ -120769,7 +120769,7 @@ var lessDefaults = new LanguageServiceDefaultsImpl$3("less", optionsDefault$1, m
120769
120769
  monaco_editor_core_exports$3.languages.css = { cssDefaults, lessDefaults, scssDefaults };
120770
120770
  function getMode$3() {
120771
120771
  {
120772
- return import('./cssMode-40f96388.js');
120772
+ return import('./cssMode-17974b04.js');
120773
120773
  }
120774
120774
  }
120775
120775
  monaco_editor_core_exports$3.languages.onLanguage("less", () => {
@@ -120894,7 +120894,7 @@ monaco_editor_core_exports$2.languages.html = {
120894
120894
  };
120895
120895
  function getMode$2() {
120896
120896
  {
120897
- return import('./htmlMode-7e1bc03d.js');
120897
+ return import('./htmlMode-8fb4b96c.js');
120898
120898
  }
120899
120899
  }
120900
120900
  function registerHTMLLanguageService(languageId, options = optionsDefault, modeConfiguration = getConfigurationDefault(languageId)) {
@@ -120996,7 +120996,7 @@ var jsonDefaults = new LanguageServiceDefaultsImpl$1("json", diagnosticDefault,
120996
120996
  monaco_editor_core_exports$1.languages.json = { jsonDefaults };
120997
120997
  function getMode$1() {
120998
120998
  {
120999
- return import('./jsonMode-8bf91ede.js');
120999
+ return import('./jsonMode-95982e18.js');
121000
121000
  }
121001
121001
  }
121002
121002
  monaco_editor_core_exports$1.languages.register({
@@ -121265,7 +121265,7 @@ monaco_editor_core_exports.languages.typescript = {
121265
121265
  };
121266
121266
  function getMode() {
121267
121267
  {
121268
- return import('./tsMode-f1787a53.js');
121268
+ return import('./tsMode-6a09145b.js');
121269
121269
  }
121270
121270
  }
121271
121271
  monaco_editor_core_exports.languages.onLanguage("typescript", () => {
@@ -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.36
4
+ * v4.31.0-next.38
5
5
  */
6
- import { b as bootstrapLazy } from './index-756fae1a.js';
7
- export { s as setNonce } from './index-756fae1a.js';
8
- import { g as globalScripts } from './app-globals-b8dea988.js';
6
+ import { b as bootstrapLazy } from './index-368c6a65.js';
7
+ export { s as setNonce } from './index-368c6a65.js';
8
+ import { g as globalScripts } from './app-globals-a5f17ef9.js';
9
9
 
10
10
  const defineCustomElements = async (win, options) => {
11
11
  if (typeof window === 'undefined') return undefined;
@@ -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.36
4
+ * v4.31.0-next.38
5
5
  */
6
- import { F as isNotUndefined, D as Deferred, G as safeAsyncCall, H as devToolsAwareTimeout, J as safeCall, f as fieldsToProfileValues, i as isPredefinedProfile, b as isFeatureSetDefinition, m as main, L as LanguageDefaultsBase, d as fetchT9nStringsBundle, E as EditorProfile, U as Uri } from './language-defaults-base-54c5450e.js';
7
- import { g as getAssetPath } from './index-756fae1a.js';
6
+ import { F as isNotUndefined, D as Deferred, G as safeAsyncCall, H as devToolsAwareTimeout, J as safeCall, f as fieldsToProfileValues, i as isPredefinedProfile, b as isFeatureSetDefinition, m as main, L as LanguageDefaultsBase, d as fetchT9nStringsBundle, E as EditorProfile, U as Uri } from './language-defaults-base-b8c444af.js';
7
+ import { g as getAssetPath } from './index-368c6a65.js';
8
8
 
9
9
  // src/framework.ts
10
10
  function retrieveComponentMembers(component, isLit) {
@@ -586,7 +586,10 @@ var ComponentInternals = class {
586
586
  _getSetProxy(prototype, name2, type) {
587
587
  const component = this.component;
588
588
  const propType = getMemberType(component, name2);
589
- const descriptor = Object.getOwnPropertyDescriptor(prototype, name2);
589
+ let descriptor;
590
+ do {
591
+ descriptor = Object.getOwnPropertyDescriptor(prototype, name2);
592
+ } while (!descriptor && (prototype = Object.getPrototypeOf(prototype)));
590
593
  if (!descriptor) {
591
594
  return void 0;
592
595
  }
@@ -594,11 +597,11 @@ var ComponentInternals = class {
594
597
  const originalSet = descriptor.set;
595
598
  const isGetterAlreadyOverwritten = customAccessor in originalGet;
596
599
  const isSetterAlreadyOverwritten = customAccessor in originalSet;
597
- const shouldOverwriteGet = !isGetterAlreadyOverwritten;
598
- const shouldOverwriteSet = !isSetterAlreadyOverwritten;
599
- if (!shouldOverwriteGet && !shouldOverwriteSet) {
600
+ if (isGetterAlreadyOverwritten && isSetterAlreadyOverwritten) {
600
601
  return;
601
602
  }
603
+ const shouldOverwriteGet = !isGetterAlreadyOverwritten;
604
+ const shouldOverwriteSet = !isSetterAlreadyOverwritten;
602
605
  const finalGetter = shouldOverwriteGet ? function getter() {
603
606
  let value = originalGet.call(this);
604
607
  const component2 = elementToInstance.get(this);
@@ -620,7 +623,17 @@ var ComponentInternals = class {
620
623
  originalSet.call(this, rawNewValue);
621
624
  return;
622
625
  }
623
- let newValue = component2.manager.isLit ? rawNewValue : parsePropertyValue(rawNewValue, propType);
626
+ let newValue = component2.manager.isLit ? (
627
+ /*
628
+ * Cast `null` to `undefined`. Reasons:
629
+ * - component can declare properties simply using
630
+ * `@property() name?: string;` and get accurate typings,
631
+ * without being forced to use
632
+ * `@property() name?: string | Nil;`.
633
+ * - simplifies checks in the code and thus reduces bugs
634
+ */
635
+ rawNewValue ?? void 0
636
+ ) : parsePropertyValue(rawNewValue, propType);
624
637
  const internals = component2.manager.internals;
625
638
  if (newValue === oldValue) {
626
639
  originalSet.call(this, rawNewValue);
@@ -1269,7 +1282,7 @@ async function getSqlExprWorker(uri) {
1269
1282
  * @returns sql-expression mode module
1270
1283
  */
1271
1284
  async function getMode() {
1272
- return await import('./sql-expr-mode-eb602c14.js');
1285
+ return await import('./sql-expr-mode-c034d7e3.js');
1273
1286
  }
1274
1287
 
1275
1288
  const languageId = "arcgis-sql-expression";
@@ -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.36
4
+ * v4.31.0-next.38
5
5
  */
6
- import { g as editor, P as debounce, z as languages, Q as Emitter } from './language-defaults-base-54c5450e.js';
7
- import { s as sqlExprDefaults } from './sql-expr-defaults-3b31f1e6.js';
8
- import './index-756fae1a.js';
6
+ import { g as editor, P as debounce, z as languages, Q as Emitter } from './language-defaults-base-b8c444af.js';
7
+ import { s as sqlExprDefaults } from './sql-expr-defaults-a6190532.js';
8
+ import './index-368c6a65.js';
9
9
 
10
10
  /**
11
11
  * Manager to create our sql-expression worker and client proxy
@@ -1,9 +1,9 @@
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.36
4
+ * v4.31.0-next.38
5
5
  */
6
- import { N as typescriptDefaults, M as monaco_editor_core_star } from './language-defaults-base-54c5450e.js';
6
+ import { N as typescriptDefaults, M as monaco_editor_core_star } from './language-defaults-base-b8c444af.js';
7
7
 
8
8
  /*!-----------------------------------------------------------------------------
9
9
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,9 +1,9 @@
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.36
4
+ * v4.31.0-next.38
5
5
  */
6
- import { M as monaco_editor_core_star } from './language-defaults-base-54c5450e.js';
6
+ import { M as monaco_editor_core_star } from './language-defaults-base-b8c444af.js';
7
7
 
8
8
  /*!-----------------------------------------------------------------------------
9
9
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,6 +1,6 @@
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.36
4
+ * v4.31.0-next.38
5
5
  */
6
6
  module.exports = require('../cjs/loader.cjs.js');
@@ -1,6 +1,6 @@
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.36
4
+ * v4.31.0-next.38
5
5
  */
6
6
  module.exports = require('../cjs/loader.cjs.js');
@@ -1,6 +1,6 @@
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.36
4
+ * v4.31.0-next.38
5
5
  */
6
6
  export * from '../esm/loader.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.36
4
+ * v4.31.0-next.38
5
5
  */
6
6
  (function(){if("undefined"!==typeof window&&void 0!==window.Reflect&&void 0!==window.customElements){var a=HTMLElement;window.HTMLElement=function(){return Reflect.construct(a,[],this.constructor)};HTMLElement.prototype=a.prototype;HTMLElement.prototype.constructor=HTMLElement;Object.setPrototypeOf(HTMLElement,a)}})();
7
7
  export * from '../esm/loader.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcgis/coding-components",
3
- "version": "4.31.0-next.36",
3
+ "version": "4.31.0-next.38",
4
4
  "description": "Contains components for editing code in different languages. The currently supported languages are html, css, json, TypeScript, JavaScript, and Arcade.",
5
5
  "keywords": [
6
6
  "ArcGIS",
@@ -48,21 +48,21 @@
48
48
  "generate": "stencil generate"
49
49
  },
50
50
  "dependencies": {
51
- "@arcgis/arcade-languageservice": "4.31.0-next.36",
52
- "@arcgis/components-controllers": "4.31.0-next.36",
53
- "@arcgis/components-utils": "4.31.0-next.36",
54
- "@arcgis/languages-api-utils": "4.31.0-next.36",
51
+ "@arcgis/arcade-languageservice": "4.31.0-next.38",
52
+ "@arcgis/components-controllers": "4.31.0-next.38",
53
+ "@arcgis/components-utils": "4.31.0-next.38",
54
+ "@arcgis/languages-api-utils": "4.31.0-next.38",
55
55
  "@stencil/core": "4.18.3",
56
56
  "monaco-editor": "0.45.0",
57
57
  "vscode-languageserver-types": "^3.17.5"
58
58
  },
59
59
  "devDependencies": {
60
- "@arcgis/components-build-utils": "4.31.0-next.36",
61
- "@arcgis/components-plugins": "4.31.0-next.36",
60
+ "@arcgis/components-build-utils": "4.31.0-next.38",
61
+ "@arcgis/components-plugins": "4.31.0-next.38",
62
62
  "@arcgis/core": ">=4.31.0-next <4.32",
63
- "@arcgis/core-adapter": "4.31.0-next.36",
64
- "@arcgis/storybook-utils": "4.31.0-next.36",
65
- "@arcgis/typescript-config": "4.31.0-next.36",
63
+ "@arcgis/core-adapter": "4.31.0-next.38",
64
+ "@arcgis/storybook-utils": "4.31.0-next.38",
65
+ "@arcgis/typescript-config": "4.31.0-next.38",
66
66
  "@esri/calcite-components": "^2.10.1",
67
67
  "@stencil/angular-output-target": "0.8.4",
68
68
  "@stencil/react-output-target": "0.5.3",
@@ -102,5 +102,5 @@
102
102
  "@arcgis/core": ">=4.31.0-next <4.32",
103
103
  "@esri/calcite-components": "^2.10.1"
104
104
  },
105
- "gitHead": "cd99efe33d626aa781cbf98ca49fefd93d03dcad"
105
+ "gitHead": "7cdfab2b541fc5f75720a36644cd0d19604b5372"
106
106
  }
@@ -1,6 +0,0 @@
1
- /*!
2
- * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
- * See https://js.arcgis.com/4.31/esri/copyright.txt for details.
4
- * v4.31.0-next.36
5
- */
6
- import{F as t,D as i,G as s,H as e,J as o,f as n,i as r,b as c,m as h,L as a,d,E as u,U as f}from"./p-5d68f261.js";import{g as l}from"./p-ea90961f.js";var p,y=(t,i)=>t.manager.internals.members?.[i]?.[0],v=Symbol.for("controller");function g(t){p!==t&&(p=t,queueMicrotask((()=>{p===t&&(p=void 0)})))}function w(){return p}var b,m=[];function k(t){if(void 0===t)return void(m=[]);const i=m.indexOf(t);m=-1===i?[...m,t]:m.slice(0,i+1),queueMicrotask((()=>{m=[]}))}var L,j=async(t,i)=>{const s=M(t);if(void 0===s)return t;if(await s.ready,"function"==typeof i){const t=s.watchExports((s=>i(s,t)))}return s.exports},x=async t=>{const i=M(t);return await i.ready,i},M=t=>{const i=function(){const t=b;return b=void 0,t}();if(void 0!==i)return i;const s=w().manager.internals.resolveExports(t);return void 0!==s?s:(t=>"object"==typeof t&&null!==t&&(v in t||"hostConnected"in t||"hostDisconnected"in t||"hostUpdate"in t||"hostUpdated"in t))(t)?t:void 0},U={setter:!1,getter:!1,readOnly:!1},D=new WeakMap;L=v;var S=class{constructor(t){this._callbacks={hostConnected:[],hostDisconnected:[],hostLoad:[],hostLoaded:[],hostUpdate:[],hostUpdated:[],hostDestroy:[],hostLifecycle:[]},this._ready=new i,this._lifecycleCleanups=[],this.connectedCalled=!1,this.willLoadCalled=!1,this.didLoadCalled=!1,this[L]=!0,this.ready=this._ready.promise,this._exports=E(this),this._exportWatchers=new Set;const s=t??w();this.component=s,this.component.addController(this),k(this),void 0===this.component.manager||queueMicrotask((()=>this.catchUpLifecycle()))}catchUpLifecycle(){const{manager:t}=this.component;!t.connectedCalled||this.connectedCalled||this.triggerConnected(),!t.willLoadCalled||this.triggerLoad().then((()=>{!t.didLoadCalled||this.triggerLoaded()})).catch(console.error)}get exports(){return this._exports}set exports(t){const i=this._exports;i!==t&&(this._exports=t,this._exportWatchers.forEach(o),this.connectedCalled&&!1!==this.assignedProperty&&this.component.requestUpdate(this.assignedProperty,i)),this._ready.resolve(t)}setProvisionalExports(t){this._exports=E(t),this._exportWatchers.forEach(o)}watchExports(t){const i=()=>t(this._exports);return this._exportWatchers.add(i),()=>{this._exportWatchers.delete(i)}}get use(){return g(this.component),j}get useRef(){return g(this.component),x}get useRefSync(){return g(this.component),M}controllerRemoved(){this.component.el.isConnected&&this.triggerDisconnected(),this.triggerDestroy()}onConnected(t){this._callbacks.hostConnected.push(t)}onDisconnected(t){this._callbacks.hostDisconnected.push(t)}onLoad(t){this._callbacks.hostLoad.push(t)}onLoaded(t){this._callbacks.hostLoaded.push(t)}onUpdate(t){this._callbacks.hostUpdate.push(t)}onUpdated(t){this._callbacks.hostUpdated.push(t)}onDestroy(t){this._callbacks.hostDestroy.push(t)}onLifecycle(t){this._callbacks.hostLifecycle.push(t),this.connectedCalled&&this.component.el.isConnected&&this._callLifecycle(t)}triggerConnected(){const t=this;t.hostConnected&&o(t.hostConnected,t),this._callbacks.hostConnected.forEach(o),this.triggerLifecycle(),this.connectedCalled=!0}triggerDisconnected(){const t=this;t.hostDisconnected&&o(t.hostDisconnected,t),this._callbacks.hostDisconnected.forEach(o),this._lifecycleCleanups.forEach(o),this._lifecycleCleanups=[]}async triggerLoad(){if(this.willLoadCalled)return;this.willLoadCalled=!0;const t=this;t.hostLoad&&await s(t.hostLoad,t),this._callbacks.hostLoad.length>0&&await Promise.allSettled(this._callbacks.hostLoad.map(s)),this._ready.resolve(this._exports)}triggerLoaded(){if(this.didLoadCalled)return;const t=this;t.hostLoaded&&o(t.hostLoaded,t),this._callbacks.hostLoaded.forEach(o),this.didLoadCalled=!0}triggerUpdate(t){const i=this;i.hostUpdate&&o(i.hostUpdate,i,t),this._callbacks.hostUpdate.forEach(C,t)}triggerUpdated(t){const i=this;i.hostUpdated&&o(i.hostUpdated,i,t),this._callbacks.hostUpdated.forEach(C,t)}triggerDestroy(){const t=this;t.hostDestroy&&o(t.hostDestroy,t),this._callbacks.hostDestroy.forEach(o)}triggerLifecycle(){const t=this;t.hostLifecycle&&this._callLifecycle((()=>t.hostLifecycle())),this._callbacks.hostLifecycle.forEach(this._callLifecycle,this)}_callLifecycle(t){g(this.component);const i=o(t);(Array.isArray(i)?i:[i]).forEach((t=>{"function"==typeof t?this._lifecycleCleanups.push(t):"object"==typeof t&&"function"==typeof t.remove&&this._lifecycleCleanups.push(t.remove)}))}};function C(t){o(t,void 0,this)}var O=S;function E(t){if("object"!=typeof t&&"function"!=typeof t||null===t)return t;const i=new Proxy(t,{get(t,s,e){if(!P.has(s)||!(s in t)||t[s]!==i)return s in t||s in Promise.prototype||"symbol"==typeof s?"function"==typeof t?t[s]:Reflect.get(t,s,e):void 0},set:(t,i,s,e)=>Reflect.set(t,i,s,e)});return i}var P=new Set(["exports","_exports"]),_=void 0;function A(){Array.from(_?.entries()??[]).forEach((([t,{callbacks:i}])=>{const s=Object.keys(t);i.forEach((t=>t(s)))})),_=void 0}function T(t,i,s){var e;const n=i,r=t.manager.internals;(e=r.allWatchers)[n]??(e[n]=[]);const c=r.allWatchers[n],h=s,a=(t,i,s)=>o(h,null,t,i,s);return c.push(a),()=>{const t=c.indexOf(a);-1!==t&&c.splice(t,1)}}var q=class{constructor(t){this.enabledWatchers={},this.allWatchers={},this.enableReadonly=()=>{if(this.enableReadonly=void 0,!this.component.manager.isLit)return;const t=this.component.manager.internals;Object.entries(t.members).forEach((([i,[s]])=>{var e;2048&s&&((e=t.setters)[i]??(e[i]=[]),t.setters[i].push(t.readonlySetter))}))},this.trackedValue=R,this.keyTrackers=[],this.getters={},this.setters={},this.accessorGetter={},this.accessorSetter={},this.reactiveUtilsIntegrations=new Set,this._exports=new WeakMap,this.readonlySetter=(t,i,s)=>{if(U.readOnly)return t;throw new Error(`Cannot assign to read-only property "${s}" of ${this.component.el.tagName.toLowerCase()}. Trying to assign "${String(t)}"`)},this.component=t}firePropTrackers(t,i){const s=this.keyTrackers;this.trackedValue=R,this.keyTrackers=[],s.forEach((s=>s(t,i)))}getSetProxy(t){const i=this.component,s=i.constructor.prototype;if(this._getSetProxy(s,t,"class"),i.manager.isLit)return;const e=i.el.constructor.prototype;s!==e&&this._getSetProxy(e,t,"html")}_getSetProxy(t,i,s){const e=y(this.component,i),o=Object.getOwnPropertyDescriptor(t,i);if(!o)return;const n=o.get,r=o.set,c=!($ in n),h=!($ in r);if(!c&&!h)return;const a=c?function(){let t=n.call(this);const s=D.get(this);if(void 0===s)return t;const e=s.manager.internals;t=e.accessorGetter[i](t,i);const o=e.getters[i]??F;for(let s=0;s<o.length;s++)t=o[s](t,i);return t}:n,d=h?function(t){const s=n.call(this),o=D.get(this);if(void 0===o)return void r.call(this,t);let c=o.manager.isLit?t:function(t,i=8){return null==t||"object"==typeof t||"function"==typeof t?t:4&i?"false"!==t&&(""===t||!!t):2&i?Number.parseFloat(t):1&i?String(t):t}(t,e);const h=o.manager.internals;if(c===s)r.call(this,t);else{const t=U.setter?F:h.setters[i]??F;for(let e=0;e<t.length&&(c=t[e](c,s,i),c!==s);e++);c=h.accessorSetter[i](c,s,i),r.call(this,c),c!==s&&h.enabledWatchers[i]?.forEach((t=>t(c,s,i)))}h.keyTrackers.length>0&&h?.firePropTrackers(i,t)}:r;c&&(a[$]=!0),h&&(d[$]=!0),Object.defineProperty(t,i,{...o,get:a,set:d})}markExports(t,i){("object"==typeof i&&null!==i||"function"==typeof i)&&this._exports.set(i,t)}resolveExports(t){return"object"==typeof t&&null!==t||"function"==typeof t?this._exports.get(t):void 0}},F=[],$=Symbol(),R=Symbol(),I=(t,i)=>new W(t,i),W=class extends O{constructor(s,e){const o="addController"in s,n=new Set,r=s;if(r.addController=function(t){n.add(t),o&&!(v in t)&&s.el.isConnected&&t.hostConnected?.()},r.removeController=function(t){n.delete(t),t.controllerRemoved?.()},!o){const t=e??s.constructor.__forceUpdate;r.requestUpdate=()=>t(s)}super(s),this.internals=new q(this.component),this.destroyed=!1,this._updatePromise=new i,this._originalLifecycles={},this.isLit=o,this.component.manager=this,function(i,s){if(s)i.manager.internals.members=Object.fromEntries(Array.from(i.constructor.elementProperties,(([t,i])=>i.noAccessor?void 0:[t,[(i.readOnly?2048:0)|(i.state?32:i.type===Number?2:i.type===Boolean?4:1)]])).filter(t));else{const t=i.constructor,s=t.__registerControllers?.(i)??void 0;if(t.__registerControllers=void 0,"object"!=typeof s)throw new Error("Failed to retrieve component meta");i.manager.internals.members=Object.fromEntries(Object.entries(s).filter((([t,[i]])=>!!(63&i))))}}(s,o),this._controllers=n,this.exports=void 0,this.hasDestroy=N in this.component&&"function"==typeof this.component.destroy,this.hasDestroy&&T(s,N,(()=>this._setAutoDestroyTimeout())),this._bindLifecycleMethods();const c=this.internals;Object.keys(c.members).forEach((t=>{c.accessorGetter[t]=B,c.accessorSetter[t]=B,c.getSetProxy(t)})),o||Object.defineProperty(s,"updateComplete",{get:async()=>await this._updatePromise.promise}),queueMicrotask(c.enableReadonly),k(void 0),g(s),D.set(s.el,s),D.set(s,s)}_bindLifecycleMethods(){const t=this.component,i=this.isLit,s=t.el===t;this._originalLifecycles={connectedCallback:i||s?void 0:t.connectedCallback,disconnectedCallback:i||s?void 0:t.disconnectedCallback,componentWillLoad:i?void 0:t.componentWillLoad,componentDidLoad:i?void 0:t.componentDidLoad,componentWillUpdate:i?void 0:t.componentWillUpdate,componentDidUpdate:i?void 0:t.componentDidUpdate,destroy:t.destroy};const e=this._connectedCallback.bind(this),o=this._disconnectedCallback.bind(this),n=this._update.bind(this),r=this._updated.bind(this);i?t.constructor.prototype.addController.call(t,{hostConnected:e,hostDisconnected:o,hostUpdate:n,hostUpdated:r}):(t.connectedCallback=e,t.disconnectedCallback=o,t.componentWillLoad=this._load.bind(this),t.componentDidLoad=this._loaded.bind(this),t.componentWillUpdate=n,t.componentDidUpdate=r),this.hasDestroy&&(t.destroy=this.destroy.bind(this))}_connectedCallback(){if(this.destroyed){const t=this.component.el.tagName.toLowerCase();throw this.component.el.remove(),new Error(`The ${t} component has already been destroyed. It can not be used again. If you meant to disconnect and reconnect a component without automatic destroy, set the ${N} prop.`)}void 0!==this._autoDestroyTimeout&&clearTimeout(this._autoDestroyTimeout);const t=this.internals;t.enabledWatchers=t.allWatchers,A(),t.enableReadonly?.(),this._controllers.forEach(G),this._originalLifecycles.connectedCallback?.call(this.component)}_disconnectedCallback(){this.destroyed||(this._controllers.forEach(H),this._originalLifecycles.disconnectedCallback?.call(this.component),this.hasDestroy&&this._setAutoDestroyTimeout())}async _load(){const t=this.internals.reactiveUtilsIntegrations;if(t.size>0)for(const i of t)"triggerLoad"in i?await i.triggerLoad():await s(i.hostLoad,i);await Promise.allSettled(Array.from(this._controllers,J,t)),await(this._originalLifecycles.componentWillLoad?.call(this.component))}_loaded(){this._controllers.forEach(z),this._originalLifecycles.componentDidLoad?.call(this.component)}_update(){this._controllers.forEach(K,this.component.changedProperties),this._originalLifecycles.componentWillUpdate?.call(this.component)}_updated(){const t=this.component;if(this._controllers.forEach(Q,t.changedProperties),this._originalLifecycles.componentDidUpdate?.call(this.component),this.isLit)t.changedProperties=new Map;else{const t=this._updatePromise;this._updatePromise=new i,t.resolve(!0)}}async destroy(){if(!this.destroyed){if(this.component.el.isConnected){this.hasDestroy=!1;try{this.component.el.remove()}finally{this.hasDestroy=!0}}this._autoDestroyTimeout=void 0,this.destroyed=!0,this._controllers.forEach(X),this._controllers.clear(),await(this._originalLifecycles.destroy?.call(this.component))}}_setAutoDestroyTimeout(){this.component.el.isConnected||this.component.autoDestroyDisabled||(void 0!==this._autoDestroyTimeout&&clearTimeout(this._autoDestroyTimeout),this._autoDestroyTimeout=e((()=>{this.destroy().catch(console.error)}),V))}},N="autoDestroyDisabled",V=1e3,B=t=>t;function G(t){"triggerConnected"in t?t.triggerConnected():o(t.hostConnected,t)}function H(t){"triggerDisconnected"in t?t.triggerDisconnected():o(t.hostDisconnected,t)}async function J(t){this.has(t)||("triggerLoad"in t?await t.triggerLoad():await s(t.hostLoad,t))}function z(t){"triggerLoaded"in t?t.triggerLoaded():o(t.hostLoaded,t)}function K(t){"triggerUpdate"in t?t.triggerUpdate(this):o(t.hostUpdate,t,this)}function Q(t){"triggerUpdated"in t?t.triggerUpdated(this):o(t.hostUpdated,t,this)}function X(t){"triggerDestroy"in t?t.triggerDestroy():o(t.hostDestroy,t)}function Y(t,i,s){const e=t.manager.internals;return e.trackedValue!==R&&e.trackedValue!==s&&e.firePropTrackers(void 0,void 0),0===e.keyTrackers.length&&queueMicrotask((()=>e.firePropTrackers(void 0,void 0))),e.trackedValue=s,e.keyTrackers.push(((t,e)=>o(i,void 0,s===e?t:void 0))),s}function Z(t,i){const s=w();return Y(s,(e=>{const o=e,n=s.manager,r=s,c=r[o];if(null!=c&&c!==t&&"function"==typeof i.set&&(i.initialSet??1)){const s=i.set(c,t,o);if(s!==c)if(n.isLit)r[o]=s;else{let t=!0;n.onConnected((()=>{t&&(t=!0,function(){U.setter=!0;try{return void(r[o]=s)}finally{U.setter=!1}}())}))}}!function(t,i,s){var e,o;const n=s,r=t.manager.internals,c="function"==typeof n.get?n.get:void 0;c&&((e=r.getters)[i]??(e[i]=[]),r.getters[i].unshift(c));const h="ignore"===n.set?it:n.set;h&&((o=r.setters)[i]??(o[i]=[]),r.setters[i].unshift(h))}(s,o,i)}),t)}var tt,it=(t,i)=>i,st=t=>et(void 0,t),et=(tt=class extends S{constructor(t,i){super(t);const s=this.exports;try{g(this.component);const t=i(this.component,this),e=this.exports!==s;if(t instanceof Promise){e||this.setProvisionalExports(t);const i=t.then((t=>{this.exports=t,super.catchUpLifecycle()})).catch((t=>{this._ready.reject(t),console.error(t)}));this.onLoad((async()=>await i))}else e&&void 0===t||(this.exports=t),queueMicrotask((()=>super.catchUpLifecycle()))}catch(t){this._ready.reject(t),console.error(t)}}catchUpLifecycle(){}},(...t)=>{const i=m,s=new tt(...t),e=s.exports;k(i.at(-1));const n=s.component.manager.internals;var r;return n.markExports(s,e),s.watchExports((t=>n.markExports(s,t))),b!==(r=s)&&(b=r,queueMicrotask((()=>{b===r&&(b=void 0)}))),function(t,i,s){const e=Array.isArray(t)?t:[t];let n=e.length+1;const r=t=>{n-=1,void 0!==t&&(n=0),0===n&&i(t)};e.forEach((t=>function(t,i,s){const e=Object.keys(t),n=e.length;void 0===_&&queueMicrotask(A),_??(_=new Map);let r=_.get(t);return void 0===r&&(r={callbacks:[],keyCount:n},_.set(t,r)),r.keyCount!==n&&(r.callbacks.forEach((t=>t(e))),r.callbacks=[],r.keyCount=n),r.callbacks.push((e=>{const r=e[n];o(i,null,void 0===r?void 0:t[r]===s?r:void 0)})),s}(t,(i=>r(void 0===i?void 0:{key:i,host:t,isReactive:!1})),s)));const c=e.find((t=>"manager"in t&&"object"==typeof t.manager&&t.manager.component===t));return c&&Y(c,(t=>r(void 0===t?void 0:{key:t,host:c,isReactive:void 0!==y(c,t)})),s),s}([s.component,...i].reverse(),(t=>void 0===t?void 0:function(t,{host:i,key:s,isReactive:e},o){const n=i,r=n[s]!==o;n[s]!==t.exports&&!r&&o!==t.exports&&(n[s]=t.exports);if(i===t.component){if(e){const i=t.component.manager.internals;r&&i.markExports(t,n[s]),T(t.component,s,(s=>{s!==t.exports&&i.markExports(t,s)}))}t.assignedProperty=e?void 0:s}t.watchExports((()=>{if(n[s]===t.exports)return;const i=t.component.manager,e=i.internals.setters[s]?.includes(i.internals.readonlySetter);e?function(){U.readOnly=!0;try{return void(n[s]=t.exports)}finally{U.readOnly=!1}}():n[s]=t.exports}))}(s,t,e)),e)});const ot={en:{id:"field-calculation",variables:[{name:"$layer",type:"featureSet",description:"The layer being calculated."}]}};async function nt(){return await import("./p-236d12d3.js")}const rt=new class extends a{constructor(){super(...arguments),this._languageId="arcgis-sql-expression",this._languageOptions={},this._layerMap=new Map}updateFeatureLayerForModel(t,i){const s=this._getApiKey(t);this._layerMap.set(s,i)}setLanguageOptions(t){this._languageOptions=t}getFeatureLayerForModel(t){const i=this._getApiKey(t);return this._layerMap.get(i)}async setProfileForModel(t,i,s={locale:"en"}){r(i)&&(i=await async function(t,i="en"){if(!r(t))return;const s=await async function(t="en"){return await Promise.resolve(ot[t])}(i);if(!s)return;const e={variables:[],hiddenApiItems:t.hiddenApiItems?.map((t=>t.toLowerCase()))};return s.variables.forEach((i=>{if(t.disabledVariables?.includes(i.name))return;const s=t.definitions[i.name];if("featureSet"===i.type)return c(s)?e.variables.push({...i,type:i.type,definition:s}):void 0;throw Error(`sdkVariable type not supported (yet) type: ${i.type}`)})),e}(i,s.locale));const e=await d(s.locale,l("./assets/arcade-language/t9n"),"profile.t9n.");if(!e)throw new Error(`Failed to load the language bundle for ${s.locale}`);this.disposeForModel(t);const o=this._getApiKey(t),a=new u(i,e);this._profileMap.set(o,a);const f=(t=>{const{apiVersion:i,bundles:s,hiddenApiItems:e}=t.toEditorProfileDefinition(),o=t.variables[0];if(!o||"featureSet"!==o.type)throw Error("No variable found in the editor profile");const r=function(t){const{name:i}=t,s=t.getDescription(),{definition:e}=t.toProfileVariableDefinition(),o={label:i,detail:i,insertText:i,insertTextMode:h.exports.InsertTextMode.asIs,insertTextFormat:h.exports.InsertTextFormat.PlainText,kind:h.exports.CompletionItemKind.Field},r={name:i,description:s,type:"dictionary",properties:[],completion:o};if(!e||!("fields"in e))return r;const[c,a]=n(e.fields,s);return r.properties=c,o.documentation={kind:"markdown",value:a},r}(o);return{apiVersion:i,bundles:s,variables:[r],hiddenApiItems:e?.map((t=>t.toLowerCase()))}})(a);this.updateApiContextForModel(t,{locale:s.locale,profile:f});const p=i?.variables?.find((t=>"$layer"===t.name));p&&this.updateFeatureLayerForModel(t,p.definition)}async getApiLibrary(t){const i=f.parse(t),s=await async function(t){const i=await nt();return await i.getSqlExprWorker(t)}(i);return await s.getApiLibrary(this.getApiContextForModel(i))}};export{nt as a,Z as g,st as m,rt as s,I as u,T as w}