@arcgis/coding-components 4.34.0-next.119 → 4.34.0-next.120

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 (81) hide show
  1. package/dist/addons.js +1 -1
  2. package/dist/cdn/2XYJWED5.js +4 -0
  3. package/dist/cdn/{7QRABMMO.js → 3TNWXA3W.js} +2 -2
  4. package/dist/cdn/{4FXKCAEB.js → 4EHRSNXC.js} +2 -2
  5. package/dist/cdn/{DWBEKZQA.js → 7VNXLUCQ.js} +2 -2
  6. package/dist/cdn/{LXOHHZKT.js → 7W6UK4ZH.js} +2 -2
  7. package/dist/cdn/{VF2GKTQS.js → A2772DMY.js} +1 -1
  8. package/dist/cdn/{TJWEMOXQ.js → BUX4SJTY.js} +2 -2
  9. package/dist/cdn/{NNFA3B7F.js → DEUPVSVK.js} +2 -2
  10. package/dist/cdn/{BHETJKGA.js → DO4VVQ7B.js} +2 -2
  11. package/dist/cdn/{ZZ4EE7WD.js → DZCUVYLE.js} +2 -2
  12. package/dist/cdn/{7QX5KLIF.js → EAW57I42.js} +2 -2
  13. package/dist/cdn/{Z2AYQIEF.js → EP5XZR63.js} +1 -1
  14. package/dist/cdn/{VEM6B5DR.js → FWI7TZ2U.js} +2 -2
  15. package/dist/cdn/{WTA2OAKI.js → GCD4OD4U.js} +1 -1
  16. package/dist/cdn/{DNPCVQ3M.js → GHECBKOZ.js} +2 -2
  17. package/dist/cdn/{KPYBBCQ5.js → GPTD53SK.js} +2 -2
  18. package/dist/cdn/{Y43ODLUE.js → HLHCQR2Z.js} +2 -2
  19. package/dist/cdn/{UBUQK3BC.js → IMMQDPDG.js} +2 -2
  20. package/dist/cdn/{AE3MCVRT.js → IR5YFLVO.js} +2 -2
  21. package/dist/cdn/{RCSW7XXQ.js → IVUPWLLC.js} +2 -2
  22. package/dist/cdn/{FGK3QPOL.js → JBRG4QZU.js} +2 -2
  23. package/dist/cdn/{DY774API.js → JBRL4JGX.js} +2 -2
  24. package/dist/cdn/{27UTFVDP.js → JS6P3OXT.js} +2 -2
  25. package/dist/cdn/{VS5ZPPMY.js → KFOGV3VS.js} +2 -2
  26. package/dist/cdn/{EGA7VANH.js → KRZBKHA2.js} +2 -2
  27. package/dist/cdn/{DNYL7RU5.js → MWVAZRO4.js} +2 -2
  28. package/dist/cdn/{4F4QI3FG.js → SBRDE2Z6.js} +2 -2
  29. package/dist/cdn/{UXPNEYTS.js → SOFJTAZU.js} +2 -2
  30. package/dist/cdn/{ZBAXB7JJ.js → T5YJSBNV.js} +2 -2
  31. package/dist/cdn/{RFSIOV6Y.js → TUKTJ5JA.js} +1 -1
  32. package/dist/cdn/{7W3PPWIN.js → UIAO7ZVN.js} +1 -1
  33. package/dist/cdn/{6UXUTVKI.js → UKFHQXC3.js} +1 -1
  34. package/dist/cdn/{GDD4OPMF.js → VFKJA76I.js} +1 -1
  35. package/dist/cdn/W322K52H.js +4 -0
  36. package/dist/cdn/{A2NAZA36.js → WB4NXPGR.js} +2 -2
  37. package/dist/cdn/{RUZDURBC.js → WVYJ2FHY.js} +4 -4
  38. package/dist/cdn/{DNDJYPJ7.js → WZPAETOA.js} +2 -2
  39. package/dist/cdn/{CGCVADPO.js → X4WXM5EO.js} +2 -2
  40. package/dist/cdn/{UNEM6Y6D.js → XJKNY23L.js} +2 -2
  41. package/dist/cdn/{QUV7ENCW.js → YKWEW6UV.js} +2 -2
  42. package/dist/cdn/{W6AYOTYD.js → YX6YMF2U.js} +2 -2
  43. package/dist/cdn/{4A352BXM.js → YZAT55EE.js} +2 -2
  44. package/dist/cdn/{JMDX5X4E.js → YZFWRMXC.js} +2 -2
  45. package/dist/cdn/{FJAPIGZI.js → ZOAWXSG4.js} +4 -4
  46. package/dist/cdn/assets/code-editor/sql-expr.worker.js +23604 -23547
  47. package/dist/cdn/index.js +7 -2
  48. package/dist/chunks/arcade-defaults.js +1 -1
  49. package/dist/chunks/arcade-executor.js +1 -1
  50. package/dist/chunks/arcade-mode.js +1 -1
  51. package/dist/chunks/arcade-service-accessors.js +1 -1
  52. package/dist/chunks/editor.js +1 -1
  53. package/dist/chunks/fields.js +1 -1
  54. package/dist/chunks/language-defaults-base.js +46 -46
  55. package/dist/chunks/markdown.js +1 -1
  56. package/dist/chunks/monaco-importer.js +1 -1
  57. package/dist/chunks/runtime.js +1 -1
  58. package/dist/chunks/setup-monaco.js +1 -1
  59. package/dist/chunks/sql-expr-contribution.js +1 -1
  60. package/dist/chunks/sql-expr-defaults.js +1 -1
  61. package/dist/chunks/sql-expr-mode.js +1 -1
  62. package/dist/chunks/sql-expr-service-accessors.js +1 -1
  63. package/dist/chunks/useT9n.js +1 -1
  64. package/dist/components/arcgis-arcade-coding-assistant/customElement.js +1 -1
  65. package/dist/components/arcgis-arcade-editor/customElement.js +1 -1
  66. package/dist/components/arcgis-arcade-results/customElement.js +1 -1
  67. package/dist/components/arcgis-arcade-suggestions/customElement.js +1 -1
  68. package/dist/components/arcgis-code-editor/customElement.js +48 -53
  69. package/dist/components/arcgis-editor-variables/customElement.js +1 -1
  70. package/dist/components/arcgis-language-api-panel/customElement.js +1 -1
  71. package/dist/components/arcgis-sql-expression-editor/customElement.js +1 -1
  72. package/dist/components/arcgis-sql-expression-fields/customElement.js +1 -1
  73. package/dist/docs/api.json +2 -2
  74. package/dist/docs/docs.json +2 -2
  75. package/dist/docs/web-types.json +1 -1
  76. package/dist/index.js +1 -1
  77. package/dist/loader.js +1 -1
  78. package/dist/{cdn/MIPAG2MO.js → monacoStyles.js} +6 -3
  79. package/dist/utils/import-monaco-styles.d.ts +7 -0
  80. package/package.json +5 -5
  81. package/dist/cdn/DW5ZNKBE.js +0 -4
@@ -1,7 +1,7 @@
1
1
  import { createArcadeExecutor as C } from "@arcgis/core/arcade.js";
2
2
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
4
- v4.34.0-next.119 */
4
+ v4.34.0-next.120 */
5
5
  const G = "https://developers.arcgis.com/arcade/", O = 100, A = 100;
6
6
  function u(t) {
7
7
  return !!t && typeof t == "object" && "declaredRootClass" in t && typeof t.declaredRootClass == "string" && t.declaredRootClass === "esri.arcade.featureset.support.FeatureSet";
@@ -9,7 +9,7 @@ import { debounce as F } from "@arcgis/toolkit/function";
9
9
  import { Deferred as _ } from "@arcgis/toolkit/promise";
10
10
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
11
11
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
12
- v4.34.0-next.119 */
12
+ v4.34.0-next.120 */
13
13
  const S = [
14
14
  "<=",
15
15
  ">=",
@@ -1,6 +1,6 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
3
- v4.34.0-next.119 */
3
+ v4.34.0-next.120 */
4
4
  async function a() {
5
5
  return (await e()).getArcadeDiagnosticService();
6
6
  }
@@ -1,7 +1,7 @@
1
1
  import { css as e } from "lit";
2
2
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
4
- v4.34.0-next.119 */
4
+ v4.34.0-next.120 */
5
5
  const o = e`@layer{arcgis-arcade-editor,arcgis-sql-expression-editor{.flex-adjustable{flex:1 1 auto;overflow:hidden}.flex-panel{flex:1 0 auto}.position-relative{position:relative}.flex-row{display:flex;flex-direction:row;overflow:hidden}.flex-column{display:flex;flex-direction:column;overflow:hidden}.border-inline-start{border-inline-start:var(--arcgis-coding-components-border)!important;box-sizing:border-box}.border-inline-end{border-inline-end:var(--arcgis-coding-components-border)!important;box-sizing:border-box}.side-action-bar{max-width:var(--arcgis-coding-components-side-action-bar-max-w)}.side-panel{max-width:var(--arcgis-coding-components-side-panel-max-w);width:var(--arcgis-coding-components-side-panel-w)}.side-panel calcite-flow{height:100%}}}`;
6
6
  export {
7
7
  o as s
@@ -1,6 +1,6 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
3
- v4.34.0-next.119 */
3
+ v4.34.0-next.120 */
4
4
  function t(e) {
5
5
  switch (e.type) {
6
6
  case "oid":
@@ -4,17 +4,17 @@ import { p as Y, i as Z } from "./monaco-importer.js";
4
4
  import ee from "@arcgis/core/portal/PortalItem.js";
5
5
  import te from "@arcgis/core/WebMap.js";
6
6
  import ie from "@arcgis/core/WebScene.js";
7
- import { isNotNull as w, isNotUndefined as N } from "@arcgis/toolkit/predicate";
8
- import { addLtrMark as re, setValuesInString as T } from "@arcgis/toolkit/string";
9
- import { s as U, f as se, a as _, b as ne } from "./fields.js";
10
- import { CompletionItemKind as I, InsertTextFormat as V, InsertTextMode as M } from "vscode-languageserver-types";
7
+ import { isNotNull as w, isNotUndefined as U } from "@arcgis/toolkit/predicate";
8
+ import { addLtrMark as re, setValuesInString as I } from "@arcgis/toolkit/string";
9
+ import { s as F, f as se, a as _, b as ne } from "./fields.js";
10
+ import { CompletionItemKind as V, InsertTextFormat as M, InsertTextMode as x } from "vscode-languageserver-types";
11
11
  import { g as oe } from "./runtime.js";
12
12
  import { normalizeLocale as ae } from "@arcgis/toolkit/intl";
13
13
  import { filterApiLibraryForContext as le } from "@arcgis/languages-api-utils";
14
- import { Emitter as x, Uri as $ } from "monaco-editor";
14
+ import { Emitter as $, Uri as A } from "monaco-editor";
15
15
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
16
16
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
17
- v4.34.0-next.119 */
17
+ v4.34.0-next.120 */
18
18
  function B(t) {
19
19
  return !!t && typeof t == "object" && "declaredClass" in t && typeof t.declaredClass == "string" && t.declaredClass.startsWith("esri.layers.") && g(t) && "queryFeatures" in t && typeof t.queryFeatures == "function";
20
20
  }
@@ -48,7 +48,7 @@ function Oe(t) {
48
48
  function Re(t) {
49
49
  return O(t) || W(t) || pe(t);
50
50
  }
51
- function A(t) {
51
+ function L(t) {
52
52
  return !!t && typeof t == "object" && "declaredClass" in t && t.declaredClass === "esri.layers.support.Subtype";
53
53
  }
54
54
  function C(t) {
@@ -72,7 +72,7 @@ function k(t) {
72
72
  function S(t) {
73
73
  return !!t && typeof t == "object" && "typeIdField" in t && "types" in t;
74
74
  }
75
- function L(t) {
75
+ function G(t) {
76
76
  return !!t && typeof t == "object" && "getFieldDomain" in t && typeof t.getFieldDomain == "function";
77
77
  }
78
78
  function f(t) {
@@ -113,10 +113,10 @@ async function q(t) {
113
113
  }
114
114
  async function De(t) {
115
115
  t += "/layers";
116
- const e = await X(t, { responseType: "json", query: { f: "json" } }), i = t.endsWith("MapServer/layers") ? "data" : "query", r = G(e.data?.layers, i), s = G(e.data?.tables, i);
116
+ const e = await X(t, { responseType: "json", query: { f: "json" } }), i = t.endsWith("MapServer/layers") ? "data" : "query", r = j(e.data?.layers, i), s = j(e.data?.tables, i);
117
117
  return { layers: r, tables: s };
118
118
  }
119
- function G(t, e) {
119
+ function j(t, e) {
120
120
  return t ? t.filter((i) => {
121
121
  switch (i.type) {
122
122
  case "Feature Layer":
@@ -154,7 +154,7 @@ function K(t) {
154
154
  return e.name.localeCompare(i.name, "en", { sensitivity: "base" });
155
155
  };
156
156
  }
157
- function j(t, e) {
157
+ function E(t, e) {
158
158
  return t?.every((i) => i.domains?.[e.name]?.type === "inherited") ?? !1;
159
159
  }
160
160
  const we = /^[a-z_$][a-z0-9_$]*$/giu;
@@ -164,13 +164,13 @@ function z(t, e = !0) {
164
164
  function H(t, e) {
165
165
  return t ? `${t}${z(e)}` : e;
166
166
  }
167
- function E(t) {
167
+ function N(t) {
168
168
  return de(t) ? t.portalItem : null;
169
169
  }
170
170
  function qe(t, e, i = !1) {
171
171
  let r = e;
172
172
  const s = [], o = [];
173
- return U(t).forEach((n) => {
173
+ return F(t).forEach((n) => {
174
174
  r && (r += `
175
175
 
176
176
  `), r += `**${n.name}** (${n.alias})
@@ -185,9 +185,9 @@ ${n.type}`, n.description && (r += `
185
185
  label: n.name,
186
186
  detail: y,
187
187
  insertText: p,
188
- insertTextMode: M.asIs,
189
- insertTextFormat: V.PlainText,
190
- kind: I.Field
188
+ insertTextMode: x.asIs,
189
+ insertTextFormat: M.PlainText,
190
+ kind: V.Field
191
191
  }
192
192
  }), i) {
193
193
  if (!n.alias || n.alias.toLowerCase() === n.name.toLowerCase())
@@ -203,9 +203,9 @@ ${n.type}`;
203
203
  label: n.alias,
204
204
  detail: n.name,
205
205
  insertText: p,
206
- insertTextMode: M.asIs,
207
- insertTextFormat: V.PlainText,
208
- kind: I.Field,
206
+ insertTextMode: x.asIs,
207
+ insertTextFormat: M.PlainText,
208
+ kind: V.Field,
209
209
  documentation: { kind: "markdown", value: h }
210
210
  }
211
211
  });
@@ -220,13 +220,13 @@ class J {
220
220
  * Returns the label string.
221
221
  */
222
222
  getLabel() {
223
- return this._label == null ? "" : typeof this._label == "string" ? re(this._label) : T(this._profile?.intlStrings[this._label.code], this._label.formatValues);
223
+ return this._label == null ? "" : typeof this._label == "string" ? re(this._label) : I(this._profile?.intlStrings[this._label.code], this._label.formatValues);
224
224
  }
225
225
  /**
226
226
  * Returns the description string.
227
227
  */
228
228
  getDescription() {
229
- return this.description == null ? "" : typeof this.description == "string" ? this.description : T(this._profile?.intlStrings[this.description.code], this.description.formatValues);
229
+ return this.description == null ? "" : typeof this.description == "string" ? this.description : I(this._profile?.intlStrings[this.description.code], this.description.formatValues);
230
230
  }
231
231
  /**
232
232
  * Returns true if the item pass the filter test
@@ -235,12 +235,12 @@ class J {
235
235
  return !e || e.test(this.getLabel()) ? !0 : this.filterDescription && e.test(this.getDescription());
236
236
  }
237
237
  }
238
- class F extends J {
238
+ class v extends J {
239
239
  constructor(e) {
240
240
  super(e.profile, e.label, e.description ?? e.declaration?.description), this.declaration = e.declaration ?? {}, this.name = e.declaration?.name ?? "", this.snippet = e.snippet ?? "", this.nonInteractive = e.nonInteractive ?? !1, this.filterDescription = e.filterDescription ?? !1, this.icon = e.icon;
241
241
  }
242
242
  }
243
- class a extends F {
243
+ class a extends v {
244
244
  constructor(e) {
245
245
  super(e), this.type = "text", this.isCollection = !1, this.type = e.declaration?.type ?? "text";
246
246
  }
@@ -251,7 +251,7 @@ class a extends F {
251
251
  return { type: this.type, name: "", ...this.declaration };
252
252
  }
253
253
  }
254
- class Se extends F {
254
+ class Se extends v {
255
255
  constructor(e) {
256
256
  super(e), this.type = "array", this.isCollection = !1, this.elementType = e.declaration?.elementType ?? { type: "number", name: "number" };
257
257
  }
@@ -262,7 +262,7 @@ class Se extends F {
262
262
  return { type: this.type, elementType: this.elementType, name: "", ...this.declaration };
263
263
  }
264
264
  }
265
- class v extends F {
265
+ class P extends v {
266
266
  constructor(e, i) {
267
267
  super(i), this.owner = e, this.isCollection = !0, this._loaded = !0, this.variables = [];
268
268
  }
@@ -297,7 +297,7 @@ class l extends J {
297
297
  return !0;
298
298
  }
299
299
  }
300
- class d extends v {
300
+ class d extends P {
301
301
  constructor(e, i) {
302
302
  super(e, i), this.type = "dictionary", this.dictionaryVariables = [], this.loadPropertyDeclarations(i.declaration?.properties), this.snippet && this.dictionaryVariables.length && (this.variables = [new l(this._profile, this.snippet, this.dictionaryVariables)]);
303
303
  }
@@ -330,7 +330,7 @@ class d extends v {
330
330
  case "feature":
331
331
  return new Fe(this, { profile: this._profile, declaration: e, label: i, snippet: i });
332
332
  case "featureSet":
333
- return new P(this, { profile: this._profile, declaration: e, label: i, snippet: i }, [
333
+ return new T(this, { profile: this._profile, declaration: e, label: i, snippet: i }, [
334
334
  new a({ profile: this._profile, label: i, description: "", snippet: i })
335
335
  ]);
336
336
  case "featureSetCollection":
@@ -367,7 +367,7 @@ class d extends v {
367
367
  };
368
368
  }
369
369
  }
370
- class Q extends v {
370
+ class Q extends P {
371
371
  constructor(e, i, r) {
372
372
  super(e, i), this.relationshipsProperties = r, this._source = null, this._loaded = !1, this._definition = i.declaration?.definition;
373
373
  }
@@ -384,7 +384,7 @@ class Q extends v {
384
384
  return this._profile?.intlStrings.layer ?? "layer";
385
385
  }
386
386
  async loadSource() {
387
- return w(this._loadPromise) && N(this._loadPromise) ? await this._loadPromise : (this._loadPromise = this._loadSource(), await this._loadPromise);
387
+ return w(this._loadPromise) && U(this._loadPromise) ? await this._loadPromise : (this._loadPromise = this._loadSource(), await this._loadPromise);
388
388
  }
389
389
  _getValueSnippet(e) {
390
390
  return this.type === "feature" ? H(this.snippet, e.name) : e.name;
@@ -407,7 +407,7 @@ class Q extends v {
407
407
  });
408
408
  }
409
409
  _getDomainDictionary(e) {
410
- return L(this._source) ? f(this._source) && this._source.subtypeField ? this._getSubtypeDomainDictionary(e) : S(this._source) && this._source.typeIdField ? this._getFeatureTypeDomainDictionary(e) : this._getFieldDomainDictionary(e) : null;
410
+ return G(this._source) ? f(this._source) && this._source.subtypeField ? this._getSubtypeDomainDictionary(e) : S(this._source) && this._source.typeIdField ? this._getFeatureTypeDomainDictionary(e) : this._getFieldDomainDictionary(e) : null;
411
411
  }
412
412
  _getSubtypeDomainDictionary(e) {
413
413
  if (!f(this._source))
@@ -418,7 +418,7 @@ class Q extends v {
418
418
  const s = this._createDomainDictionary(e);
419
419
  return s.icon = "subtype", s.variables.push(this._getTypeOrSubtypeDomainGroup(this._source.subtypes, e)), s;
420
420
  }
421
- if (j(this._source.subtypes, e))
421
+ if (E(this._source.subtypes, e))
422
422
  return this._getFieldDomainDictionary(e);
423
423
  const i = this._getDomainValuesGroup(this._source.subtypes, e);
424
424
  if (!i)
@@ -433,7 +433,7 @@ class Q extends v {
433
433
  const s = this._createDomainDictionary(e);
434
434
  return s.variables.push(this._getTypeOrSubtypeDomainGroup(this._source.types, e)), s;
435
435
  }
436
- if (j(this._source.types, e))
436
+ if (E(this._source.types, e))
437
437
  return this._getFieldDomainDictionary(e);
438
438
  const i = this._getDomainValuesGroup(this._source.types, e);
439
439
  if (!i)
@@ -442,7 +442,7 @@ class Q extends v {
442
442
  return r.variables.push(i), r;
443
443
  }
444
444
  _getFieldDomainDictionary(e) {
445
- if (!L(this._source))
445
+ if (!G(this._source))
446
446
  return null;
447
447
  const i = this._source.getFieldDomain(e.name);
448
448
  if (!C(i))
@@ -456,7 +456,7 @@ class Q extends v {
456
456
  if (C(i.domain))
457
457
  return this._getCodedValueDomainGroup(i.domain, { code: "subtypes" });
458
458
  const r = e?.map((s) => {
459
- const o = A(s) ? s.code : s.id;
459
+ const o = L(s) ? s.code : s.id;
460
460
  return new a({
461
461
  profile: this._profile,
462
462
  label: `${o}`,
@@ -490,7 +490,7 @@ class Q extends v {
490
490
  fieldName: u,
491
491
  typeName: s.name
492
492
  }
493
- }), c = A(s) ? s.code : s.id, p = `${c}`, y = `"${c}""`, h = new d(this, {
493
+ }), c = L(s) ? s.code : s.id, p = `${c}`, y = `"${c}""`, h = new d(this, {
494
494
  profile: this._profile,
495
495
  label: p,
496
496
  snippet: y,
@@ -539,7 +539,7 @@ class Q extends v {
539
539
  if (!B(o) || s.relatedTableId === this.relationshipsProperties?.sourceTableId)
540
540
  return null;
541
541
  const u = `FeatureSetByRelationshipName(${this.snippet}, "${s.name}")`;
542
- return new P(
542
+ return new T(
543
543
  this,
544
544
  {
545
545
  profile: this._profile,
@@ -593,7 +593,7 @@ class Fe extends Q {
593
593
  });
594
594
  i.variables.push(o);
595
595
  }
596
- U(this._source.fields).sort(K(this._source)).forEach((s) => {
596
+ F(this._source.fields).sort(K(this._source)).forEach((s) => {
597
597
  i.variables.push(this._getFieldProperty(s));
598
598
  });
599
599
  const r = await this._getRelationshipsProperty();
@@ -609,7 +609,7 @@ class Fe extends Q {
609
609
  return { type: this.type, name: "", ...this.declaration, definition: this._definition };
610
610
  }
611
611
  }
612
- class P extends Q {
612
+ class T extends Q {
613
613
  constructor(e, i, r = [], s) {
614
614
  super(e, i, s), this.featureSetSnippets = r, this.type = "featureSet";
615
615
  }
@@ -624,7 +624,7 @@ class P extends Q {
624
624
  throw new Error("Invalid definition");
625
625
  this.variables.push(new l(this._profile, this.title, this.featureSetSnippets, !0));
626
626
  const e = new l(this._profile, { code: "fields" });
627
- this.variables.push(e), e.variables = this._source.fields.sort(K(this._source)).map((r) => this._getFieldProperty(r));
627
+ this.variables.push(e), e.variables = F(this._source.fields).sort(K(this._source)).map((r) => this._getFieldProperty(r));
628
628
  const i = await this._getRelationshipsProperty();
629
629
  i && this.variables.push(i);
630
630
  } catch (e) {
@@ -638,12 +638,12 @@ class P extends Q {
638
638
  return { type: this.type, name: "", ...this.declaration, definition: this._definition };
639
639
  }
640
640
  }
641
- class ve extends v {
641
+ class ve extends P {
642
642
  constructor(e, i) {
643
643
  super(e, i), this.type = "featureSetCollection", this._featureSetCollections = null, this._loaded = !1, this._definition = i.declaration?.definition;
644
644
  }
645
645
  get informationUrl() {
646
- return !this.loaded || !this._featureSetCollections ? null : typeof this._featureSetCollections.source != "string" ? Y(E(this._featureSetCollections.source)) : null;
646
+ return !this.loaded || !this._featureSetCollections ? null : typeof this._featureSetCollections.source != "string" ? Y(N(this._featureSetCollections.source)) : null;
647
647
  }
648
648
  get informationType() {
649
649
  if (!this.loaded || !this._featureSetCollections)
@@ -660,7 +660,7 @@ class ve extends v {
660
660
  }
661
661
  }
662
662
  async loadSource() {
663
- return w(this._loadPromise) && N(this._loadPromise) ? await this._loadPromise : (this._loadPromise = this._loadSource(), await this._loadPromise);
663
+ return w(this._loadPromise) && U(this._loadPromise) ? await this._loadPromise : (this._loadPromise = this._loadSource(), await this._loadPromise);
664
664
  }
665
665
  async _loadSource() {
666
666
  if (this.loaded)
@@ -671,7 +671,7 @@ class ve extends v {
671
671
  const e = typeof this._featureSetCollections.source == "string" ? { code: this._featureSetCollections.source.endsWith("FeatureServer") ? "featureservice" : "mapservice" } : {
672
672
  code: "webmapformat",
673
673
  formatValues: {
674
- webMapTitle: E(this._featureSetCollections.source)?.title || "Untitled map"
674
+ webMapTitle: N(this._featureSetCollections.source)?.title || "Untitled map"
675
675
  }
676
676
  }, i = new l(this._profile, e, [
677
677
  new a({
@@ -743,7 +743,7 @@ class ve extends v {
743
743
  }), i;
744
744
  }
745
745
  _createFeatureSetVariable(e, i = !1) {
746
- return new P(
746
+ return new T(
747
747
  this,
748
748
  {
749
749
  profile: this._profile,
@@ -803,7 +803,7 @@ const Pe = {
803
803
  class ze {
804
804
  // #endregion
805
805
  constructor(e, i) {
806
- this.languageId = e, this._apiConfig = i, this._onDidChange = new x(), this._modelToProfileMap = /* @__PURE__ */ new Map(), this._modelToApiContextMap = /* @__PURE__ */ new Map(), this._localeToApiLibraryPromiseMap = /* @__PURE__ */ new Map(), this._onModelContextDidChange = new x(), this._onDidModelContextChangeTimeout = -1, this.workerHost = {
806
+ this.languageId = e, this._apiConfig = i, this._onDidChange = new $(), this._modelToProfileMap = /* @__PURE__ */ new Map(), this._modelToApiContextMap = /* @__PURE__ */ new Map(), this._localeToApiLibraryPromiseMap = /* @__PURE__ */ new Map(), this._onModelContextDidChange = new $(), this._onDidModelContextChangeTimeout = -1, this.workerHost = {
807
807
  getApiLibrary: async (r) => await this.getApiLibrary(r)
808
808
  }, Z().then((r) => {
809
809
  r.onWillDisposeModel((s) => {
@@ -818,7 +818,7 @@ class ze {
818
818
  }, 0));
819
819
  }
820
820
  _getApiKey(e) {
821
- return $.isUri(e) || (e = $.parse(e)), e.toString();
821
+ return A.isUri(e) || (e = A.parse(e)), e.toString();
822
822
  }
823
823
  // #endregion
824
824
  // #region Public methods
@@ -4,7 +4,7 @@ import { IStandaloneThemeService as ie } from "monaco-editor/esm/vs/editor/stand
4
4
  import { generateTokensCSSForColorMap as we } from "monaco-editor/esm/vs/editor/common/languages/supports/tokenization.js";
5
5
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
6
6
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
7
- v4.34.0-next.119 */
7
+ v4.34.0-next.120 */
8
8
  async function ye(r, e) {
9
9
  return await (await me()).colorize(r, e, { tabSize: 2 });
10
10
  }
@@ -6,7 +6,7 @@ import "monaco-editor/esm/vs/editor/standalone/common/standaloneTheme.js";
6
6
  import "monaco-editor/esm/vs/editor/common/languages/supports/tokenization.js";
7
7
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
8
8
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
9
- v4.34.0-next.119 */
9
+ v4.34.0-next.120 */
10
10
  function $(e, n, l, i) {
11
11
  if (!n)
12
12
  return [];
@@ -3,7 +3,7 @@ import { makeRuntime as e } from "@arcgis/lumina";
3
3
  import { trackAccess as s, createObservable as r, createTrackingTarget as a, runTracked as c } from "@arcgis/core/applications/Components/reactiveUtils.js";
4
4
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
5
5
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
6
- v4.34.0-next.119 */
6
+ v4.34.0-next.120 */
7
7
  const t = e({ defaultAssetPath: "https://jsdev.arcgis.com/next/coding-components/", hydratedAttribute: "hydrated" }), { customElement: n, getAssetPath: d, setAssetPath: i } = t;
8
8
  t.t = s;
9
9
  t.o = r;
@@ -1,7 +1,7 @@
1
1
  import i from "@arcgis/core/request.js";
2
2
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
4
- v4.34.0-next.119 */
4
+ v4.34.0-next.120 */
5
5
  function p() {
6
6
  return !!window.MonacoEnvironment?.getWorkerUrl;
7
7
  }
@@ -9,7 +9,7 @@ import { a as n } from "./sql-expr-defaults.js";
9
9
  import { g as m } from "./sql-expr-service-accessors.js";
10
10
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
11
11
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
12
- v4.34.0-next.119 */
12
+ v4.34.0-next.120 */
13
13
  const s = /* @__PURE__ */ new Set();
14
14
  function g(e, o) {
15
15
  return () => {
@@ -4,7 +4,7 @@ import { fetchT9nStringsBundle as M } from "@arcgis/toolkit/intl";
4
4
  import { g as b } from "./runtime.js";
5
5
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
6
6
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
7
- v4.34.0-next.119 */
7
+ v4.34.0-next.120 */
8
8
  const x = (r) => {
9
9
  const e = r.variables[0], i = e && e.type === "featureSet" ? A(e) : void 0, { apiVersion: t, bundles: o, hiddenApiItems: s } = r.toEditorProfileDefinition();
10
10
  return {
@@ -9,7 +9,7 @@ import { debounce as N } from "@arcgis/toolkit/function";
9
9
  import { g as f } from "./sql-expr-service-accessors.js";
10
10
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
11
11
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
12
- v4.34.0-next.119 */
12
+ v4.34.0-next.120 */
13
13
  let h = new _();
14
14
  class k {
15
15
  constructor(e) {
@@ -1,6 +1,6 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
3
- v4.34.0-next.119 */
3
+ v4.34.0-next.120 */
4
4
  async function t() {
5
5
  return await import("./sql-expr-mode.js");
6
6
  }
@@ -2,7 +2,7 @@ import { makeT9nController as o } from "@arcgis/lumina/controllers";
2
2
  import { g as t } from "./runtime.js";
3
3
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
4
4
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
5
- v4.34.0-next.119 */
5
+ v4.34.0-next.120 */
6
6
  const s = o(t);
7
7
  export {
8
8
  s as u
@@ -16,7 +16,7 @@ import Y from "@arcgis/core/Graphic.js";
16
16
  import { b as X } from "../../chunks/language-defaults-base.js";
17
17
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
18
18
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
19
- v4.34.0-next.119 */
19
+ v4.34.0-next.120 */
20
20
  const Z = W`:host(:not([closed])){--calcite-block-border-color: var(--calcite-color-transparent);flex:1 0 auto;border-inline-start:var(--arcgis-coding-components-border);box-sizing:border-box;max-width:var(--arcgis-coding-components-side-panel-max-w);width:var(--arcgis-coding-components-side-panel-w);.submission-actions-wrapper{display:flex;flex-direction:column;width:100%;gap:.75rem}.submission-actions{display:flex;flex-direction:row;gap:.5rem;justify-content:space-between}.gaps{display:flex;gap:.25rem}.align-inline-end{margin-inline-start:auto}.action .error-display{display:flex;flex-direction:row;gap:.5rem;justify-content:space-between}.context-popover p{padding:0 .5rem;font-size:var(--calcite-font-size-sm)}.feedback-content{padding:1rem;display:flex;flex-direction:column;gap:.75rem;max-height:30vh;overflow-y:auto}.feedback-sheet{--calcite-sheet-height: auto;--calcite-sheet-max-height: 100%;--calcite-sheet-min-height: auto}calcite-chip[slot=header-actions-end]{align-self:center;margin-inline-end:.5rem}calcite-flow-item calcite-shell{background:transparent}calcite-block{width:100%;max-width:100%;align-self:flex-end;background-color:transparent;margin-block:0}calcite-sheet{--calcite-sheet-scrim-background: rgba(200, 200, 200, .5)}.type-suggestion{--calcite-color-foreground-1: var(--calcite-color-foreground-current);--calcite-color-text-3: var(--calcite-color-text-2);--calcite-icon-color: var(--calcite-color-brand)}.type-history{--calcite-icon-color: var(--calcite-color-text-2)}.type-response{--calcite-icon-color: var(--calcite-color-brand);--calcite-font-family: monospace}.block-response{align-self:flex-start;margin-block-end:4rem;border-block-end:0;--calcite-block-text-color: var(--calcite-color-brand)}calcite-list-item calcite-button{margin-inline-end:.25rem}.type-docs{--calcite-color-foreground-1: var(--calcite-color-foreground-3);--calcite-icon-color: var(--calcite-color-text-1)}.type-error{--calcite-icon-color: var(--calcite-color-status-danger);--calcite-font-family: monospace;border:1px solid var(--calcite-color-status-danger)}#thumbs-up{margin-inline-start:auto;--calcite-icon-color: var(--calcite-color-border-input)}#thumbs-down{--calcite-icon-color: var(--calcite-color-border-input)}calcite-flow-item calcite-shell calcite-notice{margin-block:1rem}.no-space-block,.no-space-block[open]{margin:0}calcite-block[open]:last-of-type{border-block-end:0}.text-area-wrapper{display:flex;border-radius:var(--calcite-corner-radius-round);margin:.75rem;overflow:hidden;--calcite-color-border-input: transparent;position:sticky;box-shadow:var(--calcite-shadow-sm);flex:none}calcite-text-area{height:auto;min-height:5.75rem;overflow:hidden;border-radius:var(--calcite-corner-radius-round) var(--calcite-corner-radius-round) 0 0;--calcite-font-weight-normal: 500;font-weight:500;line-height:1.2}calcite-tooltip{--calcite-tooltip-z-index: 1000}.standalone-list{margin:1rem;width:calc(100% - 2rem)}.result-disclaimer{display:block;width:24rem;max-width:90%;margin:1rem auto;text-align:center;line-height:1.125rem;font-size:.875rem;font-style:italic}calcite-flow{height:100%}calcite-popover calcite-list{--calcite-list-background-color: transparent;--calcite-input-border-color: transparent}calcite-popover calcite-list calcite-filter{--calcite-spacing-sm: 0}.break-spaces{white-space:break-spaces}.feedback-button-container{margin-inline-start:auto;gap:0}.info-heading{font-size:var(--calcite-font-size-1);color:var(--calcite-color-text-1)}.unstyled-h3{margin:unset;font-size:var(--calcite-font-size-md)}.unstyled-shell{position:unset;inset:unset;display:unset;block-size:unset;inline-size:unset}.suggestion-button{font-weight:var(--calcite-font-weight-medium)}.info-block{max-width:450px}#result-block{calcite-card-group{--calcite-card-group-gap: 1.25rem}calcite-card{--calcite-card-corner-radius: var(--calcite-corner-radius-round);--calcite-card-border-color: transparent;width:100%}.positioned-code-content{display:flex;flex-direction:row;gap:.5rem;padding:.5rem}calcite-card [slot=title] calcite-chip{margin-block-start:.25rem}.code-response-wrapper{position:relative;background:var(--calcite-color-foreground-2);border-radius:var(--calcite-corner-radius-round);margin-top:-1.5rem}.prior-prompt{display:flex;flex-direction:row;padding:0;overflow-y:hidden;overflow-x:auto;margin:.25rem 0 .75rem;align-items:center;max-width:100%;span{overflow-x:auto;overflow-y:hidden}}.copy-feedback{display:none}.copy-prompt-button{align-self:flex-start;margin-inline-start:auto}.response-secondary-action-button[data-copied]+.copy-feedback,.copy-prompt-button[data-copied]+.copy-feedback{display:block;span{padding:.75rem 1rem;font-size:var(--calcite-font-size--2);line-height:1.375;color:var(--calcite-color-text--2);font-weight:var(--calcite-font-weight-medium)}}.copy-prompt-button[data-copied]~.copy-tooltip,.response-secondary-action-button[data-copied]~.copy-tooltip{display:none}code{white-space:pre;font-size:12px;margin:0;overflow-x:auto;font-family:Fira Mono,Consolas,Menlo,monospace;display:block;max-height:12rem;position:relative;padding:.5rem}.code-collapse{margin-inline-start:auto}.response-secondary-action-button{margin-left:.5rem}.add-to-editor-button{--calcite-internal-button-border-color: unset}}.collapsible-code{padding:.5rem}.collapsible-code summary{cursor:pointer;font-weight:500;color:var(--calcite-color-brand);outline:none;padding:.25rem 0}.collapsible-code[open] summary{color:var(--calcite-color-text-2)}.collapsible-error{padding:.5rem}.collapsible-error summary{cursor:pointer;font-weight:500;color:var(--calcite-color-status-danger);outline:none;padding:.25rem 0}.collapsible-error[open] summary{color:var(--calcite-color-text-2)}.response-error-container{padding:.5rem;background:color-mix(in srgb,var(--calcite-color-status-warning) 10%,transparent);border-radius:var(--calcite-corner-radius-round);margin:1rem 0;font-size:var(--calcite-font-size--2);--calcite-input-message-icon-color: var(--calcite-color-status-warning)}.response-error-chip{--calcite-internal-chip-background-color: var(--calcite-color-status-warning);--calcite-chip-icon-color: var(--calcite-color-foreground-1);--calcite-chip-border-color: var(--calcite-color-transparent)}.feedback-actions{gap:unset}}:host([closed]){display:none}`;
21
21
  class y extends Error {
22
22
  constructor({
@@ -17,7 +17,7 @@ import { s as F } from "../../chunks/editor.js";
17
17
  import U from "@arcgis/core/identity/IdentityManager.js";
18
18
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
19
19
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
20
- v4.34.0-next.119 */
20
+ v4.34.0-next.120 */
21
21
  const j = E`@layer{arcgis-arcade-editor{display:flex;flex-direction:column;position:relative;overflow:hidden;border:var(--arcgis-coding-components-border)!important;box-sizing:border-box;background-color:var(--arcgis-coding-components-background-color);height:100%;.sticky{position:sticky;top:0;z-index:10}.notice-container{margin:var(--calcite-spacing-xxs);padding:var(--calcite-spacing-sm);background-color:var(--calcite-color-foreground-1);text-align:center}.main-action-bar{border-bottom:var(--arcgis-coding-components-border)!important;flex:0 0 auto;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)}}arcgis-arcade-results{border-top:var(--arcgis-coding-components-border)!important;box-sizing:border-box;max-height:50%;min-height:50%;margin-bottom:-1px}calcite-flow{[slot=footer]{word-break:break-word}}.hidden{display:none}}}`, z = "https://services6.arcgis.com/HXHga6CfMLMBOlBX/ArcGIS/rest/services/survey123_6e349a50b4504ca6b6107216d568db5f_form/FeatureServer/0", N = (i) => {
22
22
  const { aiAssistantsEnabled: e } = i;
23
23
  return e === void 0 ? (console.warn("areAiAssistantsEnabled is not defined in the organizations settings."), !1) : e;
@@ -8,7 +8,7 @@ import { s as O } from "../../chunks/fields.js";
8
8
  import "@arcgis/toolkit/function";
9
9
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
10
10
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
11
- v4.34.0-next.119 */
11
+ v4.34.0-next.120 */
12
12
  const D = C`: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}.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}.ltr-container{direction:ltr}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{table{display:block;max-width:fit-content;overflow-x:auto;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)}}}.tree-item-label,.number-value,.string-value,.boolean-value{font-family:var(--calcite-code-family)}.tree-item-label,.value-type{color:var(--calcite-color-text-2);font-weight:var(--calcite-font-weight-normal)}.dictionary-property{color:var(--arcgis-editor-identifier)}.number-value{color:var(--arcgis-editor-number)}.string-value{color:var(--arcgis-editor-string);white-space:pre-wrap}.constant-value{color:var(--arcgis-editor-constant)}.date-value{color:var(--arcgis-editor-date)}}`, l = {
13
13
  lines: !0,
14
14
  selectionMode: "none",
@@ -8,7 +8,7 @@ import { f as b } from "../../chunks/monaco-importer.js";
8
8
  import { u as _ } from "../../chunks/useT9n.js";
9
9
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
10
10
  See https://js.arcgis.com/4.34/esri/copyright.txt for details.
11
- v4.34.0-next.119 */
11
+ v4.34.0-next.120 */
12
12
  function v(o) {
13
13
  return !Array.isArray(o) || !o.length ? !1 : Array.isArray(o[0].suggestions);
14
14
  }