@arcgis/coding-components 5.2.0-next.70 → 5.2.0-next.72

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 (39) hide show
  1. package/LICENSE.md +4 -2
  2. package/dist/cdn/{L5GMK4WW.js → 43C5J4GE.js} +1 -1
  3. package/dist/cdn/{WKATTQP5.js → 4KQVV3YD.js} +1 -1
  4. package/dist/cdn/6IKYN6UN.js +2 -0
  5. package/dist/cdn/{LMWFFLSQ.js → 6LPNGMDE.js} +1 -1
  6. package/dist/cdn/{3FFSPR6G.js → ADELNDZO.js} +1 -1
  7. package/dist/cdn/{XHOIOY7C.js → AGTV2YKX.js} +1 -1
  8. package/dist/cdn/{VCJOX5C4.js → BN5UJZOU.js} +1 -1
  9. package/dist/cdn/{GGYZW52W.js → CRHXEUUE.js} +1 -1
  10. package/dist/cdn/{GCEYNSEX.js → CVKAPGDA.js} +1 -1
  11. package/dist/cdn/{RTYRFD6M.js → E4CYGXC6.js} +1 -1
  12. package/dist/cdn/{M52C3KI5.js → FP7M64L5.js} +1 -1
  13. package/dist/cdn/{TQ6LVLSI.js → JE3AYQH2.js} +4 -4
  14. package/dist/cdn/{NR5L34UX.js → N5BWDIMZ.js} +1 -1
  15. package/dist/cdn/{QKGBTIWT.js → O5LFPM4K.js} +1 -1
  16. package/dist/cdn/{PF3ZBCB7.js → PR7KTMAS.js} +1 -1
  17. package/dist/cdn/{2TNK3TAC.js → Q6573NF7.js} +1 -1
  18. package/dist/cdn/{NOFOW72C.js → T7CCNYHK.js} +1 -1
  19. package/dist/cdn/TOQ2QWTU.js +3 -0
  20. package/dist/cdn/{75LMVVBN.js → TUB3DPGP.js} +1 -1
  21. package/dist/cdn/TUQPDQ74.js +2 -0
  22. package/dist/cdn/{YAYRZ72E.js → VZ6DLSKR.js} +1 -1
  23. package/dist/cdn/{CPS2Z2V6.js → WYJB4DB6.js} +1 -1
  24. package/dist/cdn/{BTI2OYTZ.js → ZXHMUT2I.js} +1 -1
  25. package/dist/cdn/assets/code-editor/sql-expr.worker.js +1 -1
  26. package/dist/cdn/assets/code-editor/sql-layer.worker.js +2726 -2086
  27. package/dist/cdn/index.js +1 -1
  28. package/dist/chunks/language-defaults-base.js +98 -85
  29. package/dist/chunks/oracle.js +218 -0
  30. package/dist/chunks/sql-layer-mode.js +59 -51
  31. package/dist/components/arcgis-arcade-editor/customElement.js +2 -2
  32. package/dist/components/arcgis-arcade-results/customElement.js +7 -7
  33. package/dist/components/arcgis-sql-layer-editor/customElement.js +42 -37
  34. package/dist/docs/api.json +1 -1
  35. package/dist/docs/docs.json +1 -1
  36. package/dist/docs/web-types.json +1 -1
  37. package/package.json +5 -5
  38. package/dist/cdn/5E3EYAL3.js +0 -3
  39. package/dist/cdn/BU4MIL63.js +0 -2
@@ -0,0 +1,218 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
+ const E = {
3
+ id: "oracle",
4
+ keywords: [
5
+ "ACCESS",
6
+ "ADD",
7
+ "ALL",
8
+ "ALTER",
9
+ "AND",
10
+ "ANY",
11
+ "AS",
12
+ "ASC",
13
+ "AUDIT",
14
+ "AVG",
15
+ "BETWEEN",
16
+ "BY",
17
+ "CHAR",
18
+ "CHARACTER",
19
+ "CHECK",
20
+ "CLUSTER",
21
+ "COLUMN",
22
+ "COMMENT",
23
+ "COMPRESS",
24
+ "CONNECT",
25
+ "CREATE",
26
+ "CURRENT",
27
+ "DATE",
28
+ "DECIMAL",
29
+ "DEFAULT",
30
+ "DELETE",
31
+ "DESC",
32
+ "DISTINCT",
33
+ "DROP",
34
+ "ELSE",
35
+ "EXCLUSIVE",
36
+ "EXEC",
37
+ "EXISTS",
38
+ "FETCH",
39
+ "FILE",
40
+ "FLOAT",
41
+ "FOR",
42
+ "FROM",
43
+ "GRANT",
44
+ "GROUP",
45
+ "HAVING",
46
+ "IDENTIFIED",
47
+ "IMMEDIATE",
48
+ "IN",
49
+ "INCREMENT",
50
+ "INDEX",
51
+ "INITIAL",
52
+ "INSERT",
53
+ "INTEGER",
54
+ "INTERSECT",
55
+ "INTO",
56
+ "IS",
57
+ "LATERAL",
58
+ "LEVEL",
59
+ "LIKE",
60
+ "LOCK",
61
+ "LONG",
62
+ "MAXEXTENT",
63
+ "MINUS",
64
+ "MLSLABEL",
65
+ "MODE",
66
+ "MODIFY",
67
+ "NOAUDIT",
68
+ "NOCOMPRESS",
69
+ "NOT",
70
+ "NOWAIT",
71
+ "NULL",
72
+ "NUMBER",
73
+ "OF",
74
+ "OFFLINE",
75
+ "ON",
76
+ "ONLINE",
77
+ "OPTION",
78
+ "OR",
79
+ "ORDER",
80
+ "PLI",
81
+ "PCTREE",
82
+ "PRIOR",
83
+ "PRIVILEGES",
84
+ "PUBLIC",
85
+ "RAW",
86
+ "RENAME",
87
+ "RESOURCE",
88
+ "REVOKE",
89
+ "ROW",
90
+ "ROWID",
91
+ "ROWLABEL",
92
+ "ROWNUM",
93
+ "ROWS",
94
+ "SELECT",
95
+ "SESSION",
96
+ "SET",
97
+ "SHARE",
98
+ "SIZE",
99
+ "SMALLINT",
100
+ "START",
101
+ "SUCCESSFUL",
102
+ "SYNONYM",
103
+ "SYSDATE",
104
+ "TABLE",
105
+ "THEN",
106
+ "TO",
107
+ "TRIGGER",
108
+ "UID",
109
+ "UNION",
110
+ "UNIQUE",
111
+ "UPDATE",
112
+ "USER",
113
+ "VALIDATE",
114
+ "VALUES",
115
+ "VARCHAR",
116
+ "VARCHAR2",
117
+ "VIEW",
118
+ "WHENEVER",
119
+ "WHERE",
120
+ "WITH"
121
+ ],
122
+ functions: [
123
+ "UPPER",
124
+ "LOWER",
125
+ "CONCAT",
126
+ "ASCII",
127
+ "LENGTH",
128
+ "LENGTHB",
129
+ "CHR",
130
+ "LTRIM",
131
+ "RTRIM",
132
+ "SUBSTR",
133
+ "SUBSTRB",
134
+ "SOUNDEX",
135
+ "TRANSLATE",
136
+ "TRIM",
137
+ "CEIL",
138
+ "FLOOR",
139
+ "ROUND",
140
+ "LN",
141
+ "LOG",
142
+ "MOD",
143
+ "POWER",
144
+ "SIGN",
145
+ "TRUNC",
146
+ "SINH",
147
+ "COSH",
148
+ "TANH",
149
+ "ASIN",
150
+ "ACOS",
151
+ "ATAN",
152
+ "RAWTOHEX",
153
+ "SIN",
154
+ "COS",
155
+ "TAN",
156
+ "EXTRACT",
157
+ "BIT_LENGTH",
158
+ "INSTR",
159
+ "ABS",
160
+ "VARIANCE",
161
+ "STDDEV",
162
+ "AVG",
163
+ "COUNT",
164
+ "MAX",
165
+ "MIN",
166
+ "SUM",
167
+ "COALESCE",
168
+ "CONVERT",
169
+ "CAST",
170
+ "USER",
171
+ "CURRENT_DATE",
172
+ "CURRENT_TIMESTAMP",
173
+ "STDDEV_POP",
174
+ "STDDEV_SAMP",
175
+ "VAR_POP",
176
+ "VAR_SAMP",
177
+ "NULLIF",
178
+ "PERCENTILE_CONT",
179
+ "PERCENTILE_DISC",
180
+ "CUME_DIST",
181
+ "FIRST_VALUE",
182
+ "LAST_VALUE",
183
+ "LEAD",
184
+ "LAG",
185
+ "PERCENT_RANK",
186
+ "RANK",
187
+ "NTILE",
188
+ "DENSE_RANK",
189
+ "ROW_NUMBER",
190
+ "LISTAGG",
191
+ "GROUPING SETS",
192
+ "CUBE",
193
+ "ROLLUP",
194
+ "REGR_INTERCEPT",
195
+ "REGR_R2",
196
+ "REGR_SLOPE"
197
+ ],
198
+ operators: ["||"],
199
+ specialChars: {
200
+ likeWildcardAny: "%",
201
+ likeWildcardOne: "_",
202
+ identifierQuote: {
203
+ start: '"',
204
+ end: '"'
205
+ },
206
+ escapeKey: {
207
+ start: "'",
208
+ end: null
209
+ },
210
+ escapeClause: {
211
+ keyword: "ESCAPE",
212
+ suffix: ""
213
+ }
214
+ }
215
+ };
216
+ export {
217
+ E as oracleDialect
218
+ };
@@ -1,5 +1,5 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import { Emitter as C, languages as u } from "monaco-editor";
2
+ import { Emitter as C, languages as l } from "monaco-editor";
3
3
  import "monaco-editor/editor/standalone/browser/standaloneServices.js";
4
4
  import "monaco-editor/editor/standalone/common/standaloneTheme.js";
5
5
  import "monaco-editor/platform/hover/browser/hover.js";
@@ -9,9 +9,9 @@ import "monaco-editor/editor/browser/editorDom.js";
9
9
  import "monaco-editor/editor/browser/controller/mouseTarget.js";
10
10
  import { i as g } from "./monaco-importer.js";
11
11
  import { debounce as x } from "@arcgis/toolkit/function";
12
- import { rethrowError as l } from "@arcgis/toolkit/log";
12
+ import { rethrowError as h } from "@arcgis/toolkit/log";
13
13
  let p = Promise.withResolvers();
14
- class k {
14
+ class _ {
15
15
  constructor(e) {
16
16
  this._defaults = e, this._worker = null, this._client = null, this._modelLifecycleListeners = [], this._isDisposed = !1, this._configChangeListener = this._defaults.onDidChange(() => this.stopWorker()), this._modelContextChangeListener = this._defaults.onModelContextDidChange(() => {
17
17
  this._stopWorkerIfUnused();
@@ -43,18 +43,18 @@ class k {
43
43
  async _stopWorkerIfUnused() {
44
44
  if (!this._worker)
45
45
  return;
46
- (await g()).getModels().some((i) => i.getLanguageId() === this._defaults.languageId) || this.stopWorker();
46
+ (await g()).getModels().some((s) => s.getLanguageId() === this._defaults.languageId) || this.stopWorker();
47
47
  }
48
48
  async _getClientProxy() {
49
49
  const e = await g();
50
50
  if (!this._client) {
51
- const { languageId: t } = this._defaults, i = window.MonacoEnvironment?.getWorker;
52
- if (!i)
51
+ const { languageId: t } = this._defaults, s = window.MonacoEnvironment?.getWorker;
52
+ if (!s)
53
53
  throw new Error(
54
54
  "MonacoEnvironment.getWorker is not configured. Call setupMonacoEnvironment(...) before creating SQL Layer workers."
55
55
  );
56
56
  this._worker = e.createWebWorker({
57
- worker: i("SqlLayerWorker", t),
57
+ worker: s("SqlLayerWorker", t),
58
58
  host: this._defaults.workerHost
59
59
  }), p.resolve(this._worker), this._client = this._worker.getProxy();
60
60
  }
@@ -66,14 +66,14 @@ class k {
66
66
  }
67
67
  }
68
68
  const b = (o) => {
69
- const e = _(o.start), t = _(o.end);
69
+ const e = k(o.start), t = k(o.end);
70
70
  return {
71
71
  startRegex: new RegExp(e),
72
72
  contentRegex: new RegExp(`[^${t}]+`),
73
73
  escapedRegex: new RegExp(`${t}${t}`),
74
74
  endRegex: new RegExp(t)
75
75
  };
76
- }, M = (o) => {
76
+ }, S = (o) => {
77
77
  const e = o.specialChars.identifierQuote;
78
78
  return {
79
79
  comments: {
@@ -102,7 +102,7 @@ const b = (o) => {
102
102
  { open: e.start, close: e.end }
103
103
  ]
104
104
  };
105
- }, S = (o) => {
105
+ }, D = (o) => {
106
106
  const e = b(o.specialChars.identifierQuote);
107
107
  return {
108
108
  defaultToken: "",
@@ -178,44 +178,44 @@ const b = (o) => {
178
178
  ]
179
179
  }
180
180
  };
181
- }, _ = (o) => o.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
181
+ }, k = (o) => o.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
182
182
  class I {
183
183
  constructor(e, t) {
184
184
  this._worker = e, this._defaults = t;
185
185
  }
186
186
  async provideCompletionItems(e, t) {
187
187
  try {
188
- const i = await this._worker(e.uri), a = this._defaults.getApiContextForModel(e.uri), r = e.getWordUntilPosition(t), c = {
188
+ const s = await this._worker(e.uri), a = this._defaults.getApiContextForModel(e.uri), r = e.getWordUntilPosition(t), c = {
189
189
  startLineNumber: t.lineNumber,
190
190
  endLineNumber: t.lineNumber,
191
191
  startColumn: r.startColumn,
192
192
  endColumn: r.endColumn
193
193
  };
194
- return await i.doComplete(e.uri.toString(), c, t, a);
195
- } catch (i) {
196
- return l("SqlLayerCompletionProvider")(i), { suggestions: [] };
194
+ return await s.doComplete(e.uri.toString(), c, t, a);
195
+ } catch (s) {
196
+ return h("SqlLayerCompletionProvider")(s), { suggestions: [] };
197
197
  }
198
198
  }
199
199
  }
200
- class D {
200
+ class M {
201
201
  constructor(e, t, {
202
- defaults: i,
202
+ defaults: s,
203
203
  diagnosticService: a
204
204
  }) {
205
- this._languageId = e, this._worker = t, this._disposables = [], this._modelListeners = /* @__PURE__ */ new Map(), this._defaults = i, this._diagnosticsService = a, g().then((r) => {
206
- const c = (s) => {
207
- const n = s.getLanguageId();
205
+ this._languageId = e, this._worker = t, this._disposables = [], this._modelListeners = /* @__PURE__ */ new Map(), this._defaults = s, this._diagnosticsService = a, g().then((r) => {
206
+ const c = (i) => {
207
+ const n = i.getLanguageId();
208
208
  if (n !== this._languageId)
209
209
  return;
210
210
  const d = x(() => {
211
- this._doValidate(s, n).catch((y) => {
211
+ this._doValidate(i, n).catch((y) => {
212
212
  throw y;
213
213
  });
214
- }), f = s.onDidChangeContent(d), L = s.onDidChangeAttached(d);
215
- this._modelListeners.set(s.uri.toString(), [f, L]), this._doValidate(s, n).catch(l("SqlLayerDiagnosticsAdapter"));
216
- }, h = (s) => {
217
- const n = s.uri.toString();
218
- r.setModelMarkers(s, this._languageId, []);
214
+ }), f = i.onDidChangeContent(d), L = i.onDidChangeAttached(d);
215
+ this._modelListeners.set(i.uri.toString(), [f, L]), this._doValidate(i, n).catch(h("SqlLayerDiagnosticsAdapter"));
216
+ }, u = (i) => {
217
+ const n = i.uri.toString();
218
+ r.setModelMarkers(i, this._languageId, []);
219
219
  const d = this._modelListeners.get(n);
220
220
  if (d) {
221
221
  for (; d.length; )
@@ -223,43 +223,51 @@ class D {
223
223
  this._modelListeners.delete(n);
224
224
  }
225
225
  };
226
- this._disposables.push(r.onDidCreateModel(c)), this._disposables.push(r.onWillDisposeModel((s) => h(s))), this._disposables.push(
227
- r.onDidChangeModelLanguage((s) => {
228
- h(s.model), c(s.model);
226
+ this._disposables.push(r.onDidCreateModel(c)), this._disposables.push(r.onWillDisposeModel((i) => u(i))), this._disposables.push(
227
+ r.onDidChangeModelLanguage((i) => {
228
+ u(i.model), c(i.model);
229
229
  })
230
230
  ), this._disposables.push(
231
- i.onDidChange(() => {
232
- r.getModels().forEach((s) => {
233
- s.getLanguageId() === this._languageId && (h(s), c(s));
231
+ s.onDidChange(() => {
232
+ r.getModels().forEach((i) => {
233
+ i.getLanguageId() === this._languageId && (u(i), c(i));
234
234
  });
235
235
  })
236
236
  ), this._disposables.push(
237
- i.onModelContextDidChange((s) => {
237
+ s.onModelContextDidChange((i) => {
238
238
  r.getModels().forEach((n) => {
239
- n.getLanguageId() === this._languageId && n.uri.toString() === s && this._doValidate(n, this._languageId).catch(l("SqlLayerDiagnosticsAdapter"));
239
+ n.getLanguageId() === this._languageId && n.uri.toString() === i && this._doValidate(n, this._languageId).catch(h("SqlLayerDiagnosticsAdapter"));
240
240
  });
241
241
  })
242
242
  ), this._disposables.push({
243
243
  dispose: () => {
244
- this._modelListeners.forEach((s) => s.forEach((n) => n.dispose())), this._modelListeners.clear();
244
+ this._modelListeners.forEach((i) => i.forEach((n) => n.dispose())), this._modelListeners.clear();
245
245
  }
246
246
  }), r.getModels().forEach(c);
247
247
  });
248
248
  }
249
249
  async _doValidate(e, t) {
250
- const i = await g();
250
+ const s = await g();
251
251
  if (e.isAttachedToEditor())
252
252
  try {
253
253
  const a = await this._worker(e.uri), r = this._defaults.getApiContextForModel(e.uri), c = await a.doValidation(e.uri.toString(), r);
254
- this._diagnosticsService.fireDiagnosticsChange(e.uri, c), i.setModelMarkers(e, t, c);
254
+ this._diagnosticsService.fireDiagnosticsChange(e.uri, c), s.setModelMarkers(e, t, c);
255
255
  } catch (a) {
256
- l("SqlLayerDiagnosticsAdapter")(a);
256
+ h("SqlLayerDiagnosticsAdapter")(a);
257
257
  }
258
258
  }
259
259
  }
260
+ class v {
261
+ constructor(e) {
262
+ this._worker = e;
263
+ }
264
+ async provideDocumentFormattingEdits(e) {
265
+ return await (await this._worker(e.uri)).doFormat(e.uri.toString());
266
+ }
267
+ }
260
268
  let w;
261
- async function U(...o) {
262
- return await k.waitForWorker(), await new Promise((e, t) => {
269
+ async function T(...o) {
270
+ return await _.waitForWorker(), await new Promise((e, t) => {
263
271
  if (!w) {
264
272
  t(new Error("SQL layer worker not registered!"));
265
273
  return;
@@ -267,7 +275,7 @@ async function U(...o) {
267
275
  e(w(...o));
268
276
  });
269
277
  }
270
- class v {
278
+ class E {
271
279
  constructor() {
272
280
  this._onDiagnosticsChange = new C();
273
281
  }
@@ -278,24 +286,24 @@ class v {
278
286
  this._onDiagnosticsChange.fire({ uri: e, diagnostics: t });
279
287
  }
280
288
  }
281
- const m = new v();
282
- function T() {
289
+ const m = new E();
290
+ function H() {
283
291
  return m;
284
292
  }
285
- async function H(o) {
286
- const e = new k(o), t = async (...a) => await e.getLanguageServiceWorker(...a);
293
+ async function z(o) {
294
+ const e = new _(o), t = async (...a) => await e.getLanguageServiceWorker(...a);
287
295
  w = t;
288
- const i = await o.getDialectSpec();
289
- u.setMonarchTokensProvider(o.languageId, S(i)), u.setLanguageConfiguration(o.languageId, M(i)), u.registerCompletionItemProvider(
296
+ const s = await o.getDialectSpec();
297
+ l.setMonarchTokensProvider(o.languageId, D(s)), l.setLanguageConfiguration(o.languageId, S(s)), l.registerCompletionItemProvider(
290
298
  o.languageId,
291
299
  new I(t, o)
292
- ), new D(o.languageId, t, {
300
+ ), l.registerDocumentFormattingEditProvider(o.languageId, new v(t)), new M(o.languageId, t, {
293
301
  defaults: o,
294
302
  diagnosticService: m
295
303
  });
296
304
  }
297
305
  export {
298
- T as getSqlLayerDiagnosticService,
299
- U as getSqlLayerWorker,
300
- H as setupMode
306
+ H as getSqlLayerDiagnosticService,
307
+ T as getSqlLayerWorker,
308
+ z as setupMode
301
309
  };
@@ -863,7 +863,7 @@ class Be extends ie {
863
863
  this.disableAssistant ? this._arcadeAssistantRemoteState = { shouldRender: !1 } : this._arcadeAssistantRemoteState = await ve(e ?? {}), this._syncAskAiAction();
864
864
  }
865
865
  renderMainActionBar() {
866
- return this._usesBottomExecutionDrawer || !this._canExecute ? null : d`<calcite-action-bar class="main-action-bar" layout=horizontal scale=s expanded expand-disabled slot=top-action-bar><calcite-action-group scale=s><calcite-action .text=${this.messages.run ?? ""} text-enabled icon=play scale=s .loading=${this._preparingArcade} @click=${() => {
866
+ return this._usesBottomExecutionDrawer || !this._canExecute ? null : d`<calcite-action-bar class="main-action-bar" layout=horizontal scale=s expanded expand-toggle-disabled slot=top-action-bar><calcite-action-group scale=s><calcite-action .text=${this.messages.run ?? ""} text-enabled icon=play scale=s .loading=${this._preparingArcade} @click=${() => {
867
867
  this._executeScript("run").catch(u(this));
868
868
  }}></calcite-action>${this._debuggerState.result ? d`<calcite-action .text=${this.messages.lastresults ?? ""} .active=${this._debuggerState.showPanel} text-enabled icon=access-string-results icon-flip-rtl scale=s @click=${this._toggleShowExecutionPanel}></calcite-action>` : null}</calcite-action-group></calcite-action-bar>`;
869
869
  }
@@ -954,7 +954,7 @@ class Be extends ie {
954
954
  if (!this._usesBottomExecutionDrawer)
955
955
  return null;
956
956
  const { showPanel: e, hasExecuted: s, openedPanel: i, isDebugging: a, isPaused: o, isExecuting: n } = this._debuggerState, r = this.messages.continue ?? "Continue", b = this.messages.reset ?? "Reset", S = this.messages.stop ?? "Stop";
957
- 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>${this.enableDebugger && 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=${b} icon=reset scale=s @click=${this._resetDebugSession}></calcite-action><calcite-tooltip reference-element=debugger-reset-action placement=top><span>${b}</span></calcite-tooltip><calcite-action id=debugger-stop-action .text=${S} icon=circle-stop scale=s @click=${this._stopDebugSession}></calcite-action><calcite-tooltip reference-element=debugger-stop-action placement=top><span>${S}</span></calcite-tooltip>` : d`<calcite-action .text=${this.messages.run ?? ""} text-enabled icon=play scale=s .loading=${this._preparingArcade || n} @click=${() => {
957
+ 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-toggle-disabled expanded><calcite-action-group scale=s>${this.enableDebugger && 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=${b} icon=reset scale=s @click=${this._resetDebugSession}></calcite-action><calcite-tooltip reference-element=debugger-reset-action placement=top><span>${b}</span></calcite-tooltip><calcite-action id=debugger-stop-action .text=${S} icon=circle-stop scale=s @click=${this._stopDebugSession}></calcite-action><calcite-tooltip reference-element=debugger-stop-action placement=top><span>${S}</span></calcite-tooltip>` : d`<calcite-action .text=${this.messages.run ?? ""} text-enabled icon=play scale=s .loading=${this._preparingArcade || n} @click=${() => {
958
958
  this._executeScript("run").catch(u(this));
959
959
  }}></calcite-action>${this.enableDebugger && d`<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=${() => {
960
960
  this._executeScript("debug").catch(u(this));
@@ -1,13 +1,13 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
2
  import { c as p } from "../../chunks/runtime.js";
3
3
  import { css as g, html as e } from "lit";
4
- import { LitElement as f, createEvent as u, safeClassMap as r } from "@arcgis/lumina";
4
+ import { LitElement as f, createEvent as u, safeClassMap as o } from "@arcgis/lumina";
5
5
  import { setValuesInString as i, uncapitalize as a } from "@arcgis/toolkit/string";
6
6
  import { M as v } from "../../chunks/arcade-executor.js";
7
7
  import { u as b } from "../../chunks/useT9n.js";
8
8
  import { F as $, a as x, t as s, D as y, A as R, b as P } from "../../chunks/functional.js";
9
9
  import { d as w, g as k, c as m, b as S, G as T, a as C, S as h } from "../../chunks/debugger-value-styles.js";
10
- import { createRef as o, ref as n } from "lit/directives/ref.js";
10
+ import { createRef as r, ref as n } from "lit/directives/ref.js";
11
11
  import { observeAncestorsMutation as M, unsafeGetCalciteModeName as I } from "@arcgis/toolkit/dom";
12
12
  const L = g`:host{display:flex;flex-direction:column;width:100%;background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-2);.flex-adjustable{flex:1 1 auto;overflow:hidden}.flex-row{display:flex;flex-direction:row;overflow:hidden}.flex-column{display:flex;flex-direction:column;overflow:hidden;min-height:0}.y-scrollable-container{overflow-y:auto;block-size:100%;background-color:var(--calcite-color-foreground-1)}header{border-bottom:1px solid var(--calcite-color-border-3);flex:0 0 auto}calcite-action-bar{calcite-action-group{padding-inline-end:var(--calcite-spacing-sm);calcite-action{padding-inline-end:var(--calcite-spacing-sm)}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)}}.notice-container{margin:var(--calcite-spacing-xxs);padding:var(--calcite-spacing-sm);background-color:var(--calcite-color-foreground-1)}.color-info{color:var(--calcite-color-status-info)}.color-error{color:var(--calcite-color-status-danger)}.color-success{color:var(--calcite-color-status-success)}[class*=result-value-]{font-size:var(--calcite-font-size--2);line-height:1.25rem;background-color:var(--calcite-color-foreground-1);margin:var(--calcite-spacing-md)}.console-logs-container{background-color:var(--calcite-color-foreground-1);padding:0 var(--calcite-spacing-md);font-family:var(--calcite-code-family);font-size:var(--calcite-font-size--2);font-weight:var(--calcite-font-weight-normal)}.result-value-table{display:flex;flex-direction:column;min-height:0;.table-scroll{overflow:auto;flex:1 1 auto;min-height:0;max-width:100%;background-color:var(--calcite-color-foreground-1)}table{min-width:max-content;border-spacing:0;border-collapse:collapse;text-align:start;white-space:nowrap;thead{background-color:var(--calcite-color-foreground-2)}tr{border-top:1px solid var(--calcite-color-border-3);border-bottom:1px solid var(--calcite-color-border-3)}th,td{border-inline-start:1px solid var(--calcite-color-border-3);border-inline-end:1px solid var(--calcite-color-border-3);text-align:start;padding:var(--calcite-spacing-xxs);.string-value{white-space:pre}}th{font-weight:var(--calcite-font-weight-medium)}}}}`, c = {
13
13
  onClick: (d) => {
@@ -17,7 +17,7 @@ const L = g`:host{display:flex;flex-direction:column;width:100%;background-color
17
17
  };
18
18
  class F extends f {
19
19
  constructor() {
20
- super(...arguments), this.messages = b(), this.outputRef = o(), this.consoleRef = o(), this.logRef = o(), this.openedResultPanel = "output", this.hideHeader = !1, this.arcgisInternalClosePanel = u({ bubbles: !1, composed: !1 }), this.arcgisInternalOpenedResultPanelChange = u({ bubbles: !1, composed: !1 });
20
+ super(...arguments), this.messages = b(), this.outputRef = r(), this.consoleRef = r(), this.logRef = r(), this.openedResultPanel = "output", this.hideHeader = !1, this.arcgisInternalClosePanel = u({ bubbles: !1, composed: !1 }), this.arcgisInternalOpenedResultPanelChange = u({ bubbles: !1, composed: !1 });
21
21
  }
22
22
  static {
23
23
  this.properties = { consoleLogs: 0, loading: 5, openedResultPanel: 3, result: 0, hideHeader: 5 };
@@ -61,19 +61,19 @@ class F extends f {
61
61
  dateStyle: "medium",
62
62
  timeStyle: "medium"
63
63
  }).format(this.result.timeStamp)
64
- })}><calcite-icon slot=content-start icon=information scale=s class=${r(t)}></calcite-icon></calcite-list-item><calcite-list-item .label=${i(this.messages.compilationtimeformat, {
64
+ })}><calcite-icon slot=content-start icon=information scale=s class=${o(t)}></calcite-icon></calcite-list-item><calcite-list-item .label=${i(this.messages.compilationtimeformat, {
65
65
  time: new Intl.NumberFormat(this.messages._t9nLocale, {
66
66
  style: "unit",
67
67
  unit: "millisecond",
68
68
  maximumFractionDigits: 2
69
69
  }).format(this.result.compilationTime ?? 0)
70
- })}><calcite-icon slot=content-start icon=information scale=s class=${r(t)}></calcite-icon></calcite-list-item><calcite-list-item .label=${i(this.messages.executiontimeformat, {
70
+ })}><calcite-icon slot=content-start icon=information scale=s class=${o(t)}></calcite-icon></calcite-list-item><calcite-list-item .label=${i(this.messages.executiontimeformat, {
71
71
  time: new Intl.NumberFormat(this.messages._t9nLocale, {
72
72
  style: "unit",
73
73
  unit: "millisecond",
74
74
  maximumFractionDigits: 2
75
75
  }).format(this.result.executionTime ?? 0)
76
- })}><calcite-icon slot=content-start icon=information scale=s class=${r(t)}></calcite-icon></calcite-list-item>` : e`<calcite-list-item .label=${this.messages.runscriptmessage}><calcite-icon slot=content-start icon=information scale=s class="color-info"></calcite-icon></calcite-list-item>`}</calcite-list>`;
76
+ })}><calcite-icon slot=content-start icon=information scale=s class=${o(t)}></calcite-icon></calcite-list-item>` : e`<calcite-list-item .label=${this.messages.runscriptmessage}><calcite-icon slot=content-start icon=information scale=s class="color-info"></calcite-icon></calcite-list-item>`}</calcite-list>`;
77
77
  }
78
78
  renderOutputPanel() {
79
79
  if (this.openedResultPanel !== "output")
@@ -117,7 +117,7 @@ class F extends f {
117
117
  }
118
118
  }
119
119
  render() {
120
- return e`${this.hideHeader ? null : e`<header class="flex-row"><calcite-action-bar class="flex-adjustable" layout=horizontal scale=s expanded expand-disabled><calcite-action-group scale=s><calcite-action .active=${this.openedResultPanel === "output"} .text=${this.messages.output ?? ""} text-enabled scale=s icon=list-show-all icon-flip-rtl @click=${this._switchResultPanel} data-panel-name=output ${n(this.outputRef)}></calcite-action><calcite-action .active=${this.openedResultPanel === "console"} .text=${this.messages.console ?? ""} text-enabled scale=s icon=console icon-flip-rtl @click=${this._switchResultPanel} data-panel-name=console ${n(this.consoleRef)}></calcite-action><calcite-action .active=${this.openedResultPanel === "log"} .text=${this.messages.log ?? ""} text-enabled scale=s icon=list icon-flip-rtl @click=${this._switchResultPanel} data-panel-name=log ${n(this.logRef)}></calcite-action></calcite-action-group></calcite-action-bar><calcite-action scale=s icon=x .text=${this.messages.close ?? ""} @click=${this._emitClose}></calcite-action></header>`}<article class="flex-adjustable">${this.loading ? e`<calcite-loader scale=s type=indeterminate .label=${this.messages.loading ?? "Loading"}></calcite-loader>` : e`<div class="flex-column y-scrollable-container">${this.renderOutputPanel()}${this.renderConsolePanel()}${this.renderLogPanel()}</div>`}</article>`;
120
+ return e`${this.hideHeader ? null : e`<header class="flex-row"><calcite-action-bar class="flex-adjustable" layout=horizontal scale=s expanded expand-toggle-disabled><calcite-action-group scale=s><calcite-action .active=${this.openedResultPanel === "output"} .text=${this.messages.output ?? ""} text-enabled scale=s icon=list-show-all icon-flip-rtl @click=${this._switchResultPanel} data-panel-name=output ${n(this.outputRef)}></calcite-action><calcite-action .active=${this.openedResultPanel === "console"} .text=${this.messages.console ?? ""} text-enabled scale=s icon=console icon-flip-rtl @click=${this._switchResultPanel} data-panel-name=console ${n(this.consoleRef)}></calcite-action><calcite-action .active=${this.openedResultPanel === "log"} .text=${this.messages.log ?? ""} text-enabled scale=s icon=list icon-flip-rtl @click=${this._switchResultPanel} data-panel-name=log ${n(this.logRef)}></calcite-action></calcite-action-group></calcite-action-bar><calcite-action scale=s icon=x .text=${this.messages.close ?? ""} @click=${this._emitClose}></calcite-action></header>`}<article class="flex-adjustable">${this.loading ? e`<calcite-loader scale=s type=indeterminate .label=${this.messages.loading ?? "Loading"}></calcite-loader>` : e`<div class="flex-column y-scrollable-container">${this.renderOutputPanel()}${this.renderConsolePanel()}${this.renderLogPanel()}</div>`}</article>`;
121
121
  }
122
122
  }
123
123
  p("arcgis-arcade-results", F);