@arcgis/coding-components 5.2.0-next.136 → 5.2.0-next.138
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/2G4FXGUW.js +2 -0
- package/dist/cdn/{4OC4PWCA.js → 2K2DUTEX.js} +2 -2
- package/dist/cdn/2MUU37FH.js +2 -0
- package/dist/cdn/{JNI62OTM.js → 33VE4JBP.js} +2 -2
- package/dist/cdn/{HZSPZILM.js → 375DJPSU.js} +2 -2
- package/dist/cdn/{D4TRKALK.js → 3DMULL6Y.js} +2 -2
- package/dist/cdn/{W6YYQCBS.js → 3KHLUWP6.js} +2 -2
- package/dist/cdn/{FGO22NCZ.js → 3LLBOQET.js} +2 -2
- package/dist/cdn/{WBYKVSV4.js → 3MV7L6WD.js} +2 -2
- package/dist/cdn/{JW63G7JR.js → 4JOBVTMO.js} +2 -2
- package/dist/cdn/{5EIPVOGO.js → 4SCAQXGL.js} +2 -2
- package/dist/cdn/{4YFE3KBC.js → 55Q2G4OY.js} +2 -2
- package/dist/cdn/{XVT2TWEJ.js → 56TCXNYJ.js} +2 -2
- package/dist/cdn/{467GNIKK.js → 5M4Y6BPH.js} +2 -2
- package/dist/cdn/{PVTDESVT.js → 5QFCRDPV.js} +2 -2
- package/dist/cdn/{WMQL7T43.js → 5RKRCDUO.js} +2 -2
- package/dist/cdn/{XG3S7JQW.js → 6AJWW3LS.js} +2 -2
- package/dist/cdn/{TUQPDQ74.js → 6EM6CS5H.js} +2 -2
- package/dist/cdn/{J4I4EROF.js → 6NBR3CBG.js} +1 -1
- package/dist/cdn/{BTLDXLFC.js → 6NME5GYU.js} +2 -2
- package/dist/cdn/{6HKTUV2Z.js → 7IMHQO2V.js} +2 -2
- package/dist/cdn/7IPPBEPF.js +3 -0
- package/dist/cdn/{XQSXGAPV.js → 7OG57VRP.js} +2 -2
- package/dist/cdn/{G3F6L5BF.js → 7YGGAMMI.js} +2 -2
- package/dist/cdn/{MZMKV7FA.js → A3VKXFUZ.js} +1 -1
- package/dist/cdn/{GYG7XT3I.js → A4GZ33K7.js} +2 -2
- package/dist/cdn/{ZLV7T4YS.js → AFPDVDE4.js} +2 -2
- package/dist/cdn/{2PZP3YWM.js → AW5IMWD6.js} +2 -2
- package/dist/cdn/{WJYR4BJG.js → B5GJ5YJV.js} +2 -2
- package/dist/cdn/{LEFE3FVL.js → BQAEB2CG.js} +1 -1
- package/dist/cdn/{36W5RXLG.js → BYGBU3GB.js} +2 -2
- package/dist/cdn/{PTLGMSM7.js → C33GYZXZ.js} +2 -2
- package/dist/cdn/{BFPEJYVB.js → C3LWMJ56.js} +1 -1
- package/dist/cdn/{MLQTKNOS.js → CC73R2YO.js} +2 -2
- package/dist/cdn/{KY7IXKSM.js → D6IZDRAG.js} +2 -2
- package/dist/cdn/{GWJWZDBK.js → DEEKUI7Y.js} +2 -2
- package/dist/cdn/{D5GWRYT7.js → DGJ7J5FA.js} +2 -2
- package/dist/cdn/{N634TYFB.js → DJSVI4SW.js} +2 -2
- package/dist/cdn/{LDUXIRRX.js → DUOYG2IK.js} +2 -2
- package/dist/cdn/DWVVNZOV.js +2 -0
- package/dist/cdn/{H2KLFHG3.js → E2AFCZFQ.js} +2 -2
- package/dist/cdn/{A3TU47C5.js → FEQYLZXB.js} +2 -2
- package/dist/cdn/{DKAMEAFP.js → FMX4KCA2.js} +2 -2
- package/dist/cdn/{7Z6G332Z.js → FXTQDR6G.js} +1 -1
- package/dist/cdn/{UZVUXHHW.js → G7K5HHRI.js} +2 -2
- package/dist/cdn/{SXM2EQHN.js → GLGGJTZV.js} +2 -2
- package/dist/cdn/{XEK22IDA.js → GUL7EIJ4.js} +1 -1
- package/dist/cdn/{HLTDO25M.js → H2UPP7AN.js} +2 -2
- package/dist/cdn/{Y2QWXLND.js → HBRJUCJA.js} +2 -2
- package/dist/cdn/{SIP637YL.js → HICJC3K4.js} +2 -2
- package/dist/cdn/{5YEMW2UC.js → HVCJZ7GU.js} +2 -2
- package/dist/cdn/{ISYMIYR5.js → HZRDPUZY.js} +2 -2
- package/dist/cdn/{ZRGZPKPU.js → IRADQYMM.js} +2 -2
- package/dist/cdn/{5HKDO4SX.js → JPCKFSCN.js} +1 -1
- package/dist/cdn/{CP57L67B.js → JTDC4MHL.js} +2 -2
- package/dist/cdn/{AGJJ7FJX.js → JUF3UYBF.js} +2 -2
- package/dist/cdn/JUVALRBX.js +2 -0
- package/dist/cdn/{GK62ODPJ.js → JVG2GEOV.js} +2 -2
- package/dist/cdn/KLUYWWAO.js +2 -0
- package/dist/cdn/{ZQZRAXQ5.js → KQXINZTZ.js} +2 -2
- package/dist/cdn/{P47PXEKU.js → KVWBKELA.js} +2 -2
- package/dist/cdn/{EQKJWVNG.js → KYZIVRRE.js} +2 -2
- package/dist/cdn/{TUPOE2CF.js → L55CAL6A.js} +2 -2
- package/dist/cdn/{KSYZD77O.js → L5EAXK66.js} +2 -2
- package/dist/cdn/{57E5F75J.js → LT46MQ3R.js} +2 -2
- package/dist/cdn/{QDUPWXLI.js → LY2IFALR.js} +2 -2
- package/dist/cdn/{WHOYO2EQ.js → M76B3W3Y.js} +4 -4
- package/dist/cdn/{ZIITPBDA.js → MPFQRTM2.js} +2 -2
- package/dist/cdn/{ZGH54UQL.js → MS7IKLGS.js} +2 -2
- package/dist/cdn/{FH5UYXIE.js → MT3EN3JQ.js} +2 -2
- package/dist/cdn/{YCBGCWWV.js → N2AWQ7KB.js} +2 -2
- package/dist/cdn/{XWEX2VS6.js → N3TIODOB.js} +2 -2
- package/dist/cdn/{J72JBXLX.js → N3YRPFQR.js} +2 -2
- package/dist/cdn/{O6XP7VU2.js → N4JLGDFS.js} +3 -3
- package/dist/cdn/{MB3H26SY.js → NIVPC4BK.js} +2 -2
- package/dist/cdn/{GLWUBI25.js → NNVH66G7.js} +2 -2
- package/dist/cdn/{YJ4WRZOI.js → NSOQN5L7.js} +2 -2
- package/dist/cdn/{UZD32YRD.js → OBV47WCU.js} +2 -2
- package/dist/cdn/{USFPEQ7Q.js → OEKA3QCT.js} +2 -2
- package/dist/cdn/{OO3J7H7X.js → OJKCX7KO.js} +2 -2
- package/dist/cdn/{QYQXVQVS.js → OQKFGD5F.js} +2 -2
- package/dist/cdn/{NGWNHRDV.js → OVXVWXRX.js} +2 -2
- package/dist/cdn/{XCISKBJD.js → P3M7MP34.js} +2 -2
- package/dist/cdn/{C5WMGZYX.js → P4SMRR2P.js} +2 -2
- package/dist/cdn/{P5SQNRDH.js → PBTICSC2.js} +2 -2
- package/dist/cdn/{HUTT2UBA.js → PCKE4TCN.js} +2 -2
- package/dist/cdn/{Q2IQGLDP.js → PMVQBTIZ.js} +2 -2
- package/dist/cdn/{SP2OSSVP.js → Q7GROPRX.js} +2 -2
- package/dist/cdn/{IO6Q3255.js → QAELK3EI.js} +2 -2
- package/dist/cdn/{KSNDH6NJ.js → QRW7RXCV.js} +2 -2
- package/dist/cdn/QS6XQXBD.js +2 -0
- package/dist/cdn/{ABZ7ZFXX.js → RIKAOQYV.js} +2 -2
- package/dist/cdn/{CVJM5DJ5.js → RJOVUGPB.js} +2 -2
- package/dist/cdn/{7IJT3Z4F.js → ROTZLDIT.js} +2 -2
- package/dist/cdn/{XECHDNHQ.js → RRLOGYIL.js} +2 -2
- package/dist/cdn/{L7DAVIBM.js → RT5UOROF.js} +13 -13
- package/dist/cdn/{EXVPEWWR.js → RTUQFFHX.js} +2 -2
- package/dist/cdn/{UF7HDQEU.js → RTWZV4XI.js} +2 -2
- package/dist/cdn/{MO22NTSF.js → S3HNLKHY.js} +2 -2
- package/dist/cdn/{VHXEN75D.js → S52OMKJQ.js} +2 -2
- package/dist/cdn/S5M6I2QL.js +2 -0
- package/dist/cdn/{S5T6XTRV.js → SOG262WW.js} +2 -2
- package/dist/cdn/{6VFEED45.js → SR3TBOJY.js} +2 -2
- package/dist/cdn/{3G26WBEK.js → SVYY36W2.js} +2 -2
- package/dist/cdn/{KKD3ZAX7.js → SYNWLBAF.js} +2 -2
- package/dist/cdn/{AI6346MJ.js → T2AUH4ME.js} +2 -2
- package/dist/cdn/{UHQN4ZKV.js → T2HTSGVS.js} +2 -2
- package/dist/cdn/T3ZUZZY2.js +2 -0
- package/dist/cdn/T4YNKW5K.js +6 -0
- package/dist/cdn/{33BRQKI6.js → TA4G2LVC.js} +2 -2
- package/dist/cdn/{H6RQVSYM.js → TAVTDQ6S.js} +1 -1
- package/dist/cdn/{ZUCC43DN.js → TIIYEBB2.js} +1 -1
- package/dist/cdn/{QZ5SQVOZ.js → TKEKWLBE.js} +2 -2
- package/dist/cdn/{ZB5LSQCI.js → TKPHDVSX.js} +2 -2
- package/dist/cdn/{DNFQPV52.js → TOIOFT2S.js} +2 -2
- package/dist/cdn/{KFZFVK3W.js → TVVA6FEQ.js} +2 -2
- package/dist/cdn/{Q42IHUZ3.js → TWKY4BKI.js} +2 -2
- package/dist/cdn/{45R5XOFL.js → TXFIQJHJ.js} +2 -2
- package/dist/cdn/UH3YO32A.js +2 -0
- package/dist/cdn/{LW6VG5BJ.js → UNPBOORD.js} +2 -2
- package/dist/cdn/{QGSV4ECO.js → UVUWGKLM.js} +2 -2
- package/dist/cdn/{R7SJNYNM.js → V5J7KWVQ.js} +2 -2
- package/dist/cdn/{H5EGZU2S.js → VFCQQ2QW.js} +1 -1
- package/dist/cdn/{U2T7AGOO.js → VIBWCDPT.js} +2 -2
- package/dist/cdn/{DITC5ENP.js → VJH3R5OS.js} +2 -2
- package/dist/cdn/{ERQORLO4.js → VK74BPIN.js} +2 -2
- package/dist/cdn/{TKZNHPOT.js → VQR7ACO5.js} +2 -2
- package/dist/cdn/{JZKEFFFC.js → VTV2VG4H.js} +2 -2
- package/dist/cdn/{IF6VZF56.js → VU6OVSPO.js} +2 -2
- package/dist/cdn/{DSXNVNHP.js → VVFPLSXK.js} +2 -2
- package/dist/cdn/W52HXAM3.js +2 -0
- package/dist/cdn/{NQOXXF5T.js → W7BJ4EJL.js} +2 -2
- package/dist/cdn/{CJ2MVXSJ.js → W7SAG4KR.js} +2 -2
- package/dist/cdn/{2AXSYZEN.js → WCI43GIC.js} +2 -2
- package/dist/cdn/{FUBZOMVG.js → WFTDQL2F.js} +2 -2
- package/dist/cdn/{FRKDR2KF.js → WQCBBI46.js} +2 -2
- package/dist/cdn/{NFD5QRK7.js → WYBJRCXS.js} +2 -2
- package/dist/cdn/{NKGAHXNJ.js → XUZB7XNL.js} +3 -3
- package/dist/cdn/Y735OZSU.js +2 -0
- package/dist/cdn/{EIKXKAAA.js → YEFVOAFD.js} +2 -2
- package/dist/cdn/{ML3XEYX7.js → YQITW2XJ.js} +2 -2
- package/dist/cdn/{UYUJZDIZ.js → Z42TYXEQ.js} +2 -2
- package/dist/cdn/{MZWBKK5Y.js → Z5PSDQLD.js} +2 -2
- package/dist/cdn/{UXE4ASGX.js → ZPFMMHAW.js} +2 -2
- package/dist/cdn/assets/arcade-debugger-output/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/arcade-debugger-output/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/arcade-debugger-output/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/arcade-debugger-output/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/arcade-debugger-output/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/arcade-debugger-output/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/arcade-debugger-output/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/arcade-debugger-output/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/arcade-debugger-output/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/arcade-debugger-output/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/arcade-debugger-output/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/arcade-debugger-output/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/arcade-debugger-output/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/arcade-debugger-output/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/arcade-debugger-output/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/arcade-debugger-output/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/arcade-debugger-output/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/arcade-debugger-output/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/arcade-debugger-output/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/arcade-debugger-output/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/arcade-debugger-output/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/arcade-debugger-output/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/arcade-debugger-output/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/arcade-debugger-output/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/arcade-debugger-output/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/arcade-debugger-output/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/arcade-debugger-output/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/arcade-debugger-output/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/arcade-debugger-output/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/arcade-debugger-output/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/arcade-debugger-output/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/arcade-debugger-output/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/arcade-debugger-output/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/arcade-debugger-output/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/arcade-debugger-output/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/arcade-debugger-output/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/arcade-debugger-output/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/arcade-debugger-output/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/arcade-debugger-output/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/arcade-debugger-output/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/assets/code-editor/sql-expr.worker.js +4585 -4421
- package/dist/cdn/index.js +2 -2
- package/dist/chunks/ArcadeDebuggerPreviewTabsState.js +1 -1
- package/dist/chunks/arcade-defaults.js +96 -103
- 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/bigquery.js +1 -1
- package/dist/chunks/colorize.js +1 -1
- package/dist/chunks/debugger-value-components.js +1 -1
- package/dist/chunks/debugger-value-styles.js +1 -1
- package/dist/chunks/fields.js +1 -1
- package/dist/chunks/functional.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/oracle.js +1 -1
- package/dist/chunks/postgres.js +1 -1
- package/dist/chunks/runtime.js +2 -2
- package/dist/chunks/setup-monaco-theme.js +35 -68
- package/dist/chunks/sql-expr-defaults.js +1 -1
- package/dist/chunks/sql-expr-mode.js +74 -62
- package/dist/chunks/sql-expr-service-accessors.js +36 -3
- package/dist/chunks/sql-layer-defaults.js +1 -1
- package/dist/chunks/sql-layer-mode.js +1 -1
- package/dist/chunks/sqlServer.js +1 -1
- package/dist/chunks/useT9n.js +1 -1
- package/dist/chunks/utilities.js +1 -1
- package/dist/chunks/utils.js +1 -1
- package/dist/chunks/utils2.js +1 -1
- package/dist/components/arcgis-arcade-coding-assistant/customElement.js +23 -24
- package/dist/components/arcgis-arcade-debugger-console/customElement.js +1 -1
- package/dist/components/arcgis-arcade-debugger-output/customElement.js +9 -9
- package/dist/components/arcgis-arcade-editor/customElement.d.ts +12 -1
- package/dist/components/arcgis-arcade-editor/customElement.js +105 -105
- 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 +13 -12
- package/dist/components/arcgis-code-editor-shell/customElement.js +1 -1
- package/dist/components/arcgis-code-viewer/customElement.js +3 -2
- package/dist/components/arcgis-editor-variables/customElement.js +1 -1
- package/dist/components/arcgis-language-api-panel/customElement.js +1 -1
- package/dist/components/arcgis-sql-expression-editor/customElement.d.ts +2 -0
- package/dist/components/arcgis-sql-expression-editor/customElement.js +14 -8
- package/dist/components/arcgis-sql-layer-editor/customElement.js +1 -1
- package/dist/components/types.d.ts +11 -0
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/index.js +1 -1
- package/dist/loader.js +7 -7
- package/dist/types/lumina.d.ts +1 -1
- package/dist/types/preact.d.ts +1 -1
- package/dist/types/react.d.ts +1 -1
- package/dist/types/stencil.d.ts +1 -1
- package/package.json +9 -9
- package/dist/cdn/DBAL7LSK.js +0 -2
- package/dist/cdn/EDJMOEXG.js +0 -2
- package/dist/cdn/FFLWFFHU.js +0 -2
- package/dist/cdn/FQWGIGBG.js +0 -2
- package/dist/cdn/G4VQ7X3L.js +0 -2
- package/dist/cdn/M4ASZPOM.js +0 -2
- package/dist/cdn/OKTFDNZ2.js +0 -2
- package/dist/cdn/PY2Q5GGO.js +0 -2
- package/dist/cdn/SQQXRZAR.js +0 -2
- package/dist/cdn/XMKMX4RT.js +0 -2
- package/dist/cdn/XUI74PBQ.js +0 -2
- package/dist/cdn/YCA4A2EF.js +0 -6
- package/dist/cdn/YG3C4FVJ.js +0 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/
|
|
2
|
-
import {
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
+
import { languages 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";
|
|
@@ -8,98 +8,65 @@ import "monaco-editor/editor/common/languages/supports/tokenization.js";
|
|
|
8
8
|
import "monaco-editor/base/browser/dom.js";
|
|
9
9
|
import "monaco-editor/editor/browser/editorDom.js";
|
|
10
10
|
import "monaco-editor/editor/browser/controller/mouseTarget.js";
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
11
|
+
import { a as s, m as g, g as d } from "./sql-expr-service-accessors.js";
|
|
12
|
+
import { b as o } from "./arcade-defaults.js";
|
|
13
|
+
import { g as m } from "./arcade-service-accessors.js";
|
|
14
14
|
import { a } from "./sql-expr-defaults.js";
|
|
15
|
-
import {
|
|
16
|
-
import { t as
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
"arcgis-sql-expression",
|
|
20
|
-
"sql-layer-sql-server",
|
|
21
|
-
"sql-layer-postgres",
|
|
22
|
-
"sql-layer-bigquery"
|
|
23
|
-
], i = /* @__PURE__ */ new Set(), g = /* @__PURE__ */ new Map();
|
|
24
|
-
function c(e) {
|
|
25
|
-
let r = g.get(e);
|
|
26
|
-
return r || (r = Promise.withResolvers(), g.set(e, r)), r;
|
|
27
|
-
}
|
|
28
|
-
function u(e) {
|
|
29
|
-
c(e).resolve();
|
|
30
|
-
}
|
|
31
|
-
function $(e) {
|
|
32
|
-
return k.includes(e) ? c(e).promise : Promise.resolve();
|
|
33
|
-
}
|
|
34
|
-
function m(e, r) {
|
|
35
|
-
return () => {
|
|
36
|
-
i.has(e) || i.add(e), r();
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
async function A(e) {
|
|
40
|
-
if (i.has(e))
|
|
41
|
-
return;
|
|
42
|
-
(await d()).createModel("", e, p.parse("")).dispose();
|
|
43
|
-
}
|
|
44
|
-
s.register({
|
|
45
|
-
id: t.languageId,
|
|
15
|
+
import { i as p } from "./monaco-importer.js";
|
|
16
|
+
import { t as c } from "./monaco-theme.js";
|
|
17
|
+
t.register({
|
|
18
|
+
id: o.languageId,
|
|
46
19
|
aliases: ["Arcade", "arcade"],
|
|
47
20
|
extensions: [".arc"],
|
|
48
21
|
mimetypes: ["application/arcade"]
|
|
49
22
|
});
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
e.setupMode(
|
|
23
|
+
t.onLanguage(
|
|
24
|
+
o.languageId,
|
|
25
|
+
s(o.languageId, () => {
|
|
26
|
+
m().then((e) => {
|
|
27
|
+
e.setupMode(o), g(o.languageId);
|
|
55
28
|
}).catch((e) => {
|
|
56
29
|
throw e;
|
|
57
30
|
});
|
|
58
31
|
})
|
|
59
32
|
);
|
|
60
|
-
|
|
33
|
+
t.register({
|
|
61
34
|
id: a.languageId,
|
|
62
35
|
aliases: ["EsiSqlExpression", "sql-expression"],
|
|
63
36
|
extensions: [".sql-expression"],
|
|
64
37
|
mimetypes: ["application/sql-expression"]
|
|
65
38
|
});
|
|
66
|
-
|
|
39
|
+
t.onLanguage(
|
|
67
40
|
a.languageId,
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
e.setupMode(a),
|
|
41
|
+
s(a.languageId, () => {
|
|
42
|
+
d().then((e) => {
|
|
43
|
+
e.setupMode(a), g(a.languageId);
|
|
71
44
|
}).catch((e) => {
|
|
72
45
|
throw e;
|
|
73
46
|
});
|
|
74
47
|
})
|
|
75
48
|
);
|
|
76
|
-
|
|
77
|
-
function
|
|
78
|
-
|
|
79
|
-
["light", "dark"].forEach((
|
|
80
|
-
const
|
|
81
|
-
e.defineTheme(
|
|
82
|
-
base:
|
|
49
|
+
u();
|
|
50
|
+
function u() {
|
|
51
|
+
p().then((e) => {
|
|
52
|
+
["light", "dark"].forEach((n) => {
|
|
53
|
+
const i = n === "light" ? "vs" : "vs-dark", r = c[`${n}-theme`];
|
|
54
|
+
e.defineTheme(i, {
|
|
55
|
+
base: i,
|
|
83
56
|
inherit: !0,
|
|
84
57
|
rules: [
|
|
85
|
-
{ token: "comment.arcgis", foreground:
|
|
86
|
-
{ token: "constant.arcgis", foreground:
|
|
87
|
-
{ token: "keyword.arcgis", foreground:
|
|
88
|
-
{ token: "identifier.arcgis", foreground:
|
|
89
|
-
{ token: "number.arcgis", foreground:
|
|
90
|
-
{ token: "string.arcgis", foreground:
|
|
91
|
-
{ token: "operator.arcgis", foreground:
|
|
92
|
-
{ token: "predefined.arcgis", foreground:
|
|
93
|
-
{ token: "date.arcgis", foreground:
|
|
58
|
+
{ token: "comment.arcgis", foreground: r.comment },
|
|
59
|
+
{ token: "constant.arcgis", foreground: r.constant },
|
|
60
|
+
{ token: "keyword.arcgis", foreground: r.keyword },
|
|
61
|
+
{ token: "identifier.arcgis", foreground: r.identifier },
|
|
62
|
+
{ token: "number.arcgis", foreground: r.number },
|
|
63
|
+
{ token: "string.arcgis", foreground: r.string },
|
|
64
|
+
{ token: "operator.arcgis", foreground: r.operator },
|
|
65
|
+
{ token: "predefined.arcgis", foreground: r.predefined },
|
|
66
|
+
{ token: "date.arcgis", foreground: r.date }
|
|
94
67
|
],
|
|
95
68
|
colors: {}
|
|
96
69
|
});
|
|
97
70
|
});
|
|
98
71
|
});
|
|
99
72
|
}
|
|
100
|
-
export {
|
|
101
|
-
m as a,
|
|
102
|
-
u as m,
|
|
103
|
-
A as s,
|
|
104
|
-
$ as w
|
|
105
|
-
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
2
|
import { e as c, g as P } from "./utils2.js";
|
|
3
3
|
import { CompletionItemKind as h, InsertTextFormat as g, InsertTextMode as F } from "vscode-languageserver-types";
|
|
4
4
|
import { i as b, L as w, E as x } from "./language-defaults-base.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/
|
|
2
|
-
import { languages as
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
+
import { languages as l, Emitter 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";
|
|
@@ -8,13 +8,13 @@ import "monaco-editor/editor/common/languages/supports/tokenization.js";
|
|
|
8
8
|
import "monaco-editor/base/browser/dom.js";
|
|
9
9
|
import "monaco-editor/editor/browser/editorDom.js";
|
|
10
10
|
import "monaco-editor/editor/browser/controller/mouseTarget.js";
|
|
11
|
-
import { i as
|
|
11
|
+
import { i as h } from "./monaco-importer.js";
|
|
12
12
|
import { a as d } from "./sql-expr-defaults.js";
|
|
13
|
-
import { debounce as
|
|
14
|
-
import { rethrowError as
|
|
13
|
+
import { debounce as T } from "@arcgis/toolkit/function";
|
|
14
|
+
import { rethrowError as u } from "@arcgis/toolkit/log";
|
|
15
15
|
import { g as f } from "./sql-expr-service-accessors.js";
|
|
16
|
-
let
|
|
17
|
-
class
|
|
16
|
+
let E = Promise.withResolvers();
|
|
17
|
+
class m {
|
|
18
18
|
constructor(e) {
|
|
19
19
|
this._defaults = e, this._worker = null, this._client = null, this._configChangeListener = this._defaults.onDidChange(() => this.stopWorker());
|
|
20
20
|
}
|
|
@@ -22,27 +22,27 @@ class _ {
|
|
|
22
22
|
this._configChangeListener.dispose(), this.stopWorker();
|
|
23
23
|
}
|
|
24
24
|
stopWorker() {
|
|
25
|
-
this._worker && (this._worker.dispose(), this._worker = null,
|
|
25
|
+
this._worker && (this._worker.dispose(), this._worker = null, E = Promise.withResolvers()), this._client = null;
|
|
26
26
|
}
|
|
27
27
|
/**
|
|
28
28
|
* Wait for the worker to be ready.
|
|
29
29
|
* @returns A promise that resolves when the worker is ready.
|
|
30
30
|
*/
|
|
31
31
|
static async waitForWorker() {
|
|
32
|
-
return await
|
|
32
|
+
return await E.promise;
|
|
33
33
|
}
|
|
34
34
|
async _getClientProxy() {
|
|
35
|
-
const e = await
|
|
35
|
+
const e = await h();
|
|
36
36
|
if (!this._client) {
|
|
37
|
-
const { languageId: t } = this._defaults,
|
|
38
|
-
if (!
|
|
37
|
+
const { languageId: t } = this._defaults, r = window.MonacoEnvironment?.getWorker;
|
|
38
|
+
if (!r)
|
|
39
39
|
throw new Error(
|
|
40
40
|
"MonacoEnvironment.getWorker is not configured. Call setupMonacoEnvironment(...) before creating SQL Expression workers."
|
|
41
41
|
);
|
|
42
42
|
this._worker = e.createWebWorker({
|
|
43
|
-
worker:
|
|
43
|
+
worker: r("SqlExprWorker", t),
|
|
44
44
|
host: this._defaults.workerHost
|
|
45
|
-
}),
|
|
45
|
+
}), E.resolve(this._worker), this._client = this._worker.getProxy();
|
|
46
46
|
}
|
|
47
47
|
return await this._client;
|
|
48
48
|
}
|
|
@@ -145,7 +145,7 @@ const N = [
|
|
|
145
145
|
"SUBSTRING",
|
|
146
146
|
"TRIM",
|
|
147
147
|
"UPPER"
|
|
148
|
-
],
|
|
148
|
+
], x = {
|
|
149
149
|
comments: {
|
|
150
150
|
lineComment: "--",
|
|
151
151
|
blockComment: ["/*", "*/"]
|
|
@@ -169,7 +169,7 @@ const N = [
|
|
|
169
169
|
{ open: '"', close: '"' },
|
|
170
170
|
{ open: "'", close: "'" }
|
|
171
171
|
]
|
|
172
|
-
},
|
|
172
|
+
}, R = {
|
|
173
173
|
defaultToken: "",
|
|
174
174
|
tokenPostfix: ".arcgis",
|
|
175
175
|
ignoreCase: !0,
|
|
@@ -252,91 +252,100 @@ class M {
|
|
|
252
252
|
}
|
|
253
253
|
async provideCompletionItems(e, t) {
|
|
254
254
|
try {
|
|
255
|
-
const
|
|
255
|
+
const r = await this._worker(e.uri), i = e.getWordUntilPosition(t), s = {
|
|
256
256
|
startLineNumber: t.lineNumber,
|
|
257
257
|
endLineNumber: t.lineNumber,
|
|
258
|
-
startColumn:
|
|
259
|
-
endColumn:
|
|
258
|
+
startColumn: i.startColumn,
|
|
259
|
+
endColumn: i.endColumn
|
|
260
260
|
}, c = this._defaults.getApiContextForModel(e.uri);
|
|
261
|
-
return await
|
|
262
|
-
} catch (
|
|
263
|
-
return
|
|
261
|
+
return await r.doComplete(e.uri.toString(), s, t, c);
|
|
262
|
+
} catch (r) {
|
|
263
|
+
return u("SqlExprCompletionProvider")(r), { suggestions: [] };
|
|
264
264
|
}
|
|
265
265
|
}
|
|
266
266
|
}
|
|
267
|
+
class D {
|
|
268
|
+
constructor(e) {
|
|
269
|
+
this._worker = e;
|
|
270
|
+
}
|
|
271
|
+
async provideDocumentFormattingEdits(e) {
|
|
272
|
+
const t = await this._worker(e.uri), i = (await h()).tokenize(e.getValue(), e.getLanguageId());
|
|
273
|
+
return await t.doFormat(e.uri.toString(), i);
|
|
274
|
+
}
|
|
275
|
+
}
|
|
267
276
|
class b {
|
|
268
277
|
constructor(e, t, {
|
|
269
|
-
defaults:
|
|
270
|
-
diagnosticService:
|
|
278
|
+
defaults: r,
|
|
279
|
+
diagnosticService: i
|
|
271
280
|
}) {
|
|
272
|
-
this._languageId = e, this._worker = t, this._disposables = [], this._modelListeners = /* @__PURE__ */ new Map(), this._diagnosticsService =
|
|
281
|
+
this._languageId = e, this._worker = t, this._disposables = [], this._modelListeners = /* @__PURE__ */ new Map(), this._diagnosticsService = i, this._defaults = r, h().then((s) => {
|
|
273
282
|
const c = (o) => {
|
|
274
|
-
const
|
|
275
|
-
if (
|
|
283
|
+
const n = o.getLanguageId();
|
|
284
|
+
if (n !== this._languageId)
|
|
276
285
|
return;
|
|
277
|
-
const
|
|
278
|
-
this._doValidate(o,
|
|
286
|
+
const g = T(() => {
|
|
287
|
+
this._doValidate(o, n).catch((I) => {
|
|
279
288
|
throw I;
|
|
280
289
|
});
|
|
281
|
-
}),
|
|
282
|
-
this._modelListeners.set(o.uri.toString(), [
|
|
283
|
-
},
|
|
284
|
-
const
|
|
290
|
+
}), _ = o.onDidChangeContent(g), C = o.onDidChangeAttached(g);
|
|
291
|
+
this._modelListeners.set(o.uri.toString(), [_, C]), this._doValidate(o, n).catch(u("SqlExprDiagnosticsAdapter"));
|
|
292
|
+
}, p = (o) => {
|
|
293
|
+
const n = o.uri.toString();
|
|
285
294
|
s.setModelMarkers(o, this._languageId, []);
|
|
286
|
-
const
|
|
287
|
-
if (
|
|
288
|
-
for (;
|
|
289
|
-
|
|
290
|
-
this._modelListeners.delete(
|
|
295
|
+
const g = this._modelListeners.get(n);
|
|
296
|
+
if (g) {
|
|
297
|
+
for (; g.length; )
|
|
298
|
+
g.pop()?.dispose();
|
|
299
|
+
this._modelListeners.delete(n);
|
|
291
300
|
}
|
|
292
301
|
};
|
|
293
|
-
this._disposables.push(s.onDidCreateModel(c)), this._disposables.push(s.onWillDisposeModel((o) =>
|
|
302
|
+
this._disposables.push(s.onDidCreateModel(c)), this._disposables.push(s.onWillDisposeModel((o) => p(o))), this._disposables.push(
|
|
294
303
|
s.onDidChangeModelLanguage((o) => {
|
|
295
|
-
|
|
304
|
+
p(o.model), c(o.model);
|
|
296
305
|
})
|
|
297
306
|
), this._disposables.push(
|
|
298
|
-
|
|
307
|
+
r.onDidChange(() => {
|
|
299
308
|
s.getModels().forEach((o) => {
|
|
300
|
-
o.getLanguageId() === this._languageId && (
|
|
309
|
+
o.getLanguageId() === this._languageId && (p(o), c(o));
|
|
301
310
|
});
|
|
302
311
|
})
|
|
303
312
|
), this._disposables.push(
|
|
304
|
-
|
|
305
|
-
s.getModels().forEach((
|
|
306
|
-
|
|
313
|
+
r.onModelContextDidChange((o) => {
|
|
314
|
+
s.getModels().forEach((n) => {
|
|
315
|
+
n.getLanguageId() === this._languageId && n.uri.toString() === o && this._doValidate(n, this._languageId).catch(u("SqlExprDiagnosticsAdapter"));
|
|
307
316
|
});
|
|
308
317
|
})
|
|
309
318
|
), this._disposables.push({
|
|
310
319
|
dispose: () => {
|
|
311
|
-
this._modelListeners.forEach((o) => o.forEach((
|
|
320
|
+
this._modelListeners.forEach((o) => o.forEach((n) => n.dispose())), this._modelListeners.clear();
|
|
312
321
|
}
|
|
313
322
|
}), s.getModels().forEach(c);
|
|
314
323
|
});
|
|
315
324
|
}
|
|
316
325
|
async _doValidate(e, t) {
|
|
317
|
-
const
|
|
326
|
+
const r = await h();
|
|
318
327
|
if (e.isAttachedToEditor())
|
|
319
328
|
try {
|
|
320
|
-
const
|
|
321
|
-
this._diagnosticsService.fireDiagnosticsChange(e.uri, c),
|
|
322
|
-
} catch (
|
|
323
|
-
|
|
329
|
+
const i = await this._worker(e.uri), s = this._defaults.getApiContextForModel(e.uri), c = await i.doValidation(e.uri.toString(), s);
|
|
330
|
+
this._diagnosticsService.fireDiagnosticsChange(e.uri, c), r.setModelMarkers(e, t, c);
|
|
331
|
+
} catch (i) {
|
|
332
|
+
u("SqlExprDiagnosticsAdapter")(i);
|
|
324
333
|
}
|
|
325
334
|
}
|
|
326
335
|
}
|
|
327
|
-
let
|
|
336
|
+
let w;
|
|
328
337
|
async function Z(...a) {
|
|
329
|
-
return await
|
|
330
|
-
if (!
|
|
338
|
+
return await m.waitForWorker(), await new Promise((e, t) => {
|
|
339
|
+
if (!w) {
|
|
331
340
|
t(new Error("sql expression worker not registered!"));
|
|
332
341
|
return;
|
|
333
342
|
}
|
|
334
|
-
e(
|
|
343
|
+
e(w(...a));
|
|
335
344
|
});
|
|
336
345
|
}
|
|
337
|
-
class
|
|
346
|
+
class O {
|
|
338
347
|
constructor() {
|
|
339
|
-
this._onDiagnosticsChange = new
|
|
348
|
+
this._onDiagnosticsChange = new S();
|
|
340
349
|
}
|
|
341
350
|
/**
|
|
342
351
|
* An event to signal changes to the diagnostics.
|
|
@@ -354,15 +363,18 @@ class D {
|
|
|
354
363
|
this._onDiagnosticsChange.fire({ uri: e, diagnostics: t });
|
|
355
364
|
}
|
|
356
365
|
}
|
|
357
|
-
const k = new
|
|
366
|
+
const k = new O();
|
|
358
367
|
async function X() {
|
|
359
368
|
return await f(), k;
|
|
360
369
|
}
|
|
361
370
|
function $(a) {
|
|
362
|
-
const e = new
|
|
363
|
-
|
|
364
|
-
const
|
|
365
|
-
|
|
371
|
+
const e = new m(a), t = async (...i) => await e.getLanguageServiceWorker(...i);
|
|
372
|
+
w = t, l.setMonarchTokensProvider(d.languageId, R), l.setLanguageConfiguration(d.languageId, x);
|
|
373
|
+
const r = new M(t, d);
|
|
374
|
+
l.registerCompletionItemProvider(d.languageId, r), l.registerDocumentFormattingEditProvider(
|
|
375
|
+
d.languageId,
|
|
376
|
+
new D(t)
|
|
377
|
+
), new b(a.languageId, t, {
|
|
366
378
|
defaults: a,
|
|
367
379
|
diagnosticService: k
|
|
368
380
|
});
|
|
@@ -1,7 +1,40 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/
|
|
2
|
-
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
+
import { i as a } from "./monaco-importer.js";
|
|
3
|
+
import { Uri as n } from "monaco-editor";
|
|
4
|
+
const i = [
|
|
5
|
+
"arcade",
|
|
6
|
+
"arcgis-sql-expression",
|
|
7
|
+
"sql-layer-sql-server",
|
|
8
|
+
"sql-layer-postgres",
|
|
9
|
+
"sql-layer-bigquery"
|
|
10
|
+
], s = /* @__PURE__ */ new Set(), t = /* @__PURE__ */ new Map();
|
|
11
|
+
function o(e) {
|
|
12
|
+
let r = t.get(e);
|
|
13
|
+
return r || (r = Promise.withResolvers(), t.set(e, r)), r;
|
|
14
|
+
}
|
|
15
|
+
function g(e) {
|
|
16
|
+
o(e).resolve();
|
|
17
|
+
}
|
|
18
|
+
function m(e) {
|
|
19
|
+
return i.includes(e) ? o(e).promise : Promise.resolve();
|
|
20
|
+
}
|
|
21
|
+
function f(e, r) {
|
|
22
|
+
return () => {
|
|
23
|
+
s.has(e) || s.add(e), r();
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
async function l(e) {
|
|
27
|
+
if (s.has(e))
|
|
28
|
+
return;
|
|
29
|
+
(await a()).createModel("", e, n.parse("")).dispose();
|
|
30
|
+
}
|
|
31
|
+
async function p() {
|
|
3
32
|
return await import("./sql-expr-mode.js");
|
|
4
33
|
}
|
|
5
34
|
export {
|
|
6
|
-
|
|
35
|
+
f as a,
|
|
36
|
+
p as g,
|
|
37
|
+
g as m,
|
|
38
|
+
l as s,
|
|
39
|
+
m as w
|
|
7
40
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
2
|
import { fetchT9nStringsBundle as v } from "@arcgis/toolkit/intl";
|
|
3
3
|
import { g as C } from "./runtime.js";
|
|
4
4
|
import { D as T, q as M, n as L, a as F, g as V, b as w, c as N, L as $, e as k, E as _, f as x } from "./language-defaults-base.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
2
|
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";
|
package/dist/chunks/sqlServer.js
CHANGED
package/dist/chunks/useT9n.js
CHANGED
package/dist/chunks/utilities.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
2
|
import { createFilterExpression as d } from "@arcgis/toolkit/string";
|
|
3
3
|
import { format as f } from "@arcgis/arcade-languageservice";
|
|
4
4
|
import { log as g } from "@arcgis/toolkit/log";
|
package/dist/chunks/utils.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
2
|
import C from "@arcgis/core/config.js";
|
|
3
3
|
import { version as I, fullVersion as E } from "@arcgis/core/kernel.js";
|
|
4
4
|
import { log as y } from "@arcgis/toolkit/log";
|
package/dist/chunks/utils2.js
CHANGED