@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,10 +1,10 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
2
|
import { g as N, c as z } from "../../chunks/runtime.js";
|
|
3
|
-
import { css as U, html as d, nothing as
|
|
3
|
+
import { css as U, html as d, nothing as B } from "lit";
|
|
4
4
|
import { i as H } from "../../chunks/monaco-importer.js";
|
|
5
5
|
import { LitElement as V, createEvent as R, safeClassMap as P } from "@arcgis/lumina";
|
|
6
6
|
import { generateGuid as G } from "@arcgis/toolkit/string";
|
|
7
|
-
import { i as A, e as
|
|
7
|
+
import { i as A, e as C, c as m, D as W } from "../../chunks/arcade-executor.js";
|
|
8
8
|
import { s as j, a as Q } from "../../chunks/arcade-service-accessors.js";
|
|
9
9
|
import { b as y } from "../../chunks/arcade-defaults.js";
|
|
10
10
|
import { setArcadeAskAiBinding as w, arcadeAskAiCommandId as Y, arcadeQuickFixKind as J } from "../../chunks/arcade-mode.js";
|
|
@@ -15,15 +15,15 @@ import { g as q } from "../../chunks/utils.js";
|
|
|
15
15
|
import { rethrowError as l } from "@arcgis/toolkit/log";
|
|
16
16
|
import { watch as v } from "@arcgis/core/core/reactiveUtils.js";
|
|
17
17
|
import f from "@arcgis/core/core/Accessor.js";
|
|
18
|
-
import { property as
|
|
18
|
+
import { property as r, subclass as S } from "@arcgis/core/core/accessorSupport/decorators.js";
|
|
19
19
|
import { A as M } from "../../chunks/ArcadeDebuggerPreviewTabsState.js";
|
|
20
20
|
import { r as ee } from "../../chunks/utilities.js";
|
|
21
21
|
import { Range as I, KeyCode as F, KeyMod as O, Uri as te } from "monaco-editor";
|
|
22
22
|
const ie = U`: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:last-child{border-inline-end-width:0px}calcite-action-group:not(:first-child){padding-inline-start:var(--calcite-spacing-sm)}}.bottom-action-bar.is-collapsed{border-bottom:0}.bottom-action-bar{display:flex;.bottom-action-bar__actions{flex:1 1 auto;min-inline-size:0}}`;
|
|
23
|
-
var se = Object.defineProperty,
|
|
24
|
-
for (var
|
|
25
|
-
(
|
|
26
|
-
return s &&
|
|
23
|
+
var se = Object.defineProperty, ne = Object.getOwnPropertyDescriptor, _ = (i, e, t, s) => {
|
|
24
|
+
for (var n = s > 1 ? void 0 : s ? ne(e, t) : e, a = i.length - 1, o; a >= 0; a--)
|
|
25
|
+
(o = i[a]) && (n = (s ? o(e, t, n) : o(n)) || n);
|
|
26
|
+
return s && n && se(e, t, n), n;
|
|
27
27
|
};
|
|
28
28
|
const K = 100;
|
|
29
29
|
let h = class extends f {
|
|
@@ -32,25 +32,25 @@ let h = class extends f {
|
|
|
32
32
|
}
|
|
33
33
|
};
|
|
34
34
|
_([
|
|
35
|
-
|
|
35
|
+
r()
|
|
36
36
|
], h.prototype, "collectionItems", 2);
|
|
37
37
|
_([
|
|
38
|
-
|
|
38
|
+
r()
|
|
39
39
|
], h.prototype, "errorMessage", 2);
|
|
40
40
|
_([
|
|
41
|
-
|
|
41
|
+
r()
|
|
42
42
|
], h.prototype, "expanded", 2);
|
|
43
43
|
_([
|
|
44
|
-
|
|
44
|
+
r()
|
|
45
45
|
], h.prototype, "requestId", 2);
|
|
46
46
|
_([
|
|
47
|
-
|
|
47
|
+
r()
|
|
48
48
|
], h.prototype, "schemaValue", 2);
|
|
49
49
|
_([
|
|
50
|
-
|
|
50
|
+
r()
|
|
51
51
|
], h.prototype, "status", 2);
|
|
52
52
|
_([
|
|
53
|
-
|
|
53
|
+
r()
|
|
54
54
|
], h.prototype, "visibleChildCount", 2);
|
|
55
55
|
h = _([
|
|
56
56
|
S("ArcadeDebuggerLazyTreeNodeState")
|
|
@@ -66,8 +66,8 @@ let k = class extends f {
|
|
|
66
66
|
const s = this.nodes.get(i);
|
|
67
67
|
if (s)
|
|
68
68
|
return s;
|
|
69
|
-
const
|
|
70
|
-
return
|
|
69
|
+
const n = new h();
|
|
70
|
+
return n.expanded = e, this.nodes.set(i, n), e && t && this.loadNode(i, t), n;
|
|
71
71
|
}
|
|
72
72
|
setExpanded(i, e, t) {
|
|
73
73
|
const s = this.ensureNode(i, e, t);
|
|
@@ -99,13 +99,13 @@ let k = class extends f {
|
|
|
99
99
|
const s = this.nodes.get(i);
|
|
100
100
|
if (!s || s.status === "loading" || s.status === "loaded")
|
|
101
101
|
return;
|
|
102
|
-
const
|
|
103
|
-
s.requestId =
|
|
102
|
+
const n = this.generation, a = s.requestId + 1;
|
|
103
|
+
s.requestId = a, s.status = "loading", s.errorMessage = "", s.schemaValue = void 0, s.collectionItems = [], e().then((o) => {
|
|
104
104
|
const u = this.nodes.get(i);
|
|
105
|
-
!u || this.generation !==
|
|
105
|
+
!u || this.generation !== n || u.requestId !== a || (t(u, o), u.status = "loaded");
|
|
106
106
|
}).catch(() => {
|
|
107
|
-
const
|
|
108
|
-
!
|
|
107
|
+
const o = this.nodes.get(i);
|
|
108
|
+
!o || this.generation !== n || o.requestId !== a || (o.status = "error");
|
|
109
109
|
});
|
|
110
110
|
}
|
|
111
111
|
destroyNodes() {
|
|
@@ -117,10 +117,10 @@ let k = class extends f {
|
|
|
117
117
|
k = _([
|
|
118
118
|
S("ArcadeDebuggerLazyTreeState")
|
|
119
119
|
], k);
|
|
120
|
-
var
|
|
121
|
-
for (var
|
|
122
|
-
(
|
|
123
|
-
return s &&
|
|
120
|
+
var ae = Object.defineProperty, oe = Object.getOwnPropertyDescriptor, c = (i, e, t, s) => {
|
|
121
|
+
for (var n = s > 1 ? void 0 : s ? oe(e, t) : e, a = i.length - 1, o; a >= 0; a--)
|
|
122
|
+
(o = i[a]) && (n = (s ? o(e, t, n) : o(n)) || n);
|
|
123
|
+
return s && n && ae(e, t, n), n;
|
|
124
124
|
};
|
|
125
125
|
let b = class extends f {
|
|
126
126
|
constructor(i) {
|
|
@@ -152,22 +152,22 @@ let b = class extends f {
|
|
|
152
152
|
}
|
|
153
153
|
};
|
|
154
154
|
c([
|
|
155
|
-
|
|
155
|
+
r()
|
|
156
156
|
], b.prototype, "phase", 2);
|
|
157
157
|
c([
|
|
158
|
-
|
|
158
|
+
r()
|
|
159
159
|
], b.prototype, "mode", 2);
|
|
160
160
|
c([
|
|
161
|
-
|
|
161
|
+
r()
|
|
162
162
|
], b.prototype, "sessionId", 2);
|
|
163
163
|
c([
|
|
164
|
-
|
|
164
|
+
r()
|
|
165
165
|
], b.prototype, "result", 2);
|
|
166
166
|
c([
|
|
167
|
-
|
|
167
|
+
r()
|
|
168
168
|
], b.prototype, "consoleLogs", 2);
|
|
169
169
|
c([
|
|
170
|
-
|
|
170
|
+
r()
|
|
171
171
|
], b.prototype, "hasExecuted", 2);
|
|
172
172
|
b = c([
|
|
173
173
|
S("ArcadeDebuggerExecutionModel")
|
|
@@ -191,10 +191,10 @@ let D = class extends f {
|
|
|
191
191
|
}
|
|
192
192
|
};
|
|
193
193
|
c([
|
|
194
|
-
|
|
194
|
+
r()
|
|
195
195
|
], D.prototype, "editorBreakpoints", 2);
|
|
196
196
|
c([
|
|
197
|
-
|
|
197
|
+
r()
|
|
198
198
|
], D.prototype, "executionBreakpoints", 2);
|
|
199
199
|
D = c([
|
|
200
200
|
S("ArcadeDebuggerSessionModel")
|
|
@@ -205,10 +205,10 @@ let E = class extends f {
|
|
|
205
205
|
}
|
|
206
206
|
};
|
|
207
207
|
c([
|
|
208
|
-
|
|
208
|
+
r()
|
|
209
209
|
], E.prototype, "openedPanel", 2);
|
|
210
210
|
c([
|
|
211
|
-
|
|
211
|
+
r()
|
|
212
212
|
], E.prototype, "showPanel", 2);
|
|
213
213
|
E = c([
|
|
214
214
|
S("ArcadeDebuggerUiModel")
|
|
@@ -231,10 +231,10 @@ let $ = class extends f {
|
|
|
231
231
|
}
|
|
232
232
|
};
|
|
233
233
|
c([
|
|
234
|
-
|
|
234
|
+
r()
|
|
235
235
|
], $.prototype, "pausedState", 2);
|
|
236
236
|
c([
|
|
237
|
-
|
|
237
|
+
r()
|
|
238
238
|
], $.prototype, "lastPausedState", 2);
|
|
239
239
|
$ = c([
|
|
240
240
|
S("ArcadeDebuggerPausedFrameModel")
|
|
@@ -407,112 +407,112 @@ let g = class extends f {
|
|
|
407
407
|
}
|
|
408
408
|
};
|
|
409
409
|
c([
|
|
410
|
-
|
|
410
|
+
r()
|
|
411
411
|
], g.prototype, "execution", 2);
|
|
412
412
|
c([
|
|
413
|
-
|
|
413
|
+
r()
|
|
414
414
|
], g.prototype, "lazyTreeState", 2);
|
|
415
415
|
c([
|
|
416
|
-
|
|
416
|
+
r()
|
|
417
417
|
], g.prototype, "pausedLine", 2);
|
|
418
418
|
c([
|
|
419
|
-
|
|
419
|
+
r()
|
|
420
420
|
], g.prototype, "pausedFrame", 2);
|
|
421
421
|
c([
|
|
422
|
-
|
|
422
|
+
r()
|
|
423
423
|
], g.prototype, "previewTabsState", 2);
|
|
424
424
|
c([
|
|
425
|
-
|
|
425
|
+
r()
|
|
426
426
|
], g.prototype, "session", 2);
|
|
427
427
|
c([
|
|
428
|
-
|
|
428
|
+
r()
|
|
429
429
|
], g.prototype, "ui", 2);
|
|
430
430
|
g = c([
|
|
431
431
|
S("ArcadeDebuggerStore")
|
|
432
432
|
], g);
|
|
433
|
-
class
|
|
433
|
+
class re {
|
|
434
434
|
#e;
|
|
435
|
-
#
|
|
435
|
+
#n;
|
|
436
436
|
#t;
|
|
437
|
-
constructor(e, t =
|
|
438
|
-
this.#e = e, this.#
|
|
437
|
+
constructor(e, t = C) {
|
|
438
|
+
this.#e = e, this.#n = t;
|
|
439
439
|
}
|
|
440
440
|
start(e) {
|
|
441
441
|
this.cancel({ hidePanel: !1 });
|
|
442
442
|
const t = e.mode === "debug" ? this.#e.startDebug() : this.#e.startRun();
|
|
443
443
|
setTimeout(() => {
|
|
444
|
-
this.#i(t) && this.#
|
|
444
|
+
this.#i(t) && this.#o(e, t);
|
|
445
445
|
}, 0);
|
|
446
446
|
}
|
|
447
447
|
cancel({ hidePanel: e = !0 } = {}) {
|
|
448
448
|
this.#t?.abort(), this.#t = void 0, this.#e.isExecuting && this.#e.cancelExecution({ hidePanel: e });
|
|
449
449
|
}
|
|
450
|
-
async #
|
|
450
|
+
async #o(e, t) {
|
|
451
451
|
let s;
|
|
452
452
|
try {
|
|
453
|
-
const { externalExecutor:
|
|
454
|
-
s =
|
|
455
|
-
} catch (
|
|
456
|
-
const
|
|
457
|
-
s = { type: "failure", error: m(
|
|
453
|
+
const { externalExecutor: n } = e;
|
|
454
|
+
s = n ? await this.#c({ ...e, externalExecutor: n }, t) : await this.#r(e, t);
|
|
455
|
+
} catch (n) {
|
|
456
|
+
const a = n instanceof Error ? n.message : String(n);
|
|
457
|
+
s = { type: "failure", error: m(a, n) };
|
|
458
458
|
}
|
|
459
459
|
this.#d(t, s);
|
|
460
460
|
}
|
|
461
|
-
async #
|
|
461
|
+
async #r(e, t) {
|
|
462
462
|
if (!e.testData)
|
|
463
463
|
return { type: "failure", error: m("Missing test data") };
|
|
464
464
|
const s = await e.editorProfile;
|
|
465
465
|
if (!s)
|
|
466
466
|
return { type: "failure", error: m("Missing editor profile") };
|
|
467
|
-
const
|
|
467
|
+
const n = await this.#n(s.definition, e.script, e.testData, {
|
|
468
468
|
mode: e.mode,
|
|
469
|
-
console: (
|
|
469
|
+
console: (a) => this.#s(t, a),
|
|
470
470
|
breakpoints: e.mode === "debug" ? e.breakpoints : void 0,
|
|
471
|
-
onDebugPause: e.mode === "debug" ? (
|
|
471
|
+
onDebugPause: e.mode === "debug" ? (a, o) => this.#a(t, a, o) : void 0
|
|
472
472
|
});
|
|
473
|
-
return e.mode === "debug" ? A(
|
|
473
|
+
return e.mode === "debug" ? A(n) ? { type: "failure", error: this.#u(n) } : { type: "debug", value: n } : A(n) ? { type: "legacy-run", result: n } : { type: "failure", error: m("Unexpected debug result") };
|
|
474
474
|
}
|
|
475
475
|
async #c(e, t) {
|
|
476
|
-
const { externalExecutor: s } = e,
|
|
477
|
-
this.#t =
|
|
476
|
+
const { externalExecutor: s } = e, n = new AbortController();
|
|
477
|
+
this.#t = n;
|
|
478
478
|
try {
|
|
479
479
|
if (e.mode === "debug") {
|
|
480
|
-
const
|
|
480
|
+
const o = await s.execute({
|
|
481
481
|
mode: "debug",
|
|
482
482
|
script: e.script,
|
|
483
483
|
console: (u) => this.#s(t, u),
|
|
484
|
-
signal:
|
|
484
|
+
signal: n.signal,
|
|
485
485
|
breakpoints: e.breakpoints,
|
|
486
|
-
onDebugPause: (u, x) => this.#
|
|
486
|
+
onDebugPause: (u, x) => this.#a(t, u, x)
|
|
487
487
|
});
|
|
488
|
-
return { type: "debug", value:
|
|
488
|
+
return { type: "debug", value: o.result, timing: o.timing };
|
|
489
489
|
}
|
|
490
|
-
const
|
|
490
|
+
const a = await s.execute({
|
|
491
491
|
mode: "run",
|
|
492
492
|
script: e.script,
|
|
493
|
-
console: (
|
|
494
|
-
signal:
|
|
493
|
+
console: (o) => this.#s(t, o),
|
|
494
|
+
signal: n.signal
|
|
495
495
|
});
|
|
496
|
-
return { type: "run", value:
|
|
497
|
-
} catch (
|
|
498
|
-
const
|
|
499
|
-
return { type: "failure", error: m(
|
|
496
|
+
return { type: "run", value: a.result, timing: a.timing };
|
|
497
|
+
} catch (a) {
|
|
498
|
+
const o = a instanceof Error ? a.message : String(a);
|
|
499
|
+
return { type: "failure", error: m(o, a) };
|
|
500
500
|
} finally {
|
|
501
|
-
this.#t ===
|
|
501
|
+
this.#t === n && (this.#t = void 0);
|
|
502
502
|
}
|
|
503
503
|
}
|
|
504
504
|
#s(e, t) {
|
|
505
505
|
this.#i(e) && this.#e.addConsoleLog(t);
|
|
506
506
|
}
|
|
507
|
-
async #
|
|
507
|
+
async #a(e, t, s) {
|
|
508
508
|
if (!this.#i(e) || !this.#e.isDebugging)
|
|
509
509
|
return;
|
|
510
|
-
const
|
|
510
|
+
const n = Promise.withResolvers();
|
|
511
511
|
return this.#e.pauseDebug({
|
|
512
512
|
line: t.line,
|
|
513
513
|
result: s,
|
|
514
|
-
continue:
|
|
515
|
-
}), await
|
|
514
|
+
continue: n
|
|
515
|
+
}), await n.promise;
|
|
516
516
|
}
|
|
517
517
|
#d(e, t) {
|
|
518
518
|
if (this.#i(e))
|
|
@@ -546,7 +546,7 @@ const ce = {
|
|
|
546
546
|
};
|
|
547
547
|
class de extends V {
|
|
548
548
|
constructor() {
|
|
549
|
-
super(...arguments), this._codeEditorElt = T(), this._arcadeAssistantElt = T(), this._componentReadyDefer = Promise.withResolvers(), this._disposables = [], this._editorProfilePromise = Promise.resolve(void 0), this._focusContinueActionOnPause = !1, this._debuggerState = new g(), this._executionCoordinator = new
|
|
549
|
+
super(...arguments), this._codeEditorElt = T(), this._arcadeAssistantElt = T(), this._componentReadyDefer = Promise.withResolvers(), this._disposables = [], this._editorProfilePromise = Promise.resolve(void 0), this._focusContinueActionOnPause = !1, this._debuggerState = new g(), this._executionCoordinator = new re(this._debuggerState), this.messages = X(), this._modelId = G(), this._openArcadeHelp = () => {
|
|
550
550
|
window.open(W, "Arcade Help");
|
|
551
551
|
}, this._decorations = void 0, this._monacoEditor = Z(H), this._editorOptions = {}, this._toggleSidePanel = (e) => {
|
|
552
552
|
e.currentTarget instanceof HTMLElement && this._setOpenedSidePanel(e.currentTarget.dataset.panelName ?? "none");
|
|
@@ -571,7 +571,7 @@ class de extends V {
|
|
|
571
571
|
}, this._debuggerPausedLineDecoration = void 0, this._preparingArcade = !1, this._arcadeAssistantRemoteState = { shouldRender: !1 }, this._diagnostics = [], this.enableDebugger = !1, this.hideDocumentationActions = !1, this.hideSideBar = !1, this.openedSidePanel = "none", this.script = "", this.sideActionBarExpanded = !1, this.disableAssistant = !1, this.arcgisDiagnosticsChange = R({ bubbles: !1 }), this.arcgisScriptChange = R({ bubbles: !1 });
|
|
572
572
|
}
|
|
573
573
|
static {
|
|
574
|
-
this.properties = { _apiLibrary: 16, _editorProfile: 16, _preparingArcade: 16, _arcadeAssistantRemoteState: 16, _diagnostics: 16, editorInstance: 32, editorOptions: 0, enableDebugger: 5, hideDocumentationActions: 5, hideSideBar: 5, messageOverrides: 0, openedSidePanel: 3, profile: 0, script: 1, sideActionBarExpanded: 7, snippets: 0, suggestions: 0, testData: 0, customPanels: 0, disableAssistant: 5, arcadeAssistant: 0, externalExecutor: 0 };
|
|
574
|
+
this.properties = { _apiLibrary: 16, _editorProfile: 16, _preparingArcade: 16, _arcadeAssistantRemoteState: 16, _diagnostics: 16, editorInstance: 32, editorOptions: 0, enableDebugger: 5, hideDocumentationActions: 5, hideSideBar: 5, messageOverrides: 0, openedSidePanel: 3, profile: 0, script: 1, sideActionBarExpanded: 7, snippets: 0, suggestions: 0, testData: 0, customPanels: 0, disableAssistant: 5, arcadeAssistant: 0, externalExecutor: 0, docsConfig: 0 };
|
|
575
575
|
}
|
|
576
576
|
static {
|
|
577
577
|
this.styles = [ie];
|
|
@@ -601,21 +601,21 @@ class de extends V {
|
|
|
601
601
|
if (!e)
|
|
602
602
|
return { type: "error", value: "Missing editor profile", error: null };
|
|
603
603
|
await this._componentReadyDefer.promise;
|
|
604
|
-
const t = this._codeEditorElt.value?.value, s = await
|
|
604
|
+
const t = this._codeEditorElt.value?.value, s = await C(e.definition, t, this.testData, { mode: "run" });
|
|
605
605
|
return A(s) ? s : { type: "error", value: "Unexpected result", error: null };
|
|
606
606
|
}
|
|
607
607
|
async testRun() {
|
|
608
608
|
try {
|
|
609
609
|
const e = this._codeEditorElt.value?.value ?? this.script;
|
|
610
610
|
if (this.externalExecutor) {
|
|
611
|
-
const { result:
|
|
611
|
+
const { result: a } = await this.externalExecutor.execute({
|
|
612
612
|
mode: "run",
|
|
613
613
|
script: e,
|
|
614
614
|
console: () => {
|
|
615
615
|
},
|
|
616
616
|
signal: new AbortController().signal
|
|
617
617
|
});
|
|
618
|
-
return
|
|
618
|
+
return a;
|
|
619
619
|
}
|
|
620
620
|
const t = this.testData;
|
|
621
621
|
if (!t)
|
|
@@ -624,10 +624,10 @@ class de extends V {
|
|
|
624
624
|
const s = await this._editorProfilePromise;
|
|
625
625
|
if (!s)
|
|
626
626
|
throw new Error("Missing editor profile");
|
|
627
|
-
const
|
|
628
|
-
if (A(
|
|
629
|
-
throw
|
|
630
|
-
return
|
|
627
|
+
const n = await C(s.definition, e, t, { mode: "debug" });
|
|
628
|
+
if (A(n))
|
|
629
|
+
throw n.type === "error" && n.error instanceof Error ? n.error : new Error(n.type === "error" ? n.value : "Unexpected Arcade result");
|
|
630
|
+
return n;
|
|
631
631
|
} catch (e) {
|
|
632
632
|
const t = e instanceof Error ? e.message : String(e);
|
|
633
633
|
return m(t, e);
|
|
@@ -675,16 +675,16 @@ class de extends V {
|
|
|
675
675
|
})), this._canExecute && !this._executeScriptAction && this._addExecuteScriptAction(), this._syncAskAiAction();
|
|
676
676
|
const t = v(() => this._debuggerState.editorBreakpoints, () => {
|
|
677
677
|
this._updateBreakpointsDecorations(), this._updateDebuggerBreakpointContextKey();
|
|
678
|
-
}, { sync: !0 }), s = v(() => this._debuggerState.debuggerLine, () => this._updateDebuggerPausedLineDecoration(), { sync: !0 }),
|
|
678
|
+
}, { sync: !0 }), s = v(() => this._debuggerState.debuggerLine, () => this._updateDebuggerPausedLineDecoration(), { sync: !0 }), n = v(() => this._debuggerState.isPaused, () => {
|
|
679
679
|
!this._debuggerState.isPaused || !this._focusContinueActionOnPause || (this._focusContinueActionOnPause = !1, this.updateComplete.then(() => {
|
|
680
680
|
requestAnimationFrame(() => {
|
|
681
681
|
this.isConnected && this._debuggerState.isPaused && this.el.shadowRoot?.querySelector("#debugger-continue-action")?.setFocus();
|
|
682
682
|
});
|
|
683
683
|
}));
|
|
684
|
-
}, { sync: !0 }),
|
|
684
|
+
}, { sync: !0 }), a = v(() => this._debuggerState.isDebugging, () => {
|
|
685
685
|
this._debuggerState.isDebugging || (this._focusContinueActionOnPause = !1);
|
|
686
|
-
}, { sync: !0 }),
|
|
687
|
-
this._disposables.push({ dispose: () => t.remove() }, { dispose: () => s.remove() }, { dispose: () =>
|
|
686
|
+
}, { sync: !0 }), o = v(() => this._debuggerState.consoleLogs.length, () => this.requestUpdate(), { sync: !0 });
|
|
687
|
+
this._disposables.push({ dispose: () => t.remove() }, { dispose: () => s.remove() }, { dispose: () => n.remove() }, { dispose: () => a.remove() }, { dispose: () => o.remove() }), this._updateDebuggerBreakpointContextKey();
|
|
688
688
|
const u = this.editorInstance?.onMouseDown((p) => this._onEditorMouseDown(p));
|
|
689
689
|
u && this._disposables.push(u);
|
|
690
690
|
const x = this.editorInstance?.onDidChangeModelContent((p) => this._onEditorModelContentChange(p));
|
|
@@ -706,7 +706,7 @@ class de extends V {
|
|
|
706
706
|
if (!this.enableDebugger || !this._debuggerState.editorBreakpoints.length || e.isFlush)
|
|
707
707
|
return;
|
|
708
708
|
const t = ee(this._debuggerState.editorBreakpoints, e.changes);
|
|
709
|
-
t.length === this._debuggerState.editorBreakpoints.length && t.every((s,
|
|
709
|
+
t.length === this._debuggerState.editorBreakpoints.length && t.every((s, n) => s === this._debuggerState.editorBreakpoints[n]) || this._debuggerState.setBreakpoints(t);
|
|
710
710
|
}
|
|
711
711
|
_updateDebuggerPausedLineDecoration() {
|
|
712
712
|
const e = this.editorInstance;
|
|
@@ -764,13 +764,13 @@ class de extends V {
|
|
|
764
764
|
this._debuggerState.setPanel(e);
|
|
765
765
|
}
|
|
766
766
|
async _executeScript(e, t = !1) {
|
|
767
|
-
const s = this.testData,
|
|
768
|
-
!this._codeEditorElt.value || !s && !
|
|
767
|
+
const s = this.testData, n = this.externalExecutor;
|
|
768
|
+
!this._codeEditorElt.value || !s && !n || (this._focusContinueActionOnPause = e === "debug" && t, this._executionCoordinator.start({
|
|
769
769
|
mode: e,
|
|
770
770
|
script: this._codeEditorElt.value?.value ?? this.script,
|
|
771
771
|
testData: s,
|
|
772
772
|
editorProfile: this._editorProfilePromise,
|
|
773
|
-
externalExecutor:
|
|
773
|
+
externalExecutor: n,
|
|
774
774
|
breakpoints: this._debuggerState.debuggerBreakpoints
|
|
775
775
|
}));
|
|
776
776
|
}
|
|
@@ -905,8 +905,8 @@ class de extends V {
|
|
|
905
905
|
renderMainPanel() {
|
|
906
906
|
return d`<arcgis-code-editor slot=editor .editorOptions=${this.editorOptions} .language=${y.languageId} .value=${this.script ?? ""} .modelId=${this._modelId} @arcgisValueChange=${this._onCodeEditorValueChange} ${L(this._codeEditorElt)}></arcgis-code-editor>`;
|
|
907
907
|
}
|
|
908
|
-
renderAction({ id: e, label: t, icon: s, active:
|
|
909
|
-
return d`<calcite-action id=${e ??
|
|
908
|
+
renderAction({ id: e, label: t, icon: s, active: n, panelName: a, iconFlipRtl: o = !1, onClick: u = this._toggleSidePanel }) {
|
|
909
|
+
return d`<calcite-action id=${e ?? B} .text=${t} .textEnabled=${this.sideActionBarExpanded} .icon=${s} .active=${n} @click=${u} data-panel-name=${a ?? B} .iconFlipRtl=${o}></calcite-action>${!this.sideActionBarExpanded && d`<calcite-tooltip .referenceElement=${e}><span>${t}</span></calcite-tooltip>` || ""}`;
|
|
910
910
|
}
|
|
911
911
|
renderSideActionBar() {
|
|
912
912
|
return this.hideSideBar ? null : d`<calcite-action-bar slot=side-action-bar class="side-action-bar" .expanded=${this.sideActionBarExpanded} position=end @calciteActionBarToggle=${this._toggleSideActionBarExpanded}><calcite-action-group>${this.renderAction({
|
|
@@ -956,7 +956,7 @@ class de extends V {
|
|
|
956
956
|
return d`<arcgis-language-api-panel slot=side-panel class=${P(e === "api" ? "" : "hidden")} .loading=${this._preparingArcade} .apiLibrary=${this._apiLibrary} .hideDocumentationActions=${this.hideDocumentationActions} @arcgisInternalItemSelected=${this._insertAsSnippet} @arcgisInternalClosePanel=${this._closeSidePanel} data-panel-name=none .closed=${e !== "api"}></arcgis-language-api-panel><arcgis-editor-variables slot=side-panel class=${P(e === "variables" ? "" : "hidden")} .loading=${this._preparingArcade} .modelId=${this._modelId} @arcgisInternalItemSelected=${this._insertAsText} @arcgisInternalClosePanel=${this._closeSidePanel} data-panel-name=none .variable=${this._editorProfile} .closed=${e !== "variables"} .messageOverrides=${{
|
|
957
957
|
profileempty: this.messages.profileempty,
|
|
958
958
|
profilevariables: this.messages.profilevariables
|
|
959
|
-
}}></arcgis-editor-variables>${this.suggestions?.length && d`<arcgis-arcade-suggestions slot=side-panel class=${P(e === "suggestions" ? "" : "hidden")} .closed=${e !== "suggestions"} .suggestions=${this.suggestions} @arcgisInternalItemSelected=${this._insertAsText} @arcgisInternalClosePanel=${this._closeSidePanel} data-panel-name=none></arcgis-arcade-suggestions>` || ""}${t?.shouldRender && d`<arcgis-arcade-coding-assistant slot=side-panel class=${P(e === "arcade-assistant" ? "" : "hidden")} .closed=${e !== "arcade-assistant"} .insertText=${this._insertText.bind(this)} .closePanel=${this._closeSidePanel} .portalUrl=${t.portalUrl} .serviceUrl=${"serviceUrl" in t ? t.serviceUrl : void 0} .helpBase=${t.helpBase} .promptingEnabled=${this._canPromptWithArcadeAssistant()} .feedbackServiceUrl=${t.feedbackServiceUrl} .editorRef=${this.el} .appVersion=${this.arcadeAssistant?.appVersion} .disableQuestionAnswerLogging=${this.arcadeAssistant?.disableQuestionAnswerLogging} .diagnostics=${this._diagnostics} .isDevEnv=${"isDevEnv" in t ? t.isDevEnv : !1} ${L(this._arcadeAssistantElt)}></arcgis-arcade-coding-assistant>` || ""}${this.customPanels?.map((s) => d`<calcite-flow slot=side-panel class=${P(e === s.id ? "" : "hidden")}>${s?.useFlows ? s.renderer?.({
|
|
959
|
+
}}></arcgis-editor-variables>${this.suggestions?.length && d`<arcgis-arcade-suggestions slot=side-panel class=${P(e === "suggestions" ? "" : "hidden")} .closed=${e !== "suggestions"} .suggestions=${this.suggestions} @arcgisInternalItemSelected=${this._insertAsText} @arcgisInternalClosePanel=${this._closeSidePanel} data-panel-name=none></arcgis-arcade-suggestions>` || ""}${t?.shouldRender && d`<arcgis-arcade-coding-assistant slot=side-panel class=${P(e === "arcade-assistant" ? "" : "hidden")} .closed=${e !== "arcade-assistant"} .insertText=${this._insertText.bind(this)} .closePanel=${this._closeSidePanel} .portalUrl=${t.portalUrl} .serviceUrl=${"serviceUrl" in t ? t.serviceUrl : void 0} .helpBase=${t.helpBase} .promptingEnabled=${this._canPromptWithArcadeAssistant()} .feedbackServiceUrl=${t.feedbackServiceUrl} .editorRef=${this.el} .appVersion=${this.arcadeAssistant?.appVersion} .disableQuestionAnswerLogging=${this.arcadeAssistant?.disableQuestionAnswerLogging} .diagnostics=${this._diagnostics} .isDevEnv=${"isDevEnv" in t ? t.isDevEnv : !1} .docsConfig=${this.docsConfig} ${L(this._arcadeAssistantElt)}></arcgis-arcade-coding-assistant>` || ""}${this.customPanels?.map((s) => d`<calcite-flow slot=side-panel class=${P(e === s.id ? "" : "hidden")}>${s?.useFlows ? s.renderer?.({
|
|
960
960
|
closePanel: this._toggleSidePanel,
|
|
961
961
|
insertText: this._insertText.bind(this),
|
|
962
962
|
closed: e !== s.id,
|
|
@@ -979,19 +979,19 @@ class de extends V {
|
|
|
979
979
|
return d`<arcgis-arcade-results slot=results-panel .openedResultPanel=${e} .loading=${this._debuggerState.isExecuting} .result=${this._debuggerState.resultForLegacyRenderer} .executionTiming=${this._debuggerState.executionTiming} .consoleLogs=${this._debuggerState.consoleLogs} @arcgisInternalOpenedResultPanelChange=${this._onResultPanelChange} @arcgisInternalClosePanel=${this._onExecutionPanelClose}></arcgis-arcade-results>`;
|
|
980
980
|
}
|
|
981
981
|
renderBottomExecutionBody() {
|
|
982
|
-
const { showPanel: e, openedPanel: t, debugResult: s, isExecuting:
|
|
982
|
+
const { showPanel: e, openedPanel: t, debugResult: s, isExecuting: n } = this._debuggerState;
|
|
983
983
|
if (!e)
|
|
984
984
|
return null;
|
|
985
|
-
const
|
|
986
|
-
return this.enableDebugger && t === "debug-console" ? d`<arcgis-arcade-debugger-console slot=results-panel .modelId=${this._modelId} .debuggerStore=${this._debuggerState}></arcgis-arcade-debugger-console>` : t === "output" && s ? d`<arcgis-arcade-debugger-output
|
|
985
|
+
const a = t === "debug-console" ? "output" : t;
|
|
986
|
+
return this.enableDebugger && t === "debug-console" ? d`<arcgis-arcade-debugger-console slot=results-panel .modelId=${this._modelId} .debuggerStore=${this._debuggerState}></arcgis-arcade-debugger-console>` : t === "output" && s ? d`<arcgis-arcade-debugger-output slot=results-panel .debuggerStore=${this._debuggerState} .result=${s}></arcgis-arcade-debugger-output>` : d`<arcgis-arcade-results slot=results-panel class="bottom-results" .openedResultPanel=${a} .loading=${t === "console" && this._debuggerState.isPaused ? !1 : n} .result=${this._debuggerState.resultForLegacyRenderer} .executionTiming=${this._debuggerState.executionTiming} .consoleLogs=${this._debuggerState.consoleLogs} hide-header @arcgisInternalOpenedResultPanelChange=${this._onResultPanelChange}></arcgis-arcade-results>`;
|
|
987
987
|
}
|
|
988
988
|
renderBottomActionBar() {
|
|
989
989
|
if (!this._usesBottomExecutionDrawer)
|
|
990
990
|
return null;
|
|
991
|
-
const { showPanel: e, hasExecuted: t, openedPanel: s, isDebugging:
|
|
992
|
-
return d`<div slot=bottom-action-bar class=${`main-action-bar bottom-action-bar ${e ? "" : "is-collapsed"}`}><calcite-action-bar class="bottom-action-bar__actions" layout=horizontal scale=s expand-toggle-disabled expanded><calcite-action-group scale=s>${this.enableDebugger &&
|
|
991
|
+
const { showPanel: e, hasExecuted: t, openedPanel: s, isDebugging: n, isPaused: a, isExecuting: o } = this._debuggerState, u = this.messages.continue ?? "Continue", x = this.messages.reset ?? "Reset", p = this.messages.stop ?? "Stop";
|
|
992
|
+
return d`<div slot=bottom-action-bar class=${`main-action-bar bottom-action-bar ${e ? "" : "is-collapsed"}`}><calcite-action-bar class="bottom-action-bar__actions" layout=horizontal scale=s expand-toggle-disabled expanded><calcite-action-group scale=s>${this.enableDebugger && n ? d`<calcite-action id=debugger-continue-action .text=${u} icon=forward scale=s .disabled=${!a} @click=${this._continueDebugSession}></calcite-action><calcite-tooltip reference-element=debugger-continue-action placement=top><span>${u}</span></calcite-tooltip><calcite-action id=debugger-reset-action .text=${x} icon=reset scale=s @click=${this._resetDebugSession}></calcite-action><calcite-tooltip reference-element=debugger-reset-action placement=top><span>${x}</span></calcite-tooltip><calcite-action id=debugger-stop-action .text=${p} icon=circle-stop scale=s @click=${this._stopDebugSession}></calcite-action><calcite-tooltip reference-element=debugger-stop-action placement=top><span>${p}</span></calcite-tooltip>` : d`<calcite-action .text=${this.messages.run ?? ""} text-enabled icon=play scale=s .loading=${this._preparingArcade || o} @click=${() => {
|
|
993
993
|
this._executeScript("run").catch(l(this));
|
|
994
|
-
}}></calcite-action>${this.enableDebugger && d`<calcite-action .disabled=${this._debuggerState.editorBreakpoints.length === 0} .text=${this.messages.runanddebug ?? "Run and Debug"} text-enabled icon=debug-script scale=s .loading=${this._preparingArcade ||
|
|
994
|
+
}}></calcite-action>${this.enableDebugger && d`<calcite-action .disabled=${this._debuggerState.editorBreakpoints.length === 0} .text=${this.messages.runanddebug ?? "Run and Debug"} text-enabled icon=debug-script scale=s .loading=${this._preparingArcade || o} @click=${this._runAndDebug}></calcite-action>` || ""}`}</calcite-action-group>${t ? d`<calcite-action-group scale=s><calcite-action .active=${s === "output" && e} .text=${this.messages.output ?? "Output"} text-enabled scale=s icon=list-show-all icon-flip-rtl @click=${() => this._setExecutionPanel("output")}></calcite-action><calcite-action .active=${s === "console" && e} .text=${this.messages.console ?? "Console"} text-enabled scale=s icon=console icon-flip-rtl @click=${() => this._setExecutionPanel("console")}></calcite-action><calcite-action .active=${s === "log" && e} .text=${this.messages.log ?? "Log"} text-enabled scale=s icon=list icon-flip-rtl @click=${() => this._setExecutionPanel("log")} .disabled=${this.enableDebugger && this._debuggerState.mode === "debug"}></calcite-action>${this.enableDebugger && d`<calcite-action .active=${s === "debug-console" && e} .text=${this.messages.debugconsole ?? "Debug console"} text-enabled scale=s icon=debug .disabled=${this._debuggerState.mode !== "debug"} @click=${() => this._setExecutionPanel("debug-console")}></calcite-action>` || ""}</calcite-action-group>` : null}</calcite-action-bar>${e ? d`<calcite-action .text=${this.messages.collapse ?? "Collapse"} scale=s icon=chevrons-down icon-flip-rtl @click=${this._onExecutionPanelClose} slot=actions-end></calcite-action>` : null}</div>`;
|
|
995
995
|
}
|
|
996
996
|
render() {
|
|
997
997
|
return d`<arcgis-code-editor-shell>${this.renderMainActionBar()}${this.renderMainPanel()}${this.renderBottomActionBar()}${this.renderResultsPanel()}${this.renderSidePanel()}${this.renderSideActionBar()}</arcgis-code-editor-shell>`;
|
|
@@ -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 as h } from "../../chunks/runtime.js";
|
|
3
3
|
import { css as g, html as e } from "lit";
|
|
4
4
|
import { LitElement as f, createEvent as u, safeClassMap as o } from "@arcgis/lumina";
|
|
@@ -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 as d } from "../../chunks/runtime.js";
|
|
3
3
|
import { ref as l } from "lit/directives/ref.js";
|
|
4
4
|
import { css as g, html as s, nothing as r } from "lit";
|