@arcgis/coding-components 4.33.0-next.133 → 4.33.0-next.135
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/cdn/{OKF2X6X4.js → 2LBYKB5U.js} +2 -2
- package/dist/cdn/{B5UUPCSO.js → 3D5A3VG5.js} +2 -2
- package/dist/cdn/{MTFSTXZ3.js → 3OPUE72X.js} +1 -1
- package/dist/cdn/{OSRMDNHJ.js → 4EUVWVWK.js} +2 -2
- package/dist/cdn/{37LMV2F6.js → 4JIQPCP4.js} +2 -2
- package/dist/cdn/{HPFZSILB.js → 4O3KBMFX.js} +2 -2
- package/dist/cdn/{GZ6XE2PV.js → 575CH56D.js} +2 -2
- package/dist/cdn/{X6VHLEBT.js → 7ITL4SSJ.js} +2 -2
- package/dist/cdn/{KB2TWHNK.js → B3QZIQPQ.js} +2 -2
- package/dist/cdn/{FNVQ76JR.js → BD7LC3FB.js} +2 -2
- package/dist/cdn/{DMT7Y64Y.js → BFBYCIPU.js} +2 -2
- package/dist/cdn/{O6GMNMHH.js → DGPBCXCC.js} +2 -2
- package/dist/cdn/{WZEZGXA4.js → EOPFX3U5.js} +1 -1
- package/dist/cdn/{TNVCNIRF.js → EWRAF4M5.js} +1 -1
- package/dist/cdn/{NRCHEOWP.js → F2Z66ESM.js} +2 -2
- package/dist/cdn/FJM6O2D3.js +4 -0
- package/dist/cdn/{SRKRORVJ.js → FMKR5VUA.js} +2 -2
- package/dist/cdn/{L655CH4V.js → FWJ5ECRH.js} +2 -2
- package/dist/cdn/{HZ6XAE5L.js → IJ53VEVY.js} +2 -2
- package/dist/cdn/{B5W22TNR.js → IMSSOZ6I.js} +2 -2
- package/dist/cdn/{34HGFCDR.js → JF2L6VXA.js} +2 -2
- package/dist/cdn/{JKL7TZAI.js → K2B7MCTD.js} +2 -2
- package/dist/cdn/{JBFAXMIR.js → LWTI3HYN.js} +2 -2
- package/dist/cdn/{J4RB32SI.js → N6OWZKMJ.js} +2 -2
- package/dist/cdn/{QZJIUT6H.js → PGN3STJG.js} +2 -2
- package/dist/cdn/{SZWUI265.js → PIRLNWDH.js} +2 -2
- package/dist/cdn/{IS6XQYSR.js → Q3S5CDJR.js} +2 -2
- package/dist/cdn/{KDCNQN2R.js → QKEHPB3S.js} +2 -2
- package/dist/cdn/{BLP5XOHO.js → R7YVFJVL.js} +2 -2
- package/dist/cdn/{3G2NETHO.js → RSADQRAV.js} +2 -2
- package/dist/cdn/{I72DMQWM.js → RXLTXYF4.js} +2 -2
- package/dist/cdn/{PXCWQUZ7.js → SQLH7RMQ.js} +2 -2
- package/dist/cdn/{U6KX63XE.js → TAILIDKO.js} +2 -2
- package/dist/cdn/{VR6HVTPQ.js → U4GZO4QQ.js} +2 -2
- package/dist/cdn/{JNGUR6G2.js → V5DPSOKQ.js} +3 -3
- package/dist/cdn/{5GB2ZCSK.js → XWYK5WRK.js} +2 -2
- package/dist/cdn/{EP5CI2M6.js → Y65UOXL6.js} +2 -2
- package/dist/cdn/{AKZV2TGU.js → Z2AGLSDX.js} +3 -3
- package/dist/cdn/{LAM62GC5.js → ZTTV7ZC4.js} +2 -2
- package/dist/cdn/assets/code-editor/sql-expr.worker.js +15586 -7255
- 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/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/runtime.js +1 -1
- package/dist/chunks/setup-monaco.js +28 -85
- package/dist/chunks/sql-expr-contribution.js +1 -1
- package/dist/chunks/sql-expr-defaults.js +1 -1
- package/dist/chunks/sql-expr-mode.js +1 -1
- package/dist/chunks/useT9n.js +1 -1
- package/dist/components/arcgis-arcade-coding-assistant/customElement.js +1 -1
- package/dist/components/arcgis-arcade-editor/customElement.js +1 -1
- package/dist/components/arcgis-arcade-results/customElement.js +1 -1
- package/dist/components/arcgis-arcade-suggestions/customElement.js +1 -1
- package/dist/components/arcgis-code-editor/customElement.js +1 -1
- package/dist/components/arcgis-editor-variables/customElement.js +1 -1
- package/dist/components/arcgis-language-api-panel/customElement.js +1 -1
- package/dist/components/arcgis-sql-expression-editor/customElement.js +1 -1
- package/dist/components/arcgis-sql-expression-fields/customElement.js +1 -1
- package/dist/docs/api.json +2 -2
- package/dist/docs/docs.json +2 -2
- package/dist/docs/web-types.json +1 -1
- package/dist/index.js +1 -1
- package/dist/loader.js +1 -1
- package/dist/utils/setup-monaco.d.ts +13 -0
- package/package.json +6 -6
- package/dist/cdn/JEAZSNJ5.js +0 -4
- package/dist/cdn/assets/code-editor/WhereClauseCache-DopjaAzK.js +0 -7466
- package/dist/cdn/assets/code-editor/pe-wasm-BZuydchS.js +0 -883
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.33/esri/copyright.txt for details.
|
|
3
|
-
v4.33.0-next.
|
|
4
|
-
import{B as i,o as e}from"./
|
|
3
|
+
v4.33.0-next.135 */
|
|
4
|
+
import{B as i,o as e}from"./U4GZO4QQ.js";import"./RXLTXYF4.js";import"./3OPUE72X.js";var o=e(i,{"arcgis-arcade-coding-assistant":[()=>import("./B3QZIQPQ.js")],"arcgis-arcade-editor":[()=>import("./BD7LC3FB.js"),"customPanels:,editorInstance:,editorOptions:,hideDocumentationActions,hideSideBar,openedSidePanel:,profile:,script,sideActionBarExpanded,snippets:,suggestions:,testData:;getEditorInstance,getScript,getTestResult,setFocus"],"arcgis-arcade-results":[()=>import("./N6OWZKMJ.js"),"consoleLogs:,loading,openedResultPanel,result:"],"arcgis-arcade-suggestions":[()=>import("./BFBYCIPU.js"),"closed,suggestions:"],"arcgis-code-editor":[()=>import("./QKEHPB3S.js"),"editorInstance:,editorOptions:,language,modelId,value;getEditorInstance,getValue,insertSnippet,insertText,setFocus,setValue"],"arcgis-editor-variables":[()=>import("./4EUVWVWK.js"),"closed,loading,modelId,variable:"],"arcgis-language-api-panel":[()=>import("./IJ53VEVY.js"),"apiLibrary:,closed,hideDocumentationActions,languageId,loading"],"arcgis-sql-expression-editor":[()=>import("./575CH56D.js"),"hideSideBar,profile:,script"],"arcgis-sql-expression-fields":[()=>import("./K2B7MCTD.js"),"loading,modelId"]});o({resourcesUrl:import.meta.url});var r=new CSSStyleSheet;r.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,r];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},"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.33/esri/copyright.txt for details.
|
|
7
|
-
v4.33.0-next.
|
|
7
|
+
v4.33.0-next.135 */
|
|
8
8
|
async function S(e) {
|
|
9
9
|
const { apiVersion: i, bundles: t, hiddenApiItems: n } = e.toEditorProfileDefinition(), r = await h(e.dictionaryVariables);
|
|
10
10
|
return { apiVersion: i, bundles: t, variables: r, hiddenApiItems: n?.map((s) => s.toLowerCase()) };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { importArcade as C } from "@arcgis/core-adapter";
|
|
2
2
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
4
|
-
v4.33.0-next.
|
|
4
|
+
v4.33.0-next.135 */
|
|
5
5
|
const G = "https://developers.arcgis.com/arcade/", O = 100, A = 100;
|
|
6
6
|
function u(t) {
|
|
7
7
|
return !!t && typeof t == "object" && "declaredRootClass" in t && typeof t.declaredRootClass == "string" && t.declaredRootClass === "esri.arcade.featureset.support.FeatureSet";
|
|
@@ -8,7 +8,7 @@ import { InsertTextFormat as y, CompletionItemKind as o, DiagnosticSeverity as m
|
|
|
8
8
|
import { debounce as F, Deferred as _ } from "@arcgis/components-utils";
|
|
9
9
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
10
10
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
11
|
-
v4.33.0-next.
|
|
11
|
+
v4.33.0-next.135 */
|
|
12
12
|
const S = [
|
|
13
13
|
"<=",
|
|
14
14
|
">=",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
3
|
-
v4.33.0-next.
|
|
3
|
+
v4.33.0-next.135 */
|
|
4
4
|
async function a() {
|
|
5
5
|
return (await e()).getArcadeDiagnosticService();
|
|
6
6
|
}
|
package/dist/chunks/fields.js
CHANGED
|
@@ -8,7 +8,7 @@ import { filterApiLibraryForContext as le } from "@arcgis/languages-api-utils";
|
|
|
8
8
|
import { Emitter as x, Uri as $ } from "monaco-editor";
|
|
9
9
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
10
10
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
11
|
-
v4.33.0-next.
|
|
11
|
+
v4.33.0-next.135 */
|
|
12
12
|
function B(t) {
|
|
13
13
|
return !!t && typeof t == "object" && "declaredClass" in t && typeof t.declaredClass == "string" && t.declaredClass.startsWith("esri.layers.") && g(t) && "queryFeatures" in t && typeof t.queryFeatures == "function";
|
|
14
14
|
}
|
package/dist/chunks/markdown.js
CHANGED
|
@@ -4,7 +4,7 @@ import { IStandaloneThemeService as G } from "monaco-editor/esm/vs/editor/standa
|
|
|
4
4
|
import { generateTokensCSSForColorMap as te } from "monaco-editor/esm/vs/editor/common/languages/supports/tokenization.js";
|
|
5
5
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
6
6
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
7
|
-
v4.33.0-next.
|
|
7
|
+
v4.33.0-next.135 */
|
|
8
8
|
async function ne(l, t) {
|
|
9
9
|
return await (await ee()).colorize(l, t, { tabSize: 2 });
|
|
10
10
|
}
|
|
@@ -5,7 +5,7 @@ import "monaco-editor/esm/vs/editor/standalone/common/standaloneTheme.js";
|
|
|
5
5
|
import "monaco-editor/esm/vs/editor/common/languages/supports/tokenization.js";
|
|
6
6
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
7
7
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
8
|
-
v4.33.0-next.
|
|
8
|
+
v4.33.0-next.135 */
|
|
9
9
|
function g(r, t, n, m) {
|
|
10
10
|
if (!t)
|
|
11
11
|
return [];
|
package/dist/chunks/runtime.js
CHANGED
|
@@ -2,7 +2,7 @@ import { makeRuntime as e } from "@arcgis/lumina";
|
|
|
2
2
|
import { trackAccess as s, createObservable as a } from "@arcgis/core/applications/Components/reactiveUtils.js";
|
|
3
3
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
4
4
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
5
|
-
v4.33.0-next.
|
|
5
|
+
v4.33.0-next.135 */
|
|
6
6
|
const t = e({ defaultAssetPath: "https://jsdev.arcgis.com/next/coding-components/", hydratedAttribute: "hydrated" }), { customElement: c, getAssetPath: m, setAssetPath: n } = t;
|
|
7
7
|
t.t = s;
|
|
8
8
|
t.o = a;
|
|
@@ -1,42 +1,21 @@
|
|
|
1
|
-
import { importRequest as
|
|
2
|
-
import { isURL as l, hasSameOrigin as m } from "@arcgis/components-utils";
|
|
1
|
+
import { importRequest as i } from "@arcgis/core-adapter";
|
|
3
2
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
4
3
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
5
|
-
v4.33.0-next.
|
|
6
|
-
function
|
|
7
|
-
return new Worker(
|
|
8
|
-
"https://jsdev.arcgis.com/next/coding-components/cdn/assets/code-editor/arcade.worker.js",
|
|
9
|
-
{
|
|
10
|
-
type: "module",
|
|
11
|
-
name: e?.name
|
|
12
|
-
}
|
|
13
|
-
);
|
|
14
|
-
}
|
|
15
|
-
function u(e) {
|
|
16
|
-
return new Worker(
|
|
17
|
-
"https://jsdev.arcgis.com/next/coding-components/cdn/assets/code-editor/sql-expr.worker.js",
|
|
18
|
-
{
|
|
19
|
-
type: "module",
|
|
20
|
-
name: e?.name
|
|
21
|
-
}
|
|
22
|
-
);
|
|
23
|
-
}
|
|
24
|
-
function k() {
|
|
4
|
+
v4.33.0-next.135 */
|
|
5
|
+
function u() {
|
|
25
6
|
return !!window.MonacoEnvironment?.getWorkerUrl;
|
|
26
7
|
}
|
|
27
|
-
let
|
|
28
|
-
const
|
|
29
|
-
async function
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
const t = await (await p())(e, { responseType: "text" });
|
|
33
|
-
return new Worker(URL.createObjectURL(new Blob([t.data], { type: "text/javascript" })));
|
|
8
|
+
let n = "";
|
|
9
|
+
const p = /* @__PURE__ */ new Map();
|
|
10
|
+
async function l(t, r) {
|
|
11
|
+
const s = await (await i())(t, { responseType: "text" });
|
|
12
|
+
return new Worker(URL.createObjectURL(new Blob([s.data], { type: "text/javascript" })), { type: "module" });
|
|
34
13
|
}
|
|
35
|
-
function
|
|
36
|
-
if (
|
|
14
|
+
function k(t) {
|
|
15
|
+
if (u())
|
|
37
16
|
return;
|
|
38
|
-
|
|
39
|
-
const r = `${
|
|
17
|
+
n = t;
|
|
18
|
+
const r = `${n}/code-editor`, e = {
|
|
40
19
|
arcade: `${r}/arcade.worker.js`,
|
|
41
20
|
"arcgis-sql-expression": `${r}/sql-expr.worker.js`,
|
|
42
21
|
html: `${r}/html.worker.js`,
|
|
@@ -44,78 +23,42 @@ function x(e) {
|
|
|
44
23
|
typescript: `${r}/ts.worker.js`,
|
|
45
24
|
json: `${r}/json.worker.js`,
|
|
46
25
|
default: `${r}/editor.worker.js`
|
|
47
|
-
},
|
|
26
|
+
}, s = {
|
|
48
27
|
arcade: {
|
|
49
|
-
url:
|
|
50
|
-
localWorker: () => new w()
|
|
28
|
+
url: e.arcade
|
|
51
29
|
},
|
|
52
30
|
"arcgis-sql-expression": {
|
|
53
|
-
url:
|
|
54
|
-
localWorker: () => new u()
|
|
31
|
+
url: e["arcgis-sql-expression"]
|
|
55
32
|
},
|
|
56
33
|
html: {
|
|
57
|
-
url:
|
|
58
|
-
localWorker: () => new Worker(new URL(
|
|
59
|
-
/* @vite-ignore */
|
|
60
|
-
"https://jsdev.arcgis.com/next/coding-components/cdn/assets/code-editor/html.worker.js",
|
|
61
|
-
import.meta.url
|
|
62
|
-
), { type: "module" })
|
|
34
|
+
url: e.html
|
|
63
35
|
},
|
|
64
36
|
css: {
|
|
65
|
-
url:
|
|
66
|
-
localWorker: () => new Worker(new URL(
|
|
67
|
-
/* @vite-ignore */
|
|
68
|
-
"https://jsdev.arcgis.com/next/coding-components/cdn/assets/code-editor/css.worker.js",
|
|
69
|
-
import.meta.url
|
|
70
|
-
), { type: "module" })
|
|
37
|
+
url: e.css
|
|
71
38
|
},
|
|
72
39
|
typescript: {
|
|
73
|
-
url:
|
|
74
|
-
localWorker: () => new Worker(new URL(
|
|
75
|
-
/* @vite-ignore */
|
|
76
|
-
"https://jsdev.arcgis.com/next/coding-components/cdn/assets/code-editor/ts.worker.js",
|
|
77
|
-
import.meta.url
|
|
78
|
-
), {
|
|
79
|
-
type: "module"
|
|
80
|
-
})
|
|
40
|
+
url: e.typescript
|
|
81
41
|
},
|
|
82
42
|
javascript: {
|
|
83
|
-
url:
|
|
84
|
-
localWorker: () => new Worker(new URL(
|
|
85
|
-
/* @vite-ignore */
|
|
86
|
-
"https://jsdev.arcgis.com/next/coding-components/cdn/assets/code-editor/ts.worker.js",
|
|
87
|
-
import.meta.url
|
|
88
|
-
), {
|
|
89
|
-
type: "module"
|
|
90
|
-
})
|
|
43
|
+
url: e.typescript
|
|
91
44
|
},
|
|
92
45
|
json: {
|
|
93
|
-
url:
|
|
94
|
-
localWorker: () => new Worker(new URL(
|
|
95
|
-
/* @vite-ignore */
|
|
96
|
-
"https://jsdev.arcgis.com/next/coding-components/cdn/assets/code-editor/json.worker.js",
|
|
97
|
-
import.meta.url
|
|
98
|
-
), { type: "module" })
|
|
46
|
+
url: e.json
|
|
99
47
|
},
|
|
100
48
|
default: {
|
|
101
|
-
url:
|
|
102
|
-
localWorker: () => new Worker(new URL(
|
|
103
|
-
/* @vite-ignore */
|
|
104
|
-
"https://jsdev.arcgis.com/next/coding-components/cdn/assets/code-editor/editor.worker.js",
|
|
105
|
-
import.meta.url
|
|
106
|
-
), { type: "module" })
|
|
49
|
+
url: e.default
|
|
107
50
|
}
|
|
108
51
|
};
|
|
109
52
|
window.MonacoEnvironment = {
|
|
110
|
-
getWorker: async (
|
|
111
|
-
const
|
|
112
|
-
if (
|
|
113
|
-
return await a
|
|
114
|
-
const { url:
|
|
115
|
-
return await
|
|
53
|
+
getWorker: async (w, o) => {
|
|
54
|
+
const a = p.get(o);
|
|
55
|
+
if (a)
|
|
56
|
+
return await l(a);
|
|
57
|
+
const { url: c, localWorker: d } = s[o] || s.default;
|
|
58
|
+
return await l(c);
|
|
116
59
|
}
|
|
117
60
|
};
|
|
118
61
|
}
|
|
119
62
|
export {
|
|
120
|
-
|
|
63
|
+
k as s
|
|
121
64
|
};
|
|
@@ -8,7 +8,7 @@ import { g as c } from "./arcade-service-accessors.js";
|
|
|
8
8
|
import { a as n } from "./sql-expr-defaults.js";
|
|
9
9
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
10
10
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
11
|
-
v4.33.0-next.
|
|
11
|
+
v4.33.0-next.135 */
|
|
12
12
|
const s = /* @__PURE__ */ new Set();
|
|
13
13
|
function g(e, o) {
|
|
14
14
|
return () => {
|
|
@@ -4,7 +4,7 @@ import { fetchT9nStringsBundle as M } from "@arcgis/components-utils";
|
|
|
4
4
|
import { g as b } from "./runtime.js";
|
|
5
5
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
6
6
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
7
|
-
v4.33.0-next.
|
|
7
|
+
v4.33.0-next.135 */
|
|
8
8
|
const x = (r) => {
|
|
9
9
|
const e = r.variables[0], i = e && e.type === "featureSet" ? A(e) : void 0, { apiVersion: t, bundles: o, hiddenApiItems: s } = r.toEditorProfileDefinition();
|
|
10
10
|
return {
|
|
@@ -7,7 +7,7 @@ import { Deferred as _, debounce as N } from "@arcgis/components-utils";
|
|
|
7
7
|
import { a as d } from "./sql-expr-defaults.js";
|
|
8
8
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
9
9
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
10
|
-
v4.33.0-next.
|
|
10
|
+
v4.33.0-next.135 */
|
|
11
11
|
let h = new _();
|
|
12
12
|
class k {
|
|
13
13
|
constructor(e) {
|
package/dist/chunks/useT9n.js
CHANGED
|
@@ -2,7 +2,7 @@ import { makeT9nController as o } from "@arcgis/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.33/esri/copyright.txt for details.
|
|
5
|
-
v4.33.0-next.
|
|
5
|
+
v4.33.0-next.135 */
|
|
6
6
|
const s = o(t);
|
|
7
7
|
export {
|
|
8
8
|
s as u
|
|
@@ -5,7 +5,7 @@ import { css as e } from "@lit/reactive-element/css-tag.js";
|
|
|
5
5
|
import { u as o } from "../../chunks/useT9n.js";
|
|
6
6
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
7
7
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
8
|
-
v4.33.0-next.
|
|
8
|
+
v4.33.0-next.135 */
|
|
9
9
|
const a = e`:host{background-color:var(--calcite-color-foreground-1);calcite-flow{height:100%}}`;
|
|
10
10
|
class c extends r {
|
|
11
11
|
constructor() {
|
|
@@ -15,7 +15,7 @@ import { createRef as S, ref as A } from "lit-html/directives/ref.js";
|
|
|
15
15
|
import { css as y } from "@lit/reactive-element/css-tag.js";
|
|
16
16
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
17
17
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
18
|
-
v4.33.0-next.
|
|
18
|
+
v4.33.0-next.135 */
|
|
19
19
|
const D = (r) => {
|
|
20
20
|
if (!r.toString().includes("calcite-flow-item"))
|
|
21
21
|
throw new Error("Renderer must return a JSX node that starts with <calcite-flow-item>");
|
|
@@ -8,7 +8,7 @@ import { css as L } from "@lit/reactive-element/css-tag.js";
|
|
|
8
8
|
import { s as O } from "../../chunks/fields.js";
|
|
9
9
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
10
10
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
11
|
-
v4.33.0-next.
|
|
11
|
+
v4.33.0-next.135 */
|
|
12
12
|
const D = L`: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",
|
|
@@ -9,7 +9,7 @@ import { u as b } from "../../chunks/useT9n.js";
|
|
|
9
9
|
import { css as _ } from "@lit/reactive-element/css-tag.js";
|
|
10
10
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
11
11
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
12
|
-
v4.33.0-next.
|
|
12
|
+
v4.33.0-next.135 */
|
|
13
13
|
function v(o) {
|
|
14
14
|
return !Array.isArray(o) || !o.length ? !1 : Array.isArray(o[0].suggestions);
|
|
15
15
|
}
|
|
@@ -9,7 +9,7 @@ import { load as h } from "@arcgis/lumina/controllers";
|
|
|
9
9
|
import { Range as M, Uri as c, KeyMod as n, KeyCode as t } from "monaco-editor";
|
|
10
10
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
11
11
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
12
|
-
v4.33.0-next.
|
|
12
|
+
v4.33.0-next.135 */
|
|
13
13
|
const x = m`@layer{/*!-----------------------------------------------------------
|
|
14
14
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
15
15
|
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
|
@@ -7,7 +7,7 @@ import { u as f } from "../../chunks/useT9n.js";
|
|
|
7
7
|
import { css as u } from "@lit/reactive-element/css-tag.js";
|
|
8
8
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
9
9
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
10
|
-
v4.33.0-next.
|
|
10
|
+
v4.33.0-next.135 */
|
|
11
11
|
const m = u`: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 { css as v } from "@lit/reactive-element/css-tag.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.33/esri/copyright.txt for details.
|
|
13
|
-
v4.33.0-next.
|
|
13
|
+
v4.33.0-next.135 */
|
|
14
14
|
const y = v`: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 f {
|
|
16
16
|
constructor() {
|
|
@@ -8,7 +8,7 @@ import { createRef as p, ref as h } from "lit-html/directives/ref.js";
|
|
|
8
8
|
import { css as g } from "@lit/reactive-element/css-tag.js";
|
|
9
9
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
10
10
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
11
|
-
v4.33.0-next.
|
|
11
|
+
v4.33.0-next.135 */
|
|
12
12
|
const f = g`@layer{arcgis-sql-expression-editor{display:flex;flex-direction:column;position:relative;overflow:hidden;border:var(--arcgis-coding-components-border);box-sizing:border-box;background-color:var(--arcgis-coding-components-background-color);height:100%;.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);box-sizing:border-box}.border-inline-end{border-inline-end:var(--arcgis-coding-components-border);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);calcite-flow{height:100%}}}}`;
|
|
13
13
|
class m extends r {
|
|
14
14
|
constructor() {
|
|
@@ -7,7 +7,7 @@ import { u as m } from "../../chunks/useT9n.js";
|
|
|
7
7
|
import { css as d } from "@lit/reactive-element/css-tag.js";
|
|
8
8
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
9
9
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
10
|
-
v4.33.0-next.
|
|
10
|
+
v4.33.0-next.135 */
|
|
11
11
|
const h = d`:host{calcite-flow{height:100%}calcite-list-item-group{background-color:var(--calcite-color-foreground-2)}}`;
|
|
12
12
|
class f extends r {
|
|
13
13
|
constructor() {
|
package/dist/docs/api.json
CHANGED
package/dist/docs/docs.json
CHANGED
package/dist/docs/web-types.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
|
|
3
3
|
"name": "@arcgis/coding-components",
|
|
4
|
-
"version": "4.33.0-next.
|
|
4
|
+
"version": "4.33.0-next.135",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import { a as c } from "./chunks/arcade-defaults.js";
|
|
|
3
3
|
import { s as p } from "./chunks/sql-expr-defaults.js";
|
|
4
4
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
5
5
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
6
|
-
v4.33.0-next.
|
|
6
|
+
v4.33.0-next.135 */
|
|
7
7
|
const a = s, r = t;
|
|
8
8
|
export {
|
|
9
9
|
c as arcade,
|
package/dist/loader.js
CHANGED
|
@@ -2,7 +2,7 @@ import { r as e } from "./chunks/runtime.js";
|
|
|
2
2
|
import { makeDefineCustomElements as i } from "@arcgis/lumina";
|
|
3
3
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
4
4
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
5
|
-
v4.33.0-next.
|
|
5
|
+
v4.33.0-next.135 */
|
|
6
6
|
const o = i(e, {
|
|
7
7
|
"arcgis-arcade-coding-assistant": [() => import("./components/arcgis-arcade-coding-assistant/customElement.js")],
|
|
8
8
|
"arcgis-arcade-editor": [() => import("./components/arcgis-arcade-editor/customElement.js"), "customPanels:,editorInstance:,editorOptions:,hideDocumentationActions,hideSideBar,openedSidePanel:,profile:,script,sideActionBarExpanded,snippets:,suggestions:,testData:;getEditorInstance,getScript,getTestResult,setFocus"],
|
|
@@ -1,3 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The import.meta.env.DEV checks are used to include certain code only in development builds.
|
|
3
|
+
* Vite (and other modern bundlers) statically replace import.meta.env.DEV with true (development) or false (production).
|
|
4
|
+
* This allows bundlers to remove development-only code (such as localWorker functions) from production bundles via tree-shaking,
|
|
5
|
+
* resulting in smaller and more efficient production builds.
|
|
6
|
+
*
|
|
7
|
+
* See: https://vitejs.dev/guide/env-and-mode.html#env-variables
|
|
8
|
+
*
|
|
9
|
+
* Note: Even if code using these imports is removed by tree-shaking, Vite still processes and builds all statically imported modules
|
|
10
|
+
* because the module dependency graph is constructed at build time before tree-shaking occurs. This means worker files and other
|
|
11
|
+
* statically imported assets are built and emitted, even if they are not ultimately referenced in the final bundle.
|
|
12
|
+
*
|
|
13
|
+
*/
|
|
1
14
|
export declare function isMonacoEnvironmentSetup(): boolean;
|
|
2
15
|
export declare function getAssetsPath(): string | undefined;
|
|
3
16
|
export declare const additionalLanguageWorkersMap: Map<string, string>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcgis/coding-components",
|
|
3
|
-
"version": "4.33.0-next.
|
|
3
|
+
"version": "4.33.0-next.135",
|
|
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",
|
|
@@ -38,11 +38,11 @@
|
|
|
38
38
|
],
|
|
39
39
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@arcgis/arcade-languageservice": "4.33.0-next.
|
|
42
|
-
"@arcgis/components-utils": "4.33.0-next.
|
|
43
|
-
"@arcgis/core-adapter": "4.33.0-next.
|
|
44
|
-
"@arcgis/languages-api-utils": "4.33.0-next.
|
|
45
|
-
"@arcgis/lumina": "4.33.0-next.
|
|
41
|
+
"@arcgis/arcade-languageservice": "4.33.0-next.135",
|
|
42
|
+
"@arcgis/components-utils": "4.33.0-next.135",
|
|
43
|
+
"@arcgis/core-adapter": "4.33.0-next.135",
|
|
44
|
+
"@arcgis/languages-api-utils": "4.33.0-next.135",
|
|
45
|
+
"@arcgis/lumina": "4.33.0-next.135",
|
|
46
46
|
"monaco-editor": "^0.52.0",
|
|
47
47
|
"tslib": "^2.8.1",
|
|
48
48
|
"vscode-languageserver-types": "^3.17.5"
|
package/dist/cdn/JEAZSNJ5.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
|
-
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
3
|
-
v4.33.0-next.133 */
|
|
4
|
-
import{f as i}from"./WZEZGXA4.js";import{w as c,x as a}from"./I72DMQWM.js";function w(e){return new Worker("https://jsdev.arcgis.com/next/coding-components/cdn/assets/code-editor/arcade.worker.js",{type:"module",name:e?.name})}function u(e){return new Worker("https://jsdev.arcgis.com/next/coding-components/cdn/assets/code-editor/sql-expr.worker.js",{type:"module",name:e?.name})}function k(){return!!window.MonacoEnvironment?.getWorkerUrl}var d="",j=new Map;async function l(e,r){if(!a(e)||c(e,globalThis.location.href,!0))return r?r():new Worker(e);let o=await(await i())(e,{responseType:"text"});return new Worker(URL.createObjectURL(new Blob([o.data],{type:"text/javascript"})))}function h(e){if(k())return;d=e;let r=`${d}/code-editor`,o={arcade:`${r}/arcade.worker.js`,"arcgis-sql-expression":`${r}/sql-expr.worker.js`,html:`${r}/html.worker.js`,css:`${r}/css.worker.js`,typescript:`${r}/ts.worker.js`,json:`${r}/json.worker.js`,default:`${r}/editor.worker.js`},t={arcade:{url:o.arcade,localWorker:()=>new w},"arcgis-sql-expression":{url:o["arcgis-sql-expression"],localWorker:()=>new u},html:{url:o.html,localWorker:()=>new Worker(new URL("https://jsdev.arcgis.com/next/coding-components/cdn/assets/code-editor/html.worker.js",import.meta.url),{type:"module"})},css:{url:o.css,localWorker:()=>new Worker(new URL("https://jsdev.arcgis.com/next/coding-components/cdn/assets/code-editor/css.worker.js",import.meta.url),{type:"module"})},typescript:{url:o.typescript,localWorker:()=>new Worker(new URL("https://jsdev.arcgis.com/next/coding-components/cdn/assets/code-editor/ts.worker.js",import.meta.url),{type:"module"})},javascript:{url:o.typescript,localWorker:()=>new Worker(new URL("https://jsdev.arcgis.com/next/coding-components/cdn/assets/code-editor/ts.worker.js",import.meta.url),{type:"module"})},json:{url:o.json,localWorker:()=>new Worker(new URL("https://jsdev.arcgis.com/next/coding-components/cdn/assets/code-editor/json.worker.js",import.meta.url),{type:"module"})},default:{url:o.default,localWorker:()=>new Worker(new URL("https://jsdev.arcgis.com/next/coding-components/cdn/assets/code-editor/editor.worker.js",import.meta.url),{type:"module"})}};window.MonacoEnvironment={getWorker:async(g,s)=>{let n=j.get(s);if(n)return await l(n);let{url:m,localWorker:p}=t[s]||t.default;return await l(m,p)}}}export{h as a};
|