@arcgis/coding-components 5.0.0-next.112 → 5.0.0-next.114
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.
- package/dist/addons.js +1 -1
- package/dist/cdn/{VQ2JSD3J.js → 2GCQFUMI.js} +2 -2
- package/dist/cdn/{W2UGPDJ4.js → 4LHBHN5J.js} +2 -2
- package/dist/cdn/{TRANGKBJ.js → 4Y5YSMOE.js} +2 -2
- package/dist/cdn/{KU67M6PI.js → 5CZRMWEI.js} +2 -2
- package/dist/cdn/{ZYK7M7LM.js → 5D7BZ4AJ.js} +123 -123
- package/dist/cdn/{5ZGX5XTK.js → 5XRXNGIJ.js} +2 -2
- package/dist/cdn/{77JGK5GN.js → 67ARLOL3.js} +2 -2
- package/dist/cdn/{GBTWZ3XD.js → 67ZTNYDR.js} +2 -2
- package/dist/cdn/{GI6HWCLC.js → 6HZN5K7C.js} +1 -1
- package/dist/cdn/{RKOC5IRE.js → AW57CO3G.js} +2 -2
- package/dist/cdn/BLWQ7QOL.js +4 -0
- package/dist/cdn/{TDGS2O6Y.js → C62MXLP6.js} +1 -1
- package/dist/{monacoStyles.js → cdn/DR2NYKLD.js} +3 -6
- package/dist/cdn/{QEFMGE4W.js → EAJJ7BYC.js} +2 -2
- package/dist/cdn/{Z2TSI7BE.js → ELX57OKG.js} +1 -1
- package/dist/cdn/FBPV75KB.js +4 -0
- package/dist/cdn/FXBIE4TU.js +4 -0
- package/dist/cdn/GELX4TL4.js +4 -0
- package/dist/cdn/{2ICHDIM4.js → GZAZQWHH.js} +2 -2
- package/dist/cdn/{PCKTIN6B.js → HZPKRD5Y.js} +2 -2
- package/dist/cdn/{FXYQAPUS.js → IGN4DYX6.js} +1 -1
- package/dist/cdn/{AER7L4K2.js → JX5Z5PZM.js} +2 -2
- package/dist/cdn/{PCPWZFIQ.js → JYZFOYLT.js} +1 -1
- package/dist/cdn/{WJDBXY4M.js → KRZYNZ3L.js} +1 -1
- package/dist/cdn/{BJ7H7ILG.js → LVRGJKTO.js} +2 -2
- package/dist/cdn/{GAFEHBI4.js → N4HK6QPY.js} +1 -1
- package/dist/cdn/{MACRVGYV.js → NGMWEFSR.js} +2 -2
- package/dist/cdn/{PGHGI33U.js → NNVZSNRG.js} +2 -2
- package/dist/cdn/{Z464KXFF.js → NOJYWNV6.js} +2 -2
- package/dist/cdn/{TDNUUDEQ.js → NR6Y3SMQ.js} +2 -2
- package/dist/cdn/{QSDHTP2O.js → O2RLIM4Z.js} +2 -2
- package/dist/cdn/OCXQUJHW.js +6 -0
- package/dist/cdn/{73A4C5J2.js → OTELJGV3.js} +18 -18
- package/dist/cdn/{WOHUDG7Y.js → OTTHE5A7.js} +2 -2
- package/dist/cdn/P6PEG6MN.js +4 -0
- package/dist/cdn/{GSD5MJRA.js → Q7T6IG6A.js} +3 -3
- package/dist/cdn/QGA5LYZF.js +4 -0
- package/dist/cdn/R7M5X6VK.js +4 -0
- package/dist/cdn/{TUHLHREY.js → RVD7TQR3.js} +2 -2
- package/dist/cdn/SZPTSVKI.js +4 -0
- package/dist/cdn/{KGCVH6T7.js → TDWKY5BJ.js} +1 -1
- package/dist/cdn/TINATS7X.js +4 -0
- package/dist/cdn/TOESJKP6.js +4 -0
- package/dist/cdn/UYKE4EFV.js +4 -0
- package/dist/cdn/{VII3DH4T.js → VCLSKCOF.js} +2 -2
- package/dist/cdn/{KPOAYJOJ.js → VJTAK7CX.js} +2 -2
- package/dist/cdn/{7GYPGUXR.js → VWGDPBT6.js} +2 -2
- package/dist/cdn/{KQZKX2SL.js → YEA4EWQC.js} +2 -2
- package/dist/cdn/assets/code-editor/sql-expr.worker.js +2 -2
- package/dist/cdn/index.js +2 -7
- package/dist/cdn/main.css +1 -1
- package/dist/chunks/arcade-contribution.js +8 -5
- package/dist/chunks/arcade-defaults.js +1 -1
- package/dist/chunks/arcade-executor.js +1 -1
- package/dist/chunks/arcade-mode.js +21 -18
- package/dist/chunks/arcade-service-accessors.js +16 -13
- package/dist/chunks/colorize.js +1 -1
- package/dist/chunks/fields.js +1 -1
- package/dist/chunks/language-defaults-base.js +1 -1
- package/dist/chunks/markdown.js +1 -1
- package/dist/chunks/monaco-importer.js +6 -3
- package/dist/chunks/monaco-theme.js +1 -1
- package/dist/chunks/runtime.js +1 -1
- package/dist/chunks/sql-expr-defaults.js +1 -1
- package/dist/chunks/sql-expr-mode.js +35 -32
- package/dist/chunks/sql-expr-service-accessors.js +1 -1
- package/dist/chunks/useT9n.js +1 -1
- package/dist/chunks/utilities.js +1 -1
- package/dist/components/arcgis-arcade-coding-assistant/customElement.js +13 -13
- package/dist/components/arcgis-arcade-editor/customElement.js +41 -42
- package/dist/components/arcgis-arcade-editor/index.d.ts +1 -0
- package/dist/components/arcgis-arcade-editor/index.js +1 -0
- package/dist/components/arcgis-arcade-results/customElement.js +1 -1
- package/dist/components/arcgis-arcade-suggestions/customElement.js +5 -5
- package/dist/components/arcgis-code-editor/customElement.d.ts +1 -1
- package/dist/components/arcgis-code-editor/customElement.js +269 -60
- package/dist/components/arcgis-code-editor-shell/customElement.d.ts +17 -0
- package/dist/components/arcgis-code-editor-shell/customElement.js +19 -0
- package/dist/components/arcgis-code-editor-shell/index.d.ts +1 -0
- package/dist/components/arcgis-code-editor-shell/index.js +1 -0
- package/dist/components/arcgis-code-viewer/customElement.js +1 -1
- package/dist/components/arcgis-editor-variables/customElement.js +1 -1
- package/dist/components/arcgis-language-api-panel/customElement.js +11 -11
- package/dist/components/arcgis-sql-expression-editor/customElement.js +15 -19
- package/dist/components/arcgis-sql-expression-editor/index.d.ts +1 -0
- package/dist/components/arcgis-sql-expression-editor/index.js +1 -0
- package/dist/components/arcgis-sql-expression-fields/customElement.js +1 -1
- package/dist/docs/api.json +126 -5
- package/dist/docs/docs.json +123 -5
- package/dist/docs/vscode.css-custom-data.json +30 -1
- package/dist/docs/vscode.html-custom-data.json +11 -0
- package/dist/docs/web-types.json +64 -2
- package/dist/index.d.ts +5 -0
- package/dist/index.js +1 -1
- package/dist/loader.js +5 -4
- package/dist/types/lumina.d.ts +5 -0
- package/dist/types/preact.d.ts +6 -0
- package/dist/types/react.d.ts +7 -0
- package/dist/types/stencil.d.ts +5 -0
- package/dist/utils/internal-monaco-apis.d.ts +67 -0
- package/dist/utils/monaco-importer.d.ts +3 -0
- package/dist/utils/monaco-typings.d.ts +3 -0
- package/dist/utils/patch-monaco.d.ts +16 -0
- package/package.json +5 -5
- package/dist/cdn/22SZEPF4.js +0 -4
- package/dist/cdn/AT42Z3HP.js +0 -4
- package/dist/cdn/AW76B7FW.js +0 -4
- package/dist/cdn/BEFETNPF.js +0 -4
- package/dist/cdn/CX2SSXG4.js +0 -4
- package/dist/cdn/EVYUD4NL.js +0 -4
- package/dist/cdn/HZ67L7NJ.js +0 -4
- package/dist/cdn/K6MDPJED.js +0 -4
- package/dist/cdn/KQP2PJVU.js +0 -4
- package/dist/cdn/MRZLSJ6G.js +0 -6
- package/dist/cdn/QS3R73AT.js +0 -4
- package/dist/cdn/WZYVKC6H.js +0 -4
- package/dist/cdn/YTXEQJJ6.js +0 -4
- package/dist/chunks/editor.js +0 -8
- 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.
|
|
17
|
+
v5.0.0-next.114 */
|
|
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
|
|
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
|
|
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
|
-
|
|
94
|
-
|
|
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.
|
|
8
|
+
v5.0.0-next.114 */
|
|
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.
|
|
4
|
+
v5.0.0-next.114 */
|
|
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
|
|
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.
|
|
17
|
+
v5.0.0-next.114 */
|
|
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
|
|
327
|
+
case h.Error:
|
|
325
328
|
return p.Error;
|
|
326
|
-
case
|
|
329
|
+
case h.Warning:
|
|
327
330
|
return p.Warning;
|
|
328
|
-
case
|
|
331
|
+
case h.Information:
|
|
329
332
|
return p.Info;
|
|
330
|
-
case
|
|
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
|
|
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:
|
|
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:
|
|
435
|
-
replace:
|
|
436
|
-
} : a.range =
|
|
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:
|
|
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
|
|
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
|
|
527
|
+
function oe() {
|
|
525
528
|
return I;
|
|
526
529
|
}
|
|
527
|
-
function
|
|
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
|
-
|
|
542
|
-
|
|
543
|
-
|
|
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.
|
|
12
|
+
v5.0.0-next.114 */
|
|
10
13
|
function g() {
|
|
11
14
|
return !!window.MonacoEnvironment?.getWorker;
|
|
12
15
|
}
|
|
13
|
-
let
|
|
14
|
-
const k = /* @__PURE__ */ new Map(),
|
|
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
|
|
32
|
+
function b(t) {
|
|
30
33
|
if (g())
|
|
31
34
|
return;
|
|
32
|
-
j(),
|
|
33
|
-
const e = `${
|
|
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 (
|
|
71
|
+
getWorker: async (p, n) => {
|
|
69
72
|
const s = k.get(n);
|
|
70
73
|
if (s)
|
|
71
|
-
return await c(s, void 0,
|
|
72
|
-
const { url:
|
|
73
|
-
return await c(
|
|
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
|
|
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
|
-
|
|
91
|
+
E as a,
|
|
89
92
|
v as g,
|
|
90
|
-
|
|
93
|
+
b as s
|
|
91
94
|
};
|
package/dist/chunks/colorize.js
CHANGED
|
@@ -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.
|
|
7
|
+
v5.0.0-next.114 */
|
|
8
8
|
async function c(e, o) {
|
|
9
9
|
return await (await i()).colorize(e, o, { tabSize: 2 });
|
|
10
10
|
}
|
package/dist/chunks/fields.js
CHANGED
|
@@ -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.
|
|
21
|
+
v5.0.0-next.114 */
|
|
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
|
}
|
package/dist/chunks/markdown.js
CHANGED
|
@@ -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.
|
|
3
|
+
v5.0.0-next.114 */
|
|
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.
|
|
11
|
+
v5.0.0-next.114 */
|
|
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
|
|
17
|
+
async function d() {
|
|
15
18
|
return o ??= r(), await o;
|
|
16
19
|
}
|
|
17
20
|
export {
|
|
18
|
-
|
|
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.
|
|
3
|
+
v5.0.0-next.114 */
|
|
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" }
|
package/dist/chunks/runtime.js
CHANGED
|
@@ -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.
|
|
6
|
+
v5.0.0-next.114 */
|
|
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.
|
|
7
|
+
v5.0.0-next.114 */
|
|
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
|
|
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.
|
|
15
|
-
let
|
|
17
|
+
v5.0.0-next.114 */
|
|
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,
|
|
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
|
|
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
|
-
}),
|
|
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
|
|
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
|
|
259
|
-
} catch (
|
|
260
|
-
return g("SqlExprCompletionProvider")(
|
|
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:
|
|
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 =
|
|
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
|
-
|
|
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(
|
|
291
|
-
|
|
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
|
-
|
|
296
|
-
|
|
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
|
-
|
|
302
|
-
|
|
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
|
-
}),
|
|
313
|
+
}), s.getModels().forEach(c);
|
|
311
314
|
});
|
|
312
315
|
}
|
|
313
316
|
async _doValidate(e, t) {
|
|
314
|
-
const
|
|
317
|
+
const r = await E();
|
|
315
318
|
if (e.isAttachedToEditor())
|
|
316
319
|
try {
|
|
317
|
-
const n = await this._worker(e.uri),
|
|
318
|
-
this._diagnosticsService.fireDiagnosticsChange(e.uri, 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
|
|
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
|
|
358
|
+
async function $() {
|
|
356
359
|
return await N(), k;
|
|
357
360
|
}
|
|
358
|
-
function
|
|
361
|
+
function z(a) {
|
|
359
362
|
const e = new C(a), t = async (...n) => await e.getLanguageServiceWorker(...n);
|
|
360
|
-
_ = t,
|
|
361
|
-
const
|
|
362
|
-
|
|
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
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
+
$ as getSqlExprDiagnosticService,
|
|
372
|
+
X as getSqlExprWorker,
|
|
373
|
+
z as setupMode
|
|
371
374
|
};
|
package/dist/chunks/useT9n.js
CHANGED
|
@@ -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.
|
|
5
|
+
v5.0.0-next.114 */
|
|
6
6
|
const s = o(t);
|
|
7
7
|
export {
|
|
8
8
|
s as u
|
package/dist/chunks/utilities.js
CHANGED
|
@@ -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.
|
|
5
|
+
v5.0.0-next.114 */
|
|
6
6
|
function b(e, r, s, u) {
|
|
7
7
|
if (!r)
|
|
8
8
|
return [];
|