@arcgis/coding-components 5.0.0-next.73 → 5.0.0-next.75
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/addons.js +1 -1
- package/dist/cdn/{JERGWAQK.js → 2MYUHYXK.js} +3 -3
- package/dist/cdn/3P3US5HL.js +4 -0
- package/dist/cdn/{RDFI2EC4.js → 7TO5YUEX.js} +2 -2
- package/dist/cdn/{FXGUQKEZ.js → A4GP35TK.js} +1 -1
- package/dist/cdn/{URLWLKSB.js → AH6FE4LS.js} +2 -2
- package/dist/cdn/{7GZAS4ZJ.js → AKUKQU5J.js} +2 -2
- package/dist/cdn/B7P5YUTD.js +4 -0
- package/dist/cdn/CHK6T5UW.js +6 -0
- package/dist/cdn/{RSFRE4FJ.js → CJB6ALF7.js} +2 -2
- package/dist/cdn/{CDRQFRBN.js → CN7MJ6YS.js} +2 -2
- package/dist/cdn/{YQTQZQ2J.js → D4GWSQMI.js} +2 -2
- package/dist/cdn/{22625RKF.js → DTWIB6F5.js} +2 -2
- package/dist/cdn/{4RJKC3HS.js → EMPTLJCC.js} +2 -2
- package/dist/cdn/{HGZGNBLI.js → EYD5CM3Z.js} +2 -2
- package/dist/cdn/{ERC24CX5.js → FLG5GA5W.js} +2 -2
- package/dist/cdn/{KQBQ3FU5.js → FMAKL3DM.js} +2 -2
- package/dist/cdn/{3FQNGZUI.js → FN7JUEEE.js} +2 -2
- package/dist/cdn/{4OFH6ZSH.js → G7O5K3TR.js} +1 -1
- package/dist/cdn/{FQA6EBLW.js → HZJEASTD.js} +1 -1
- package/dist/cdn/{KK4FO5CH.js → IHUWCZKI.js} +2 -2
- package/dist/cdn/{RKGBDCEI.js → JDRJ4NIZ.js} +2 -2
- package/dist/cdn/{PMNTUV3G.js → JFXRF43B.js} +2 -2
- package/dist/cdn/JTA5TVHI.js +4 -0
- package/dist/cdn/{4FWQQNVE.js → JVUTFJKN.js} +2 -2
- package/dist/cdn/{KUICCVMR.js → KHETCNLZ.js} +2 -2
- package/dist/cdn/{AKDW4ZJJ.js → L3WZ6XQT.js} +1 -1
- package/dist/cdn/{I4P6QFGD.js → LCXXDBBU.js} +2 -2
- package/dist/cdn/{34HTM3CX.js → LDVNNO47.js} +1 -1
- package/dist/cdn/{U5VUPDSC.js → M4Y5BFAL.js} +2 -2
- package/dist/cdn/{U5PEMACN.js → M5URZVR5.js} +2 -2
- package/dist/cdn/{MUO4ZHKB.js → MJFBQMLW.js} +2 -2
- package/dist/cdn/{JHP4J2TD.js → MXEIWHFK.js} +1 -1
- package/dist/cdn/{R4WVCEDC.js → N4OM642V.js} +2 -2
- package/dist/cdn/{2OXEX7EB.js → NBECQIXP.js} +1 -1
- package/dist/cdn/{KKMKBW3J.js → NYMTZAN5.js} +2 -2
- package/dist/cdn/{MLKMOADF.js → PV4BHF2D.js} +2 -2
- package/dist/cdn/{ZRT2WZLK.js → QCY3L7UE.js} +2 -2
- package/dist/cdn/{XCMHLKAZ.js → QVYUH4XQ.js} +2 -2
- package/dist/cdn/{Q6GF7R6P.js → SBDCE2RC.js} +2 -2
- package/dist/cdn/{4WDT32NF.js → SE6ZCUX2.js} +2 -2
- package/dist/cdn/{4DEF34DK.js → VJJ6ED7E.js} +2 -2
- package/dist/cdn/WGDMHVZ6.js +4 -0
- package/dist/cdn/{3N3GHK4I.js → WXLV63MG.js} +2 -2
- package/dist/cdn/{IHU246HK.js → XELSKRLW.js} +2 -2
- package/dist/cdn/{GTDT3VZG.js → XR2VT3PH.js} +2 -2
- package/dist/cdn/{Z4SSLGVN.js → YMVRT5BR.js} +1 -1
- package/dist/cdn/{7RBKOBAS.js → ZP7TO2U6.js} +2 -2
- package/dist/cdn/index.js +2 -2
- package/dist/chunks/arcade-contribution.js +16 -15
- package/dist/chunks/arcade-defaults.js +1 -1
- package/dist/chunks/arcade-executor.js +1 -1
- package/dist/chunks/arcade-mode.js +8 -7
- package/dist/chunks/arcade-service-accessors.js +30 -21
- package/dist/chunks/colorize.js +1 -1
- package/dist/chunks/editor.js +1 -1
- package/dist/chunks/fields.js +1 -1
- package/dist/chunks/language-defaults-base.js +1 -1
- package/dist/chunks/markdown.js +1 -1
- package/dist/chunks/monaco-importer.js +2 -1
- package/dist/chunks/runtime.js +1 -1
- package/dist/chunks/sql-expr-defaults.js +1 -1
- package/dist/chunks/sql-expr-mode.js +8 -7
- package/dist/chunks/sql-expr-service-accessors.js +1 -1
- package/dist/chunks/useT9n.js +1 -1
- package/dist/chunks/utilities.js +1 -1
- package/dist/components/arcgis-arcade-coding-assistant/customElement.js +1 -1
- package/dist/components/arcgis-arcade-editor/customElement.js +2 -1
- package/dist/components/arcgis-arcade-results/customElement.js +1 -1
- package/dist/components/arcgis-arcade-suggestions/customElement.js +1 -1
- package/dist/components/arcgis-code-editor/customElement.js +28 -23
- package/dist/components/arcgis-code-viewer/customElement.js +1 -1
- package/dist/components/arcgis-editor-variables/customElement.js +1 -1
- package/dist/components/arcgis-language-api-panel/customElement.js +1 -1
- package/dist/components/arcgis-sql-expression-editor/customElement.js +1 -1
- package/dist/components/arcgis-sql-expression-fields/customElement.js +1 -1
- package/dist/docs/api.json +2 -2
- package/dist/docs/docs.json +2 -2
- package/dist/docs/web-types.json +1 -1
- package/dist/index.js +1 -1
- package/dist/loader.js +1 -1
- package/dist/monacoStyles.js +1 -1
- package/dist/utils/monaco-importer.d.ts +1 -0
- package/dist/utils/monaco-typings.d.ts +1 -0
- package/dist/utils/setup-monaco.d.ts +1 -0
- package/package.json +5 -5
- package/dist/cdn/7ZI5BJUK.js +0 -4
- package/dist/cdn/LJSOLRST.js +0 -4
- package/dist/cdn/MFEGWXET.js +0 -4
- package/dist/cdn/RW5V7UG7.js +0 -4
- package/dist/cdn/U6W5P5XI.js +0 -6
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
3
|
-
v5.0.0-next.
|
|
4
|
-
import{a}from"./
|
|
3
|
+
v5.0.0-next.75 */
|
|
4
|
+
import{a}from"./EYD5CM3Z.js";import{a as m}from"./JDRJ4NIZ.js";import"./3P3US5HL.js";import c from"./FN7JUEEE.js";import b from"./DTWIB6F5.js";import"./G7O5K3TR.js";import"./JFXRF43B.js";import"./2MYUHYXK.js";import"./MXEIWHFK.js";import"./ZP7TO2U6.js";import"./HZJEASTD.js";import{F as n,J as d,g as r,i,m as s}from"./CHK6T5UW.js";import"./YMVRT5BR.js";import"./FMAKL3DM.js";import"./NBECQIXP.js";export default $arcgis.t(([,h])=>{var g=r`:host{calcite-flow{height:100%}calcite-list-item-group{background-color:var(--calcite-color-foreground-2)}}`,c=class extends n{constructor(){super(...arguments),this.messages=m(),this._filterValue="",this._flowItemRenderers=[],this._mutationCounter=1,this.loading=!1,this.arcgisClose=s({bubbles:!1}),this.arcgisFieldSelected=s({bubbles:!1})}static{this.properties={_filterValue:16,_flowItemRenderers:16,_mutationCounter:16,loading:5,modelId:1}}static{this.styles=g}willUpdate(t){t.has("modelId")&&(this._flowItemRenderers=[])}disconnectedCallback(){super.disconnectedCallback(),this._flowObserver?.disconnect()}_handleSelectField(t){if(t.target instanceof HTMLElement)switch(t.target.tagName.toLowerCase()){case"calcite-list-item":{let e=t.target.value;this.arcgisFieldSelected.emit(e??"");break}case"calcite-action":t.stopPropagation();break}}_handleSelectDomain(t){let e=t.target.value;this.arcgisFieldSelected.emit(e?`'${e}'`:"")}_emitClose(){this.arcgisClose.emit()}render(){let t=h.getFeatureLayerForModel(this.modelId??"");return this.loading||!this.modelId||!t?i`<calcite-block .heading=${this.messages.availablefields??""}></calcite-block>`:i`<calcite-flow><calcite-flow-item heading-level=2 .heading=${this.messages.availablefields??""} closable @calciteFlowItemClose=${this._emitClose}><calcite-list label=fields filter-enabled>${a(t.fields,e=>e.name,e=>i`<calcite-list-item @click=${this._handleSelectField} .label=${e.name} .description=${e.alias??""} .value=${e.name}>${e.domain&&i`<calcite-action slot=actions-end text=open icon=chevron-right @click=${()=>{let o=e.domain;o?.type==="coded-value"&&(this._flowItemRenderers=[...this._flowItemRenderers,()=>i`<calcite-flow-item closable heading-level=2 .heading=${this.messages.domainvalues??""} .description=${e.name} @calciteFlowItemClose=${this._emitClose}><calcite-list label=domains>${a(o.codedValues,l=>l.code,l=>i`<calcite-list-item @click=${this._handleSelectDomain} .label=${l.name} .description=${String(l.code)} .value=${String(l.code)}></calcite-list-item>`)}</calcite-list></calcite-flow-item>`])}}></calcite-action>`||""}</calcite-list-item>`)}</calcite-list></calcite-flow-item>${this._flowItemRenderers.map(e=>e())}</calcite-flow>`}};d("arcgis-sql-expression-fields",c);return c},b,c)
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
|
+
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
3
|
+
v5.0.0-next.75 */
|
|
4
|
+
import{kk as m,pk as c,vg as a}from"./FMAKL3DM.js";export default $arcgis.t(([j])=>{m();function k(){return!!window.MonacoEnvironment?.getWorker}var l="",g=new Map,u=!1;async function p(t,r,e){if(e)return r?r():new Worker(t);let o=window.location.origin;if(new URL(t,window.location.href).origin!==o){let n=await j(t,{responseType:"text"});return new Worker(URL.createObjectURL(new Blob([n.data],{type:"text/javascript"})),{type:"module"})}return new Worker(t,{type:"module"})}function L(t){if(k())return;y(),l=t;let r=`${l}/code-editor`,e={arcade:`${r}/arcade.worker.js`,"arcgis-sql-expression":`${r}/sql-expr.worker.js`,html:`${r}/html.worker.js`,css:`${r}/css.worker.js`,typescript:`${r}/ts.worker.js`,json:`${r}/json.worker.js`,default:`${r}/editor.worker.js`},o={arcade:{url:e.arcade},"arcgis-sql-expression":{url:e["arcgis-sql-expression"]},html:{url:e.html},css:{url:e.css},typescript:{url:e.typescript},javascript:{url:e.typescript},json:{url:e.json},default:{url:e.default}};window.MonacoEnvironment={getWorker:async(n,s)=>{let i=g.get(s);if(i)return await p(i,void 0,u);let{url:d,localWorker:f}=o[s]||o.default;return await p(d,f,u)}}}var w=!1;function y(){w||(c.get(a),w=!0)}async function M(){return(await v()).getArcadeDiagnosticService()}async function v(){return await import("./CN7MJ6YS.js")}return{a:L,b:M,c:v}},"request")
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
3
|
-
v5.0.0-next.
|
|
4
|
-
import{a as n}from"./
|
|
3
|
+
v5.0.0-next.75 */
|
|
4
|
+
import{a as n}from"./L3WZ6XQT.js";import{a as f}from"./JDRJ4NIZ.js";import"./3P3US5HL.js";import{a as g}from"./JFXRF43B.js";import"./MXEIWHFK.js";import{d as p,e as u}from"./HZJEASTD.js";import{E as c,F as d,J as h,g as m,i as s,m as a,q as o}from"./CHK6T5UW.js";import"./YMVRT5BR.js";import"./NBECQIXP.js";var b=m`:host{background-color:var(--calcite-color-foreground-1);.notice-container{margin:var(--calcite-spacing-xxs);padding:var(--calcite-spacing-sm);background-color:var(--calcite-color-foreground-1)}.sticky{position:sticky;top:0;z-index:10}calcite-flow{height:100%}calcite-block{p:first-of-type{margin-top:0}}calcite-list-item-group{background-color:var(--calcite-color-foreground-2)}}`,r=class extends d{constructor(){super(...arguments),this.messages=f(),this._unselectItem=async()=>{this._selectedApiItem=void 0},this._filterValue="",this.languageId="arcade",this.hideDocumentationActions=!1,this.loading=!1,this.closed=!1,this.arcgisClose=a({bubbles:!1}),this.arcgisItemSelected=a({bubbles:!1})}static{this.properties={_filterValue:16,_selectedApiItem:16,languageId:1,apiLibrary:0,hideDocumentationActions:5,loading:5,closed:5}}static{this.styles=b}willUpdate(e){if(e.has("apiLibrary")){if(!this._selectedApiItem)return;for(let i of this.apiLibrary??[])for(let t of i.items)if(t.name===this._selectedApiItem.name){this._selectedApiItem=t;return}this._selectedApiItem=void 0}}disconnectedCallback(){super.disconnectedCallback(),this._flowObserver?.disconnect()}flowFocusHandler(e){if(!e){this._flowObserver?.disconnect(),this._flowObserver=void 0;return}this._flowObserver||(this._flowObserver=new MutationObserver(()=>{u(e.querySelector("calcite-flow-item:last-child"),"calcite-input")}),this._flowObserver.observe(e,{attributes:!0,attributeFilter:["id"],childList:!0}))}_emitItemSelected(e,i){if(!i)return;let t=e;(!t.key||t.key==="Enter")&&(e.preventDefault(),this.arcgisItemSelected.emit(i.completion.insertText??""))}_emitClose(){this.arcgisClose.emit()}_emitItemSelectedAndClose(e,i){let t=e;(!t.key||t.key==="Enter")&&(e.preventDefault(),this.arcgisItemSelected.emit(i.completion.insertText??""))}_selectItem(e,i){e.stopPropagation(),this._selectedApiItem=i}_updateFilterValue(e){this._filterValue=e.currentTarget.value??""}_elementToMarkdown(e){e!==void 0&&(e.innerHTML=n(this._selectedApiItem.examples))}renderApiCategory(e){let i=g(e.items,"name",this._filterValue);return i.length?s`<calcite-list-item-group .heading=${e.title}>${i.map(t=>s`<calcite-list-item .label=${o(t.completion.detail)} @calciteListItemSelect=${l=>this._emitItemSelected(l,t)} @keydown=${l=>this._emitItemSelected(l,t)}><calcite-action slot=actions-end .text=${this.messages.expand??""} icon=chevron-right icon-flip-rtl scale=s @click=${l=>this._selectItem(l,t)}></calcite-action></calcite-list-item>`)}</calcite-list-item-group>`:null}renderApiItemFlowItem(){let e=this._selectedApiItem;return e?s`<calcite-flow-item heading-level=2 .heading=${this.messages.constantsandfunctions} .beforeBack=${this._unselectItem} closable @calciteFlowItemClose=${this._emitClose} selected>${this.hideDocumentationActions?null:s`<calcite-button width=half slot=footer appearance=outline kind=brand scale=s .href=${e.link} target=Help icon-start=information>${this.messages.moreinformation}</calcite-button>`}<calcite-button .width=${this.hideDocumentationActions?"full":"half"} slot=footer appearance=outline kind=brand icon-start=code scale=s @click=${i=>this._emitItemSelectedAndClose(i,e)} ${c(p)}>${this.messages.insert}</calcite-button><calcite-block open .heading=${o(e.completion.detail)}><div .innerHTML=${n(e.completion.documentation)??""}></div>${e.examples?s`<div ${c(this._elementToMarkdown)}></div>`:null}</calcite-block></calcite-flow-item>`:null}render(){if(this.closed)return null;let e=(this.apiLibrary??[]).map(t=>this.renderApiCategory(t)),i=e.every(t=>!t);return s`<calcite-flow ${c(this.flowFocusHandler)}><calcite-flow-item heading-level=2 .heading=${this.messages.constantsandfunctions} closable @calciteFlowItemClose=${this._emitClose} .selected=${!this._selectedApiItem}><calcite-input .value=${this._filterValue} icon=magnifying-glass clearable @calciteInputInput=${this._updateFilterValue} class="sticky" scale=m></calcite-input>${this.loading?s`<calcite-loader scale=s type=indeterminate .label=${this.messages.loading??"Loading"}></calcite-loader>`:s`<calcite-list label="arcade api">${i?s`<div class="notice-container">${this.messages.noitems}</div>`:e}</calcite-list>`}</calcite-flow-item>${this.renderApiItemFlowItem()}</calcite-flow>`}};h("arcgis-language-api-panel",r);export{r as ArcgisLanguageApiPanel};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
3
|
-
v5.0.0-next.
|
|
4
|
-
import{Fl as a,Gl as b,Hl as c,Il as d,Jl as e,Kl as f,Ll as g,Ml as h,Nl as i,Ol as j,Pl as k,Ql as l,Rl as m,Sl as n}from"./
|
|
3
|
+
v5.0.0-next.75 */
|
|
4
|
+
import{Fl as a,Gl as b,Hl as c,Il as d,Jl as e,Kl as f,Ll as g,Ml as h,Nl as i,Ol as j,Pl as k,Ql as l,Rl as m,Sl as n}from"./FMAKL3DM.js";import"./NBECQIXP.js";export{a as CancellationTokenSource,b as Emitter,c as KeyCode,d as KeyMod,i as MarkerSeverity,j as MarkerTag,e as Position,f as Range,g as Selection,h as SelectionDirection,l as Token,k as Uri,m as editor,n as languages};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
3
|
-
v5.0.0-next.
|
|
4
|
-
import h from"./
|
|
3
|
+
v5.0.0-next.75 */
|
|
4
|
+
import h from"./MJFBQMLW.js";import e from"./WGDMHVZ6.js";import d from"./QCY3L7UE.js";import{a as O,c as u,d as k}from"./IHUWCZKI.js";import{a as b}from"./3P3US5HL.js";import"./AH6FE4LS.js";import c from"./FN7JUEEE.js";import a from"./DTWIB6F5.js";import{a as N}from"./A4GP35TK.js";import"./G7O5K3TR.js";import"./JFXRF43B.js";import{a as C}from"./2MYUHYXK.js";import"./MXEIWHFK.js";import"./ZP7TO2U6.js";import{a as T,b as y,c as E}from"./HZJEASTD.js";import{F as f,J as v,K as S,g,h as _,i as l}from"./CHK6T5UW.js";import"./YMVRT5BR.js";import"./FMAKL3DM.js";import"./NBECQIXP.js";export default $arcgis.t(([,,,{a:w},{a:c,b:p}])=>{var L=Symbol(),h=class{get taskComplete(){return this.t||(this.i===1?this.t=new Promise(((t,e)=>{this.o=t,this.h=e})):this.i===3?this.t=Promise.reject(this.l):this.t=Promise.resolve(this.u)),this.t}constructor(t,e,s){this.p=0,this.i=0,(this._=t).addController(this);let i=typeof e=="object"?e:{task:e,args:s};this.v=i.task,this.j=i.args,this.m=i.argsEqual??M,this.k=i.onComplete,this.A=i.onError,this.autoRun=i.autoRun??!0,"initialValue"in i&&(this.u=i.initialValue,this.i=2,this.O=this.T?.())}hostUpdate(){this.autoRun===!0&&this.S()}hostUpdated(){this.autoRun==="afterUpdate"&&this.S()}T(){if(this.j===void 0)return;let t=this.j();if(!Array.isArray(t))throw Error("The args function must return an array");return t}async S(){let t=this.T(),e=this.O;this.O=t,t===e||t===void 0||e!==void 0&&this.m(e,t)||await this.run(t)}async run(t){let e,s;t??=this.T(),this.O=t,this.i===1?this.q?.abort():(this.t=void 0,this.o=void 0,this.h=void 0),this.i=1,this.autoRun==="afterUpdate"?queueMicrotask((()=>this._.requestUpdate())):this._.requestUpdate();let i=++this.p;this.q=new AbortController;let o=!1;try{e=await this.v(t,{signal:this.q.signal})}catch(d){o=!0,s=d}if(this.p===i){if(e===L)this.i=0;else{if(o===!1){try{this.k?.(e)}catch{}this.i=2,this.o?.(e)}else{try{this.A?.(s)}catch{}this.i=3,this.h?.(s)}this.u=e,this.l=s}this._.requestUpdate()}}abort(t){this.i===1&&this.q?.abort(t)}get value(){return this.u}get error(){return this.l}get status(){return this.i}render(t){switch(this.i){case 0:return t.initial?.();case 1:return t.pending?.();case 2:return t.complete?.(this.value);case 3:return t.error?.(this.error);default:throw Error("Unexpected status: "+this.i)}}},M=(n,t)=>n===t||n.length===t.length&&n.every(((e,s)=>!_(e,t[s])));var A=g`pre{direction:ltr;overflow-x:auto;background-color:var(--calcite-color-foreground-2);padding:var(--calcite-spacing-sm);white-space:pre-line;code{font-size:var(--calcite-font-size--2);font-family:var(--calcite-font-family-code)}}:host([round]){pre{border-radius:var(--calcite-corner-radius-round)}}`,m=class extends f{constructor(){super(...arguments),this._monacoEditor=b(C),this.#e=Promise.withResolvers(),this.#t="",this._slotContentObservers=[],this._onDefaultSlotChange=async t=>{T(t)||(this._codeFromSlot="");let e=t.target instanceof HTMLSlotElement?t.target:null,s=e?this._computeSlotText(e):"";e&&this._observeAssignedSlotNodes(e),s!==this._codeFromSlot&&(this._codeFromSlot=s),this.#e.resolve()},this._colorizeTask=new h(this,{task:async([t,e],{signal:s})=>{if(await this.#e.promise,s.aborted)return this.#t;if(await c(e),s.aborted)return this.#t;let i=await O(t,e);return s.aborted?this.#t:(this.#t=i,i)},args:()=>[this._codeFromSlot,this.language]}),this._codeFromSlot="",this.language="arcade",this.round=!1}static{this.properties={_codeFromSlot:16,language:1,round:7}}static{this.styles=A}#e;#t;async load(){w(S("./assets")),await p(this.language),await c(this.language),this._applyColorizeStyles(u()),this.manager.onLifecycle(()=>(this._themeObserver=y(this.el,["class"],()=>this.updateTheme()),this._themeChangedListener=k(()=>{this._applyColorizeStyles(u())}),this.updateTheme(),()=>{this._themeObserver?.(),this._themeObserver=void 0,this._themeChangedListener?.dispose(),this._themeChangedListener=void 0}))}loaded(){this.el.hasChildNodes()||this.#e.resolve()}willUpdate(t){t.has("language")&&p(this.language).then(()=>c(this.language)).catch(e=>console.error(e))}disconnectedCallback(){super.disconnectedCallback(),this._disposeSlotObservers()}_disposeSlotObservers(){this._slotContentObservers.length&&(this._slotContentObservers.forEach(t=>t.disconnect()),this._slotContentObservers=[])}_observeAssignedSlotNodes(t){this._disposeSlotObservers();let e=t.assignedNodes({flatten:!0});if(!e.length)return;let s=new Set;for(let r of e)r.nodeType===Node.ELEMENT_NODE?s.add(r):r.nodeType===Node.TEXT_NODE&&r.parentElement&&s.add(r.parentElement);let i={characterData:!0,childList:!0,subtree:!0},o=N(()=>{let r=this._computeSlotText(t);r!==this._codeFromSlot&&(this._codeFromSlot=r)},100),d=r=>{if(r.some(a=>a.type==="childList")){let a=this._computeSlotText(t);a!==this._codeFromSlot&&(this._codeFromSlot=a);return}o()};s.forEach(r=>{let a=new MutationObserver(d);a.observe(r,i),this._slotContentObservers.push(a)})}_computeSlotText(t){let e=t.assignedNodes({flatten:!0}).filter(s=>s.nodeType!==Node.COMMENT_NODE);if(this.language==="html"&&e.length){let s=e.find(o=>o.nodeType===Node.ELEMENT_NODE&&o.tagName==="TEMPLATE");if(s)return(s.innerHTML??"").trim();let i=e.map(o=>o.nodeType===Node.ELEMENT_NODE?o.outerHTML:o.nodeType===Node.TEXT_NODE?o.textContent??"":"").join("").trim();return i}return e.map(s=>s.textContent??"").join("").trim()}updateTheme(){let t=E(this.el)==="light"?"vs":"vs-dark";t!==this._currentTheme&&(this._currentTheme=t,this._monacoEditor.setTheme(t))}_applyColorizeStyles(t){if(!this._colorizeSheet){this._colorizeSheet=new CSSStyleSheet;let e=this.renderRoot;e.adoptedStyleSheets=[...e.adoptedStyleSheets,this._colorizeSheet]}this._colorizeSheet.replaceSync(t)}render(){return l`<div><slot @slotchange=${this._onDefaultSlotChange} style="display:none" aria-hidden=true></slot><pre class="arcgis-code-viewer" aria-label=${`${this.language} code snippet`}>${this._colorizeTask.render({error:()=>null,pending:()=>l`<code class=${`language-${this.language}`}></code>`,complete:t=>l`<code class=${`language-${this.language}`} .innerHTML=${t??""}></code>`})}</pre></div>`}};v("arcgis-code-viewer",m);return m},a,c,d,e,h)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
3
|
-
v5.0.0-next.
|
|
3
|
+
v5.0.0-next.75 */
|
|
4
4
|
var n=class{constructor(){this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}},i=(s,e)=>{let t=e>l?c:e/a,o=0,r=setInterval(()=>{o+=t,o>=e&&(clearInterval(r),s())},t);return r},l=4e3,c=2e3,a=4;export{n as a,i as b};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
3
|
-
v5.0.0-next.
|
|
4
|
-
import{Tl as o}from"./
|
|
3
|
+
v5.0.0-next.75 */
|
|
4
|
+
import{Tl as o}from"./FMAKL3DM.js";var d=Object.defineProperty,O=Object.getOwnPropertyDescriptor,m=Object.getOwnPropertyNames,y=Object.prototype.hasOwnProperty,h=(e,i,t,s)=>{if(i&&typeof i=="object"||typeof i=="function")for(let r of m(i))!y.call(e,r)&&r!==t&&d(e,r,{get:()=>i[r],enumerable:!(s=O(i,r))||s.enumerable});return e},E=(e,i,t)=>(h(e,i,"default"),t&&h(t,i,"default")),L="5.4.5",n={};E(n,o);var u=(e=>(e[e.None=0]="None",e[e.CommonJS=1]="CommonJS",e[e.AMD=2]="AMD",e[e.UMD=3]="UMD",e[e.System=4]="System",e[e.ES2015=5]="ES2015",e[e.ESNext=99]="ESNext",e))(u||{}),l=(e=>(e[e.None=0]="None",e[e.Preserve=1]="Preserve",e[e.React=2]="React",e[e.ReactNative=3]="ReactNative",e[e.ReactJSX=4]="ReactJSX",e[e.ReactJSXDev=5]="ReactJSXDev",e))(l||{}),_=(e=>(e[e.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",e[e.LineFeed=1]="LineFeed",e))(_||{}),c=(e=>(e[e.ES3=0]="ES3",e[e.ES5=1]="ES5",e[e.ES2015=2]="ES2015",e[e.ES2016=3]="ES2016",e[e.ES2017=4]="ES2017",e[e.ES2018=5]="ES2018",e[e.ES2019=6]="ES2019",e[e.ES2020=7]="ES2020",e[e.ESNext=99]="ESNext",e[e.JSON=100]="JSON",e[e.Latest=99]="Latest",e))(c||{}),g=(e=>(e[e.Classic=1]="Classic",e[e.NodeJs=2]="NodeJs",e))(g||{}),p=class{constructor(e,i,t,s,r){this._onDidChange=new n.Emitter,this._onDidExtraLibsChange=new n.Emitter,this._extraLibs=Object.create(null),this._removedExtraLibs=Object.create(null),this._eagerModelSync=!1,this.setCompilerOptions(e),this.setDiagnosticsOptions(i),this.setWorkerOptions(t),this.setInlayHintsOptions(s),this.setModeConfiguration(r),this._onDidExtraLibsChangeTimeout=-1}get onDidChange(){return this._onDidChange.event}get onDidExtraLibsChange(){return this._onDidExtraLibsChange.event}get modeConfiguration(){return this._modeConfiguration}get workerOptions(){return this._workerOptions}get inlayHintsOptions(){return this._inlayHintsOptions}getExtraLibs(){return this._extraLibs}addExtraLib(e,i){let t;if(typeof i>"u"?t=`ts:extralib-${Math.random().toString(36).substring(2,15)}`:t=i,this._extraLibs[t]&&this._extraLibs[t].content===e)return{dispose:()=>{}};let s=1;return this._removedExtraLibs[t]&&(s=this._removedExtraLibs[t]+1),this._extraLibs[t]&&(s=this._extraLibs[t].version+1),this._extraLibs[t]={content:e,version:s},this._fireOnDidExtraLibsChangeSoon(),{dispose:()=>{let r=this._extraLibs[t];r&&r.version===s&&(delete this._extraLibs[t],this._removedExtraLibs[t]=s,this._fireOnDidExtraLibsChangeSoon())}}}setExtraLibs(e){for(let i in this._extraLibs)this._removedExtraLibs[i]=this._extraLibs[i].version;if(this._extraLibs=Object.create(null),e&&e.length>0)for(let i of e){let t=i.filePath||`ts:extralib-${Math.random().toString(36).substring(2,15)}`,s=i.content,r=1;this._removedExtraLibs[t]&&(r=this._removedExtraLibs[t]+1),this._extraLibs[t]={content:s,version:r}}this._fireOnDidExtraLibsChangeSoon()}_fireOnDidExtraLibsChangeSoon(){this._onDidExtraLibsChangeTimeout===-1&&(this._onDidExtraLibsChangeTimeout=window.setTimeout(()=>{this._onDidExtraLibsChangeTimeout=-1,this._onDidExtraLibsChange.fire(void 0)},0))}getCompilerOptions(){return this._compilerOptions}setCompilerOptions(e){this._compilerOptions=e||Object.create(null),this._onDidChange.fire(void 0)}getDiagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(void 0)}setWorkerOptions(e){this._workerOptions=e||Object.create(null),this._onDidChange.fire(void 0)}setInlayHintsOptions(e){this._inlayHintsOptions=e||Object.create(null),this._onDidChange.fire(void 0)}setMaximumWorkerIdleTime(e){}setEagerModelSync(e){this._eagerModelSync=e}getEagerModelSync(){return this._eagerModelSync}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(void 0)}},x=L,b={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,diagnostics:!0,documentRangeFormattingEdits:!0,signatureHelp:!0,onTypeFormattingEdits:!0,codeActions:!0,inlayHints:!0},v=new p({allowNonTsExtensions:!0,target:99},{noSemanticValidation:!1,noSyntaxValidation:!1,onlyVisible:!1},{},{},b),f=new p({allowNonTsExtensions:!0,allowJs:!0,target:99},{noSemanticValidation:!0,noSyntaxValidation:!1,onlyVisible:!1},{},{},b),C=()=>a().then(e=>e.getTypeScriptWorker()),D=()=>a().then(e=>e.getJavaScriptWorker());n.languages.typescript={ModuleKind:u,JsxEmit:l,NewLineKind:_,ScriptTarget:c,ModuleResolutionKind:g,typescriptVersion:x,typescriptDefaults:v,javascriptDefaults:f,getTypeScriptWorker:C,getJavaScriptWorker:D};function a(){return import("./EMPTLJCC.js")}n.languages.onLanguage("typescript",()=>a().then(e=>e.setupTypeScript(v)));n.languages.onLanguage("javascript",()=>a().then(e=>e.setupJavaScript(f)));export{v as a};
|
package/dist/cdn/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
3
|
-
v5.0.0-next.
|
|
4
|
-
import{I as i,u as e}from"./
|
|
3
|
+
v5.0.0-next.75 */
|
|
4
|
+
import{I as i,u as e}from"./CHK6T5UW.js";import"./YMVRT5BR.js";import"./NBECQIXP.js";var r=e(i,{"arcgis-arcade-coding-assistant":[()=>import("./D4GWSQMI.js"),"appVersion,assistantsEnabled,closed,closePanel:,editorRef:,feedbackServiceUrl,helpBase,insertText:,layer,portalUrl,serviceUrl;destroy"],"arcgis-arcade-editor":[()=>import("./LCXXDBBU.js"),"arcadeAssistant:,customPanels:,editorInstance:,editorOptions:,hideDocumentationActions,hideSideBar,openedSidePanel:,profile:,script,sideActionBarExpanded,snippets:,suggestions:,testData:;getEditorInstance,getScript,getTestResult,setFocus"],"arcgis-arcade-results":[()=>import("./FLG5GA5W.js"),"consoleLogs:,loading,openedResultPanel,result:"],"arcgis-arcade-suggestions":[()=>import("./7TO5YUEX.js"),"closed,suggestions:"],"arcgis-code-editor":[()=>import("./B7P5YUTD.js"),"editorInstance:,editorOptions:,language,modelId:,value;getEditorInstance,getValue,insertSnippet,insertText,setFocus,setValue"],"arcgis-code-viewer":[()=>import("./XR2VT3PH.js"),"language,round"],"arcgis-editor-variables":[()=>import("./M5URZVR5.js"),"closed,loading,modelId,variable:"],"arcgis-language-api-panel":[()=>import("./WXLV63MG.js"),"apiLibrary:,closed,hideDocumentationActions,languageId,loading"],"arcgis-sql-expression-editor":[()=>import("./N4OM642V.js"),"hideSideBar,profile:,script;setFocus"],"arcgis-sql-expression-fields":[()=>import("./VJJ6ED7E.js"),"loading,modelId"]});r({resourcesUrl:import.meta.url});var o=new CSSStyleSheet();var ___=new CSSStyleSheet();___.replaceSync(`@layer{/*!-----------------------------------------------------------
|
|
5
5
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
6
6
|
* Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)
|
|
7
7
|
* Released under the MIT license
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import { i as g } from "./monaco-importer.js";
|
|
2
|
-
import { Uri as
|
|
2
|
+
import { Uri as p, languages as a } from "monaco-editor";
|
|
3
3
|
import "monaco-editor/esm/vs/editor/standalone/browser/standaloneServices.js";
|
|
4
4
|
import "monaco-editor/esm/vs/editor/standalone/common/standaloneTheme.js";
|
|
5
|
+
import "monaco-editor/esm/vs/platform/hover/browser/hover.js";
|
|
5
6
|
import "monaco-editor/esm/vs/editor/common/languages/supports/tokenization.js";
|
|
6
7
|
import { a as t } from "./sql-expr-defaults.js";
|
|
7
|
-
import { g as
|
|
8
|
+
import { g as f } from "./sql-expr-service-accessors.js";
|
|
8
9
|
import { b as n } from "./arcade-defaults.js";
|
|
9
10
|
import { g as l } from "./arcade-service-accessors.js";
|
|
10
11
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
11
12
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
12
|
-
v5.0.0-next.
|
|
13
|
-
const h = ["arcade", "arcgis-sql-expression"],
|
|
13
|
+
v5.0.0-next.75 */
|
|
14
|
+
const h = ["arcade", "arcgis-sql-expression"], s = /* @__PURE__ */ new Set(), d = /* @__PURE__ */ new Map();
|
|
14
15
|
function c(e) {
|
|
15
16
|
let r = d.get(e);
|
|
16
17
|
return r || (r = Promise.withResolvers(), d.set(e, r)), r;
|
|
@@ -18,18 +19,18 @@ function c(e) {
|
|
|
18
19
|
function u(e) {
|
|
19
20
|
c(e).resolve();
|
|
20
21
|
}
|
|
21
|
-
function
|
|
22
|
+
function q(e) {
|
|
22
23
|
return h.includes(e) ? c(e).promise : Promise.resolve();
|
|
23
24
|
}
|
|
24
25
|
function m(e, r) {
|
|
25
26
|
return () => {
|
|
26
|
-
|
|
27
|
+
s.has(e) || s.add(e), r();
|
|
27
28
|
};
|
|
28
29
|
}
|
|
29
|
-
async function
|
|
30
|
-
if (
|
|
30
|
+
async function C(e) {
|
|
31
|
+
if (s.has(e))
|
|
31
32
|
return;
|
|
32
|
-
(await g()).createModel("", e,
|
|
33
|
+
(await g()).createModel("", e, p.parse("")).dispose();
|
|
33
34
|
}
|
|
34
35
|
const k = {
|
|
35
36
|
"light-theme": { comment: "#606060", constant: "#9809C8", date: "#296389", identifier: "#0000B3", keyword: "#BF4900", number: "#136D3D", string: "#A31515", operator: "#9809C8", predefined: "#0000B3" },
|
|
@@ -39,9 +40,9 @@ w();
|
|
|
39
40
|
function w() {
|
|
40
41
|
g().then((e) => {
|
|
41
42
|
["light", "dark"].forEach((r) => {
|
|
42
|
-
const
|
|
43
|
-
e.defineTheme(
|
|
44
|
-
base:
|
|
43
|
+
const i = r === "light" ? "vs" : "vs-dark", o = k[`${r}-theme`];
|
|
44
|
+
e.defineTheme(i, {
|
|
45
|
+
base: i,
|
|
45
46
|
inherit: !0,
|
|
46
47
|
rules: [
|
|
47
48
|
{ token: "comment.arcgis", foreground: o.comment },
|
|
@@ -68,7 +69,7 @@ a.register({
|
|
|
68
69
|
a.onLanguage(
|
|
69
70
|
t.languageId,
|
|
70
71
|
m(t.languageId, () => {
|
|
71
|
-
|
|
72
|
+
f().then((e) => {
|
|
72
73
|
e.setupMode(t), u(t.languageId);
|
|
73
74
|
}).catch((e) => {
|
|
74
75
|
throw e;
|
|
@@ -92,6 +93,6 @@ a.onLanguage(
|
|
|
92
93
|
})
|
|
93
94
|
);
|
|
94
95
|
export {
|
|
95
|
-
|
|
96
|
-
|
|
96
|
+
C as s,
|
|
97
|
+
q as w
|
|
97
98
|
};
|
|
@@ -5,7 +5,7 @@ import { CompletionItemKind as w, InsertTextFormat as u, InsertTextMode as p } f
|
|
|
5
5
|
import { getDeclaredPixelMembers as I } from "@arcgis/core/applications/Components/arcadeEditorUtils.js";
|
|
6
6
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
7
7
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
8
|
-
v5.0.0-next.
|
|
8
|
+
v5.0.0-next.75 */
|
|
9
9
|
async function C(e) {
|
|
10
10
|
const { apiVersion: r, bundles: t, hiddenApiItems: i } = e.toEditorProfileDefinition(), n = await h(e.dictionaryVariables);
|
|
11
11
|
return { apiVersion: r, bundles: t, variables: n, hiddenApiItems: i?.map((s) => s.toLowerCase()) };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createArcadeExecutor as C } from "@arcgis/core/arcade.js";
|
|
2
2
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
4
|
-
v5.0.0-next.
|
|
4
|
+
v5.0.0-next.75 */
|
|
5
5
|
const G = "https://developers.arcgis.com/arcade/", O = 100, A = 100;
|
|
6
6
|
function u(t) {
|
|
7
7
|
return !!t && typeof t == "object" && "declaredRootClass" in t && typeof t.declaredRootClass == "string" && t.declaredRootClass === "esri.arcade.featureset.support.FeatureSet";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Range as x, languages as l, MarkerSeverity as p, Emitter as L } from "monaco-editor";
|
|
2
2
|
import "monaco-editor/esm/vs/editor/standalone/browser/standaloneServices.js";
|
|
3
3
|
import "monaco-editor/esm/vs/editor/standalone/common/standaloneTheme.js";
|
|
4
|
+
import "monaco-editor/esm/vs/platform/hover/browser/hover.js";
|
|
4
5
|
import "monaco-editor/esm/vs/editor/common/languages/supports/tokenization.js";
|
|
5
6
|
import { ArcadeKeywords as M } from "@arcgis/arcade-languageservice";
|
|
6
7
|
import { i as k } from "./monaco-importer.js";
|
|
@@ -9,7 +10,7 @@ import { debounce as F } from "@arcgis/toolkit/function";
|
|
|
9
10
|
import { Deferred as _ } from "@arcgis/toolkit/promise";
|
|
10
11
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
11
12
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
12
|
-
v5.0.0-next.
|
|
13
|
+
v5.0.0-next.75 */
|
|
13
14
|
const S = [
|
|
14
15
|
"<=",
|
|
15
16
|
">=",
|
|
@@ -489,7 +490,7 @@ class b {
|
|
|
489
490
|
}
|
|
490
491
|
}
|
|
491
492
|
let w;
|
|
492
|
-
async function
|
|
493
|
+
async function Y(...t) {
|
|
493
494
|
return await b.waitForWorker(), await new Promise((e, n) => {
|
|
494
495
|
if (!w) {
|
|
495
496
|
n(new Error("Arcade not registered!"));
|
|
@@ -519,10 +520,10 @@ class O {
|
|
|
519
520
|
}
|
|
520
521
|
}
|
|
521
522
|
const C = new O();
|
|
522
|
-
function
|
|
523
|
+
function ee() {
|
|
523
524
|
return C;
|
|
524
525
|
}
|
|
525
|
-
function
|
|
526
|
+
function te(t) {
|
|
526
527
|
const e = new b(t), n = async (...c) => await e.getLanguageServiceWorker(...c);
|
|
527
528
|
w = n, l.setMonarchTokensProvider(t.languageId, A), l.setLanguageConfiguration(t.languageId, T), l.registerCompletionItemProvider(
|
|
528
529
|
t.languageId,
|
|
@@ -536,7 +537,7 @@ function ee(t) {
|
|
|
536
537
|
});
|
|
537
538
|
}
|
|
538
539
|
export {
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
540
|
+
ee as getArcadeDiagnosticService,
|
|
541
|
+
Y as getArcadeWorker,
|
|
542
|
+
te as setupMode
|
|
542
543
|
};
|
|
@@ -1,19 +1,24 @@
|
|
|
1
|
-
import
|
|
1
|
+
import f from "@arcgis/core/request.js";
|
|
2
|
+
import "monaco-editor";
|
|
3
|
+
import { StandaloneServices as w } from "monaco-editor/esm/vs/editor/standalone/browser/standaloneServices.js";
|
|
4
|
+
import "monaco-editor/esm/vs/editor/standalone/common/standaloneTheme.js";
|
|
5
|
+
import { IHoverService as m } from "monaco-editor/esm/vs/platform/hover/browser/hover.js";
|
|
6
|
+
import "monaco-editor/esm/vs/editor/common/languages/supports/tokenization.js";
|
|
2
7
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
8
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
4
|
-
v5.0.0-next.
|
|
5
|
-
function
|
|
9
|
+
v5.0.0-next.75 */
|
|
10
|
+
function g() {
|
|
6
11
|
return !!window.MonacoEnvironment?.getWorker;
|
|
7
12
|
}
|
|
8
13
|
let a = "";
|
|
9
|
-
const
|
|
14
|
+
const k = /* @__PURE__ */ new Map(), i = !1;
|
|
10
15
|
async function c(t, e, r) {
|
|
11
16
|
if (r)
|
|
12
17
|
return e ? e() : new Worker(t);
|
|
13
18
|
const o = window.location.origin;
|
|
14
19
|
if (new URL(t, window.location.href).origin !== o) {
|
|
15
|
-
const
|
|
16
|
-
return new Worker(URL.createObjectURL(new Blob([
|
|
20
|
+
const n = await f(t, { responseType: "text" });
|
|
21
|
+
return new Worker(URL.createObjectURL(new Blob([n.data], { type: "text/javascript" })), {
|
|
17
22
|
type: "module"
|
|
18
23
|
});
|
|
19
24
|
}
|
|
@@ -21,10 +26,10 @@ async function c(t, e, r) {
|
|
|
21
26
|
type: "module"
|
|
22
27
|
});
|
|
23
28
|
}
|
|
24
|
-
function
|
|
25
|
-
if (
|
|
29
|
+
function S(t) {
|
|
30
|
+
if (g())
|
|
26
31
|
return;
|
|
27
|
-
a = t;
|
|
32
|
+
j(), a = t;
|
|
28
33
|
const e = `${a}/code-editor`, r = {
|
|
29
34
|
arcade: `${e}/arcade.worker.js`,
|
|
30
35
|
"arcgis-sql-expression": `${e}/sql-expr.worker.js`,
|
|
@@ -60,23 +65,27 @@ function j(t) {
|
|
|
60
65
|
}
|
|
61
66
|
};
|
|
62
67
|
window.MonacoEnvironment = {
|
|
63
|
-
getWorker: async (
|
|
64
|
-
const
|
|
65
|
-
if (
|
|
66
|
-
return await c(
|
|
67
|
-
const { url:
|
|
68
|
-
return await c(
|
|
68
|
+
getWorker: async (u, n) => {
|
|
69
|
+
const s = k.get(n);
|
|
70
|
+
if (s)
|
|
71
|
+
return await c(s, void 0, i);
|
|
72
|
+
const { url: p, localWorker: d } = o[n] || o.default;
|
|
73
|
+
return await c(p, d, i);
|
|
69
74
|
}
|
|
70
75
|
};
|
|
71
76
|
}
|
|
72
|
-
|
|
73
|
-
|
|
77
|
+
let l = !1;
|
|
78
|
+
function j() {
|
|
79
|
+
l || (w.get(m), l = !0);
|
|
74
80
|
}
|
|
75
|
-
async function
|
|
81
|
+
async function q() {
|
|
82
|
+
return (await v()).getArcadeDiagnosticService();
|
|
83
|
+
}
|
|
84
|
+
async function v() {
|
|
76
85
|
return await import("./arcade-mode.js");
|
|
77
86
|
}
|
|
78
87
|
export {
|
|
79
|
-
|
|
80
|
-
g,
|
|
81
|
-
|
|
88
|
+
q as a,
|
|
89
|
+
v as g,
|
|
90
|
+
S as s
|
|
82
91
|
};
|
package/dist/chunks/colorize.js
CHANGED
|
@@ -4,7 +4,7 @@ import { IStandaloneThemeService as n } from "monaco-editor/esm/vs/editor/standa
|
|
|
4
4
|
import { generateTokensCSSForColorMap as a } from "monaco-editor/esm/vs/editor/common/languages/supports/tokenization.js";
|
|
5
5
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
6
6
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
7
|
-
v5.0.0-next.
|
|
7
|
+
v5.0.0-next.75 */
|
|
8
8
|
async function c(e, o) {
|
|
9
9
|
return await (await i()).colorize(e, o, { tabSize: 2 });
|
|
10
10
|
}
|
package/dist/chunks/editor.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { css as e } from "lit";
|
|
2
2
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
4
|
-
v5.0.0-next.
|
|
4
|
+
v5.0.0-next.75 */
|
|
5
5
|
const i = e`@layer{arcgis-arcade-editor,arcgis-sql-expression-editor{.flex-adjustable{flex:1 1 auto;overflow:hidden}.flex-panel{flex:1 0 auto}.position-relative{position:relative}.flex-row{display:flex;flex-direction:row;overflow:hidden}.flex-column{display:flex;flex-direction:column;overflow:hidden}.border-inline-start{border-inline-start:var(--arcgis-coding-components-border)!important;box-sizing:border-box}.border-inline-end{border-inline-end:var(--arcgis-coding-components-border)!important;box-sizing:border-box}.side-action-bar{max-width:var(--arcgis-coding-components-side-action-bar-max-w)}.code-editor-side-panel{max-width:var(--arcgis-coding-components-code-editor-side-panel-max-w);width:var(--arcgis-coding-components-code-editor-side-panel-w)}.code-editor-side-panel calcite-flow{height:100%}}}`;
|
|
6
6
|
export {
|
|
7
7
|
i as s
|
package/dist/chunks/fields.js
CHANGED
|
@@ -16,7 +16,7 @@ import { filterApiLibraryForContext as de } from "@arcgis/languages-api-utils";
|
|
|
16
16
|
import { Emitter as G, Uri as E } from "monaco-editor";
|
|
17
17
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
18
18
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
19
|
-
v5.0.0-next.
|
|
19
|
+
v5.0.0-next.75 */
|
|
20
20
|
function k(t) {
|
|
21
21
|
return !!t && typeof t == "object" && "declaredClass" in t && typeof t.declaredClass == "string" && t.declaredClass.startsWith("esri.layers.") && w(t) && "queryFeatures" in t && typeof t.queryFeatures == "function";
|
|
22
22
|
}
|
package/dist/chunks/markdown.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
3
|
-
v5.0.0-next.
|
|
3
|
+
v5.0.0-next.75 */
|
|
4
4
|
function D() {
|
|
5
5
|
return { async: !1, breaks: !1, extensions: null, gfm: !0, hooks: null, pedantic: !1, renderer: null, silent: !1, tokenizer: null, walkTokens: null };
|
|
6
6
|
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import "monaco-editor";
|
|
2
2
|
import "monaco-editor/esm/vs/editor/standalone/browser/standaloneServices.js";
|
|
3
3
|
import "monaco-editor/esm/vs/editor/standalone/common/standaloneTheme.js";
|
|
4
|
+
import "monaco-editor/esm/vs/platform/hover/browser/hover.js";
|
|
4
5
|
import "monaco-editor/esm/vs/editor/common/languages/supports/tokenization.js";
|
|
5
6
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
6
7
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
7
|
-
v5.0.0-next.
|
|
8
|
+
v5.0.0-next.75 */
|
|
8
9
|
const r = async () => {
|
|
9
10
|
const { editor: t } = await import("monaco-editor/esm/vs/editor/editor.api.js");
|
|
10
11
|
return t;
|
package/dist/chunks/runtime.js
CHANGED
|
@@ -3,7 +3,7 @@ import { makeRuntime as e } from "@arcgis/lumina";
|
|
|
3
3
|
import { trackAccess as s, createObservable as r, createTrackingTarget as a, runTracked as c } from "@arcgis/core/applications/Components/reactiveUtils.js";
|
|
4
4
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
5
5
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
6
|
-
v5.0.0-next.
|
|
6
|
+
v5.0.0-next.75 */
|
|
7
7
|
const t = e({ defaultAssetPath: "https://jsdev.arcgis.com/next/coding-components/", hydratedAttribute: "hydrated" }), { customElement: n, getAssetPath: d, setAssetPath: i } = t;
|
|
8
8
|
t.t = s;
|
|
9
9
|
t.o = r;
|
|
@@ -4,7 +4,7 @@ import { fetchT9nStringsBundle as M } from "@arcgis/toolkit/intl";
|
|
|
4
4
|
import { g as b } from "./runtime.js";
|
|
5
5
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
6
6
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
7
|
-
v5.0.0-next.
|
|
7
|
+
v5.0.0-next.75 */
|
|
8
8
|
const x = (r) => {
|
|
9
9
|
const e = r.variables[0], i = e && e.type === "featureSet" ? A(e) : void 0, { apiVersion: t, bundles: o, hiddenApiItems: s } = r.toEditorProfileDefinition();
|
|
10
10
|
return {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Emitter as T, languages as u } from "monaco-editor";
|
|
2
2
|
import "monaco-editor/esm/vs/editor/standalone/browser/standaloneServices.js";
|
|
3
3
|
import "monaco-editor/esm/vs/editor/standalone/common/standaloneTheme.js";
|
|
4
|
+
import "monaco-editor/esm/vs/platform/hover/browser/hover.js";
|
|
4
5
|
import "monaco-editor/esm/vs/editor/common/languages/supports/tokenization.js";
|
|
5
6
|
import { i as p } from "./monaco-importer.js";
|
|
6
7
|
import { Deferred as _ } from "@arcgis/toolkit/promise";
|
|
@@ -9,7 +10,7 @@ import { debounce as N } from "@arcgis/toolkit/function";
|
|
|
9
10
|
import { g as f } from "./sql-expr-service-accessors.js";
|
|
10
11
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
11
12
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
12
|
-
v5.0.0-next.
|
|
13
|
+
v5.0.0-next.75 */
|
|
13
14
|
let h = new _();
|
|
14
15
|
class k {
|
|
15
16
|
constructor(e) {
|
|
@@ -320,7 +321,7 @@ class b {
|
|
|
320
321
|
}
|
|
321
322
|
}
|
|
322
323
|
let E;
|
|
323
|
-
async function
|
|
324
|
+
async function V(...a) {
|
|
324
325
|
return await k.waitForWorker(), await new Promise((e, t) => {
|
|
325
326
|
if (!E) {
|
|
326
327
|
t(new Error("sql expression worker not registered!"));
|
|
@@ -350,10 +351,10 @@ class D {
|
|
|
350
351
|
}
|
|
351
352
|
}
|
|
352
353
|
const C = new D();
|
|
353
|
-
async function
|
|
354
|
+
async function B() {
|
|
354
355
|
return await f(), C;
|
|
355
356
|
}
|
|
356
|
-
function
|
|
357
|
+
function K(a) {
|
|
357
358
|
const e = new k(a), t = async (...n) => await e.getLanguageServiceWorker(...n);
|
|
358
359
|
E = t, u.setMonarchTokensProvider(d.languageId, M), u.setLanguageConfiguration(d.languageId, R);
|
|
359
360
|
const i = new x(t, d);
|
|
@@ -363,7 +364,7 @@ function B(a) {
|
|
|
363
364
|
});
|
|
364
365
|
}
|
|
365
366
|
export {
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
367
|
+
B as getSqlExprDiagnosticService,
|
|
368
|
+
V as getSqlExprWorker,
|
|
369
|
+
K as setupMode
|
|
369
370
|
};
|
package/dist/chunks/useT9n.js
CHANGED
|
@@ -2,7 +2,7 @@ import { makeT9nController as o } from "@arcgis/lumina/controllers";
|
|
|
2
2
|
import { g as t } from "./runtime.js";
|
|
3
3
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
4
4
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
5
|
-
v5.0.0-next.
|
|
5
|
+
v5.0.0-next.75 */
|
|
6
6
|
const s = o(t);
|
|
7
7
|
export {
|
|
8
8
|
s as u
|
package/dist/chunks/utilities.js
CHANGED
|
@@ -2,7 +2,7 @@ import { createFilterExpression as d } from "@arcgis/toolkit/string";
|
|
|
2
2
|
import { format as f } from "@arcgis/arcade-languageservice";
|
|
3
3
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
4
4
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
5
|
-
v5.0.0-next.
|
|
5
|
+
v5.0.0-next.75 */
|
|
6
6
|
function b(e, r, s, u) {
|
|
7
7
|
if (!r)
|
|
8
8
|
return [];
|
|
@@ -17,7 +17,7 @@ import Z from "@arcgis/core/Graphic.js";
|
|
|
17
17
|
import { b as ee } from "../../chunks/language-defaults-base.js";
|
|
18
18
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
19
19
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
20
|
-
v5.0.0-next.
|
|
20
|
+
v5.0.0-next.75 */
|
|
21
21
|
const te = G`:host(:not([closed])){container-type:size;--calcite-block-border-color: var(--calcite-color-transparent);flex:1 0 auto;border-inline-start:var(--arcgis-coding-components-border);box-sizing:border-box;max-width:var(--arcgis-coding-components-code-editor-side-panel-max-w);width:var(--arcgis-coding-components-code-editor-side-panel-w);.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}.action .error-display{display:flex;flex-direction:row;gap:.5rem;justify-content:space-between}.context-popover p{padding:0 .5rem;font-size:var(--calcite-font-size-sm)}.feedback-content{padding:1rem;display:flex;flex-direction:column;gap:.75rem;max-height:30vh;overflow-y:auto}.feedback-sheet{--calcite-sheet-height: auto;--calcite-sheet-max-height: 100%;--calcite-sheet-min-height: auto}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-sheet{--calcite-sheet-scrim-background: rgba(200, 200, 200, .5)}.type-suggestion{--calcite-color-foreground-1: var(--calcite-color-foreground-current);--calcite-color-text-3: var(--calcite-color-text-2);--calcite-icon-color: var(--calcite-color-brand)}.type-history{--calcite-icon-color: var(--calcite-color-text-2)}.type-response{--calcite-icon-color: var(--calcite-color-brand);--calcite-font-family: monospace}.block-response{align-self:flex-start;margin-block-end:4rem;border-block-end:0;--calcite-block-text-color: var(--calcite-color-brand)}calcite-list-item calcite-button{margin-inline-end:.25rem}.type-docs{--calcite-color-foreground-1: var(--calcite-color-foreground-3);--calcite-icon-color: var(--calcite-color-text-1)}.type-error{--calcite-icon-color: var(--calcite-color-status-danger);--calcite-font-family: monospace;border:1px solid var(--calcite-color-status-danger)}#thumbs-up{margin-inline-start:auto;--calcite-icon-color: var(--calcite-color-border-input)}#thumbs-down{--calcite-icon-color: var(--calcite-color-border-input)}calcite-flow-item calcite-shell calcite-notice{margin-block:1rem}.no-space-block,.no-space-block[open]{margin:0}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}calcite-text-area{height:auto;min-height:5.75rem;overflow:hidden;border-radius:var(--calcite-corner-radius-round) var(--calcite-corner-radius-round) 0 0;--calcite-font-weight-normal: 500;font-weight:500;line-height:1.2}calcite-tooltip{--calcite-tooltip-z-index: 1000}.standalone-list{margin:1rem;width:calc(100% - 2rem)}.result-disclaimer{display:block;width:24rem;max-width:90%;margin:1rem auto;text-align:center;line-height:1.125rem;font-size:.875rem;font-style:italic}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%}.break-spaces{white-space:break-spaces}.feedback-button-container{margin-inline-start:auto;gap:0}.info-heading{font-size:var(--calcite-font-size-1);color:var(--calcite-color-text-1)}.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)}.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=title] 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}.code-collapse{margin-inline-start:auto}.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)}.collapsible-error{padding:.5rem}.collapsible-error summary{cursor:pointer;font-weight:500;color:var(--calcite-color-status-danger);outline:none;padding:.25rem 0}.collapsible-error[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}}:host([closed]){display:none}`;
|
|
22
22
|
class v extends Error {
|
|
23
23
|
constructor({
|
|
@@ -3,6 +3,7 @@ import { css as w, html as i, nothing as A } from "lit";
|
|
|
3
3
|
import { KeyCode as R } from "monaco-editor";
|
|
4
4
|
import "monaco-editor/esm/vs/editor/standalone/browser/standaloneServices.js";
|
|
5
5
|
import "monaco-editor/esm/vs/editor/standalone/common/standaloneTheme.js";
|
|
6
|
+
import "monaco-editor/esm/vs/platform/hover/browser/hover.js";
|
|
6
7
|
import "monaco-editor/esm/vs/editor/common/languages/supports/tokenization.js";
|
|
7
8
|
import { LitElement as y, createEvent as x, noShadowRoot as D, safeClassMap as r } from "@arcgis/lumina";
|
|
8
9
|
import { generateGuid as C } from "@arcgis/toolkit/string";
|
|
@@ -16,7 +17,7 @@ import { s as U } from "../../chunks/editor.js";
|
|
|
16
17
|
import j from "@arcgis/core/identity/IdentityManager.js";
|
|
17
18
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
18
19
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
19
|
-
v5.0.0-next.
|
|
20
|
+
v5.0.0-next.75 */
|
|
20
21
|
const z = w`@layer{arcgis-arcade-editor{display:flex;flex-direction:column;position:relative;overflow:hidden;border:var(--arcgis-coding-components-border)!important;box-sizing:border-box;background-color:var(--arcgis-coding-components-background-color);height:100%;.sticky{position:sticky;top:0;z-index:10}.notice-container{margin:var(--calcite-spacing-xxs);padding:var(--calcite-spacing-sm);background-color:var(--calcite-color-foreground-1);text-align:center}.main-action-bar{border-bottom:var(--arcgis-coding-components-border)!important;flex:0 0 auto;calcite-action-group{padding-inline-end:var(--calcite-spacing-sm);calcite-action{padding-inline-end:var(--calcite-spacing-sm)}calcite-action:not(:first-child){padding-inline-start:var(--calcite-spacing-sm)}}calcite-action-group:last-child{border-inline-end-width:0px}calcite-action-group:not(:first-child){padding-inline-start:var(--calcite-spacing-sm)}}arcgis-arcade-results{border-top:var(--arcgis-coding-components-border)!important;box-sizing:border-box;max-height:50%;min-height:50%;margin-bottom:-1px}calcite-flow{[slot=footer]{word-break:break-word}}.hidden{display:none}}}`, N = "https://services6.arcgis.com/HXHga6CfMLMBOlBX/ArcGIS/rest/services/survey123_6e349a50b4504ca6b6107216d568db5f_form/FeatureServer/0", O = (s) => {
|
|
21
22
|
const { aiAssistantsEnabled: e } = s;
|
|
22
23
|
return e === void 0 ? (console.warn("areAiAssistantsEnabled is not defined in the organizations settings."), !1) : e;
|