@deephaven/code-studio 0.78.0 → 0.78.1-beta.0

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 (48) hide show
  1. package/build/assets/{AppRoot-a0721f7d.js → AppRoot-fca146ac.js} +3 -3
  2. package/build/assets/{AppRoot-a0721f7d.js.map → AppRoot-fca146ac.js.map} +1 -1
  3. package/build/assets/{Chart-609f38ae.js → Chart-cc4009e9.js} +2 -2
  4. package/build/assets/{Chart-609f38ae.js.map → Chart-cc4009e9.js.map} +1 -1
  5. package/build/assets/{ControlType-67901931.js → ControlType-c2eab817.js} +3 -3
  6. package/build/assets/{ControlType-67901931.js.map → ControlType-c2eab817.js.map} +1 -1
  7. package/build/assets/{FontBootstrap-eaa77ddb.js → FontBootstrap-f4aeb187.js} +2 -2
  8. package/build/assets/{FontBootstrap-eaa77ddb.js.map → FontBootstrap-f4aeb187.js.map} +1 -1
  9. package/build/assets/{FormatterUtils-bbf85b6f.js → FormatterUtils-ccbe29ad.js} +2 -2
  10. package/build/assets/{FormatterUtils-bbf85b6f.js.map → FormatterUtils-ccbe29ad.js.map} +1 -1
  11. package/build/assets/{Grid-053d47b5.js → Grid-5eb6c7ab.js} +2 -2
  12. package/build/assets/{Grid-053d47b5.js.map → Grid-5eb6c7ab.js.map} +1 -1
  13. package/build/assets/{GridRenderer-213d9a53.js → GridRenderer-9c507b37.js} +2 -2
  14. package/build/assets/{GridRenderer-213d9a53.js.map → GridRenderer-9c507b37.js.map} +1 -1
  15. package/build/assets/{IrisGrid-29aa0bf3.js → IrisGrid-acffc547.js} +2 -2
  16. package/build/assets/{IrisGrid-29aa0bf3.js.map → IrisGrid-acffc547.js.map} +1 -1
  17. package/build/assets/{IrisGridModel-4156e9be.js → IrisGridModel-e8964281.js} +2 -2
  18. package/build/assets/{IrisGridModel-4156e9be.js.map → IrisGridModel-e8964281.js.map} +1 -1
  19. package/build/assets/{IrisGridShortcuts-4beba2fa.js → IrisGridShortcuts-548873c9.js} +2 -2
  20. package/build/assets/{IrisGridShortcuts-4beba2fa.js.map → IrisGridShortcuts-548873c9.js.map} +1 -1
  21. package/build/assets/{IrisGridThemeProvider-139d5cfc.js → IrisGridThemeProvider-75f58740.js} +2 -2
  22. package/build/assets/{IrisGridThemeProvider-139d5cfc.js.map → IrisGridThemeProvider-75f58740.js.map} +1 -1
  23. package/build/assets/{MarkdownEditor-bbda5f67.js → MarkdownEditor-c2afa20f.js} +2 -2
  24. package/build/assets/{MarkdownEditor-bbda5f67.js.map → MarkdownEditor-c2afa20f.js.map} +1 -1
  25. package/build/assets/{MarkdownNotebook-00d20d21.js → MarkdownNotebook-c1beb1ea.js} +2 -2
  26. package/build/assets/{MarkdownNotebook-00d20d21.js.map → MarkdownNotebook-c1beb1ea.js.map} +1 -1
  27. package/build/assets/{MissingPartitionError-9c75fd53.js → MissingPartitionError-3471d531.js} +2 -2
  28. package/build/assets/{MissingPartitionError-9c75fd53.js.map → MissingPartitionError-3471d531.js.map} +1 -1
  29. package/build/assets/Plot-2508ad48.js +2 -0
  30. package/build/assets/{Plot-d51efc86.js.map → Plot-2508ad48.js.map} +1 -1
  31. package/build/assets/{Plotly-2c25a6dd.js → Plotly-a6587bda.js} +2 -2
  32. package/build/assets/{Plotly-2c25a6dd.js.map → Plotly-a6587bda.js.map} +1 -1
  33. package/build/assets/{StyleGuideRoot-54ed0acb.js → StyleGuideRoot-fd175e8f.js} +2 -2
  34. package/build/assets/{StyleGuideRoot-54ed0acb.js.map → StyleGuideRoot-fd175e8f.js.map} +1 -1
  35. package/build/assets/{index-2973c573.js → index-02e9e100.js} +2 -2
  36. package/build/assets/{index-2973c573.js.map → index-02e9e100.js.map} +1 -1
  37. package/build/assets/{index-a5209bca.js → index-4eb25f74.js} +3 -3
  38. package/build/assets/{index-a5209bca.js.map → index-4eb25f74.js.map} +1 -1
  39. package/build/assets/{index-2230db10.js → index-9cdc2ec9.js} +2 -2
  40. package/build/assets/{index-2230db10.js.map → index-9cdc2ec9.js.map} +1 -1
  41. package/build/assets/plotly-ea9e9cd2.js +7 -0
  42. package/build/assets/{plotly-03962fb8.js.map → plotly-ea9e9cd2.js.map} +1 -1
  43. package/build/assets/{useUser-65a502db.js → useUser-1e6efca5.js} +2 -2
  44. package/build/assets/{useUser-65a502db.js.map → useUser-1e6efca5.js.map} +1 -1
  45. package/build/index.html +1 -1
  46. package/package.json +29 -29
  47. package/build/assets/Plot-d51efc86.js +0 -2
  48. package/build/assets/plotly-03962fb8.js +0 -7
@@ -1,4 +1,4 @@
1
- import{r as u,ag as x,K as q,I as e,av as C,M as xe,_ as Er,V as ye,L as S,a7 as R,U as sr,b9 as Hr,ax as B,bu as Dr,a5 as Gr,a6 as V,a8 as zr,bv as Wr,a9 as Kr,aa as Ye,ac as qr,ad as w,aW as Yr,bw as Oe,aV as X,aq as Xr,ab as Zr,aT as Ue,ah as Ar,bx as He,aL as Qr,aN as Jr,ai as eo,by as ro,bz as oo,bA as to,bB as Z,bC as so,bD as Te,bE as D,aE as ao,bF as lo,bG as no,b7 as io,bH as co,bI as ke,Q as ho,a4 as uo}from"./vendor-17185c69.js";import{aV as ar,aW as W,aX as K,aL as ge,a2 as mo,aY as Xe,aZ as Ze,a_ as Mr,aE as go,a$ as lr,F as nr,b0 as ir,I as Ge,b1 as xo,b2 as vo,K as po,b3 as fo,b4 as bo,aH as cr,b5 as ze,am as jo,f as yo,b6 as wo}from"./index-2973c573.js";import{W as Co}from"./monaco-b5248072.js";import{f as Ce,d as $r,m as Q,B as So,S as ne,L as To,c as Ne,I as ko,R as Qe,a as _}from"./IrisGridModel-4156e9be.js";import{B as f,u as Rr,s as te,q as se,aU as M,K as $,al as be,aj as No,J as dr,cC as hr,Q as Io,C as P,aY as fe,S as je,aQ as Eo,am as Do,d as ur,a_ as Lr,A as mr,bx as J,cD as Ao,cE as Mo,by as $o,ay as Ro,a7 as Lo,aE as Po,w as _o}from"./ControlType-67901931.js";import{M as gr,e as Bo,A as Vo,T as Fo,D as Oo,C as Uo,d as Ho,i as Go,V as I,H as Je,h as zo,P as Ie,L as Ee,f as Wo,E as ee,k as Ko}from"./FontBootstrap-eaa77ddb.js";import{G as ae,T as qo}from"./Grid-053d47b5.js";import{a1 as Pr,O as A,l as We,m as Yo,w as Xo,n as he,P as xr,x as Zo,r as Qo,T as j,g as Jo,S as G,v as et,Y as rt,L as ot}from"./GridRenderer-213d9a53.js";import{a as vr,D as tt}from"./IrisGridShortcuts-4beba2fa.js";import{N as st,T as at,b as lt}from"./useUser-65a502db.js";import{L as nt}from"./AppRoot-a0721f7d.js";import"./helpers-de833af9.js";function pr(t,r,o,s,a,l,n){try{var i=t[l](n),c=i.value}catch(h){o(h);return}i.done?r(c):Promise.resolve(c).then(s,a)}function De(t){return function(){var r=this,o=arguments;return new Promise(function(s,a){var l=t.apply(r,o);function n(c){pr(l,s,a,n,i,"next",c)}function i(c){pr(l,s,a,n,i,"throw",c)}n(void 0)})}}function U(t,r,o){return r=it(r),r in t?Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[r]=o,t}function it(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 dt extends Ce{constructor(){var{rowCount:r=1e9,columnCount:o=100,floatingTopRowCount:s=0,floatingBottomRowCount:a=0,floatingLeftColumnCount:l=0,floatingRightColumnCount:n=0,isEditable:i=!1,editedData:c=[]}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};super(),U(this,"numRows",void 0),U(this,"numColumns",void 0),U(this,"floatingTop",void 0),U(this,"floatingBottom",void 0),U(this,"floatingLeft",void 0),U(this,"floatingRight",void 0),U(this,"editable",void 0),U(this,"editedData",void 0),this.numRows=r,this.numColumns=o,this.floatingTop=s,this.floatingBottom=a,this.floatingLeft=l,this.floatingRight=n,this.editable=i,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 De(function*(){a.editedData[r]==null&&(a.editedData[r]=[]),a.editedData[r][o]="".concat(s)})()}setValueForRanges(r,o){var s=this;return De(function*(){$r.forEachCell(r,(a,l)=>{s.setValueForCell(a,l,o)})})()}setValues(r){var o=this;return De(function*(){for(var s=0;s<r.length;s+=1){var a,l,n=r[s];o.setValueForCell((a=n.column)!==null&&a!==void 0?a:n.x,(l=n.row)!==null&&l!==void 0?l:n.y,n.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 er=dt;function T(t,r,o){return r=ht(r),r in t?Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[r]=o,t}function ht(t){var r=ut(t,"string");return typeof r=="symbol"?r:String(r)}function ut(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 E extends er{constructor(){var{rowCount:r=E.DEFAULT_ROW_COUNT,columnCount:o=E.DEFAULT_COLUMN_COUNT,children:s=new Map,childRowCount:a=Math.ceil(Math.max(E.MIN_CHILD_ROW_COUNT,r*E.DEFAULT_CHILD_ROW_COUNT_FACTOR)),maxDepth:l=E.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",Q((n,i)=>{for(var c=null,h=i,d=[...n].sort((y,F)=>y[0]-F[0]),m=0;m<d.length;m+=1){var[g,v]=d[m];if(h<=g)break;var b=v.rowCount;if(h<=g+b){c=g,h=h-g-1;break}h-=b}return{key:c,offsetRow:h}})),T(this,"getCachedTextForRowHeader",Q((n,i)=>{var{key:c,offsetRow:h}=this.getCachedModelRowOffset(n,i);if(c!=null){var d=n.get(c);if(d!==void 0)return"".concat(c,".").concat(d.textForRowHeader(h))}return"".concat(h)})),T(this,"getCachedTextForCell",Q((n,i,c)=>{var{key:h,offsetRow:d}=this.getCachedModelRowOffset(n,c);if(h!=null){var m=n.get(h);if(m!==void 0)return"".concat(h,".").concat(m.textForCell(i,d))}return"".concat(i,",").concat(d)})),T(this,"getCachedIsRowExpandable",Q((n,i,c)=>{var h=this.getCachedDepthForRow(n,i);return h<c})),T(this,"getCachedIsRowExpanded",Q((n,i)=>{var{key:c,offsetRow:h}=this.getCachedModelRowOffset(n,i);if(c!=null){var d=n.get(c);if(d!==void 0)return d.isRowExpanded(h)}return n.has(h)})),T(this,"getCachedDepthForRow",Q((n,i)=>{var{key:c,offsetRow:h}=this.getCachedModelRowOffset(n,i);if(c!=null){var d=n.get(c);if(d!==void 0)return d.depthForRow(h)+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),n=new Map(this.children);if(a!=null){var i=this.children.get(a);if(i!==void 0){var{rowCount:c}=i;i.setRowExpanded(l,o,s),this.numRows+=i.rowCount-c}}else if(o){var d=new E({rowCount:this.childRowCount,columnCount:this.numColumns});n.set(l,d),this.numRows+=d.rowCount}else{var h=n.get(l);h!==void 0&&(this.numRows-=h.rowCount,n.delete(l))}this.children=n}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(E,"DEFAULT_ROW_COUNT",1e9);T(E,"DEFAULT_COLUMN_COUNT",100);T(E,"DEFAULT_CHILD_ROW_COUNT_FACTOR",.01);T(E,"MIN_CHILD_ROW_COUNT",10);T(E,"MAX_DEPTH",10);const rr=E;function Ae(t,r,o){return r=mt(r),r in t?Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[r]=o,t}function mt(t){var r=gt(t,"string");return typeof r=="symbol"?r:String(r)}function gt(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 xt extends Ce{constructor(r,o){var s;super(),Ae(this,"data",void 0),Ae(this,"columnHeaders",void 0),Ae(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 vt=xt;function Me(t,r,o){return r=pt(r),r in t?Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[r]=o,t}function pt(t){var r=ft(t,"string");return typeof r=="symbol"?r:String(r)}function ft(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 bt extends Ce{constructor(r,o){super(),Me(this,"numberOfColumns",void 0),Me(this,"numberOfRows",void 0),Me(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,n,i,c,h,d=o-((s=(a=this.viewportData)===null||a===void 0?void 0:a.rowOffset)!==null&&s!==void 0?s:0),m=r-((l=(n=this.viewportData)===null||n===void 0?void 0:n.columnOffset)!==null&&l!==void 0?l:0);return"".concat((i=(c=this.viewportData)===null||c===void 0||(h=c.data[d])===null||h===void 0?void 0:h[m])!==null&&i!==void 0?i:"")}textForColumnHeader(r){return"".concat(r)}textForRowHeader(r){return"".concat(r)}}const jt=bt;function k(t,r,o){return r=yt(r),r in t?Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[r]=o,t}function yt(t){var r=wt(t,"string");return typeof r=="symbol"?r:String(r)}function wt(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 Ct="proportional",St=Pr.positiveBarColor,Tt=Pr.negativeBarColor,kt="beside",Nt="LTR",It="right";function Et(t){return Array.isArray(t)&&t.every(r=>typeof r=="number")}class Dt extends Ce{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,n=arguments.length>5&&arguments[5]!==void 0?arguments[5]:new Map,i=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new Map,c=arguments.length>7&&arguments[7]!==void 0?arguments[7]:new Map,h=arguments.length>8&&arguments[8]!==void 0?arguments[8]:new Map;super(),k(this,"numberOfColumns",void 0),k(this,"numberOfRows",void 0),k(this,"data",void 0),k(this,"columnMins",void 0),k(this,"columnMaxs",void 0),k(this,"columnAxes",void 0),k(this,"valuePlacements",void 0),k(this,"directions",void 0),k(this,"positiveColors",void 0),k(this,"negativeColors",void 0),k(this,"opacities",void 0),k(this,"textAlignments",void 0),k(this,"markers",void 0),this.positiveColors=s,this.negativeColors=a,this.data=r,this.columnAxes=o,this.valuePlacements=l,this.opacities=n,this.directions=i,this.textAlignments=c,this.markers=h,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];Et(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:It}renderTypeForCell(r,o){return r<20||r%2===o%2?"dataBar":"text"}dataBarOptionsForCell(r,o){var s,a,l,n,i,c,h,d=ar(this.columnMins,r),m=ar(this.columnMaxs,r),g=(s=this.columnAxes.get(r))!==null&&s!==void 0?s:Ct,v=(a=this.valuePlacements.get(r))!==null&&a!==void 0?a:kt,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:Nt,F=(n=this.positiveColors.get(r))!==null&&n!==void 0?n:St,le=(i=this.negativeColors.get(r))!==null&&i!==void 0?i:Tt,H=Number((c=this.data[r])===null||c===void 0?void 0:c[o]),Y=H>=0?F:le,Se=(h=this.markers.get(r))!==null&&h!==void 0?h:[];return{columnMin:d,columnMax:m,axis:g,color:Y,valuePlacement:v,opacity:b,markers:Se,direction:y,value:H}}}const At=Dt,$e="hide-from-e2e-tests",fr="sample-section";function*ve(t,r){const o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",s=o.length;for(let a=t;a<=r;a+=1){const l=a%s;let n=String(Math.floor(a/s));n==="0"&&(n="");const i=o[l],c=`${i}${n}`,h=`${i.repeat(3)}${n}`;yield u.createElement(x,{key:c,textValue:h,children:h})}}function*or(t,r={}){const o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",s=o.length,a=Object.keys(W);for(let l=0;l<t;l+=1){const n=l%s;let i=String(Math.floor(l/s));i==="0"&&(i="");const c=o[n],h=`${c}${i}`,d=r.icons===!0?a[l%a.length]:void 0,m=r.descriptions===!0?`Description ${h}`:void 0,g=d??`${c.repeat(3)}${i}`;yield{key:h,item:{key:(l+1)*100,content:g,textValue:g,description:m,icon:d}}}}function*_r(t=1){for(;;)t=t*16807%2147483647,yield t/2147483647}function Mt(t=1){const[r]=u.useState(()=>_r(t));return u.useCallback(()=>{const o=r.next();if(o.done===!0)throw new Error("Random number generator unexpectedly finished");return o.value},[r])}function p(t,r=[]){const o=`${fr}-${t.toLocaleLowerCase().replaceAll(" ","-")}`,s=q(fr,...r);return{id:o,className:s}}function N(t,r=[]){const{id:o,className:s}=p(t,r);return{id:o,UNSAFE_className:s}}function L(){}class oe extends u.Component{static renderButtonBrand(r,o){const s=r.length?`btn-${r}-${o}`:`btn-${o}`;return e.jsx(So,{className:s,style:{marginBottom:"1rem",marginRight:"1rem"},children:o},o)}static renderButtons(r){const o=["primary","secondary","success","warning","danger","info"].map(s=>oe.renderButtonBrand(r,s));return e.jsxs("div",{...p(`buttons-${r.length?"outline":"regular"}`),children:[e.jsx("h5",{children:r.length?"Outline":"Regular"}),o]},r)}static renderLinks(){const r={primary:"accent",secondary:"neutral",success:"positive",info:"info",warning:"notice",danger:"negative"};return e.jsxs("div",{...p("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",{...p("buttons-socketed"),children:[e.jsx("h5",{children:"Socketed Buttons (for linker)"}),e.jsx(ne,{style:{marginBottom:"1rem",marginRight:"1rem"},onClick:L,children:"Unlinked"}),e.jsx(ne,{style:{marginBottom:"1rem",marginRight:"1rem"},isLinked:!0,onClick:L,children:"Linked"}),e.jsx(ne,{style:{marginBottom:"1rem",marginRight:"1rem"},isLinkedSource:!0,onClick:L,children:"Linked Source"}),e.jsx(ne,{style:{marginBottom:"1rem",marginRight:"1rem"},isLinked:!0,isInvalid:!0,onClick:L,children:"Error"}),e.jsx(ne,{style:{marginBottom:"1rem",marginRight:"1rem"},disabled:!0,onClick:L,children:"Disabled"})]})}constructor(r){super(r),this.state={toggle:!0}}renderInlineButtons(){const{toggle:r}=this.state;return e.jsxs("div",{...p("buttons-inline"),style:{padding:"1rem 0"},children:[e.jsx("h5",{children:"Inline Buttons"}),"Regular btn-inline:",e.jsx(f,{className:"mx-2",kind:"inline",icon:K,tooltip:"test",onClick:L}),"Toggle button (class active):",e.jsx(f,{className:"mx-2",onClick:()=>{this.setState({toggle:!r})},active:r,kind:"inline",icon:K,tooltip:"test"}),"Disabled:",e.jsx(f,{className:"mx-2",kind:"inline",disabled:!0,onClick:L,children:"Disabled"}),"With Text:",e.jsx(f,{className:"mx-2",kind:"inline",icon:K,onClick:L,children:e.jsx("span",{children:"Text Button"})}),e.jsx("br",{}),e.jsx("br",{}),e.jsx("span",{children:"btn-link-icon (no text):"}),e.jsx(f,{kind:"ghost",icon:K,tooltip:"test",onClick:L}),e.jsx("span",{className:"mx-2",children:"btn-link:"}),e.jsx(f,{kind:"ghost",onClick:L,children:"Text Button"}),e.jsx("span",{className:"mx-2",children:"btn-link (text w/ optional with icon):"}),e.jsx(f,{kind:"ghost",icon:K,onClick:L,children:"Text Button"})]})}render(){const r=["","outline"].map(l=>oe.renderButtons(l)),o=this.renderInlineButtons(),s=oe.renderSocketedButtons(),a=oe.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 $t(){const t=Rr();gr.random=Mt();const[r]=u.useState(()=>new gr(t));return e.jsxs("div",{...p("charts"),children:[e.jsx("h2",{className:"ui-title",children:"Chart"}),e.jsx("div",{style:{height:500},children:e.jsx(To,{model:r})})]})}const Ke="2px solid var(--dh-color-notice-bg)",Rt={"--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"},br={"--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"},Lt={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 ue(t){const r=ge.parseRgba(ge.asRgbOrRgbaString(t)??"");if(r==null||r.a<.5)return"white";const{r:o,g:s,b:a}=r;return ge.getBrightness([o,s,a])>=128?"black":"white"}function Pt(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"?mo(a??"").map(([n,i])=>a.substring(n,i+1)).map((n,i)=>({name:`${s}-${i}`,value:n})):{name:s,value:a}}).flat()}function re(t,r,o,s=Rt){const a=Lt[t];return Pt(r).reduce((i,{name:c,value:h})=>{if(/^--dh-color-true-(.*?)$/.test(c)||/^--dh-color-gray-(light|mid|dark)$/.test(c))return i;const d=/^--dh-color-([^-]+)(?:-([^-]+))?/.exec(c);let m=s[c]??d?.[o]??d?.[1]??"???";return m=a[m]??m,i[m]==null&&(i[m]=[]),c in br&&i[m].push({isLabel:!0,name:br[c],value:""}),/^--dh-color-gray-(light|mid|dark)$/.test(c)||i[m].push({name:c,value:h}),i},{})}function _t(){const t=u.useRef(null);return u.useLayoutEffect(()=>{if(t.current==null)return;const r=getComputedStyle(t.current),{backgroundColor:o}=r;t.current.style.color=ue(o)},[]),t}function Bt(t,r){const[o,s]=u.useState();return u.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 n=getComputedStyle(t.current).getPropertyValue(l);s(n)},[t,r]),o}function Re({className:t,children:r}){const o=_t(),s=Bt(o,":after"),a=u.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:Ke},children:[l&&e.jsx(te,{interactive:!0,children:e.jsx("div",{children:a.value})}),r]})}function Vt(){const t=["100","200","300","400","500","600","700","800","850","8XX","900"].map(s=>e.jsx(Re,{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(Re,{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(Re,{className:q("swatch",`swatch-${s}`),children:s},s));return e.jsxs("div",{...p("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 Ft extends u.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:Xe,action:()=>{alert(`Alert${o}!`)},shortcut:new se({id:"STYLEGUIDE.SHOW_ALERT",name:"Show Alert",shortcut:[M.CTRL,$.A],macShortcut:[M.CMD,$.A]})},{title:`Log Message${o}`,icon:Ze,action:()=>{console.log(`Logging a message${o}!`)},shortcut:new se({id:"STYLEGUIDE.LOG_MESSAGE",name:"Log Message",shortcut:[M.CTRL,$.L],macShortcut:[M.CMD,$.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:Mr,action:()=>{alert("Show keyboard shortcuts!")},shortcut:new se({id:"STYLEGUIDE.SHOW_SHORTCUTS",name:"Show Shortcuts",shortcut:[M.CTRL,$.SLASH],macShortcut:[M.CMD,$.SLASH]}),group:be.groups.global}].concat(r),a=()=>new Promise(l=>{setTimeout(()=>{l(r)},3e3)});return e.jsxs("div",{...p("context-menus"),children:[e.jsx("h2",{className:"ui-title",children:"Context Menu"}),e.jsxs(f,{kind:"primary",style:{cursor:"default",marginBottom:"1rem",marginRight:"1rem"},onClick:()=>{},children:["Right Click Me",e.jsx(be,{actions:s})]}),e.jsxs(f,{kind:"tertiary",style:{cursor:"default",marginBottom:"1rem",marginRight:"1rem"},onClick:()=>{},children:["Right Click Me",e.jsx(be,{actions:a})]})]})}}class Ot extends u.Component{constructor(r){super(r),this.sampleInput=xe.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",{...p("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(f,{kind:"primary",style:{marginBottom:"1rem",marginRight:"1rem"},onClick:()=>{r?this.setState({isShown:!1}):this.setState({isShown:!0})},children:["Open Dialog",e.jsx(No,{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(Bo,{menuText:"Checkbox Menu",valueMap:o,onUpdateValueMap:this.handleUpdateCheckboxMap})]})}}class Ut extends u.Component{constructor(r){super(r),this.state={isShown:!1}}render(){const r=[{title:"Show Alert",icon:Xe,action:()=>{alert("Alert!")},shortcut:new se({id:"STYLEGUIDE.SHOW_ALERT",name:"Show Alert",shortcut:[M.CTRL,$.A],macShortcut:[M.CMD,$.A]})},{title:"Log Message",icon:Ze,action:()=>{console.log("Logging a message!")},shortcut:new se({id:"STYLEGUIDE.LOG_MESSAGE",name:"Log Message",shortcut:[M.CTRL,$.L],macShortcut:[M.CMD,$.L]})}],s=[{title:"Show Shortcuts",icon:Mr,action:()=>{alert("Show keyboard shortcuts!")},shortcut:new se({id:"STYLEGUIDE.SHOW_SHORTCUTS",name:"Show Shortcuts",shortcut:[M.CTRL,$.SLASH],macShortcut:[M.CMD,$.SLASH]}),group:be.groups.global}].concat(r),{isShown:a}=this.state;return e.jsxs("div",{...p("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(f,{kind:"inline",className:"mx-2",icon:go,onClick:()=>{},children:e.jsx(dr,{actions:s})}),e.jsxs(f,{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(dr,{isShown:a,onMenuClosed:()=>{this.setState({isShown:!1})},actions:s})]})]})}}const Ht=`trades = db.t("LearnDeephaven", "StockTrades").where("Date=\`2017-08-25\`")\\
1
+ import{r as u,ag as x,K as q,I as e,av as C,M as xe,_ as Er,V as ye,L as S,a7 as R,U as sr,b9 as Hr,ax as B,bu as Dr,a5 as Gr,a6 as V,a8 as zr,bv as Wr,a9 as Kr,aa as Ye,ac as qr,ad as w,aW as Yr,bw as Oe,aV as X,aq as Xr,ab as Zr,aT as Ue,ah as Ar,bx as He,aL as Qr,aN as Jr,ai as eo,by as ro,bz as oo,bA as to,bB as Z,bC as so,bD as Te,bE as D,aE as ao,bF as lo,bG as no,b7 as io,bH as co,bI as ke,Q as ho,a4 as uo}from"./vendor-17185c69.js";import{aV as ar,aW as W,aX as K,aL as ge,a2 as mo,aY as Xe,aZ as Ze,a_ as Mr,aE as go,a$ as lr,F as nr,b0 as ir,I as Ge,b1 as xo,b2 as vo,K as po,b3 as fo,b4 as bo,aH as cr,b5 as ze,am as jo,f as yo,b6 as wo}from"./index-02e9e100.js";import{W as Co}from"./monaco-b5248072.js";import{f as Ce,d as $r,m as Q,B as So,S as ne,L as To,c as Ne,I as ko,R as Qe,a as _}from"./IrisGridModel-e8964281.js";import{B as f,u as Rr,s as te,q as se,aU as M,K as $,al as be,aj as No,J as dr,cC as hr,Q as Io,C as P,aY as fe,S as je,aQ as Eo,am as Do,d as ur,a_ as Lr,A as mr,bx as J,cD as Ao,cE as Mo,by as $o,ay as Ro,a7 as Lo,aE as Po,w as _o}from"./ControlType-c2eab817.js";import{M as gr,e as Bo,A as Vo,T as Fo,D as Oo,C as Uo,d as Ho,i as Go,V as I,H as Je,h as zo,P as Ie,L as Ee,f as Wo,E as ee,k as Ko}from"./FontBootstrap-f4aeb187.js";import{G as ae,T as qo}from"./Grid-5eb6c7ab.js";import{a1 as Pr,O as A,l as We,m as Yo,w as Xo,n as he,P as xr,x as Zo,r as Qo,T as j,g as Jo,S as G,v as et,Y as rt,L as ot}from"./GridRenderer-9c507b37.js";import{a as vr,D as tt}from"./IrisGridShortcuts-548873c9.js";import{N as st,T as at,b as lt}from"./useUser-1e6efca5.js";import{L as nt}from"./AppRoot-fca146ac.js";import"./helpers-de833af9.js";function pr(t,r,o,s,a,l,n){try{var i=t[l](n),c=i.value}catch(h){o(h);return}i.done?r(c):Promise.resolve(c).then(s,a)}function De(t){return function(){var r=this,o=arguments;return new Promise(function(s,a){var l=t.apply(r,o);function n(c){pr(l,s,a,n,i,"next",c)}function i(c){pr(l,s,a,n,i,"throw",c)}n(void 0)})}}function U(t,r,o){return r=it(r),r in t?Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[r]=o,t}function it(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 dt extends Ce{constructor(){var{rowCount:r=1e9,columnCount:o=100,floatingTopRowCount:s=0,floatingBottomRowCount:a=0,floatingLeftColumnCount:l=0,floatingRightColumnCount:n=0,isEditable:i=!1,editedData:c=[]}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};super(),U(this,"numRows",void 0),U(this,"numColumns",void 0),U(this,"floatingTop",void 0),U(this,"floatingBottom",void 0),U(this,"floatingLeft",void 0),U(this,"floatingRight",void 0),U(this,"editable",void 0),U(this,"editedData",void 0),this.numRows=r,this.numColumns=o,this.floatingTop=s,this.floatingBottom=a,this.floatingLeft=l,this.floatingRight=n,this.editable=i,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 De(function*(){a.editedData[r]==null&&(a.editedData[r]=[]),a.editedData[r][o]="".concat(s)})()}setValueForRanges(r,o){var s=this;return De(function*(){$r.forEachCell(r,(a,l)=>{s.setValueForCell(a,l,o)})})()}setValues(r){var o=this;return De(function*(){for(var s=0;s<r.length;s+=1){var a,l,n=r[s];o.setValueForCell((a=n.column)!==null&&a!==void 0?a:n.x,(l=n.row)!==null&&l!==void 0?l:n.y,n.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 er=dt;function T(t,r,o){return r=ht(r),r in t?Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[r]=o,t}function ht(t){var r=ut(t,"string");return typeof r=="symbol"?r:String(r)}function ut(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 E extends er{constructor(){var{rowCount:r=E.DEFAULT_ROW_COUNT,columnCount:o=E.DEFAULT_COLUMN_COUNT,children:s=new Map,childRowCount:a=Math.ceil(Math.max(E.MIN_CHILD_ROW_COUNT,r*E.DEFAULT_CHILD_ROW_COUNT_FACTOR)),maxDepth:l=E.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",Q((n,i)=>{for(var c=null,h=i,d=[...n].sort((y,F)=>y[0]-F[0]),m=0;m<d.length;m+=1){var[g,v]=d[m];if(h<=g)break;var b=v.rowCount;if(h<=g+b){c=g,h=h-g-1;break}h-=b}return{key:c,offsetRow:h}})),T(this,"getCachedTextForRowHeader",Q((n,i)=>{var{key:c,offsetRow:h}=this.getCachedModelRowOffset(n,i);if(c!=null){var d=n.get(c);if(d!==void 0)return"".concat(c,".").concat(d.textForRowHeader(h))}return"".concat(h)})),T(this,"getCachedTextForCell",Q((n,i,c)=>{var{key:h,offsetRow:d}=this.getCachedModelRowOffset(n,c);if(h!=null){var m=n.get(h);if(m!==void 0)return"".concat(h,".").concat(m.textForCell(i,d))}return"".concat(i,",").concat(d)})),T(this,"getCachedIsRowExpandable",Q((n,i,c)=>{var h=this.getCachedDepthForRow(n,i);return h<c})),T(this,"getCachedIsRowExpanded",Q((n,i)=>{var{key:c,offsetRow:h}=this.getCachedModelRowOffset(n,i);if(c!=null){var d=n.get(c);if(d!==void 0)return d.isRowExpanded(h)}return n.has(h)})),T(this,"getCachedDepthForRow",Q((n,i)=>{var{key:c,offsetRow:h}=this.getCachedModelRowOffset(n,i);if(c!=null){var d=n.get(c);if(d!==void 0)return d.depthForRow(h)+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),n=new Map(this.children);if(a!=null){var i=this.children.get(a);if(i!==void 0){var{rowCount:c}=i;i.setRowExpanded(l,o,s),this.numRows+=i.rowCount-c}}else if(o){var d=new E({rowCount:this.childRowCount,columnCount:this.numColumns});n.set(l,d),this.numRows+=d.rowCount}else{var h=n.get(l);h!==void 0&&(this.numRows-=h.rowCount,n.delete(l))}this.children=n}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(E,"DEFAULT_ROW_COUNT",1e9);T(E,"DEFAULT_COLUMN_COUNT",100);T(E,"DEFAULT_CHILD_ROW_COUNT_FACTOR",.01);T(E,"MIN_CHILD_ROW_COUNT",10);T(E,"MAX_DEPTH",10);const rr=E;function Ae(t,r,o){return r=mt(r),r in t?Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[r]=o,t}function mt(t){var r=gt(t,"string");return typeof r=="symbol"?r:String(r)}function gt(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 xt extends Ce{constructor(r,o){var s;super(),Ae(this,"data",void 0),Ae(this,"columnHeaders",void 0),Ae(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 vt=xt;function Me(t,r,o){return r=pt(r),r in t?Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[r]=o,t}function pt(t){var r=ft(t,"string");return typeof r=="symbol"?r:String(r)}function ft(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 bt extends Ce{constructor(r,o){super(),Me(this,"numberOfColumns",void 0),Me(this,"numberOfRows",void 0),Me(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,n,i,c,h,d=o-((s=(a=this.viewportData)===null||a===void 0?void 0:a.rowOffset)!==null&&s!==void 0?s:0),m=r-((l=(n=this.viewportData)===null||n===void 0?void 0:n.columnOffset)!==null&&l!==void 0?l:0);return"".concat((i=(c=this.viewportData)===null||c===void 0||(h=c.data[d])===null||h===void 0?void 0:h[m])!==null&&i!==void 0?i:"")}textForColumnHeader(r){return"".concat(r)}textForRowHeader(r){return"".concat(r)}}const jt=bt;function k(t,r,o){return r=yt(r),r in t?Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[r]=o,t}function yt(t){var r=wt(t,"string");return typeof r=="symbol"?r:String(r)}function wt(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 Ct="proportional",St=Pr.positiveBarColor,Tt=Pr.negativeBarColor,kt="beside",Nt="LTR",It="right";function Et(t){return Array.isArray(t)&&t.every(r=>typeof r=="number")}class Dt extends Ce{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,n=arguments.length>5&&arguments[5]!==void 0?arguments[5]:new Map,i=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new Map,c=arguments.length>7&&arguments[7]!==void 0?arguments[7]:new Map,h=arguments.length>8&&arguments[8]!==void 0?arguments[8]:new Map;super(),k(this,"numberOfColumns",void 0),k(this,"numberOfRows",void 0),k(this,"data",void 0),k(this,"columnMins",void 0),k(this,"columnMaxs",void 0),k(this,"columnAxes",void 0),k(this,"valuePlacements",void 0),k(this,"directions",void 0),k(this,"positiveColors",void 0),k(this,"negativeColors",void 0),k(this,"opacities",void 0),k(this,"textAlignments",void 0),k(this,"markers",void 0),this.positiveColors=s,this.negativeColors=a,this.data=r,this.columnAxes=o,this.valuePlacements=l,this.opacities=n,this.directions=i,this.textAlignments=c,this.markers=h,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];Et(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:It}renderTypeForCell(r,o){return r<20||r%2===o%2?"dataBar":"text"}dataBarOptionsForCell(r,o){var s,a,l,n,i,c,h,d=ar(this.columnMins,r),m=ar(this.columnMaxs,r),g=(s=this.columnAxes.get(r))!==null&&s!==void 0?s:Ct,v=(a=this.valuePlacements.get(r))!==null&&a!==void 0?a:kt,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:Nt,F=(n=this.positiveColors.get(r))!==null&&n!==void 0?n:St,le=(i=this.negativeColors.get(r))!==null&&i!==void 0?i:Tt,H=Number((c=this.data[r])===null||c===void 0?void 0:c[o]),Y=H>=0?F:le,Se=(h=this.markers.get(r))!==null&&h!==void 0?h:[];return{columnMin:d,columnMax:m,axis:g,color:Y,valuePlacement:v,opacity:b,markers:Se,direction:y,value:H}}}const At=Dt,$e="hide-from-e2e-tests",fr="sample-section";function*ve(t,r){const o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",s=o.length;for(let a=t;a<=r;a+=1){const l=a%s;let n=String(Math.floor(a/s));n==="0"&&(n="");const i=o[l],c=`${i}${n}`,h=`${i.repeat(3)}${n}`;yield u.createElement(x,{key:c,textValue:h,children:h})}}function*or(t,r={}){const o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",s=o.length,a=Object.keys(W);for(let l=0;l<t;l+=1){const n=l%s;let i=String(Math.floor(l/s));i==="0"&&(i="");const c=o[n],h=`${c}${i}`,d=r.icons===!0?a[l%a.length]:void 0,m=r.descriptions===!0?`Description ${h}`:void 0,g=d??`${c.repeat(3)}${i}`;yield{key:h,item:{key:(l+1)*100,content:g,textValue:g,description:m,icon:d}}}}function*_r(t=1){for(;;)t=t*16807%2147483647,yield t/2147483647}function Mt(t=1){const[r]=u.useState(()=>_r(t));return u.useCallback(()=>{const o=r.next();if(o.done===!0)throw new Error("Random number generator unexpectedly finished");return o.value},[r])}function p(t,r=[]){const o=`${fr}-${t.toLocaleLowerCase().replaceAll(" ","-")}`,s=q(fr,...r);return{id:o,className:s}}function N(t,r=[]){const{id:o,className:s}=p(t,r);return{id:o,UNSAFE_className:s}}function L(){}class oe extends u.Component{static renderButtonBrand(r,o){const s=r.length?`btn-${r}-${o}`:`btn-${o}`;return e.jsx(So,{className:s,style:{marginBottom:"1rem",marginRight:"1rem"},children:o},o)}static renderButtons(r){const o=["primary","secondary","success","warning","danger","info"].map(s=>oe.renderButtonBrand(r,s));return e.jsxs("div",{...p(`buttons-${r.length?"outline":"regular"}`),children:[e.jsx("h5",{children:r.length?"Outline":"Regular"}),o]},r)}static renderLinks(){const r={primary:"accent",secondary:"neutral",success:"positive",info:"info",warning:"notice",danger:"negative"};return e.jsxs("div",{...p("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",{...p("buttons-socketed"),children:[e.jsx("h5",{children:"Socketed Buttons (for linker)"}),e.jsx(ne,{style:{marginBottom:"1rem",marginRight:"1rem"},onClick:L,children:"Unlinked"}),e.jsx(ne,{style:{marginBottom:"1rem",marginRight:"1rem"},isLinked:!0,onClick:L,children:"Linked"}),e.jsx(ne,{style:{marginBottom:"1rem",marginRight:"1rem"},isLinkedSource:!0,onClick:L,children:"Linked Source"}),e.jsx(ne,{style:{marginBottom:"1rem",marginRight:"1rem"},isLinked:!0,isInvalid:!0,onClick:L,children:"Error"}),e.jsx(ne,{style:{marginBottom:"1rem",marginRight:"1rem"},disabled:!0,onClick:L,children:"Disabled"})]})}constructor(r){super(r),this.state={toggle:!0}}renderInlineButtons(){const{toggle:r}=this.state;return e.jsxs("div",{...p("buttons-inline"),style:{padding:"1rem 0"},children:[e.jsx("h5",{children:"Inline Buttons"}),"Regular btn-inline:",e.jsx(f,{className:"mx-2",kind:"inline",icon:K,tooltip:"test",onClick:L}),"Toggle button (class active):",e.jsx(f,{className:"mx-2",onClick:()=>{this.setState({toggle:!r})},active:r,kind:"inline",icon:K,tooltip:"test"}),"Disabled:",e.jsx(f,{className:"mx-2",kind:"inline",disabled:!0,onClick:L,children:"Disabled"}),"With Text:",e.jsx(f,{className:"mx-2",kind:"inline",icon:K,onClick:L,children:e.jsx("span",{children:"Text Button"})}),e.jsx("br",{}),e.jsx("br",{}),e.jsx("span",{children:"btn-link-icon (no text):"}),e.jsx(f,{kind:"ghost",icon:K,tooltip:"test",onClick:L}),e.jsx("span",{className:"mx-2",children:"btn-link:"}),e.jsx(f,{kind:"ghost",onClick:L,children:"Text Button"}),e.jsx("span",{className:"mx-2",children:"btn-link (text w/ optional with icon):"}),e.jsx(f,{kind:"ghost",icon:K,onClick:L,children:"Text Button"})]})}render(){const r=["","outline"].map(l=>oe.renderButtons(l)),o=this.renderInlineButtons(),s=oe.renderSocketedButtons(),a=oe.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 $t(){const t=Rr();gr.random=Mt();const[r]=u.useState(()=>new gr(t));return e.jsxs("div",{...p("charts"),children:[e.jsx("h2",{className:"ui-title",children:"Chart"}),e.jsx("div",{style:{height:500},children:e.jsx(To,{model:r})})]})}const Ke="2px solid var(--dh-color-notice-bg)",Rt={"--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"},br={"--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"},Lt={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 ue(t){const r=ge.parseRgba(ge.asRgbOrRgbaString(t)??"");if(r==null||r.a<.5)return"white";const{r:o,g:s,b:a}=r;return ge.getBrightness([o,s,a])>=128?"black":"white"}function Pt(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"?mo(a??"").map(([n,i])=>a.substring(n,i+1)).map((n,i)=>({name:`${s}-${i}`,value:n})):{name:s,value:a}}).flat()}function re(t,r,o,s=Rt){const a=Lt[t];return Pt(r).reduce((i,{name:c,value:h})=>{if(/^--dh-color-true-(.*?)$/.test(c)||/^--dh-color-gray-(light|mid|dark)$/.test(c))return i;const d=/^--dh-color-([^-]+)(?:-([^-]+))?/.exec(c);let m=s[c]??d?.[o]??d?.[1]??"???";return m=a[m]??m,i[m]==null&&(i[m]=[]),c in br&&i[m].push({isLabel:!0,name:br[c],value:""}),/^--dh-color-gray-(light|mid|dark)$/.test(c)||i[m].push({name:c,value:h}),i},{})}function _t(){const t=u.useRef(null);return u.useLayoutEffect(()=>{if(t.current==null)return;const r=getComputedStyle(t.current),{backgroundColor:o}=r;t.current.style.color=ue(o)},[]),t}function Bt(t,r){const[o,s]=u.useState();return u.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 n=getComputedStyle(t.current).getPropertyValue(l);s(n)},[t,r]),o}function Re({className:t,children:r}){const o=_t(),s=Bt(o,":after"),a=u.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:Ke},children:[l&&e.jsx(te,{interactive:!0,children:e.jsx("div",{children:a.value})}),r]})}function Vt(){const t=["100","200","300","400","500","600","700","800","850","8XX","900"].map(s=>e.jsx(Re,{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(Re,{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(Re,{className:q("swatch",`swatch-${s}`),children:s},s));return e.jsxs("div",{...p("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 Ft extends u.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:Xe,action:()=>{alert(`Alert${o}!`)},shortcut:new se({id:"STYLEGUIDE.SHOW_ALERT",name:"Show Alert",shortcut:[M.CTRL,$.A],macShortcut:[M.CMD,$.A]})},{title:`Log Message${o}`,icon:Ze,action:()=>{console.log(`Logging a message${o}!`)},shortcut:new se({id:"STYLEGUIDE.LOG_MESSAGE",name:"Log Message",shortcut:[M.CTRL,$.L],macShortcut:[M.CMD,$.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:Mr,action:()=>{alert("Show keyboard shortcuts!")},shortcut:new se({id:"STYLEGUIDE.SHOW_SHORTCUTS",name:"Show Shortcuts",shortcut:[M.CTRL,$.SLASH],macShortcut:[M.CMD,$.SLASH]}),group:be.groups.global}].concat(r),a=()=>new Promise(l=>{setTimeout(()=>{l(r)},3e3)});return e.jsxs("div",{...p("context-menus"),children:[e.jsx("h2",{className:"ui-title",children:"Context Menu"}),e.jsxs(f,{kind:"primary",style:{cursor:"default",marginBottom:"1rem",marginRight:"1rem"},onClick:()=>{},children:["Right Click Me",e.jsx(be,{actions:s})]}),e.jsxs(f,{kind:"tertiary",style:{cursor:"default",marginBottom:"1rem",marginRight:"1rem"},onClick:()=>{},children:["Right Click Me",e.jsx(be,{actions:a})]})]})}}class Ot extends u.Component{constructor(r){super(r),this.sampleInput=xe.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",{...p("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(f,{kind:"primary",style:{marginBottom:"1rem",marginRight:"1rem"},onClick:()=>{r?this.setState({isShown:!1}):this.setState({isShown:!0})},children:["Open Dialog",e.jsx(No,{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(Bo,{menuText:"Checkbox Menu",valueMap:o,onUpdateValueMap:this.handleUpdateCheckboxMap})]})}}class Ut extends u.Component{constructor(r){super(r),this.state={isShown:!1}}render(){const r=[{title:"Show Alert",icon:Xe,action:()=>{alert("Alert!")},shortcut:new se({id:"STYLEGUIDE.SHOW_ALERT",name:"Show Alert",shortcut:[M.CTRL,$.A],macShortcut:[M.CMD,$.A]})},{title:"Log Message",icon:Ze,action:()=>{console.log("Logging a message!")},shortcut:new se({id:"STYLEGUIDE.LOG_MESSAGE",name:"Log Message",shortcut:[M.CTRL,$.L],macShortcut:[M.CMD,$.L]})}],s=[{title:"Show Shortcuts",icon:Mr,action:()=>{alert("Show keyboard shortcuts!")},shortcut:new se({id:"STYLEGUIDE.SHOW_SHORTCUTS",name:"Show Shortcuts",shortcut:[M.CTRL,$.SLASH],macShortcut:[M.CMD,$.SLASH]}),group:be.groups.global}].concat(r),{isShown:a}=this.state;return e.jsxs("div",{...p("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(f,{kind:"inline",className:"mx-2",icon:go,onClick:()=>{},children:e.jsx(dr,{actions:s})}),e.jsxs(f,{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(dr,{isShown:a,onMenuClosed:()=>{this.setState({isShown:!1})},actions:s})]})]})}}const Ht=`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",{...p("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 Ir={position:"sticky",justifyContent:"end",zIndex:1,UNSAFE_style:{float:"right"}};function aa(){const t=window.location.search.includes("isolateSection=true"),{themes:r}=Lr(),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:`.${$e}, .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,{...Ir,UNSAFE_className:$e,marginTop:-56,top:20,gap:10,alignItems:"end",children:[o?e.jsx(at,{}):null,e.jsx(Fs,{})]}),e.jsx(C,{...Ir,UNSAFE_className:$e,top:"calc(100vh - 40px)",marginTop:-32,marginEnd:o?-234:0,children:e.jsx(Os,{})}),e.jsx(hs,{}),e.jsx(ie,{"data-menu-category":"Colors"}),e.jsx(Vt,{}),e.jsx(As,{}),e.jsx(ie,{"data-menu-category":"Layout"}),e.jsx(Gs,{}),e.jsx(ie,{"data-menu-category":"Components"}),e.jsx(oe,{}),e.jsx(is,{}),e.jsx(ss,{}),e.jsx(ta,{}),e.jsx(ra,{}),e.jsx(ls,{}),e.jsx(we,{}),e.jsx(cs,{}),e.jsx(Ot,{}),e.jsx(ns,{}),e.jsx(Ft,{}),e.jsx(Ut,{}),e.jsx(fs,{}),e.jsx(ds,{}),e.jsx(os,{}),e.jsx(zt,{}),e.jsx(Jt,{}),e.jsx($t,{}),e.jsx(lt,{}),e.jsx(zs,{}),e.jsx(ie,{"data-menu-category":"Spectrum Components"}),e.jsx(Rs,{}),e.jsx(ie,{"data-menu-category":"Spectrum Comparison"}),e.jsx(Ks,{}),e.jsx(sa,{})]})})}function tr(t){const{workspace:r,setWorkspace:o}=t;return u.useEffect(()=>{nt.makeDefaultWorkspace({getLayouts:async()=>[],getLayout:async()=>({})}).then(o)},[o]),r!=null?e.jsx(aa,{}):null}tr.propTypes={workspace:ye.shape({}),setWorkspace:ye.func.isRequired};tr.defaultProps={workspace:null};const la=t=>({workspace:Lo(t)}),na=ho(la,{setWorkspace:Ro})(tr);function ja(){return tt.register(new URL("./download/serviceWorker.js",window.location.href)),Po.init({getWorker:()=>new Co}),window["__react-beautiful-dnd-disable-dev-warnings"]=!0,e.jsx(Ko,{children:e.jsx(uo,{store:_o,children:e.jsx(na,{})})})}export{ja as StyleGuideRoot,ja as default};
216
- //# sourceMappingURL=StyleGuideRoot-54ed0acb.js.map
216
+ //# sourceMappingURL=StyleGuideRoot-fd175e8f.js.map