@arcgis/coding-components 4.30.0-next.40 → 4.30.0-next.41

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 (75) hide show
  1. package/dist/arcgis-coding-components/arcgis-coding-components.esm.js +2 -2
  2. package/dist/arcgis-coding-components/index.esm.js +2 -2
  3. package/dist/arcgis-coding-components/{p-5d7eed5c.js → p-1f57b2c8.js} +2 -2
  4. package/dist/arcgis-coding-components/{p-c49852a4.js → p-2656babc.js} +1 -1
  5. package/dist/arcgis-coding-components/{p-65b666c8.js → p-41c0f095.js} +1 -1
  6. package/dist/arcgis-coding-components/{p-8eaff8ec.js → p-4e83c7d9.js} +2 -2
  7. package/dist/arcgis-coding-components/p-55dffc4c.entry.js +6 -0
  8. package/dist/arcgis-coding-components/{p-23558e30.js → p-68167d79.js} +3 -3
  9. package/dist/arcgis-coding-components/{p-922df385.js → p-6e9ee8e1.js} +2 -2
  10. package/dist/arcgis-coding-components/{p-bf1ba8d4.js → p-7600673f.js} +2 -2
  11. package/dist/arcgis-coding-components/{p-9735b66c.js → p-8741dfa4.js} +2 -2
  12. package/dist/arcgis-coding-components/{p-749ed871.js → p-9acb23cc.js} +2 -2
  13. package/dist/arcgis-coding-components/{p-ef6760f3.js → p-b3a3ab63.js} +10 -10
  14. package/dist/arcgis-coding-components/{p-1653b162.js → p-ea30709a.js} +2 -2
  15. package/dist/cjs/{arcade-defaults-11bd4fd0.js → arcade-defaults-acc3b5ac.js} +28 -23
  16. package/dist/cjs/{arcade-mode-88678d5f.js → arcade-mode-af4f0fdf.js} +3 -3
  17. package/dist/cjs/arcgis-arcade-api_6.cjs.entry.js +9 -6
  18. package/dist/cjs/arcgis-coding-components.cjs.js +2 -2
  19. package/dist/cjs/{css-e76d50a6.js → css-c1dec897.js} +1 -1
  20. package/dist/cjs/{cssMode-c03af136.js → cssMode-8a51d0ec.js} +3 -3
  21. package/dist/cjs/{html-4f60da43.js → html-a26829c5.js} +3 -3
  22. package/dist/cjs/{htmlMode-92c12a89.js → htmlMode-d59290f4.js} +3 -3
  23. package/dist/cjs/{index-ddb7b8ae.js → index-f070b08e.js} +1 -1
  24. package/dist/cjs/index.cjs.js +3 -3
  25. package/dist/cjs/{javascript-81f722d2.js → javascript-836a3c78.js} +4 -4
  26. package/dist/cjs/{jsonMode-fc58459d.js → jsonMode-2600ca0a.js} +3 -3
  27. package/dist/cjs/loader.cjs.js +2 -2
  28. package/dist/cjs/{tsMode-9cfa1c84.js → tsMode-b10eb9a7.js} +3 -3
  29. package/dist/cjs/{typescript-96de25d8.js → typescript-07dfd341.js} +3 -3
  30. package/dist/components/arcade-api.js +1 -1
  31. package/dist/components/arcade-contribution.js +1 -1
  32. package/dist/components/arcade-defaults.js +19 -14
  33. package/dist/components/arcade-mode.js +1 -1
  34. package/dist/components/arcade-results.js +1 -1
  35. package/dist/components/arcade-suggestions.js +1 -1
  36. package/dist/components/arcade-variables.js +1 -1
  37. package/dist/components/arcgis-arcade-api.js +1 -1
  38. package/dist/components/arcgis-arcade-editor.js +1 -1
  39. package/dist/components/arcgis-arcade-results.js +1 -1
  40. package/dist/components/arcgis-arcade-suggestions.js +1 -1
  41. package/dist/components/arcgis-arcade-variables.js +1 -1
  42. package/dist/components/arcgis-assets.d.ts +1 -1
  43. package/dist/components/arcgis-assets.js +1 -1
  44. package/dist/components/arcgis-code-editor.js +1 -1
  45. package/dist/components/chunk-HXHHCYA6.js +1 -1
  46. package/dist/components/code-editor.js +6 -3
  47. package/dist/components/fields.js +1 -1
  48. package/dist/components/index.js +1 -1
  49. package/dist/components/index2.js +2 -2
  50. package/dist/components/markdown.js +1 -1
  51. package/dist/components/utilities.js +1 -1
  52. package/dist/esm/{arcade-defaults-690c65b0.js → arcade-defaults-1f9c1af0.js} +28 -23
  53. package/dist/esm/{arcade-mode-88a880fd.js → arcade-mode-c0bd49f2.js} +3 -3
  54. package/dist/esm/arcgis-arcade-api_6.entry.js +9 -6
  55. package/dist/esm/arcgis-coding-components.js +3 -3
  56. package/dist/esm/{css-ba86d792.js → css-1e20a73b.js} +1 -1
  57. package/dist/esm/{cssMode-cc7d2728.js → cssMode-31dc7377.js} +3 -3
  58. package/dist/esm/{html-664c0f74.js → html-f8a0ecfe.js} +3 -3
  59. package/dist/esm/{htmlMode-34f81854.js → htmlMode-71570d38.js} +3 -3
  60. package/dist/esm/{index-33ae02ee.js → index-0030b0f4.js} +1 -1
  61. package/dist/esm/index.js +3 -3
  62. package/dist/esm/{javascript-1e3278d9.js → javascript-bd547f0f.js} +4 -4
  63. package/dist/esm/{jsonMode-aa8a70d8.js → jsonMode-fc11c3fd.js} +3 -3
  64. package/dist/esm/loader.js +3 -3
  65. package/dist/esm/{tsMode-3100d961.js → tsMode-201c99e8.js} +3 -3
  66. package/dist/esm/{typescript-d8d38af2.js → typescript-51b03c89.js} +3 -3
  67. package/dist/loader/cdn.js +1 -1
  68. package/dist/loader/index.cjs.js +1 -1
  69. package/dist/loader/index.es2017.js +1 -1
  70. package/dist/loader/index.js +1 -1
  71. package/dist/types/components/code-editor/code-editor.d.ts +8 -0
  72. package/dist/types/components.d.ts +13 -2
  73. package/dist/types/utils/profile/types.d.ts +1 -1
  74. package/package.json +9 -9
  75. package/dist/arcgis-coding-components/p-8ff03bd1.entry.js +0 -6
@@ -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.30/esri/copyright.txt for details.
4
- * v4.30.0-next.40
4
+ * v4.30.0-next.41
5
5
  */
6
- import{y as e}from"./p-ef6760f3.js";import"./p-65b666c8.js";
6
+ import{y as e}from"./p-b3a3ab63.js";import"./p-41c0f095.js";
7
7
  /*!-----------------------------------------------------------------------------
8
8
  * Copyright (c) Microsoft Corporation. All rights reserved.
9
9
  * Version: 0.45.0(5e5af013f8d295555a7210df0d5f2cea0bf5dd56)
@@ -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.30/esri/copyright.txt for details.
4
- * v4.30.0-next.40
4
+ * v4.30.0-next.41
5
5
  */
6
6
  'use strict';
7
7
 
8
- const index = require('./index-ddb7b8ae.js');
8
+ const index = require('./index-f070b08e.js');
9
9
 
10
10
  function _interopNamespace(e) {
11
11
  if (e && e.__esModule) return e;
@@ -120544,7 +120544,7 @@ registerLanguage({
120544
120544
  mimetypes: ["text/css"],
120545
120545
  loader: () => {
120546
120546
  {
120547
- return Promise.resolve().then(function () { return require('./css-e76d50a6.js'); });
120547
+ return Promise.resolve().then(function () { return require('./css-c1dec897.js'); });
120548
120548
  }
120549
120549
  }
120550
120550
  });
@@ -120562,7 +120562,7 @@ registerLanguage({
120562
120562
  mimetypes: ["text/html", "text/x-jshtm", "text/template", "text/ng-template"],
120563
120563
  loader: () => {
120564
120564
  {
120565
- return Promise.resolve().then(function () { return require('./html-4f60da43.js'); });
120565
+ return Promise.resolve().then(function () { return require('./html-a26829c5.js'); });
120566
120566
  }
120567
120567
  }
120568
120568
  });
@@ -120582,7 +120582,7 @@ registerLanguage({
120582
120582
  mimetypes: ["text/javascript"],
120583
120583
  loader: () => {
120584
120584
  {
120585
- return Promise.resolve().then(function () { return require('./javascript-81f722d2.js'); });
120585
+ return Promise.resolve().then(function () { return require('./javascript-836a3c78.js'); });
120586
120586
  }
120587
120587
  }
120588
120588
  });
@@ -120600,7 +120600,7 @@ registerLanguage({
120600
120600
  mimetypes: ["text/typescript"],
120601
120601
  loader: () => {
120602
120602
  {
120603
- return Promise.resolve().then(function () { return require('./typescript-96de25d8.js'); });
120603
+ return Promise.resolve().then(function () { return require('./typescript-07dfd341.js'); });
120604
120604
  }
120605
120605
  }
120606
120606
  });
@@ -120721,7 +120721,7 @@ var lessDefaults = new LanguageServiceDefaultsImpl$3("less", optionsDefault$1, m
120721
120721
  monaco_editor_core_exports$3.languages.css = { cssDefaults, lessDefaults, scssDefaults };
120722
120722
  function getMode$3() {
120723
120723
  {
120724
- return Promise.resolve().then(function () { return require('./cssMode-c03af136.js'); });
120724
+ return Promise.resolve().then(function () { return require('./cssMode-8a51d0ec.js'); });
120725
120725
  }
120726
120726
  }
120727
120727
  monaco_editor_core_exports$3.languages.onLanguage("less", () => {
@@ -120846,7 +120846,7 @@ monaco_editor_core_exports$2.languages.html = {
120846
120846
  };
120847
120847
  function getMode$2() {
120848
120848
  {
120849
- return Promise.resolve().then(function () { return require('./htmlMode-92c12a89.js'); });
120849
+ return Promise.resolve().then(function () { return require('./htmlMode-d59290f4.js'); });
120850
120850
  }
120851
120851
  }
120852
120852
  function registerHTMLLanguageService(languageId, options = optionsDefault, modeConfiguration = getConfigurationDefault(languageId)) {
@@ -120948,7 +120948,7 @@ var jsonDefaults = new LanguageServiceDefaultsImpl$1("json", diagnosticDefault,
120948
120948
  monaco_editor_core_exports$1.languages.json = { jsonDefaults };
120949
120949
  function getMode$1() {
120950
120950
  {
120951
- return Promise.resolve().then(function () { return require('./jsonMode-fc58459d.js'); });
120951
+ return Promise.resolve().then(function () { return require('./jsonMode-2600ca0a.js'); });
120952
120952
  }
120953
120953
  }
120954
120954
  monaco_editor_core_exports$1.languages.register({
@@ -121217,7 +121217,7 @@ monaco_editor_core_exports.languages.typescript = {
121217
121217
  };
121218
121218
  function getMode() {
121219
121219
  {
121220
- return Promise.resolve().then(function () { return require('./tsMode-9cfa1c84.js'); });
121220
+ return Promise.resolve().then(function () { return require('./tsMode-b10eb9a7.js'); });
121221
121221
  }
121222
121222
  }
121223
121223
  monaco_editor_core_exports.languages.onLanguage("typescript", () => {
@@ -169185,22 +169185,27 @@ async function serviceMetaData(url) {
169185
169185
  tables: response.data?.tables ?? [],
169186
169186
  };
169187
169187
  const queryCapability = url.endsWith("MapServer/layers") ? "data" : "query";
169188
- const layers = filterFeatureLayerInfos(data.layers, queryCapability);
169189
- const tables = filterFeatureLayerInfos(data.tables, queryCapability);
169188
+ const layers = getSupportedLayerInfos(data.layers, queryCapability);
169189
+ const tables = getSupportedLayerInfos(data.tables, queryCapability);
169190
169190
  return { layers, tables };
169191
169191
  }
169192
- function filterFeatureLayerInfos(layers, queryCapability) {
169192
+ function getSupportedLayerInfos(layers, queryCapability) {
169193
169193
  return layers.filter((layer) => {
169194
- if (layer.type !== "Feature Layer" && layer.type !== "Table") {
169195
- return false;
169194
+ switch (layer.type) {
169195
+ case "Feature Layer":
169196
+ case "Oriented Imagery Layer":
169197
+ case "Table": {
169198
+ const capabilities = layer.capabilities
169199
+ ? layer.capabilities
169200
+ .toLowerCase()
169201
+ .split(",")
169202
+ .map((value) => value.trim())
169203
+ : [];
169204
+ return capabilities.includes(queryCapability);
169205
+ }
169206
+ default:
169207
+ return false;
169196
169208
  }
169197
- const capabilities = layer.capabilities
169198
- ? layer.capabilities
169199
- .toLowerCase()
169200
- .split(",")
169201
- .map((value) => value.trim())
169202
- : [];
169203
- return capabilities.includes(queryCapability);
169204
169209
  });
169205
169210
  }
169206
169211
  //#endregion
@@ -169467,7 +169472,7 @@ function createFilterExpression(filterWord) {
169467
169472
  return new RegExp(sanitizedWord, "i");
169468
169473
  }
169469
169474
  function setValuesInString(message, values = {}) {
169470
- return (message ?? "").replace(/\{(.*?)\}/gu, (match, valueName) => values[valueName] ?? match);
169475
+ return (message ?? "").replace(/\{(?<valueName>.*?)\}/gu, (match, valueName) => values[valueName] ?? match);
169471
169476
  }
169472
169477
  function addLTRMark(value) {
169473
169478
  return `\u200E${value ?? ""}\u200E`;
@@ -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.30/esri/copyright.txt for details.
4
- * v4.30.0-next.40
4
+ * v4.30.0-next.41
5
5
  */
6
6
  'use strict';
7
7
 
8
- const arcadeDefaults = require('./arcade-defaults-11bd4fd0.js');
9
- require('./index-ddb7b8ae.js');
8
+ const arcadeDefaults = require('./arcade-defaults-acc3b5ac.js');
9
+ require('./index-f070b08e.js');
10
10
 
11
11
  var j={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"},Fe=["++","--"],Qe=["-","+","!","~"],Ze=["=","/=","*=","%=","+=","-="],Xe=["||","&&"],Lt=["|","&",">>","<<",">>>","^","==","!=","<","<=",">",">=","+","-","*","/","%"];var U=[[],[],[]];Fe.forEach(t=>U[t.length-1]?.push(t));Qe.forEach(t=>U[t.length-1]?.push(t));Xe.forEach(t=>U[t.length-1]?.push(t));Ze.forEach(t=>U[t.length-1]?.push(t));Lt.forEach(t=>U[t.length-1]?.push(t));var ht=Object.values(f),dt=Object.values(j);dt.map(t=>({label:t,kind:arcadeDefaults.main.CompletionItemKind.Constant}));ht.map(t=>({label:t,kind:arcadeDefaults.main.CompletionItemKind.Keyword}));
12
12
 
@@ -1,14 +1,14 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  * See https://js.arcgis.com/4.30/esri/copyright.txt for details.
4
- * v4.30.0-next.40
4
+ * v4.30.0-next.41
5
5
  */
6
6
  'use strict';
7
7
 
8
8
  Object.defineProperty(exports, '__esModule', { value: true });
9
9
 
10
- const index = require('./index-ddb7b8ae.js');
11
- const arcadeDefaults = require('./arcade-defaults-11bd4fd0.js');
10
+ const index = require('./index-f070b08e.js');
11
+ const arcadeDefaults = require('./arcade-defaults-acc3b5ac.js');
12
12
 
13
13
  async function colorizeCode(code) {
14
14
  return await arcadeDefaults.editor.colorize(code, "arcade", { tabSize: 2 });
@@ -4536,7 +4536,7 @@ async function getArcadeWorker(uri) {
4536
4536
  * @returns arcade mode module
4537
4537
  */
4538
4538
  async function getMode() {
4539
- return await Promise.resolve().then(function () { return require('./arcade-mode-88678d5f.js'); });
4539
+ return await Promise.resolve().then(function () { return require('./arcade-mode-af4f0fdf.js'); });
4540
4540
  }
4541
4541
  // Register the language in Monaco
4542
4542
  arcadeDefaults.languages.register({
@@ -5766,6 +5766,7 @@ const ArcgisCodeEditor = class {
5766
5766
  constructor(hostRef) {
5767
5767
  index.registerInstance(this, hostRef);
5768
5768
  this.arcgisValueChange = index.createEvent(this, "arcgisValueChange", 3);
5769
+ this.arcgisSelectionChange = index.createEvent(this, "arcgisSelectionChange", 3);
5769
5770
  this._componentReadyDefer = new arcadeDefaults.Deferred();
5770
5771
  this._disposables = [];
5771
5772
  this.value = undefined;
@@ -5903,14 +5904,16 @@ const ArcgisCodeEditor = class {
5903
5904
  this._disposables.push(this._editorInstance);
5904
5905
  // Set the value now to trigger a diagnostic again
5905
5906
  model.setValue(this.value ?? "");
5906
- // Now we can set are component as ready
5907
+ // Now we indicate that the component is ready
5907
5908
  this._componentReadyDefer.resolve();
5908
5909
  this._editorInstance.updateOptions(EditorOptionsDefaults);
5909
- // Listen to the Monaco Editor content change event and propagate
5910
5910
  this._editorInstance.onDidChangeModelContent(() => {
5911
5911
  const script = this._editorInstance?.getValue() ?? "";
5912
5912
  this.arcgisValueChange.emit(script);
5913
5913
  });
5914
+ this._editorInstance.onDidChangeCursorSelection((e) => {
5915
+ this.arcgisSelectionChange.emit({ selection: e.selection, model: this._editorInstance?.getModel() });
5916
+ });
5914
5917
  // Detect if the host element or its ancestors got a theme attribute mutation
5915
5918
  this._themeObserver = arcadeDefaults.observeAncestorsMutation(this._hostElt, ["class"], () => this.updateTheme());
5916
5919
  // Update the theme of the Monaco Editor
@@ -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.30/esri/copyright.txt for details.
4
- * v4.30.0-next.40
4
+ * v4.30.0-next.41
5
5
  */
6
6
  'use strict';
7
7
 
8
8
  Object.defineProperty(exports, '__esModule', { value: true });
9
9
 
10
- const index = require('./index-ddb7b8ae.js');
10
+ const index = require('./index-f070b08e.js');
11
11
 
12
12
  /*
13
13
  Stencil Client Patch Browser v4.9.0 | MIT Licensed | https://stenciljs.com
@@ -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.30/esri/copyright.txt for details.
4
- * v4.30.0-next.40
4
+ * v4.30.0-next.41
5
5
  */
6
6
  'use strict';
7
7
 
@@ -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.30/esri/copyright.txt for details.
4
- * v4.30.0-next.40
4
+ * v4.30.0-next.41
5
5
  */
6
6
  'use strict';
7
7
 
8
- const arcadeDefaults = require('./arcade-defaults-11bd4fd0.js');
9
- require('./index-ddb7b8ae.js');
8
+ const arcadeDefaults = require('./arcade-defaults-acc3b5ac.js');
9
+ require('./index-f070b08e.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.30/esri/copyright.txt for details.
4
- * v4.30.0-next.40
4
+ * v4.30.0-next.41
5
5
  */
6
6
  'use strict';
7
7
 
8
- const arcadeDefaults = require('./arcade-defaults-11bd4fd0.js');
9
- require('./index-ddb7b8ae.js');
8
+ const arcadeDefaults = require('./arcade-defaults-acc3b5ac.js');
9
+ require('./index-f070b08e.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.30/esri/copyright.txt for details.
4
- * v4.30.0-next.40
4
+ * v4.30.0-next.41
5
5
  */
6
6
  'use strict';
7
7
 
8
- const arcadeDefaults = require('./arcade-defaults-11bd4fd0.js');
9
- require('./index-ddb7b8ae.js');
8
+ const arcadeDefaults = require('./arcade-defaults-acc3b5ac.js');
9
+ require('./index-f070b08e.js');
10
10
 
11
11
  /*!-----------------------------------------------------------------------------
12
12
  * 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.30/esri/copyright.txt for details.
4
- * v4.30.0-next.40
4
+ * v4.30.0-next.41
5
5
  */
6
6
  'use strict';
7
7
 
@@ -1,14 +1,14 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  * See https://js.arcgis.com/4.30/esri/copyright.txt for details.
4
- * v4.30.0-next.40
4
+ * v4.30.0-next.41
5
5
  */
6
6
  'use strict';
7
7
 
8
8
  Object.defineProperty(exports, '__esModule', { value: true });
9
9
 
10
- const arcadeDefaults = require('./arcade-defaults-11bd4fd0.js');
11
- require('./index-ddb7b8ae.js');
10
+ const arcadeDefaults = require('./arcade-defaults-acc3b5ac.js');
11
+ require('./index-f070b08e.js');
12
12
 
13
13
 
14
14
 
@@ -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.30/esri/copyright.txt for details.
4
- * v4.30.0-next.40
4
+ * v4.30.0-next.41
5
5
  */
6
6
  'use strict';
7
7
 
8
- const typescript = require('./typescript-96de25d8.js');
9
- require('./arcade-defaults-11bd4fd0.js');
10
- require('./index-ddb7b8ae.js');
8
+ const typescript = require('./typescript-07dfd341.js');
9
+ require('./arcade-defaults-acc3b5ac.js');
10
+ require('./index-f070b08e.js');
11
11
 
12
12
  /*!-----------------------------------------------------------------------------
13
13
  * 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.30/esri/copyright.txt for details.
4
- * v4.30.0-next.40
4
+ * v4.30.0-next.41
5
5
  */
6
6
  'use strict';
7
7
 
8
- const arcadeDefaults = require('./arcade-defaults-11bd4fd0.js');
9
- require('./index-ddb7b8ae.js');
8
+ const arcadeDefaults = require('./arcade-defaults-acc3b5ac.js');
9
+ require('./index-f070b08e.js');
10
10
 
11
11
  /*!-----------------------------------------------------------------------------
12
12
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -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.30/esri/copyright.txt for details.
4
- * v4.30.0-next.40
4
+ * v4.30.0-next.41
5
5
  */
6
6
  'use strict';
7
7
 
8
8
  Object.defineProperty(exports, '__esModule', { value: true });
9
9
 
10
- const index = require('./index-ddb7b8ae.js');
10
+ const index = require('./index-f070b08e.js');
11
11
 
12
12
  const defineCustomElements = (win, options) => {
13
13
  if (typeof window === 'undefined') return undefined;
@@ -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.30/esri/copyright.txt for details.
4
- * v4.30.0-next.40
4
+ * v4.30.0-next.41
5
5
  */
6
6
  'use strict';
7
7
 
8
- const arcadeDefaults = require('./arcade-defaults-11bd4fd0.js');
9
- require('./index-ddb7b8ae.js');
8
+ const arcadeDefaults = require('./arcade-defaults-acc3b5ac.js');
9
+ require('./index-f070b08e.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.30/esri/copyright.txt for details.
4
- * v4.30.0-next.40
4
+ * v4.30.0-next.41
5
5
  */
6
6
  'use strict';
7
7
 
8
- const arcadeDefaults = require('./arcade-defaults-11bd4fd0.js');
9
- require('./index-ddb7b8ae.js');
8
+ const arcadeDefaults = require('./arcade-defaults-acc3b5ac.js');
9
+ require('./index-f070b08e.js');
10
10
 
11
11
  /*!-----------------------------------------------------------------------------
12
12
  * 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.30/esri/copyright.txt for details.
4
- * v4.30.0-next.40
4
+ * v4.30.0-next.41
5
5
  */
6
6
  import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
7
7
  import { g as generateColorizeStyles, o as onColorizeThemeChanged, c as convertMarkdownString, a 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.30/esri/copyright.txt for details.
4
- * v4.30.0-next.40
4
+ * v4.30.0-next.41
5
5
  */
6
6
  import { editor, languages } from 'monaco-editor';
7
7
  import { b as arcadeDefaults } 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.30/esri/copyright.txt for details.
4
- * v4.30.0-next.40
4
+ * v4.30.0-next.41
5
5
  */
6
6
  import { Emitter, Uri } from 'monaco-editor';
7
7
  import { InsertTextMode, InsertTextFormat, CompletionItemKind } from 'vscode-languageserver-types';
@@ -174,22 +174,27 @@ async function serviceMetaData(url) {
174
174
  tables: response.data?.tables ?? [],
175
175
  };
176
176
  const queryCapability = url.endsWith("MapServer/layers") ? "data" : "query";
177
- const layers = filterFeatureLayerInfos(data.layers, queryCapability);
178
- const tables = filterFeatureLayerInfos(data.tables, queryCapability);
177
+ const layers = getSupportedLayerInfos(data.layers, queryCapability);
178
+ const tables = getSupportedLayerInfos(data.tables, queryCapability);
179
179
  return { layers, tables };
180
180
  }
181
- function filterFeatureLayerInfos(layers, queryCapability) {
181
+ function getSupportedLayerInfos(layers, queryCapability) {
182
182
  return layers.filter((layer) => {
183
- if (layer.type !== "Feature Layer" && layer.type !== "Table") {
184
- return false;
185
- }
186
- const capabilities = layer.capabilities
187
- ? layer.capabilities
188
- .toLowerCase()
189
- .split(",")
190
- .map((value) => value.trim())
191
- : [];
192
- return capabilities.includes(queryCapability);
183
+ switch (layer.type) {
184
+ case "Feature Layer":
185
+ case "Oriented Imagery Layer":
186
+ case "Table": {
187
+ const capabilities = layer.capabilities
188
+ ? layer.capabilities
189
+ .toLowerCase()
190
+ .split(",")
191
+ .map((value) => value.trim())
192
+ : [];
193
+ return capabilities.includes(queryCapability);
194
+ }
195
+ default:
196
+ return false;
197
+ }
193
198
  });
194
199
  }
195
200
  //#endregion
@@ -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.30/esri/copyright.txt for details.
4
- * v4.30.0-next.40
4
+ * v4.30.0-next.41
5
5
  */
6
6
  import { editor, MarkerSeverity, Range, languages, Emitter } from 'monaco-editor';
7
7
  import { CompletionItemKind, DiagnosticSeverity, InsertTextFormat } 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.30/esri/copyright.txt for details.
4
- * v4.30.0-next.40
4
+ * v4.30.0-next.41
5
5
  */
6
6
  import { proxyCustomElement, HTMLElement, createEvent, h, Fragment, Host } from '@stencil/core/internal/client';
7
7
  import { t as importArcade, s as setValuesInString, u as quoteString } 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.30/esri/copyright.txt for details.
4
- * v4.30.0-next.40
4
+ * v4.30.0-next.41
5
5
  */
6
6
  import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
7
7
  import { g as generateColorizeStyles, o as onColorizeThemeChanged, c as convertMarkdownString, b 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.30/esri/copyright.txt for details.
4
- * v4.30.0-next.40
4
+ * v4.30.0-next.41
5
5
  */
6
6
  import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
7
7
  import { u as useControllerManager, a as useT9n } from './chunk-HXHHCYA6.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.30/esri/copyright.txt for details.
4
- * v4.30.0-next.40
4
+ * v4.30.0-next.41
5
5
  */
6
6
  import { A as ArcgisArcadeApi$1, d as defineCustomElement$1 } from './arcade-api.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.30/esri/copyright.txt for details.
4
- * v4.30.0-next.40
4
+ * v4.30.0-next.41
5
5
  */
6
6
  import { proxyCustomElement, HTMLElement, createEvent, 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.30/esri/copyright.txt for details.
4
- * v4.30.0-next.40
4
+ * v4.30.0-next.41
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.30/esri/copyright.txt for details.
4
- * v4.30.0-next.40
4
+ * v4.30.0-next.41
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.30/esri/copyright.txt for details.
4
- * v4.30.0-next.40
4
+ * v4.30.0-next.41
5
5
  */
6
6
  import { A as ArcgisArcadeVariables$1, d as defineCustomElement$1 } from './arcade-variables.js';
7
7
 
@@ -2,7 +2,7 @@
2
2
  /*!
3
3
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
4
4
  * See https://js.arcgis.com/4.30/esri/copyright.txt for details.
5
- * v4.30.0-next.40
5
+ * v4.30.0-next.41
6
6
  */
7
7
  /**
8
8
  * Get the base path to where the package assets can be found.
@@ -2,7 +2,7 @@
2
2
  /*!
3
3
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
4
4
  * See https://js.arcgis.com/4.30/esri/copyright.txt for details.
5
- * v4.30.0-next.40
5
+ * v4.30.0-next.41
6
6
  */
7
7
  let resourceUrl = "https://js.arcgis.com/coding-components/next/";
8
8
  export const getArcgisAssetPath = (path) => {
@@ -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.30/esri/copyright.txt for details.
4
- * v4.30.0-next.40
4
+ * v4.30.0-next.41
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.30/esri/copyright.txt for details.
4
- * v4.30.0-next.40
4
+ * v4.30.0-next.41
5
5
  */
6
6
  import { forceUpdate } from '@stencil/core/internal/client';
7
7
  import { l as importCoreAccessor, m as importCoreAccessorSupportDecorators } from './index2.js';