@arcgis/coding-components 4.34.0-next.128 → 4.34.0-next.129
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/{OGCX5NIT.js → 2JJBMAY2.js} +2 -2
- package/dist/cdn/{JLOGYGWN.js → 2TZ4WNB2.js} +2 -2
- package/dist/cdn/{AH5G2UUW.js → 2Y4QWUQ5.js} +2 -2
- package/dist/cdn/{F7KZ4J3M.js → 3BAPPI5A.js} +1 -1
- package/dist/cdn/{DN4MQ6DT.js → 3OTSLDGR.js} +2 -2
- package/dist/cdn/{PIG62Q36.js → 3VYPPYN2.js} +2 -2
- package/dist/cdn/{XNX2GS3A.js → 4XLQ3TIM.js} +2 -2
- package/dist/cdn/{AP2U5M7T.js → 5AAZTIQL.js} +2 -2
- package/dist/cdn/{E2HR7G72.js → 5JFZAWYW.js} +2 -2
- package/dist/cdn/{G2VPV7FH.js → 6MXMTSQB.js} +2 -2
- package/dist/cdn/{FMXI4GWW.js → 7VY4ZFTY.js} +2 -2
- package/dist/cdn/{JBEVFE6N.js → BT4ACDC4.js} +2 -2
- package/dist/cdn/DUHD2WEC.js +8 -0
- package/dist/cdn/{3X4QVHVH.js → EWJPI4K3.js} +2 -2
- package/dist/cdn/{CGZMEBUQ.js → FDYED5F2.js} +2 -2
- package/dist/cdn/{CVRIP3YF.js → FLSE56KS.js} +2 -2
- package/dist/cdn/{ATINCT6D.js → HEQUWZSF.js} +4 -4
- package/dist/cdn/{2D4XLNSC.js → HV2EUOMS.js} +2 -2
- package/dist/cdn/{4ARGYT7I.js → IEGREDGD.js} +2 -2
- package/dist/cdn/{TZB44K44.js → IEGVLDQY.js} +2 -2
- package/dist/cdn/{JEW6O26N.js → JM3TNAV2.js} +2 -2
- package/dist/cdn/{OI5IWVLN.js → JVIVTV57.js} +2 -2
- package/dist/cdn/{M6VF2DXU.js → JZL444LG.js} +2 -2
- package/dist/cdn/{3WLCQZAM.js → K2A3TUUC.js} +2 -2
- package/dist/cdn/{Z3XY2NFB.js → KYAO2ZUR.js} +1 -1
- package/dist/cdn/{TWSJPG3O.js → L4PG6X53.js} +2 -2
- package/dist/cdn/{LWXLWCAZ.js → L5G7YF5J.js} +2 -2
- package/dist/cdn/{SYJQ6XKG.js → LR63OZBB.js} +2 -2
- package/dist/cdn/LUROZOMB.js +14 -0
- package/dist/cdn/{NFQLRYAL.js → NFEER5QJ.js} +2 -2
- package/dist/cdn/{BXLATVVK.js → OEFBH3WB.js} +2 -2
- package/dist/cdn/{7LDSNUR5.js → OKKIHEDD.js} +2 -2
- package/dist/cdn/{FXZL7KS5.js → QESHZN4W.js} +2 -2
- package/dist/cdn/QGSWW3NM.js +4 -0
- package/dist/cdn/{EITZEBGN.js → QUT4VJRY.js} +1 -1
- package/dist/cdn/STHV2ZWY.js +4 -0
- package/dist/cdn/{6RCN5HYJ.js → SWMMEXIO.js} +1 -1
- package/dist/cdn/{RIPEMMAE.js → T3RBCTRD.js} +2 -2
- package/dist/cdn/{CZEK6RSP.js → U2OPLXBP.js} +2 -2
- package/dist/cdn/{GNFBKT3J.js → UCTN2Y42.js} +2 -2
- package/dist/cdn/{BOTANQTX.js → UDSJ3U6Q.js} +2 -2
- package/dist/cdn/{BSLV24BJ.js → UN2TOEHW.js} +1 -1
- package/dist/cdn/{WA55I5X3.js → WD27FFED.js} +1 -1
- package/dist/cdn/{J3STVK2I.js → YHHR4A3C.js} +2 -2
- package/dist/cdn/assets/code-editor/sql-expr.worker.js +8187 -8181
- package/dist/cdn/index.js +2 -2
- package/dist/chunks/arcade-defaults.js +138 -104
- 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/editor.js +1 -1
- package/dist/chunks/fields.js +52 -11
- package/dist/chunks/language-defaults-base.js +378 -243
- package/dist/chunks/markdown.js +1 -1
- package/dist/chunks/monaco-importer.js +1 -1
- package/dist/chunks/runtime.js +1 -1
- package/dist/chunks/setup-monaco.js +1 -1
- package/dist/chunks/sql-expr-contribution.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/components/arcgis-arcade-coding-assistant/customElement.d.ts +0 -8
- package/dist/components/arcgis-arcade-coding-assistant/customElement.js +1 -1
- package/dist/components/arcgis-arcade-editor/customElement.d.ts +0 -71
- package/dist/components/arcgis-arcade-editor/customElement.js +1 -1
- package/dist/components/arcgis-arcade-results/customElement.d.ts +0 -14
- package/dist/components/arcgis-arcade-results/customElement.js +1 -1
- package/dist/components/arcgis-arcade-suggestions/customElement.d.ts +0 -8
- package/dist/components/arcgis-arcade-suggestions/customElement.js +1 -1
- package/dist/components/arcgis-code-editor/customElement.d.ts +0 -53
- package/dist/components/arcgis-code-editor/customElement.js +1 -1
- package/dist/components/arcgis-editor-variables/customElement.d.ts +0 -19
- package/dist/components/arcgis-editor-variables/customElement.js +1 -1
- package/dist/components/arcgis-language-api-panel/customElement.d.ts +0 -23
- package/dist/components/arcgis-language-api-panel/customElement.js +1 -1
- package/dist/components/arcgis-sql-expression-editor/customElement.d.ts +0 -28
- package/dist/components/arcgis-sql-expression-editor/customElement.js +1 -1
- package/dist/components/arcgis-sql-expression-fields/customElement.d.ts +0 -8
- 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/monacoStyles.js +1 -1
- package/dist/utils/fields.d.ts +8 -1
- package/dist/utils/profile/editor-profile.d.ts +30 -12
- package/dist/utils/profile/types.d.ts +28 -1
- package/dist/utils/profile/utils.d.ts +5 -1
- package/package.json +5 -5
- package/dist/cdn/A2QCR3TF.js +0 -10
- package/dist/cdn/DCS4WKNJ.js +0 -4
- package/dist/cdn/F3CZQSXF.js +0 -8
- package/dist/cdn/WOVEEI32.js +0 -4
package/dist/cdn/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
3
|
-
v4.34.0-next.
|
|
4
|
-
import{C as i,o as e}from"./
|
|
3
|
+
v4.34.0-next.129 */
|
|
4
|
+
import{C as i,o as e}from"./3OTSLDGR.js";import"./WD27FFED.js";import"./KYAO2ZUR.js";var r=e(i,{"arcgis-arcade-coding-assistant":[()=>import("./6MXMTSQB.js"),"appVersion,assistantsEnabled,closed,closePanel:,editorRef:,feedbackServiceUrl,helpBase,insertText:,layer,portalUrl,serviceUrl;destroy"],"arcgis-arcade-editor":[()=>import("./U2OPLXBP.js"),"arcadeAssistant:,customPanels:,editorInstance:,editorOptions:,hideDocumentationActions,hideSideBar,openedSidePanel:,profile:,script,sideActionBarExpanded,snippets:,suggestions:,testData:;getEditorInstance,getScript,getTestResult,setFocus"],"arcgis-arcade-results":[()=>import("./EWJPI4K3.js"),"consoleLogs:,loading,openedResultPanel,result:"],"arcgis-arcade-suggestions":[()=>import("./UCTN2Y42.js"),"closed,suggestions:"],"arcgis-code-editor":[()=>import("./2Y4QWUQ5.js"),"editorInstance:,editorOptions:,language,modelId:,value;getEditorInstance,getValue,insertSnippet,insertText,setFocus,setValue"],"arcgis-editor-variables":[()=>import("./JM3TNAV2.js"),"closed,loading,modelId,variable:"],"arcgis-language-api-panel":[()=>import("./BT4ACDC4.js"),"apiLibrary:,closed,hideDocumentationActions,languageId,loading"],"arcgis-sql-expression-editor":[()=>import("./4XLQ3TIM.js"),"hideSideBar,profile:,script"],"arcgis-sql-expression-fields":[()=>import("./QESHZN4W.js"),"loading,modelId"]});r({resourcesUrl:import.meta.url});var o=new CSSStyleSheet();var ___=new CSSStyleSheet();___.replaceSync(`@layer{/*!-----------------------------------------------------------
|
|
5
5
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6
6
|
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
|
7
7
|
* Released under the MIT license
|
|
@@ -1,127 +1,158 @@
|
|
|
1
|
-
import { i as
|
|
2
|
-
import { supportedLocales as
|
|
3
|
-
import { g as
|
|
4
|
-
import { CompletionItemKind as w, InsertTextFormat as
|
|
1
|
+
import { i as m, c as x, a as D, d as b, e as A, g as M, f as S, m as v, L as F, E as L } from "./language-defaults-base.js";
|
|
2
|
+
import { supportedLocales as k, fetchT9nStringsBundle as E } from "@arcgis/toolkit/intl";
|
|
3
|
+
import { g as y } from "./runtime.js";
|
|
4
|
+
import { CompletionItemKind as w, InsertTextFormat as u, InsertTextMode as p } from "vscode-languageserver-types";
|
|
5
|
+
import { getDeclaredPixelMembers as I } from "@arcgis/core/applications/Components/arcadeEditorUtils.js";
|
|
5
6
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
6
7
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
7
|
-
v4.34.0-next.
|
|
8
|
-
async function
|
|
9
|
-
const { apiVersion:
|
|
10
|
-
return { apiVersion:
|
|
8
|
+
v4.34.0-next.129 */
|
|
9
|
+
async function C(e) {
|
|
10
|
+
const { apiVersion: r, bundles: t, hiddenApiItems: i } = e.toEditorProfileDefinition(), n = await h(e.dictionaryVariables);
|
|
11
|
+
return { apiVersion: r, bundles: t, variables: n, hiddenApiItems: i?.map((s) => s.toLowerCase()) };
|
|
11
12
|
}
|
|
12
|
-
async function h(e,
|
|
13
|
+
async function h(e, r = w.Variable) {
|
|
13
14
|
return await Promise.all(
|
|
14
15
|
e.map(async (t) => {
|
|
15
16
|
switch (t.type) {
|
|
16
17
|
case "dictionary":
|
|
17
|
-
return await
|
|
18
|
+
return await K(t, r);
|
|
19
|
+
case "pixel":
|
|
20
|
+
return await B(t, r);
|
|
21
|
+
// Voxel is equivalent to features in regards to the languageservice.
|
|
22
|
+
// They both have equivalent fields, but some voxel fields are different types (arrays)
|
|
23
|
+
// than what is reported in .fields, so in the sidebar we treat a bit differently.
|
|
24
|
+
// In autocomplete we don't differentiate types, so we can use the same logic as features.
|
|
25
|
+
case "voxel":
|
|
18
26
|
case "feature":
|
|
19
|
-
return await
|
|
27
|
+
return await j(t, r);
|
|
20
28
|
default:
|
|
21
|
-
return
|
|
29
|
+
return $(t, r);
|
|
22
30
|
}
|
|
23
31
|
})
|
|
24
32
|
);
|
|
25
33
|
}
|
|
26
|
-
function
|
|
27
|
-
const { name: t, type:
|
|
34
|
+
function $(e, r) {
|
|
35
|
+
const { name: t, type: i } = e, n = e.getDescription();
|
|
28
36
|
return {
|
|
29
37
|
name: t,
|
|
30
|
-
description:
|
|
31
|
-
type:
|
|
38
|
+
description: n,
|
|
39
|
+
type: i,
|
|
32
40
|
completion: {
|
|
33
41
|
label: t,
|
|
34
42
|
detail: t,
|
|
35
43
|
insertText: t,
|
|
36
|
-
insertTextMode:
|
|
37
|
-
insertTextFormat:
|
|
38
|
-
kind:
|
|
39
|
-
documentation: { kind: "markdown", value:
|
|
44
|
+
insertTextMode: p.asIs,
|
|
45
|
+
insertTextFormat: u.PlainText,
|
|
46
|
+
kind: r,
|
|
47
|
+
documentation: { kind: "markdown", value: n }
|
|
40
48
|
}
|
|
41
49
|
};
|
|
42
50
|
}
|
|
43
|
-
async function
|
|
44
|
-
const t = await e.loadSource(), { name:
|
|
51
|
+
async function j(e, r) {
|
|
52
|
+
const t = await e.loadSource(), { name: i } = e, n = e.getDescription(), s = {
|
|
53
|
+
label: i,
|
|
54
|
+
detail: i,
|
|
55
|
+
insertText: i,
|
|
56
|
+
insertTextMode: p.asIs,
|
|
57
|
+
insertTextFormat: u.PlainText,
|
|
58
|
+
kind: r
|
|
59
|
+
}, o = {
|
|
60
|
+
name: i,
|
|
61
|
+
description: n,
|
|
62
|
+
type: "dictionary",
|
|
63
|
+
properties: [],
|
|
64
|
+
completion: s
|
|
65
|
+
};
|
|
66
|
+
if (!t)
|
|
67
|
+
return o;
|
|
68
|
+
const [a, c] = S(t.fields, n, !0);
|
|
69
|
+
return o.properties = a, s.documentation = { kind: "markdown", value: c }, o;
|
|
70
|
+
}
|
|
71
|
+
async function B(e, r) {
|
|
72
|
+
const t = await e.loadSource(), i = e.toProfileVariableDefinition();
|
|
73
|
+
if (i.type !== "pixel")
|
|
74
|
+
throw new Error("Incorrect definition passed to pixel variable");
|
|
75
|
+
const { name: n } = e, s = e.getDescription(), o = {
|
|
45
76
|
label: n,
|
|
46
77
|
detail: n,
|
|
47
78
|
insertText: n,
|
|
48
|
-
insertTextMode:
|
|
49
|
-
insertTextFormat:
|
|
50
|
-
kind:
|
|
79
|
+
insertTextMode: p.asIs,
|
|
80
|
+
insertTextFormat: u.PlainText,
|
|
81
|
+
kind: r
|
|
51
82
|
}, a = {
|
|
52
83
|
name: n,
|
|
53
|
-
description:
|
|
84
|
+
description: s,
|
|
54
85
|
type: "dictionary",
|
|
55
86
|
properties: [],
|
|
56
|
-
completion:
|
|
87
|
+
completion: o
|
|
57
88
|
};
|
|
58
|
-
if (!t)
|
|
89
|
+
if (!t || !i.definition)
|
|
59
90
|
return a;
|
|
60
|
-
const [
|
|
61
|
-
return a.properties =
|
|
91
|
+
const c = await I(t), [g, P] = v(c, s);
|
|
92
|
+
return a.properties = g, o.documentation = { kind: "markdown", value: P }, a;
|
|
62
93
|
}
|
|
63
|
-
async function
|
|
64
|
-
const { name: t, dictionaryVariables:
|
|
65
|
-
|
|
94
|
+
async function K(e, r) {
|
|
95
|
+
const { name: t, dictionaryVariables: i } = e, n = e.getDescription(), s = i.reduce((o, a) => {
|
|
96
|
+
o !== "" && (o += `
|
|
66
97
|
|
|
67
|
-
`),
|
|
68
|
-
${
|
|
69
|
-
const c =
|
|
70
|
-
return c && (
|
|
71
|
-
${c}`),
|
|
72
|
-
},
|
|
98
|
+
`), o += `**${a.name}**
|
|
99
|
+
${a.type}`;
|
|
100
|
+
const c = a.getDescription();
|
|
101
|
+
return c && (o += `
|
|
102
|
+
${c}`), o;
|
|
103
|
+
}, n);
|
|
73
104
|
return {
|
|
74
105
|
name: t,
|
|
75
|
-
description:
|
|
106
|
+
description: n,
|
|
76
107
|
type: "dictionary",
|
|
77
|
-
properties: await h(
|
|
108
|
+
properties: await h(i, w.Field),
|
|
78
109
|
completion: {
|
|
79
110
|
label: t,
|
|
80
111
|
detail: t,
|
|
81
112
|
insertText: t,
|
|
82
|
-
insertTextMode:
|
|
83
|
-
insertTextFormat:
|
|
84
|
-
kind:
|
|
113
|
+
insertTextMode: p.asIs,
|
|
114
|
+
insertTextFormat: u.PlainText,
|
|
115
|
+
kind: r,
|
|
85
116
|
documentation: { kind: "markdown", value: s }
|
|
86
117
|
}
|
|
87
118
|
};
|
|
88
119
|
}
|
|
89
|
-
async function
|
|
90
|
-
const
|
|
91
|
-
if (
|
|
92
|
-
return
|
|
93
|
-
if (!
|
|
94
|
-
return await
|
|
120
|
+
async function f(e = "en") {
|
|
121
|
+
const r = T.get(e);
|
|
122
|
+
if (r)
|
|
123
|
+
return r;
|
|
124
|
+
if (!k.has(e))
|
|
125
|
+
return await f("en");
|
|
95
126
|
try {
|
|
96
|
-
const t = await fetch(
|
|
97
|
-
return t.ok ?
|
|
127
|
+
const t = await fetch(y(`./assets/arcade-language/profiles/arcade-profiles.t9n.${e}.json`));
|
|
128
|
+
return t.ok ? _(e, await t.json()) : e === "en" ? null : await f("en");
|
|
98
129
|
} catch {
|
|
99
130
|
return null;
|
|
100
131
|
}
|
|
101
132
|
}
|
|
102
|
-
const
|
|
103
|
-
function
|
|
133
|
+
const T = /* @__PURE__ */ new Map();
|
|
134
|
+
function _(e, r) {
|
|
104
135
|
const t = /* @__PURE__ */ new Map();
|
|
105
|
-
return
|
|
106
|
-
t.set(
|
|
107
|
-
}),
|
|
136
|
+
return r.forEach((i) => {
|
|
137
|
+
t.set(i.id, i);
|
|
138
|
+
}), T.set(e, t), t;
|
|
108
139
|
}
|
|
109
|
-
async function
|
|
110
|
-
return (await
|
|
140
|
+
async function q(e, r = "en") {
|
|
141
|
+
return (await f(r))?.get(e) ?? null;
|
|
111
142
|
}
|
|
112
|
-
function
|
|
143
|
+
function z(e) {
|
|
113
144
|
return !!e && typeof e == "object" && "additionalVariables" in e && Array.isArray(e.additionalVariables);
|
|
114
145
|
}
|
|
115
|
-
function
|
|
116
|
-
return e?.map(
|
|
146
|
+
function G(e) {
|
|
147
|
+
return e?.map(d);
|
|
117
148
|
}
|
|
118
|
-
function
|
|
149
|
+
function d(e) {
|
|
119
150
|
switch (e.type) {
|
|
120
151
|
case "dictionary":
|
|
121
152
|
return {
|
|
122
153
|
...e,
|
|
123
154
|
type: e.type,
|
|
124
|
-
properties:
|
|
155
|
+
properties: G(e.properties)
|
|
125
156
|
};
|
|
126
157
|
case "array":
|
|
127
158
|
return {
|
|
@@ -133,43 +164,46 @@ function p(e) {
|
|
|
133
164
|
return { ...e, type: e.type };
|
|
134
165
|
}
|
|
135
166
|
}
|
|
136
|
-
async function
|
|
137
|
-
if (!
|
|
167
|
+
async function H(e, r = "en") {
|
|
168
|
+
if (!m(e))
|
|
138
169
|
return;
|
|
139
|
-
const t = await
|
|
170
|
+
const t = await q(e.id, r);
|
|
140
171
|
if (!t)
|
|
141
172
|
return;
|
|
142
|
-
const
|
|
173
|
+
const i = {
|
|
143
174
|
bundles: [...t.bundles],
|
|
144
175
|
variables: [],
|
|
145
|
-
hiddenApiItems: e.hiddenApiItems?.map((
|
|
176
|
+
hiddenApiItems: e.hiddenApiItems?.map((n) => n.toLowerCase())
|
|
146
177
|
};
|
|
147
|
-
return t.variables.forEach((
|
|
148
|
-
if (e.disabledVariables?.includes(
|
|
178
|
+
return t.variables.forEach((n) => {
|
|
179
|
+
if (e.disabledVariables?.includes(n.name))
|
|
149
180
|
return;
|
|
150
|
-
const s = e.definitions[
|
|
151
|
-
switch (
|
|
181
|
+
const s = e.definitions[n.name];
|
|
182
|
+
switch (n.type) {
|
|
152
183
|
case "dictionary":
|
|
153
|
-
return
|
|
154
|
-
|
|
155
|
-
...
|
|
156
|
-
type:
|
|
157
|
-
properties: Array.isArray(s) ? [...s] :
|
|
184
|
+
return i.variables.push(
|
|
185
|
+
d({
|
|
186
|
+
...n,
|
|
187
|
+
type: n.type,
|
|
188
|
+
properties: Array.isArray(s) ? [...s] : n.properties
|
|
158
189
|
})
|
|
159
190
|
);
|
|
160
191
|
case "feature":
|
|
192
|
+
return M(s) ? i.variables.push({ ...n, type: "feature", definition: s }) : void 0;
|
|
193
|
+
case "pixel":
|
|
194
|
+
return A(s) ? i.variables.push({ ...n, type: n.type, definition: s }) : void 0;
|
|
161
195
|
case "voxel":
|
|
162
|
-
return b(s) ?
|
|
196
|
+
return b(s) ? i.variables.push({ ...n, type: n.type, definition: s }) : void 0;
|
|
163
197
|
case "featureSet":
|
|
164
|
-
return
|
|
198
|
+
return D(s) ? i.variables.push({ ...n, type: n.type, definition: s }) : void 0;
|
|
165
199
|
case "featureSetCollection":
|
|
166
|
-
return
|
|
200
|
+
return x(s) ? i.variables.push({ ...n, type: n.type, definition: s }) : void 0;
|
|
167
201
|
default:
|
|
168
|
-
return
|
|
202
|
+
return i.variables.push(d(n));
|
|
169
203
|
}
|
|
170
|
-
}),
|
|
204
|
+
}), z(e) && i.variables.push(...e.additionalVariables ?? []), i;
|
|
171
205
|
}
|
|
172
|
-
class
|
|
206
|
+
class J extends F {
|
|
173
207
|
constructor() {
|
|
174
208
|
super("arcade", {
|
|
175
209
|
apiPath: "./assets/arcade-language/api",
|
|
@@ -186,31 +220,31 @@ class B extends x {
|
|
|
186
220
|
* @param locale The locale to use for the model context.
|
|
187
221
|
* @returns The EditorProfile for the model.
|
|
188
222
|
*/
|
|
189
|
-
async setProfileForModel(
|
|
190
|
-
|
|
191
|
-
const
|
|
192
|
-
|
|
193
|
-
|
|
223
|
+
async setProfileForModel(r, t, i = { locale: "en" }) {
|
|
224
|
+
m(t) && (t = await H(t, i.locale));
|
|
225
|
+
const n = await E(
|
|
226
|
+
i.locale,
|
|
227
|
+
y("./assets/editor-profile/t9n"),
|
|
194
228
|
"messages."
|
|
195
229
|
);
|
|
196
|
-
if (!
|
|
197
|
-
throw new Error(`Failed to load the language bundle for ${
|
|
198
|
-
this.disposeForModel(
|
|
199
|
-
const s = this._getApiKey(
|
|
200
|
-
this._modelToProfileMap.set(s,
|
|
201
|
-
const
|
|
202
|
-
this.updateApiContextForModel(
|
|
203
|
-
locale:
|
|
204
|
-
profile:
|
|
205
|
-
snippets:
|
|
230
|
+
if (!n)
|
|
231
|
+
throw new Error(`Failed to load the language bundle for ${i.locale}`);
|
|
232
|
+
this.disposeForModel(r);
|
|
233
|
+
const s = this._getApiKey(r), o = new L(t, n);
|
|
234
|
+
this._modelToProfileMap.set(s, o);
|
|
235
|
+
const a = await C(o);
|
|
236
|
+
this.updateApiContextForModel(r, {
|
|
237
|
+
locale: i.locale,
|
|
238
|
+
profile: a,
|
|
239
|
+
snippets: i.snippets
|
|
206
240
|
});
|
|
207
241
|
}
|
|
208
242
|
}
|
|
209
|
-
const
|
|
210
|
-
setProfileForModel:
|
|
211
|
-
getApiLibraryForModel:
|
|
243
|
+
const l = new J(), W = {
|
|
244
|
+
setProfileForModel: l.setProfileForModel.bind(l),
|
|
245
|
+
getApiLibraryForModel: l.getApiLibraryForModel.bind(l)
|
|
212
246
|
};
|
|
213
247
|
export {
|
|
214
|
-
|
|
215
|
-
|
|
248
|
+
W as a,
|
|
249
|
+
l as b
|
|
216
250
|
};
|
|
@@ -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/4.34/esri/copyright.txt for details.
|
|
4
|
-
v4.34.0-next.
|
|
4
|
+
v4.34.0-next.129 */
|
|
5
5
|
const G = "https://developers.arcgis.com/arcade/", O = 100, A = 100;
|
|
6
6
|
function u(t) {
|
|
7
7
|
return !!t && typeof t == "object" && "declaredRootClass" in t && typeof t.declaredRootClass == "string" && t.declaredRootClass === "esri.arcade.featureset.support.FeatureSet";
|
|
@@ -9,7 +9,7 @@ import { debounce as F } from "@arcgis/toolkit/function";
|
|
|
9
9
|
import { Deferred as _ } from "@arcgis/toolkit/promise";
|
|
10
10
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
11
11
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
12
|
-
v4.34.0-next.
|
|
12
|
+
v4.34.0-next.129 */
|
|
13
13
|
const S = [
|
|
14
14
|
"<=",
|
|
15
15
|
">=",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
3
|
-
v4.34.0-next.
|
|
3
|
+
v4.34.0-next.129 */
|
|
4
4
|
async function a() {
|
|
5
5
|
return (await e()).getArcadeDiagnosticService();
|
|
6
6
|
}
|
package/dist/chunks/editor.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { css as e } from "lit";
|
|
2
2
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
4
|
-
v4.34.0-next.
|
|
4
|
+
v4.34.0-next.129 */
|
|
5
5
|
const o = e`@layer{arcgis-arcade-editor,arcgis-sql-expression-editor{.flex-adjustable{flex:1 1 auto;overflow:hidden}.flex-panel{flex:1 0 auto}.position-relative{position:relative}.flex-row{display:flex;flex-direction:row;overflow:hidden}.flex-column{display:flex;flex-direction:column;overflow:hidden}.border-inline-start{border-inline-start:var(--arcgis-coding-components-border)!important;box-sizing:border-box}.border-inline-end{border-inline-end:var(--arcgis-coding-components-border)!important;box-sizing:border-box}.side-action-bar{max-width:var(--arcgis-coding-components-side-action-bar-max-w)}.side-panel{max-width:var(--arcgis-coding-components-side-panel-max-w);width:var(--arcgis-coding-components-side-panel-w)}.side-panel calcite-flow{height:100%}}}`;
|
|
6
6
|
export {
|
|
7
7
|
o as s
|
package/dist/chunks/fields.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
3
|
-
v4.34.0-next.
|
|
4
|
-
|
|
3
|
+
v4.34.0-next.129 */
|
|
4
|
+
const n = "cube";
|
|
5
|
+
function u(e, t) {
|
|
5
6
|
switch (e.type) {
|
|
6
7
|
case "oid":
|
|
7
8
|
return "key";
|
|
@@ -16,6 +17,10 @@ function t(e) {
|
|
|
16
17
|
case "guid":
|
|
17
18
|
return "key";
|
|
18
19
|
case "string":
|
|
20
|
+
if (t?.some((a) => a.name === e.name && a.type === "array")) {
|
|
21
|
+
const a = t?.find((c) => c.name === e.name);
|
|
22
|
+
return a && r(a) && r(a) ? s(a.elementType.type) : "double-float-set";
|
|
23
|
+
}
|
|
19
24
|
return "string";
|
|
20
25
|
case "date":
|
|
21
26
|
return "date-time";
|
|
@@ -29,7 +34,25 @@ function t(e) {
|
|
|
29
34
|
return "cube";
|
|
30
35
|
}
|
|
31
36
|
}
|
|
32
|
-
function
|
|
37
|
+
function i(e) {
|
|
38
|
+
switch (e.type) {
|
|
39
|
+
case "number":
|
|
40
|
+
return "number";
|
|
41
|
+
case "text":
|
|
42
|
+
return "string";
|
|
43
|
+
case "array":
|
|
44
|
+
return r(e) ? s(e.elementType.type) : n;
|
|
45
|
+
case "date":
|
|
46
|
+
return "date-time";
|
|
47
|
+
case "dateOnly":
|
|
48
|
+
return "calendar";
|
|
49
|
+
case "time":
|
|
50
|
+
return "clock";
|
|
51
|
+
default:
|
|
52
|
+
return n;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
function l(e) {
|
|
33
56
|
switch (e.type) {
|
|
34
57
|
case "small-integer":
|
|
35
58
|
case "integer":
|
|
@@ -53,9 +76,9 @@ function s(e) {
|
|
|
53
76
|
return "text";
|
|
54
77
|
}
|
|
55
78
|
}
|
|
56
|
-
function
|
|
57
|
-
return (e ?? []).filter((
|
|
58
|
-
switch (
|
|
79
|
+
function o(e) {
|
|
80
|
+
return (e ?? []).filter((t) => {
|
|
81
|
+
switch (t.type) {
|
|
59
82
|
case "string":
|
|
60
83
|
case "small-integer":
|
|
61
84
|
case "integer":
|
|
@@ -76,12 +99,30 @@ function n(e) {
|
|
|
76
99
|
}
|
|
77
100
|
});
|
|
78
101
|
}
|
|
79
|
-
function
|
|
102
|
+
function d(e) {
|
|
80
103
|
return e.alias || e.name;
|
|
81
104
|
}
|
|
105
|
+
function r(e) {
|
|
106
|
+
if (typeof e == "object" && e !== null && "elementType" in e) {
|
|
107
|
+
const t = e.elementType;
|
|
108
|
+
return typeof t == "object" && t !== null && "type" in t && typeof t.type == "string";
|
|
109
|
+
}
|
|
110
|
+
return !1;
|
|
111
|
+
}
|
|
112
|
+
function s(e) {
|
|
113
|
+
switch (e) {
|
|
114
|
+
case "text":
|
|
115
|
+
return "string-set";
|
|
116
|
+
case "number":
|
|
117
|
+
return "double-float-set";
|
|
118
|
+
default:
|
|
119
|
+
return n;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
82
122
|
export {
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
123
|
+
d as a,
|
|
124
|
+
l as b,
|
|
125
|
+
u as f,
|
|
126
|
+
i as m,
|
|
127
|
+
o as s
|
|
87
128
|
};
|