@arcgis/coding-components 5.0.0-next.111 → 5.0.0-next.113

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.
Files changed (120) hide show
  1. package/dist/addons.js +1 -1
  2. package/dist/cdn/2TGM6O6M.js +4 -0
  3. package/dist/cdn/3BF4AAOZ.js +4 -0
  4. package/dist/cdn/{ZOG23UWP.js → 4FK5MJVN.js} +3 -3
  5. package/dist/cdn/{ZXVOWJDH.js → 4RKAOXIC.js} +2 -2
  6. package/dist/cdn/{QOY5OOS2.js → 4RVQN4K2.js} +1 -1
  7. package/dist/cdn/5BZAVZGG.js +4 -0
  8. package/dist/cdn/5OXNIXWV.js +4 -0
  9. package/dist/cdn/{ZWQANQOA.js → 6ZMQQC4M.js} +2 -2
  10. package/dist/cdn/{DUWJBGKW.js → 72Z6FQGG.js} +1 -1
  11. package/dist/cdn/{GTARB3UU.js → A36QZPA7.js} +1 -1
  12. package/dist/cdn/{EF6CV6SD.js → AAMXKKPY.js} +18 -18
  13. package/dist/cdn/{AK7M5DI4.js → AKCQSXOB.js} +2 -2
  14. package/dist/cdn/{ROHD4IVB.js → CV7LLPSJ.js} +2 -2
  15. package/dist/cdn/{ZUCKRKBB.js → DCVO6DTY.js} +1 -1
  16. package/dist/cdn/DFGJTGMF.js +4 -0
  17. package/dist/cdn/{RFSIT5G7.js → DQHULSZX.js} +2 -2
  18. package/dist/cdn/{EBBULJKI.js → DXYPSO76.js} +2 -2
  19. package/dist/cdn/{5A2ON35E.js → ECK5GFJX.js} +2 -2
  20. package/dist/cdn/{M3DWRUJ6.js → EZ4AJRIK.js} +1 -1
  21. package/dist/cdn/EZS7BVNR.js +4 -0
  22. package/dist/cdn/{QPBWNYYG.js → F7ONGO3V.js} +2 -2
  23. package/dist/cdn/{6F4NHD6J.js → F7V7O6MY.js} +2 -2
  24. package/dist/cdn/{ACDQXQFL.js → FEEGJMFK.js} +2 -2
  25. package/dist/cdn/{PZVOBAUY.js → FLSVYK7Y.js} +1 -1
  26. package/dist/cdn/{R22GWF4X.js → HBKPWQSN.js} +2 -2
  27. package/dist/cdn/{7BA5NKPL.js → HS6C5ZDM.js} +2 -2
  28. package/dist/{monacoStyles.js → cdn/J3CPCHWB.js} +3 -6
  29. package/dist/cdn/{OPDRDV2X.js → JAJOHW6F.js} +2 -2
  30. package/dist/cdn/JDWBXSEO.js +4 -0
  31. package/dist/cdn/{IJRKXHZX.js → K5FO4RN2.js} +1 -1
  32. package/dist/cdn/KZMUR4FQ.js +4 -0
  33. package/dist/cdn/{MHV2YN2W.js → LICBKKPH.js} +2 -2
  34. package/dist/cdn/{H7B5SRMR.js → LUYRQPN7.js} +2 -2
  35. package/dist/cdn/M43BVL4E.js +4 -0
  36. package/dist/cdn/{BKB4DV46.js → MEKYJZMF.js} +1 -1
  37. package/dist/cdn/{UMGYY4A6.js → NTDWZYQ3.js} +2 -2
  38. package/dist/cdn/{FKEB773L.js → ORVBCR27.js} +123 -123
  39. package/dist/cdn/{IEGYFEG6.js → QIGWBAUW.js} +2 -2
  40. package/dist/cdn/{77EDUK6A.js → QVVVBQRO.js} +2 -2
  41. package/dist/cdn/{EUE6CTFC.js → R22JAJHD.js} +2 -2
  42. package/dist/cdn/{K2ZXUXJJ.js → UPZZXWTI.js} +2 -2
  43. package/dist/cdn/WBORX7BK.js +4 -0
  44. package/dist/cdn/{XHEFV6KG.js → WJDNBDRE.js} +2 -2
  45. package/dist/cdn/{3K6DRDWG.js → WMJL6LYZ.js} +2 -2
  46. package/dist/cdn/YL76P6RL.js +4 -0
  47. package/dist/cdn/YOUBREZM.js +6 -0
  48. package/dist/cdn/{E3ULU3UA.js → Z3XQAT4Z.js} +2 -2
  49. package/dist/cdn/{2QH3V2HU.js → ZKKGRZ6D.js} +2 -2
  50. package/dist/cdn/assets/code-editor/sql-expr.worker.js +2 -2
  51. package/dist/cdn/index.js +2 -7
  52. package/dist/cdn/main.css +1 -1
  53. package/dist/chunks/arcade-contribution.js +8 -5
  54. package/dist/chunks/arcade-defaults.js +1 -1
  55. package/dist/chunks/arcade-executor.js +1 -1
  56. package/dist/chunks/arcade-mode.js +21 -18
  57. package/dist/chunks/arcade-service-accessors.js +16 -13
  58. package/dist/chunks/colorize.js +1 -1
  59. package/dist/chunks/fields.js +1 -1
  60. package/dist/chunks/language-defaults-base.js +1 -1
  61. package/dist/chunks/markdown.js +1 -1
  62. package/dist/chunks/monaco-importer.js +6 -3
  63. package/dist/chunks/monaco-theme.js +1 -1
  64. package/dist/chunks/runtime.js +1 -1
  65. package/dist/chunks/sql-expr-defaults.js +1 -1
  66. package/dist/chunks/sql-expr-mode.js +35 -32
  67. package/dist/chunks/sql-expr-service-accessors.js +1 -1
  68. package/dist/chunks/useT9n.js +1 -1
  69. package/dist/chunks/utilities.js +1 -1
  70. package/dist/components/arcgis-arcade-coding-assistant/customElement.js +13 -13
  71. package/dist/components/arcgis-arcade-editor/customElement.js +41 -42
  72. package/dist/components/arcgis-arcade-editor/index.d.ts +1 -0
  73. package/dist/components/arcgis-arcade-editor/index.js +1 -0
  74. package/dist/components/arcgis-arcade-results/customElement.js +1 -1
  75. package/dist/components/arcgis-arcade-suggestions/customElement.js +5 -5
  76. package/dist/components/arcgis-code-editor/customElement.d.ts +1 -1
  77. package/dist/components/arcgis-code-editor/customElement.js +269 -60
  78. package/dist/components/arcgis-code-editor-shell/customElement.d.ts +17 -0
  79. package/dist/components/arcgis-code-editor-shell/customElement.js +19 -0
  80. package/dist/components/arcgis-code-editor-shell/index.d.ts +1 -0
  81. package/dist/components/arcgis-code-editor-shell/index.js +1 -0
  82. package/dist/components/arcgis-code-viewer/customElement.js +1 -1
  83. package/dist/components/arcgis-editor-variables/customElement.js +1 -1
  84. package/dist/components/arcgis-language-api-panel/customElement.js +11 -11
  85. package/dist/components/arcgis-sql-expression-editor/customElement.js +15 -19
  86. package/dist/components/arcgis-sql-expression-editor/index.d.ts +1 -0
  87. package/dist/components/arcgis-sql-expression-editor/index.js +1 -0
  88. package/dist/components/arcgis-sql-expression-fields/customElement.js +1 -1
  89. package/dist/docs/api.json +126 -5
  90. package/dist/docs/docs.json +123 -5
  91. package/dist/docs/vscode.css-custom-data.json +30 -1
  92. package/dist/docs/vscode.html-custom-data.json +11 -0
  93. package/dist/docs/web-types.json +64 -2
  94. package/dist/index.d.ts +5 -0
  95. package/dist/index.js +1 -1
  96. package/dist/loader.js +5 -4
  97. package/dist/types/lumina.d.ts +5 -0
  98. package/dist/types/preact.d.ts +6 -0
  99. package/dist/types/react.d.ts +7 -0
  100. package/dist/types/stencil.d.ts +5 -0
  101. package/dist/utils/internal-monaco-apis.d.ts +67 -0
  102. package/dist/utils/monaco-importer.d.ts +3 -0
  103. package/dist/utils/monaco-typings.d.ts +3 -0
  104. package/dist/utils/patch-monaco.d.ts +16 -0
  105. package/package.json +5 -5
  106. package/dist/cdn/2YZ46D2D.js +0 -4
  107. package/dist/cdn/3YR5HT6L.js +0 -6
  108. package/dist/cdn/6ZY6ERMO.js +0 -4
  109. package/dist/cdn/EGSHWWSC.js +0 -4
  110. package/dist/cdn/FLUNOJKB.js +0 -4
  111. package/dist/cdn/HOEQZCFF.js +0 -4
  112. package/dist/cdn/NSVEJ77V.js +0 -4
  113. package/dist/cdn/Q23LB4V2.js +0 -4
  114. package/dist/cdn/QWC22EZF.js +0 -4
  115. package/dist/cdn/REMZZQAN.js +0 -4
  116. package/dist/cdn/TAAXRQC4.js +0 -4
  117. package/dist/cdn/UDPOBQDF.js +0 -4
  118. package/dist/cdn/UOU34CQZ.js +0 -4
  119. package/dist/chunks/editor.js +0 -8
  120. package/dist/utils/import-monaco-styles.d.ts +0 -7
@@ -0,0 +1,17 @@
1
+ /// <reference path="../../index.d.ts" />
2
+ import { PublicLitElement as LitElement, JsxNode, TargetedEvent } from '@arcgis/lumina';
3
+
4
+ /**
5
+ * A layout component for code editors that provides slots for an editor, results panel, side panel, and action bars.
6
+ *
7
+ * [Read more...](https://developers.arcgis.com/javascript/latest/references/coding-components/arcgis-code-editor-shell/)
8
+ *
9
+ * @slot [top-action-bar] - A slot for placing a top action bar above the editor area.
10
+ * @slot [editor] - A slot for placing the main code editor component.
11
+ * @slot [results-panel] - A slot for placing a results panel below the code editor.
12
+ * @slot [side-panel] - A slot for placing a side panel next to the code editor area.
13
+ * @slot [side-action-bar] - A slot for placing a side action bar next to the side panel.
14
+ * @internal
15
+ */
16
+ export declare class CodeEditorShell extends LitElement {
17
+ }
@@ -0,0 +1,19 @@
1
+ import { c as o } from "../../chunks/runtime.js";
2
+ import { css as e, html as n } from "lit";
3
+ import { LitElement as r } from "@arcgis/lumina";
4
+ /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
5
+ See https://js.arcgis.com/5.0/esri/copyright.txt for details.
6
+ v5.0.0-next.113 */
7
+ const i = e`: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]::slotted(*){border-bottom:var(--arcgis-coding-components-internal-border);flex:0 0 auto}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:1 1 auto;overflow:hidden}slot[name=results-panel]::slotted(*){flex:0 0 var(--arcgis-coding-components-internal-code-editor-results-panel-h);overflow:hidden;border-top:var(--arcgis-coding-components-internal-border);box-sizing:border-box;max-height:var(--arcgis-coding-components-internal-code-editor-results-panel-max-h);margin-bottom:-1px}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)}`;
8
+ class t extends r {
9
+ static {
10
+ this.styles = [i];
11
+ }
12
+ render() {
13
+ return n`<slot name=top-action-bar></slot><div class="flex-row flex-adjustable"><div class="flex-column flex-adjustable"><slot name=editor></slot><slot name=results-panel></slot></div><slot name=side-panel></slot><slot name=side-action-bar></slot></div>`;
14
+ }
15
+ }
16
+ o("arcgis-code-editor-shell", t);
17
+ export {
18
+ t as CodeEditorShell
19
+ };
@@ -0,0 +1 @@
1
+ export * from "./customElement.js";
@@ -0,0 +1 @@
1
+ export * from "./customElement.js";
@@ -12,7 +12,7 @@ import { Task as N } from "@lit/task";
12
12
  import { rethrowError as O, log as w } from "@arcgis/toolkit/log";
13
13
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
14
14
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
15
- v5.0.0-next.111 */
15
+ v5.0.0-next.113 */
16
16
  const z = E`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)}}`;
17
17
  class L extends p {
18
18
  constructor() {
@@ -8,7 +8,7 @@ import { u as m } from "../../chunks/useT9n.js";
8
8
  import { log as u } from "@arcgis/toolkit/log";
9
9
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
10
10
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
11
- v5.0.0-next.111 */
11
+ v5.0.0-next.113 */
12
12
  const g = n`: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-list-item-group{background-color:var(--calcite-color-foreground-2);word-break:break-word}}`;
13
13
  function p(l) {
14
14
  l.key === "Enter" && l.stopPropagation();
@@ -1,19 +1,19 @@
1
- import { c as r } from "../../chunks/runtime.js";
1
+ import { c as n } from "../../chunks/runtime.js";
2
2
  import { ref as c } from "lit/directives/ref.js";
3
3
  import { css as m, html as s } from "lit";
4
4
  import { setFocusOnElement as d, focusElement as u } from "@arcgis/toolkit/dom";
5
5
  import { addLtrMark as a } from "@arcgis/toolkit/string";
6
6
  import { LitElement as h, createEvent as o } from "@arcgis/lumina";
7
- import { f as p } from "../../chunks/utilities.js";
8
- import { c as n } from "../../chunks/markdown.js";
9
- import { u as f } from "../../chunks/useT9n.js";
7
+ import { f } from "../../chunks/utilities.js";
8
+ import { c as r } from "../../chunks/markdown.js";
9
+ import { u as p } from "../../chunks/useT9n.js";
10
10
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
11
11
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
12
- v5.0.0-next.111 */
13
- const g = 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)}}`;
12
+ v5.0.0-next.113 */
13
+ const g = 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)}calcite-flow{[slot=footer]{word-break:break-word}}}`;
14
14
  class b extends h {
15
15
  constructor() {
16
- super(...arguments), this.messages = f(), this._unselectItem = async () => {
16
+ super(...arguments), this.messages = p(), this._unselectItem = async () => {
17
17
  this._selectedApiItem = void 0;
18
18
  }, this._filterValue = "", this.languageId = "arcade", this.hideDocumentationActions = !1, this.loading = !1, this.closed = !1, this.arcgisClose = o({ bubbles: !1 }), this.arcgisItemSelected = o({ bubbles: !1 });
19
19
  }
@@ -68,15 +68,15 @@ class b extends h {
68
68
  this._filterValue = e.currentTarget.value ?? "";
69
69
  }
70
70
  _elementToMarkdown(e) {
71
- e !== void 0 && (e.innerHTML = n(this._selectedApiItem.examples));
71
+ e !== void 0 && (e.innerHTML = r(this._selectedApiItem.examples));
72
72
  }
73
73
  renderApiCategory(e) {
74
- const i = p(e.items, "name", this._filterValue);
74
+ const i = f(e.items, "name", this._filterValue);
75
75
  return i.length ? s`<calcite-list-item-group .heading=${e.title}>${i.map((t) => s`<calcite-list-item .label=${a(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;
76
76
  }
77
77
  renderApiItemFlowItem() {
78
78
  const e = this._selectedApiItem;
79
- 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(u)}>${this.messages.insert}</calcite-button><calcite-block expanded .heading=${a(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;
79
+ 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(u)}>${this.messages.insert}</calcite-button><calcite-block expanded .heading=${a(e.completion.detail)}><div .innerHTML=${r(e.completion.documentation) ?? ""}></div>${e.examples ? s`<div ${c(this._elementToMarkdown)}></div>` : null}</calcite-block></calcite-flow-item>` : null;
80
80
  }
81
81
  render() {
82
82
  if (this.closed)
@@ -85,7 +85,7 @@ class b extends h {
85
85
  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>`;
86
86
  }
87
87
  }
88
- r("arcgis-language-api-panel", b);
88
+ n("arcgis-language-api-panel", b);
89
89
  export {
90
90
  b as ArcgisLanguageApiPanel
91
91
  };
@@ -1,29 +1,25 @@
1
- import { c as n } from "../../chunks/runtime.js";
2
- import { css as c, html as t } from "lit";
3
- import { LitElement as d, createEvent as o, noShadowRoot as l, safeClassMap as r } from "@arcgis/lumina";
4
- import { generateGuid as p } from "@arcgis/toolkit/string";
1
+ import { c } from "../../chunks/runtime.js";
2
+ import { css as n, html as t } from "lit";
3
+ import { LitElement as d, createEvent as o, safeClassMap as r } from "@arcgis/lumina";
4
+ import { generateGuid as l } from "@arcgis/toolkit/string";
5
5
  import { a as s } from "../../chunks/sql-expr-defaults.js";
6
6
  import { u as h } from "../../chunks/useT9n.js";
7
- import { createRef as g, ref as f } from "lit/directives/ref.js";
8
- import { s as _ } from "../../chunks/editor.js";
9
- import { getSqlExprDiagnosticService as u } from "../../chunks/sql-expr-mode.js";
7
+ import { createRef as p, ref as g } from "lit/directives/ref.js";
8
+ import { getSqlExprDiagnosticService as _ } from "../../chunks/sql-expr-mode.js";
10
9
  import { rethrowError as a } from "@arcgis/toolkit/log";
11
10
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
12
11
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
13
- v5.0.0-next.111 */
14
- const m = c`@layer{arcgis-sql-expression-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%}}`;
15
- class v extends d {
12
+ v5.0.0-next.113 */
13
+ const f = n`:host{height:100%}calcite-tooltip:not([calcite-hydrated])>*{display:none}`;
14
+ class u extends d {
16
15
  constructor() {
17
- super(...arguments), this._codeEditorElt = g(), this._disposables = [], this.messages = h(), this._modelId = p(), this._preparing = !1, this.sideActionBarExpanded = !1, this.script = "", this.hideSideBar = !1, this.arcgisDiagnosticsChange = o({ bubbles: !1 }), this.arcgisScriptChange = o({ bubbles: !1 });
16
+ super(...arguments), this._codeEditorElt = p(), this._disposables = [], this.messages = h(), this._modelId = l(), this._preparing = !1, this.sideActionBarExpanded = !1, this.script = "", this.hideSideBar = !1, this.arcgisDiagnosticsChange = o({ bubbles: !1 }), this.arcgisScriptChange = o({ bubbles: !1 });
18
17
  }
19
18
  static {
20
19
  this.properties = { _activeAction: 16, _apiLibrary: 16, _editorProfile: 16, _preparing: 16, sideActionBarExpanded: 16, profile: 0, script: 1, hideSideBar: 5 };
21
20
  }
22
21
  static {
23
- this.shadowRootOptions = l;
24
- }
25
- static {
26
- this.styles = [m, _];
22
+ this.styles = [f];
27
23
  }
28
24
  async setFocus() {
29
25
  await this._codeEditorElt.value?.setFocus();
@@ -35,7 +31,7 @@ class v extends d {
35
31
  (i.has("messages") || i.has("profile")) && this._updateDataModelDeps();
36
32
  }
37
33
  async loaded() {
38
- const i = await u();
34
+ const i = await _();
39
35
  this._disposables.push(i.onDiagnosticsChange((e) => !this._preparing && this.arcgisDiagnosticsChange.emit(e.diagnostics)));
40
36
  }
41
37
  disconnectedCallback() {
@@ -88,10 +84,10 @@ class v extends d {
88
84
  }
89
85
  render() {
90
86
  const i = this._getFeatureSetVariable();
91
- return t`<div class="flex-row flex-adjustable"><div class="flex-column flex-adjustable"><arcgis-code-editor language=arcgis-sql-expression .modelId=${this._modelId} .value=${this.script ?? ""} @arcgisValueChange=${this._onCodeEditorValueChange} ${f(this._codeEditorElt)}></arcgis-code-editor></div>${!this.hideSideBar && t`<arcgis-editor-variables .variable=${i} .closed=${this._activeAction !== "fields"} class=${r(this._activeAction === "fields" && "code-editor-side-panel flex-panel border-inline-start")} .loading=${this._preparing} .modelId=${this._modelId} @arcgisItemSelected=${this._insertAsText} @arcgisClose=${() => this._setActiveAction(void 0)} data-panel-name=none></arcgis-editor-variables>` || ""}${!this.hideSideBar && t`<arcgis-language-api-panel class=${r(this._activeAction === "functions" && "code-editor-side-panel flex-panel border-inline-start")} .closed=${this._activeAction !== "functions"} @arcgisItemSelected=${this._insertAsSnippet} @arcgisClose=${() => this._setActiveAction(void 0)} .loading=${this._preparing} .apiLibrary=${this._apiLibrary} data-panel-name=none hide-documentation-actions .languageId=${s.languageId}></arcgis-language-api-panel>` || ""}${!this.hideSideBar && t`<calcite-action-bar class="side-action-bar border-inline-start" .expanded=${this.sideActionBarExpanded} position=end @calciteActionBarToggle=${this._toggleSideActionBarExpanded}><calcite-action id=fields-action .text=${this.messages.fields ?? "Fields"} icon=profile-variables .active=${this._activeAction === "fields"} data-panel-name=fields @click=${this._handleActionClick}></calcite-action>${!this.sideActionBarExpanded && t`<calcite-tooltip reference-element=fields-action><span>${this.messages.fields ?? "Fields"}</span></calcite-tooltip>` || ""}<calcite-action id=functions-action .text=${this.messages.functions ?? "Functions"} icon=function .active=${this._activeAction === "functions"} data-panel-name=functions @click=${this._handleActionClick}></calcite-action>${!this.sideActionBarExpanded && t`<calcite-tooltip reference-element=functions-action><span>${this.messages.functions ?? "Functions"}</span></calcite-tooltip>` || ""}</calcite-action-bar>` || ""}</div>`;
87
+ return t`<arcgis-code-editor-shell><arcgis-code-editor slot=editor language=arcgis-sql-expression .modelId=${this._modelId} .value=${this.script ?? ""} @arcgisValueChange=${this._onCodeEditorValueChange} ${g(this._codeEditorElt)}></arcgis-code-editor>${!this.hideSideBar && i && t`<arcgis-editor-variables slot=side-panel .variable=${i} .closed=${this._activeAction !== "fields"} class=${r(this._activeAction === "fields" ? "" : "hidden")} .loading=${this._preparing} .modelId=${this._modelId} @arcgisItemSelected=${this._insertAsText} @arcgisClose=${() => this._setActiveAction(void 0)} data-panel-name=none></arcgis-editor-variables>` || ""}${!this.hideSideBar && t`<arcgis-language-api-panel slot=side-panel class=${r(this._activeAction === "functions" ? "" : "hidden")} .closed=${this._activeAction !== "functions"} @arcgisItemSelected=${this._insertAsSnippet} @arcgisClose=${() => this._setActiveAction(void 0)} .loading=${this._preparing} .apiLibrary=${this._apiLibrary} data-panel-name=none hide-documentation-actions .languageId=${s.languageId}></arcgis-language-api-panel>` || ""}${!this.hideSideBar && t`<calcite-action-bar slot=side-action-bar .expanded=${this.sideActionBarExpanded} position=end @calciteActionBarToggle=${this._toggleSideActionBarExpanded}>${i && t`<calcite-action id=fields-action .text=${this.messages.fields ?? "Fields"} icon=profile-variables .active=${this._activeAction === "fields"} data-panel-name=fields @click=${this._handleActionClick}></calcite-action>` || ""}${i && !this.sideActionBarExpanded && t`<calcite-tooltip reference-element=fields-action><span>${this.messages.fields ?? "Fields"}</span></calcite-tooltip>` || ""}<calcite-action id=functions-action .text=${this.messages.functions ?? "Functions"} icon=function .active=${this._activeAction === "functions"} data-panel-name=functions @click=${this._handleActionClick}></calcite-action>${!this.sideActionBarExpanded && t`<calcite-tooltip reference-element=functions-action><span>${this.messages.functions ?? "Functions"}</span></calcite-tooltip>` || ""}</calcite-action-bar>` || ""}</arcgis-code-editor-shell>`;
92
88
  }
93
89
  }
94
- n("arcgis-sql-expression-editor", v);
90
+ c("arcgis-sql-expression-editor", u);
95
91
  export {
96
- v as ArcgisSqlExpressionEditor
92
+ u as ArcgisSqlExpressionEditor
97
93
  };
@@ -1,3 +1,4 @@
1
+ import "../arcgis-code-editor-shell/index.js";
1
2
  import "../arcgis-code-editor/index.js";
2
3
  import "../arcgis-editor-variables/index.js";
3
4
  import "../arcgis-language-api-panel/index.js";
@@ -1,3 +1,4 @@
1
+ import "../arcgis-code-editor-shell/index.js";
1
2
  import "../arcgis-code-editor/index.js";
2
3
  import "../arcgis-editor-variables/index.js";
3
4
  import "../arcgis-language-api-panel/index.js";
@@ -6,7 +6,7 @@ import { a as m } from "../../chunks/sql-expr-defaults.js";
6
6
  import { u as d } from "../../chunks/useT9n.js";
7
7
  /*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
8
8
  See https://js.arcgis.com/5.0/esri/copyright.txt for details.
9
- v5.0.0-next.111 */
9
+ v5.0.0-next.113 */
10
10
  const h = r`:host{calcite-flow{height:100%}calcite-list-item-group{background-color:var(--calcite-color-foreground-2)}}`;
11
11
  class g extends n {
12
12
  constructor() {
@@ -1,8 +1,8 @@
1
1
  {
2
- "timestamp": "2026-01-04T04:35:31",
2
+ "timestamp": "2026-01-06T04:41:17",
3
3
  "compiler": {
4
4
  "name": "@arcgis/lumina-compiler",
5
- "version": "5.0.0-next.111",
5
+ "version": "5.0.0-next.113",
6
6
  "typescriptVersion": "5.9.3"
7
7
  },
8
8
  "schemaVersion": "2.1.0",
@@ -32,7 +32,6 @@
32
32
  "name": "LitElement",
33
33
  "package": "@arcgis/lumina"
34
34
  },
35
- "encapsulation": "none",
36
35
  "pascalCaseName": "ArcgisArcadeEditor",
37
36
  "importPath": "components/arcgis-arcade-editor",
38
37
  "members": [
@@ -621,7 +620,6 @@
621
620
  "name": "LitElement",
622
621
  "package": "@arcgis/lumina"
623
622
  },
624
- "encapsulation": "none",
625
623
  "pascalCaseName": "ArcgisCodeEditor",
626
624
  "importPath": "components/arcgis-code-editor",
627
625
  "members": [
@@ -979,6 +977,130 @@
979
977
  }
980
978
  ]
981
979
  },
980
+ {
981
+ "kind": "javascript-module",
982
+ "path": "components/arcgis-code-editor-shell",
983
+ "sourcePath": "src/components/code-editor-shell/code-editor-shell.tsx",
984
+ "declarations": [
985
+ {
986
+ "kind": "class",
987
+ "customElement": true,
988
+ "name": "CodeEditorShell",
989
+ "tagName": "arcgis-code-editor-shell",
990
+ "description": "A layout component for code editors that provides slots for an editor, results panel, side panel, and action bars.",
991
+ "demos": [
992
+ {
993
+ "description": "Docs",
994
+ "url": "https://developers.arcgis.com/javascript/latest/references/coding-components/arcgis-code-editor-shell/"
995
+ }
996
+ ],
997
+ "docsTags": [
998
+ {
999
+ "name": "internal"
1000
+ }
1001
+ ],
1002
+ "superclass": {
1003
+ "name": "LitElement",
1004
+ "package": "@arcgis/lumina"
1005
+ },
1006
+ "pascalCaseName": "ArcgisCodeEditorShell",
1007
+ "importPath": "components/arcgis-code-editor-shell",
1008
+ "members": [
1009
+ {
1010
+ "kind": "method",
1011
+ "name": "componentOnReady",
1012
+ "return": {
1013
+ "type": {
1014
+ "text": "Promise<void>",
1015
+ "references": [
1016
+ {
1017
+ "module": "lib/lib.es5.d.ts",
1018
+ "name": "Promise",
1019
+ "package": "typescript",
1020
+ "start": 0,
1021
+ "end": 7
1022
+ }
1023
+ ]
1024
+ }
1025
+ },
1026
+ "description": "Create a promise that resolves once component is fully loaded.",
1027
+ "signature": "(): Promise<void>",
1028
+ "inheritedFrom": {
1029
+ "name": "LitElement",
1030
+ "package": "@arcgis/lumina"
1031
+ },
1032
+ "docsTags": [
1033
+ {
1034
+ "name": "example",
1035
+ "text": "```js\nconst codeEditorShell = document.querySelector(\"arcgis-code-editor-shell\");\ndocument.body.append(codeEditorShell);\nawait codeEditorShell.componentOnReady();\nconsole.log(\"arcgis-code-editor-shell is ready to go!\");\n```"
1036
+ }
1037
+ ]
1038
+ }
1039
+ ],
1040
+ "slots": [
1041
+ {
1042
+ "name": "top-action-bar",
1043
+ "description": "A slot for placing a top action bar above the editor area."
1044
+ },
1045
+ {
1046
+ "name": "editor",
1047
+ "description": "A slot for placing the main code editor component."
1048
+ },
1049
+ {
1050
+ "name": "results-panel",
1051
+ "description": "A slot for placing a results panel below the code editor."
1052
+ },
1053
+ {
1054
+ "name": "side-panel",
1055
+ "description": "A slot for placing a side panel next to the code editor area."
1056
+ },
1057
+ {
1058
+ "name": "side-action-bar",
1059
+ "description": "A slot for placing a side action bar next to the side panel."
1060
+ }
1061
+ ],
1062
+ "cssProperties": [
1063
+ {
1064
+ "name": "--arcgis-coding-components-border",
1065
+ "description": "The border style for the editor shell *"
1066
+ },
1067
+ {
1068
+ "name": "--arcgis-coding-components-background-color",
1069
+ "description": "The background color for the editor shell *"
1070
+ },
1071
+ {
1072
+ "name": "--arcgis-coding-components-side-action-bar-max-w",
1073
+ "description": "The max width for the side action bar *"
1074
+ },
1075
+ {
1076
+ "name": "--arcgis-coding-components-code-editor-side-panel-w",
1077
+ "description": "The width for the code editor side panel *"
1078
+ },
1079
+ {
1080
+ "name": "--arcgis-coding-components-code-editor-side-panel-max-w",
1081
+ "description": "The max width for the code editor side panel *"
1082
+ },
1083
+ {
1084
+ "name": "--arcgis-coding-components-code-editor-results-panel-max-h",
1085
+ "description": "The max height for the code editor results panel *"
1086
+ },
1087
+ {
1088
+ "name": "--arcgis-coding-components-code-editor-results-panel-h",
1089
+ "description": "The default height for the code editor results panel (preferred over min-h). *"
1090
+ }
1091
+ ]
1092
+ }
1093
+ ],
1094
+ "exports": [
1095
+ {
1096
+ "kind": "custom-element-definition",
1097
+ "name": "arcgis-code-editor-shell",
1098
+ "declaration": {
1099
+ "name": "CodeEditorShell"
1100
+ }
1101
+ }
1102
+ ]
1103
+ },
982
1104
  {
983
1105
  "kind": "javascript-module",
984
1106
  "path": "components/arcgis-code-viewer",
@@ -1146,7 +1268,6 @@
1146
1268
  "name": "LitElement",
1147
1269
  "package": "@arcgis/lumina"
1148
1270
  },
1149
- "encapsulation": "none",
1150
1271
  "pascalCaseName": "ArcgisSqlExpressionEditor",
1151
1272
  "importPath": "components/arcgis-sql-expression-editor",
1152
1273
  "members": [
@@ -1,8 +1,8 @@
1
1
  {
2
- "timestamp": "2026-01-04T04:35:31",
2
+ "timestamp": "2026-01-06T04:41:17",
3
3
  "compiler": {
4
4
  "name": "@arcgis/lumina-compiler",
5
- "version": "5.0.0-next.111",
5
+ "version": "5.0.0-next.113",
6
6
  "typescriptVersion": "5.9.3"
7
7
  },
8
8
  "components": [
@@ -19,7 +19,7 @@
19
19
  "text": "{\"name\":\"LitElement\",\"package\":\"@arcgis/lumina\"}"
20
20
  }
21
21
  ],
22
- "encapsulation": "none",
22
+ "encapsulation": "shadow",
23
23
  "dependents": [],
24
24
  "dependencies": [],
25
25
  "dependencyGraph": {},
@@ -587,7 +587,7 @@
587
587
  "text": "{\"name\":\"LitElement\",\"package\":\"@arcgis/lumina\"}"
588
588
  }
589
589
  ],
590
- "encapsulation": "none",
590
+ "encapsulation": "shadow",
591
591
  "dependents": [],
592
592
  "dependencies": [],
593
593
  "dependencyGraph": {},
@@ -948,6 +948,124 @@
948
948
  "parts": [],
949
949
  "listeners": []
950
950
  },
951
+ {
952
+ "filePath": "src/components/code-editor-shell/code-editor-shell.tsx",
953
+ "tag": "arcgis-code-editor-shell",
954
+ "overview": "",
955
+ "readme": "",
956
+ "usage": {},
957
+ "docs": "A layout component for code editors that provides slots for an editor, results panel, side panel, and action bars.",
958
+ "docsTags": [
959
+ {
960
+ "name": "internal"
961
+ },
962
+ {
963
+ "name": "superclass",
964
+ "text": "{\"name\":\"LitElement\",\"package\":\"@arcgis/lumina\"}"
965
+ }
966
+ ],
967
+ "encapsulation": "shadow",
968
+ "dependents": [],
969
+ "dependencies": [],
970
+ "dependencyGraph": {},
971
+ "props": [],
972
+ "methods": [
973
+ {
974
+ "name": "componentOnReady",
975
+ "returns": {
976
+ "type": "Promise<void>",
977
+ "docs": ""
978
+ },
979
+ "complexType": {
980
+ "signature": "(): Promise<void>",
981
+ "parameters": [],
982
+ "return": "Promise<void>",
983
+ "references": {
984
+ "Promise": {
985
+ "location": "import",
986
+ "path": "typescript/lib/lib.es5.d.ts",
987
+ "id": "notImplemented"
988
+ }
989
+ }
990
+ },
991
+ "signature": "componentOnReady(): Promise<void>",
992
+ "parameters": [],
993
+ "docs": "Create a promise that resolves once component is fully loaded.",
994
+ "docsTags": [
995
+ {
996
+ "name": "example",
997
+ "text": "```js\nconst codeEditorShell = document.querySelector(\"arcgis-code-editor-shell\");\ndocument.body.append(codeEditorShell);\nawait codeEditorShell.componentOnReady();\nconsole.log(\"arcgis-code-editor-shell is ready to go!\");\n```"
998
+ },
999
+ {
1000
+ "name": "inheritedFrom",
1001
+ "text": "{\"name\":\"LitElement\",\"package\":\"@arcgis/lumina\"}"
1002
+ }
1003
+ ]
1004
+ }
1005
+ ],
1006
+ "events": [],
1007
+ "styles": [
1008
+ {
1009
+ "name": "--arcgis-coding-components-border",
1010
+ "annotation": "prop",
1011
+ "docs": "The border style for the editor shell *"
1012
+ },
1013
+ {
1014
+ "name": "--arcgis-coding-components-background-color",
1015
+ "annotation": "prop",
1016
+ "docs": "The background color for the editor shell *"
1017
+ },
1018
+ {
1019
+ "name": "--arcgis-coding-components-side-action-bar-max-w",
1020
+ "annotation": "prop",
1021
+ "docs": "The max width for the side action bar *"
1022
+ },
1023
+ {
1024
+ "name": "--arcgis-coding-components-code-editor-side-panel-w",
1025
+ "annotation": "prop",
1026
+ "docs": "The width for the code editor side panel *"
1027
+ },
1028
+ {
1029
+ "name": "--arcgis-coding-components-code-editor-side-panel-max-w",
1030
+ "annotation": "prop",
1031
+ "docs": "The max width for the code editor side panel *"
1032
+ },
1033
+ {
1034
+ "name": "--arcgis-coding-components-code-editor-results-panel-max-h",
1035
+ "annotation": "prop",
1036
+ "docs": "The max height for the code editor results panel *"
1037
+ },
1038
+ {
1039
+ "name": "--arcgis-coding-components-code-editor-results-panel-h",
1040
+ "annotation": "prop",
1041
+ "docs": "The default height for the code editor results panel (preferred over min-h). *"
1042
+ }
1043
+ ],
1044
+ "slots": [
1045
+ {
1046
+ "name": "top-action-bar",
1047
+ "docs": "A slot for placing a top action bar above the editor area."
1048
+ },
1049
+ {
1050
+ "name": "editor",
1051
+ "docs": "A slot for placing the main code editor component."
1052
+ },
1053
+ {
1054
+ "name": "results-panel",
1055
+ "docs": "A slot for placing a results panel below the code editor."
1056
+ },
1057
+ {
1058
+ "name": "side-panel",
1059
+ "docs": "A slot for placing a side panel next to the code editor area."
1060
+ },
1061
+ {
1062
+ "name": "side-action-bar",
1063
+ "docs": "A slot for placing a side action bar next to the side panel."
1064
+ }
1065
+ ],
1066
+ "parts": [],
1067
+ "listeners": []
1068
+ },
951
1069
  {
952
1070
  "filePath": "src/components/code-viewer/code-viewer.tsx",
953
1071
  "tag": "arcgis-code-viewer",
@@ -1078,7 +1196,7 @@
1078
1196
  "text": "{\"name\":\"LitElement\",\"package\":\"@arcgis/lumina\"}"
1079
1197
  }
1080
1198
  ],
1081
- "encapsulation": "none",
1199
+ "encapsulation": "shadow",
1082
1200
  "dependents": [],
1083
1201
  "dependencies": [],
1084
1202
  "dependencyGraph": {},
@@ -1,6 +1,35 @@
1
1
  {
2
2
  "$schema": "https://raw.githubusercontent.com/microsoft/vscode-css-languageservice/main/docs/customData.schema.json",
3
3
  "version": 1.1,
4
- "properties": [],
4
+ "properties": [
5
+ {
6
+ "name": "--arcgis-coding-components-border",
7
+ "description": "The border style for the editor shell *"
8
+ },
9
+ {
10
+ "name": "--arcgis-coding-components-background-color",
11
+ "description": "The background color for the editor shell *"
12
+ },
13
+ {
14
+ "name": "--arcgis-coding-components-side-action-bar-max-w",
15
+ "description": "The max width for the side action bar *"
16
+ },
17
+ {
18
+ "name": "--arcgis-coding-components-code-editor-side-panel-w",
19
+ "description": "The width for the code editor side panel *"
20
+ },
21
+ {
22
+ "name": "--arcgis-coding-components-code-editor-side-panel-max-w",
23
+ "description": "The max width for the code editor side panel *"
24
+ },
25
+ {
26
+ "name": "--arcgis-coding-components-code-editor-results-panel-max-h",
27
+ "description": "The max height for the code editor results panel *"
28
+ },
29
+ {
30
+ "name": "--arcgis-coding-components-code-editor-results-panel-h",
31
+ "description": "The default height for the code editor results panel (preferred over min-h). *"
32
+ }
33
+ ],
5
34
  "pseudoElements": []
6
35
  }
@@ -60,6 +60,17 @@
60
60
  }
61
61
  ]
62
62
  },
63
+ {
64
+ "name": "arcgis-code-editor-shell",
65
+ "description": "A layout component for code editors that provides slots for an editor, results panel, side panel, and action bars.\n--\n\n### Methods\n- `componentOnReady(): Promise<void>` - Create a promise that resolves once component is fully loaded.\n\n### Slots\n- **top-action-bar** - A slot for placing a top action bar above the editor area.\n- **editor** - A slot for placing the main code editor component.\n- **results-panel** - A slot for placing a results panel below the code editor.\n- **side-panel** - A slot for placing a side panel next to the code editor area.\n- **side-action-bar** - A slot for placing a side action bar next to the side panel.\n\n### CSS Properties\n- **--arcgis-coding-components-border** - The border style for the editor shell * \n- **--arcgis-coding-components-background-color** - The background color for the editor shell * \n- **--arcgis-coding-components-side-action-bar-max-w** - The max width for the side action bar * \n- **--arcgis-coding-components-code-editor-side-panel-w** - The width for the code editor side panel * \n- **--arcgis-coding-components-code-editor-side-panel-max-w** - The max width for the code editor side panel * \n- **--arcgis-coding-components-code-editor-results-panel-max-h** - The max height for the code editor results panel * \n- **--arcgis-coding-components-code-editor-results-panel-h** - The default height for the code editor results panel (preferred over min-h). * ",
66
+ "attributes": [],
67
+ "references": [
68
+ {
69
+ "name": "Docs",
70
+ "url": "https://developers.arcgis.com/javascript/latest/references/coding-components/arcgis-code-editor-shell/"
71
+ }
72
+ ]
73
+ },
63
74
  {
64
75
  "name": "arcgis-code-viewer",
65
76
  "description": "A code viewer component for displaying code snippets.\nSupports syntax highlighting for various programming languages, include arcade and arcgis-sql-expression.\n--\n\n### Methods\n- `componentOnReady(): Promise<void>` - Create a promise that resolves once component is fully loaded.",