@arcgis/coding-components 4.34.0-next.60 → 4.34.0-next.61
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/{F3GTWULQ.js → 23H6ANGO.js} +1 -1
- package/dist/cdn/{6U47D2AA.js → 2WODI6SA.js} +2 -2
- package/dist/cdn/2ZLBN25Z.js +4 -0
- package/dist/cdn/3IM7NLST.js +4 -0
- package/dist/cdn/5IEV2VED.js +4 -0
- package/dist/cdn/{OHZTYOG7.js → 5Y466MOU.js} +2 -2
- package/dist/cdn/{DSM5X3AK.js → 6CKYISM2.js} +1 -1
- package/dist/cdn/{FA2S25XN.js → 6HXQR5XY.js} +1 -1
- package/dist/cdn/7JCBVSHR.js +4 -0
- package/dist/cdn/{GIMG3MCI.js → ARWG7UJO.js} +3 -3
- package/dist/cdn/{F3MG324K.js → BDZCMEHB.js} +2 -2
- package/dist/cdn/{RIHX75RL.js → EQXXSNJB.js} +2 -2
- package/dist/cdn/{AJ6VK4EZ.js → HWBCU7DJ.js} +2 -2
- package/dist/cdn/{AAMCKGYV.js → IFBVGQ4R.js} +2 -2
- package/dist/cdn/KE25DTGI.js +6 -0
- package/dist/cdn/{GC3SFNNM.js → KPYT5TUU.js} +2 -2
- package/dist/cdn/LBKRARZT.js +4 -0
- package/dist/cdn/LHAEWN66.js +4 -0
- package/dist/cdn/LJ7EEHAA.js +4 -0
- package/dist/cdn/LWAV4OXV.js +4 -0
- package/dist/cdn/MFKK6PJB.js +4 -0
- package/dist/cdn/{FWCO6ADZ.js → N6YGSJS6.js} +2 -2
- package/dist/cdn/{ZHCT5XD4.js → NFSRFOHT.js} +2 -2
- package/dist/cdn/P3PQS3BC.js +6 -0
- package/dist/cdn/Q7OY53H4.js +4 -0
- package/dist/cdn/{YFFREWP6.js → RF6K42ZC.js} +2 -2
- package/dist/cdn/{XBL2Y42W.js → RJDRZOOM.js} +1 -1
- package/dist/cdn/{QUKOS6J3.js → RV2LDOAT.js} +1 -1
- package/dist/cdn/{VWKYLDS4.js → SC4ISEG2.js} +2 -2
- package/dist/cdn/{ZIQGH3R5.js → SHHRLYP5.js} +2 -2
- package/dist/cdn/{HKJKK3XG.js → T2YSJK5P.js} +2 -2
- package/dist/cdn/{RG7JKD7D.js → TACXDY2W.js} +2 -2
- package/dist/cdn/TFZDH5YR.js +4 -0
- package/dist/cdn/{LDTY2BQR.js → TUYSO2SG.js} +2 -2
- package/dist/cdn/U5JXZAIC.js +4 -0
- package/dist/cdn/UIJV5PV3.js +4 -0
- package/dist/cdn/{XT7V2LEL.js → VSPDXMCE.js} +2 -2
- package/dist/cdn/{I3ZGEMFA.js → WHAKRT45.js} +2 -2
- package/dist/cdn/WJ3VEXY3.js +4 -0
- package/dist/cdn/{EF5ZMENZ.js → XOGSVDDO.js} +2 -2
- package/dist/cdn/{BYS7NZEV.js → Y77P2XWF.js} +4 -4
- package/dist/cdn/{XZTWY7TY.js → YEGM4QNH.js} +2 -2
- package/dist/cdn/{4XLS4HHS.js → YVR7ARHX.js} +4 -4
- package/dist/cdn/{ENZ5FAYF.js → ZZZEBAZ7.js} +2 -2
- package/dist/cdn/assets/code-editor/sql-expr.worker.js +39721 -39670
- package/dist/cdn/index.js +2 -2
- package/dist/chunks/arcade-defaults.js +2 -2
- package/dist/chunks/arcade-executor.js +1 -1
- package/dist/chunks/arcade-mode.js +9 -8
- package/dist/chunks/arcade-service-accessors.js +1 -1
- package/dist/chunks/editor.js +1 -1
- package/dist/chunks/fields.js +1 -1
- package/dist/chunks/language-defaults-base.js +40 -38
- package/dist/chunks/markdown.js +1 -1
- package/dist/chunks/monaco-importer.js +2 -2
- package/dist/chunks/runtime.js +1 -1
- package/dist/chunks/setup-monaco.js +1 -1
- package/dist/chunks/sql-expr-contribution.js +1 -1
- package/dist/chunks/sql-expr-defaults.js +2 -2
- package/dist/chunks/sql-expr-mode.js +13 -12
- package/dist/chunks/useT9n.js +1 -1
- package/dist/components/arcgis-arcade-coding-assistant/customElement.js +3 -2
- package/dist/components/arcgis-arcade-editor/customElement.js +4 -3
- package/dist/components/arcgis-arcade-results/customElement.js +3 -2
- package/dist/components/arcgis-arcade-suggestions/customElement.js +2 -2
- package/dist/components/arcgis-code-editor/customElement.js +7 -5
- package/dist/components/arcgis-editor-variables/customElement.js +3 -2
- package/dist/components/arcgis-language-api-panel/customElement.js +7 -6
- package/dist/components/arcgis-sql-expression-editor/customElement.js +2 -2
- 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 +5 -5
- package/dist/cdn/4463YABH.js +0 -6
- package/dist/cdn/47XAK6TQ.js +0 -4
- package/dist/cdn/IAUCLWLU.js +0 -4
- package/dist/cdn/MKCXBA24.js +0 -4
- package/dist/cdn/NUWXN4AU.js +0 -6
- package/dist/cdn/PISACUOD.js +0 -4
- package/dist/cdn/PK3SVCAL.js +0 -4
- package/dist/cdn/PL5TPJ4Y.js +0 -4
- package/dist/cdn/U6WYSIOL.js +0 -4
- package/dist/cdn/UG6RLVTL.js +0 -4
- package/dist/cdn/YDR2NZKM.js +0 -4
- package/dist/cdn/Z46HULQ3.js +0 -4
- package/dist/cdn/Z5SYZZEC.js +0 -4
- package/dist/cdn/ZOB5V6ZS.js +0 -4
package/dist/cdn/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
3
|
-
v4.34.0-next.
|
|
4
|
-
import{B as i,o as e}from"./
|
|
3
|
+
v4.34.0-next.61 */
|
|
4
|
+
import{B as i,o as e}from"./P3PQS3BC.js";import"./MFKK6PJB.js";import"./23H6ANGO.js";var r=e(i,{"arcgis-arcade-coding-assistant":[()=>import("./KE25DTGI.js"),"appVersion,assistantsEnabled,closed,closePanel:,editorRef:,feedbackServiceUrl,helpBase,insertText:,layer,portalUrl,serviceUrl;destroy"],"arcgis-arcade-editor":[()=>import("./LHAEWN66.js"),"customPanels:,editorInstance:,editorOptions:,hideDocumentationActions,hideSideBar,openedSidePanel:,profile:,script,sideActionBarExpanded,snippets:,suggestions:,testData:;getEditorInstance,getScript,getTestResult,setFocus"],"arcgis-arcade-results":[()=>import("./LJ7EEHAA.js"),"consoleLogs:,loading,openedResultPanel,result:"],"arcgis-arcade-suggestions":[()=>import("./U5JXZAIC.js"),"closed,suggestions:"],"arcgis-code-editor":[()=>import("./ARWG7UJO.js"),"editorInstance:,editorOptions:,language,modelId,value;getEditorInstance,getValue,insertSnippet,insertText,setFocus,setValue"],"arcgis-editor-variables":[()=>import("./UIJV5PV3.js"),"closed,loading,modelId,variable:"],"arcgis-language-api-panel":[()=>import("./7JCBVSHR.js"),"apiLibrary:,closed,hideDocumentationActions,languageId,loading"],"arcgis-sql-expression-editor":[()=>import("./5IEV2VED.js"),"hideSideBar,profile:,script"],"arcgis-sql-expression-fields":[()=>import("./LBKRARZT.js"),"loading,modelId"]});r({resourcesUrl:import.meta.url});var o=new CSSStyleSheet;o.replaceSync("@layer{:not([hydrated]):is(arcgis-arcade-editor,arcgis-code-editor,arcgis-sql-expression-editor){visibility:hidden}:root{--arcgis-coding-components-border: 1px solid var(--calcite-color-border-3);--arcgis-coding-components-background-color: var(--calcite-color-foreground-1);--arcgis-coding-components-side-action-bar-max-w: 25%;--arcgis-coding-components-side-panel-w: 600px;--arcgis-coding-components-side-panel-max-w: 45%;--arcgis-editor-comment: #606060;--arcgis-editor-constant: #9809C8;--arcgis-editor-date: #296389;--arcgis-editor-identifier: #0000B3;--arcgis-editor-keyword: #BF4900;--arcgis-editor-number: #136D3D;--arcgis-editor-string: #A31515}.calcite-mode-dark{--arcgis-editor-comment: #BFBFBF;--arcgis-editor-constant: #CDBAEA;--arcgis-editor-date: #97A6CE;--arcgis-editor-identifier: #9FD4F3;--arcgis-editor-keyword: #EEAA5A;--arcgis-editor-number: #AAD04B;--arcgis-editor-string: #F2877B}}");document.adoptedStyleSheets=[...document.adoptedStyleSheets,o];window.$arcgis||Object.defineProperty(window,"$arcgis",{configurable:!1,enumerable:!0,writable:!1,value:{}}),((a,r)=>{a.t=(c,...x)=>Promise.all(x.map(x=>x.then?x:(!a?.forceESM&&a?.import||(x=>import(x+".js").then(m=>m.default??m)))("@arcgis/core/"+x))).then(c);r.p=a.t(([m])=>{r.t=m.trackAccess;r.o=m.createObservable;r.c=m.createTrackingTarget;r.r=m.runTracked},"applications/Components/reactiveUtils")})($arcgis,i)
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { i as y, c as P, a as T, d as b, f as A, L as x, E as D } from "./language-defaults-base.js";
|
|
2
|
-
import { supportedLocales as F, fetchT9nStringsBundle as M } from "@arcgis/
|
|
2
|
+
import { supportedLocales as F, fetchT9nStringsBundle as M } from "@arcgis/toolkit/intl";
|
|
3
3
|
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.34/esri/copyright.txt for details.
|
|
7
|
-
v4.34.0-next.
|
|
7
|
+
v4.34.0-next.61 */
|
|
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 { createArcadeExecutor as C } 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.34/esri/copyright.txt for details.
|
|
4
|
-
v4.34.0-next.
|
|
4
|
+
v4.34.0-next.61 */
|
|
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";
|
|
@@ -5,10 +5,11 @@ import "monaco-editor/esm/vs/editor/common/languages/supports/tokenization.js";
|
|
|
5
5
|
import { ArcadeKeywords as M } from "@arcgis/arcade-languageservice";
|
|
6
6
|
import { i as k } from "./monaco-importer.js";
|
|
7
7
|
import { InsertTextFormat as y, CompletionItemKind as o, DiagnosticSeverity as m } from "vscode-languageserver-types";
|
|
8
|
-
import { debounce as F
|
|
8
|
+
import { debounce as F } from "@arcgis/toolkit/function";
|
|
9
|
+
import { Deferred as _ } from "@arcgis/toolkit/promise";
|
|
9
10
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
10
11
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
11
|
-
v4.34.0-next.
|
|
12
|
+
v4.34.0-next.61 */
|
|
12
13
|
const S = [
|
|
13
14
|
"<=",
|
|
14
15
|
">=",
|
|
@@ -488,7 +489,7 @@ class b {
|
|
|
488
489
|
}
|
|
489
490
|
}
|
|
490
491
|
let w;
|
|
491
|
-
async function
|
|
492
|
+
async function Q(...t) {
|
|
492
493
|
return await b.waitForWorker(), await new Promise((e, n) => {
|
|
493
494
|
if (!w) {
|
|
494
495
|
n(new Error("Arcade not registered!"));
|
|
@@ -518,10 +519,10 @@ class O {
|
|
|
518
519
|
}
|
|
519
520
|
}
|
|
520
521
|
const C = new O();
|
|
521
|
-
function
|
|
522
|
+
function Y() {
|
|
522
523
|
return C;
|
|
523
524
|
}
|
|
524
|
-
function
|
|
525
|
+
function ee(t) {
|
|
525
526
|
const e = new b(t), n = async (...c) => await e.getLanguageServiceWorker(...c);
|
|
526
527
|
w = n, l.setMonarchTokensProvider(t.languageId, A), l.setLanguageConfiguration(t.languageId, T), l.registerCompletionItemProvider(
|
|
527
528
|
t.languageId,
|
|
@@ -535,7 +536,7 @@ function Y(t) {
|
|
|
535
536
|
});
|
|
536
537
|
}
|
|
537
538
|
export {
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
539
|
+
Y as getArcadeDiagnosticService,
|
|
540
|
+
Q as getArcadeWorker,
|
|
541
|
+
ee as setupMode
|
|
541
542
|
};
|
package/dist/chunks/editor.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { css as e } from "lit";
|
|
2
2
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
4
|
-
v4.34.0-next.
|
|
4
|
+
v4.34.0-next.61 */
|
|
5
5
|
const o = e`@layer{arcgis-arcade-editor,arcgis-sql-expression-editor{.flex-adjustable{flex:1 1 auto;overflow:hidden}.flex-panel{flex:1 0 auto}.position-relative{position:relative}.flex-row{display:flex;flex-direction:row;overflow:hidden}.flex-column{display:flex;flex-direction:column;overflow:hidden}.border-inline-start{border-inline-start:var(--arcgis-coding-components-border)!important;box-sizing:border-box}.border-inline-end{border-inline-end:var(--arcgis-coding-components-border)!important;box-sizing:border-box}.side-action-bar{max-width:var(--arcgis-coding-components-side-action-bar-max-w)}.side-panel{max-width:var(--arcgis-coding-components-side-panel-max-w);width:var(--arcgis-coding-components-side-panel-w)}.side-panel calcite-flow{height:100%}}}`;
|
|
6
6
|
export {
|
|
7
7
|
o as s
|
package/dist/chunks/fields.js
CHANGED
|
@@ -4,15 +4,17 @@ import { p as Y, i as Z } from "./monaco-importer.js";
|
|
|
4
4
|
import ee from "@arcgis/core/portal/PortalItem.js";
|
|
5
5
|
import te from "@arcgis/core/WebMap.js";
|
|
6
6
|
import ie from "@arcgis/core/WebScene.js";
|
|
7
|
-
import { isNotNull as w, isNotUndefined as U
|
|
8
|
-
import {
|
|
7
|
+
import { isNotNull as w, isNotUndefined as U } from "@arcgis/toolkit/predicate";
|
|
8
|
+
import { addLtrMark as re, setValuesInString as V } from "@arcgis/toolkit/string";
|
|
9
|
+
import { s as W, f as se, a as _, b as ne } from "./fields.js";
|
|
9
10
|
import { CompletionItemKind as T, InsertTextFormat as I, InsertTextMode as M } from "vscode-languageserver-types";
|
|
10
|
-
import { g as
|
|
11
|
+
import { g as oe } from "./runtime.js";
|
|
12
|
+
import { normalizeLocale as ae } from "@arcgis/toolkit/intl";
|
|
11
13
|
import { filterApiLibraryForContext as le } from "@arcgis/languages-api-utils";
|
|
12
14
|
import { Emitter as x, Uri as $ } from "monaco-editor";
|
|
13
15
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
14
16
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
15
|
-
v4.34.0-next.
|
|
17
|
+
v4.34.0-next.61 */
|
|
16
18
|
function B(t) {
|
|
17
19
|
return !!t && typeof t == "object" && "declaredClass" in t && typeof t.declaredClass == "string" && t.declaredClass.startsWith("esri.layers.") && g(t) && "queryFeatures" in t && typeof t.queryFeatures == "function";
|
|
18
20
|
}
|
|
@@ -22,7 +24,7 @@ function ue(t) {
|
|
|
22
24
|
function N(t) {
|
|
23
25
|
return !!t && typeof t == "object" && "declaredClass" in t && typeof t.declaredClass == "string" && (t.declaredClass === "esri.Map" || t.declaredClass === "esri.WebMap" || t.declaredClass === "esri.WebScene");
|
|
24
26
|
}
|
|
25
|
-
function
|
|
27
|
+
function pe(t) {
|
|
26
28
|
return !!t && typeof t == "object" && "loadAll" in t && typeof t.loadAll == "function";
|
|
27
29
|
}
|
|
28
30
|
function O(t) {
|
|
@@ -37,17 +39,17 @@ function g(t) {
|
|
|
37
39
|
function D(t) {
|
|
38
40
|
return !!t && typeof t == "object" && "url" in t && typeof t.url == "string";
|
|
39
41
|
}
|
|
40
|
-
function
|
|
42
|
+
function ce(t) {
|
|
41
43
|
return D(t) && /\/(?:featureserver|mapserver)(?:\/|$)/iu.test(t.url ?? "");
|
|
42
44
|
}
|
|
43
|
-
function
|
|
45
|
+
function Be(t) {
|
|
44
46
|
return D(t) || g(t) || R(t);
|
|
45
47
|
}
|
|
46
|
-
function
|
|
48
|
+
function Ne(t) {
|
|
47
49
|
return D(t) || g(t) || R(t);
|
|
48
50
|
}
|
|
49
|
-
function
|
|
50
|
-
return O(t) || N(t) ||
|
|
51
|
+
function Oe(t) {
|
|
52
|
+
return O(t) || N(t) || ce(t);
|
|
51
53
|
}
|
|
52
54
|
function A(t) {
|
|
53
55
|
return !!t && typeof t == "object" && "declaredClass" in t && t.declaredClass === "esri.layers.support.Subtype";
|
|
@@ -58,7 +60,7 @@ function C(t) {
|
|
|
58
60
|
function he(t) {
|
|
59
61
|
return !!t && typeof t == "object" && "declaredClass" in t && t.declaredClass === "esri.layers.support.InheritedDomain";
|
|
60
62
|
}
|
|
61
|
-
function
|
|
63
|
+
function Re(t) {
|
|
62
64
|
return !!t && typeof t == "object" && "id" in t && typeof t.id == "string" && "definitions" in t && typeof t.definitions == "object" && !Array.isArray(t.definitions);
|
|
63
65
|
}
|
|
64
66
|
function m(t) {
|
|
@@ -156,7 +158,7 @@ function H(t, e) {
|
|
|
156
158
|
function E(t) {
|
|
157
159
|
return ye(t) ? t.portalItem : null;
|
|
158
160
|
}
|
|
159
|
-
function
|
|
161
|
+
function ke(t, e, i = !1) {
|
|
160
162
|
let r = e;
|
|
161
163
|
const s = [], n = [];
|
|
162
164
|
return W(t).forEach((o) => {
|
|
@@ -165,15 +167,15 @@ function Oe(t, e, i = !1) {
|
|
|
165
167
|
`), r += `**${o.name}** (${o.alias})
|
|
166
168
|
${o.type}`, o.description && (r += `
|
|
167
169
|
'${o.description}`);
|
|
168
|
-
const
|
|
170
|
+
const c = ne(o), p = z(o.name, !1), y = _(o);
|
|
169
171
|
if (s.push({
|
|
170
172
|
name: o.name,
|
|
171
173
|
description: y,
|
|
172
|
-
type:
|
|
174
|
+
type: c,
|
|
173
175
|
completion: {
|
|
174
176
|
label: o.name,
|
|
175
177
|
detail: y,
|
|
176
|
-
insertText:
|
|
178
|
+
insertText: p,
|
|
177
179
|
insertTextMode: M.asIs,
|
|
178
180
|
insertTextFormat: I.PlainText,
|
|
179
181
|
kind: T.Field
|
|
@@ -187,11 +189,11 @@ ${o.type}`;
|
|
|
187
189
|
'${o.description}`), n.push({
|
|
188
190
|
name: o.alias,
|
|
189
191
|
description: o.name,
|
|
190
|
-
type:
|
|
192
|
+
type: c,
|
|
191
193
|
completion: {
|
|
192
194
|
label: o.alias,
|
|
193
195
|
detail: o.name,
|
|
194
|
-
insertText:
|
|
196
|
+
insertText: p,
|
|
195
197
|
insertTextMode: M.asIs,
|
|
196
198
|
insertTextFormat: I.PlainText,
|
|
197
199
|
kind: T.Field,
|
|
@@ -391,7 +393,7 @@ class Q extends v {
|
|
|
391
393
|
label: r,
|
|
392
394
|
description: _(e),
|
|
393
395
|
snippet: r,
|
|
394
|
-
icon:
|
|
396
|
+
icon: se(e),
|
|
395
397
|
filterDescription: !0
|
|
396
398
|
});
|
|
397
399
|
}
|
|
@@ -479,9 +481,9 @@ class Q extends v {
|
|
|
479
481
|
fieldName: u,
|
|
480
482
|
typeName: s.name
|
|
481
483
|
}
|
|
482
|
-
}),
|
|
484
|
+
}), c = A(s) ? s.code : s.id, p = `${c}`, y = `"${c}""`, h = new d(this, {
|
|
483
485
|
profile: this._profile,
|
|
484
|
-
label:
|
|
486
|
+
label: p,
|
|
485
487
|
snippet: y,
|
|
486
488
|
description: s.name,
|
|
487
489
|
declaration: { name: u }
|
|
@@ -682,7 +684,7 @@ class Fe extends v {
|
|
|
682
684
|
return this._definition ? N(this._definition) ? await this._featureSetCollectionFromMap(this._definition) : D(this._definition) ? await this._featureSetCollectionFromUrl(this._definition.url) : O(this._definition) ? await this._featureSetCollectionFromPortalItem(this._definition.portalItem) : null : null;
|
|
683
685
|
}
|
|
684
686
|
async _featureSetCollectionFromMap(e) {
|
|
685
|
-
return
|
|
687
|
+
return pe(e) && await e.loadAll(), await Promise.all(e.tables.map(async (i) => await i.load())), {
|
|
686
688
|
layers: this._convertWebMapLayersToVariables(e.layers),
|
|
687
689
|
tables: this._convertWebMapLayersToVariables(e.tables, !0),
|
|
688
690
|
source: e
|
|
@@ -710,14 +712,14 @@ class Fe extends v {
|
|
|
710
712
|
if (i = i?.replace(/\/mapserver\/[0-9]*/iu, "/MapServer"), i = i?.split("?")[0], !i)
|
|
711
713
|
return null;
|
|
712
714
|
const r = await ge(i), s = Promise.all(
|
|
713
|
-
r.layers.map(async (
|
|
714
|
-
const
|
|
715
|
-
return await
|
|
715
|
+
r.layers.map(async (c) => {
|
|
716
|
+
const p = new b({ url: `${i}/${c.id}` });
|
|
717
|
+
return await p.load(), this._createFeatureSetVariable(p);
|
|
716
718
|
})
|
|
717
719
|
), n = Promise.all(
|
|
718
|
-
r.tables.map(async (
|
|
719
|
-
const
|
|
720
|
-
return await
|
|
720
|
+
r.tables.map(async (c) => {
|
|
721
|
+
const p = new b({ url: `${i}/${c.id}` });
|
|
722
|
+
return await p.load(), this._createFeatureSetVariable(p);
|
|
721
723
|
})
|
|
722
724
|
), [u, o] = await Promise.all([s, n]);
|
|
723
725
|
return { layers: u, tables: o, source: i };
|
|
@@ -766,7 +768,7 @@ class Fe extends v {
|
|
|
766
768
|
return { type: this.type, name: "", ...this.declaration, definition: this._definition };
|
|
767
769
|
}
|
|
768
770
|
}
|
|
769
|
-
class
|
|
771
|
+
class qe extends d {
|
|
770
772
|
constructor(e, i, r = "en") {
|
|
771
773
|
super(void 0, {
|
|
772
774
|
profile: null,
|
|
@@ -793,7 +795,7 @@ class Re extends d {
|
|
|
793
795
|
const ve = {
|
|
794
796
|
locale: "en"
|
|
795
797
|
};
|
|
796
|
-
class
|
|
798
|
+
class Ke {
|
|
797
799
|
// #endregion
|
|
798
800
|
constructor(e, i) {
|
|
799
801
|
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 = {
|
|
@@ -867,25 +869,25 @@ class ke {
|
|
|
867
869
|
//#region Private methods
|
|
868
870
|
async fetchApiLibrary(e) {
|
|
869
871
|
try {
|
|
870
|
-
const { apiPath: i, apiPrefix: r } = this._apiConfig, s =
|
|
872
|
+
const { apiPath: i, apiPrefix: r } = this._apiConfig, s = oe(`${i}/${r}${e}.json`), n = await fetch(s);
|
|
871
873
|
return n.ok ? await n.json() : [];
|
|
872
874
|
} catch {
|
|
873
875
|
return [];
|
|
874
876
|
}
|
|
875
877
|
}
|
|
876
878
|
async getApiLibrary(e) {
|
|
877
|
-
const i =
|
|
879
|
+
const i = ae(e);
|
|
878
880
|
return this._localeToApiLibraryPromiseMap.has(i) || this._localeToApiLibraryPromiseMap.set(i, this.fetchApiLibrary(i)), await this._localeToApiLibraryPromiseMap.get(i) ?? [];
|
|
879
881
|
}
|
|
880
882
|
// #endregion
|
|
881
883
|
}
|
|
882
884
|
export {
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
885
|
+
qe as E,
|
|
886
|
+
Ke as L,
|
|
887
|
+
Ne as a,
|
|
886
888
|
B as b,
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
889
|
+
Oe as c,
|
|
890
|
+
Be as d,
|
|
891
|
+
ke as f,
|
|
892
|
+
Re as i
|
|
891
893
|
};
|
package/dist/chunks/markdown.js
CHANGED
|
@@ -4,7 +4,7 @@ import { IStandaloneThemeService as ie } from "monaco-editor/esm/vs/editor/stand
|
|
|
4
4
|
import { generateTokensCSSForColorMap as we } 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.34/esri/copyright.txt for details.
|
|
7
|
-
v4.34.0-next.
|
|
7
|
+
v4.34.0-next.61 */
|
|
8
8
|
async function ye(r, e) {
|
|
9
9
|
return await (await me()).colorize(r, e, { tabSize: 2 });
|
|
10
10
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createFilterExpression as f } from "@arcgis/
|
|
1
|
+
import { createFilterExpression as f } from "@arcgis/toolkit/string";
|
|
2
2
|
import { format as p } from "@arcgis/arcade-languageservice";
|
|
3
3
|
import "monaco-editor";
|
|
4
4
|
import "monaco-editor/esm/vs/editor/standalone/browser/standaloneServices.js";
|
|
@@ -6,7 +6,7 @@ import "monaco-editor/esm/vs/editor/standalone/common/standaloneTheme.js";
|
|
|
6
6
|
import "monaco-editor/esm/vs/editor/common/languages/supports/tokenization.js";
|
|
7
7
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
8
8
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
9
|
-
v4.34.0-next.
|
|
9
|
+
v4.34.0-next.61 */
|
|
10
10
|
function $(e, n, l, i) {
|
|
11
11
|
if (!n)
|
|
12
12
|
return [];
|
package/dist/chunks/runtime.js
CHANGED
|
@@ -2,7 +2,7 @@ import { makeRuntime as e } from "@arcgis/lumina";
|
|
|
2
2
|
import { trackAccess as s, createObservable as r, createTrackingTarget as a, runTracked as c } from "@arcgis/core/applications/Components/reactiveUtils.js";
|
|
3
3
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
4
4
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
5
|
-
v4.34.0-next.
|
|
5
|
+
v4.34.0-next.61 */
|
|
6
6
|
const t = e({ defaultAssetPath: "https://jsdev.arcgis.com/next/coding-components/", hydratedAttribute: "hydrated" }), { customElement: n, getAssetPath: d, setAssetPath: i } = t;
|
|
7
7
|
t.t = s;
|
|
8
8
|
t.o = r;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import i from "@arcgis/core/request.js";
|
|
2
2
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
4
|
-
v4.34.0-next.
|
|
4
|
+
v4.34.0-next.61 */
|
|
5
5
|
function p() {
|
|
6
6
|
return !!window.MonacoEnvironment?.getWorkerUrl;
|
|
7
7
|
}
|
|
@@ -8,7 +8,7 @@ import { g as c } from "./arcade-service-accessors.js";
|
|
|
8
8
|
import { a as n } from "./sql-expr-defaults.js";
|
|
9
9
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
10
10
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
11
|
-
v4.34.0-next.
|
|
11
|
+
v4.34.0-next.61 */
|
|
12
12
|
const s = /* @__PURE__ */ new Set();
|
|
13
13
|
function g(e, o) {
|
|
14
14
|
return () => {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { i as c, a as u, f as y, L as m, E as g } from "./language-defaults-base.js";
|
|
2
2
|
import { CompletionItemKind as h, InsertTextFormat as P, InsertTextMode as F } from "vscode-languageserver-types";
|
|
3
|
-
import { fetchT9nStringsBundle as M } from "@arcgis/
|
|
3
|
+
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/4.34/esri/copyright.txt for details.
|
|
7
|
-
v4.34.0-next.
|
|
7
|
+
v4.34.0-next.61 */
|
|
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 {
|
|
@@ -3,11 +3,12 @@ import "monaco-editor/esm/vs/editor/standalone/browser/standaloneServices.js";
|
|
|
3
3
|
import "monaco-editor/esm/vs/editor/standalone/common/standaloneTheme.js";
|
|
4
4
|
import "monaco-editor/esm/vs/editor/common/languages/supports/tokenization.js";
|
|
5
5
|
import { i as p } from "./monaco-importer.js";
|
|
6
|
-
import { Deferred as _
|
|
6
|
+
import { Deferred as _ } from "@arcgis/toolkit/promise";
|
|
7
7
|
import { a as d } from "./sql-expr-defaults.js";
|
|
8
|
+
import { debounce as N } from "@arcgis/toolkit/function";
|
|
8
9
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
9
10
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
10
|
-
v4.34.0-next.
|
|
11
|
+
v4.34.0-next.61 */
|
|
11
12
|
let h = new _();
|
|
12
13
|
class k {
|
|
13
14
|
constructor(e) {
|
|
@@ -268,11 +269,11 @@ class x {
|
|
|
268
269
|
if (s !== this._languageId)
|
|
269
270
|
return;
|
|
270
271
|
const l = N(() => {
|
|
271
|
-
this._doValidate(o, s).catch((
|
|
272
|
-
throw
|
|
272
|
+
this._doValidate(o, s).catch((I) => {
|
|
273
|
+
throw I;
|
|
273
274
|
});
|
|
274
|
-
}),
|
|
275
|
-
this._modelListeners.set(o.uri.toString(), [
|
|
275
|
+
}), m = o.onDidChangeContent(l), w = o.onDidChangeAttached(l);
|
|
276
|
+
this._modelListeners.set(o.uri.toString(), [m, w]), this._doValidate(o, s).catch(console.error);
|
|
276
277
|
}, g = (o) => {
|
|
277
278
|
const s = o.uri.toString();
|
|
278
279
|
n.setModelMarkers(o, this._languageId, []);
|
|
@@ -318,7 +319,7 @@ class x {
|
|
|
318
319
|
}
|
|
319
320
|
}
|
|
320
321
|
let E;
|
|
321
|
-
async function
|
|
322
|
+
async function F(...a) {
|
|
322
323
|
return await k.waitForWorker(), await new Promise((e, t) => {
|
|
323
324
|
if (!E) {
|
|
324
325
|
t(new Error("sql expression worker not registered!"));
|
|
@@ -348,10 +349,10 @@ class b {
|
|
|
348
349
|
}
|
|
349
350
|
}
|
|
350
351
|
const C = new b();
|
|
351
|
-
function
|
|
352
|
+
function H() {
|
|
352
353
|
return C;
|
|
353
354
|
}
|
|
354
|
-
function
|
|
355
|
+
function G(a) {
|
|
355
356
|
const e = new k(a), t = async (...r) => await e.getLanguageServiceWorker(...r);
|
|
356
357
|
E = t, u.setMonarchTokensProvider(d.languageId, R), u.setLanguageConfiguration(d.languageId, L);
|
|
357
358
|
const i = new M(t, d);
|
|
@@ -361,7 +362,7 @@ function H(a) {
|
|
|
361
362
|
});
|
|
362
363
|
}
|
|
363
364
|
export {
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
365
|
+
H as getSqlExprDiagnosticService,
|
|
366
|
+
F as getSqlExprWorker,
|
|
367
|
+
G as setupMode
|
|
367
368
|
};
|
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/4.34/esri/copyright.txt for details.
|
|
5
|
-
v4.34.0-next.
|
|
5
|
+
v4.34.0-next.61 */
|
|
6
6
|
const s = o(t);
|
|
7
7
|
export {
|
|
8
8
|
s as u
|
|
@@ -8,14 +8,15 @@ import { css as Q, html as r } from "lit";
|
|
|
8
8
|
import E from "@arcgis/core/request.js";
|
|
9
9
|
import { e as G, a as J } from "../../chunks/monaco-importer.js";
|
|
10
10
|
import { repeat as N } from "lit/directives/repeat.js";
|
|
11
|
-
import
|
|
11
|
+
import "@arcgis/toolkit/function";
|
|
12
|
+
import { generateGuid as Y } from "@arcgis/toolkit/string";
|
|
12
13
|
import { unsafeHTML as k } from "lit/directives/unsafe-html.js";
|
|
13
14
|
import K from "@arcgis/core/layers/FeatureLayer.js";
|
|
14
15
|
import X from "@arcgis/core/Graphic.js";
|
|
15
16
|
import { b as Z } from "../../chunks/language-defaults-base.js";
|
|
16
17
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
17
18
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
18
|
-
v4.34.0-next.
|
|
19
|
+
v4.34.0-next.61 */
|
|
19
20
|
const ee = Q`:host(:not([closed])){--calcite-block-border-color: var(--calcite-color-transparent);flex:1 0 auto;border-inline-start:var(--arcgis-coding-components-border);box-sizing:border-box;max-width:var(--arcgis-coding-components-side-panel-max-w);width:var(--arcgis-coding-components-side-panel-w);.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}.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)}.prompt-list calcite-list-item{margin-block-end:.5rem;border-radius:var(--calcite-corner-radius-round);--calcite-color-border-3: transparent;overflow:hidden}.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-list-item:focus calcite-button{position:relative;top:-2px}.prompt-list calcite-list-item:last-of-type{margin-block-end:0}calcite-list{--calcite-color-foreground-1: transparent;background-color:transparent}calcite-list-item{--calcite-color-foreground-1: white}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}calcite-tooltip{--calcite-tooltip-z-index: 1000}.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}.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-background-color: white;--calcite-card-border-color: transparent;width:100%}.positioned-code-content{display:flex;flex-direction:row;gap:.5rem;padding:.5rem}calcite-card [slot=title] 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}}:host([closed]){display:none}`;
|
|
20
21
|
class $ extends Error {
|
|
21
22
|
constructor({
|
|
@@ -5,7 +5,8 @@ import "monaco-editor/esm/vs/editor/standalone/browser/standaloneServices.js";
|
|
|
5
5
|
import "monaco-editor/esm/vs/editor/standalone/common/standaloneTheme.js";
|
|
6
6
|
import "monaco-editor/esm/vs/editor/common/languages/supports/tokenization.js";
|
|
7
7
|
import { LitElement as f, createEvent as c, noShadowRoot as x, safeClassMap as a } from "@arcgis/lumina";
|
|
8
|
-
import {
|
|
8
|
+
import { generateGuid as b } from "@arcgis/toolkit/string";
|
|
9
|
+
import { Deferred as P } from "@arcgis/toolkit/promise";
|
|
9
10
|
import { D as v, e as l } from "../../chunks/arcade-executor.js";
|
|
10
11
|
import { s as $ } from "../../chunks/setup-monaco.js";
|
|
11
12
|
import { b as s } from "../../chunks/arcade-defaults.js";
|
|
@@ -15,11 +16,11 @@ import { createRef as A, ref as w } from "lit-html/directives/ref.js";
|
|
|
15
16
|
import { s as y } from "../../chunks/editor.js";
|
|
16
17
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
17
18
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
18
|
-
v4.34.0-next.
|
|
19
|
+
v4.34.0-next.61 */
|
|
19
20
|
const D = _`@layer{arcgis-arcade-editor{display:flex;flex-direction:column;position:relative;overflow:hidden;border:var(--arcgis-coding-components-border)!important;box-sizing:border-box;background-color:var(--arcgis-coding-components-background-color);height:100%;.sticky{position:sticky;top:0;z-index:10}.notice-container{margin:var(--calcite-spacing-xxs);padding:var(--calcite-spacing-sm);background-color:var(--calcite-color-foreground-1);text-align:center}.main-action-bar{border-bottom:var(--arcgis-coding-components-border)!important;flex:0 0 auto;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)}}arcgis-arcade-results{border-top:var(--arcgis-coding-components-border)!important;box-sizing:border-box;max-height:50%;min-height:50%;margin-bottom:-1px}calcite-flow{[slot=footer]{word-break:break-word}}.hidden{display:none}}}`;
|
|
20
21
|
class C extends f {
|
|
21
22
|
constructor() {
|
|
22
|
-
super(...arguments), this._codeEditorElt = A(), this._componentReadyDefer = new
|
|
23
|
+
super(...arguments), this._codeEditorElt = A(), this._componentReadyDefer = new P(), this._disposables = [], this._editorProfilePromise = Promise.resolve(void 0), this.messages = S(), this._modelId = b(), this._openArcadeHelp = () => void window.open(v, "Arcade Help"), this._toggleSidePanel = (e) => {
|
|
23
24
|
if (!e.target)
|
|
24
25
|
return;
|
|
25
26
|
const i = e.target?.dataset.panelName ?? "none";
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { c as P } from "../../chunks/runtime.js";
|
|
2
2
|
import { css as C, html as t } from "lit";
|
|
3
3
|
import { nothing as y, LitElement as M, createEvent as f, safeClassMap as v } from "@arcgis/lumina";
|
|
4
|
-
import { setValuesInString as o, quoteString as g } from "@arcgis/
|
|
4
|
+
import { setValuesInString as o, quoteString as g } from "@arcgis/toolkit/string";
|
|
5
5
|
import { B as b, v as h, M as m, f as R, a as A, b as I } from "../../chunks/arcade-executor.js";
|
|
6
6
|
import { u as L } from "../../chunks/useT9n.js";
|
|
7
7
|
import { s as O } from "../../chunks/fields.js";
|
|
8
|
+
import "@arcgis/toolkit/function";
|
|
8
9
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
9
10
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
10
|
-
v4.34.0-next.
|
|
11
|
+
v4.34.0-next.61 */
|
|
11
12
|
const D = C`:host{display:flex;flex-direction:column;width:100%;background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-2);.flex-adjustable{flex:1 1 auto;overflow:hidden}.flex-row{display:flex;flex-direction:row;overflow:hidden}.flex-column{display:flex;flex-direction:column;overflow:hidden}.y-scrollable-container{overflow-y:auto;block-size:100%;background-color:var(--calcite-color-foreground-1)}header{border-bottom:1px solid var(--calcite-color-border-3);flex:0 0 auto}.ltr-container{direction:ltr}calcite-action-bar{calcite-action-group{padding-inline-end:var(--calcite-spacing-sm);calcite-action{padding-inline-end:var(--calcite-spacing-sm)}calcite-action:not(:first-child){padding-inline-start:var(--calcite-spacing-sm)}}calcite-action-group:last-child{border-inline-end-width:0px}calcite-action-group:not(:first-child){padding-inline-start:var(--calcite-spacing-sm)}}.notice-container{margin:var(--calcite-spacing-xxs);padding:var(--calcite-spacing-sm);background-color:var(--calcite-color-foreground-1)}.color-info{color:var(--calcite-color-status-info)}.color-error{color:var(--calcite-color-status-danger)}.color-success{color:var(--calcite-color-status-success)}[class*=result-value-]{font-size:var(--calcite-font-size--2);line-height:1.25rem;background-color:var(--calcite-color-foreground-1);margin:var(--calcite-spacing-md)}.console-logs-container{background-color:var(--calcite-color-foreground-1);padding:0 var(--calcite-spacing-md);font-family:var(--calcite-code-family);font-size:var(--calcite-font-size--2);font-weight:var(--calcite-font-weight-normal)}.result-value-table{table{display:block;max-width:fit-content;overflow-x:auto;border-spacing:0;border-collapse:collapse;text-align:start;white-space:nowrap;thead{background-color:var(--calcite-color-foreground-2)}tr{border-top:1px solid var(--calcite-color-border-3);border-bottom:1px solid var(--calcite-color-border-3)}th,td{border-inline-start:1px solid var(--calcite-color-border-3);border-inline-end:1px solid var(--calcite-color-border-3);text-align:start;padding:var(--calcite-spacing-xxs);.string-value{white-space:pre}}th{font-weight:var(--calcite-font-weight-medium)}}}.tree-item-label,.number-value,.string-value,.boolean-value{font-family:var(--calcite-code-family)}.tree-item-label,.value-type{color:var(--calcite-color-text-2);font-weight:var(--calcite-font-weight-normal)}.dictionary-property{color:var(--arcgis-editor-identifier)}.number-value{color:var(--arcgis-editor-number)}.string-value{color:var(--arcgis-editor-string);white-space:pre-wrap}.constant-value{color:var(--arcgis-editor-constant)}.date-value{color:var(--arcgis-editor-date)}}`, l = {
|
|
12
13
|
lines: !0,
|
|
13
14
|
selectionMode: "none",
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { c as n } from "../../chunks/runtime.js";
|
|
2
2
|
import { ref as l } from "lit/directives/ref.js";
|
|
3
3
|
import { css as d, html as s, nothing as c } from "lit";
|
|
4
|
-
import { setFocusOnElement as g, focusElement as u } from "@arcgis/
|
|
4
|
+
import { setFocusOnElement as g, focusElement as u } from "@arcgis/toolkit/dom";
|
|
5
5
|
import { LitElement as h, createEvent as r } from "@arcgis/lumina";
|
|
6
6
|
import { g as a, o as m, b as f, c as p } from "../../chunks/markdown.js";
|
|
7
7
|
import { f as b } from "../../chunks/monaco-importer.js";
|
|
8
8
|
import { u as _ } from "../../chunks/useT9n.js";
|
|
9
9
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
10
10
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
11
|
-
v4.34.0-next.
|
|
11
|
+
v4.34.0-next.61 */
|
|
12
12
|
function v(o) {
|
|
13
13
|
return !Array.isArray(o) || !o.length ? !1 : Array.isArray(o[0].suggestions);
|
|
14
14
|
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { g as r, c as a } from "../../chunks/runtime.js";
|
|
2
2
|
import { i as d } from "../../chunks/monaco-importer.js";
|
|
3
|
-
import {
|
|
3
|
+
import { observeAncestorsMutation as g, unsafeGetCalciteModeName as s } from "@arcgis/toolkit/dom";
|
|
4
|
+
import { generateGuid as B } from "@arcgis/toolkit/string";
|
|
5
|
+
import { Deferred as l } from "@arcgis/toolkit/promise";
|
|
4
6
|
import { LitElement as w, createEvent as i, noShadowRoot as E } from "@arcgis/lumina";
|
|
5
7
|
import { s as Q } from "../../chunks/setup-monaco.js";
|
|
6
8
|
import "../../chunks/sql-expr-contribution.js";
|
|
@@ -9,7 +11,7 @@ import { load as h } from "@arcgis/lumina/controllers";
|
|
|
9
11
|
import { Range as M, Uri as c, KeyMod as n, KeyCode as t } from "monaco-editor";
|
|
10
12
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
11
13
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
12
|
-
v4.34.0-next.
|
|
14
|
+
v4.34.0-next.61 */
|
|
13
15
|
const x = m`@layer{/*!-----------------------------------------------------------
|
|
14
16
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
15
17
|
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
|
@@ -31,7 +33,7 @@ const x = m`@layer{/*!----------------------------------------------------------
|
|
|
31
33
|
};
|
|
32
34
|
class I extends w {
|
|
33
35
|
constructor() {
|
|
34
|
-
super(...arguments), this._componentReadyDefer = new
|
|
36
|
+
super(...arguments), this._componentReadyDefer = new l(), this._disposables = [], this._monacoEditor = h(d), this.modelId = B(), this.value = "", this.arcgisSelectionChange = i({ bubbles: !1 }), this.arcgisValueChange = i({ bubbles: !1 });
|
|
35
37
|
}
|
|
36
38
|
static {
|
|
37
39
|
this.properties = { editorInstance: 32, editorOptions: 0, language: 1, modelId: 1, value: 1 };
|
|
@@ -86,7 +88,7 @@ class I extends w {
|
|
|
86
88
|
this.value = this._editorInstance?.getValue() ?? "", this.arcgisValueChange.emit(this.value);
|
|
87
89
|
}), this._editorInstance.onDidChangeCursorSelection((e) => {
|
|
88
90
|
this.arcgisSelectionChange.emit({ selection: e.selection, model: this._editorInstance?.getModel() });
|
|
89
|
-
}), this._themeObserver =
|
|
91
|
+
}), this._themeObserver = g(this.el, ["class"], () => this.updateTheme()), this.updateTheme(), new ResizeObserver(() => this._editorInstance?.layout()).observe(this.el), this.addCommonEditorActions();
|
|
90
92
|
}
|
|
91
93
|
disconnectedCallback() {
|
|
92
94
|
for (super.disconnectedCallback(), this._editorInstance?.getModel()?.dispose(); this._disposables.length; )
|
|
@@ -112,7 +114,7 @@ class I extends w {
|
|
|
112
114
|
return this.modelId ? c.parse(this.modelId) : c.parse("");
|
|
113
115
|
}
|
|
114
116
|
updateTheme() {
|
|
115
|
-
const A =
|
|
117
|
+
const A = s(this.el) === "light" ? "vs" : "vs-dark";
|
|
116
118
|
A !== this._currentTheme && (this._currentTheme = A, this._monacoEditor.setTheme(A));
|
|
117
119
|
}
|
|
118
120
|
addCommonEditorActions() {
|