@arcgis/coding-components 4.33.0-next.0 → 4.33.0-next.1
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/arcgis-coding-components/{5MZEWM34.js → 2BIW2TZY.js} +2 -2
- package/dist/arcgis-coding-components/{QJW5ZTAS.js → 2KZX6MZB.js} +2 -2
- package/dist/arcgis-coding-components/{5YSIB5L2.js → 3KIFJ3BS.js} +2 -2
- package/dist/arcgis-coding-components/{2BJHJCMR.js → 3RBEANLH.js} +2 -2
- package/dist/arcgis-coding-components/{EDCPYBR4.js → 5F6DSJTQ.js} +2 -2
- package/dist/arcgis-coding-components/{5HMMCV2D.js → 5JENGYDH.js} +2 -2
- package/dist/arcgis-coding-components/{NCOT4R3C.js → 5KV3TPHN.js} +1 -1
- package/dist/arcgis-coding-components/{GJAQIRGZ.js → 5VYCZKMZ.js} +2 -2
- package/dist/arcgis-coding-components/{ZGURYIRQ.js → A4EXNNG6.js} +2 -2
- package/dist/arcgis-coding-components/{XEJP6NPZ.js → BCUYJM6S.js} +2 -2
- package/dist/arcgis-coding-components/{HTCK6HZB.js → BFZKMHRZ.js} +2 -2
- package/dist/arcgis-coding-components/{RIEVYR5I.js → CKDMQR62.js} +2 -2
- package/dist/arcgis-coding-components/{S3DRG2J5.js → CQI3FVTE.js} +2 -2
- package/dist/arcgis-coding-components/{6ZWFCKVH.js → D4KYS6XJ.js} +2 -2
- package/dist/arcgis-coding-components/{RFN77JQL.js → EOPFEDHW.js} +2 -2
- package/dist/arcgis-coding-components/{G6O7GEF4.js → GG7JJGD5.js} +2 -2
- package/dist/arcgis-coding-components/{RKAJIPCQ.js → GGN5TROC.js} +2 -2
- package/dist/arcgis-coding-components/{72CXVSAL.js → HHNSJC5O.js} +1 -1
- package/dist/arcgis-coding-components/{WXWV6ZIG.js → HIPYAN2O.js} +2 -2
- package/dist/arcgis-coding-components/{KBLZG4OS.js → HVOTEDW7.js} +2 -2
- package/dist/arcgis-coding-components/{NMZFO77R.js → I75HJS66.js} +2 -2
- package/dist/arcgis-coding-components/{Y2Z5MORC.js → IPVIUXS2.js} +1 -1
- package/dist/arcgis-coding-components/{5PFCKJQR.js → IVEB6A34.js} +2 -2
- package/dist/arcgis-coding-components/{BQLRCSGJ.js → IXUEU6M6.js} +1 -1
- package/dist/arcgis-coding-components/{SGEKKRHU.js → KIHUY7EO.js} +2 -2
- package/dist/arcgis-coding-components/{BBL4HT37.js → LGYNNHPF.js} +2 -2
- package/dist/arcgis-coding-components/{2SEBL4CN.js → LJYEALJJ.js} +2 -2
- package/dist/arcgis-coding-components/{OWQ7IVT3.js → LNJCAXJ4.js} +1 -1
- package/dist/arcgis-coding-components/{U2SLJWKX.js → M5JLEKMB.js} +2 -2
- package/dist/arcgis-coding-components/{EPNNAL56.js → O657MJSH.js} +2 -2
- package/dist/arcgis-coding-components/{TMUPDY6V.js → PEGBUGAG.js} +2 -2
- package/dist/arcgis-coding-components/{TJGFWTPX.js → Q2IFHXAQ.js} +3 -3
- package/dist/arcgis-coding-components/{OT4WM56V.js → Q53HK2FT.js} +2 -2
- package/dist/arcgis-coding-components/{U72TZQ3L.js → TUV5PSK5.js} +2 -2
- package/dist/arcgis-coding-components/{P3SDVSZC.js → YGPAAWJO.js} +2 -2
- package/dist/arcgis-coding-components/arcgis-coding-components.esm.js +2 -2
- package/dist/arcgis-coding-components/assets/code-editor/sql-expr.worker.js +307 -307
- package/dist/chunks/arcade-defaults.js +1 -1
- 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/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 +1 -1
- package/dist/chunks/runtime.js +1 -1
- package/dist/chunks/sql-expr-defaults.js +1 -1
- package/dist/chunks/sql-expr-mode.js +1 -1
- package/dist/chunks/useT9n.js +1 -1
- package/dist/components/arcgis-arcade-editor/customElement.d.ts +1 -1
- package/dist/components/arcgis-arcade-editor/customElement.js +1 -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 +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 +4 -4
- package/dist/docs/docs.json +3 -3
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +3 -3
- package/dist/index.js +1 -1
- package/dist/loader.js +1 -1
- package/package.json +8 -7
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
3
|
-
v4.33.0-next.
|
|
4
|
-
import{d as o,x as r}from"./
|
|
3
|
+
v4.33.0-next.1 */
|
|
4
|
+
import{d as o,x as r}from"./IVEB6A34.js";var s=o(r);export{s as a};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
3
|
-
v4.33.0-next.
|
|
4
|
-
import{a as v,b as T,c as M,d as m,e as j,f as A,g as F}from"./
|
|
3
|
+
v4.33.0-next.1 */
|
|
4
|
+
import{a as v,b as T,c as M,d as m,e as j,f as A,g as F}from"./5F6DSJTQ.js";import{c as f,d,e as l}from"./IPVIUXS2.js";import{x as u}from"./IVEB6A34.js";import{i as h,j as g,w as k,x}from"./5KV3TPHN.js";var I=await $arcgis.l("request");function L(){return!!window.MonacoEnvironment?.getWorkerUrl}var V=new Map;function G(e){L()||(window.MonacoEnvironment={getWorker:async(n,t)=>{let a=V.get(t)??`${e}/code-editor/editor.worker.js`;switch(t){case"json":a=`${e}/code-editor/json.worker.js`;break;case"css":a=`${e}/code-editor/css.worker.js`;break;case"html":a=`${e}/code-editor/html.worker.js`;break;case"typescript":case"javascript":a=`${e}/code-editor/ts.worker.js`;break;case"arcade":a=`${e}/code-editor/arcade.worker.js`;break;case"arcgis-sql-expression":a=`${e}/code-editor/sql-expr.worker.js`;break}if(!x(a)||k(a,globalThis.location.href,!0))return new Worker(a,{name:t});let r=await I(a,{responseType:"text"});return new Worker(URL.createObjectURL(new Blob([r.data],{type:"text/javascript"})))}})}async function z(){return(await E()).getArcadeDiagnosticService()}async function E(){return await import("./GGN5TROC.js")}async function D(e){let{apiVersion:n,bundles:t,hiddenApiItems:a}=e.toEditorProfileDefinition(),r=await $(e.dictionaryVariables);return{apiVersion:n,bundles:t,variables:r,hiddenApiItems:a?.map(i=>i.toLowerCase())}}async function $(e,n=f.Variable){return await Promise.all(e.map(async t=>{switch(t.type){case"dictionary":return await U(t,n);case"feature":return await C(t,n);default:return S(t,n)}}))}function S(e,n){let{name:t,type:a}=e,r=e.getDescription();return{name:t,description:r,type:a,completion:{label:t,detail:t,insertText:t,insertTextMode:l.asIs,insertTextFormat:d.PlainText,kind:n,documentation:{kind:"markdown",value:r}}}}async function C(e,n){let t=await e.loadSource(),{name:a}=e,r=e.getDescription(),i={label:a,detail:a,insertText:a,insertTextMode:l.asIs,insertTextFormat:d.PlainText,kind:n},s={name:a,description:r,type:"dictionary",properties:[],completion:i};if(!t)return s;let[o,c]=j(t.fields,r,!0);return s.properties=o,i.documentation={kind:"markdown",value:c},s}async function U(e,n){let{name:t,dictionaryVariables:a}=e,r=e.getDescription(),i=a.reduce((s,o)=>{s!==""&&(s+=`
|
|
5
5
|
|
|
6
6
|
`),s+=`**${o.name}**
|
|
7
7
|
${o.type}`;let c=o.getDescription();return c&&(s+=`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/4.33/esri/copyright.txt for details.
|
|
3
|
-
v4.33.0-next.
|
|
4
|
-
import{a as b,c as r,d as v,e as n}from"./
|
|
3
|
+
v4.33.0-next.1 */
|
|
4
|
+
import{a as b,c as r,d as v,e as n}from"./A4EXNNG6.js";import{b as l}from"./2KZX6MZB.js";import{a as _}from"./Q53HK2FT.js";import{a as g}from"./Q2IFHXAQ.js";import"./HIPYAN2O.js";import{e as p,f as s,r as o,s as u,w as f}from"./IVEB6A34.js";import{d,e as h,q as a}from"./5KV3TPHN.js";import"./3RBEANLH.js";import"./IXUEU6M6.js";var $=p`: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}code{font-family:var(--calcite-code-family)}pre{direction:ltr;overflow-x:auto;background-color:var(--calcite-color-foreground-2);padding:var(--calcite-spacing-sm);code{font-size:var(--calcite-font-size--2)}}}calcite-list-item-group{background-color:var(--calcite-color-foreground-2)}}`,m=class extends u{constructor(){super(...arguments),this.messages=_(),this._unselectItem=async()=>{this._selectedApiItem=void 0},this._colorizeStyle="",this._filterValue="",this.hideDocumentationActions=!1,this.loading=!1,this.arcgisClose=o({bubbles:!1}),this.arcgisItemSelected=o({bubbles:!1})}static{this.properties={_colorizeStyle:16,_filterValue:16,_selectedApiItem:16,apiLibrary:0,hideDocumentationActions:5,loading:5}}static{this.styles=$}load(){this._colorizeStyle=r(),this._themeChangedListener=v(()=>this._colorizeStyle=r())}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(),this._themeChangedListener?.dispose()}flowFocusHandler(e){if(!e){this._flowObserver?.disconnect(),this._flowObserver=void 0;return}this._flowObserver||(this._flowObserver=new MutationObserver(()=>{h(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),b(e).catch(console.error))}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=${a(t.completion.detail)} @calciteListItemSelect=${c=>this._emitItemSelected(c,t)} @keydown=${c=>this._emitItemSelected(c,t)}><calcite-action slot=actions-end .text=${this.messages.expand??""} icon=chevron-right icon-flip-rtl scale=s @click=${c=>this._selectItem(c,t)}></calcite-action></calcite-list-item>`)}</calcite-list-item-group>`:null}renderApiItemFlowItem(){let e=this._selectedApiItem;return e?s`<calcite-flow-item .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)} ${l(d)}>${this.messages.insert}</calcite-button><calcite-block open .heading=${a(e.completion.detail)}><div .innerHTML=${n(e.completion.documentation)??""}></div>${e.examples?s`<div ${l(this._elementToMarkdown)}></div>`:null}</calcite-block></calcite-flow-item>`:null}render(){let e=(this.apiLibrary??[]).map(t=>this.renderApiCategory(t)),i=e.every(t=>!t);return s`<style>${this._colorizeStyle}</style><calcite-flow ${l(this.flowFocusHandler)}><calcite-flow-item .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>`}};f("arcgis-language-api-panel",m);export{m 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/4.33/esri/copyright.txt for details.
|
|
3
|
-
v4.33.0-next.
|
|
4
|
-
import{a as e,v as i}from"./
|
|
3
|
+
v4.33.0-next.1 */
|
|
4
|
+
import{a as e,v as i}from"./IVEB6A34.js";import"./5KV3TPHN.js";import"./IXUEU6M6.js";var o=e(i,{"arcgis-arcade-editor":[()=>import("./HVOTEDW7.js"),"customPanels:,editorInstance:,editorOptions:,hideDocumentationActions,hideSideBar,openedSidePanel:,profile:,script,sideActionBarExpanded,snippets:,suggestions:,testData:;getEditorInstance,getScript,getTestResult,setFocus"],"arcgis-arcade-results":[()=>import("./5VYCZKMZ.js"),"consoleLogs:,loading,openedResultPanel,result:"],"arcgis-arcade-suggestions":[()=>import("./5JENGYDH.js"),"suggestions:"],"arcgis-code-editor":[()=>import("./CKDMQR62.js"),"editorInstance:,editorOptions:,language,modelId,value;getEditorInstance,getValue,insertSnippet,insertText,setFocus,setValue"],"arcgis-editor-variables":[()=>import("./BFZKMHRZ.js"),"loading,modelId,variable:"],"arcgis-language-api-panel":[()=>import("./YGPAAWJO.js"),"apiLibrary:,hideDocumentationActions,loading"],"arcgis-sql-expression-editor":[()=>import("./2BIW2TZY.js"),"hideSideBar,profile:,script"],"arcgis-sql-expression-fields":[()=>import("./GG7JJGD5.js"),"loading,modelId"]});var r=new CSSStyleSheet;r.replaceSync("@layer{:not([hydrated]):is(arcgis-arcade-editor,arcgis-code-editor,arcgis-sql-expression-editor){visibility:hidden}:root{--arcgis-coding-components-border: 1px solid var(--calcite-color-border-3);--arcgis-coding-components-background-color: var(--calcite-color-foreground-1);--arcgis-coding-components-side-action-bar-max-w: 25%;--arcgis-coding-components-side-panel-w: 600px;--arcgis-coding-components-side-panel-max-w: 45%;--arcgis-editor-comment: #606060;--arcgis-editor-constant: #9809C8;--arcgis-editor-date: #296389;--arcgis-editor-identifier: #0000B3;--arcgis-editor-keyword: #BF4900;--arcgis-editor-number: #136D3D;--arcgis-editor-string: #A31515}.calcite-mode-dark{--arcgis-editor-comment: #BFBFBF;--arcgis-editor-constant: #CDBAEA;--arcgis-editor-date: #97A6CE;--arcgis-editor-identifier: #9FD4F3;--arcgis-editor-keyword: #EEAA5A;--arcgis-editor-number: #AAD04B;--arcgis-editor-string: #F2877B}}");document.adoptedStyleSheets=[...document.adoptedStyleSheets,r];o({resourcesUrl:import.meta.url});{window.$arcgis||Object.defineProperty(window,"$arcgis",{configurable:!1,enumerable:!0,writable:!1,value:{},});var a=$arcgis;a.l=x=>x.map?Promise.all(x.map(a.l)):(!a?.forceESM&&a?.import||(x=>import(x+".js").then(m=>m.default??m)))("@arcgis/core/"+x)}
|