@deephaven/code-studio 0.78.1-beta.1 → 0.78.1-use-widget.3

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 (42) hide show
  1. package/build/assets/{AppRoot-f417202f.js → AppRoot-5cd36f66.js} +3 -3
  2. package/build/assets/{AppRoot-f417202f.js.map → AppRoot-5cd36f66.js.map} +1 -1
  3. package/build/assets/{Chart-e54b000a.js → Chart-6054c356.js} +2 -2
  4. package/build/assets/{Chart-e54b000a.js.map → Chart-6054c356.js.map} +1 -1
  5. package/build/assets/{ControlType-a97b5155.js → ControlType-2530059c.js} +3 -3
  6. package/build/assets/{ControlType-a97b5155.js.map → ControlType-2530059c.js.map} +1 -1
  7. package/build/assets/{FontBootstrap-b17fa53d.js → FontBootstrap-0863c583.js} +2 -2
  8. package/build/assets/{FontBootstrap-b17fa53d.js.map → FontBootstrap-0863c583.js.map} +1 -1
  9. package/build/assets/{FormatterUtils-30e2571e.js → FormatterUtils-5af1ad23.js} +2 -2
  10. package/build/assets/{FormatterUtils-30e2571e.js.map → FormatterUtils-5af1ad23.js.map} +1 -1
  11. package/build/assets/{Grid-dd3c5b16.js → Grid-00fec0b1.js} +2 -2
  12. package/build/assets/{Grid-dd3c5b16.js.map → Grid-00fec0b1.js.map} +1 -1
  13. package/build/assets/{GridRenderer-c2c287f1.js → GridRenderer-07bf93ad.js} +2 -2
  14. package/build/assets/{GridRenderer-c2c287f1.js.map → GridRenderer-07bf93ad.js.map} +1 -1
  15. package/build/assets/{IrisGrid-b225dbb2.js → IrisGrid-62e16be3.js} +2 -2
  16. package/build/assets/{IrisGrid-b225dbb2.js.map → IrisGrid-62e16be3.js.map} +1 -1
  17. package/build/assets/{IrisGridModel-9c2cb44e.js → IrisGridModel-ee1944ac.js} +2 -2
  18. package/build/assets/{IrisGridModel-9c2cb44e.js.map → IrisGridModel-ee1944ac.js.map} +1 -1
  19. package/build/assets/{IrisGridShortcuts-77196cb6.js → IrisGridShortcuts-cba3d064.js} +2 -2
  20. package/build/assets/{IrisGridShortcuts-77196cb6.js.map → IrisGridShortcuts-cba3d064.js.map} +1 -1
  21. package/build/assets/{IrisGridThemeProvider-227b0091.js → IrisGridThemeProvider-a56e75c4.js} +2 -2
  22. package/build/assets/{IrisGridThemeProvider-227b0091.js.map → IrisGridThemeProvider-a56e75c4.js.map} +1 -1
  23. package/build/assets/{MarkdownEditor-69cb878d.js → MarkdownEditor-ad597ee5.js} +2 -2
  24. package/build/assets/{MarkdownEditor-69cb878d.js.map → MarkdownEditor-ad597ee5.js.map} +1 -1
  25. package/build/assets/{MarkdownNotebook-45ae5473.js → MarkdownNotebook-44665d93.js} +2 -2
  26. package/build/assets/{MarkdownNotebook-45ae5473.js.map → MarkdownNotebook-44665d93.js.map} +1 -1
  27. package/build/assets/{MissingPartitionError-726e1fa5.js → MissingPartitionError-1bfabbab.js} +2 -2
  28. package/build/assets/{MissingPartitionError-726e1fa5.js.map → MissingPartitionError-1bfabbab.js.map} +1 -1
  29. package/build/assets/{StyleGuideRoot-40ed19e6.js → StyleGuideRoot-c695ce91.js} +2 -2
  30. package/build/assets/{StyleGuideRoot-40ed19e6.js.map → StyleGuideRoot-c695ce91.js.map} +1 -1
  31. package/build/assets/{index-45bdbd3d.js → index-2f7f00da.js} +2 -2
  32. package/build/assets/{index-45bdbd3d.js.map → index-2f7f00da.js.map} +1 -1
  33. package/build/assets/{index-bdc58f9e.js → index-68645add.js} +3 -3
  34. package/build/assets/{index-bdc58f9e.js.map → index-68645add.js.map} +1 -1
  35. package/build/assets/index-fc6de724.js +2 -0
  36. package/build/assets/index-fc6de724.js.map +1 -0
  37. package/build/assets/{useUser-e5fb858c.js → useUser-2f33bdf4.js} +2 -2
  38. package/build/assets/{useUser-e5fb858c.js.map → useUser-2f33bdf4.js.map} +1 -1
  39. package/build/index.html +1 -1
  40. package/package.json +30 -30
  41. package/build/assets/index-f2e73658.js +0 -2
  42. package/build/assets/index-f2e73658.js.map +0 -1
@@ -1,4 +1,4 @@
1
- import{r as h,ag as x,K as q,I as e,av as C,M as me,_ as Nr,V as je,L as S,a7 as L,aK as Ir,aJ as U,U as rr,bb as Ur,ax as _,bw as Er,a5 as Hr,a6 as B,a8 as Gr,bx as zr,a9 as Wr,aa as Ke,ac as Kr,ad as w,aY as qr,by as Fe,aX as X,aq as Yr,ab as Xr,aV as Ve,ah as Dr,bz as Oe,aN as Zr,aP as Qr,ai as Jr,bA as eo,bB as ro,bC as oo,bD as Z,bE as to,bF as Se,bG as A,aE as so,bH as ao,bI as lo,b9 as io,Q as no,a4 as co}from"./vendor-ff8e0e38.js";import{aV as or,aW as W,aX as K,aL as ve,a2 as ho,aY as qe,aZ as Ye,a_ as Ar,aE as uo,a$ as tr,F as sr,b0 as ar,I as Ue,b1 as mo,b2 as go,K as xo,b3 as po,b4 as vo,aH as lr,b5 as He,am as fo,f as bo,b6 as jo}from"./index-45bdbd3d.js";import{W as yo}from"./monaco-b5248072.js";import{B as p,u as Mr,s as oe,q as te,aU as $,K as R,al as fe,aj as wo,J as ir,cC as nr,Q as Co,C as P,aY as pe,S as be,aQ as So,am as ko,d as cr,a_ as $r,A as dr,bx as Q,cD as To,cE as No,by as Io,ay as Eo,a7 as Do,aE as Ao,w as Mo}from"./ControlType-a97b5155.js";import{e as we,c as Rr,m as J,S as le,L as $o,b as ke,I as Ro}from"./IrisGridModel-9c2cb44e.js";import{M as hr,e as Lo,A as Po,T as _o,D as Bo,C as Fo,d as Vo,i as Oo,V as E,H as Xe,h as Uo,P as Te,L as Ne,f as Ho,E as ee,k as Go}from"./FontBootstrap-b17fa53d.js";import{G as se,T as zo}from"./Grid-dd3c5b16.js";import{a1 as Lr,O as M,l as Ge,m as Wo,w as Ko,n as de,P as ur,x as qo,r as Yo,T as j,g as Xo,S as G,v as Zo,Y as Qo,L as Jo}from"./GridRenderer-c2c287f1.js";import{a as mr,D as et}from"./IrisGridShortcuts-77196cb6.js";import{N as rt,T as ot,b as tt}from"./useUser-e5fb858c.js";import{L as st}from"./AppRoot-f417202f.js";import"./helpers-de833af9.js";function gr(t,r,o,s,a,l,i){try{var n=t[l](i),c=n.value}catch(u){o(u);return}n.done?r(c):Promise.resolve(c).then(s,a)}function Ie(t){return function(){var r=this,o=arguments;return new Promise(function(s,a){var l=t.apply(r,o);function i(c){gr(l,s,a,i,n,"next",c)}function n(c){gr(l,s,a,i,n,"throw",c)}i(void 0)})}}function O(t,r,o){return r=at(r),r in t?Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[r]=o,t}function at(t){var r=lt(t,"string");return typeof r=="symbol"?r:String(r)}function lt(t,r){if(typeof t!="object"||t===null)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var s=o.call(t,r||"default");if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}class it extends we{constructor(){var{rowCount:r=1e9,columnCount:o=100,floatingTopRowCount:s=0,floatingBottomRowCount:a=0,floatingLeftColumnCount:l=0,floatingRightColumnCount:i=0,isEditable:n=!1,editedData:c=[]}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};super(),O(this,"numRows",void 0),O(this,"numColumns",void 0),O(this,"floatingTop",void 0),O(this,"floatingBottom",void 0),O(this,"floatingLeft",void 0),O(this,"floatingRight",void 0),O(this,"editable",void 0),O(this,"editedData",void 0),this.numRows=r,this.numColumns=o,this.floatingTop=s,this.floatingBottom=a,this.floatingLeft=l,this.floatingRight=i,this.editable=n,this.editedData=c}get rowCount(){return this.numRows}get columnCount(){return this.numColumns}get floatingTopRowCount(){return this.floatingTop}get floatingBottomRowCount(){return this.floatingBottom}get floatingLeftColumnCount(){return this.floatingLeft}get floatingRightColumnCount(){return this.floatingRight}get isEditable(){return this.editable}textForCell(r,o){var s,a;return(s=(a=this.editedData[r])===null||a===void 0?void 0:a[o])!==null&&s!==void 0?s:"".concat(r,",").concat(o)}colorForCell(r,o,s){return s.textColor}textForColumnHeader(r){return"".concat(r)}textForRowHeader(r){return"".concat(r)}textForRowFooter(r){return"".concat(r)}setValueForCell(r,o,s){var a=this;return Ie(function*(){a.editedData[r]==null&&(a.editedData[r]=[]),a.editedData[r][o]="".concat(s)})()}setValueForRanges(r,o){var s=this;return Ie(function*(){Rr.forEachCell(r,(a,l)=>{s.setValueForCell(a,l,o)})})()}setValues(r){var o=this;return Ie(function*(){for(var s=0;s<r.length;s+=1){var a,l,i=r[s];o.setValueForCell((a=i.column)!==null&&a!==void 0?a:i.x,(l=i.row)!==null&&l!==void 0?l:i.y,i.text)}})()}editValueForCell(r,o){return this.textForCell(r,o)}isValidForCell(r,o,s){return!0}isEditableRange(r){return this.isEditable}delete(r){throw new Error("Method not implemented.")}}const Ze=it;function T(t,r,o){return r=nt(r),r in t?Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[r]=o,t}function nt(t){var r=ct(t,"string");return typeof r=="symbol"?r:String(r)}function ct(t,r){if(typeof t!="object"||t===null)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var s=o.call(t,r||"default");if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}class D extends Ze{constructor(){var{rowCount:r=D.DEFAULT_ROW_COUNT,columnCount:o=D.DEFAULT_COLUMN_COUNT,children:s=new Map,childRowCount:a=Math.ceil(Math.max(D.MIN_CHILD_ROW_COUNT,r*D.DEFAULT_CHILD_ROW_COUNT_FACTOR)),maxDepth:l=D.MAX_DEPTH}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};super({rowCount:r,columnCount:o}),T(this,"children",void 0),T(this,"childRowCount",void 0),T(this,"maxDepth",void 0),T(this,"getCachedModelRowOffset",J((i,n)=>{for(var c=null,u=n,d=[...i].sort((y,F)=>y[0]-F[0]),m=0;m<d.length;m+=1){var[g,v]=d[m];if(u<=g)break;var b=v.rowCount;if(u<=g+b){c=g,u=u-g-1;break}u-=b}return{key:c,offsetRow:u}})),T(this,"getCachedTextForRowHeader",J((i,n)=>{var{key:c,offsetRow:u}=this.getCachedModelRowOffset(i,n);if(c!=null){var d=i.get(c);if(d!==void 0)return"".concat(c,".").concat(d.textForRowHeader(u))}return"".concat(u)})),T(this,"getCachedTextForCell",J((i,n,c)=>{var{key:u,offsetRow:d}=this.getCachedModelRowOffset(i,c);if(u!=null){var m=i.get(u);if(m!==void 0)return"".concat(u,".").concat(m.textForCell(n,d))}return"".concat(n,",").concat(d)})),T(this,"getCachedIsRowExpandable",J((i,n,c)=>{var u=this.getCachedDepthForRow(i,n);return u<c})),T(this,"getCachedIsRowExpanded",J((i,n)=>{var{key:c,offsetRow:u}=this.getCachedModelRowOffset(i,n);if(c!=null){var d=i.get(c);if(d!==void 0)return d.isRowExpanded(u)}return i.has(u)})),T(this,"getCachedDepthForRow",J((i,n)=>{var{key:c,offsetRow:u}=this.getCachedModelRowOffset(i,n);if(c!=null){var d=i.get(c);if(d!==void 0)return d.depthForRow(u)+1}return 0})),this.children=s,this.childRowCount=a,this.maxDepth=l}textForCell(r,o){return this.getCachedTextForCell(this.children,r,o)}textForRowHeader(r){return this.getCachedTextForRowHeader(this.children,r)}isRowMovable(r){return!1}get hasExpandableRows(){return!0}get isExpandAllAvailable(){return!1}get floatingBottomRowCount(){return 0}isRowExpandable(r){return this.getCachedIsRowExpandable(this.children,r,this.maxDepth)}isRowExpanded(r){return this.getCachedIsRowExpanded(this.children,r)}setRowExpanded(r,o){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,{key:a,offsetRow:l}=this.getCachedModelRowOffset(this.children,r),i=new Map(this.children);if(a!=null){var n=this.children.get(a);if(n!==void 0){var{rowCount:c}=n;n.setRowExpanded(l,o,s),this.numRows+=n.rowCount-c}}else if(o){var d=new D({rowCount:this.childRowCount,columnCount:this.numColumns});i.set(l,d),this.numRows+=d.rowCount}else{var u=i.get(l);u!==void 0&&(this.numRows-=u.rowCount,i.delete(l))}this.children=i}expandAll(){throw new Error("Expand all not implemented.")}collapseAll(){throw new Error("Collapse all not implemented.")}depthForRow(r){return this.getCachedDepthForRow(this.children,r)}}T(D,"DEFAULT_ROW_COUNT",1e9);T(D,"DEFAULT_COLUMN_COUNT",100);T(D,"DEFAULT_CHILD_ROW_COUNT_FACTOR",.01);T(D,"MIN_CHILD_ROW_COUNT",10);T(D,"MAX_DEPTH",10);const Qe=D;function Ee(t,r,o){return r=dt(r),r in t?Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[r]=o,t}function dt(t){var r=ht(t,"string");return typeof r=="symbol"?r:String(r)}function ht(t,r){if(typeof t!="object"||t===null)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var s=o.call(t,r||"default");if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}class ut extends we{constructor(r,o){var s;super(),Ee(this,"data",void 0),Ee(this,"columnHeaders",void 0),Ee(this,"numberOfColumns",void 0),this.data=r,this.numberOfColumns=Math.max(...r.map(a=>a.length),(s=o?.length)!==null&&s!==void 0?s:0),this.columnHeaders=o}get rowCount(){return this.data.length}get columnCount(){return this.numberOfColumns}textForCell(r,o){var s;return"".concat((s=this.data[o])===null||s===void 0?void 0:s[r])}textForColumnHeader(r){var o,s;return(o=(s=this.columnHeaders)===null||s===void 0?void 0:s[r])!==null&&o!==void 0?o:""}}const mt=ut;function De(t,r,o){return r=gt(r),r in t?Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[r]=o,t}function gt(t){var r=xt(t,"string");return typeof r=="symbol"?r:String(r)}function xt(t,r){if(typeof t!="object"||t===null)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var s=o.call(t,r||"default");if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}class pt extends we{constructor(r,o){super(),De(this,"numberOfColumns",void 0),De(this,"numberOfRows",void 0),De(this,"viewportData",void 0),this.numberOfColumns=r,this.numberOfRows=o}get columnCount(){return this.numberOfColumns}get rowCount(){return this.numberOfRows}textForCell(r,o){var s,a,l,i,n,c,u,d=o-((s=(a=this.viewportData)===null||a===void 0?void 0:a.rowOffset)!==null&&s!==void 0?s:0),m=r-((l=(i=this.viewportData)===null||i===void 0?void 0:i.columnOffset)!==null&&l!==void 0?l:0);return"".concat((n=(c=this.viewportData)===null||c===void 0||(u=c.data[d])===null||u===void 0?void 0:u[m])!==null&&n!==void 0?n:"")}textForColumnHeader(r){return"".concat(r)}textForRowHeader(r){return"".concat(r)}}const vt=pt;function N(t,r,o){return r=ft(r),r in t?Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[r]=o,t}function ft(t){var r=bt(t,"string");return typeof r=="symbol"?r:String(r)}function bt(t,r){if(typeof t!="object"||t===null)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var s=o.call(t,r||"default");if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}var jt="proportional",yt=Lr.positiveBarColor,wt=Lr.negativeBarColor,Ct="beside",St="LTR",kt="right";function Tt(t){return Array.isArray(t)&&t.every(r=>typeof r=="number")}class Nt extends we{constructor(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new Map,s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:new Map,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:new Map,l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:new Map,i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:new Map,n=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new Map,c=arguments.length>7&&arguments[7]!==void 0?arguments[7]:new Map,u=arguments.length>8&&arguments[8]!==void 0?arguments[8]:new Map;super(),N(this,"numberOfColumns",void 0),N(this,"numberOfRows",void 0),N(this,"data",void 0),N(this,"columnMins",void 0),N(this,"columnMaxs",void 0),N(this,"columnAxes",void 0),N(this,"valuePlacements",void 0),N(this,"directions",void 0),N(this,"positiveColors",void 0),N(this,"negativeColors",void 0),N(this,"opacities",void 0),N(this,"textAlignments",void 0),N(this,"markers",void 0),this.positiveColors=s,this.negativeColors=a,this.data=r,this.columnAxes=o,this.valuePlacements=l,this.opacities=i,this.directions=n,this.textAlignments=c,this.markers=u,this.numberOfRows=Math.max(...r.map(g=>g.length)),this.numberOfColumns=r.length,this.columnMins=new Map,this.columnMaxs=new Map;for(var d=0;d<r.length;d+=1){var m=r[d];Tt(m)&&(this.columnMins.set(d,Math.min(...m)),this.columnMaxs.set(d,Math.max(...m)))}}get rowCount(){return this.numberOfRows}get columnCount(){return this.numberOfColumns}textForCell(r,o){var s;return"".concat((s=this.data[r])===null||s===void 0?void 0:s[o])}textForColumnHeader(r){return"".concat(r)}textAlignForCell(r,o){var s;return(s=this.textAlignments.get(r))!==null&&s!==void 0?s:kt}renderTypeForCell(r,o){return r<20||r%2===o%2?"dataBar":"text"}dataBarOptionsForCell(r,o){var s,a,l,i,n,c,u,d=or(this.columnMins,r),m=or(this.columnMaxs,r),g=(s=this.columnAxes.get(r))!==null&&s!==void 0?s:jt,v=(a=this.valuePlacements.get(r))!==null&&a!==void 0?a:Ct,b=this.opacities.get(r);b==null||b>1?b=1:b<0&&(b=0);var y=(l=this.directions.get(r))!==null&&l!==void 0?l:St,F=(i=this.positiveColors.get(r))!==null&&i!==void 0?i:yt,ae=(n=this.negativeColors.get(r))!==null&&n!==void 0?n:wt,H=Number((c=this.data[r])===null||c===void 0?void 0:c[o]),Y=H>=0?F:ae,Ce=(u=this.markers.get(r))!==null&&u!==void 0?u:[];return{columnMin:d,columnMax:m,axis:g,color:Y,valuePlacement:v,opacity:b,markers:Ce,direction:y,value:H}}}const It=Nt,Ae="hide-from-e2e-tests",xr="sample-section";function*ge(t,r){const o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",s=o.length;for(let a=t;a<=r;a+=1){const l=a%s;let i=String(Math.floor(a/s));i==="0"&&(i="");const n=o[l],c=`${n}${i}`,u=`${n.repeat(3)}${i}`;yield h.createElement(x,{key:c,textValue:u,children:u})}}function*Je(t,r={}){const o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",s=o.length,a=Object.keys(W);for(let l=0;l<t;l+=1){const i=l%s;let n=String(Math.floor(l/s));n==="0"&&(n="");const c=o[i],u=`${c}${n}`,d=r.icons===!0?a[l%a.length]:void 0,m=r.descriptions===!0?`Description ${u}`:void 0,g=d??`${c.repeat(3)}${n}`;yield{key:u,item:{key:(l+1)*100,content:g,textValue:g,description:m,icon:d}}}}function*Pr(t=1){for(;;)t=t*16807%2147483647,yield t/2147483647}function Et(t=1){const[r]=h.useState(()=>Pr(t));return h.useCallback(()=>{const o=r.next();if(o.done===!0)throw new Error("Random number generator unexpectedly finished");return o.value},[r])}function f(t,r=[]){const o=`${xr}-${t.toLocaleLowerCase().replaceAll(" ","-")}`,s=q(xr,...r);return{id:o,className:s}}function I(t,r=[]){const{id:o,className:s}=f(t,r);return{id:o,UNSAFE_className:s}}function k(){}class ue extends h.Component{static renderButtons(){return e.jsxs(e.Fragment,{children:[e.jsx("h5",{children:"Button Kinds"}),e.jsx("div",{...f("buttons-regular"),style:{padding:"1rem 0"},children:e.jsxs(C,{gap:"size-100",children:[e.jsx(p,{kind:"primary",onClick:k,children:"Primary"}),e.jsx(p,{kind:"secondary",onClick:k,children:"Secondary"}),e.jsx(p,{kind:"tertiary",onClick:k,children:"Tertiary"}),e.jsx(p,{kind:"success",onClick:k,children:"Success"}),e.jsx(p,{kind:"danger",onClick:k,children:"Danger"}),e.jsx(p,{kind:"inline",onClick:k,children:"Inline"}),e.jsx(p,{kind:"ghost",onClick:k,children:"Ghost"})]})})]})}static renderLinks(){const r={primary:"accent",secondary:"neutral",success:"positive",info:"info",warning:"notice",danger:"negative"};return e.jsxs("div",{...f("links"),style:{paddingTop:"1rem"},children:[e.jsx("h5",{children:"Links"}),e.jsx(C,{gap:"1rem",children:Object.entries(r).map(([o,s])=>e.jsxs("a",{className:`text-${o}`,children:[o," (",s,")"]},o))})]})}static renderSocketedButtons(){return e.jsxs("div",{...f("buttons-socketed"),children:[e.jsx("h5",{children:"Socketed Buttons (for linker)"}),e.jsx(le,{style:{marginBottom:"1rem",marginRight:"1rem"},onClick:k,children:"Unlinked"}),e.jsx(le,{style:{marginBottom:"1rem",marginRight:"1rem"},isLinked:!0,onClick:k,children:"Linked"}),e.jsx(le,{style:{marginBottom:"1rem",marginRight:"1rem"},isLinkedSource:!0,onClick:k,children:"Linked Source"}),e.jsx(le,{style:{marginBottom:"1rem",marginRight:"1rem"},isLinked:!0,isInvalid:!0,onClick:k,children:"Error"}),e.jsx(le,{style:{marginBottom:"1rem",marginRight:"1rem"},disabled:!0,onClick:k,children:"Disabled"})]})}constructor(r){super(r),this.state={toggle:!0}}renderInlineButtons(){const{toggle:r}=this.state;return e.jsxs("div",{...f("buttons-inline"),style:{padding:"1rem 0"},children:[e.jsx("h5",{children:"Inline Buttons"}),"Regular btn-inline:",e.jsx(p,{className:"mx-2",kind:"inline",icon:K,tooltip:"test",onClick:k}),"Toggle button (class active):",e.jsx(p,{className:"mx-2",onClick:()=>{this.setState({toggle:!r})},active:r,kind:"inline",icon:K,tooltip:"test"}),"Disabled:",e.jsx(p,{className:"mx-2",kind:"inline",disabled:!0,onClick:k,children:"Disabled"}),"With Text:",e.jsx(p,{className:"mx-2",kind:"inline",icon:K,onClick:k,children:e.jsx("span",{children:"Text Button"})}),e.jsx("br",{}),e.jsx("br",{}),e.jsx("span",{children:"btn-link-icon (no text):"}),e.jsx(p,{kind:"ghost",icon:K,tooltip:"test",onClick:k}),e.jsx("span",{className:"mx-2",children:"btn-link:"}),e.jsx(p,{kind:"ghost",onClick:k,children:"Text Button"}),e.jsx("span",{className:"mx-2",children:"btn-link (text w/ optional with icon):"}),e.jsx(p,{kind:"ghost",icon:K,onClick:k,children:"Text Button"})]})}render(){const r=ue.renderButtons(),o=this.renderInlineButtons(),s=ue.renderSocketedButtons(),a=ue.renderLinks();return e.jsxs("div",{children:[e.jsx("h2",{className:"ui-title",children:"Buttons"}),e.jsxs("div",{style:{padding:"1rem 0"},children:[r,o,s,a]})]})}}function Dt(){const t=Mr();hr.random=Et();const[r]=h.useState(()=>new hr(t));return e.jsxs("div",{...f("charts"),children:[e.jsx("h2",{className:"ui-title",children:"Chart"}),e.jsx("div",{style:{height:500},children:e.jsx($o,{model:r})})]})}const ze="2px solid var(--dh-color-notice-bg)",At={"--dh-color-black":"gray","--dh-color-white":"gray","--dh-color-border":"General","--dh-color-bg":"General","--dh-color-surface-bg":"General","--dh-color-fg":"General","--dh-color-content-bg":"General","--dh-color-subdued-content-bg":"General","--dh-color-dropshadow":"General","--dh-color-keyboard-selected-bg":"Misc","--dh-color-hover-border":"Misc","--dh-color-visual-positive":"Visual Status","--dh-color-visual-negative":"Visual Status","--dh-color-visual-notice":"Visual Status","--dh-color-visual-info":"Visual Status","--dh-color-gray-bg":"Default Background","--dh-color-red-bg":"Default Background","--dh-color-orange-bg":"Default Background","--dh-color-yellow-bg":"Default Background","--dh-color-chartreuse-bg":"Default Background","--dh-color-celery-bg":"Default Background","--dh-color-green-bg":"Default Background","--dh-color-seafoam-bg":"Default Background","--dh-color-cyan-bg":"Default Background","--dh-color-blue-bg":"Default Background","--dh-color-indigo-bg":"Default Background","--dh-color-purple-bg":"Default Background","--dh-color-fuchsia-bg":"Default Background","--dh-color-magenta-bg":"Default Background","--dh-color-editor-bg":"editor","--dh-color-editor-fg":"editor","--dh-color-editor-context-menu-bg":"menus","--dh-color-editor-context-menu-fg":"menus","--dh-color-editor-menu-selection-bg":"menus","--dh-color-grid-bg":"grid","--dh-color-grid-number-positive":"Data Types","--dh-color-grid-number-negative":"Data Types","--dh-color-grid-number-zero":"Data Types","--dh-color-grid-date":"Data Types","--dh-color-grid-string-null":"Data Types"},pr={"--dh-color-black":"","--dh-color-action-active-bg":"Action.active","--dh-color-action-down-bg":"Action:active","--dh-color-action-hover-bg":"Action:hover","--dh-color-action-active-hover-bg":"Action.active:hover","--dh-color-action-disabled-bg":"Action:disabled"},Mt={palette:{black:"gray",white:"gray"},editor:{line:"editor",comment:"code",string:"code",number:"code",delimiter:"code",identifier:"code",keyword:"code",operator:"code",storage:"code",predefined:"code",selection:"state",focus:"state"},chart:{axis:"Chart",bg:"Chart",grid:"Chart",plot:"Chart",title:"Chart",active:"Data",trend:"Data",area:"Data",range:"Data",line:"Deprecated"},grid:{data:"Data Bars",context:"Context Menu"},semantic:{},component:{}};function $t(t){const r=ve.parseRgba(ve.asRgbOrRgbaString(t)??"");if(r==null||r.a<.5)return"white";const{r:o,g:s,b:a}=r;return ve.getBrightness([o,s,a])>=128?"black":"white"}function Rt(t){const r=getComputedStyle(document.documentElement);return t.split(/[\n;]/g).map(s=>/^(?:\s{2}|:root\{)?(--dh-color-(?:[^:]+))/.exec(s)?.[1]).filter(s=>!!s).map(s=>{const a=r.getPropertyValue(s);return s==="--dh-color-chart-colorway"?ho(a??"").map(([i,n])=>a.substring(i,n+1)).map((i,n)=>({name:`${s}-${n}`,value:i})):{name:s,value:a}}).flat()}function re(t,r,o,s=At){const a=Mt[t];return Rt(r).reduce((n,{name:c,value:u})=>{if(/^--dh-color-true-(.*?)$/.test(c)||/^--dh-color-gray-(light|mid|dark)$/.test(c))return n;const d=/^--dh-color-([^-]+)(?:-([^-]+))?/.exec(c);let m=s[c]??d?.[o]??d?.[1]??"???";return m=a[m]??m,n[m]==null&&(n[m]=[]),c in pr&&n[m].push({isLabel:!0,name:pr[c],value:""}),/^--dh-color-gray-(light|mid|dark)$/.test(c)||n[m].push({name:c,value:u}),n},{})}function Lt(){const t=h.useRef(null);return h.useLayoutEffect(()=>{if(t.current==null)return;const r=getComputedStyle(t.current),{backgroundColor:o}=r;t.current.style.color=$t(o)},[]),t}function Pt(t,r){const[o,s]=h.useState();return h.useEffect(()=>{if(t.current==null)return;const a=getComputedStyle(t.current,r).getPropertyValue("content"),l=/"(--dh-color-.*?)[,"]/.exec(a)?.[1];if(l==null)return;const i=getComputedStyle(t.current).getPropertyValue(l);s(i)},[t,r]),o}function Me({className:t,children:r}){const o=Lt(),s=Pt(o,":after"),a=h.useMemo(()=>s!=null?{value:s}:null,[s]),l=a!=null&&a.value!=="";return e.jsxs("div",{ref:o,className:t,style:{border:l?void 0:ze},children:[l&&e.jsx(oe,{interactive:!0,children:e.jsx("div",{children:a.value})}),r]})}function _t(){const t=["100","200","300","400","500","600","700","800","850","8XX","900"].map(s=>e.jsx(Me,{className:q("swatch","gray-swatch",`gray-swatch-${s}`),children:s==="8XX"?"N/A":`Gray-${s}`},s)),r=["red","orange","yellow","green","blue","purple","white","black"].map(s=>e.jsx(Me,{className:q("swatch",`swatch-${s}`),children:s},s)),o=["content-bg","background","foreground","primary","primary-dark","secondary","secondary-hover","success","info","warning","danger","danger-hover"].map(s=>e.jsx(Me,{className:q("swatch",`swatch-${s}`),children:s},s));return e.jsxs("div",{...f("colors"),children:[e.jsx("h2",{className:"ui-title",children:"Colors"}),e.jsxs("div",{className:"row",children:[e.jsxs("div",{className:"col",children:[t,r]}),e.jsx("div",{className:"col",children:o}),e.jsx("div",{className:"col",children:e.jsx("p",{children:"This section is for legacy reference only. Use the css variable based semantic colors in the following sections. You should not be using colors defined in the theme color palette directly."})})]})]})}class Bt extends h.Component{constructor(r){super(r),this.makeContextMenuItems=this.makeContextMenuItems.bind(this)}makeContextMenuItems(r){const o=r!==void 0?` ${r}`:"";return[{title:`Show Alert${o}`,icon:qe,action:()=>{alert(`Alert${o}!`)},shortcut:new te({id:"STYLEGUIDE.SHOW_ALERT",name:"Show Alert",shortcut:[$.CTRL,R.A],macShortcut:[$.CMD,R.A]})},{title:`Log Message${o}`,icon:Ye,action:()=>{console.log(`Logging a message${o}!`)},shortcut:new te({id:"STYLEGUIDE.LOG_MESSAGE",name:"Log Message",shortcut:[$.CTRL,R.L],macShortcut:[$.CMD,R.L]})},{title:"Sub-menu",actions:()=>this.makeContextMenuItems((r??0)+1),order:3}].concat(new Array(10).fill({title:`Disabled Option${o}`,disabled:!0,order:2}))}render(){const r=this.makeContextMenuItems(),s=[{title:"Show Shortcuts",icon:Ar,action:()=>{alert("Show keyboard shortcuts!")},shortcut:new te({id:"STYLEGUIDE.SHOW_SHORTCUTS",name:"Show Shortcuts",shortcut:[$.CTRL,R.SLASH],macShortcut:[$.CMD,R.SLASH]}),group:fe.groups.global}].concat(r),a=()=>new Promise(l=>{setTimeout(()=>{l(r)},3e3)});return e.jsxs("div",{...f("context-menus"),children:[e.jsx("h2",{className:"ui-title",children:"Context Menu"}),e.jsxs(p,{kind:"primary",style:{cursor:"default",marginBottom:"1rem",marginRight:"1rem"},onClick:()=>{},children:["Right Click Me",e.jsx(fe,{actions:s})]}),e.jsxs(p,{kind:"tertiary",style:{cursor:"default",marginBottom:"1rem",marginRight:"1rem"},onClick:()=>{},children:["Right Click Me",e.jsx(fe,{actions:a})]})]})}}class Ft extends h.Component{constructor(r){super(r),this.sampleInput=me.createRef(),this.handleUpdateCheckboxMap=this.handleUpdateCheckboxMap.bind(this);const o=["Parent A",new Map([["Child 1",!0],["Child 2",!1]])],s=["Parent B",new Map([["Child 3",!0],["Child 4",!1],["Child 5",!0],["Child 6",!1]])],a=["Leaf Parent",!0];this.state={isShown:!1,checkBoxMap:new Map([o,s,a])}}handleUpdateCheckboxMap(r){this.setState({checkBoxMap:r})}renderChild(){return e.jsxs("div",{className:"p-3",children:[e.jsx("h4",{children:"Sample Child"}),e.jsxs("div",{className:"form-group",children:[e.jsxs("label",{htmlFor:"exampleInput1",children:["Input Label",e.jsx("input",{ref:this.sampleInput,type:"text",className:"form-control",id:"exampleInput1","aria-describedby":"emailHelp",placeholder:"Input Placeholder"})]}),e.jsx("small",{className:"form-text text-muted",children:"Help text for a form input"})]})]})}render(){const{isShown:r,checkBoxMap:o}=this.state;return e.jsxs("div",{...f("dialog"),children:[e.jsx("h2",{className:"ui-title",children:"Popover Dialog"}),e.jsx("p",{children:"Popover dialog that can contain interactive elements, can be set to self close on blur."}),e.jsxs(p,{kind:"primary",style:{marginBottom:"1rem",marginRight:"1rem"},onClick:()=>{r?this.setState({isShown:!1}):this.setState({isShown:!0})},children:["Open Dialog",e.jsx(wo,{options:{placement:"bottom"},isShown:r,onEntered:()=>{this.sampleInput.current&&this.sampleInput.current.focus()},onExited:()=>{this.setState({isShown:!1})},closeOnBlur:!0,interactive:!0,children:this.renderChild()})]}),e.jsx("p",{children:"The Hierarchical Checkbox Menu uses a popover dialog to display hierarchical groups of checkboxes."}),e.jsx(Lo,{menuText:"Checkbox Menu",valueMap:o,onUpdateValueMap:this.handleUpdateCheckboxMap})]})}}class Vt extends h.Component{constructor(r){super(r),this.state={isShown:!1}}render(){const r=[{title:"Show Alert",icon:qe,action:()=>{alert("Alert!")},shortcut:new te({id:"STYLEGUIDE.SHOW_ALERT",name:"Show Alert",shortcut:[$.CTRL,R.A],macShortcut:[$.CMD,R.A]})},{title:"Log Message",icon:Ye,action:()=>{console.log("Logging a message!")},shortcut:new te({id:"STYLEGUIDE.LOG_MESSAGE",name:"Log Message",shortcut:[$.CTRL,R.L],macShortcut:[$.CMD,R.L]})}],s=[{title:"Show Shortcuts",icon:Ar,action:()=>{alert("Show keyboard shortcuts!")},shortcut:new te({id:"STYLEGUIDE.SHOW_SHORTCUTS",name:"Show Shortcuts",shortcut:[$.CTRL,R.SLASH],macShortcut:[$.CMD,R.SLASH]}),group:fe.groups.global}].concat(r),{isShown:a}=this.state;return e.jsxs("div",{...f("dropdown-menus"),children:[e.jsx("h2",{className:"ui-title",children:"Dropdown Menu"}),e.jsx("p",{children:"A simple dropdown menu of actions, can open on click of parent container, or controlled by prop."}),e.jsx(p,{kind:"inline",className:"mx-2",icon:uo,onClick:()=>{},children:e.jsx(ir,{actions:s})}),e.jsxs(p,{kind:"primary",style:{marginRight:"1rem",minWidth:"165px"},onClick:()=>{a?this.setState({isShown:!1}):this.setState({isShown:!0})},children:["Menu Shown: ",a.toString()]}),e.jsxs("div",{ref:this.button,className:"btn btn-secondary disabled",style:{marginRight:"1rem"},children:["Shown using isShown",e.jsx(ir,{isShown:a,onMenuClosed:()=>{this.setState({isShown:!1})},actions:s})]})]})}}const Ot=`trades = db.t("LearnDeephaven", "StockTrades").where("Date=\`2017-08-25\`")\\
1
+ import{r as h,ag as x,K as q,I as e,av as C,M as me,_ as Nr,V as je,L as S,a7 as L,aK as Ir,aJ as U,U as rr,bb as Ur,ax as _,bw as Er,a5 as Hr,a6 as B,a8 as Gr,bx as zr,a9 as Wr,aa as Ke,ac as Kr,ad as w,aY as qr,by as Fe,aX as X,aq as Yr,ab as Xr,aV as Ve,ah as Dr,bz as Oe,aN as Zr,aP as Qr,ai as Jr,bA as eo,bB as ro,bC as oo,bD as Z,bE as to,bF as Se,bG as A,aE as so,bH as ao,bI as lo,b9 as io,Q as no,a4 as co}from"./vendor-ff8e0e38.js";import{aV as or,aW as W,aX as K,aL as ve,a2 as ho,aY as qe,aZ as Ye,a_ as Ar,aE as uo,a$ as tr,F as sr,b0 as ar,I as Ue,b1 as mo,b2 as go,K as xo,b3 as po,b4 as vo,aH as lr,b5 as He,am as fo,f as bo,b6 as jo}from"./index-2f7f00da.js";import{W as yo}from"./monaco-b5248072.js";import{B as p,u as Mr,s as oe,q as te,aU as $,K as R,al as fe,aj as wo,J as ir,cC as nr,Q as Co,C as P,aY as pe,S as be,aQ as So,am as ko,d as cr,a_ as $r,A as dr,bx as Q,cD as To,cE as No,by as Io,ay as Eo,a7 as Do,aE as Ao,w as Mo}from"./ControlType-2530059c.js";import{e as we,c as Rr,m as J,S as le,L as $o,b as ke,I as Ro}from"./IrisGridModel-ee1944ac.js";import{M as hr,e as Lo,A as Po,T as _o,D as Bo,C as Fo,d as Vo,i as Oo,V as E,H as Xe,h as Uo,P as Te,L as Ne,f as Ho,E as ee,k as Go}from"./FontBootstrap-0863c583.js";import{G as se,T as zo}from"./Grid-00fec0b1.js";import{a1 as Lr,O as M,l as Ge,m as Wo,w as Ko,n as de,P as ur,x as qo,r as Yo,T as j,g as Xo,S as G,v as Zo,Y as Qo,L as Jo}from"./GridRenderer-07bf93ad.js";import{a as mr,D as et}from"./IrisGridShortcuts-cba3d064.js";import{N as rt,T as ot,b as tt}from"./useUser-2f33bdf4.js";import{L as st}from"./AppRoot-5cd36f66.js";import"./helpers-de833af9.js";function gr(t,r,o,s,a,l,i){try{var n=t[l](i),c=n.value}catch(u){o(u);return}n.done?r(c):Promise.resolve(c).then(s,a)}function Ie(t){return function(){var r=this,o=arguments;return new Promise(function(s,a){var l=t.apply(r,o);function i(c){gr(l,s,a,i,n,"next",c)}function n(c){gr(l,s,a,i,n,"throw",c)}i(void 0)})}}function O(t,r,o){return r=at(r),r in t?Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[r]=o,t}function at(t){var r=lt(t,"string");return typeof r=="symbol"?r:String(r)}function lt(t,r){if(typeof t!="object"||t===null)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var s=o.call(t,r||"default");if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}class it extends we{constructor(){var{rowCount:r=1e9,columnCount:o=100,floatingTopRowCount:s=0,floatingBottomRowCount:a=0,floatingLeftColumnCount:l=0,floatingRightColumnCount:i=0,isEditable:n=!1,editedData:c=[]}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};super(),O(this,"numRows",void 0),O(this,"numColumns",void 0),O(this,"floatingTop",void 0),O(this,"floatingBottom",void 0),O(this,"floatingLeft",void 0),O(this,"floatingRight",void 0),O(this,"editable",void 0),O(this,"editedData",void 0),this.numRows=r,this.numColumns=o,this.floatingTop=s,this.floatingBottom=a,this.floatingLeft=l,this.floatingRight=i,this.editable=n,this.editedData=c}get rowCount(){return this.numRows}get columnCount(){return this.numColumns}get floatingTopRowCount(){return this.floatingTop}get floatingBottomRowCount(){return this.floatingBottom}get floatingLeftColumnCount(){return this.floatingLeft}get floatingRightColumnCount(){return this.floatingRight}get isEditable(){return this.editable}textForCell(r,o){var s,a;return(s=(a=this.editedData[r])===null||a===void 0?void 0:a[o])!==null&&s!==void 0?s:"".concat(r,",").concat(o)}colorForCell(r,o,s){return s.textColor}textForColumnHeader(r){return"".concat(r)}textForRowHeader(r){return"".concat(r)}textForRowFooter(r){return"".concat(r)}setValueForCell(r,o,s){var a=this;return Ie(function*(){a.editedData[r]==null&&(a.editedData[r]=[]),a.editedData[r][o]="".concat(s)})()}setValueForRanges(r,o){var s=this;return Ie(function*(){Rr.forEachCell(r,(a,l)=>{s.setValueForCell(a,l,o)})})()}setValues(r){var o=this;return Ie(function*(){for(var s=0;s<r.length;s+=1){var a,l,i=r[s];o.setValueForCell((a=i.column)!==null&&a!==void 0?a:i.x,(l=i.row)!==null&&l!==void 0?l:i.y,i.text)}})()}editValueForCell(r,o){return this.textForCell(r,o)}isValidForCell(r,o,s){return!0}isEditableRange(r){return this.isEditable}delete(r){throw new Error("Method not implemented.")}}const Ze=it;function T(t,r,o){return r=nt(r),r in t?Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[r]=o,t}function nt(t){var r=ct(t,"string");return typeof r=="symbol"?r:String(r)}function ct(t,r){if(typeof t!="object"||t===null)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var s=o.call(t,r||"default");if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}class D extends Ze{constructor(){var{rowCount:r=D.DEFAULT_ROW_COUNT,columnCount:o=D.DEFAULT_COLUMN_COUNT,children:s=new Map,childRowCount:a=Math.ceil(Math.max(D.MIN_CHILD_ROW_COUNT,r*D.DEFAULT_CHILD_ROW_COUNT_FACTOR)),maxDepth:l=D.MAX_DEPTH}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};super({rowCount:r,columnCount:o}),T(this,"children",void 0),T(this,"childRowCount",void 0),T(this,"maxDepth",void 0),T(this,"getCachedModelRowOffset",J((i,n)=>{for(var c=null,u=n,d=[...i].sort((y,F)=>y[0]-F[0]),m=0;m<d.length;m+=1){var[g,v]=d[m];if(u<=g)break;var b=v.rowCount;if(u<=g+b){c=g,u=u-g-1;break}u-=b}return{key:c,offsetRow:u}})),T(this,"getCachedTextForRowHeader",J((i,n)=>{var{key:c,offsetRow:u}=this.getCachedModelRowOffset(i,n);if(c!=null){var d=i.get(c);if(d!==void 0)return"".concat(c,".").concat(d.textForRowHeader(u))}return"".concat(u)})),T(this,"getCachedTextForCell",J((i,n,c)=>{var{key:u,offsetRow:d}=this.getCachedModelRowOffset(i,c);if(u!=null){var m=i.get(u);if(m!==void 0)return"".concat(u,".").concat(m.textForCell(n,d))}return"".concat(n,",").concat(d)})),T(this,"getCachedIsRowExpandable",J((i,n,c)=>{var u=this.getCachedDepthForRow(i,n);return u<c})),T(this,"getCachedIsRowExpanded",J((i,n)=>{var{key:c,offsetRow:u}=this.getCachedModelRowOffset(i,n);if(c!=null){var d=i.get(c);if(d!==void 0)return d.isRowExpanded(u)}return i.has(u)})),T(this,"getCachedDepthForRow",J((i,n)=>{var{key:c,offsetRow:u}=this.getCachedModelRowOffset(i,n);if(c!=null){var d=i.get(c);if(d!==void 0)return d.depthForRow(u)+1}return 0})),this.children=s,this.childRowCount=a,this.maxDepth=l}textForCell(r,o){return this.getCachedTextForCell(this.children,r,o)}textForRowHeader(r){return this.getCachedTextForRowHeader(this.children,r)}isRowMovable(r){return!1}get hasExpandableRows(){return!0}get isExpandAllAvailable(){return!1}get floatingBottomRowCount(){return 0}isRowExpandable(r){return this.getCachedIsRowExpandable(this.children,r,this.maxDepth)}isRowExpanded(r){return this.getCachedIsRowExpanded(this.children,r)}setRowExpanded(r,o){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,{key:a,offsetRow:l}=this.getCachedModelRowOffset(this.children,r),i=new Map(this.children);if(a!=null){var n=this.children.get(a);if(n!==void 0){var{rowCount:c}=n;n.setRowExpanded(l,o,s),this.numRows+=n.rowCount-c}}else if(o){var d=new D({rowCount:this.childRowCount,columnCount:this.numColumns});i.set(l,d),this.numRows+=d.rowCount}else{var u=i.get(l);u!==void 0&&(this.numRows-=u.rowCount,i.delete(l))}this.children=i}expandAll(){throw new Error("Expand all not implemented.")}collapseAll(){throw new Error("Collapse all not implemented.")}depthForRow(r){return this.getCachedDepthForRow(this.children,r)}}T(D,"DEFAULT_ROW_COUNT",1e9);T(D,"DEFAULT_COLUMN_COUNT",100);T(D,"DEFAULT_CHILD_ROW_COUNT_FACTOR",.01);T(D,"MIN_CHILD_ROW_COUNT",10);T(D,"MAX_DEPTH",10);const Qe=D;function Ee(t,r,o){return r=dt(r),r in t?Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[r]=o,t}function dt(t){var r=ht(t,"string");return typeof r=="symbol"?r:String(r)}function ht(t,r){if(typeof t!="object"||t===null)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var s=o.call(t,r||"default");if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}class ut extends we{constructor(r,o){var s;super(),Ee(this,"data",void 0),Ee(this,"columnHeaders",void 0),Ee(this,"numberOfColumns",void 0),this.data=r,this.numberOfColumns=Math.max(...r.map(a=>a.length),(s=o?.length)!==null&&s!==void 0?s:0),this.columnHeaders=o}get rowCount(){return this.data.length}get columnCount(){return this.numberOfColumns}textForCell(r,o){var s;return"".concat((s=this.data[o])===null||s===void 0?void 0:s[r])}textForColumnHeader(r){var o,s;return(o=(s=this.columnHeaders)===null||s===void 0?void 0:s[r])!==null&&o!==void 0?o:""}}const mt=ut;function De(t,r,o){return r=gt(r),r in t?Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[r]=o,t}function gt(t){var r=xt(t,"string");return typeof r=="symbol"?r:String(r)}function xt(t,r){if(typeof t!="object"||t===null)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var s=o.call(t,r||"default");if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}class pt extends we{constructor(r,o){super(),De(this,"numberOfColumns",void 0),De(this,"numberOfRows",void 0),De(this,"viewportData",void 0),this.numberOfColumns=r,this.numberOfRows=o}get columnCount(){return this.numberOfColumns}get rowCount(){return this.numberOfRows}textForCell(r,o){var s,a,l,i,n,c,u,d=o-((s=(a=this.viewportData)===null||a===void 0?void 0:a.rowOffset)!==null&&s!==void 0?s:0),m=r-((l=(i=this.viewportData)===null||i===void 0?void 0:i.columnOffset)!==null&&l!==void 0?l:0);return"".concat((n=(c=this.viewportData)===null||c===void 0||(u=c.data[d])===null||u===void 0?void 0:u[m])!==null&&n!==void 0?n:"")}textForColumnHeader(r){return"".concat(r)}textForRowHeader(r){return"".concat(r)}}const vt=pt;function N(t,r,o){return r=ft(r),r in t?Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[r]=o,t}function ft(t){var r=bt(t,"string");return typeof r=="symbol"?r:String(r)}function bt(t,r){if(typeof t!="object"||t===null)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var s=o.call(t,r||"default");if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}var jt="proportional",yt=Lr.positiveBarColor,wt=Lr.negativeBarColor,Ct="beside",St="LTR",kt="right";function Tt(t){return Array.isArray(t)&&t.every(r=>typeof r=="number")}class Nt extends we{constructor(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new Map,s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:new Map,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:new Map,l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:new Map,i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:new Map,n=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new Map,c=arguments.length>7&&arguments[7]!==void 0?arguments[7]:new Map,u=arguments.length>8&&arguments[8]!==void 0?arguments[8]:new Map;super(),N(this,"numberOfColumns",void 0),N(this,"numberOfRows",void 0),N(this,"data",void 0),N(this,"columnMins",void 0),N(this,"columnMaxs",void 0),N(this,"columnAxes",void 0),N(this,"valuePlacements",void 0),N(this,"directions",void 0),N(this,"positiveColors",void 0),N(this,"negativeColors",void 0),N(this,"opacities",void 0),N(this,"textAlignments",void 0),N(this,"markers",void 0),this.positiveColors=s,this.negativeColors=a,this.data=r,this.columnAxes=o,this.valuePlacements=l,this.opacities=i,this.directions=n,this.textAlignments=c,this.markers=u,this.numberOfRows=Math.max(...r.map(g=>g.length)),this.numberOfColumns=r.length,this.columnMins=new Map,this.columnMaxs=new Map;for(var d=0;d<r.length;d+=1){var m=r[d];Tt(m)&&(this.columnMins.set(d,Math.min(...m)),this.columnMaxs.set(d,Math.max(...m)))}}get rowCount(){return this.numberOfRows}get columnCount(){return this.numberOfColumns}textForCell(r,o){var s;return"".concat((s=this.data[r])===null||s===void 0?void 0:s[o])}textForColumnHeader(r){return"".concat(r)}textAlignForCell(r,o){var s;return(s=this.textAlignments.get(r))!==null&&s!==void 0?s:kt}renderTypeForCell(r,o){return r<20||r%2===o%2?"dataBar":"text"}dataBarOptionsForCell(r,o){var s,a,l,i,n,c,u,d=or(this.columnMins,r),m=or(this.columnMaxs,r),g=(s=this.columnAxes.get(r))!==null&&s!==void 0?s:jt,v=(a=this.valuePlacements.get(r))!==null&&a!==void 0?a:Ct,b=this.opacities.get(r);b==null||b>1?b=1:b<0&&(b=0);var y=(l=this.directions.get(r))!==null&&l!==void 0?l:St,F=(i=this.positiveColors.get(r))!==null&&i!==void 0?i:yt,ae=(n=this.negativeColors.get(r))!==null&&n!==void 0?n:wt,H=Number((c=this.data[r])===null||c===void 0?void 0:c[o]),Y=H>=0?F:ae,Ce=(u=this.markers.get(r))!==null&&u!==void 0?u:[];return{columnMin:d,columnMax:m,axis:g,color:Y,valuePlacement:v,opacity:b,markers:Ce,direction:y,value:H}}}const It=Nt,Ae="hide-from-e2e-tests",xr="sample-section";function*ge(t,r){const o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",s=o.length;for(let a=t;a<=r;a+=1){const l=a%s;let i=String(Math.floor(a/s));i==="0"&&(i="");const n=o[l],c=`${n}${i}`,u=`${n.repeat(3)}${i}`;yield h.createElement(x,{key:c,textValue:u,children:u})}}function*Je(t,r={}){const o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",s=o.length,a=Object.keys(W);for(let l=0;l<t;l+=1){const i=l%s;let n=String(Math.floor(l/s));n==="0"&&(n="");const c=o[i],u=`${c}${n}`,d=r.icons===!0?a[l%a.length]:void 0,m=r.descriptions===!0?`Description ${u}`:void 0,g=d??`${c.repeat(3)}${n}`;yield{key:u,item:{key:(l+1)*100,content:g,textValue:g,description:m,icon:d}}}}function*Pr(t=1){for(;;)t=t*16807%2147483647,yield t/2147483647}function Et(t=1){const[r]=h.useState(()=>Pr(t));return h.useCallback(()=>{const o=r.next();if(o.done===!0)throw new Error("Random number generator unexpectedly finished");return o.value},[r])}function f(t,r=[]){const o=`${xr}-${t.toLocaleLowerCase().replaceAll(" ","-")}`,s=q(xr,...r);return{id:o,className:s}}function I(t,r=[]){const{id:o,className:s}=f(t,r);return{id:o,UNSAFE_className:s}}function k(){}class ue extends h.Component{static renderButtons(){return e.jsxs(e.Fragment,{children:[e.jsx("h5",{children:"Button Kinds"}),e.jsx("div",{...f("buttons-regular"),style:{padding:"1rem 0"},children:e.jsxs(C,{gap:"size-100",children:[e.jsx(p,{kind:"primary",onClick:k,children:"Primary"}),e.jsx(p,{kind:"secondary",onClick:k,children:"Secondary"}),e.jsx(p,{kind:"tertiary",onClick:k,children:"Tertiary"}),e.jsx(p,{kind:"success",onClick:k,children:"Success"}),e.jsx(p,{kind:"danger",onClick:k,children:"Danger"}),e.jsx(p,{kind:"inline",onClick:k,children:"Inline"}),e.jsx(p,{kind:"ghost",onClick:k,children:"Ghost"})]})})]})}static renderLinks(){const r={primary:"accent",secondary:"neutral",success:"positive",info:"info",warning:"notice",danger:"negative"};return e.jsxs("div",{...f("links"),style:{paddingTop:"1rem"},children:[e.jsx("h5",{children:"Links"}),e.jsx(C,{gap:"1rem",children:Object.entries(r).map(([o,s])=>e.jsxs("a",{className:`text-${o}`,children:[o," (",s,")"]},o))})]})}static renderSocketedButtons(){return e.jsxs("div",{...f("buttons-socketed"),children:[e.jsx("h5",{children:"Socketed Buttons (for linker)"}),e.jsx(le,{style:{marginBottom:"1rem",marginRight:"1rem"},onClick:k,children:"Unlinked"}),e.jsx(le,{style:{marginBottom:"1rem",marginRight:"1rem"},isLinked:!0,onClick:k,children:"Linked"}),e.jsx(le,{style:{marginBottom:"1rem",marginRight:"1rem"},isLinkedSource:!0,onClick:k,children:"Linked Source"}),e.jsx(le,{style:{marginBottom:"1rem",marginRight:"1rem"},isLinked:!0,isInvalid:!0,onClick:k,children:"Error"}),e.jsx(le,{style:{marginBottom:"1rem",marginRight:"1rem"},disabled:!0,onClick:k,children:"Disabled"})]})}constructor(r){super(r),this.state={toggle:!0}}renderInlineButtons(){const{toggle:r}=this.state;return e.jsxs("div",{...f("buttons-inline"),style:{padding:"1rem 0"},children:[e.jsx("h5",{children:"Inline Buttons"}),"Regular btn-inline:",e.jsx(p,{className:"mx-2",kind:"inline",icon:K,tooltip:"test",onClick:k}),"Toggle button (class active):",e.jsx(p,{className:"mx-2",onClick:()=>{this.setState({toggle:!r})},active:r,kind:"inline",icon:K,tooltip:"test"}),"Disabled:",e.jsx(p,{className:"mx-2",kind:"inline",disabled:!0,onClick:k,children:"Disabled"}),"With Text:",e.jsx(p,{className:"mx-2",kind:"inline",icon:K,onClick:k,children:e.jsx("span",{children:"Text Button"})}),e.jsx("br",{}),e.jsx("br",{}),e.jsx("span",{children:"btn-link-icon (no text):"}),e.jsx(p,{kind:"ghost",icon:K,tooltip:"test",onClick:k}),e.jsx("span",{className:"mx-2",children:"btn-link:"}),e.jsx(p,{kind:"ghost",onClick:k,children:"Text Button"}),e.jsx("span",{className:"mx-2",children:"btn-link (text w/ optional with icon):"}),e.jsx(p,{kind:"ghost",icon:K,onClick:k,children:"Text Button"})]})}render(){const r=ue.renderButtons(),o=this.renderInlineButtons(),s=ue.renderSocketedButtons(),a=ue.renderLinks();return e.jsxs("div",{children:[e.jsx("h2",{className:"ui-title",children:"Buttons"}),e.jsxs("div",{style:{padding:"1rem 0"},children:[r,o,s,a]})]})}}function Dt(){const t=Mr();hr.random=Et();const[r]=h.useState(()=>new hr(t));return e.jsxs("div",{...f("charts"),children:[e.jsx("h2",{className:"ui-title",children:"Chart"}),e.jsx("div",{style:{height:500},children:e.jsx($o,{model:r})})]})}const ze="2px solid var(--dh-color-notice-bg)",At={"--dh-color-black":"gray","--dh-color-white":"gray","--dh-color-border":"General","--dh-color-bg":"General","--dh-color-surface-bg":"General","--dh-color-fg":"General","--dh-color-content-bg":"General","--dh-color-subdued-content-bg":"General","--dh-color-dropshadow":"General","--dh-color-keyboard-selected-bg":"Misc","--dh-color-hover-border":"Misc","--dh-color-visual-positive":"Visual Status","--dh-color-visual-negative":"Visual Status","--dh-color-visual-notice":"Visual Status","--dh-color-visual-info":"Visual Status","--dh-color-gray-bg":"Default Background","--dh-color-red-bg":"Default Background","--dh-color-orange-bg":"Default Background","--dh-color-yellow-bg":"Default Background","--dh-color-chartreuse-bg":"Default Background","--dh-color-celery-bg":"Default Background","--dh-color-green-bg":"Default Background","--dh-color-seafoam-bg":"Default Background","--dh-color-cyan-bg":"Default Background","--dh-color-blue-bg":"Default Background","--dh-color-indigo-bg":"Default Background","--dh-color-purple-bg":"Default Background","--dh-color-fuchsia-bg":"Default Background","--dh-color-magenta-bg":"Default Background","--dh-color-editor-bg":"editor","--dh-color-editor-fg":"editor","--dh-color-editor-context-menu-bg":"menus","--dh-color-editor-context-menu-fg":"menus","--dh-color-editor-menu-selection-bg":"menus","--dh-color-grid-bg":"grid","--dh-color-grid-number-positive":"Data Types","--dh-color-grid-number-negative":"Data Types","--dh-color-grid-number-zero":"Data Types","--dh-color-grid-date":"Data Types","--dh-color-grid-string-null":"Data Types"},pr={"--dh-color-black":"","--dh-color-action-active-bg":"Action.active","--dh-color-action-down-bg":"Action:active","--dh-color-action-hover-bg":"Action:hover","--dh-color-action-active-hover-bg":"Action.active:hover","--dh-color-action-disabled-bg":"Action:disabled"},Mt={palette:{black:"gray",white:"gray"},editor:{line:"editor",comment:"code",string:"code",number:"code",delimiter:"code",identifier:"code",keyword:"code",operator:"code",storage:"code",predefined:"code",selection:"state",focus:"state"},chart:{axis:"Chart",bg:"Chart",grid:"Chart",plot:"Chart",title:"Chart",active:"Data",trend:"Data",area:"Data",range:"Data",line:"Deprecated"},grid:{data:"Data Bars",context:"Context Menu"},semantic:{},component:{}};function $t(t){const r=ve.parseRgba(ve.asRgbOrRgbaString(t)??"");if(r==null||r.a<.5)return"white";const{r:o,g:s,b:a}=r;return ve.getBrightness([o,s,a])>=128?"black":"white"}function Rt(t){const r=getComputedStyle(document.documentElement);return t.split(/[\n;]/g).map(s=>/^(?:\s{2}|:root\{)?(--dh-color-(?:[^:]+))/.exec(s)?.[1]).filter(s=>!!s).map(s=>{const a=r.getPropertyValue(s);return s==="--dh-color-chart-colorway"?ho(a??"").map(([i,n])=>a.substring(i,n+1)).map((i,n)=>({name:`${s}-${n}`,value:i})):{name:s,value:a}}).flat()}function re(t,r,o,s=At){const a=Mt[t];return Rt(r).reduce((n,{name:c,value:u})=>{if(/^--dh-color-true-(.*?)$/.test(c)||/^--dh-color-gray-(light|mid|dark)$/.test(c))return n;const d=/^--dh-color-([^-]+)(?:-([^-]+))?/.exec(c);let m=s[c]??d?.[o]??d?.[1]??"???";return m=a[m]??m,n[m]==null&&(n[m]=[]),c in pr&&n[m].push({isLabel:!0,name:pr[c],value:""}),/^--dh-color-gray-(light|mid|dark)$/.test(c)||n[m].push({name:c,value:u}),n},{})}function Lt(){const t=h.useRef(null);return h.useLayoutEffect(()=>{if(t.current==null)return;const r=getComputedStyle(t.current),{backgroundColor:o}=r;t.current.style.color=$t(o)},[]),t}function Pt(t,r){const[o,s]=h.useState();return h.useEffect(()=>{if(t.current==null)return;const a=getComputedStyle(t.current,r).getPropertyValue("content"),l=/"(--dh-color-.*?)[,"]/.exec(a)?.[1];if(l==null)return;const i=getComputedStyle(t.current).getPropertyValue(l);s(i)},[t,r]),o}function Me({className:t,children:r}){const o=Lt(),s=Pt(o,":after"),a=h.useMemo(()=>s!=null?{value:s}:null,[s]),l=a!=null&&a.value!=="";return e.jsxs("div",{ref:o,className:t,style:{border:l?void 0:ze},children:[l&&e.jsx(oe,{interactive:!0,children:e.jsx("div",{children:a.value})}),r]})}function _t(){const t=["100","200","300","400","500","600","700","800","850","8XX","900"].map(s=>e.jsx(Me,{className:q("swatch","gray-swatch",`gray-swatch-${s}`),children:s==="8XX"?"N/A":`Gray-${s}`},s)),r=["red","orange","yellow","green","blue","purple","white","black"].map(s=>e.jsx(Me,{className:q("swatch",`swatch-${s}`),children:s},s)),o=["content-bg","background","foreground","primary","primary-dark","secondary","secondary-hover","success","info","warning","danger","danger-hover"].map(s=>e.jsx(Me,{className:q("swatch",`swatch-${s}`),children:s},s));return e.jsxs("div",{...f("colors"),children:[e.jsx("h2",{className:"ui-title",children:"Colors"}),e.jsxs("div",{className:"row",children:[e.jsxs("div",{className:"col",children:[t,r]}),e.jsx("div",{className:"col",children:o}),e.jsx("div",{className:"col",children:e.jsx("p",{children:"This section is for legacy reference only. Use the css variable based semantic colors in the following sections. You should not be using colors defined in the theme color palette directly."})})]})]})}class Bt extends h.Component{constructor(r){super(r),this.makeContextMenuItems=this.makeContextMenuItems.bind(this)}makeContextMenuItems(r){const o=r!==void 0?` ${r}`:"";return[{title:`Show Alert${o}`,icon:qe,action:()=>{alert(`Alert${o}!`)},shortcut:new te({id:"STYLEGUIDE.SHOW_ALERT",name:"Show Alert",shortcut:[$.CTRL,R.A],macShortcut:[$.CMD,R.A]})},{title:`Log Message${o}`,icon:Ye,action:()=>{console.log(`Logging a message${o}!`)},shortcut:new te({id:"STYLEGUIDE.LOG_MESSAGE",name:"Log Message",shortcut:[$.CTRL,R.L],macShortcut:[$.CMD,R.L]})},{title:"Sub-menu",actions:()=>this.makeContextMenuItems((r??0)+1),order:3}].concat(new Array(10).fill({title:`Disabled Option${o}`,disabled:!0,order:2}))}render(){const r=this.makeContextMenuItems(),s=[{title:"Show Shortcuts",icon:Ar,action:()=>{alert("Show keyboard shortcuts!")},shortcut:new te({id:"STYLEGUIDE.SHOW_SHORTCUTS",name:"Show Shortcuts",shortcut:[$.CTRL,R.SLASH],macShortcut:[$.CMD,R.SLASH]}),group:fe.groups.global}].concat(r),a=()=>new Promise(l=>{setTimeout(()=>{l(r)},3e3)});return e.jsxs("div",{...f("context-menus"),children:[e.jsx("h2",{className:"ui-title",children:"Context Menu"}),e.jsxs(p,{kind:"primary",style:{cursor:"default",marginBottom:"1rem",marginRight:"1rem"},onClick:()=>{},children:["Right Click Me",e.jsx(fe,{actions:s})]}),e.jsxs(p,{kind:"tertiary",style:{cursor:"default",marginBottom:"1rem",marginRight:"1rem"},onClick:()=>{},children:["Right Click Me",e.jsx(fe,{actions:a})]})]})}}class Ft extends h.Component{constructor(r){super(r),this.sampleInput=me.createRef(),this.handleUpdateCheckboxMap=this.handleUpdateCheckboxMap.bind(this);const o=["Parent A",new Map([["Child 1",!0],["Child 2",!1]])],s=["Parent B",new Map([["Child 3",!0],["Child 4",!1],["Child 5",!0],["Child 6",!1]])],a=["Leaf Parent",!0];this.state={isShown:!1,checkBoxMap:new Map([o,s,a])}}handleUpdateCheckboxMap(r){this.setState({checkBoxMap:r})}renderChild(){return e.jsxs("div",{className:"p-3",children:[e.jsx("h4",{children:"Sample Child"}),e.jsxs("div",{className:"form-group",children:[e.jsxs("label",{htmlFor:"exampleInput1",children:["Input Label",e.jsx("input",{ref:this.sampleInput,type:"text",className:"form-control",id:"exampleInput1","aria-describedby":"emailHelp",placeholder:"Input Placeholder"})]}),e.jsx("small",{className:"form-text text-muted",children:"Help text for a form input"})]})]})}render(){const{isShown:r,checkBoxMap:o}=this.state;return e.jsxs("div",{...f("dialog"),children:[e.jsx("h2",{className:"ui-title",children:"Popover Dialog"}),e.jsx("p",{children:"Popover dialog that can contain interactive elements, can be set to self close on blur."}),e.jsxs(p,{kind:"primary",style:{marginBottom:"1rem",marginRight:"1rem"},onClick:()=>{r?this.setState({isShown:!1}):this.setState({isShown:!0})},children:["Open Dialog",e.jsx(wo,{options:{placement:"bottom"},isShown:r,onEntered:()=>{this.sampleInput.current&&this.sampleInput.current.focus()},onExited:()=>{this.setState({isShown:!1})},closeOnBlur:!0,interactive:!0,children:this.renderChild()})]}),e.jsx("p",{children:"The Hierarchical Checkbox Menu uses a popover dialog to display hierarchical groups of checkboxes."}),e.jsx(Lo,{menuText:"Checkbox Menu",valueMap:o,onUpdateValueMap:this.handleUpdateCheckboxMap})]})}}class Vt extends h.Component{constructor(r){super(r),this.state={isShown:!1}}render(){const r=[{title:"Show Alert",icon:qe,action:()=>{alert("Alert!")},shortcut:new te({id:"STYLEGUIDE.SHOW_ALERT",name:"Show Alert",shortcut:[$.CTRL,R.A],macShortcut:[$.CMD,R.A]})},{title:"Log Message",icon:Ye,action:()=>{console.log("Logging a message!")},shortcut:new te({id:"STYLEGUIDE.LOG_MESSAGE",name:"Log Message",shortcut:[$.CTRL,R.L],macShortcut:[$.CMD,R.L]})}],s=[{title:"Show Shortcuts",icon:Ar,action:()=>{alert("Show keyboard shortcuts!")},shortcut:new te({id:"STYLEGUIDE.SHOW_SHORTCUTS",name:"Show Shortcuts",shortcut:[$.CTRL,R.SLASH],macShortcut:[$.CMD,R.SLASH]}),group:fe.groups.global}].concat(r),{isShown:a}=this.state;return e.jsxs("div",{...f("dropdown-menus"),children:[e.jsx("h2",{className:"ui-title",children:"Dropdown Menu"}),e.jsx("p",{children:"A simple dropdown menu of actions, can open on click of parent container, or controlled by prop."}),e.jsx(p,{kind:"inline",className:"mx-2",icon:uo,onClick:()=>{},children:e.jsx(ir,{actions:s})}),e.jsxs(p,{kind:"primary",style:{marginRight:"1rem",minWidth:"165px"},onClick:()=>{a?this.setState({isShown:!1}):this.setState({isShown:!0})},children:["Menu Shown: ",a.toString()]}),e.jsxs("div",{ref:this.button,className:"btn btn-secondary disabled",style:{marginRight:"1rem"},children:["Shown using isShown",e.jsx(ir,{isShown:a,onMenuClosed:()=>{this.setState({isShown:!1})},actions:s})]})]})}}const Ot=`trades = db.t("LearnDeephaven", "StockTrades").where("Date=\`2017-08-25\`")\\
2
2
  .headBy(3, "Sym")\\
3
3
  .view("Sym", "Last")
4
4
 
@@ -213,4 +213,4 @@ simulation = shares30min.update("Values=(double[])ss.update(Sym, TargetPosition,
213
213
  `.repeat(100),a="MidError",l="SuperLongErrorMessageType";return e.jsxs("div",{...f("error-views"),children:[e.jsx("h2",{className:"ui-title",title:"Display error messages easily",children:"Error Views"}),e.jsx("h3",{children:"Expandable"}),e.jsxs("div",{className:"row",style:{maxHeight:500},children:[e.jsx("div",{className:"col",style:t,children:e.jsx(ee,{message:r})}),e.jsx("div",{className:"col",style:t,children:e.jsx(ee,{message:o,type:a})}),e.jsx("div",{className:"col",style:t,children:e.jsx(ee,{message:s,type:l})})]}),e.jsx("h3",{children:"Always expanded"}),e.jsxs("div",{className:"row",style:{maxHeight:500},children:[e.jsx("div",{className:"col",style:t,children:e.jsx(ee,{message:r,isExpanded:!0})}),e.jsx("div",{className:"col",style:t,children:e.jsx(ee,{message:o,type:a,isExpanded:!0})}),e.jsx("div",{className:"col",style:t,children:e.jsx(ee,{message:s,type:l,isExpanded:!0})})]})]})}const Tr={position:"sticky",justifyContent:"end",zIndex:1,UNSAFE_style:{float:"right"}};function ta(){const t=window.location.search.includes("isolateSection=true"),{themes:r}=$r(),o=r.length>1;return e.jsx("div",{tabIndex:-1,role:"main",children:e.jsxs("div",{className:"container style-guide-container",children:[t&&e.jsx("style",{children:`.${Ae}, .sample-section:not(${window.location.hash}), :not(.sample-section) > h2 {
214
214
  display: none;
215
215
  }`}),e.jsx(C,{justifyContent:"space-between",alignItems:"center",marginTop:"2rem",marginBottom:"1rem",children:e.jsx("h1",{style:{paddingTop:"2rem"},children:"Deephaven UI Components"})}),e.jsxs(C,{...Tr,UNSAFE_className:Ae,marginTop:-56,top:20,gap:10,alignItems:"end",children:[o?e.jsx(ot,{}):null,e.jsx(Bs,{})]}),e.jsx(C,{...Tr,UNSAFE_className:Ae,top:"calc(100vh - 40px)",marginTop:-32,marginEnd:o?-234:0,children:e.jsx(Fs,{})}),e.jsx(cs,{}),e.jsx(ie,{"data-menu-category":"Colors"}),e.jsx(_t,{}),e.jsx(Es,{}),e.jsx(ie,{"data-menu-category":"Layout"}),e.jsx(Us,{}),e.jsx(ie,{"data-menu-category":"Components"}),e.jsx(ue,{}),e.jsx(ls,{}),e.jsx(os,{}),e.jsx(ra,{}),e.jsx(Js,{}),e.jsx(ss,{}),e.jsx(ye,{}),e.jsx(is,{}),e.jsx(Ft,{}),e.jsx(as,{}),e.jsx(Bt,{}),e.jsx(Vt,{}),e.jsx(ps,{}),e.jsx(ns,{}),e.jsx(es,{}),e.jsx(Ht,{}),e.jsx(Zt,{}),e.jsx(Dt,{}),e.jsx(tt,{}),e.jsx(Hs,{}),e.jsx(ie,{"data-menu-category":"Spectrum Components"}),e.jsx(Ms,{}),e.jsx(ie,{"data-menu-category":"Spectrum Comparison"}),e.jsx(zs,{}),e.jsx(oa,{})]})})}function er(t){const{workspace:r,setWorkspace:o}=t;return h.useEffect(()=>{st.makeDefaultWorkspace({getLayouts:async()=>[],getLayout:async()=>({})}).then(o)},[o]),r!=null?e.jsx(ta,{}):null}er.propTypes={workspace:je.shape({}),setWorkspace:je.func.isRequired};er.defaultProps={workspace:null};const sa=t=>({workspace:Do(t)}),aa=no(sa,{setWorkspace:Eo})(er);function fa(){return et.register(new URL("./download/serviceWorker.js",window.location.href)),Ao.init({getWorker:()=>new yo}),window["__react-beautiful-dnd-disable-dev-warnings"]=!0,e.jsx(Go,{children:e.jsx(co,{store:Mo,children:e.jsx(aa,{})})})}export{fa as StyleGuideRoot,fa as default};
216
- //# sourceMappingURL=StyleGuideRoot-40ed19e6.js.map
216
+ //# sourceMappingURL=StyleGuideRoot-c695ce91.js.map