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