@arcgis/coding-components 5.2.0-next.136 → 5.2.0-next.137
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/cdn/7GVCXLAE.js +2 -0
- package/dist/cdn/{WHOYO2EQ.js → BPCBI4SE.js} +3 -3
- package/dist/cdn/EQDKZIAP.js +2 -0
- package/dist/cdn/GDTEFKCP.js +2 -0
- package/dist/cdn/GJ4W3JPG.js +2 -0
- package/dist/cdn/J7TSCCXO.js +6 -0
- package/dist/cdn/JFO2HVZ6.js +2 -0
- package/dist/cdn/JGRWZYW5.js +3 -0
- package/dist/cdn/N56B3UDM.js +2 -0
- package/dist/cdn/{FFLWFFHU.js → OMJLVFHT.js} +1 -1
- package/dist/cdn/{YJ4WRZOI.js → ZJCPZ5ZN.js} +1 -1
- package/dist/cdn/assets/arcade-debugger-output/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/code-editor/sql-expr.worker.js +4585 -4421
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/arcade-defaults.js +95 -102
- package/dist/chunks/setup-monaco-theme.js +34 -67
- package/dist/chunks/sql-expr-mode.js +73 -61
- package/dist/chunks/sql-expr-service-accessors.js +35 -2
- package/dist/components/arcgis-arcade-coding-assistant/customElement.js +22 -23
- package/dist/components/arcgis-arcade-debugger-output/customElement.js +8 -8
- package/dist/components/arcgis-arcade-editor/customElement.d.ts +12 -1
- package/dist/components/arcgis-arcade-editor/customElement.js +104 -104
- package/dist/components/arcgis-code-editor/customElement.js +12 -11
- package/dist/components/arcgis-code-viewer/customElement.js +2 -1
- package/dist/components/arcgis-sql-expression-editor/customElement.d.ts +2 -0
- package/dist/components/arcgis-sql-expression-editor/customElement.js +13 -7
- package/dist/components/types.d.ts +11 -0
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/loader.js +6 -6
- package/dist/types/lumina.d.ts +1 -1
- package/dist/types/preact.d.ts +1 -1
- package/dist/types/react.d.ts +1 -1
- package/dist/types/stencil.d.ts +1 -1
- package/package.json +7 -7
- package/dist/cdn/DBAL7LSK.js +0 -2
- package/dist/cdn/EDJMOEXG.js +0 -2
- package/dist/cdn/FQWGIGBG.js +0 -2
- package/dist/cdn/M4ASZPOM.js +0 -2
- package/dist/cdn/SQQXRZAR.js +0 -2
- package/dist/cdn/XMKMX4RT.js +0 -2
- package/dist/cdn/XUI74PBQ.js +0 -2
- package/dist/cdn/YCA4A2EF.js +0 -6
package/dist/cdn/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{J as s,v as e}from"./O6XP7VU2.js";import"./BFPEJYVB.js";import"./H6RQVSYM.js";var i=e(s,{"arcgis-arcade-coding-assistant":[()=>import("./
|
|
2
|
+
import{J as s,v as e}from"./O6XP7VU2.js";import"./BFPEJYVB.js";import"./H6RQVSYM.js";var i=e(s,{"arcgis-arcade-coding-assistant":[()=>import("./BPCBI4SE.js"),"appVersion,closed,closePanel:,diagnostics:,disableQuestionAnswerLogging,docsConfig:,editorRef:,feedbackServiceUrl,helpBase,insertText:,isDevEnv,portalUrl,promptingEnabled,serviceUrl;destroy,openPrompt"],"arcgis-arcade-debugger-console":[()=>import("./VHXEN75D.js"),"debuggerStore:,modelId"],"arcgis-arcade-debugger-output":[()=>import("./GDTEFKCP.js"),"debuggerStore:,result:"],"arcgis-arcade-editor":[()=>import("./7GVCXLAE.js"),"arcadeAssistant:,customPanels:,disableAssistant,docsConfig:,editorInstance:,editorOptions:,enableDebugger,externalExecutor:,hideDocumentationActions,hideSideBar,messageOverrides:,messages:,openedSidePanel,profile:,script,sideActionBarExpanded,snippets:,suggestions:,testData:;getTestResult,openArcadeAssistant,setFocus,testRun"],"arcgis-arcade-results":[()=>import("./CP57L67B.js"),"consoleLogs:,executionTiming:,hideHeader,loading,openedResultPanel,result:"],"arcgis-arcade-suggestions":[()=>import("./DNFQPV52.js"),"closed,suggestions:"],"arcgis-code-editor":[()=>import("./ZJCPZ5ZN.js"),"editorInstance:,editorOptions:,language,modelId,value;insertSnippet,insertText,setFocus"],"arcgis-code-editor-shell":[()=>import("./OO3J7H7X.js")],"arcgis-code-viewer":[()=>import("./GJ4W3JPG.js"),"language,lineNumbers,round"],"arcgis-editor-variables":[()=>import("./467GNIKK.js"),"closed,heading,hideDescriptions,loading,messageOverrides:,modelId,variable:"],"arcgis-language-api-panel":[()=>import("./JNI62OTM.js"),"apiLibrary:,closed,hideDocumentationActions,languageId,loading"],"arcgis-sql-expression-editor":[()=>import("./EQDKZIAP.js"),"hideDescriptionsInFieldsPanel,hideSideBar,messageOverrides:,messages:,profile:,script;formatExpression,setFocus"],"arcgis-sql-layer-editor":[()=>import("./4OC4PWCA.js"),"editorInstance:,editorOptions:,hideSideBar,messageOverrides:,messages:,openedSidePanel,profile:,script;setFocus"]});i({resourcesUrl:import.meta.url});var r=new CSSStyleSheet;r.replaceSync("@layer{:not([hydrated]):is(arcgis-arcade-editor,arcgis-code-editor,arcgis-code-editor-shell,arcgis-code-viewer,arcgis-sql-expression-editor,arcgis-sql-layer-editor){visibility:hidden}}");document.adoptedStyleSheets=[...document.adoptedStyleSheets,r];window.$arcgis||Object.defineProperty(window,"$arcgis",{configurable:!1,enumerable:!0,writable:!1,value:{}}),((a,r)=>{a.t=(c,...x)=>Promise.all(x.map(x=>x.then?x:(!a?.forceESM&&a?.import||(x=>import(x+".js").then(m=>m.default??m)))("@arcgis/core/"+x))).then(c);r.p=a.t(([m])=>{r.t=m.trackAccess;r.o=m.createObservable;r.c=m.createTrackingTarget;r.r=m.runTracked},"applications/Components/reactiveUtils")})($arcgis,s)
|
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import { h as v, i as
|
|
3
|
-
import { e as h, f as L, g as k, h as E, j as I, k as C, l as
|
|
2
|
+
import { h as v, i as F, m as M, L as S, E as A } from "./language-defaults-base.js";
|
|
3
|
+
import { e as h, f as L, g as k, h as E, j as I, k as C, l as P } from "./utils2.js";
|
|
4
4
|
import { supportedLocales as j, fetchT9nStringsBundle as $ } from "@arcgis/toolkit/intl";
|
|
5
|
-
import { g as
|
|
6
|
-
import { CompletionItemKind as w, InsertTextFormat as
|
|
7
|
-
import { getDeclaredPixelMembers as
|
|
5
|
+
import { g as T } from "./runtime.js";
|
|
6
|
+
import { CompletionItemKind as w, InsertTextFormat as p, InsertTextMode as f } from "vscode-languageserver-types";
|
|
7
|
+
import { getDeclaredPixelMembers as q } from "@arcgis/core/applications/Components/arcadeEditorUtils.js";
|
|
8
8
|
import "@arcgis/toolkit/type";
|
|
9
|
-
async function
|
|
10
|
-
const { apiVersion:
|
|
11
|
-
return { apiVersion:
|
|
9
|
+
async function B(e) {
|
|
10
|
+
const { apiVersion: n, bundles: t, hiddenApiItems: s } = e.toEditorProfileDefinition(), o = await x(e.dictionaryVariables.filter(P));
|
|
11
|
+
return { apiVersion: n, bundles: t, variables: o, hiddenApiItems: s?.map((a) => a.toLowerCase()) };
|
|
12
12
|
}
|
|
13
|
-
async function
|
|
13
|
+
async function x(e, n = w.Variable) {
|
|
14
14
|
return await Promise.all(
|
|
15
15
|
e.map(async (t) => {
|
|
16
16
|
switch (t.type) {
|
|
17
17
|
case "dictionary":
|
|
18
|
-
return await
|
|
18
|
+
return await O(t, n);
|
|
19
19
|
case "pixel":
|
|
20
|
-
return await
|
|
20
|
+
return await z(t, n);
|
|
21
21
|
// Voxel is equivalent to features in regards to the languageservice.
|
|
22
22
|
// They both have equivalent fields, but some voxel fields are different types (arrays)
|
|
23
23
|
// than what is reported in .fields, so in the sidebar we treat a bit differently.
|
|
24
24
|
// In autocomplete we don't differentiate types, so we can use the same logic as features.
|
|
25
25
|
case "voxel":
|
|
26
26
|
case "feature":
|
|
27
|
-
return await
|
|
27
|
+
return await _(t, n);
|
|
28
28
|
default:
|
|
29
|
-
return
|
|
29
|
+
return K(t, n);
|
|
30
30
|
}
|
|
31
31
|
})
|
|
32
32
|
);
|
|
33
33
|
}
|
|
34
|
-
function
|
|
35
|
-
const { name: t, type: s } = e, o = e.getDescription(), a =
|
|
34
|
+
function K(e, n) {
|
|
35
|
+
const { name: t, type: s } = e, o = e.getDescription(), a = n === w.Field ? v(t, !1) : t;
|
|
36
36
|
return {
|
|
37
37
|
name: t,
|
|
38
38
|
description: o,
|
|
@@ -42,21 +42,21 @@ function B(e, r) {
|
|
|
42
42
|
detail: t,
|
|
43
43
|
insertText: a,
|
|
44
44
|
insertTextMode: f.asIs,
|
|
45
|
-
insertTextFormat:
|
|
46
|
-
kind:
|
|
45
|
+
insertTextFormat: p.PlainText,
|
|
46
|
+
kind: n,
|
|
47
47
|
documentation: { kind: "markdown", value: o }
|
|
48
48
|
}
|
|
49
49
|
};
|
|
50
50
|
}
|
|
51
|
-
async function
|
|
51
|
+
async function _(e, n) {
|
|
52
52
|
const t = await e.loadSource(), { name: s } = e, o = e.getDescription(), a = {
|
|
53
53
|
label: s,
|
|
54
54
|
detail: s,
|
|
55
55
|
insertText: s,
|
|
56
56
|
insertTextMode: f.asIs,
|
|
57
|
-
insertTextFormat:
|
|
58
|
-
kind:
|
|
59
|
-
},
|
|
57
|
+
insertTextFormat: p.PlainText,
|
|
58
|
+
kind: n
|
|
59
|
+
}, i = {
|
|
60
60
|
name: s,
|
|
61
61
|
description: o,
|
|
62
62
|
type: "dictionary",
|
|
@@ -64,153 +64,146 @@ async function K(e, r) {
|
|
|
64
64
|
completion: a
|
|
65
65
|
};
|
|
66
66
|
if (!t)
|
|
67
|
-
return
|
|
68
|
-
const [
|
|
67
|
+
return i;
|
|
68
|
+
const [r, c] = F(t.fields, o, {
|
|
69
69
|
includeAliases: !0
|
|
70
70
|
});
|
|
71
|
-
return
|
|
71
|
+
return i.properties = r, a.documentation = { kind: "markdown", value: c }, i;
|
|
72
72
|
}
|
|
73
|
-
async function
|
|
73
|
+
async function z(e, n) {
|
|
74
74
|
const t = await e.loadSource(), s = e.toProfileVariableDefinition();
|
|
75
75
|
if (s.type !== "pixel")
|
|
76
76
|
throw new Error("Incorrect definition passed to pixel variable");
|
|
77
|
-
const { name: o } = e, a = e.getDescription(),
|
|
77
|
+
const { name: o } = e, a = e.getDescription(), i = {
|
|
78
78
|
label: o,
|
|
79
79
|
detail: o,
|
|
80
80
|
insertText: o,
|
|
81
81
|
insertTextMode: f.asIs,
|
|
82
|
-
insertTextFormat:
|
|
83
|
-
kind:
|
|
84
|
-
},
|
|
82
|
+
insertTextFormat: p.PlainText,
|
|
83
|
+
kind: n
|
|
84
|
+
}, r = {
|
|
85
85
|
name: o,
|
|
86
86
|
description: a,
|
|
87
87
|
type: "dictionary",
|
|
88
88
|
properties: [],
|
|
89
|
-
completion:
|
|
89
|
+
completion: i
|
|
90
90
|
};
|
|
91
91
|
if (!t || !s.definition)
|
|
92
|
-
return
|
|
93
|
-
const c = await
|
|
94
|
-
return
|
|
92
|
+
return r;
|
|
93
|
+
const c = await q(t), [d, l] = M(c, a);
|
|
94
|
+
return r.properties = d, i.documentation = { kind: "markdown", value: l }, r;
|
|
95
95
|
}
|
|
96
|
-
async function
|
|
97
|
-
const { name: t, dictionaryVariables: s } = e, o = e.getDescription(), a = s.reduce((
|
|
98
|
-
|
|
96
|
+
async function O(e, n) {
|
|
97
|
+
const { name: t, dictionaryVariables: s } = e, o = e.getDescription(), a = s.reduce((i, r) => {
|
|
98
|
+
i !== "" && (i += `
|
|
99
99
|
|
|
100
|
-
`),
|
|
101
|
-
${
|
|
102
|
-
const c =
|
|
103
|
-
return c && (
|
|
104
|
-
${c}`),
|
|
100
|
+
`), i += `**${r.name}**
|
|
101
|
+
${r.type}`;
|
|
102
|
+
const c = r.getDescription();
|
|
103
|
+
return c && (i += `
|
|
104
|
+
${c}`), i;
|
|
105
105
|
}, o);
|
|
106
106
|
return {
|
|
107
107
|
name: t,
|
|
108
108
|
description: o,
|
|
109
109
|
type: "dictionary",
|
|
110
110
|
// TODO(editor-profile): remove filter once we have a arcade-specific editor profile type that doesn't include SQL-layer-specific variables.
|
|
111
|
-
properties: await
|
|
111
|
+
properties: await x(s.filter(P), w.Field),
|
|
112
112
|
completion: {
|
|
113
113
|
label: t,
|
|
114
114
|
detail: t,
|
|
115
115
|
insertText: t,
|
|
116
116
|
insertTextMode: f.asIs,
|
|
117
|
-
insertTextFormat:
|
|
118
|
-
kind:
|
|
117
|
+
insertTextFormat: p.PlainText,
|
|
118
|
+
kind: n,
|
|
119
119
|
documentation: { kind: "markdown", value: a }
|
|
120
120
|
}
|
|
121
121
|
};
|
|
122
122
|
}
|
|
123
123
|
async function y(e = "en") {
|
|
124
|
-
const
|
|
125
|
-
if (
|
|
126
|
-
return
|
|
124
|
+
const n = b.get(e);
|
|
125
|
+
if (n)
|
|
126
|
+
return n;
|
|
127
127
|
if (!j.has(e))
|
|
128
128
|
return await y("en");
|
|
129
129
|
try {
|
|
130
|
-
const t = await fetch(
|
|
131
|
-
return t.ok ?
|
|
130
|
+
const t = await fetch(T(`./assets/arcade-language/profiles/arcade-profiles.t9n.${e}.json`));
|
|
131
|
+
return t.ok ? Q(e, await t.json()) : e === "en" ? null : await y("en");
|
|
132
132
|
} catch {
|
|
133
133
|
return null;
|
|
134
134
|
}
|
|
135
135
|
}
|
|
136
|
-
const
|
|
137
|
-
function
|
|
136
|
+
const b = /* @__PURE__ */ new Map();
|
|
137
|
+
function Q(e, n) {
|
|
138
138
|
const t = /* @__PURE__ */ new Map();
|
|
139
|
-
return
|
|
139
|
+
return n.forEach((s) => {
|
|
140
140
|
t.set(s.id, s);
|
|
141
|
-
}),
|
|
141
|
+
}), b.set(e, t), t;
|
|
142
142
|
}
|
|
143
|
-
async function
|
|
144
|
-
return (await y(
|
|
143
|
+
async function U(e, n = "en") {
|
|
144
|
+
return (await y(n))?.get(e) ?? null;
|
|
145
145
|
}
|
|
146
146
|
function G(e) {
|
|
147
147
|
return !!e && typeof e == "object" && "additionalVariables" in e && Array.isArray(e.additionalVariables);
|
|
148
148
|
}
|
|
149
|
-
function H(e
|
|
150
|
-
return e?.map((
|
|
149
|
+
function H(e) {
|
|
150
|
+
return e?.map((n) => m(n));
|
|
151
151
|
}
|
|
152
|
-
function m(e
|
|
152
|
+
function m(e) {
|
|
153
153
|
switch (e.type) {
|
|
154
154
|
case "dictionary":
|
|
155
155
|
return {
|
|
156
156
|
...e,
|
|
157
157
|
type: e.type,
|
|
158
|
-
properties: H(e.properties
|
|
158
|
+
properties: H(e.properties)
|
|
159
159
|
};
|
|
160
160
|
case "array":
|
|
161
161
|
return {
|
|
162
162
|
...e,
|
|
163
|
-
type: e.type
|
|
164
|
-
// TODO(5.2): Remove conversion options from the function signatures, its a safety net for a last minute patch. See issue #17618
|
|
165
|
-
...r?.allowUserArrayElementTypes ? {} : { elementType: { type: "number", name: "number" } }
|
|
163
|
+
type: e.type
|
|
166
164
|
};
|
|
167
165
|
default:
|
|
168
166
|
return { ...e, type: e.type };
|
|
169
167
|
}
|
|
170
168
|
}
|
|
171
|
-
async function J(e,
|
|
169
|
+
async function J(e, n = "en") {
|
|
172
170
|
if (!h(e))
|
|
173
171
|
return;
|
|
174
|
-
const t = await
|
|
172
|
+
const t = await U(e.id, n);
|
|
175
173
|
if (!t)
|
|
176
174
|
return;
|
|
177
175
|
const s = e.definitions, o = new Map(
|
|
178
|
-
Object.entries(s).map(([
|
|
176
|
+
Object.entries(s).map(([i, r]) => [i.toLowerCase(), r])
|
|
179
177
|
), a = {
|
|
180
178
|
bundles: [...t.bundles],
|
|
181
179
|
variables: [],
|
|
182
|
-
hiddenApiItems: e.hiddenApiItems?.map((
|
|
180
|
+
hiddenApiItems: e.hiddenApiItems?.map((i) => i.toLowerCase())
|
|
183
181
|
};
|
|
184
|
-
return t.variables.forEach((
|
|
185
|
-
if (e.disabledVariables?.includes(
|
|
182
|
+
return t.variables.forEach((i) => {
|
|
183
|
+
if (e.disabledVariables?.includes(i.name))
|
|
186
184
|
return;
|
|
187
|
-
const
|
|
188
|
-
switch (
|
|
185
|
+
const r = o.get(i.name.toLowerCase());
|
|
186
|
+
switch (i.type) {
|
|
189
187
|
case "dictionary":
|
|
190
188
|
return a.variables.push(
|
|
191
|
-
m(
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
},
|
|
197
|
-
{
|
|
198
|
-
allowUserArrayElementTypes: e.id === "data-pipelines"
|
|
199
|
-
}
|
|
200
|
-
)
|
|
189
|
+
m({
|
|
190
|
+
...i,
|
|
191
|
+
type: i.type,
|
|
192
|
+
properties: Array.isArray(r) ? [...r] : i.properties
|
|
193
|
+
})
|
|
201
194
|
);
|
|
202
195
|
case "feature":
|
|
203
|
-
return C(
|
|
196
|
+
return C(r) ? a.variables.push({ ...i, type: "feature", definition: r }) : void 0;
|
|
204
197
|
case "pixel":
|
|
205
|
-
return I(
|
|
198
|
+
return I(r) ? a.variables.push({ ...i, type: i.type, definition: r }) : void 0;
|
|
206
199
|
case "voxel":
|
|
207
|
-
return E(
|
|
200
|
+
return E(r) ? a.variables.push({ ...i, type: i.type, definition: r }) : void 0;
|
|
208
201
|
case "featureSet":
|
|
209
|
-
return k(
|
|
202
|
+
return k(r) ? a.variables.push({ ...i, type: i.type, definition: r }) : void 0;
|
|
210
203
|
case "featureSetCollection":
|
|
211
|
-
return L(
|
|
204
|
+
return L(r) ? a.variables.push({ ...i, type: i.type, definition: r }) : void 0;
|
|
212
205
|
default:
|
|
213
|
-
return a.variables.push(m(
|
|
206
|
+
return a.variables.push(m(i));
|
|
214
207
|
}
|
|
215
208
|
}), G(e) && a.variables.push(...e.additionalVariables ?? []), a;
|
|
216
209
|
}
|
|
@@ -236,7 +229,7 @@ const W = {
|
|
|
236
229
|
R(e)
|
|
237
230
|
)
|
|
238
231
|
};
|
|
239
|
-
class X extends
|
|
232
|
+
class X extends S {
|
|
240
233
|
/**
|
|
241
234
|
* Per-model update chaining to serialize profile updates.
|
|
242
235
|
*
|
|
@@ -267,40 +260,40 @@ class X extends M {
|
|
|
267
260
|
* @param locale The locale to use for the model context.
|
|
268
261
|
* @returns The EditorProfile for the model.
|
|
269
262
|
*/
|
|
270
|
-
async setProfileForModel(
|
|
271
|
-
const o = this._getApiKey(
|
|
263
|
+
async setProfileForModel(n, t, s = { locale: "en" }) {
|
|
264
|
+
const o = this._getApiKey(n), i = (this.#e.get(o) || Promise.resolve()).then(async () => {
|
|
272
265
|
const c = t, d = h(c) ? await J(c, s.locale) : c, l = await $(
|
|
273
266
|
s.locale,
|
|
274
|
-
|
|
267
|
+
T("./assets/editor-profile/t9n"),
|
|
275
268
|
"messages."
|
|
276
269
|
);
|
|
277
270
|
if (!l)
|
|
278
271
|
throw new Error(`Failed to load the language bundle for ${s.locale}`);
|
|
279
|
-
this.disposeForModel(
|
|
280
|
-
const g = new
|
|
272
|
+
this.disposeForModel(n);
|
|
273
|
+
const g = new A(
|
|
281
274
|
d,
|
|
282
275
|
l,
|
|
283
276
|
s.locale,
|
|
284
277
|
W
|
|
285
278
|
);
|
|
286
279
|
this._modelToProfileMap.set(o, g);
|
|
287
|
-
const D = await
|
|
288
|
-
this.updateApiContextForModel(
|
|
280
|
+
const D = await B(g);
|
|
281
|
+
this.updateApiContextForModel(n, {
|
|
289
282
|
locale: s.locale,
|
|
290
283
|
profile: D,
|
|
291
284
|
snippets: s.snippets
|
|
292
285
|
});
|
|
293
|
-
}),
|
|
294
|
-
this.#e.get(o) ===
|
|
286
|
+
}), r = i.finally(() => {
|
|
287
|
+
this.#e.get(o) === r && this.#e.delete(o);
|
|
295
288
|
});
|
|
296
|
-
return this.#e.set(o,
|
|
289
|
+
return this.#e.set(o, r), await i;
|
|
297
290
|
}
|
|
298
291
|
}
|
|
299
|
-
const
|
|
300
|
-
setProfileForModel:
|
|
301
|
-
getApiLibraryForModel:
|
|
292
|
+
const u = new X(), re = {
|
|
293
|
+
setProfileForModel: u.setProfileForModel.bind(u),
|
|
294
|
+
getApiLibraryForModel: u.getApiLibraryForModel.bind(u)
|
|
302
295
|
};
|
|
303
296
|
export {
|
|
304
|
-
|
|
305
|
-
|
|
297
|
+
re as a,
|
|
298
|
+
u as b
|
|
306
299
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import {
|
|
2
|
+
import { languages as t } from "monaco-editor";
|
|
3
3
|
import "monaco-editor/editor/standalone/browser/standaloneServices.js";
|
|
4
4
|
import "monaco-editor/editor/standalone/common/standaloneTheme.js";
|
|
5
5
|
import "monaco-editor/platform/hover/browser/hover.js";
|
|
@@ -8,98 +8,65 @@ import "monaco-editor/editor/common/languages/supports/tokenization.js";
|
|
|
8
8
|
import "monaco-editor/base/browser/dom.js";
|
|
9
9
|
import "monaco-editor/editor/browser/editorDom.js";
|
|
10
10
|
import "monaco-editor/editor/browser/controller/mouseTarget.js";
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
11
|
+
import { a as s, m as g, g as d } from "./sql-expr-service-accessors.js";
|
|
12
|
+
import { b as o } from "./arcade-defaults.js";
|
|
13
|
+
import { g as m } from "./arcade-service-accessors.js";
|
|
14
14
|
import { a } from "./sql-expr-defaults.js";
|
|
15
|
-
import {
|
|
16
|
-
import { t as
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
"arcgis-sql-expression",
|
|
20
|
-
"sql-layer-sql-server",
|
|
21
|
-
"sql-layer-postgres",
|
|
22
|
-
"sql-layer-bigquery"
|
|
23
|
-
], i = /* @__PURE__ */ new Set(), g = /* @__PURE__ */ new Map();
|
|
24
|
-
function c(e) {
|
|
25
|
-
let r = g.get(e);
|
|
26
|
-
return r || (r = Promise.withResolvers(), g.set(e, r)), r;
|
|
27
|
-
}
|
|
28
|
-
function u(e) {
|
|
29
|
-
c(e).resolve();
|
|
30
|
-
}
|
|
31
|
-
function $(e) {
|
|
32
|
-
return k.includes(e) ? c(e).promise : Promise.resolve();
|
|
33
|
-
}
|
|
34
|
-
function m(e, r) {
|
|
35
|
-
return () => {
|
|
36
|
-
i.has(e) || i.add(e), r();
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
async function A(e) {
|
|
40
|
-
if (i.has(e))
|
|
41
|
-
return;
|
|
42
|
-
(await d()).createModel("", e, p.parse("")).dispose();
|
|
43
|
-
}
|
|
44
|
-
s.register({
|
|
45
|
-
id: t.languageId,
|
|
15
|
+
import { i as p } from "./monaco-importer.js";
|
|
16
|
+
import { t as c } from "./monaco-theme.js";
|
|
17
|
+
t.register({
|
|
18
|
+
id: o.languageId,
|
|
46
19
|
aliases: ["Arcade", "arcade"],
|
|
47
20
|
extensions: [".arc"],
|
|
48
21
|
mimetypes: ["application/arcade"]
|
|
49
22
|
});
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
e.setupMode(
|
|
23
|
+
t.onLanguage(
|
|
24
|
+
o.languageId,
|
|
25
|
+
s(o.languageId, () => {
|
|
26
|
+
m().then((e) => {
|
|
27
|
+
e.setupMode(o), g(o.languageId);
|
|
55
28
|
}).catch((e) => {
|
|
56
29
|
throw e;
|
|
57
30
|
});
|
|
58
31
|
})
|
|
59
32
|
);
|
|
60
|
-
|
|
33
|
+
t.register({
|
|
61
34
|
id: a.languageId,
|
|
62
35
|
aliases: ["EsiSqlExpression", "sql-expression"],
|
|
63
36
|
extensions: [".sql-expression"],
|
|
64
37
|
mimetypes: ["application/sql-expression"]
|
|
65
38
|
});
|
|
66
|
-
|
|
39
|
+
t.onLanguage(
|
|
67
40
|
a.languageId,
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
e.setupMode(a),
|
|
41
|
+
s(a.languageId, () => {
|
|
42
|
+
d().then((e) => {
|
|
43
|
+
e.setupMode(a), g(a.languageId);
|
|
71
44
|
}).catch((e) => {
|
|
72
45
|
throw e;
|
|
73
46
|
});
|
|
74
47
|
})
|
|
75
48
|
);
|
|
76
|
-
|
|
77
|
-
function
|
|
78
|
-
|
|
79
|
-
["light", "dark"].forEach((
|
|
80
|
-
const
|
|
81
|
-
e.defineTheme(
|
|
82
|
-
base:
|
|
49
|
+
u();
|
|
50
|
+
function u() {
|
|
51
|
+
p().then((e) => {
|
|
52
|
+
["light", "dark"].forEach((n) => {
|
|
53
|
+
const i = n === "light" ? "vs" : "vs-dark", r = c[`${n}-theme`];
|
|
54
|
+
e.defineTheme(i, {
|
|
55
|
+
base: i,
|
|
83
56
|
inherit: !0,
|
|
84
57
|
rules: [
|
|
85
|
-
{ token: "comment.arcgis", foreground:
|
|
86
|
-
{ token: "constant.arcgis", foreground:
|
|
87
|
-
{ token: "keyword.arcgis", foreground:
|
|
88
|
-
{ token: "identifier.arcgis", foreground:
|
|
89
|
-
{ token: "number.arcgis", foreground:
|
|
90
|
-
{ token: "string.arcgis", foreground:
|
|
91
|
-
{ token: "operator.arcgis", foreground:
|
|
92
|
-
{ token: "predefined.arcgis", foreground:
|
|
93
|
-
{ token: "date.arcgis", foreground:
|
|
58
|
+
{ token: "comment.arcgis", foreground: r.comment },
|
|
59
|
+
{ token: "constant.arcgis", foreground: r.constant },
|
|
60
|
+
{ token: "keyword.arcgis", foreground: r.keyword },
|
|
61
|
+
{ token: "identifier.arcgis", foreground: r.identifier },
|
|
62
|
+
{ token: "number.arcgis", foreground: r.number },
|
|
63
|
+
{ token: "string.arcgis", foreground: r.string },
|
|
64
|
+
{ token: "operator.arcgis", foreground: r.operator },
|
|
65
|
+
{ token: "predefined.arcgis", foreground: r.predefined },
|
|
66
|
+
{ token: "date.arcgis", foreground: r.date }
|
|
94
67
|
],
|
|
95
68
|
colors: {}
|
|
96
69
|
});
|
|
97
70
|
});
|
|
98
71
|
});
|
|
99
72
|
}
|
|
100
|
-
export {
|
|
101
|
-
m as a,
|
|
102
|
-
u as m,
|
|
103
|
-
A as s,
|
|
104
|
-
$ as w
|
|
105
|
-
};
|