@arcgis/coding-components 5.1.0-next.54 → 5.1.0-next.56

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 (87) hide show
  1. package/dist/cdn/{PKG2K3V2.js → 23B5EVBR.js} +1 -1
  2. package/dist/cdn/2RXM4OOZ.js +2 -0
  3. package/dist/cdn/2XTHR2WZ.js +2 -0
  4. package/dist/cdn/5PWITOEV.js +2 -0
  5. package/dist/cdn/A53COIII.js +6 -0
  6. package/dist/cdn/AESP7B22.js +2 -0
  7. package/dist/cdn/AHN2NEBT.js +2 -0
  8. package/dist/cdn/{54ZOADNQ.js → BXUVVQLE.js} +1 -1
  9. package/dist/cdn/BYHBHJML.js +2 -0
  10. package/dist/cdn/CLBLJN2Z.js +7 -0
  11. package/dist/cdn/CZ2DJPO4.js +2 -0
  12. package/dist/cdn/DGFH2WPL.js +2 -0
  13. package/dist/cdn/{RJRCBNNO.js → DJYSIOXC.js} +1 -1
  14. package/dist/cdn/FLNLMLTL.js +2 -0
  15. package/dist/cdn/ITDFOKJG.js +2 -0
  16. package/dist/cdn/MH4UADDE.js +2 -0
  17. package/dist/cdn/{UZJHWA6T.js → ODKUCLFB.js} +1 -1
  18. package/dist/cdn/{PVL67WGX.js → PD5NEK47.js} +1 -1
  19. package/dist/cdn/PRB6IWVU.js +2 -0
  20. package/dist/cdn/{4A2CLADY.js → QCARFVF7.js} +1 -1
  21. package/dist/cdn/{6YD47X7H.js → QF6ON7LK.js} +1 -1
  22. package/dist/cdn/QRDRCFJZ.js +2 -0
  23. package/dist/cdn/SV4IPD4A.js +2 -0
  24. package/dist/cdn/UH44LJA7.js +4 -0
  25. package/dist/cdn/VF7TALAI.js +12 -0
  26. package/dist/cdn/VPP77CFW.js +2 -0
  27. package/dist/cdn/YPMKBMXS.js +2 -0
  28. package/dist/cdn/ZHZFKZA7.js +2 -0
  29. package/dist/cdn/assets/arcade-editor/t9n/messages.en.json +1 -1
  30. package/dist/cdn/assets/code-editor/sql-expr.worker.js +120 -117
  31. package/dist/cdn/assets/code-editor/sql-layer.worker.js +10087 -0
  32. package/dist/cdn/assets/editor-variables/t9n/messages.en.json +1 -1
  33. package/dist/cdn/assets/sql-expression-editor/t9n/messages.en.json +1 -1
  34. package/dist/cdn/assets/sql-layer-editor/t9n/messages.en.json +1 -0
  35. package/dist/cdn/index.js +1 -1
  36. package/dist/cdn/main.css +1 -1
  37. package/dist/chunks/arcade-defaults.js +98 -96
  38. package/dist/chunks/arcade-service-accessors.js +40 -28
  39. package/dist/chunks/bigquery.js +186 -0
  40. package/dist/chunks/colorize.js +1 -1
  41. package/dist/chunks/fields.js +2 -2
  42. package/dist/chunks/language-defaults-base.js +733 -464
  43. package/dist/chunks/postgres.js +209 -0
  44. package/dist/chunks/setup-monaco-theme.js +28 -20
  45. package/dist/chunks/sql-expr-defaults.js +11 -10
  46. package/dist/chunks/sql-layer-defaults.js +231 -0
  47. package/dist/chunks/sql-layer-mode.js +301 -0
  48. package/dist/chunks/sqlServer.js +288 -0
  49. package/dist/chunks/utils.js +184 -0
  50. package/dist/components/arcgis-arcade-coding-assistant/customElement.js +134 -123
  51. package/dist/components/arcgis-arcade-editor/customElement.d.ts +17 -0
  52. package/dist/components/arcgis-arcade-editor/customElement.js +22 -22
  53. package/dist/components/arcgis-code-editor/customElement.d.ts +2 -1
  54. package/dist/components/arcgis-code-editor/customElement.js +91 -71
  55. package/dist/components/arcgis-editor-variables/customElement.js +50 -47
  56. package/dist/components/arcgis-sql-expression-editor/customElement.d.ts +12 -0
  57. package/dist/components/arcgis-sql-expression-editor/customElement.js +17 -17
  58. package/dist/components/arcgis-sql-layer-editor/customElement.d.ts +50 -0
  59. package/dist/components/arcgis-sql-layer-editor/customElement.js +92 -0
  60. package/dist/components/arcgis-sql-layer-editor/index.d.ts +1 -0
  61. package/dist/components/arcgis-sql-layer-editor/index.js +7 -0
  62. package/dist/components/types.d.ts +79 -2
  63. package/dist/docs/api.json +1 -1
  64. package/dist/docs/docs.json +1 -1
  65. package/dist/docs/vscode.html-custom-data.json +1 -1
  66. package/dist/docs/web-types.json +1 -1
  67. package/dist/index.d.ts +10 -0
  68. package/dist/loader.js +6 -5
  69. package/dist/types/lumina.d.ts +9 -2
  70. package/dist/types/preact.d.ts +10 -2
  71. package/dist/types/react.d.ts +11 -2
  72. package/dist/types/stencil.d.ts +9 -2
  73. package/dist/utils/data-catalog-datastore.d.ts +170 -0
  74. package/package.json +5 -5
  75. package/dist/cdn/5CO7XWOT.js +0 -2
  76. package/dist/cdn/5FXY5U3T.js +0 -2
  77. package/dist/cdn/CYC4AWZE.js +0 -2
  78. package/dist/cdn/GVO3LEFV.js +0 -2
  79. package/dist/cdn/J5X2KSYD.js +0 -2
  80. package/dist/cdn/QHJAF7L3.js +0 -6
  81. package/dist/cdn/T7GEIGWF.js +0 -2
  82. package/dist/cdn/TAXRVBJC.js +0 -2
  83. package/dist/cdn/VR5CATAW.js +0 -2
  84. package/dist/cdn/WTNM2NCZ.js +0 -2
  85. package/dist/cdn/XEUG3X2W.js +0 -2
  86. package/dist/cdn/ZJCI6LP6.js +0 -12
  87. package/dist/cdn/ZSVJAJND.js +0 -4
@@ -0,0 +1,184 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
+ import p from "@arcgis/core/layers/FeatureLayer.js";
3
+ import y from "@arcgis/core/request.js";
4
+ function S(e) {
5
+ return !!e && typeof e == "object" && "declaredClass" in e && typeof e.declaredClass == "string" && e.declaredClass.startsWith("esri.layers.") && a(e) && "queryFeatures" in e && typeof e.queryFeatures == "function";
6
+ }
7
+ function f(e) {
8
+ return !!e && typeof e == "object" && "declaredClass" in e && typeof e.declaredClass == "string" && (e.declaredClass === "esri.Map" || e.declaredClass === "esri.WebMap" || e.declaredClass === "esri.WebScene");
9
+ }
10
+ function T(e) {
11
+ return !!e && typeof e == "object" && "loadAll" in e && typeof e.loadAll == "function";
12
+ }
13
+ function c(e) {
14
+ return !!e && typeof e == "object" && "portalItem" in e && e.portalItem != null;
15
+ }
16
+ function l(e) {
17
+ return !!e && typeof e == "object" && "portalItem" in e && e.portalItem != null;
18
+ }
19
+ function a(e) {
20
+ return !!e && typeof e == "object" && "fields" in e && Array.isArray(e.fields);
21
+ }
22
+ function o(e) {
23
+ return !!e && typeof e == "object" && "url" in e && typeof e.url == "string";
24
+ }
25
+ function d(e) {
26
+ return o(e) && /\/(?:featureserver|mapserver)(?:\/|$)/iu.test(e.url ?? "");
27
+ }
28
+ function u(e) {
29
+ return o(e) || a(e) || l(e);
30
+ }
31
+ function A(e) {
32
+ return u(e) && "type" in e && e.type === "voxel";
33
+ }
34
+ function h(e) {
35
+ return u(e) && "type" in e && (e.type === "imagery" || e.type === "imagery-tile");
36
+ }
37
+ function V(e) {
38
+ return o(e) || a(e) || l(e);
39
+ }
40
+ function q(e) {
41
+ return c(e) || f(e) || d(e);
42
+ }
43
+ function x(e) {
44
+ return !!e && typeof e == "object" && "declaredClass" in e && e.declaredClass === "esri.layers.support.Subtype";
45
+ }
46
+ function w(e) {
47
+ return !!e && typeof e == "object" && "declaredClass" in e && e.declaredClass === "esri.layers.support.CodedValueDomain";
48
+ }
49
+ function P(e) {
50
+ return !!e && typeof e == "object" && "declaredClass" in e && e.declaredClass === "esri.layers.support.InheritedDomain";
51
+ }
52
+ function v(e) {
53
+ return !!e && typeof e == "object" && "id" in e && typeof e.id == "string" && "definitions" in e && typeof e.definitions == "object" && !Array.isArray(e.definitions);
54
+ }
55
+ function M(e) {
56
+ return !!e && typeof e == "object" && "title" in e && typeof e.title == "string";
57
+ }
58
+ function U(e) {
59
+ return !!e && typeof e == "object" && "url" in e && typeof e.url == "string";
60
+ }
61
+ function b(e) {
62
+ return !!e && typeof e == "object" && "layerId" in e && typeof e.layerId == "number";
63
+ }
64
+ function k(e) {
65
+ return !!e && typeof e == "object" && "typeIdField" in e && "types" in e;
66
+ }
67
+ function W(e) {
68
+ return !!e && typeof e == "object" && "getFieldDomain" in e && typeof e.getFieldDomain == "function";
69
+ }
70
+ function C(e) {
71
+ return !!e && typeof e == "object" && "subtypeField" in e;
72
+ }
73
+ function E(e) {
74
+ return C(e) && "subtypes" in e;
75
+ }
76
+ function G(e) {
77
+ return !!e && typeof e == "object" && "portalItem" in e;
78
+ }
79
+ function R(e) {
80
+ return b(e) && "relationships" in e && "url" in e && Array.isArray(e.relationships) && typeof e.url == "string";
81
+ }
82
+ function g(e) {
83
+ return !!e && typeof e == "object" && "isTable" in e && typeof e.isTable == "boolean";
84
+ }
85
+ function j(e) {
86
+ if (e && typeof e == "object") {
87
+ if (g(e))
88
+ return e.isTable || "type" in e && e.type === "table";
89
+ if ("geometryType" in e)
90
+ return e.geometryType === "" || e.geometryType === "esriGeometryNull" || e.geometryType === null;
91
+ }
92
+ return !1;
93
+ }
94
+ function z(e) {
95
+ return !j(e);
96
+ }
97
+ function D(e) {
98
+ return !!e && typeof e == "object" && "load" in e && typeof e.load == "function";
99
+ }
100
+ function B(e) {
101
+ return !!e && typeof e == "object" && "type" in e && e.type === "voxel";
102
+ }
103
+ function H(e) {
104
+ return !!e && typeof e == "object" && "type" in e && typeof e.type == "string" && ["imagery", "imagery-tile"].includes(e.type);
105
+ }
106
+ function N(e) {
107
+ return !!e && typeof e == "object" && "id" in e && typeof e.id == "string" && "serviceUrl" in e && typeof e.serviceUrl == "string" && "portal" in e && !!e.portal && typeof e.portal == "object" && "url" in e.portal && typeof e.portal.url == "string";
108
+ }
109
+ function O(e) {
110
+ return !!e && "intlStrings" in e && "policy" in e;
111
+ }
112
+ function $(e) {
113
+ return e?.type === "featureSet";
114
+ }
115
+ function J(e) {
116
+ return e?.type === "dataCatalogDatastore";
117
+ }
118
+ function I(e) {
119
+ return !!e && "datasetInfo" in e;
120
+ }
121
+ function K(e) {
122
+ return !!e && e.type !== "dataCatalogDatastore" && !I(e);
123
+ }
124
+ async function Q(e) {
125
+ if (!e)
126
+ return null;
127
+ let r;
128
+ return a(e) ? r = e : r = new p(e), D(r) && await r.load(), r;
129
+ }
130
+ async function X(e) {
131
+ e += "/layers";
132
+ const r = await y(e, { responseType: "json", query: { f: "json" } }), n = e.endsWith("MapServer/layers") ? "data" : "query", s = i(r.data?.layers, n), t = i(r.data?.tables, n);
133
+ return { layers: s, tables: t };
134
+ }
135
+ function i(e, r) {
136
+ return e ? e.filter((n) => {
137
+ switch (n.type) {
138
+ case "Feature Layer":
139
+ case "Oriented Imagery Layer":
140
+ case "Catalog Layer":
141
+ case "Table":
142
+ return (n.capabilities ? n.capabilities.toLowerCase().split(",").map((t) => t.trim()) : []).includes(r);
143
+ default:
144
+ return !1;
145
+ }
146
+ }) : [];
147
+ }
148
+ export {
149
+ U as A,
150
+ b as B,
151
+ C,
152
+ W as D,
153
+ k as E,
154
+ E as F,
155
+ w as G,
156
+ x as H,
157
+ P as I,
158
+ q as a,
159
+ V as b,
160
+ A as c,
161
+ h as d,
162
+ u as e,
163
+ K as f,
164
+ O as g,
165
+ $ as h,
166
+ v as i,
167
+ I as j,
168
+ J as k,
169
+ N as l,
170
+ g as m,
171
+ R as n,
172
+ f as o,
173
+ o as p,
174
+ c as q,
175
+ T as r,
176
+ X as s,
177
+ S as t,
178
+ M as u,
179
+ Q as v,
180
+ z as w,
181
+ B as x,
182
+ H as y,
183
+ G as z
184
+ };