@arcgis/coding-components 5.0.0-next.121 → 5.0.0-next.123
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/index.d.ts +1 -0
- package/dist/addons.js +1 -1
- package/dist/cdn/{2RJZQRH3.js → 3AJSLHAX.js} +1 -1
- package/dist/cdn/{2JWTMT3R.js → 4EJVPJ6S.js} +2 -2
- package/dist/cdn/{U7DBUMCL.js → 5OMU3HCN.js} +2 -2
- package/dist/cdn/{R6NXM7R2.js → 6GEJDWVQ.js} +2 -2
- package/dist/cdn/{SXREF3XD.js → 6W2W2MBK.js} +2 -2
- package/dist/cdn/{R7QQNTIQ.js → 7I3N5U2L.js} +1 -1
- package/dist/cdn/{KZ4B2WAC.js → BF2WMMEI.js} +1 -1
- package/dist/cdn/{GLQJORE3.js → BFVPYR32.js} +2 -2
- package/dist/cdn/{Z7DONJMA.js → CDWEXLAS.js} +2 -2
- package/dist/cdn/{754PQVNV.js → CJYF3F5E.js} +2 -2
- package/dist/cdn/{5SCKNSE3.js → D6Q3IOSD.js} +3 -3
- package/dist/cdn/{QA2DO7DS.js → EB7DKJEJ.js} +2 -2
- package/dist/cdn/{6PLRAGJ6.js → EEA4JHWB.js} +2 -2
- package/dist/cdn/{FRNWVTUQ.js → EEVKX4HF.js} +2 -2
- package/dist/cdn/{4XZ3C4U4.js → GH26ROWM.js} +2 -2
- package/dist/cdn/{RSPQCPJP.js → HUNG6LTU.js} +2 -2
- package/dist/cdn/{6L7MMQRC.js → J7IX2YOG.js} +2 -2
- package/dist/cdn/{REBFL6OD.js → JVJZQ5W4.js} +2 -2
- package/dist/cdn/{4X2F2FIC.js → JZSTD5RM.js} +2 -2
- package/dist/cdn/{66T2WBNR.js → KBFTJJ7T.js} +2 -2
- package/dist/cdn/{2NNEY7SC.js → KCEE5SGH.js} +2 -2
- package/dist/cdn/{LR5P7NBO.js → LEUNKTRS.js} +2 -2
- package/dist/cdn/{PHAZOIR4.js → LM57FLMD.js} +2 -2
- package/dist/cdn/{DHXQKLBX.js → LYSTTY6K.js} +2 -2
- package/dist/cdn/{FPRJTOMA.js → MAIR6G6S.js} +2 -2
- package/dist/cdn/{YSDUTLMU.js → OCNO5WFU.js} +1 -1
- package/dist/cdn/{TK54JFWN.js → OEKP6ARZ.js} +2 -2
- package/dist/cdn/{SOIPKOZX.js → OKWUXFG3.js} +2 -2
- package/dist/cdn/{T5YAAEXT.js → OYL5NSHY.js} +2 -2
- package/dist/cdn/{SWLMVLPO.js → P4TW7DBI.js} +2 -2
- package/dist/cdn/{UYGWQM4G.js → PENMZRLN.js} +2 -2
- package/dist/cdn/{WK5PLYLA.js → Q5KGEDBE.js} +2 -2
- package/dist/cdn/{4JDOI7X6.js → QG2GH2I4.js} +2 -2
- package/dist/cdn/{7BF2CF5S.js → QZN2YLKG.js} +2 -2
- package/dist/cdn/{725GZKJL.js → R7C4DPOP.js} +2 -2
- package/dist/cdn/{53SYKJXV.js → SB3NUP4J.js} +1 -1
- package/dist/cdn/{PAY27MKM.js → SKB3B7IU.js} +2 -2
- package/dist/cdn/SMKCMY3X.js +4 -0
- package/dist/cdn/{ANX3PAXU.js → SRA5XA6E.js} +2 -2
- package/dist/cdn/{ROEZTYWL.js → SS25D2QB.js} +1 -1
- package/dist/cdn/{XDKC7LXK.js → TK5S3TVF.js} +2 -2
- package/dist/cdn/TMTTXILL.js +8 -0
- package/dist/cdn/{U5UJWSZ3.js → U3QDEN2G.js} +2 -2
- package/dist/cdn/{QOEDA6XK.js → UX46QJ2S.js} +2 -2
- package/dist/cdn/{5MAW2K7P.js → UZZO3SUI.js} +2 -2
- package/dist/cdn/{MAP3P4WS.js → W6OFFZGA.js} +1 -1
- package/dist/cdn/{PDTQHEIL.js → XICATE5G.js} +2 -2
- package/dist/cdn/{HEMDGEWM.js → Y4EXZMWD.js} +1 -1
- package/dist/cdn/assets/code-editor/sql-expr.worker.js +578 -585
- package/dist/cdn/index.js +2 -2
- package/dist/chunks/arcade-contribution.js +1 -1
- package/dist/chunks/arcade-defaults.js +5 -6
- 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 +1 -1
- 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.d.ts +1 -7
- 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 -13
- package/dist/docs/docs.json +3 -13
- package/dist/docs/web-types.json +1 -1
- package/dist/index.d.ts +5 -0
- package/dist/index.js +1 -1
- package/dist/loader.js +1 -1
- package/dist/utils/index.d.ts +3 -0
- package/dist/utils/sql-expr-monaco/sql-expr-completion.d.ts +14 -14
- package/package.json +5 -5
- package/dist/cdn/56ORFLIK.js +0 -8
- package/dist/cdn/TQ3TO4IH.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/5.0/esri/copyright.txt for details.
|
|
3
|
-
v5.0.0-next.
|
|
4
|
-
import{I as s,u as e}from"./
|
|
3
|
+
v5.0.0-next.123 */
|
|
4
|
+
import{I as s,u as e}from"./OYL5NSHY.js";import"./SS25D2QB.js";import"./7I3N5U2L.js";var i=e(s,{"arcgis-arcade-coding-assistant":[()=>import("./GH26ROWM.js"),"appVersion,assistantsEnabled,closed,closePanel:,editorRef:,feedbackServiceUrl,helpBase,insertText:,layer,portalUrl,serviceUrl;destroy"],"arcgis-arcade-editor":[()=>import("./CDWEXLAS.js"),"arcadeAssistant:,customPanels:,editorInstance:,editorOptions:,hideDocumentationActions,hideSideBar,openedSidePanel:,profile:,script,sideActionBarExpanded,snippets:,suggestions:,testData:;getEditorInstance,getScript,getTestResult,setFocus"],"arcgis-arcade-results":[()=>import("./LEUNKTRS.js"),"calciteModeDark,consoleLogs:,loading,openedResultPanel,result:"],"arcgis-arcade-suggestions":[()=>import("./TK5S3TVF.js"),"closed,suggestions:"],"arcgis-code-editor":[()=>import("./5OMU3HCN.js"),"editorInstance:,editorOptions:,language,modelId:,value;getEditorInstance,getValue,insertSnippet,insertText,setFocus,setValue"],"arcgis-code-editor-shell":[()=>import("./6GEJDWVQ.js")],"arcgis-code-viewer":[()=>import("./UZZO3SUI.js"),"language,round"],"arcgis-editor-variables":[()=>import("./4EJVPJ6S.js"),"closed,loading,modelId,variable:"],"arcgis-language-api-panel":[()=>import("./XICATE5G.js"),"apiLibrary:,closed,hideDocumentationActions,languageId,loading"],"arcgis-sql-expression-editor":[()=>import("./SKB3B7IU.js"),"hideSideBar,profile:,script;setFocus"],"arcgis-sql-expression-fields":[()=>import("./SRA5XA6E.js"),"loading,modelId"]});i({resourcesUrl:import.meta.url});var t=new CSSStyleSheet;t.replaceSync("@layer{:not([hydrated]):is(arcgis-arcade-editor,arcgis-code-editor,arcgis-code-editor-shell,arcgis-code-viewer,arcgis-sql-expression-editor){visibility:hidden}}");document.adoptedStyleSheets=[...document.adoptedStyleSheets,t];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,s)
|
|
@@ -14,7 +14,7 @@ import { b as n } from "./arcade-defaults.js";
|
|
|
14
14
|
import { a as h } from "./arcade-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.123 */
|
|
18
18
|
const k = ["arcade", "arcgis-sql-expression"], i = /* @__PURE__ */ new Set(), g = /* @__PURE__ */ new Map();
|
|
19
19
|
function c(e) {
|
|
20
20
|
let r = g.get(e);
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { i as y, b as x, a as b, c as D, d as F, e as S, f as M, m as v, L as A, E as L } from "./language-defaults-base.js";
|
|
2
2
|
import { supportedLocales as k, fetchT9nStringsBundle as E } from "@arcgis/toolkit/intl";
|
|
3
3
|
import { g as m } from "./runtime.js";
|
|
4
|
-
import { CompletionItemKind as
|
|
4
|
+
import { CompletionItemKind as w, InsertTextFormat as u, InsertTextMode as p } from "vscode-languageserver-types";
|
|
5
5
|
import { getDeclaredPixelMembers as I } from "@arcgis/core/applications/Components/arcadeEditorUtils.js";
|
|
6
6
|
import "@arcgis/toolkit/type";
|
|
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.123 */
|
|
10
10
|
async function C(e) {
|
|
11
|
-
const { apiVersion: i, bundles: t, hiddenApiItems: n } = e.toEditorProfileDefinition(), r = await
|
|
11
|
+
const { apiVersion: i, bundles: t, hiddenApiItems: n } = e.toEditorProfileDefinition(), r = await g(e.dictionaryVariables);
|
|
12
12
|
return { apiVersion: i, bundles: t, variables: r, hiddenApiItems: n?.map((s) => s.toLowerCase()) };
|
|
13
13
|
}
|
|
14
|
-
async function
|
|
14
|
+
async function g(e, i = w.Variable) {
|
|
15
15
|
return await Promise.all(
|
|
16
16
|
e.map(async (t) => {
|
|
17
17
|
switch (t.type) {
|
|
@@ -106,7 +106,7 @@ ${c}`), o;
|
|
|
106
106
|
name: t,
|
|
107
107
|
description: r,
|
|
108
108
|
type: "dictionary",
|
|
109
|
-
properties: await
|
|
109
|
+
properties: await g(n, w.Field),
|
|
110
110
|
completion: {
|
|
111
111
|
label: t,
|
|
112
112
|
detail: t,
|
|
@@ -211,7 +211,6 @@ const J = [
|
|
|
211
211
|
"feature",
|
|
212
212
|
"geojson",
|
|
213
213
|
"knowledge-graph-sublayer",
|
|
214
|
-
"ogc-feature",
|
|
215
214
|
"oriented-imagery",
|
|
216
215
|
"subtype-group",
|
|
217
216
|
"subtype-sublayer",
|
|
@@ -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/5.0/esri/copyright.txt for details.
|
|
4
|
-
v5.0.0-next.
|
|
4
|
+
v5.0.0-next.123 */
|
|
5
5
|
const O = "https://developers.arcgis.com/arcade/", P = 100, A = 100;
|
|
6
6
|
function g(t) {
|
|
7
7
|
return !!t && typeof t == "object" && "declaredRootClass" in t && typeof t.declaredRootClass == "string" && t.declaredRootClass === "esri.arcade.featureset.support.FeatureSet";
|
|
@@ -14,7 +14,7 @@ import { rethrowError as f } from "@arcgis/toolkit/log";
|
|
|
14
14
|
import { Deferred as b } from "@arcgis/toolkit/promise";
|
|
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.123 */
|
|
18
18
|
const S = [
|
|
19
19
|
"<=",
|
|
20
20
|
">=",
|
|
@@ -9,7 +9,7 @@ import "monaco-editor/esm/vs/editor/browser/editorDom.js";
|
|
|
9
9
|
import "monaco-editor/esm/vs/editor/browser/controller/mouseTarget.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.123 */
|
|
13
13
|
function g() {
|
|
14
14
|
return !!window.MonacoEnvironment?.getWorker;
|
|
15
15
|
}
|
package/dist/chunks/colorize.js
CHANGED
|
@@ -4,7 +4,7 @@ import { IStandaloneThemeService as n } from "monaco-editor/esm/vs/editor/standa
|
|
|
4
4
|
import { generateTokensCSSForColorMap as a } 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/5.0/esri/copyright.txt for details.
|
|
7
|
-
v5.0.0-next.
|
|
7
|
+
v5.0.0-next.123 */
|
|
8
8
|
async function c(e, o) {
|
|
9
9
|
return await (await i()).colorize(e, o, { tabSize: 2 });
|
|
10
10
|
}
|
package/dist/chunks/fields.js
CHANGED
|
@@ -17,7 +17,7 @@ import { filterApiLibraryForContext as ye } from "@arcgis/languages-api-utils";
|
|
|
17
17
|
import { Emitter as E, Uri as j } from "monaco-editor";
|
|
18
18
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
19
19
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
20
|
-
v5.0.0-next.
|
|
20
|
+
v5.0.0-next.123 */
|
|
21
21
|
function q(t) {
|
|
22
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";
|
|
23
23
|
}
|
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.123 */
|
|
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.123 */
|
|
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.123 */
|
|
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.123 */
|
|
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.123 */
|
|
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.123 */
|
|
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.123 */
|
|
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.123 */
|
|
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.123 */
|
|
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.123 */
|
|
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.123 */
|
|
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.123 */
|
|
13
13
|
function v(o) {
|
|
14
14
|
return !Array.isArray(o) || !o.length ? !1 : Array.isArray(o[0].suggestions);
|
|
15
15
|
}
|
|
@@ -53,7 +53,6 @@ export declare class ArcgisCodeEditor extends LitElement {
|
|
|
53
53
|
*
|
|
54
54
|
* @param text
|
|
55
55
|
* @param text - The string snippet to insert
|
|
56
|
-
* @returns
|
|
57
56
|
*/
|
|
58
57
|
insertSnippet(text: string | null | undefined): Promise<void>;
|
|
59
58
|
/**
|
|
@@ -61,14 +60,9 @@ export declare class ArcgisCodeEditor extends LitElement {
|
|
|
61
60
|
*
|
|
62
61
|
* @param text
|
|
63
62
|
* @param text - The string to insert
|
|
64
|
-
* @returns
|
|
65
63
|
*/
|
|
66
64
|
insertText(text: string | null | undefined): Promise<void>;
|
|
67
|
-
/**
|
|
68
|
-
* Sets the focus on the editor.
|
|
69
|
-
*
|
|
70
|
-
* @returns
|
|
71
|
-
*/
|
|
65
|
+
/** Sets the focus on the editor. */
|
|
72
66
|
setFocus(): Promise<void>;
|
|
73
67
|
/**
|
|
74
68
|
* @deprecated **Deprecated** since 4.30. Use `value` property instead.
|
|
@@ -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.123 */
|
|
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.123 */
|
|
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.123 */
|
|
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.123 */
|
|
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.123 */
|
|
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.123 */
|
|
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.123 */
|
|
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
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
|
-
"timestamp": "2026-01-
|
|
2
|
+
"timestamp": "2026-01-13T05:10:26",
|
|
3
3
|
"compiler": {
|
|
4
4
|
"name": "@arcgis/lumina-compiler",
|
|
5
|
-
"version": "5.0.0-next.
|
|
5
|
+
"version": "5.0.0-next.123",
|
|
6
6
|
"typescriptVersion": "5.9.3"
|
|
7
7
|
},
|
|
8
8
|
"schemaVersion": "2.1.0",
|
|
@@ -763,9 +763,6 @@
|
|
|
763
763
|
{
|
|
764
764
|
"name": "param",
|
|
765
765
|
"text": "text - The string snippet to insert"
|
|
766
|
-
},
|
|
767
|
-
{
|
|
768
|
-
"name": "returns"
|
|
769
766
|
}
|
|
770
767
|
],
|
|
771
768
|
"parameters": [
|
|
@@ -811,9 +808,6 @@
|
|
|
811
808
|
{
|
|
812
809
|
"name": "param",
|
|
813
810
|
"text": "text - The string to insert"
|
|
814
|
-
},
|
|
815
|
-
{
|
|
816
|
-
"name": "returns"
|
|
817
811
|
}
|
|
818
812
|
],
|
|
819
813
|
"parameters": [
|
|
@@ -855,11 +849,6 @@
|
|
|
855
849
|
"kind": "method",
|
|
856
850
|
"name": "setFocus",
|
|
857
851
|
"description": "Sets the focus on the editor.",
|
|
858
|
-
"docsTags": [
|
|
859
|
-
{
|
|
860
|
-
"name": "returns"
|
|
861
|
-
}
|
|
862
|
-
],
|
|
863
852
|
"return": {
|
|
864
853
|
"type": {
|
|
865
854
|
"text": "Promise<void>",
|
package/dist/docs/docs.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
|
-
"timestamp": "2026-01-
|
|
2
|
+
"timestamp": "2026-01-13T05:10:26",
|
|
3
3
|
"compiler": {
|
|
4
4
|
"name": "@arcgis/lumina-compiler",
|
|
5
|
-
"version": "5.0.0-next.
|
|
5
|
+
"version": "5.0.0-next.123",
|
|
6
6
|
"typescriptVersion": "5.9.3"
|
|
7
7
|
},
|
|
8
8
|
"components": [
|
|
@@ -800,9 +800,6 @@
|
|
|
800
800
|
{
|
|
801
801
|
"name": "param",
|
|
802
802
|
"text": "text - The string snippet to insert"
|
|
803
|
-
},
|
|
804
|
-
{
|
|
805
|
-
"name": "returns"
|
|
806
803
|
}
|
|
807
804
|
]
|
|
808
805
|
},
|
|
@@ -843,9 +840,6 @@
|
|
|
843
840
|
{
|
|
844
841
|
"name": "param",
|
|
845
842
|
"text": "text - The string to insert"
|
|
846
|
-
},
|
|
847
|
-
{
|
|
848
|
-
"name": "returns"
|
|
849
843
|
}
|
|
850
844
|
]
|
|
851
845
|
},
|
|
@@ -870,11 +864,7 @@
|
|
|
870
864
|
"signature": "setFocus(): Promise<void>",
|
|
871
865
|
"parameters": [],
|
|
872
866
|
"docs": "Sets the focus on the editor.",
|
|
873
|
-
"docsTags": [
|
|
874
|
-
{
|
|
875
|
-
"name": "returns"
|
|
876
|
-
}
|
|
877
|
-
]
|
|
867
|
+
"docsTags": []
|
|
878
868
|
},
|
|
879
869
|
{
|
|
880
870
|
"name": "setValue",
|
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.123",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
package/dist/index.d.ts
CHANGED
|
@@ -9,10 +9,15 @@ import type { ArcgisSqlExpressionEditor } from "./components/arcgis-sql-expressi
|
|
|
9
9
|
* of your package
|
|
10
10
|
*/
|
|
11
11
|
export { getAssetPath, setAssetPath } from './runtime';
|
|
12
|
+
/** @public */
|
|
12
13
|
export { arcade } from './utils/arcade-monaco/arcade-defaults';
|
|
14
|
+
/** @public */
|
|
13
15
|
export { sqlExpression } from './utils/sql-expr-monaco/sql-expr-defaults';
|
|
16
|
+
/** @public */
|
|
14
17
|
export type { Diagnostic } from '@arcgis/arcade-languageservice';
|
|
18
|
+
/** @public */
|
|
15
19
|
export type * from './utils/index';
|
|
20
|
+
/** @public */
|
|
16
21
|
export type * from './utils/profile/types';
|
|
17
22
|
|
|
18
23
|
|
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import { a as o } from "./chunks/arcade-defaults.js";
|
|
|
3
3
|
import { s as x } 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.123 */
|
|
7
7
|
export {
|
|
8
8
|
o as arcade,
|
|
9
9
|
e as getAssetPath,
|
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.123 */
|
|
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"],
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -2,6 +2,18 @@ import { IRange, Position, languages } from 'monaco-editor';
|
|
|
2
2
|
import { ApiDatabase, ApiVariable } from '@arcgis/languages-api-utils';
|
|
3
3
|
import { ICompletionContext } from './types';
|
|
4
4
|
import { SQLNode } from '@arcgis/core/core/sql/types';
|
|
5
|
+
interface SqlExpressionGetCompletionsOptions {
|
|
6
|
+
/** The parameters for the completion. */
|
|
7
|
+
range: IRange;
|
|
8
|
+
/** The content of the model. */
|
|
9
|
+
modelContent: string;
|
|
10
|
+
/** The current position of the cursor in the model. */
|
|
11
|
+
position: Position;
|
|
12
|
+
/** The completion context. */
|
|
13
|
+
completionContext?: ICompletionContext;
|
|
14
|
+
/** Whether to terminate the completion when it fails to parse. */
|
|
15
|
+
terminateOnError?: boolean;
|
|
16
|
+
}
|
|
5
17
|
/**
|
|
6
18
|
* Class used for sql expression completion
|
|
7
19
|
*/
|
|
@@ -11,21 +23,8 @@ export declare class SqlExpressionCompletion {
|
|
|
11
23
|
constructor(sdkLibrary: ApiDatabase, fields: ApiVariable[]);
|
|
12
24
|
/**
|
|
13
25
|
* gets completions for the sql expression.
|
|
14
|
-
* @param {Object} params - The parameters for the completion.
|
|
15
|
-
* @param {IRange} params.range - The range of the current position.
|
|
16
|
-
* @param {string} params.modelContent - The content of the model.
|
|
17
|
-
* @param {Position} params.position - The current position of the cursor in the model.
|
|
18
|
-
* @param {ICompletionContext} params.completionContext - The completion context.
|
|
19
|
-
* @param {boolean} params.terminateOnError - Whether to terminate the completion when it fails to parse.
|
|
20
|
-
* @returns {Promise<languages.CompletionItem[]>} The completion items.
|
|
21
26
|
*/
|
|
22
|
-
getCompletions({ range, modelContent, position, completionContext, terminateOnError, }:
|
|
23
|
-
range: IRange;
|
|
24
|
-
modelContent: string;
|
|
25
|
-
position: Position;
|
|
26
|
-
completionContext?: ICompletionContext;
|
|
27
|
-
terminateOnError?: boolean;
|
|
28
|
-
}): Promise<languages.CompletionItem[]>;
|
|
27
|
+
getCompletions({ range, modelContent, position, completionContext, terminateOnError, }: SqlExpressionGetCompletionsOptions): Promise<languages.CompletionItem[]>;
|
|
29
28
|
/**
|
|
30
29
|
* traverses the tree to find the node that contains the current position
|
|
31
30
|
* @param node The current node to traverse
|
|
@@ -72,3 +71,4 @@ export declare class SqlExpressionCompletion {
|
|
|
72
71
|
private _traverseChildren;
|
|
73
72
|
private _sliceToPosition;
|
|
74
73
|
}
|
|
74
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcgis/coding-components",
|
|
3
|
-
"version": "5.0.0-next.
|
|
3
|
+
"version": "5.0.0-next.123",
|
|
4
4
|
"description": "Contains components for editing code in different languages. The currently supported languages are html, css, json, TypeScript, JavaScript, and Arcade.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ArcGIS",
|
|
@@ -42,10 +42,10 @@
|
|
|
42
42
|
],
|
|
43
43
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@arcgis/arcade-languageservice": "5.0.0-next.
|
|
46
|
-
"@arcgis/languages-api-utils": "5.0.0-next.
|
|
47
|
-
"@arcgis/lumina": "5.0.0-next.
|
|
48
|
-
"@arcgis/toolkit": "5.0.0-next.
|
|
45
|
+
"@arcgis/arcade-languageservice": "5.0.0-next.123",
|
|
46
|
+
"@arcgis/languages-api-utils": "5.0.0-next.123",
|
|
47
|
+
"@arcgis/lumina": "5.0.0-next.123",
|
|
48
|
+
"@arcgis/toolkit": "5.0.0-next.123",
|
|
49
49
|
"@lit/task": "^1.0.3",
|
|
50
50
|
"lit": "^3.3.0",
|
|
51
51
|
"monaco-editor": "^0.52.0",
|
package/dist/cdn/56ORFLIK.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
|
-
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
3
|
-
v5.0.0-next.121 */
|
|
4
|
-
import a from"./6L7MMQRC.js";import{b as f,c,d as p}from"./KZ4B2WAC.js";import{f as h,g}from"./SOIPKOZX.js";import{K as u}from"./T5YAAEXT.js";export default $arcgis.t(([{getDeclaredPixelMembers:E},{b:x,c:v,d:T,e:M,f:F,g:y,h:k,i:P,j:A,k:I}])=>{async function j(e){let{apiVersion:n,bundles:t,hiddenApiItems:i}=e.toEditorProfileDefinition(),a=await V(e.dictionaryVariables);return{apiVersion:n,bundles:t,variables:a,hiddenApiItems:i?.map(r=>r.toLowerCase())}}async function V(e,n=f.Variable){return await Promise.all(e.map(async t=>{switch(t.type){case"dictionary":return await _(t,n);case"pixel":return await K(t,n);case"voxel":case"feature":return await $(t,n);default:return S(t,n)}}))}function S(e,n){let{name:t,type:i}=e,a=e.getDescription();return{name:t,description:a,type:i,completion:{label:t,detail:t,insertText:t,insertTextMode:p.asIs,insertTextFormat:c.PlainText,kind:n,documentation:{kind:"markdown",value:a}}}}async function $(e,n){let t=await e.loadSource(),{name:i}=e,a=e.getDescription(),r={label:i,detail:i,insertText:i,insertTextMode:p.asIs,insertTextFormat:c.PlainText,kind:n},o={name:i,description:a,type:"dictionary",properties:[],completion:r};if(!t)return o;let[s,l]=k(t.fields,a,!0);return o.properties=s,r.documentation={kind:"markdown",value:l},o}async function K(e,n){let t=await e.loadSource(),i=e.toProfileVariableDefinition();if(i.type!=="pixel")throw new Error("Incorrect definition passed to pixel variable");let{name:a}=e,r=e.getDescription(),o={label:a,detail:a,insertText:a,insertTextMode:p.asIs,insertTextFormat:c.PlainText,kind:n},s={name:a,description:r,type:"dictionary",properties:[],completion:o};if(!t||!i.definition)return s;let l=await E(t),[L,C]=P(l,r);return s.properties=L,o.documentation={kind:"markdown",value:C},s}async function _(e,n){let{name:t,dictionaryVariables:i}=e,a=e.getDescription(),r=i.reduce((o,s)=>{o!==""&&(o+=`
|
|
5
|
-
|
|
6
|
-
`),o+=`**${s.name}**
|
|
7
|
-
${s.type}`;let l=s.getDescription();return l&&(o+=`
|
|
8
|
-
${l}`),o},a);return{name:t,description:a,type:"dictionary",properties:await V(i,f.Field),completion:{label:t,detail:t,insertText:t,insertTextMode:p.asIs,insertTextFormat:c.PlainText,kind:n,documentation:{kind:"markdown",value:r}}}}async function m(e="en"){let n=D.get(e);if(n)return n;if(!h.has(e))return await m("en");try{let t=await fetch(u(`./assets/arcade-language/profiles/arcade-profiles.t9n.${e}.json`));return t.ok?B(e,await t.json()):e==="en"?null:await m("en")}catch{return null}}var D=new Map;function B(e,n){let t=new Map;return n.forEach(i=>{t.set(i.id,i)}),D.set(e,t),t}async function q(e,n="en"){return(await m(n))?.get(e)??null}function z(e){return!!e&&typeof e=="object"&&"additionalVariables"in e&&Array.isArray(e.additionalVariables)}function G(e){return e?.map(b)}function b(e){switch(e.type){case"dictionary":return{...e,type:e.type,properties:G(e.properties)};case"array":return{...e,type:e.type,elementType:{type:"number",name:"number"}};default:return{...e,type:e.type}}}async function H(e,n="en"){if(!y(e))return;let t=await q(e.id,n);if(!t)return;let i={bundles:[...t.bundles],variables:[],hiddenApiItems:e.hiddenApiItems?.map(a=>a.toLowerCase())};return t.variables.forEach(a=>{if(e.disabledVariables?.includes(a.name))return;let r=e.definitions[a.name];switch(a.type){case"dictionary":return i.variables.push(b({...a,type:a.type,properties:Array.isArray(r)?[...r]:a.properties}));case"feature":return x(r)?i.variables.push({...a,type:"feature",definition:r}):void 0;case"pixel":return T(r)?i.variables.push({...a,type:a.type,definition:r}):void 0;case"voxel":return v(r)?i.variables.push({...a,type:a.type,definition:r}):void 0;case"featureSet":return M(r)?i.variables.push({...a,type:a.type,definition:r}):void 0;case"featureSetCollection":return F(r)?i.variables.push({...a,type:a.type,definition:r}):void 0;default:return i.variables.push(b(a))}}),z(e)&&i.variables.push(...e.additionalVariables??[]),i}var J=["catalog-footprint","catalog","csv","feature","geojson","knowledge-graph-sublayer","ogc-feature","oriented-imagery","subtype-group","subtype-sublayer","wfs"];function N(e){return!!e&&typeof e=="object"&&"type"in e&&typeof e.type=="string"&&J.includes(e.type)}var O={filterFsCollectionLayersFromMap:e=>N(e)},w=class extends I{constructor(){super("arcade",{apiPath:"./assets/arcade-language/api",apiPrefix:"arcade-api.t9n."})}async setProfileForModel(n,t,i={locale:"en"}){y(t)&&(t=await H(t,i.locale));let a=await g(i.locale,u("./assets/editor-profile/t9n"),"messages.");if(!a)throw new Error(`Failed to load the language bundle for ${i.locale}`);this.disposeForModel(n);let r=this._getApiKey(n),o=new A(t,a,i.locale,O);this._modelToProfileMap.set(r,o);let s=await j(o);this.updateApiContextForModel(n,{locale:i.locale,profile:s,snippets:i.snippets})}},d=new w,Z={setProfileForModel:d.setProfileForModel.bind(d),getApiLibraryForModel:d.getApiLibraryForModel.bind(d)};return d},"applications/Components/arcadeEditorUtils",a)
|