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

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 (35) hide show
  1. package/dist/cdn/{L5GMK4WW.js → 43C5J4GE.js} +1 -1
  2. package/dist/cdn/{WKATTQP5.js → 4KQVV3YD.js} +1 -1
  3. package/dist/cdn/6IKYN6UN.js +2 -0
  4. package/dist/cdn/{LMWFFLSQ.js → 6LPNGMDE.js} +1 -1
  5. package/dist/cdn/{3FFSPR6G.js → 7FJQFKWF.js} +1 -1
  6. package/dist/cdn/{XHOIOY7C.js → AGTV2YKX.js} +1 -1
  7. package/dist/cdn/{VCJOX5C4.js → BN5UJZOU.js} +1 -1
  8. package/dist/cdn/{GGYZW52W.js → CRHXEUUE.js} +1 -1
  9. package/dist/cdn/{RTYRFD6M.js → E4CYGXC6.js} +1 -1
  10. package/dist/cdn/{M52C3KI5.js → FP7M64L5.js} +1 -1
  11. package/dist/cdn/{TQ6LVLSI.js → JE3AYQH2.js} +4 -4
  12. package/dist/cdn/{NR5L34UX.js → N5BWDIMZ.js} +1 -1
  13. package/dist/cdn/{QKGBTIWT.js → O5LFPM4K.js} +1 -1
  14. package/dist/cdn/{PF3ZBCB7.js → PR7KTMAS.js} +1 -1
  15. package/dist/cdn/{2TNK3TAC.js → Q6573NF7.js} +1 -1
  16. package/dist/cdn/{NOFOW72C.js → T7CCNYHK.js} +1 -1
  17. package/dist/cdn/TOQ2QWTU.js +3 -0
  18. package/dist/cdn/{75LMVVBN.js → TUB3DPGP.js} +1 -1
  19. package/dist/cdn/TUQPDQ74.js +2 -0
  20. package/dist/cdn/{YAYRZ72E.js → VZ6DLSKR.js} +1 -1
  21. package/dist/cdn/{CPS2Z2V6.js → WYJB4DB6.js} +1 -1
  22. package/dist/cdn/{BTI2OYTZ.js → ZXHMUT2I.js} +1 -1
  23. package/dist/cdn/assets/code-editor/sql-expr.worker.js +1 -1
  24. package/dist/cdn/assets/code-editor/sql-layer.worker.js +2726 -2086
  25. package/dist/cdn/index.js +1 -1
  26. package/dist/chunks/language-defaults-base.js +98 -85
  27. package/dist/chunks/oracle.js +218 -0
  28. package/dist/chunks/sql-layer-mode.js +59 -51
  29. package/dist/components/arcgis-sql-layer-editor/customElement.js +42 -37
  30. package/dist/docs/api.json +1 -1
  31. package/dist/docs/docs.json +1 -1
  32. package/dist/docs/web-types.json +1 -1
  33. package/package.json +5 -5
  34. package/dist/cdn/5E3EYAL3.js +0 -3
  35. package/dist/cdn/BU4MIL63.js +0 -2
package/dist/cdn/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{K as s,w as e}from"./SMZ3LNZE.js";import"./BFPEJYVB.js";import"./H6RQVSYM.js";var i=e(s,{"arcgis-arcade-coding-assistant":[()=>import("./2TNK3TAC.js"),"appVersion,closed,closePanel:,diagnostics:,disableQuestionAnswerLogging,editorRef:,feedbackServiceUrl,helpBase,insertText:,portalUrl,promptingEnabled,serviceUrl;destroy,openPrompt"],"arcgis-arcade-debugger-console":[()=>import("./GGYZW52W.js"),"debuggerStore:,modelId"],"arcgis-arcade-debugger-output":[()=>import("./CPRY6A4M.js"),"debuggerStore:,outputTitle,result:"],"arcgis-arcade-editor":[()=>import("./3FFSPR6G.js"),"arcadeAssistant:,customPanels:,disableAssistant,editorInstance:,editorOptions:,enableDebugger,externalExecutor:,hideDocumentationActions,hideSideBar,messageOverrides:,messages:,openedSidePanel,profile:,script,sideActionBarExpanded,snippets:,suggestions:,testData:;getTestResult,openArcadeAssistant,setFocus"],"arcgis-arcade-results":[()=>import("./GCEYNSEX.js"),"consoleLogs:,hideHeader,loading,openedResultPanel,result:"],"arcgis-arcade-suggestions":[()=>import("./M52C3KI5.js"),"closed,suggestions:"],"arcgis-code-editor":[()=>import("./NR5L34UX.js"),"editorInstance:,editorOptions:,language,modelId,value;insertSnippet,insertText,setFocus"],"arcgis-code-editor-shell":[()=>import("./IVUY4N4B.js")],"arcgis-code-viewer":[()=>import("./NOFOW72C.js"),"language,lineNumbers,round"],"arcgis-editor-variables":[()=>import("./ILVYWJS4.js"),"closed,heading,hideDescriptions,loading,messageOverrides:,modelId,variable:"],"arcgis-language-api-panel":[()=>import("./LMWFFLSQ.js"),"apiLibrary:,closed,hideDocumentationActions,languageId,loading"],"arcgis-sql-expression-editor":[()=>import("./RTYRFD6M.js"),"hideDescriptionsInFieldsPanel,hideSideBar,messageOverrides:,messages:,profile:,script;setFocus"],"arcgis-sql-layer-editor":[()=>import("./5E3EYAL3.js"),"editorInstance:,editorOptions:,hideSideBar,messageOverrides:,messages:,openedSidePanel,profile:,script;setFocus"]});i({resourcesUrl:import.meta.url});var r=new CSSStyleSheet;r.replaceSync("@layer{:not([hydrated]):is(arcgis-arcade-editor,arcgis-code-editor,arcgis-code-editor-shell,arcgis-code-viewer,arcgis-sql-expression-editor,arcgis-sql-layer-editor){visibility:hidden}}");document.adoptedStyleSheets=[...document.adoptedStyleSheets,r];window.$arcgis||Object.defineProperty(window,"$arcgis",{configurable:!1,enumerable:!0,writable:!1,value:{}}),((a,r)=>{a.t=(c,...x)=>Promise.all(x.map(x=>x.then?x:(!a?.forceESM&&a?.import||(x=>import(x+".js").then(m=>m.default??m)))("@arcgis/core/"+x))).then(c);r.p=a.t(([m])=>{r.t=m.trackAccess;r.o=m.createObservable;r.c=m.createTrackingTarget;r.r=m.runTracked},"applications/Components/reactiveUtils")})($arcgis,s)
2
+ import{K as s,w as e}from"./SMZ3LNZE.js";import"./BFPEJYVB.js";import"./H6RQVSYM.js";var i=e(s,{"arcgis-arcade-coding-assistant":[()=>import("./Q6573NF7.js"),"appVersion,closed,closePanel:,diagnostics:,disableQuestionAnswerLogging,editorRef:,feedbackServiceUrl,helpBase,insertText:,portalUrl,promptingEnabled,serviceUrl;destroy,openPrompt"],"arcgis-arcade-debugger-console":[()=>import("./CRHXEUUE.js"),"debuggerStore:,modelId"],"arcgis-arcade-debugger-output":[()=>import("./CPRY6A4M.js"),"debuggerStore:,outputTitle,result:"],"arcgis-arcade-editor":[()=>import("./7FJQFKWF.js"),"arcadeAssistant:,customPanels:,disableAssistant,editorInstance:,editorOptions:,enableDebugger,externalExecutor:,hideDocumentationActions,hideSideBar,messageOverrides:,messages:,openedSidePanel,profile:,script,sideActionBarExpanded,snippets:,suggestions:,testData:;getTestResult,openArcadeAssistant,setFocus"],"arcgis-arcade-results":[()=>import("./GCEYNSEX.js"),"consoleLogs:,hideHeader,loading,openedResultPanel,result:"],"arcgis-arcade-suggestions":[()=>import("./FP7M64L5.js"),"closed,suggestions:"],"arcgis-code-editor":[()=>import("./N5BWDIMZ.js"),"editorInstance:,editorOptions:,language,modelId,value;insertSnippet,insertText,setFocus"],"arcgis-code-editor-shell":[()=>import("./IVUY4N4B.js")],"arcgis-code-viewer":[()=>import("./T7CCNYHK.js"),"language,lineNumbers,round"],"arcgis-editor-variables":[()=>import("./ILVYWJS4.js"),"closed,heading,hideDescriptions,loading,messageOverrides:,modelId,variable:"],"arcgis-language-api-panel":[()=>import("./6LPNGMDE.js"),"apiLibrary:,closed,hideDocumentationActions,languageId,loading"],"arcgis-sql-expression-editor":[()=>import("./E4CYGXC6.js"),"hideDescriptionsInFieldsPanel,hideSideBar,messageOverrides:,messages:,profile:,script;setFocus"],"arcgis-sql-layer-editor":[()=>import("./TOQ2QWTU.js"),"editorInstance:,editorOptions:,hideSideBar,messageOverrides:,messages:,openedSidePanel,profile:,script;setFocus"]});i({resourcesUrl:import.meta.url});var r=new CSSStyleSheet;r.replaceSync("@layer{:not([hydrated]):is(arcgis-arcade-editor,arcgis-code-editor,arcgis-code-editor-shell,arcgis-code-viewer,arcgis-sql-expression-editor,arcgis-sql-layer-editor){visibility:hidden}}");document.adoptedStyleSheets=[...document.adoptedStyleSheets,r];window.$arcgis||Object.defineProperty(window,"$arcgis",{configurable:!1,enumerable:!0,writable:!1,value:{}}),((a,r)=>{a.t=(c,...x)=>Promise.all(x.map(x=>x.then?x:(!a?.forceESM&&a?.import||(x=>import(x+".js").then(m=>m.default??m)))("@arcgis/core/"+x))).then(c);r.p=a.t(([m])=>{r.t=m.trackAccess;r.o=m.createObservable;r.c=m.createTrackingTarget;r.r=m.runTracked},"applications/Components/reactiveUtils")})($arcgis,s)
@@ -1,14 +1,14 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import { l as w, j as se, o as ae, p as oe, q as ne, r as le, s as ue, t as J, u as d, v as Z, w as ce, x as pe, y as O, z as he, A as de, B as fe, C as D, D as R, E as T, F as me, G as F, H as N, I as _e, n as ye } from "./utils.js";
2
+ import { l as D, j as se, o as ae, p as oe, q as ne, r as le, s as ue, t as J, u as f, v as X, w as ce, x as pe, y as U, z as he, A as de, B as fe, C as w, D as R, E as T, F as _e, G as F, H as N, I as me, n as ye } from "./utils.js";
3
3
  import { p as be } from "./utilities.js";
4
4
  import ge from "@arcgis/core/portal/PortalItem.js";
5
- import we from "@arcgis/core/WebMap.js";
6
- import De from "@arcgis/core/WebScene.js";
5
+ import De from "@arcgis/core/WebMap.js";
6
+ import we from "@arcgis/core/WebScene.js";
7
7
  import P from "@arcgis/core/layers/FeatureLayer.js";
8
8
  import { getDeclaredVoxelMembers as Se, getDeclaredPixelMembers as Ie } from "@arcgis/core/applications/Components/arcadeEditorUtils.js";
9
- import { isNotNull as _, isNotUndefined as I } from "@arcgis/toolkit/predicate";
9
+ import { isNotNull as m, isNotUndefined as I } from "@arcgis/toolkit/predicate";
10
10
  import { addLtrMark as Ce, setValuesInString as B } from "@arcgis/toolkit/string";
11
- import { s as C, f as X, a as Y, b as S, m as Fe } from "./fields.js";
11
+ import { s as C, f as Y, a as Z, b as S, m as Fe } from "./fields.js";
12
12
  import { CompletionItemKind as x, InsertTextFormat as V, InsertTextMode as M } from "vscode-languageserver-types";
13
13
  import { log as c } from "@arcgis/toolkit/log";
14
14
  import ve from "@arcgis/core/core/Error.js";
@@ -58,7 +58,7 @@ function Le(s) {
58
58
  return "string";
59
59
  }
60
60
  }
61
- function $e(s) {
61
+ function Ee(s) {
62
62
  return {
63
63
  fields: s.fields.map((e) => ({
64
64
  name: e.name,
@@ -71,7 +71,7 @@ function $e(s) {
71
71
  function W(s) {
72
72
  return typeof s?.query == "object" && s.query ? s.query : {};
73
73
  }
74
- class Ee {
74
+ class $e {
75
75
  constructor(e) {
76
76
  this.itemId = e.itemId, this.portal = e.portal, this.serviceUrl = e.serviceUrl, this._requestOptions = e.requestOptions;
77
77
  }
@@ -123,7 +123,7 @@ class Ee {
123
123
  }
124
124
  }
125
125
  );
126
- return $e(i);
126
+ return Ee(i);
127
127
  }
128
128
  get _datastoreUrl() {
129
129
  return v(this.serviceUrl, "datastores", encodeURIComponent(this.itemId));
@@ -155,7 +155,8 @@ const Ae = {
155
155
  ansi: async () => await Promise.resolve(Ae),
156
156
  bigquery: async () => (await import("./bigquery.js")).bigqueryDialect,
157
157
  postgres: async () => (await import("./postgres.js")).postgresDialect,
158
- sqlServer: async () => (await import("./sqlServer.js")).sqlServerDialect
158
+ sqlServer: async () => (await import("./sqlServer.js")).sqlServerDialect,
159
+ oracle: async () => (await import("./oracle.js")).oracleDialect
159
160
  };
160
161
  async function Ge(s) {
161
162
  const e = H.get(s);
@@ -164,7 +165,8 @@ async function Ge(s) {
164
165
  const t = qe[s]();
165
166
  return H.set(s, t), await t;
166
167
  }
167
- const Ue = [
168
+ const Oe = [
169
+ "WITH",
168
170
  "SELECT",
169
171
  "FROM",
170
172
  "WHERE",
@@ -172,6 +174,13 @@ const Ue = [
172
174
  "BY",
173
175
  "HAVING",
174
176
  "ORDER",
177
+ "OFFSET",
178
+ "FETCH",
179
+ "FIRST",
180
+ "NEXT",
181
+ "ROW",
182
+ "ROWS",
183
+ "ONLY",
175
184
  "LIMIT",
176
185
  "DISTINCT",
177
186
  "AS",
@@ -190,17 +199,20 @@ const Ue = [
190
199
  "IN",
191
200
  "IS",
192
201
  "LIKE",
202
+ "ESCAPE",
193
203
  "BETWEEN",
194
204
  "NULL",
195
205
  "TRUE",
196
206
  "FALSE",
207
+ "DATE",
208
+ "TIMESTAMP",
197
209
  "ASC",
198
210
  "DESC"
199
- ], Oe = ["<=", ">=", "<>", "!=", "=", "<", ">", "+", "-", "*", "/", "%", "||"], Re = (s, e = {}) => {
200
- const t = new Set(e.baseKeywords ?? Ue);
211
+ ], Ue = ["<=", ">=", "<>", "!=", "=", "<", ">", "+", "-", "*", "/", "%", "||"], Re = (s, e = {}) => {
212
+ const t = new Set(e.baseKeywords ?? Oe);
201
213
  for (const r of s.keywords)
202
214
  t.add(r.toUpperCase());
203
- const i = new Set(e.baseOperators ?? Oe);
215
+ const i = new Set(e.baseOperators ?? Ue);
204
216
  for (const r of s.operators)
205
217
  i.add(r);
206
218
  return {
@@ -209,15 +221,16 @@ const Ue = [
209
221
  operators: Array.from(i),
210
222
  specialChars: s.specialChars
211
223
  };
212
- }, m = {
224
+ }, p = {
213
225
  sqlServer: "sql-layer-sql-server",
214
226
  postgres: "sql-layer-postgres",
215
- bigquery: "sql-layer-bigquery"
216
- }, K = m.postgres, Ne = {
217
- [m.sqlServer]: "sqlServer",
218
- [m.postgres]: "postgres",
219
- [m.bigquery]: "bigquery"
220
- // snowflake and oracle should be prioritized next
227
+ bigquery: "sql-layer-bigquery",
228
+ oracle: "sql-layer-oracle"
229
+ }, K = p.postgres, Ne = {
230
+ [p.sqlServer]: "sqlServer",
231
+ [p.postgres]: "postgres",
232
+ [p.bigquery]: "bigquery",
233
+ [p.oracle]: "oracle"
221
234
  };
222
235
  function Be(s) {
223
236
  return Ne[s];
@@ -227,7 +240,7 @@ async function ke(s) {
227
240
  }
228
241
  const ze = /^[A-Za-z_][A-Za-z0-9_$]*$/u;
229
242
  function We(s) {
230
- return s === "esriDBMS_PostgreSQL" ? K : s === "esriDBMS_SQLServer" ? m.sqlServer : K;
243
+ return s === "esriDBMS_PostgreSQL" ? K : s === "esriDBMS_SQLServer" ? p.sqlServer : s === "esriDBMS_BigQuery" ? p.bigquery : s === "esriDBMS_Oracle" ? p.oracle : K;
231
244
  }
232
245
  function vt(s) {
233
246
  return s.trim().toLowerCase();
@@ -265,7 +278,7 @@ function L(s) {
265
278
  return -1;
266
279
  if (t.type === "oid")
267
280
  return 1;
268
- if (D(s)) {
281
+ if (w(s)) {
269
282
  if (e.name === s.subtypeField)
270
283
  return -1;
271
284
  if (t.name === s.subtypeField)
@@ -283,30 +296,30 @@ function L(s) {
283
296
  function Q(s, e) {
284
297
  return s?.every((t) => t.domains?.[e.name]?.type === "inherited") ?? !1;
285
298
  }
286
- const Ze = /^[a-z_$][a-z0-9_$]*$/giu;
287
- function $(s, e = !0) {
288
- return s.match(Ze) ? `${e ? "." : ""}${s}` : `["${s}"]`;
299
+ const Xe = /^[a-z_$][a-z0-9_$]*$/giu;
300
+ function E(s, e = !0) {
301
+ return s.match(Xe) ? `${e ? "." : ""}${s}` : `["${s}"]`;
289
302
  }
290
303
  function te(s, e) {
291
- return s ? `${s}${$(e)}` : e;
304
+ return s ? `${s}${E(e)}` : e;
292
305
  }
293
306
  function j(s) {
294
307
  return he(s) ? s.portalItem : null;
295
308
  }
296
- function Xe(s, e) {
309
+ function Ye(s, e) {
297
310
  return e ? s?.nullable ?? "nullable" : s?.notnull ?? "not nullable";
298
311
  }
299
312
  function Pt(s, e, t) {
300
313
  const { includeAliases: i = !1, supportGeometryFields: r = !1 } = t ?? {};
301
314
  let a = e;
302
- const n = [], h = [];
315
+ const n = [], d = [];
303
316
  return C(s, { supportGeometry: r }).forEach((o) => {
304
317
  a && (a += `
305
318
 
306
319
  `), a += `**${o.name}** (${o.alias})
307
320
  ${o.type}`, o.description && (a += `
308
321
  '${o.description}`);
309
- const g = Y(o, { supportGeometryFields: r }), f = $(o.name, !1), G = S(o);
322
+ const g = Z(o, { supportGeometryFields: r }), _ = E(o.name, !1), G = S(o);
310
323
  if (n.push({
311
324
  name: o.name,
312
325
  description: G,
@@ -314,7 +327,7 @@ ${o.type}`, o.description && (a += `
314
327
  completion: {
315
328
  label: o.name,
316
329
  detail: G,
317
- insertText: f,
330
+ insertText: _,
318
331
  insertTextMode: M.asIs,
319
332
  insertTextFormat: V.PlainText,
320
333
  kind: x.Field
@@ -322,25 +335,25 @@ ${o.type}`, o.description && (a += `
322
335
  }), i) {
323
336
  if (!o.alias || o.alias.toLowerCase() === o.name.toLowerCase())
324
337
  return;
325
- let U = `**${o.alias}**
338
+ let O = `**${o.alias}**
326
339
  ${o.type}`;
327
- o.description && (U += `
328
- '${o.description}`), h.push({
340
+ o.description && (O += `
341
+ '${o.description}`), d.push({
329
342
  name: o.alias,
330
343
  description: o.name,
331
344
  type: g,
332
345
  completion: {
333
346
  label: o.alias,
334
347
  detail: o.name,
335
- insertText: f,
348
+ insertText: _,
336
349
  insertTextMode: M.asIs,
337
350
  insertTextFormat: V.PlainText,
338
351
  kind: x.Field,
339
- documentation: { kind: "markdown", value: U }
352
+ documentation: { kind: "markdown", value: O }
340
353
  }
341
354
  });
342
355
  }
343
- }), [[...n, ...h], a];
356
+ }), [[...n, ...d], a];
344
357
  }
345
358
  function xt(s, e) {
346
359
  let t = e;
@@ -358,7 +371,7 @@ ${r.type}`, r.name && (t += `
358
371
  completion: {
359
372
  label: r.name,
360
373
  detail: r.name,
361
- insertText: $(r.name, !1),
374
+ insertText: E(r.name, !1),
362
375
  insertTextMode: M.asIs,
363
376
  insertTextFormat: V.PlainText,
364
377
  kind: x.Field
@@ -389,12 +402,12 @@ class ie {
389
402
  return !e || e.test(this.getLabel()) ? !0 : this.filterDescription && e.test(this.getDescription());
390
403
  }
391
404
  }
392
- class E extends ie {
405
+ class $ extends ie {
393
406
  constructor(e) {
394
407
  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;
395
408
  }
396
409
  }
397
- class l extends E {
410
+ class l extends $ {
398
411
  constructor(e) {
399
412
  super(e), this.type = "text", this.isCollection = !1, this.type = e.declaration?.type ?? "text";
400
413
  }
@@ -405,7 +418,7 @@ class l extends E {
405
418
  return { type: this.type, name: "", ...this.declaration };
406
419
  }
407
420
  }
408
- class Ye extends E {
421
+ class Ze extends $ {
409
422
  constructor(e) {
410
423
  super(e), this.type = "array", this.isCollection = !1, this.elementType = e.declaration?.elementType ?? { type: "number", name: "number" };
411
424
  }
@@ -416,7 +429,7 @@ class Ye extends E {
416
429
  return { type: this.type, elementType: this.elementType, name: "", ...this.declaration };
417
430
  }
418
431
  }
419
- class b extends E {
432
+ class b extends $ {
420
433
  constructor(e, t) {
421
434
  super(t), this.owner = e, this.isCollection = !0, this._loaded = !0, this.variables = [];
422
435
  }
@@ -506,7 +519,7 @@ class y extends b {
506
519
  snippet: t
507
520
  });
508
521
  case "array":
509
- return new Ye({
522
+ return new Ze({
510
523
  profile: this._profile,
511
524
  declaration: e,
512
525
  label: t,
@@ -532,7 +545,7 @@ class re extends b {
532
545
  super(e, t), this.relationshipsProperties = i, this._source = null, this._loaded = !1, this._definition = t.declaration?.definition;
533
546
  }
534
547
  get title() {
535
- return d(this._source) ? this._source.title ?? "" : "";
548
+ return f(this._source) ? this._source.title ?? "" : "";
536
549
  }
537
550
  get url() {
538
551
  return de(this._source) ? this._source.url ?? "" : "";
@@ -544,13 +557,13 @@ class re extends b {
544
557
  return this._profile?.intlStrings.layer ?? "layer";
545
558
  }
546
559
  async loadSource() {
547
- return _(this._loadPromise) && I(this._loadPromise) ? await this._loadPromise : (this._loadPromise = this._loadSource(), await this._loadPromise);
560
+ return m(this._loadPromise) && I(this._loadPromise) ? await this._loadPromise : (this._loadPromise = this._loadSource(), await this._loadPromise);
548
561
  }
549
562
  _getValueSnippet(e) {
550
563
  return ["feature", "voxel", "pixel"].includes(this.type) ? te(this.snippet, e.name) : e.name;
551
564
  }
552
565
  _getSubtypeOrDomainNameSnippet(e) {
553
- return this.type !== "feature" ? null : D(this._source) && e.name === this._source.subtypeField ? `SubtypeName(${this.snippet})` : `DomainName(${this.snippet}, "${e.name}")`;
566
+ return this.type !== "feature" ? null : w(this._source) && e.name === this._source.subtypeField ? `SubtypeName(${this.snippet})` : `DomainName(${this.snippet}, "${e.name}")`;
554
567
  }
555
568
  _getFieldProperty(e, t) {
556
569
  const i = this._getDomainDictionary(e);
@@ -562,7 +575,7 @@ class re extends b {
562
575
  label: r,
563
576
  description: S(e),
564
577
  snippet: r,
565
- icon: X(e, t),
578
+ icon: Y(e, t),
566
579
  filterDescription: !0
567
580
  });
568
581
  }
@@ -578,12 +591,12 @@ class re extends b {
578
591
  });
579
592
  }
580
593
  _getDomainDictionary(e) {
581
- return R(this._source) ? D(this._source) && this._source.subtypeField ? this._getSubtypeDomainDictionary(e) : T(this._source) && this._source.typeIdField ? this._getFeatureTypeDomainDictionary(e) : this._getFieldDomainDictionary(e) : null;
594
+ return R(this._source) ? w(this._source) && this._source.subtypeField ? this._getSubtypeDomainDictionary(e) : T(this._source) && this._source.typeIdField ? this._getFeatureTypeDomainDictionary(e) : this._getFieldDomainDictionary(e) : null;
582
595
  }
583
596
  _getSubtypeDomainDictionary(e) {
584
- if (!D(this._source))
597
+ if (!w(this._source))
585
598
  return null;
586
- if (!me(this._source))
599
+ if (!_e(this._source))
587
600
  return e.name === this._source.subtypeField ? null : this._getFieldDomainDictionary(e);
588
601
  if (e.name === this._source.subtypeField) {
589
602
  const r = this._createDomainDictionary(e);
@@ -653,22 +666,22 @@ class re extends b {
653
666
  const i = [];
654
667
  return !e || e.length === 0 || (e.forEach((r) => {
655
668
  const a = r.domains?.[t.name];
656
- if (!a || _e(a) || !F(a))
669
+ if (!a || me(a) || !F(a))
657
670
  return;
658
- const n = S(t), h = this._getCodedValueDomainGroup(a, {
671
+ const n = S(t), d = this._getCodedValueDomainGroup(a, {
659
672
  code: "domainvaluesfortypeformat",
660
673
  formatValues: {
661
674
  fieldName: n,
662
675
  typeName: r.name
663
676
  }
664
- }), p = N(r) ? r.code : r.id, o = `${p}`, g = `"${p}""`, f = new y(this, {
677
+ }), h = N(r) ? r.code : r.id, o = `${h}`, g = `"${h}""`, _ = new y(this, {
665
678
  profile: this._profile,
666
679
  label: o,
667
680
  snippet: g,
668
681
  description: r.name,
669
682
  declaration: { name: n }
670
683
  });
671
- f.variables = [h], i.push(f);
684
+ _.variables = [d], i.push(_);
672
685
  }), !i.length) ? null : new u(this._profile, { code: "domainvaluesbysubtypes" }, i);
673
686
  }
674
687
  _createDomainDictionary(e) {
@@ -724,7 +737,7 @@ class re extends b {
724
737
  );
725
738
  }) ?? []
726
739
  );
727
- return t.variables = i.filter(_), t.variables.length ? t : null;
740
+ return t.variables = i.filter(m), t.variables.length ? t : null;
728
741
  }
729
742
  }
730
743
  class A extends re {
@@ -732,7 +745,7 @@ class A extends re {
732
745
  super(e, t, r), this.type = i;
733
746
  }
734
747
  get title() {
735
- return d(this._source) ? this._source.title ?? "" : { code: this.type };
748
+ return f(this._source) ? this._source.title ?? "" : { code: this.type };
736
749
  }
737
750
  toProfileVariableDefinition() {
738
751
  return { type: this.type, name: "", ...this.declaration };
@@ -746,9 +759,9 @@ class et extends A {
746
759
  if (this.loaded)
747
760
  return this._source;
748
761
  try {
749
- if (this._source = await Z(this._definition), !this._source)
762
+ if (this._source = await X(this._definition), !this._source)
750
763
  throw new Error("Invalid definition");
751
- const e = d(this._source) ? this._source.title ?? "" : "";
764
+ const e = f(this._source) ? this._source.title ?? "" : "";
752
765
  this.variables.push(
753
766
  new u(this._profile, e, [
754
767
  new l({
@@ -798,7 +811,7 @@ class tt extends A {
798
811
  throw new Error("Invalid definition - not a VoxelLayer");
799
812
  if (await this._definition.load(), this._source = this._definition, !this._source)
800
813
  throw new Error("Invalid definition");
801
- const e = d(this._source) ? this._source.title ?? "" : "";
814
+ const e = f(this._source) ? this._source.title ?? "" : "";
802
815
  this.variables.push(
803
816
  new u(this._profile, e, [
804
817
  new l({
@@ -831,11 +844,11 @@ class it extends A {
831
844
  if (this.loaded)
832
845
  return this._source;
833
846
  try {
834
- if (!O(this._definition))
847
+ if (!U(this._definition))
835
848
  throw new Error("Invalid definition - not an ImageryLayer");
836
849
  if (await this._definition.load(), this._source = this._definition, !this._source)
837
850
  throw new Error("Invalid definition");
838
- const e = d(this._source) ? this._source.title ?? "" : "";
851
+ const e = f(this._source) ? this._source.title ?? "" : "";
839
852
  this.variables.push(
840
853
  new u(this._profile, e, [
841
854
  new l({
@@ -847,7 +860,7 @@ class it extends A {
847
860
  ])
848
861
  );
849
862
  const t = new u(this._profile, { code: "values" });
850
- if (this.variables.push(t), !O(this._source))
863
+ if (this.variables.push(t), !U(this._source))
851
864
  throw new Error("Invalid definition - not an ImageryLayer");
852
865
  (await Ie(this._source)).forEach((r) => {
853
866
  t.variables.push(this._getMemberProperty(r));
@@ -865,13 +878,13 @@ class q extends re {
865
878
  super(e, t, r), this.featureSetSnippets = i, this.type = "featureSet";
866
879
  }
867
880
  get title() {
868
- return d(this._source) ? this._source.title ?? "" : { code: "featureset" };
881
+ return f(this._source) ? this._source.title ?? "" : { code: "featureset" };
869
882
  }
870
883
  async _loadSource() {
871
884
  if (this.loaded)
872
885
  return this._source;
873
886
  try {
874
- if (this._source = await Z(this._definition), !this._source)
887
+ if (this._source = await X(this._definition), !this._source)
875
888
  throw new Error("Invalid definition");
876
889
  this.variables.push(new u(this._profile, this.title, this.featureSetSnippets, !0));
877
890
  const e = new u(this._profile, { code: "fields" });
@@ -915,7 +928,7 @@ class rt extends b {
915
928
  }
916
929
  }
917
930
  async loadSource() {
918
- return _(this._loadPromise) && I(this._loadPromise) ? await this._loadPromise : (this._loadPromise = this._loadSource(), await this._loadPromise);
931
+ return m(this._loadPromise) && I(this._loadPromise) ? await this._loadPromise : (this._loadPromise = this._loadSource(), await this._loadPromise);
919
932
  }
920
933
  async _loadSource() {
921
934
  if (this.loaded)
@@ -960,11 +973,11 @@ class rt extends b {
960
973
  const t = new ge(e);
961
974
  switch (await t.load(), t.type) {
962
975
  case "Web Map": {
963
- const i = new we({ portalItem: t });
976
+ const i = new De({ portalItem: t });
964
977
  return await this._featureSetCollectionFromMap(i);
965
978
  }
966
979
  case "Web Scene": {
967
- const i = new De({ portalItem: t });
980
+ const i = new we({ portalItem: t });
968
981
  return await this._featureSetCollectionFromMap(i);
969
982
  }
970
983
  case "Feature Service":
@@ -978,17 +991,17 @@ class rt extends b {
978
991
  if (t = t?.replace(/\/mapserver\/[0-9]*/iu, "/MapServer"), t = t?.split("?")[0], !t)
979
992
  return null;
980
993
  const i = await ue(t), r = Promise.all(
981
- i.layers.map(async (p) => {
982
- const o = new P({ url: `${t}/${p.id}` });
994
+ i.layers.map(async (h) => {
995
+ const o = new P({ url: `${t}/${h.id}` });
983
996
  return await o.load(), this._createFeatureSetVariable(o);
984
997
  })
985
998
  ), a = Promise.all(
986
- i.tables.map(async (p) => {
987
- const o = new P({ url: `${t}/${p.id}` });
999
+ i.tables.map(async (h) => {
1000
+ const o = new P({ url: `${t}/${h.id}` });
988
1001
  return await o.load(), this._createFeatureSetVariable(o);
989
1002
  })
990
- ), [n, h] = await Promise.all([r, a]);
991
- return { layers: n, tables: h, source: t };
1003
+ ), [n, d] = await Promise.all([r, a]);
1004
+ return { layers: n, tables: d, source: t };
992
1005
  }
993
1006
  _convertWebMapLayersToVariables(e) {
994
1007
  const t = [];
@@ -1044,8 +1057,8 @@ class st extends b {
1044
1057
  _getSerializedDefinition() {
1045
1058
  const e = this.declaration.definition;
1046
1059
  if (e)
1047
- return w(e) ? e : this._serializeDefinitionFromInstance(e);
1048
- if (w(this._definition))
1060
+ return D(e) ? e : this._serializeDefinitionFromInstance(e);
1061
+ if (D(this._definition))
1049
1062
  return this._definition;
1050
1063
  if (this._catalogDatastore)
1051
1064
  return this._serializeDefinitionFromInstance(this._catalogDatastore);
@@ -1053,7 +1066,7 @@ class st extends b {
1053
1066
  return this._serializeDefinitionFromInstance(this._definition);
1054
1067
  }
1055
1068
  async loadSource() {
1056
- return _(this._loadPromise) && I(this._loadPromise) ? await this._loadPromise : (this._loadPromise = this._loadSource(), await this._loadPromise);
1069
+ return m(this._loadPromise) && I(this._loadPromise) ? await this._loadPromise : (this._loadPromise = this._loadSource(), await this._loadPromise);
1057
1070
  }
1058
1071
  async _loadSource() {
1059
1072
  if (this.loaded)
@@ -1061,7 +1074,7 @@ class st extends b {
1061
1074
  try {
1062
1075
  if (!this._definition)
1063
1076
  throw new Error("No definition provided");
1064
- w(this._definition) ? this._catalogDatastore = await this._dataCatalogDatastoreFromDefinition(this._definition) : this._catalogDatastore = this._definition;
1077
+ D(this._definition) ? this._catalogDatastore = await this._dataCatalogDatastoreFromDefinition(this._definition) : this._catalogDatastore = this._definition;
1065
1078
  const e = this._catalogDatastore;
1066
1079
  if (!e)
1067
1080
  throw new Error("Invalid definition");
@@ -1084,7 +1097,7 @@ class st extends b {
1084
1097
  );
1085
1098
  this.variables = a, this._datastore = {
1086
1099
  tables: a,
1087
- source: w(this._definition) ? this._definition : e,
1100
+ source: D(this._definition) ? this._definition : e,
1088
1101
  info: t
1089
1102
  };
1090
1103
  } catch (e) {
@@ -1102,7 +1115,7 @@ class st extends b {
1102
1115
  }
1103
1116
  async _dataCatalogDatastoreFromDefinition(e) {
1104
1117
  const t = new Te({ url: e.portal.url });
1105
- return await t.load(), new Ee({
1118
+ return await t.load(), new $e({
1106
1119
  itemId: e.id,
1107
1120
  serviceUrl: e.serviceUrl,
1108
1121
  portal: t
@@ -1126,7 +1139,7 @@ class at extends b {
1126
1139
  return this._fieldInfos;
1127
1140
  }
1128
1141
  async loadSource() {
1129
- return _(this._loadPromise) && I(this._loadPromise) ? await this._loadPromise : (this._loadPromise = this._loadFields(), await this._loadPromise);
1142
+ return m(this._loadPromise) && I(this._loadPromise) ? await this._loadPromise : (this._loadPromise = this._loadFields(), await this._loadPromise);
1130
1143
  }
1131
1144
  async _loadFields() {
1132
1145
  if (this.loaded)
@@ -1142,17 +1155,17 @@ class at extends b {
1142
1155
  return new l({
1143
1156
  profile: this._profile,
1144
1157
  declaration: {
1145
- type: Y(i, {
1158
+ type: Z(i, {
1146
1159
  supportGeometryFields: !0
1147
1160
  })
1148
1161
  },
1149
1162
  label: t.name,
1150
1163
  description: [
1151
1164
  t.serverType,
1152
- Xe(this._profile?.intlStrings, t.nullable)
1165
+ Ye(this._profile?.intlStrings, t.nullable)
1153
1166
  ].filter(Boolean).join(" | "),
1154
1167
  snippet: ee(t.name, this._dialectSpec),
1155
- icon: X(i),
1168
+ icon: Y(i),
1156
1169
  filterDescription: !0
1157
1170
  });
1158
1171
  });
@@ -1302,7 +1315,7 @@ class Mt {
1302
1315
  // #endregion
1303
1316
  }
1304
1317
  export {
1305
- Ee as D,
1318
+ $e as D,
1306
1319
  Vt as E,
1307
1320
  Mt as L,
1308
1321
  We as a,
@@ -1311,11 +1324,11 @@ export {
1311
1324
  K as d,
1312
1325
  Tt as e,
1313
1326
  Pt as f,
1314
- $ as g,
1327
+ E as g,
1315
1328
  ke as h,
1316
1329
  Be as i,
1317
1330
  xt as m,
1318
1331
  vt as n,
1319
1332
  ee as q,
1320
- m as s
1333
+ p as s
1321
1334
  };