@arcgis/coding-components 4.34.0-next.110 → 4.34.0-next.112
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/{GNTTI5IF.js → 2DPY5VHZ.js} +2 -2
- package/dist/cdn/{KPXT5QRA.js → 2ID66WOF.js} +2 -2
- package/dist/cdn/{QL2AIKLZ.js → 2MKDUPHG.js} +2 -2
- package/dist/cdn/{2PPEEKXH.js → 2NB4JAWS.js} +2 -2
- package/dist/cdn/33MTSZV6.js +4 -0
- package/dist/cdn/{C73QFQTS.js → 3WREMJF2.js} +2 -2
- package/dist/cdn/4ILR5RHT.js +4 -0
- package/dist/cdn/{QYIUA7A4.js → 4Y5KVYRQ.js} +2 -2
- package/dist/cdn/{2FUY5QYE.js → 5FLDXIP5.js} +2 -2
- package/dist/cdn/{U7OT64HH.js → 5UVPHIHF.js} +1 -1
- package/dist/cdn/{ACJLUZBT.js → 6JB5VL45.js} +2 -2
- package/dist/cdn/{PT5SJDYV.js → 7D2SHOMW.js} +2 -2
- package/dist/cdn/{VHODH5VX.js → 7QXI27VX.js} +1 -1
- package/dist/cdn/{5DTQCCWG.js → 7ZWMGCWA.js} +2 -2
- package/dist/cdn/{I4CFTX6V.js → A6DPPPPA.js} +1 -1
- package/dist/cdn/{SUZ3RSNJ.js → AQZYGFK7.js} +2 -2
- package/dist/cdn/{CQNFC3H5.js → B3XQTLRX.js} +2 -2
- package/dist/cdn/{22GCWZ6Y.js → CBAEJINQ.js} +2 -2
- package/dist/cdn/{QUBGXAWD.js → E5M2SRNK.js} +1 -1
- package/dist/cdn/{TH3VWWRD.js → EAHHCPQB.js} +1 -1
- package/dist/cdn/{7PNHA2YU.js → EPEVZJBD.js} +2 -2
- package/dist/cdn/{Y5TKJDDX.js → EVEOLU7G.js} +2 -2
- package/dist/cdn/{5J4F35FQ.js → FGC4UTQI.js} +2 -2
- package/dist/cdn/GTREYYVO.js +4 -0
- package/dist/cdn/{2JJVQXYV.js → H277CN4W.js} +2 -2
- package/dist/cdn/{Q6QMFUJ5.js → HVMUVUWZ.js} +2 -2
- package/dist/cdn/{KDEBTOEF.js → IPDORRAY.js} +2 -2
- package/dist/cdn/{E2B52CGC.js → JDN2D5XL.js} +2 -2
- package/dist/cdn/{6MJIFPFP.js → JRPTSR5M.js} +2 -2
- package/dist/cdn/{2UQDLIQM.js → NFZWQFPJ.js} +2 -2
- package/dist/cdn/{VJWZENKZ.js → NLTUTEF6.js} +2 -2
- package/dist/cdn/P4ZSDAOT.js +4 -0
- package/dist/cdn/{X65JDDI7.js → Q274TBRL.js} +2 -2
- package/dist/cdn/{DASHMZUR.js → Q5QESZ7J.js} +3 -3
- package/dist/cdn/{ARAEAFF7.js → SDATYCLG.js} +4 -4
- package/dist/cdn/{IWWU3QWW.js → UD5THEID.js} +2 -2
- package/dist/cdn/{FVFARCGA.js → VCKIIEZ7.js} +1 -1
- package/dist/cdn/{WCQG4L4Q.js → WMW6SEZA.js} +1 -1
- package/dist/cdn/{IS7RLDYO.js → X7A47MMY.js} +2 -2
- package/dist/cdn/{OOUKOHPI.js → XIQB6F7S.js} +2 -2
- package/dist/cdn/XTB5XE4Q.js +4 -0
- package/dist/cdn/Y2HCAJNR.js +4 -0
- package/dist/cdn/{WJCZ573J.js → YA52YDIB.js} +3 -3
- package/dist/cdn/{NIMMHDVC.js → ZWVQHC74.js} +2 -2
- package/dist/cdn/assets/code-editor/sql-expr.worker.js +18328 -18315
- package/dist/cdn/index.js +2 -2
- package/dist/chunks/arcade-defaults.js +1 -1
- package/dist/chunks/arcade-executor.js +1 -1
- package/dist/chunks/arcade-mode.js +1 -1
- package/dist/chunks/arcade-service-accessors.js +1 -1
- package/dist/chunks/editor.js +1 -1
- package/dist/chunks/fields.js +1 -1
- package/dist/chunks/language-defaults-base.js +4 -4
- package/dist/chunks/markdown.js +1 -1
- package/dist/chunks/monaco-importer.js +1 -1
- package/dist/chunks/runtime.js +1 -1
- package/dist/chunks/setup-monaco.js +1 -1
- package/dist/chunks/sql-expr-contribution.js +7 -9
- package/dist/chunks/sql-expr-defaults.js +1 -1
- package/dist/chunks/sql-expr-mode.js +41 -40
- package/dist/chunks/sql-expr-service-accessors.js +9 -0
- package/dist/chunks/useT9n.js +1 -1
- package/dist/components/arcgis-arcade-coding-assistant/customElement.js +1 -1
- package/dist/components/arcgis-arcade-editor/customElement.js +2 -2
- package/dist/components/arcgis-arcade-results/customElement.js +1 -1
- package/dist/components/arcgis-arcade-suggestions/customElement.js +1 -1
- package/dist/components/arcgis-code-editor/customElement.js +1 -1
- package/dist/components/arcgis-editor-variables/customElement.js +1 -1
- package/dist/components/arcgis-language-api-panel/customElement.js +1 -1
- package/dist/components/arcgis-sql-expression-editor/customElement.d.ts +3 -0
- package/dist/components/arcgis-sql-expression-editor/customElement.js +42 -33
- package/dist/components/arcgis-sql-expression-fields/customElement.js +1 -1
- package/dist/docs/api.json +26 -2
- package/dist/docs/docs.json +27 -2
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +12 -2
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -1
- package/dist/loader.js +1 -1
- package/dist/types/lumina.d.ts +1 -0
- package/dist/types/preact.d.ts +1 -0
- package/dist/types/react.d.ts +1 -0
- package/dist/types/stencil.d.ts +1 -0
- package/dist/utils/sql-expr-monaco/sql-expr-mode.d.ts +1 -1
- package/package.json +5 -5
- package/dist/cdn/3PP6KYWG.js +0 -4
- package/dist/cdn/QE3QG6UH.js +0 -4
- package/dist/cdn/VUND5DZI.js +0 -4
- package/dist/cdn/WGDHKLHA.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{C as i,o as e}from"./
|
|
3
|
+
v4.34.0-next.112 */
|
|
4
|
+
import{C as i,o as e}from"./YA52YDIB.js";import"./A6DPPPPA.js";import"./EAHHCPQB.js";var r=e(i,{"arcgis-arcade-coding-assistant":[()=>import("./JDN2D5XL.js"),"appVersion,assistantsEnabled,closed,closePanel:,editorRef:,feedbackServiceUrl,helpBase,insertText:,layer,portalUrl,serviceUrl;destroy"],"arcgis-arcade-editor":[()=>import("./6JB5VL45.js"),"arcadeAssistant:,customPanels:,editorInstance:,editorOptions:,hideDocumentationActions,hideSideBar,openedSidePanel:,profile:,script,sideActionBarExpanded,snippets:,suggestions:,testData:;getEditorInstance,getScript,getTestResult,setFocus"],"arcgis-arcade-results":[()=>import("./2DPY5VHZ.js"),"consoleLogs:,loading,openedResultPanel,result:"],"arcgis-arcade-suggestions":[()=>import("./FGC4UTQI.js"),"closed,suggestions:"],"arcgis-code-editor":[()=>import("./2ID66WOF.js"),"editorInstance:,editorOptions:,language,modelId:,value;getEditorInstance,getValue,insertSnippet,insertText,setFocus,setValue"],"arcgis-editor-variables":[()=>import("./AQZYGFK7.js"),"closed,loading,modelId,variable:"],"arcgis-language-api-panel":[()=>import("./33MTSZV6.js"),"apiLibrary:,closed,hideDocumentationActions,languageId,loading"],"arcgis-sql-expression-editor":[()=>import("./Y2HCAJNR.js"),"hideSideBar,profile:,script"],"arcgis-sql-expression-fields":[()=>import("./EVEOLU7G.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)
|
|
@@ -4,7 +4,7 @@ import { g as m } from "./runtime.js";
|
|
|
4
4
|
import { CompletionItemKind as w, InsertTextFormat as f, InsertTextMode as d } from "vscode-languageserver-types";
|
|
5
5
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
6
6
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
7
|
-
v4.34.0-next.
|
|
7
|
+
v4.34.0-next.112 */
|
|
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.112 */
|
|
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";
|
|
@@ -9,7 +9,7 @@ import { debounce as F } from "@arcgis/toolkit/function";
|
|
|
9
9
|
import { Deferred as _ } from "@arcgis/toolkit/promise";
|
|
10
10
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
11
11
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
12
|
-
v4.34.0-next.
|
|
12
|
+
v4.34.0-next.112 */
|
|
13
13
|
const S = [
|
|
14
14
|
"<=",
|
|
15
15
|
">=",
|
|
@@ -1,6 +1,6 @@
|
|
|
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.
|
|
3
|
+
v4.34.0-next.112 */
|
|
4
4
|
async function a() {
|
|
5
5
|
return (await e()).getArcadeDiagnosticService();
|
|
6
6
|
}
|
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.112 */
|
|
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
|
@@ -14,7 +14,7 @@ import { filterApiLibraryForContext as le } from "@arcgis/languages-api-utils";
|
|
|
14
14
|
import { Emitter as x, Uri as L } from "monaco-editor";
|
|
15
15
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
16
16
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
17
|
-
v4.34.0-next.
|
|
17
|
+
v4.34.0-next.112 */
|
|
18
18
|
function W(t) {
|
|
19
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";
|
|
20
20
|
}
|
|
@@ -696,9 +696,9 @@ class Te extends v {
|
|
|
696
696
|
return this._definition ? B(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;
|
|
697
697
|
}
|
|
698
698
|
async _featureSetCollectionFromMap(e) {
|
|
699
|
-
return pe(e) && await e.loadAll(), await Promise.all(e.
|
|
700
|
-
layers: this._convertWebMapLayersToVariables(e.
|
|
701
|
-
tables: this._convertWebMapLayersToVariables(e.
|
|
699
|
+
return pe(e) && await e.loadAll(), await Promise.all(e.allTables.map(async (i) => await i.load())), {
|
|
700
|
+
layers: this._convertWebMapLayersToVariables(e.allLayers),
|
|
701
|
+
tables: this._convertWebMapLayersToVariables(e.allTables, !0),
|
|
702
702
|
source: e
|
|
703
703
|
};
|
|
704
704
|
}
|
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.112 */
|
|
8
8
|
async function ye(r, e) {
|
|
9
9
|
return await (await me()).colorize(r, e, { tabSize: 2 });
|
|
10
10
|
}
|
|
@@ -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.112 */
|
|
10
10
|
function $(e, n, l, i) {
|
|
11
11
|
if (!n)
|
|
12
12
|
return [];
|
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/4.34/esri/copyright.txt for details.
|
|
6
|
-
v4.34.0-next.
|
|
6
|
+
v4.34.0-next.112 */
|
|
7
7
|
const t = e({ defaultAssetPath: "https://jsdev.arcgis.com/next/coding-components/", hydratedAttribute: "hydrated" }), { customElement: n, getAssetPath: d, setAssetPath: i } = t;
|
|
8
8
|
t.t = s;
|
|
9
9
|
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.112 */
|
|
5
5
|
function p() {
|
|
6
6
|
return !!window.MonacoEnvironment?.getWorkerUrl;
|
|
7
7
|
}
|
|
@@ -6,16 +6,17 @@ import "monaco-editor/esm/vs/editor/common/languages/supports/tokenization.js";
|
|
|
6
6
|
import { b as t } from "./arcade-defaults.js";
|
|
7
7
|
import { g as c } from "./arcade-service-accessors.js";
|
|
8
8
|
import { a as n } from "./sql-expr-defaults.js";
|
|
9
|
+
import { g as m } from "./sql-expr-service-accessors.js";
|
|
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.112 */
|
|
12
13
|
const s = /* @__PURE__ */ new Set();
|
|
13
14
|
function g(e, o) {
|
|
14
15
|
return () => {
|
|
15
16
|
s.has(e) || s.add(e), o();
|
|
16
17
|
};
|
|
17
18
|
}
|
|
18
|
-
async function
|
|
19
|
+
async function F(e) {
|
|
19
20
|
if (s.has(e))
|
|
20
21
|
return;
|
|
21
22
|
(await d()).createModel("", e).dispose();
|
|
@@ -24,8 +25,8 @@ const u = {
|
|
|
24
25
|
"light-theme": { comment: "#606060", constant: "#9809C8", date: "#296389", identifier: "#0000B3", keyword: "#BF4900", number: "#136D3D", string: "#A31515", operator: "#9809C8", predefined: "#0000B3" },
|
|
25
26
|
"dark-theme": { comment: "#BFBFBF", constant: "#CDBAEA", date: "#97A6CE", identifier: "#9FD4F3", keyword: "#EEAA5A", number: "#AAD04B", string: "#F2877B", operator: "#CDBAEA", predefined: "#9FD4F3" }
|
|
26
27
|
};
|
|
27
|
-
|
|
28
|
-
function
|
|
28
|
+
p();
|
|
29
|
+
function p() {
|
|
29
30
|
d().then((e) => {
|
|
30
31
|
["light", "dark"].forEach((o) => {
|
|
31
32
|
const i = o === "light" ? "vs" : "vs-dark", r = u[`${o}-theme`];
|
|
@@ -63,9 +64,6 @@ a.onLanguage(
|
|
|
63
64
|
});
|
|
64
65
|
})
|
|
65
66
|
);
|
|
66
|
-
async function p() {
|
|
67
|
-
return await import("./sql-expr-mode.js");
|
|
68
|
-
}
|
|
69
67
|
a.register({
|
|
70
68
|
id: n.languageId,
|
|
71
69
|
aliases: ["EsiSqlExpression", "sql-expression"],
|
|
@@ -75,7 +73,7 @@ a.register({
|
|
|
75
73
|
a.onLanguage(
|
|
76
74
|
n.languageId,
|
|
77
75
|
g(n.languageId, () => {
|
|
78
|
-
|
|
76
|
+
m().then((e) => {
|
|
79
77
|
e.setupMode(n);
|
|
80
78
|
}).catch((e) => {
|
|
81
79
|
throw e;
|
|
@@ -83,5 +81,5 @@ a.onLanguage(
|
|
|
83
81
|
})
|
|
84
82
|
);
|
|
85
83
|
export {
|
|
86
|
-
|
|
84
|
+
F as s
|
|
87
85
|
};
|
|
@@ -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/4.34/esri/copyright.txt for details.
|
|
7
|
-
v4.34.0-next.
|
|
7
|
+
v4.34.0-next.112 */
|
|
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 {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Emitter as T, languages as u } from "monaco-editor";
|
|
2
2
|
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";
|
|
@@ -6,9 +6,10 @@ import { i as p } from "./monaco-importer.js";
|
|
|
6
6
|
import { Deferred as _ } from "@arcgis/toolkit/promise";
|
|
7
7
|
import { a as d } from "./sql-expr-defaults.js";
|
|
8
8
|
import { debounce as N } from "@arcgis/toolkit/function";
|
|
9
|
+
import { g as f } from "./sql-expr-service-accessors.js";
|
|
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.112 */
|
|
12
13
|
let h = new _();
|
|
13
14
|
class k {
|
|
14
15
|
constructor(e) {
|
|
@@ -45,7 +46,7 @@ class k {
|
|
|
45
46
|
return await this._worker?.withSyncedResources(e), t;
|
|
46
47
|
}
|
|
47
48
|
}
|
|
48
|
-
const
|
|
49
|
+
const S = [
|
|
49
50
|
"AND",
|
|
50
51
|
"AS",
|
|
51
52
|
"BOTH",
|
|
@@ -93,7 +94,7 @@ const f = [
|
|
|
93
94
|
"WITH",
|
|
94
95
|
"YEAR",
|
|
95
96
|
"ZONE"
|
|
96
|
-
],
|
|
97
|
+
], A = [
|
|
97
98
|
// Logical
|
|
98
99
|
"AND",
|
|
99
100
|
"BETWEEN",
|
|
@@ -103,7 +104,7 @@ const f = [
|
|
|
103
104
|
// Predicates
|
|
104
105
|
"IS",
|
|
105
106
|
"NULL"
|
|
106
|
-
],
|
|
107
|
+
], L = [
|
|
107
108
|
// Conversion
|
|
108
109
|
"CAST",
|
|
109
110
|
// Datetime
|
|
@@ -139,7 +140,7 @@ const f = [
|
|
|
139
140
|
"SUBSTRING",
|
|
140
141
|
"TRIM",
|
|
141
142
|
"UPPER"
|
|
142
|
-
],
|
|
143
|
+
], R = {
|
|
143
144
|
comments: {
|
|
144
145
|
lineComment: "--",
|
|
145
146
|
blockComment: ["/*", "*/"]
|
|
@@ -163,7 +164,7 @@ const f = [
|
|
|
163
164
|
{ open: '"', close: '"' },
|
|
164
165
|
{ open: "'", close: "'" }
|
|
165
166
|
]
|
|
166
|
-
},
|
|
167
|
+
}, M = {
|
|
167
168
|
defaultToken: "",
|
|
168
169
|
tokenPostfix: ".arcgis",
|
|
169
170
|
ignoreCase: !0,
|
|
@@ -171,9 +172,9 @@ const f = [
|
|
|
171
172
|
{ open: "[", close: "]", token: "delimiter.square" },
|
|
172
173
|
{ open: "(", close: ")", token: "delimiter.parenthesis" }
|
|
173
174
|
],
|
|
174
|
-
keywords:
|
|
175
|
-
operators:
|
|
176
|
-
builtinFunctions:
|
|
175
|
+
keywords: S,
|
|
176
|
+
operators: A,
|
|
177
|
+
builtinFunctions: L,
|
|
177
178
|
builtinVariables: [],
|
|
178
179
|
tokenizer: {
|
|
179
180
|
root: [
|
|
@@ -240,30 +241,30 @@ const f = [
|
|
|
240
241
|
]
|
|
241
242
|
}
|
|
242
243
|
};
|
|
243
|
-
class
|
|
244
|
+
class x {
|
|
244
245
|
constructor(e, t) {
|
|
245
246
|
this._worker = e, this._defaults = t;
|
|
246
247
|
}
|
|
247
248
|
async provideCompletionItems(e, t) {
|
|
248
249
|
try {
|
|
249
|
-
const i = await this._worker(e.uri),
|
|
250
|
+
const i = await this._worker(e.uri), n = e.getWordUntilPosition(t), r = {
|
|
250
251
|
startLineNumber: t.lineNumber,
|
|
251
252
|
endLineNumber: t.lineNumber,
|
|
252
|
-
startColumn:
|
|
253
|
-
endColumn:
|
|
253
|
+
startColumn: n.startColumn,
|
|
254
|
+
endColumn: n.endColumn
|
|
254
255
|
}, c = this._defaults.getApiContextForModel(e.uri);
|
|
255
|
-
return await i.doComplete(e.uri.toString(),
|
|
256
|
+
return await i.doComplete(e.uri.toString(), r, t, c);
|
|
256
257
|
} catch (i) {
|
|
257
258
|
return console.error(i), { suggestions: [] };
|
|
258
259
|
}
|
|
259
260
|
}
|
|
260
261
|
}
|
|
261
|
-
class
|
|
262
|
+
class b {
|
|
262
263
|
constructor(e, t, {
|
|
263
264
|
defaults: i,
|
|
264
|
-
diagnosticService:
|
|
265
|
+
diagnosticService: n
|
|
265
266
|
}) {
|
|
266
|
-
this._languageId = e, this._worker = t, this._disposables = [], this._modelListeners = /* @__PURE__ */ new Map(), this._diagnosticsService =
|
|
267
|
+
this._languageId = e, this._worker = t, this._disposables = [], this._modelListeners = /* @__PURE__ */ new Map(), this._diagnosticsService = n, this._defaults = i, p().then((r) => {
|
|
267
268
|
const c = (o) => {
|
|
268
269
|
const s = o.getLanguageId();
|
|
269
270
|
if (s !== this._languageId)
|
|
@@ -276,7 +277,7 @@ class x {
|
|
|
276
277
|
this._modelListeners.set(o.uri.toString(), [m, w]), this._doValidate(o, s).catch(console.error);
|
|
277
278
|
}, g = (o) => {
|
|
278
279
|
const s = o.uri.toString();
|
|
279
|
-
|
|
280
|
+
r.setModelMarkers(o, this._languageId, []);
|
|
280
281
|
const l = this._modelListeners.get(s);
|
|
281
282
|
if (l) {
|
|
282
283
|
for (; l.length; )
|
|
@@ -284,19 +285,19 @@ class x {
|
|
|
284
285
|
this._modelListeners.delete(s);
|
|
285
286
|
}
|
|
286
287
|
};
|
|
287
|
-
this._disposables.push(
|
|
288
|
-
|
|
288
|
+
this._disposables.push(r.onDidCreateModel(c)), this._disposables.push(r.onWillDisposeModel((o) => g(o))), this._disposables.push(
|
|
289
|
+
r.onDidChangeModelLanguage((o) => {
|
|
289
290
|
g(o.model), c(o.model);
|
|
290
291
|
})
|
|
291
292
|
), this._disposables.push(
|
|
292
293
|
i.onDidChange(() => {
|
|
293
|
-
|
|
294
|
+
r.getModels().forEach((o) => {
|
|
294
295
|
o.getLanguageId() === this._languageId && (g(o), c(o));
|
|
295
296
|
});
|
|
296
297
|
})
|
|
297
298
|
), this._disposables.push(
|
|
298
299
|
i.onModelContextDidChange((o) => {
|
|
299
|
-
|
|
300
|
+
r.getModels().forEach((s) => {
|
|
300
301
|
s.getLanguageId() === this._languageId && s.uri.toString() === o && this._doValidate(s, this._languageId).catch(console.error);
|
|
301
302
|
});
|
|
302
303
|
})
|
|
@@ -304,22 +305,22 @@ class x {
|
|
|
304
305
|
dispose: () => {
|
|
305
306
|
this._modelListeners.forEach((o) => o.forEach((s) => s.dispose())), this._modelListeners.clear();
|
|
306
307
|
}
|
|
307
|
-
}),
|
|
308
|
+
}), r.getModels().forEach(c);
|
|
308
309
|
});
|
|
309
310
|
}
|
|
310
311
|
async _doValidate(e, t) {
|
|
311
312
|
const i = await p();
|
|
312
313
|
if (e.isAttachedToEditor())
|
|
313
314
|
try {
|
|
314
|
-
const
|
|
315
|
+
const n = await this._worker(e.uri), r = this._defaults.getApiContextForModel(e.uri), c = await n.doValidation(e.uri.toString(), r);
|
|
315
316
|
this._diagnosticsService.fireDiagnosticsChange(e.uri, c), i.setModelMarkers(e, t, c);
|
|
316
|
-
} catch (
|
|
317
|
-
console.error(
|
|
317
|
+
} catch (n) {
|
|
318
|
+
console.error(n);
|
|
318
319
|
}
|
|
319
320
|
}
|
|
320
321
|
}
|
|
321
322
|
let E;
|
|
322
|
-
async function
|
|
323
|
+
async function G(...a) {
|
|
323
324
|
return await k.waitForWorker(), await new Promise((e, t) => {
|
|
324
325
|
if (!E) {
|
|
325
326
|
t(new Error("sql expression worker not registered!"));
|
|
@@ -328,7 +329,7 @@ async function F(...a) {
|
|
|
328
329
|
e(E(...a));
|
|
329
330
|
});
|
|
330
331
|
}
|
|
331
|
-
class
|
|
332
|
+
class D {
|
|
332
333
|
constructor() {
|
|
333
334
|
this._onDiagnosticsChange = new T();
|
|
334
335
|
}
|
|
@@ -348,21 +349,21 @@ class b {
|
|
|
348
349
|
this._onDiagnosticsChange.fire({ uri: e, diagnostics: t });
|
|
349
350
|
}
|
|
350
351
|
}
|
|
351
|
-
const C = new
|
|
352
|
-
function
|
|
353
|
-
return C;
|
|
352
|
+
const C = new D();
|
|
353
|
+
async function V() {
|
|
354
|
+
return await f(), C;
|
|
354
355
|
}
|
|
355
|
-
function
|
|
356
|
-
const e = new k(a), t = async (...
|
|
357
|
-
E = t, u.setMonarchTokensProvider(d.languageId,
|
|
358
|
-
const i = new
|
|
359
|
-
u.registerCompletionItemProvider(d.languageId, i), new
|
|
356
|
+
function B(a) {
|
|
357
|
+
const e = new k(a), t = async (...n) => await e.getLanguageServiceWorker(...n);
|
|
358
|
+
E = t, u.setMonarchTokensProvider(d.languageId, M), u.setLanguageConfiguration(d.languageId, R);
|
|
359
|
+
const i = new x(t, d);
|
|
360
|
+
u.registerCompletionItemProvider(d.languageId, i), new b(a.languageId, t, {
|
|
360
361
|
defaults: a,
|
|
361
362
|
diagnosticService: C
|
|
362
363
|
});
|
|
363
364
|
}
|
|
364
365
|
export {
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
366
|
+
V as getSqlExprDiagnosticService,
|
|
367
|
+
G as getSqlExprWorker,
|
|
368
|
+
B as setupMode
|
|
368
369
|
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
|
+
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
3
|
+
v4.34.0-next.112 */
|
|
4
|
+
async function t() {
|
|
5
|
+
return await import("./sql-expr-mode.js");
|
|
6
|
+
}
|
|
7
|
+
export {
|
|
8
|
+
t as g
|
|
9
|
+
};
|
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.112 */
|
|
6
6
|
const s = o(t);
|
|
7
7
|
export {
|
|
8
8
|
s as u
|
|
@@ -16,7 +16,7 @@ import K from "@arcgis/core/Graphic.js";
|
|
|
16
16
|
import { b as X } from "../../chunks/language-defaults-base.js";
|
|
17
17
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
18
18
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
19
|
-
v4.34.0-next.
|
|
19
|
+
v4.34.0-next.112 */
|
|
20
20
|
const Z = W`: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)}.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}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-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}`;
|
|
21
21
|
class y extends Error {
|
|
22
22
|
constructor({
|
|
@@ -12,12 +12,12 @@ import { s as B } from "../../chunks/setup-monaco.js";
|
|
|
12
12
|
import { b as l } from "../../chunks/arcade-defaults.js";
|
|
13
13
|
import { a as I } from "../../chunks/arcade-service-accessors.js";
|
|
14
14
|
import { u as M } from "../../chunks/useT9n.js";
|
|
15
|
-
import { createRef as L, ref as T } from "lit
|
|
15
|
+
import { createRef as L, ref as T } from "lit/directives/ref.js";
|
|
16
16
|
import { s as F } from "../../chunks/editor.js";
|
|
17
17
|
import U from "@arcgis/core/identity/IdentityManager.js";
|
|
18
18
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
19
19
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
20
|
-
v4.34.0-next.
|
|
20
|
+
v4.34.0-next.112 */
|
|
21
21
|
const j = E`@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}}}`, z = "https://services6.arcgis.com/HXHga6CfMLMBOlBX/ArcGIS/rest/services/survey123_6e349a50b4504ca6b6107216d568db5f_form/FeatureServer/0", N = (i) => {
|
|
22
22
|
const { aiAssistantsEnabled: e } = i;
|
|
23
23
|
return e === void 0 ? (console.warn("areAiAssistantsEnabled is not defined in the organizations settings."), !1) : e;
|
|
@@ -8,7 +8,7 @@ import { s as O } from "../../chunks/fields.js";
|
|
|
8
8
|
import "@arcgis/toolkit/function";
|
|
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.112 */
|
|
12
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 = {
|
|
13
13
|
lines: !0,
|
|
14
14
|
selectionMode: "none",
|
|
@@ -8,7 +8,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.112 */
|
|
12
12
|
function v(o) {
|
|
13
13
|
return !Array.isArray(o) || !o.length ? !1 : Array.isArray(o[0].suggestions);
|
|
14
14
|
}
|
|
@@ -11,7 +11,7 @@ import { load as h } from "@arcgis/lumina/controllers";
|
|
|
11
11
|
import { Range as M, Uri as c, KeyMod as n, KeyCode as t } from "monaco-editor";
|
|
12
12
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
13
13
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
14
|
-
v4.34.0-next.
|
|
14
|
+
v4.34.0-next.112 */
|
|
15
15
|
const x = m`@layer{/*!-----------------------------------------------------------
|
|
16
16
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
17
17
|
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
|
@@ -7,7 +7,7 @@ import { createFilterExpression as f } from "@arcgis/toolkit/string";
|
|
|
7
7
|
import { u } from "../../chunks/useT9n.js";
|
|
8
8
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
9
9
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
10
|
-
v4.34.0-next.
|
|
10
|
+
v4.34.0-next.112 */
|
|
11
11
|
const m = 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}}`;
|
|
12
12
|
function g(l) {
|
|
13
13
|
l.key === "Enter" && l.stopPropagation();
|
|
@@ -10,7 +10,7 @@ import { u as v } from "../../chunks/useT9n.js";
|
|
|
10
10
|
import { s as d } from "../../chunks/sql-expr-contribution.js";
|
|
11
11
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
12
12
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
13
|
-
v4.34.0-next.
|
|
13
|
+
v4.34.0-next.112 */
|
|
14
14
|
const y = h`: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}code{font-family:var(--calcite-code-family)}pre{direction:ltr;overflow-x:auto;background-color:var(--calcite-color-foreground-2);padding:var(--calcite-spacing-sm);code{font-size:var(--calcite-font-size--2)}}}calcite-list-item-group{background-color:var(--calcite-color-foreground-2)}}`;
|
|
15
15
|
class I extends p {
|
|
16
16
|
constructor() {
|
|
@@ -4,6 +4,7 @@ import { JsxNode, PublicLitElement as LitElement, TargetedEvent } from '@arcgis/
|
|
|
4
4
|
import { ApiCategory } from '@arcgis/languages-api-utils';
|
|
5
5
|
import { EditorProfile } from '../../utils/profile/editor-profile';
|
|
6
6
|
import { IPredefinedProfile } from '../../utils/profile/types';
|
|
7
|
+
import { editor } from 'monaco-editor';
|
|
7
8
|
|
|
8
9
|
/**
|
|
9
10
|
* The SQL Expression Editor provides a familiar code editor experience for writing your own SQL expressions.
|
|
@@ -44,6 +45,8 @@ export declare class ArcgisSqlExpressionEditor extends LitElement {
|
|
|
44
45
|
* @default false
|
|
45
46
|
*/
|
|
46
47
|
hideSideBar: boolean;
|
|
48
|
+
/** Emitted when the diagnostics collection has changed. */
|
|
49
|
+
readonly arcgisDiagnosticsChange: TargetedEvent<this, editor.IMarkerData[]>;
|
|
47
50
|
/** Emitted when the script string has changed. */
|
|
48
51
|
readonly arcgisScriptChange: TargetedEvent<this, string>;
|
|
49
52
|
}
|