@arcgis/coding-components 5.0.0-next.111 → 5.0.0-next.113

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 (120) hide show
  1. package/dist/addons.js +1 -1
  2. package/dist/cdn/2TGM6O6M.js +4 -0
  3. package/dist/cdn/3BF4AAOZ.js +4 -0
  4. package/dist/cdn/{ZOG23UWP.js → 4FK5MJVN.js} +3 -3
  5. package/dist/cdn/{ZXVOWJDH.js → 4RKAOXIC.js} +2 -2
  6. package/dist/cdn/{QOY5OOS2.js → 4RVQN4K2.js} +1 -1
  7. package/dist/cdn/5BZAVZGG.js +4 -0
  8. package/dist/cdn/5OXNIXWV.js +4 -0
  9. package/dist/cdn/{ZWQANQOA.js → 6ZMQQC4M.js} +2 -2
  10. package/dist/cdn/{DUWJBGKW.js → 72Z6FQGG.js} +1 -1
  11. package/dist/cdn/{GTARB3UU.js → A36QZPA7.js} +1 -1
  12. package/dist/cdn/{EF6CV6SD.js → AAMXKKPY.js} +18 -18
  13. package/dist/cdn/{AK7M5DI4.js → AKCQSXOB.js} +2 -2
  14. package/dist/cdn/{ROHD4IVB.js → CV7LLPSJ.js} +2 -2
  15. package/dist/cdn/{ZUCKRKBB.js → DCVO6DTY.js} +1 -1
  16. package/dist/cdn/DFGJTGMF.js +4 -0
  17. package/dist/cdn/{RFSIT5G7.js → DQHULSZX.js} +2 -2
  18. package/dist/cdn/{EBBULJKI.js → DXYPSO76.js} +2 -2
  19. package/dist/cdn/{5A2ON35E.js → ECK5GFJX.js} +2 -2
  20. package/dist/cdn/{M3DWRUJ6.js → EZ4AJRIK.js} +1 -1
  21. package/dist/cdn/EZS7BVNR.js +4 -0
  22. package/dist/cdn/{QPBWNYYG.js → F7ONGO3V.js} +2 -2
  23. package/dist/cdn/{6F4NHD6J.js → F7V7O6MY.js} +2 -2
  24. package/dist/cdn/{ACDQXQFL.js → FEEGJMFK.js} +2 -2
  25. package/dist/cdn/{PZVOBAUY.js → FLSVYK7Y.js} +1 -1
  26. package/dist/cdn/{R22GWF4X.js → HBKPWQSN.js} +2 -2
  27. package/dist/cdn/{7BA5NKPL.js → HS6C5ZDM.js} +2 -2
  28. package/dist/{monacoStyles.js → cdn/J3CPCHWB.js} +3 -6
  29. package/dist/cdn/{OPDRDV2X.js → JAJOHW6F.js} +2 -2
  30. package/dist/cdn/JDWBXSEO.js +4 -0
  31. package/dist/cdn/{IJRKXHZX.js → K5FO4RN2.js} +1 -1
  32. package/dist/cdn/KZMUR4FQ.js +4 -0
  33. package/dist/cdn/{MHV2YN2W.js → LICBKKPH.js} +2 -2
  34. package/dist/cdn/{H7B5SRMR.js → LUYRQPN7.js} +2 -2
  35. package/dist/cdn/M43BVL4E.js +4 -0
  36. package/dist/cdn/{BKB4DV46.js → MEKYJZMF.js} +1 -1
  37. package/dist/cdn/{UMGYY4A6.js → NTDWZYQ3.js} +2 -2
  38. package/dist/cdn/{FKEB773L.js → ORVBCR27.js} +123 -123
  39. package/dist/cdn/{IEGYFEG6.js → QIGWBAUW.js} +2 -2
  40. package/dist/cdn/{77EDUK6A.js → QVVVBQRO.js} +2 -2
  41. package/dist/cdn/{EUE6CTFC.js → R22JAJHD.js} +2 -2
  42. package/dist/cdn/{K2ZXUXJJ.js → UPZZXWTI.js} +2 -2
  43. package/dist/cdn/WBORX7BK.js +4 -0
  44. package/dist/cdn/{XHEFV6KG.js → WJDNBDRE.js} +2 -2
  45. package/dist/cdn/{3K6DRDWG.js → WMJL6LYZ.js} +2 -2
  46. package/dist/cdn/YL76P6RL.js +4 -0
  47. package/dist/cdn/YOUBREZM.js +6 -0
  48. package/dist/cdn/{E3ULU3UA.js → Z3XQAT4Z.js} +2 -2
  49. package/dist/cdn/{2QH3V2HU.js → ZKKGRZ6D.js} +2 -2
  50. package/dist/cdn/assets/code-editor/sql-expr.worker.js +2 -2
  51. package/dist/cdn/index.js +2 -7
  52. package/dist/cdn/main.css +1 -1
  53. package/dist/chunks/arcade-contribution.js +8 -5
  54. package/dist/chunks/arcade-defaults.js +1 -1
  55. package/dist/chunks/arcade-executor.js +1 -1
  56. package/dist/chunks/arcade-mode.js +21 -18
  57. package/dist/chunks/arcade-service-accessors.js +16 -13
  58. package/dist/chunks/colorize.js +1 -1
  59. package/dist/chunks/fields.js +1 -1
  60. package/dist/chunks/language-defaults-base.js +1 -1
  61. package/dist/chunks/markdown.js +1 -1
  62. package/dist/chunks/monaco-importer.js +6 -3
  63. package/dist/chunks/monaco-theme.js +1 -1
  64. package/dist/chunks/runtime.js +1 -1
  65. package/dist/chunks/sql-expr-defaults.js +1 -1
  66. package/dist/chunks/sql-expr-mode.js +35 -32
  67. package/dist/chunks/sql-expr-service-accessors.js +1 -1
  68. package/dist/chunks/useT9n.js +1 -1
  69. package/dist/chunks/utilities.js +1 -1
  70. package/dist/components/arcgis-arcade-coding-assistant/customElement.js +13 -13
  71. package/dist/components/arcgis-arcade-editor/customElement.js +41 -42
  72. package/dist/components/arcgis-arcade-editor/index.d.ts +1 -0
  73. package/dist/components/arcgis-arcade-editor/index.js +1 -0
  74. package/dist/components/arcgis-arcade-results/customElement.js +1 -1
  75. package/dist/components/arcgis-arcade-suggestions/customElement.js +5 -5
  76. package/dist/components/arcgis-code-editor/customElement.d.ts +1 -1
  77. package/dist/components/arcgis-code-editor/customElement.js +269 -60
  78. package/dist/components/arcgis-code-editor-shell/customElement.d.ts +17 -0
  79. package/dist/components/arcgis-code-editor-shell/customElement.js +19 -0
  80. package/dist/components/arcgis-code-editor-shell/index.d.ts +1 -0
  81. package/dist/components/arcgis-code-editor-shell/index.js +1 -0
  82. package/dist/components/arcgis-code-viewer/customElement.js +1 -1
  83. package/dist/components/arcgis-editor-variables/customElement.js +1 -1
  84. package/dist/components/arcgis-language-api-panel/customElement.js +11 -11
  85. package/dist/components/arcgis-sql-expression-editor/customElement.js +15 -19
  86. package/dist/components/arcgis-sql-expression-editor/index.d.ts +1 -0
  87. package/dist/components/arcgis-sql-expression-editor/index.js +1 -0
  88. package/dist/components/arcgis-sql-expression-fields/customElement.js +1 -1
  89. package/dist/docs/api.json +126 -5
  90. package/dist/docs/docs.json +123 -5
  91. package/dist/docs/vscode.css-custom-data.json +30 -1
  92. package/dist/docs/vscode.html-custom-data.json +11 -0
  93. package/dist/docs/web-types.json +64 -2
  94. package/dist/index.d.ts +5 -0
  95. package/dist/index.js +1 -1
  96. package/dist/loader.js +5 -4
  97. package/dist/types/lumina.d.ts +5 -0
  98. package/dist/types/preact.d.ts +6 -0
  99. package/dist/types/react.d.ts +7 -0
  100. package/dist/types/stencil.d.ts +5 -0
  101. package/dist/utils/internal-monaco-apis.d.ts +67 -0
  102. package/dist/utils/monaco-importer.d.ts +3 -0
  103. package/dist/utils/monaco-typings.d.ts +3 -0
  104. package/dist/utils/patch-monaco.d.ts +16 -0
  105. package/package.json +5 -5
  106. package/dist/cdn/2YZ46D2D.js +0 -4
  107. package/dist/cdn/3YR5HT6L.js +0 -6
  108. package/dist/cdn/6ZY6ERMO.js +0 -4
  109. package/dist/cdn/EGSHWWSC.js +0 -4
  110. package/dist/cdn/FLUNOJKB.js +0 -4
  111. package/dist/cdn/HOEQZCFF.js +0 -4
  112. package/dist/cdn/NSVEJ77V.js +0 -4
  113. package/dist/cdn/Q23LB4V2.js +0 -4
  114. package/dist/cdn/QWC22EZF.js +0 -4
  115. package/dist/cdn/REMZZQAN.js +0 -4
  116. package/dist/cdn/TAAXRQC4.js +0 -4
  117. package/dist/cdn/UDPOBQDF.js +0 -4
  118. package/dist/cdn/UOU34CQZ.js +0 -4
  119. package/dist/chunks/editor.js +0 -8
  120. package/dist/utils/import-monaco-styles.d.ts +0 -7
@@ -5,13 +5,16 @@ import "monaco-editor/esm/vs/editor/standalone/browser/standaloneServices.js";
5
5
  import "monaco-editor/esm/vs/editor/standalone/common/standaloneTheme.js";
6
6
  import "monaco-editor/esm/vs/platform/hover/browser/hover.js";
7
7
  import "monaco-editor/esm/vs/editor/common/languages/supports/tokenization.js";
8
+ import "monaco-editor/esm/vs/base/browser/dom.js";
9
+ import "monaco-editor/esm/vs/editor/browser/editorDom.js";
10
+ import "monaco-editor/esm/vs/editor/browser/controller/mouseTarget.js";
8
11
  import { a as t } from "./sql-expr-defaults.js";
9
12
  import { g as l } from "./sql-expr-service-accessors.js";
10
13
  import { b as n } from "./arcade-defaults.js";
11
14
  import { g as h } from "./arcade-service-accessors.js";
12
15
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
13
16
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
14
- v5.0.0-next.111 */
17
+ v5.0.0-next.113 */
15
18
  const k = ["arcade", "arcgis-sql-expression"], i = /* @__PURE__ */ new Set(), g = /* @__PURE__ */ new Map();
16
19
  function c(e) {
17
20
  let r = g.get(e);
@@ -20,7 +23,7 @@ function c(e) {
20
23
  function u(e) {
21
24
  c(e).resolve();
22
25
  }
23
- function T(e) {
26
+ function _(e) {
24
27
  return k.includes(e) ? c(e).promise : Promise.resolve();
25
28
  }
26
29
  function m(e, r) {
@@ -28,7 +31,7 @@ function m(e, r) {
28
31
  i.has(e) || i.add(e), r();
29
32
  };
30
33
  }
31
- async function P(e) {
34
+ async function $(e) {
32
35
  if (i.has(e))
33
36
  return;
34
37
  (await d()).createModel("", e, f.parse("")).dispose();
@@ -90,6 +93,6 @@ a.onLanguage(
90
93
  })
91
94
  );
92
95
  export {
93
- P as s,
94
- T as w
96
+ $ as s,
97
+ _ as w
95
98
  };
@@ -5,7 +5,7 @@ import { CompletionItemKind as w, InsertTextFormat as u, InsertTextMode as p } f
5
5
  import { getDeclaredPixelMembers as I } from "@arcgis/core/applications/Components/arcadeEditorUtils.js";
6
6
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
7
7
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
8
- v5.0.0-next.111 */
8
+ v5.0.0-next.113 */
9
9
  async function C(e) {
10
10
  const { apiVersion: r, bundles: t, hiddenApiItems: i } = e.toEditorProfileDefinition(), n = await h(e.dictionaryVariables);
11
11
  return { apiVersion: r, bundles: t, variables: n, hiddenApiItems: i?.map((s) => s.toLowerCase()) };
@@ -1,7 +1,7 @@
1
1
  import { createArcadeExecutor as C } from "@arcgis/core/arcade.js";
2
2
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
4
- v5.0.0-next.111 */
4
+ v5.0.0-next.113 */
5
5
  const O = "https://developers.arcgis.com/arcade/", P = 100, A = 100;
6
6
  function g(t) {
7
7
  return !!t && typeof t == "object" && "declaredRootClass" in t && typeof t.declaredRootClass == "string" && t.declaredRootClass === "esri.arcade.featureset.support.FeatureSet";
@@ -3,15 +3,18 @@ import "monaco-editor/esm/vs/editor/standalone/browser/standaloneServices.js";
3
3
  import "monaco-editor/esm/vs/editor/standalone/common/standaloneTheme.js";
4
4
  import "monaco-editor/esm/vs/platform/hover/browser/hover.js";
5
5
  import "monaco-editor/esm/vs/editor/common/languages/supports/tokenization.js";
6
+ import "monaco-editor/esm/vs/base/browser/dom.js";
7
+ import "monaco-editor/esm/vs/editor/browser/editorDom.js";
8
+ import "monaco-editor/esm/vs/editor/browser/controller/mouseTarget.js";
6
9
  import { ArcadeKeywords as y } from "@arcgis/arcade-languageservice";
7
10
  import { i as w } from "./monaco-importer.js";
8
- import { InsertTextFormat as A, CompletionItemKind as o, DiagnosticSeverity as m } from "vscode-languageserver-types";
11
+ import { InsertTextFormat as A, CompletionItemKind as o, DiagnosticSeverity as h } from "vscode-languageserver-types";
9
12
  import { debounce as F } from "@arcgis/toolkit/function";
10
13
  import { rethrowError as f } from "@arcgis/toolkit/log";
11
14
  import { Deferred as b } from "@arcgis/toolkit/promise";
12
15
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
13
16
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
14
- v5.0.0-next.111 */
17
+ v5.0.0-next.113 */
15
18
  const S = [
16
19
  "<=",
17
20
  ">=",
@@ -321,13 +324,13 @@ class D {
321
324
  }
322
325
  function W(t) {
323
326
  switch (t) {
324
- case m.Error:
327
+ case h.Error:
325
328
  return p.Error;
326
- case m.Warning:
329
+ case h.Warning:
327
330
  return p.Warning;
328
- case m.Information:
331
+ case h.Information:
329
332
  return p.Info;
330
- case m.Hint:
333
+ case h.Hint:
331
334
  return p.Hint;
332
335
  default:
333
336
  return p.Info;
@@ -346,12 +349,12 @@ function $(t, e) {
346
349
  function V(t) {
347
350
  return { character: t.column - 1, line: t.lineNumber - 1 };
348
351
  }
349
- function h(t) {
352
+ function m(t) {
350
353
  return new _(t.start.line + 1, t.start.character + 1, t.end.line + 1, t.end.character + 1);
351
354
  }
352
355
  function R(t) {
353
356
  return {
354
- range: h(t.range),
357
+ range: m(t.range),
355
358
  text: t.newText
356
359
  };
357
360
  }
@@ -431,9 +434,9 @@ class z {
431
434
  kind: N(r.kind)
432
435
  };
433
436
  return r.textEdit && (K(r.textEdit) ? a.range = {
434
- insert: h(r.textEdit.insert),
435
- replace: h(r.textEdit.replace)
436
- } : a.range = h(r.textEdit.range), a.insertText = r.textEdit.newText), r.additionalTextEdits && (a.additionalTextEdits = r.additionalTextEdits.map(R)), r.insertTextFormat === A.Snippet && (a.insertTextRules = l.CompletionItemInsertTextRule.InsertAsSnippet), r.documentation && (typeof r.documentation == "string" ? a.documentation = r.documentation : a.documentation = {
437
+ insert: m(r.textEdit.insert),
438
+ replace: m(r.textEdit.replace)
439
+ } : a.range = m(r.textEdit.range), a.insertText = r.textEdit.newText), r.additionalTextEdits && (a.additionalTextEdits = r.additionalTextEdits.map(R)), r.insertTextFormat === A.Snippet && (a.insertTextRules = l.CompletionItemInsertTextRule.InsertAsSnippet), r.documentation && (typeof r.documentation == "string" ? a.documentation = r.documentation : a.documentation = {
437
440
  supportThemeIcons: !1,
438
441
  value: r.documentation.value,
439
442
  supportHtml: !0
@@ -451,7 +454,7 @@ class O {
451
454
  }
452
455
  async provideDocumentFormattingEdits(e) {
453
456
  const n = await this._worker(e.uri), c = this._defaults.getApiContextForModel(e.uri.toString());
454
- return (await n.doFormat(e.uri.toString(), c)).map((s) => ({ range: h(s.range), text: s.newText }));
457
+ return (await n.doFormat(e.uri.toString(), c)).map((s) => ({ range: m(s.range), text: s.newText }));
455
458
  }
456
459
  }
457
460
  let k = new b();
@@ -491,7 +494,7 @@ class C {
491
494
  }
492
495
  }
493
496
  let x;
494
- async function te(...t) {
497
+ async function ie(...t) {
495
498
  return await C.waitForWorker(), await new Promise((e, n) => {
496
499
  if (!x) {
497
500
  n(new Error("Arcade not registered!"));
@@ -521,10 +524,10 @@ class H {
521
524
  }
522
525
  }
523
526
  const I = new H();
524
- function re() {
527
+ function oe() {
525
528
  return I;
526
529
  }
527
- function ne(t) {
530
+ function se(t) {
528
531
  const e = new C(t), n = async (...c) => await e.getLanguageServiceWorker(...c);
529
532
  x = n, l.setMonarchTokensProvider(t.languageId, P), l.setLanguageConfiguration(t.languageId, T), l.registerCompletionItemProvider(
530
533
  t.languageId,
@@ -538,7 +541,7 @@ function ne(t) {
538
541
  });
539
542
  }
540
543
  export {
541
- re as getArcadeDiagnosticService,
542
- te as getArcadeWorker,
543
- ne as setupMode
544
+ oe as getArcadeDiagnosticService,
545
+ ie as getArcadeWorker,
546
+ se as setupMode
544
547
  };
@@ -4,14 +4,17 @@ import { StandaloneServices as w } from "monaco-editor/esm/vs/editor/standalone/
4
4
  import "monaco-editor/esm/vs/editor/standalone/common/standaloneTheme.js";
5
5
  import { IHoverService as m } from "monaco-editor/esm/vs/platform/hover/browser/hover.js";
6
6
  import "monaco-editor/esm/vs/editor/common/languages/supports/tokenization.js";
7
+ import "monaco-editor/esm/vs/base/browser/dom.js";
8
+ import "monaco-editor/esm/vs/editor/browser/editorDom.js";
9
+ import "monaco-editor/esm/vs/editor/browser/controller/mouseTarget.js";
7
10
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
8
11
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
9
- v5.0.0-next.111 */
12
+ v5.0.0-next.113 */
10
13
  function g() {
11
14
  return !!window.MonacoEnvironment?.getWorker;
12
15
  }
13
- let a = "";
14
- const k = /* @__PURE__ */ new Map(), i = !1;
16
+ let i = "";
17
+ const k = /* @__PURE__ */ new Map(), a = !1;
15
18
  async function c(t, e, r) {
16
19
  if (r)
17
20
  return e ? e() : new Worker(t);
@@ -26,11 +29,11 @@ async function c(t, e, r) {
26
29
  type: "module"
27
30
  });
28
31
  }
29
- function S(t) {
32
+ function b(t) {
30
33
  if (g())
31
34
  return;
32
- j(), a = t;
33
- const e = `${a}/code-editor`, r = {
35
+ j(), i = t;
36
+ const e = `${i}/code-editor`, r = {
34
37
  arcade: `${e}/arcade.worker.js`,
35
38
  "arcgis-sql-expression": `${e}/sql-expr.worker.js`,
36
39
  html: `${e}/html.worker.js`,
@@ -65,12 +68,12 @@ function S(t) {
65
68
  }
66
69
  };
67
70
  window.MonacoEnvironment = {
68
- getWorker: async (u, n) => {
71
+ getWorker: async (p, n) => {
69
72
  const s = k.get(n);
70
73
  if (s)
71
- return await c(s, void 0, i);
72
- const { url: p, localWorker: d } = o[n] || o.default;
73
- return await c(p, d, i);
74
+ return await c(s, void 0, a);
75
+ const { url: u, localWorker: d } = o[n] || o.default;
76
+ return await c(u, d, a);
74
77
  }
75
78
  };
76
79
  }
@@ -78,14 +81,14 @@ let l = !1;
78
81
  function j() {
79
82
  l || (w.get(m), l = !0);
80
83
  }
81
- async function q() {
84
+ async function E() {
82
85
  return (await v()).getArcadeDiagnosticService();
83
86
  }
84
87
  async function v() {
85
88
  return await import("./arcade-mode.js");
86
89
  }
87
90
  export {
88
- q as a,
91
+ E as a,
89
92
  v as g,
90
- S as s
93
+ b as s
91
94
  };
@@ -4,7 +4,7 @@ import { IStandaloneThemeService as n } from "monaco-editor/esm/vs/editor/standa
4
4
  import { generateTokensCSSForColorMap as a } from "monaco-editor/esm/vs/editor/common/languages/supports/tokenization.js";
5
5
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
6
6
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
7
- v5.0.0-next.111 */
7
+ v5.0.0-next.113 */
8
8
  async function c(e, o) {
9
9
  return await (await i()).colorize(e, o, { tabSize: 2 });
10
10
  }
@@ -1,6 +1,6 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
3
- v5.0.0-next.111 */
3
+ v5.0.0-next.113 */
4
4
  const n = "cube";
5
5
  function u(e, t) {
6
6
  switch (e.type) {
@@ -18,7 +18,7 @@ import { filterApiLibraryForContext as ye } from "@arcgis/languages-api-utils";
18
18
  import { Emitter as E, Uri as j } from "monaco-editor";
19
19
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
20
20
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
21
- v5.0.0-next.111 */
21
+ v5.0.0-next.113 */
22
22
  function q(t) {
23
23
  return !!t && typeof t == "object" && "declaredClass" in t && typeof t.declaredClass == "string" && t.declaredClass.startsWith("esri.layers.") && D(t) && "queryFeatures" in t && typeof t.queryFeatures == "function";
24
24
  }
@@ -1,6 +1,6 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
3
- v5.0.0-next.111 */
3
+ v5.0.0-next.113 */
4
4
  function D() {
5
5
  return { async: !1, breaks: !1, extensions: null, gfm: !0, hooks: null, pedantic: !1, renderer: null, silent: !1, tokenizer: null, walkTokens: null };
6
6
  }
@@ -3,17 +3,20 @@ import "monaco-editor/esm/vs/editor/standalone/browser/standaloneServices.js";
3
3
  import "monaco-editor/esm/vs/editor/standalone/common/standaloneTheme.js";
4
4
  import "monaco-editor/esm/vs/platform/hover/browser/hover.js";
5
5
  import "monaco-editor/esm/vs/editor/common/languages/supports/tokenization.js";
6
+ import "monaco-editor/esm/vs/base/browser/dom.js";
7
+ import "monaco-editor/esm/vs/editor/browser/editorDom.js";
8
+ import "monaco-editor/esm/vs/editor/browser/controller/mouseTarget.js";
6
9
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
7
10
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
8
- v5.0.0-next.111 */
11
+ v5.0.0-next.113 */
9
12
  const r = async () => {
10
13
  const { editor: t } = await import("monaco-editor/esm/vs/editor/editor.api.js");
11
14
  return t;
12
15
  };
13
16
  let o = null;
14
- async function c() {
17
+ async function d() {
15
18
  return o ??= r(), await o;
16
19
  }
17
20
  export {
18
- c as i
21
+ d as i
19
22
  };
@@ -1,6 +1,6 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
3
- v5.0.0-next.111 */
3
+ v5.0.0-next.113 */
4
4
  const e = {
5
5
  "light-theme": { comment: "#606060", constant: "#9809C8", date: "#296389", identifier: "#0000B3", keyword: "#BF4900", number: "#136D3D", string: "#A31515", operator: "#9809C8", predefined: "#0000B3" },
6
6
  "dark-theme": { comment: "#BFBFBF", constant: "#CDBAEA", date: "#97A6CE", identifier: "#9FD4F3", keyword: "#EEAA5A", number: "#AAD04B", string: "#F2877B", operator: "#CDBAEA", predefined: "#9FD4F3" }
@@ -3,7 +3,7 @@ import { makeRuntime as e } from "@arcgis/lumina";
3
3
  import { trackAccess as s, createObservable as r, createTrackingTarget as a, runTracked as c } from "@arcgis/core/applications/Components/reactiveUtils.js";
4
4
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
5
5
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
6
- v5.0.0-next.111 */
6
+ v5.0.0-next.113 */
7
7
  const t = e({ defaultAssetPath: "https://jsdev.arcgis.com/5.0.0-next/coding-components/", hydratedAttribute: "hydrated" }), { customElement: n, getAssetPath: d, setAssetPath: i } = t;
8
8
  t.t = s;
9
9
  t.o = r;
@@ -4,7 +4,7 @@ import { fetchT9nStringsBundle as M } from "@arcgis/toolkit/intl";
4
4
  import { g as b } from "./runtime.js";
5
5
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
6
6
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
7
- v5.0.0-next.111 */
7
+ v5.0.0-next.113 */
8
8
  const x = (r) => {
9
9
  const e = r.variables[0], i = e && e.type === "featureSet" ? A(e) : void 0, { apiVersion: t, bundles: o, hiddenApiItems: s } = r.toEditorProfileDefinition();
10
10
  return {
@@ -1,8 +1,11 @@
1
- import { Emitter as S, languages as h } from "monaco-editor";
1
+ import { Emitter as S, languages as p } from "monaco-editor";
2
2
  import "monaco-editor/esm/vs/editor/standalone/browser/standaloneServices.js";
3
3
  import "monaco-editor/esm/vs/editor/standalone/common/standaloneTheme.js";
4
4
  import "monaco-editor/esm/vs/platform/hover/browser/hover.js";
5
5
  import "monaco-editor/esm/vs/editor/common/languages/supports/tokenization.js";
6
+ import "monaco-editor/esm/vs/base/browser/dom.js";
7
+ import "monaco-editor/esm/vs/editor/browser/editorDom.js";
8
+ import "monaco-editor/esm/vs/editor/browser/controller/mouseTarget.js";
6
9
  import { i as E } from "./monaco-importer.js";
7
10
  import { Deferred as m } from "@arcgis/toolkit/promise";
8
11
  import { a as d } from "./sql-expr-defaults.js";
@@ -11,8 +14,8 @@ import { rethrowError as g } from "@arcgis/toolkit/log";
11
14
  import { g as N } from "./sql-expr-service-accessors.js";
12
15
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
13
16
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
14
- v5.0.0-next.111 */
15
- let p = new m();
17
+ v5.0.0-next.113 */
18
+ let h = new m();
16
19
  class C {
17
20
  constructor(e) {
18
21
  this._defaults = e, this._worker = null, this._client = null, this._configChangeListener = this._defaults.onDidChange(() => this.stopWorker());
@@ -21,14 +24,14 @@ class C {
21
24
  this._configChangeListener.dispose(), this.stopWorker();
22
25
  }
23
26
  stopWorker() {
24
- this._worker && (this._worker.dispose(), this._worker = null, p = new m()), this._client = null;
27
+ this._worker && (this._worker.dispose(), this._worker = null, h = new m()), this._client = null;
25
28
  }
26
29
  /**
27
30
  * Wait for the worker to be ready.
28
31
  * @returns A promise that resolves when the worker is ready.
29
32
  */
30
33
  static async waitForWorker() {
31
- return await p.promise;
34
+ return await h.promise;
32
35
  }
33
36
  async _getClientProxy() {
34
37
  const e = await E();
@@ -39,7 +42,7 @@ class C {
39
42
  label: t,
40
43
  createData: { languageId: t },
41
44
  host: this._defaults.workerHost
42
- }), p.resolve(this._worker), this._client = this._worker.getProxy();
45
+ }), h.resolve(this._worker), this._client = this._worker.getProxy();
43
46
  }
44
47
  return await this._client;
45
48
  }
@@ -249,24 +252,24 @@ class D {
249
252
  }
250
253
  async provideCompletionItems(e, t) {
251
254
  try {
252
- const s = await this._worker(e.uri), n = e.getWordUntilPosition(t), r = {
255
+ const r = await this._worker(e.uri), n = e.getWordUntilPosition(t), s = {
253
256
  startLineNumber: t.lineNumber,
254
257
  endLineNumber: t.lineNumber,
255
258
  startColumn: n.startColumn,
256
259
  endColumn: n.endColumn
257
260
  }, c = this._defaults.getApiContextForModel(e.uri);
258
- return await s.doComplete(e.uri.toString(), r, t, c);
259
- } catch (s) {
260
- return g("SqlExprCompletionProvider")(s), { suggestions: [] };
261
+ return await r.doComplete(e.uri.toString(), s, t, c);
262
+ } catch (r) {
263
+ return g("SqlExprCompletionProvider")(r), { suggestions: [] };
261
264
  }
262
265
  }
263
266
  }
264
267
  class b {
265
268
  constructor(e, t, {
266
- defaults: s,
269
+ defaults: r,
267
270
  diagnosticService: n
268
271
  }) {
269
- this._languageId = e, this._worker = t, this._disposables = [], this._modelListeners = /* @__PURE__ */ new Map(), this._diagnosticsService = n, this._defaults = s, E().then((r) => {
272
+ this._languageId = e, this._worker = t, this._disposables = [], this._modelListeners = /* @__PURE__ */ new Map(), this._diagnosticsService = n, this._defaults = r, E().then((s) => {
270
273
  const c = (o) => {
271
274
  const i = o.getLanguageId();
272
275
  if (i !== this._languageId)
@@ -279,7 +282,7 @@ class b {
279
282
  this._modelListeners.set(o.uri.toString(), [w, I]), this._doValidate(o, i).catch(g("SqlExprDiagnosticsAdapter"));
280
283
  }, u = (o) => {
281
284
  const i = o.uri.toString();
282
- r.setModelMarkers(o, this._languageId, []);
285
+ s.setModelMarkers(o, this._languageId, []);
283
286
  const l = this._modelListeners.get(i);
284
287
  if (l) {
285
288
  for (; l.length; )
@@ -287,19 +290,19 @@ class b {
287
290
  this._modelListeners.delete(i);
288
291
  }
289
292
  };
290
- this._disposables.push(r.onDidCreateModel(c)), this._disposables.push(r.onWillDisposeModel((o) => u(o))), this._disposables.push(
291
- r.onDidChangeModelLanguage((o) => {
293
+ this._disposables.push(s.onDidCreateModel(c)), this._disposables.push(s.onWillDisposeModel((o) => u(o))), this._disposables.push(
294
+ s.onDidChangeModelLanguage((o) => {
292
295
  u(o.model), c(o.model);
293
296
  })
294
297
  ), this._disposables.push(
295
- s.onDidChange(() => {
296
- r.getModels().forEach((o) => {
298
+ r.onDidChange(() => {
299
+ s.getModels().forEach((o) => {
297
300
  o.getLanguageId() === this._languageId && (u(o), c(o));
298
301
  });
299
302
  })
300
303
  ), this._disposables.push(
301
- s.onModelContextDidChange((o) => {
302
- r.getModels().forEach((i) => {
304
+ r.onModelContextDidChange((o) => {
305
+ s.getModels().forEach((i) => {
303
306
  i.getLanguageId() === this._languageId && i.uri.toString() === o && this._doValidate(i, this._languageId).catch(g("SqlExprDiagnosticsAdapter"));
304
307
  });
305
308
  })
@@ -307,22 +310,22 @@ class b {
307
310
  dispose: () => {
308
311
  this._modelListeners.forEach((o) => o.forEach((i) => i.dispose())), this._modelListeners.clear();
309
312
  }
310
- }), r.getModels().forEach(c);
313
+ }), s.getModels().forEach(c);
311
314
  });
312
315
  }
313
316
  async _doValidate(e, t) {
314
- const s = await E();
317
+ const r = await E();
315
318
  if (e.isAttachedToEditor())
316
319
  try {
317
- const n = await this._worker(e.uri), r = this._defaults.getApiContextForModel(e.uri), c = await n.doValidation(e.uri.toString(), r);
318
- this._diagnosticsService.fireDiagnosticsChange(e.uri, c), s.setModelMarkers(e, t, c);
320
+ const n = await this._worker(e.uri), s = this._defaults.getApiContextForModel(e.uri), c = await n.doValidation(e.uri.toString(), s);
321
+ this._diagnosticsService.fireDiagnosticsChange(e.uri, c), r.setModelMarkers(e, t, c);
319
322
  } catch (n) {
320
323
  g("SqlExprDiagnosticsAdapter")(n);
321
324
  }
322
325
  }
323
326
  }
324
327
  let _;
325
- async function K(...a) {
328
+ async function X(...a) {
326
329
  return await C.waitForWorker(), await new Promise((e, t) => {
327
330
  if (!_) {
328
331
  t(new Error("sql expression worker not registered!"));
@@ -352,20 +355,20 @@ class O {
352
355
  }
353
356
  }
354
357
  const k = new O();
355
- async function Y() {
358
+ async function $() {
356
359
  return await N(), k;
357
360
  }
358
- function Z(a) {
361
+ function z(a) {
359
362
  const e = new C(a), t = async (...n) => await e.getLanguageServiceWorker(...n);
360
- _ = t, h.setMonarchTokensProvider(d.languageId, M), h.setLanguageConfiguration(d.languageId, R);
361
- const s = new D(t, d);
362
- h.registerCompletionItemProvider(d.languageId, s), new b(a.languageId, t, {
363
+ _ = t, p.setMonarchTokensProvider(d.languageId, M), p.setLanguageConfiguration(d.languageId, R);
364
+ const r = new D(t, d);
365
+ p.registerCompletionItemProvider(d.languageId, r), new b(a.languageId, t, {
363
366
  defaults: a,
364
367
  diagnosticService: k
365
368
  });
366
369
  }
367
370
  export {
368
- Y as getSqlExprDiagnosticService,
369
- K as getSqlExprWorker,
370
- Z as setupMode
371
+ $ as getSqlExprDiagnosticService,
372
+ X as getSqlExprWorker,
373
+ z as setupMode
371
374
  };
@@ -1,6 +1,6 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
3
- v5.0.0-next.111 */
3
+ v5.0.0-next.113 */
4
4
  async function t() {
5
5
  return await import("./sql-expr-mode.js");
6
6
  }
@@ -2,7 +2,7 @@ import { makeT9nController as o } from "@arcgis/lumina/controllers";
2
2
  import { g as t } from "./runtime.js";
3
3
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
4
4
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
5
- v5.0.0-next.111 */
5
+ v5.0.0-next.113 */
6
6
  const s = o(t);
7
7
  export {
8
8
  s as u
@@ -2,7 +2,7 @@ import { createFilterExpression as d } from "@arcgis/toolkit/string";
2
2
  import { format as f } from "@arcgis/arcade-languageservice";
3
3
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
4
4
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
5
- v5.0.0-next.111 */
5
+ v5.0.0-next.113 */
6
6
  function b(e, r, s, u) {
7
7
  if (!r)
8
8
  return [];