@arcgis/coding-components 4.33.0-next.93 → 4.33.0-next.94
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/{D4PRZOMJ.js → 2UOMUDCU.js} +1 -1
- package/dist/arcgis-coding-components/{W2UV67BM.js → 4L75MIPA.js} +2 -2
- package/dist/arcgis-coding-components/{XNLLK7Q5.js → 5BIHMNUZ.js} +1 -1
- package/dist/arcgis-coding-components/{DHQWCJLS.js → 6Q43GJXJ.js} +2 -2
- package/dist/arcgis-coding-components/{6ZUXEKRL.js.LEGAL.txt → 6Q43GJXJ.js.LEGAL.txt} +1 -1
- package/dist/arcgis-coding-components/{NWRW3XA6.js → 6W27X4A5.js} +2 -2
- package/dist/arcgis-coding-components/{4I2R52ZY.js → A7MICUG4.js} +2 -2
- package/dist/arcgis-coding-components/{LZ2WITG3.js → ARKJVFIT.js} +2 -2
- package/dist/arcgis-coding-components/{72GELSFB.js.LEGAL.txt → ARKJVFIT.js.LEGAL.txt} +1 -1
- package/dist/arcgis-coding-components/{YS6SPZCV.js → B45X2RCU.js} +1 -1
- package/dist/arcgis-coding-components/{7CFL4L7Q.js → C6GPTPY4.js} +1 -1
- package/dist/arcgis-coding-components/{7CFL4L7Q.js.LEGAL.txt → C6GPTPY4.js.LEGAL.txt} +1 -1
- package/dist/arcgis-coding-components/{7V2YZUR4.js → CFP7ORLC.js} +2 -2
- package/dist/arcgis-coding-components/{7V2YZUR4.js.LEGAL.txt → CFP7ORLC.js.LEGAL.txt} +1 -1
- package/dist/arcgis-coding-components/{EE722JCJ.js → CZ76XOMS.js} +2 -2
- package/dist/arcgis-coding-components/{HSDQQ4HG.js → D7BXQG4L.js} +2 -2
- package/dist/arcgis-coding-components/D7BXQG4L.js.LEGAL.txt +3 -0
- package/dist/arcgis-coding-components/{DU6CV6OG.js → EP2YUSNH.js} +2 -2
- package/dist/arcgis-coding-components/{XALU3KET.js → EURLPKDS.js} +2 -2
- package/dist/arcgis-coding-components/EURLPKDS.js.LEGAL.txt +3 -0
- package/dist/arcgis-coding-components/{MTGB7QMO.js → FUIHPHGW.js} +2 -2
- package/dist/arcgis-coding-components/FUIHPHGW.js.LEGAL.txt +3 -0
- package/dist/arcgis-coding-components/{R3ECUN4Z.js → HDCM3LC5.js} +2 -2
- package/dist/arcgis-coding-components/HDCM3LC5.js.LEGAL.txt +3 -0
- package/dist/arcgis-coding-components/{FB2Z3L5Y.js → I65OQ4H6.js} +2 -2
- package/dist/arcgis-coding-components/I65OQ4H6.js.LEGAL.txt +3 -0
- package/dist/arcgis-coding-components/{PD4IUEVP.js → IDCJQ76C.js} +2 -2
- package/dist/arcgis-coding-components/{5VJ5A7X3.js → IZR6CPOM.js} +2 -2
- package/dist/arcgis-coding-components/{J562J2TW.js → JWU3LRFA.js} +2 -2
- package/dist/arcgis-coding-components/JWU3LRFA.js.LEGAL.txt +3 -0
- package/dist/arcgis-coding-components/{7NLEGNAE.js → KW7UAGYK.js} +3 -3
- package/dist/arcgis-coding-components/{7NLEGNAE.js.LEGAL.txt → KW7UAGYK.js.LEGAL.txt} +1 -1
- package/dist/arcgis-coding-components/{OJ54I7IU.js → KYFKKTKR.js} +2 -2
- package/dist/arcgis-coding-components/KYFKKTKR.js.LEGAL.txt +3 -0
- package/dist/arcgis-coding-components/{U6EAFNWW.js → LBDYBLQS.js} +2 -2
- package/dist/arcgis-coding-components/{U6EAFNWW.js.LEGAL.txt → LBDYBLQS.js.LEGAL.txt} +1 -1
- package/dist/arcgis-coding-components/{IAB42QJD.js → N3T3NW5N.js} +2 -2
- package/dist/arcgis-coding-components/N3T3NW5N.js.LEGAL.txt +3 -0
- package/dist/arcgis-coding-components/{IH7XAKOJ.js → NRPCKA2V.js} +2 -2
- package/dist/arcgis-coding-components/{AETZHUSK.js → OXUVXK47.js} +2 -2
- package/dist/arcgis-coding-components/P2YKRZDD.js +4 -0
- package/dist/arcgis-coding-components/{72GELSFB.js → PATWPXZE.js} +2 -2
- package/dist/arcgis-coding-components/PATWPXZE.js.LEGAL.txt +3 -0
- package/dist/arcgis-coding-components/{JQ7YABP7.js → PY4OG5MY.js} +2 -2
- package/dist/arcgis-coding-components/PY4OG5MY.js.LEGAL.txt +3 -0
- package/dist/arcgis-coding-components/{6ZUXEKRL.js → QY7PG52Y.js} +2 -2
- package/dist/arcgis-coding-components/QY7PG52Y.js.LEGAL.txt +3 -0
- package/dist/arcgis-coding-components/{ULPC3UGJ.js → SYOOXRWH.js} +4 -4
- package/dist/arcgis-coding-components/SYOOXRWH.js.LEGAL.txt +3 -0
- package/dist/arcgis-coding-components/{LIG6J2IU.js → T63CAV7V.js} +2 -2
- package/dist/arcgis-coding-components/{LIG6J2IU.js.LEGAL.txt → T63CAV7V.js.LEGAL.txt} +1 -1
- package/dist/arcgis-coding-components/{CJIX3PR3.js → TBUHAI37.js} +2 -2
- package/dist/arcgis-coding-components/{RSD7JMA7.js → ZBFJT24O.js} +2 -2
- package/dist/arcgis-coding-components/{JSMSBKGK.js → ZUZCOEYS.js} +2 -2
- 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/sql-expr.worker.js +1 -1
- package/dist/chunks/arcade-defaults.js +1 -1
- package/dist/chunks/arcade-executor.js +1 -1
- package/dist/chunks/arcade-mode.js +1 -1
- package/dist/chunks/arcade-service-accessors.js +1 -1
- package/dist/chunks/fields.js +1 -1
- package/dist/chunks/language-defaults-base.js +46 -46
- 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 +72 -72
- 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/package.json +7 -7
- package/dist/arcgis-coding-components/DHQWCJLS.js.LEGAL.txt +0 -3
- package/dist/arcgis-coding-components/FB2Z3L5Y.js.LEGAL.txt +0 -3
- package/dist/arcgis-coding-components/HSDQQ4HG.js.LEGAL.txt +0 -3
- package/dist/arcgis-coding-components/IAB42QJD.js.LEGAL.txt +0 -3
- package/dist/arcgis-coding-components/J562J2TW.js.LEGAL.txt +0 -3
- package/dist/arcgis-coding-components/JQ7YABP7.js.LEGAL.txt +0 -3
- package/dist/arcgis-coding-components/LZ2WITG3.js.LEGAL.txt +0 -3
- package/dist/arcgis-coding-components/MTGB7QMO.js.LEGAL.txt +0 -3
- package/dist/arcgis-coding-components/OJ54I7IU.js.LEGAL.txt +0 -3
- package/dist/arcgis-coding-components/R3ECUN4Z.js.LEGAL.txt +0 -3
- package/dist/arcgis-coding-components/SN2J6ITC.js +0 -4
- package/dist/arcgis-coding-components/ULPC3UGJ.js.LEGAL.txt +0 -3
- package/dist/arcgis-coding-components/XALU3KET.js.LEGAL.txt +0 -3
- /package/dist/arcgis-coding-components/{D4PRZOMJ.js.LEGAL.txt → 2UOMUDCU.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{W2UV67BM.js.LEGAL.txt → 4L75MIPA.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{NWRW3XA6.js.LEGAL.txt → 5BIHMNUZ.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{SN2J6ITC.js.LEGAL.txt → 6W27X4A5.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{4I2R52ZY.js.LEGAL.txt → A7MICUG4.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{XNLLK7Q5.js.LEGAL.txt → B45X2RCU.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{EE722JCJ.js.LEGAL.txt → CZ76XOMS.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{DU6CV6OG.js.LEGAL.txt → EP2YUSNH.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{PD4IUEVP.js.LEGAL.txt → IDCJQ76C.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{5VJ5A7X3.js.LEGAL.txt → IZR6CPOM.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{IH7XAKOJ.js.LEGAL.txt → NRPCKA2V.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{AETZHUSK.js.LEGAL.txt → OXUVXK47.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{YS6SPZCV.js.LEGAL.txt → P2YKRZDD.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{CJIX3PR3.js.LEGAL.txt → TBUHAI37.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{RSD7JMA7.js.LEGAL.txt → ZBFJT24O.js.LEGAL.txt} +0 -0
- /package/dist/arcgis-coding-components/{JSMSBKGK.js.LEGAL.txt → ZUZCOEYS.js.LEGAL.txt} +0 -0
|
@@ -4,7 +4,7 @@ import { g as m } from "./runtime.js";
|
|
|
4
4
|
import { CompletionItemKind as w, InsertTextFormat as f, InsertTextMode 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.33/esri/copyright.txt for details.
|
|
7
|
-
v4.33.0-next.
|
|
7
|
+
v4.33.0-next.94 */
|
|
8
8
|
async function S(e) {
|
|
9
9
|
const { apiVersion: i, bundles: t, hiddenApiItems: n } = e.toEditorProfileDefinition(), r = await h(e.dictionaryVariables);
|
|
10
10
|
return { apiVersion: i, bundles: t, variables: r, hiddenApiItems: n?.map((s) => s.toLowerCase()) };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { importArcade as C } from "@arcgis/core-adapter";
|
|
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.94 */
|
|
5
5
|
const G = "https://developers.arcgis.com/arcade/", O = 100, A = 100;
|
|
6
6
|
function u(t) {
|
|
7
7
|
return !!t && typeof t == "object" && "declaredRootClass" in t && typeof t.declaredRootClass == "string" && t.declaredRootClass === "esri.arcade.featureset.support.FeatureSet";
|
|
@@ -8,7 +8,7 @@ import { InsertTextFormat as y, CompletionItemKind as o, DiagnosticSeverity as m
|
|
|
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.33/esri/copyright.txt for details.
|
|
11
|
-
v4.33.0-next.
|
|
11
|
+
v4.33.0-next.94 */
|
|
12
12
|
const S = [
|
|
13
13
|
"<=",
|
|
14
14
|
">=",
|
|
@@ -2,7 +2,7 @@ import { importRequest as n } from "@arcgis/core-adapter";
|
|
|
2
2
|
import { isURL as i, hasSameOrigin as c } from "@arcgis/components-utils";
|
|
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.94 */
|
|
6
6
|
function a() {
|
|
7
7
|
return !!window.MonacoEnvironment?.getWorkerUrl;
|
|
8
8
|
}
|
package/dist/chunks/fields.js
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import { importRequest as
|
|
2
|
-
import { p as
|
|
3
|
-
import { isNotNull as C, isNotUndefined as U, addLTRMark as
|
|
4
|
-
import {
|
|
1
|
+
import { importRequest as X, newLayersFeatureLayer as b, newPortalPortalItem as Y, newWebScene as Z, newWebMap as ee } from "@arcgis/core-adapter";
|
|
2
|
+
import { p as te, i as ie } from "./monaco-importer.js";
|
|
3
|
+
import { isNotNull as C, isNotUndefined as U, addLTRMark as re, setValuesInString as V, normalizeLocale as se } from "@arcgis/components-utils";
|
|
4
|
+
import { s as W, f as ne, a as _, b as oe } from "./fields.js";
|
|
5
5
|
import { CompletionItemKind as T, InsertTextFormat as I, InsertTextMode as M } from "vscode-languageserver-types";
|
|
6
6
|
import { g as ae } from "./runtime.js";
|
|
7
7
|
import { filterApiLibraryForContext as le } from "@arcgis/languages-api-utils";
|
|
8
8
|
import { Emitter as x, Uri as $ } from "monaco-editor";
|
|
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.
|
|
12
|
-
function
|
|
11
|
+
v4.33.0-next.94 */
|
|
12
|
+
function B(t) {
|
|
13
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";
|
|
14
14
|
}
|
|
15
15
|
function ue(t) {
|
|
16
16
|
return !!t && typeof t == "object" && "allLayers" in t && "allTables" in t && typeof t.allLayers == "object" && typeof t.allTables == "object";
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function N(t) {
|
|
19
19
|
return !!t && typeof t == "object" && "declaredClass" in t && typeof t.declaredClass == "string" && (t.declaredClass === "esri.Map" || t.declaredClass === "esri.WebMap" || t.declaredClass === "esri.WebScene");
|
|
20
20
|
}
|
|
21
21
|
function ce(t) {
|
|
22
22
|
return !!t && typeof t == "object" && "loadAll" in t && typeof t.loadAll == "function";
|
|
23
23
|
}
|
|
24
|
-
function
|
|
24
|
+
function R(t) {
|
|
25
25
|
return !!t && typeof t == "object" && "portalItem" in t && t.portalItem != null;
|
|
26
26
|
}
|
|
27
|
-
function
|
|
27
|
+
function O(t) {
|
|
28
28
|
return !!t && typeof t == "object" && "portalItem" in t && t.portalItem != null;
|
|
29
29
|
}
|
|
30
30
|
function g(t) {
|
|
@@ -37,13 +37,13 @@ function pe(t) {
|
|
|
37
37
|
return w(t) && /\/(?:featureserver|mapserver)(?:\/|$)/iu.test(t.url ?? "");
|
|
38
38
|
}
|
|
39
39
|
function Le(t) {
|
|
40
|
-
return w(t) || g(t) ||
|
|
40
|
+
return w(t) || g(t) || O(t);
|
|
41
41
|
}
|
|
42
42
|
function Ge(t) {
|
|
43
|
-
return w(t) || g(t) ||
|
|
43
|
+
return w(t) || g(t) || O(t);
|
|
44
44
|
}
|
|
45
45
|
function je(t) {
|
|
46
|
-
return
|
|
46
|
+
return R(t) || N(t) || pe(t);
|
|
47
47
|
}
|
|
48
48
|
function A(t) {
|
|
49
49
|
return !!t && typeof t == "object" && "declaredClass" in t && t.declaredClass === "esri.layers.support.Subtype";
|
|
@@ -63,7 +63,7 @@ function m(t) {
|
|
|
63
63
|
function fe(t) {
|
|
64
64
|
return !!t && typeof t == "object" && "url" in t && typeof t.url == "string";
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function q(t) {
|
|
67
67
|
return !!t && typeof t == "object" && "layerId" in t && typeof t.layerId == "number";
|
|
68
68
|
}
|
|
69
69
|
function S(t) {
|
|
@@ -82,7 +82,7 @@ function ye(t) {
|
|
|
82
82
|
return !!t && typeof t == "object" && "portalItem" in t;
|
|
83
83
|
}
|
|
84
84
|
function _e(t) {
|
|
85
|
-
return
|
|
85
|
+
return q(t) && "relationships" in t && "url" in t && Array.isArray(t.relationships) && typeof t.url == "string";
|
|
86
86
|
}
|
|
87
87
|
function be(t) {
|
|
88
88
|
return !!t && typeof t == "object" && "isTable" in t && typeof t.isTable == "boolean";
|
|
@@ -90,7 +90,7 @@ function be(t) {
|
|
|
90
90
|
function me(t) {
|
|
91
91
|
return !!t && typeof t == "object" && "load" in t && typeof t.load == "function";
|
|
92
92
|
}
|
|
93
|
-
async function
|
|
93
|
+
async function k(t) {
|
|
94
94
|
if (!t)
|
|
95
95
|
return null;
|
|
96
96
|
let e;
|
|
@@ -98,7 +98,7 @@ async function q(t) {
|
|
|
98
98
|
}
|
|
99
99
|
async function ge(t) {
|
|
100
100
|
t += "/layers";
|
|
101
|
-
const i = await (await
|
|
101
|
+
const i = await (await X())(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
102
|
return { layers: s, tables: n };
|
|
103
103
|
}
|
|
104
104
|
function G(t, e) {
|
|
@@ -118,7 +118,7 @@ async function we(t, e) {
|
|
|
118
118
|
const i = await b({ url: `${t.url}/${e.relatedTableId}` });
|
|
119
119
|
return await i.load(), i;
|
|
120
120
|
}
|
|
121
|
-
function
|
|
121
|
+
function K(t) {
|
|
122
122
|
return (e, i) => {
|
|
123
123
|
if (e.type === "oid")
|
|
124
124
|
return -1;
|
|
@@ -143,11 +143,11 @@ function j(t, e) {
|
|
|
143
143
|
return t?.every((i) => i.domains?.[e.name]?.type === "inherited") ?? !1;
|
|
144
144
|
}
|
|
145
145
|
const De = /^[a-z_$][a-z0-9_$]*$/giu;
|
|
146
|
-
function
|
|
146
|
+
function z(t, e = !0) {
|
|
147
147
|
return t.match(De) ? `${e ? "." : ""}${t}` : `["${t}"]`;
|
|
148
148
|
}
|
|
149
|
-
function
|
|
150
|
-
return t ? `${t}${
|
|
149
|
+
function H(t, e) {
|
|
150
|
+
return t ? `${t}${z(e)}` : e;
|
|
151
151
|
}
|
|
152
152
|
function E(t) {
|
|
153
153
|
return ye(t) ? t.portalItem : null;
|
|
@@ -155,13 +155,13 @@ function E(t) {
|
|
|
155
155
|
function Ue(t, e, i = !1) {
|
|
156
156
|
let r = e;
|
|
157
157
|
const s = [], n = [];
|
|
158
|
-
return
|
|
158
|
+
return W(t).forEach((o) => {
|
|
159
159
|
r && (r += `
|
|
160
160
|
|
|
161
161
|
`), r += `**${o.name}** (${o.alias})
|
|
162
162
|
${o.type}`, o.description && (r += `
|
|
163
163
|
'${o.description}`);
|
|
164
|
-
const p = oe(o), c =
|
|
164
|
+
const p = oe(o), c = z(o.name, !1), y = _(o);
|
|
165
165
|
if (s.push({
|
|
166
166
|
name: o.name,
|
|
167
167
|
description: y,
|
|
@@ -197,7 +197,7 @@ ${o.type}`;
|
|
|
197
197
|
}
|
|
198
198
|
}), [[...s, ...n], r];
|
|
199
199
|
}
|
|
200
|
-
class
|
|
200
|
+
class J {
|
|
201
201
|
constructor(e, i, r) {
|
|
202
202
|
this._profile = e, this._label = i, this.description = r, this.filterDescription = !1;
|
|
203
203
|
}
|
|
@@ -205,7 +205,7 @@ class H {
|
|
|
205
205
|
* Returns the label string.
|
|
206
206
|
*/
|
|
207
207
|
getLabel() {
|
|
208
|
-
return this._label == null ? "" : typeof this._label == "string" ?
|
|
208
|
+
return this._label == null ? "" : typeof this._label == "string" ? re(this._label) : V(this._profile?.intlStrings[this._label.code], this._label.formatValues);
|
|
209
209
|
}
|
|
210
210
|
/**
|
|
211
211
|
* Returns the description string.
|
|
@@ -220,7 +220,7 @@ class H {
|
|
|
220
220
|
return !e || e.test(this.getLabel()) ? !0 : this.filterDescription && e.test(this.getDescription());
|
|
221
221
|
}
|
|
222
222
|
}
|
|
223
|
-
class F extends
|
|
223
|
+
class F extends J {
|
|
224
224
|
constructor(e) {
|
|
225
225
|
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;
|
|
226
226
|
}
|
|
@@ -274,7 +274,7 @@ class v extends F {
|
|
|
274
274
|
return "";
|
|
275
275
|
}
|
|
276
276
|
}
|
|
277
|
-
class l extends
|
|
277
|
+
class l extends J {
|
|
278
278
|
constructor(e, i, r = [], s = !1) {
|
|
279
279
|
super(e, i), this.variables = r, this.isHeader = s, this.type = "group", this.isCollection = !0;
|
|
280
280
|
}
|
|
@@ -301,7 +301,7 @@ class d extends v {
|
|
|
301
301
|
}), i;
|
|
302
302
|
}
|
|
303
303
|
createVariableInstance(e) {
|
|
304
|
-
const i =
|
|
304
|
+
const i = H(this.snippet, e.name);
|
|
305
305
|
switch (e.type) {
|
|
306
306
|
case "number":
|
|
307
307
|
case "text":
|
|
@@ -352,7 +352,7 @@ class d extends v {
|
|
|
352
352
|
};
|
|
353
353
|
}
|
|
354
354
|
}
|
|
355
|
-
class
|
|
355
|
+
class Q extends v {
|
|
356
356
|
constructor(e, i, r) {
|
|
357
357
|
super(e, i), this.relationshipsProperties = r, this._source = null, this._loaded = !1, this._definition = i.declaration?.definition;
|
|
358
358
|
}
|
|
@@ -363,7 +363,7 @@ class J extends v {
|
|
|
363
363
|
return fe(this._source) ? this._source.url ?? "" : "";
|
|
364
364
|
}
|
|
365
365
|
get informationUrl() {
|
|
366
|
-
return !this.loaded || !this.url ? null :
|
|
366
|
+
return !this.loaded || !this.url ? null : q(this._source) ? `${this.url}/${this._source.layerId}` : this.url;
|
|
367
367
|
}
|
|
368
368
|
get informationType() {
|
|
369
369
|
return this._profile?.intlStrings.layer ?? "layer";
|
|
@@ -372,7 +372,7 @@ class J extends v {
|
|
|
372
372
|
return C(this._loadPromise) && U(this._loadPromise) ? await this._loadPromise : (this._loadPromise = this._loadSource(), await this._loadPromise);
|
|
373
373
|
}
|
|
374
374
|
_getValueSnippet(e) {
|
|
375
|
-
return this.type === "feature" ?
|
|
375
|
+
return this.type === "feature" ? H(this.snippet, e.name) : e.name;
|
|
376
376
|
}
|
|
377
377
|
_getSubtypeOrDomainNameSnippet(e) {
|
|
378
378
|
return this.type !== "feature" ? null : f(this._source) && e.name === this._source.subtypeField ? `SubtypeName(${this.snippet})` : `DomainName(${this.snippet}, "${e.name}")`;
|
|
@@ -387,7 +387,7 @@ class J extends v {
|
|
|
387
387
|
label: r,
|
|
388
388
|
description: _(e),
|
|
389
389
|
snippet: r,
|
|
390
|
-
icon:
|
|
390
|
+
icon: ne(e),
|
|
391
391
|
filterDescription: !0
|
|
392
392
|
});
|
|
393
393
|
}
|
|
@@ -521,7 +521,7 @@ class J extends v {
|
|
|
521
521
|
const i = new l(this._profile, { code: "relationships" }), r = await Promise.all(
|
|
522
522
|
e.relationships?.map(async (s) => {
|
|
523
523
|
const n = await we(e, s);
|
|
524
|
-
if (!
|
|
524
|
+
if (!B(n) || s.relatedTableId === this.relationshipsProperties?.sourceTableId)
|
|
525
525
|
return null;
|
|
526
526
|
const u = `FeatureSetByRelationshipName(${this.snippet}, "${s.name}")`;
|
|
527
527
|
return new P(
|
|
@@ -541,7 +541,7 @@ class J extends v {
|
|
|
541
541
|
return i.variables = r.filter(C), i.variables.length ? i : null;
|
|
542
542
|
}
|
|
543
543
|
}
|
|
544
|
-
class Se extends
|
|
544
|
+
class Se extends Q {
|
|
545
545
|
constructor(e, i) {
|
|
546
546
|
super(e, i, { exposeRelationships: !0 }), this.type = "feature";
|
|
547
547
|
}
|
|
@@ -552,7 +552,7 @@ class Se extends J {
|
|
|
552
552
|
if (this.loaded)
|
|
553
553
|
return this._source;
|
|
554
554
|
try {
|
|
555
|
-
if (this._source = await
|
|
555
|
+
if (this._source = await k(this._definition), !this._source)
|
|
556
556
|
throw new Error("Invalid definition");
|
|
557
557
|
const e = m(this._source) ? this._source.title ?? "" : "";
|
|
558
558
|
this.variables.push(
|
|
@@ -578,7 +578,7 @@ class Se extends J {
|
|
|
578
578
|
});
|
|
579
579
|
i.variables.push(n);
|
|
580
580
|
}
|
|
581
|
-
this._source.fields.sort(
|
|
581
|
+
W(this._source.fields).sort(K(this._source)).forEach((s) => {
|
|
582
582
|
i.variables.push(this._getFieldProperty(s));
|
|
583
583
|
});
|
|
584
584
|
const r = await this._getRelationshipsProperty();
|
|
@@ -594,7 +594,7 @@ class Se extends J {
|
|
|
594
594
|
return { type: this.type, name: "", ...this.declaration, definition: this._definition };
|
|
595
595
|
}
|
|
596
596
|
}
|
|
597
|
-
class P extends
|
|
597
|
+
class P extends Q {
|
|
598
598
|
constructor(e, i, r = [], s) {
|
|
599
599
|
super(e, i, s), this.featureSetSnippets = r, this.type = "featureSet";
|
|
600
600
|
}
|
|
@@ -605,11 +605,11 @@ class P extends J {
|
|
|
605
605
|
if (this.loaded)
|
|
606
606
|
return this._source;
|
|
607
607
|
try {
|
|
608
|
-
if (this._source = await
|
|
608
|
+
if (this._source = await k(this._definition), !this._source)
|
|
609
609
|
throw new Error("Invalid definition");
|
|
610
610
|
this.variables.push(new l(this._profile, this.title, this.featureSetSnippets, !0));
|
|
611
611
|
const e = new l(this._profile, { code: "fields" });
|
|
612
|
-
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));
|
|
613
613
|
const i = await this._getRelationshipsProperty();
|
|
614
614
|
i && this.variables.push(i);
|
|
615
615
|
} catch (e) {
|
|
@@ -628,7 +628,7 @@ class Fe extends v {
|
|
|
628
628
|
super(e, i), this.type = "featureSetCollection", this._featureSetCollections = null, this._loaded = !1, this._definition = i.declaration?.definition;
|
|
629
629
|
}
|
|
630
630
|
get informationUrl() {
|
|
631
|
-
return !this.loaded || !this._featureSetCollections ? null : typeof this._featureSetCollections.source != "string" ?
|
|
631
|
+
return !this.loaded || !this._featureSetCollections ? null : typeof this._featureSetCollections.source != "string" ? te(E(this._featureSetCollections.source)) : null;
|
|
632
632
|
}
|
|
633
633
|
get informationType() {
|
|
634
634
|
if (!this.loaded || !this._featureSetCollections)
|
|
@@ -675,7 +675,7 @@ class Fe extends v {
|
|
|
675
675
|
return this._featureSetCollections;
|
|
676
676
|
}
|
|
677
677
|
async _featureSetCollectionsFromDefinition() {
|
|
678
|
-
return this._definition ?
|
|
678
|
+
return this._definition ? N(this._definition) ? await this._featureSetCollectionFromMap(this._definition) : w(this._definition) ? await this._featureSetCollectionFromUrl(this._definition.url) : R(this._definition) ? await this._featureSetCollectionFromPortalItem(this._definition.portalItem) : null : null;
|
|
679
679
|
}
|
|
680
680
|
async _featureSetCollectionFromMap(e) {
|
|
681
681
|
return ce(e) && await e.loadAll(), await Promise.all(e.tables.map(async (i) => await i.load())), {
|
|
@@ -685,14 +685,14 @@ class Fe extends v {
|
|
|
685
685
|
};
|
|
686
686
|
}
|
|
687
687
|
async _featureSetCollectionFromPortalItem(e) {
|
|
688
|
-
const i = await
|
|
688
|
+
const i = await Y(e);
|
|
689
689
|
switch (await i.load(), i.type) {
|
|
690
690
|
case "Web Map": {
|
|
691
|
-
const r = await
|
|
691
|
+
const r = await ee({ portalItem: i });
|
|
692
692
|
return await this._featureSetCollectionFromMap(r);
|
|
693
693
|
}
|
|
694
694
|
case "Web Scene": {
|
|
695
|
-
const r = await
|
|
695
|
+
const r = await Z({ portalItem: i });
|
|
696
696
|
return await this._featureSetCollectionFromMap(r);
|
|
697
697
|
}
|
|
698
698
|
case "Feature Service":
|
|
@@ -721,7 +721,7 @@ class Fe extends v {
|
|
|
721
721
|
_convertWebMapLayersToVariables(e, i = !1) {
|
|
722
722
|
const r = [];
|
|
723
723
|
return e.toArray().reverse().forEach((s) => {
|
|
724
|
-
if (
|
|
724
|
+
if (B(s)) {
|
|
725
725
|
r.push(this._createFeatureSetVariable(s, !0));
|
|
726
726
|
return;
|
|
727
727
|
}
|
|
@@ -794,7 +794,7 @@ class Be {
|
|
|
794
794
|
constructor(e, i) {
|
|
795
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 = {
|
|
796
796
|
getApiLibrary: async (r) => await this.getApiLibrary(r)
|
|
797
|
-
},
|
|
797
|
+
}, ie().then((r) => {
|
|
798
798
|
r.onWillDisposeModel((s) => {
|
|
799
799
|
this.disposeForModel(s.uri);
|
|
800
800
|
});
|
|
@@ -870,7 +870,7 @@ class Be {
|
|
|
870
870
|
}
|
|
871
871
|
}
|
|
872
872
|
async getApiLibrary(e) {
|
|
873
|
-
const i =
|
|
873
|
+
const i = se(e);
|
|
874
874
|
return this._localeToApiLibraryPromiseMap.has(i) || this._localeToApiLibraryPromiseMap.set(i, this.fetchApiLibrary(i)), await this._localeToApiLibraryPromiseMap.get(i) ?? [];
|
|
875
875
|
}
|
|
876
876
|
// #endregion
|
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.94 */
|
|
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.94 */
|
|
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.94 */
|
|
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.33/esri/copyright.txt for details.
|
|
7
|
-
v4.33.0-next.
|
|
7
|
+
v4.33.0-next.94 */
|
|
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.33/esri/copyright.txt for details.
|
|
10
|
-
v4.33.0-next.
|
|
10
|
+
v4.33.0-next.94 */
|
|
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.94 */
|
|
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.94 */
|
|
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>");
|