@arcgis/coding-components 5.2.0-next.11 → 5.2.0-next.13
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/{B3RGPCZC.js → 3O35TTKM.js} +1 -1
- package/dist/cdn/KTDJ3N4O.js +6 -0
- package/dist/cdn/{MCVII2KK.js → NR4MWHO2.js} +1 -1
- package/dist/cdn/{7BIFZ5DU.js → OH5M4GAZ.js} +2 -2
- package/dist/cdn/{XJRNIBLO.js → Q3JBU7FP.js} +1 -1
- package/dist/cdn/{TIZLT4V3.js → SCLCF2SG.js} +1 -1
- package/dist/cdn/assets/code-editor/sql-expr.worker.js +2 -2
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/arcade-defaults.js +10 -9
- package/dist/components/arcgis-arcade-coding-assistant/customElement.js +4 -5
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/package.json +5 -5
- package/dist/cdn/BXC4G3AT.js +0 -6
|
@@ -4,9 +4,9 @@ import { i as h, a as L, b as k, c as E, d as I, e as C, f as P } from "./utils.
|
|
|
4
4
|
import { supportedLocales as j, fetchT9nStringsBundle as $ } from "@arcgis/toolkit/intl";
|
|
5
5
|
import { g as T } from "./runtime.js";
|
|
6
6
|
import { CompletionItemKind as w, InsertTextFormat as p, InsertTextMode as f } from "vscode-languageserver-types";
|
|
7
|
-
import { getDeclaredPixelMembers as
|
|
7
|
+
import { getDeclaredPixelMembers as q } from "@arcgis/core/applications/Components/arcadeEditorUtils.js";
|
|
8
8
|
import "@arcgis/toolkit/type";
|
|
9
|
-
async function
|
|
9
|
+
async function B(e) {
|
|
10
10
|
const { apiVersion: i, bundles: t, hiddenApiItems: s } = e.toEditorProfileDefinition(), o = await b(e.dictionaryVariables.filter(P));
|
|
11
11
|
return { apiVersion: i, bundles: t, variables: o, hiddenApiItems: s?.map((a) => a.toLowerCase()) };
|
|
12
12
|
}
|
|
@@ -24,14 +24,14 @@ async function b(e, i = w.Variable) {
|
|
|
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, i);
|
|
28
28
|
default:
|
|
29
|
-
return
|
|
29
|
+
return K(t, i);
|
|
30
30
|
}
|
|
31
31
|
})
|
|
32
32
|
);
|
|
33
33
|
}
|
|
34
|
-
function
|
|
34
|
+
function K(e, i) {
|
|
35
35
|
const { name: t, type: s } = e, o = e.getDescription(), a = i === w.Field ? v(t, !1) : t;
|
|
36
36
|
return {
|
|
37
37
|
name: t,
|
|
@@ -48,7 +48,7 @@ function _(e, i) {
|
|
|
48
48
|
}
|
|
49
49
|
};
|
|
50
50
|
}
|
|
51
|
-
async function
|
|
51
|
+
async function _(e, i) {
|
|
52
52
|
const t = await e.loadSource(), { name: s } = e, o = e.getDescription(), a = {
|
|
53
53
|
label: s,
|
|
54
54
|
detail: s,
|
|
@@ -90,7 +90,7 @@ async function z(e, i) {
|
|
|
90
90
|
};
|
|
91
91
|
if (!t || !s.definition)
|
|
92
92
|
return r;
|
|
93
|
-
const c = await
|
|
93
|
+
const c = await q(t), [d, l] = M(c, a);
|
|
94
94
|
return r.properties = d, n.documentation = { kind: "markdown", value: l }, r;
|
|
95
95
|
}
|
|
96
96
|
async function O(e, i) {
|
|
@@ -218,7 +218,8 @@ const N = [
|
|
|
218
218
|
"oriented-imagery",
|
|
219
219
|
"subtype-group",
|
|
220
220
|
"subtype-sublayer",
|
|
221
|
-
"wfs"
|
|
221
|
+
"wfs",
|
|
222
|
+
"parquet"
|
|
222
223
|
];
|
|
223
224
|
function R(e) {
|
|
224
225
|
return !!e && typeof e == "object" && "type" in e && typeof e.type == "string" && N.includes(e.type);
|
|
@@ -277,7 +278,7 @@ class X extends S {
|
|
|
277
278
|
W
|
|
278
279
|
);
|
|
279
280
|
this._modelToProfileMap.set(o, g);
|
|
280
|
-
const D = await
|
|
281
|
+
const D = await B(g);
|
|
281
282
|
this.updateApiContextForModel(i, {
|
|
282
283
|
locale: s.locale,
|
|
283
284
|
profile: D,
|
|
@@ -530,7 +530,7 @@ class Ze extends re {
|
|
|
530
530
|
return;
|
|
531
531
|
}
|
|
532
532
|
let t = !1, o;
|
|
533
|
-
this.viewState.feedback.item.conversationId === this.viewState.history[0]?.conversationId && this.viewState.viewMode === "result" ? (o = this.viewState.context, t = !0) : o = this.viewState.feedback.item.contextSnapshot;
|
|
533
|
+
this.viewState.feedback.item.conversationId === this.viewState.history[0]?.conversationId && this.viewState.viewMode === "result" ? (o = this.viewState.context ?? await this.getProfileAndMetadata(this.getModel()?.uri ?? ""), t = !0) : o = this.viewState.feedback.item.contextSnapshot;
|
|
534
534
|
const a = U.applicationName;
|
|
535
535
|
!a && !this.appVersion && w("warn", this, "esriConfig.applicationName is not set. Consider setting it to help identify the application version in feedback.");
|
|
536
536
|
const { value: n, text: c, termsAccepted: p, item: { question: r, formattedScript: s, conversationId: u } } = this.viewState.feedback, l = {
|
|
@@ -597,7 +597,7 @@ class Ze extends re {
|
|
|
597
597
|
connectedCallback() {
|
|
598
598
|
super.connectedCallback(), this.updateViewState({ history: Y, splashActive: K });
|
|
599
599
|
}
|
|
600
|
-
|
|
600
|
+
loaded() {
|
|
601
601
|
const e = async () => {
|
|
602
602
|
const t = this.getModel();
|
|
603
603
|
if (!t) {
|
|
@@ -610,9 +610,8 @@ class Ze extends re {
|
|
|
610
610
|
contextReducedNoticeDismissed: o.contextTooLarge ? !1 : this.viewState.contextReducedNoticeDismissed
|
|
611
611
|
});
|
|
612
612
|
};
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
}), this.manager.onLifecycle(() => {
|
|
613
|
+
this.manager.onLifecycle(() => {
|
|
614
|
+
e();
|
|
616
615
|
const t = D.onModelContextDidChange(async () => {
|
|
617
616
|
e().catch((a) => {
|
|
618
617
|
w("error", this, "Error setting context.", { detail: { error: a } });
|