@arcgis/coding-components 5.0.0-next.123 → 5.0.0-next.124
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/{KBFTJJ7T.js → 3MIA2XQZ.js} +2 -2
- package/dist/cdn/{SKB3B7IU.js → 4LJTQZWW.js} +2 -2
- package/dist/cdn/{U3QDEN2G.js → 4XYFRBBR.js} +2 -2
- package/dist/cdn/{CDWEXLAS.js → 4Y6R6MQI.js} +2 -2
- package/dist/cdn/{P4TW7DBI.js → 55REAZ7V.js} +2 -2
- package/dist/cdn/{EB7DKJEJ.js → 5GR4XBOP.js} +2 -2
- package/dist/cdn/{Q5KGEDBE.js → 5ITFKKVZ.js} +2 -2
- package/dist/cdn/{XICATE5G.js → 66M74NC6.js} +2 -2
- package/dist/cdn/{LYSTTY6K.js → 6UYTY4E3.js} +2 -2
- package/dist/cdn/{SB3NUP4J.js → 7CBFSCCG.js} +1 -1
- package/dist/cdn/{OKWUXFG3.js → 7FXIEFR3.js} +2 -2
- package/dist/cdn/{UZZO3SUI.js → BS7DG5AD.js} +2 -2
- package/dist/cdn/{5OMU3HCN.js → BT52UHKC.js} +2 -2
- package/dist/cdn/{6GEJDWVQ.js → BYGCJU6Z.js} +2 -2
- package/dist/cdn/{OEKP6ARZ.js → CFMBBMFV.js} +2 -2
- package/dist/cdn/{7I3N5U2L.js → DDIB2E3H.js} +1 -1
- package/dist/cdn/{3AJSLHAX.js → EA5DSTV6.js} +1 -1
- package/dist/cdn/{BF2WMMEI.js → EXFGYPJ2.js} +1 -1
- package/dist/cdn/{KCEE5SGH.js → HYCWQZZI.js} +2 -2
- package/dist/cdn/{4EJVPJ6S.js → ICPAFIAA.js} +2 -2
- package/dist/cdn/{LM57FLMD.js → IDRFWYUA.js} +2 -2
- package/dist/cdn/{R7C4DPOP.js → JOPULDW6.js} +2 -2
- package/dist/cdn/{W6OFFZGA.js → JSJKYLLW.js} +1 -1
- package/dist/cdn/{UX46QJ2S.js → LBMYHT4Q.js} +2 -2
- package/dist/cdn/{JZSTD5RM.js → LLM7KVBR.js} +2 -2
- package/dist/cdn/{HUNG6LTU.js → LR4QV5NI.js} +2 -2
- package/dist/cdn/{LEUNKTRS.js → M3VMO37P.js} +2 -2
- package/dist/cdn/{PENMZRLN.js → MPY6CNJH.js} +2 -2
- package/dist/cdn/{TK5S3TVF.js → QQRC43MF.js} +2 -2
- package/dist/cdn/{D6Q3IOSD.js → QUWSFG75.js} +3 -3
- package/dist/cdn/{Y4EXZMWD.js → RBP6TTNV.js} +1 -1
- package/dist/cdn/{GH26ROWM.js → RBVG3RGE.js} +2 -2
- package/dist/cdn/{SRA5XA6E.js → RP6KGR7C.js} +2 -2
- package/dist/cdn/RWSSODQI.js +4 -0
- package/dist/cdn/{J7IX2YOG.js → SNYKC7WF.js} +2 -2
- package/dist/cdn/TF4SWIYY.js +8 -0
- package/dist/cdn/{JVJZQ5W4.js → UMFZP3TQ.js} +2 -2
- package/dist/cdn/{MAIR6G6S.js → VIDKLNUH.js} +2 -2
- package/dist/cdn/{QZN2YLKG.js → VKSQIHTK.js} +2 -2
- package/dist/cdn/{OYL5NSHY.js → VOFZE5TQ.js} +2 -2
- package/dist/cdn/{6W2W2MBK.js → VSPPJ34Y.js} +2 -2
- package/dist/cdn/{OCNO5WFU.js → WUX7GIVY.js} +1 -1
- package/dist/cdn/{EEA4JHWB.js → X324SFCI.js} +2 -2
- package/dist/cdn/{CJYF3F5E.js → X5CNM52D.js} +2 -2
- package/dist/cdn/{BFVPYR32.js → XB2H3BKT.js} +2 -2
- package/dist/cdn/{EEVKX4HF.js → XBQFW5F5.js} +2 -2
- package/dist/cdn/{SS25D2QB.js → YZMXKVJP.js} +1 -1
- package/dist/cdn/{QG2GH2I4.js → ZNA5PXHK.js} +2 -2
- package/dist/cdn/assets/code-editor/sql-expr.worker.js +1 -1
- package/dist/cdn/index.js +2 -2
- package/dist/chunks/arcade-contribution.js +1 -1
- package/dist/chunks/arcade-defaults.js +153 -130
- 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/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 +1 -1
- package/dist/chunks/runtime.js +1 -1
- package/dist/chunks/sql-expr-defaults.js +1 -1
- package/dist/chunks/sql-expr-mode.js +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 +1 -1
- 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-editor-shell/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 +1 -1
- package/dist/utils/arcade-monaco/arcade-defaults.d.ts +20 -0
- package/package.json +5 -5
- package/dist/cdn/SMKCMY3X.js +0 -4
- package/dist/cdn/TMTTXILL.js +0 -8
|
@@ -1,99 +1,99 @@
|
|
|
1
|
-
import { i as
|
|
2
|
-
import { supportedLocales as
|
|
3
|
-
import { g as
|
|
4
|
-
import { CompletionItemKind as
|
|
5
|
-
import { getDeclaredPixelMembers as
|
|
1
|
+
import { i as g, b as D, a as v, c as F, d as S, e as M, f as A, m as L, L as k, E } from "./language-defaults-base.js";
|
|
2
|
+
import { supportedLocales as I, fetchT9nStringsBundle as C } from "@arcgis/toolkit/intl";
|
|
3
|
+
import { g as h } from "./runtime.js";
|
|
4
|
+
import { CompletionItemKind as T, InsertTextFormat as p, InsertTextMode as f } from "vscode-languageserver-types";
|
|
5
|
+
import { getDeclaredPixelMembers as j } from "@arcgis/core/applications/Components/arcadeEditorUtils.js";
|
|
6
6
|
import "@arcgis/toolkit/type";
|
|
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.
|
|
10
|
-
async function
|
|
11
|
-
const { apiVersion:
|
|
12
|
-
return { apiVersion:
|
|
9
|
+
v5.0.0-next.124 */
|
|
10
|
+
async function $(e) {
|
|
11
|
+
const { apiVersion: r, bundles: n, hiddenApiItems: i } = e.toEditorProfileDefinition(), t = await P(e.dictionaryVariables);
|
|
12
|
+
return { apiVersion: r, bundles: n, variables: t, hiddenApiItems: i?.map((s) => s.toLowerCase()) };
|
|
13
13
|
}
|
|
14
|
-
async function
|
|
14
|
+
async function P(e, r = T.Variable) {
|
|
15
15
|
return await Promise.all(
|
|
16
|
-
e.map(async (
|
|
17
|
-
switch (
|
|
16
|
+
e.map(async (n) => {
|
|
17
|
+
switch (n.type) {
|
|
18
18
|
case "dictionary":
|
|
19
|
-
return await
|
|
19
|
+
return await q(n, r);
|
|
20
20
|
case "pixel":
|
|
21
|
-
return await
|
|
21
|
+
return await _(n, r);
|
|
22
22
|
// Voxel is equivalent to features in regards to the languageservice.
|
|
23
23
|
// They both have equivalent fields, but some voxel fields are different types (arrays)
|
|
24
24
|
// than what is reported in .fields, so in the sidebar we treat a bit differently.
|
|
25
25
|
// In autocomplete we don't differentiate types, so we can use the same logic as features.
|
|
26
26
|
case "voxel":
|
|
27
27
|
case "feature":
|
|
28
|
-
return await
|
|
28
|
+
return await K(n, r);
|
|
29
29
|
default:
|
|
30
|
-
return
|
|
30
|
+
return B(n, r);
|
|
31
31
|
}
|
|
32
32
|
})
|
|
33
33
|
);
|
|
34
34
|
}
|
|
35
|
-
function
|
|
36
|
-
const { name:
|
|
35
|
+
function B(e, r) {
|
|
36
|
+
const { name: n, type: i } = e, t = e.getDescription();
|
|
37
37
|
return {
|
|
38
|
-
name:
|
|
39
|
-
description:
|
|
40
|
-
type:
|
|
38
|
+
name: n,
|
|
39
|
+
description: t,
|
|
40
|
+
type: i,
|
|
41
41
|
completion: {
|
|
42
|
-
label:
|
|
43
|
-
detail:
|
|
44
|
-
insertText:
|
|
45
|
-
insertTextMode:
|
|
46
|
-
insertTextFormat:
|
|
47
|
-
kind:
|
|
48
|
-
documentation: { kind: "markdown", value:
|
|
42
|
+
label: n,
|
|
43
|
+
detail: n,
|
|
44
|
+
insertText: n,
|
|
45
|
+
insertTextMode: f.asIs,
|
|
46
|
+
insertTextFormat: p.PlainText,
|
|
47
|
+
kind: r,
|
|
48
|
+
documentation: { kind: "markdown", value: t }
|
|
49
49
|
}
|
|
50
50
|
};
|
|
51
51
|
}
|
|
52
|
-
async function
|
|
53
|
-
const
|
|
54
|
-
label:
|
|
55
|
-
detail:
|
|
56
|
-
insertText:
|
|
57
|
-
insertTextMode:
|
|
58
|
-
insertTextFormat:
|
|
59
|
-
kind:
|
|
52
|
+
async function K(e, r) {
|
|
53
|
+
const n = await e.loadSource(), { name: i } = e, t = e.getDescription(), s = {
|
|
54
|
+
label: i,
|
|
55
|
+
detail: i,
|
|
56
|
+
insertText: i,
|
|
57
|
+
insertTextMode: f.asIs,
|
|
58
|
+
insertTextFormat: p.PlainText,
|
|
59
|
+
kind: r
|
|
60
60
|
}, o = {
|
|
61
|
-
name:
|
|
62
|
-
description:
|
|
61
|
+
name: i,
|
|
62
|
+
description: t,
|
|
63
63
|
type: "dictionary",
|
|
64
64
|
properties: [],
|
|
65
65
|
completion: s
|
|
66
66
|
};
|
|
67
|
-
if (!
|
|
67
|
+
if (!n)
|
|
68
68
|
return o;
|
|
69
|
-
const [a, c] =
|
|
69
|
+
const [a, c] = A(n.fields, t, !0);
|
|
70
70
|
return o.properties = a, s.documentation = { kind: "markdown", value: c }, o;
|
|
71
71
|
}
|
|
72
|
-
async function
|
|
73
|
-
const
|
|
74
|
-
if (
|
|
72
|
+
async function _(e, r) {
|
|
73
|
+
const n = await e.loadSource(), i = e.toProfileVariableDefinition();
|
|
74
|
+
if (i.type !== "pixel")
|
|
75
75
|
throw new Error("Incorrect definition passed to pixel variable");
|
|
76
|
-
const { name:
|
|
77
|
-
label:
|
|
78
|
-
detail:
|
|
79
|
-
insertText:
|
|
80
|
-
insertTextMode:
|
|
81
|
-
insertTextFormat:
|
|
82
|
-
kind:
|
|
76
|
+
const { name: t } = e, s = e.getDescription(), o = {
|
|
77
|
+
label: t,
|
|
78
|
+
detail: t,
|
|
79
|
+
insertText: t,
|
|
80
|
+
insertTextMode: f.asIs,
|
|
81
|
+
insertTextFormat: p.PlainText,
|
|
82
|
+
kind: r
|
|
83
83
|
}, a = {
|
|
84
|
-
name:
|
|
84
|
+
name: t,
|
|
85
85
|
description: s,
|
|
86
86
|
type: "dictionary",
|
|
87
87
|
properties: [],
|
|
88
88
|
completion: o
|
|
89
89
|
};
|
|
90
|
-
if (!
|
|
90
|
+
if (!n || !i.definition)
|
|
91
91
|
return a;
|
|
92
|
-
const c = await
|
|
93
|
-
return a.properties =
|
|
92
|
+
const c = await j(n), [d, l] = L(c, s);
|
|
93
|
+
return a.properties = d, o.documentation = { kind: "markdown", value: l }, a;
|
|
94
94
|
}
|
|
95
|
-
async function
|
|
96
|
-
const { name:
|
|
95
|
+
async function q(e, r) {
|
|
96
|
+
const { name: n, dictionaryVariables: i } = e, t = e.getDescription(), s = i.reduce((o, a) => {
|
|
97
97
|
o !== "" && (o += `
|
|
98
98
|
|
|
99
99
|
`), o += `**${a.name}**
|
|
@@ -101,53 +101,53 @@ ${a.type}`;
|
|
|
101
101
|
const c = a.getDescription();
|
|
102
102
|
return c && (o += `
|
|
103
103
|
${c}`), o;
|
|
104
|
-
},
|
|
104
|
+
}, t);
|
|
105
105
|
return {
|
|
106
|
-
name:
|
|
107
|
-
description:
|
|
106
|
+
name: n,
|
|
107
|
+
description: t,
|
|
108
108
|
type: "dictionary",
|
|
109
|
-
properties: await
|
|
109
|
+
properties: await P(i, T.Field),
|
|
110
110
|
completion: {
|
|
111
|
-
label:
|
|
112
|
-
detail:
|
|
113
|
-
insertText:
|
|
114
|
-
insertTextMode:
|
|
115
|
-
insertTextFormat:
|
|
116
|
-
kind:
|
|
111
|
+
label: n,
|
|
112
|
+
detail: n,
|
|
113
|
+
insertText: n,
|
|
114
|
+
insertTextMode: f.asIs,
|
|
115
|
+
insertTextFormat: p.PlainText,
|
|
116
|
+
kind: r,
|
|
117
117
|
documentation: { kind: "markdown", value: s }
|
|
118
118
|
}
|
|
119
119
|
};
|
|
120
120
|
}
|
|
121
|
-
async function
|
|
122
|
-
const
|
|
123
|
-
if (
|
|
124
|
-
return
|
|
125
|
-
if (!
|
|
126
|
-
return await
|
|
121
|
+
async function y(e = "en") {
|
|
122
|
+
const r = x.get(e);
|
|
123
|
+
if (r)
|
|
124
|
+
return r;
|
|
125
|
+
if (!I.has(e))
|
|
126
|
+
return await y("en");
|
|
127
127
|
try {
|
|
128
|
-
const
|
|
129
|
-
return
|
|
128
|
+
const n = await fetch(h(`./assets/arcade-language/profiles/arcade-profiles.t9n.${e}.json`));
|
|
129
|
+
return n.ok ? Q(e, await n.json()) : e === "en" ? null : await y("en");
|
|
130
130
|
} catch {
|
|
131
131
|
return null;
|
|
132
132
|
}
|
|
133
133
|
}
|
|
134
|
-
const
|
|
135
|
-
function
|
|
136
|
-
const
|
|
137
|
-
return
|
|
138
|
-
|
|
139
|
-
}),
|
|
134
|
+
const x = /* @__PURE__ */ new Map();
|
|
135
|
+
function Q(e, r) {
|
|
136
|
+
const n = /* @__PURE__ */ new Map();
|
|
137
|
+
return r.forEach((i) => {
|
|
138
|
+
n.set(i.id, i);
|
|
139
|
+
}), x.set(e, n), n;
|
|
140
140
|
}
|
|
141
|
-
async function
|
|
142
|
-
return (await
|
|
141
|
+
async function U(e, r = "en") {
|
|
142
|
+
return (await y(r))?.get(e) ?? null;
|
|
143
143
|
}
|
|
144
144
|
function z(e) {
|
|
145
145
|
return !!e && typeof e == "object" && "additionalVariables" in e && Array.isArray(e.additionalVariables);
|
|
146
146
|
}
|
|
147
147
|
function G(e) {
|
|
148
|
-
return e?.map(
|
|
148
|
+
return e?.map(m);
|
|
149
149
|
}
|
|
150
|
-
function
|
|
150
|
+
function m(e) {
|
|
151
151
|
switch (e.type) {
|
|
152
152
|
case "dictionary":
|
|
153
153
|
return {
|
|
@@ -165,44 +165,44 @@ function d(e) {
|
|
|
165
165
|
return { ...e, type: e.type };
|
|
166
166
|
}
|
|
167
167
|
}
|
|
168
|
-
async function H(e,
|
|
169
|
-
if (!
|
|
168
|
+
async function H(e, r = "en") {
|
|
169
|
+
if (!g(e))
|
|
170
170
|
return;
|
|
171
|
-
const
|
|
172
|
-
if (!
|
|
171
|
+
const n = await U(e.id, r);
|
|
172
|
+
if (!n)
|
|
173
173
|
return;
|
|
174
|
-
const
|
|
175
|
-
bundles: [...
|
|
174
|
+
const i = {
|
|
175
|
+
bundles: [...n.bundles],
|
|
176
176
|
variables: [],
|
|
177
|
-
hiddenApiItems: e.hiddenApiItems?.map((
|
|
177
|
+
hiddenApiItems: e.hiddenApiItems?.map((t) => t.toLowerCase())
|
|
178
178
|
};
|
|
179
|
-
return
|
|
180
|
-
if (e.disabledVariables?.includes(
|
|
179
|
+
return n.variables.forEach((t) => {
|
|
180
|
+
if (e.disabledVariables?.includes(t.name))
|
|
181
181
|
return;
|
|
182
|
-
const s = e.definitions[
|
|
183
|
-
switch (
|
|
182
|
+
const s = e.definitions[t.name];
|
|
183
|
+
switch (t.type) {
|
|
184
184
|
case "dictionary":
|
|
185
|
-
return
|
|
186
|
-
|
|
187
|
-
...
|
|
188
|
-
type:
|
|
189
|
-
properties: Array.isArray(s) ? [...s] :
|
|
185
|
+
return i.variables.push(
|
|
186
|
+
m({
|
|
187
|
+
...t,
|
|
188
|
+
type: t.type,
|
|
189
|
+
properties: Array.isArray(s) ? [...s] : t.properties
|
|
190
190
|
})
|
|
191
191
|
);
|
|
192
192
|
case "feature":
|
|
193
|
-
return
|
|
193
|
+
return M(s) ? i.variables.push({ ...t, type: "feature", definition: s }) : void 0;
|
|
194
194
|
case "pixel":
|
|
195
|
-
return
|
|
195
|
+
return S(s) ? i.variables.push({ ...t, type: t.type, definition: s }) : void 0;
|
|
196
196
|
case "voxel":
|
|
197
|
-
return
|
|
197
|
+
return F(s) ? i.variables.push({ ...t, type: t.type, definition: s }) : void 0;
|
|
198
198
|
case "featureSet":
|
|
199
|
-
return
|
|
199
|
+
return v(s) ? i.variables.push({ ...t, type: t.type, definition: s }) : void 0;
|
|
200
200
|
case "featureSetCollection":
|
|
201
|
-
return
|
|
201
|
+
return D(s) ? i.variables.push({ ...t, type: t.type, definition: s }) : void 0;
|
|
202
202
|
default:
|
|
203
|
-
return
|
|
203
|
+
return i.variables.push(m(t));
|
|
204
204
|
}
|
|
205
|
-
}), z(e) &&
|
|
205
|
+
}), z(e) && i.variables.push(...e.additionalVariables ?? []), i;
|
|
206
206
|
}
|
|
207
207
|
const J = [
|
|
208
208
|
"catalog-footprint",
|
|
@@ -225,7 +225,21 @@ const O = {
|
|
|
225
225
|
N(e)
|
|
226
226
|
)
|
|
227
227
|
};
|
|
228
|
-
class
|
|
228
|
+
class R extends k {
|
|
229
|
+
/**
|
|
230
|
+
* Per-model update chaining to serialize profile updates.
|
|
231
|
+
*
|
|
232
|
+
* Why this is necessary:
|
|
233
|
+
* `setProfileForModel` does multiple async steps (t9n load, predefined profile conversion,
|
|
234
|
+
* profile -> API conversion, model disposal + re-init). If callers invoke it twice quickly,
|
|
235
|
+
* the *earlier* call can complete *after* the later call and overwrite the newer API context,
|
|
236
|
+
* because a new profile could convert faster than an old one (e.g. if the newer one is a simple
|
|
237
|
+
* editor profile but the older one is a complex predefined profile that takes a while to convert).
|
|
238
|
+
*
|
|
239
|
+
* We prevent that race by chaining a promise per model key so updates for the same model run
|
|
240
|
+
* strictly in call order.
|
|
241
|
+
*/
|
|
242
|
+
#e = /* @__PURE__ */ new Map();
|
|
229
243
|
constructor() {
|
|
230
244
|
super("arcade", {
|
|
231
245
|
apiPath: "./assets/arcade-language/api",
|
|
@@ -242,31 +256,40 @@ class Q extends A {
|
|
|
242
256
|
* @param locale The locale to use for the model context.
|
|
243
257
|
* @returns The EditorProfile for the model.
|
|
244
258
|
*/
|
|
245
|
-
async setProfileForModel(
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
259
|
+
async setProfileForModel(r, n, i = { locale: "en" }) {
|
|
260
|
+
const t = this._getApiKey(r), o = (this.#e.get(t) || Promise.resolve()).then(async () => {
|
|
261
|
+
const c = n, d = g(c) ? await H(c, i.locale) : c, l = await C(
|
|
262
|
+
i.locale,
|
|
263
|
+
h("./assets/editor-profile/t9n"),
|
|
264
|
+
"messages."
|
|
265
|
+
);
|
|
266
|
+
if (!l)
|
|
267
|
+
throw new Error(`Failed to load the language bundle for ${i.locale}`);
|
|
268
|
+
this.disposeForModel(r);
|
|
269
|
+
const w = new E(
|
|
270
|
+
d,
|
|
271
|
+
l,
|
|
272
|
+
i.locale,
|
|
273
|
+
O
|
|
274
|
+
);
|
|
275
|
+
this._modelToProfileMap.set(t, w);
|
|
276
|
+
const b = await $(w);
|
|
277
|
+
this.updateApiContextForModel(r, {
|
|
278
|
+
locale: i.locale,
|
|
279
|
+
profile: b,
|
|
280
|
+
snippets: i.snippets
|
|
281
|
+
});
|
|
282
|
+
}), a = o.finally(() => {
|
|
283
|
+
this.#e.get(t) === a && this.#e.delete(t);
|
|
262
284
|
});
|
|
285
|
+
return this.#e.set(t, a), await o;
|
|
263
286
|
}
|
|
264
287
|
}
|
|
265
|
-
const
|
|
266
|
-
setProfileForModel:
|
|
267
|
-
getApiLibraryForModel:
|
|
288
|
+
const u = new R(), te = {
|
|
289
|
+
setProfileForModel: u.setProfileForModel.bind(u),
|
|
290
|
+
getApiLibraryForModel: u.getApiLibraryForModel.bind(u)
|
|
268
291
|
};
|
|
269
292
|
export {
|
|
270
|
-
|
|
271
|
-
|
|
293
|
+
te as a,
|
|
294
|
+
u as b
|
|
272
295
|
};
|
|
@@ -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.124 */
|
|
5
5
|
const O = "https://developers.arcgis.com/arcade/", P = 100, A = 100;
|
|
6
6
|
function g(t) {
|
|
7
7
|
return !!t && typeof t == "object" && "declaredRootClass" in t && typeof t.declaredRootClass == "string" && t.declaredRootClass === "esri.arcade.featureset.support.FeatureSet";
|
|
@@ -14,7 +14,7 @@ import { rethrowError as f } from "@arcgis/toolkit/log";
|
|
|
14
14
|
import { Deferred as b } from "@arcgis/toolkit/promise";
|
|
15
15
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
16
16
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
17
|
-
v5.0.0-next.
|
|
17
|
+
v5.0.0-next.124 */
|
|
18
18
|
const S = [
|
|
19
19
|
"<=",
|
|
20
20
|
">=",
|
|
@@ -9,7 +9,7 @@ import "monaco-editor/esm/vs/editor/browser/editorDom.js";
|
|
|
9
9
|
import "monaco-editor/esm/vs/editor/browser/controller/mouseTarget.js";
|
|
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.124 */
|
|
13
13
|
function g() {
|
|
14
14
|
return !!window.MonacoEnvironment?.getWorker;
|
|
15
15
|
}
|
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.124 */
|
|
8
8
|
async function c(e, o) {
|
|
9
9
|
return await (await i()).colorize(e, o, { tabSize: 2 });
|
|
10
10
|
}
|
package/dist/chunks/fields.js
CHANGED
|
@@ -17,7 +17,7 @@ import { filterApiLibraryForContext as ye } from "@arcgis/languages-api-utils";
|
|
|
17
17
|
import { Emitter as E, Uri as j } from "monaco-editor";
|
|
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.124 */
|
|
21
21
|
function q(t) {
|
|
22
22
|
return !!t && typeof t == "object" && "declaredClass" in t && typeof t.declaredClass == "string" && t.declaredClass.startsWith("esri.layers.") && D(t) && "queryFeatures" in t && typeof t.queryFeatures == "function";
|
|
23
23
|
}
|
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.124 */
|
|
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
|
}
|
|
@@ -8,7 +8,7 @@ import "monaco-editor/esm/vs/editor/browser/editorDom.js";
|
|
|
8
8
|
import "monaco-editor/esm/vs/editor/browser/controller/mouseTarget.js";
|
|
9
9
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
10
10
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
11
|
-
v5.0.0-next.
|
|
11
|
+
v5.0.0-next.124 */
|
|
12
12
|
const r = async () => {
|
|
13
13
|
const { editor: t } = await import("monaco-editor/esm/vs/editor/editor.api.js");
|
|
14
14
|
return t;
|
|
@@ -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.124 */
|
|
4
4
|
const e = {
|
|
5
5
|
"light-theme": { comment: "#606060", constant: "#9809C8", date: "#296389", identifier: "#0000B3", keyword: "#BF4900", number: "#136D3D", string: "#A31515", operator: "#9809C8", predefined: "#0000B3" },
|
|
6
6
|
"dark-theme": { comment: "#BFBFBF", constant: "#CDBAEA", date: "#97A6CE", identifier: "#9FD4F3", keyword: "#EEAA5A", number: "#AAD04B", string: "#F2877B", operator: "#CDBAEA", predefined: "#9FD4F3" }
|
package/dist/chunks/runtime.js
CHANGED
|
@@ -3,7 +3,7 @@ import { makeRuntime as e } from "@arcgis/lumina";
|
|
|
3
3
|
import { trackAccess as s, createObservable as r, createTrackingTarget as a, runTracked as c } from "@arcgis/core/applications/Components/reactiveUtils.js";
|
|
4
4
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
5
5
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
6
|
-
v5.0.0-next.
|
|
6
|
+
v5.0.0-next.124 */
|
|
7
7
|
const t = e({ defaultAssetPath: "https://jsdev.arcgis.com/5.0.0-next/coding-components/", hydratedAttribute: "hydrated" }), { customElement: n, getAssetPath: d, setAssetPath: i } = t;
|
|
8
8
|
t.t = s;
|
|
9
9
|
t.o = r;
|
|
@@ -4,7 +4,7 @@ import { fetchT9nStringsBundle as M } from "@arcgis/toolkit/intl";
|
|
|
4
4
|
import { g as b } from "./runtime.js";
|
|
5
5
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
6
6
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
7
|
-
v5.0.0-next.
|
|
7
|
+
v5.0.0-next.124 */
|
|
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 {
|
|
@@ -14,7 +14,7 @@ import { rethrowError as g } from "@arcgis/toolkit/log";
|
|
|
14
14
|
import { g as N } from "./sql-expr-service-accessors.js";
|
|
15
15
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
16
16
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
17
|
-
v5.0.0-next.
|
|
17
|
+
v5.0.0-next.124 */
|
|
18
18
|
let h = new m();
|
|
19
19
|
class C {
|
|
20
20
|
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.124 */
|
|
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.124 */
|
|
6
6
|
function b(e, r, s, u) {
|
|
7
7
|
if (!r)
|
|
8
8
|
return [];
|
|
@@ -20,7 +20,7 @@ import { getDeclaredVoxelMembers as ce, getDeclaredPixelMembers as ne } from "@a
|
|
|
20
20
|
import { s as le } from "../../chunks/fields.js";
|
|
21
21
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
22
22
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
23
|
-
v5.0.0-next.
|
|
23
|
+
v5.0.0-next.124 */
|
|
24
24
|
const de = Z`:host(:not([closed])){container-type:size;--calcite-block-border-color: var(--calcite-color-transparent);box-sizing:border-box;.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}.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=heading] 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}`;
|
|
25
25
|
class v extends Error {
|
|
26
26
|
constructor({
|
|
@@ -20,7 +20,7 @@ import N from "@arcgis/core/identity/IdentityManager.js";
|
|
|
20
20
|
import { log as O, rethrowError as o } from "@arcgis/toolkit/log";
|
|
21
21
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
22
22
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
23
|
-
v5.0.0-next.
|
|
23
|
+
v5.0.0-next.124 */
|
|
24
24
|
const j = y`:host{height:100%}calcite-tooltip:not([calcite-hydrated])>*{display:none}.main-action-bar{calcite-action-group{padding-inline-end:var(--calcite-spacing-sm)}calcite-action-group calcite-action{padding-inline-end:var(--calcite-spacing-sm)}calcite-action-group 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)}}`, z = "https://services6.arcgis.com/HXHga6CfMLMBOlBX/ArcGIS/rest/services/survey123_6e349a50b4504ca6b6107216d568db5f_form/FeatureServer/0", a = (s, e) => O(s, "Arcade Assistant", e), H = (s) => {
|
|
25
25
|
const { aiAssistantsEnabled: e } = s;
|
|
26
26
|
return e === void 0 ? (a("warn", "`areAiAssistantsEnabled` is not defined in the organizations settings."), !1) : e;
|
|
@@ -11,7 +11,7 @@ import { t as k } from "../../chunks/monaco-theme.js";
|
|
|
11
11
|
import { observeAncestorsMutation as z, unsafeGetCalciteModeName as N } from "@arcgis/toolkit/dom";
|
|
12
12
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
13
13
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
14
|
-
v5.0.0-next.
|
|
14
|
+
v5.0.0-next.124 */
|
|
15
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 = {
|
|
16
16
|
lines: !0,
|
|
17
17
|
selectionMode: "none",
|
|
@@ -9,7 +9,7 @@ import { c as b } from "../../chunks/markdown.js";
|
|
|
9
9
|
import { u as _ } from "../../chunks/useT9n.js";
|
|
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.124 */
|
|
13
13
|
function v(o) {
|
|
14
14
|
return !Array.isArray(o) || !o.length ? !1 : Array.isArray(o[0].suggestions);
|
|
15
15
|
}
|
|
@@ -19,7 +19,7 @@ import { EditorMouseEventFactory as x, EditorMouseEvent as I } from "monaco-edit
|
|
|
19
19
|
import { MouseTargetFactory as T } from "monaco-editor/esm/vs/editor/browser/controller/mouseTarget.js";
|
|
20
20
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
21
21
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
22
|
-
v5.0.0-next.
|
|
22
|
+
v5.0.0-next.124 */
|
|
23
23
|
const L = v`/*!-----------------------------------------------------------
|
|
24
24
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
25
25
|
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
|
@@ -3,7 +3,7 @@ import { css as e, html as n } from "lit";
|
|
|
3
3
|
import { LitElement as r } from "@arcgis/lumina";
|
|
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.124 */
|
|
7
7
|
const i = e`:host{--arcgis-coding-components-internal-border: var( --arcgis-coding-components-border, 1px solid var(--calcite-color-border-3) );--arcgis-coding-components-internal-background-color: var( --arcgis-coding-components-background-color, var(--calcite-color-foreground-1) );--arcgis-coding-components-internal-side-action-bar-max-w: var(--arcgis-coding-components-side-action-bar-max-w, 25%);--arcgis-coding-components-internal-code-editor-side-panel-w: var( --arcgis-coding-components-code-editor-side-panel-w, 600px );--arcgis-coding-components-internal-code-editor-side-panel-max-w: var( --arcgis-coding-components-code-editor-side-panel-max-w, 45% );--arcgis-coding-components-internal-code-editor-results-panel-max-h: var( --arcgis-coding-components-code-editor-results-panel-max-h, 50% );--arcgis-coding-components-internal-code-editor-results-panel-h: var( --arcgis-coding-components-code-editor-results-panel-h, 50% );display:flex;flex-direction:column;position:relative;overflow:hidden;border:var(--arcgis-coding-components-internal-border);box-sizing:border-box;background-color:var(--arcgis-coding-components-internal-background-color);height:100%;.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}}slot[name=top-action-bar]::slotted(*){border-bottom:var(--arcgis-coding-components-internal-border);flex:0 0 auto}slot[name=side-panel]::slotted(*){max-width:var(--arcgis-coding-components-internal-code-editor-side-panel-max-w);width:var(--arcgis-coding-components-internal-code-editor-side-panel-w);border-inline-start:var(--arcgis-coding-components-internal-border);box-sizing:border-box;flex:1 0 auto}slot[name=side-panel]::slotted(.hidden){display:none}slot[name=editor]::slotted(*){flex:1 1 auto;overflow:hidden}slot[name=results-panel]::slotted(*){flex:0 0 var(--arcgis-coding-components-internal-code-editor-results-panel-h);overflow:hidden;border-top:var(--arcgis-coding-components-internal-border);box-sizing:border-box;max-height:var(--arcgis-coding-components-internal-code-editor-results-panel-max-h);margin-bottom:-1px}slot[name=side-action-bar]::slotted(*){max-width:var(--arcgis-coding-components-internal-side-action-bar-max-w);border-inline-start:var(--arcgis-coding-components-internal-border)}`;
|
|
8
8
|
class t extends r {
|
|
9
9
|
static {
|
|
@@ -12,7 +12,7 @@ import { Task as N } from "@lit/task";
|
|
|
12
12
|
import { rethrowError as O, log as w } from "@arcgis/toolkit/log";
|
|
13
13
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
14
14
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
15
|
-
v5.0.0-next.
|
|
15
|
+
v5.0.0-next.124 */
|
|
16
16
|
const z = E`pre{direction:ltr;overflow-x:auto;background-color:var(--calcite-color-foreground-2);padding:var(--calcite-spacing-sm);white-space:pre-line;code{font-size:var(--calcite-font-size--2);font-family:var(--calcite-font-family-code)}}:host([round]){pre{border-radius:var(--calcite-corner-radius-round)}}`;
|
|
17
17
|
class L extends p {
|
|
18
18
|
constructor() {
|