@arcgis/coding-components 4.32.0-next.58 → 4.32.0-next.60

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 (72) hide show
  1. package/dist/arcgis-coding-components/{PIU3GLSN.js → 27XX6TIU.js} +2 -2
  2. package/dist/arcgis-coding-components/{O362HU2I.js → 3PPWXWTS.js} +2 -2
  3. package/dist/arcgis-coding-components/{NXQWTU6D.js → 3QE4WEJR.js} +2 -2
  4. package/dist/arcgis-coding-components/3RYPISGD.js +6 -0
  5. package/dist/arcgis-coding-components/{EO7FSJ7P.js → 5NCIF6PY.js} +1 -1
  6. package/dist/arcgis-coding-components/{VOT5BYWL.js → 6KDUW6OF.js} +2 -2
  7. package/dist/arcgis-coding-components/{YKUWOITF.js → 77IZXYPY.js} +2 -2
  8. package/dist/arcgis-coding-components/{OYVPJNZK.js → AB3PCHOX.js} +2 -2
  9. package/dist/arcgis-coding-components/{IHBPXULM.js → AJDJLFAA.js} +2 -2
  10. package/dist/arcgis-coding-components/{7LNCLERO.js → BDNQ5Z2B.js} +2 -2
  11. package/dist/arcgis-coding-components/BWMK6GPR.js +6 -0
  12. package/dist/arcgis-coding-components/{YCNTHIAU.js → CFNLWCXB.js} +2 -2
  13. package/dist/arcgis-coding-components/{62SSNNAO.js → DBGTZ257.js} +1 -1
  14. package/dist/arcgis-coding-components/{LQRMBDCH.js → DRB2D4R2.js} +2 -2
  15. package/dist/arcgis-coding-components/{R75ZJURF.js → E6IQK7SV.js} +2 -2
  16. package/dist/arcgis-coding-components/FBKAKDLJ.js +14 -0
  17. package/dist/arcgis-coding-components/FO3FPKTU.js +6 -0
  18. package/dist/arcgis-coding-components/{MWBB5JJ7.js → GRHVEY5C.js} +2 -2
  19. package/dist/arcgis-coding-components/{3KI3B3S6.js → KNO4MLJY.js} +2 -2
  20. package/dist/arcgis-coding-components/{BKAQOBIR.js → LRLYHBR2.js} +2 -2
  21. package/dist/arcgis-coding-components/{4IJ3XFC2.js → MD4W3HAT.js} +2 -2
  22. package/dist/arcgis-coding-components/{PWAEEW7S.js → MDEPKIKV.js} +3 -3
  23. package/dist/arcgis-coding-components/{N6ISXI5Y.js → NEDGH3HO.js} +2 -2
  24. package/dist/arcgis-coding-components/{2L2TJL2K.js → NVS5EIUQ.js} +2 -2
  25. package/dist/arcgis-coding-components/{YA6FFFR2.js → RGXWU6RA.js} +2 -2
  26. package/dist/arcgis-coding-components/{X2X53W36.js → RV5HPJ7R.js} +1 -1
  27. package/dist/arcgis-coding-components/TBNJJAWE.js +6 -0
  28. package/dist/arcgis-coding-components/{ZULSO2FF.js → USHAHMFP.js} +2 -2
  29. package/dist/arcgis-coding-components/{GKFYIM5D.js → UX3FDPMK.js} +2 -2
  30. package/dist/arcgis-coding-components/{D4O6WEO7.js → W3VHE6OK.js} +2 -2
  31. package/dist/arcgis-coding-components/{NIC6H3IU.js → WCXILITC.js} +2 -2
  32. package/dist/arcgis-coding-components/{QUT7CUTS.js → WX4VSC6B.js} +2 -2
  33. package/dist/arcgis-coding-components/YKBBYHQG.js +6 -0
  34. package/dist/arcgis-coding-components/{6LSIDM7X.js → ZFXBOHYK.js} +2 -2
  35. package/dist/arcgis-coding-components/{75US6IWW.js → ZKC5GKT4.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/arcade.worker.js +1 -1
  38. package/dist/arcgis-coding-components/assets/code-editor/sql-expr.worker.js +45 -45
  39. package/dist/chunks/arcade-defaults.js +1 -1
  40. package/dist/chunks/arcade-executor.js +1 -1
  41. package/dist/chunks/arcade-mode.js +1 -1
  42. package/dist/chunks/arcade-service-accessors.js +1 -1
  43. package/dist/chunks/fields.js +1 -1
  44. package/dist/chunks/language-defaults-base.js +135 -144
  45. package/dist/chunks/markdown.js +1 -1
  46. package/dist/chunks/monaco-importer.js +1 -1
  47. package/dist/chunks/runtime.js +1 -1
  48. package/dist/chunks/sql-expr-defaults.js +1 -1
  49. package/dist/chunks/sql-expr-mode.js +1 -1
  50. package/dist/chunks/useT9n.js +1 -1
  51. package/dist/components/arcgis-arcade-editor/customElement.js +1 -1
  52. package/dist/components/arcgis-arcade-results/customElement.js +1 -1
  53. package/dist/components/arcgis-arcade-suggestions/customElement.js +19 -16
  54. package/dist/components/arcgis-code-editor/customElement.js +1 -1
  55. package/dist/components/arcgis-editor-variables/customElement.js +1 -1
  56. package/dist/components/arcgis-language-api-panel/customElement.js +34 -35
  57. package/dist/components/arcgis-sql-expression-editor/customElement.js +1 -1
  58. package/dist/components/arcgis-sql-expression-fields/customElement.js +1 -1
  59. package/dist/docs/api.json +2 -2
  60. package/dist/docs/docs.json +2 -2
  61. package/dist/docs/web-types.json +1 -1
  62. package/dist/index.js +1 -1
  63. package/dist/loader.js +1 -1
  64. package/dist/utils/index.d.ts +1 -1
  65. package/dist/utils/sql-expr-monaco/sql-expr-validation-diagnostic-adapter.d.ts +1 -3
  66. package/package.json +7 -7
  67. package/dist/arcgis-coding-components/3OIXH6J2.js +0 -6
  68. package/dist/arcgis-coding-components/BMSLGLZN.js +0 -16
  69. package/dist/arcgis-coding-components/TTS3GMIW.js +0 -6
  70. package/dist/arcgis-coding-components/XJEM4QTJ.js +0 -6
  71. package/dist/arcgis-coding-components/XWPD74FP.js +0 -6
  72. package/dist/arcgis-coding-components/YAR7YCKS.js +0 -6
@@ -1,109 +1,109 @@
1
- import { newLayersFeatureLayer as b, importRequest as X, newPortalPortalItem as Y, newWebScene as Z, newWebMap as ee } from "@arcgis/core-adapter";
2
- import { p as te, i as ie } from "./monaco-importer.js";
3
- import { isNotNull as C, isNotUndefined as W, addLTRMark as re, setValuesInString as T, normalizeLocale as se } from "@arcgis/components-utils";
4
- import { s as ne, f as oe, a as _, b as ae } from "./fields.js";
5
- import { InsertTextMode as I, InsertTextFormat as M, CompletionItemKind as x } from "vscode-languageserver-types";
6
- import { g as le } from "./runtime.js";
7
- import { filterApiLibraryForContext as ue } from "@arcgis/languages-api-utils";
8
- import { Emitter as $, Uri as A } from "monaco-editor";
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";
5
+ import { InsertTextMode as T, InsertTextFormat as I, CompletionItemKind as M } from "vscode-languageserver-types";
6
+ import { g as ae } from "./runtime.js";
7
+ import { filterApiLibraryForContext as le } from "@arcgis/languages-api-utils";
8
+ import { Emitter as x, Uri as $ } from "monaco-editor";
9
9
  /*!
10
10
  * All material copyright Esri, All Rights Reserved, unless otherwise specified.
11
11
  * See https://js.arcgis.com/4.32/esri/copyright.txt for details.
12
- * v4.32.0-next.58
12
+ * v4.32.0-next.60
13
13
  */
14
- function B(t) {
14
+ function W(t) {
15
15
  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";
16
16
  }
17
- function ce(t) {
17
+ function ue(t) {
18
18
  return !!t && typeof t == "object" && "allLayers" in t && "allTables" in t && typeof t.allLayers == "object" && typeof t.allTables == "object";
19
19
  }
20
- function N(t) {
20
+ function B(t) {
21
21
  return !!t && typeof t == "object" && "declaredClass" in t && typeof t.declaredClass == "string" && (t.declaredClass === "esri.Map" || t.declaredClass === "esri.WebMap" || t.declaredClass === "esri.WebScene");
22
22
  }
23
- function pe(t) {
23
+ function ce(t) {
24
24
  return !!t && typeof t == "object" && "loadAll" in t && typeof t.loadAll == "function";
25
25
  }
26
- function O(t) {
26
+ function N(t) {
27
27
  return !!t && typeof t == "object" && "portalItem" in t && t.portalItem != null;
28
28
  }
29
- function R(t) {
29
+ function O(t) {
30
30
  return !!t && typeof t == "object" && "portalItem" in t && t.portalItem != null;
31
31
  }
32
32
  function g(t) {
33
33
  return !!t && typeof t == "object" && "fields" in t && Array.isArray(t.fields);
34
34
  }
35
- function D(t) {
35
+ function w(t) {
36
36
  return !!t && typeof t == "object" && "url" in t && typeof t.url == "string";
37
37
  }
38
- function he(t) {
39
- return D(t) && /\/(?:featureserver|mapserver)(?:\/|$)/iu.test(t.url);
38
+ function pe(t) {
39
+ return w(t) && /\/(?:featureserver|mapserver)(?:\/|$)/iu.test(t.url);
40
+ }
41
+ function Le(t) {
42
+ return w(t) || g(t) || O(t);
40
43
  }
41
44
  function Ge(t) {
42
- return D(t) || g(t) || R(t);
45
+ return w(t) || g(t) || O(t);
43
46
  }
44
47
  function je(t) {
45
- return D(t) || g(t) || R(t);
46
- }
47
- function Ee(t) {
48
- return O(t) || N(t) || he(t);
48
+ return N(t) || B(t) || pe(t);
49
49
  }
50
- function L(t) {
50
+ function A(t) {
51
51
  return !!t && typeof t == "object" && "declaredClass" in t && t.declaredClass === "esri.layers.support.Subtype";
52
52
  }
53
- function w(t) {
53
+ function D(t) {
54
54
  return !!t && typeof t == "object" && "declaredClass" in t && t.declaredClass === "esri.layers.support.CodedValueDomain";
55
55
  }
56
- function fe(t) {
56
+ function he(t) {
57
57
  return !!t && typeof t == "object" && "declaredClass" in t && t.declaredClass === "esri.layers.support.InheritedDomain";
58
58
  }
59
- function Ue(t) {
59
+ function Ee(t) {
60
60
  return !!t && typeof t == "object" && "id" in t && typeof t.id == "string" && "definitions" in t && typeof t.definitions == "object" && !Array.isArray(t.definitions);
61
61
  }
62
62
  function m(t) {
63
63
  return !!t && typeof t == "object" && "title" in t && typeof t.title == "string";
64
64
  }
65
- function de(t) {
65
+ function fe(t) {
66
66
  return !!t && typeof t == "object" && "url" in t && typeof t.url == "string";
67
67
  }
68
- function q(t) {
68
+ function R(t) {
69
69
  return !!t && typeof t == "object" && "layerId" in t && typeof t.layerId == "number";
70
70
  }
71
71
  function S(t) {
72
72
  return !!t && typeof t == "object" && "typeIdField" in t && "types" in t;
73
73
  }
74
- function G(t) {
74
+ function L(t) {
75
75
  return !!t && typeof t == "object" && "getFieldDomain" in t && typeof t.getFieldDomain == "function";
76
76
  }
77
77
  function f(t) {
78
78
  return !!t && typeof t == "object" && "subtypeField" in t;
79
79
  }
80
- function ye(t) {
80
+ function de(t) {
81
81
  return f(t) && "subtypes" in t;
82
82
  }
83
- function _e(t) {
83
+ function ye(t) {
84
84
  return !!t && typeof t == "object" && "portalItem" in t;
85
85
  }
86
- function be(t) {
87
- return q(t) && "relationships" in t && "url" in t && Array.isArray(t.relationships) && typeof t.url == "string";
86
+ function _e(t) {
87
+ return R(t) && "relationships" in t && "url" in t && Array.isArray(t.relationships) && typeof t.url == "string";
88
88
  }
89
- function me(t) {
89
+ function be(t) {
90
90
  return !!t && typeof t == "object" && "isTable" in t && typeof t.isTable == "boolean";
91
91
  }
92
- function ge(t) {
92
+ function me(t) {
93
93
  return !!t && typeof t == "object" && "load" in t && typeof t.load == "function";
94
94
  }
95
- async function k(t) {
95
+ async function q(t) {
96
96
  if (!t)
97
97
  return null;
98
- let e = null;
99
- return g(t) ? e = t : e = await b(t), ge(e) && await e.load(), e;
98
+ let e;
99
+ return g(t) ? e = t : e = await b(t), me(e) && await e.load(), e;
100
100
  }
101
- async function De(t) {
101
+ async function ge(t) {
102
102
  t += "/layers";
103
- const i = await (await X())(t, { responseType: "json", query: { f: "json" } }), r = t.endsWith("MapServer/layers") ? "data" : "query", s = j(i.data?.layers, r), n = j(i.data?.tables, r);
103
+ 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);
104
104
  return { layers: s, tables: n };
105
105
  }
106
- function j(t, e) {
106
+ function G(t, e) {
107
107
  return t ? t.filter((i) => {
108
108
  switch (i.type) {
109
109
  case "Feature Layer":
@@ -120,7 +120,7 @@ async function we(t, e) {
120
120
  const i = await b({ url: `${t.url}/${e.relatedTableId}` });
121
121
  return await i.load(), i;
122
122
  }
123
- function K(t) {
123
+ function k(t) {
124
124
  return (e, i) => {
125
125
  if (e.type === "oid")
126
126
  return -1;
@@ -141,68 +141,65 @@ function K(t) {
141
141
  return e.name.localeCompare(i.name, "en", { sensitivity: "base" });
142
142
  };
143
143
  }
144
- function E(t, e) {
144
+ function j(t, e) {
145
145
  return t?.every((i) => i.domains?.[e.name]?.type === "inherited") ?? !1;
146
146
  }
147
- const Ce = /^[a-z_$][a-z0-9_$]*$/giu;
148
- function z(t, e = !0) {
149
- return t.match(Ce) ? `${e ? "." : ""}${t}` : `["${t}"]`;
147
+ const De = /^[a-z_$][a-z0-9_$]*$/giu;
148
+ function K(t, e = !0) {
149
+ return t.match(De) ? `${e ? "." : ""}${t}` : `["${t}"]`;
150
150
  }
151
- function H(t, e) {
152
- return t ? `${t}${z(e)}` : e;
151
+ function z(t, e) {
152
+ return t ? `${t}${K(e)}` : e;
153
153
  }
154
- function U(t) {
155
- return _e(t) ? t.portalItem : null;
154
+ function E(t) {
155
+ return ye(t) ? t.portalItem : null;
156
156
  }
157
- function We(t, e, i = !1) {
157
+ function Ue(t, e, i = !1) {
158
158
  let r = e;
159
159
  const s = [], n = [];
160
- return ne(t).forEach((o) => {
161
- let p = `**${o.name}**
162
- ${o.type}`;
163
- o.description && (p += `
164
- '${o.description}`), r && (r += `
160
+ return se(t).forEach((o) => {
161
+ r && (r += `
165
162
 
166
163
  `), r += `**${o.name}** (${o.alias})
167
164
  ${o.type}`, o.description && (r += `
168
165
  '${o.description}`);
169
- const c = oe(o), y = z(o.name, !1), h = _(o);
166
+ const p = ne(o), c = K(o.name, !1), y = _(o);
170
167
  if (s.push({
171
168
  name: o.name,
172
- description: h,
173
- type: c,
169
+ description: y,
170
+ type: p,
174
171
  completion: {
175
172
  label: o.name,
176
- detail: h,
177
- insertText: y,
178
- insertTextMode: I.asIs,
179
- insertTextFormat: M.PlainText,
180
- kind: x.Field
173
+ detail: y,
174
+ insertText: c,
175
+ insertTextMode: T.asIs,
176
+ insertTextFormat: I.PlainText,
177
+ kind: M.Field
181
178
  }
182
179
  }), i) {
183
180
  if (!o.alias || o.alias.toLowerCase() === o.name.toLowerCase())
184
181
  return;
185
- let V = `**${o.alias}**
182
+ let h = `**${o.alias}**
186
183
  ${o.type}`;
187
- o.description && (V += `
184
+ o.description && (h += `
188
185
  '${o.description}`), n.push({
189
186
  name: o.alias,
190
187
  description: o.name,
191
- type: c,
188
+ type: p,
192
189
  completion: {
193
190
  label: o.alias,
194
191
  detail: o.name,
195
- insertText: y,
196
- insertTextMode: I.asIs,
197
- insertTextFormat: M.PlainText,
198
- kind: x.Field,
199
- documentation: { kind: "markdown", value: V }
192
+ insertText: c,
193
+ insertTextMode: T.asIs,
194
+ insertTextFormat: I.PlainText,
195
+ kind: M.Field,
196
+ documentation: { kind: "markdown", value: h }
200
197
  }
201
198
  });
202
199
  }
203
200
  }), [[...s, ...n], r];
204
201
  }
205
- class J {
202
+ class H {
206
203
  constructor(e, i, r) {
207
204
  this._profile = e, this._label = i, this.description = r, this.filterDescription = !1;
208
205
  }
@@ -210,13 +207,13 @@ class J {
210
207
  * Returns the label string.
211
208
  */
212
209
  getLabel() {
213
- return this._label == null ? "" : typeof this._label == "string" ? re(this._label) : T(this._profile?.intlStrings[this._label.code], this._label.formatValues);
210
+ return this._label == null ? "" : typeof this._label == "string" ? ie(this._label) : V(this._profile?.intlStrings[this._label.code], this._label.formatValues);
214
211
  }
215
212
  /**
216
213
  * Returns the description string.
217
214
  */
218
215
  getDescription() {
219
- return this.description == null ? "" : typeof this.description == "string" ? this.description : T(this._profile?.intlStrings[this.description.code], this.description.formatValues);
216
+ return this.description == null ? "" : typeof this.description == "string" ? this.description : V(this._profile?.intlStrings[this.description.code], this.description.formatValues);
220
217
  }
221
218
  /**
222
219
  * Returns true if the item pass the filter test
@@ -225,7 +222,7 @@ class J {
225
222
  return !e || e.test(this.getLabel()) ? !0 : this.filterDescription && e.test(this.getDescription());
226
223
  }
227
224
  }
228
- class F extends J {
225
+ class F extends H {
229
226
  constructor(e) {
230
227
  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;
231
228
  }
@@ -241,7 +238,7 @@ class a extends F {
241
238
  return { type: this.type, name: "", ...this.declaration };
242
239
  }
243
240
  }
244
- class Se extends F {
241
+ class Ce extends F {
245
242
  constructor(e) {
246
243
  super(e), this.type = "array", this.isCollection = !1, this.elementType = e.declaration?.elementType ?? { type: "number", name: "number" };
247
244
  }
@@ -279,7 +276,7 @@ class v extends F {
279
276
  return "";
280
277
  }
281
278
  }
282
- class l extends J {
279
+ class l extends H {
283
280
  constructor(e, i, r = [], s = !1) {
284
281
  super(e, i), this.variables = r, this.isHeader = s, this.type = "group", this.isCollection = !0;
285
282
  }
@@ -306,7 +303,7 @@ class d extends v {
306
303
  }), i;
307
304
  }
308
305
  createVariableInstance(e) {
309
- const i = H(this.snippet, e.name);
306
+ const i = z(this.snippet, e.name);
310
307
  switch (e.type) {
311
308
  case "number":
312
309
  case "text":
@@ -318,13 +315,13 @@ class d extends v {
318
315
  case "knowledgeGraph":
319
316
  return new a({ profile: this._profile, declaration: e, label: i, snippet: i });
320
317
  case "feature":
321
- return new Fe(this, { profile: this._profile, declaration: e, label: i, snippet: i });
318
+ return new Se(this, { profile: this._profile, declaration: e, label: i, snippet: i });
322
319
  case "featureSet":
323
320
  return new P(this, { profile: this._profile, declaration: e, label: i, snippet: i }, [
324
321
  new a({ profile: this._profile, label: i, description: "", snippet: i })
325
322
  ]);
326
323
  case "featureSetCollection":
327
- return new ve(this, {
324
+ return new Fe(this, {
328
325
  profile: this._profile,
329
326
  declaration: e,
330
327
  label: i,
@@ -338,7 +335,7 @@ class d extends v {
338
335
  snippet: i
339
336
  });
340
337
  case "array":
341
- return new Se({
338
+ return new Ce({
342
339
  profile: this._profile,
343
340
  declaration: e,
344
341
  label: i,
@@ -357,7 +354,7 @@ class d extends v {
357
354
  };
358
355
  }
359
356
  }
360
- class Q extends v {
357
+ class J extends v {
361
358
  constructor(e, i, r) {
362
359
  super(e, i), this.relationshipsProperties = r, this._source = null, this._loaded = !1, this._definition = i.declaration?.definition;
363
360
  }
@@ -365,19 +362,19 @@ class Q extends v {
365
362
  return m(this._source) ? this._source.title : "";
366
363
  }
367
364
  get url() {
368
- return de(this._source) ? this._source.url : "";
365
+ return fe(this._source) ? this._source.url : "";
369
366
  }
370
367
  get informationUrl() {
371
- return !this.loaded || !this.url ? null : q(this._source) ? `${this.url}/${this._source.layerId}` : this.url;
368
+ return !this.loaded || !this.url ? null : R(this._source) ? `${this.url}/${this._source.layerId}` : this.url;
372
369
  }
373
370
  get informationType() {
374
371
  return this._profile?.intlStrings.layer ?? "layer";
375
372
  }
376
373
  async loadSource() {
377
- return C(this._loadPromise) && W(this._loadPromise) ? await this._loadPromise : (this._loadPromise = this._loadSource(), await this._loadPromise);
374
+ return C(this._loadPromise) && U(this._loadPromise) ? await this._loadPromise : (this._loadPromise = this._loadSource(), await this._loadPromise);
378
375
  }
379
376
  _getValueSnippet(e) {
380
- return this.type === "feature" ? H(this.snippet, e.name) : e.name;
377
+ return this.type === "feature" ? z(this.snippet, e.name) : e.name;
381
378
  }
382
379
  _getSubtypeOrDomainNameSnippet(e) {
383
380
  return this.type !== "feature" ? null : f(this._source) && e.name === this._source.subtypeField ? `SubtypeName(${this.snippet})` : `DomainName(${this.snippet}, "${e.name}")`;
@@ -392,23 +389,23 @@ class Q extends v {
392
389
  label: r,
393
390
  description: _(e),
394
391
  snippet: r,
395
- icon: ae(e),
392
+ icon: oe(e),
396
393
  filterDescription: !0
397
394
  });
398
395
  }
399
396
  _getDomainDictionary(e) {
400
- 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;
397
+ 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;
401
398
  }
402
399
  _getSubtypeDomainDictionary(e) {
403
400
  if (!f(this._source))
404
401
  return null;
405
- if (!ye(this._source))
402
+ if (!de(this._source))
406
403
  return e.name === this._source.subtypeField ? null : this._getFieldDomainDictionary(e);
407
404
  if (e.name === this._source.subtypeField) {
408
405
  const s = this._createDomainDictionary(e);
409
406
  return s.icon = "subtype", s.variables.push(this._getTypeOrSubtypeDomainGroup(this._source.subtypes, e)), s;
410
407
  }
411
- if (E(this._source.subtypes, e))
408
+ if (j(this._source.subtypes, e))
412
409
  return this._getFieldDomainDictionary(e);
413
410
  const i = this._getDomainValuesGroup(this._source.subtypes, e);
414
411
  if (!i)
@@ -423,7 +420,7 @@ class Q extends v {
423
420
  const s = this._createDomainDictionary(e);
424
421
  return s.variables.push(this._getTypeOrSubtypeDomainGroup(this._source.types, e)), s;
425
422
  }
426
- if (E(this._source.types, e))
423
+ if (j(this._source.types, e))
427
424
  return this._getFieldDomainDictionary(e);
428
425
  const i = this._getDomainValuesGroup(this._source.types, e);
429
426
  if (!i)
@@ -432,10 +429,10 @@ class Q extends v {
432
429
  return r.variables.push(i), r;
433
430
  }
434
431
  _getFieldDomainDictionary(e) {
435
- if (!G(this._source))
432
+ if (!L(this._source))
436
433
  return null;
437
434
  const i = this._source.getFieldDomain(e.name);
438
- if (!w(i))
435
+ if (!D(i))
439
436
  return null;
440
437
  const r = this._getCodedValueDomainGroup(i, {
441
438
  code: "domainvalues"
@@ -443,10 +440,10 @@ class Q extends v {
443
440
  return s.variables.push(r), s;
444
441
  }
445
442
  _getTypeOrSubtypeDomainGroup(e, i) {
446
- if (w(i.domain))
443
+ if (D(i.domain))
447
444
  return this._getCodedValueDomainGroup(i.domain, { code: "subtypes" });
448
445
  const r = e?.map((s) => {
449
- const n = L(s) ? s.code : s.id;
446
+ const n = A(s) ? s.code : s.id;
450
447
  return new a({
451
448
  profile: this._profile,
452
449
  label: `${n}`,
@@ -471,14 +468,8 @@ class Q extends v {
471
468
  _getDomainValuesGroup(e, i) {
472
469
  const r = [];
473
470
  return !e || e.length === 0 || (e.forEach((s) => {
474
- let n = s.domains?.[i.name];
475
- if (!n)
476
- return;
477
- if (fe(n)) {
478
- n = i.domain;
479
- return;
480
- }
481
- if (!w(n))
471
+ const n = s.domains?.[i.name];
472
+ if (!n || he(n) || !D(n))
482
473
  return;
483
474
  const u = _(i), o = this._getCodedValueDomainGroup(n, {
484
475
  code: "domainvaluesfortypeformat",
@@ -486,7 +477,7 @@ class Q extends v {
486
477
  fieldName: u,
487
478
  typeName: s.name
488
479
  }
489
- }), p = L(s) ? s.code : s.id, c = `${p}`, y = `"${p}""`, h = new d(this, {
480
+ }), p = A(s) ? s.code : s.id, c = `${p}`, y = `"${p}""`, h = new d(this, {
490
481
  profile: this._profile,
491
482
  label: c,
492
483
  snippet: y,
@@ -527,12 +518,12 @@ class Q extends v {
527
518
  if (!this.relationshipsProperties?.exposeRelationships || !this._profile?.supportFeatureSetFunctions)
528
519
  return null;
529
520
  const e = this._source;
530
- if (!be(e))
521
+ if (!_e(e))
531
522
  return null;
532
523
  const i = new l(this._profile, { code: "relationships" }), r = await Promise.all(
533
524
  e.relationships.map(async (s) => {
534
525
  const n = await we(e, s);
535
- if (!B(n) || s.relatedTableId === this.relationshipsProperties?.sourceTableId)
526
+ if (!W(n) || s.relatedTableId === this.relationshipsProperties?.sourceTableId)
536
527
  return null;
537
528
  const u = `FeatureSetByRelationshipName(${this.snippet}, "${s.name}")`;
538
529
  return new P(
@@ -552,7 +543,7 @@ class Q extends v {
552
543
  return i.variables = r.filter(C), i.variables.length ? i : null;
553
544
  }
554
545
  }
555
- class Fe extends Q {
546
+ class Se extends J {
556
547
  constructor(e, i) {
557
548
  super(e, i, { exposeRelationships: !0 }), this.type = "feature";
558
549
  }
@@ -563,7 +554,7 @@ class Fe extends Q {
563
554
  if (this.loaded)
564
555
  return this._source;
565
556
  try {
566
- if (this._source = await k(this._definition), !this._source)
557
+ if (this._source = await q(this._definition), !this._source)
567
558
  throw new Error("Invalid definition");
568
559
  const e = m(this._source) ? this._source.title ?? "" : "";
569
560
  this.variables.push(
@@ -577,7 +568,7 @@ class Fe extends Q {
577
568
  ])
578
569
  );
579
570
  const i = new l(this._profile, { code: "values" });
580
- if (this.variables.push(i), me(this._source) && !this._source.isTable) {
571
+ if (this.variables.push(i), be(this._source) && !this._source.isTable) {
581
572
  const s = `Geometry(${this.snippet})`, n = new a({
582
573
  profile: this._profile,
583
574
  declaration: { name: s },
@@ -589,7 +580,7 @@ class Fe extends Q {
589
580
  });
590
581
  i.variables.push(n);
591
582
  }
592
- this._source.fields.sort(K(this._source)).forEach((s) => {
583
+ this._source.fields.sort(k(this._source)).forEach((s) => {
593
584
  i.variables.push(this._getFieldProperty(s));
594
585
  });
595
586
  const r = await this._getRelationshipsProperty();
@@ -605,7 +596,7 @@ class Fe extends Q {
605
596
  return { type: this.type, name: "", ...this.declaration, definition: this._definition };
606
597
  }
607
598
  }
608
- class P extends Q {
599
+ class P extends J {
609
600
  constructor(e, i, r = [], s) {
610
601
  super(e, i, s), this.featureSetSnippets = r, this.type = "featureSet";
611
602
  }
@@ -616,11 +607,11 @@ class P extends Q {
616
607
  if (this.loaded)
617
608
  return this._source;
618
609
  try {
619
- if (this._source = await k(this._definition), !this._source)
610
+ if (this._source = await q(this._definition), !this._source)
620
611
  throw new Error("Invalid definition");
621
612
  this.variables.push(new l(this._profile, this.title, this.featureSetSnippets, !0));
622
613
  const e = new l(this._profile, { code: "fields" });
623
- this.variables.push(e), e.variables = this._source.fields.sort(K(this._source)).map((r) => this._getFieldProperty(r));
614
+ this.variables.push(e), e.variables = this._source.fields.sort(k(this._source)).map((r) => this._getFieldProperty(r));
624
615
  const i = await this._getRelationshipsProperty();
625
616
  i && this.variables.push(i);
626
617
  } catch (e) {
@@ -634,12 +625,12 @@ class P extends Q {
634
625
  return { type: this.type, name: "", ...this.declaration, definition: this._definition };
635
626
  }
636
627
  }
637
- class ve extends v {
628
+ class Fe extends v {
638
629
  constructor(e, i) {
639
630
  super(e, i), this.type = "featureSetCollection", this._featureSetCollections = null, this._loaded = !1, this._definition = i.declaration?.definition;
640
631
  }
641
632
  get informationUrl() {
642
- return !this.loaded || !this._featureSetCollections ? null : typeof this._featureSetCollections.source != "string" ? te(U(this._featureSetCollections.source)) : null;
633
+ return !this.loaded || !this._featureSetCollections ? null : typeof this._featureSetCollections.source != "string" ? ee(E(this._featureSetCollections.source)) : null;
643
634
  }
644
635
  get informationType() {
645
636
  if (!this.loaded || !this._featureSetCollections)
@@ -656,7 +647,7 @@ class ve extends v {
656
647
  }
657
648
  }
658
649
  async loadSource() {
659
- return C(this._loadPromise) && W(this._loadPromise) ? await this._loadPromise : (this._loadPromise = this._loadSource(), await this._loadPromise);
650
+ return C(this._loadPromise) && U(this._loadPromise) ? await this._loadPromise : (this._loadPromise = this._loadSource(), await this._loadPromise);
660
651
  }
661
652
  async _loadSource() {
662
653
  if (this.loaded)
@@ -667,7 +658,7 @@ class ve extends v {
667
658
  const e = typeof this._featureSetCollections.source == "string" ? { code: this._featureSetCollections.source.endsWith("FeatureServer") ? "featureservice" : "mapservice" } : {
668
659
  code: "webmapformat",
669
660
  formatValues: {
670
- webMapTitle: U(this._featureSetCollections.source)?.title || "Untitled map"
661
+ webMapTitle: E(this._featureSetCollections.source)?.title || "Untitled map"
671
662
  }
672
663
  }, i = new l(this._profile, e, [
673
664
  new a({
@@ -686,24 +677,24 @@ class ve extends v {
686
677
  return this._featureSetCollections;
687
678
  }
688
679
  async _featureSetCollectionsFromDefinition() {
689
- return this._definition ? N(this._definition) ? await this._featureSetCollectionFromMap(this._definition) : D(this._definition) ? await this._featureSetCollectionFromUrl(this._definition.url) : O(this._definition) ? await this._featureSetCollectionFromPortalItem(this._definition.portalItem) : null : null;
680
+ 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;
690
681
  }
691
682
  async _featureSetCollectionFromMap(e) {
692
- return pe(e) && await e.loadAll(), await Promise.all(e.tables.map(async (i) => await i.load())), {
683
+ return ce(e) && await e.loadAll(), await Promise.all(e.tables.map(async (i) => await i.load())), {
693
684
  layers: this._convertWebMapLayersToVariables(e.layers),
694
685
  tables: this._convertWebMapLayersToVariables(e.tables, !0),
695
686
  source: e
696
687
  };
697
688
  }
698
689
  async _featureSetCollectionFromPortalItem(e) {
699
- const i = await Y(e);
690
+ const i = await X(e);
700
691
  switch (await i.load(), i.type) {
701
692
  case "Web Map": {
702
- const r = await ee({ portalItem: i });
693
+ const r = await Z({ portalItem: i });
703
694
  return await this._featureSetCollectionFromMap(r);
704
695
  }
705
696
  case "Web Scene": {
706
- const r = await Z({ portalItem: i });
697
+ const r = await Y({ portalItem: i });
707
698
  return await this._featureSetCollectionFromMap(r);
708
699
  }
709
700
  case "Feature Service":
@@ -716,7 +707,7 @@ class ve extends v {
716
707
  let i = e.replace(/\/featureserver\/[0-9]*/iu, "/FeatureServer");
717
708
  if (i = i.replace(/\/mapserver\/[0-9]*/iu, "/MapServer"), i = i.split("?")[0], !i)
718
709
  return null;
719
- const r = await De(i), s = Promise.all(
710
+ const r = await ge(i), s = Promise.all(
720
711
  r.layers.map(async (p) => {
721
712
  const c = await b({ url: `${i}/${p.id}` });
722
713
  return await c.load(), this._createFeatureSetVariable(c);
@@ -732,11 +723,11 @@ class ve extends v {
732
723
  _convertWebMapLayersToVariables(e, i = !1) {
733
724
  const r = [];
734
725
  return e.toArray().reverse().forEach((s) => {
735
- if (B(s)) {
726
+ if (W(s)) {
736
727
  r.push(this._createFeatureSetVariable(s, !0));
737
728
  return;
738
729
  }
739
- if (ce(s)) {
730
+ if (ue(s)) {
740
731
  const n = i ? this._convertWebMapLayersToVariables(s.allTables, !0) : this._convertWebMapLayersToVariables(s.allLayers);
741
732
  r.push(...n);
742
733
  }
@@ -773,7 +764,7 @@ class ve extends v {
773
764
  return { type: this.type, name: "", ...this.declaration, definition: this._definition };
774
765
  }
775
766
  }
776
- class Be extends d {
767
+ class We extends d {
777
768
  constructor(e, i, r = "en") {
778
769
  super(void 0, {
779
770
  profile: null,
@@ -797,15 +788,15 @@ class Be extends d {
797
788
  };
798
789
  }
799
790
  }
800
- const Pe = {
791
+ const ve = {
801
792
  locale: "en"
802
793
  };
803
- class Ne {
794
+ class Be {
804
795
  // #endregion
805
796
  constructor(e, i) {
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 = {
797
+ 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 = {
807
798
  getApiLibrary: async (r) => await this.getApiLibrary(r)
808
- }, ie().then((r) => {
799
+ }, te().then((r) => {
809
800
  r.onWillDisposeModel((s) => {
810
801
  this.disposeForModel(s.uri);
811
802
  });
@@ -818,7 +809,7 @@ class Ne {
818
809
  }, 0));
819
810
  }
820
811
  _getApiKey(e) {
821
- return A.isUri(e) || (e = A.parse(e)), e.toString();
812
+ return $.isUri(e) || (e = $.parse(e)), e.toString();
822
813
  }
823
814
  // #endregion
824
815
  // #region Public methods
@@ -847,7 +838,7 @@ class Ne {
847
838
  * @returns The API context for the model.
848
839
  */
849
840
  getApiContextForModel(e) {
850
- return this._modelToApiContextMap.get(this._getApiKey(e)) ?? Pe;
841
+ return this._modelToApiContextMap.get(this._getApiKey(e)) ?? ve;
851
842
  }
852
843
  /**
853
844
  * Set or update api context for the given model id.
@@ -868,30 +859,30 @@ class Ne {
868
859
  */
869
860
  async getApiLibraryForModel(e) {
870
861
  const i = this.getApiContextForModel(e), r = this.getApiLibrary(i.locale ?? "en");
871
- return (await ue(r, i)).categories;
862
+ return (await le(r, i)).categories;
872
863
  }
873
864
  // #endregion
874
865
  //#region Private methods
875
866
  async fetchApiLibrary(e) {
876
867
  try {
877
- const { apiPath: i, apiPrefix: r } = this._apiConfig, s = le(`${i}/${r}${e}.json`), n = await fetch(s);
868
+ const { apiPath: i, apiPrefix: r } = this._apiConfig, s = ae(`${i}/${r}${e}.json`), n = await fetch(s);
878
869
  return n.ok ? await n.json() : [];
879
870
  } catch {
880
871
  return [];
881
872
  }
882
873
  }
883
874
  async getApiLibrary(e) {
884
- const i = se(e);
875
+ const i = re(e);
885
876
  return this._localeToApiLibraryPromiseMap.has(i) || this._localeToApiLibraryPromiseMap.set(i, this.fetchApiLibrary(i)), await this._localeToApiLibraryPromiseMap.get(i) ?? [];
886
877
  }
887
878
  // #endregion
888
879
  }
889
880
  export {
890
- Be as E,
891
- Ne as L,
892
- je as a,
893
- Ee as b,
894
- Ge as c,
895
- We as f,
896
- Ue as i
881
+ We as E,
882
+ Be as L,
883
+ Ge as a,
884
+ je as b,
885
+ Le as c,
886
+ Ue as f,
887
+ Ee as i
897
888
  };