@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,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 se } from "../../chunks/runtime.js";
|
|
3
3
|
import { css as ne, html as d } from "lit";
|
|
4
4
|
import { nothing as V, safeClassMap as re, LitElement as ce } from "@arcgis/lumina";
|
|
@@ -22,6 +22,7 @@ import { s as ye } from "../../chunks/fields.js";
|
|
|
22
22
|
import { l as ee, m as te, n as we } from "../../chunks/utils2.js";
|
|
23
23
|
import xe from "@arcgis/core/core/Accessor.js";
|
|
24
24
|
import { property as b, subclass as $e } from "@arcgis/core/core/accessorSupport/decorators.js";
|
|
25
|
+
import "@arcgis/toolkit/type";
|
|
25
26
|
const ke = ne`:host(:not([closed])){container-type:size;--calcite-block-border-color: var(--calcite-color-transparent);box-sizing:border-box;.submission-actions-wrapper{display:flex;flex-direction:column;width:100%;gap:.75rem}.submission-actions{display:flex;flex-direction:row;gap:.5rem;justify-content:space-between}@container (max-width: 380px){.hidden-below-380{display:none}}@container (min-width: 380px){.hidden-above-380{display:none}}.gaps{display:flex;gap:.25rem}.align-inline-end{margin-inline-start:auto}.context-popover p{padding:0 .5rem;font-size:var(--calcite-font-size-sm)}.feedback-content{padding:var(--calcite-spacing-sm);display:flex;flex-direction:column;max-height:75cqb;overflow-y:auto;>*{margin-block-end:.5rem}>*:last-child,.terms-label{margin-block-end:0}calcite-text-area{--calcite-text-area-min-height: 4rem}calcite-notice{margin-block-start:0}}.feedback-sheet{--calcite-sheet-height: auto;--calcite-sheet-max-height: 100%;--calcite-sheet-min-height: auto}.feedback-footer{display:flex;justify-content:flex-end;gap:.5rem;width:100%}calcite-chip[slot=header-actions-end]{align-self:center;margin-inline-end:.5rem}calcite-flow-item calcite-shell{background:transparent}calcite-block{width:100%;max-width:100%;align-self:flex-end;background-color:transparent;margin-block:0}calcite-dialog{--calcite-dialog-content-space: initial;--calcite-dialog-size-y: initial}calcite-sheet{--calcite-sheet-scrim-background: rgba(200, 200, 200, .5)}calcite-list-item calcite-button{margin-inline-end:.25rem}calcite-flow-item calcite-shell calcite-notice{margin-block:1rem}calcite-block[open]:last-of-type{border-block-end:0}.text-area-wrapper{display:flex;border-radius:var(--calcite-corner-radius-round);margin:.75rem;overflow:hidden;--calcite-color-border-input: transparent;position:sticky;box-shadow:var(--calcite-shadow-sm);flex:none;flex-direction:column}calcite-text-area{height:auto;overflow:hidden;--calcite-font-weight-normal: 500;font-weight:500;line-height:1.2}calcite-flow{height:100%}calcite-popover calcite-list{--calcite-list-background-color: transparent;--calcite-input-border-color: transparent}calcite-popover calcite-list calcite-filter{--calcite-spacing-sm: 0}.contained-popover-or-tooltip{--calcite-popover-max-size-x: 100%;--calcite-tooltip-max-size-x: 100%}.info-heading{font-size:var(--calcite-font-size-0);color:var(--calcite-color-text-1);margin:0}.info-heading-row{display:flex;align-items:center;gap:var(--calcite-spacing-sm);flex-wrap:wrap}.unstyled-h3{margin:unset;font-size:var(--calcite-font-size-md)}.unstyled-shell{position:unset;inset:unset;display:unset;block-size:unset;inline-size:unset}.suggestion-button{font-weight:var(--calcite-font-weight-medium)}.suggestions{display:flex;flex-direction:row;gap:var(--calcite-spacing-xs);flex-wrap:wrap}.info-block{max-width:450px}#result-block{calcite-card-group{--calcite-card-group-gap: 1.25rem}calcite-card{--calcite-card-corner-radius: var(--calcite-corner-radius-round);--calcite-card-border-color: transparent;width:100%}.positioned-code-content{display:flex;flex-direction:row;gap:.5rem;padding:.5rem}calcite-card [slot=heading] calcite-chip{margin-block-start:.25rem}.code-response-wrapper{position:relative;background:var(--calcite-color-foreground-2);border-radius:var(--calcite-corner-radius-round);margin-top:-1.5rem}.prior-prompt{display:flex;flex-direction:row;padding:0;overflow-y:hidden;overflow-x:auto;margin:.25rem 0 .75rem;align-items:center;max-width:100%;span{overflow-x:auto;overflow-y:hidden}}.copy-feedback{display:none}.copy-prompt-button{align-self:flex-start;margin-inline-start:auto}.response-secondary-action-button[data-copied]+.copy-feedback,.copy-prompt-button[data-copied]+.copy-feedback{display:block;span{padding:.75rem 1rem;font-size:var(--calcite-font-size--2);line-height:1.375;color:var(--calcite-color-text--2);font-weight:var(--calcite-font-weight-medium)}}.copy-prompt-button[data-copied]~.copy-tooltip,.response-secondary-action-button[data-copied]~.copy-tooltip{display:none}code{white-space:pre;font-size:12px;margin:0;overflow-x:auto;font-family:Fira Mono,Consolas,Menlo,monospace;display:block;max-height:12rem;position:relative;padding:.5rem}.response-secondary-action-button{margin-left:.5rem}.add-to-editor-button{--calcite-internal-button-border-color: unset}}.collapsible-code{padding:.5rem}.collapsible-code summary{cursor:pointer;font-weight:500;color:var(--calcite-color-brand);outline:none;padding:.25rem 0}.collapsible-code[open] summary{color:var(--calcite-color-text-2)}.response-error-container{padding:.5rem;background:color-mix(in srgb,var(--calcite-color-status-warning) 10%,transparent);border-radius:var(--calcite-corner-radius-round);margin:1rem 0;font-size:var(--calcite-font-size--2);--calcite-input-message-icon-color: var(--calcite-color-status-warning)}.response-error-chip{--calcite-internal-chip-background-color: var(--calcite-color-status-warning);--calcite-chip-icon-color: var(--calcite-color-foreground-1);--calcite-chip-border-color: var(--calcite-color-transparent)}.feedback-actions{gap:unset}.contained{max-width:100%;max-height:100%;max-width:100cqi;max-height:75cqb;overflow-y:auto}.submission-notice{--calcite-notice-border-color: transparent;margin-block:0;width:100%;--calcite-font-size-relative-base: var(--calcite-font-size--2)}.border-block-end{border-block-end:1px solid var(--calcite-color-border-3)}.round-top{border-radius:var(--calcite-corner-radius-round) var(--calcite-corner-radius-round) 0 0}}:host([closed]){display:none}`;
|
|
26
27
|
class A extends Error {
|
|
27
28
|
constructor({
|
|
@@ -452,8 +453,8 @@ function Je(i) {
|
|
|
452
453
|
function Qe(i) {
|
|
453
454
|
return M(i) > je;
|
|
454
455
|
}
|
|
455
|
-
var We = Object.defineProperty,
|
|
456
|
-
for (var s = o > 1 ? void 0 : o ?
|
|
456
|
+
var We = Object.defineProperty, Ke = Object.getOwnPropertyDescriptor, f = (i, e, t, o) => {
|
|
457
|
+
for (var s = o > 1 ? void 0 : o ? Ke(e, t) : e, n = i.length - 1, r; n >= 0; n--)
|
|
457
458
|
(r = i[n]) && (s = (o ? r(e, t, s) : r(s)) || s);
|
|
458
459
|
return o && s && We(e, t, s), s;
|
|
459
460
|
};
|
|
@@ -498,7 +499,7 @@ f([
|
|
|
498
499
|
h = f([
|
|
499
500
|
$e("ArcadeAssistantViewState")
|
|
500
501
|
], h);
|
|
501
|
-
const
|
|
502
|
+
const Ye = "arcade-assistant-reference-doc", Xe = "arcade_generation", Ze = "ArcadeCodeRequest", W = "visualization", K = "ArcadeAssistant", et = [
|
|
502
503
|
"your_comments",
|
|
503
504
|
"user_evaluation",
|
|
504
505
|
"question",
|
|
@@ -512,8 +513,8 @@ const Ke = "arcade_generation", Xe = "ArcadeCodeRequest", W = "visualization", Y
|
|
|
512
513
|
"conversation_id",
|
|
513
514
|
"privacy_statement"
|
|
514
515
|
];
|
|
515
|
-
let
|
|
516
|
-
class
|
|
516
|
+
let Y = [], X = !0;
|
|
517
|
+
class tt extends ce {
|
|
517
518
|
constructor() {
|
|
518
519
|
super(...arguments), this.textAreaRef = de(), this.messages = ue(), this._feedbackService = void 0, this.viewState = new h(), this.handleFeedbackButton = (e, t) => {
|
|
519
520
|
this.updateViewState({
|
|
@@ -551,7 +552,7 @@ class et extends ce {
|
|
|
551
552
|
question: c ?? "",
|
|
552
553
|
answer: this.encodeForFeedback(a),
|
|
553
554
|
useragent: navigator.userAgent,
|
|
554
|
-
_source:
|
|
555
|
+
_source: K,
|
|
555
556
|
version: this.appVersion || s || "NOT_SET",
|
|
556
557
|
context: o ? JSON.stringify({
|
|
557
558
|
...o,
|
|
@@ -581,7 +582,7 @@ class et extends ce {
|
|
|
581
582
|
}, this.helpBase = "", this.promptingEnabled = !1, this.closed = !1, this.isDevEnv = !1, this.disableQuestionAnswerLogging = !1;
|
|
582
583
|
}
|
|
583
584
|
static {
|
|
584
|
-
this.properties = { closePanel: 0, insertText: 0, helpBase: 1, promptingEnabled: 5, portalUrl: 1, serviceUrl: 1, closed: 7, editorRef: 0, feedbackServiceUrl: 1, isDevEnv: 5, appVersion: 1, diagnostics: 0, disableQuestionAnswerLogging: 5 };
|
|
585
|
+
this.properties = { closePanel: 0, insertText: 0, helpBase: 1, promptingEnabled: 5, portalUrl: 1, serviceUrl: 1, closed: 7, editorRef: 0, feedbackServiceUrl: 1, isDevEnv: 5, appVersion: 1, diagnostics: 0, docsConfig: 0, disableQuestionAnswerLogging: 5 };
|
|
585
586
|
}
|
|
586
587
|
static {
|
|
587
588
|
this.styles = ke;
|
|
@@ -590,11 +591,9 @@ class et extends ce {
|
|
|
590
591
|
return `// ${this.messages.disclaimercomment}
|
|
591
592
|
// ${this.messages.disclaimerpt2 ?? "AI-generated content may be inaccurate. Review before using."}`;
|
|
592
593
|
}
|
|
593
|
-
get
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
get usingTheAssitantDocUrl() {
|
|
597
|
-
return `${this.helpBase ?? "https://doc.arcgis.com/en/arcgis-online/"}create-maps/understand-arcade-assistant.htm`;
|
|
594
|
+
get helpTopicUrl() {
|
|
595
|
+
const e = this.docsConfig?.links[Ye];
|
|
596
|
+
return e || `${this.helpBase || "https://doc.arcgis.com/en/arcgis-online/"}create-maps/understand-arcade-assistant.htm`;
|
|
598
597
|
}
|
|
599
598
|
async openPrompt(e) {
|
|
600
599
|
if (this.closed = !1, !this.promptingEnabled)
|
|
@@ -609,7 +608,7 @@ class et extends ce {
|
|
|
609
608
|
async destroy() {
|
|
610
609
|
}
|
|
611
610
|
connectedCallback() {
|
|
612
|
-
super.connectedCallback(), this.updateViewState({ history:
|
|
611
|
+
super.connectedCallback(), this.updateViewState({ history: Y, splashActive: X });
|
|
613
612
|
}
|
|
614
613
|
loaded() {
|
|
615
614
|
const e = async () => {
|
|
@@ -637,7 +636,7 @@ class et extends ce {
|
|
|
637
636
|
});
|
|
638
637
|
}
|
|
639
638
|
disconnectedCallback() {
|
|
640
|
-
super.disconnectedCallback(),
|
|
639
|
+
super.disconnectedCallback(), Y = this.viewState.history, X = this.viewState.splashActive, this.copySuccessTimer && (clearTimeout(this.copySuccessTimer), this.copySuccessTimer = void 0);
|
|
641
640
|
}
|
|
642
641
|
createFeedbackContextSnapshot(e) {
|
|
643
642
|
const t = Ge(e.metadata);
|
|
@@ -682,7 +681,7 @@ class et extends ce {
|
|
|
682
681
|
return;
|
|
683
682
|
const e = new be({ url: this.feedbackServiceUrl });
|
|
684
683
|
await e.load();
|
|
685
|
-
const t =
|
|
684
|
+
const t = et.filter((o) => !e.fields.some((s) => s.name === o));
|
|
686
685
|
if (t.length > 0) {
|
|
687
686
|
$("error", this, `Missing the following fields in feedback service: ${t.join(", ")}. Feedback will not be logged.`);
|
|
688
687
|
return;
|
|
@@ -705,7 +704,7 @@ class et extends ce {
|
|
|
705
704
|
question: e.question,
|
|
706
705
|
answer: this.encodeForFeedback(e.answer),
|
|
707
706
|
useragent: navigator.userAgent,
|
|
708
|
-
_source:
|
|
707
|
+
_source: K,
|
|
709
708
|
version: this.appVersion || o || "NOT_SET",
|
|
710
709
|
// we send the snapshotted context in the automatic logging, rather than the full context, to avoid accidentally logging sensitive information that may be in the full context.
|
|
711
710
|
context: s ? JSON.stringify({ ...s, isSnapshot: !0 }) : "",
|
|
@@ -737,11 +736,11 @@ class et extends ce {
|
|
|
737
736
|
t = this.createFeedbackContextSnapshot(r);
|
|
738
737
|
const p = await this.getToken(), c = await Se({
|
|
739
738
|
baseUrl: this.serviceUrl,
|
|
740
|
-
skillId:
|
|
739
|
+
skillId: Xe,
|
|
741
740
|
message: e,
|
|
742
741
|
authToken: p,
|
|
743
742
|
context: {
|
|
744
|
-
kind:
|
|
743
|
+
kind: Ze,
|
|
745
744
|
context: {
|
|
746
745
|
profile_id: r.profileId,
|
|
747
746
|
metadata: [r.metadata],
|
|
@@ -828,9 +827,9 @@ ${e}` : "";
|
|
|
828
827
|
if (this.closed)
|
|
829
828
|
return null;
|
|
830
829
|
const e = this.viewState.viewMode === "result", t = this.getHistoryCards();
|
|
831
|
-
return this.promptingEnabled ? d`<calcite-flow><calcite-flow-item closable heading-level=2 .heading=${this.messages.arcadeassistant ?? "Arcade assistant"} @calciteFlowItemClose=${this.handleClose}>${this.viewState.splashActive && d`<calcite-scrim></calcite-scrim>` || ""}${Re({ messages: this.messages })}${Fe({ messages: this.messages, popoverContent: B({ promptingEnabled: this.promptingEnabled, messages: this.messages, helpTopicUrl: this.
|
|
830
|
+
return this.promptingEnabled ? d`<calcite-flow><calcite-flow-item closable heading-level=2 .heading=${this.messages.arcadeassistant ?? "Arcade assistant"} @calciteFlowItemClose=${this.handleClose}>${this.viewState.splashActive && d`<calcite-scrim></calcite-scrim>` || ""}${Re({ messages: this.messages })}${Fe({ messages: this.messages, popoverContent: B({ promptingEnabled: this.promptingEnabled, messages: this.messages, helpTopicUrl: this.helpTopicUrl }) })}<calcite-shell class="unstyled-shell">${this.viewState.splashActive && Ue({ messages: this.messages, onProceed: () => {
|
|
832
831
|
this.updateViewState({ splashActive: !1 });
|
|
833
|
-
}, helpTopicUrl: this.
|
|
832
|
+
}, helpTopicUrl: this.helpTopicUrl, onExit: (o) => this.closePanel?.(o) }) || ""}${Ve({ active: this.viewState.confirmationActive, setActive: (o) => this.updateViewState({ confirmationActive: o }), messages: this.messages })}${qe({ isDisabled: this.viewState.isSubmitting, isReadOnly: !1, setQuestion: this.setQuestionState, setIsViewingResult: (o) => this.updateViewState({ viewMode: o ? "result" : "prompt" }), mode: e ? "refine" : "prompt", textAreaRef: this.textAreaRef, question: this.viewState.question, errorMessage: this.viewState.errorMessage, setErrorMessage: (o) => this.updateViewState({ errorMessage: o }), promptValidationMessage: this.viewState.promptValidationMessage, setPromptValidationMessage: (o) => this.updateViewState({ promptValidationMessage: o }), submitQuestion: this.submitQuestion.bind(this), assistantRef: this.el, messages: this.messages, context: this.viewState.context, contextReducedNoticeDismissed: this.viewState.contextReducedNoticeDismissed, setContextReducedNoticeDismissed: (o) => this.updateViewState({ contextReducedNoticeDismissed: o }) })}<calcite-block-group .label=${this.messages.interactiveblocks ?? "interactive blocks"}>${!e && !this.viewState.isSubmitting && ze({ messages: this.messages, suggestions: [this.messages.prompsuggestion1 ?? "", this.messages.prompsuggestion2 ?? ""], onSuggestionClick: this.onSuggestionClick }) || ""}<calcite-block .hidden=${!this.viewState.isSubmitting} .heading=${this.messages.generatingresponse ?? "Generating response..."}></calcite-block>${H({
|
|
834
833
|
expanded: e,
|
|
835
834
|
messages: this.messages,
|
|
836
835
|
collapsible: !0,
|
|
@@ -855,10 +854,10 @@ ${e}` : "";
|
|
|
855
854
|
heading: this.messages.recentprompts ?? "Recent prompts",
|
|
856
855
|
hidden: this.viewState.isSubmitting || this.viewState.history.length === 0,
|
|
857
856
|
onCopyCode: this.onCopyCode.bind(this)
|
|
858
|
-
})}</calcite-block-group>${this.viewState.feedback.active ? Ne({ setOpen: this.handleFeedbackSheetClose, messages: this.messages, onSubmit: this.handleFeedbackSubmit, feedback: this.viewState.feedback, setFeedback: this.setFeedbackState, learnMoreUrl: this.
|
|
857
|
+
})}</calcite-block-group>${this.viewState.feedback.active ? Ne({ setOpen: this.handleFeedbackSheetClose, messages: this.messages, onSubmit: this.handleFeedbackSubmit, feedback: this.viewState.feedback, setFeedback: this.setFeedbackState, learnMoreUrl: this.helpTopicUrl }) : null}</calcite-shell></calcite-flow-item></calcite-flow>` : d`<calcite-flow><calcite-flow-item .selected=${!e} closable heading-level=2 .heading=${this.messages.arcadeassistant ?? "Arcade assistant"} @calciteFlowItemClose=${this.handleClose}>${B({ slot: "content-top", messages: this.messages, promptingEnabled: this.promptingEnabled, helpTopicUrl: this.helpTopicUrl })}</calcite-flow-item></calcite-flow>`;
|
|
859
858
|
}
|
|
860
859
|
}
|
|
861
|
-
se("arcgis-arcade-coding-assistant",
|
|
860
|
+
se("arcgis-arcade-coding-assistant", tt);
|
|
862
861
|
export {
|
|
863
|
-
|
|
862
|
+
tt as ArcgisArcadeCodingAssistant
|
|
864
863
|
};
|
|
@@ -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 v } from "../../chunks/runtime.js";
|
|
3
3
|
import { css as u, html as r } from "lit";
|
|
4
4
|
import { repeat as g } from "lit/directives/repeat.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 { c as i } from "../../chunks/runtime.js";
|
|
3
3
|
import { css as l, html as a } from "lit";
|
|
4
4
|
import { LitElement as o } from "@arcgis/lumina";
|
|
@@ -6,19 +6,19 @@ import { u as c } from "../../chunks/useT9n.js";
|
|
|
6
6
|
import { d as u, g as n, c as r, t as s } from "../../chunks/debugger-value-styles.js";
|
|
7
7
|
import { observeAncestorsMutation as d, unsafeGetCalciteModeName as g } from "@arcgis/toolkit/dom";
|
|
8
8
|
import { D as m, i as p, f as h, a as b, b as f } from "../../chunks/debugger-value-components.js";
|
|
9
|
-
const
|
|
10
|
-
function
|
|
9
|
+
const v = l`:host{display:flex;flex-direction:column;width:100%;background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-2);--calcite-block-padding: var(--calcite-spacing-sm);overflow:auto;calcite-flow{height:100%}.disabled-state-text{font-size:var(--calcite-font-size-sm);color:var(--calcite-color-text-3);font-style:italic;display:block;margin:var(--calcite-spacing-md)}[class*=result-value-]{line-height:1.25rem}}`;
|
|
10
|
+
function y(t, e) {
|
|
11
11
|
return p(t) || h(t) || b(t) || f(t) ? e ?? "Output" : t.arcadeType;
|
|
12
12
|
}
|
|
13
|
-
class
|
|
13
|
+
class S extends o {
|
|
14
14
|
constructor() {
|
|
15
15
|
super(...arguments), this.messages = c();
|
|
16
16
|
}
|
|
17
17
|
static {
|
|
18
|
-
this.properties = { debuggerStore: 0, result: 0
|
|
18
|
+
this.properties = { debuggerStore: 0, result: 0 };
|
|
19
19
|
}
|
|
20
20
|
static {
|
|
21
|
-
this.styles = [
|
|
21
|
+
this.styles = [v, u, n()];
|
|
22
22
|
}
|
|
23
23
|
load() {
|
|
24
24
|
this.manager.onLifecycle(() => {
|
|
@@ -36,10 +36,10 @@ class y extends o {
|
|
|
36
36
|
if (!this.result)
|
|
37
37
|
return a`<span class="disabled-state-text">${this.messages.nooutput ?? "No output available."}</span>`;
|
|
38
38
|
const e = this.debuggerStore?.lazyTreeState;
|
|
39
|
-
return e ? a`<calcite-tree .scale=${s.scale} @calciteTreeSelect=${s.oncalciteTreeSelect} .lines=${s.lines} .selectionMode=${s.selectionMode}>${m({ expanded: !0, name:
|
|
39
|
+
return e ? a`<calcite-tree .scale=${s.scale} @calciteTreeSelect=${s.oncalciteTreeSelect} .lines=${s.lines} .selectionMode=${s.selectionMode}>${m({ expanded: !0, name: y(this.result, this.messages.output), value: this.result, messages: this.messages, path: this.result.arcadeType, lazyTreeState: e })}</calcite-tree>` : a`<span class="disabled-state-text">${this.messages.nooutput ?? "No output available."}</span>`;
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
|
-
i("arcgis-arcade-debugger-output",
|
|
42
|
+
i("arcgis-arcade-debugger-output", S);
|
|
43
43
|
export {
|
|
44
|
-
|
|
44
|
+
S as ArcgisArcadeDebuggerOutput
|
|
45
45
|
};
|
|
@@ -3,7 +3,7 @@ import type { editor as Editor } from "monaco-editor";
|
|
|
3
3
|
import type { Diagnostic } from "@arcgis/arcade-languageservice";
|
|
4
4
|
import type { ApiSnippet } from "@arcgis/languages-api-utils";
|
|
5
5
|
import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
6
|
-
import type { EditorCodeSuggestion, EditorCodeSuggestionGroup, EditorProfileDefinition, IEditorCodeSuggestion, IEditorCodeSuggestionGroup, IEditorProfileDefinition, IEditorTestContext, IPredefinedProfile, PredefinedProfile, EditorTestContext } from "../types.js";
|
|
6
|
+
import type { EditorCodeSuggestion, EditorCodeSuggestionGroup, EditorProfileDefinition, IEditorCodeSuggestion, IEditorCodeSuggestionGroup, IEditorProfileDefinition, IEditorTestContext, IPredefinedProfile, PredefinedProfile, EditorTestContext, DocsConfig } from "../types.js";
|
|
7
7
|
import type { ArcadeExecutionError, ArcadeResult, EditorExternalExecutor } from "../../utils/arcade-executor.js";
|
|
8
8
|
import type { ICustomPanel } from "../../utils/custom-panel.js";
|
|
9
9
|
import type { ArcadeAssistantConfig } from "../../utils/arcade-assistant/types.js";
|
|
@@ -83,6 +83,17 @@ export abstract class ArcgisArcadeEditor extends LitElement {
|
|
|
83
83
|
* @see [Arcade assistant best practices and limitations](https://doc.arcgis.com/en/arcgis-online/create-maps/use-arcade-assistant.htm)
|
|
84
84
|
*/
|
|
85
85
|
accessor disableAssistant: boolean;
|
|
86
|
+
/**
|
|
87
|
+
* Allows users to override documentation links within the Arcade editor.
|
|
88
|
+
* Only links specified in `links` will be overridden.
|
|
89
|
+
* Not all links within the Arcade editor can be overridden.
|
|
90
|
+
*
|
|
91
|
+
* @example
|
|
92
|
+
* ```tsx
|
|
93
|
+
* <arcgis-arcade-editor docsConfig={{ links: { "arcade-assistant-reference-doc": "https://custom-url.com/help/arcade-assistant.htm" } }} />
|
|
94
|
+
* ```
|
|
95
|
+
*/
|
|
96
|
+
accessor docsConfig: DocsConfig | undefined;
|
|
86
97
|
/**
|
|
87
98
|
* Options to update on the editor.
|
|
88
99
|
* For example:
|