@arcgis/coding-components 4.32.0-next.41 → 4.32.0-next.42

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 (86) hide show
  1. package/dist/arcgis-coding-components/{N42SWWY4.js → 3EHBF5XK.js} +2 -2
  2. package/dist/arcgis-coding-components/{WYNB2YSG.js → 4DI7ET6E.js} +2 -2
  3. package/dist/arcgis-coding-components/{NUAF6ZVV.js → 4HW64ABN.js} +2 -2
  4. package/dist/arcgis-coding-components/{ENIMGEDW.js → 4PKQADPO.js} +1 -1
  5. package/dist/arcgis-coding-components/{H4AYMKZ6.js → 524UCYCX.js} +1 -1
  6. package/dist/arcgis-coding-components/{AFLJD5NF.js → 5QVYZXUD.js} +2 -2
  7. package/dist/arcgis-coding-components/{PIM7CYZA.js → 67UYOVOL.js} +2 -2
  8. package/dist/arcgis-coding-components/6DH2FLPG.js +15 -0
  9. package/dist/arcgis-coding-components/{QRXEDCXD.js → 6DVMJVFN.js} +2 -2
  10. package/dist/arcgis-coding-components/{SPYXHK4N.js → 7NG4YOPP.js} +2 -2
  11. package/dist/arcgis-coding-components/{OHBJ7BVF.js → 7PFCYV7H.js} +2 -2
  12. package/dist/arcgis-coding-components/{GVQT5ZDL.js → E2BAFHMQ.js} +2 -2
  13. package/dist/arcgis-coding-components/{HV7Y2ZDJ.js → EFANEP37.js} +2 -2
  14. package/dist/arcgis-coding-components/{Q3DR6MJL.js → EMHBQLKJ.js} +1 -1
  15. package/dist/arcgis-coding-components/{OPUH7DIF.js → EYJOQLOS.js} +2 -2
  16. package/dist/arcgis-coding-components/{ORBI3AJF.js → FEYIWDLE.js} +2 -2
  17. package/dist/arcgis-coding-components/LGKNQWX6.js +11 -0
  18. package/dist/arcgis-coding-components/MGSPA35E.js +16 -0
  19. package/dist/arcgis-coding-components/{TJM2PIVT.js → MQIY7ICC.js} +2 -2
  20. package/dist/arcgis-coding-components/NSLPKDYP.css +1 -0
  21. package/dist/arcgis-coding-components/NWC7M4WW.js +674 -0
  22. package/dist/arcgis-coding-components/ORSTLY5W.js +71 -0
  23. package/dist/arcgis-coding-components/QJN5BRFC.css +1 -0
  24. package/dist/arcgis-coding-components/{QLG2GCU4.js → QP5NAYSY.js} +2 -2
  25. package/dist/arcgis-coding-components/S2SQNJ4G.js +6 -0
  26. package/dist/arcgis-coding-components/SA2ZZC65.js +9 -0
  27. package/dist/arcgis-coding-components/{FPAUII5C.js → SI4E3XKS.js} +2 -2
  28. package/dist/arcgis-coding-components/{MEIMF6H3.js → SUDSIUUK.js} +2 -2
  29. package/dist/arcgis-coding-components/TXFF43JC.js +9 -0
  30. package/dist/arcgis-coding-components/TXYUNFR2.js +20 -0
  31. package/dist/arcgis-coding-components/{6EKIEEEK.js → UYTKAJUS.js} +2 -2
  32. package/dist/arcgis-coding-components/{QUWVYFZ6.js → VE7ZVQR5.js} +2 -2
  33. package/dist/arcgis-coding-components/{6HIR644M.js → W53GANGS.js} +2 -2
  34. package/dist/arcgis-coding-components/WOAKSLZR.js +6 -0
  35. package/dist/arcgis-coding-components/{Z4JFJ3AT.js → XHTF3A7N.js} +2 -2
  36. package/dist/arcgis-coding-components/{46ADMFZA.js → YSBAMRNG.js} +2 -2
  37. package/dist/arcgis-coding-components/{QHESZIQF.js → ZCSNRKYK.js} +2 -2
  38. package/dist/arcgis-coding-components/arcgis-coding-components.esm.css +1 -1
  39. package/dist/arcgis-coding-components/arcgis-coding-components.esm.js +2 -2
  40. package/dist/arcgis-coding-components/assets/code-editor/arcade.worker.js +28 -24
  41. package/dist/arcgis-coding-components/assets/code-editor/css.worker.js +56 -53
  42. package/dist/arcgis-coding-components/assets/code-editor/editor.worker.js +11 -7
  43. package/dist/arcgis-coding-components/assets/code-editor/html.worker.js +58 -52
  44. package/dist/arcgis-coding-components/assets/code-editor/json.worker.js +37 -27
  45. package/dist/arcgis-coding-components/assets/code-editor/sql-expr.worker.js +32 -28
  46. package/dist/arcgis-coding-components/assets/code-editor/ts.worker.js +16512 -2196
  47. package/dist/arcgis-coding-components/{codicon-6HEWCXMJ.ttf → codicon-37A3DWZT.ttf} +0 -0
  48. package/dist/chunks/arcade-defaults.js +1 -1
  49. package/dist/chunks/arcade-executor.js +1 -1
  50. package/dist/chunks/arcade-mode.js +107 -73
  51. package/dist/chunks/arcade-service-accessors.js +1 -1
  52. package/dist/chunks/fields.js +1 -1
  53. package/dist/chunks/language-defaults-base.js +1 -1
  54. package/dist/chunks/markdown.js +1 -1
  55. package/dist/chunks/monaco-importer.js +1 -1
  56. package/dist/chunks/runtime.js +1 -1
  57. package/dist/chunks/sql-expr-defaults.js +1 -1
  58. package/dist/chunks/sql-expr-mode.js +1 -1
  59. package/dist/chunks/useT9n.js +1 -1
  60. package/dist/components/arcgis-arcade-editor/customElement.js +1 -1
  61. package/dist/components/arcgis-arcade-results/customElement.js +1 -1
  62. package/dist/components/arcgis-arcade-suggestions/customElement.js +1 -1
  63. package/dist/components/arcgis-code-editor/customElement.d.ts +3 -0
  64. package/dist/components/arcgis-code-editor/customElement.js +23 -23
  65. package/dist/components/arcgis-editor-variables/customElement.js +1 -1
  66. package/dist/components/arcgis-language-api-panel/customElement.js +1 -1
  67. package/dist/components/arcgis-sql-expression-editor/customElement.js +1 -1
  68. package/dist/components/arcgis-sql-expression-fields/customElement.js +1 -1
  69. package/dist/docs/api.json +7 -2
  70. package/dist/docs/docs.json +5 -2
  71. package/dist/docs/web-types.json +1 -1
  72. package/dist/index.js +1 -1
  73. package/dist/loader.js +1 -1
  74. package/package.json +8 -8
  75. package/dist/arcgis-coding-components/7VVHL4V2.js +0 -9
  76. package/dist/arcgis-coding-components/ACQOF5JZ.js +0 -9
  77. package/dist/arcgis-coding-components/CETFG3JM.js +0 -11
  78. package/dist/arcgis-coding-components/DPP6LIRE.css +0 -1
  79. package/dist/arcgis-coding-components/IESRXPNT.js +0 -6
  80. package/dist/arcgis-coding-components/LOTDCCUF.js +0 -69
  81. package/dist/arcgis-coding-components/MNI5GUEN.js +0 -11
  82. package/dist/arcgis-coding-components/O65WSYRU.css +0 -1
  83. package/dist/arcgis-coding-components/OH7X5PES.js +0 -16
  84. package/dist/arcgis-coding-components/T3YAUYWF.js +0 -20
  85. package/dist/arcgis-coding-components/UQ2ILCON.js +0 -643
  86. package/dist/arcgis-coding-components/XAN453D2.js +0 -6
@@ -5,7 +5,7 @@ import { CompletionItemKind as w, InsertTextMode as f, InsertTextFormat as d } f
5
5
  /*!
6
6
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
7
7
  * See https://js.arcgis.com/4.32/esri/copyright.txt for details.
8
- * v4.32.0-next.41
8
+ * v4.32.0-next.42
9
9
  */
10
10
  async function S(e) {
11
11
  const { apiVersion: i, bundles: t, hiddenApiItems: r } = e.toEditorProfileDefinition(), n = await h(e.dictionaryVariables);
@@ -2,7 +2,7 @@ import { importArcade as C } from "@arcgis/core-adapter";
2
2
  /*!
3
3
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
4
4
  * See https://js.arcgis.com/4.32/esri/copyright.txt for details.
5
- * v4.32.0-next.41
5
+ * v4.32.0-next.42
6
6
  */
7
7
  const G = "https://developers.arcgis.com/arcade/", O = 100, A = 100;
8
8
  function u(t) {
@@ -1,17 +1,17 @@
1
- import { Range as k, languages as l, MarkerSeverity as p, Emitter as M } from "monaco-editor";
1
+ import { Range as x, languages as l, MarkerSeverity as p, Emitter as L } from "monaco-editor";
2
2
  import "monaco-editor/esm/vs/editor/standalone/browser/standaloneServices";
3
3
  import "monaco-editor/esm/vs/editor/standalone/common/standaloneTheme";
4
4
  import "monaco-editor/esm/vs/editor/common/languages/supports/tokenization";
5
- import { ArcadeKeywords as F } from "@arcgis/arcade-languageservice";
6
- import { i as x } from "./monaco-importer.js";
7
- import { InsertTextFormat as S, DiagnosticSeverity as m, CompletionItemKind as s } from "vscode-languageserver-types";
8
- import { debounce as T, Deferred as _ } from "@arcgis/components-utils";
5
+ import { ArcadeKeywords as M } from "@arcgis/arcade-languageservice";
6
+ import { i as k } from "./monaco-importer.js";
7
+ import { InsertTextFormat as y, DiagnosticSeverity as m, CompletionItemKind as o } from "vscode-languageserver-types";
8
+ import { debounce as F, Deferred as _ } from "@arcgis/components-utils";
9
9
  /*!
10
10
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
11
11
  * See https://js.arcgis.com/4.32/esri/copyright.txt for details.
12
- * v4.32.0-next.41
12
+ * v4.32.0-next.42
13
13
  */
14
- const y = [
14
+ const S = [
15
15
  "<=",
16
16
  ">=",
17
17
  "==",
@@ -40,7 +40,7 @@ const y = [
40
40
  "**=",
41
41
  "/=",
42
42
  "%="
43
- ], A = {
43
+ ], T = {
44
44
  // the default separators except `@$`
45
45
  wordPattern: /(-?\d*\.\d\w*)|([^`~!#%\^&\*\(\)\-=\+\[\{\]\}\\\|;:'",\.<>\/\?\s]+)/gu,
46
46
  comments: {
@@ -73,7 +73,7 @@ const y = [
73
73
  // ^.*\{[^}"']*$
74
74
  increaseIndentPattern: /^((?!\/\/).)*(\{[^}"'`]*|\([^)"'`]*|\[[^\]"'`]*)$/u
75
75
  }
76
- }, L = {
76
+ }, A = {
77
77
  // Set defaultToken to invalid to see what you do not tokenize yet
78
78
  defaultToken: "invalid",
79
79
  tokenPostfix: ".arcgis",
@@ -82,8 +82,8 @@ const y = [
82
82
  // builtinFunctions: [...arcadeService.FunctionNames],
83
83
  // Arcade keywords. 'from' is a special case as we want to treat it as a keyword in
84
84
  // import statement but as an identifier in var statement.
85
- keywords: F,
86
- operators: y,
85
+ keywords: M,
86
+ operators: S,
87
87
  constants: ["true", "false", "null"],
88
88
  // we include these common regular expressions
89
89
  symbols: /[=><!~?:&|+\-*\/\^%]+/u,
@@ -100,6 +100,8 @@ const y = [
100
100
  common: [
101
101
  // import statement. import followed by a white space
102
102
  [/import(?=\s)/u, { token: "keyword", next: "@import" }],
103
+ // Special handling for `for` keyword
104
+ [/for(?=\s)/u, { token: "keyword", next: "@forLoopInit" }],
103
105
  // identifiers and keywords
104
106
  [
105
107
  /[a-z_$][\w$]*/u,
@@ -113,7 +115,7 @@ const y = [
113
115
  ],
114
116
  // whitespace
115
117
  { include: "@whitespace" },
116
- // regular expression: ensure it is terminated before beginning (otherwise it is an opeator)
118
+ // regular expression: ensure it is terminated before beginning (otherwise it is an operator)
117
119
  [
118
120
  /\/(?=([^\\\/]|\\.)+\/([gimsuy]*)(\s*)(\.|;|\/|,|\)|\]|\}|$))/u,
119
121
  { token: "regexp", bracket: "@open", next: "@regexp" }
@@ -141,9 +143,9 @@ const y = [
141
143
  [/[;,.]/u, "delimiter"],
142
144
  // strings
143
145
  [/"([^"\\]|\\.)*$/u, "string.invalid"],
144
- // non-teminated string
146
+ // non-terminated string
145
147
  [/'([^'\\]|\\.)*$/u, "string.invalid"],
146
- // non-teminated string
148
+ // non-terminated string
147
149
  [/"/u, "string", "@string_double"],
148
150
  [/'/u, "string", "@string_single"],
149
151
  [/`/u, "string", "@string_backtick"]
@@ -160,6 +162,38 @@ const y = [
160
162
  // from keyword
161
163
  [/from/u, { token: "keyword", next: "@popall" }]
162
164
  ],
165
+ // State after `for` keyword: expects '('
166
+ forLoopInit: [
167
+ { include: "@whitespace" },
168
+ [/\(/u, { token: "@brackets", next: "@forLoopVar" }],
169
+ // If we don't get an '(', just pop back
170
+ [/.*/u, "", "@pop"]
171
+ ],
172
+ // In a for loop after '(' we expect either var/let/const or directly an identifier
173
+ forLoopVar: [
174
+ { include: "@whitespace" },
175
+ [/var(?=\s)/u, "keyword", "@forLoopVarName"],
176
+ [/[a-z_$][\w$]*/u, "identifier", "@forLoopCheckInOf"],
177
+ [/\)/u, { token: "@brackets", next: "@popall" }]
178
+ // close the for(...)
179
+ ],
180
+ forLoopVarName: [
181
+ { include: "@whitespace" },
182
+ // The next thing after var/let/const should be an identifier
183
+ [/[a-z_$][\w$]*/u, "identifier", "@forLoopCheckInOf"],
184
+ [/\)/u, { token: "@brackets", next: "@popall" }]
185
+ ],
186
+ // After we have a variable name, we check if we have `in` or `of`
187
+ forLoopCheckInOf: [
188
+ { include: "@whitespace" },
189
+ [/in(?=\s)/u, "keyword", "@popall"],
190
+ // for-in
191
+ [/of(?=\s)/u, "keyword", "@popall"],
192
+ // for-of is highlighted here
193
+ // If something else occurs, just highlight normally
194
+ [/[a-z_$][\w$]*/u, "identifier"],
195
+ [/\)/u, { token: "@brackets", next: "@popall" }]
196
+ ],
163
197
  whitespace: [
164
198
  [/[ \t\r\n]+/u, ""],
165
199
  [/\/\*/u, "comment", "@comment"],
@@ -221,22 +255,22 @@ const y = [
221
255
  class P {
222
256
  constructor(e, n, {
223
257
  defaults: c,
224
- diagnosticsService: d
258
+ diagnosticsService: g
225
259
  }) {
226
- this._languageId = e, this._worker = n, this._disposables = [], this._modelListeners = /* @__PURE__ */ new Map(), this._diagnosticsService = d, this._defaults = c, x().then((o) => {
260
+ this._languageId = e, this._worker = n, this._disposables = [], this._modelListeners = /* @__PURE__ */ new Map(), this._diagnosticsService = g, this._defaults = c, k().then((s) => {
227
261
  const u = (i) => {
228
262
  const r = i.getLanguageId();
229
263
  if (r !== this._languageId)
230
264
  return;
231
- const a = T(() => {
265
+ const a = F(() => {
232
266
  this._doValidate(i, r).catch((E) => {
233
267
  throw E;
234
268
  });
235
269
  }), I = i.onDidChangeContent(a), v = i.onDidChangeAttached(a);
236
270
  this._modelListeners.set(i.uri.toString(), [I, v]), this._doValidate(i, r).catch(console.error);
237
- }, g = (i) => {
271
+ }, d = (i) => {
238
272
  const r = i.uri.toString();
239
- o.setModelMarkers(i, this._languageId, []);
273
+ s.setModelMarkers(i, this._languageId, []);
240
274
  const a = this._modelListeners.get(r);
241
275
  if (a) {
242
276
  for (; a.length; )
@@ -244,23 +278,23 @@ class P {
244
278
  this._modelListeners.delete(r);
245
279
  }
246
280
  };
247
- this._disposables.push(o.onDidCreateModel(u)), this._disposables.push(
248
- o.onWillDisposeModel((i) => {
249
- g(i);
281
+ this._disposables.push(s.onDidCreateModel(u)), this._disposables.push(
282
+ s.onWillDisposeModel((i) => {
283
+ d(i);
250
284
  })
251
285
  ), this._disposables.push(
252
- o.onDidChangeModelLanguage((i) => {
253
- g(i.model), u(i.model);
286
+ s.onDidChangeModelLanguage((i) => {
287
+ d(i.model), u(i.model);
254
288
  })
255
289
  ), this._disposables.push(
256
290
  c.onDidChange(() => {
257
- o.getModels().forEach((i) => {
258
- i.getLanguageId() === this._languageId && (g(i), u(i));
291
+ s.getModels().forEach((i) => {
292
+ i.getLanguageId() === this._languageId && (d(i), u(i));
259
293
  });
260
294
  })
261
295
  ), this._disposables.push(
262
296
  c.onModelContextDidChange((i) => {
263
- o.getModels().forEach((r) => {
297
+ s.getModels().forEach((r) => {
264
298
  r.getLanguageId() === this._languageId && r.uri.toString() === i && this._doValidate(r, this._languageId).catch(console.error);
265
299
  });
266
300
  })
@@ -268,7 +302,7 @@ class P {
268
302
  dispose: () => {
269
303
  this._modelListeners.forEach((i) => i.forEach((r) => r.dispose())), this._modelListeners.clear();
270
304
  }
271
- }), o.getModels().forEach(u);
305
+ }), s.getModels().forEach(u);
272
306
  });
273
307
  }
274
308
  dispose() {
@@ -277,8 +311,8 @@ class P {
277
311
  async _doValidate(e, n) {
278
312
  if (e.isAttachedToEditor())
279
313
  try {
280
- const c = await x(), d = await this._worker(e.uri), o = this._defaults.getApiContextForModel(e.uri), u = await d.doValidation(e.uri.toString(), o), g = u.map((i) => D(e.uri, i));
281
- this._diagnosticsService.fireDiagnosticsChange(e.uri, u), c.setModelMarkers(e, n, g);
314
+ const c = await k(), g = await this._worker(e.uri), s = this._defaults.getApiContextForModel(e.uri), u = await g.doValidation(e.uri.toString(), s), d = u.map((i) => $(e.uri, i));
315
+ this._diagnosticsService.fireDiagnosticsChange(e.uri, u), c.setModelMarkers(e, n, d);
282
316
  } catch (c) {
283
317
  console.error(c);
284
318
  }
@@ -298,7 +332,7 @@ function W(t) {
298
332
  return p.Info;
299
333
  }
300
334
  }
301
- function D(t, e) {
335
+ function $(t, e) {
302
336
  return {
303
337
  severity: W(e.severity),
304
338
  startLineNumber: e.range.start.line + 1,
@@ -308,73 +342,73 @@ function D(t, e) {
308
342
  message: e.message
309
343
  };
310
344
  }
311
- function $(t) {
345
+ function D(t) {
312
346
  return { character: t.column - 1, line: t.lineNumber - 1 };
313
347
  }
314
348
  function h(t) {
315
- return new k(t.start.line + 1, t.start.character + 1, t.end.line + 1, t.end.character + 1);
349
+ return new x(t.start.line + 1, t.start.character + 1, t.end.line + 1, t.end.character + 1);
316
350
  }
317
- function R(t) {
351
+ function V(t) {
318
352
  return {
319
353
  range: h(t.range),
320
354
  text: t.newText
321
355
  };
322
356
  }
323
- function V(t) {
357
+ function R(t) {
324
358
  return typeof t.insert < "u" && typeof t.replace < "u";
325
359
  }
326
360
  function K(t) {
327
361
  const e = l.CompletionItemKind;
328
362
  switch (t) {
329
- case s.Text:
363
+ case o.Text:
330
364
  return e.Text;
331
- case s.Method:
365
+ case o.Method:
332
366
  return e.Method;
333
- case s.Function:
367
+ case o.Function:
334
368
  return e.Function;
335
- case s.Constructor:
369
+ case o.Constructor:
336
370
  return e.Constructor;
337
- case s.Field:
371
+ case o.Field:
338
372
  return e.Field;
339
- case s.Variable:
373
+ case o.Variable:
340
374
  return e.Variable;
341
- case s.Class:
375
+ case o.Class:
342
376
  return e.Class;
343
- case s.Interface:
377
+ case o.Interface:
344
378
  return e.Interface;
345
- case s.Module:
379
+ case o.Module:
346
380
  return e.Module;
347
- case s.Property:
381
+ case o.Property:
348
382
  return e.Property;
349
- case s.Unit:
383
+ case o.Unit:
350
384
  return e.Unit;
351
- case s.Value:
385
+ case o.Value:
352
386
  return e.Value;
353
- case s.Enum:
387
+ case o.Enum:
354
388
  return e.Enum;
355
- case s.Keyword:
389
+ case o.Keyword:
356
390
  return e.Keyword;
357
- case s.Snippet:
391
+ case o.Snippet:
358
392
  return e.Snippet;
359
- case s.Color:
393
+ case o.Color:
360
394
  return e.Color;
361
- case s.File:
395
+ case o.File:
362
396
  return e.File;
363
- case s.Reference:
397
+ case o.Reference:
364
398
  return e.Reference;
365
- case s.Folder:
399
+ case o.Folder:
366
400
  return e.Folder;
367
- case s.EnumMember:
401
+ case o.EnumMember:
368
402
  return e.EnumMember;
369
- case s.Constant:
403
+ case o.Constant:
370
404
  return e.Constant;
371
- case s.Struct:
405
+ case o.Struct:
372
406
  return e.Struct;
373
- case s.Event:
407
+ case o.Event:
374
408
  return e.Event;
375
- case s.Operator:
409
+ case o.Operator:
376
410
  return e.Operator;
377
- case s.TypeParameter:
411
+ case o.TypeParameter:
378
412
  return e.TypeParameter;
379
413
  default:
380
414
  return e.Property;
@@ -385,38 +419,38 @@ class N {
385
419
  this._worker = e, this._defaults = n, this.triggerCharacters = [".", "("];
386
420
  }
387
421
  async provideCompletionItems(e, n) {
388
- const c = await this._worker(e.uri), d = this._defaults.getApiContextForModel(e.uri), o = await c.doComplete(e.uri.toString(), $(n), d), u = e.getWordUntilPosition(n), g = new k(n.lineNumber, u.startColumn, n.lineNumber, u.endColumn), i = o.items.map((r) => {
422
+ const c = await this._worker(e.uri), g = this._defaults.getApiContextForModel(e.uri), s = await c.doComplete(e.uri.toString(), D(n), g), u = e.getWordUntilPosition(n), d = new x(n.lineNumber, u.startColumn, n.lineNumber, u.endColumn), i = s.items.map((r) => {
389
423
  const a = {
390
424
  label: r.label,
391
425
  insertText: r.insertText || r.label,
392
426
  sortText: r.sortText,
393
427
  filterText: r.filterText,
394
428
  detail: r.detail,
395
- range: g,
429
+ range: d,
396
430
  kind: K(r.kind)
397
431
  };
398
- return r.textEdit && (V(r.textEdit) ? a.range = {
432
+ return r.textEdit && (R(r.textEdit) ? a.range = {
399
433
  insert: h(r.textEdit.insert),
400
434
  replace: h(r.textEdit.replace)
401
- } : a.range = h(r.textEdit.range), a.insertText = r.textEdit.newText), r.additionalTextEdits && (a.additionalTextEdits = r.additionalTextEdits.map(R)), r.insertTextFormat === S.Snippet && (a.insertTextRules = l.CompletionItemInsertTextRule.InsertAsSnippet), r.documentation && (typeof r.documentation == "string" ? a.documentation = r.documentation : a.documentation = {
435
+ } : a.range = h(r.textEdit.range), a.insertText = r.textEdit.newText), r.additionalTextEdits && (a.additionalTextEdits = r.additionalTextEdits.map(V)), r.insertTextFormat === y.Snippet && (a.insertTextRules = l.CompletionItemInsertTextRule.InsertAsSnippet), r.documentation && (typeof r.documentation == "string" ? a.documentation = r.documentation : a.documentation = {
402
436
  supportThemeIcons: !1,
403
437
  value: r.documentation.value,
404
438
  supportHtml: !0
405
439
  }), a;
406
440
  });
407
441
  return {
408
- incomplete: o.isIncomplete,
442
+ incomplete: s.isIncomplete,
409
443
  suggestions: i
410
444
  };
411
445
  }
412
446
  }
413
- class H {
447
+ class z {
414
448
  constructor(e, n) {
415
449
  this._worker = e, this._defaults = n;
416
450
  }
417
451
  async provideDocumentFormattingEdits(e) {
418
452
  const n = await this._worker(e.uri), c = this._defaults.getApiContextForModel(e.uri.toString());
419
- return (await n.doFormat(e.uri.toString(), c)).map((o) => ({ range: h(o.range), text: o.newText }));
453
+ return (await n.doFormat(e.uri.toString(), c)).map((s) => ({ range: h(s.range), text: s.newText }));
420
454
  }
421
455
  }
422
456
  let f = new _();
@@ -438,7 +472,7 @@ class b {
438
472
  return await f.promise;
439
473
  }
440
474
  async _getClientProxy() {
441
- const e = await x();
475
+ const e = await k();
442
476
  if (!this._client) {
443
477
  const { languageId: n } = this._defaults;
444
478
  this._worker = e.createWebWorker({
@@ -465,9 +499,9 @@ async function J(...t) {
465
499
  e(w(...t));
466
500
  });
467
501
  }
468
- class U {
502
+ class O {
469
503
  constructor() {
470
- this._onDiagnosticsChange = new M();
504
+ this._onDiagnosticsChange = new L();
471
505
  }
472
506
  /**
473
507
  * An event to signal changes to the diagnostics.
@@ -485,18 +519,18 @@ class U {
485
519
  this._onDiagnosticsChange.fire({ uri: e, diagnostics: n });
486
520
  }
487
521
  }
488
- const C = new U();
522
+ const C = new O();
489
523
  function Q() {
490
524
  return C;
491
525
  }
492
526
  function Y(t) {
493
527
  const e = new b(t), n = async (...c) => await e.getLanguageServiceWorker(...c);
494
- w = n, l.setMonarchTokensProvider(t.languageId, L), l.setLanguageConfiguration(t.languageId, A), l.registerCompletionItemProvider(
528
+ w = n, l.setMonarchTokensProvider(t.languageId, A), l.setLanguageConfiguration(t.languageId, T), l.registerCompletionItemProvider(
495
529
  t.languageId,
496
530
  new N(n, t)
497
531
  ), l.registerDocumentFormattingEditProvider(
498
532
  t.languageId,
499
- new H(n, t)
533
+ new z(n, t)
500
534
  ), new P(t.languageId, n, {
501
535
  defaults: t,
502
536
  diagnosticsService: C
@@ -3,7 +3,7 @@ import { isURL as i, hasSameOrigin as c } from "@arcgis/components-utils";
3
3
  /*!
4
4
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
5
5
  * See https://js.arcgis.com/4.32/esri/copyright.txt for details.
6
- * v4.32.0-next.41
6
+ * v4.32.0-next.42
7
7
  */
8
8
  function a() {
9
9
  return !!window.MonacoEnvironment?.getWorkerUrl;
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  * See https://js.arcgis.com/4.32/esri/copyright.txt for details.
4
- * v4.32.0-next.41
4
+ * v4.32.0-next.42
5
5
  */
6
6
  function t(e) {
7
7
  switch (e.type) {
@@ -9,7 +9,7 @@ import { Emitter as $, Uri as A } from "monaco-editor";
9
9
  /*!
10
10
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
11
11
  * See https://js.arcgis.com/4.32/esri/copyright.txt for details.
12
- * v4.32.0-next.41
12
+ * v4.32.0-next.42
13
13
  */
14
14
  function B(t) {
15
15
  return !!t && typeof t == "object" && "declaredClass" in t && typeof t.declaredClass == "string" && t.declaredClass.startsWith("esri.layers.") && g(t) && "queryFeatures" in t && typeof t.queryFeatures == "function";
@@ -5,7 +5,7 @@ import { generateTokensCSSForColorMap as te } from "monaco-editor/esm/vs/editor/
5
5
  /*!
6
6
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
7
7
  * See https://js.arcgis.com/4.32/esri/copyright.txt for details.
8
- * v4.32.0-next.41
8
+ * v4.32.0-next.42
9
9
  */
10
10
  async function ne(l) {
11
11
  return await (await ee()).colorize(l, "arcade", { tabSize: 2 });
@@ -6,7 +6,7 @@ import "monaco-editor/esm/vs/editor/common/languages/supports/tokenization";
6
6
  /*!
7
7
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
8
8
  * See https://js.arcgis.com/4.32/esri/copyright.txt for details.
9
- * v4.32.0-next.41
9
+ * v4.32.0-next.42
10
10
  */
11
11
  function g(r, t, n, m) {
12
12
  if (!t)
@@ -2,7 +2,7 @@ import { makeRuntime as t } from "@arcgis/lumina";
2
2
  /*!
3
3
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
4
4
  * See https://js.arcgis.com/4.32/esri/copyright.txt for details.
5
- * v4.32.0-next.41
5
+ * v4.32.0-next.42
6
6
  */
7
7
  const s = t({ defaultAssetPath: "https://jsdev.arcgis.com/coding-components/next/", hydratedAttribute: "hydrated" }), { customElement: a, getAssetPath: o, setAssetPath: m } = s;
8
8
  export {
@@ -5,7 +5,7 @@ import { g as b } from "./runtime.js";
5
5
  /*!
6
6
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
7
7
  * See https://js.arcgis.com/4.32/esri/copyright.txt for details.
8
- * v4.32.0-next.41
8
+ * v4.32.0-next.42
9
9
  */
10
10
  const x = (r) => {
11
11
  const e = r.variables[0], i = e && e.type === "featureSet" ? A(e) : void 0, { apiVersion: t, bundles: o, hiddenApiItems: s } = r.toEditorProfileDefinition();
@@ -8,7 +8,7 @@ import { a as d } from "./sql-expr-defaults.js";
8
8
  /*!
9
9
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
10
10
  * See https://js.arcgis.com/4.32/esri/copyright.txt for details.
11
- * v4.32.0-next.41
11
+ * v4.32.0-next.42
12
12
  */
13
13
  let h = new _();
14
14
  class k {
@@ -3,7 +3,7 @@ import { g as t } from "./runtime.js";
3
3
  /*!
4
4
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
5
5
  * See https://js.arcgis.com/4.32/esri/copyright.txt for details.
6
- * v4.32.0-next.41
6
+ * v4.32.0-next.42
7
7
  */
8
8
  const s = o(t);
9
9
  export {
@@ -15,7 +15,7 @@ import { css as w } from "@lit/reactive-element/css-tag.js";
15
15
  /*!
16
16
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
17
17
  * See https://js.arcgis.com/4.32/esri/copyright.txt for details.
18
- * v4.32.0-next.41
18
+ * v4.32.0-next.42
19
19
  */
20
20
  const $ = w`arcgis-arcade-editor{display:flex;flex-direction:column;position:relative;overflow:hidden;border:var(--arcgis-coding-components-border);box-sizing:border-box;background-color:var(--arcgis-coding-components-background-color);height:100%;.flex-adjustable{flex:1 1 auto;overflow:hidden}.flex-panel{flex:1 0 auto}.position-relative{position:relative}.flex-row{display:flex;flex-direction:row;overflow:hidden}.flex-column{display:flex;flex-direction:column;overflow:hidden}.border-inline-start{border-inline-start:var(--arcgis-coding-components-border);box-sizing:border-box}.border-inline-end{border-inline-end:var(--arcgis-coding-components-border);box-sizing:border-box}.sticky{position:sticky;top:0;z-index:10}.notice-container{margin:var(--calcite-spacing-xxs);padding:var(--calcite-spacing-sm);background-color:var(--calcite-color-foreground-1);text-align:center}.side-action-bar{max-width:var(--arcgis-coding-components-side-action-bar-max-w)}.side-panel{max-width:var(--arcgis-coding-components-side-panel-max-w);width:var(--arcgis-coding-components-side-panel-w);calcite-flow{height:100%}}.main-action-bar{border-bottom:var(--arcgis-coding-components-border);flex:0 0 auto;calcite-action-group{padding-inline-end:var(--calcite-spacing-sm);calcite-action{padding-inline-end:var(--calcite-spacing-sm)}calcite-action:not(:first-child){padding-inline-start:var(--calcite-spacing-sm)}}calcite-action-group:last-child{border-inline-end-width:0px}calcite-action-group:not(:first-child){padding-inline-start:var(--calcite-spacing-sm)}}arcgis-arcade-results{border-top:var(--arcgis-coding-components-border);box-sizing:border-box;max-height:50%;min-height:50%;margin-bottom:-1px}calcite-flow{[slot=footer]{word-break:break-word}}}`;
21
21
  class y extends _ {
@@ -9,7 +9,7 @@ import { css as C } from "@lit/reactive-element/css-tag.js";
9
9
  /*!
10
10
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
11
11
  * See https://js.arcgis.com/4.32/esri/copyright.txt for details.
12
- * v4.32.0-next.41
12
+ * v4.32.0-next.42
13
13
  */
14
14
  const A = C`:host{display:flex;flex-direction:column;width:100%;background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-2);.flex-adjustable{flex:1 1 auto;overflow:hidden}.flex-row{display:flex;flex-direction:row;overflow:hidden}.flex-column{display:flex;flex-direction:column;overflow:hidden}.y-scrollable-container{overflow-y:auto;block-size:100%;background-color:var(--calcite-color-foreground-1)}header{border-bottom:1px solid var(--calcite-color-border-3);flex:0 0 auto}.ltr-container{direction:ltr}calcite-action-bar{calcite-action-group{padding-inline-end:var(--calcite-spacing-sm);calcite-action{padding-inline-end:var(--calcite-spacing-sm)}calcite-action:not(:first-child){padding-inline-start:var(--calcite-spacing-sm)}}calcite-action-group:last-child{border-inline-end-width:0px}calcite-action-group:not(:first-child){padding-inline-start:var(--calcite-spacing-sm)}}.notice-container{margin:var(--calcite-spacing-xxs);padding:var(--calcite-spacing-sm);background-color:var(--calcite-color-foreground-1)}.color-info{color:var(--calcite-color-status-info)}.color-error{color:var(--calcite-color-status-danger)}.color-success{color:var(--calcite-color-status-success)}[class*=result-value-]{font-size:var(--calcite-font-size--2);line-height:1.25rem;background-color:var(--calcite-color-foreground-1);margin:var(--calcite-spacing-md)}.console-logs-container{background-color:var(--calcite-color-foreground-1);padding:0 var(--calcite-spacing-md);font-family:var(--calcite-code-family);font-size:var(--calcite-font-size--2);font-weight:var(--calcite-font-weight-normal)}.result-value-table{table{display:block;max-width:fit-content;overflow-x:auto;border-spacing:0;border-collapse:collapse;text-align:start;white-space:nowrap;thead{background-color:var(--calcite-color-foreground-2)}tr{border-top:1px solid var(--calcite-color-border-3);border-bottom:1px solid var(--calcite-color-border-3)}th,td{border-inline-start:1px solid var(--calcite-color-border-3);border-inline-end:1px solid var(--calcite-color-border-3);text-align:start;padding:var(--calcite-spacing-xxs);.string-value{white-space:pre}}th{font-weight:var(--calcite-font-weight-medium)}}}.tree-item-label,.number-value,.string-value,.boolean-value{font-family:var(--calcite-code-family)}.tree-item-label,.value-type{color:var(--calcite-color-text-2);font-weight:var(--calcite-font-weight-normal)}.dictionary-property{color:var(--arcgis-editor-identifier)}.number-value{color:var(--arcgis-editor-number)}.string-value{color:var(--arcgis-editor-string);white-space:pre-wrap}.constant-value{color:var(--arcgis-editor-constant)}.date-value{color:var(--arcgis-editor-date)}}`, a = {
15
15
  lines: !0,
@@ -10,7 +10,7 @@ import { css as b } from "@lit/reactive-element/css-tag.js";
10
10
  /*!
11
11
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
12
12
  * See https://js.arcgis.com/4.32/esri/copyright.txt for details.
13
- * v4.32.0-next.41
13
+ * v4.32.0-next.42
14
14
  */
15
15
  function v(o) {
16
16
  return !Array.isArray(o) || !o.length ? !1 : Array.isArray(o[0].suggestions);
@@ -2,6 +2,9 @@ import { Selection, editor as Editor } from 'monaco-editor';
2
2
  import { PropertyValues } from 'lit';
3
3
  import { PublicLitElement as LitElement } from '@arcgis/lumina';
4
4
 
5
+ /**
6
+ * @internal
7
+ */
5
8
  export declare class ArcgisCodeEditor extends LitElement {
6
9
  /**
7
10
  * The instance of the Monaco Editor after the component has been rendered.