@arcgis/coding-components 5.0.0-next.114 → 5.0.0-next.116
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/addons.js +1 -1
- package/dist/cdn/{5XRXNGIJ.js → 2VBQTKPJ.js} +2 -2
- package/dist/cdn/{N4HK6QPY.js → 2VDNM4E2.js} +1 -1
- package/dist/cdn/4VCUCVBK.js +4 -0
- package/dist/cdn/{SZPTSVKI.js → 5E34XUIB.js} +2 -2
- package/dist/cdn/{O2RLIM4Z.js → 5OKP7MR6.js} +2 -2
- package/dist/cdn/{NOJYWNV6.js → 7JJPXZKZ.js} +2 -2
- package/dist/cdn/{LVRGJKTO.js → 7V25IS6A.js} +2 -2
- package/dist/cdn/{67ZTNYDR.js → AFWFVZ3D.js} +2 -2
- package/dist/cdn/{OCXQUJHW.js → ATMZJVQS.js} +2 -2
- package/dist/cdn/{5D7BZ4AJ.js → BKDPALF4.js} +2 -2
- package/dist/cdn/{FXBIE4TU.js → D6OLHQF3.js} +2 -2
- package/dist/cdn/{Q7T6IG6A.js → DTYDEUN2.js} +2 -2
- package/dist/cdn/{ELX57OKG.js → E3ACBLRP.js} +1 -1
- package/dist/cdn/{6HZN5K7C.js → EFBFASZ2.js} +1 -1
- package/dist/cdn/{TDWKY5BJ.js → ENLUMTM2.js} +1 -1
- package/dist/cdn/{VWGDPBT6.js → FGWMLBVV.js} +2 -2
- package/dist/cdn/{VJTAK7CX.js → FXCCH2NR.js} +2 -2
- package/dist/cdn/{C62MXLP6.js → GAFDXLRK.js} +1 -1
- package/dist/cdn/{UYKE4EFV.js → GRGNF5BP.js} +2 -2
- package/dist/cdn/{GELX4TL4.js → HAU34O2T.js} +2 -2
- package/dist/cdn/{TOESJKP6.js → IBKP7EVS.js} +2 -2
- package/dist/cdn/{VCLSKCOF.js → JHIMMZLU.js} +2 -2
- package/dist/cdn/{NR6Y3SMQ.js → JLKSWW5G.js} +2 -2
- package/dist/cdn/{TINATS7X.js → KWHR4CPP.js} +2 -2
- package/dist/cdn/{BLWQ7QOL.js → KZ3NNHCH.js} +2 -2
- package/dist/cdn/{AW57CO3G.js → LDRKCODQ.js} +2 -2
- package/dist/cdn/{EAJJ7BYC.js → LHKKZWM7.js} +2 -2
- package/dist/cdn/{RVD7TQR3.js → NP2YJUNW.js} +2 -2
- package/dist/cdn/{OTTHE5A7.js → OI2LQPNO.js} +2 -2
- package/dist/cdn/{JX5Z5PZM.js → OVHUPF6I.js} +2 -2
- package/dist/cdn/{HZPKRD5Y.js → PCXGFTQ5.js} +2 -2
- package/dist/cdn/{JYZFOYLT.js → PE2O2A3D.js} +1 -1
- package/dist/cdn/{4Y5YSMOE.js → PEDVTCDU.js} +2 -2
- package/dist/cdn/{GZAZQWHH.js → PLGJ2YGG.js} +2 -2
- package/dist/cdn/{FBPV75KB.js → QJQAOLAC.js} +2 -2
- package/dist/cdn/{2GCQFUMI.js → RIWO6MXU.js} +2 -2
- package/dist/cdn/{YEA4EWQC.js → RSX4DVU2.js} +2 -2
- package/dist/cdn/{67ARLOL3.js → SARGQYJB.js} +2 -2
- package/dist/cdn/SSXARCZF.js +8 -0
- package/dist/cdn/{DR2NYKLD.js → TASZMXVX.js} +2 -2
- package/dist/cdn/{R7M5X6VK.js → UBD2AOJU.js} +2 -2
- package/dist/cdn/{OTELJGV3.js → V7NFXJT4.js} +3 -3
- package/dist/cdn/{4LHBHN5J.js → VPJMN4YI.js} +2 -2
- package/dist/cdn/{IGN4DYX6.js → VR2FY3BO.js} +1 -1
- package/dist/cdn/{NNVZSNRG.js → WCZCRBXC.js} +3 -3
- package/dist/cdn/{P6PEG6MN.js → XZO6ZBYE.js} +2 -2
- package/dist/cdn/{KRZYNZ3L.js → YCFI5E4G.js} +1 -1
- package/dist/cdn/{5CZRMWEI.js → ZFJ2WJ7H.js} +2 -2
- package/dist/cdn/index.js +2 -2
- package/dist/chunks/arcade-contribution.js +1 -1
- package/dist/chunks/arcade-defaults.js +113 -90
- 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/colorize.js +1 -1
- package/dist/chunks/fields.js +1 -1
- package/dist/chunks/language-defaults-base.js +51 -51
- package/dist/chunks/markdown.js +1 -1
- package/dist/chunks/monaco-importer.js +1 -1
- package/dist/chunks/monaco-theme.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/sql-expr-service-accessors.js +1 -1
- package/dist/chunks/useT9n.js +1 -1
- package/dist/chunks/utilities.js +1 -1
- package/dist/components/arcgis-arcade-coding-assistant/customElement.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-code-editor-shell/customElement.js +1 -1
- package/dist/components/arcgis-code-viewer/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-monaco/arcade-profile-strategy.d.ts +4 -1
- package/dist/utils/language-defaults-base.d.ts +1 -1
- package/dist/utils/profile/editor-profile.d.ts +2 -1
- package/dist/utils/profile/types.d.ts +17 -0
- package/dist/utils/profile/utils.d.ts +0 -2
- package/package.json +5 -5
- package/dist/cdn/NGMWEFSR.js +0 -8
- package/dist/cdn/QGA5LYZF.js +0 -4
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import g from "@arcgis/core/layers/FeatureLayer.js";
|
|
2
2
|
import te from "@arcgis/core/request.js";
|
|
3
|
-
import "@arcgis/toolkit/type";
|
|
4
3
|
import { p as ie } from "./utilities.js";
|
|
5
4
|
import re from "@arcgis/core/portal/PortalItem.js";
|
|
6
5
|
import se from "@arcgis/core/WebMap.js";
|
|
@@ -8,7 +7,7 @@ import ne from "@arcgis/core/WebScene.js";
|
|
|
8
7
|
import { isNotNull as v, isNotUndefined as k } from "@arcgis/toolkit/predicate";
|
|
9
8
|
import { addLtrMark as oe, setValuesInString as G } from "@arcgis/toolkit/string";
|
|
10
9
|
import { s as w, f as ae, a as m, m as le, b as ue } from "./fields.js";
|
|
11
|
-
import { CompletionItemKind as F, InsertTextFormat as x, InsertTextMode as
|
|
10
|
+
import { CompletionItemKind as F, InsertTextFormat as x, InsertTextMode as P } from "vscode-languageserver-types";
|
|
12
11
|
import { getDeclaredVoxelMembers as pe, getDeclaredPixelMembers as ce } from "@arcgis/core/applications/Components/arcadeEditorUtils.js";
|
|
13
12
|
import { log as h } from "@arcgis/toolkit/log";
|
|
14
13
|
import { i as he } from "./monaco-importer.js";
|
|
@@ -18,7 +17,7 @@ import { filterApiLibraryForContext as ye } from "@arcgis/languages-api-utils";
|
|
|
18
17
|
import { Emitter as E, Uri as j } from "monaco-editor";
|
|
19
18
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
20
19
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
21
|
-
v5.0.0-next.
|
|
20
|
+
v5.0.0-next.116 */
|
|
22
21
|
function q(t) {
|
|
23
22
|
return !!t && typeof t == "object" && "declaredClass" in t && typeof t.declaredClass == "string" && t.declaredClass.startsWith("esri.layers.") && D(t) && "queryFeatures" in t && typeof t.queryFeatures == "function";
|
|
24
23
|
}
|
|
@@ -37,37 +36,37 @@ function H(t) {
|
|
|
37
36
|
function D(t) {
|
|
38
37
|
return !!t && typeof t == "object" && "fields" in t && Array.isArray(t.fields);
|
|
39
38
|
}
|
|
40
|
-
function
|
|
39
|
+
function C(t) {
|
|
41
40
|
return !!t && typeof t == "object" && "url" in t && typeof t.url == "string";
|
|
42
41
|
}
|
|
43
42
|
function be(t) {
|
|
44
|
-
return
|
|
43
|
+
return C(t) && /\/(?:featureserver|mapserver)(?:\/|$)/iu.test(t.url ?? "");
|
|
45
44
|
}
|
|
46
45
|
function J(t) {
|
|
47
|
-
return
|
|
46
|
+
return C(t) || D(t) || H(t);
|
|
48
47
|
}
|
|
49
|
-
function
|
|
48
|
+
function et(t) {
|
|
50
49
|
return J(t) && "type" in t && t.type === "voxel";
|
|
51
50
|
}
|
|
52
|
-
function
|
|
51
|
+
function tt(t) {
|
|
53
52
|
return J(t) && "type" in t && (t.type === "imagery" || t.type === "imagery-tile");
|
|
54
53
|
}
|
|
55
|
-
function
|
|
56
|
-
return
|
|
54
|
+
function it(t) {
|
|
55
|
+
return C(t) || D(t) || H(t);
|
|
57
56
|
}
|
|
58
|
-
function
|
|
57
|
+
function rt(t) {
|
|
59
58
|
return z(t) || K(t) || be(t);
|
|
60
59
|
}
|
|
61
60
|
function N(t) {
|
|
62
61
|
return !!t && typeof t == "object" && "declaredClass" in t && t.declaredClass === "esri.layers.support.Subtype";
|
|
63
62
|
}
|
|
64
|
-
function
|
|
63
|
+
function S(t) {
|
|
65
64
|
return !!t && typeof t == "object" && "declaredClass" in t && t.declaredClass === "esri.layers.support.CodedValueDomain";
|
|
66
65
|
}
|
|
67
66
|
function me(t) {
|
|
68
67
|
return !!t && typeof t == "object" && "declaredClass" in t && t.declaredClass === "esri.layers.support.InheritedDomain";
|
|
69
68
|
}
|
|
70
|
-
function
|
|
69
|
+
function st(t) {
|
|
71
70
|
return !!t && typeof t == "object" && "id" in t && typeof t.id == "string" && "definitions" in t && typeof t.definitions == "object" && !Array.isArray(t.definitions);
|
|
72
71
|
}
|
|
73
72
|
function f(t) {
|
|
@@ -79,7 +78,7 @@ function ge(t) {
|
|
|
79
78
|
function Q(t) {
|
|
80
79
|
return !!t && typeof t == "object" && "layerId" in t && typeof t.layerId == "number";
|
|
81
80
|
}
|
|
82
|
-
function
|
|
81
|
+
function V(t) {
|
|
83
82
|
return !!t && typeof t == "object" && "typeIdField" in t && "types" in t;
|
|
84
83
|
}
|
|
85
84
|
function U(t) {
|
|
@@ -94,15 +93,15 @@ function we(t) {
|
|
|
94
93
|
function De(t) {
|
|
95
94
|
return !!t && typeof t == "object" && "portalItem" in t;
|
|
96
95
|
}
|
|
97
|
-
function
|
|
96
|
+
function Ce(t) {
|
|
98
97
|
return Q(t) && "relationships" in t && "url" in t && Array.isArray(t.relationships) && typeof t.url == "string";
|
|
99
98
|
}
|
|
100
|
-
function
|
|
99
|
+
function Se(t) {
|
|
101
100
|
return !!t && typeof t == "object" && "isTable" in t && typeof t.isTable == "boolean";
|
|
102
101
|
}
|
|
103
102
|
function ve(t) {
|
|
104
103
|
if (t && typeof t == "object") {
|
|
105
|
-
if (
|
|
104
|
+
if (Se(t))
|
|
106
105
|
return t.isTable || "type" in t && t.type === "table";
|
|
107
106
|
if ("geometryType" in t)
|
|
108
107
|
return t.geometryType === "" || t.geometryType === "esriGeometryNull" || t.geometryType === null;
|
|
@@ -115,7 +114,7 @@ function Fe(t) {
|
|
|
115
114
|
function xe(t) {
|
|
116
115
|
return !!t && typeof t == "object" && "load" in t && typeof t.load == "function";
|
|
117
116
|
}
|
|
118
|
-
function
|
|
117
|
+
function Pe(t) {
|
|
119
118
|
return !!t && typeof t == "object" && "type" in t && t.type === "voxel";
|
|
120
119
|
}
|
|
121
120
|
function B(t) {
|
|
@@ -127,7 +126,7 @@ async function X(t) {
|
|
|
127
126
|
let e;
|
|
128
127
|
return D(t) ? e = t : e = new g(t), xe(e) && await e.load(), e;
|
|
129
128
|
}
|
|
130
|
-
async function
|
|
129
|
+
async function Ve(t) {
|
|
131
130
|
t += "/layers";
|
|
132
131
|
const e = await te(t, { responseType: "json", query: { f: "json" } }), i = t.endsWith("MapServer/layers") ? "data" : "query", r = W(e.data?.layers, i), s = W(e.data?.tables, i);
|
|
133
132
|
return { layers: r, tables: s };
|
|
@@ -161,7 +160,7 @@ function I(t) {
|
|
|
161
160
|
if (i.name === t.subtypeField)
|
|
162
161
|
return 1;
|
|
163
162
|
}
|
|
164
|
-
if (
|
|
163
|
+
if (V(t)) {
|
|
165
164
|
if (e.name === t.typeIdField)
|
|
166
165
|
return -1;
|
|
167
166
|
if (i.name === t.typeIdField)
|
|
@@ -183,7 +182,7 @@ function Y(t, e) {
|
|
|
183
182
|
function O(t) {
|
|
184
183
|
return De(t) ? t.portalItem : null;
|
|
185
184
|
}
|
|
186
|
-
function
|
|
185
|
+
function nt(t, e, i = !1) {
|
|
187
186
|
let r = e;
|
|
188
187
|
const s = [], n = [];
|
|
189
188
|
return w(t).forEach((o) => {
|
|
@@ -201,7 +200,7 @@ ${o.type}`, o.description && (r += `
|
|
|
201
200
|
label: o.name,
|
|
202
201
|
detail: b,
|
|
203
202
|
insertText: p,
|
|
204
|
-
insertTextMode:
|
|
203
|
+
insertTextMode: P.asIs,
|
|
205
204
|
insertTextFormat: x.PlainText,
|
|
206
205
|
kind: F.Field
|
|
207
206
|
}
|
|
@@ -219,7 +218,7 @@ ${o.type}`;
|
|
|
219
218
|
label: o.alias,
|
|
220
219
|
detail: o.name,
|
|
221
220
|
insertText: p,
|
|
222
|
-
insertTextMode:
|
|
221
|
+
insertTextMode: P.asIs,
|
|
223
222
|
insertTextFormat: x.PlainText,
|
|
224
223
|
kind: F.Field,
|
|
225
224
|
documentation: { kind: "markdown", value: d }
|
|
@@ -228,7 +227,7 @@ ${o.type}`;
|
|
|
228
227
|
}
|
|
229
228
|
}), [[...s, ...n], r];
|
|
230
229
|
}
|
|
231
|
-
function
|
|
230
|
+
function ot(t, e) {
|
|
232
231
|
let i = e;
|
|
233
232
|
const r = [];
|
|
234
233
|
return t.forEach((s) => {
|
|
@@ -245,7 +244,7 @@ ${s.type}`, s.name && (i += `
|
|
|
245
244
|
label: s.name,
|
|
246
245
|
detail: s.name,
|
|
247
246
|
insertText: T(s.name, !1),
|
|
248
|
-
insertTextMode:
|
|
247
|
+
insertTextMode: P.asIs,
|
|
249
248
|
insertTextFormat: x.PlainText,
|
|
250
249
|
kind: F.Field
|
|
251
250
|
}
|
|
@@ -462,7 +461,7 @@ class ee extends $ {
|
|
|
462
461
|
});
|
|
463
462
|
}
|
|
464
463
|
_getDomainDictionary(e) {
|
|
465
|
-
return U(this._source) ? y(this._source) && this._source.subtypeField ? this._getSubtypeDomainDictionary(e) :
|
|
464
|
+
return U(this._source) ? y(this._source) && this._source.subtypeField ? this._getSubtypeDomainDictionary(e) : V(this._source) && this._source.typeIdField ? this._getFeatureTypeDomainDictionary(e) : this._getFieldDomainDictionary(e) : null;
|
|
466
465
|
}
|
|
467
466
|
_getSubtypeDomainDictionary(e) {
|
|
468
467
|
if (!y(this._source))
|
|
@@ -482,7 +481,7 @@ class ee extends $ {
|
|
|
482
481
|
return r.variables.push(i), r;
|
|
483
482
|
}
|
|
484
483
|
_getFeatureTypeDomainDictionary(e) {
|
|
485
|
-
if (!
|
|
484
|
+
if (!V(this._source))
|
|
486
485
|
return null;
|
|
487
486
|
if (e.name === this._source.typeIdField) {
|
|
488
487
|
const s = this._createDomainDictionary(e);
|
|
@@ -500,7 +499,7 @@ class ee extends $ {
|
|
|
500
499
|
if (!U(this._source))
|
|
501
500
|
return null;
|
|
502
501
|
const i = this._source.getFieldDomain(e.name);
|
|
503
|
-
if (!
|
|
502
|
+
if (!S(i))
|
|
504
503
|
return null;
|
|
505
504
|
const r = this._getCodedValueDomainGroup(i, {
|
|
506
505
|
code: "domainvalues"
|
|
@@ -508,7 +507,7 @@ class ee extends $ {
|
|
|
508
507
|
return s.variables.push(r), s;
|
|
509
508
|
}
|
|
510
509
|
_getTypeOrSubtypeDomainGroup(e, i) {
|
|
511
|
-
if (
|
|
510
|
+
if (S(i.domain))
|
|
512
511
|
return this._getCodedValueDomainGroup(i.domain, { code: "subtypes" });
|
|
513
512
|
const r = e?.map((s) => {
|
|
514
513
|
const n = N(s) ? s.code : s.id;
|
|
@@ -537,7 +536,7 @@ class ee extends $ {
|
|
|
537
536
|
const r = [];
|
|
538
537
|
return !e || e.length === 0 || (e.forEach((s) => {
|
|
539
538
|
const n = s.domains?.[i.name];
|
|
540
|
-
if (!n || me(n) || !
|
|
539
|
+
if (!n || me(n) || !S(n))
|
|
541
540
|
return;
|
|
542
541
|
const a = m(i), o = this._getCodedValueDomainGroup(n, {
|
|
543
542
|
code: "domainvaluesfortypeformat",
|
|
@@ -586,7 +585,7 @@ class ee extends $ {
|
|
|
586
585
|
if (!this.relationshipsProperties?.exposeRelationships || !this._profile?.supportFeatureSetFunctions)
|
|
587
586
|
return null;
|
|
588
587
|
const e = this._source;
|
|
589
|
-
if (!
|
|
588
|
+
if (!Ce(e))
|
|
590
589
|
return null;
|
|
591
590
|
const i = new u(this._profile, { code: "relationships" }), r = await Promise.all(
|
|
592
591
|
e.relationships?.map(async (s) => {
|
|
@@ -678,7 +677,7 @@ class Le extends L {
|
|
|
678
677
|
if (this.loaded)
|
|
679
678
|
return this._source;
|
|
680
679
|
try {
|
|
681
|
-
if (!
|
|
680
|
+
if (!Pe(this._definition))
|
|
682
681
|
throw new Error("Invalid definition - not a VoxelLayer");
|
|
683
682
|
if (await this._definition.load(), this._source = this._definition, !this._source)
|
|
684
683
|
throw new Error("Invalid definition");
|
|
@@ -825,11 +824,13 @@ class Ge extends $ {
|
|
|
825
824
|
return this._featureSetCollections;
|
|
826
825
|
}
|
|
827
826
|
async _featureSetCollectionsFromDefinition() {
|
|
828
|
-
return this._definition ? K(this._definition) ? await this._featureSetCollectionFromMap(this._definition) :
|
|
827
|
+
return this._definition ? K(this._definition) ? await this._featureSetCollectionFromMap(this._definition) : C(this._definition) ? await this._featureSetCollectionFromUrl(this._definition.url) : z(this._definition) ? await this._featureSetCollectionFromPortalItem(this._definition.portalItem) : null : null;
|
|
829
828
|
}
|
|
830
829
|
async _featureSetCollectionFromMap(e) {
|
|
831
|
-
|
|
832
|
-
|
|
830
|
+
_e(e) && await e.loadAll(), await Promise.all(e.allTables.map(async (r) => await r.load()));
|
|
831
|
+
const i = this._profile?.policy?.filterFsCollectionLayersFromMap ?? (() => !0);
|
|
832
|
+
return {
|
|
833
|
+
layers: this._convertWebMapLayersToVariables(e.allLayers.filter(i)),
|
|
833
834
|
tables: this._convertWebMapLayersToVariables(e.allTables),
|
|
834
835
|
source: e
|
|
835
836
|
};
|
|
@@ -855,7 +856,7 @@ class Ge extends $ {
|
|
|
855
856
|
let i = e?.replace(/\/featureserver\/[0-9]*/iu, "/FeatureServer");
|
|
856
857
|
if (i = i?.replace(/\/mapserver\/[0-9]*/iu, "/MapServer"), i = i?.split("?")[0], !i)
|
|
857
858
|
return null;
|
|
858
|
-
const r = await
|
|
859
|
+
const r = await Ve(i), s = Promise.all(
|
|
859
860
|
r.layers.map(async (c) => {
|
|
860
861
|
const p = new g({ url: `${i}/${c.id}` });
|
|
861
862
|
return await p.load(), this._createFeatureSetVariable(p);
|
|
@@ -871,8 +872,7 @@ class Ge extends $ {
|
|
|
871
872
|
_convertWebMapLayersToVariables(e) {
|
|
872
873
|
const i = [];
|
|
873
874
|
return e.toArray().reverse().forEach((r) => {
|
|
874
|
-
if (q(r)
|
|
875
|
-
r.type !== "imagery") {
|
|
875
|
+
if (q(r)) {
|
|
876
876
|
i.push(this._createFeatureSetVariable(r, !0));
|
|
877
877
|
return;
|
|
878
878
|
}
|
|
@@ -909,12 +909,12 @@ class Ge extends $ {
|
|
|
909
909
|
return { type: this.type, name: "", ...this.declaration, definition: this._definition };
|
|
910
910
|
}
|
|
911
911
|
}
|
|
912
|
-
class
|
|
913
|
-
constructor(e, i, r = "en") {
|
|
912
|
+
class at extends _ {
|
|
913
|
+
constructor(e, i, r = "en", s = {}) {
|
|
914
914
|
super(void 0, {
|
|
915
915
|
profile: null,
|
|
916
916
|
declaration: { properties: [] }
|
|
917
|
-
}), this.definition = e, this.intlStrings = i, this.locale = r, this.variables = [], this._profile = this, this.loadPropertyDeclarations(e?.variables);
|
|
917
|
+
}), this.definition = e, this.intlStrings = i, this.locale = r, this.policy = s, this.variables = [], this._profile = this, this.loadPropertyDeclarations(e?.variables);
|
|
918
918
|
}
|
|
919
919
|
/**
|
|
920
920
|
* Returns true if the profile supports feature set functions for snippets.
|
|
@@ -936,7 +936,7 @@ class lt extends _ {
|
|
|
936
936
|
const Ee = {
|
|
937
937
|
locale: "en"
|
|
938
938
|
};
|
|
939
|
-
class
|
|
939
|
+
class lt {
|
|
940
940
|
// #endregion
|
|
941
941
|
constructor(e, i) {
|
|
942
942
|
this.languageId = e, this._apiConfig = i, this._onDidChange = new E(), this._modelToProfileMap = /* @__PURE__ */ new Map(), this._modelToApiContextMap = /* @__PURE__ */ new Map(), this._localeToApiLibraryPromiseMap = /* @__PURE__ */ new Map(), this._onModelContextDidChange = new E(), this._onDidModelContextChangeTimeout = -1, this.workerHost = {
|
|
@@ -1023,15 +1023,15 @@ class ut {
|
|
|
1023
1023
|
// #endregion
|
|
1024
1024
|
}
|
|
1025
1025
|
export {
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1026
|
+
at as E,
|
|
1027
|
+
lt as L,
|
|
1028
|
+
it as a,
|
|
1029
1029
|
q as b,
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1030
|
+
rt as c,
|
|
1031
|
+
et as d,
|
|
1032
|
+
tt as e,
|
|
1033
|
+
nt as f,
|
|
1034
1034
|
J as g,
|
|
1035
|
-
|
|
1036
|
-
|
|
1035
|
+
st as i,
|
|
1036
|
+
ot as m
|
|
1037
1037
|
};
|
package/dist/chunks/markdown.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
3
|
-
v5.0.0-next.
|
|
3
|
+
v5.0.0-next.116 */
|
|
4
4
|
function D() {
|
|
5
5
|
return { async: !1, breaks: !1, extensions: null, gfm: !0, hooks: null, pedantic: !1, renderer: null, silent: !1, tokenizer: null, walkTokens: null };
|
|
6
6
|
}
|
|
@@ -8,7 +8,7 @@ import "monaco-editor/esm/vs/editor/browser/editorDom.js";
|
|
|
8
8
|
import "monaco-editor/esm/vs/editor/browser/controller/mouseTarget.js";
|
|
9
9
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
10
10
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
11
|
-
v5.0.0-next.
|
|
11
|
+
v5.0.0-next.116 */
|
|
12
12
|
const r = async () => {
|
|
13
13
|
const { editor: t } = await import("monaco-editor/esm/vs/editor/editor.api.js");
|
|
14
14
|
return t;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
3
|
-
v5.0.0-next.
|
|
3
|
+
v5.0.0-next.116 */
|
|
4
4
|
const e = {
|
|
5
5
|
"light-theme": { comment: "#606060", constant: "#9809C8", date: "#296389", identifier: "#0000B3", keyword: "#BF4900", number: "#136D3D", string: "#A31515", operator: "#9809C8", predefined: "#0000B3" },
|
|
6
6
|
"dark-theme": { comment: "#BFBFBF", constant: "#CDBAEA", date: "#97A6CE", identifier: "#9FD4F3", keyword: "#EEAA5A", number: "#AAD04B", string: "#F2877B", operator: "#CDBAEA", predefined: "#9FD4F3" }
|
package/dist/chunks/runtime.js
CHANGED
|
@@ -3,7 +3,7 @@ import { makeRuntime as e } from "@arcgis/lumina";
|
|
|
3
3
|
import { trackAccess as s, createObservable as r, createTrackingTarget as a, runTracked as c } from "@arcgis/core/applications/Components/reactiveUtils.js";
|
|
4
4
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
5
5
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
6
|
-
v5.0.0-next.
|
|
6
|
+
v5.0.0-next.116 */
|
|
7
7
|
const t = e({ defaultAssetPath: "https://jsdev.arcgis.com/5.0.0-next/coding-components/", hydratedAttribute: "hydrated" }), { customElement: n, getAssetPath: d, setAssetPath: i } = t;
|
|
8
8
|
t.t = s;
|
|
9
9
|
t.o = r;
|
|
@@ -4,7 +4,7 @@ import { fetchT9nStringsBundle as M } from "@arcgis/toolkit/intl";
|
|
|
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/5.0/esri/copyright.txt for details.
|
|
7
|
-
v5.0.0-next.
|
|
7
|
+
v5.0.0-next.116 */
|
|
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 {
|
|
@@ -14,7 +14,7 @@ import { rethrowError as g } from "@arcgis/toolkit/log";
|
|
|
14
14
|
import { g as N } from "./sql-expr-service-accessors.js";
|
|
15
15
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
16
16
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
17
|
-
v5.0.0-next.
|
|
17
|
+
v5.0.0-next.116 */
|
|
18
18
|
let h = new m();
|
|
19
19
|
class C {
|
|
20
20
|
constructor(e) {
|
package/dist/chunks/useT9n.js
CHANGED
|
@@ -2,7 +2,7 @@ import { makeT9nController as o } from "@arcgis/lumina/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/5.0/esri/copyright.txt for details.
|
|
5
|
-
v5.0.0-next.
|
|
5
|
+
v5.0.0-next.116 */
|
|
6
6
|
const s = o(t);
|
|
7
7
|
export {
|
|
8
8
|
s as u
|
package/dist/chunks/utilities.js
CHANGED
|
@@ -2,7 +2,7 @@ import { createFilterExpression as d } from "@arcgis/toolkit/string";
|
|
|
2
2
|
import { format as f } from "@arcgis/arcade-languageservice";
|
|
3
3
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
4
4
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
5
|
-
v5.0.0-next.
|
|
5
|
+
v5.0.0-next.116 */
|
|
6
6
|
function b(e, r, s, u) {
|
|
7
7
|
if (!r)
|
|
8
8
|
return [];
|
|
@@ -20,7 +20,7 @@ import { getDeclaredVoxelMembers as ce, getDeclaredPixelMembers as ne } from "@a
|
|
|
20
20
|
import { s as le } from "../../chunks/fields.js";
|
|
21
21
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
22
22
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
23
|
-
v5.0.0-next.
|
|
23
|
+
v5.0.0-next.116 */
|
|
24
24
|
const de = Z`:host(:not([closed])){container-type:size;--calcite-block-border-color: var(--calcite-color-transparent);box-sizing:border-box;.submission-actions-wrapper{display:flex;flex-direction:column;width:100%;gap:.75rem}.submission-actions{display:flex;flex-direction:row;gap:.5rem;justify-content:space-between}@container (max-width: 380px){.hidden-below-380{display:none}}@container (min-width: 380px){.hidden-above-380{display:none}}.gaps{display:flex;gap:.25rem}.align-inline-end{margin-inline-start:auto}.action .error-display{display:flex;flex-direction:row;gap:.5rem;justify-content:space-between}.context-popover p{padding:0 .5rem;font-size:var(--calcite-font-size-sm)}.feedback-content{padding:1rem;display:flex;flex-direction:column;gap:.75rem;max-height:30vh;overflow-y:auto}.feedback-sheet{--calcite-sheet-height: auto;--calcite-sheet-max-height: 100%;--calcite-sheet-min-height: auto}calcite-chip[slot=header-actions-end]{align-self:center;margin-inline-end:.5rem}calcite-flow-item calcite-shell{background:transparent}calcite-block{width:100%;max-width:100%;align-self:flex-end;background-color:transparent;margin-block:0}calcite-sheet{--calcite-sheet-scrim-background: rgba(200, 200, 200, .5)}.type-suggestion{--calcite-color-foreground-1: var(--calcite-color-foreground-current);--calcite-color-text-3: var(--calcite-color-text-2);--calcite-icon-color: var(--calcite-color-brand)}.type-history{--calcite-icon-color: var(--calcite-color-text-2)}.type-response{--calcite-icon-color: var(--calcite-color-brand);--calcite-font-family: monospace}.block-response{align-self:flex-start;margin-block-end:4rem;border-block-end:0;--calcite-block-text-color: var(--calcite-color-brand)}calcite-list-item calcite-button{margin-inline-end:.25rem}.type-docs{--calcite-color-foreground-1: var(--calcite-color-foreground-3);--calcite-icon-color: var(--calcite-color-text-1)}.type-error{--calcite-icon-color: var(--calcite-color-status-danger);--calcite-font-family: monospace;border:1px solid var(--calcite-color-status-danger)}#thumbs-up{margin-inline-start:auto;--calcite-icon-color: var(--calcite-color-border-input)}#thumbs-down{--calcite-icon-color: var(--calcite-color-border-input)}calcite-flow-item calcite-shell calcite-notice{margin-block:1rem}.no-space-block,.no-space-block[open]{margin:0}calcite-block[open]:last-of-type{border-block-end:0}.text-area-wrapper{display:flex;border-radius:var(--calcite-corner-radius-round);margin:.75rem;overflow:hidden;--calcite-color-border-input: transparent;position:sticky;box-shadow:var(--calcite-shadow-sm);flex:none}calcite-text-area{height:auto;min-height:5.75rem;overflow:hidden;border-radius:var(--calcite-corner-radius-round) var(--calcite-corner-radius-round) 0 0;--calcite-font-weight-normal: 500;font-weight:500;line-height:1.2}.standalone-list{margin:1rem;width:calc(100% - 2rem)}.result-disclaimer{display:block;width:24rem;max-width:90%;margin:1rem auto;text-align:center;line-height:1.125rem;font-size:.875rem;font-style:italic}calcite-flow{height:100%}calcite-popover calcite-list{--calcite-list-background-color: transparent;--calcite-input-border-color: transparent}calcite-popover calcite-list calcite-filter{--calcite-spacing-sm: 0}.contained-popover-or-tooltip{--calcite-popover-max-size-x: 100%;--calcite-tooltip-max-size-x: 100%}.break-spaces{white-space:break-spaces}.feedback-button-container{margin-inline-start:auto;gap:0}.info-heading{font-size:var(--calcite-font-size-1);color:var(--calcite-color-text-1)}.unstyled-h3{margin:unset;font-size:var(--calcite-font-size-md)}.unstyled-shell{position:unset;inset:unset;display:unset;block-size:unset;inline-size:unset}.suggestion-button{font-weight:var(--calcite-font-weight-medium)}.info-block{max-width:450px}#result-block{calcite-card-group{--calcite-card-group-gap: 1.25rem}calcite-card{--calcite-card-corner-radius: var(--calcite-corner-radius-round);--calcite-card-border-color: transparent;width:100%}.positioned-code-content{display:flex;flex-direction:row;gap:.5rem;padding:.5rem}calcite-card [slot=heading] calcite-chip{margin-block-start:.25rem}.code-response-wrapper{position:relative;background:var(--calcite-color-foreground-2);border-radius:var(--calcite-corner-radius-round);margin-top:-1.5rem}.prior-prompt{display:flex;flex-direction:row;padding:0;overflow-y:hidden;overflow-x:auto;margin:.25rem 0 .75rem;align-items:center;max-width:100%;span{overflow-x:auto;overflow-y:hidden}}.copy-feedback{display:none}.copy-prompt-button{align-self:flex-start;margin-inline-start:auto}.response-secondary-action-button[data-copied]+.copy-feedback,.copy-prompt-button[data-copied]+.copy-feedback{display:block;span{padding:.75rem 1rem;font-size:var(--calcite-font-size--2);line-height:1.375;color:var(--calcite-color-text--2);font-weight:var(--calcite-font-weight-medium)}}.copy-prompt-button[data-copied]~.copy-tooltip,.response-secondary-action-button[data-copied]~.copy-tooltip{display:none}code{white-space:pre;font-size:12px;margin:0;overflow-x:auto;font-family:Fira Mono,Consolas,Menlo,monospace;display:block;max-height:12rem;position:relative;padding:.5rem}.code-collapse{margin-inline-start:auto}.response-secondary-action-button{margin-left:.5rem}.add-to-editor-button{--calcite-internal-button-border-color: unset}}.collapsible-code{padding:.5rem}.collapsible-code summary{cursor:pointer;font-weight:500;color:var(--calcite-color-brand);outline:none;padding:.25rem 0}.collapsible-code[open] summary{color:var(--calcite-color-text-2)}.collapsible-error{padding:.5rem}.collapsible-error summary{cursor:pointer;font-weight:500;color:var(--calcite-color-status-danger);outline:none;padding:.25rem 0}.collapsible-error[open] summary{color:var(--calcite-color-text-2)}.response-error-container{padding:.5rem;background:color-mix(in srgb,var(--calcite-color-status-warning) 10%,transparent);border-radius:var(--calcite-corner-radius-round);margin:1rem 0;font-size:var(--calcite-font-size--2);--calcite-input-message-icon-color: var(--calcite-color-status-warning)}.response-error-chip{--calcite-internal-chip-background-color: var(--calcite-color-status-warning);--calcite-chip-icon-color: var(--calcite-color-foreground-1);--calcite-chip-border-color: var(--calcite-color-transparent)}.feedback-actions{gap:unset}.contained{max-width:100%;max-height:100%;max-width:100cqi;max-height:75cqb;overflow-y:auto}}:host([closed]){display:none}`;
|
|
25
25
|
class v extends Error {
|
|
26
26
|
constructor({
|
|
@@ -20,7 +20,7 @@ import N from "@arcgis/core/identity/IdentityManager.js";
|
|
|
20
20
|
import { log as O, rethrowError as o } from "@arcgis/toolkit/log";
|
|
21
21
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
22
22
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
23
|
-
v5.0.0-next.
|
|
23
|
+
v5.0.0-next.116 */
|
|
24
24
|
const j = y`:host{height:100%}calcite-tooltip:not([calcite-hydrated])>*{display:none}.main-action-bar{calcite-action-group{padding-inline-end:var(--calcite-spacing-sm)}calcite-action-group calcite-action{padding-inline-end:var(--calcite-spacing-sm)}calcite-action-group 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)}}`, z = "https://services6.arcgis.com/HXHga6CfMLMBOlBX/ArcGIS/rest/services/survey123_6e349a50b4504ca6b6107216d568db5f_form/FeatureServer/0", a = (s, e) => O(s, "Arcade Assistant", e), H = (s) => {
|
|
25
25
|
const { aiAssistantsEnabled: e } = s;
|
|
26
26
|
return e === void 0 ? (a("warn", "`areAiAssistantsEnabled` is not defined in the organizations settings."), !1) : e;
|
|
@@ -11,7 +11,7 @@ import { t as k } from "../../chunks/monaco-theme.js";
|
|
|
11
11
|
import { observeAncestorsMutation as z, unsafeGetCalciteModeName as N } from "@arcgis/toolkit/dom";
|
|
12
12
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
13
13
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
14
|
-
v5.0.0-next.
|
|
14
|
+
v5.0.0-next.116 */
|
|
15
15
|
const E = w`: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)}}`, l = {
|
|
16
16
|
lines: !0,
|
|
17
17
|
selectionMode: "none",
|
|
@@ -9,7 +9,7 @@ import { c as b } from "../../chunks/markdown.js";
|
|
|
9
9
|
import { u as _ } from "../../chunks/useT9n.js";
|
|
10
10
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
11
11
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
12
|
-
v5.0.0-next.
|
|
12
|
+
v5.0.0-next.116 */
|
|
13
13
|
function v(o) {
|
|
14
14
|
return !Array.isArray(o) || !o.length ? !1 : Array.isArray(o[0].suggestions);
|
|
15
15
|
}
|
|
@@ -19,7 +19,7 @@ import { EditorMouseEventFactory as x, EditorMouseEvent as I } from "monaco-edit
|
|
|
19
19
|
import { MouseTargetFactory as T } from "monaco-editor/esm/vs/editor/browser/controller/mouseTarget.js";
|
|
20
20
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
21
21
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
22
|
-
v5.0.0-next.
|
|
22
|
+
v5.0.0-next.116 */
|
|
23
23
|
const L = v`/*!-----------------------------------------------------------
|
|
24
24
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
25
25
|
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
|
@@ -3,7 +3,7 @@ import { css as e, html as n } from "lit";
|
|
|
3
3
|
import { LitElement as r } from "@arcgis/lumina";
|
|
4
4
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
5
5
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
6
|
-
v5.0.0-next.
|
|
6
|
+
v5.0.0-next.116 */
|
|
7
7
|
const i = e`:host{--arcgis-coding-components-internal-border: var( --arcgis-coding-components-border, 1px solid var(--calcite-color-border-3) );--arcgis-coding-components-internal-background-color: var( --arcgis-coding-components-background-color, var(--calcite-color-foreground-1) );--arcgis-coding-components-internal-side-action-bar-max-w: var(--arcgis-coding-components-side-action-bar-max-w, 25%);--arcgis-coding-components-internal-code-editor-side-panel-w: var( --arcgis-coding-components-code-editor-side-panel-w, 600px );--arcgis-coding-components-internal-code-editor-side-panel-max-w: var( --arcgis-coding-components-code-editor-side-panel-max-w, 45% );--arcgis-coding-components-internal-code-editor-results-panel-max-h: var( --arcgis-coding-components-code-editor-results-panel-max-h, 50% );--arcgis-coding-components-internal-code-editor-results-panel-h: var( --arcgis-coding-components-code-editor-results-panel-h, 50% );display:flex;flex-direction:column;position:relative;overflow:hidden;border:var(--arcgis-coding-components-internal-border);box-sizing:border-box;background-color:var(--arcgis-coding-components-internal-background-color);height:100%;.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}}slot[name=top-action-bar]::slotted(*){border-bottom:var(--arcgis-coding-components-internal-border);flex:0 0 auto}slot[name=side-panel]::slotted(*){max-width:var(--arcgis-coding-components-internal-code-editor-side-panel-max-w);width:var(--arcgis-coding-components-internal-code-editor-side-panel-w);border-inline-start:var(--arcgis-coding-components-internal-border);box-sizing:border-box;flex:1 0 auto}slot[name=side-panel]::slotted(.hidden){display:none}slot[name=editor]::slotted(*){flex:1 1 auto;overflow:hidden}slot[name=results-panel]::slotted(*){flex:0 0 var(--arcgis-coding-components-internal-code-editor-results-panel-h);overflow:hidden;border-top:var(--arcgis-coding-components-internal-border);box-sizing:border-box;max-height:var(--arcgis-coding-components-internal-code-editor-results-panel-max-h);margin-bottom:-1px}slot[name=side-action-bar]::slotted(*){max-width:var(--arcgis-coding-components-internal-side-action-bar-max-w);border-inline-start:var(--arcgis-coding-components-internal-border)}`;
|
|
8
8
|
class t extends r {
|
|
9
9
|
static {
|
|
@@ -12,7 +12,7 @@ import { Task as N } from "@lit/task";
|
|
|
12
12
|
import { rethrowError as O, log as w } from "@arcgis/toolkit/log";
|
|
13
13
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
14
14
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
15
|
-
v5.0.0-next.
|
|
15
|
+
v5.0.0-next.116 */
|
|
16
16
|
const z = E`pre{direction:ltr;overflow-x:auto;background-color:var(--calcite-color-foreground-2);padding:var(--calcite-spacing-sm);white-space:pre-line;code{font-size:var(--calcite-font-size--2);font-family:var(--calcite-font-family-code)}}:host([round]){pre{border-radius:var(--calcite-corner-radius-round)}}`;
|
|
17
17
|
class L extends p {
|
|
18
18
|
constructor() {
|
|
@@ -8,7 +8,7 @@ import { u as m } from "../../chunks/useT9n.js";
|
|
|
8
8
|
import { log as u } from "@arcgis/toolkit/log";
|
|
9
9
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
10
10
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
11
|
-
v5.0.0-next.
|
|
11
|
+
v5.0.0-next.116 */
|
|
12
12
|
const g = n`:host{background-color:var(--calcite-color-foreground-1);.notice-container{margin:var(--calcite-spacing-xxs);padding:var(--calcite-spacing-sm);background-color:var(--calcite-color-foreground-1)}.sticky{position:sticky;top:0;z-index:10}calcite-flow{height:100%}calcite-list-item-group{background-color:var(--calcite-color-foreground-2);word-break:break-word}}`;
|
|
13
13
|
function p(l) {
|
|
14
14
|
l.key === "Enter" && l.stopPropagation();
|
|
@@ -9,7 +9,7 @@ import { c as r } from "../../chunks/markdown.js";
|
|
|
9
9
|
import { u as p } from "../../chunks/useT9n.js";
|
|
10
10
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
11
11
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
12
|
-
v5.0.0-next.
|
|
12
|
+
v5.0.0-next.116 */
|
|
13
13
|
const g = m`:host{background-color:var(--calcite-color-foreground-1);.notice-container{margin:var(--calcite-spacing-xxs);padding:var(--calcite-spacing-sm);background-color:var(--calcite-color-foreground-1)}.sticky{position:sticky;top:0;z-index:10}calcite-flow{height:100%}calcite-block{p:first-of-type{margin-top:0}}calcite-list-item-group{background-color:var(--calcite-color-foreground-2)}calcite-flow{[slot=footer]{word-break:break-word}}}`;
|
|
14
14
|
class b extends h {
|
|
15
15
|
constructor() {
|
|
@@ -9,7 +9,7 @@ import { getSqlExprDiagnosticService as _ } from "../../chunks/sql-expr-mode.js"
|
|
|
9
9
|
import { rethrowError as a } from "@arcgis/toolkit/log";
|
|
10
10
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
11
11
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
12
|
-
v5.0.0-next.
|
|
12
|
+
v5.0.0-next.116 */
|
|
13
13
|
const f = n`:host{height:100%}calcite-tooltip:not([calcite-hydrated])>*{display:none}`;
|
|
14
14
|
class u extends d {
|
|
15
15
|
constructor() {
|
|
@@ -6,7 +6,7 @@ import { a as m } from "../../chunks/sql-expr-defaults.js";
|
|
|
6
6
|
import { u as d } from "../../chunks/useT9n.js";
|
|
7
7
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
8
8
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
9
|
-
v5.0.0-next.
|
|
9
|
+
v5.0.0-next.116 */
|
|
10
10
|
const h = r`:host{calcite-flow{height:100%}calcite-list-item-group{background-color:var(--calcite-color-foreground-2)}}`;
|
|
11
11
|
class g extends n {
|
|
12
12
|
constructor() {
|
package/dist/docs/api.json
CHANGED
package/dist/docs/docs.json
CHANGED
package/dist/docs/web-types.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
|
|
3
3
|
"name": "@arcgis/coding-components",
|
|
4
|
-
"version": "5.0.0-next.
|
|
4
|
+
"version": "5.0.0-next.116",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import { a as c } from "./chunks/arcade-defaults.js";
|
|
|
3
3
|
import { s as p } from "./chunks/sql-expr-defaults.js";
|
|
4
4
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
5
5
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
6
|
-
v5.0.0-next.
|
|
6
|
+
v5.0.0-next.116 */
|
|
7
7
|
const a = s, r = t;
|
|
8
8
|
export {
|
|
9
9
|
c as arcade,
|
package/dist/loader.js
CHANGED
|
@@ -2,7 +2,7 @@ import { r as e } from "./chunks/runtime.js";
|
|
|
2
2
|
import { makeDefineCustomElements as i } from "@arcgis/lumina";
|
|
3
3
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
4
4
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
5
|
-
v5.0.0-next.
|
|
5
|
+
v5.0.0-next.116 */
|
|
6
6
|
const o = i(e, {
|
|
7
7
|
"arcgis-arcade-coding-assistant": [() => import("./components/arcgis-arcade-coding-assistant/customElement.js"), "appVersion,assistantsEnabled,closed,closePanel:,editorRef:,feedbackServiceUrl,helpBase,insertText:,layer,portalUrl,serviceUrl;destroy"],
|
|
8
8
|
"arcgis-arcade-editor": [() => import("./components/arcgis-arcade-editor/customElement.js"), "arcadeAssistant:,customPanels:,editorInstance:,editorOptions:,hideDocumentationActions,hideSideBar,openedSidePanel:,profile:,script,sideActionBarExpanded,snippets:,suggestions:,testData:;getEditorInstance,getScript,getTestResult,setFocus"],
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { ApiProfile } from '@arcgis/languages-api-utils';
|
|
2
2
|
import { EditorProfile } from '../profile/editor-profile';
|
|
3
|
-
import { IPredefinedProfile, IEditorProfileDefinition } from '../profile/types';
|
|
3
|
+
import { IPredefinedProfile, IEditorProfileDefinition, IProfilePolicy } from '../profile/types';
|
|
4
|
+
import { ArcadeSupportedFeatureSetLayerUnion } from '@arcgis/core/arcade';
|
|
4
5
|
/**
|
|
5
6
|
* Converts an editor profile to an api profile.
|
|
6
7
|
* The api profile is an optimized version of the editor profile designed for minimal data transfer between the main thread and the worker.
|
|
7
8
|
*/
|
|
8
9
|
export declare function arcadeEditorToApiProfile(editorProfile: EditorProfile): Promise<ApiProfile>;
|
|
9
10
|
export declare function convertToEditorProfileDefinition(predefinedProfile: IPredefinedProfile, locale?: string): Promise<IEditorProfileDefinition | undefined>;
|
|
11
|
+
export declare function isSupportedFsLayerInstanceType(item: unknown): item is ArcadeSupportedFeatureSetLayerUnion;
|
|
12
|
+
export declare const arcadeEditorProfilePolicy: IProfilePolicy;
|
|
@@ -16,7 +16,7 @@ export declare abstract class LanguageDefaultsBase<TApiContext extends ApiContex
|
|
|
16
16
|
protected _onDidChange: Emitter<this>;
|
|
17
17
|
protected _modelToProfileMap: Map<string, EditorProfile>;
|
|
18
18
|
protected _modelToApiContextMap: Map<string, TApiContext>;
|
|
19
|
-
protected _localeToApiLibraryPromiseMap: Map<"id" | "es" | "
|
|
19
|
+
protected _localeToApiLibraryPromiseMap: Map<"id" | "es" | "de" | "da" | "sl" | "fi" | "ca" | "ar" | "it" | "el" | "th" | "et" | "sk" | "en" | "sv" | "fr" | "he" | "cs" | "lt" | "no" | "pl" | "ro" | "ru" | "tr" | "vi" | "bs" | "hr" | "bg" | "hu" | "ja" | "ko" | "lv" | "nl" | "nb" | "pt-BR" | "pt-PT" | "sr" | "uk" | "zh-CN" | "zh-HK" | "zh-TW", Promise<ApiCategory[]>>;
|
|
20
20
|
protected _onModelContextDidChange: Emitter<string>;
|
|
21
21
|
protected _onDidModelContextChangeTimeout: number;
|
|
22
22
|
constructor(languageId: string, _apiConfig: ApiConfig);
|