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

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-9735b66c.js → p-107b9204.js} +2 -2
  4. package/dist/arcgis-coding-components/{p-65b666c8.js → p-3612b921.js} +1 -1
  5. package/dist/arcgis-coding-components/{p-c49852a4.js → p-3ee97e01.js} +1 -1
  6. package/dist/arcgis-coding-components/{p-23558e30.js → p-4aede4b7.js} +2 -2
  7. package/dist/arcgis-coding-components/{p-922df385.js → p-5173f39d.js} +2 -2
  8. package/dist/arcgis-coding-components/{p-ef6760f3.js → p-52d80b8e.js} +10 -10
  9. package/dist/arcgis-coding-components/{p-5d7eed5c.js → p-a67a7f14.js} +2 -2
  10. package/dist/arcgis-coding-components/{p-749ed871.js → p-b01fa87e.js} +2 -2
  11. package/dist/arcgis-coding-components/{p-8eaff8ec.js → p-b0ca1b58.js} +2 -2
  12. package/dist/arcgis-coding-components/p-c1dda3be.entry.js +6 -0
  13. package/dist/arcgis-coding-components/{p-bf1ba8d4.js → p-edcaae84.js} +2 -2
  14. package/dist/arcgis-coding-components/{p-1653b162.js → p-f2ccc4ba.js} +2 -2
  15. package/dist/cjs/{arcade-defaults-11bd4fd0.js → arcade-defaults-954c1b6f.js} +28 -23
  16. package/dist/cjs/{arcade-mode-88678d5f.js → arcade-mode-61441525.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-bcb029eb.js} +1 -1
  20. package/dist/cjs/{cssMode-c03af136.js → cssMode-87167845.js} +3 -3
  21. package/dist/cjs/{html-4f60da43.js → html-1c24c3f2.js} +3 -3
  22. package/dist/cjs/{htmlMode-92c12a89.js → htmlMode-3df14a7a.js} +3 -3
  23. package/dist/cjs/{index-ddb7b8ae.js → index-4a318764.js} +1 -1
  24. package/dist/cjs/index.cjs.js +3 -3
  25. package/dist/cjs/{javascript-81f722d2.js → javascript-03270bbd.js} +4 -4
  26. package/dist/cjs/{jsonMode-fc58459d.js → jsonMode-b3d3736e.js} +3 -3
  27. package/dist/cjs/loader.cjs.js +2 -2
  28. package/dist/cjs/{tsMode-9cfa1c84.js → tsMode-17856871.js} +3 -3
  29. package/dist/cjs/{typescript-96de25d8.js → typescript-5f8ec434.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-f7efa4be.js} +28 -23
  53. package/dist/esm/{arcade-mode-88a880fd.js → arcade-mode-cf902790.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-947f4c8b.js} +1 -1
  57. package/dist/esm/{cssMode-cc7d2728.js → cssMode-f4557d49.js} +3 -3
  58. package/dist/esm/{html-664c0f74.js → html-67c289f5.js} +3 -3
  59. package/dist/esm/{htmlMode-34f81854.js → htmlMode-1e00663e.js} +3 -3
  60. package/dist/esm/{index-33ae02ee.js → index-a8e46ef9.js} +1 -1
  61. package/dist/esm/index.js +3 -3
  62. package/dist/esm/{javascript-1e3278d9.js → javascript-6bd4b41a.js} +4 -4
  63. package/dist/esm/{jsonMode-aa8a70d8.js → jsonMode-1ebc1810.js} +3 -3
  64. package/dist/esm/loader.js +3 -3
  65. package/dist/esm/{tsMode-3100d961.js → tsMode-b48db559.js} +3 -3
  66. package/dist/esm/{typescript-d8d38af2.js → typescript-32317a9c.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,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.43
5
5
  */
6
6
  import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
7
7
  import { Range, editor, Uri, KeyMod, KeyCode } from 'monaco-editor';
@@ -30,6 +30,7 @@ const ArcgisCodeEditor = /*@__PURE__*/ proxyCustomElement(class ArcgisCodeEditor
30
30
  super();
31
31
  this.__registerHost();
32
32
  this.arcgisValueChange = createEvent(this, "arcgisValueChange", 3);
33
+ this.arcgisSelectionChange = createEvent(this, "arcgisSelectionChange", 3);
33
34
  this._componentReadyDefer = new Deferred();
34
35
  this._disposables = [];
35
36
  this.value = undefined;
@@ -167,14 +168,16 @@ const ArcgisCodeEditor = /*@__PURE__*/ proxyCustomElement(class ArcgisCodeEditor
167
168
  this._disposables.push(this._editorInstance);
168
169
  // Set the value now to trigger a diagnostic again
169
170
  model.setValue(this.value ?? "");
170
- // Now we can set are component as ready
171
+ // Now we indicate that the component is ready
171
172
  this._componentReadyDefer.resolve();
172
173
  this._editorInstance.updateOptions(EditorOptionsDefaults);
173
- // Listen to the Monaco Editor content change event and propagate
174
174
  this._editorInstance.onDidChangeModelContent(() => {
175
175
  const script = this._editorInstance?.getValue() ?? "";
176
176
  this.arcgisValueChange.emit(script);
177
177
  });
178
+ this._editorInstance.onDidChangeCursorSelection((e) => {
179
+ this.arcgisSelectionChange.emit({ selection: e.selection, model: this._editorInstance?.getModel() });
180
+ });
178
181
  // Detect if the host element or its ancestors got a theme attribute mutation
179
182
  this._themeObserver = observeAncestorsMutation(this._hostElt, ["class"], () => this.updateTheme());
180
183
  // Update the theme of the 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.43
5
5
  */
6
6
  /**
7
7
  * Returns an icon name for the field type
@@ -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.43
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.30/esri/copyright.txt for details.
4
- * v4.30.0-next.40
4
+ * v4.30.0-next.43
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;
@@ -339,7 +339,7 @@ function createFilterExpression(filterWord) {
339
339
  return new RegExp(sanitizedWord, "i");
340
340
  }
341
341
  function setValuesInString(message, values = {}) {
342
- return (message ?? "").replace(/\{(.*?)\}/gu, (match, valueName) => values[valueName] ?? match);
342
+ return (message ?? "").replace(/\{(?<valueName>.*?)\}/gu, (match, valueName) => values[valueName] ?? match);
343
343
  }
344
344
  function addLTRMark(value) {
345
345
  return `\u200E${value ?? ""}\u200E`;
@@ -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.43
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.30/esri/copyright.txt for details.
4
- * v4.30.0-next.40
4
+ * v4.30.0-next.43
5
5
  */
6
6
  import { j as createFilterExpression } from './index2.js';
7
7
 
@@ -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.43
5
5
  */
6
- import { g as getAssetPath } from './index-33ae02ee.js';
6
+ import { g as getAssetPath } from './index-a8e46ef9.js';
7
7
 
8
8
  /**
9
9
  * Returns the last element of an array.
@@ -120522,7 +120522,7 @@ registerLanguage({
120522
120522
  mimetypes: ["text/css"],
120523
120523
  loader: () => {
120524
120524
  {
120525
- return import('./css-ba86d792.js');
120525
+ return import('./css-947f4c8b.js');
120526
120526
  }
120527
120527
  }
120528
120528
  });
@@ -120540,7 +120540,7 @@ registerLanguage({
120540
120540
  mimetypes: ["text/html", "text/x-jshtm", "text/template", "text/ng-template"],
120541
120541
  loader: () => {
120542
120542
  {
120543
- return import('./html-664c0f74.js');
120543
+ return import('./html-67c289f5.js');
120544
120544
  }
120545
120545
  }
120546
120546
  });
@@ -120560,7 +120560,7 @@ registerLanguage({
120560
120560
  mimetypes: ["text/javascript"],
120561
120561
  loader: () => {
120562
120562
  {
120563
- return import('./javascript-1e3278d9.js');
120563
+ return import('./javascript-6bd4b41a.js');
120564
120564
  }
120565
120565
  }
120566
120566
  });
@@ -120578,7 +120578,7 @@ registerLanguage({
120578
120578
  mimetypes: ["text/typescript"],
120579
120579
  loader: () => {
120580
120580
  {
120581
- return import('./typescript-d8d38af2.js');
120581
+ return import('./typescript-32317a9c.js');
120582
120582
  }
120583
120583
  }
120584
120584
  });
@@ -120699,7 +120699,7 @@ var lessDefaults = new LanguageServiceDefaultsImpl$3("less", optionsDefault$1, m
120699
120699
  monaco_editor_core_exports$3.languages.css = { cssDefaults, lessDefaults, scssDefaults };
120700
120700
  function getMode$3() {
120701
120701
  {
120702
- return import('./cssMode-cc7d2728.js');
120702
+ return import('./cssMode-f4557d49.js');
120703
120703
  }
120704
120704
  }
120705
120705
  monaco_editor_core_exports$3.languages.onLanguage("less", () => {
@@ -120824,7 +120824,7 @@ monaco_editor_core_exports$2.languages.html = {
120824
120824
  };
120825
120825
  function getMode$2() {
120826
120826
  {
120827
- return import('./htmlMode-34f81854.js');
120827
+ return import('./htmlMode-1e00663e.js');
120828
120828
  }
120829
120829
  }
120830
120830
  function registerHTMLLanguageService(languageId, options = optionsDefault, modeConfiguration = getConfigurationDefault(languageId)) {
@@ -120926,7 +120926,7 @@ var jsonDefaults = new LanguageServiceDefaultsImpl$1("json", diagnosticDefault,
120926
120926
  monaco_editor_core_exports$1.languages.json = { jsonDefaults };
120927
120927
  function getMode$1() {
120928
120928
  {
120929
- return import('./jsonMode-aa8a70d8.js');
120929
+ return import('./jsonMode-1ebc1810.js');
120930
120930
  }
120931
120931
  }
120932
120932
  monaco_editor_core_exports$1.languages.register({
@@ -121195,7 +121195,7 @@ monaco_editor_core_exports.languages.typescript = {
121195
121195
  };
121196
121196
  function getMode() {
121197
121197
  {
121198
- return import('./tsMode-3100d961.js');
121198
+ return import('./tsMode-b48db559.js');
121199
121199
  }
121200
121200
  }
121201
121201
  monaco_editor_core_exports.languages.onLanguage("typescript", () => {
@@ -169163,22 +169163,27 @@ async function serviceMetaData(url) {
169163
169163
  tables: response.data?.tables ?? [],
169164
169164
  };
169165
169165
  const queryCapability = url.endsWith("MapServer/layers") ? "data" : "query";
169166
- const layers = filterFeatureLayerInfos(data.layers, queryCapability);
169167
- const tables = filterFeatureLayerInfos(data.tables, queryCapability);
169166
+ const layers = getSupportedLayerInfos(data.layers, queryCapability);
169167
+ const tables = getSupportedLayerInfos(data.tables, queryCapability);
169168
169168
  return { layers, tables };
169169
169169
  }
169170
- function filterFeatureLayerInfos(layers, queryCapability) {
169170
+ function getSupportedLayerInfos(layers, queryCapability) {
169171
169171
  return layers.filter((layer) => {
169172
- if (layer.type !== "Feature Layer" && layer.type !== "Table") {
169173
- return false;
169172
+ switch (layer.type) {
169173
+ case "Feature Layer":
169174
+ case "Oriented Imagery Layer":
169175
+ case "Table": {
169176
+ const capabilities = layer.capabilities
169177
+ ? layer.capabilities
169178
+ .toLowerCase()
169179
+ .split(",")
169180
+ .map((value) => value.trim())
169181
+ : [];
169182
+ return capabilities.includes(queryCapability);
169183
+ }
169184
+ default:
169185
+ return false;
169174
169186
  }
169175
- const capabilities = layer.capabilities
169176
- ? layer.capabilities
169177
- .toLowerCase()
169178
- .split(",")
169179
- .map((value) => value.trim())
169180
- : [];
169181
- return capabilities.includes(queryCapability);
169182
169187
  });
169183
169188
  }
169184
169189
  //#endregion
@@ -169445,7 +169450,7 @@ function createFilterExpression(filterWord) {
169445
169450
  return new RegExp(sanitizedWord, "i");
169446
169451
  }
169447
169452
  function setValuesInString(message, values = {}) {
169448
- return (message ?? "").replace(/\{(.*?)\}/gu, (match, valueName) => values[valueName] ?? match);
169453
+ return (message ?? "").replace(/\{(?<valueName>.*?)\}/gu, (match, valueName) => values[valueName] ?? match);
169449
169454
  }
169450
169455
  function addLTRMark(value) {
169451
169456
  return `\u200E${value ?? ""}\u200E`;
@@ -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.30/esri/copyright.txt for details.
4
- * v4.30.0-next.40
4
+ * v4.30.0-next.43
5
5
  */
6
- import { A as main, e as editor, M as MarkerSeverity, R as Range, l as languages, B as debounce, E as Emitter } from './arcade-defaults-690c65b0.js';
7
- import './index-33ae02ee.js';
6
+ import { A as main, e as editor, M as MarkerSeverity, R as Range, l as languages, B as debounce, E as Emitter } from './arcade-defaults-f7efa4be.js';
7
+ import './index-a8e46ef9.js';
8
8
 
9
9
  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:main.CompletionItemKind.Constant}));ht.map(t=>({label:t,kind:main.CompletionItemKind.Keyword}));
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.30/esri/copyright.txt for details.
4
- * v4.30.0-next.40
4
+ * v4.30.0-next.43
5
5
  */
6
- import { f as forceUpdate, g as getAssetPath, r as registerInstance, c as createEvent, h, H as Host, a as getElement, F as Fragment } from './index-33ae02ee.js';
7
- import { g as generateTokensCSSForColorMap, e as editor, S as StandaloneServices, I as IStandaloneThemeService, c as createCommonjsModule, b as commonjsGlobal, i as importCoreAccessor, d as importCoreAccessorSupportDecorators, f as isURL, h as hasSameOrigin, j as importRequest, l as languages, k as arcadeDefaults, U as Uri, s as setFocusOnElement, m as filterCollection, n as addLTRMark, o as importArcade, D as Deferred$1, p as generateGuid, q as getElementTheme, K as KeyCode, r as setValuesInString, t as quoteString, u as supportedFields, v as createFilterExpression, R as Range, w as observeAncestorsMutation$1, x as KeyMod } from './arcade-defaults-690c65b0.js';
6
+ import { f as forceUpdate, g as getAssetPath, r as registerInstance, c as createEvent, h, H as Host, a as getElement, F as Fragment } from './index-a8e46ef9.js';
7
+ import { g as generateTokensCSSForColorMap, e as editor, S as StandaloneServices, I as IStandaloneThemeService, c as createCommonjsModule, b as commonjsGlobal, i as importCoreAccessor, d as importCoreAccessorSupportDecorators, f as isURL, h as hasSameOrigin, j as importRequest, l as languages, k as arcadeDefaults, U as Uri, s as setFocusOnElement, m as filterCollection, n as addLTRMark, o as importArcade, D as Deferred$1, p as generateGuid, q as getElementTheme, K as KeyCode, r as setValuesInString, t as quoteString, u as supportedFields, v as createFilterExpression, R as Range, w as observeAncestorsMutation$1, x as KeyMod } from './arcade-defaults-f7efa4be.js';
8
8
 
9
9
  async function colorizeCode(code) {
10
10
  return await editor.colorize(code, "arcade", { tabSize: 2 });
@@ -4532,7 +4532,7 @@ async function getArcadeWorker(uri) {
4532
4532
  * @returns arcade mode module
4533
4533
  */
4534
4534
  async function getMode() {
4535
- return await import('./arcade-mode-88a880fd.js');
4535
+ return await import('./arcade-mode-cf902790.js');
4536
4536
  }
4537
4537
  // Register the language in Monaco
4538
4538
  languages.register({
@@ -5762,6 +5762,7 @@ const ArcgisCodeEditor = class {
5762
5762
  constructor(hostRef) {
5763
5763
  registerInstance(this, hostRef);
5764
5764
  this.arcgisValueChange = createEvent(this, "arcgisValueChange", 3);
5765
+ this.arcgisSelectionChange = createEvent(this, "arcgisSelectionChange", 3);
5765
5766
  this._componentReadyDefer = new Deferred$1();
5766
5767
  this._disposables = [];
5767
5768
  this.value = undefined;
@@ -5899,14 +5900,16 @@ const ArcgisCodeEditor = class {
5899
5900
  this._disposables.push(this._editorInstance);
5900
5901
  // Set the value now to trigger a diagnostic again
5901
5902
  model.setValue(this.value ?? "");
5902
- // Now we can set are component as ready
5903
+ // Now we indicate that the component is ready
5903
5904
  this._componentReadyDefer.resolve();
5904
5905
  this._editorInstance.updateOptions(EditorOptionsDefaults);
5905
- // Listen to the Monaco Editor content change event and propagate
5906
5906
  this._editorInstance.onDidChangeModelContent(() => {
5907
5907
  const script = this._editorInstance?.getValue() ?? "";
5908
5908
  this.arcgisValueChange.emit(script);
5909
5909
  });
5910
+ this._editorInstance.onDidChangeCursorSelection((e) => {
5911
+ this.arcgisSelectionChange.emit({ selection: e.selection, model: this._editorInstance?.getModel() });
5912
+ });
5910
5913
  // Detect if the host element or its ancestors got a theme attribute mutation
5911
5914
  this._themeObserver = observeAncestorsMutation$1(this._hostElt, ["class"], () => this.updateTheme());
5912
5915
  // Update the theme of the Monaco Editor
@@ -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.30/esri/copyright.txt for details.
4
- * v4.30.0-next.40
4
+ * v4.30.0-next.43
5
5
  */
6
- import { p as promiseResolve, b as bootstrapLazy } from './index-33ae02ee.js';
7
- export { s as setNonce } from './index-33ae02ee.js';
6
+ import { p as promiseResolve, b as bootstrapLazy } from './index-a8e46ef9.js';
7
+ export { s as setNonce } from './index-a8e46ef9.js';
8
8
 
9
9
  /*
10
10
  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.43
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.30/esri/copyright.txt for details.
4
- * v4.30.0-next.40
4
+ * v4.30.0-next.43
5
5
  */
6
- import { y as monaco_editor_core_star } from './arcade-defaults-690c65b0.js';
7
- import './index-33ae02ee.js';
6
+ import { y as monaco_editor_core_star } from './arcade-defaults-f7efa4be.js';
7
+ import './index-a8e46ef9.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.30/esri/copyright.txt for details.
4
- * v4.30.0-next.40
4
+ * v4.30.0-next.43
5
5
  */
6
- import { y as monaco_editor_core_star } from './arcade-defaults-690c65b0.js';
7
- import './index-33ae02ee.js';
6
+ import { y as monaco_editor_core_star } from './arcade-defaults-f7efa4be.js';
7
+ import './index-a8e46ef9.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.30/esri/copyright.txt for details.
4
- * v4.30.0-next.40
4
+ * v4.30.0-next.43
5
5
  */
6
- import { y as monaco_editor_core_star } from './arcade-defaults-690c65b0.js';
7
- import './index-33ae02ee.js';
6
+ import { y as monaco_editor_core_star } from './arcade-defaults-f7efa4be.js';
7
+ import './index-a8e46ef9.js';
8
8
 
9
9
  /*!-----------------------------------------------------------------------------
10
10
  * 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.43
5
5
  */
6
6
  const NAMESPACE = 'arcgis-coding-components';
7
7
 
package/dist/esm/index.js CHANGED
@@ -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.43
5
5
  */
6
- export { a as arcade } from './arcade-defaults-690c65b0.js';
7
- import './index-33ae02ee.js';
6
+ export { a as arcade } from './arcade-defaults-f7efa4be.js';
7
+ import './index-a8e46ef9.js';
@@ -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.43
5
5
  */
6
- import { conf as conf$1, language as language$1 } from './typescript-d8d38af2.js';
7
- import './arcade-defaults-690c65b0.js';
8
- import './index-33ae02ee.js';
6
+ import { conf as conf$1, language as language$1 } from './typescript-32317a9c.js';
7
+ import './arcade-defaults-f7efa4be.js';
8
+ import './index-a8e46ef9.js';
9
9
 
10
10
  /*!-----------------------------------------------------------------------------
11
11
  * 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.30/esri/copyright.txt for details.
4
- * v4.30.0-next.40
4
+ * v4.30.0-next.43
5
5
  */
6
- import { y as monaco_editor_core_star } from './arcade-defaults-690c65b0.js';
7
- import './index-33ae02ee.js';
6
+ import { y as monaco_editor_core_star } from './arcade-defaults-f7efa4be.js';
7
+ import './index-a8e46ef9.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.30/esri/copyright.txt for details.
4
- * v4.30.0-next.40
4
+ * v4.30.0-next.43
5
5
  */
6
- import { b as bootstrapLazy } from './index-33ae02ee.js';
7
- export { s as setNonce } from './index-33ae02ee.js';
6
+ import { b as bootstrapLazy } from './index-a8e46ef9.js';
7
+ export { s as setNonce } from './index-a8e46ef9.js';
8
8
 
9
9
  const defineCustomElements = (win, options) => {
10
10
  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.30/esri/copyright.txt for details.
4
- * v4.30.0-next.40
4
+ * v4.30.0-next.43
5
5
  */
6
- import { z as typescriptDefaults, y as monaco_editor_core_star } from './arcade-defaults-690c65b0.js';
7
- import './index-33ae02ee.js';
6
+ import { z as typescriptDefaults, y as monaco_editor_core_star } from './arcade-defaults-f7efa4be.js';
7
+ import './index-a8e46ef9.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.30/esri/copyright.txt for details.
4
- * v4.30.0-next.40
4
+ * v4.30.0-next.43
5
5
  */
6
- import { y as monaco_editor_core_star } from './arcade-defaults-690c65b0.js';
7
- import './index-33ae02ee.js';
6
+ import { y as monaco_editor_core_star } from './arcade-defaults-f7efa4be.js';
7
+ import './index-a8e46ef9.js';
8
8
 
9
9
  /*!-----------------------------------------------------------------------------
10
10
  * 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.43
5
5
  */
6
6
  module.exports = require('../cjs/loader.cjs.js');
7
7
  module.exports.applyPolyfills = function() { return Promise.resolve() };
@@ -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.43
5
5
  */
6
6
  module.exports = require('../cjs/loader.cjs.js');
7
7
  module.exports.applyPolyfills = function() { return Promise.resolve() };
@@ -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.43
5
5
  */
6
6
  export * from '../esm/polyfills/index.js';
7
7
  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.30/esri/copyright.txt for details.
4
- * v4.30.0-next.40
4
+ * v4.30.0-next.43
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/polyfills/index.js';
@@ -1,4 +1,5 @@
1
1
  import type { EventEmitter, VNode, ComponentInterface } from "../../stencil-public-runtime";
2
+ import type { Selection } from "monaco-editor";
2
3
  import { editor } from "monaco-editor";
3
4
  import "../../utils/arcade-monaco/arcade-contribution";
4
5
  export declare class ArcgisCodeEditor implements ComponentInterface {
@@ -72,6 +73,13 @@ export declare class ArcgisCodeEditor implements ComponentInterface {
72
73
  * Emitted when the value has changed (script, code, css, json, etc.)
73
74
  */
74
75
  arcgisValueChange: EventEmitter<string>;
76
+ /**
77
+ * Emitted when the selection has changed.
78
+ */
79
+ arcgisSelectionChange: EventEmitter<{
80
+ selection: Selection;
81
+ model: editor.ITextModel | null | undefined;
82
+ }>;
75
83
  componentWillLoad(): void;
76
84
  componentDidLoad(): void;
77
85
  disconnectedCallback(): void;
@@ -10,7 +10,7 @@ import { ArcadeResult, IEditorTestContext } from "./utils/arcade-executor";
10
10
  import { IEditorCodeSuggestion, IEditorCodeSuggestionGroup } from "./utils/editor-suggestions";
11
11
  import { ApiSnippet, Diagnostic } from "@arcgis/arcade-languageservice";
12
12
  import { SidePanelName } from "./components/arcade-editor/arcade-editor";
13
- import { editor } from "monaco-editor";
13
+ import { editor, Selection } from "monaco-editor";
14
14
  import { IColorRules } from "./utils/arcade-monaco/arcade-theme";
15
15
  import { ResultPanelName } from "./components/arcade-results/arcade-results";
16
16
  export { IEditorProfileDefinition, IPredefinedProfile } from "./utils/profile/types";
@@ -18,7 +18,7 @@ export { ArcadeResult, IEditorTestContext } from "./utils/arcade-executor";
18
18
  export { IEditorCodeSuggestion, IEditorCodeSuggestionGroup } from "./utils/editor-suggestions";
19
19
  export { ApiSnippet, Diagnostic } from "@arcgis/arcade-languageservice";
20
20
  export { SidePanelName } from "./components/arcade-editor/arcade-editor";
21
- export { editor } from "monaco-editor";
21
+ export { editor, Selection } from "monaco-editor";
22
22
  export { IColorRules } from "./utils/arcade-monaco/arcade-theme";
23
23
  export { ResultPanelName } from "./components/arcade-results/arcade-results";
24
24
  export namespace Components {
@@ -297,6 +297,10 @@ declare global {
297
297
  };
298
298
  interface HTMLArcgisCodeEditorElementEventMap {
299
299
  "arcgisValueChange": string;
300
+ "arcgisSelectionChange": {
301
+ selection: Selection;
302
+ model: editor.ITextModel | null | undefined;
303
+ };
300
304
  }
301
305
  interface HTMLArcgisCodeEditorElement extends Components.ArcgisCodeEditor, HTMLStencilElement {
302
306
  addEventListener<K extends keyof HTMLArcgisCodeEditorElementEventMap>(type: K, listener: (this: HTMLArcgisCodeEditorElement, ev: ArcgisCodeEditorCustomEvent<HTMLArcgisCodeEditorElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
@@ -457,6 +461,13 @@ declare namespace LocalJSX {
457
461
  * A unique identifier for the model. The unique identifier is sometimes used by language defaults to store model metadata. For example, with arcade, the model id is used to store the arcade profile and other metadata. The unique identifier is especially useful when there are multiple editors on the same page.
458
462
  */
459
463
  "modelId"?: string;
464
+ /**
465
+ * Emitted when the selection has changed.
466
+ */
467
+ "onArcgisSelectionChange"?: (event: ArcgisCodeEditorCustomEvent<{
468
+ selection: Selection;
469
+ model: editor.ITextModel | null | undefined;
470
+ }>) => void;
460
471
  /**
461
472
  * Emitted when the value has changed (script, code, css, json, etc.)
462
473
  */
@@ -174,7 +174,7 @@ export interface IFieldsDefinition {
174
174
  /**
175
175
  * Supported layer for feature
176
176
  */
177
- export type SupportedLayer = __esri.CSVLayer | __esri.FeatureLayer | __esri.GeoJSONLayer | __esri.OGCFeatureLayer | __esri.SceneLayer | __esri.Sublayer | __esri.SubtypeGroupLayer | __esri.SubtypeSublayer | __esri.WFSLayer;
177
+ export type SupportedLayer = __esri.CSVLayer | __esri.FeatureLayer | __esri.GeoJSONLayer | __esri.OGCFeatureLayer | __esri.OrientedImageryLayer | __esri.SceneLayer | __esri.Sublayer | __esri.SubtypeGroupLayer | __esri.SubtypeSublayer | __esri.WFSLayer;
178
178
  /**
179
179
  * FeatureDefinition represents various ways a Feature variable could be defined
180
180
  */
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@arcgis/coding-components",
3
3
  "description": "Contains components for editing code in different languages. The currently supported languages are html, css, json, TypeScript, JavaScript, and Arcade.",
4
4
  "homepage": "https://developers.arcgis.com/javascript/latest/",
5
- "version": "4.30.0-next.40",
5
+ "version": "4.30.0-next.43",
6
6
  "module": "dist/components/index.js",
7
7
  "main": "dist/index.cjs.js",
8
8
  "types": "dist/types/index.d.ts",
@@ -48,19 +48,19 @@
48
48
  "generate": "stencil generate"
49
49
  },
50
50
  "dependencies": {
51
- "@arcgis/arcade-languageservice": "4.30.0-next.40",
51
+ "@arcgis/arcade-languageservice": "4.30.0-next.43",
52
52
  "@stencil/core": "4.9.0",
53
53
  "monaco-editor": "0.45.0",
54
54
  "vscode-languageserver-types": "^3.17.5"
55
55
  },
56
56
  "devDependencies": {
57
- "@arcgis/components-controllers": "4.30.0-next.40",
58
- "@arcgis/components-plugins": "4.30.0-next.40",
59
- "@arcgis/components-utils": "4.30.0-next.40",
57
+ "@arcgis/components-controllers": "4.30.0-next.43",
58
+ "@arcgis/components-plugins": "4.30.0-next.43",
59
+ "@arcgis/components-utils": "4.30.0-next.43",
60
60
  "@arcgis/core": ">=4.30.0-next <4.31",
61
- "@arcgis/core-adapter": "4.30.0-next.40",
62
- "@arcgis/storybook-utils": "4.30.0-next.40",
63
- "@arcgis/typescript-config": "4.30.0-next.40",
61
+ "@arcgis/core-adapter": "4.30.0-next.43",
62
+ "@arcgis/storybook-utils": "4.30.0-next.43",
63
+ "@arcgis/typescript-config": "4.30.0-next.43",
64
64
  "@esri/calcite-components": "^2.7.1",
65
65
  "@stencil/angular-output-target": "0.8.4",
66
66
  "@stencil/react-output-target": "0.5.3",
@@ -97,5 +97,5 @@
97
97
  "@arcgis/core": ">=4.30.0-next <4.31",
98
98
  "@esri/calcite-components": ">=2.2.0 <3.0.0"
99
99
  },
100
- "gitHead": "ab31cb113d280013e045a6ecd9d73f03d493f923"
100
+ "gitHead": "74ec053ec02acf05225abe705842de482f8e5e5c"
101
101
  }