@arcgis/coding-components 5.2.0-next.37 → 5.2.0-next.39

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 (55) hide show
  1. package/dist/cdn/{7UTCJERR.js → 3GRKKTYQ.js} +1 -1
  2. package/dist/cdn/{NCMXRX7O.js → 4QNMR5NW.js} +1 -1
  3. package/dist/cdn/{RAQ6HDUB.js → 4V5NFGNR.js} +1 -1
  4. package/dist/cdn/{O6L3YJ7J.js → 5K5DDG2C.js} +1 -1
  5. package/dist/cdn/{3EOAL7MF.js → 7SURDYX4.js} +1 -1
  6. package/dist/cdn/BHSILWSL.js +2 -0
  7. package/dist/cdn/{P22DALGG.js → CQGO2II3.js} +1 -1
  8. package/dist/cdn/EMQBDJQ3.js +12 -0
  9. package/dist/cdn/{T5PTHYE5.js → F6Z5WEDU.js} +1 -1
  10. package/dist/cdn/{NVWQE3SF.js → FWPYCHBG.js} +1 -1
  11. package/dist/cdn/{VEOKKZ5A.js → GK3HVDQS.js} +1 -1
  12. package/dist/cdn/{6R2FXATY.js → GYUNPBTY.js} +1 -1
  13. package/dist/cdn/HEBBVPMA.js +4 -0
  14. package/dist/cdn/HLQUADW2.js +2 -0
  15. package/dist/cdn/{YTISJUMJ.js → IFX7ICOO.js} +1 -1
  16. package/dist/cdn/J4I4EROF.js +2 -0
  17. package/dist/cdn/K24YQANH.js +2 -0
  18. package/dist/cdn/{H46YVJ4O.js → L3GFDKCY.js} +1 -1
  19. package/dist/cdn/{DD277QPZ.js → NQ5VM5Q4.js} +1 -1
  20. package/dist/cdn/{7RQSIZ7E.js → OVFMBZUS.js} +1 -1
  21. package/dist/cdn/{PJBI5XFD.js → PNEPKSPT.js} +1 -1
  22. package/dist/cdn/{76VHPECE.js → PO76ZDMR.js} +1 -1
  23. package/dist/cdn/{MFDNJU3K.js → PPBXN5AK.js} +1 -1
  24. package/dist/cdn/{BGTP5CFY.js → STFE2ZCD.js} +1 -1
  25. package/dist/cdn/{GTE3KXNK.js → TQ47LLD6.js} +1 -1
  26. package/dist/cdn/{JLYAOSQM.js → V4NV6D3P.js} +1 -1
  27. package/dist/cdn/V54TNFNK.js +2 -0
  28. package/dist/cdn/{TUQ7FMSM.js → WAAXG4WA.js} +1 -1
  29. package/dist/cdn/{DTRK3XAL.js → WC3ODJHV.js} +1 -1
  30. package/dist/cdn/{PPCC4HZ7.js → WU3OQFNP.js} +1 -1
  31. package/dist/cdn/X7ATUFY6.js +2 -0
  32. package/dist/cdn/{QL6XH6JU.js → YC4IAUAP.js} +1 -1
  33. package/dist/cdn/YX3K5MMD.js +2 -0
  34. package/dist/cdn/{EYE5UNR2.js → ZRBCALQH.js} +1 -1
  35. package/dist/cdn/{BCXSPP2P.js → ZVA7RR25.js} +1 -1
  36. package/dist/cdn/assets/code-editor/sql-expr.worker.js +1 -1
  37. package/dist/cdn/index.js +1 -1
  38. package/dist/components/arcgis-arcade-coding-assistant/customElement.js +194 -175
  39. package/dist/components/arcgis-code-editor-shell/customElement.js +1 -1
  40. package/dist/components/arcgis-code-viewer/customElement.js +5 -4
  41. package/dist/docs/api.json +1 -1
  42. package/dist/docs/docs.json +1 -1
  43. package/dist/docs/web-types.json +1 -1
  44. package/package.json +5 -5
  45. package/dist/cdn/5RWI53UM.js +0 -2
  46. package/dist/cdn/B73HLERI.js +0 -2
  47. package/dist/cdn/DLHM6CVW.js +0 -4
  48. package/dist/cdn/N55NA6XU.js +0 -2
  49. package/dist/cdn/NP37C536.js +0 -2
  50. package/dist/cdn/OHGKRQIT.js +0 -2
  51. package/dist/cdn/S4UOB65K.js +0 -2
  52. package/dist/cdn/XSKI5PRU.js +0 -2
  53. package/dist/cdn/ZJADYRM6.js +0 -12
  54. /package/dist/cdn/{VGOFAQ7A.js → BFPEJYVB.js} +0 -0
  55. /package/dist/cdn/{ECNI2A4K.js → XEK22IDA.js} +0 -0
@@ -2,7 +2,7 @@
2
2
  import { c as g } from "../../chunks/runtime.js";
3
3
  import { css as f, html as x } from "lit";
4
4
  import { LitElement as v } from "@arcgis/lumina";
5
- import { slotChangeHasContent as y } from "@arcgis/toolkit/dom";
5
+ import { slotChangeHasContent as y } from "@arcgis/toolkit/dom/slots";
6
6
  import { createRef as l, ref as c } from "lit/directives/ref.js";
7
7
  const w = f`:host{--internal-border: var(--arcgis-coding-components-border, 1px solid var(--calcite-color-border-3));--internal-background-color: var(--arcgis-coding-components-background-color, var(--calcite-color-foreground-1));--internal-side-action-bar-max-w: var(--arcgis-coding-components-side-action-bar-max-w, 25%);--internal-code-editor-side-panel-w: var(--arcgis-coding-components-code-editor-side-panel-w, 600px);--internal-code-editor-side-panel-max-w: var(--arcgis-coding-components-code-editor-side-panel-max-w, 45%);--internal-code-editor-results-panel-max-h: var(--arcgis-coding-components-code-editor-results-panel-max-h, 50%);--internal-code-editor-results-panel-h: var(--arcgis-coding-components-code-editor-results-panel-h, 50%);--internal-code-editor-results-panel-bottom-drawer-controls-h: 0px;display:flex;flex-direction:column;position:relative;overflow:hidden;border:var(--internal-border);box-sizing:border-box;background-color:var(--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}.bottom-drawer{display:flex;flex:0 0 auto;flex-direction:column;overflow:hidden;position:relative;box-sizing:border-box;min-height:0}.bottom-drawer-resize-handle{display:none;position:absolute;inset-inline:0;inset-block-start:0;align-items:center;justify-content:center;block-size:var(--calcite-size-fixed-sm-plus);cursor:ns-resize;touch-action:none;user-select:none;z-index:var(--calcite-z-index-header);border-block-start:var(--calcite-border-width-sm) solid var(--calcite-color-border-3);outline:none}.bottom-drawer-resize-handle-bar{display:flex;align-items:center;justify-content:center;inline-size:100%;block-size:var(--calcite-size-fixed-sm-plus);color:var(--calcite-color-border-input);background-color:var(--calcite-color-background);border-block-start:var(--calcite-border-width-sm) solid var(--calcite-color-border-3);border-block-end:var(--calcite-border-width-sm) solid var(--calcite-color-border-3);transition:box-shadow .12s ease,color .12s ease,background-color .12s ease}.bottom-drawer-resize-handle-bar calcite-icon{color:inherit}}:host(:state(results-has-content)) .bottom-drawer{padding-block-start:var(--calcite-size-fixed-sm-plus);height:calc(var(--internal-code-editor-results-panel-h) + var(--internal-code-editor-results-panel-bottom-drawer-controls-h));max-height:calc(var(--internal-code-editor-results-panel-max-h) + var(--internal-code-editor-results-panel-bottom-drawer-controls-h))}:host(:state(results-has-content)) .bottom-drawer-resize-handle{display:flex}:host(:state(results-has-content)) .bottom-drawer-resize-handle:focus .bottom-drawer-resize-handle-bar{box-shadow:inset 0 0 0 2px var(--calcite-color-brand)}:host(:state(results-has-content)) .bottom-drawer-resize-handle:hover .bottom-drawer-resize-handle-bar,:host(:state(results-has-content)) .bottom-drawer-resize-handle .bottom-drawer-resize-handle-bar,:host(:state(is-resizing)) .bottom-drawer-resize-handle-bar{color:var(--calcite-shell-panel-resize-icon-color, var(--calcite-color-text-1));background-color:var(--calcite-shell-panel-resize-background-color, var(--calcite-color-foreground-3))}:host(:state(results-has-content)) slot[name=bottom-action-bar]::slotted(*){border-top:0}slot[name=top-action-bar]{flex:0 0 auto}slot[name=top-action-bar]::slotted(*){border-bottom:var(--internal-border)}slot[name=bottom-action-bar]{flex:0 0 auto}slot[name=bottom-action-bar]::slotted(*){border-top:var(--internal-border)}slot[name=side-panel]::slotted(*){max-width:var(--internal-code-editor-side-panel-max-w);width:var(--internal-code-editor-side-panel-w);border-inline-start:var(--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:1 1 auto;overflow:hidden;min-height:0}slot[name=results-panel]::slotted(*){border-top:var(--internal-border);box-sizing:border-box;flex:1 1 auto;min-height:0}slot[name=side-action-bar]::slotted(*){max-width:var(--internal-side-action-bar-max-w);border-inline-start:var(--internal-border)}`, z = 10, P = 25, h = 100, u = "results-has-content", m = "is-resizing", H = "--arcgis-coding-components-code-editor-results-panel-max-h", s = "--internal-code-editor-results-panel-h", n = "--internal-code-editor-results-panel-max-h", i = "--internal-code-editor-results-panel-bottom-drawer-controls-h";
8
8
  class R extends v {
@@ -1,7 +1,8 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
2
  import { g as m, c as u } from "../../chunks/runtime.js";
3
3
  import { LitElement as g } from "@arcgis/lumina";
4
- import { slotChangeHasContent as p, observeAncestorsMutation as f, unsafeGetCalciteModeName as _ } from "@arcgis/toolkit/dom";
4
+ import { observeAncestorsMutation as p, unsafeGetCalciteModeName as f } from "@arcgis/toolkit/dom";
5
+ import { slotChangeHasContent as _ } from "@arcgis/toolkit/dom/slots";
5
6
  import { load as v } from "@arcgis/lumina/controllers";
6
7
  import { i as b } from "../../chunks/monaco-importer.js";
7
8
  import { css as y, html as a } from "lit";
@@ -15,7 +16,7 @@ const O = y`:host{display:block}.arcgis-code-viewer-container{display:flex;align
15
16
  class z extends g {
16
17
  constructor() {
17
18
  super(...arguments), this._monacoEditor = v(b), this.#t = Promise.withResolvers(), this.#e = "", this._slotContentObservers = [], this._onDefaultSlotChange = async (e) => {
18
- p(e) || (this._codeFromSlot = "");
19
+ _(e) || (this._codeFromSlot = "");
19
20
  const t = e.target instanceof HTMLSlotElement ? e.target : null, s = t ? this._computeSlotText(t) : "";
20
21
  t && this._observeAssignedSlotNodes(t), s !== this._codeFromSlot && (this._codeFromSlot = s), this.#t.resolve();
21
22
  }, this._colorizeTask = new w(this, {
@@ -39,7 +40,7 @@ class z extends g {
39
40
  #t;
40
41
  #e;
41
42
  async load() {
42
- E(m("./assets")), await c(this.language), await l(this.language), this._applyColorizeStyles(d()), this.manager.onLifecycle(() => (this._themeObserver = f(this.el, ["class"], () => this.updateTheme()), this._themeChangedListener = N(() => {
43
+ E(m("./assets")), await c(this.language), await l(this.language), this._applyColorizeStyles(d()), this.manager.onLifecycle(() => (this._themeObserver = p(this.el, ["class"], () => this.updateTheme()), this._themeChangedListener = N(() => {
43
44
  this._applyColorizeStyles(d());
44
45
  }), this.updateTheme(), () => {
45
46
  this._themeObserver?.(), this._themeObserver = void 0, this._themeChangedListener?.dispose(), this._themeChangedListener = void 0;
@@ -93,7 +94,7 @@ class z extends g {
93
94
  return t.map((s) => s.textContent ?? "").join("").trim();
94
95
  }
95
96
  updateTheme() {
96
- const e = _(this.el) === "light" ? "vs" : "vs-dark";
97
+ const e = f(this.el) === "light" ? "vs" : "vs-dark";
97
98
  e !== this._currentTheme && (this._currentTheme = e, this._monacoEditor.setTheme(e));
98
99
  }
99
100
  _applyColorizeStyles(e) {