@arcgis/coding-components 4.33.0-next.33 → 4.33.0-next.34
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.
- package/dist/arcgis-coding-components/2GHDIVQG.js +4 -0
- package/dist/arcgis-coding-components/{YH5RDJPU.js → 2HLF5ZEJ.js} +2 -2
- package/dist/arcgis-coding-components/{CCY4FT6N.js.LEGAL.txt → 2HLF5ZEJ.js.LEGAL.txt} +1 -1
- package/dist/arcgis-coding-components/2V6F367D.js +4 -0
- package/dist/arcgis-coding-components/{CDQHTB6C.js.LEGAL.txt → 2V6F367D.js.LEGAL.txt} +1 -1
- package/dist/arcgis-coding-components/4FQMSJAB.js +4 -0
- package/dist/arcgis-coding-components/{CRM5DQLU.js.LEGAL.txt → 4FQMSJAB.js.LEGAL.txt} +1 -1
- package/dist/arcgis-coding-components/5ABJ4R3M.js +4 -0
- package/dist/arcgis-coding-components/{3SXBMBHD.js.LEGAL.txt → 5ABJ4R3M.js.LEGAL.txt} +1 -1
- package/dist/arcgis-coding-components/{I7LKNAQK.js → 5ZZ6HCEX.js} +2 -2
- package/dist/arcgis-coding-components/5ZZ6HCEX.js.LEGAL.txt +3 -0
- package/dist/arcgis-coding-components/{3SXBMBHD.js → 6J2IYKJ6.js} +2 -2
- package/dist/arcgis-coding-components/6J2IYKJ6.js.LEGAL.txt +3 -0
- package/dist/arcgis-coding-components/{XIEWNBFF.js → AAEXMW6M.js} +1 -1
- package/dist/arcgis-coding-components/AKRVPVTX.js +4 -0
- package/dist/arcgis-coding-components/AKRVPVTX.js.LEGAL.txt +3 -0
- package/dist/arcgis-coding-components/{KRHZZD3V.js → COUN24PA.js} +144 -144
- package/dist/arcgis-coding-components/{KRHZZD3V.js.LEGAL.txt → COUN24PA.js.LEGAL.txt} +1 -1
- package/dist/arcgis-coding-components/{P4YUZWRH.js → D6D3AGMZ.js} +2 -2
- package/dist/arcgis-coding-components/{Q5QIZTFG.js → DVRFPMNG.js} +2 -2
- package/dist/arcgis-coding-components/DVRFPMNG.js.LEGAL.txt +3 -0
- package/dist/arcgis-coding-components/ER7DDBTO.js +8 -0
- package/dist/arcgis-coding-components/ER7DDBTO.js.LEGAL.txt +3 -0
- package/dist/arcgis-coding-components/{LO4Y2B7S.js → HKOS2ZY4.js} +2 -2
- package/dist/arcgis-coding-components/{LO4Y2B7S.js.LEGAL.txt → HKOS2ZY4.js.LEGAL.txt} +1 -1
- package/dist/arcgis-coding-components/IVWU642Z.js +4 -0
- package/dist/arcgis-coding-components/IVWU642Z.js.LEGAL.txt +3 -0
- package/dist/arcgis-coding-components/{ZUTUSAUL.js → JSUDHK5A.js} +1 -1
- package/dist/arcgis-coding-components/{44GSK3NX.js → L2VF4IG3.js} +2 -2
- package/dist/arcgis-coding-components/{44GSK3NX.js.LEGAL.txt → L2VF4IG3.js.LEGAL.txt} +1 -1
- package/dist/arcgis-coding-components/{CS4F6YSG.js → L727RMPN.js} +2 -2
- package/dist/arcgis-coding-components/{CS4F6YSG.js.LEGAL.txt → L727RMPN.js.LEGAL.txt} +1 -1
- package/dist/arcgis-coding-components/{77W6CWRA.js → LNSMNLQ3.js} +3 -3
- package/dist/arcgis-coding-components/{77W6CWRA.js.LEGAL.txt → LNSMNLQ3.js.LEGAL.txt} +9 -9
- package/dist/arcgis-coding-components/{FDHKVNLS.js → MIKTUKLA.js} +2 -2
- package/dist/arcgis-coding-components/MIKTUKLA.js.LEGAL.txt +3 -0
- package/dist/arcgis-coding-components/NG6YTVCR.js +4 -0
- package/dist/arcgis-coding-components/NG6YTVCR.js.LEGAL.txt +3 -0
- package/dist/arcgis-coding-components/{VMUIMKV6.js → NPMAI43W.js} +1 -1
- package/dist/arcgis-coding-components/OBWA5RZB.js +4 -0
- package/dist/arcgis-coding-components/{5LTSTETT.js → P4HYXWX2.js} +2 -2
- package/dist/arcgis-coding-components/{5LTSTETT.js.LEGAL.txt → P4HYXWX2.js.LEGAL.txt} +1 -1
- package/dist/arcgis-coding-components/{3CUMDTVA.js → PXJ7T62B.js} +2 -2
- package/dist/arcgis-coding-components/{3CUMDTVA.js.LEGAL.txt → PXJ7T62B.js.LEGAL.txt} +1 -1
- package/dist/arcgis-coding-components/RZVANTFM.js +12 -0
- package/dist/arcgis-coding-components/RZVANTFM.js.LEGAL.txt +3 -0
- package/dist/arcgis-coding-components/{IOF673A3.js → SQJHUVZF.js} +2 -2
- package/dist/arcgis-coding-components/SQJHUVZF.js.LEGAL.txt +3 -0
- package/dist/arcgis-coding-components/{5W3AABSL.js → TM55WIPT.js} +3 -3
- package/dist/arcgis-coding-components/{5W3AABSL.js.LEGAL.txt → TM55WIPT.js.LEGAL.txt} +1 -1
- package/dist/arcgis-coding-components/{MAL2J7TO.js → TZRUUOST.js} +2 -2
- package/dist/arcgis-coding-components/{MAL2J7TO.js.LEGAL.txt → TZRUUOST.js.LEGAL.txt} +1 -1
- package/dist/arcgis-coding-components/U5ZUDMT6.js +4 -0
- package/dist/arcgis-coding-components/{DQ7LF5TA.js.LEGAL.txt → U5ZUDMT6.js.LEGAL.txt} +1 -1
- package/dist/arcgis-coding-components/{KZ24IRIU.js → UDCROEEM.js} +2 -2
- package/dist/arcgis-coding-components/{KZ24IRIU.js.LEGAL.txt → UDCROEEM.js.LEGAL.txt} +1 -1
- package/dist/arcgis-coding-components/{IZ4RJ7JZ.js → UFZDA7WP.js} +4 -5
- package/dist/arcgis-coding-components/UFZDA7WP.js.LEGAL.txt +3 -0
- package/dist/arcgis-coding-components/{IAUPJHHB.js → UHTWUVXC.js} +2 -2
- package/dist/arcgis-coding-components/{IAUPJHHB.js.LEGAL.txt → UHTWUVXC.js.LEGAL.txt} +1 -1
- package/dist/arcgis-coding-components/{GMGT3LLK.js → UWJMWE3F.js} +2 -2
- package/dist/arcgis-coding-components/{GMGT3LLK.js.LEGAL.txt → UWJMWE3F.js.LEGAL.txt} +1 -1
- package/dist/arcgis-coding-components/UXP5BH4Z.js +4 -0
- package/dist/arcgis-coding-components/UXP5BH4Z.js.LEGAL.txt +3 -0
- package/dist/arcgis-coding-components/arcgis-coding-components.esm.js +2 -2
- package/dist/arcgis-coding-components/arcgis-coding-components.esm.js.LEGAL.txt +1 -1
- package/dist/arcgis-coding-components/assets/code-editor/arcade.worker.js +14 -14
- package/dist/arcgis-coding-components/assets/code-editor/css.worker.js +1 -1
- package/dist/arcgis-coding-components/assets/code-editor/html.worker.js +1 -1
- package/dist/arcgis-coding-components/assets/code-editor/json.worker.js +1 -1
- package/dist/arcgis-coding-components/assets/code-editor/sql-expr.worker.js +44 -2003
- package/dist/arcgis-coding-components/assets/code-editor/ts.worker.js +1 -1
- package/dist/chunks/arcade-defaults.js +13 -13
- package/dist/chunks/arcade-executor.js +23 -23
- package/dist/chunks/arcade-mode.js +2 -2
- package/dist/chunks/arcade-service-accessors.js +10 -10
- package/dist/chunks/fields.js +3 -3
- package/dist/chunks/language-defaults-base.js +68 -72
- package/dist/chunks/markdown.js +1 -1
- package/dist/chunks/monaco-importer.js +1 -1
- package/dist/chunks/runtime.js +1 -1
- package/dist/chunks/sql-expr-defaults.js +7 -7
- package/dist/chunks/sql-expr-mode.js +1 -1
- package/dist/chunks/useT9n.js +1 -1
- package/dist/components/arcgis-arcade-editor/customElement.js +1 -1
- package/dist/components/arcgis-arcade-results/customElement.js +1 -1
- package/dist/components/arcgis-arcade-suggestions/customElement.js +1 -1
- package/dist/components/arcgis-code-editor/customElement.js +2 -2
- package/dist/components/arcgis-editor-variables/customElement.js +1 -1
- package/dist/components/arcgis-language-api-panel/customElement.js +1 -1
- package/dist/components/arcgis-sql-expression-editor/customElement.js +1 -1
- package/dist/components/arcgis-sql-expression-fields/customElement.js +1 -1
- package/dist/docs/api.json +2 -2
- package/dist/docs/docs.json +2 -2
- package/dist/docs/web-types.json +1 -1
- package/dist/index.js +1 -1
- package/dist/loader.js +1 -1
- package/dist/utils/sql-expr-monaco/sql-expr-defaults.d.ts +3 -3
- package/package.json +7 -7
- package/dist/arcgis-coding-components/CCY4FT6N.js +0 -5
- package/dist/arcgis-coding-components/CDQHTB6C.js +0 -13
- package/dist/arcgis-coding-components/CRM5DQLU.js +0 -9
- package/dist/arcgis-coding-components/DQ7LF5TA.js +0 -5
- package/dist/arcgis-coding-components/EQD2C23X.js +0 -5
- package/dist/arcgis-coding-components/EQD2C23X.js.LEGAL.txt +0 -3
- package/dist/arcgis-coding-components/FDHKVNLS.js.LEGAL.txt +0 -3
- package/dist/arcgis-coding-components/I7LKNAQK.js.LEGAL.txt +0 -3
- package/dist/arcgis-coding-components/IOF673A3.js.LEGAL.txt +0 -3
- package/dist/arcgis-coding-components/IS3YBPV2.js +0 -5
- package/dist/arcgis-coding-components/IS3YBPV2.js.LEGAL.txt +0 -3
- package/dist/arcgis-coding-components/IZ4RJ7JZ.js.LEGAL.txt +0 -3
- package/dist/arcgis-coding-components/LHJZ4NUP.js +0 -5
- package/dist/arcgis-coding-components/LHJZ4NUP.js.LEGAL.txt +0 -3
- package/dist/arcgis-coding-components/Q5QIZTFG.js.LEGAL.txt +0 -3
- package/dist/arcgis-coding-components/TKCOE4XB.js +0 -4
- package/dist/arcgis-coding-components/TPQXUKQA.js +0 -5
- package/dist/arcgis-coding-components/TPQXUKQA.js.LEGAL.txt +0 -3
- package/dist/arcgis-coding-components/XSGNOZEO.js +0 -5
- package/dist/arcgis-coding-components/XSGNOZEO.js.LEGAL.txt +0 -3
- package/dist/arcgis-coding-components/XXEDPYTB.js +0 -4
- package/dist/arcgis-coding-components/XXEDPYTB.js.LEGAL.txt +0 -3
- package/dist/arcgis-coding-components/YH5RDJPU.js.LEGAL.txt +0 -3
- package/dist/arcgis-coding-components/YUCTM6SW.js +0 -4
- /package/dist/arcgis-coding-components/{P4YUZWRH.js.LEGAL.txt → 2GHDIVQG.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{VMUIMKV6.js.LEGAL.txt → AAEXMW6M.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{XIEWNBFF.js.LEGAL.txt → D6D3AGMZ.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{YUCTM6SW.js.LEGAL.txt → JSUDHK5A.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{ZUTUSAUL.js.LEGAL.txt → NPMAI43W.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{TKCOE4XB.js.LEGAL.txt → OBWA5RZB.js.LEGAL.txt} +0 -0
|
@@ -1,18 +1,14 @@
|
|
|
1
|
-
import b from "@arcgis/core
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
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";
|
|
1
|
+
import { importRequest as Q, newLayersFeatureLayer as b, 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 { f as se, a as _, s as ne, b as oe } from "./fields.js";
|
|
5
|
+
import { CompletionItemKind as T, InsertTextFormat as I, InsertTextMode as M } from "vscode-languageserver-types";
|
|
10
6
|
import { g as ae } from "./runtime.js";
|
|
11
7
|
import { filterApiLibraryForContext as le } from "@arcgis/languages-api-utils";
|
|
12
8
|
import { Emitter as x, Uri as $ } from "monaco-editor";
|
|
13
9
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
14
10
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
15
|
-
v4.33.0-next.
|
|
11
|
+
v4.33.0-next.34 */
|
|
16
12
|
function W(t) {
|
|
17
13
|
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";
|
|
18
14
|
}
|
|
@@ -28,37 +24,37 @@ function ce(t) {
|
|
|
28
24
|
function N(t) {
|
|
29
25
|
return !!t && typeof t == "object" && "portalItem" in t && t.portalItem != null;
|
|
30
26
|
}
|
|
31
|
-
function
|
|
27
|
+
function R(t) {
|
|
32
28
|
return !!t && typeof t == "object" && "portalItem" in t && t.portalItem != null;
|
|
33
29
|
}
|
|
34
30
|
function g(t) {
|
|
35
31
|
return !!t && typeof t == "object" && "fields" in t && Array.isArray(t.fields);
|
|
36
32
|
}
|
|
37
|
-
function
|
|
33
|
+
function w(t) {
|
|
38
34
|
return !!t && typeof t == "object" && "url" in t && typeof t.url == "string";
|
|
39
35
|
}
|
|
40
36
|
function pe(t) {
|
|
41
|
-
return
|
|
37
|
+
return w(t) && /\/(?:featureserver|mapserver)(?:\/|$)/iu.test(t.url ?? "");
|
|
42
38
|
}
|
|
43
|
-
function
|
|
44
|
-
return
|
|
39
|
+
function Le(t) {
|
|
40
|
+
return w(t) || g(t) || R(t);
|
|
45
41
|
}
|
|
46
|
-
function
|
|
47
|
-
return
|
|
42
|
+
function Ge(t) {
|
|
43
|
+
return w(t) || g(t) || R(t);
|
|
48
44
|
}
|
|
49
|
-
function
|
|
45
|
+
function je(t) {
|
|
50
46
|
return N(t) || B(t) || pe(t);
|
|
51
47
|
}
|
|
52
48
|
function A(t) {
|
|
53
49
|
return !!t && typeof t == "object" && "declaredClass" in t && t.declaredClass === "esri.layers.support.Subtype";
|
|
54
50
|
}
|
|
55
|
-
function
|
|
51
|
+
function D(t) {
|
|
56
52
|
return !!t && typeof t == "object" && "declaredClass" in t && t.declaredClass === "esri.layers.support.CodedValueDomain";
|
|
57
53
|
}
|
|
58
54
|
function he(t) {
|
|
59
55
|
return !!t && typeof t == "object" && "declaredClass" in t && t.declaredClass === "esri.layers.support.InheritedDomain";
|
|
60
56
|
}
|
|
61
|
-
function
|
|
57
|
+
function Ee(t) {
|
|
62
58
|
return !!t && typeof t == "object" && "id" in t && typeof t.id == "string" && "definitions" in t && typeof t.definitions == "object" && !Array.isArray(t.definitions);
|
|
63
59
|
}
|
|
64
60
|
function m(t) {
|
|
@@ -67,7 +63,7 @@ function m(t) {
|
|
|
67
63
|
function fe(t) {
|
|
68
64
|
return !!t && typeof t == "object" && "url" in t && typeof t.url == "string";
|
|
69
65
|
}
|
|
70
|
-
function
|
|
66
|
+
function O(t) {
|
|
71
67
|
return !!t && typeof t == "object" && "layerId" in t && typeof t.layerId == "number";
|
|
72
68
|
}
|
|
73
69
|
function S(t) {
|
|
@@ -86,7 +82,7 @@ function ye(t) {
|
|
|
86
82
|
return !!t && typeof t == "object" && "portalItem" in t;
|
|
87
83
|
}
|
|
88
84
|
function _e(t) {
|
|
89
|
-
return
|
|
85
|
+
return O(t) && "relationships" in t && "url" in t && Array.isArray(t.relationships) && typeof t.url == "string";
|
|
90
86
|
}
|
|
91
87
|
function be(t) {
|
|
92
88
|
return !!t && typeof t == "object" && "isTable" in t && typeof t.isTable == "boolean";
|
|
@@ -94,16 +90,16 @@ function be(t) {
|
|
|
94
90
|
function me(t) {
|
|
95
91
|
return !!t && typeof t == "object" && "load" in t && typeof t.load == "function";
|
|
96
92
|
}
|
|
97
|
-
async function
|
|
93
|
+
async function q(t) {
|
|
98
94
|
if (!t)
|
|
99
95
|
return null;
|
|
100
96
|
let e;
|
|
101
|
-
return g(t) ? e = t : e =
|
|
97
|
+
return g(t) ? e = t : e = await b(t), me(e) && await e.load(), e;
|
|
102
98
|
}
|
|
103
99
|
async function ge(t) {
|
|
104
100
|
t += "/layers";
|
|
105
|
-
const
|
|
106
|
-
return { 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 };
|
|
107
103
|
}
|
|
108
104
|
function G(t, e) {
|
|
109
105
|
return t ? t.filter((i) => {
|
|
@@ -118,11 +114,11 @@ function G(t, e) {
|
|
|
118
114
|
}
|
|
119
115
|
}) : [];
|
|
120
116
|
}
|
|
121
|
-
async function
|
|
122
|
-
const i =
|
|
117
|
+
async function we(t, e) {
|
|
118
|
+
const i = await b({ url: `${t.url}/${e.relatedTableId}` });
|
|
123
119
|
return await i.load(), i;
|
|
124
120
|
}
|
|
125
|
-
function
|
|
121
|
+
function k(t) {
|
|
126
122
|
return (e, i) => {
|
|
127
123
|
if (e.type === "oid")
|
|
128
124
|
return -1;
|
|
@@ -146,9 +142,9 @@ function q(t) {
|
|
|
146
142
|
function j(t, e) {
|
|
147
143
|
return t?.every((i) => i.domains?.[e.name]?.type === "inherited") ?? !1;
|
|
148
144
|
}
|
|
149
|
-
const
|
|
145
|
+
const De = /^[a-z_$][a-z0-9_$]*$/giu;
|
|
150
146
|
function K(t, e = !0) {
|
|
151
|
-
return t.match(
|
|
147
|
+
return t.match(De) ? `${e ? "." : ""}${t}` : `["${t}"]`;
|
|
152
148
|
}
|
|
153
149
|
function z(t, e) {
|
|
154
150
|
return t ? `${t}${K(e)}` : e;
|
|
@@ -156,16 +152,16 @@ function z(t, e) {
|
|
|
156
152
|
function E(t) {
|
|
157
153
|
return ye(t) ? t.portalItem : null;
|
|
158
154
|
}
|
|
159
|
-
function
|
|
155
|
+
function Ue(t, e, i = !1) {
|
|
160
156
|
let r = e;
|
|
161
157
|
const s = [], n = [];
|
|
162
|
-
return
|
|
158
|
+
return ne(t).forEach((o) => {
|
|
163
159
|
r && (r += `
|
|
164
160
|
|
|
165
161
|
`), r += `**${o.name}** (${o.alias})
|
|
166
162
|
${o.type}`, o.description && (r += `
|
|
167
163
|
'${o.description}`);
|
|
168
|
-
const p =
|
|
164
|
+
const p = oe(o), c = K(o.name, !1), y = _(o);
|
|
169
165
|
if (s.push({
|
|
170
166
|
name: o.name,
|
|
171
167
|
description: y,
|
|
@@ -174,9 +170,9 @@ ${o.type}`, o.description && (r += `
|
|
|
174
170
|
label: o.name,
|
|
175
171
|
detail: y,
|
|
176
172
|
insertText: c,
|
|
177
|
-
insertTextMode:
|
|
173
|
+
insertTextMode: M.asIs,
|
|
178
174
|
insertTextFormat: I.PlainText,
|
|
179
|
-
kind:
|
|
175
|
+
kind: T.Field
|
|
180
176
|
}
|
|
181
177
|
}), i) {
|
|
182
178
|
if (!o.alias || o.alias.toLowerCase() === o.name.toLowerCase())
|
|
@@ -192,9 +188,9 @@ ${o.type}`;
|
|
|
192
188
|
label: o.alias,
|
|
193
189
|
detail: o.name,
|
|
194
190
|
insertText: c,
|
|
195
|
-
insertTextMode:
|
|
191
|
+
insertTextMode: M.asIs,
|
|
196
192
|
insertTextFormat: I.PlainText,
|
|
197
|
-
kind:
|
|
193
|
+
kind: T.Field,
|
|
198
194
|
documentation: { kind: "markdown", value: h }
|
|
199
195
|
}
|
|
200
196
|
});
|
|
@@ -209,7 +205,7 @@ class H {
|
|
|
209
205
|
* Returns the label string.
|
|
210
206
|
*/
|
|
211
207
|
getLabel() {
|
|
212
|
-
return this._label == null ? "" : typeof this._label == "string" ?
|
|
208
|
+
return this._label == null ? "" : typeof this._label == "string" ? ie(this._label) : V(this._profile?.intlStrings[this._label.code], this._label.formatValues);
|
|
213
209
|
}
|
|
214
210
|
/**
|
|
215
211
|
* Returns the description string.
|
|
@@ -240,7 +236,7 @@ class a extends F {
|
|
|
240
236
|
return { type: this.type, name: "", ...this.declaration };
|
|
241
237
|
}
|
|
242
238
|
}
|
|
243
|
-
class
|
|
239
|
+
class Ce extends F {
|
|
244
240
|
constructor(e) {
|
|
245
241
|
super(e), this.type = "array", this.isCollection = !1, this.elementType = e.declaration?.elementType ?? { type: "number", name: "number" };
|
|
246
242
|
}
|
|
@@ -337,7 +333,7 @@ class d extends v {
|
|
|
337
333
|
snippet: i
|
|
338
334
|
});
|
|
339
335
|
case "array":
|
|
340
|
-
return new
|
|
336
|
+
return new Ce({
|
|
341
337
|
profile: this._profile,
|
|
342
338
|
declaration: e,
|
|
343
339
|
label: i,
|
|
@@ -367,13 +363,13 @@ class J extends v {
|
|
|
367
363
|
return fe(this._source) ? this._source.url ?? "" : "";
|
|
368
364
|
}
|
|
369
365
|
get informationUrl() {
|
|
370
|
-
return !this.loaded || !this.url ? null :
|
|
366
|
+
return !this.loaded || !this.url ? null : O(this._source) ? `${this.url}/${this._source.layerId}` : this.url;
|
|
371
367
|
}
|
|
372
368
|
get informationType() {
|
|
373
369
|
return this._profile?.intlStrings.layer ?? "layer";
|
|
374
370
|
}
|
|
375
371
|
async loadSource() {
|
|
376
|
-
return
|
|
372
|
+
return C(this._loadPromise) && U(this._loadPromise) ? await this._loadPromise : (this._loadPromise = this._loadSource(), await this._loadPromise);
|
|
377
373
|
}
|
|
378
374
|
_getValueSnippet(e) {
|
|
379
375
|
return this.type === "feature" ? z(this.snippet, e.name) : e.name;
|
|
@@ -391,7 +387,7 @@ class J extends v {
|
|
|
391
387
|
label: r,
|
|
392
388
|
description: _(e),
|
|
393
389
|
snippet: r,
|
|
394
|
-
icon:
|
|
390
|
+
icon: se(e),
|
|
395
391
|
filterDescription: !0
|
|
396
392
|
});
|
|
397
393
|
}
|
|
@@ -434,7 +430,7 @@ class J extends v {
|
|
|
434
430
|
if (!L(this._source))
|
|
435
431
|
return null;
|
|
436
432
|
const i = this._source.getFieldDomain(e.name);
|
|
437
|
-
if (!
|
|
433
|
+
if (!D(i))
|
|
438
434
|
return null;
|
|
439
435
|
const r = this._getCodedValueDomainGroup(i, {
|
|
440
436
|
code: "domainvalues"
|
|
@@ -442,7 +438,7 @@ class J extends v {
|
|
|
442
438
|
return s.variables.push(r), s;
|
|
443
439
|
}
|
|
444
440
|
_getTypeOrSubtypeDomainGroup(e, i) {
|
|
445
|
-
if (
|
|
441
|
+
if (D(i.domain))
|
|
446
442
|
return this._getCodedValueDomainGroup(i.domain, { code: "subtypes" });
|
|
447
443
|
const r = e?.map((s) => {
|
|
448
444
|
const n = A(s) ? s.code : s.id;
|
|
@@ -471,7 +467,7 @@ class J extends v {
|
|
|
471
467
|
const r = [];
|
|
472
468
|
return !e || e.length === 0 || (e.forEach((s) => {
|
|
473
469
|
const n = s.domains?.[i.name];
|
|
474
|
-
if (!n || he(n) || !
|
|
470
|
+
if (!n || he(n) || !D(n))
|
|
475
471
|
return;
|
|
476
472
|
const u = _(i), o = this._getCodedValueDomainGroup(n, {
|
|
477
473
|
code: "domainvaluesfortypeformat",
|
|
@@ -524,7 +520,7 @@ class J extends v {
|
|
|
524
520
|
return null;
|
|
525
521
|
const i = new l(this._profile, { code: "relationships" }), r = await Promise.all(
|
|
526
522
|
e.relationships?.map(async (s) => {
|
|
527
|
-
const n = await
|
|
523
|
+
const n = await we(e, s);
|
|
528
524
|
if (!W(n) || s.relatedTableId === this.relationshipsProperties?.sourceTableId)
|
|
529
525
|
return null;
|
|
530
526
|
const u = `FeatureSetByRelationshipName(${this.snippet}, "${s.name}")`;
|
|
@@ -542,7 +538,7 @@ class J extends v {
|
|
|
542
538
|
);
|
|
543
539
|
}) ?? []
|
|
544
540
|
);
|
|
545
|
-
return i.variables = r.filter(
|
|
541
|
+
return i.variables = r.filter(C), i.variables.length ? i : null;
|
|
546
542
|
}
|
|
547
543
|
}
|
|
548
544
|
class Se extends J {
|
|
@@ -556,7 +552,7 @@ class Se extends J {
|
|
|
556
552
|
if (this.loaded)
|
|
557
553
|
return this._source;
|
|
558
554
|
try {
|
|
559
|
-
if (this._source = await
|
|
555
|
+
if (this._source = await q(this._definition), !this._source)
|
|
560
556
|
throw new Error("Invalid definition");
|
|
561
557
|
const e = m(this._source) ? this._source.title ?? "" : "";
|
|
562
558
|
this.variables.push(
|
|
@@ -582,7 +578,7 @@ class Se extends J {
|
|
|
582
578
|
});
|
|
583
579
|
i.variables.push(n);
|
|
584
580
|
}
|
|
585
|
-
this._source.fields.sort(
|
|
581
|
+
this._source.fields.sort(k(this._source)).forEach((s) => {
|
|
586
582
|
i.variables.push(this._getFieldProperty(s));
|
|
587
583
|
});
|
|
588
584
|
const r = await this._getRelationshipsProperty();
|
|
@@ -609,11 +605,11 @@ class P extends J {
|
|
|
609
605
|
if (this.loaded)
|
|
610
606
|
return this._source;
|
|
611
607
|
try {
|
|
612
|
-
if (this._source = await
|
|
608
|
+
if (this._source = await q(this._definition), !this._source)
|
|
613
609
|
throw new Error("Invalid definition");
|
|
614
610
|
this.variables.push(new l(this._profile, this.title, this.featureSetSnippets, !0));
|
|
615
611
|
const e = new l(this._profile, { code: "fields" });
|
|
616
|
-
this.variables.push(e), e.variables = this._source.fields.sort(
|
|
612
|
+
this.variables.push(e), e.variables = this._source.fields.sort(k(this._source)).map((r) => this._getFieldProperty(r));
|
|
617
613
|
const i = await this._getRelationshipsProperty();
|
|
618
614
|
i && this.variables.push(i);
|
|
619
615
|
} catch (e) {
|
|
@@ -632,7 +628,7 @@ class Fe extends v {
|
|
|
632
628
|
super(e, i), this.type = "featureSetCollection", this._featureSetCollections = null, this._loaded = !1, this._definition = i.declaration?.definition;
|
|
633
629
|
}
|
|
634
630
|
get informationUrl() {
|
|
635
|
-
return !this.loaded || !this._featureSetCollections ? null : typeof this._featureSetCollections.source != "string" ?
|
|
631
|
+
return !this.loaded || !this._featureSetCollections ? null : typeof this._featureSetCollections.source != "string" ? ee(E(this._featureSetCollections.source)) : null;
|
|
636
632
|
}
|
|
637
633
|
get informationType() {
|
|
638
634
|
if (!this.loaded || !this._featureSetCollections)
|
|
@@ -649,7 +645,7 @@ class Fe extends v {
|
|
|
649
645
|
}
|
|
650
646
|
}
|
|
651
647
|
async loadSource() {
|
|
652
|
-
return
|
|
648
|
+
return C(this._loadPromise) && U(this._loadPromise) ? await this._loadPromise : (this._loadPromise = this._loadSource(), await this._loadPromise);
|
|
653
649
|
}
|
|
654
650
|
async _loadSource() {
|
|
655
651
|
if (this.loaded)
|
|
@@ -679,7 +675,7 @@ class Fe extends v {
|
|
|
679
675
|
return this._featureSetCollections;
|
|
680
676
|
}
|
|
681
677
|
async _featureSetCollectionsFromDefinition() {
|
|
682
|
-
return this._definition ? B(this._definition) ? await this._featureSetCollectionFromMap(this._definition) :
|
|
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;
|
|
683
679
|
}
|
|
684
680
|
async _featureSetCollectionFromMap(e) {
|
|
685
681
|
return ce(e) && await e.loadAll(), await Promise.all(e.tables.map(async (i) => await i.load())), {
|
|
@@ -689,14 +685,14 @@ class Fe extends v {
|
|
|
689
685
|
};
|
|
690
686
|
}
|
|
691
687
|
async _featureSetCollectionFromPortalItem(e) {
|
|
692
|
-
const i =
|
|
688
|
+
const i = await X(e);
|
|
693
689
|
switch (await i.load(), i.type) {
|
|
694
690
|
case "Web Map": {
|
|
695
|
-
const r =
|
|
691
|
+
const r = await Z({ portalItem: i });
|
|
696
692
|
return await this._featureSetCollectionFromMap(r);
|
|
697
693
|
}
|
|
698
694
|
case "Web Scene": {
|
|
699
|
-
const r =
|
|
695
|
+
const r = await Y({ portalItem: i });
|
|
700
696
|
return await this._featureSetCollectionFromMap(r);
|
|
701
697
|
}
|
|
702
698
|
case "Feature Service":
|
|
@@ -711,12 +707,12 @@ class Fe extends v {
|
|
|
711
707
|
return null;
|
|
712
708
|
const r = await ge(i), s = Promise.all(
|
|
713
709
|
r.layers.map(async (p) => {
|
|
714
|
-
const c =
|
|
710
|
+
const c = await b({ url: `${i}/${p.id}` });
|
|
715
711
|
return await c.load(), this._createFeatureSetVariable(c);
|
|
716
712
|
})
|
|
717
713
|
), n = Promise.all(
|
|
718
714
|
r.tables.map(async (p) => {
|
|
719
|
-
const c =
|
|
715
|
+
const c = await b({ url: `${i}/${p.id}` });
|
|
720
716
|
return await c.load(), this._createFeatureSetVariable(c);
|
|
721
717
|
})
|
|
722
718
|
), [u, o] = await Promise.all([s, n]);
|
|
@@ -766,7 +762,7 @@ class Fe extends v {
|
|
|
766
762
|
return { type: this.type, name: "", ...this.declaration, definition: this._definition };
|
|
767
763
|
}
|
|
768
764
|
}
|
|
769
|
-
class
|
|
765
|
+
class We extends d {
|
|
770
766
|
constructor(e, i, r = "en") {
|
|
771
767
|
super(void 0, {
|
|
772
768
|
profile: null,
|
|
@@ -793,12 +789,12 @@ class Re extends d {
|
|
|
793
789
|
const ve = {
|
|
794
790
|
locale: "en"
|
|
795
791
|
};
|
|
796
|
-
class
|
|
792
|
+
class Be {
|
|
797
793
|
// #endregion
|
|
798
794
|
constructor(e, i) {
|
|
799
795
|
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 = {
|
|
800
796
|
getApiLibrary: async (r) => await this.getApiLibrary(r)
|
|
801
|
-
},
|
|
797
|
+
}, te().then((r) => {
|
|
802
798
|
r.onWillDisposeModel((s) => {
|
|
803
799
|
this.disposeForModel(s.uri);
|
|
804
800
|
});
|
|
@@ -874,17 +870,17 @@ class ke {
|
|
|
874
870
|
}
|
|
875
871
|
}
|
|
876
872
|
async getApiLibrary(e) {
|
|
877
|
-
const i =
|
|
873
|
+
const i = re(e);
|
|
878
874
|
return this._localeToApiLibraryPromiseMap.has(i) || this._localeToApiLibraryPromiseMap.set(i, this.fetchApiLibrary(i)), await this._localeToApiLibraryPromiseMap.get(i) ?? [];
|
|
879
875
|
}
|
|
880
876
|
// #endregion
|
|
881
877
|
}
|
|
882
878
|
export {
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
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
|
|
890
886
|
};
|
package/dist/chunks/markdown.js
CHANGED
|
@@ -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.js";
|
|
5
5
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
6
6
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
7
|
-
v4.33.0-next.
|
|
7
|
+
v4.33.0-next.34 */
|
|
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.js";
|
|
|
5
5
|
import "monaco-editor/esm/vs/editor/common/languages/supports/tokenization.js";
|
|
6
6
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
7
7
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
8
|
-
v4.33.0-next.
|
|
8
|
+
v4.33.0-next.34 */
|
|
9
9
|
function g(r, t, n, m) {
|
|
10
10
|
if (!t)
|
|
11
11
|
return [];
|
package/dist/chunks/runtime.js
CHANGED
|
@@ -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.33/esri/copyright.txt for details.
|
|
4
|
-
v4.33.0-next.
|
|
4
|
+
v4.33.0-next.34 */
|
|
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,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { i as c, a as u, f as y, L as m, E as g } from "./language-defaults-base.js";
|
|
2
|
+
import { CompletionItemKind as h, InsertTextFormat as P, InsertTextMode as F } from "vscode-languageserver-types";
|
|
3
3
|
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.33/esri/copyright.txt for details.
|
|
7
|
-
v4.33.0-next.
|
|
7
|
+
v4.33.0-next.34 */
|
|
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 {
|
|
@@ -19,9 +19,9 @@ function A(r) {
|
|
|
19
19
|
label: e,
|
|
20
20
|
detail: e,
|
|
21
21
|
insertText: e,
|
|
22
|
-
insertTextMode:
|
|
22
|
+
insertTextMode: F.asIs,
|
|
23
23
|
insertTextFormat: P.PlainText,
|
|
24
|
-
kind:
|
|
24
|
+
kind: h.Field
|
|
25
25
|
}, s = {
|
|
26
26
|
name: e,
|
|
27
27
|
description: i,
|
|
@@ -31,7 +31,7 @@ function A(r) {
|
|
|
31
31
|
};
|
|
32
32
|
if (!t || !("fields" in t))
|
|
33
33
|
return s;
|
|
34
|
-
const [a, l] =
|
|
34
|
+
const [a, l] = y(t.fields, i);
|
|
35
35
|
return s.properties = a, o.documentation = { kind: "markdown", value: l }, s;
|
|
36
36
|
}
|
|
37
37
|
const T = {
|
|
@@ -65,7 +65,7 @@ function E(r) {
|
|
|
65
65
|
const o = r.definitions[t.name];
|
|
66
66
|
switch (t.type) {
|
|
67
67
|
case "featureSet":
|
|
68
|
-
return
|
|
68
|
+
return u(o) ? i.variables.push({ ...t, type: t.type, definition: o }) : void 0;
|
|
69
69
|
default:
|
|
70
70
|
throw Error(`sdkVariable type not supported (yet) type: ${t.type}`);
|
|
71
71
|
}
|
|
@@ -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.33/esri/copyright.txt for details.
|
|
10
|
-
v4.33.0-next.
|
|
10
|
+
v4.33.0-next.34 */
|
|
11
11
|
let h = new _();
|
|
12
12
|
class k {
|
|
13
13
|
constructor(e) {
|
package/dist/chunks/useT9n.js
CHANGED
|
@@ -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.33/esri/copyright.txt for details.
|
|
5
|
-
v4.33.0-next.
|
|
5
|
+
v4.33.0-next.34 */
|
|
6
6
|
const s = o(t);
|
|
7
7
|
export {
|
|
8
8
|
s as u
|
|
@@ -14,7 +14,7 @@ import { createRef as S, 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.33/esri/copyright.txt for details.
|
|
17
|
-
v4.33.0-next.
|
|
17
|
+
v4.33.0-next.34 */
|
|
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>");
|
|
@@ -8,7 +8,7 @@ import { u as M } from "../../chunks/useT9n.js";
|
|
|
8
8
|
import { css as C } from "@lit/reactive-element/css-tag.js";
|
|
9
9
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
10
10
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
11
|
-
v4.33.0-next.
|
|
11
|
+
v4.33.0-next.34 */
|
|
12
12
|
const A = C`:host{display:flex;flex-direction:column;width:100%;background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-2);.flex-adjustable{flex:1 1 auto;overflow:hidden}.flex-row{display:flex;flex-direction:row;overflow:hidden}.flex-column{display:flex;flex-direction:column;overflow:hidden}.y-scrollable-container{overflow-y:auto;block-size:100%;background-color:var(--calcite-color-foreground-1)}header{border-bottom:1px solid var(--calcite-color-border-3);flex:0 0 auto}.ltr-container{direction:ltr}calcite-action-bar{calcite-action-group{padding-inline-end:var(--calcite-spacing-sm);calcite-action{padding-inline-end:var(--calcite-spacing-sm)}calcite-action:not(:first-child){padding-inline-start:var(--calcite-spacing-sm)}}calcite-action-group:last-child{border-inline-end-width:0px}calcite-action-group:not(:first-child){padding-inline-start:var(--calcite-spacing-sm)}}.notice-container{margin:var(--calcite-spacing-xxs);padding:var(--calcite-spacing-sm);background-color:var(--calcite-color-foreground-1)}.color-info{color:var(--calcite-color-status-info)}.color-error{color:var(--calcite-color-status-danger)}.color-success{color:var(--calcite-color-status-success)}[class*=result-value-]{font-size:var(--calcite-font-size--2);line-height:1.25rem;background-color:var(--calcite-color-foreground-1);margin:var(--calcite-spacing-md)}.console-logs-container{background-color:var(--calcite-color-foreground-1);padding:0 var(--calcite-spacing-md);font-family:var(--calcite-code-family);font-size:var(--calcite-font-size--2);font-weight:var(--calcite-font-weight-normal)}.result-value-table{table{display:block;max-width:fit-content;overflow-x:auto;border-spacing:0;border-collapse:collapse;text-align:start;white-space:nowrap;thead{background-color:var(--calcite-color-foreground-2)}tr{border-top:1px solid var(--calcite-color-border-3);border-bottom:1px solid var(--calcite-color-border-3)}th,td{border-inline-start:1px solid var(--calcite-color-border-3);border-inline-end:1px solid var(--calcite-color-border-3);text-align:start;padding:var(--calcite-spacing-xxs);.string-value{white-space:pre}}th{font-weight:var(--calcite-font-weight-medium)}}}.tree-item-label,.number-value,.string-value,.boolean-value{font-family:var(--calcite-code-family)}.tree-item-label,.value-type{color:var(--calcite-color-text-2);font-weight:var(--calcite-font-weight-normal)}.dictionary-property{color:var(--arcgis-editor-identifier)}.number-value{color:var(--arcgis-editor-number)}.string-value{color:var(--arcgis-editor-string);white-space:pre-wrap}.constant-value{color:var(--arcgis-editor-constant)}.date-value{color:var(--arcgis-editor-date)}}`, a = {
|
|
13
13
|
lines: !0,
|
|
14
14
|
selectionMode: "none",
|
|
@@ -9,7 +9,7 @@ import { u as b } from "../../chunks/useT9n.js";
|
|
|
9
9
|
import { css as _ } from "@lit/reactive-element/css-tag.js";
|
|
10
10
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
11
11
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
12
|
-
v4.33.0-next.
|
|
12
|
+
v4.33.0-next.34 */
|
|
13
13
|
function v(o) {
|
|
14
14
|
return !Array.isArray(o) || !o.length ? !1 : Array.isArray(o[0].suggestions);
|
|
15
15
|
}
|