@arcgis/coding-components 4.32.0-next.98 → 4.32.0-next.99

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 (68) hide show
  1. package/dist/arcgis-coding-components/{3JSEXSJI.js → 2DTTEGFF.js} +2 -2
  2. package/dist/arcgis-coding-components/{3TMLUJQZ.js → 3CJK5WG5.js} +2 -2
  3. package/dist/arcgis-coding-components/{VN62XEEO.js → 46ZRCUEM.js} +2 -2
  4. package/dist/arcgis-coding-components/4NNX7D7O.js +4 -0
  5. package/dist/arcgis-coding-components/4QQMDLXM.js +4 -0
  6. package/dist/arcgis-coding-components/{KLNEB6YZ.js → 5GXMGNYI.js} +2 -2
  7. package/dist/arcgis-coding-components/6TNEGUZ2.js +8 -0
  8. package/dist/arcgis-coding-components/{JVEMTNYW.js → C2QMDXS2.js} +2 -2
  9. package/dist/arcgis-coding-components/{2EPJORVP.js → D5KEAAV5.js} +2 -2
  10. package/dist/arcgis-coding-components/{EP2V53HY.js → DUXVCFKL.js} +3 -3
  11. package/dist/arcgis-coding-components/{FXHHAHJI.js → EGDI727K.js} +1 -1
  12. package/dist/arcgis-coding-components/ETZZSUTU.js +12 -0
  13. package/dist/arcgis-coding-components/{3DOKRWUC.js → F6DB3H4F.js} +2 -2
  14. package/dist/arcgis-coding-components/{Z2STRVBY.js → FUTHCBUX.js} +2 -2
  15. package/dist/arcgis-coding-components/{37SWT3RX.js → HSNJN4XM.js} +2 -2
  16. package/dist/arcgis-coding-components/{PT22YBFB.js → IKWIAVEJ.js} +2 -2
  17. package/dist/arcgis-coding-components/{VZSWNCCC.js → K4V4C5RU.js} +2 -2
  18. package/dist/arcgis-coding-components/{DFG73GAS.js → M5TUKLMS.js} +2 -2
  19. package/dist/arcgis-coding-components/{RQQVONED.js → N2LHMBFT.js} +2 -2
  20. package/dist/arcgis-coding-components/{PGZUAQRI.js → NL6JJZSW.js} +2 -2
  21. package/dist/arcgis-coding-components/{5LKB3MC7.js → NXW35IHZ.js} +1 -1
  22. package/dist/arcgis-coding-components/{X2BJXAWC.js → OQW5MMNK.js} +2 -2
  23. package/dist/arcgis-coding-components/{DUT7AGVM.js → ORRMG2VS.js} +2 -2
  24. package/dist/arcgis-coding-components/{UTGLPFMP.js → PS2ZPY2I.js} +2 -2
  25. package/dist/arcgis-coding-components/{2Q5QNKAG.js → S2NB7NVP.js} +2 -2
  26. package/dist/arcgis-coding-components/{GPABPL5X.js → S2V42PRB.js} +2 -2
  27. package/dist/arcgis-coding-components/{NDAIX54R.js → S7U4UHVN.js} +2 -2
  28. package/dist/arcgis-coding-components/{JZF2ZLTX.js → SHFV4AMW.js} +2 -2
  29. package/dist/arcgis-coding-components/{X4ZKZWUU.js → UMGHE7IC.js} +2 -2
  30. package/dist/arcgis-coding-components/{H2PZ63J7.js → UZ56Q4U3.js} +2 -2
  31. package/dist/arcgis-coding-components/{FZQF7XTL.js → VMBXTF2M.js} +1 -1
  32. package/dist/arcgis-coding-components/{RQ5JQSEA.js → WCHUGT2V.js} +2 -2
  33. package/dist/arcgis-coding-components/{I42AYWEV.js → XVSUYOB7.js} +2 -2
  34. package/dist/arcgis-coding-components/{T2I77U6E.js → YCBUA37F.js} +2 -2
  35. package/dist/arcgis-coding-components/{DSO2RNW5.js → ZOPJQT4Q.js} +2 -2
  36. package/dist/arcgis-coding-components/arcgis-coding-components.esm.js +2 -2
  37. package/dist/arcgis-coding-components/assets/code-editor/sql-expr.worker.js +2033 -44
  38. package/dist/chunks/arcade-defaults.js +1 -1
  39. package/dist/chunks/arcade-executor.js +41 -41
  40. package/dist/chunks/arcade-mode.js +1 -1
  41. package/dist/chunks/arcade-service-accessors.js +10 -10
  42. package/dist/chunks/fields.js +1 -1
  43. package/dist/chunks/language-defaults-base.js +63 -59
  44. package/dist/chunks/markdown.js +1 -1
  45. package/dist/chunks/monaco-importer.js +1 -1
  46. package/dist/chunks/runtime.js +1 -1
  47. package/dist/chunks/sql-expr-defaults.js +1 -1
  48. package/dist/chunks/sql-expr-mode.js +1 -1
  49. package/dist/chunks/useT9n.js +1 -1
  50. package/dist/components/arcgis-arcade-editor/customElement.js +1 -1
  51. package/dist/components/arcgis-arcade-results/customElement.js +1 -1
  52. package/dist/components/arcgis-arcade-suggestions/customElement.js +1 -1
  53. package/dist/components/arcgis-code-editor/customElement.js +1 -1
  54. package/dist/components/arcgis-editor-variables/customElement.js +1 -1
  55. package/dist/components/arcgis-language-api-panel/customElement.js +1 -1
  56. package/dist/components/arcgis-sql-expression-editor/customElement.js +1 -1
  57. package/dist/components/arcgis-sql-expression-fields/customElement.js +1 -1
  58. package/dist/docs/api.json +2 -2
  59. package/dist/docs/docs.json +2 -2
  60. package/dist/docs/web-types.json +1 -1
  61. package/dist/index.js +1 -1
  62. package/dist/loader.js +1 -1
  63. package/dist/utils/arcade-executor.d.ts +4 -4
  64. package/package.json +6 -7
  65. package/dist/arcgis-coding-components/3ZKJMZFN.js +0 -4
  66. package/dist/arcgis-coding-components/6YVKF3TO.js +0 -4
  67. package/dist/arcgis-coding-components/ONY6ONSX.js +0 -8
  68. package/dist/arcgis-coding-components/VD2QSO3K.js +0 -12
@@ -4,7 +4,7 @@ import { g as m } from "./runtime.js";
4
4
  import { CompletionItemKind as w, InsertTextMode as f, InsertTextFormat as d } from "vscode-languageserver-types";
5
5
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
6
6
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
7
- v4.32.0-next.98 */
7
+ v4.32.0-next.99 */
8
8
  async function S(e) {
9
9
  const { apiVersion: s, bundles: t, hiddenApiItems: r } = e.toEditorProfileDefinition(), n = await g(e.dictionaryVariables);
10
10
  return { apiVersion: s, bundles: t, variables: n, hiddenApiItems: r?.map((i) => i.toLowerCase()) };
@@ -1,79 +1,79 @@
1
- import { importArcade as C } from "@arcgis/core-adapter";
1
+ import * as l 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.32/esri/copyright.txt for details.
4
- v4.32.0-next.98 */
5
- const G = "https://developers.arcgis.com/arcade/", O = 100, A = 100;
6
- function u(t) {
4
+ v4.32.0-next.99 */
5
+ const Z = "https://developers.arcgis.com/arcade/", k = 100, C = 100;
6
+ function A(t) {
7
7
  return !!t && typeof t == "object" && "declaredRootClass" in t && typeof t.declaredRootClass == "string" && t.declaredRootClass === "esri.arcade.featureset.support.FeatureSet";
8
8
  }
9
- function g(t) {
9
+ function u(t) {
10
10
  return !!t && typeof t == "object" && "arcadeDeclaredClass" in t && typeof t.arcadeDeclaredClass == "string" && t.arcadeDeclaredClass === "esri.arcade.Feature";
11
11
  }
12
- function b(t) {
12
+ function g(t) {
13
13
  return !!t && typeof t == "object" && "declaredClass" in t && typeof t.declaredClass == "string" && t.declaredClass === "esri.arcade.Dictionary";
14
14
  }
15
- function w(t) {
15
+ function b(t) {
16
16
  return !!t && typeof t == "object" && "declaredClass" in t && typeof t.declaredClass == "string" && t.declaredClass.startsWith("esri.geometry.");
17
17
  }
18
18
  function R(t) {
19
19
  return !!t && typeof t == "object" && "declaredClass" in t && typeof t.declaredClass == "string" && t.declaredClass.startsWith("esri.rest.knowledgeGraph.KnowledgeGraph");
20
20
  }
21
- function h(t) {
21
+ function w(t) {
22
22
  return !!t && typeof t == "object" && "declaredClass" in t && typeof t.declaredClass == "string" && t.declaredClass === "esri.arcade.Portal";
23
23
  }
24
- function D(t) {
24
+ function h(t) {
25
25
  return !!t && typeof t == "object" && "declaredClass" in t && typeof t.declaredClass == "string" && t.declaredClass === "esri.arcade.Attachment";
26
26
  }
27
- function S(t) {
27
+ function D(t) {
28
28
  return !!t && typeof t == "object" && "declaredRootClass" in t && typeof t.declaredRootClass == "string" && t.declaredRootClass === "esri.arcade.arcadedate";
29
29
  }
30
- function x(t) {
30
+ function S(t) {
31
31
  return !!t && typeof t == "object" && "declaredRootClass" in t && typeof t.declaredRootClass == "string" && t.declaredRootClass === "esri.core.sql.dateonly";
32
32
  }
33
- function F(t) {
33
+ function x(t) {
34
34
  return !!t && typeof t == "object" && "declaredRootClass" in t && typeof t.declaredRootClass == "string" && t.declaredRootClass === "esri.core.sql.timeonly";
35
35
  }
36
- function T(t) {
36
+ function F(t) {
37
37
  return !!t && typeof t == "object" && "length" in t && typeof t.length == "function" && "get" in t && typeof t.get == "function" && "toArray" in t && typeof t.toArray == "function" && "_elements" in t && Array.isArray(t._elements);
38
38
  }
39
- function j(t) {
40
- return t == null ? { type: "null" } : Array.isArray(t) ? { type: "array", value: t } : T(t) ? { type: "array", value: t.toArray() } : t instanceof Date ? { type: "date", value: t } : typeof t == "string" ? { type: "text", value: t } : typeof t == "number" ? { type: "number", value: t } : typeof t == "boolean" ? { type: "boolean", value: t } : typeof t != "object" ? { type: "unknown" } : S(t) ? { type: "date", value: t } : x(t) ? { type: "dateOnly", value: t } : F(t) ? { type: "time", value: t } : D(t) ? { type: "attachment", value: t } : h(t) ? { type: "portal", value: t } : u(t) ? { type: "featureSet", value: t, features: [], iterator: null } : g(t) ? { type: "feature", value: t } : b(t) ? { type: "dictionary", value: t } : w(t) ? { type: "geometry", value: t } : R(t) ? { type: "knowledgeGraph", value: t } : { type: "unknown" };
39
+ function T(t) {
40
+ return t == null ? { type: "null" } : Array.isArray(t) ? { type: "array", value: t } : F(t) ? { type: "array", value: t.toArray() } : t instanceof Date ? { type: "date", value: t } : typeof t == "string" ? { type: "text", value: t } : typeof t == "number" ? { type: "number", value: t } : typeof t == "boolean" ? { type: "boolean", value: t } : typeof t != "object" ? { type: "unknown" } : D(t) ? { type: "date", value: t } : S(t) ? { type: "dateOnly", value: t } : x(t) ? { type: "time", value: t } : h(t) ? { type: "attachment", value: t } : w(t) ? { type: "portal", value: t } : A(t) ? { type: "featureSet", value: t, features: [], iterator: null } : u(t) ? { type: "feature", value: t } : g(t) ? { type: "dictionary", value: t } : b(t) ? { type: "geometry", value: t } : R(t) ? { type: "knowledgeGraph", value: t } : { type: "unknown" };
41
41
  }
42
- function I(t, r = "en") {
42
+ function G(t, r = "en") {
43
43
  return t.value instanceof Date ? new Intl.DateTimeFormat(r, { dateStyle: "medium", timeStyle: "long" }).format(t.value) : t.value.toDateTime().setLocale(r).toFormat(t.value.isUnknownTimeZone ? "FF" : "FF ZZZZZ");
44
44
  }
45
- function B(t) {
45
+ function O(t) {
46
46
  return t.value.toString();
47
47
  }
48
- function E(t) {
48
+ function I(t) {
49
49
  return t.value.toString();
50
50
  }
51
- async function Z(t, r = "system") {
52
- const e = j(t);
53
- return e.type !== "featureSet" || (await e.value.load(), e.iterator = e.value.iterator({ aborted: !1 }), e.features = await e.iterator.nextBatchAsArcadeFeatures(A, r) ?? []), e;
51
+ async function j(t, r = "system") {
52
+ const e = T(t);
53
+ return e.type !== "featureSet" || (await e.value.load(), e.iterator = e.value.iterator({ aborted: !1 }), e.features = await e.iterator.nextBatchAsArcadeFeatures(C, r) ?? []), e;
54
54
  }
55
- async function P(t, r, e, a) {
55
+ async function B(t, r, e, a) {
56
56
  const i = /* @__PURE__ */ new Date();
57
57
  a ??= () => {
58
58
  };
59
59
  try {
60
- const n = performance.now(), f = await (await C()).createArcadeExecutor(r ?? "", {
60
+ const n = performance.now(), o = await l.createArcadeExecutor(r ?? "", {
61
61
  variables: t?.variables ?? []
62
- }), c = performance.now(), { profileVariableInstances: y, spatialReference: p, timeZone: d } = e, m = {
63
- spatialReference: p,
62
+ }), c = performance.now(), { profileVariableInstances: f, spatialReference: y, timeZone: d } = e, p = {
63
+ spatialReference: y,
64
64
  timeZone: d,
65
65
  rawOutput: !0,
66
66
  console: a
67
- }, l = await f.executeAsync(
68
- y,
69
- m
70
- ), o = await Z(l, d);
71
- return o.timeStamp = i, o.compilationTime = c - n, o.executionTime = performance.now() - c, o;
67
+ }, m = await o.executeAsync(
68
+ f,
69
+ p
70
+ ), s = await j(m, d);
71
+ return s.timeStamp = i, s.compilationTime = c - n, s.executionTime = performance.now() - c, s;
72
72
  } catch (n) {
73
- let s = "Unknown Error";
74
- return n instanceof Error && (s = n.message), {
73
+ let o = "Unknown Error";
74
+ return n instanceof Error && (o = n.message), {
75
75
  type: "error",
76
- value: s,
76
+ value: o,
77
77
  error: n,
78
78
  timeStamp: i,
79
79
  compilationTime: 0,
@@ -82,12 +82,12 @@ async function P(t, r, e, a) {
82
82
  }
83
83
  }
84
84
  export {
85
- A as B,
86
- G as D,
87
- O as M,
88
- B as a,
89
- I as b,
90
- P as e,
91
- E as f,
92
- j as v
85
+ C as B,
86
+ Z as D,
87
+ k as M,
88
+ O as a,
89
+ G as b,
90
+ B as e,
91
+ I as f,
92
+ T as v
93
93
  };
@@ -8,7 +8,7 @@ import { InsertTextFormat as y, DiagnosticSeverity as m, CompletionItemKind as o
8
8
  import { debounce as F, Deferred as _ } from "@arcgis/components-utils";
9
9
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
10
10
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
11
- v4.32.0-next.98 */
11
+ v4.32.0-next.99 */
12
12
  const S = [
13
13
  "<=",
14
14
  ">=",
@@ -1,13 +1,13 @@
1
- import { importRequest as n } from "@arcgis/core-adapter";
2
- import { isURL as i, hasSameOrigin as c } from "@arcgis/components-utils";
1
+ import { isURL as t, hasSameOrigin as i } from "@arcgis/components-utils";
2
+ import c from "@arcgis/core/request.js";
3
3
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
4
4
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
5
- v4.32.0-next.98 */
5
+ v4.32.0-next.99 */
6
6
  function a() {
7
7
  return !!window.MonacoEnvironment?.getWorkerUrl;
8
8
  }
9
9
  const s = /* @__PURE__ */ new Map();
10
- function u(r) {
10
+ function m(r) {
11
11
  a() || (window.MonacoEnvironment = {
12
12
  getWorker: async (w, o) => {
13
13
  let e = s.get(o) ?? `${r}/code-editor/editor.worker.js`;
@@ -32,14 +32,14 @@ function u(r) {
32
32
  e = `${r}/code-editor/sql-expr.worker.js`;
33
33
  break;
34
34
  }
35
- if (!i(e) || c(e, globalThis.location.href, !0))
35
+ if (!t(e) || i(e, globalThis.location.href, !0))
36
36
  return new Worker(e, { name: o });
37
- const t = await (await n())(e, {
37
+ const n = await c(e, {
38
38
  responseType: "text"
39
39
  });
40
40
  return new Worker(
41
41
  URL.createObjectURL(
42
- new Blob([t.data], {
42
+ new Blob([n.data], {
43
43
  type: "text/javascript"
44
44
  })
45
45
  )
@@ -47,14 +47,14 @@ function u(r) {
47
47
  }
48
48
  });
49
49
  }
50
- async function j() {
50
+ async function u() {
51
51
  return (await d()).getArcadeDiagnosticService();
52
52
  }
53
53
  async function d() {
54
54
  return await import("./arcade-mode.js");
55
55
  }
56
56
  export {
57
- j as a,
57
+ u as a,
58
58
  d as g,
59
- u as s
59
+ m as s
60
60
  };
@@ -1,6 +1,6 @@
1
1
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
2
2
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
3
- v4.32.0-next.98 */
3
+ v4.32.0-next.99 */
4
4
  function t(e) {
5
5
  switch (e.type) {
6
6
  case "oid":
@@ -1,14 +1,18 @@
1
- import { newLayersFeatureLayer as b, importRequest as Q, newPortalPortalItem as X, newWebScene as Y, newWebMap as Z } from "@arcgis/core-adapter";
2
- import { p as ee, i as te } from "./monaco-importer.js";
3
- import { isNotNull as C, isNotUndefined as U, addLTRMark as ie, setValuesInString as V, normalizeLocale as re } from "@arcgis/components-utils";
4
- import { s as se, f as ne, a as _, b as oe } from "./fields.js";
1
+ import b from "@arcgis/core/layers/FeatureLayer.js";
2
+ import Q from "@arcgis/core/request.js";
3
+ import { p as X, i as Y } from "./monaco-importer.js";
4
+ import { isNotNull as w, isNotUndefined as U, addLTRMark as Z, setValuesInString as V, normalizeLocale as ee } from "@arcgis/components-utils";
5
+ import { s as te, f as ie, a as _, b as re } from "./fields.js";
5
6
  import { InsertTextMode as T, InsertTextFormat as I, CompletionItemKind as M } from "vscode-languageserver-types";
7
+ import se from "@arcgis/core/portal/PortalItem.js";
8
+ import ne from "@arcgis/core/WebMap.js";
9
+ import oe from "@arcgis/core/WebScene.js";
6
10
  import { g as ae } from "./runtime.js";
7
11
  import { filterApiLibraryForContext as le } from "@arcgis/languages-api-utils";
8
12
  import { Emitter as x, Uri as $ } from "monaco-editor";
9
13
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
10
14
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
11
- v4.32.0-next.98 */
15
+ v4.32.0-next.99 */
12
16
  function W(t) {
13
17
  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";
14
18
  }
@@ -30,31 +34,31 @@ function O(t) {
30
34
  function g(t) {
31
35
  return !!t && typeof t == "object" && "fields" in t && Array.isArray(t.fields);
32
36
  }
33
- function w(t) {
37
+ function D(t) {
34
38
  return !!t && typeof t == "object" && "url" in t && typeof t.url == "string";
35
39
  }
36
40
  function pe(t) {
37
- return w(t) && /\/(?:featureserver|mapserver)(?:\/|$)/iu.test(t.url ?? "");
41
+ return D(t) && /\/(?:featureserver|mapserver)(?:\/|$)/iu.test(t.url ?? "");
38
42
  }
39
- function Le(t) {
40
- return w(t) || g(t) || O(t);
43
+ function Ue(t) {
44
+ return D(t) || g(t) || O(t);
41
45
  }
42
- function Ge(t) {
43
- return w(t) || g(t) || O(t);
46
+ function We(t) {
47
+ return D(t) || g(t) || O(t);
44
48
  }
45
- function je(t) {
49
+ function Be(t) {
46
50
  return N(t) || B(t) || pe(t);
47
51
  }
48
52
  function A(t) {
49
53
  return !!t && typeof t == "object" && "declaredClass" in t && t.declaredClass === "esri.layers.support.Subtype";
50
54
  }
51
- function D(t) {
55
+ function C(t) {
52
56
  return !!t && typeof t == "object" && "declaredClass" in t && t.declaredClass === "esri.layers.support.CodedValueDomain";
53
57
  }
54
58
  function he(t) {
55
59
  return !!t && typeof t == "object" && "declaredClass" in t && t.declaredClass === "esri.layers.support.InheritedDomain";
56
60
  }
57
- function Ee(t) {
61
+ function Ne(t) {
58
62
  return !!t && typeof t == "object" && "id" in t && typeof t.id == "string" && "definitions" in t && typeof t.definitions == "object" && !Array.isArray(t.definitions);
59
63
  }
60
64
  function m(t) {
@@ -90,16 +94,16 @@ function be(t) {
90
94
  function me(t) {
91
95
  return !!t && typeof t == "object" && "load" in t && typeof t.load == "function";
92
96
  }
93
- async function q(t) {
97
+ async function k(t) {
94
98
  if (!t)
95
99
  return null;
96
100
  let e;
97
- return g(t) ? e = t : e = await b(t), me(e) && await e.load(), e;
101
+ return g(t) ? e = t : e = new b(t), me(e) && await e.load(), e;
98
102
  }
99
103
  async function ge(t) {
100
104
  t += "/layers";
101
- const i = await (await Q())(t, { responseType: "json", query: { f: "json" } }), r = t.endsWith("MapServer/layers") ? "data" : "query", s = G(i.data?.layers, r), n = G(i.data?.tables, r);
102
- return { layers: s, tables: n };
105
+ const e = await Q(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);
106
+ return { layers: r, tables: s };
103
107
  }
104
108
  function G(t, e) {
105
109
  return t ? t.filter((i) => {
@@ -114,11 +118,11 @@ function G(t, e) {
114
118
  }
115
119
  }) : [];
116
120
  }
117
- async function we(t, e) {
118
- const i = await b({ url: `${t.url}/${e.relatedTableId}` });
121
+ async function De(t, e) {
122
+ const i = new b({ url: `${t.url}/${e.relatedTableId}` });
119
123
  return await i.load(), i;
120
124
  }
121
- function k(t) {
125
+ function q(t) {
122
126
  return (e, i) => {
123
127
  if (e.type === "oid")
124
128
  return -1;
@@ -142,9 +146,9 @@ function k(t) {
142
146
  function j(t, e) {
143
147
  return t?.every((i) => i.domains?.[e.name]?.type === "inherited") ?? !1;
144
148
  }
145
- const De = /^[a-z_$][a-z0-9_$]*$/giu;
149
+ const Ce = /^[a-z_$][a-z0-9_$]*$/giu;
146
150
  function K(t, e = !0) {
147
- return t.match(De) ? `${e ? "." : ""}${t}` : `["${t}"]`;
151
+ return t.match(Ce) ? `${e ? "." : ""}${t}` : `["${t}"]`;
148
152
  }
149
153
  function z(t, e) {
150
154
  return t ? `${t}${K(e)}` : e;
@@ -152,16 +156,16 @@ function z(t, e) {
152
156
  function E(t) {
153
157
  return ye(t) ? t.portalItem : null;
154
158
  }
155
- function Ue(t, e, i = !1) {
159
+ function Oe(t, e, i = !1) {
156
160
  let r = e;
157
161
  const s = [], n = [];
158
- return se(t).forEach((o) => {
162
+ return te(t).forEach((o) => {
159
163
  r && (r += `
160
164
 
161
165
  `), r += `**${o.name}** (${o.alias})
162
166
  ${o.type}`, o.description && (r += `
163
167
  '${o.description}`);
164
- const p = ne(o), c = K(o.name, !1), y = _(o);
168
+ const p = ie(o), c = K(o.name, !1), y = _(o);
165
169
  if (s.push({
166
170
  name: o.name,
167
171
  description: y,
@@ -205,7 +209,7 @@ class H {
205
209
  * Returns the label string.
206
210
  */
207
211
  getLabel() {
208
- return this._label == null ? "" : typeof this._label == "string" ? ie(this._label) : V(this._profile?.intlStrings[this._label.code], this._label.formatValues);
212
+ return this._label == null ? "" : typeof this._label == "string" ? Z(this._label) : V(this._profile?.intlStrings[this._label.code], this._label.formatValues);
209
213
  }
210
214
  /**
211
215
  * Returns the description string.
@@ -236,7 +240,7 @@ class a extends F {
236
240
  return { type: this.type, name: "", ...this.declaration };
237
241
  }
238
242
  }
239
- class Ce extends F {
243
+ class we extends F {
240
244
  constructor(e) {
241
245
  super(e), this.type = "array", this.isCollection = !1, this.elementType = e.declaration?.elementType ?? { type: "number", name: "number" };
242
246
  }
@@ -333,7 +337,7 @@ class d extends v {
333
337
  snippet: i
334
338
  });
335
339
  case "array":
336
- return new Ce({
340
+ return new we({
337
341
  profile: this._profile,
338
342
  declaration: e,
339
343
  label: i,
@@ -369,7 +373,7 @@ class J extends v {
369
373
  return this._profile?.intlStrings.layer ?? "layer";
370
374
  }
371
375
  async loadSource() {
372
- return C(this._loadPromise) && U(this._loadPromise) ? await this._loadPromise : (this._loadPromise = this._loadSource(), await this._loadPromise);
376
+ return w(this._loadPromise) && U(this._loadPromise) ? await this._loadPromise : (this._loadPromise = this._loadSource(), await this._loadPromise);
373
377
  }
374
378
  _getValueSnippet(e) {
375
379
  return this.type === "feature" ? z(this.snippet, e.name) : e.name;
@@ -387,7 +391,7 @@ class J extends v {
387
391
  label: r,
388
392
  description: _(e),
389
393
  snippet: r,
390
- icon: oe(e),
394
+ icon: re(e),
391
395
  filterDescription: !0
392
396
  });
393
397
  }
@@ -430,7 +434,7 @@ class J extends v {
430
434
  if (!L(this._source))
431
435
  return null;
432
436
  const i = this._source.getFieldDomain(e.name);
433
- if (!D(i))
437
+ if (!C(i))
434
438
  return null;
435
439
  const r = this._getCodedValueDomainGroup(i, {
436
440
  code: "domainvalues"
@@ -438,7 +442,7 @@ class J extends v {
438
442
  return s.variables.push(r), s;
439
443
  }
440
444
  _getTypeOrSubtypeDomainGroup(e, i) {
441
- if (D(i.domain))
445
+ if (C(i.domain))
442
446
  return this._getCodedValueDomainGroup(i.domain, { code: "subtypes" });
443
447
  const r = e?.map((s) => {
444
448
  const n = A(s) ? s.code : s.id;
@@ -467,7 +471,7 @@ class J extends v {
467
471
  const r = [];
468
472
  return !e || e.length === 0 || (e.forEach((s) => {
469
473
  const n = s.domains?.[i.name];
470
- if (!n || he(n) || !D(n))
474
+ if (!n || he(n) || !C(n))
471
475
  return;
472
476
  const u = _(i), o = this._getCodedValueDomainGroup(n, {
473
477
  code: "domainvaluesfortypeformat",
@@ -520,7 +524,7 @@ class J extends v {
520
524
  return null;
521
525
  const i = new l(this._profile, { code: "relationships" }), r = await Promise.all(
522
526
  e.relationships?.map(async (s) => {
523
- const n = await we(e, s);
527
+ const n = await De(e, s);
524
528
  if (!W(n) || s.relatedTableId === this.relationshipsProperties?.sourceTableId)
525
529
  return null;
526
530
  const u = `FeatureSetByRelationshipName(${this.snippet}, "${s.name}")`;
@@ -538,7 +542,7 @@ class J extends v {
538
542
  );
539
543
  }) ?? []
540
544
  );
541
- return i.variables = r.filter(C), i.variables.length ? i : null;
545
+ return i.variables = r.filter(w), i.variables.length ? i : null;
542
546
  }
543
547
  }
544
548
  class Se extends J {
@@ -552,7 +556,7 @@ class Se extends J {
552
556
  if (this.loaded)
553
557
  return this._source;
554
558
  try {
555
- if (this._source = await q(this._definition), !this._source)
559
+ if (this._source = await k(this._definition), !this._source)
556
560
  throw new Error("Invalid definition");
557
561
  const e = m(this._source) ? this._source.title ?? "" : "";
558
562
  this.variables.push(
@@ -578,7 +582,7 @@ class Se extends J {
578
582
  });
579
583
  i.variables.push(n);
580
584
  }
581
- this._source.fields.sort(k(this._source)).forEach((s) => {
585
+ this._source.fields.sort(q(this._source)).forEach((s) => {
582
586
  i.variables.push(this._getFieldProperty(s));
583
587
  });
584
588
  const r = await this._getRelationshipsProperty();
@@ -605,11 +609,11 @@ class P extends J {
605
609
  if (this.loaded)
606
610
  return this._source;
607
611
  try {
608
- if (this._source = await q(this._definition), !this._source)
612
+ if (this._source = await k(this._definition), !this._source)
609
613
  throw new Error("Invalid definition");
610
614
  this.variables.push(new l(this._profile, this.title, this.featureSetSnippets, !0));
611
615
  const e = new l(this._profile, { code: "fields" });
612
- this.variables.push(e), e.variables = this._source.fields.sort(k(this._source)).map((r) => this._getFieldProperty(r));
616
+ this.variables.push(e), e.variables = this._source.fields.sort(q(this._source)).map((r) => this._getFieldProperty(r));
613
617
  const i = await this._getRelationshipsProperty();
614
618
  i && this.variables.push(i);
615
619
  } catch (e) {
@@ -628,7 +632,7 @@ class Fe extends v {
628
632
  super(e, i), this.type = "featureSetCollection", this._featureSetCollections = null, this._loaded = !1, this._definition = i.declaration?.definition;
629
633
  }
630
634
  get informationUrl() {
631
- return !this.loaded || !this._featureSetCollections ? null : typeof this._featureSetCollections.source != "string" ? ee(E(this._featureSetCollections.source)) : null;
635
+ return !this.loaded || !this._featureSetCollections ? null : typeof this._featureSetCollections.source != "string" ? X(E(this._featureSetCollections.source)) : null;
632
636
  }
633
637
  get informationType() {
634
638
  if (!this.loaded || !this._featureSetCollections)
@@ -645,7 +649,7 @@ class Fe extends v {
645
649
  }
646
650
  }
647
651
  async loadSource() {
648
- return C(this._loadPromise) && U(this._loadPromise) ? await this._loadPromise : (this._loadPromise = this._loadSource(), await this._loadPromise);
652
+ return w(this._loadPromise) && U(this._loadPromise) ? await this._loadPromise : (this._loadPromise = this._loadSource(), await this._loadPromise);
649
653
  }
650
654
  async _loadSource() {
651
655
  if (this.loaded)
@@ -675,7 +679,7 @@ class Fe extends v {
675
679
  return this._featureSetCollections;
676
680
  }
677
681
  async _featureSetCollectionsFromDefinition() {
678
- return this._definition ? B(this._definition) ? await this._featureSetCollectionFromMap(this._definition) : w(this._definition) ? await this._featureSetCollectionFromUrl(this._definition.url) : N(this._definition) ? await this._featureSetCollectionFromPortalItem(this._definition.portalItem) : null : null;
682
+ return this._definition ? B(this._definition) ? await this._featureSetCollectionFromMap(this._definition) : D(this._definition) ? await this._featureSetCollectionFromUrl(this._definition.url) : N(this._definition) ? await this._featureSetCollectionFromPortalItem(this._definition.portalItem) : null : null;
679
683
  }
680
684
  async _featureSetCollectionFromMap(e) {
681
685
  return ce(e) && await e.loadAll(), await Promise.all(e.tables.map(async (i) => await i.load())), {
@@ -685,14 +689,14 @@ class Fe extends v {
685
689
  };
686
690
  }
687
691
  async _featureSetCollectionFromPortalItem(e) {
688
- const i = await X(e);
692
+ const i = new se(e);
689
693
  switch (await i.load(), i.type) {
690
694
  case "Web Map": {
691
- const r = await Z({ portalItem: i });
695
+ const r = new ne({ portalItem: i });
692
696
  return await this._featureSetCollectionFromMap(r);
693
697
  }
694
698
  case "Web Scene": {
695
- const r = await Y({ portalItem: i });
699
+ const r = new oe({ portalItem: i });
696
700
  return await this._featureSetCollectionFromMap(r);
697
701
  }
698
702
  case "Feature Service":
@@ -707,12 +711,12 @@ class Fe extends v {
707
711
  return null;
708
712
  const r = await ge(i), s = Promise.all(
709
713
  r.layers.map(async (p) => {
710
- const c = await b({ url: `${i}/${p.id}` });
714
+ const c = new b({ url: `${i}/${p.id}` });
711
715
  return await c.load(), this._createFeatureSetVariable(c);
712
716
  })
713
717
  ), n = Promise.all(
714
718
  r.tables.map(async (p) => {
715
- const c = await b({ url: `${i}/${p.id}` });
719
+ const c = new b({ url: `${i}/${p.id}` });
716
720
  return await c.load(), this._createFeatureSetVariable(c);
717
721
  })
718
722
  ), [u, o] = await Promise.all([s, n]);
@@ -762,7 +766,7 @@ class Fe extends v {
762
766
  return { type: this.type, name: "", ...this.declaration, definition: this._definition };
763
767
  }
764
768
  }
765
- class We extends d {
769
+ class Re extends d {
766
770
  constructor(e, i, r = "en") {
767
771
  super(void 0, {
768
772
  profile: null,
@@ -789,12 +793,12 @@ class We extends d {
789
793
  const ve = {
790
794
  locale: "en"
791
795
  };
792
- class Be {
796
+ class ke {
793
797
  // #endregion
794
798
  constructor(e, i) {
795
799
  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 = {
796
800
  getApiLibrary: async (r) => await this.getApiLibrary(r)
797
- }, te().then((r) => {
801
+ }, Y().then((r) => {
798
802
  r.onWillDisposeModel((s) => {
799
803
  this.disposeForModel(s.uri);
800
804
  });
@@ -870,17 +874,17 @@ class Be {
870
874
  }
871
875
  }
872
876
  async getApiLibrary(e) {
873
- const i = re(e);
877
+ const i = ee(e);
874
878
  return this._localeToApiLibraryPromiseMap.has(i) || this._localeToApiLibraryPromiseMap.set(i, this.fetchApiLibrary(i)), await this._localeToApiLibraryPromiseMap.get(i) ?? [];
875
879
  }
876
880
  // #endregion
877
881
  }
878
882
  export {
879
- We as E,
880
- Be as L,
881
- Ge as a,
882
- je as b,
883
- Le as c,
884
- Ue as f,
885
- Ee as i
883
+ Re as E,
884
+ ke as L,
885
+ We as a,
886
+ Be as b,
887
+ Ue as c,
888
+ Oe as f,
889
+ Ne as i
886
890
  };
@@ -4,7 +4,7 @@ import { IStandaloneThemeService as G } from "monaco-editor/esm/vs/editor/standa
4
4
  import { generateTokensCSSForColorMap as te } from "monaco-editor/esm/vs/editor/common/languages/supports/tokenization";
5
5
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
6
6
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
7
- v4.32.0-next.98 */
7
+ v4.32.0-next.99 */
8
8
  async function ne(l) {
9
9
  return await (await ee()).colorize(l, "arcade", { tabSize: 2 });
10
10
  }
@@ -5,7 +5,7 @@ import "monaco-editor/esm/vs/editor/standalone/common/standaloneTheme";
5
5
  import "monaco-editor/esm/vs/editor/common/languages/supports/tokenization";
6
6
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
7
7
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
8
- v4.32.0-next.98 */
8
+ v4.32.0-next.99 */
9
9
  function g(r, t, n, m) {
10
10
  if (!t)
11
11
  return [];
@@ -1,7 +1,7 @@
1
1
  import { makeRuntime as t } from "@arcgis/lumina";
2
2
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
4
- v4.32.0-next.98 */
4
+ v4.32.0-next.99 */
5
5
  const s = t({ defaultAssetPath: "https://jsdev.arcgis.com/coding-components/next/", hydratedAttribute: "hydrated" }), { customElement: a, getAssetPath: o, setAssetPath: m } = s;
6
6
  export {
7
7
  a as c,
@@ -4,7 +4,7 @@ import { fetchT9nStringsBundle as M } from "@arcgis/components-utils";
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.32/esri/copyright.txt for details.
7
- v4.32.0-next.98 */
7
+ v4.32.0-next.99 */
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 {
@@ -7,7 +7,7 @@ import { Deferred as _, debounce as N } from "@arcgis/components-utils";
7
7
  import { a as d } from "./sql-expr-defaults.js";
8
8
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
9
9
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
10
- v4.32.0-next.98 */
10
+ v4.32.0-next.99 */
11
11
  let h = new _();
12
12
  class k {
13
13
  constructor(e) {
@@ -2,7 +2,7 @@ import { makeT9nController as o } from "@arcgis/components-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.32/esri/copyright.txt for details.
5
- v4.32.0-next.98 */
5
+ v4.32.0-next.99 */
6
6
  const s = o(t);
7
7
  export {
8
8
  s as u
@@ -14,7 +14,7 @@ import { createRef as E, ref as A } from "lit-html/directives/ref.js";
14
14
  import { css as $ } from "@lit/reactive-element/css-tag.js";
15
15
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
16
16
  See https://js.arcgis.com/4.32/esri/copyright.txt for details.
17
- v4.32.0-next.98 */
17
+ v4.32.0-next.99 */
18
18
  const y = (n) => {
19
19
  if (!n.toString().includes("calcite-flow-item"))
20
20
  throw new Error("Renderer must return a JSX node that starts with <calcite-flow-item>");