@arcgis/coding-components 5.2.0-next.10 → 5.2.0-next.11

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.
Files changed (44) hide show
  1. package/dist/cdn/{QRQEHI3E.js → 3QN6NREQ.js} +1 -1
  2. package/dist/cdn/{PE22Q7FG.js → 76VHPECE.js} +1 -1
  3. package/dist/cdn/{MFMTJO3G.js → 7BIFZ5DU.js} +1 -1
  4. package/dist/cdn/{3LFA3ZUC.js → 7UTCJERR.js} +1 -1
  5. package/dist/cdn/{3RKKHGVW.js → A6IGYBAZ.js} +2 -2
  6. package/dist/cdn/{GRY2G3ZM.js → B3RGPCZC.js} +1 -1
  7. package/dist/cdn/{EHMFQPTC.js → B73HLERI.js} +1 -1
  8. package/dist/cdn/{UCJZGGBB.js → BXC4G3AT.js} +1 -1
  9. package/dist/cdn/GTE3KXNK.js +2 -0
  10. package/dist/cdn/{R4PIOB2F.js → H2YYYWPE.js} +1 -1
  11. package/dist/cdn/{3PBQ47BB.js → HXJFZ2Y5.js} +1 -1
  12. package/dist/cdn/{LZ2JU5WD.js → JLYAOSQM.js} +1 -1
  13. package/dist/cdn/{PNDN33UV.js → LEFFI3FB.js} +1 -1
  14. package/dist/cdn/{VVAIS3PR.js → MCVII2KK.js} +1 -1
  15. package/dist/cdn/{DBVA54U6.js → MFDNJU3K.js} +1 -1
  16. package/dist/cdn/{EIW62O7S.js → NCMXRX7O.js} +1 -1
  17. package/dist/cdn/NVWQE3SF.js +2 -0
  18. package/dist/cdn/{CRXBAVHA.js → O6L3YJ7J.js} +1 -1
  19. package/dist/cdn/{XU7YAUUX.js → PJBI5XFD.js} +1 -1
  20. package/dist/cdn/{BEDXEPMS.js → PXKBNRBR.js} +1 -1
  21. package/dist/cdn/{4XEVYDUI.js → Q5RDW24Y.js} +1 -1
  22. package/dist/cdn/{IMMQXUUH.js → RFQXYDLI.js} +1 -1
  23. package/dist/cdn/{6IE7GBIZ.js → TIZLT4V3.js} +1 -1
  24. package/dist/cdn/{4XMC5J5W.js → UTTEHEMP.js} +1 -1
  25. package/dist/cdn/VPVLZ5QO.js +2 -0
  26. package/dist/cdn/{FJWYAXOE.js → WRVJHPML.js} +1 -1
  27. package/dist/cdn/XJRNIBLO.js +2 -0
  28. package/dist/cdn/{MQ6ZAZZK.js → ZXEQOR2Y.js} +1 -1
  29. package/dist/cdn/assets/code-editor/sql-expr.worker.js +2611 -2586
  30. package/dist/cdn/index.js +1 -1
  31. package/dist/chunks/debugger-value-components.js +51 -47
  32. package/dist/components/arcgis-arcade-debugger-output/customElement.js +21 -18
  33. package/dist/components/arcgis-arcade-editor/customElement.js +5 -5
  34. package/dist/components/arcgis-arcade-results/customElement.js +1 -1
  35. package/dist/components/arcgis-sql-layer-editor/customElement.js +10 -10
  36. package/dist/docs/api.json +1 -1
  37. package/dist/docs/docs.json +1 -1
  38. package/dist/docs/web-types.json +1 -1
  39. package/dist/loader.js +1 -1
  40. package/package.json +5 -5
  41. package/dist/cdn/4KFBAAVC.js +0 -2
  42. package/dist/cdn/GBBSV4NV.js +0 -2
  43. package/dist/cdn/IQR7XS6J.js +0 -2
  44. 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"./XU7YAUUX.js";import"./VGOFAQ7A.js";import"./H6RQVSYM.js";var i=e(s,{"arcgis-arcade-coding-assistant":[()=>import("./MFMTJO3G.js"),"appVersion,closed,closePanel:,diagnostics:,disableQuestionAnswerLogging,editorRef:,feedbackServiceUrl,helpBase,insertText:,portalUrl,promptingEnabled,serviceUrl;destroy,openPrompt"],"arcgis-arcade-debugger-console":[()=>import("./EIW62O7S.js"),"debuggerStore:,modelId"],"arcgis-arcade-debugger-output":[()=>import("./GBBSV4NV.js"),"debuggerStore:,result:"],"arcgis-arcade-editor":[()=>import("./4KFBAAVC.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("./IQR7XS6J.js"),"consoleLogs:,hideHeader,loading,openedResultPanel,result:"],"arcgis-arcade-suggestions":[()=>import("./PNDN33UV.js"),"closed,suggestions:"],"arcgis-code-editor":[()=>import("./GRY2G3ZM.js"),"editorInstance:,editorOptions:,language,modelId,value;insertSnippet,insertText,setFocus"],"arcgis-code-editor-shell":[()=>import("./PE22Q7FG.js")],"arcgis-code-viewer":[()=>import("./6IE7GBIZ.js"),"language,lineNumbers,round"],"arcgis-editor-variables":[()=>import("./4XEVYDUI.js"),"closed,heading,hideDescriptions,loading,messageOverrides:,modelId,variable:"],"arcgis-language-api-panel":[()=>import("./FJWYAXOE.js"),"apiLibrary:,closed,hideDocumentationActions,languageId,loading"],"arcgis-sql-expression-editor":[()=>import("./QRQEHI3E.js"),"hideDescriptionsInFieldsPanel,hideSideBar,messageOverrides:,messages:,profile:,script;setFocus"],"arcgis-sql-layer-editor":[()=>import("./3RKKHGVW.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
+ 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("./7BIFZ5DU.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 { uncapitalize as A, quoteString as U } from "@arcgis/toolkit/string";
6
- const H = /^[$A-Z_a-z][$\w]*$/u;
7
- function E(e) {
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 J(e) {
11
- return H.test(e);
10
+ function H(e) {
11
+ return U.test(e);
12
12
  }
13
- function G(e) {
14
- return typeof e == "number" ? `[${e}]` : e.startsWith("name:") ? `[name="${E(e.slice(5))}"]` : e.startsWith("id:") ? `[id="${E(e.slice(3))}"]` : J(e) ? `.${e}` : `["${E(e)}"]`;
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 F(e, t) {
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 K(e) {
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 = F(e, t + $.length + 1);
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 = F(e, t);
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}${G(t)}`;
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}${G(t)}`;
98
+ return `${e}${B(t)}`;
99
99
  }
100
100
  function fe(e) {
101
- return K(e);
101
+ return J(e);
102
102
  }
103
- function M(e, t) {
103
+ function E(e, t) {
104
104
  return typeof t == "number" ? `${e}[${t}]` : `${e}.${t}`;
105
105
  }
106
- function X(e) {
106
+ function K(e) {
107
107
  return e.name ? `name:${e.name}` : `id:${e.id}`;
108
108
  }
109
- function Y(e) {
109
+ function X(e) {
110
110
  return Object.entries(e).filter(([t]) => t !== "featureSet");
111
111
  }
112
- function z(e, t) {
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 L({ 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 = z($, n);
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>`, Q = () => u.kind !== "feature-set" || !i.schemaValue ? null : x({ name: "schema", value: i.schemaValue, messages: a, path: M(t, "schema"), lazyTreeState: e }), Z = () => u.kind !== "feature-set" || !u.mergedCollectionItem ? [] : Y(u.mergedCollectionItem).map(([l, I]) => x({ name: l, value: P(I), messages: a, path: M(t, l), lazyTreeState: e })), _ = () => {
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(...Z());
162
- const I = Q();
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
- }, j = () => u.kind !== "collection" ? null : !i.expanded || i.status === "loading" ? C() : C(c`${i.status === "error" ? w() : null}${i.status === "loaded" ? i.collectionItems.map((l) => L({ name: l.name || l.id, mergedCollectionItem: l, messages: a, nodePath: M(t, l.id), lazyTreeState: e, value: l.featureSet, loadPreview: s, previewLabel: k(o, l.name || l.id), previewSourcePath: q(m, X(l)), previewLoading: g })) : null}`), O = () => u.kind === "collection" ? j() : _();
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}${O()}</calcite-tree-item>`;
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 P(e) {
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)}>:&nbsp;</bdi>`;
187
187
  }
188
- function ee({ lazyTreeState: e, path: t, expanded: n = !1, value: r, subtree: p, messages: a, onLoadPreview: f, previewLabel: $, previewSourcePath: s, previewLoading: o = !1 }) {
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 = W(r) ? r.length : i.length;
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 te(e) {
209
+ function ee(e) {
210
210
  return "expand" in e;
211
211
  }
212
- function re(e) {
212
+ function te(e) {
213
213
  return e.type === "simple";
214
214
  }
215
- function ne(e) {
215
+ function re(e) {
216
216
  return e.type === "primitive";
217
217
  }
218
- function W(e) {
218
+ function L(e) {
219
219
  return e.type === "sequence-container";
220
220
  }
221
- function ie(e) {
221
+ function ne(e) {
222
222
  return e.type === "feature-set";
223
223
  }
224
- function le(e) {
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 ie(e) || le(e);
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 (te(r)) {
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 = W(r) ? `${A(b)}(${r.length})` : A(b);
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>${ee({ expanded: g.expanded, value: r, subtree: !0, messages: p, path: t, lazyTreeState: e, onLoadPreview: $, previewLabel: s, previewSourcePath: o, previewLoading: h })}</calcite-tree-item>`;
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) ? L({ name: n, value: r, nodePath: t, lazyTreeState: e, messages: p, expanded: a, isMetadata: f, loadPreview: $, previewLabel: s, previewSourcePath: o, previewLoading: h }) : re(r) ? c`<calcite-tree-item .expanded=${a}><div class="tree-item-label">${T({ name: n, isMetadata: f })}${B({ value: r })}</div></calcite-tree-item>` : ne(r) ? c`<calcite-tree-item .expanded=${a}><div class="tree-item-label">${T({ name: n, isMetadata: f })}${B({ value: r })}</div></calcite-tree-item>` : null;
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 B = ({ value: e }) => {
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">${U(String(e.value))}</bdi>`;
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
- B as S,
271
- le as a,
272
- ie as b,
273
- ne as c,
274
- re as d,
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
- te as i,
279
+ le as f,
280
+ ee as i,
277
281
  fe as p
278
282
  };
@@ -1,25 +1,28 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import { c as r } from "../../chunks/runtime.js";
3
- import { css as l, html as s } from "lit";
4
- import { LitElement as i } from "@arcgis/lumina";
5
- import { u as o } from "../../chunks/useT9n.js";
6
- import { d as c, g as n, c as a, t } from "../../chunks/debugger-value-styles.js";
7
- import { observeAncestorsMutation as u, unsafeGetCalciteModeName as d } from "@arcgis/toolkit/dom";
8
- import { D as m } from "../../chunks/debugger-value-components.js";
9
- const p = 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
- class h extends i {
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 = o();
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 = [p, c, n()];
21
+ this.styles = [T, u, n()];
19
22
  }
20
23
  load() {
21
24
  this.manager.onLifecycle(() => {
22
- const e = u(this.el, ["class"], this.updateTheme.bind(this));
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
- d(this.el) === "dark" ? this.elementInternals.states.add(a) : this.elementInternals.states.delete(a);
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 s`<span class="disabled-state-text">${this.messages.nooutput ?? "No output available."}</span>`;
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 ? s`<calcite-tree .scale=${t.scale} @calciteTreeSelect=${t.oncalciteTreeSelect} .lines=${t.lines} .selectionMode=${t.selectionMode}>${m({ expanded: !0, name: this.result.arcadeType, value: this.result, messages: this.messages, path: this.result.arcadeType, lazyTreeState: e })}</calcite-tree>` : s`<span class="disabled-state-text">${this.messages.nooutput ?? "No output available."}</span>`;
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
- r("arcgis-arcade-debugger-output", h);
42
+ i("arcgis-arcade-debugger-output", y);
40
43
  export {
41
- h as ArcgisArcadeDebuggerOutput
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;align-items:stretch;background-color:var(--calcite-color-foreground-1);.bottom-action-bar__actions{flex:1 1 auto;min-inline-size:0}.bottom-action-bar__close{flex:0 0 auto}}`, q = "https://services6.arcgis.com/HXHga6CfMLMBOlBX/ArcGIS/rest/services/survey123_6e349a50b4504ca6b6107216d568db5f_form/FeatureServer/0", h = (t, e) => {
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(), await this._codeEditorElt.value?.setFocus();
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 icon-flip-rtl .disabled=${this._debuggerState.mode !== "debug"} @click=${() => this._setExecutionPanel("debug-console")}></calcite-action></calcite-action-group>` : null}</calcite-action-bar>${e ? d`<calcite-action class="bottom-action-bar__close" .text=${this.messages.close ?? "Close"} scale=s icon=x icon-flip-rtl @click=${this._onExecutionPanelClose}></calcite-action>` : null}</div>`;
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 r } from "lit";
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 _, ref as b } from "lit/directives/ref.js";
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 o } from "@arcgis/toolkit/log";
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 = _(), 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 });
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(o(this));
41
+ await this._updateDataModelDeps().catch(r(this));
42
42
  }
43
43
  willUpdate(e) {
44
- e.has("profile") && this._updateDataModelDeps().catch(o(this));
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, this.openedSidePanel === "none" && this._codeEditorElt.value?.setFocus().catch(o(this));
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(o(this));
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 r`<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 }} ${b(this._codeEditorElt)}></arcgis-code-editor>${!this.hideSideBar && r`<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=${() => {
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 && r`<calcite-tooltip reference-element=tables-action><span>${this.messages.tables ?? "Tables"}</span></calcite-tooltip>` || ""}</calcite-action-bar>` || ""}</arcgis-code-editor-shell>`;
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);