@arcgis/coding-components 5.2.0-next.10 → 5.2.0-next.12
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/{QRQEHI3E.js → 3QN6NREQ.js} +1 -1
- package/dist/cdn/{PE22Q7FG.js → 76VHPECE.js} +1 -1
- package/dist/cdn/{3LFA3ZUC.js → 7UTCJERR.js} +1 -1
- package/dist/cdn/{3RKKHGVW.js → A6IGYBAZ.js} +2 -2
- package/dist/cdn/{GRY2G3ZM.js → B3RGPCZC.js} +1 -1
- package/dist/cdn/{EHMFQPTC.js → B73HLERI.js} +1 -1
- package/dist/cdn/{UCJZGGBB.js → BXC4G3AT.js} +1 -1
- package/dist/cdn/{MFMTJO3G.js → GMEKFEH7.js} +2 -2
- package/dist/cdn/GTE3KXNK.js +2 -0
- package/dist/cdn/{R4PIOB2F.js → H2YYYWPE.js} +1 -1
- package/dist/cdn/{3PBQ47BB.js → HXJFZ2Y5.js} +1 -1
- package/dist/cdn/{LZ2JU5WD.js → JLYAOSQM.js} +1 -1
- package/dist/cdn/{PNDN33UV.js → LEFFI3FB.js} +1 -1
- package/dist/cdn/{VVAIS3PR.js → MCVII2KK.js} +1 -1
- package/dist/cdn/{DBVA54U6.js → MFDNJU3K.js} +1 -1
- package/dist/cdn/{EIW62O7S.js → NCMXRX7O.js} +1 -1
- package/dist/cdn/NVWQE3SF.js +2 -0
- package/dist/cdn/{CRXBAVHA.js → O6L3YJ7J.js} +1 -1
- package/dist/cdn/{XU7YAUUX.js → PJBI5XFD.js} +1 -1
- package/dist/cdn/{BEDXEPMS.js → PXKBNRBR.js} +1 -1
- package/dist/cdn/{4XEVYDUI.js → Q5RDW24Y.js} +1 -1
- package/dist/cdn/{IMMQXUUH.js → RFQXYDLI.js} +1 -1
- package/dist/cdn/{6IE7GBIZ.js → TIZLT4V3.js} +1 -1
- package/dist/cdn/{4XMC5J5W.js → UTTEHEMP.js} +1 -1
- package/dist/cdn/VPVLZ5QO.js +2 -0
- package/dist/cdn/{FJWYAXOE.js → WRVJHPML.js} +1 -1
- package/dist/cdn/XJRNIBLO.js +2 -0
- package/dist/cdn/{MQ6ZAZZK.js → ZXEQOR2Y.js} +1 -1
- package/dist/cdn/assets/code-editor/sql-expr.worker.js +2611 -2586
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/debugger-value-components.js +51 -47
- package/dist/components/arcgis-arcade-coding-assistant/customElement.js +4 -5
- package/dist/components/arcgis-arcade-debugger-output/customElement.js +21 -18
- package/dist/components/arcgis-arcade-editor/customElement.js +5 -5
- package/dist/components/arcgis-arcade-results/customElement.js +1 -1
- package/dist/components/arcgis-sql-layer-editor/customElement.js +10 -10
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/loader.js +1 -1
- package/package.json +5 -5
- package/dist/cdn/4KFBAAVC.js +0 -2
- package/dist/cdn/GBBSV4NV.js +0 -2
- package/dist/cdn/IQR7XS6J.js +0 -2
- package/dist/cdn/SYSBF5A6.js +0 -2
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"./
|
|
2
|
+
import{J as s,v as e}from"./PJBI5XFD.js";import"./VGOFAQ7A.js";import"./H6RQVSYM.js";var i=e(s,{"arcgis-arcade-coding-assistant":[()=>import("./GMEKFEH7.js"),"appVersion,closed,closePanel:,diagnostics:,disableQuestionAnswerLogging,editorRef:,feedbackServiceUrl,helpBase,insertText:,portalUrl,promptingEnabled,serviceUrl;destroy,openPrompt"],"arcgis-arcade-debugger-console":[()=>import("./NCMXRX7O.js"),"debuggerStore:,modelId"],"arcgis-arcade-debugger-output":[()=>import("./GTE3KXNK.js"),"debuggerStore:,outputTitle,result:"],"arcgis-arcade-editor":[()=>import("./XJRNIBLO.js"),"arcadeAssistant:,customPanels:,disableAssistant,editorInstance:,editorOptions:,enableDebugger,externalExecutor:,hideDocumentationActions,hideSideBar,messageOverrides:,messages:,openedSidePanel,profile:,script,sideActionBarExpanded,snippets:,suggestions:,testData:;getTestResult,openArcadeAssistant,setFocus"],"arcgis-arcade-results":[()=>import("./VPVLZ5QO.js"),"consoleLogs:,hideHeader,loading,openedResultPanel,result:"],"arcgis-arcade-suggestions":[()=>import("./LEFFI3FB.js"),"closed,suggestions:"],"arcgis-code-editor":[()=>import("./B3RGPCZC.js"),"editorInstance:,editorOptions:,language,modelId,value;insertSnippet,insertText,setFocus"],"arcgis-code-editor-shell":[()=>import("./76VHPECE.js")],"arcgis-code-viewer":[()=>import("./TIZLT4V3.js"),"language,lineNumbers,round"],"arcgis-editor-variables":[()=>import("./Q5RDW24Y.js"),"closed,heading,hideDescriptions,loading,messageOverrides:,modelId,variable:"],"arcgis-language-api-panel":[()=>import("./WRVJHPML.js"),"apiLibrary:,closed,hideDocumentationActions,languageId,loading"],"arcgis-sql-expression-editor":[()=>import("./3QN6NREQ.js"),"hideDescriptionsInFieldsPanel,hideSideBar,messageOverrides:,messages:,profile:,script;setFocus"],"arcgis-sql-layer-editor":[()=>import("./A6IGYBAZ.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)
|
|
@@ -2,18 +2,18 @@
|
|
|
2
2
|
import { html as c } from "lit";
|
|
3
3
|
import { safeClassMap as R } from "@arcgis/lumina";
|
|
4
4
|
import { t as v } from "./debugger-value-styles.js";
|
|
5
|
-
import {
|
|
6
|
-
const
|
|
7
|
-
function
|
|
5
|
+
import { quoteString as O } from "@arcgis/toolkit/string";
|
|
6
|
+
const U = /^[$A-Z_a-z][$\w]*$/u;
|
|
7
|
+
function M(e) {
|
|
8
8
|
return e.replaceAll("\\", "\\\\").replaceAll('"', '\\"');
|
|
9
9
|
}
|
|
10
|
-
function
|
|
11
|
-
return
|
|
10
|
+
function H(e) {
|
|
11
|
+
return U.test(e);
|
|
12
12
|
}
|
|
13
|
-
function
|
|
14
|
-
return typeof e == "number" ? `[${e}]` : e.startsWith("name:") ? `[name="${
|
|
13
|
+
function B(e) {
|
|
14
|
+
return typeof e == "number" ? `[${e}]` : e.startsWith("name:") ? `[name="${M(e.slice(5))}"]` : e.startsWith("id:") ? `[id="${M(e.slice(3))}"]` : H(e) ? `.${e}` : `["${M(e)}"]`;
|
|
15
15
|
}
|
|
16
|
-
function
|
|
16
|
+
function A(e, t) {
|
|
17
17
|
if (e[t] !== '"')
|
|
18
18
|
return;
|
|
19
19
|
let n = "", r = t + 1;
|
|
@@ -33,7 +33,7 @@ function F(e, t) {
|
|
|
33
33
|
n += p, r += 1;
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
|
-
function
|
|
36
|
+
function J(e) {
|
|
37
37
|
if (!e)
|
|
38
38
|
return;
|
|
39
39
|
let t = 0;
|
|
@@ -68,13 +68,13 @@ function K(e) {
|
|
|
68
68
|
}
|
|
69
69
|
const $ = e.startsWith("name=", t) ? "name" : e.startsWith("id=", t) ? "id" : void 0;
|
|
70
70
|
if ($) {
|
|
71
|
-
const o =
|
|
71
|
+
const o = A(e, t + $.length + 1);
|
|
72
72
|
if (!o || e[o.nextIndex] !== "]")
|
|
73
73
|
return;
|
|
74
74
|
n.push(`${$}:${o.value}`), t = o.nextIndex + 1;
|
|
75
75
|
continue;
|
|
76
76
|
}
|
|
77
|
-
const s =
|
|
77
|
+
const s = A(e, t);
|
|
78
78
|
if (!s || e[s.nextIndex] !== "]")
|
|
79
79
|
return;
|
|
80
80
|
n.push(s.value), t = s.nextIndex + 1;
|
|
@@ -88,28 +88,28 @@ function K(e) {
|
|
|
88
88
|
};
|
|
89
89
|
}
|
|
90
90
|
function de(e, t) {
|
|
91
|
-
return `${e}${
|
|
91
|
+
return `${e}${B(t)}`;
|
|
92
92
|
}
|
|
93
93
|
function k(e, t) {
|
|
94
94
|
return e ? `${e}.${t}` : String(t);
|
|
95
95
|
}
|
|
96
96
|
function q(e, t) {
|
|
97
97
|
if (e)
|
|
98
|
-
return `${e}${
|
|
98
|
+
return `${e}${B(t)}`;
|
|
99
99
|
}
|
|
100
100
|
function fe(e) {
|
|
101
|
-
return
|
|
101
|
+
return J(e);
|
|
102
102
|
}
|
|
103
|
-
function
|
|
103
|
+
function E(e, t) {
|
|
104
104
|
return typeof t == "number" ? `${e}[${t}]` : `${e}.${t}`;
|
|
105
105
|
}
|
|
106
|
-
function
|
|
106
|
+
function K(e) {
|
|
107
107
|
return e.name ? `name:${e.name}` : `id:${e.id}`;
|
|
108
108
|
}
|
|
109
|
-
function
|
|
109
|
+
function X(e) {
|
|
110
110
|
return Object.entries(e).filter(([t]) => t !== "featureSet");
|
|
111
111
|
}
|
|
112
|
-
function
|
|
112
|
+
function Y(e, t) {
|
|
113
113
|
if (t) {
|
|
114
114
|
const n = t.featureSet;
|
|
115
115
|
return {
|
|
@@ -135,8 +135,8 @@ function z(e, t) {
|
|
|
135
135
|
function C(e) {
|
|
136
136
|
return c`<calcite-tree slot=children .lines=${v.lines} .selectionMode=${v.selectionMode} .scale=${v.scale} @calciteTreeSelect=${v.oncalciteTreeSelect}>${e}</calcite-tree>`;
|
|
137
137
|
}
|
|
138
|
-
function
|
|
139
|
-
const u =
|
|
138
|
+
function G({ lazyTreeState: e, nodePath: t, mergedCollectionItem: n, expanded: r = !1, isMetadata: p = !1, messages: a, name: f, value: $, loadPreview: s, previewLabel: o, previewSourcePath: h, previewLoading: g = !1 }) {
|
|
139
|
+
const u = Y($, n);
|
|
140
140
|
if (!u)
|
|
141
141
|
return null;
|
|
142
142
|
const i = e.ensureNode(t, r, u.loadRequest), b = u.kind === "feature-set" ? u.featureSetValue : void 0, S = o ?? String(f), m = h ?? t, D = !!(s && S && b && typeof b.querySample == "function"), d = (l) => {
|
|
@@ -149,7 +149,7 @@ function L({ lazyTreeState: e, nodePath: t, mergedCollectionItem: n, expanded: r
|
|
|
149
149
|
sourcePath: m,
|
|
150
150
|
value: b
|
|
151
151
|
});
|
|
152
|
-
}, w = () => c`<calcite-tree-item disabled><div class="tree-item-label"><span class="constant-value">${i.errorMessage || (a.loaderror ?? "Unable to load data.")}</span></div></calcite-tree-item>`,
|
|
152
|
+
}, w = () => c`<calcite-tree-item disabled><div class="tree-item-label"><span class="constant-value">${i.errorMessage || (a.loaderror ?? "Unable to load data.")}</span></div></calcite-tree-item>`, W = () => u.kind !== "feature-set" || !i.schemaValue ? null : x({ name: "schema", value: i.schemaValue, messages: a, path: E(t, "schema"), lazyTreeState: e }), Q = () => u.kind !== "feature-set" || !u.mergedCollectionItem ? [] : X(u.mergedCollectionItem).map(([l, I]) => x({ name: l, value: z(I), messages: a, path: E(t, l), lazyTreeState: e })), Z = () => {
|
|
153
153
|
if (u.kind !== "feature-set")
|
|
154
154
|
return null;
|
|
155
155
|
if (!i.expanded || i.status === "loading")
|
|
@@ -158,15 +158,15 @@ function L({ lazyTreeState: e, nodePath: t, mergedCollectionItem: n, expanded: r
|
|
|
158
158
|
if (i.status === "error")
|
|
159
159
|
l.push(w());
|
|
160
160
|
else {
|
|
161
|
-
l.push(...
|
|
162
|
-
const I =
|
|
161
|
+
l.push(...Q());
|
|
162
|
+
const I = W();
|
|
163
163
|
I && l.push(I);
|
|
164
164
|
}
|
|
165
165
|
return l.length ? C(l) : C();
|
|
166
|
-
},
|
|
167
|
-
return c`<calcite-tree-item .expanded=${i.expanded} @calciteTreeItemExpand=${d} @calciteTreeItemCollapse=${y}><div class="tree-item-label">${T({ name: f, isMetadata: p })}<bdi>${u.displayValue}</bdi></div>${i.status === "loading" ? c`<calcite-loader slot=actions-end scale=s inline type=indeterminate .label=${a.loading ?? "Loading"} .text=${a.loading ?? "Loading"}></calcite-loader>` : null}${D ? c`<calcite-action slot=actions-end scale=s class="load-action" .text=${a.loadpreview ?? "Load preview"} text-enabled icon=play .disabled=${g} @click=${V}></calcite-action>` : null}${
|
|
166
|
+
}, _ = () => u.kind !== "collection" ? null : !i.expanded || i.status === "loading" ? C() : C(c`${i.status === "error" ? w() : null}${i.status === "loaded" ? i.collectionItems.map((l) => G({ name: l.name || l.id, mergedCollectionItem: l, messages: a, nodePath: E(t, l.id), lazyTreeState: e, value: l.featureSet, loadPreview: s, previewLabel: k(o, l.name || l.id), previewSourcePath: q(m, K(l)), previewLoading: g })) : null}`), j = () => u.kind === "collection" ? _() : Z();
|
|
167
|
+
return c`<calcite-tree-item .expanded=${i.expanded} @calciteTreeItemExpand=${d} @calciteTreeItemCollapse=${y}><div class="tree-item-label">${T({ name: f, isMetadata: p })}<bdi>${u.displayValue}</bdi></div>${i.status === "loading" ? c`<calcite-loader slot=actions-end scale=s inline type=indeterminate .label=${a.loading ?? "Loading"} .text=${a.loading ?? "Loading"}></calcite-loader>` : null}${D ? c`<calcite-action slot=actions-end scale=s class="load-action" .text=${a.loadpreview ?? "Load preview"} text-enabled icon=play .disabled=${g} @click=${V}></calcite-action>` : null}${j()}</calcite-tree-item>`;
|
|
168
168
|
}
|
|
169
|
-
function
|
|
169
|
+
function z(e) {
|
|
170
170
|
if (e == null)
|
|
171
171
|
return { type: "primitive", arcadeType: "", value: null };
|
|
172
172
|
switch (typeof e) {
|
|
@@ -185,7 +185,7 @@ function T({ name: e, isMetadata: t = !1 }) {
|
|
|
185
185
|
const n = t ? `dictionary-property ${N}` : "dictionary-property", r = t ? N : void 0;
|
|
186
186
|
return c`<bdi class=${R(n)}>${e}</bdi><bdi class=${R(r)}>: </bdi>`;
|
|
187
187
|
}
|
|
188
|
-
function
|
|
188
|
+
function P({ lazyTreeState: e, path: t, expanded: n = !1, value: r, subtree: p, messages: a, onLoadPreview: f, previewLabel: $, previewSourcePath: s, previewLoading: o = !1 }) {
|
|
189
189
|
const h = (d) => c`<calcite-tree slot=${"children"} .lines=${v.lines} .selectionMode=${v.selectionMode} .scale=${v.scale} @calciteTreeSelect=${v.oncalciteTreeSelect}>${d}</calcite-tree>`;
|
|
190
190
|
if (!n)
|
|
191
191
|
return h();
|
|
@@ -193,7 +193,7 @@ function ee({ lazyTreeState: e, path: t, expanded: n = !1, value: r, subtree: p,
|
|
|
193
193
|
V.stopPropagation(), e.showMore(t, d);
|
|
194
194
|
}}><div class="tree-item-label"><span class=${R(N)}>${a.showmore ?? "Show more"}</span></div></calcite-tree-item>`, i = r.expand();
|
|
195
195
|
if (Array.isArray(i)) {
|
|
196
|
-
const d = i.slice(0, g.visibleChildCount), y =
|
|
196
|
+
const d = i.slice(0, g.visibleChildCount), y = L(r) ? r.length : i.length;
|
|
197
197
|
return h(c`${d.map((V, w) => x({ name: w, value: V, messages: a, path: `${t}[${w}]`, lazyTreeState: e, onLoadPreview: f, previewLabel: k($, w), previewSourcePath: q(s, w), previewLoading: o }))}${u(i.length)}${x({ name: "length", value: { arcadeType: "Number", type: "primitive", value: y }, isMetadata: !0, messages: a, path: `${t}.length`, lazyTreeState: e })}`);
|
|
198
198
|
}
|
|
199
199
|
const b = r.arcadeType === "Feature" ? i.get("Geometry()") : void 0, S = Math.min(g.visibleChildCount, b ? i.size - 1 : i.size), m = [];
|
|
@@ -206,50 +206,53 @@ function ee({ lazyTreeState: e, path: t, expanded: n = !1, value: r, subtree: p,
|
|
|
206
206
|
const D = !!(b && g.visibleChildCount > m.length);
|
|
207
207
|
return h(c`${m.map(([d, y]) => x({ name: d, value: y, messages: a, path: `${t}.${d}`, lazyTreeState: e, onLoadPreview: f, previewLabel: k($, d), previewSourcePath: q(s, d), previewLoading: o }))}${D ? x({ name: "geometry", value: b, messages: a, path: `${t}.geometry`, lazyTreeState: e, onLoadPreview: f, previewLabel: k($, "geometry"), previewSourcePath: q(s, "geometry"), previewLoading: o }) : null}${u(i.size)}`);
|
|
208
208
|
}
|
|
209
|
-
function
|
|
209
|
+
function ee(e) {
|
|
210
210
|
return "expand" in e;
|
|
211
211
|
}
|
|
212
|
-
function
|
|
212
|
+
function te(e) {
|
|
213
213
|
return e.type === "simple";
|
|
214
214
|
}
|
|
215
|
-
function
|
|
215
|
+
function re(e) {
|
|
216
216
|
return e.type === "primitive";
|
|
217
217
|
}
|
|
218
|
-
function
|
|
218
|
+
function L(e) {
|
|
219
219
|
return e.type === "sequence-container";
|
|
220
220
|
}
|
|
221
|
-
function
|
|
221
|
+
function ne(e) {
|
|
222
222
|
return e.type === "feature-set";
|
|
223
223
|
}
|
|
224
|
-
function
|
|
224
|
+
function ie(e) {
|
|
225
225
|
return e.type === "feature-set-collection";
|
|
226
226
|
}
|
|
227
|
+
function le(e) {
|
|
228
|
+
return e.type === "minimal";
|
|
229
|
+
}
|
|
227
230
|
function ae(e) {
|
|
228
|
-
return
|
|
231
|
+
return ne(e) || ie(e);
|
|
229
232
|
}
|
|
230
233
|
function x({ lazyTreeState: e, path: t, name: n, value: r, messages: p, expanded: a, isMetadata: f = !1, onLoadPreview: $, previewLabel: s, previewSourcePath: o, previewLoading: h = !1 }) {
|
|
231
234
|
if (r === void 0)
|
|
232
235
|
return null;
|
|
233
236
|
if (r === null)
|
|
234
237
|
return c`<calcite-tree-item .expanded=${a}><div class="tree-item-label">${T({ name: n, isMetadata: f })}<bdi class="uninitialized-value tree-item-metadata">${p.uninitialized ?? "uninitialized"}</bdi></div></calcite-tree-item>`;
|
|
235
|
-
if (
|
|
238
|
+
if (ee(r)) {
|
|
236
239
|
const g = e.ensureNode(t, a), u = (m) => {
|
|
237
240
|
m.target === m.currentTarget && e.setExpanded(t, !0);
|
|
238
241
|
}, i = (m) => {
|
|
239
242
|
m.target === m.currentTarget && e.setExpanded(t, !1);
|
|
240
|
-
}, b = typeof r.arcadeType == "string" ? r.arcadeType : "unknown", S =
|
|
241
|
-
return c`<calcite-tree-item .expanded=${g.expanded} @calciteTreeItemExpand=${u} @calciteTreeItemCollapse=${i}><div class="tree-item-label">${T({ name: n, isMetadata: f })}<bdi>${S}</bdi></div>${
|
|
243
|
+
}, b = typeof r.arcadeType == "string" ? r.arcadeType : "unknown", S = L(r) ? `${b}(${r.length})` : b;
|
|
244
|
+
return c`<calcite-tree-item .expanded=${g.expanded} @calciteTreeItemExpand=${u} @calciteTreeItemCollapse=${i}><div class="tree-item-label">${T({ name: n, isMetadata: f })}<bdi>${S}</bdi></div>${P({ expanded: g.expanded, value: r, subtree: !0, messages: p, path: t, lazyTreeState: e, onLoadPreview: $, previewLabel: s, previewSourcePath: o, previewLoading: h })}</calcite-tree-item>`;
|
|
242
245
|
}
|
|
243
|
-
return ae(r) ?
|
|
246
|
+
return ae(r) ? G({ name: n, value: r, nodePath: t, lazyTreeState: e, messages: p, expanded: a, isMetadata: f, loadPreview: $, previewLabel: s, previewSourcePath: o, previewLoading: h }) : te(r) ? c`<calcite-tree-item .expanded=${a}><div class="tree-item-label">${T({ name: n, isMetadata: f })}${F({ value: r })}</div></calcite-tree-item>` : re(r) || le(r) ? c`<calcite-tree-item .expanded=${a}><div class="tree-item-label">${T({ name: n, isMetadata: f })}${F({ value: r })}</div></calcite-tree-item>` : null;
|
|
244
247
|
}
|
|
245
|
-
const
|
|
248
|
+
const F = ({ value: e }) => {
|
|
246
249
|
switch (e.type) {
|
|
247
250
|
case "primitive":
|
|
248
251
|
if (e.value === null)
|
|
249
252
|
return c`<bdi class="constant-value">null</bdi>`;
|
|
250
253
|
switch (e.arcadeType) {
|
|
251
254
|
case "String":
|
|
252
|
-
return c`<bdi class="string-value">${
|
|
255
|
+
return c`<bdi class="string-value">${O(String(e.value))}</bdi>`;
|
|
253
256
|
case "Number":
|
|
254
257
|
return c`<bdi class="number-value">${String(e.value)}</bdi>`;
|
|
255
258
|
case "Boolean":
|
|
@@ -267,12 +270,13 @@ const B = ({ value: e }) => {
|
|
|
267
270
|
};
|
|
268
271
|
export {
|
|
269
272
|
x as D,
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
273
|
+
F as S,
|
|
274
|
+
ie as a,
|
|
275
|
+
ne as b,
|
|
276
|
+
re as c,
|
|
277
|
+
te as d,
|
|
275
278
|
de as e,
|
|
276
|
-
|
|
279
|
+
le as f,
|
|
280
|
+
ee as i,
|
|
277
281
|
fe as p
|
|
278
282
|
};
|
|
@@ -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 } });
|
|
@@ -1,25 +1,28 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
3
|
-
import { css as l, html as
|
|
4
|
-
import { LitElement as
|
|
5
|
-
import { u as
|
|
6
|
-
import { d as
|
|
7
|
-
import { observeAncestorsMutation as
|
|
8
|
-
import { D as m } from "../../chunks/debugger-value-components.js";
|
|
9
|
-
const
|
|
10
|
-
|
|
2
|
+
import { c as i } from "../../chunks/runtime.js";
|
|
3
|
+
import { css as l, html as a } from "lit";
|
|
4
|
+
import { LitElement as o } from "@arcgis/lumina";
|
|
5
|
+
import { u as c } from "../../chunks/useT9n.js";
|
|
6
|
+
import { d as u, g as n, c as r, t as s } from "../../chunks/debugger-value-styles.js";
|
|
7
|
+
import { observeAncestorsMutation as d, unsafeGetCalciteModeName as g } from "@arcgis/toolkit/dom";
|
|
8
|
+
import { D as m, i as p, f as h, a as b, b as f } from "../../chunks/debugger-value-components.js";
|
|
9
|
+
const T = l`:host{display:flex;flex-direction:column;width:100%;background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-2);--calcite-block-padding: var(--calcite-spacing-sm);overflow:auto;calcite-flow{height:100%}.disabled-state-text{font-size:var(--calcite-font-size-sm);color:var(--calcite-color-text-3);font-style:italic;display:block;margin:var(--calcite-spacing-md)}[class*=result-value-]{line-height:1.25rem}}`;
|
|
10
|
+
function v(t, e) {
|
|
11
|
+
return p(t) || h(t) || b(t) || f(t) ? e ?? "Output" : t.arcadeType;
|
|
12
|
+
}
|
|
13
|
+
class y extends o {
|
|
11
14
|
constructor() {
|
|
12
|
-
super(...arguments), this.messages =
|
|
15
|
+
super(...arguments), this.messages = c();
|
|
13
16
|
}
|
|
14
17
|
static {
|
|
15
|
-
this.properties = { debuggerStore: 0, result: 0 };
|
|
18
|
+
this.properties = { debuggerStore: 0, result: 0, outputTitle: 1 };
|
|
16
19
|
}
|
|
17
20
|
static {
|
|
18
|
-
this.styles = [
|
|
21
|
+
this.styles = [T, u, n()];
|
|
19
22
|
}
|
|
20
23
|
load() {
|
|
21
24
|
this.manager.onLifecycle(() => {
|
|
22
|
-
const e =
|
|
25
|
+
const e = d(this.el, ["class"], this.updateTheme.bind(this));
|
|
23
26
|
return this.updateTheme(), () => e();
|
|
24
27
|
});
|
|
25
28
|
}
|
|
@@ -27,16 +30,16 @@ class h extends i {
|
|
|
27
30
|
e.has("result") && this.result && this.debuggerStore?.lazyTreeState.reset();
|
|
28
31
|
}
|
|
29
32
|
updateTheme() {
|
|
30
|
-
|
|
33
|
+
g(this.el) === "dark" ? this.elementInternals.states.add(r) : this.elementInternals.states.delete(r);
|
|
31
34
|
}
|
|
32
35
|
render() {
|
|
33
36
|
if (!this.result)
|
|
34
|
-
return
|
|
37
|
+
return a`<span class="disabled-state-text">${this.messages.nooutput ?? "No output available."}</span>`;
|
|
35
38
|
const e = this.debuggerStore?.lazyTreeState;
|
|
36
|
-
return e ?
|
|
39
|
+
return e ? a`<calcite-tree .scale=${s.scale} @calciteTreeSelect=${s.oncalciteTreeSelect} .lines=${s.lines} .selectionMode=${s.selectionMode}>${m({ expanded: !0, name: v(this.result, this.outputTitle), value: this.result, messages: this.messages, path: this.result.arcadeType, lazyTreeState: e })}</calcite-tree>` : a`<span class="disabled-state-text">${this.messages.nooutput ?? "No output available."}</span>`;
|
|
37
40
|
}
|
|
38
41
|
}
|
|
39
|
-
|
|
42
|
+
i("arcgis-arcade-debugger-output", y);
|
|
40
43
|
export {
|
|
41
|
-
|
|
44
|
+
y as ArcgisArcadeDebuggerOutput
|
|
42
45
|
};
|
|
@@ -20,7 +20,7 @@ import { property as c, subclass as f } from "@arcgis/core/core/accessorSupport/
|
|
|
20
20
|
import { A as V } from "../../chunks/ArcadeDebuggerPreviewTabsState.js";
|
|
21
21
|
import { r as pe } from "../../chunks/utilities.js";
|
|
22
22
|
import { Range as W, KeyCode as be, Uri as _e } from "monaco-editor";
|
|
23
|
-
const me = te`: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)}}.bottom-action-bar.is-collapsed{border-bottom:0}.bottom-action-bar{display:flex
|
|
23
|
+
const me = te`: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)}}.bottom-action-bar.is-collapsed{border-bottom:0}.bottom-action-bar{display:flex;.bottom-action-bar__actions{flex:1 1 auto;min-inline-size:0}}`, q = "https://services6.arcgis.com/HXHga6CfMLMBOlBX/ArcGIS/rest/services/survey123_6e349a50b4504ca6b6107216d568db5f_form/FeatureServer/0", h = (t, e) => {
|
|
24
24
|
ge(t, "Arcade Assistant", e);
|
|
25
25
|
}, X = [
|
|
26
26
|
"orgAiAssistantsEnabled",
|
|
@@ -570,7 +570,7 @@ class we extends ie {
|
|
|
570
570
|
}), (e.has("arcadeAssistant") || e.has("disableAssistant")) && this._updateArcadeAssistantRemoteState();
|
|
571
571
|
}
|
|
572
572
|
async loaded() {
|
|
573
|
-
await this._connectMonacoCustomizations(), this._componentReadyDefer.resolve()
|
|
573
|
+
await this._connectMonacoCustomizations(), this._componentReadyDefer.resolve();
|
|
574
574
|
}
|
|
575
575
|
_setOpenedSidePanel(e) {
|
|
576
576
|
this.openedSidePanel = e === this.openedSidePanel ? "none" : e;
|
|
@@ -929,17 +929,17 @@ class we extends ie {
|
|
|
929
929
|
}
|
|
930
930
|
renderBottomExecutionBody() {
|
|
931
931
|
const { showPanel: e, openedPanel: s, debugResult: i, isExecuting: a, mode: o } = this._debuggerState;
|
|
932
|
-
return e ? s === "debug-console" ? d`<arcgis-arcade-debugger-console slot=results-panel .modelId=${this._modelId} .debuggerStore=${this._debuggerState}></arcgis-arcade-debugger-console>` : s === "output" && (o === "debug" || i) ? d`<arcgis-arcade-debugger-output slot=results-panel .debuggerStore=${this._debuggerState} .result=${i}></arcgis-arcade-debugger-output>` : d`<arcgis-arcade-results slot=results-panel class="bottom-results" .openedResultPanel=${s} .loading=${s === "console" && this._debuggerState.isPaused ? !1 : a} .result=${this._debuggerState.runResult} .consoleLogs=${this._debuggerState.consoleLogs} hide-header @arcgisInternalOpenedResultPanelChange=${this._onResultPanelChange}></arcgis-arcade-results>` : null;
|
|
932
|
+
return e ? s === "debug-console" ? d`<arcgis-arcade-debugger-console slot=results-panel .modelId=${this._modelId} .debuggerStore=${this._debuggerState}></arcgis-arcade-debugger-console>` : s === "output" && (o === "debug" || i) ? d`<arcgis-arcade-debugger-output .outputTitle=${this.messages.output} slot=results-panel .debuggerStore=${this._debuggerState} .result=${i}></arcgis-arcade-debugger-output>` : d`<arcgis-arcade-results slot=results-panel class="bottom-results" .openedResultPanel=${s} .loading=${s === "console" && this._debuggerState.isPaused ? !1 : a} .result=${this._debuggerState.runResult} .consoleLogs=${this._debuggerState.consoleLogs} hide-header @arcgisInternalOpenedResultPanelChange=${this._onResultPanelChange}></arcgis-arcade-results>` : null;
|
|
933
933
|
}
|
|
934
934
|
renderBottomActionBar() {
|
|
935
935
|
if (!this._usesBottomExecutionDrawer)
|
|
936
936
|
return null;
|
|
937
937
|
const { showPanel: e, hasExecuted: s, openedPanel: i, isDebugging: a, isPaused: o, isExecuting: n } = this._debuggerState, r = this.messages.continue ?? "Continue", w = this.messages.reset ?? "Reset", x = this.messages.stop ?? "Stop";
|
|
938
|
-
return d`<div slot=bottom-action-bar class=${`main-action-bar bottom-action-bar ${e ? "" : "is-collapsed"}`}><calcite-action-bar class="bottom-action-bar__actions" layout=horizontal scale=s expand-disabled><calcite-action-group scale=s>${a ? d`<calcite-action id=debugger-continue-action .text=${r} icon=forward scale=s .disabled=${!o} @click=${this._continueDebugSession}></calcite-action><calcite-tooltip reference-element=debugger-continue-action placement=top><span>${r}</span></calcite-tooltip><calcite-action id=debugger-reset-action .text=${w} icon=reset scale=s @click=${this._resetDebugSession}></calcite-action><calcite-tooltip reference-element=debugger-reset-action placement=top><span>${w}</span></calcite-tooltip><calcite-action id=debugger-stop-action .text=${x} icon=circle-stop scale=s @click=${this._stopDebugSession}></calcite-action><calcite-tooltip reference-element=debugger-stop-action placement=top><span>${x}</span></calcite-tooltip>` : d`<calcite-action .text=${this.messages.run ?? ""} text-enabled icon=play scale=s .loading=${this._preparingArcade || n} @click=${() => {
|
|
938
|
+
return d`<div slot=bottom-action-bar class=${`main-action-bar bottom-action-bar ${e ? "" : "is-collapsed"}`}><calcite-action-bar class="bottom-action-bar__actions" layout=horizontal scale=s expand-disabled expanded><calcite-action-group scale=s>${a ? d`<calcite-action id=debugger-continue-action .text=${r} icon=forward scale=s .disabled=${!o} @click=${this._continueDebugSession}></calcite-action><calcite-tooltip reference-element=debugger-continue-action placement=top><span>${r}</span></calcite-tooltip><calcite-action id=debugger-reset-action .text=${w} icon=reset scale=s @click=${this._resetDebugSession}></calcite-action><calcite-tooltip reference-element=debugger-reset-action placement=top><span>${w}</span></calcite-tooltip><calcite-action id=debugger-stop-action .text=${x} icon=circle-stop scale=s @click=${this._stopDebugSession}></calcite-action><calcite-tooltip reference-element=debugger-stop-action placement=top><span>${x}</span></calcite-tooltip>` : d`<calcite-action .text=${this.messages.run ?? ""} text-enabled icon=play scale=s .loading=${this._preparingArcade || n} @click=${() => {
|
|
939
939
|
this._executeScript("run").catch(u(this));
|
|
940
940
|
}}></calcite-action><calcite-action .disabled=${this._debuggerState.editorBreakpoints.length === 0} .text=${this.messages.runanddebug ?? "Run and Debug"} text-enabled icon=debug-script scale=s .loading=${this._preparingArcade || n} @click=${() => {
|
|
941
941
|
this._executeScript("debug").catch(u(this));
|
|
942
|
-
}}></calcite-action>`}</calcite-action-group>${s ? d`<calcite-action-group scale=s><calcite-action .active=${i === "output" && e} .text=${this.messages.output ?? "Output"} text-enabled scale=s icon=list-show-all icon-flip-rtl @click=${() => this._setExecutionPanel("output")}></calcite-action><calcite-action .active=${i === "console" && e} .text=${this.messages.console ?? "Console"} text-enabled scale=s icon=console icon-flip-rtl @click=${() => this._setExecutionPanel("console")}></calcite-action><calcite-action .active=${i === "log" && e} .text=${this.messages.log ?? "Log"} text-enabled scale=s icon=list icon-flip-rtl @click=${() => this._setExecutionPanel("log")} .disabled=${this.enableDebugger && this._debuggerState.mode === "debug"}></calcite-action><calcite-action .active=${i === "debug-console" && e} .text=${this.messages.debugconsole ?? "Debug Console"} text-enabled scale=s icon=debug-script
|
|
942
|
+
}}></calcite-action>`}</calcite-action-group>${s ? d`<calcite-action-group scale=s><calcite-action .active=${i === "output" && e} .text=${this.messages.output ?? "Output"} text-enabled scale=s icon=list-show-all icon-flip-rtl @click=${() => this._setExecutionPanel("output")}></calcite-action><calcite-action .active=${i === "console" && e} .text=${this.messages.console ?? "Console"} text-enabled scale=s icon=console icon-flip-rtl @click=${() => this._setExecutionPanel("console")}></calcite-action><calcite-action .active=${i === "log" && e} .text=${this.messages.log ?? "Log"} text-enabled scale=s icon=list icon-flip-rtl @click=${() => this._setExecutionPanel("log")} .disabled=${this.enableDebugger && this._debuggerState.mode === "debug"}></calcite-action><calcite-action .active=${i === "debug-console" && e} .text=${this.messages.debugconsole ?? "Debug Console"} text-enabled scale=s icon=debug-script .disabled=${this._debuggerState.mode !== "debug"} @click=${() => this._setExecutionPanel("debug-console")}></calcite-action></calcite-action-group>` : null}</calcite-action-bar>${e ? d`<calcite-action .text=${this.messages.close ?? "Close"} scale=s icon=x icon-flip-rtl @click=${this._onExecutionPanelClose} slot=actions-end></calcite-action>` : null}</div>`;
|
|
943
943
|
}
|
|
944
944
|
render() {
|
|
945
945
|
return d`<arcgis-code-editor-shell>${this.renderMainActionBar()}${this.renderMainPanel()}${this.renderBottomActionBar()}${this.renderResultsPanel()}${this.renderSidePanel()}${this.renderSideActionBar()}</arcgis-code-editor-shell>`;
|
|
@@ -48,7 +48,7 @@ class F extends f {
|
|
|
48
48
|
I(this.el) === "dark" ? this.elementInternals.states.add(m) : this.elementInternals.states.delete(m);
|
|
49
49
|
}
|
|
50
50
|
renderConsolePanel() {
|
|
51
|
-
return this.openedResultPanel !== "console" ? null : this.loading && !this.consoleLogs?.length ? e`<calcite-loader scale=s type=indeterminate .label=${this.messages.loading ?? "loading"}></calcite-loader>` : e`<div class="console-logs-container">${this.consoleLogs?.length ? this.consoleLogs.map((t) => e`<p>${t}</p>`) : e`<p>${this.messages.consolemessage}</p>`}</div>`;
|
|
51
|
+
return this.openedResultPanel !== "console" ? null : this.loading && !this.consoleLogs?.length ? e`<calcite-loader scale=s type=indeterminate .label=${this.messages.loading ?? "loading"}></calcite-loader>` : e`<div class="console-logs-container">${this.consoleLogs?.length ? this.consoleLogs.map((t) => e`<p dir=auto>${t}</p>`) : e`<p dir=auto>${this.messages.consolemessage}</p>`}</div>`;
|
|
52
52
|
}
|
|
53
53
|
renderLogPanel() {
|
|
54
54
|
if (this.openedResultPanel !== "log")
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { c as p } from "../../chunks/runtime.js";
|
|
3
|
-
import { css as h, html as
|
|
3
|
+
import { css as h, html as o } from "lit";
|
|
4
4
|
import { LitElement as g, createEvent as l, safeClassMap as m } from "@arcgis/lumina";
|
|
5
5
|
import { generateGuid as u } from "@arcgis/toolkit/string";
|
|
6
6
|
import { u as f } from "../../chunks/useT9n.js";
|
|
7
|
-
import { createRef as
|
|
7
|
+
import { createRef as b, ref as _ } from "lit/directives/ref.js";
|
|
8
8
|
import { k as d } from "../../chunks/utils.js";
|
|
9
9
|
import { e as E } from "../../chunks/utilities.js";
|
|
10
10
|
import "@arcgis/core/portal/PortalItem.js";
|
|
@@ -14,7 +14,7 @@ import "@arcgis/core/layers/FeatureLayer.js";
|
|
|
14
14
|
import "@arcgis/core/applications/Components/arcadeEditorUtils.js";
|
|
15
15
|
import "@arcgis/toolkit/predicate";
|
|
16
16
|
import "vscode-languageserver-types";
|
|
17
|
-
import { rethrowError as
|
|
17
|
+
import { rethrowError as r } from "@arcgis/toolkit/log";
|
|
18
18
|
import "@arcgis/core/core/Error.js";
|
|
19
19
|
import { d as n } from "../../chunks/language-defaults-base.js";
|
|
20
20
|
import "@arcgis/core/portal/Portal.js";
|
|
@@ -23,7 +23,7 @@ import { getSqlLayerDiagnosticService as x } from "../../chunks/sql-layer-mode.j
|
|
|
23
23
|
const I = h`:host{height:100%}calcite-tooltip:not([calcite-hydrated])>*{display:none}`;
|
|
24
24
|
class L extends g {
|
|
25
25
|
constructor() {
|
|
26
|
-
super(...arguments), this._codeEditorElt =
|
|
26
|
+
super(...arguments), this._codeEditorElt = b(), this._disposables = [], this._modelId = u(), this.messages = f(), this._preparing = !1, this._resolvedLanguage = n, this.sideActionBarExpanded = !1, this.script = "", this.hideSideBar = !1, this.openedSidePanel = "none", this.arcgisDiagnosticsChange = l({ bubbles: !1 }), this.arcgisScriptChange = l({ bubbles: !1 });
|
|
27
27
|
}
|
|
28
28
|
static {
|
|
29
29
|
this.properties = { _editorProfile: 16, _preparing: 16, _resolvedLanguage: 16, sideActionBarExpanded: 16, profile: 0, script: 1, hideSideBar: 5, messageOverrides: 0, openedSidePanel: 3, editorOptions: 0, editorInstance: 32 };
|
|
@@ -38,10 +38,10 @@ class L extends g {
|
|
|
38
38
|
await this._codeEditorElt.value?.setFocus();
|
|
39
39
|
}
|
|
40
40
|
async load() {
|
|
41
|
-
await this._updateDataModelDeps().catch(
|
|
41
|
+
await this._updateDataModelDeps().catch(r(this));
|
|
42
42
|
}
|
|
43
43
|
willUpdate(e) {
|
|
44
|
-
e.has("profile") && this._updateDataModelDeps().catch(
|
|
44
|
+
e.has("profile") && this._updateDataModelDeps().catch(r(this));
|
|
45
45
|
}
|
|
46
46
|
async loaded() {
|
|
47
47
|
const e = x();
|
|
@@ -71,7 +71,7 @@ class L extends g {
|
|
|
71
71
|
this.sideActionBarExpanded = !this.sideActionBarExpanded;
|
|
72
72
|
}
|
|
73
73
|
_toggleSidePanel(e) {
|
|
74
|
-
this.openedSidePanel = this.openedSidePanel === e ? "none" : e
|
|
74
|
+
this.openedSidePanel = this.openedSidePanel === e ? "none" : e;
|
|
75
75
|
}
|
|
76
76
|
_onCodeEditorValueChange(e) {
|
|
77
77
|
e.stopPropagation(), this.script = e.detail, this.arcgisScriptChange.emit(e.detail);
|
|
@@ -80,7 +80,7 @@ class L extends g {
|
|
|
80
80
|
e.stopPropagation();
|
|
81
81
|
const t = this._getSelectedTableVariable(e.detail);
|
|
82
82
|
if (!t) {
|
|
83
|
-
this._codeEditorElt.value?.insertText(e.detail).catch(
|
|
83
|
+
this._codeEditorElt.value?.insertText(e.detail).catch(r(this));
|
|
84
84
|
return;
|
|
85
85
|
}
|
|
86
86
|
await t.loadSource();
|
|
@@ -99,9 +99,9 @@ class L extends g {
|
|
|
99
99
|
render() {
|
|
100
100
|
const e = this._getTablesVariable(), i = String(this.messages.placeholderexample ?? "Example: {sqlQueryExample}").replace("{sqlQueryExample}", "select field1, field2 from db.dataset"), s = `${this.messages.placeholder ?? "Start filtering data using SQL query syntax"}
|
|
101
101
|
${i}`;
|
|
102
|
-
return
|
|
102
|
+
return o`<arcgis-code-editor-shell><arcgis-code-editor slot=editor .language=${this._resolvedLanguage} .modelId=${this._modelId} .value=${this.script ?? ""} @arcgisValueChange=${this._onCodeEditorValueChange} .editorOptions=${{ placeholder: s, ...this.editorOptions }} ${_(this._codeEditorElt)}></arcgis-code-editor>${!this.hideSideBar && o`<arcgis-editor-variables slot=side-panel .variable=${e} .heading=${this.messages.tables ?? "Tables"} .messageOverrides=${{ profileempty: this.messages.profileempty }} .closed=${this.openedSidePanel !== "variables"} class=${m(this.openedSidePanel === "variables" ? "" : "hidden")} .loading=${this._preparing} .modelId=${this._modelId} @arcgisInternalItemSelected=${this._onItemSelected} @arcgisInternalClosePanel=${() => {
|
|
103
103
|
this.openedSidePanel = "none";
|
|
104
|
-
}} data-panel-name=none></arcgis-editor-variables><calcite-action-bar slot=side-action-bar .expanded=${this.sideActionBarExpanded} position=end @calciteActionBarToggle=${this._toggleSideActionBarExpanded}><calcite-action id=tables-action .text=${this.messages.tables ?? "Tables"} icon=table .active=${this.openedSidePanel === "variables"} data-panel-name=variables @click=${() => this._toggleSidePanel("variables")}></calcite-action>${!this.sideActionBarExpanded &&
|
|
104
|
+
}} data-panel-name=none></arcgis-editor-variables><calcite-action-bar slot=side-action-bar .expanded=${this.sideActionBarExpanded} position=end @calciteActionBarToggle=${this._toggleSideActionBarExpanded}><calcite-action id=tables-action .text=${this.messages.tables ?? "Tables"} icon=table .active=${this.openedSidePanel === "variables"} data-panel-name=variables @click=${() => this._toggleSidePanel("variables")}></calcite-action>${!this.sideActionBarExpanded && o`<calcite-tooltip reference-element=tables-action><span>${this.messages.tables ?? "Tables"}</span></calcite-tooltip>` || ""}</calcite-action-bar>` || ""}</arcgis-code-editor-shell>`;
|
|
105
105
|
}
|
|
106
106
|
}
|
|
107
107
|
p("arcgis-sql-layer-editor", L);
|