@arcgis/coding-components 5.1.0-next.87 → 5.1.0-next.89
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/3VRELPEF.js +2 -0
- package/dist/cdn/4B64NBIM.js +2 -0
- package/dist/cdn/5DAIGIIS.js +2 -0
- package/dist/cdn/6EKA3H3N.js +2 -0
- package/dist/cdn/6G5URSC7.js +2 -0
- package/dist/cdn/{BVNLUX5A.js → 6HL5GBWZ.js} +1 -1
- package/dist/cdn/7B33SKQD.js +2 -0
- package/dist/cdn/{GJMI6M3I.js → BA546EMZ.js} +1 -1
- package/dist/cdn/{2PRSVBDA.js → BKBBI4SA.js} +1 -1
- package/dist/cdn/BQISDYES.js +2 -0
- package/dist/cdn/E3TJIEWT.js +2 -0
- package/dist/cdn/FEYQMPLI.js +2 -0
- package/dist/cdn/GLJQQLP2.js +2 -0
- package/dist/cdn/{4I7VT4LW.js → I22MLDO4.js} +1 -1
- package/dist/cdn/ID3QICBM.js +4 -0
- package/dist/cdn/IIER7Z56.js +2 -0
- package/dist/cdn/{LWXQURWG.js → ILQJDTTW.js} +1 -1
- package/dist/cdn/JIBWBXDI.js +3 -0
- package/dist/cdn/{KEROXLGY.js → JT3FBAVQ.js} +1 -1
- package/dist/cdn/KA5TX72B.js +64 -0
- package/dist/cdn/MC6EICRD.js +2 -0
- package/dist/cdn/MJ7MJPGA.js +2 -0
- package/dist/cdn/MTIHPCIF.js +2 -0
- package/dist/cdn/N75AXIUZ.js +2 -0
- package/dist/cdn/NEIT2PGG.js +2 -0
- package/dist/cdn/{N7KYUPBV.js → NK5J27LM.js} +1 -1
- package/dist/cdn/NKJUJKFG.js +2 -0
- package/dist/cdn/NZDJGAT2.js +2 -0
- package/dist/cdn/{JHVMGSI2.js → OI3DH7N2.js} +1 -1
- package/dist/cdn/QMNQFBIA.js +4 -0
- package/dist/cdn/{INPMAY4D.js → SM3MA3KP.js} +1 -1
- package/dist/cdn/SMAQD57G.js +2 -0
- package/dist/cdn/{6XDEGPYR.js → UOQZCTHQ.js} +1 -1
- package/dist/cdn/{QOX2FNYP.js → VA6SZILK.js} +1 -1
- package/dist/cdn/VKNLGQFU.js +2 -0
- package/dist/cdn/{YLJUOSJJ.js → XBM4ZDJT.js} +1 -1
- package/dist/cdn/YVF4PPDB.js +2 -0
- package/dist/cdn/assets/arcade-debugger-console/t9n/messages.en.json +1 -0
- package/dist/cdn/assets/arcade-debugger-output/t9n/messages.en.json +1 -0
- package/dist/cdn/assets/arcade-editor/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/code-editor/sql-expr.worker.js +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/ArcadeDebuggerPreviewTabsState.js +178 -0
- package/dist/chunks/arcade-executor.js +76 -67
- package/dist/chunks/arcade-service-accessors.js +2 -2
- package/dist/chunks/colorize.js +9 -9
- package/dist/chunks/debugger-value-components.js +275 -0
- package/dist/chunks/debugger-value-styles.js +171 -0
- package/dist/chunks/functional.js +83 -0
- package/dist/chunks/setup-monaco-theme.js +1 -1
- package/dist/chunks/utilities.js +44 -34
- package/dist/components/arcgis-arcade-debugger-console/customElement.js +201 -0
- package/dist/components/arcgis-arcade-debugger-console/index.js +11 -0
- package/dist/components/arcgis-arcade-debugger-output/customElement.js +42 -0
- package/dist/components/arcgis-arcade-debugger-output/index.js +5 -0
- package/dist/components/arcgis-arcade-editor/customElement.d.ts +34 -1
- package/dist/components/arcgis-arcade-editor/customElement.js +639 -111
- package/dist/components/arcgis-arcade-editor/index.js +2 -0
- package/dist/components/arcgis-arcade-results/customElement.js +52 -155
- package/dist/components/arcgis-code-editor/customElement.js +1 -1
- package/dist/components/arcgis-code-editor-shell/customElement.d.ts +2 -1
- package/dist/components/arcgis-code-editor-shell/customElement.js +17 -8
- package/dist/components/arcgis-code-viewer/customElement.d.ts +28 -1
- package/dist/components/arcgis-code-viewer/customElement.js +65 -52
- 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/loader.js +5 -3
- package/dist/types/lumina.d.ts +2 -2
- package/dist/types/preact.d.ts +2 -2
- package/dist/types/react.d.ts +2 -2
- package/dist/types/stencil.d.ts +2 -2
- package/dist/utils/arcade-executor.d.ts +2 -1
- package/package.json +5 -5
- package/dist/cdn/3GNGWLOI.js +0 -2
- package/dist/cdn/3UZ3JCYW.js +0 -4
- package/dist/cdn/43A7UCSS.js +0 -2
- package/dist/cdn/4Y64BGY2.js +0 -2
- package/dist/cdn/BGQRJR32.js +0 -2
- package/dist/cdn/CPJ4MNMY.js +0 -2
- package/dist/cdn/G2Z2DNVW.js +0 -2
- package/dist/cdn/ISAWP6I3.js +0 -2
- package/dist/cdn/IVNVT7UT.js +0 -2
- package/dist/cdn/KD7MZWFX.js +0 -2
- package/dist/cdn/MSV4QVR2.js +0 -2
- package/dist/cdn/PX32GRG7.js +0 -2
- package/dist/cdn/QRXX4WHP.js +0 -3
- package/dist/cdn/T4G2IY4F.js +0 -2
- package/dist/cdn/TTOHS2DV.js +0 -11
- package/dist/cdn/VUYXKN7I.js +0 -2
- package/dist/cdn/YMEY2NOQ.js +0 -4
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
+
import{a as s}from"./6G5URSC7.js";import{G as r,K as a,h as n,j as t}from"./SM3MA3KP.js";import"./BCUUVBXH.js";import"./3TTFCHAA.js";var l=n`:host{--arcgis-coding-components-internal-border: var( --arcgis-coding-components-border, 1px solid var(--calcite-color-border-3) );--arcgis-coding-components-internal-background-color: var( --arcgis-coding-components-background-color, var(--calcite-color-foreground-1) );--arcgis-coding-components-internal-side-action-bar-max-w: var(--arcgis-coding-components-side-action-bar-max-w, 25%);--arcgis-coding-components-internal-code-editor-side-panel-w: var( --arcgis-coding-components-code-editor-side-panel-w, 600px );--arcgis-coding-components-internal-code-editor-side-panel-max-w: var( --arcgis-coding-components-code-editor-side-panel-max-w, 45% );--arcgis-coding-components-internal-code-editor-results-panel-max-h: var( --arcgis-coding-components-code-editor-results-panel-max-h, 50% );--arcgis-coding-components-internal-code-editor-results-panel-h: var( --arcgis-coding-components-code-editor-results-panel-h, 50% );display:flex;flex-direction:column;position:relative;overflow:hidden;border:var(--arcgis-coding-components-internal-border);box-sizing:border-box;background-color:var(--arcgis-coding-components-internal-background-color);height:100%;.flex-adjustable{flex:1 1 auto;overflow:hidden}.flex-row{display:flex;flex-direction:row;overflow:hidden}.flex-column{display:flex;flex-direction:column;overflow:hidden}}slot[name=top-action-bar]{flex:0 0 auto}slot[name=top-action-bar]::slotted(*){border-bottom:var(--arcgis-coding-components-internal-border)}slot[name=bottom-action-bar]{flex:0 0 auto}slot[name=bottom-action-bar]::slotted(*){border-top:var(--arcgis-coding-components-internal-border)}slot[name=side-panel]::slotted(*){max-width:var(--arcgis-coding-components-internal-code-editor-side-panel-max-w);width:var(--arcgis-coding-components-internal-code-editor-side-panel-w);border-inline-start:var(--arcgis-coding-components-internal-border);box-sizing:border-box;flex:1 0 auto}slot[name=side-panel]::slotted(.hidden){display:none}slot[name=editor]::slotted(*){flex:auto;min-height:0}slot[name=results-panel]{display:flex;flex:0 0 auto;overflow:hidden}:host(.results-has-content) slot[name=results-panel]{height:var(--arcgis-coding-components-internal-code-editor-results-panel-h);max-height:var(--arcgis-coding-components-internal-code-editor-results-panel-max-h)}slot[name=results-panel]::slotted(*){border-top:var(--arcgis-coding-components-internal-border);box-sizing:border-box;flex:auto}slot[name=side-action-bar]::slotted(*){max-width:var(--arcgis-coding-components-internal-side-action-bar-max-w);border-inline-start:var(--arcgis-coding-components-internal-border)}`,o=class extends r{constructor(){super(...arguments),this._onResultsPanelSlotChange=e=>{if(!e.target)return;let i=s(e);this.el.classList.toggle("results-has-content",i)}}static{this.styles=[l]}render(){return t`<slot name=top-action-bar></slot><div class="flex-row flex-adjustable"><div class="flex-column flex-adjustable"><slot name=editor></slot><slot name=bottom-action-bar></slot><slot name=results-panel @slotchange=${this._onResultsPanelSlotChange}></slot></div><slot name=side-panel></slot><slot name=side-action-bar></slot></div>`}};a("arcgis-code-editor-shell",o);export{o as CodeEditorShell};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
+
export default $arcgis.t(([u,{property:d,subclass:v}])=>{var I=Object.defineProperty,y=Object.getOwnPropertyDescriptor,r=(t,e,s,i)=>{for(var a=i>1?void 0:i?y(e,s):e,h=t.length-1,l;h>=0;h--)(l=t[h])&&(a=(i?l(e,s,a):l(a))||a);return i&&a&&I(e,s,a),a},b="scope";function c(t){return`preview:${t}`}function p(t){let e=t.split(".").filter(Boolean).at(-1)??t;return e.length>9?`${e.slice(0,12)}...`:e}var o=class extends u{constructor(t){super(t),this.fields=[],this.id="",this.invalidated=!1,this.label="",this.message="",this.requestId=0,this.rows=[],this.sourcePath="",this.status="idle",this.title=""}};r([d()],o.prototype,"fields",2);r([d()],o.prototype,"id",2);r([d()],o.prototype,"invalidated",2);r([d()],o.prototype,"label",2);r([d()],o.prototype,"message",2);r([d()],o.prototype,"requestId",2);r([d()],o.prototype,"rows",2);r([d()],o.prototype,"sourcePath",2);r([d()],o.prototype,"status",2);r([d()],o.prototype,"title",2);o=r([v("ArcadeDebuggerPreviewTabState")],o);var n=class extends u{constructor(t){super(t),this.activeTabId=b,this.tabs=[],this.revision=0,this.tabsById=new Map}get activeTab(){return this.tabsById.get(this.activeTabId)}clear(){this.revision+=1,this.activeTabId=b,this.destroyTabs()}closeTab(t){let e=this.tabs.findIndex(h=>h.id===t);if(e<0)return;let s=this.activeTabId===t,i=this.tabs[e+1]??this.tabs[e-1],a=this.tabs[e];this.tabsById.delete(t),a.destroy(),this.tabs=this.tabs.filter(h=>h.id!==t),s&&(this.activeTabId=i?.id??b)}getOrCreateTab(t,e){let s=c(t),i=this.tabsById.get(s);if(i)return i.label=t,i.sourcePath=e,i.title=p(t),i;let a=new o;return a.id=s,a.label=t,a.sourcePath=e,a.title=p(t),this.tabsById.set(s,a),this.tabs=[...this.tabs,a],a}getTab(t){return this.tabsById.get(t)}invalidateAll(){this.revision+=1,this.activeTabId=b;for(let t of this.tabs)t.invalidated=!0,this.resetTab(t)}isTabLoading(t){return this.tabsById.get(c(t))?.status==="loading"}selectScope(){this.activeTabId=b}selectTab(t){if(t===b){this.selectScope();return}this.tabsById.has(t)&&(this.activeTabId=t)}startLoad(t,e){let s=this.getOrCreateTab(t,e),i=s.requestId+1;return s.requestId=i,s.invalidated=!1,this.resetTab(s),s.status="loading",this.activeTabId=s.id,{snapshot:{revision:this.revision,requestId:i,tabId:s.id},tab:s}}setError(t,e){let s=this.validateSnapshot(t);s&&(s.status="error",s.message=e)}setLoaded(t,e,s){let i=this.validateSnapshot(t);i&&(i.status="loaded",i.message="",i.fields=e,i.rows=s)}setUnavailable(t,e){let s=this.validateSnapshot(t);s&&(s.status="unavailable",s.message=e,s.fields=[],s.rows=[])}destroyTabs(){for(let t of this.tabsById.values())t.destroy();this.tabsById.clear(),this.tabs=[]}resetTab(t){t.status="idle",t.message="",t.fields=[],t.rows=[]}validateSnapshot(t){let e=this.tabsById.get(t.tabId);if(!(!e||this.revision!==t.revision||e.requestId!==t.requestId))return e}};r([d()],n.prototype,"activeTabId",2);r([d()],n.prototype,"tabs",2);n=r([v("ArcadeDebuggerPreviewTabsState")],n);return{a:b,b:n}},"core/Accessor","core/accessorSupport/decorators")
|