@arcgis/coding-components 5.0.0-next.75 → 5.0.0-next.77
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/{QVYUH4XQ.js → 222HSHNA.js} +2 -2
- package/dist/cdn/{DTWIB6F5.js → 24YXYHS4.js} +2 -2
- package/dist/cdn/{FN7JUEEE.js → 4D7CTYPQ.js} +2 -2
- package/dist/cdn/{PV4BHF2D.js → 5EEQEMML.js} +2 -2
- package/dist/cdn/5SQWI343.js +4 -0
- package/dist/cdn/{JFXRF43B.js → 64MRJU7Y.js} +2 -2
- package/dist/cdn/{EMPTLJCC.js → 7FTGBEUZ.js} +2 -2
- package/dist/cdn/AXE4R6O3.js +4 -0
- package/dist/cdn/{LDVNNO47.js → BHDJW32U.js} +1 -1
- package/dist/cdn/{CN7MJ6YS.js → BHRZHJIW.js} +2 -2
- package/dist/cdn/{HZJEASTD.js → C6NFHNXE.js} +1 -1
- package/dist/cdn/DWWGN273.js +4 -0
- package/dist/cdn/{A4GP35TK.js → EH5ZSBB5.js} +1 -1
- package/dist/cdn/{SBDCE2RC.js → F4Y5OCLJ.js} +2 -2
- package/dist/cdn/FOJISQSB.js +4 -0
- package/dist/cdn/G3IFQ6J5.js +4 -0
- package/dist/cdn/{WGDMHVZ6.js → GJ5WS6S4.js} +2 -2
- package/dist/cdn/{SE6ZCUX2.js → GZ23VCFF.js} +2 -2
- package/dist/cdn/{QCY3L7UE.js → HBE2SRY7.js} +2 -2
- package/dist/cdn/HIP2GPRJ.js +4 -0
- package/dist/cdn/JVNVR2K3.js +13 -0
- package/dist/cdn/LG7G5KKG.js +4 -0
- package/dist/cdn/{WXLV63MG.js → MJPIRGST.js} +2 -2
- package/dist/cdn/{2MYUHYXK.js → NIF66Q56.js} +3 -3
- package/dist/cdn/{G7O5K3TR.js → NJHVKDMX.js} +1 -1
- package/dist/cdn/{YMVRT5BR.js → NNVNH2X7.js} +1 -1
- package/dist/cdn/{AKUKQU5J.js → O3CKVQLF.js} +2 -2
- package/dist/cdn/{MXEIWHFK.js → OS3JLEEL.js} +1 -1
- package/dist/cdn/{KHETCNLZ.js → P57C7CGK.js} +2 -2
- package/dist/cdn/PXCKGEQ3.js +4 -0
- package/dist/cdn/{JDRJ4NIZ.js → QFSZYGEF.js} +2 -2
- package/dist/cdn/{NBECQIXP.js → QL4Z6K5M.js} +1 -1
- package/dist/cdn/{CHK6T5UW.js → RMMLQDOM.js} +3 -3
- package/dist/cdn/{N4OM642V.js → SHZIUE3R.js} +2 -2
- package/dist/cdn/{ZP7TO2U6.js → SK4E2BBN.js} +2 -2
- package/dist/cdn/V347WVJY.js +4 -0
- package/dist/cdn/{D4GWSQMI.js → W2J5GXI5.js} +2 -2
- package/dist/cdn/{FMAKL3DM.js → WBN6DWT4.js} +2 -2
- package/dist/cdn/{3P3US5HL.js → WETHULC7.js} +2 -2
- package/dist/cdn/{AH6FE4LS.js → X56E367I.js} +2 -2
- package/dist/cdn/{IHUWCZKI.js → X7X44FVH.js} +2 -2
- package/dist/cdn/{L3WZ6XQT.js → XBAQR4RX.js} +1 -1
- package/dist/cdn/{JVUTFJKN.js → XKU2UF3G.js} +2 -2
- package/dist/cdn/{XELSKRLW.js → XZH2MLB2.js} +2 -2
- package/dist/cdn/YRWQXBAW.js +4 -0
- package/dist/cdn/{NYMTZAN5.js → ZJQO4X4Q.js} +2 -2
- package/dist/cdn/ZQF7C5NG.js +4 -0
- package/dist/cdn/{M4Y5BFAL.js → ZUII2VBD.js} +2 -2
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/arcade-coding-assistant/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/arcade-editor/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/assets/code-editor/sql-expr.worker.js +3009 -2984
- package/dist/cdn/assets/editor-variables/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/editor-variables/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/editor-variables/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/editor-variables/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/editor-variables/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/editor-variables/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/editor-variables/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/editor-variables/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/editor-variables/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/editor-variables/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/editor-variables/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/editor-variables/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/editor-variables/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/editor-variables/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/editor-variables/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/editor-variables/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/editor-variables/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/editor-variables/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/editor-variables/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/editor-variables/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/editor-variables/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/editor-variables/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/editor-variables/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/editor-variables/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/editor-variables/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/editor-variables/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/editor-variables/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/editor-variables/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/editor-variables/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/editor-variables/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/editor-variables/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/editor-variables/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/editor-variables/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/editor-variables/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/editor-variables/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/editor-variables/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/editor-variables/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/editor-variables/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/editor-variables/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/index.js +3 -3
- package/dist/cdn/main.css +1 -1
- package/dist/chunks/arcade-contribution.js +23 -26
- 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 +1 -1
- package/dist/chunks/colorize.js +1 -1
- package/dist/chunks/editor.js +3 -3
- 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 +1 -1
- package/dist/chunks/monaco-theme.js +10 -0
- 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 +1 -1
- package/dist/components/arcgis-arcade-coding-assistant/customElement.js +1 -1
- package/dist/components/arcgis-arcade-editor/customElement.js +1 -1
- package/dist/components/arcgis-arcade-results/customElement.js +88 -56
- package/dist/components/arcgis-arcade-suggestions/customElement.js +1 -1
- package/dist/components/arcgis-code-editor/customElement.js +1 -1
- 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 +1 -1
- 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 +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 +4 -4
- package/dist/monacoStyles.js +1 -1
- package/dist/utils/arcade-executor.d.ts +13 -2
- package/dist/utils/css-vars.d.ts +7 -0
- package/dist/utils/profile/types.d.ts +1 -0
- package/package.json +5 -5
- package/dist/cdn/7TO5YUEX.js +0 -4
- package/dist/cdn/B7P5YUTD.js +0 -4
- package/dist/cdn/CJB6ALF7.js +0 -4
- package/dist/cdn/EYD5CM3Z.js +0 -4
- package/dist/cdn/FLG5GA5W.js +0 -4
- package/dist/cdn/JTA5TVHI.js +0 -4
- package/dist/cdn/LCXXDBBU.js +0 -4
- package/dist/cdn/M5URZVR5.js +0 -4
- package/dist/cdn/MJFBQMLW.js +0 -4
- package/dist/cdn/VJJ6ED7E.js +0 -4
- package/dist/cdn/XR2VT3PH.js +0 -4
package/dist/cdn/main.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@layer{:not([hydrated]):is(arcgis-arcade-editor,arcgis-code-editor,arcgis-code-viewer,arcgis-sql-expression-editor){visibility:hidden}
|
|
1
|
+
@layer{:not([hydrated]):is(arcgis-arcade-editor,arcgis-code-editor,arcgis-code-viewer,arcgis-sql-expression-editor){visibility:hidden}}
|
|
@@ -1,48 +1,45 @@
|
|
|
1
|
-
import { i as
|
|
2
|
-
import {
|
|
1
|
+
import { i as d } from "./monaco-importer.js";
|
|
2
|
+
import { t as p } from "./monaco-theme.js";
|
|
3
|
+
import { Uri as f, languages as a } from "monaco-editor";
|
|
3
4
|
import "monaco-editor/esm/vs/editor/standalone/browser/standaloneServices.js";
|
|
4
5
|
import "monaco-editor/esm/vs/editor/standalone/common/standaloneTheme.js";
|
|
5
6
|
import "monaco-editor/esm/vs/platform/hover/browser/hover.js";
|
|
6
7
|
import "monaco-editor/esm/vs/editor/common/languages/supports/tokenization.js";
|
|
7
8
|
import { a as t } from "./sql-expr-defaults.js";
|
|
8
|
-
import { g as
|
|
9
|
+
import { g as l } from "./sql-expr-service-accessors.js";
|
|
9
10
|
import { b as n } from "./arcade-defaults.js";
|
|
10
|
-
import { g as
|
|
11
|
+
import { g as h } from "./arcade-service-accessors.js";
|
|
11
12
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
12
13
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
13
|
-
v5.0.0-next.
|
|
14
|
-
const
|
|
14
|
+
v5.0.0-next.77 */
|
|
15
|
+
const k = ["arcade", "arcgis-sql-expression"], i = /* @__PURE__ */ new Set(), g = /* @__PURE__ */ new Map();
|
|
15
16
|
function c(e) {
|
|
16
|
-
let r =
|
|
17
|
-
return r || (r = Promise.withResolvers(),
|
|
17
|
+
let r = g.get(e);
|
|
18
|
+
return r || (r = Promise.withResolvers(), g.set(e, r)), r;
|
|
18
19
|
}
|
|
19
20
|
function u(e) {
|
|
20
21
|
c(e).resolve();
|
|
21
22
|
}
|
|
22
|
-
function
|
|
23
|
-
return
|
|
23
|
+
function T(e) {
|
|
24
|
+
return k.includes(e) ? c(e).promise : Promise.resolve();
|
|
24
25
|
}
|
|
25
26
|
function m(e, r) {
|
|
26
27
|
return () => {
|
|
27
|
-
|
|
28
|
+
i.has(e) || i.add(e), r();
|
|
28
29
|
};
|
|
29
30
|
}
|
|
30
|
-
async function
|
|
31
|
-
if (
|
|
31
|
+
async function P(e) {
|
|
32
|
+
if (i.has(e))
|
|
32
33
|
return;
|
|
33
|
-
(await
|
|
34
|
+
(await d()).createModel("", e, f.parse("")).dispose();
|
|
34
35
|
}
|
|
35
|
-
const k = {
|
|
36
|
-
"light-theme": { comment: "#606060", constant: "#9809C8", date: "#296389", identifier: "#0000B3", keyword: "#BF4900", number: "#136D3D", string: "#A31515", operator: "#9809C8", predefined: "#0000B3" },
|
|
37
|
-
"dark-theme": { comment: "#BFBFBF", constant: "#CDBAEA", date: "#97A6CE", identifier: "#9FD4F3", keyword: "#EEAA5A", number: "#AAD04B", string: "#F2877B", operator: "#CDBAEA", predefined: "#9FD4F3" }
|
|
38
|
-
};
|
|
39
36
|
w();
|
|
40
37
|
function w() {
|
|
41
|
-
|
|
38
|
+
d().then((e) => {
|
|
42
39
|
["light", "dark"].forEach((r) => {
|
|
43
|
-
const
|
|
44
|
-
e.defineTheme(
|
|
45
|
-
base:
|
|
40
|
+
const s = r === "light" ? "vs" : "vs-dark", o = p[`${r}-theme`];
|
|
41
|
+
e.defineTheme(s, {
|
|
42
|
+
base: s,
|
|
46
43
|
inherit: !0,
|
|
47
44
|
rules: [
|
|
48
45
|
{ token: "comment.arcgis", foreground: o.comment },
|
|
@@ -69,7 +66,7 @@ a.register({
|
|
|
69
66
|
a.onLanguage(
|
|
70
67
|
t.languageId,
|
|
71
68
|
m(t.languageId, () => {
|
|
72
|
-
|
|
69
|
+
l().then((e) => {
|
|
73
70
|
e.setupMode(t), u(t.languageId);
|
|
74
71
|
}).catch((e) => {
|
|
75
72
|
throw e;
|
|
@@ -85,7 +82,7 @@ a.register({
|
|
|
85
82
|
a.onLanguage(
|
|
86
83
|
n.languageId,
|
|
87
84
|
m(n.languageId, () => {
|
|
88
|
-
|
|
85
|
+
h().then((e) => {
|
|
89
86
|
e.setupMode(n), u(n.languageId);
|
|
90
87
|
}).catch((e) => {
|
|
91
88
|
throw e;
|
|
@@ -93,6 +90,6 @@ a.onLanguage(
|
|
|
93
90
|
})
|
|
94
91
|
);
|
|
95
92
|
export {
|
|
96
|
-
|
|
97
|
-
|
|
93
|
+
P as s,
|
|
94
|
+
T as w
|
|
98
95
|
};
|
|
@@ -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.77 */
|
|
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.77 */
|
|
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";
|
|
@@ -10,7 +10,7 @@ import { debounce as F } from "@arcgis/toolkit/function";
|
|
|
10
10
|
import { Deferred as _ } from "@arcgis/toolkit/promise";
|
|
11
11
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
12
12
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
13
|
-
v5.0.0-next.
|
|
13
|
+
v5.0.0-next.77 */
|
|
14
14
|
const S = [
|
|
15
15
|
"<=",
|
|
16
16
|
">=",
|
|
@@ -6,7 +6,7 @@ import { IHoverService as m } from "monaco-editor/esm/vs/platform/hover/browser/
|
|
|
6
6
|
import "monaco-editor/esm/vs/editor/common/languages/supports/tokenization.js";
|
|
7
7
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
8
8
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
9
|
-
v5.0.0-next.
|
|
9
|
+
v5.0.0-next.77 */
|
|
10
10
|
function g() {
|
|
11
11
|
return !!window.MonacoEnvironment?.getWorker;
|
|
12
12
|
}
|
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.77 */
|
|
8
8
|
async function c(e, o) {
|
|
9
9
|
return await (await i()).colorize(e, o, { tabSize: 2 });
|
|
10
10
|
}
|
package/dist/chunks/editor.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { css as
|
|
1
|
+
import { css as o } 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.
|
|
5
|
-
const i =
|
|
4
|
+
v5.0.0-next.77 */
|
|
5
|
+
const i = o`@layer{arcgis-arcade-editor,arcgis-sql-expression-editor{--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%;.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
|
|
8
8
|
};
|
package/dist/chunks/fields.js
CHANGED
|
@@ -16,7 +16,7 @@ import { filterApiLibraryForContext as de } from "@arcgis/languages-api-utils";
|
|
|
16
16
|
import { Emitter as G, Uri as E } from "monaco-editor";
|
|
17
17
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
18
18
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
19
|
-
v5.0.0-next.
|
|
19
|
+
v5.0.0-next.77 */
|
|
20
20
|
function k(t) {
|
|
21
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";
|
|
22
22
|
}
|
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.77 */
|
|
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
|
}
|
|
@@ -5,7 +5,7 @@ import "monaco-editor/esm/vs/platform/hover/browser/hover.js";
|
|
|
5
5
|
import "monaco-editor/esm/vs/editor/common/languages/supports/tokenization.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.77 */
|
|
9
9
|
const r = async () => {
|
|
10
10
|
const { editor: t } = await import("monaco-editor/esm/vs/editor/editor.api.js");
|
|
11
11
|
return t;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
|
+
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
3
|
+
v5.0.0-next.77 */
|
|
4
|
+
const e = {
|
|
5
|
+
"light-theme": { comment: "#606060", constant: "#9809C8", date: "#296389", identifier: "#0000B3", keyword: "#BF4900", number: "#136D3D", string: "#A31515", operator: "#9809C8", predefined: "#0000B3" },
|
|
6
|
+
"dark-theme": { comment: "#BFBFBF", constant: "#CDBAEA", date: "#97A6CE", identifier: "#9FD4F3", keyword: "#EEAA5A", number: "#AAD04B", string: "#F2877B", operator: "#CDBAEA", predefined: "#9FD4F3" }
|
|
7
|
+
};
|
|
8
|
+
export {
|
|
9
|
+
e as t
|
|
10
|
+
};
|
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.77 */
|
|
7
7
|
const t = e({ defaultAssetPath: "https://jsdev.arcgis.com/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.77 */
|
|
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 {
|
|
@@ -10,7 +10,7 @@ import { debounce as N } from "@arcgis/toolkit/function";
|
|
|
10
10
|
import { g as f } from "./sql-expr-service-accessors.js";
|
|
11
11
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
12
12
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
13
|
-
v5.0.0-next.
|
|
13
|
+
v5.0.0-next.77 */
|
|
14
14
|
let h = new _();
|
|
15
15
|
class k {
|
|
16
16
|
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/5.0/esri/copyright.txt for details.
|
|
5
|
-
v5.0.0-next.
|
|
5
|
+
v5.0.0-next.77 */
|
|
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.77 */
|
|
6
6
|
function b(e, r, s, u) {
|
|
7
7
|
if (!r)
|
|
8
8
|
return [];
|
|
@@ -17,7 +17,7 @@ import Z from "@arcgis/core/Graphic.js";
|
|
|
17
17
|
import { b as ee } from "../../chunks/language-defaults-base.js";
|
|
18
18
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
19
19
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
20
|
-
v5.0.0-next.
|
|
20
|
+
v5.0.0-next.77 */
|
|
21
21
|
const te = G`:host(:not([closed])){container-type:size;--calcite-block-border-color: var(--calcite-color-transparent);flex:1 0 auto;border-inline-start:var(--arcgis-coding-components-border);box-sizing:border-box;max-width:var(--arcgis-coding-components-code-editor-side-panel-max-w);width:var(--arcgis-coding-components-code-editor-side-panel-w);.submission-actions-wrapper{display:flex;flex-direction:column;width:100%;gap:.75rem}.submission-actions{display:flex;flex-direction:row;gap:.5rem;justify-content:space-between}@container (max-width: 380px){.hidden-below-380{display:none}}@container (min-width: 380px){.hidden-above-380{display:none}}.gaps{display:flex;gap:.25rem}.align-inline-end{margin-inline-start:auto}.action .error-display{display:flex;flex-direction:row;gap:.5rem;justify-content:space-between}.context-popover p{padding:0 .5rem;font-size:var(--calcite-font-size-sm)}.feedback-content{padding:1rem;display:flex;flex-direction:column;gap:.75rem;max-height:30vh;overflow-y:auto}.feedback-sheet{--calcite-sheet-height: auto;--calcite-sheet-max-height: 100%;--calcite-sheet-min-height: auto}calcite-chip[slot=header-actions-end]{align-self:center;margin-inline-end:.5rem}calcite-flow-item calcite-shell{background:transparent}calcite-block{width:100%;max-width:100%;align-self:flex-end;background-color:transparent;margin-block:0}calcite-sheet{--calcite-sheet-scrim-background: rgba(200, 200, 200, .5)}.type-suggestion{--calcite-color-foreground-1: var(--calcite-color-foreground-current);--calcite-color-text-3: var(--calcite-color-text-2);--calcite-icon-color: var(--calcite-color-brand)}.type-history{--calcite-icon-color: var(--calcite-color-text-2)}.type-response{--calcite-icon-color: var(--calcite-color-brand);--calcite-font-family: monospace}.block-response{align-self:flex-start;margin-block-end:4rem;border-block-end:0;--calcite-block-text-color: var(--calcite-color-brand)}calcite-list-item calcite-button{margin-inline-end:.25rem}.type-docs{--calcite-color-foreground-1: var(--calcite-color-foreground-3);--calcite-icon-color: var(--calcite-color-text-1)}.type-error{--calcite-icon-color: var(--calcite-color-status-danger);--calcite-font-family: monospace;border:1px solid var(--calcite-color-status-danger)}#thumbs-up{margin-inline-start:auto;--calcite-icon-color: var(--calcite-color-border-input)}#thumbs-down{--calcite-icon-color: var(--calcite-color-border-input)}calcite-flow-item calcite-shell calcite-notice{margin-block:1rem}.no-space-block,.no-space-block[open]{margin:0}calcite-block[open]:last-of-type{border-block-end:0}.text-area-wrapper{display:flex;border-radius:var(--calcite-corner-radius-round);margin:.75rem;overflow:hidden;--calcite-color-border-input: transparent;position:sticky;box-shadow:var(--calcite-shadow-sm);flex:none}calcite-text-area{height:auto;min-height:5.75rem;overflow:hidden;border-radius:var(--calcite-corner-radius-round) var(--calcite-corner-radius-round) 0 0;--calcite-font-weight-normal: 500;font-weight:500;line-height:1.2}calcite-tooltip{--calcite-tooltip-z-index: 1000}.standalone-list{margin:1rem;width:calc(100% - 2rem)}.result-disclaimer{display:block;width:24rem;max-width:90%;margin:1rem auto;text-align:center;line-height:1.125rem;font-size:.875rem;font-style:italic}calcite-flow{height:100%}calcite-popover calcite-list{--calcite-list-background-color: transparent;--calcite-input-border-color: transparent}calcite-popover calcite-list calcite-filter{--calcite-spacing-sm: 0}.contained-popover-or-tooltip{--calcite-popover-max-size-x: 100%;--calcite-tooltip-max-size-x: 100%}.break-spaces{white-space:break-spaces}.feedback-button-container{margin-inline-start:auto;gap:0}.info-heading{font-size:var(--calcite-font-size-1);color:var(--calcite-color-text-1)}.unstyled-h3{margin:unset;font-size:var(--calcite-font-size-md)}.unstyled-shell{position:unset;inset:unset;display:unset;block-size:unset;inline-size:unset}.suggestion-button{font-weight:var(--calcite-font-weight-medium)}.info-block{max-width:450px}#result-block{calcite-card-group{--calcite-card-group-gap: 1.25rem}calcite-card{--calcite-card-corner-radius: var(--calcite-corner-radius-round);--calcite-card-border-color: transparent;width:100%}.positioned-code-content{display:flex;flex-direction:row;gap:.5rem;padding:.5rem}calcite-card [slot=title] calcite-chip{margin-block-start:.25rem}.code-response-wrapper{position:relative;background:var(--calcite-color-foreground-2);border-radius:var(--calcite-corner-radius-round);margin-top:-1.5rem}.prior-prompt{display:flex;flex-direction:row;padding:0;overflow-y:hidden;overflow-x:auto;margin:.25rem 0 .75rem;align-items:center;max-width:100%;span{overflow-x:auto;overflow-y:hidden}}.copy-feedback{display:none}.copy-prompt-button{align-self:flex-start;margin-inline-start:auto}.response-secondary-action-button[data-copied]+.copy-feedback,.copy-prompt-button[data-copied]+.copy-feedback{display:block;span{padding:.75rem 1rem;font-size:var(--calcite-font-size--2);line-height:1.375;color:var(--calcite-color-text--2);font-weight:var(--calcite-font-weight-medium)}}.copy-prompt-button[data-copied]~.copy-tooltip,.response-secondary-action-button[data-copied]~.copy-tooltip{display:none}code{white-space:pre;font-size:12px;margin:0;overflow-x:auto;font-family:Fira Mono,Consolas,Menlo,monospace;display:block;max-height:12rem;position:relative;padding:.5rem}.code-collapse{margin-inline-start:auto}.response-secondary-action-button{margin-left:.5rem}.add-to-editor-button{--calcite-internal-button-border-color: unset}}.collapsible-code{padding:.5rem}.collapsible-code summary{cursor:pointer;font-weight:500;color:var(--calcite-color-brand);outline:none;padding:.25rem 0}.collapsible-code[open] summary{color:var(--calcite-color-text-2)}.collapsible-error{padding:.5rem}.collapsible-error summary{cursor:pointer;font-weight:500;color:var(--calcite-color-status-danger);outline:none;padding:.25rem 0}.collapsible-error[open] summary{color:var(--calcite-color-text-2)}.response-error-container{padding:.5rem;background:color-mix(in srgb,var(--calcite-color-status-warning) 10%,transparent);border-radius:var(--calcite-corner-radius-round);margin:1rem 0;font-size:var(--calcite-font-size--2);--calcite-input-message-icon-color: var(--calcite-color-status-warning)}.response-error-chip{--calcite-internal-chip-background-color: var(--calcite-color-status-warning);--calcite-chip-icon-color: var(--calcite-color-foreground-1);--calcite-chip-border-color: var(--calcite-color-transparent)}.feedback-actions{gap:unset}.contained{max-width:100%;max-height:100%;max-width:100cqi;max-height:75cqb;overflow-y:auto}}:host([closed]){display:none}`;
|
|
22
22
|
class v extends Error {
|
|
23
23
|
constructor({
|
|
@@ -17,7 +17,7 @@ import { s as U } from "../../chunks/editor.js";
|
|
|
17
17
|
import j from "@arcgis/core/identity/IdentityManager.js";
|
|
18
18
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
19
19
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
20
|
-
v5.0.0-next.
|
|
20
|
+
v5.0.0-next.77 */
|
|
21
21
|
const z = w`@layer{arcgis-arcade-editor{display:flex;flex-direction:column;position:relative;overflow:hidden;border:var(--arcgis-coding-components-border)!important;box-sizing:border-box;background-color:var(--arcgis-coding-components-background-color);height:100%;.sticky{position:sticky;top:0;z-index:10}.notice-container{margin:var(--calcite-spacing-xxs);padding:var(--calcite-spacing-sm);background-color:var(--calcite-color-foreground-1);text-align:center}.main-action-bar{border-bottom:var(--arcgis-coding-components-border)!important;flex:0 0 auto;calcite-action-group{padding-inline-end:var(--calcite-spacing-sm);calcite-action{padding-inline-end:var(--calcite-spacing-sm)}calcite-action:not(:first-child){padding-inline-start:var(--calcite-spacing-sm)}}calcite-action-group:last-child{border-inline-end-width:0px}calcite-action-group:not(:first-child){padding-inline-start:var(--calcite-spacing-sm)}}arcgis-arcade-results{border-top:var(--arcgis-coding-components-border)!important;box-sizing:border-box;max-height:50%;min-height:50%;margin-bottom:-1px}calcite-flow{[slot=footer]{word-break:break-word}}.hidden{display:none}}}`, N = "https://services6.arcgis.com/HXHga6CfMLMBOlBX/ArcGIS/rest/services/survey123_6e349a50b4504ca6b6107216d568db5f_form/FeatureServer/0", O = (s) => {
|
|
22
22
|
const { aiAssistantsEnabled: e } = s;
|
|
23
23
|
return e === void 0 ? (console.warn("areAiAssistantsEnabled is not defined in the organizations settings."), !1) : e;
|
|
@@ -1,62 +1,64 @@
|
|
|
1
|
-
import { c as
|
|
2
|
-
import { css as
|
|
3
|
-
import { nothing as
|
|
4
|
-
import { setValuesInString as o, quoteString as
|
|
5
|
-
import { B as x, v as b, M as m, f as
|
|
6
|
-
import { u as
|
|
7
|
-
import { s as
|
|
1
|
+
import { c as D } from "../../chunks/runtime.js";
|
|
2
|
+
import { css as w, html as t, unsafeCSS as O } from "lit";
|
|
3
|
+
import { nothing as T, LitElement as A, createEvent as y, safeClassMap as h } from "@arcgis/lumina";
|
|
4
|
+
import { setValuesInString as o, quoteString as v } from "@arcgis/toolkit/string";
|
|
5
|
+
import { B as x, v as b, M as m, f as F, a as L, b as I } from "../../chunks/arcade-executor.js";
|
|
6
|
+
import { u as _ } from "../../chunks/useT9n.js";
|
|
7
|
+
import { s as j } from "../../chunks/fields.js";
|
|
8
8
|
import "@arcgis/toolkit/function";
|
|
9
9
|
import { createRef as g, ref as $ } from "lit/directives/ref.js";
|
|
10
|
+
import { t as k } from "../../chunks/monaco-theme.js";
|
|
11
|
+
import { observeAncestorsMutation as z, unsafeGetCalciteModeName as N } from "@arcgis/toolkit/dom";
|
|
10
12
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
11
13
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
12
|
-
v5.0.0-next.
|
|
13
|
-
const
|
|
14
|
+
v5.0.0-next.77 */
|
|
15
|
+
const E = w`: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)}}`, l = {
|
|
14
16
|
lines: !0,
|
|
15
17
|
selectionMode: "none",
|
|
16
18
|
scale: "s",
|
|
17
|
-
oncalciteTreeSelect: (e) => e.currentTarget.selectedItems.forEach((
|
|
19
|
+
oncalciteTreeSelect: (e) => e.currentTarget.selectedItems.forEach((a) => a.selected = !1)
|
|
18
20
|
}, u = {
|
|
19
21
|
onClick: (e) => {
|
|
20
|
-
const
|
|
21
|
-
|
|
22
|
+
const a = e.currentTarget;
|
|
23
|
+
a.expanded = !a.expanded;
|
|
22
24
|
}
|
|
23
|
-
}, r = ({ name: e }) => t`<span class="dictionary-property">${e}</span><span>: </span>`, S = ({ value: e, subtree:
|
|
25
|
+
}, r = ({ name: e }) => t`<span class="dictionary-property">${e}</span><span>: </span>`, S = ({ value: e, subtree: a = !1 }) => t`<calcite-tree slot=${(a ? "children" : void 0) ?? T} .lines=${l.lines} .selectionMode=${l.selectionMode} .scale=${l.scale} @calciteTreeSelect=${l.oncalciteTreeSelect}><calcite-tree-item class="string-value">${JSON.stringify(e.castAsJson(), void 0, 2)}</calcite-tree-item></calcite-tree>`, P = ({ value: e, subtree: a = !1 }) => t`<calcite-tree slot=${(a ? "children" : void 0) ?? T} .lines=${l.lines} .selectionMode=${l.selectionMode} .scale=${l.scale} @calciteTreeSelect=${l.oncalciteTreeSelect}><calcite-tree-item><div class="tree-item-label">${r({ name: "type" })}${e.type}</div></calcite-tree-item><calcite-tree-item><div class="tree-item-label">${r({ name: "value" })}<span class="string-value">${JSON.stringify(e, void 0, 2)}</span></div></calcite-tree-item></calcite-tree>`, p = ({ arcadeResult: e }) => {
|
|
24
26
|
switch (e.type) {
|
|
25
27
|
case "unknown":
|
|
26
28
|
case "null":
|
|
27
29
|
return t`<span class="constant-value">${e.type}</span>`;
|
|
28
30
|
case "text":
|
|
29
|
-
return t`<span class="string-value">${
|
|
31
|
+
return t`<span class="string-value">${v(e.value)}</span>`;
|
|
30
32
|
case "number":
|
|
31
33
|
return t`<span class="number-value">${e.value.toString()}</span>`;
|
|
32
34
|
case "boolean":
|
|
33
35
|
return t`<span class="constant-value">${e.value.toString()}</span>`;
|
|
34
36
|
case "date":
|
|
35
|
-
return t`<span class="date-value">${
|
|
37
|
+
return t`<span class="date-value">${I(e)}</span>`;
|
|
36
38
|
case "dateOnly":
|
|
37
|
-
return t`<span class="string-value">${
|
|
39
|
+
return t`<span class="string-value">${v(L(e))}</span>`;
|
|
38
40
|
case "time":
|
|
39
|
-
return t`<span class="string-value">${
|
|
41
|
+
return t`<span class="string-value">${v(F(e))}</span>`;
|
|
40
42
|
default:
|
|
41
43
|
return null;
|
|
42
44
|
}
|
|
43
|
-
},
|
|
45
|
+
}, R = ({ arcadeResult: e, t9nStrings: a }) => {
|
|
44
46
|
const s = e.value ?? [], i = Math.max(s.length - m, 0);
|
|
45
|
-
return t`<span>${`${e.type}(${s.length ?? 0})`}</span>${i > 0 ? t`<span> ${o(
|
|
47
|
+
return t`<span>${`${e.type}(${s.length ?? 0})`}</span>${i > 0 ? t`<span> ${o(a.showingfirstitemsformat, {
|
|
46
48
|
count: m.toString()
|
|
47
49
|
})}</span>` : null}`;
|
|
48
|
-
},
|
|
50
|
+
}, C = ({ value: e, subtree: a, t9nStrings: s }) => {
|
|
49
51
|
const i = e.geometry?.();
|
|
50
|
-
return t`<calcite-tree slot=${"children"} .lines=${
|
|
52
|
+
return t`<calcite-tree slot=${"children"} .lines=${l.lines} .selectionMode=${l.selectionMode} .scale=${l.scale} @calciteTreeSelect=${l.oncalciteTreeSelect}>${e.keys().map((c) => {
|
|
51
53
|
const n = b(e.field(c));
|
|
52
54
|
return e.arcadeDeclaredClass === "esri.arcade.Feature" && n.type === "geometry" ? null : f({ arcadeResult: n, name: c, t9nStrings: s });
|
|
53
55
|
})}${i ? f({ arcadeResult: { type: "geometry", value: i }, name: "geometry", t9nStrings: s }) : null}</calcite-tree>`;
|
|
54
|
-
},
|
|
56
|
+
}, V = ({ arcadeResult: e, t9nStrings: a }) => t`<div class="value-type"><span>${e.type}:</span>${e.features.length >= x ? t`<span> ${o(a.showingfirstitemsformat, {
|
|
55
57
|
count: x.toString()
|
|
56
|
-
})}</span>` : null}</div>`,
|
|
58
|
+
})}</span>` : null}</div>`, M = ({ items: e, subtree: a, t9nStrings: s }) => t`<calcite-tree slot=${"children"} .lines=${l.lines} .selectionMode=${l.selectionMode} .scale=${l.scale} @calciteTreeSelect=${l.oncalciteTreeSelect}>${e.map((i, c) => {
|
|
57
59
|
const n = b(i);
|
|
58
|
-
return f({ arcadeResult: n, name: c, expanded: !
|
|
59
|
-
})}</calcite-tree>`, f = ({ arcadeResult: e, name:
|
|
60
|
+
return f({ arcadeResult: n, name: c, expanded: !a, t9nStrings: s });
|
|
61
|
+
})}</calcite-tree>`, f = ({ arcadeResult: e, name: a, expanded: s, t9nStrings: i }) => {
|
|
60
62
|
switch (e.type) {
|
|
61
63
|
case "null":
|
|
62
64
|
case "unknown":
|
|
@@ -66,25 +68,25 @@ const _ = M`:host{display:flex;flex-direction:column;width:100%;background-color
|
|
|
66
68
|
case "dateOnly":
|
|
67
69
|
case "time":
|
|
68
70
|
case "boolean":
|
|
69
|
-
return t`<calcite-tree-item><div class="tree-item-label">${r({ name:
|
|
71
|
+
return t`<calcite-tree-item><div class="tree-item-label">${r({ name: a })}${p({ arcadeResult: e })}</div></calcite-tree-item>`;
|
|
70
72
|
case "array": {
|
|
71
73
|
const n = (e.value ?? []).slice(0, m);
|
|
72
|
-
return t`<calcite-tree-item .expanded=${s} @click=${u.onClick}><div class="tree-item-label">${r({ name:
|
|
74
|
+
return t`<calcite-tree-item .expanded=${s} @click=${u.onClick}><div class="tree-item-label">${r({ name: a })}${R({ arcadeResult: e, t9nStrings: i })}</div>${M({ items: n, subtree: !0, t9nStrings: i })}</calcite-tree-item>`;
|
|
73
75
|
}
|
|
74
76
|
case "geometry":
|
|
75
|
-
return t`<calcite-tree-item .expanded=${s} @click=${u.onClick}><div class="tree-item-label">${r({ name:
|
|
77
|
+
return t`<calcite-tree-item .expanded=${s} @click=${u.onClick}><div class="tree-item-label">${r({ name: a })}<span>${e.type}</span></div>${P({ value: e.value, subtree: !0 })}</calcite-tree-item>`;
|
|
76
78
|
case "attachment":
|
|
77
|
-
return t`<calcite-tree-item .expanded=${s} @click=${u.onClick}><div class="tree-item-label">${r({ name:
|
|
79
|
+
return t`<calcite-tree-item .expanded=${s} @click=${u.onClick}><div class="tree-item-label">${r({ name: a })}<span>${e.type}</span></div>${S({ value: e.value, subtree: !0 })}</calcite-tree-item>`;
|
|
78
80
|
case "feature":
|
|
79
81
|
case "dictionary":
|
|
80
82
|
case "portal":
|
|
81
|
-
return t`<calcite-tree-item .expanded=${s} @click=${u.onClick}><div class="tree-item-label">${r({ name:
|
|
83
|
+
return t`<calcite-tree-item .expanded=${s} @click=${u.onClick}><div class="tree-item-label">${r({ name: a })}<span>${e.type}</span></div>${C({ value: e.value, subtree: !0, t9nStrings: i })}</calcite-tree-item>`;
|
|
82
84
|
default:
|
|
83
85
|
return null;
|
|
84
86
|
}
|
|
85
|
-
},
|
|
86
|
-
const
|
|
87
|
-
return t`<table><thead><tr>${
|
|
87
|
+
}, J = ({ arcadeResult: e }) => {
|
|
88
|
+
const a = j(e.value.fields);
|
|
89
|
+
return t`<table><thead><tr>${a.map((s) => t`<th>${s.name}</th>`)}</tr></thead><tbody>${e.features.map((s) => t`<tr>${a.map((i) => {
|
|
88
90
|
try {
|
|
89
91
|
const c = b(s.field(i.name));
|
|
90
92
|
return t`<td>${p({ arcadeResult: c })}</td>`;
|
|
@@ -92,62 +94,92 @@ const _ = M`:host{display:flex;flex-direction:column;width:100%;background-color
|
|
|
92
94
|
return t`<td></td>`;
|
|
93
95
|
}
|
|
94
96
|
})}</tr>`)}</tbody></table>`;
|
|
95
|
-
}
|
|
97
|
+
};
|
|
98
|
+
function G() {
|
|
99
|
+
let e = `:host {
|
|
100
|
+
`;
|
|
101
|
+
const a = k["light-theme"];
|
|
102
|
+
Object.entries(a).forEach(([i, c]) => {
|
|
103
|
+
e += ` --arcgis-editor-${i}: ${c};
|
|
104
|
+
`;
|
|
105
|
+
}), e += `}
|
|
106
|
+
`, e += `:host([calcite-mode-dark]) {
|
|
107
|
+
`;
|
|
108
|
+
const s = k["dark-theme"];
|
|
109
|
+
return Object.entries(s).forEach(([i, c]) => {
|
|
110
|
+
e += `
|
|
111
|
+
--arcgis-editor-${i}: ${c};`;
|
|
112
|
+
}), e += `
|
|
113
|
+
}
|
|
114
|
+
`, w`
|
|
115
|
+
${O(e)}
|
|
116
|
+
`;
|
|
117
|
+
}
|
|
118
|
+
const d = {
|
|
96
119
|
onClick: (e) => {
|
|
97
|
-
const
|
|
98
|
-
|
|
120
|
+
const a = e.currentTarget;
|
|
121
|
+
a.expanded = !a.expanded;
|
|
99
122
|
}
|
|
100
123
|
};
|
|
101
|
-
class
|
|
124
|
+
class B extends A {
|
|
102
125
|
constructor() {
|
|
103
|
-
super(...arguments), this.messages =
|
|
126
|
+
super(...arguments), this.messages = _(), this.outputRef = g(), this.consoleRef = g(), this.logRef = g(), this.openedResultPanel = "output", this.calciteModeDark = !1, this.arcgisClose = y({ bubbles: !1 }), this.arcgisOpenedResultPanelChange = y({ bubbles: !1 });
|
|
104
127
|
}
|
|
105
128
|
static {
|
|
106
|
-
this.properties = { consoleLogs: 0, loading: 5, openedResultPanel: 3, result: 0 };
|
|
129
|
+
this.properties = { consoleLogs: 0, loading: 5, openedResultPanel: 3, result: 0, calciteModeDark: 7 };
|
|
107
130
|
}
|
|
108
131
|
static {
|
|
109
|
-
this.styles =
|
|
132
|
+
this.styles = [E, G()];
|
|
133
|
+
}
|
|
134
|
+
load() {
|
|
135
|
+
this.manager.onLifecycle(() => {
|
|
136
|
+
const a = z(this.el, ["class"], this.updateTheme.bind(this));
|
|
137
|
+
return this.updateTheme(), () => a();
|
|
138
|
+
});
|
|
110
139
|
}
|
|
111
140
|
loaded() {
|
|
112
141
|
this.openedResultPanel && (this.openedResultPanel === "output" && this.outputRef.value ? this.outputRef.value.setFocus() : this.openedResultPanel === "console" && this.consoleRef.value ? this.consoleRef.value.setFocus() : this.openedResultPanel === "log" && this.logRef.value && this.logRef.value.setFocus());
|
|
113
142
|
}
|
|
114
|
-
updateResultPanel(
|
|
115
|
-
this.openedResultPanel =
|
|
143
|
+
updateResultPanel(a) {
|
|
144
|
+
this.openedResultPanel = a, this.arcgisOpenedResultPanelChange.emit(a);
|
|
116
145
|
}
|
|
117
|
-
_switchResultPanel(
|
|
118
|
-
const s =
|
|
146
|
+
_switchResultPanel(a) {
|
|
147
|
+
const s = a.currentTarget.dataset.panelName;
|
|
119
148
|
s && this.updateResultPanel(s);
|
|
120
149
|
}
|
|
121
150
|
_emitClose() {
|
|
122
151
|
this.arcgisClose.emit();
|
|
123
152
|
}
|
|
153
|
+
updateTheme() {
|
|
154
|
+
this.calciteModeDark = N(this.el) === "dark";
|
|
155
|
+
}
|
|
124
156
|
renderConsolePanel() {
|
|
125
|
-
return this.openedResultPanel !== "console" ? null : this.loading && !this.consoleLogs?.length ? t`<calcite-loader scale=s type=indeterminate label></calcite-loader>` : t`<div class="console-logs-container ltr-container">${this.consoleLogs?.length ? this.consoleLogs.map((
|
|
157
|
+
return this.openedResultPanel !== "console" ? null : this.loading && !this.consoleLogs?.length ? t`<calcite-loader scale=s type=indeterminate label></calcite-loader>` : t`<div class="console-logs-container ltr-container">${this.consoleLogs?.length ? this.consoleLogs.map((a) => t`<p>${a}</p>`) : t`<p>${this.messages.consolemessage}</p>`}</div>`;
|
|
126
158
|
}
|
|
127
159
|
renderLogPanel() {
|
|
128
160
|
if (this.openedResultPanel !== "log")
|
|
129
161
|
return null;
|
|
130
162
|
if (this.loading)
|
|
131
163
|
return t`<calcite-loader scale=s type=indeterminate label></calcite-loader>`;
|
|
132
|
-
const
|
|
164
|
+
const a = this.result?.type === "error" ? "color-error" : "color-success";
|
|
133
165
|
return t`<calcite-list label=results>${this.result ? t`<calcite-list-item .label=${o(this.messages.lastexecutionformat, {
|
|
134
166
|
timeStamp: new Intl.DateTimeFormat(this.messages._t9nLocale, {
|
|
135
167
|
dateStyle: "medium",
|
|
136
168
|
timeStyle: "medium"
|
|
137
169
|
}).format(this.result.timeStamp)
|
|
138
|
-
})}><calcite-icon slot=content-start icon=information scale=s class=${
|
|
170
|
+
})}><calcite-icon slot=content-start icon=information scale=s class=${h(a)}></calcite-icon></calcite-list-item><calcite-list-item .label=${o(this.messages.compilationtimeformat, {
|
|
139
171
|
time: new Intl.NumberFormat(this.messages._t9nLocale, {
|
|
140
172
|
style: "unit",
|
|
141
173
|
unit: "millisecond",
|
|
142
174
|
maximumFractionDigits: 2
|
|
143
175
|
}).format(this.result.compilationTime ?? 0)
|
|
144
|
-
})}><calcite-icon slot=content-start icon=information scale=s class=${
|
|
176
|
+
})}><calcite-icon slot=content-start icon=information scale=s class=${h(a)}></calcite-icon></calcite-list-item><calcite-list-item .label=${o(this.messages.executiontimeformat, {
|
|
145
177
|
time: new Intl.NumberFormat(this.messages._t9nLocale, {
|
|
146
178
|
style: "unit",
|
|
147
179
|
unit: "millisecond",
|
|
148
180
|
maximumFractionDigits: 2
|
|
149
181
|
}).format(this.result.executionTime ?? 0)
|
|
150
|
-
})}><calcite-icon slot=content-start icon=information scale=s class=${
|
|
182
|
+
})}><calcite-icon slot=content-start icon=information scale=s class=${h(a)}></calcite-icon></calcite-list-item>` : t`<calcite-list-item .label=${this.messages.runscriptmessage}><calcite-icon slot=content-start icon=information scale=s class="color-info"></calcite-icon></calcite-list-item>`}</calcite-list>`;
|
|
151
183
|
}
|
|
152
184
|
renderOutputPanel() {
|
|
153
185
|
if (this.openedResultPanel !== "output")
|
|
@@ -169,18 +201,18 @@ class j extends F {
|
|
|
169
201
|
return t`<div class="result-value-simple ltr-container"><span class="value-type">${this.result.type}: </span>${p({ arcadeResult: this.result })}</div>`;
|
|
170
202
|
case "array": {
|
|
171
203
|
const s = (this.result.value ?? []).slice(0, m);
|
|
172
|
-
return t`<div class="result-value-simple ltr-container"><calcite-tree .lines=${
|
|
204
|
+
return t`<div class="result-value-simple ltr-container"><calcite-tree .lines=${l.lines} .selectionMode=${l.selectionMode} .scale=${l.scale} @calciteTreeSelect=${l.oncalciteTreeSelect}><calcite-tree-item expanded @click=${d.onClick}><div class="tree-item-label">${R({ arcadeResult: this.result, t9nStrings: this.messages })}</div>${M({ items: s, subtree: !0, t9nStrings: this.messages })}</calcite-tree-item></calcite-tree></div>`;
|
|
173
205
|
}
|
|
174
206
|
case "geometry":
|
|
175
|
-
return t`<div class="result-value-simple ltr-container"><calcite-tree .lines=${
|
|
207
|
+
return t`<div class="result-value-simple ltr-container"><calcite-tree .lines=${l.lines} .selectionMode=${l.selectionMode} .scale=${l.scale} @calciteTreeSelect=${l.oncalciteTreeSelect}><calcite-tree-item expanded @click=${d.onClick}><div class="tree-item-label">${this.result.type}</div>${P({ value: this.result.value, subtree: !0 })}</calcite-tree-item></calcite-tree></div>`;
|
|
176
208
|
case "attachment":
|
|
177
|
-
return t`<div class="result-value-simple ltr-container"><calcite-tree .lines=${
|
|
209
|
+
return t`<div class="result-value-simple ltr-container"><calcite-tree .lines=${l.lines} .selectionMode=${l.selectionMode} .scale=${l.scale} @calciteTreeSelect=${l.oncalciteTreeSelect}><calcite-tree-item expanded @click=${d.onClick}><div class="tree-item-label">${this.result.type}</div>${S({ value: this.result.value, subtree: !0 })}</calcite-tree-item></calcite-tree></div>`;
|
|
178
210
|
case "feature":
|
|
179
211
|
case "dictionary":
|
|
180
212
|
case "portal":
|
|
181
|
-
return t`<div class="result-value-simple ltr-container"><calcite-tree .lines=${
|
|
213
|
+
return t`<div class="result-value-simple ltr-container"><calcite-tree .lines=${l.lines} .selectionMode=${l.selectionMode} .scale=${l.scale} @calciteTreeSelect=${l.oncalciteTreeSelect}><calcite-tree-item expanded @click=${d.onClick}><div class="tree-item-label">${this.result.type}</div>${C({ value: this.result.value, subtree: !0, t9nStrings: this.messages })}</calcite-tree-item></calcite-tree></div>`;
|
|
182
214
|
case "featureSet":
|
|
183
|
-
return t`<div class="result-value-table ltr-container">${
|
|
215
|
+
return t`<div class="result-value-table ltr-container">${V({ arcadeResult: this.result, t9nStrings: this.messages })}${J({ arcadeResult: this.result })}</div>`;
|
|
184
216
|
case "knowledgeGraph":
|
|
185
217
|
return t`<div class="result-value-simple ltr-container"><span class="value-type">${this.result.type}: </span><span class="string-value">${this.result.value.url}</span></div>`;
|
|
186
218
|
default:
|
|
@@ -191,7 +223,7 @@ class j extends F {
|
|
|
191
223
|
return t`<header class="flex-row"><calcite-action-bar class="flex-adjustable" layout=horizontal scale=s expanded expand-disabled><calcite-action-group scale=s><calcite-action .active=${this.openedResultPanel === "output"} .text=${this.messages.output ?? ""} text-enabled scale=s icon=list-show-all icon-flip-rtl @click=${this._switchResultPanel} data-panel-name=output ${$(this.outputRef)}></calcite-action><calcite-action .active=${this.openedResultPanel === "console"} .text=${this.messages.console ?? ""} text-enabled scale=s icon=console icon-flip-rtl @click=${this._switchResultPanel} data-panel-name=console ${$(this.consoleRef)}></calcite-action><calcite-action .active=${this.openedResultPanel === "log"} .text=${this.messages.log ?? ""} text-enabled scale=s icon=list icon-flip-rtl @click=${this._switchResultPanel} data-panel-name=log ${$(this.logRef)}></calcite-action></calcite-action-group></calcite-action-bar><calcite-action scale=s icon=x .text=${this.messages.close ?? ""} @click=${this._emitClose}></calcite-action></header><article class="flex-adjustable">${this.loading ? t`<calcite-loader scale=s type=indeterminate label></calcite-loader>` : t`<div class="flex-column y-scrollable-container">${this.renderOutputPanel()}${this.renderConsolePanel()}${this.renderLogPanel()}</div>`}</article>`;
|
|
192
224
|
}
|
|
193
225
|
}
|
|
194
|
-
|
|
226
|
+
D("arcgis-arcade-results", B);
|
|
195
227
|
export {
|
|
196
|
-
|
|
228
|
+
B as ArcgisArcadeResults
|
|
197
229
|
};
|