@arcgis/coding-components 5.0.0-next.39 → 5.0.0-next.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/addons.js +1 -1
- package/dist/cdn/3WIRROBH.js +4 -0
- package/dist/cdn/{AFUBHK37.js → 42JQRIXR.js} +5 -5
- package/dist/cdn/4R4DUTCV.js +6 -0
- package/dist/cdn/5PJI5QQB.js +37 -0
- package/dist/cdn/{A3HSJCES.js → 5UEEUMXL.js} +2 -2
- package/dist/cdn/6CKRGIHZ.js +6 -0
- package/dist/cdn/7EJZH64Z.js +4 -0
- package/dist/cdn/7XW6IKKV.js +4 -0
- package/dist/cdn/{IQRXXWGC.js → A3TLL6LG.js} +2 -2
- package/dist/cdn/AKWJLYC3.js +4 -0
- package/dist/cdn/ASRHMURK.js +4 -0
- package/dist/cdn/{V2PRLYOK.js → BMXVKJ7B.js} +2 -2
- package/dist/cdn/{32D5TXZE.js → CJ65XLTF.js} +2 -2
- package/dist/cdn/{22UJ2NCC.js → D726IUEN.js} +2 -2
- package/dist/cdn/DRX5YPAV.js +4 -0
- package/dist/cdn/DUJT7B4V.js +4 -0
- package/dist/cdn/{LWCU6T2S.js → E2PW5KNS.js} +2 -2
- package/dist/cdn/FF6CRCZF.js +4 -0
- package/dist/cdn/{5A2OAIPG.js → FYVNN5SL.js} +2 -2
- package/dist/cdn/GACCOEJE.js +4 -0
- package/dist/cdn/GUM3FUHK.js +4 -0
- package/dist/cdn/{XQUZTH64.js → HPZKKREG.js} +2 -2
- package/dist/cdn/{HW6JQO5U.js → I2ZZVQNR.js} +2 -2
- package/dist/cdn/{65R5LFH4.js → IDPVSJSA.js} +1 -1
- package/dist/cdn/JJXU7RKH.js +4 -0
- package/dist/cdn/KVOGU23G.js +4 -0
- package/dist/cdn/MG7IUFZ5.js +4 -0
- package/dist/cdn/{B7UCVBR4.js → MPI3VJ27.js} +2 -2
- package/dist/cdn/{463DHUPJ.js → NRSCYJ4X.js} +2 -2
- package/dist/cdn/{MSV35DG3.js → NSG3IIH4.js} +1 -1
- package/dist/cdn/{SO6A33RQ.js → QB4B762H.js} +1 -1
- package/dist/cdn/SNG6BXOJ.js +4 -0
- package/dist/cdn/TA3A544D.js +69 -0
- package/dist/cdn/TDR5QOYK.js +4 -0
- package/dist/cdn/{YVZP32LA.js → UNGROWHP.js} +2 -2
- package/dist/cdn/{NBILS2PA.js → UOMZGMYC.js} +2 -2
- package/dist/cdn/V3QS3R7T.js +6 -0
- package/dist/cdn/{LUBHSH6S.js → VOYE3SWE.js} +15 -15
- package/dist/cdn/{PNX3P5LX.js → VRR5O4LN.js} +2 -2
- package/dist/cdn/{5AE3XQBB.js → W3FWYOGY.js} +1 -1
- package/dist/cdn/WB62GWRN.js +4 -0
- package/dist/cdn/{GYFX6FDB.js → WS4TV7BI.js} +2 -2
- package/dist/cdn/{6DXNKA5R.js → WXEVTZGW.js} +2 -2
- package/dist/cdn/{WPDOXZMT.js → XNU7TDA3.js} +2 -2
- package/dist/cdn/{KMM2L2UC.js → XSTPZUAO.js} +2 -2
- package/dist/cdn/{QV5P6IW2.js → XV2IY5HJ.js} +2 -2
- package/dist/cdn/{DJBX4N35.js → YIFRYPQP.js} +2 -2
- package/dist/cdn/assets/code-editor/sql-expr.worker.js +2107 -2107
- package/dist/cdn/index.js +3 -3
- package/dist/cdn/main.css +1 -1
- package/dist/chunks/arcade-contribution.js +97 -0
- package/dist/chunks/arcade-defaults.js +1 -1
- package/dist/chunks/arcade-executor.js +1 -1
- package/dist/chunks/arcade-mode.js +1 -1
- package/dist/chunks/arcade-service-accessors.js +75 -6
- package/dist/chunks/colorize.js +26 -0
- package/dist/chunks/editor.js +1 -1
- package/dist/chunks/fields.js +1 -1
- package/dist/chunks/language-defaults-base.js +37 -36
- package/dist/chunks/markdown.js +64 -91
- package/dist/chunks/monaco-importer.js +8 -93
- package/dist/chunks/runtime.js +1 -1
- package/dist/chunks/sql-expr-defaults.js +1 -1
- package/dist/chunks/sql-expr-mode.js +1 -1
- package/dist/chunks/sql-expr-service-accessors.js +1 -1
- package/dist/chunks/useT9n.js +1 -1
- package/dist/chunks/utilities.js +90 -0
- package/dist/components/arcgis-arcade-coding-assistant/customElement.js +3 -3
- package/dist/components/arcgis-arcade-coding-assistant/index.d.ts +1 -0
- package/dist/components/arcgis-arcade-coding-assistant/index.js +1 -0
- package/dist/components/arcgis-arcade-editor/customElement.js +2 -3
- package/dist/components/arcgis-arcade-results/customElement.js +1 -1
- package/dist/components/arcgis-arcade-suggestions/customElement.js +6 -5
- package/dist/components/arcgis-code-editor/customElement.js +3 -3
- package/dist/components/arcgis-code-viewer/customElement.d.ts +63 -0
- package/dist/components/arcgis-code-viewer/customElement.js +119 -0
- package/dist/components/arcgis-code-viewer/index.d.ts +1 -0
- package/dist/components/arcgis-code-viewer/index.js +1 -0
- package/dist/components/arcgis-editor-variables/customElement.js +1 -1
- package/dist/components/arcgis-language-api-panel/customElement.js +24 -28
- package/dist/components/arcgis-sql-expression-editor/customElement.js +1 -1
- package/dist/components/arcgis-sql-expression-fields/customElement.js +1 -1
- package/dist/docs/api.json +144 -2
- package/dist/docs/docs.json +116 -2
- package/dist/docs/vscode.html-custom-data.json +22 -0
- package/dist/docs/web-types.json +40 -1
- package/dist/index.d.ts +5 -0
- package/dist/index.js +1 -1
- package/dist/loader.js +5 -4
- package/dist/monacoStyles.js +1 -1
- package/dist/types/lumina.d.ts +5 -0
- package/dist/types/preact.d.ts +6 -0
- package/dist/types/preact10.d.ts +7 -0
- package/dist/types/react.d.ts +7 -0
- package/dist/types/stencil.d.ts +5 -0
- package/dist/utils/colorize.d.ts +1 -1
- package/dist/utils/monaco-languages.d.ts +4 -0
- package/package.json +6 -5
- package/dist/cdn/36J7OXKL.js +0 -4
- package/dist/cdn/5HDJXUGY.js +0 -4
- package/dist/cdn/77G2EUBD.js +0 -4
- package/dist/cdn/BC25UYFG.js +0 -4
- package/dist/cdn/BEW42V7C.js +0 -4
- package/dist/cdn/DQFS5S4N.js +0 -4
- package/dist/cdn/FNKWDH6V.js +0 -4
- package/dist/cdn/FZYOFX2D.js +0 -6
- package/dist/cdn/GQJM6PDN.js +0 -104
- package/dist/cdn/IJJXIW5Z.js +0 -4
- package/dist/cdn/KFRXV3AL.js +0 -4
- package/dist/cdn/LPXQ3NWM.js +0 -4
- package/dist/cdn/M4276KFE.js +0 -4
- package/dist/cdn/SPZVHSF2.js +0 -4
- package/dist/cdn/TIYSNFGO.js +0 -4
- package/dist/cdn/USHS6Y7V.js +0 -6
- package/dist/cdn/X2NBZ5GC.js +0 -4
- package/dist/cdn/XAAE3RER.js +0 -4
- package/dist/chunks/setup-monaco.js +0 -74
- package/dist/chunks/sql-expr-contribution.js +0 -85
package/dist/cdn/main.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@layer{:not([hydrated]):is(arcgis-arcade-editor,arcgis-code-editor,arcgis-sql-expression-editor){visibility:hidden}:root{--arcgis-coding-components-border: 1px solid var(--calcite-color-border-3);--arcgis-coding-components-background-color: var(--calcite-color-foreground-1);--arcgis-coding-components-side-action-bar-max-w: 25%;--arcgis-coding-components-code-editor-side-panel-w: 600px;--arcgis-coding-components-code-editor-side-panel-max-w: 45%;--arcgis-editor-comment: #606060;--arcgis-editor-constant: #9809C8;--arcgis-editor-date: #296389;--arcgis-editor-identifier: #0000B3;--arcgis-editor-keyword: #BF4900;--arcgis-editor-number: #136D3D;--arcgis-editor-string: #A31515}.calcite-mode-dark{--arcgis-editor-comment: #BFBFBF;--arcgis-editor-constant: #CDBAEA;--arcgis-editor-date: #97A6CE;--arcgis-editor-identifier: #9FD4F3;--arcgis-editor-keyword: #EEAA5A;--arcgis-editor-number: #AAD04B;--arcgis-editor-string: #F2877B}}
|
|
1
|
+
@layer{:not([hydrated]):is(arcgis-arcade-editor,arcgis-code-editor,arcgis-code-viewer,arcgis-sql-expression-editor){visibility:hidden}:root{--arcgis-coding-components-border: 1px solid var(--calcite-color-border-3);--arcgis-coding-components-background-color: var(--calcite-color-foreground-1);--arcgis-coding-components-side-action-bar-max-w: 25%;--arcgis-coding-components-code-editor-side-panel-w: 600px;--arcgis-coding-components-code-editor-side-panel-max-w: 45%;--arcgis-editor-comment: #606060;--arcgis-editor-constant: #9809C8;--arcgis-editor-date: #296389;--arcgis-editor-identifier: #0000B3;--arcgis-editor-keyword: #BF4900;--arcgis-editor-number: #136D3D;--arcgis-editor-string: #A31515}.calcite-mode-dark{--arcgis-editor-comment: #BFBFBF;--arcgis-editor-constant: #CDBAEA;--arcgis-editor-date: #97A6CE;--arcgis-editor-identifier: #9FD4F3;--arcgis-editor-keyword: #EEAA5A;--arcgis-editor-number: #AAD04B;--arcgis-editor-string: #F2877B}}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { i as g } from "./monaco-importer.js";
|
|
2
|
+
import { Uri as f, languages as a } from "monaco-editor";
|
|
3
|
+
import "monaco-editor/esm/vs/editor/standalone/browser/standaloneServices.js";
|
|
4
|
+
import "monaco-editor/esm/vs/editor/standalone/common/standaloneTheme.js";
|
|
5
|
+
import "monaco-editor/esm/vs/editor/common/languages/supports/tokenization.js";
|
|
6
|
+
import { a as t } from "./sql-expr-defaults.js";
|
|
7
|
+
import { g as p } from "./sql-expr-service-accessors.js";
|
|
8
|
+
import { b as n } from "./arcade-defaults.js";
|
|
9
|
+
import { g as l } from "./arcade-service-accessors.js";
|
|
10
|
+
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
11
|
+
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
12
|
+
v5.0.0-next.41 */
|
|
13
|
+
const h = ["arcade", "arcgis-sql-expression"], i = /* @__PURE__ */ new Set(), d = /* @__PURE__ */ new Map();
|
|
14
|
+
function c(e) {
|
|
15
|
+
let r = d.get(e);
|
|
16
|
+
return r || (r = Promise.withResolvers(), d.set(e, r)), r;
|
|
17
|
+
}
|
|
18
|
+
function u(e) {
|
|
19
|
+
c(e).resolve();
|
|
20
|
+
}
|
|
21
|
+
function b(e) {
|
|
22
|
+
return h.includes(e) ? c(e).promise : Promise.resolve();
|
|
23
|
+
}
|
|
24
|
+
function m(e, r) {
|
|
25
|
+
return () => {
|
|
26
|
+
i.has(e) || i.add(e), r();
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
async function q(e) {
|
|
30
|
+
if (i.has(e))
|
|
31
|
+
return;
|
|
32
|
+
(await g()).createModel("", e, f.parse("")).dispose();
|
|
33
|
+
}
|
|
34
|
+
const k = {
|
|
35
|
+
"light-theme": { comment: "#606060", constant: "#9809C8", date: "#296389", identifier: "#0000B3", keyword: "#BF4900", number: "#136D3D", string: "#A31515", operator: "#9809C8", predefined: "#0000B3" },
|
|
36
|
+
"dark-theme": { comment: "#BFBFBF", constant: "#CDBAEA", date: "#97A6CE", identifier: "#9FD4F3", keyword: "#EEAA5A", number: "#AAD04B", string: "#F2877B", operator: "#CDBAEA", predefined: "#9FD4F3" }
|
|
37
|
+
};
|
|
38
|
+
w();
|
|
39
|
+
function w() {
|
|
40
|
+
g().then((e) => {
|
|
41
|
+
["light", "dark"].forEach((r) => {
|
|
42
|
+
const s = r === "light" ? "vs" : "vs-dark", o = k[`${r}-theme`];
|
|
43
|
+
e.defineTheme(s, {
|
|
44
|
+
base: s,
|
|
45
|
+
inherit: !0,
|
|
46
|
+
rules: [
|
|
47
|
+
{ token: "comment.arcgis", foreground: o.comment },
|
|
48
|
+
{ token: "constant.arcgis", foreground: o.constant },
|
|
49
|
+
{ token: "keyword.arcgis", foreground: o.keyword },
|
|
50
|
+
{ token: "identifier.arcgis", foreground: o.identifier },
|
|
51
|
+
{ token: "number.arcgis", foreground: o.number },
|
|
52
|
+
{ token: "string.arcgis", foreground: o.string },
|
|
53
|
+
{ token: "operator.arcgis", foreground: o.operator },
|
|
54
|
+
{ token: "predefined.arcgis", foreground: o.predefined },
|
|
55
|
+
{ token: "date.arcgis", foreground: o.date }
|
|
56
|
+
],
|
|
57
|
+
colors: {}
|
|
58
|
+
});
|
|
59
|
+
});
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
a.register({
|
|
63
|
+
id: t.languageId,
|
|
64
|
+
aliases: ["EsiSqlExpression", "sql-expression"],
|
|
65
|
+
extensions: [".sql-expression"],
|
|
66
|
+
mimetypes: ["application/sql-expression"]
|
|
67
|
+
});
|
|
68
|
+
a.onLanguage(
|
|
69
|
+
t.languageId,
|
|
70
|
+
m(t.languageId, () => {
|
|
71
|
+
p().then((e) => {
|
|
72
|
+
e.setupMode(t), u(t.languageId);
|
|
73
|
+
}).catch((e) => {
|
|
74
|
+
throw e;
|
|
75
|
+
});
|
|
76
|
+
})
|
|
77
|
+
);
|
|
78
|
+
a.register({
|
|
79
|
+
id: n.languageId,
|
|
80
|
+
aliases: ["Arcade", "arcade"],
|
|
81
|
+
extensions: [".arc"],
|
|
82
|
+
mimetypes: ["application/arcade"]
|
|
83
|
+
});
|
|
84
|
+
a.onLanguage(
|
|
85
|
+
n.languageId,
|
|
86
|
+
m(n.languageId, () => {
|
|
87
|
+
l().then((e) => {
|
|
88
|
+
e.setupMode(n), u(n.languageId);
|
|
89
|
+
}).catch((e) => {
|
|
90
|
+
throw e;
|
|
91
|
+
});
|
|
92
|
+
})
|
|
93
|
+
);
|
|
94
|
+
export {
|
|
95
|
+
q as s,
|
|
96
|
+
b as w
|
|
97
|
+
};
|
|
@@ -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.41 */
|
|
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.41 */
|
|
5
5
|
const G = "https://developers.arcgis.com/arcade/", O = 100, A = 100;
|
|
6
6
|
function u(t) {
|
|
7
7
|
return !!t && typeof t == "object" && "declaredRootClass" in t && typeof t.declaredRootClass == "string" && t.declaredRootClass === "esri.arcade.featureset.support.FeatureSet";
|
|
@@ -9,7 +9,7 @@ import { debounce as F } from "@arcgis/toolkit/function";
|
|
|
9
9
|
import { Deferred as _ } from "@arcgis/toolkit/promise";
|
|
10
10
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
11
11
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
12
|
-
v5.0.0-next.
|
|
12
|
+
v5.0.0-next.41 */
|
|
13
13
|
const S = [
|
|
14
14
|
"<=",
|
|
15
15
|
">=",
|
|
@@ -1,13 +1,82 @@
|
|
|
1
|
+
import d from "@arcgis/core/request.js";
|
|
1
2
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
3
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
3
|
-
v5.0.0-next.
|
|
4
|
-
|
|
5
|
-
return
|
|
4
|
+
v5.0.0-next.41 */
|
|
5
|
+
function w() {
|
|
6
|
+
return !!window.MonacoEnvironment?.getWorker;
|
|
6
7
|
}
|
|
7
|
-
|
|
8
|
+
let a = "";
|
|
9
|
+
const f = /* @__PURE__ */ new Map(), i = !1;
|
|
10
|
+
async function c(t, e, r) {
|
|
11
|
+
if (r)
|
|
12
|
+
return e ? e() : new Worker(t);
|
|
13
|
+
const o = window.location.origin;
|
|
14
|
+
if (new URL(t, window.location.href).origin !== o) {
|
|
15
|
+
const s = await d(t, { responseType: "text" });
|
|
16
|
+
return new Worker(URL.createObjectURL(new Blob([s.data], { type: "text/javascript" })), {
|
|
17
|
+
type: "module"
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
return new Worker(t, {
|
|
21
|
+
type: "module"
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
function j(t) {
|
|
25
|
+
if (w())
|
|
26
|
+
return;
|
|
27
|
+
a = t;
|
|
28
|
+
const e = `${a}/code-editor`, r = {
|
|
29
|
+
arcade: `${e}/arcade.worker.js`,
|
|
30
|
+
"arcgis-sql-expression": `${e}/sql-expr.worker.js`,
|
|
31
|
+
html: `${e}/html.worker.js`,
|
|
32
|
+
css: `${e}/css.worker.js`,
|
|
33
|
+
typescript: `${e}/ts.worker.js`,
|
|
34
|
+
json: `${e}/json.worker.js`,
|
|
35
|
+
default: `${e}/editor.worker.js`
|
|
36
|
+
}, o = {
|
|
37
|
+
arcade: {
|
|
38
|
+
url: r.arcade
|
|
39
|
+
},
|
|
40
|
+
"arcgis-sql-expression": {
|
|
41
|
+
url: r["arcgis-sql-expression"]
|
|
42
|
+
},
|
|
43
|
+
html: {
|
|
44
|
+
url: r.html
|
|
45
|
+
},
|
|
46
|
+
css: {
|
|
47
|
+
url: r.css
|
|
48
|
+
},
|
|
49
|
+
typescript: {
|
|
50
|
+
url: r.typescript
|
|
51
|
+
},
|
|
52
|
+
javascript: {
|
|
53
|
+
url: r.typescript
|
|
54
|
+
},
|
|
55
|
+
json: {
|
|
56
|
+
url: r.json
|
|
57
|
+
},
|
|
58
|
+
default: {
|
|
59
|
+
url: r.default
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
window.MonacoEnvironment = {
|
|
63
|
+
getWorker: async (l, s) => {
|
|
64
|
+
const n = f.get(s);
|
|
65
|
+
if (n)
|
|
66
|
+
return await c(n, void 0, i);
|
|
67
|
+
const { url: u, localWorker: p } = o[s] || o.default;
|
|
68
|
+
return await c(u, p, i);
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
async function m() {
|
|
73
|
+
return (await g()).getArcadeDiagnosticService();
|
|
74
|
+
}
|
|
75
|
+
async function g() {
|
|
8
76
|
return await import("./arcade-mode.js");
|
|
9
77
|
}
|
|
10
78
|
export {
|
|
11
|
-
a,
|
|
12
|
-
|
|
79
|
+
m as a,
|
|
80
|
+
g,
|
|
81
|
+
j as s
|
|
13
82
|
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { i } from "./monaco-importer.js";
|
|
2
|
+
import { StandaloneServices as r } from "monaco-editor/esm/vs/editor/standalone/browser/standaloneServices.js";
|
|
3
|
+
import { IStandaloneThemeService as n } from "monaco-editor/esm/vs/editor/standalone/common/standaloneTheme.js";
|
|
4
|
+
import { generateTokensCSSForColorMap as a } from "monaco-editor/esm/vs/editor/common/languages/supports/tokenization.js";
|
|
5
|
+
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
6
|
+
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
7
|
+
v5.0.0-next.41 */
|
|
8
|
+
async function c(e, o) {
|
|
9
|
+
return await (await i()).colorize(e, o, { tabSize: 2 });
|
|
10
|
+
}
|
|
11
|
+
async function C(e, o, t) {
|
|
12
|
+
!e || e.tagName !== "CODE" || (e.innerHTML = await c(o ?? "", t));
|
|
13
|
+
}
|
|
14
|
+
function S() {
|
|
15
|
+
const o = r.get(n).getColorTheme();
|
|
16
|
+
return a(o.tokenTheme.getColorMap());
|
|
17
|
+
}
|
|
18
|
+
function g(e) {
|
|
19
|
+
return r.get(n).onDidColorThemeChange(() => e());
|
|
20
|
+
}
|
|
21
|
+
export {
|
|
22
|
+
C as a,
|
|
23
|
+
c,
|
|
24
|
+
S as g,
|
|
25
|
+
g as o
|
|
26
|
+
};
|
package/dist/chunks/editor.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { css as e } from "lit";
|
|
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.41 */
|
|
5
5
|
const i = e`@layer{arcgis-arcade-editor,arcgis-sql-expression-editor{.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)!important;box-sizing:border-box}.border-inline-end{border-inline-end:var(--arcgis-coding-components-border)!important;box-sizing:border-box}.side-action-bar{max-width:var(--arcgis-coding-components-side-action-bar-max-w)}.code-editor-side-panel{max-width:var(--arcgis-coding-components-code-editor-side-panel-max-w);width:var(--arcgis-coding-components-code-editor-side-panel-w)}.code-editor-side-panel calcite-flow{height:100%}}}`;
|
|
6
6
|
export {
|
|
7
7
|
i as s
|
package/dist/chunks/fields.js
CHANGED
|
@@ -1,21 +1,22 @@
|
|
|
1
1
|
import m from "@arcgis/core/layers/FeatureLayer.js";
|
|
2
2
|
import ee from "@arcgis/core/request.js";
|
|
3
|
-
import { p as te
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
3
|
+
import { p as te } from "./utilities.js";
|
|
4
|
+
import ie from "@arcgis/core/portal/PortalItem.js";
|
|
5
|
+
import re from "@arcgis/core/WebMap.js";
|
|
6
|
+
import se from "@arcgis/core/WebScene.js";
|
|
7
7
|
import { isNotNull as C, isNotUndefined as O } from "@arcgis/toolkit/predicate";
|
|
8
|
-
import { addLtrMark as
|
|
9
|
-
import { s as g, f as
|
|
8
|
+
import { addLtrMark as ne, setValuesInString as A } from "@arcgis/toolkit/string";
|
|
9
|
+
import { s as g, f as oe, a as b, m as ae, b as le } from "./fields.js";
|
|
10
10
|
import { CompletionItemKind as v, InsertTextFormat as F, InsertTextMode as x } from "vscode-languageserver-types";
|
|
11
|
-
import { getDeclaredVoxelMembers as
|
|
11
|
+
import { getDeclaredVoxelMembers as ue, getDeclaredPixelMembers as pe } from "@arcgis/core/applications/Components/arcadeEditorUtils.js";
|
|
12
|
+
import { i as ce } from "./monaco-importer.js";
|
|
12
13
|
import { g as he } from "./runtime.js";
|
|
13
14
|
import { normalizeLocale as fe } from "@arcgis/toolkit/intl";
|
|
14
15
|
import { filterApiLibraryForContext as de } from "@arcgis/languages-api-utils";
|
|
15
16
|
import { Emitter as G, Uri as E } from "monaco-editor";
|
|
16
17
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
17
18
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
18
|
-
v5.0.0-next.
|
|
19
|
+
v5.0.0-next.41 */
|
|
19
20
|
function k(t) {
|
|
20
21
|
return !!t && typeof t == "object" && "declaredClass" in t && typeof t.declaredClass == "string" && t.declaredClass.startsWith("esri.layers.") && w(t) && "queryFeatures" in t && typeof t.queryFeatures == "function";
|
|
21
22
|
}
|
|
@@ -43,16 +44,16 @@ function _e(t) {
|
|
|
43
44
|
function H(t) {
|
|
44
45
|
return D(t) || w(t) || z(t);
|
|
45
46
|
}
|
|
46
|
-
function
|
|
47
|
+
function Ye(t) {
|
|
47
48
|
return H(t) && "type" in t && t.type === "voxel";
|
|
48
49
|
}
|
|
49
|
-
function
|
|
50
|
+
function Ze(t) {
|
|
50
51
|
return H(t) && "type" in t && t.type === "pixel";
|
|
51
52
|
}
|
|
52
|
-
function
|
|
53
|
+
function et(t) {
|
|
53
54
|
return D(t) || w(t) || z(t);
|
|
54
55
|
}
|
|
55
|
-
function
|
|
56
|
+
function tt(t) {
|
|
56
57
|
return K(t) || q(t) || _e(t);
|
|
57
58
|
}
|
|
58
59
|
function j(t) {
|
|
@@ -64,7 +65,7 @@ function S(t) {
|
|
|
64
65
|
function be(t) {
|
|
65
66
|
return !!t && typeof t == "object" && "declaredClass" in t && t.declaredClass === "esri.layers.support.InheritedDomain";
|
|
66
67
|
}
|
|
67
|
-
function
|
|
68
|
+
function it(t) {
|
|
68
69
|
return !!t && typeof t == "object" && "id" in t && typeof t.id == "string" && "definitions" in t && typeof t.definitions == "object" && !Array.isArray(t.definitions);
|
|
69
70
|
}
|
|
70
71
|
function h(t) {
|
|
@@ -180,7 +181,7 @@ function X(t, e) {
|
|
|
180
181
|
function R(t) {
|
|
181
182
|
return we(t) ? t.portalItem : null;
|
|
182
183
|
}
|
|
183
|
-
function
|
|
184
|
+
function rt(t, e, i = !1) {
|
|
184
185
|
let r = e;
|
|
185
186
|
const s = [], n = [];
|
|
186
187
|
return g(t).forEach((o) => {
|
|
@@ -189,7 +190,7 @@ function it(t, e, i = !1) {
|
|
|
189
190
|
`), r += `**${o.name}** (${o.alias})
|
|
190
191
|
${o.type}`, o.description && (r += `
|
|
191
192
|
'${o.description}`);
|
|
192
|
-
const c =
|
|
193
|
+
const c = le(o), p = I(o.name, !1), _ = b(o);
|
|
193
194
|
if (s.push({
|
|
194
195
|
name: o.name,
|
|
195
196
|
description: _,
|
|
@@ -225,7 +226,7 @@ ${o.type}`;
|
|
|
225
226
|
}
|
|
226
227
|
}), [[...s, ...n], r];
|
|
227
228
|
}
|
|
228
|
-
function
|
|
229
|
+
function st(t, e) {
|
|
229
230
|
let i = e;
|
|
230
231
|
const r = [];
|
|
231
232
|
return t.forEach((s) => {
|
|
@@ -257,7 +258,7 @@ class Y {
|
|
|
257
258
|
* Returns the label string.
|
|
258
259
|
*/
|
|
259
260
|
getLabel() {
|
|
260
|
-
return this._label == null ? "" : typeof this._label == "string" ?
|
|
261
|
+
return this._label == null ? "" : typeof this._label == "string" ? ne(this._label) : A(this._profile?.intlStrings[this._label.code], this._label.formatValues);
|
|
261
262
|
}
|
|
262
263
|
/**
|
|
263
264
|
* Returns the description string.
|
|
@@ -443,7 +444,7 @@ class Z extends M {
|
|
|
443
444
|
label: s,
|
|
444
445
|
description: b(e),
|
|
445
446
|
snippet: s,
|
|
446
|
-
icon:
|
|
447
|
+
icon: oe(e, i),
|
|
447
448
|
filterDescription: !0
|
|
448
449
|
});
|
|
449
450
|
}
|
|
@@ -454,7 +455,7 @@ class Z extends M {
|
|
|
454
455
|
label: i,
|
|
455
456
|
description: e.name,
|
|
456
457
|
snippet: i,
|
|
457
|
-
icon:
|
|
458
|
+
icon: ae(e),
|
|
458
459
|
filterDescription: !0
|
|
459
460
|
});
|
|
460
461
|
}
|
|
@@ -692,7 +693,7 @@ class $e extends $ {
|
|
|
692
693
|
);
|
|
693
694
|
const i = new u(this._profile, { code: "values" });
|
|
694
695
|
this.variables.push(i);
|
|
695
|
-
const r = await
|
|
696
|
+
const r = await ue(this._source), s = this._source;
|
|
696
697
|
g(this._source.fields).map((n) => s.fields.find((a) => a.name === n.name)).sort(V(s)).forEach((n) => {
|
|
697
698
|
i.variables.push(this._getFieldProperty(n, r));
|
|
698
699
|
});
|
|
@@ -730,7 +731,7 @@ class Le extends $ {
|
|
|
730
731
|
const i = new u(this._profile, { code: "values" });
|
|
731
732
|
if (this.variables.push(i), !U(this._source))
|
|
732
733
|
throw new Error("Invalid definition - not an ImageryLayer");
|
|
733
|
-
(await
|
|
734
|
+
(await pe(this._source)).forEach((s) => {
|
|
734
735
|
i.variables.push(this._getMemberProperty(s));
|
|
735
736
|
});
|
|
736
737
|
} catch (e) {
|
|
@@ -832,14 +833,14 @@ class Ae extends M {
|
|
|
832
833
|
};
|
|
833
834
|
}
|
|
834
835
|
async _featureSetCollectionFromPortalItem(e) {
|
|
835
|
-
const i = new
|
|
836
|
+
const i = new ie(e);
|
|
836
837
|
switch (await i.load(), i.type) {
|
|
837
838
|
case "Web Map": {
|
|
838
|
-
const r = new
|
|
839
|
+
const r = new re({ portalItem: i });
|
|
839
840
|
return await this._featureSetCollectionFromMap(r);
|
|
840
841
|
}
|
|
841
842
|
case "Web Scene": {
|
|
842
|
-
const r = new
|
|
843
|
+
const r = new se({ portalItem: i });
|
|
843
844
|
return await this._featureSetCollectionFromMap(r);
|
|
844
845
|
}
|
|
845
846
|
case "Feature Service":
|
|
@@ -905,7 +906,7 @@ class Ae extends M {
|
|
|
905
906
|
return { type: this.type, name: "", ...this.declaration, definition: this._definition };
|
|
906
907
|
}
|
|
907
908
|
}
|
|
908
|
-
class
|
|
909
|
+
class nt extends y {
|
|
909
910
|
constructor(e, i, r = "en") {
|
|
910
911
|
super(void 0, {
|
|
911
912
|
profile: null,
|
|
@@ -932,12 +933,12 @@ class st extends y {
|
|
|
932
933
|
const Ge = {
|
|
933
934
|
locale: "en"
|
|
934
935
|
};
|
|
935
|
-
class
|
|
936
|
+
class ot {
|
|
936
937
|
// #endregion
|
|
937
938
|
constructor(e, i) {
|
|
938
939
|
this.languageId = e, this._apiConfig = i, this._onDidChange = new G(), this._modelToProfileMap = /* @__PURE__ */ new Map(), this._modelToApiContextMap = /* @__PURE__ */ new Map(), this._localeToApiLibraryPromiseMap = /* @__PURE__ */ new Map(), this._onModelContextDidChange = new G(), this._onDidModelContextChangeTimeout = -1, this.workerHost = {
|
|
939
940
|
getApiLibrary: async (r) => await this.getApiLibrary(r)
|
|
940
|
-
},
|
|
941
|
+
}, ce().then((r) => {
|
|
941
942
|
r.onWillDisposeModel((s) => {
|
|
942
943
|
this.disposeForModel(s.uri);
|
|
943
944
|
});
|
|
@@ -1019,15 +1020,15 @@ class nt {
|
|
|
1019
1020
|
// #endregion
|
|
1020
1021
|
}
|
|
1021
1022
|
export {
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1023
|
+
nt as E,
|
|
1024
|
+
ot as L,
|
|
1025
|
+
et as a,
|
|
1025
1026
|
k as b,
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1027
|
+
tt as c,
|
|
1028
|
+
Ye as d,
|
|
1029
|
+
Ze as e,
|
|
1030
|
+
rt as f,
|
|
1030
1031
|
H as g,
|
|
1031
|
-
|
|
1032
|
-
|
|
1032
|
+
it as i,
|
|
1033
|
+
st as m
|
|
1033
1034
|
};
|