@arcgis/coding-components 5.2.0-next.124 → 5.2.0-next.125
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/{7BW4HK2A.js → 2PZP3YWM.js} +1 -1
- package/dist/cdn/3G26WBEK.js +66 -0
- package/dist/cdn/3KEZ7EEP.css +1 -0
- package/dist/cdn/{KM6YSFH6.js → 6HKTUV2Z.js} +1 -1
- package/dist/cdn/{BXSWFHYR.js → 7CRCML7E.js} +1 -1
- package/dist/cdn/{7OK7ZF7N.js → 7IJT3Z4F.js} +1 -1
- package/dist/cdn/{7EBMAFES.js → AAGGFSQH.js} +1 -1
- package/dist/cdn/{MWWXV5SO.js → ABUWK4CT.js} +1 -1
- package/dist/cdn/{DFRZVVZZ.js → AI6346MJ.js} +1 -1
- package/dist/cdn/{7557YTH2.js → BES2AFJI.js} +1 -1
- package/dist/cdn/{PBU6VJBZ.js → BWXFRAGJ.js} +1 -1
- package/dist/cdn/{AGHMGL6E.js → CHW5BB3L.js} +1 -1
- package/dist/cdn/{XZXSPFYV.js → DITC5ENP.js} +1 -1
- package/dist/cdn/{O5VTBJWD.js → DSXNVNHP.js} +1 -1
- package/dist/cdn/{HY5O2FXT.js → DXURCX2E.js} +1 -1
- package/dist/cdn/{43C5J4GE.js → ERQORLO4.js} +1 -1
- package/dist/cdn/{6W4UAJL7.js → FRKDR2KF.js} +1 -1
- package/dist/cdn/{KHS23QIL.js → G6LQODXE.js} +1 -1
- package/dist/cdn/JD7Z3DOI.js +2 -0
- package/dist/cdn/{JDENX7LP.js → JNW2UKUP.js} +1 -1
- package/dist/cdn/{WF2ENOGH.js → JZKEFFFC.js} +1 -1
- package/dist/cdn/{ZZDJOW42.js → KFZFVK3W.js} +1 -1
- package/dist/cdn/LLJLGZNV.js +2 -0
- package/dist/cdn/LYIGIZYL.css +1 -0
- package/dist/cdn/{5E6FR6BZ.js → M2KHHZZK.js} +1 -1
- package/dist/cdn/{EZLFACAC.js → MYJC26Y2.js} +1 -1
- package/dist/cdn/{DCWOXZNV.js → MZWBKK5Y.js} +1 -1
- package/dist/cdn/{KXTNFBJX.js → N634TYFB.js} +1 -1
- package/dist/cdn/{BDPAZMM4.js → NKCXJFOA.js} +1 -1
- package/dist/cdn/{CMRUQ3BN.js → NKGAHXNJ.js} +2 -2
- package/dist/cdn/{P4HNDIFA.js → OKTFDNZ2.js} +1 -1
- package/dist/cdn/{NKXS3GN7.js → P47PXEKU.js} +1 -1
- package/dist/cdn/{VVY2ZBRC.js → P5SQNRDH.js} +1 -1
- package/dist/cdn/{6DFI5ERF.js → PWGN3YDJ.js} +1 -1
- package/dist/cdn/PY2Q5GGO.js +2 -0
- package/dist/cdn/{RWKSK7LJ.js → Q2IQGLDP.js} +1 -1
- package/dist/cdn/{62DBPVRG.js → QQYU72U2.js} +1 -1
- package/dist/cdn/{22WTKWX3.js → RQFU6BD7.js} +1 -1
- package/dist/cdn/{7WYHXRIC.js → S62CZ4XV.js} +1 -1
- package/dist/cdn/SGV4EZAO.css +1 -0
- package/dist/cdn/{DOGQU7EL.js → SP2OSSVP.js} +1 -1
- package/dist/cdn/{GC7FFZEU.js → TKIQ3MQU.js} +1 -1
- package/dist/cdn/{2OOUSCR2.js → TOVVWCBC.js} +1 -1
- package/dist/cdn/{CLPF64WZ.js → UHQN4ZKV.js} +1 -1
- package/dist/cdn/{N37NWQCL.js → UUP3CHV2.js} +1 -1
- package/dist/cdn/{HQFOVSNC.js → VA5GCGP3.js} +1 -1
- package/dist/cdn/{PBAJAXFT.js → VNDDHGHV.js} +1 -1
- package/dist/cdn/XCISKBJD.js +927 -0
- package/dist/cdn/{2VEQTRYC.js → XECHDNHQ.js} +1 -1
- package/dist/cdn/{U6CVC2TE.js → XLCC7YPR.js} +1 -1
- package/dist/cdn/{UFF53OEH.js → XWEX2VS6.js} +1 -1
- package/dist/cdn/{Y7KC4KFN.js → Y2QWXLND.js} +1 -1
- package/dist/cdn/{QAMR6MWW.js → YG3C4FVJ.js} +1 -1
- package/dist/cdn/{KLDWM65I.js → YIGPP2PN.js} +1 -1
- package/dist/cdn/{JIAPMYH4.js → ZB5LSQCI.js} +1 -1
- package/dist/cdn/{ODW3NXBR.js → ZFNRVJRH.js} +1 -1
- package/dist/cdn/{WSXKO7QU.js → ZGH54UQL.js} +1 -1
- package/dist/cdn/{4TJFIFRU.js → ZIITPBDA.js} +1 -1
- package/dist/cdn/{3MYJY4XF.js → ZSTNW7E7.js} +1 -1
- package/dist/cdn/{GY5IX3XK.js → ZZWYJDQG.js} +2 -2
- package/dist/cdn/assets/code-editor/arcade.worker.js +1376 -1310
- package/dist/cdn/assets/code-editor/css.worker.js +1448 -1392
- package/dist/cdn/assets/code-editor/editor.worker.js +2233 -2177
- package/dist/cdn/assets/code-editor/html.worker.js +1208 -1152
- package/dist/cdn/assets/code-editor/json.worker.js +1364 -1308
- package/dist/cdn/assets/code-editor/sql-expr.worker.js +3451 -3385
- package/dist/cdn/assets/code-editor/sql-layer.worker.js +1835 -1779
- package/dist/cdn/assets/code-editor/ts.worker.js +20770 -20714
- package/dist/cdn/{codicon-KP4OV2OO.ttf → codicon-LTRFOK3N.ttf} +0 -0
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/stdin.css +1 -1
- package/dist/chunks/arcade-service-accessors.js +9 -8
- package/dist/chunks/debugger-value-components.js +6 -6
- package/dist/chunks/debugger-value-styles.js +6 -6
- package/dist/chunks/monaco-importer.js +3 -2
- package/dist/chunks/setup-monaco-theme.js +5 -4
- package/dist/chunks/sql-expr-mode.js +7 -6
- package/dist/chunks/sql-layer-mode.js +13 -12
- package/dist/components/arcgis-code-editor/customElement.js +160 -117
- package/dist/components/types.d.ts +2 -1
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/package.json +8 -7
- package/dist/cdn/DSQ2DQQL.js +0 -866
- package/dist/cdn/FWJIPXSM.js +0 -2
- package/dist/cdn/N7X5O5MW.css +0 -1
- package/dist/cdn/NHREAORV.js +0 -62
- package/dist/cdn/VFTBLPWP.js +0 -2
- package/dist/cdn/VHWT37FU.css +0 -1
- package/dist/cdn/WYJB4DB6.js +0 -2
- package/dist/cdn/Z5IO75U2.css +0 -1
- /package/dist/cdn/{6CZQZTMF.js → 2AXSYZEN.js} +0 -0
- /package/dist/cdn/{FQOANF2G.js → 33BRQKI6.js} +0 -0
- /package/dist/cdn/{7DK3ZTRU.js → 36W5RXLG.js} +0 -0
- /package/dist/cdn/{3QA7M6CT.js → 45R5XOFL.js} +0 -0
- /package/dist/cdn/{6NHGNIVD.js → 4YFE3KBC.js} +0 -0
- /package/dist/cdn/{WYJEPX44.js → 57E5F75J.js} +0 -0
- /package/dist/cdn/{EJQAPUJS.js → 5EIPVOGO.js} +0 -0
- /package/dist/cdn/{Z6466HTT.js → 5YEMW2UC.js} +0 -0
- /package/dist/cdn/{SA3CPVD5.js → 6VFEED45.js} +0 -0
- /package/dist/cdn/{BXWGMUCF.js → ABZ7ZFXX.js} +0 -0
- /package/dist/cdn/{T2SRJU3Q.js → AGJJ7FJX.js} +0 -0
- /package/dist/cdn/{FT5ERUIM.js → BTLDXLFC.js} +0 -0
- /package/dist/cdn/{UYCJKS7C.js → CJ2MVXSJ.js} +0 -0
- /package/dist/cdn/{E557OH6C.js → CVJM5DJ5.js} +0 -0
- /package/dist/cdn/{JKD3QPJA.js → D4TRKALK.js} +0 -0
- /package/dist/cdn/{CEVSS7MF.js → DKAMEAFP.js} +0 -0
- /package/dist/cdn/{GKYUW47U.js → EQKJWVNG.js} +0 -0
- /package/dist/cdn/{RKHLMCND.js → EXVPEWWR.js} +0 -0
- /package/dist/cdn/{2TM3P5BM.js → FGO22NCZ.js} +0 -0
- /package/dist/cdn/{HNPCFI2T.js → FH5UYXIE.js} +0 -0
- /package/dist/cdn/{3HICEKL5.js → FUBZOMVG.js} +0 -0
- /package/dist/cdn/{HZI3CRZA.js → G3F6L5BF.js} +0 -0
- /package/dist/cdn/{OKBXNZWB.js → G6VYGRE5.js} +0 -0
- /package/dist/cdn/{ADOCXALG.js → GK62ODPJ.js} +0 -0
- /package/dist/cdn/{LWIX4BHD.js → GLWUBI25.js} +0 -0
- /package/dist/cdn/{CLAJKAD4.js → GWJWZDBK.js} +0 -0
- /package/dist/cdn/{ZYCEN3JJ.js → H2KLFHG3.js} +0 -0
- /package/dist/cdn/{CPU5A7GB.js → HLTDO25M.js} +0 -0
- /package/dist/cdn/{3IIYWUMQ.js → HUTT2UBA.js} +0 -0
- /package/dist/cdn/{2PRBQXD6.js → HZSPZILM.js} +0 -0
- /package/dist/cdn/{YO6TWJFE.js → IF6VZF56.js} +0 -0
- /package/dist/cdn/{OTJIHBW2.js → ISYMIYR5.js} +0 -0
- /package/dist/cdn/{SUSHGSN5.js → J72JBXLX.js} +0 -0
- /package/dist/cdn/{DAVBQKOS.js → JW63G7JR.js} +0 -0
- /package/dist/cdn/{JI422GNR.js → KKD3ZAX7.js} +0 -0
- /package/dist/cdn/{SG2BKJM5.js → KSNDH6NJ.js} +0 -0
- /package/dist/cdn/{UOUMWCH7.js → KSYZD77O.js} +0 -0
- /package/dist/cdn/{FPYDAXFV.js → LDUXIRRX.js} +0 -0
- /package/dist/cdn/{KLBYHXFF.js → LW6VG5BJ.js} +0 -0
- /package/dist/cdn/{4VR6NKWG.js → MB3H26SY.js} +0 -0
- /package/dist/cdn/{OVP6UXO6.js → ML3XEYX7.js} +0 -0
- /package/dist/cdn/{H4TDHI2Q.js → MLQTKNOS.js} +0 -0
- /package/dist/cdn/{LSWMYSG5.js → NFD5QRK7.js} +0 -0
- /package/dist/cdn/{QU5CZLK5.js → NGWNHRDV.js} +0 -0
- /package/dist/cdn/{OHFJJGVA.js → NQOXXF5T.js} +0 -0
- /package/dist/cdn/{NULEXQA2.js → O2HZCVVO.js} +0 -0
- /package/dist/cdn/{J7HO6RTJ.js → PTLGMSM7.js} +0 -0
- /package/dist/cdn/{DDDIP43Y.js → PVTDESVT.js} +0 -0
- /package/dist/cdn/{JMC6K5HI.js → Q42IHUZ3.js} +0 -0
- /package/dist/cdn/{O3NHJWA2.js → QDUPWXLI.js} +0 -0
- /package/dist/cdn/{7IS2FKEF.js → QGSV4ECO.js} +0 -0
- /package/dist/cdn/{CSJQLSJC.js → QYQXVQVS.js} +0 -0
- /package/dist/cdn/{HCNKB3RA.js → QZ5SQVOZ.js} +0 -0
- /package/dist/cdn/{FM45ZTLA.js → R7SJNYNM.js} +0 -0
- /package/dist/cdn/{ZXM7ND6Q.js → S5T6XTRV.js} +0 -0
- /package/dist/cdn/{EPZJ7KZC.js → SIP637YL.js} +0 -0
- /package/dist/cdn/{QLSHKD7Y.js → TKZNHPOT.js} +0 -0
- /package/dist/cdn/{3YUOOZQC.js → TUPOE2CF.js} +0 -0
- /package/dist/cdn/{VWAHKT2W.js → UF7HDQEU.js} +0 -0
- /package/dist/cdn/{2ZNNQF33.js → USFPEQ7Q.js} +0 -0
- /package/dist/cdn/{53BLLGWD.js → UXE4ASGX.js} +0 -0
- /package/dist/cdn/{2YJMSLBY.js → UYUJZDIZ.js} +0 -0
- /package/dist/cdn/{QNTJG5AA.js → UZVUXHHW.js} +0 -0
- /package/dist/cdn/{RABQPAZP.js → W6YYQCBS.js} +0 -0
- /package/dist/cdn/{Y3RD24PA.js → WBYKVSV4.js} +0 -0
- /package/dist/cdn/{IEPJZHSS.js → WJYR4BJG.js} +0 -0
- /package/dist/cdn/{7627LBHY.js → WMQL7T43.js} +0 -0
- /package/dist/cdn/{6NKJB46V.js → XQSXGAPV.js} +0 -0
- /package/dist/cdn/{PDL4ZTCL.js → XVT2TWEJ.js} +0 -0
- /package/dist/cdn/{MKNN7Z33.js → YCBGCWWV.js} +0 -0
- /package/dist/cdn/{C7FU7YNV.js → ZQZRAXQ5.js} +0 -0
- /package/dist/cdn/{Y4MQH574.js → ZRGZPKPU.js} +0 -0
|
@@ -4,15 +4,16 @@ import "monaco-editor";
|
|
|
4
4
|
import { StandaloneServices as w } from "monaco-editor/editor/standalone/browser/standaloneServices.js";
|
|
5
5
|
import "monaco-editor/editor/standalone/common/standaloneTheme.js";
|
|
6
6
|
import { IHoverService as y } from "monaco-editor/platform/hover/browser/hover.js";
|
|
7
|
+
import "monaco-editor/platform/contextview/browser/contextView.js";
|
|
7
8
|
import "monaco-editor/editor/common/languages/supports/tokenization.js";
|
|
8
9
|
import "monaco-editor/base/browser/dom.js";
|
|
9
10
|
import "monaco-editor/editor/browser/editorDom.js";
|
|
10
11
|
import "monaco-editor/editor/browser/controller/mouseTarget.js";
|
|
11
|
-
function
|
|
12
|
+
function m() {
|
|
12
13
|
return !!window.MonacoEnvironment?.getWorker;
|
|
13
14
|
}
|
|
14
15
|
let n = "";
|
|
15
|
-
const
|
|
16
|
+
const g = /* @__PURE__ */ new Map(), i = !1;
|
|
16
17
|
async function l(s, e, r) {
|
|
17
18
|
if (r)
|
|
18
19
|
return e ? e() : new Worker(s);
|
|
@@ -27,8 +28,8 @@ async function l(s, e, r) {
|
|
|
27
28
|
type: "module"
|
|
28
29
|
});
|
|
29
30
|
}
|
|
30
|
-
function
|
|
31
|
-
if (
|
|
31
|
+
function E(s) {
|
|
32
|
+
if (m())
|
|
32
33
|
return;
|
|
33
34
|
q(), n = s;
|
|
34
35
|
const e = `${n}/code-editor`, r = {
|
|
@@ -79,7 +80,7 @@ function U(s) {
|
|
|
79
80
|
};
|
|
80
81
|
window.MonacoEnvironment = {
|
|
81
82
|
getWorker: async (u, o) => {
|
|
82
|
-
const a =
|
|
83
|
+
const a = g.get(o);
|
|
83
84
|
if (a)
|
|
84
85
|
return await l(a, void 0, i);
|
|
85
86
|
const { url: p, localWorker: f } = t[o] || t.default;
|
|
@@ -91,14 +92,14 @@ let c = !1;
|
|
|
91
92
|
function q() {
|
|
92
93
|
c || (w.get(y), c = !0);
|
|
93
94
|
}
|
|
94
|
-
async function
|
|
95
|
+
async function L() {
|
|
95
96
|
return (await k()).getArcadeDiagnosticService();
|
|
96
97
|
}
|
|
97
98
|
async function k() {
|
|
98
99
|
return await import("./arcade-mode.js");
|
|
99
100
|
}
|
|
100
101
|
export {
|
|
101
|
-
|
|
102
|
+
L as a,
|
|
102
103
|
k as g,
|
|
103
|
-
|
|
104
|
+
E as s
|
|
104
105
|
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { html as c } from "lit";
|
|
3
3
|
import { safeClassMap as R } from "@arcgis/lumina";
|
|
4
4
|
import { t as v } from "./debugger-value-styles.js";
|
|
5
|
-
import { quoteString as
|
|
5
|
+
import { quoteString as _ } from "@arcgis/toolkit/string";
|
|
6
6
|
const U = /^[$A-Z_a-z][$\w]*$/u;
|
|
7
7
|
function M(e) {
|
|
8
8
|
return e.replaceAll("\\", "\\\\").replaceAll('"', '\\"');
|
|
@@ -149,7 +149,7 @@ function G({ lazyTreeState: e, nodePath: t, mergedCollectionItem: n, expanded: r
|
|
|
149
149
|
sourcePath: m,
|
|
150
150
|
value: b
|
|
151
151
|
});
|
|
152
|
-
}, w = () => c`<calcite-tree-item disabled><div class="tree-item-label"><span class="constant-value">${i.errorMessage || (a.loaderror ?? "Unable to load data.")}</span></div></calcite-tree-item>`, W = () => u.kind !== "feature-set" || !i.schemaValue ? null : x({ name: "schema", value: i.schemaValue, messages: a, path: E(t, "schema"), lazyTreeState: e }), Q = () => u.kind !== "feature-set" || !u.mergedCollectionItem ? [] : X(u.mergedCollectionItem).map(([l, I]) => x({ name: l, value: z(I), messages: a, path: E(t, l), lazyTreeState: e })),
|
|
152
|
+
}, w = () => c`<calcite-tree-item disabled><div class="tree-item-label"><span class="constant-value">${i.errorMessage || (a.loaderror ?? "Unable to load data.")}</span></div></calcite-tree-item>`, W = () => u.kind !== "feature-set" || !i.schemaValue ? null : x({ name: "schema", value: i.schemaValue, messages: a, path: E(t, "schema"), lazyTreeState: e }), Q = () => u.kind !== "feature-set" || !u.mergedCollectionItem ? [] : X(u.mergedCollectionItem).map(([l, I]) => x({ name: l, value: z(I), messages: a, path: E(t, l), lazyTreeState: e })), j = () => {
|
|
153
153
|
if (u.kind !== "feature-set")
|
|
154
154
|
return null;
|
|
155
155
|
if (!i.expanded || i.status === "loading")
|
|
@@ -163,8 +163,8 @@ function G({ lazyTreeState: e, nodePath: t, mergedCollectionItem: n, expanded: r
|
|
|
163
163
|
I && l.push(I);
|
|
164
164
|
}
|
|
165
165
|
return l.length ? C(l) : C();
|
|
166
|
-
},
|
|
167
|
-
return c`<calcite-tree-item .expanded=${i.expanded} @calciteTreeItemExpand=${d} @calciteTreeItemCollapse=${y}><div class="tree-item-label">${T({ name: f, isMetadata: p })}<bdi>${u.displayValue}</bdi></div>${i.status === "loading" ? c`<calcite-loader slot=actions-end scale=s inline type=indeterminate .label=${a.loading ?? "Loading"} .text=${a.loading ?? "Loading"}></calcite-loader>` : null}${D ? c`<calcite-action slot=actions-end scale=s class="load-action" .text=${a.loadpreview ?? "Load preview"} text-enabled icon=play .disabled=${g} @click=${V}></calcite-action>` : null}${
|
|
166
|
+
}, O = () => u.kind !== "collection" ? null : !i.expanded || i.status === "loading" ? C() : C(c`${i.status === "error" ? w() : null}${i.status === "loaded" ? i.collectionItems.map((l) => G({ name: l.name || l.id, mergedCollectionItem: l, messages: a, nodePath: E(t, l.id), lazyTreeState: e, value: l.featureSet, loadPreview: s, previewLabel: k(o, l.name || l.id), previewSourcePath: q(m, K(l)), previewLoading: g })) : null}`), Z = () => u.kind === "collection" ? O() : j();
|
|
167
|
+
return c`<calcite-tree-item .expanded=${i.expanded} @calciteTreeItemExpand=${d} @calciteTreeItemCollapse=${y}><div class="tree-item-label">${T({ name: f, isMetadata: p })}<bdi>${u.displayValue}</bdi></div>${i.status === "loading" ? c`<calcite-loader slot=actions-end scale=s inline type=indeterminate .label=${a.loading ?? "Loading"} .text=${a.loading ?? "Loading"}></calcite-loader>` : null}${D ? c`<calcite-action slot=actions-end scale=s class="load-action" .text=${a.loadpreview ?? "Load preview"} text-enabled icon=play .disabled=${g} @click=${V}></calcite-action>` : null}${Z()}</calcite-tree-item>`;
|
|
168
168
|
}
|
|
169
169
|
function z(e) {
|
|
170
170
|
if (e == null)
|
|
@@ -252,9 +252,9 @@ const F = ({ value: e }) => {
|
|
|
252
252
|
return c`<bdi class="constant-value">null</bdi>`;
|
|
253
253
|
switch (e.arcadeType) {
|
|
254
254
|
case "String":
|
|
255
|
-
return c`<bdi class="string-value">${
|
|
255
|
+
return c`<bdi class="string-value">${_(String(e.value))}</bdi>`;
|
|
256
256
|
case "Number":
|
|
257
|
-
return c`<bdi class="number-value">${String(e.value)}</bdi>`;
|
|
257
|
+
return c`<bdi class="number-value">${Object.is(e.value, -0) ? "-0" : String(e.value)}</bdi>`;
|
|
258
258
|
case "Boolean":
|
|
259
259
|
return c`<bdi class="constant-value">${String(e.value)}</bdi>`;
|
|
260
260
|
default:
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { html as a, unsafeCSS as v, css as m } from "lit";
|
|
3
|
-
import { nothing as y, safeClassMap as
|
|
4
|
-
import { classes as
|
|
3
|
+
import { nothing as y, safeClassMap as i } from "@arcgis/lumina";
|
|
4
|
+
import { classes as l } from "@arcgis/toolkit/dom";
|
|
5
5
|
import { uncapitalize as f, quoteString as c } from "@arcgis/toolkit/string";
|
|
6
6
|
import { f as g, a as b, b as $ } from "./arcade-executor.js";
|
|
7
7
|
import { t as o } from "./monaco-theme.js";
|
|
@@ -10,7 +10,7 @@ const s = {
|
|
|
10
10
|
selectionMode: "none",
|
|
11
11
|
scale: "s",
|
|
12
12
|
oncalciteTreeSelect: (e) => e.currentTarget.selectedItems.forEach((t) => t.selected = !1)
|
|
13
|
-
}, u = "tree-item-metadata", p = ({ name: e, isMetadata: t = !1 }) => a`<bdi class=${l(
|
|
13
|
+
}, u = "tree-item-metadata", p = ({ name: e, isMetadata: t = !1 }) => a`<bdi class=${i(l("dictionary-property", t && u))}>${e}</bdi><bdi class=${i(l(t && u))}>: </bdi>`, z = ({ obj: e, subtree: t }) => a`<calcite-tree slot=${"children"} .lines=${s.lines} .selectionMode=${s.selectionMode} .scale=${s.scale} @calciteTreeSelect=${s.oncalciteTreeSelect}><calcite-tree-item class="string-value">${JSON.stringify(e, void 0, 2)}</calcite-tree-item></calcite-tree>`, N = ({ value: e, subtree: t = !1 }) => a`<calcite-tree slot=${(t ? "children" : void 0) ?? y} .lines=${s.lines} .selectionMode=${s.selectionMode} .scale=${s.scale} @calciteTreeSelect=${s.oncalciteTreeSelect}><calcite-tree-item><div class="tree-item-label">${p({ name: "type" })}<bdi>${f(e.type)}</bdi></div></calcite-tree-item><calcite-tree-item><div class="tree-item-label">${p({ name: "value" })}<span class="string-value">${JSON.stringify(e, void 0, 2)}</span></div></calcite-tree-item></calcite-tree>`, C = ({ type: e, value: t }) => {
|
|
14
14
|
switch (e) {
|
|
15
15
|
case "unknown":
|
|
16
16
|
case "Unknown":
|
|
@@ -69,7 +69,7 @@ function V(e) {
|
|
|
69
69
|
case "unknown":
|
|
70
70
|
return { type: e.type, value: e.type };
|
|
71
71
|
case "number":
|
|
72
|
-
return { type: e.type, value: String(e.value) };
|
|
72
|
+
return { type: e.type, value: Object.is(e.value, -0) ? "-0" : String(e.value) };
|
|
73
73
|
case "boolean":
|
|
74
74
|
return { type: e.type, value: String(e.value) };
|
|
75
75
|
case "text":
|
|
@@ -104,7 +104,7 @@ function A() {
|
|
|
104
104
|
${v(e)}
|
|
105
105
|
`;
|
|
106
106
|
}
|
|
107
|
-
const
|
|
107
|
+
const j = m`
|
|
108
108
|
.xs {
|
|
109
109
|
font-size: var(--calcite-font-size-xs);
|
|
110
110
|
color: var(--calcite-color-text-2);
|
|
@@ -168,7 +168,7 @@ export {
|
|
|
168
168
|
V as a,
|
|
169
169
|
z as b,
|
|
170
170
|
S as c,
|
|
171
|
-
|
|
171
|
+
j as d,
|
|
172
172
|
A as g,
|
|
173
173
|
M as i,
|
|
174
174
|
s as t
|
|
@@ -3,6 +3,7 @@ import "monaco-editor";
|
|
|
3
3
|
import "monaco-editor/editor/standalone/browser/standaloneServices.js";
|
|
4
4
|
import "monaco-editor/editor/standalone/common/standaloneTheme.js";
|
|
5
5
|
import "monaco-editor/platform/hover/browser/hover.js";
|
|
6
|
+
import "monaco-editor/platform/contextview/browser/contextView.js";
|
|
6
7
|
import "monaco-editor/editor/common/languages/supports/tokenization.js";
|
|
7
8
|
import "monaco-editor/base/browser/dom.js";
|
|
8
9
|
import "monaco-editor/editor/browser/editorDom.js";
|
|
@@ -12,9 +13,9 @@ const r = async () => {
|
|
|
12
13
|
return t;
|
|
13
14
|
};
|
|
14
15
|
let o = null;
|
|
15
|
-
async function
|
|
16
|
+
async function u() {
|
|
16
17
|
return o ??= r(), await o;
|
|
17
18
|
}
|
|
18
19
|
export {
|
|
19
|
-
|
|
20
|
+
u as i
|
|
20
21
|
};
|
|
@@ -3,6 +3,7 @@ import { Uri as p, languages as s } from "monaco-editor";
|
|
|
3
3
|
import "monaco-editor/editor/standalone/browser/standaloneServices.js";
|
|
4
4
|
import "monaco-editor/editor/standalone/common/standaloneTheme.js";
|
|
5
5
|
import "monaco-editor/platform/hover/browser/hover.js";
|
|
6
|
+
import "monaco-editor/platform/contextview/browser/contextView.js";
|
|
6
7
|
import "monaco-editor/editor/common/languages/supports/tokenization.js";
|
|
7
8
|
import "monaco-editor/base/browser/dom.js";
|
|
8
9
|
import "monaco-editor/editor/browser/editorDom.js";
|
|
@@ -27,7 +28,7 @@ function c(e) {
|
|
|
27
28
|
function u(e) {
|
|
28
29
|
c(e).resolve();
|
|
29
30
|
}
|
|
30
|
-
function
|
|
31
|
+
function $(e) {
|
|
31
32
|
return k.includes(e) ? c(e).promise : Promise.resolve();
|
|
32
33
|
}
|
|
33
34
|
function m(e, r) {
|
|
@@ -35,7 +36,7 @@ function m(e, r) {
|
|
|
35
36
|
i.has(e) || i.add(e), r();
|
|
36
37
|
};
|
|
37
38
|
}
|
|
38
|
-
async function
|
|
39
|
+
async function A(e) {
|
|
39
40
|
if (i.has(e))
|
|
40
41
|
return;
|
|
41
42
|
(await d()).createModel("", e, p.parse("")).dispose();
|
|
@@ -99,6 +100,6 @@ function y() {
|
|
|
99
100
|
export {
|
|
100
101
|
m as a,
|
|
101
102
|
u as m,
|
|
102
|
-
|
|
103
|
-
|
|
103
|
+
A as s,
|
|
104
|
+
$ as w
|
|
104
105
|
};
|
|
@@ -3,6 +3,7 @@ import { languages as h, Emitter as T } from "monaco-editor";
|
|
|
3
3
|
import "monaco-editor/editor/standalone/browser/standaloneServices.js";
|
|
4
4
|
import "monaco-editor/editor/standalone/common/standaloneTheme.js";
|
|
5
5
|
import "monaco-editor/platform/hover/browser/hover.js";
|
|
6
|
+
import "monaco-editor/platform/contextview/browser/contextView.js";
|
|
6
7
|
import "monaco-editor/editor/common/languages/supports/tokenization.js";
|
|
7
8
|
import "monaco-editor/base/browser/dom.js";
|
|
8
9
|
import "monaco-editor/editor/browser/editorDom.js";
|
|
@@ -324,7 +325,7 @@ class b {
|
|
|
324
325
|
}
|
|
325
326
|
}
|
|
326
327
|
let m;
|
|
327
|
-
async function
|
|
328
|
+
async function Z(...a) {
|
|
328
329
|
return await _.waitForWorker(), await new Promise((e, t) => {
|
|
329
330
|
if (!m) {
|
|
330
331
|
t(new Error("sql expression worker not registered!"));
|
|
@@ -354,10 +355,10 @@ class D {
|
|
|
354
355
|
}
|
|
355
356
|
}
|
|
356
357
|
const k = new D();
|
|
357
|
-
async function
|
|
358
|
+
async function X() {
|
|
358
359
|
return await f(), k;
|
|
359
360
|
}
|
|
360
|
-
function
|
|
361
|
+
function $(a) {
|
|
361
362
|
const e = new _(a), t = async (...n) => await e.getLanguageServiceWorker(...n);
|
|
362
363
|
m = t, h.setMonarchTokensProvider(d.languageId, x), h.setLanguageConfiguration(d.languageId, R);
|
|
363
364
|
const i = new M(t, d);
|
|
@@ -367,7 +368,7 @@ function X(a) {
|
|
|
367
368
|
});
|
|
368
369
|
}
|
|
369
370
|
export {
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
371
|
+
X as getSqlExprDiagnosticService,
|
|
372
|
+
Z as getSqlExprWorker,
|
|
373
|
+
$ as setupMode
|
|
373
374
|
};
|
|
@@ -3,6 +3,7 @@ import { languages as l, Emitter as C } from "monaco-editor";
|
|
|
3
3
|
import "monaco-editor/editor/standalone/browser/standaloneServices.js";
|
|
4
4
|
import "monaco-editor/editor/standalone/common/standaloneTheme.js";
|
|
5
5
|
import "monaco-editor/platform/hover/browser/hover.js";
|
|
6
|
+
import "monaco-editor/platform/contextview/browser/contextView.js";
|
|
6
7
|
import "monaco-editor/editor/common/languages/supports/tokenization.js";
|
|
7
8
|
import "monaco-editor/base/browser/dom.js";
|
|
8
9
|
import "monaco-editor/editor/browser/editorDom.js";
|
|
@@ -11,7 +12,7 @@ import { i as g } from "./monaco-importer.js";
|
|
|
11
12
|
import { debounce as x } from "@arcgis/toolkit/function";
|
|
12
13
|
import { rethrowError as h } from "@arcgis/toolkit/log";
|
|
13
14
|
let p = Promise.withResolvers();
|
|
14
|
-
class
|
|
15
|
+
class m {
|
|
15
16
|
constructor(e) {
|
|
16
17
|
this._defaults = e, this._worker = null, this._client = null, this._modelLifecycleListeners = [], this._isDisposed = !1, this._configChangeListener = this._defaults.onDidChange(() => this.stopWorker()), this._modelContextChangeListener = this._defaults.onModelContextDidChange(() => {
|
|
17
18
|
this._stopWorkerIfUnused();
|
|
@@ -266,8 +267,8 @@ class v {
|
|
|
266
267
|
}
|
|
267
268
|
}
|
|
268
269
|
let w;
|
|
269
|
-
async function
|
|
270
|
-
return await
|
|
270
|
+
async function H(...o) {
|
|
271
|
+
return await m.waitForWorker(), await new Promise((e, t) => {
|
|
271
272
|
if (!w) {
|
|
272
273
|
t(new Error("SQL layer worker not registered!"));
|
|
273
274
|
return;
|
|
@@ -286,12 +287,12 @@ class E {
|
|
|
286
287
|
this._onDiagnosticsChange.fire({ uri: e, diagnostics: t });
|
|
287
288
|
}
|
|
288
289
|
}
|
|
289
|
-
const
|
|
290
|
-
function
|
|
291
|
-
return
|
|
290
|
+
const _ = new E();
|
|
291
|
+
function z() {
|
|
292
|
+
return _;
|
|
292
293
|
}
|
|
293
|
-
async function
|
|
294
|
-
const e = new
|
|
294
|
+
async function B(o) {
|
|
295
|
+
const e = new m(o), t = async (...a) => await e.getLanguageServiceWorker(...a);
|
|
295
296
|
w = t;
|
|
296
297
|
const s = await o.getDialectSpec();
|
|
297
298
|
l.setMonarchTokensProvider(o.languageId, D(s)), l.setLanguageConfiguration(o.languageId, S(s)), l.registerCompletionItemProvider(
|
|
@@ -299,11 +300,11 @@ async function z(o) {
|
|
|
299
300
|
new I(t, o)
|
|
300
301
|
), l.registerDocumentFormattingEditProvider(o.languageId, new v(t)), new M(o.languageId, t, {
|
|
301
302
|
defaults: o,
|
|
302
|
-
diagnosticService:
|
|
303
|
+
diagnosticService: _
|
|
303
304
|
});
|
|
304
305
|
}
|
|
305
306
|
export {
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
307
|
+
z as getSqlLayerDiagnosticService,
|
|
308
|
+
H as getSqlLayerWorker,
|
|
309
|
+
B as setupMode
|
|
309
310
|
};
|