@arcgis/coding-components 4.33.0-next.98 → 4.33.0-next.99
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/arcgis-coding-components/4CWG53YG.js +4 -0
- package/dist/arcgis-coding-components/{5ZOYDLAC.js.LEGAL.txt → 4CWG53YG.js.LEGAL.txt} +1 -1
- package/dist/arcgis-coding-components/{SZL27LHR.js → 4KGS45F6.js} +4 -4
- package/dist/arcgis-coding-components/{23FE3AUR.js.LEGAL.txt → 4KGS45F6.js.LEGAL.txt} +1 -1
- package/dist/arcgis-coding-components/6X6SKMSK.js +4 -0
- package/dist/arcgis-coding-components/{7TXRTUKS.js.LEGAL.txt → 6X6SKMSK.js.LEGAL.txt} +1 -1
- package/dist/arcgis-coding-components/{MAE2RWZW.js → AIQ3ZZ4N.js} +2 -2
- package/dist/arcgis-coding-components/{3K25AEDV.js → B6RBYOZB.js} +1 -1
- package/dist/arcgis-coding-components/BHPZXDRW.js +4 -0
- package/dist/arcgis-coding-components/{AXWCZF4E.js.LEGAL.txt → BHPZXDRW.js.LEGAL.txt} +1 -1
- package/dist/arcgis-coding-components/{AIE7L3C5.js → BXIVTWDT.js} +2 -2
- package/dist/arcgis-coding-components/{AXWCZF4E.js → CCHHSGLF.js} +2 -2
- package/dist/arcgis-coding-components/CCHHSGLF.js.LEGAL.txt +3 -0
- package/dist/arcgis-coding-components/{EKSDDOFX.js → CLUD6ZAM.js} +2 -2
- package/dist/arcgis-coding-components/CPPMJWU4.js +4 -0
- package/dist/arcgis-coding-components/CPPMJWU4.js.LEGAL.txt +3 -0
- package/dist/arcgis-coding-components/{5QXK2YE3.js → DAIV4YM2.js} +2 -2
- package/dist/arcgis-coding-components/{INZZAXQC.js → DETRUXO4.js} +2 -2
- package/dist/arcgis-coding-components/DETRUXO4.js.LEGAL.txt +3 -0
- package/dist/arcgis-coding-components/{MY3HJHIM.js → DPLHQRHL.js} +2 -2
- package/dist/arcgis-coding-components/{MY3HJHIM.js.LEGAL.txt → DPLHQRHL.js.LEGAL.txt} +1 -1
- package/dist/arcgis-coding-components/{CVRMEEFT.js → EZ46MHBE.js} +1 -1
- package/dist/arcgis-coding-components/FBZDECME.js +4 -0
- package/dist/arcgis-coding-components/FBZDECME.js.LEGAL.txt +3 -0
- package/dist/arcgis-coding-components/{XLTP4ML3.js → GLZTVDY3.js} +1 -1
- package/dist/arcgis-coding-components/GQYPMHDN.js +8 -0
- package/dist/arcgis-coding-components/GQYPMHDN.js.LEGAL.txt +3 -0
- package/dist/arcgis-coding-components/GTJMQUCR.js +4 -0
- package/dist/arcgis-coding-components/GTJMQUCR.js.LEGAL.txt +3 -0
- package/dist/arcgis-coding-components/{CTM4IBKM.js → H5IXRF6P.js} +2 -2
- package/dist/arcgis-coding-components/{COJNNA7B.js → HK3NR5FJ.js} +2 -2
- package/dist/arcgis-coding-components/{FTB35RPN.js → I6FG6PHA.js} +2 -2
- package/dist/arcgis-coding-components/{UIOT2EYW.js → IERFPICF.js} +3 -3
- package/dist/arcgis-coding-components/IERFPICF.js.LEGAL.txt +3 -0
- package/dist/arcgis-coding-components/{7IONFETN.js → IGD5JVMO.js} +2 -2
- package/dist/arcgis-coding-components/{Y5XLP6LG.js → KE4BOMMR.js} +2 -2
- package/dist/arcgis-coding-components/{ORAMMLLX.js → LVP37CVZ.js} +2 -2
- package/dist/arcgis-coding-components/{LLMDOQPE.js → MQ6QSJ3D.js} +1 -1
- package/dist/arcgis-coding-components/MQ6QSJ3D.js.LEGAL.txt +3 -0
- package/dist/arcgis-coding-components/{XT46NGHA.js → NNQQRWM4.js} +2 -2
- package/dist/arcgis-coding-components/{6HBVN473.js → OHE2XVBA.js} +2 -2
- package/dist/arcgis-coding-components/OQ3VLBIA.js +4 -0
- package/dist/arcgis-coding-components/OQ3VLBIA.js.LEGAL.txt +3 -0
- package/dist/arcgis-coding-components/PYOJIGHL.js +4 -0
- package/dist/arcgis-coding-components/{5ZOYDLAC.js → QCGTZIV7.js} +2 -2
- package/dist/arcgis-coding-components/QCGTZIV7.js.LEGAL.txt +3 -0
- package/dist/arcgis-coding-components/{PIPVA5X7.js → S5J3QOAN.js} +2 -2
- package/dist/arcgis-coding-components/S5J3QOAN.js.LEGAL.txt +3 -0
- package/dist/arcgis-coding-components/{DCS7WAW6.js → TSHYFCHO.js} +2 -2
- package/dist/arcgis-coding-components/TSHYFCHO.js.LEGAL.txt +3 -0
- package/dist/arcgis-coding-components/{GVRWIXX3.js → UBQV4SE4.js} +9 -9
- package/dist/arcgis-coding-components/UBQV4SE4.js.LEGAL.txt +3 -0
- package/dist/arcgis-coding-components/{DKV6ZEWK.js → WR6DJLNQ.js} +2 -2
- package/dist/arcgis-coding-components/{NJGL7PC5.js → XJBT377I.js} +3 -3
- package/dist/arcgis-coding-components/{NJGL7PC5.js.LEGAL.txt → XJBT377I.js.LEGAL.txt} +1 -1
- package/dist/arcgis-coding-components/{PJBWHPS7.js → XPHHHGZH.js} +2 -2
- package/dist/arcgis-coding-components/{PJBWHPS7.js.LEGAL.txt → XPHHHGZH.js.LEGAL.txt} +1 -1
- package/dist/arcgis-coding-components/{CBMPRUW4.js → Z5YGU3UZ.js} +2 -2
- package/dist/arcgis-coding-components/Z5YGU3UZ.js.LEGAL.txt +3 -0
- package/dist/arcgis-coding-components/{VLLF6AK6.js → Z65637GR.js} +2 -2
- package/dist/arcgis-coding-components/Z65637GR.js.LEGAL.txt +3 -0
- package/dist/arcgis-coding-components/arcgis-coding-components.esm.js +2 -2
- package/dist/arcgis-coding-components/arcgis-coding-components.esm.js.LEGAL.txt +1 -1
- package/dist/arcgis-coding-components/assets/arcade-coding-assistant/t9n/messages.en.json +1 -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 +6 -53
- package/dist/chunks/fields.js +1 -1
- package/dist/chunks/language-defaults-base.js +1 -1
- package/dist/chunks/markdown.js +25 -24
- package/dist/chunks/monaco-importer.js +1 -1
- package/dist/chunks/runtime.js +1 -1
- package/dist/chunks/setup-monaco.js +52 -0
- package/dist/chunks/sql-expr-contribution.js +107 -0
- package/dist/chunks/sql-expr-defaults.js +1 -1
- package/dist/chunks/sql-expr-mode.js +1 -1
- package/dist/chunks/useT9n.js +1 -1
- package/dist/components/arcgis-arcade-coding-assistant/customElement.d.ts +10 -0
- package/dist/components/arcgis-arcade-coding-assistant/customElement.js +26 -0
- 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 +3 -2
- package/dist/components/arcgis-arcade-results/customElement.js +1 -1
- package/dist/components/arcgis-arcade-suggestions/customElement.js +2 -2
- package/dist/components/arcgis-code-editor/customElement.js +33 -113
- package/dist/components/arcgis-editor-variables/customElement.js +1 -1
- package/dist/components/arcgis-language-api-panel/customElement.d.ts +2 -0
- package/dist/components/arcgis-language-api-panel/customElement.js +26 -25
- package/dist/components/arcgis-sql-expression-editor/customElement.js +5 -5
- package/dist/components/arcgis-sql-expression-fields/customElement.js +1 -1
- package/dist/docs/api.json +2 -2
- package/dist/docs/docs.json +2 -2
- package/dist/docs/web-types.json +1 -1
- package/dist/index.js +1 -1
- package/dist/loader.js +3 -2
- package/dist/utils/colorize.d.ts +2 -2
- package/dist/utils/monaco-languages.d.ts +13 -0
- package/dist/utils/profile/types.d.ts +72 -3
- package/package.json +6 -6
- package/dist/arcgis-coding-components/23FE3AUR.js +0 -4
- package/dist/arcgis-coding-components/7TXRTUKS.js +0 -4
- package/dist/arcgis-coding-components/CBMPRUW4.js.LEGAL.txt +0 -3
- package/dist/arcgis-coding-components/CWBKG7AM.js +0 -4
- package/dist/arcgis-coding-components/CWBKG7AM.js.LEGAL.txt +0 -3
- package/dist/arcgis-coding-components/DCS7WAW6.js.LEGAL.txt +0 -3
- package/dist/arcgis-coding-components/GVRWIXX3.js.LEGAL.txt +0 -3
- package/dist/arcgis-coding-components/IMB6UYER.js +0 -4
- package/dist/arcgis-coding-components/IMB6UYER.js.LEGAL.txt +0 -3
- package/dist/arcgis-coding-components/INZZAXQC.js.LEGAL.txt +0 -3
- package/dist/arcgis-coding-components/LLMDOQPE.js.LEGAL.txt +0 -3
- package/dist/arcgis-coding-components/MLGUO3SZ.js +0 -8
- package/dist/arcgis-coding-components/MLGUO3SZ.js.LEGAL.txt +0 -3
- package/dist/arcgis-coding-components/PIPVA5X7.js.LEGAL.txt +0 -3
- package/dist/arcgis-coding-components/SZL27LHR.js.LEGAL.txt +0 -3
- package/dist/arcgis-coding-components/TNSXZ2FB.js +0 -4
- package/dist/arcgis-coding-components/UIOT2EYW.js.LEGAL.txt +0 -3
- package/dist/arcgis-coding-components/VLLF6AK6.js.LEGAL.txt +0 -3
- /package/dist/arcgis-coding-components/{MAE2RWZW.js.LEGAL.txt → AIQ3ZZ4N.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{3K25AEDV.js.LEGAL.txt → B6RBYOZB.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{AIE7L3C5.js.LEGAL.txt → BXIVTWDT.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{EKSDDOFX.js.LEGAL.txt → CLUD6ZAM.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{5QXK2YE3.js.LEGAL.txt → DAIV4YM2.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{COJNNA7B.js.LEGAL.txt → EZ46MHBE.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{CVRMEEFT.js.LEGAL.txt → GLZTVDY3.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{CTM4IBKM.js.LEGAL.txt → H5IXRF6P.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{TNSXZ2FB.js.LEGAL.txt → HK3NR5FJ.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{FTB35RPN.js.LEGAL.txt → I6FG6PHA.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{7IONFETN.js.LEGAL.txt → IGD5JVMO.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{XLTP4ML3.js.LEGAL.txt → KE4BOMMR.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{ORAMMLLX.js.LEGAL.txt → LVP37CVZ.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{XT46NGHA.js.LEGAL.txt → NNQQRWM4.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{6HBVN473.js.LEGAL.txt → OHE2XVBA.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{Y5XLP6LG.js.LEGAL.txt → PYOJIGHL.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{DKV6ZEWK.js.LEGAL.txt → WR6DJLNQ.js.LEGAL.txt} +0 -0
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { importRequest as n } from "@arcgis/core-adapter";
|
|
2
|
+
import { isURL as i, hasSameOrigin as c } from "@arcgis/components-utils";
|
|
3
|
+
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
4
|
+
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
5
|
+
v4.33.0-next.99 */
|
|
6
|
+
function s() {
|
|
7
|
+
return !!window.MonacoEnvironment?.getWorkerUrl;
|
|
8
|
+
}
|
|
9
|
+
const a = /* @__PURE__ */ new Map();
|
|
10
|
+
function m(r) {
|
|
11
|
+
s() || (window.MonacoEnvironment = {
|
|
12
|
+
getWorker: async (d, o) => {
|
|
13
|
+
let e = a.get(o) ?? `${r}/code-editor/editor.worker.js`;
|
|
14
|
+
switch (o) {
|
|
15
|
+
case "json":
|
|
16
|
+
e = `${r}/code-editor/json.worker.js`;
|
|
17
|
+
break;
|
|
18
|
+
case "css":
|
|
19
|
+
e = `${r}/code-editor/css.worker.js`;
|
|
20
|
+
break;
|
|
21
|
+
case "html":
|
|
22
|
+
e = `${r}/code-editor/html.worker.js`;
|
|
23
|
+
break;
|
|
24
|
+
case "typescript":
|
|
25
|
+
case "javascript":
|
|
26
|
+
e = `${r}/code-editor/ts.worker.js`;
|
|
27
|
+
break;
|
|
28
|
+
case "arcade":
|
|
29
|
+
e = `${r}/code-editor/arcade.worker.js`;
|
|
30
|
+
break;
|
|
31
|
+
case "arcgis-sql-expression":
|
|
32
|
+
e = `${r}/code-editor/sql-expr.worker.js`;
|
|
33
|
+
break;
|
|
34
|
+
}
|
|
35
|
+
if (!i(e) || c(e, globalThis.location.href, !0))
|
|
36
|
+
return new Worker(e, { name: o });
|
|
37
|
+
const t = await (await n())(e, {
|
|
38
|
+
responseType: "text"
|
|
39
|
+
});
|
|
40
|
+
return new Worker(
|
|
41
|
+
URL.createObjectURL(
|
|
42
|
+
new Blob([t.data], {
|
|
43
|
+
type: "text/javascript"
|
|
44
|
+
})
|
|
45
|
+
)
|
|
46
|
+
);
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
export {
|
|
51
|
+
m as s
|
|
52
|
+
};
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { i as d } from "./monaco-importer.js";
|
|
2
|
+
import { 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 { b as t } from "./arcade-defaults.js";
|
|
7
|
+
import { g as c } from "./arcade-service-accessors.js";
|
|
8
|
+
import { a as n } from "./sql-expr-defaults.js";
|
|
9
|
+
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
10
|
+
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
11
|
+
v4.33.0-next.99 */
|
|
12
|
+
const s = /* @__PURE__ */ new Set();
|
|
13
|
+
function g(e, o) {
|
|
14
|
+
return () => {
|
|
15
|
+
s.has(e) || s.add(e), o();
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
async function D(e) {
|
|
19
|
+
if (s.has(e))
|
|
20
|
+
return;
|
|
21
|
+
(await d()).createModel("", e).dispose();
|
|
22
|
+
}
|
|
23
|
+
const u = {
|
|
24
|
+
"light-theme": {
|
|
25
|
+
comment: "#606060",
|
|
26
|
+
constant: "#9809C8",
|
|
27
|
+
date: "#296389",
|
|
28
|
+
identifier: "#0000B3",
|
|
29
|
+
keyword: "#BF4900",
|
|
30
|
+
number: "#136D3D",
|
|
31
|
+
string: "#A31515",
|
|
32
|
+
operator: "#9809C8",
|
|
33
|
+
predefined: "#0000B3"
|
|
34
|
+
},
|
|
35
|
+
"dark-theme": {
|
|
36
|
+
comment: "#BFBFBF",
|
|
37
|
+
constant: "#CDBAEA",
|
|
38
|
+
date: "#97A6CE",
|
|
39
|
+
identifier: "#9FD4F3",
|
|
40
|
+
keyword: "#EEAA5A",
|
|
41
|
+
number: "#AAD04B",
|
|
42
|
+
string: "#F2877B",
|
|
43
|
+
operator: "#CDBAEA",
|
|
44
|
+
predefined: "#9FD4F3"
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
m();
|
|
48
|
+
function m() {
|
|
49
|
+
d().then((e) => {
|
|
50
|
+
["light", "dark"].forEach((o) => {
|
|
51
|
+
const i = o === "light" ? "vs" : "vs-dark", r = u[`${o}-theme`];
|
|
52
|
+
e.defineTheme(i, {
|
|
53
|
+
base: i,
|
|
54
|
+
inherit: !0,
|
|
55
|
+
rules: [
|
|
56
|
+
{ token: "comment.arcgis", foreground: r.comment },
|
|
57
|
+
{ token: "constant.arcgis", foreground: r.constant },
|
|
58
|
+
{ token: "keyword.arcgis", foreground: r.keyword },
|
|
59
|
+
{ token: "identifier.arcgis", foreground: r.identifier },
|
|
60
|
+
{ token: "number.arcgis", foreground: r.number },
|
|
61
|
+
{ token: "string.arcgis", foreground: r.string },
|
|
62
|
+
{ token: "operator.arcgis", foreground: r.operator },
|
|
63
|
+
{ token: "predefined.arcgis", foreground: r.predefined }
|
|
64
|
+
],
|
|
65
|
+
colors: {}
|
|
66
|
+
});
|
|
67
|
+
});
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
a.register({
|
|
71
|
+
id: t.languageId,
|
|
72
|
+
aliases: ["Arcade", "arcade"],
|
|
73
|
+
extensions: [".arc"],
|
|
74
|
+
mimetypes: ["application/arcade"]
|
|
75
|
+
});
|
|
76
|
+
a.onLanguage(
|
|
77
|
+
t.languageId,
|
|
78
|
+
g(t.languageId, () => {
|
|
79
|
+
c().then((e) => {
|
|
80
|
+
e.setupMode(t);
|
|
81
|
+
}).catch((e) => {
|
|
82
|
+
throw e;
|
|
83
|
+
});
|
|
84
|
+
})
|
|
85
|
+
);
|
|
86
|
+
async function p() {
|
|
87
|
+
return await import("./sql-expr-mode.js");
|
|
88
|
+
}
|
|
89
|
+
a.register({
|
|
90
|
+
id: n.languageId,
|
|
91
|
+
aliases: ["EsiSqlExpression", "sql-expression"],
|
|
92
|
+
extensions: [".sql-expression"],
|
|
93
|
+
mimetypes: ["application/sql-expression"]
|
|
94
|
+
});
|
|
95
|
+
a.onLanguage(
|
|
96
|
+
n.languageId,
|
|
97
|
+
g(n.languageId, () => {
|
|
98
|
+
p().then((e) => {
|
|
99
|
+
e.setupMode(n);
|
|
100
|
+
}).catch((e) => {
|
|
101
|
+
throw e;
|
|
102
|
+
});
|
|
103
|
+
})
|
|
104
|
+
);
|
|
105
|
+
export {
|
|
106
|
+
D as s
|
|
107
|
+
};
|
|
@@ -4,7 +4,7 @@ import { fetchT9nStringsBundle as M } from "@arcgis/components-utils";
|
|
|
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/4.33/esri/copyright.txt for details.
|
|
7
|
-
v4.33.0-next.
|
|
7
|
+
v4.33.0-next.99 */
|
|
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 {
|
|
@@ -7,7 +7,7 @@ import { Deferred as _, debounce as N } from "@arcgis/components-utils";
|
|
|
7
7
|
import { a as d } from "./sql-expr-defaults.js";
|
|
8
8
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
9
9
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
10
|
-
v4.33.0-next.
|
|
10
|
+
v4.33.0-next.99 */
|
|
11
11
|
let h = new _();
|
|
12
12
|
class k {
|
|
13
13
|
constructor(e) {
|
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/4.33/esri/copyright.txt for details.
|
|
5
|
-
v4.33.0-next.
|
|
5
|
+
v4.33.0-next.99 */
|
|
6
6
|
const s = o(t);
|
|
7
7
|
export {
|
|
8
8
|
s as u
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="../../index.d.ts" />
|
|
2
|
+
import { JsxNode, PublicLitElement as LitElement, TargetedEvent } from '@arcgis/lumina';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* This is a placeholder component for the coding AI assistant.
|
|
6
|
+
* Design and api is not yet finalized. For current working design
|
|
7
|
+
* see https://devtopia.esri.com/WebGIS/arcgis-web-components/pull/4261
|
|
8
|
+
* @private */
|
|
9
|
+
export declare class ArcgisArcadeCodingAssistant extends LitElement {
|
|
10
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { c as s } from "../../chunks/runtime.js";
|
|
2
|
+
import { html as t } from "lit-html";
|
|
3
|
+
import { LitElement as r } from "@arcgis/lumina";
|
|
4
|
+
import { css as e } from "@lit/reactive-element/css-tag.js";
|
|
5
|
+
import { u as o } from "../../chunks/useT9n.js";
|
|
6
|
+
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
7
|
+
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
8
|
+
v4.33.0-next.99 */
|
|
9
|
+
const a = e`:host{background-color:var(--calcite-color-foreground-1);calcite-flow{height:100%}}`;
|
|
10
|
+
class c extends r {
|
|
11
|
+
constructor() {
|
|
12
|
+
super(...arguments), this.messages = o();
|
|
13
|
+
}
|
|
14
|
+
static {
|
|
15
|
+
this.styles = a;
|
|
16
|
+
}
|
|
17
|
+
//#endregion
|
|
18
|
+
//#region Rendering
|
|
19
|
+
render() {
|
|
20
|
+
return t`<span>${this.messages.arcadeassistant}</span>`;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
s("arcgis-arcade-coding-assistant", c);
|
|
24
|
+
export {
|
|
25
|
+
c as ArcgisArcadeCodingAssistant
|
|
26
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./customElement.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./customElement.js";
|
|
@@ -7,14 +7,15 @@ import "monaco-editor/esm/vs/editor/common/languages/supports/tokenization.js";
|
|
|
7
7
|
import { LitElement as m, createEvent as c, noShadowRoot as f } from "@arcgis/lumina";
|
|
8
8
|
import { Deferred as x, generateGuid as b } from "@arcgis/components-utils";
|
|
9
9
|
import { D as v, e as l } from "../../chunks/arcade-executor.js";
|
|
10
|
-
import { s as P
|
|
10
|
+
import { s as P } from "../../chunks/setup-monaco.js";
|
|
11
11
|
import { b as s } from "../../chunks/arcade-defaults.js";
|
|
12
|
+
import { a as w } from "../../chunks/arcade-service-accessors.js";
|
|
12
13
|
import { u as E } from "../../chunks/useT9n.js";
|
|
13
14
|
import { createRef as S, ref as A } from "lit-html/directives/ref.js";
|
|
14
15
|
import { css as $ } from "@lit/reactive-element/css-tag.js";
|
|
15
16
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
16
17
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
17
|
-
v4.33.0-next.
|
|
18
|
+
v4.33.0-next.99 */
|
|
18
19
|
const y = (n) => {
|
|
19
20
|
if (!n.toString().includes("calcite-flow-item"))
|
|
20
21
|
throw new Error("Renderer must return a JSX node that starts with <calcite-flow-item>");
|
|
@@ -8,7 +8,7 @@ import { u as C } from "../../chunks/useT9n.js";
|
|
|
8
8
|
import { css as M } from "@lit/reactive-element/css-tag.js";
|
|
9
9
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
10
10
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
11
|
-
v4.33.0-next.
|
|
11
|
+
v4.33.0-next.99 */
|
|
12
12
|
const A = M`: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 = {
|
|
13
13
|
lines: !0,
|
|
14
14
|
selectionMode: "none",
|
|
@@ -9,7 +9,7 @@ import { u as b } from "../../chunks/useT9n.js";
|
|
|
9
9
|
import { css as _ } from "@lit/reactive-element/css-tag.js";
|
|
10
10
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
11
11
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
12
|
-
v4.33.0-next.
|
|
12
|
+
v4.33.0-next.99 */
|
|
13
13
|
function v(o) {
|
|
14
14
|
return !Array.isArray(o) || !o.length ? !1 : Array.isArray(o[0].suggestions);
|
|
15
15
|
}
|
|
@@ -65,7 +65,7 @@ class $ extends u {
|
|
|
65
65
|
this.arcgisClose.emit();
|
|
66
66
|
}
|
|
67
67
|
_colorizeCode(e) {
|
|
68
|
-
e !== void 0 && m(e, this._selectedSuggestion.code);
|
|
68
|
+
e !== void 0 && m(e, this._selectedSuggestion.code, "arcade");
|
|
69
69
|
}
|
|
70
70
|
//#endregion
|
|
71
71
|
//#region Rendering
|