@deephaven/code-studio 0.69.2-beta.1 → 0.69.2-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/assets/{AppRoot-6000660a.js → AppRoot-0eb3068f.js} +3 -3
- package/build/assets/{AppRoot-6000660a.js.map → AppRoot-0eb3068f.js.map} +1 -1
- package/build/assets/{Chart-06013ed9.js → Chart-761dfbb8.js} +2 -2
- package/build/assets/{Chart-06013ed9.js.map → Chart-761dfbb8.js.map} +1 -1
- package/build/assets/{ControlType-f41ef155.js → ControlType-ac4243a8.js} +3 -3
- package/build/assets/{ControlType-f41ef155.js.map → ControlType-ac4243a8.js.map} +1 -1
- package/build/assets/{FontBootstrap-04d3c39f.css → FontBootstrap-0e408490.css} +1 -1
- package/build/assets/FontBootstrap-fa16b0fe.js +4 -0
- package/build/assets/FontBootstrap-fa16b0fe.js.map +1 -0
- package/build/assets/{FormatterUtils-20a17fce.js → FormatterUtils-4ef4fbd4.js} +2 -2
- package/build/assets/{FormatterUtils-20a17fce.js.map → FormatterUtils-4ef4fbd4.js.map} +1 -1
- package/build/assets/{Grid-793d7a17.js → Grid-dfcc32e1.js} +2 -2
- package/build/assets/{Grid-793d7a17.js.map → Grid-dfcc32e1.js.map} +1 -1
- package/build/assets/{GridRenderer-6a35b4b4.js → GridRenderer-5a8d299d.js} +2 -2
- package/build/assets/{GridRenderer-6a35b4b4.js.map → GridRenderer-5a8d299d.js.map} +1 -1
- package/build/assets/{IrisGrid-9ff5826d.js → IrisGrid-a320c953.js} +2 -2
- package/build/assets/{IrisGrid-9ff5826d.js.map → IrisGrid-a320c953.js.map} +1 -1
- package/build/assets/{IrisGridModel-ce910704.js → IrisGridModel-4ba68181.js} +2 -2
- package/build/assets/{IrisGridModel-ce910704.js.map → IrisGridModel-4ba68181.js.map} +1 -1
- package/build/assets/{IrisGridShortcuts-bc18ad36.js → IrisGridShortcuts-24232880.js} +2 -2
- package/build/assets/{IrisGridShortcuts-bc18ad36.js.map → IrisGridShortcuts-24232880.js.map} +1 -1
- package/build/assets/{IrisGridThemeProvider-229ea092.js → IrisGridThemeProvider-d0c4ceb3.js} +2 -2
- package/build/assets/{IrisGridThemeProvider-229ea092.js.map → IrisGridThemeProvider-d0c4ceb3.js.map} +1 -1
- package/build/assets/{MarkdownEditor-2a1055c0.js → MarkdownEditor-5b56d54d.js} +2 -2
- package/build/assets/{MarkdownEditor-2a1055c0.js.map → MarkdownEditor-5b56d54d.js.map} +1 -1
- package/build/assets/{MarkdownNotebook-758a3117.js → MarkdownNotebook-8dc3fdd3.js} +2 -2
- package/build/assets/{MarkdownNotebook-758a3117.js.map → MarkdownNotebook-8dc3fdd3.js.map} +1 -1
- package/build/assets/{MissingPartitionError-02c79429.js → MissingPartitionError-2ea36982.js} +2 -2
- package/build/assets/{MissingPartitionError-02c79429.js.map → MissingPartitionError-2ea36982.js.map} +1 -1
- package/build/assets/StyleGuideRoot-4e3a2f49.js +214 -0
- package/build/assets/StyleGuideRoot-4e3a2f49.js.map +1 -0
- package/build/assets/{index-6c8d7a81.js → index-d21a95e0.js} +3 -3
- package/build/assets/{index-6c8d7a81.js.map → index-d21a95e0.js.map} +1 -1
- package/build/assets/index-d3742b80.js +2 -0
- package/build/assets/{index-c03aa601.js.map → index-d3742b80.js.map} +1 -1
- package/build/assets/{index-bab81875.js → index-fa466d89.js} +2 -2
- package/build/assets/{index-bab81875.js.map → index-fa466d89.js.map} +1 -1
- package/build/assets/{useUser-9a8a2bc6.js → useUser-55b88f4f.js} +2 -2
- package/build/assets/{useUser-9a8a2bc6.js.map → useUser-55b88f4f.js.map} +1 -1
- package/build/index.html +1 -1
- package/package.json +30 -30
- package/build/assets/FontBootstrap-7c33595c.js +0 -4
- package/build/assets/FontBootstrap-7c33595c.js.map +0 -1
- package/build/assets/StyleGuideRoot-24c3427a.js +0 -214
- package/build/assets/StyleGuideRoot-24c3427a.js.map +0 -1
- package/build/assets/index-c03aa601.js +0 -2
|
@@ -1,214 +0,0 @@
|
|
|
1
|
-
import{r as u,K as H,I as e,ay as C,M as ue,_ as wr,V as xe,L as T,a7 as z,U as Ze,bb as Or,aA as L,bw as Cr,a$ as D,a5 as Vr,a6 as P,a9 as Ur,aa as Ue,bx as Gr,ab as Hr,ac as Ge,a8 as $,ae as zr,af as j,b0 as Wr,by as Pe,a_ as q,at as qr,ad as Kr,aY as Le,aj as Sr,ai as f,bz as _e,aQ as Yr,aS as Zr,ak as Xr,aG as Qr,bA as Jr,bB as eo,bC as K,bD as ro,bE as be,bF as E,aI as oo,bG as to,aP as Be,bd as ao,bH as lo,bI as je,Q as so,a4 as io}from"./vendor-323142a4.js";import{aW as Xe,aX as G,aN as he,a3 as no,aY as He,aZ as ze,a_ as Tr,aF as co,a$ as Y,b0 as Qe,G as Je,b1 as er,I as Fe,b2 as ho,b3 as uo,N as go,b4 as mo,b5 as vo,aJ as rr,b6 as xo}from"./index-bab81875.js";import{W as po}from"./monaco-b5248072.js";import{f as fe,d as kr,m as Z,B as fo,S as le,L as bo,c as ye,I as jo,R as Nr,a as F}from"./IrisGridModel-ce910704.js";import{B as x,u as Dr,s as ee,q as re,aW as A,K as M,am as me,ak as yo,H as or,cs as tr,N as wo,C as _,aZ as se,S as ve,aR as Co,an as So,d as ar,a$ as Ir,z as lr,bv as X,aq as To,aC as ko,aa as No,aI as Do,w as Io}from"./ControlType-f41ef155.js";import{M as sr,H as Eo,A as $o,V as we,T as Ao,D as Mo,C as Ro,a as Po,c as Lo,b as _o,P as Ce,j as Bo}from"./FontBootstrap-7c33595c.js";import{G as oe,T as Fo}from"./Grid-793d7a17.js";import{G as Er,C as Oe,O as Oo,a as Vo,S as Uo,b as ce,P as ir,e as Go,c as Ho}from"./GridRenderer-6a35b4b4.js";import{a as nr,D as zo}from"./IrisGridShortcuts-bc18ad36.js";import{N as Wo,T as qo}from"./useUser-9a8a2bc6.js";import{L as Ko}from"./AppRoot-6000660a.js";import"./helpers-de833af9.js";function cr(t,r,o,a,l,s,i){try{var n=t[s](i),d=n.value}catch(h){o(h);return}n.done?r(d):Promise.resolve(d).then(a,l)}function Se(t){return function(){var r=this,o=arguments;return new Promise(function(a,l){var s=t.apply(r,o);function i(d){cr(s,a,l,i,n,"next",d)}function n(d){cr(s,a,l,i,n,"throw",d)}i(void 0)})}}function B(t,r,o){return r=Yo(r),r in t?Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[r]=o,t}function Yo(t){var r=Zo(t,"string");return typeof r=="symbol"?r:String(r)}function Zo(t,r){if(typeof t!="object"||t===null)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var a=o.call(t,r||"default");if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}class Xo extends fe{constructor(){var{rowCount:r=1e9,columnCount:o=100,floatingTopRowCount:a=0,floatingBottomRowCount:l=0,floatingLeftColumnCount:s=0,floatingRightColumnCount:i=0,isEditable:n=!1,editedData:d=[]}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};super(),B(this,"numRows",void 0),B(this,"numColumns",void 0),B(this,"floatingTop",void 0),B(this,"floatingBottom",void 0),B(this,"floatingLeft",void 0),B(this,"floatingRight",void 0),B(this,"editable",void 0),B(this,"editedData",void 0),this.numRows=r,this.numColumns=o,this.floatingTop=a,this.floatingBottom=l,this.floatingLeft=s,this.floatingRight=i,this.editable=n,this.editedData=d}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 a,l;return(a=(l=this.editedData[r])===null||l===void 0?void 0:l[o])!==null&&a!==void 0?a:"".concat(r,",").concat(o)}colorForCell(r,o,a){return a.textColor}textForColumnHeader(r){return"".concat(r)}textForRowHeader(r){return"".concat(r)}textForRowFooter(r){return"".concat(r)}setValueForCell(r,o,a){var l=this;return Se(function*(){l.editedData[r]==null&&(l.editedData[r]=[]),l.editedData[r][o]="".concat(a)})()}setValueForRanges(r,o){var a=this;return Se(function*(){kr.forEachCell(r,(l,s)=>{a.setValueForCell(l,s,o)})})()}setValues(r){var o=this;return Se(function*(){for(var a=0;a<r.length;a+=1){var l,s,i=r[a];o.setValueForCell((l=i.column)!==null&&l!==void 0?l:i.x,(s=i.row)!==null&&s!==void 0?s:i.y,i.text)}})()}editValueForCell(r,o){return this.textForCell(r,o)}isValidForCell(r,o,a){return!0}isEditableRange(r){return this.isEditable}delete(r){throw new Error("Method not implemented.")}}const We=Xo;function S(t,r,o){return r=Qo(r),r in t?Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[r]=o,t}function Qo(t){var r=Jo(t,"string");return typeof r=="symbol"?r:String(r)}function Jo(t,r){if(typeof t!="object"||t===null)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var a=o.call(t,r||"default");if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}class I extends We{constructor(){var{rowCount:r=I.DEFAULT_ROW_COUNT,columnCount:o=I.DEFAULT_COLUMN_COUNT,children:a=new Map,childRowCount:l=Math.ceil(Math.max(I.MIN_CHILD_ROW_COUNT,r*I.DEFAULT_CHILD_ROW_COUNT_FACTOR)),maxDepth:s=I.MAX_DEPTH}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};super({rowCount:r,columnCount:o}),S(this,"children",void 0),S(this,"childRowCount",void 0),S(this,"maxDepth",void 0),S(this,"getCachedModelRowOffset",Z((i,n)=>{for(var d=null,h=n,c=[...i].sort((y,O)=>y[0]-O[0]),g=0;g<c.length;g+=1){var[m,v]=c[g];if(h<=m)break;var b=v.rowCount;if(h<=m+b){d=m,h=h-m-1;break}h-=b}return{key:d,offsetRow:h}})),S(this,"getCachedTextForRowHeader",Z((i,n)=>{var{key:d,offsetRow:h}=this.getCachedModelRowOffset(i,n);if(d!=null){var c=i.get(d);if(c!==void 0)return"".concat(d,".").concat(c.textForRowHeader(h))}return"".concat(h)})),S(this,"getCachedTextForCell",Z((i,n,d)=>{var{key:h,offsetRow:c}=this.getCachedModelRowOffset(i,d);if(h!=null){var g=i.get(h);if(g!==void 0)return"".concat(h,".").concat(g.textForCell(n,c))}return"".concat(n,",").concat(c)})),S(this,"getCachedIsRowExpandable",Z((i,n,d)=>{var h=this.getCachedDepthForRow(i,n);return h<d})),S(this,"getCachedIsRowExpanded",Z((i,n)=>{var{key:d,offsetRow:h}=this.getCachedModelRowOffset(i,n);if(d!=null){var c=i.get(d);if(c!==void 0)return c.isRowExpanded(h)}return i.has(h)})),S(this,"getCachedDepthForRow",Z((i,n)=>{var{key:d,offsetRow:h}=this.getCachedModelRowOffset(i,n);if(d!=null){var c=i.get(d);if(c!==void 0)return c.depthForRow(h)+1}return 0})),this.children=a,this.childRowCount=l,this.maxDepth=s}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 a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,{key:l,offsetRow:s}=this.getCachedModelRowOffset(this.children,r),i=new Map(this.children);if(l!=null){var n=this.children.get(l);if(n!==void 0){var{rowCount:d}=n;n.setRowExpanded(s,o,a),this.numRows+=n.rowCount-d}}else if(o){var c=new I({rowCount:this.childRowCount,columnCount:this.numColumns});i.set(s,c),this.numRows+=c.rowCount}else{var h=i.get(s);h!==void 0&&(this.numRows-=h.rowCount,i.delete(s))}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)}}S(I,"DEFAULT_ROW_COUNT",1e9);S(I,"DEFAULT_COLUMN_COUNT",100);S(I,"DEFAULT_CHILD_ROW_COUNT_FACTOR",.01);S(I,"MIN_CHILD_ROW_COUNT",10);S(I,"MAX_DEPTH",10);const qe=I;function Te(t,r,o){return r=et(r),r in t?Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[r]=o,t}function et(t){var r=rt(t,"string");return typeof r=="symbol"?r:String(r)}function rt(t,r){if(typeof t!="object"||t===null)return t;var o=t[Symbol.toPrimitive];if(o!==void 0){var a=o.call(t,r||"default");if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}class ot extends fe{constructor(r,o){var a;super(),Te(this,"data",void 0),Te(this,"columnHeaders",void 0),Te(this,"numberOfColumns",void 0),this.data=r,this.numberOfColumns=Math.max(...r.map(l=>l.length),(a=o?.length)!==null&&a!==void 0?a:0),this.columnHeaders=o}get rowCount(){return this.data.length}get columnCount(){return this.numberOfColumns}textForCell(r,o){var a;return"".concat((a=this.data[o])===null||a===void 0?void 0:a[r])}textForColumnHeader(r){var o,a;return(o=(a=this.columnHeaders)===null||a===void 0?void 0:a[r])!==null&&o!==void 0?o:""}}const tt=ot;function ke(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 a=o.call(t,r||"default");if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}class st extends fe{constructor(r,o){super(),ke(this,"numberOfColumns",void 0),ke(this,"numberOfRows",void 0),ke(this,"viewportData",void 0),this.numberOfColumns=r,this.numberOfRows=o}get columnCount(){return this.numberOfColumns}get rowCount(){return this.numberOfRows}textForCell(r,o){var a,l,s,i,n,d,h,c=o-((a=(l=this.viewportData)===null||l===void 0?void 0:l.rowOffset)!==null&&a!==void 0?a:0),g=r-((s=(i=this.viewportData)===null||i===void 0?void 0:i.columnOffset)!==null&&s!==void 0?s:0);return"".concat((n=(d=this.viewportData)===null||d===void 0||(h=d.data[c])===null||h===void 0?void 0:h[g])!==null&&n!==void 0?n:"")}textForColumnHeader(r){return"".concat(r)}textForRowHeader(r){return"".concat(r)}}const it=st;function k(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 a=o.call(t,r||"default");if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}var dt="proportional",ht=Er.positiveBarColor,ut=Er.negativeBarColor,gt="beside",mt="LTR",vt="right";function xt(t){return Array.isArray(t)&&t.every(r=>typeof r=="number")}class pt extends fe{constructor(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new Map,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:new Map,l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:new Map,s=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,d=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=a,this.negativeColors=l,this.data=r,this.columnAxes=o,this.valuePlacements=s,this.opacities=i,this.directions=n,this.textAlignments=d,this.markers=h,this.numberOfRows=Math.max(...r.map(m=>m.length)),this.numberOfColumns=r.length,this.columnMins=new Map,this.columnMaxs=new Map;for(var c=0;c<r.length;c+=1){var g=r[c];xt(g)&&(this.columnMins.set(c,Math.min(...g)),this.columnMaxs.set(c,Math.max(...g)))}}get rowCount(){return this.numberOfRows}get columnCount(){return this.numberOfColumns}textForCell(r,o){var a;return"".concat((a=this.data[r])===null||a===void 0?void 0:a[o])}textForColumnHeader(r){return"".concat(r)}textAlignForCell(r,o){var a;return(a=this.textAlignments.get(r))!==null&&a!==void 0?a:vt}renderTypeForCell(r,o){return r<20||r%2===o%2?"dataBar":"text"}dataBarOptionsForCell(r,o){var a,l,s,i,n,d,h,c=Xe(this.columnMins,r),g=Xe(this.columnMaxs,r),m=(a=this.columnAxes.get(r))!==null&&a!==void 0?a:dt,v=(l=this.valuePlacements.get(r))!==null&&l!==void 0?l:gt,b=this.opacities.get(r);b==null||b>1?b=1:b<0&&(b=0);var y=(s=this.directions.get(r))!==null&&s!==void 0?s:mt,O=(i=this.positiveColors.get(r))!==null&&i!==void 0?i:ht,te=(n=this.negativeColors.get(r))!==null&&n!==void 0?n:ut,V=Number((d=this.data[r])===null||d===void 0?void 0:d[o]),W=V>=0?O:te,ge=(h=this.markers.get(r))!==null&&h!==void 0?h:[];return{columnMin:c,columnMax:g,axis:m,color:W,valuePlacement:v,opacity:b,markers:ge,direction:y,value:V}}}const ft=pt,Ne="hide-from-e2e-tests",dr="sample-section";function*$r(t=1){for(;;)t=t*16807%2147483647,yield t/2147483647}function bt(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=`${dr}-${t.toLocaleLowerCase().replaceAll(" ","-")}`,a=H(dr,...r);return{id:o,className:a}}function N(t,r=[]){const{id:o,className:a}=p(t,r);return{id:o,UNSAFE_className:a}}function R(){}class J extends u.Component{static renderButtonBrand(r,o){const a=r.length?`btn-${r}-${o}`:`btn-${o}`;return e.jsx(fo,{className:a,style:{marginBottom:"1rem",marginRight:"1rem"},children:o},o)}static renderButtons(r){const o=["primary","secondary","success","warning","danger","info"].map(a=>J.renderButtonBrand(r,a));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,a])=>e.jsxs("a",{className:`text-${o}`,children:[o," (",a,")"]},o))})]})}static renderSocketedButtons(){return e.jsxs("div",{...p("buttons-socketed"),children:[e.jsx("h5",{children:"Socketed Buttons (for linker)"}),e.jsx(le,{style:{marginBottom:"1rem",marginRight:"1rem"},onClick:R,children:"Unlinked"}),e.jsx(le,{style:{marginBottom:"1rem",marginRight:"1rem"},isLinked:!0,onClick:R,children:"Linked"}),e.jsx(le,{style:{marginBottom:"1rem",marginRight:"1rem"},isLinkedSource:!0,onClick:R,children:"Linked Source"}),e.jsx(le,{style:{marginBottom:"1rem",marginRight:"1rem"},isLinked:!0,isInvalid:!0,onClick:R,children:"Error"}),e.jsx(le,{style:{marginBottom:"1rem",marginRight:"1rem"},disabled:!0,onClick:R,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(x,{className:"mx-2",kind:"inline",icon:G,tooltip:"test",onClick:R}),"Toggle button (class active):",e.jsx(x,{className:"mx-2",onClick:()=>{this.setState({toggle:!r})},active:r,kind:"inline",icon:G,tooltip:"test"}),"Disabled:",e.jsx(x,{className:"mx-2",kind:"inline",disabled:!0,onClick:R,children:"Disabled"}),"With Text:",e.jsx(x,{className:"mx-2",kind:"inline",icon:G,onClick:R,children:e.jsx("span",{children:"Text Button"})}),e.jsx("br",{}),e.jsx("br",{}),e.jsx("span",{children:"btn-link-icon (no text):"}),e.jsx(x,{kind:"ghost",icon:G,tooltip:"test",onClick:R}),e.jsx("span",{className:"mx-2",children:"btn-link:"}),e.jsx(x,{kind:"ghost",onClick:R,children:"Text Button"}),e.jsx("span",{className:"mx-2",children:"btn-link (text w/ optional with icon):"}),e.jsx(x,{kind:"ghost",icon:G,onClick:R,children:"Text Button"})]})}render(){const r=["","outline"].map(s=>J.renderButtons(s)),o=this.renderInlineButtons(),a=J.renderSocketedButtons(),l=J.renderLinks();return e.jsxs("div",{children:[e.jsx("h2",{className:"ui-title",children:"Buttons"}),e.jsxs("div",{style:{padding:"1rem 0"},children:[r,o,a,l]})]})}}function jt(){const t=Dr();sr.random=bt();const[r]=u.useState(()=>new sr(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(bo,{model:r})})]})}const Ve="2px solid var(--dh-color-notice-bg)",yt={"--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"},hr={"--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"},wt={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 de(t){const r=he.parseRgba(he.asRgbOrRgbaString(t)??"");if(r==null||r.a<.5)return"white";const{r:o,g:a,b:l}=r;return he.getBrightness([o,a,l])>=128?"black":"white"}function Ct(t){const r=getComputedStyle(document.documentElement);return t.split(/[\n;]/g).map(a=>/^(?:\s{2}|:root\{)?(--dh-color-(?:[^:]+))/.exec(a)?.[1]).filter(a=>!!a).map(a=>{const l=r.getPropertyValue(a);return a==="--dh-color-chart-colorway"?no(l??"").map(([i,n])=>l.substring(i,n+1)).map((i,n)=>({name:`${a}-${n}`,value:i})):{name:a,value:l}}).flat()}function Q(t,r,o,a=yt){const l=wt[t];return Ct(r).reduce((n,{name:d,value:h})=>{if(/^--dh-color-true-(.*?)$/.test(d)||/^--dh-color-gray-(light|mid|dark)$/.test(d))return n;const c=/^--dh-color-([^-]+)(?:-([^-]+))?/.exec(d);let g=a[d]??c?.[o]??c?.[1]??"???";return g=l[g]??g,n[g]==null&&(n[g]=[]),d in hr&&n[g].push({isLabel:!0,name:hr[d],value:""}),/^--dh-color-gray-(light|mid|dark)$/.test(d)||n[g].push({name:d,value:h}),n},{})}function St(){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=de(o)},[]),t}function Tt(t,r){const[o,a]=u.useState();return u.useEffect(()=>{if(t.current==null)return;const l=getComputedStyle(t.current,r).getPropertyValue("content"),s=/"(--dh-color-.*?)[,"]/.exec(l)?.[1];if(s==null)return;const i=getComputedStyle(t.current).getPropertyValue(s);a(i)},[t,r]),o}function De({className:t,children:r}){const o=St(),a=Tt(o,":after"),l=u.useMemo(()=>a!=null?{value:a}:null,[a]),s=l!=null&&l.value!=="";return e.jsxs("div",{ref:o,className:t,style:{border:s?void 0:Ve},children:[s&&e.jsx(ee,{interactive:!0,children:e.jsx("div",{children:l.value})}),r]})}function kt(){const t=["100","200","300","400","500","600","700","800","850","8XX","900"].map(a=>e.jsx(De,{className:H("swatch","gray-swatch",`gray-swatch-${a}`),children:a==="8XX"?"N/A":`Gray-${a}`},a)),r=["red","orange","yellow","green","blue","purple","white","black"].map(a=>e.jsx(De,{className:H("swatch",`swatch-${a}`),children:a},a)),o=["content-bg","background","foreground","primary","primary-dark","secondary","secondary-hover","success","info","warning","danger","danger-hover"].map(a=>e.jsx(De,{className:H("swatch",`swatch-${a}`),children:a},a));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 Nt 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:He,action:()=>{alert(`Alert${o}!`)},shortcut:new re({id:"STYLEGUIDE.SHOW_ALERT",name:"Show Alert",shortcut:[A.CTRL,M.A],macShortcut:[A.CMD,M.A]})},{title:`Log Message${o}`,icon:ze,action:()=>{console.log(`Logging a message${o}!`)},shortcut:new re({id:"STYLEGUIDE.LOG_MESSAGE",name:"Log Message",shortcut:[A.CTRL,M.L],macShortcut:[A.CMD,M.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(),a=[{title:"Show Shortcuts",icon:Tr,action:()=>{alert("Show keyboard shortcuts!")},shortcut:new re({id:"STYLEGUIDE.SHOW_SHORTCUTS",name:"Show Shortcuts",shortcut:[A.CTRL,M.SLASH],macShortcut:[A.CMD,M.SLASH]}),group:me.groups.global}].concat(r),l=()=>new Promise(s=>{setTimeout(()=>{s(r)},3e3)});return e.jsxs("div",{...p("context-menus"),children:[e.jsx("h2",{className:"ui-title",children:"Context Menu"}),e.jsxs(x,{kind:"primary",style:{cursor:"default",marginBottom:"1rem",marginRight:"1rem"},onClick:()=>{},children:["Right Click Me",e.jsx(me,{actions:a})]}),e.jsxs(x,{kind:"tertiary",style:{cursor:"default",marginBottom:"1rem",marginRight:"1rem"},onClick:()=>{},children:["Right Click Me",e.jsx(me,{actions:l})]})]})}}class Dt extends u.Component{constructor(r){super(r),this.sampleInput=ue.createRef(),this.handleUpdateCheckboxMap=this.handleUpdateCheckboxMap.bind(this);const o=["Parent A",new Map([["Child 1",!0],["Child 2",!1]])],a=["Parent B",new Map([["Child 3",!0],["Child 4",!1],["Child 5",!0],["Child 6",!1]])],l=["Leaf Parent",!0];this.state={isShown:!1,checkBoxMap:new Map([o,a,l])}}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(x,{kind:"primary",style:{marginBottom:"1rem",marginRight:"1rem"},onClick:()=>{r?this.setState({isShown:!1}):this.setState({isShown:!0})},children:["Open Dialog",e.jsx(yo,{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(Eo,{menuText:"Checkbox Menu",valueMap:o,onUpdateValueMap:this.handleUpdateCheckboxMap})]})}}class It extends u.Component{constructor(r){super(r),this.state={isShown:!1}}render(){const r=[{title:"Show Alert",icon:He,action:()=>{alert("Alert!")},shortcut:new re({id:"STYLEGUIDE.SHOW_ALERT",name:"Show Alert",shortcut:[A.CTRL,M.A],macShortcut:[A.CMD,M.A]})},{title:"Log Message",icon:ze,action:()=>{console.log("Logging a message!")},shortcut:new re({id:"STYLEGUIDE.LOG_MESSAGE",name:"Log Message",shortcut:[A.CTRL,M.L],macShortcut:[A.CMD,M.L]})}],a=[{title:"Show Shortcuts",icon:Tr,action:()=>{alert("Show keyboard shortcuts!")},shortcut:new re({id:"STYLEGUIDE.SHOW_SHORTCUTS",name:"Show Shortcuts",shortcut:[A.CTRL,M.SLASH],macShortcut:[A.CMD,M.SLASH]}),group:me.groups.global}].concat(r),{isShown:l}=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(x,{kind:"inline",className:"mx-2",icon:co,onClick:()=>{},children:e.jsx(or,{actions:a})}),e.jsxs(x,{kind:"primary",style:{marginRight:"1rem",minWidth:"165px"},onClick:()=>{l?this.setState({isShown:!1}):this.setState({isShown:!0})},children:["Menu Shown: ",l.toString()]}),e.jsxs("div",{ref:this.button,className:"btn btn-secondary disabled",style:{marginRight:"1rem"},children:["Shown using isShown",e.jsx(or,{isShown:l,onMenuClosed:()=>{this.setState({isShown:!1})},actions:a})]})]})}}const Et=`trades = db.t("LearnDeephaven", "StockTrades").where("Date=\`2017-08-25\`")\\
|
|
2
|
-
.headBy(3, "Sym")\\
|
|
3
|
-
.view("Sym", "Last")
|
|
4
|
-
|
|
5
|
-
summary = trades.view("Sym", "AvgPrice=Last").avgBy("Sym")
|
|
6
|
-
|
|
7
|
-
lj = summary.leftJoin(trades, "Sym", "Last")
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
def rollingAvg(rows, values):
|
|
12
|
-
calculations = jpy.array('double', values.size()) # create an array of integers
|
|
13
|
-
|
|
14
|
-
sum = 0
|
|
15
|
-
n = 0
|
|
16
|
-
avg = 0
|
|
17
|
-
|
|
18
|
-
for i in range(values.size()):
|
|
19
|
-
sum += values.get(i) #add each value to sum
|
|
20
|
-
if (i >= rows): sum -= values.get(i - rows) #subtract when needed
|
|
21
|
-
|
|
22
|
-
n = i + 1 if (i < rows) else rows #n increments with i until i=rows
|
|
23
|
-
avg = sum / n #get updated average every iteration
|
|
24
|
-
|
|
25
|
-
calculations[i] = avg #store running average
|
|
26
|
-
|
|
27
|
-
return calculations #return an array of rolling averages
|
|
28
|
-
|
|
29
|
-
def rollingStd(rows, values, averages):
|
|
30
|
-
calculations = jpy.array('double', values.size()) # create an array of integers
|
|
31
|
-
|
|
32
|
-
sum = 0
|
|
33
|
-
n = 0
|
|
34
|
-
|
|
35
|
-
for i in range(values.size()):
|
|
36
|
-
sum = 0
|
|
37
|
-
|
|
38
|
-
j = i
|
|
39
|
-
while j >= 0 and j > i - rows:
|
|
40
|
-
difference = values.get(j) - averages[i]
|
|
41
|
-
squareDiff = difference ** 2
|
|
42
|
-
sum += squareDiff
|
|
43
|
-
j -= 1
|
|
44
|
-
|
|
45
|
-
n = i + 1 if (i < rows) else rows
|
|
46
|
-
variance = sum / n
|
|
47
|
-
standardDev = variance ** (1/2.0)
|
|
48
|
-
calculations[i] = standardDev
|
|
49
|
-
|
|
50
|
-
return calculations
|
|
51
|
-
|
|
52
|
-
trades = db.t("LearnDeephaven", "StockTrades")\\
|
|
53
|
-
.where("Date=\`2017-08-25\`")\\
|
|
54
|
-
.view("Sym", "Last", "Size", "ExchangeTimestamp")
|
|
55
|
-
|
|
56
|
-
trades30min = trades.updateView("TimeBin=lowerBin(ExchangeTimestamp, 30*MINUTE)")\\
|
|
57
|
-
.firstBy("Sym", "TimeBin")
|
|
58
|
-
|
|
59
|
-
rollingCalc = trades30min.by("Sym")\\
|
|
60
|
-
.update("Avg=(double[])rollingAvg.call(30, Last)",
|
|
61
|
-
"Std=(double[])rollingStd.call(30, Last, Avg)")\\
|
|
62
|
-
.ungroup()
|
|
63
|
-
minEdge = 0.5
|
|
64
|
-
maxPos = 3.0
|
|
65
|
-
liquidity = 1e6
|
|
66
|
-
|
|
67
|
-
targetPos = rollingCalc.updateView("Zscore=(Avg-Last)/Std if (Std > 0) else NULL_DOUBLE", "AdjZscore=signum(Zscore) * min(maxPos, max(abs(Zscore)-minEdge), 0.0)", "TargetPosition=(int)(liquidity*AdjZscore/Last)")\\
|
|
68
|
-
.dropColumns("ExchangeTimestamp", "Avg", "Std", "Zscore", "AdjZscore")
|
|
69
|
-
|
|
70
|
-
timeBinIndexes = targetPos.leftJoin(trades30min, "Sym", "Times=ExchangeTimestamp, SharesTraded=Size")\\
|
|
71
|
-
.updateView("StartIndex=binSearchIndex(Times, TimeBin-30*MINUTE, BS_LOWEST)", "EndIndex=binSearchIndex(Times, TimeBin, BS_HIGHEST)")\\
|
|
72
|
-
.dropColumns("Times")
|
|
73
|
-
|
|
74
|
-
shares30min = timeBinIndexes.updateView("SharesTraded30Min=sum(SharesTraded.subArray(StartIndex, EndIndex))")\\
|
|
75
|
-
.dropColumns("SharesTraded", "StartIndex", "EndIndex")
|
|
76
|
-
|
|
77
|
-
from math import copysign
|
|
78
|
-
class SimulatorState:
|
|
79
|
-
def __init__(self):
|
|
80
|
-
self.hm = {}
|
|
81
|
-
|
|
82
|
-
def __call__(self, sym, targetPos, shares10s):
|
|
83
|
-
if sym not in self.hm:
|
|
84
|
-
self.hm[sym] = [0.0] * 2
|
|
85
|
-
tradedAndPosition = self.hm[sym]
|
|
86
|
-
tradedAndPosition[0] = 0.0 if (targetPos == None) else copysign(1, targetPos - tradedAndPosition[1]) * min(abs(targetPos - tradedAndPosition[1]), shares10s * 0.1)
|
|
87
|
-
tradedAndPosition[1] += tradedAndPosition[0]
|
|
88
|
-
return jpy.array('double', list(tradedAndPosition))
|
|
89
|
-
|
|
90
|
-
ss = SimulatorState()
|
|
91
|
-
|
|
92
|
-
simulation = shares30min.update("Values=(double[])ss.call(Sym, TargetPosition, SharesTraded30Min)", "PositionChange=Values[0]", "Position=Values[1]")\\
|
|
93
|
-
.dropColumns("Values")
|
|
94
|
-
`,$t=`trades = db.t("LearnDeephaven", "StockTrades").where("Date=\`2017-08-25\`")
|
|
95
|
-
.headBy(3, "Sym")
|
|
96
|
-
.view("Sym", "Last")
|
|
97
|
-
|
|
98
|
-
summary = trades.view("Sym", "AvgPrice=Last").avgBy("Sym")
|
|
99
|
-
|
|
100
|
-
lj = summary.leftJoin(trades, "Sym", "Last")
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
rollingAvg = { rows, values ->
|
|
104
|
-
|
|
105
|
-
calculations = new double[values.size()]
|
|
106
|
-
|
|
107
|
-
sum = 0
|
|
108
|
-
n = 0
|
|
109
|
-
avg = 0
|
|
110
|
-
|
|
111
|
-
for (int i = 0; i < values.size(); ++i)
|
|
112
|
-
{
|
|
113
|
-
sum += values.get(i) //add each value to sum
|
|
114
|
-
if (i >= rows) sum -= values.get(i - rows) //subtract when needed
|
|
115
|
-
|
|
116
|
-
n = (i < rows) ? i + 1 : rows //n increments with i until i=rows
|
|
117
|
-
avg = sum / n //get updated average every iteration
|
|
118
|
-
|
|
119
|
-
calculations[i] = avg //store running average
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
return calculations //return an array of rolling averages
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
rollingStd = { rows, values, averages ->
|
|
126
|
-
calculations = new double[values.size()]
|
|
127
|
-
|
|
128
|
-
sum = 0
|
|
129
|
-
n = 0
|
|
130
|
-
|
|
131
|
-
for (int i = 0; i < values.size(); ++i)
|
|
132
|
-
{
|
|
133
|
-
sum = 0
|
|
134
|
-
for (int j = i; j >= 0 && j > i - rows; --j)
|
|
135
|
-
{
|
|
136
|
-
difference = values.get(j) - averages[i]
|
|
137
|
-
squareDiff = Math.pow(difference, 2)
|
|
138
|
-
sum += squareDiff
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
n = (i < rows) ? i + 1 : rows
|
|
142
|
-
variance = sum / n
|
|
143
|
-
standardDev = Math.sqrt(variance)
|
|
144
|
-
calculations[i] = standardDev
|
|
145
|
-
}
|
|
146
|
-
return calculations
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
trades = db.t("LearnDeephaven", "StockTrades")
|
|
150
|
-
.where("Date=\`2017-08-25\`")
|
|
151
|
-
.view("Sym", "Last", "Size", "ExchangeTimestamp")
|
|
152
|
-
|
|
153
|
-
trades30min = trades.updateView("TimeBin=lowerBin(ExchangeTimestamp, 30*MINUTE)")
|
|
154
|
-
.firstBy("Sym", "TimeBin")
|
|
155
|
-
|
|
156
|
-
rollingCalc = trades30min.by("Sym")
|
|
157
|
-
.update("Avg=(double[])rollingAvg.call(30, Last)","Std=(double[])rollingStd.call(30, Last, Avg)")
|
|
158
|
-
.ungroup()
|
|
159
|
-
|
|
160
|
-
minEdge = 0.5d
|
|
161
|
-
maxPos = 3.0d
|
|
162
|
-
liquidity = 1e6d
|
|
163
|
-
|
|
164
|
-
targetPos = rollingCalc.updateView("Zscore=(Std > 0) ? (Avg-Last)/Std : NULL_DOUBLE", "AdjZscore=signum(Zscore) * min(maxPos, max(abs(Zscore)-minEdge), 0.0)", "TargetPosition=(int)(liquidity*AdjZscore/Last)")
|
|
165
|
-
.dropColumns("ExchangeTimestamp", "Avg", "Std", "Zscore", "AdjZscore")
|
|
166
|
-
|
|
167
|
-
timeBinIndexes = targetPos.leftJoin(trades30min, "Sym", "Times=ExchangeTimestamp, SharesTraded=Size")
|
|
168
|
-
.updateView("StartIndex=binSearchIndex(Times, TimeBin-30*MINUTE, BS_LOWEST)", "EndIndex=binSearchIndex(Times, TimeBin, BS_HIGHEST)")
|
|
169
|
-
.dropColumns("Times")
|
|
170
|
-
|
|
171
|
-
shares30min = timeBinIndexes.updateView("SharesTraded30Min=sum(SharesTraded.subArray(StartIndex, EndIndex))")
|
|
172
|
-
.dropColumns("SharesTraded", "StartIndex", "EndIndex")
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
class SimulatorState
|
|
176
|
-
{
|
|
177
|
-
private HashMap<String, double[]> hm = new HashMap<>();
|
|
178
|
-
|
|
179
|
-
public double[] update(String sym, int targetPos, int shares10s)
|
|
180
|
-
{
|
|
181
|
-
if (!hm.containsKey(sym)) hm.put(sym, new double[2]);
|
|
182
|
-
|
|
183
|
-
double[] tradedAndPosition = hm.get(sym);
|
|
184
|
-
|
|
185
|
-
tradedAndPosition[0] =
|
|
186
|
-
isNull(targetPos) ? 0.0 : signum(targetPos - tradedAndPosition[1]) * min(abs(targetPos - tradedAndPosition[1]), shares10s * 0.1d)
|
|
187
|
-
tradedAndPosition[1] += tradedAndPosition[0];
|
|
188
|
-
|
|
189
|
-
return Arrays.copyOf(tradedAndPosition, tradedAndPosition.length);
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
ss = new SimulatorState()
|
|
193
|
-
|
|
194
|
-
simulation = shares30min.update("Values=(double[])ss.update(Sym, TargetPosition, SharesTraded30Min)", "PositionChange=Values[0]", "Position=Values[1]")
|
|
195
|
-
.dropColumns("Values")
|
|
196
|
-
|
|
197
|
-
`,ur={testPython:Et,testGroovy:$t};function At(){return e.jsxs("div",{...p("editors"),children:[e.jsx("h2",{className:"ui-title",children:"Editor"}),e.jsx("h5",{className:"sub-title",children:"Python"}),e.jsx("div",{style:{height:400,position:"relative"},children:e.jsx(tr,{settings:{language:"python",value:ur.testPython}})}),e.jsx("h5",{className:"sub-title",children:"Groovy"}),e.jsx("div",{style:{height:400,position:"relative"},children:e.jsx(tr,{settings:{language:"groovy",value:ur.testGroovy}})})]})}const Mt=[];class Rt extends ye{model;editedData;constructor(r,o=new qe){super(r),this.model=o,this.editedData=[]}get rowCount(){return this.model.rowCount}get columnCount(){return this.model.columnCount}get floatingTopRowCount(){return 3}get floatingBottomRowCount(){return 3}get isEditable(){return!0}isEditableRange(r){return this.isEditable}setValues(r){throw new Error("Method not implemented.")}delete(r){throw new Error("Method not implemented.")}get pendingRowCount(){return 0}set pendingRowCount(r){}get pendingDataMap(){return new Map}set pendingDataMap(r){}updateFrozenColumns(r){}getColumnIndexByName(r){return Number(r)}textForCell(r,o){return this.editedData[r]?.[o]??this.model.textForCell(r,o)}textForRowHeader(r){return this.model.textForRowHeader(r)}textForRowFooter(r){return this.model.textForRowHeader(r)}textForColumnHeader(r,o){return this.model.textForColumnHeader(r,o)}get hasExpandableRows(){return this.model.hasExpandableRows}get isExpandAllAvailable(){return!1}isRowExpandable(r){return this.model.isRowExpandable(r)}isRowExpanded(r){return this.model.isRowExpanded(r)}setRowExpanded(r,o,a=!1){this.model.setRowExpanded(r,o,a)}expandAll(){throw new Error("Expand all not implemented.")}collapseAll(){throw new Error("Collapse all not implemented.")}depthForRow(r){return this.model.depthForRow(r)}get columns(){return this.getCachedColumns(this.columnCount)}get groupedColumns(){return Mt}getCachedColumns=wr(r=>{const o=[];for(let a=0;a<r;a+=1)o.push({name:this.model.textForColumnHeader(a,0),type:"java.lang.String",description:`Mock column ${a}`});return o});get description(){return"A mock used for testing."}get customColumns(){return[]}set customColumns(r){}get formatColumns(){return[]}set formatColumns(r){}get sort(){return[]}set sort(r){}get filter(){return[]}set filter(r){}get partition(){return[]}set partition(r){}get partitionColumns(){return[]}set partitionColumns(r){}set formatter(r){}displayString(r){return`${r}`}valueForCell(r,o){return this.textForCell(r,o)}formatForCell(r,o){}setViewport(){this.dispatchEvent(new CustomEvent(ye.EVENT.UPDATED))}async setValueForCell(r,o,a){this.editedData[r]==null&&(this.editedData[r]=[]),this.editedData[r][o]=`${a}`,this.dispatchEvent(new CustomEvent(ye.EVENT.UPDATED))}async setValueForRanges(r,o){kr.forEachCell(r,(a,l)=>{this.setValueForCell(a,l,o)})}editValueForCell(r,o){return this.textForCell(r,o)}isValidForCell(r,o,a){return!0}async columnStatistics(r){throw new Error("Not defined in mock")}async commitPending(){throw new Error("Not defined in mock")}async export(){throw new Error("Not defined in mock")}get pendingDataErrors(){throw new Error("Not defined in mock")}get rollupConfig(){throw new Error("Not defined in mock")}set rollupConfig(r){throw new Error("Not defined in mock")}get selectDistinctColumns(){throw new Error("Not defined in mock")}set selectDistinctColumns(r){throw new Error("Not defined in mock")}async snapshot(r){throw new Error("Not defined in mock")}async textSnapshot(){throw new Error("Not defined in mock")}get totalsConfig(){throw new Error("Not defined in mock")}set totalsConfig(r){throw new Error("Not defined in mock")}valuesTable(r){throw new Error("Not defined in mock")}seekRow(r,o,a,l,s,i,n){throw new Error("Method not implemented.")}get columnHeaderGroups(){return[]}set columnHeaderGroups(r){}get columnHeaderGroupMap(){return new Map}getColumnHeaderParentGroup(){}get initialMovedColumns(){return[]}get initialMovedRows(){return[]}get initialColumnHeaderGroups(){return[]}}function Pt(){const[t]=u.useState(()=>new tt([["Matthew Austins","Toronto",35,22],["Doug Millgore","Toronto",14,33],["Bart Marchant","Boston",20,14],["Luigi Dabest","Pittsburgh",66,33]],["Name","Team","Goals","Assists"]));return e.jsx(oe,{model:t})}function Lt(){const[t]=u.useState(()=>new We({isEditable:!0,rowCount:Number.MAX_SAFE_INTEGER,columnCount:Number.MAX_SAFE_INTEGER}));return e.jsx(oe,{model:t})}function _t(){const[t]=u.useState(()=>new qe);return e.jsx(oe,{model:t})}function Bt(){const[t]=u.useState(()=>new it(1e9,1e6)),r=u.useRef(null),[o,a]=u.useState({top:0,bottom:0,left:0,right:0}),l=u.useCallback(h=>{const{top:c,bottom:g,left:m,right:v}=h;a({top:c,bottom:g,left:m,right:v})},[]),{top:s,bottom:i,left:n,right:d}=o;return u.useEffect(function(){let c=!1;return setTimeout(()=>{if(c)return;const g=[];for(let m=s;m<=i;m+=1){const v=[];for(let b=n;b<=d;b+=1)v.push(`${m},${b}`);g.push(v)}t.viewportData={rowOffset:s,columnOffset:n,data:g},r.current?.forceUpdate()},250),()=>{c=!0}},[s,i,n,d,t]),e.jsx(oe,{model:t,onViewChanged:l,ref:r})}function Ft(){const t=[100,50,20,10,-10,-20,-50,-30,100,0,1],r=[],o=new Map([[0,"proportional"],[1,"middle"],[2,"directional"],[6,"directional"],[7,"directional"],[8,"directional"],[9,"directional"],[10,"directional"]]),a=new Map([[3,"#72d7df"],[4,"#ac9cf4"]]);a.set(5,["#f3cd5b","#9edc6f"]),a.set(19,["#42f54b","#42b9f5","#352aa8"]);const l=new Map([[3,"#f3cd5b"],[4,"#ac9cf4"]]);l.set(5,["#f95d84","#f3cd5b"]),l.set(19,["#e05536","#e607de","#e6e207"]);const s=new Map([[6,"hide"],[7,"overlap"],[8,"overlap"],[9,"overlap"]]),i=new Map([[7,.5],[8,.5],[9,.5]]),n=new Map([[8,"RTL"],[10,"RTL"],[16,"RTL"],[19,"RTL"]]),d=new Map([[9,"left"],[11,"left"]]),h=new Map([[12,[{value:13,color:"white"},{value:14,color:"gray"}]]]);for(let g=0;g<13;g+=1)r.push(t.slice());r.push([70,60,30,20,-10,-30,-20,-50,80,50,10]),r.push([50,20,10,0,0,-10,-30,10,90,20,40]),r.push([-100,-90,-80,-70,-60,-50,-40,-30,-20,-10,0]),r.push(t.slice()),r.push([100,10.5,11.234,-20.5,-50,-2.5,-15.1234,94.254,25,44.4444,-50.5]),r.push([1e6,10,200,-2e4,-2e6,-25,-9e5,8e5,1e5,45e4,1]),r.push(t.slice()),r.push(t.slice()),r.push(t.slice());const[c]=u.useState(()=>new ft(r,o,a,l,s,i,n,d,h));return e.jsx(oe,{model:c})}function Ot(){const t=Dr(),[r]=u.useState(new Rt(t,new qe)),[o]=u.useState(new We),[a]=u.useState({autoSelectRow:!0}),[l]=u.useState({font:'12px Arial, "DejaVu Sans", sans-serif',rowHeight:40});return e.jsx("div",{children:e.jsxs(Fo.Provider,{value:l,children:[e.jsx("h2",{className:"ui-title",children:"Grid"}),e.jsx(C,{...N("grids-grid"),children:e.jsx(oe,{model:o,theme:a})}),e.jsx("h2",{className:"ui-title",children:"Static Data"}),e.jsx(C,{...N("grids-static"),height:200,children:e.jsx(Pt,{})}),e.jsx("h2",{className:"ui-title",children:"Data Bar"}),e.jsx(C,{...N("grids-data-bar"),height:500,children:e.jsx(Ft,{})}),e.jsx("h2",{className:"ui-title",children:"Quadrillion rows and columns"}),e.jsx(C,{...N("grids-quadrillion"),position:"relative",height:500,children:e.jsx(Lt,{})}),e.jsx("h2",{className:"ui-title",children:"Async example"}),e.jsx(C,{...N("grids-async"),position:"relative",height:500,children:e.jsx(Bt,{})}),e.jsx("h2",{className:"ui-title",children:"Tree Grid"}),e.jsx(C,{...N("grids-tree"),height:500,children:e.jsx(_t,{})}),e.jsx("h2",{className:"ui-title",children:"Iris Grid"}),e.jsx(C,{...N("grids-iris"),height:500,children:e.jsx(jo,{model:r})})]})})}async function gr(t){try{return await navigator.clipboard.writeText(t)}catch(r){throw new Error(`Unable to copy: ${r}`)}}const Vt="dh",Ut="vs",mr=(t,r)=>r.toLowerCase()+t.split("-").map(o=>o.charAt(0).toUpperCase()+o.slice(1)).join("");function Ar({message:t,message:{text:r}}){const[o,a]=u.useState(!1);return u.useEffect(function(){if(r==null||r==="")return;a(!0);const s=setTimeout(()=>{a(!1)},2e3);return()=>{clearTimeout(s)}},[t,r]),e.jsx("p",{className:o?"flash in":"flash out",children:r})}Ar.propTypes={message:xe.shape({text:xe.node}).isRequired};function Gt(){const[t,r]=u.useState(!0),[o,a]=u.useState(!0),[l,s]=u.useState(""),[i,n]=u.useState({text:""}),d=Object.values(Y).filter(c=>{const g=mr(c.iconName,c.prefix).toLowerCase().indexOf(l.replace(/\s/g,"").replace(/-/g,"").toLowerCase())!==-1,m=t&&c.prefix===Vt,v=o&&c.prefix===Ut;return g&&(m||v)}).map(c=>{const g=mr(c.iconName,c.prefix);return e.jsxs(x,{kind:"inline",className:"card",onClick:()=>{gr(g).then(()=>{n({text:e.jsxs("span",{children:[e.jsx(T,{icon:Y.vsOutput})," Copied text:"," ",e.jsx("strong",{children:g})]})})}).catch(m=>{n({text:e.jsx("span",{className:"text-danger",children:m.message})})})},children:[e.jsx(z,{size:"L",children:e.jsx(T,{icon:c})}),e.jsx("label",{title:g,children:g})]},g)}),h=`
|
|
198
|
-
<div className="fa-md fa-layers">
|
|
199
|
-
<FontAwesomeIcon
|
|
200
|
-
mask={vsOrganization}
|
|
201
|
-
icon={dhSquareFilled}
|
|
202
|
-
transform="down-7 right-7"
|
|
203
|
-
/>
|
|
204
|
-
<FontAwesomeIcon icon={dhAddSmall} />
|
|
205
|
-
</div>`;return e.jsxs("div",{...p("icons"),children:[e.jsx("h2",{className:"ui-title",children:"Icons"}),e.jsx("div",{className:"row",children:e.jsxs("div",{className:"col",children:[e.jsx("h4",{children:"Icon Composition"}),e.jsx("p",{children:"Icons can be used indivudally or composed together using font-awesome composition:"}),e.jsxs("div",{className:"icons",children:[e.jsx("div",{className:"icon card",children:e.jsx(T,{icon:Qe})}),e.jsx("div",{className:"icon card",children:e.jsx(T,{icon:Je})}),e.jsx("div",{className:"icon card",children:e.jsx(T,{icon:er})}),e.jsx("div",{className:"icon card",children:"="}),e.jsxs(x,{kind:"inline",className:"card",onClick:()=>{gr(h).then(()=>{n({text:e.jsx("span",{children:"Copied composition example"})})}).catch(c=>{n({text:e.jsx("span",{className:"text-danger",children:c.message})})})},children:[e.jsx("div",{className:"icon",children:e.jsxs("div",{className:"fa-md fa-layers",children:[e.jsx(T,{mask:Qe,icon:Je,transform:"down-7 right-7"}),e.jsx(T,{icon:er})]})}),e.jsx("label",{children:"Custom"})]})]})]})}),e.jsx("hr",{}),e.jsx("div",{className:"row",children:e.jsxs("div",{className:"col",children:[e.jsx("h4",{children:"All available icons"}),e.jsx("p",{children:"If you cannot find or compose a relevant icon for your use case, please request a new one to be created from design."}),e.jsxs("div",{className:"form-inline mb-3",children:[e.jsx("input",{type:"search",placeholder:"Basic icon search...",value:l,className:"form-control",onChange:c=>{s(c.target.value)}}),e.jsx("span",{className:"mx-2",children:"Show: "}),e.jsx(x,{kind:"inline",active:o,className:"mr-2",onClick:()=>a(!o),icon:o?Y.vsCheck:Y.vsClose,children:"VS ICONS"}),e.jsx(x,{kind:"inline",active:t,className:"mr-2",onClick:()=>r(!t),icon:t?Y.vsCheck:Y.vsClose,children:"DH ICONS"}),e.jsxs("small",{children:["(",d.length," icon",d.length===1?"":"s",")"]})]}),e.jsxs("div",{className:"icons",children:[d,d.length===0&&e.jsx("p",{className:"no-result",children:"No icons found."}),e.jsx(Ar,{message:i})]})]})})]})}const Ie=[{title:"Title 1",value:"Value 1"},{title:"Title 2",value:"Value 2"},{title:"Title 3",value:"Value 3"},{title:"Title 4",value:"Value 4"},{title:"Title 5",value:"Value 5"},{title:"Title 6",value:"Value 6"},{title:"Title 7",value:"Value 7"},{title:"Title 8",value:"Value 8"},{title:"Title 9",value:"Value 9"},{title:"Title 9",value:"Value 9"},{title:"Title 10",value:"Value 10"},{title:"Title 11",value:"Value 11"},{title:"Title 12",value:"Value 12"}],Ht=[{title:"1 minute",value:1*60*1e3},{title:"5 minutes",value:5*60*1e3},{title:"20 minutes",value:20*60*1e3},{title:"45 minutes",value:45*60*1e3},{title:"1 hour",value:1*60*60*1e3},{title:"4 hours",value:4*60*60*1e3}],vr=["Invalid","Valid"];function zt(){const[t,r]=u.useState(!1),[o,a]=u.useState(""),[l,s]=u.useState(!0),[i,n]=u.useState(!1),[d,h]=u.useState(!1),[c,g]=u.useState(!1),[m,v]=u.useState(null),[b,y]=u.useState("1"),[O,te]=u.useState(),[V,W]=u.useState("-DLiveTableMonitor.updateThreads=8 -DLiveTableMonitor.printDependencyInformation=false -Dassertion.heapDump=true -Drequire.heapDump=true -Dassertion.heapDump=true -Drequire.heapDump=true"),[ge,Pr]=u.useState(""),[Ye,Lr]=u.useState(vr[0]),_r=u.useCallback(w=>{y(w.target.value)},[]),ae=u.useCallback(()=>{r(!t)},[t]),Br=u.useCallback(w=>{a(w.target.value)},[]),Fr=u.useCallback(w=>{Pr(w.target.value)},[]);return e.jsxs("div",{...p("inputs",["style-guide-inputs"]),children:[e.jsx("h2",{className:"ui-title",children:"Inputs"}),e.jsxs("div",{className:"row",children:[e.jsx("div",{className:"col",children:e.jsxs("form",{children:[e.jsxs("div",{className:"form-group",children:[e.jsxs("label",{htmlFor:"exampleInput1",children:["Input Label",e.jsx("input",{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 imput"})]}),e.jsxs("div",{className:"form-group",children:[e.jsxs("label",{htmlFor:"exampleInput2",children:["Input Label",e.jsx("input",{type:"text",className:"form-control",id:"exampleInput2","aria-describedby":"emailHelp",placeholder:"Input Disabled",disabled:!0})]}),e.jsx("small",{className:"form-text text-muted",children:"Disabled input"})]}),e.jsx("div",{className:"form-group",children:e.jsxs("label",{htmlFor:"exampleInputPassword1",children:["Password",e.jsx("input",{type:"password",className:"form-control",id:"exampleInputPassword1",placeholder:"Password",defaultValue:"123456789"})]})}),e.jsx("div",{className:"form-group",children:e.jsx(wo,{value:o,placeholder:"Search Input",onChange:Br})})]})}),e.jsx("div",{className:"col",children:e.jsxs("form",{children:[e.jsx("h5",{children:" Checkboxes "}),e.jsx(_,{className:"form-group",checked:l,onChange:()=>s(!l),children:"Checked checkbox"}),e.jsx(_,{className:"form-group",checked:i,onChange:()=>n(!i),children:"Unchecked checkbox"}),e.jsx(_,{className:"form-group",disabled:!0,checked:null,children:"Disabled checkbox"}),e.jsx(_,{className:"form-group",isInvalid:!0,checked:d,onChange:()=>h(!d),children:"Invalid checkbox"}),e.jsx(_,{className:"form-group",checked:c,onChange:()=>g(!c),children:"Add radio button"}),e.jsx(_,{className:"form-group",checked:m,onChange:()=>{m==null?v(!0):v(m?!1:null)},children:"Indeterminate Cycle"})]})}),e.jsxs("div",{className:"col",children:[e.jsxs("form",{children:[e.jsx("h5",{children:" Radios "}),e.jsxs(Nr,{onChange:_r,value:b,children:[e.jsx(F,{value:"1",children:"Toggle this custom radio"}),e.jsx(F,{value:"2",children:"Or toggle this other custom radio"}),e.jsx(F,{value:"3",disabled:!0,children:"Disabled radio"}),e.jsx(F,{value:"4",isInvalid:!0,children:"Invalid radio"}),e.jsx(e.Fragment,{children:c&&e.jsx(F,{value:"5",children:"Extra radio item"})})]})]}),e.jsxs("div",{className:"form-group",children:[e.jsx("h5",{children:"Toggle Buttons"}),e.jsxs("div",{className:"form-inline justify-content-between",children:[e.jsx("label",{children:String(t)}),e.jsx(se,{on:t,onClick:ae})]}),e.jsxs("div",{className:"form-inline justify-content-between",children:[e.jsx("label",{children:String(!t)}),e.jsx(se,{on:!t,onClick:ae})]}),e.jsxs("div",{className:"form-inline justify-content-between",children:[e.jsx("label",{className:"isInvalid",children:"isInvalid"}),e.jsx(se,{on:!t,isInvalid:!0,onClick:ae})]}),e.jsxs("div",{className:"form-inline justify-content-between",children:[e.jsx("label",{className:"disabled",children:"disabled"}),e.jsx(se,{on:!t,disabled:!0,onClick:ae})]})]})]}),e.jsxs("div",{className:"col",children:[e.jsxs("div",{className:"form-group",children:[e.jsx("h5",{children:"Selection Menu"}),e.jsxs(ve,{onChange:w=>{},defaultValue:"0",className:"custom-select",children:[e.jsx("option",{disabled:!0,value:"0",children:"Custom Selection"}),e.jsx("option",{value:"1",children:"One"}),e.jsx("option",{value:"2",children:"Two"}),e.jsx("option",{value:"3",children:"Three"})]})]}),e.jsx("div",{className:"form-group",children:e.jsxs(ve,{onChange:w=>{},defaultValue:"0",className:"custom-select",disabled:!0,children:[e.jsx("option",{disabled:!0,value:"0",children:"Custom Selection"}),e.jsx("option",{value:"1",children:"One"}),e.jsx("option",{value:"2",children:"Two"}),e.jsx("option",{value:"3",children:"Three"})]})}),e.jsxs("div",{className:"form-group",children:[e.jsx("h5",{children:"Input with Select"}),e.jsx("div",{className:"input-group",children:e.jsx(Oe,{options:Ie,inputPlaceholder:"10.128.0.8",searchPlaceholder:"Search actions here"})}),e.jsx("br",{}),e.jsx("div",{className:"input-group",children:e.jsx(Oe,{options:Ie,inputPlaceholder:"10.128.0.8",searchPlaceholder:"Search actions here",disabled:!0})})]}),e.jsxs("div",{className:"form-group",children:[e.jsx("h5",{children:"AutoCompleteInput"}),e.jsx($o,{options:Ie,noMatchText:"No Matches."})]})]}),e.jsx("div",{className:"col",children:e.jsxs("div",{className:"form-group",children:[e.jsx("h5",{children:"Validate Label"}),e.jsx(we,{validationError:ge?void 0:"Value not set",isModified:!!ge,id:"validateInput1",labelText:`Input Field${t?" (disabled)":""}`,hintText:"Hint text",children:e.jsx("input",{disabled:t,type:"text",className:"form-control","aria-describedby":"emailHelp",placeholder:"Type to modify",onChange:Fr})}),e.jsx(we,{validationError:Ye==="Invalid"?"Invalid value":void 0,id:"validateLabelInput2",labelText:`Dropdown${t?" (disabled)":""}`,children:e.jsx(ve,{disabled:t,onChange:w=>Lr(w),value:Ye,children:vr.map(w=>e.jsx(Oo,{value:w,children:w},w))})}),e.jsx(we,{labelText:"Switch",isModified:t,children:e.jsx(se,{on:t,onClick:ae})})]})}),e.jsx("div",{className:"col",children:e.jsxs("div",{className:"form-group",children:[e.jsx("h5",{children:"Time Input"}),e.jsx(Ao,{}),e.jsx("br",{}),e.jsx("h5",{children:"Date Input"}),e.jsx(Mo,{}),e.jsx("br",{}),e.jsx("h5",{children:"DateTime Input"}),e.jsx(Vo,{}),e.jsx("br",{}),e.jsx("h5",{children:"Custom Timeselect"}),e.jsx(Ro,{options:Ht,value:O??null,onChange:te,customText:"Custom Timeout",placeholder:"Select a timeout",timeToValue:w=>w*1e3})]})})]}),e.jsx("div",{className:"row",children:e.jsx("div",{className:"col",children:e.jsxs("div",{className:"form-group",children:[e.jsx("h5",{children:"Auto Resize Textarea"}),e.jsx(Po,{value:V,delimiter:" -",onChange:W})]})})})]})}class Wt extends u.PureComponent{constructor(r){super(r),this.handleSelect=this.handleSelect.bind(this),this.handleViewportChange=this.handleViewportChange.bind(this),this.selectedItems=[],this.state={items:[],offset:0,itemCount:5e5}}handleSelect(r){const o=this.selectedItems.indexOf(r);o>=0?this.selectedItems.splice(o,1):this.selectedItems.push(r);const a=o<0,{offset:l}=this.state;let{items:s}=this.state;s=[].concat(s);const i=r-l;i>=0&&i<s.length&&(s[i].isSelected=a),this.setState({items:s})}handleViewportChange(r,o){const{itemCount:a}=this.state,l=o-r+1,s=Math.max(0,r-l),i=Math.min(o+l,a),n=[];for(let h=s;h<=i&&h<=a;h+=1){const c=`Item ${h}`,g=this.selectedItems.indexOf(h)>=0;n.push({value:c,isSelected:g})}const d=s;this.setState({offset:d,items:n})}render(){const{offset:r,items:o,itemCount:a}=this.state;return e.jsx(Uo,{itemCount:a,items:o,offset:r,onSelect:this.handleSelect,onViewportChange:this.handleViewportChange})}}class xr extends u.PureComponent{static defaultProps;static propTypes;constructor(r){super(r),this.handleSelect=this.handleSelect.bind(this),this.handleViewportChange=this.handleViewportChange.bind(this),this.selectedItems=[],this.state={items:[],offset:0,itemCount:5e5}}handleSelect(r){const{itemCount:o}=this.state;console.log("Item selected at index",r,"/",o)}handleViewportChange(r,o){const{itemCount:a}=this.state,l=o-r+1,s=Math.max(0,r-l),i=Math.min(o+l,a),n=[];for(let h=s;h<=i;h+=1){const c=`Item ${h}`,g=this.selectedItems.indexOf(h)>=0;n.push({value:c,isSelected:g})}const d=s;this.setState({offset:d,items:n})}render(){const{isMultiSelect:r}=this.props,{offset:o,items:a,itemCount:l}=this.state;return e.jsx(Co,{isMultiSelect:r,itemCount:l,items:a,offset:o,onSelect:this.handleSelect,onViewportChange:this.handleViewportChange})}}function qt(){return e.jsxs("div",{...p("item-list-inputs",["style-guide-inputs"]),children:[e.jsx("h2",{className:"ui-title",children:"Item Lists"}),e.jsxs("div",{className:"row",children:[e.jsx("div",{className:"col",children:e.jsxs("div",{className:"form-group",children:[e.jsx("h5",{children:"Select List"}),e.jsx("div",{style:{height:"300px"},children:e.jsx(Wt,{})})]})}),e.jsx("div",{className:"col",children:e.jsxs("div",{className:"form-group",children:[e.jsx("h5",{children:"Item List"}),e.jsx("div",{style:{height:"300px"},children:e.jsx(xr,{})})]})}),e.jsx("div",{className:"col",children:e.jsxs("div",{className:"form-group",children:[e.jsx("h5",{children:"Multi Select Item List"}),e.jsx("div",{style:{height:"300px"},children:e.jsx(xr,{isMultiSelect:!0})})]})})]})]})}function Kt(){const[t,r]=u.useState(0),[o,a]=u.useState(!0),l=()=>{r(0)};function s(i){return e.jsxs(ue.Fragment,{children:[e.jsxs(x,{kind:"primary",style:{marginBottom:"1rem",marginRight:"1rem"},onClick:()=>{r(i)},children:[i," ",i>1?"Actions":"Action"]}),e.jsx(So,{isOpen:t===i,headerText:"Header Text",bodyText:"This is where the body text goes",onConfirm:l,onCancel:i>=2?l:void 0,onDiscard:i>=3?l:void 0})]},i)}return e.jsxs("div",{...p("modals"),children:[e.jsx("h2",{className:"ui-title",children:"Basic Modals"}),e.jsx("div",{style:{padding:"1rem"},children:[1,2,3].map(i=>s(i))}),e.jsx("h2",{className:"ui-title",children:"Custom Modal"}),e.jsx("div",{style:{padding:"1rem"},children:e.jsx("div",{className:"modal-dialog",role:"dialog",children:e.jsxs("div",{className:"modal-content",children:[e.jsxs("div",{className:"modal-header",children:[e.jsx("h5",{className:"modal-title",children:"Modal title"}),e.jsx("button",{type:"button",className:"close","data-dismiss":"modal","aria-label":"Close",children:e.jsx("span",{"aria-hidden":"true",children:"×"})})]}),e.jsxs("div",{className:"modal-body",children:[e.jsx("p",{children:"Modal body text goes here."}),e.jsx(_,{checked:o,onChange:()=>a(!o),children:"Checked checkbox"})]}),e.jsxs("div",{className:"modal-footer",children:[e.jsx(x,{kind:"secondary","data-dismiss":"modal",onClick:()=>{},children:"Close"}),e.jsx(x,{kind:"primary",onClick:()=>{},children:"Save changes"})]})]})})})]})}function Yt(){return e.jsxs("div",{...p("progress"),children:[e.jsx("h2",{className:"ui-title",children:"Progress"}),e.jsxs("div",{className:"row",children:[e.jsxs("div",{className:"col",children:[e.jsx("h5",{children:"Determinate Progress Loader"}),e.jsx("br",{}),e.jsx("div",{className:"progress",style:{marginBottom:"1rem"},children:e.jsx("div",{className:"progress-bar bg-primary",style:{width:"25%"},"aria-valuenow":25,"aria-valuemin":0,"aria-valuemax":100})})]}),e.jsxs("div",{className:"col",children:[e.jsx("h5",{children:"Indeterminate Progress Spinner"}),e.jsx(Fe,{className:"loading-spinner-large"})]}),e.jsxs("div",{className:"col",children:[e.jsx("h5",{children:"Button Progress Spinner"}),e.jsx(x,{kind:"primary",className:"btn-spinner btn-cancelable",style:{minWidth:"10rem"},onClick:()=>{},children:e.jsxs("span",{children:[e.jsx(Fe,{className:"mr-2 loading-spinner-vertical-align"}),e.jsx("span",{className:"btn-normal-content",children:"Connecting"}),e.jsx("span",{className:"btn-hover-content",children:"Cancel"})]})})]})]})]})}class Zt extends u.PureComponent{constructor(r){super(r),this.handleSliderChange=this.handleSliderChange.bind(this),this.state={initialStartTime:24*60*60*.25,initialEndTime:24*60*60*.75,startTime:24*60*60*.25,endTime:24*60*60*.75}}handleSliderChange(r){const{startTime:o,endTime:a}=r;this.setState({startTime:o}),this.setState({endTime:a})}render(){const{startTime:r,endTime:o,initialStartTime:a,initialEndTime:l}=this.state,s=r!==a,i=o!==l;return e.jsxs("div",{...p("time-slider-inputs",["style-guide-inputs"]),children:[e.jsx("h2",{className:"ui-title",children:"Time Slider"}),e.jsx(Lo,{startTime:r,endTime:o,isStartModified:s,isEndModified:i,onChange:this.handleSliderChange}),e.jsxs("p",{style:s?{color:"var(--dh-color-modified)"}:{},children:["StartTime: ",ar.formatTime(r)]}),e.jsxs("p",{style:i?{color:"var(--dh-color-modified)"}:{},children:["EndTime: ",ar.formatTime(o)]})]})}}function Xt(){const r=[ze,He].map(o=>e.jsx(T,{icon:o},`${o.prefix}-${o.iconName}`));return e.jsxs("div",{...p("tooltips"),children:[e.jsx("h2",{className:"ui-title",title:"Make better looking tooltips than this one!",children:"Tooltips"}),e.jsxs("div",{className:"btn btn-primary",style:{cursor:"default",marginBottom:"1rem",marginRight:"1rem"},children:["Simple Tooltip",e.jsx(ee,{children:"Text only content"})]}),e.jsxs("div",{className:"btn btn-secondary",style:{cursor:"default",marginBottom:"1rem",marginRight:"1rem"},children:["Complex Tooltip",e.jsxs(ee,{children:[e.jsxs("div",{children:["Here is some ",e.jsx("i",{children:"cool"})," ",e.jsx("b",{children:"text"})]}),e.jsx("hr",{}),e.jsx("div",{children:"And some icons down here"}),e.jsxs("div",{children:[e.jsx(Fe,{className:"loading-spinner-vertical-align"}),r]})]})]}),e.jsxs("div",{className:"btn btn-success",style:{cursor:"default",marginBottom:"1rem",marginRight:"1rem"},children:["Interactive Tooltip",e.jsxs(ee,{interactive:!0,children:[e.jsx("div",{children:"This tooltip is interactive."}),e.jsx("hr",{}),e.jsx(x,{kind:"primary",onClick:()=>{alert("Button clicked!")},children:"Show Alert"})]})]})]})}function Qt(){return e.jsxs("div",{...p("typography"),children:[e.jsx("h2",{className:"ui-title",children:"Typography"}),e.jsxs("div",{className:"row",children:[e.jsxs("div",{className:"col",children:[e.jsx("h1",{className:"text-muted","data-no-menu":!0,children:"h1. Unused"}),e.jsx("h2",{className:"text-muted","data-no-menu":!0,children:"h2. Unused"}),e.jsx("h3",{className:"text-muted","data-no-menu":!0,children:"h3. Unused"}),e.jsx("h4",{"data-no-menu":!0,children:"h4. Standard Heading"}),e.jsx("h5",{"data-no-menu":!0,children:"h5. Small Heading"}),e.jsx("h6",{className:"text-muted","data-no-menu":!0,children:"h6. Unused"})]}),e.jsxs("div",{className:"col",children:[e.jsx("h4",{children:"Fonts"}),e.jsx("p",{children:"UI: Fira Sans;"}),e.jsx("p",{className:"text-monospace",children:"Code: Fira Mono;"}),e.jsx("p",{children:'Tables: Fira Sans; font-feature-settings: "tnum";'}),e.jsx("p",{children:"Default font-size: 14px = 1rem"})]})]})]})}class Jt extends u.PureComponent{static propTypes;static defaultProps;constructor(r){super(r),this.handleSelectionChange=this.handleSelectionChange.bind(this),this.handleViewportChange=this.handleViewportChange.bind(this),this.itemList=ue.createRef(),this.selectedItems=[],this.state={topRow:null,bottomRow:null}}focusItem(r){this.itemList.current&&this.itemList.current.focusItem(r)}handleSelectionChange(r){console.log("Selection changed",r);const{onSelectionChange:o}=this.props;o(r)}handleViewportChange(r,o){const{items:a}=this.props,l=o-r+1,s=Math.max(0,r-l),i=Math.min(o+l,a.length);this.setState({topRow:s,bottomRow:i})}getViewportItems=wr((r,o,a)=>r==null||o==null?[]:a.slice(r,o));render(){const{draggablePrefix:r,droppableId:o,isDragDisabled:a,isDropDisabled:l,isMultiSelect:s,items:i,selectedRanges:n}=this.props,{topRow:d,bottomRow:h}=this.state;return e.jsx(ce,{draggablePrefix:r,droppableId:o,isDragDisabled:a,isDropDisabled:l,isMultiSelect:s,itemCount:i.length,items:this.getViewportItems(d,h,i),offset:d??0,onSelectionChange:this.handleSelectionChange,onViewportChange:this.handleViewportChange,ref:this.itemList,selectedRanges:n})}}const Ee=["Draggable Only","Drag and Drop","Droppable Only"],ea=[{isDropDisabled:!0},{},{isDragDisabled:!0}],ra=(t="Item",r=1e3)=>{const o=[];for(let a=0;a<r;a+=1)o.push(`${t}-${a}`);return o};class pe extends u.Component{static handleDragStart(r){console.log("handleDragStart",r)}static handleDragUpdate(r){console.log("handleDragUpdate",r)}constructor(r){super(r),this.handleDragEnd=this.handleDragEnd.bind(this),this.animationFrame=null;const o=[],a=[],l=[];for(let s=0;s<Ee.length;s+=1)o[s]=ra(Ee[s]),a[s]=[],l[s]=ue.createRef();this.state={items:o,lists:l,selectedRanges:a}}componentWillUnmount(){this.animationFrame!=null&&cancelAnimationFrame(this.animationFrame)}handleDragEnd(r){console.log("handleDragEnd",r);const{source:o,destination:a}=r;if(o==null||a==null)return;const l=ce.getDraggableIndex(o.droppableId),s=ce.getDraggableIndex(a.droppableId),i=l===s;let n=a.index;i&&o.index<a.index&&(n+=1);let d=n;this.setState(({items:h,selectedRanges:c})=>{const g=[...h[l]],m=i?g:[...h[s]],v=nr.reorder(g,c[l],m,n),b=[...h];b[l]=g,b[s]=m,d=i?nr.adjustDestinationIndex(n,c[s]):n;const y=[...c];return y[l]=[],y[s]=[[d,d+v.length-1]],{items:b,selectedRanges:y}},()=>{this.animationFrame!=null&&cancelAnimationFrame(this.animationFrame),this.animationFrame=requestAnimationFrame(()=>{this.animationFrame=null;const{lists:h}=this.state;h[s]?.current?.focusItem(d)})})}handleSelectionChange(r,o){this.setState(({selectedRanges:a})=>{const l=[...a];return l[r]=[...o],{selectedRanges:l}})}getSelectionChangeHandler=Ze(r=>this.handleSelectionChange.bind(this,r));getDraggableList=Ze((r,o,a,l)=>e.jsx(Jt,{items:r,droppableId:ce.getDraggableId("drop-list",l),draggablePrefix:ce.getDraggableId("draggable-item",l),onSelectionChange:this.getSelectionChangeHandler(l),isMultiSelect:!0,ref:a,selectedRanges:o,...ea[l]}));render(){const{items:r,lists:o,selectedRanges:a}=this.state;return e.jsxs("div",{...p("draggable-lists",["style-guide-inputs"]),children:[e.jsx("h2",{className:"ui-title",children:"Drag and Drop Lists"}),e.jsx("div",{className:"row",children:e.jsx(Or,{onDragStart:pe.handleDragStart,onDragUpdate:pe.handleDragUpdate,onDragEnd:this.handleDragEnd,children:Ee.map((l,s)=>e.jsx("div",{className:"col",children:e.jsxs("div",{className:"form-group",children:[e.jsxs("h5",{children:[l," List"]}),e.jsx("div",{style:{height:"300px"},children:this.getDraggableList(r[s],a[s],o[s],s)})]})},l))})})]})}}function pr({count:t=5,activeKey:r=""}){const[o,a]=u.useState(r),[l,s]=u.useState(()=>{const c=[];for(let g=0;g<t;g+=1)c.push({key:`${g}`,title:`Tab ${g}`,isClosable:g>0});return c}),i=u.useCallback((c,g)=>{s(m=>{const v=[...m],[b]=v.splice(c,1);return v.splice(g,0,b),v})},[]),n=u.useCallback(c=>{a(c)},[]),d=u.useCallback(c=>{s(g=>g.filter(m=>m.key!==c))},[]),h=u.useCallback(c=>[{title:"Select Tab to the Left",group:10,order:10,disabled:l[0].key===c.key,action:()=>{const g=l.findIndex(m=>m.key===c.key);g>0&&a(l[g-1].key)}},{title:"Select Tab to the Right",group:30,order:10,disabled:l[l.length-1].key===c.key,action:()=>{const g=l.findIndex(m=>m.key===c.key);g<l.length-1&&a(l[g+1].key)}}],[l]);return e.jsx(Wo,{tabs:l,activeKey:o,onSelect:n,onReorder:i,onClose:d,makeContextActions:h})}let fr=0;function oa(){const t=fr;return fr+=1,t}const ta=$r(25);function $e(t=1,r=5){const o=Number(ta.next().value);return Math.floor(o*r)+t}function Ae(t,r=oa()){return{id:r,type:t}}function br(t=$e(),r=$e(),o=$e()){const a=[];for(let l=0;l<t;l+=1)a.push(Ae("SUBMENU"));for(let l=0;l<r;l+=1)a.push(Ae("PAGE"));for(let l=0;l<o;l+=1)a.push(Ae("SWITCH"));return a}function Me({type:t,id:r}){switch(t){case"SUBMENU":return`Submenu ${r}`;case"PAGE":return`Page ${r}`;case"SWITCH":return`Switch ${r}`}}function aa({type:t}){switch(t){case"SUBMENU":return uo;case"PAGE":return ho;case"SWITCH":return G}}function la(){const[t,r]=u.useState([]),[o,a]=u.useState(new Map),l=u.useCallback(c=>{r([...t,c])},[t,r]),s=u.useCallback(()=>{const c=[...t];c.pop(),r(c)},[t,r]),i=u.useCallback(()=>{const c=[t[0]];r(c)},[t,r]),n=u.useCallback(c=>{const g=o.get(c)??!1,m=new Map(o);m.set(c,!g),a(m)},[o,a]),d=u.useCallback(c=>{const g=t[t.length-1],{items:m}=g;if(!m)throw new Error("Navigation handleSelect triggered without items to select");const v=m[c];switch(v.type){case"PAGE":l({title:Me(v)});break;case"SUBMENU":l({title:Me(v),items:br()});break;case"SWITCH":n(v.id);break}},[t,n,l]);u.useEffect(function(){r([{title:"Navigation Menu",items:br()}])},[]);const h=u.useMemo(()=>t.map(({items:c,title:g},m)=>{if(!c)return e.jsx(ir,{onBack:s,onClose:i,title:g,children:e.jsx("div",{children:"Page content!"})},g);let v=null;if(c!=null){const b=c.map(y=>{const O=Me(y),te=aa(y);let V,W;return y.type==="SWITCH"&&(V=o.get(y.id)??!1,W=()=>{d(y.id)}),{title:O,icon:te,isOn:V,onChange:W}});v=e.jsx(Ho,{onSelect:d,items:b})}else v=e.jsx("div",{children:"Page content"});return e.jsx(ir,{onBack:m>0?s:void 0,onClose:m>0?i:void 0,title:g,children:v},g)}),[t,o,d,s,i]);return e.jsxs("div",{...p("navigations"),children:[e.jsx("h2",{className:"ui-title",children:"Navigations"}),e.jsx("div",{style:{marginBottom:"1rem"},children:e.jsx(pr,{count:100,activeKey:"15"})}),e.jsx("div",{style:{marginBottom:"1rem"},children:e.jsx(pr,{})}),e.jsx("div",{className:"navigations",children:e.jsx(Go,{children:h})})]})}const sa=`:root{--dh-color-gray-50: #1a171a;--dh-color-gray-75: #211f22;--dh-color-gray-100: #2d2a2e;--dh-color-gray-200: #322f33;--dh-color-gray-300: #373438;--dh-color-gray-400: #403e41;--dh-color-gray-500: #5b5a5c;--dh-color-gray-600: #929192;--dh-color-gray-700: #c0bfbf;--dh-color-gray-800: #f0f0ee;--dh-color-gray-900: #fcfcfa;--dh-color-gray-light: var(--dh-color-gray-900);--dh-color-gray-mid: var(--dh-color-gray-600);--dh-color-gray-dark: var(--dh-color-gray-300);--dh-color-black: var(--dh-color-gray-50);--dh-color-white: var(--dh-color-gray-800);--dh-color-true-black: #000000;--dh-color-true-white: #ffffff;--dh-color-red-100: #471521;--dh-color-red-200: #5d1b2b;--dh-color-red-300: #762336;--dh-color-red-400: #912b45;--dh-color-red-500: #ab3452;--dh-color-red-600: #c73f61;--dh-color-red-700: #e14c71;--dh-color-red-800: #f85e85;--dh-color-red-900: #ff7b9e;--dh-color-red-1000: #ff99b6;--dh-color-red-1100: #ffb4c9;--dh-color-red-1200: #ffcbd9;--dh-color-red-1300: #ffdee7;--dh-color-red-1400: #ffecf1;--dh-color-orange-100: #471800;--dh-color-orange-200: #5a2202;--dh-color-orange-300: #702f06;--dh-color-orange-400: #87390c;--dh-color-orange-500: #9f4612;--dh-color-orange-600: #b7541b;--dh-color-orange-700: #d06425;--dh-color-orange-800: #e67533;--dh-color-orange-900: #fa8648;--dh-color-orange-1000: #ffa069;--dh-color-orange-1100: #ffb98d;--dh-color-orange-1200: #ffcfaf;--dh-color-orange-1300: #ffe0cb;--dh-color-orange-1400: #ffeee2;--dh-color-yellow-100: #2e2700;--dh-color-yellow-200: #3d3300;--dh-color-yellow-300: #4d4100;--dh-color-yellow-400: #5f5005;--dh-color-yellow-500: #725f0b;--dh-color-yellow-600: #856e13;--dh-color-yellow-700: #9a811b;--dh-color-yellow-800: #ae9024;--dh-color-yellow-900: #c3a32f;--dh-color-yellow-1000: #d7b53a;--dh-color-yellow-1100: #eac448;--dh-color-yellow-1200: #fad459;--dh-color-yellow-1300: #ffe77a;--dh-color-yellow-1400: #fff3ac;--dh-color-chartreuse-100: #1f2b00;--dh-color-chartreuse-200: #2b3805;--dh-color-chartreuse-300: #39470b;--dh-color-chartreuse-400: #495611;--dh-color-chartreuse-500: #596718;--dh-color-chartreuse-600: #69781f;--dh-color-chartreuse-700: #7a8927;--dh-color-chartreuse-800: #8e9c30;--dh-color-chartreuse-900: #a1ae3a;--dh-color-chartreuse-1000: #b2c046;--dh-color-chartreuse-1100: #c2d153;--dh-color-chartreuse-1200: #d5e166;--dh-color-chartreuse-1300: #e3ee84;--dh-color-chartreuse-1400: #f0f7ae;--dh-color-celery-100: #122d15;--dh-color-celery-200: #173a1a;--dh-color-celery-300: #1e4b22;--dh-color-celery-400: #255c2a;--dh-color-celery-500: #2d6d32;--dh-color-celery-600: #36803d;--dh-color-celery-700: #409347;--dh-color-celery-800: #4da654;--dh-color-celery-900: #5fb967;--dh-color-celery-1000: #77ca7e;--dh-color-celery-1100: #93d999;--dh-color-celery-1200: #b2e5b7;--dh-color-celery-1300: #ceeed1;--dh-color-celery-1400: #e4f6e6;--dh-color-green-100: #22291d;--dh-color-green-200: #2d3625;--dh-color-green-300: #38462d;--dh-color-green-400: #445636;--dh-color-green-500: #50673d;--dh-color-green-600: #5b7a45;--dh-color-green-700: #678c4c;--dh-color-green-800: #74a053;--dh-color-green-900: #81b45a;--dh-color-green-1000: #8ec762;--dh-color-green-1100: #9bd96c;--dh-color-green-1200: #ace97e;--dh-color-green-1300: #c3f59d;--dh-color-green-1400: #dcfbc2;--dh-color-seafoam-100: #1f2925;--dh-color-seafoam-200: #263630;--dh-color-seafoam-300: #2f463e;--dh-color-seafoam-400: #37574b;--dh-color-seafoam-500: #3e6959;--dh-color-seafoam-600: #447b68;--dh-color-seafoam-700: #488f79;--dh-color-seafoam-800: #4ca388;--dh-color-seafoam-900: #4fb798;--dh-color-seafoam-1000: #54cba5;--dh-color-seafoam-1100: #5edeb8;--dh-color-seafoam-1200: #78edc8;--dh-color-seafoam-1300: #9ef8d7;--dh-color-seafoam-1400: #cbfce8;--dh-color-cyan-100: #142b2d;--dh-color-cyan-200: #1a373a;--dh-color-cyan-300: #21474b;--dh-color-cyan-400: #29585c;--dh-color-cyan-500: #31696e;--dh-color-cyan-600: #3a7a81;--dh-color-cyan-700: #438d94;--dh-color-cyan-800: #4da0a8;--dh-color-cyan-900: #59b4bc;--dh-color-cyan-1000: #65c6cf;--dh-color-cyan-1100: #74d6e1;--dh-color-cyan-1200: #88e6f1;--dh-color-cyan-1300: #a4f2fb;--dh-color-cyan-1400: #cafaff;--dh-color-blue-100: #112451;--dh-color-blue-200: #16306c;--dh-color-blue-300: #1d3d88;--dh-color-blue-400: #254ba4;--dh-color-blue-500: #2f5bc0;--dh-color-blue-600: #3b6bda;--dh-color-blue-700: #4c7dee;--dh-color-blue-800: #6390fa;--dh-color-blue-900: #7ca3ff;--dh-color-blue-1000: #97b6ff;--dh-color-blue-1100: #afc8ff;--dh-color-blue-1200: #c7d9ff;--dh-color-blue-1300: #dbe6ff;--dh-color-blue-1400: #ecf1ff;--dh-color-indigo-100: #1a1e62;--dh-color-indigo-200: #252a75;--dh-color-indigo-300: #32388a;--dh-color-indigo-400: #40489f;--dh-color-indigo-500: #4f58b4;--dh-color-indigo-600: #5f68c8;--dh-color-indigo-700: #707bdb;--dh-color-indigo-800: #828ded;--dh-color-indigo-900: #959ffa;--dh-color-indigo-1000: #aab2ff;--dh-color-indigo-1100: #bec5ff;--dh-color-indigo-1200: #d2d6ff;--dh-color-indigo-1300: #e1e5ff;--dh-color-indigo-1400: #eff0ff;--dh-color-purple-100: #311067;--dh-color-purple-200: #3d1f79;--dh-color-purple-300: #4b2f8c;--dh-color-purple-400: #5a3f9f;--dh-color-purple-500: #6850b1;--dh-color-purple-600: #7861c3;--dh-color-purple-700: #8873d5;--dh-color-purple-800: #9887e5;--dh-color-purple-900: #a99af3;--dh-color-purple-1000: #b9aefb;--dh-color-purple-1100: #cac1fe;--dh-color-purple-1200: #dad3ff;--dh-color-purple-1300: #e8e3ff;--dh-color-purple-1400: #f4effe;--dh-color-fuchsia-100: #450f44;--dh-color-fuchsia-200: #551a55;--dh-color-fuchsia-300: #662969;--dh-color-fuchsia-400: #77377e;--dh-color-fuchsia-500: #884794;--dh-color-fuchsia-600: #9858aa;--dh-color-fuchsia-700: #a76bbf;--dh-color-fuchsia-800: #b67ed4;--dh-color-fuchsia-900: #c592e5;--dh-color-fuchsia-1000: #d2a7f0;--dh-color-fuchsia-1100: #debcf6;--dh-color-fuchsia-1200: #e9cff9;--dh-color-fuchsia-1300: #f2e0fb;--dh-color-fuchsia-1400: #f9edfc;--dh-color-magenta-100: #520427;--dh-color-magenta-200: #641034;--dh-color-magenta-300: #791e45;--dh-color-magenta-400: #8d2d57;--dh-color-magenta-500: #a13c69;--dh-color-magenta-600: #b54c7d;--dh-color-magenta-700: #ca5d93;--dh-color-magenta-800: #dc70a8;--dh-color-magenta-900: #ee83ba;--dh-color-magenta-1000: #fb99cd;--dh-color-magenta-1100: #ffb1dc;--dh-color-magenta-1200: #ffc9e7;--dh-color-magenta-1300: #ffddf0;--dh-color-magenta-1400: #ffecf6}
|
|
206
|
-
`,ia=`:root{--dh-color-bg: var(--dh-color-black);--dh-color-content-bg: var(--dh-color-gray-100);--dh-color-subdued-content-bg: var(--dh-color-gray-75);--dh-color-surface-bg: var(--dh-color-gray-200);--dh-color-fg: var(--dh-color-white);--dh-color-border: var(--dh-color-gray-500);--dh-color-hover-border: var(--dh-color-gray-600);--dh-color-border-focus: var(--dh-color-accent-800);--dh-color-disabled-bg: var(--dh-color-gray-300);--dh-color-scrollbar: var(--dh-color-fg);--dh-color-heading-text: var(--dh-color-gray-900);--dh-color-text: var(--dh-color-gray-800);--dh-color-text-disabled: var(--dh-color-gray-600);--dh-color-text-highlight: color-mix( in srgb, var(--dh-color-blue-700) 30%, transparent );--dh-color-text-hover: var(--dh-color-gray-900);--dh-color-contrast-dark: var(--dh-color-gray-50);--dh-color-contrast-light: var(--dh-color-gray-900);--dh-color-accent-100: var(--dh-color-blue-100);--dh-color-accent-200: var(--dh-color-blue-200);--dh-color-accent-300: var(--dh-color-blue-300);--dh-color-accent-400: var(--dh-color-blue-400);--dh-color-accent-500: var(--dh-color-blue-500);--dh-color-accent-600: var(--dh-color-blue-600);--dh-color-accent-700: var(--dh-color-blue-700);--dh-color-accent-800: var(--dh-color-blue-800);--dh-color-accent-900: var(--dh-color-blue-900);--dh-color-accent-1000: var(--dh-color-blue-1000);--dh-color-accent-1100: var(--dh-color-blue-1100);--dh-color-accent-1200: var(--dh-color-blue-1200);--dh-color-accent-1300: var(--dh-color-blue-1300);--dh-color-accent-1400: var(--dh-color-blue-1400);--dh-color-accent: var(--dh-color-accent-600);--dh-color-accent-bg: var(--dh-color-accent);--dh-color-accent-hover-bg: var(--dh-color-accent-500);--dh-color-accent-down-bg: var(--dh-color-accent-400);--dh-color-accent-key-focus-bg: var(--dh-color-accent-500);--dh-color-accent-contrast: var(--dh-color-contrast-light);--dh-color-gray-bg: var(--dh-color-gray-700);--dh-color-red-bg: var(--dh-color-red-700);--dh-color-orange-bg: var(--dh-color-orange-800);--dh-color-yellow-bg: var(--dh-color-yellow-1000);--dh-color-chartreuse-bg: var(--dh-color-chartreuse-900);--dh-color-celery-bg: var(--dh-color-celery-800);--dh-color-green-bg: var(--dh-color-green-700);--dh-color-seafoam-bg: var(--dh-color-seafoam-700);--dh-color-cyan-bg: var(--dh-color-cyan-700);--dh-color-blue-bg: var(--dh-color-blue-700);--dh-color-indigo-bg: var(--dh-color-indigo-700);--dh-color-purple-bg: var(--dh-color-purple-700);--dh-color-fuchsia-bg: var(--dh-color-fuchsia-700);--dh-color-magenta-bg: var(--dh-color-magenta-700);--dh-color-visual-gray: var(--dh-color-gray-600);--dh-color-visual-red: var(--dh-color-red-800);--dh-color-visual-orange: var(--dh-color-orange-900);--dh-color-visual-yellow: var(--dh-color-yellow-1200);--dh-color-visual-chartreuse: var(--dh-color-chartreuse-1100);--dh-color-visual-celery: var(--dh-color-celery-1000);--dh-color-visual-green: var(--dh-color-green-1100);--dh-color-visual-seafoam: var(--dh-color-seafoam-1100);--dh-color-visual-cyan: var(--dh-color-cyan-1100);--dh-color-visual-blue: var(--dh-color-blue-600);--dh-color-visual-indigo: var(--dh-color-indigo-900);--dh-color-visual-purple: var(--dh-color-purple-1100);--dh-color-visual-fuchsia: var(--dh-color-fuchsia-900);--dh-color-visual-magenta: var(--dh-color-magenta-900);--dh-color-visual-positive: var(--dh-color-green-1200);--dh-color-visual-negative: var(--dh-color-red-800);--dh-color-visual-notice: var(--dh-color-yellow-1200);--dh-color-visual-info: var(--dh-color-cyan-1100);--dh-color-focus: var(--dh-color-blue-800);--dh-color-focus-border: var(--dh-color-blue-800);--dh-color-focus-ring: var(--dh-color-focus);--dh-color-highlight-active: color-mix( in srgb, var(--dh-color-visual-gray) 20%, transparent );--dh-color-highlight-hover: color-mix( in srgb, var(--dh-color-visual-gray) 18%, transparent );--dh-color-highlight-invalid: color-mix( in srgb, var(--dh-color-visual-red) 15%, transparent );--dh-color-highlight-selected: color-mix( in srgb, var(--dh-color-accent) 9%, transparent );--dh-color-highlight-selected-hover: color-mix( in srgb, var(--dh-color-accent) 15%, transparent );--dh-color-keyboard-selected-bg: color-mix( in srgb, var(--dh-color-accent) 50%, transparent );--dh-color-dropshadow: color-mix( in srgb, var(--dh-color-true-black) 80%, transparent );--dh-color-overlay-modal-bg: color-mix( in srgb, var(--dh-color-visual-gray) 60%, transparent );--dh-color-overlay-hover-bg: color-mix( in srgb, var(--dh-color-visual-gray) 8%, transparent );--dh-color-negative: var(--dh-color-red-600);--dh-color-negative-bg: var(--dh-color-negative);--dh-color-negative-hover-bg: var(--dh-color-red-500);--dh-color-negative-down-bg: var(--dh-color-red-400);--dh-color-negative-key-focus-bg: var(--dh-color-red-500);--dh-color-negative-contrast: var(--dh-color-contrast-light);--dh-color-neutral: var(--dh-color-gray-500);--dh-color-neutral-bg: var(--dh-color-neutral);--dh-color-neutral-hover-bg: var(--dh-color-gray-300);--dh-color-neutral-down-bg: var(--dh-color-gray-200);--dh-color-neutral-key-focus-bg: var(--dh-color-gray-300);--dh-color-neutral-contrast: var(--dh-color-contrast-light);--dh-color-neutral-subdued-bg: var(--dh-color-gray-400);--dh-color-neutral-subdued-hover-bg: var(--dh-color-gray-300);--dh-color-neutral-subdued-down-bg: var(--dh-color-gray-200);--dh-color-neutral-subdued-key-focus-bg: var(--dh-color-gray-300);--dh-color-positive: var(--dh-color-green-900);--dh-color-positive-bg: var(--dh-color-positive);--dh-color-positive-hover-bg: var(--dh-color-green-800);--dh-color-positive-down-bg: var(--dh-color-green-700);--dh-color-positive-key-focus-bg: var(--dh-color-green-800);--dh-color-positive-contrast: var(--dh-color-contrast-dark);--dh-color-info: var(--dh-color-indigo-900);--dh-color-info-bg: var(--dh-color-info);--dh-color-info-hover-bg: var(--dh-color-indigo-800);--dh-color-info-down-bg: var(--dh-color-indigo-700);--dh-color-info-key-focus-bg: var(--dh-color-indigo-800);--dh-color-info-contrast: var(--dh-color-contrast-dark);--dh-color-notice: var(--dh-color-yellow-1000);--dh-color-notice-bg: var(--dh-color-notice);--dh-color-notice-hover-bg: var(--dh-color-yellow-900);--dh-color-notice-down-bg: var(--dh-color-yellow-800);--dh-color-notice-key-focus-bg: var(--dh-color-yellow-1000);--dh-color-notice-contrast: var(--dh-color-contrast-dark);--dh-color-modified: var(--dh-color-yellow-1300)}
|
|
207
|
-
`,na=`:root{--dh-color-chart-bg: var(--dh-color-content-bg);--dh-color-chart-plot-bg: var(--dh-color-gray-200);--dh-color-chart-title: var(--dh-color-text);--dh-color-chart-legend-fg: var(--dh-color-text);--dh-color-chart-colorway: var(--dh-color-visual-cyan) var(--dh-color-visual-green) var(--dh-color-visual-yellow) var(--dh-color-visual-purple) var(--dh-color-visual-orange) var(--dh-color-visual-red) var(--dh-color-visual-chartreuse) var(--dh-color-visual-fuchsia) var(--dh-color-visual-seafoam) var(--dh-color-visual-magenta) var(--dh-color-white);--dh-color-chart-grid: var(--dh-color-gray-400);--dh-color-chart-axis-line: var(--dh-color-gray-500);--dh-color-chart-axis-line-zero: var(--dh-color-gray-700);--dh-color-chart-error-band-line: var(--dh-color-green-1400);--dh-color-chart-ohlc-increase: var(--dh-color-visual-green);--dh-color-chart-ohlc-decrease: var(--dh-color-visual-red);--dh-color-plotly-axis-text: var(--dh-color-gray-500);--dh-color-plotly-zoombox: color-mix( in srgb, var(--dh-color-true-black) 50%, transparent );--dh-color-plotly-zoombox-corners-fill: var(--dh-color-white);--dh-color-plotly-zoombox-corners-stroke: var(--dh-color-gray-75);--dh-color-plotly-modebar-btn-active: color-mix( in srgb, var(--dh-color-true-white) 30%, transparent );--dh-color-plotly-modebar-btn-warning: var(--dh-color-visual-orange);--dh-color-plotly-notifier-note-bg: var(--dh-color-gray-500);--dh-color-chart-geo-coastline: var(--dh-color-gray-200);--dh-color-chart-geo-land: var(--dh-color-gray-700);--dh-color-chart-geo-ocean: var(--dh-color-gray-300);--dh-color-chart-geo-lake: var(--dh-color-blue-200);--dh-color-chart-geo-river: var(--dh-color-blue-200)}
|
|
208
|
-
`,ca=`:root{--dh-color-editor-bg: var(--dh-color-content-bg);--dh-color-editor-fg: var(--dh-color-gray-900);--dh-color-editor-error-fg: var(--dh-color-visual-red);--dh-color-editor-line-number-fg: var(--dh-color-gray-600);--dh-color-editor-line-number-active-fg: var(--dh-color-gray-800);--dh-color-editor-line-highlight-bg: var(--dh-color-gray-200);--dh-color-editor-selection-bg: var(--dh-color-text-highlight);--dh-color-editor-inactive-selection-bg: var(--dh-color-gray-300);--dh-color-editor-selection-highlight-bg: var(--dh-color-gray-500);--dh-color-editor-word-highlight-bg: var(--dh-color-gray-500);--dh-color-editor-comment: var(--dh-color-gray-700);--dh-color-editor-delimiter: var(--dh-color-gray-700);--dh-color-editor-identifier-js: var(--dh-color-visual-yellow);--dh-color-editor-identifier-namespace: var(--dh-color-visual-red);--dh-color-editor-identifier: var(--dh-color-gray-900);--dh-color-editor-keyword: var(--dh-color-visual-cyan);--dh-color-editor-number: var(--dh-color-visual-purple);--dh-color-editor-operator: var(--dh-color-visual-red);--dh-color-editor-predefined: var(--dh-color-visual-green);--dh-color-editor-storage: var(--dh-color-visual-red);--dh-color-editor-string-delim: var(--dh-color-gray-700);--dh-color-editor-string: var(--dh-color-visual-yellow);--dh-color-editor-bracket-fg1: var(--dh-color-visual-yellow);--dh-color-editor-bracket-fg2: var(--dh-color-visual-purple);--dh-color-editor-bracket-fg3: var(--dh-color-visual-blue);--dh-color-editor-bracket-fg4: var(--dh-color-visual-yellow);--dh-color-editor-bracket-fg5: var(--dh-color-visual-purple);--dh-color-editor-bracket-fg6: var(--dh-color-visual-blue);--dh-color-editor-unexpected-bracket-fg: var(--dh-color-visual-negative);--dh-color-editor-focus-border: var(--dh-color-focus-border);--dh-color-editor-input-option-active-border: var(--dh-color-focus-ring);--dh-color-editor-input-bg: var(--dh-color-bg);--dh-color-editor-input-fg: var(--dh-color-text);--dh-color-editor-input-border: var(--dh-color-border);--dh-color-editor-context-menu-bg: var(--dh-color-gray-300);--dh-color-editor-context-menu-fg: var(--dh-color-text);--dh-color-editor-menu-selection-bg: var(--dh-color-highlight-hover);--dh-color-editor-menu-selection-fg: var(--dh-color-text);--dh-color-editor-log-date: var(--dh-color-gray-700);--dh-color-editor-log-error: var(--dh-color-visual-red);--dh-color-editor-log-info: var(--dh-color-visual-cyan);--dh-color-editor-log-stdout: var(--dh-color-gray-900);--dh-color-editor-log-warn: var(--dh-color-visual-yellow);--dh-color-editor-log-debug: var(--dh-color-visual-purple);--dh-color-editor-log-trace: var(--dh-color-visual-green);--dh-color-editor-find-bg: var(--dh-color-gray-200);--dh-color-editor-find-match-bg: var(--dh-color-highlight-selected);--dh-color-editor-find-match-highlight-bg: var( --dh-color-highlight-selected-hover );--dh-color-editor-find-option-active-bg: var(--dh-color-accent-700);--dh-color-editor-find-option-active-fg: var(--dh-color-gray-900);--dh-color-editor-suggest-bg: var(--dh-color-gray-200);--dh-color-editor-suggest-border: var(--dh-color-gray-400);--dh-color-editor-suggest-fg: var(--dh-color-text);--dh-color-editor-suggest-selected-bg: var(--dh-color-highlight-selected);--dh-color-editor-suggest-selected-fg: var(--dh-color-text);--dh-color-editor-suggest-highlight-fg: var(--dh-color-accent-700);--dh-color-editor-suggest-focus-highlight-fg: var(--dh-color-accent-700);--dh-color-editor-suggest-hover-bg: var(--dh-color-highlight-hover);--dh-color-editor-link-foreground: var(--dh-color-accent-1000);--dh-color-editor-link-active-fg: var(--dh-color-accent-1100)}
|
|
209
|
-
`,da=`:root{--dh-color-grid-bg: var(--dh-color-gray-75);--dh-color-grid-header-bg: var(--dh-color-gray-100);--dh-color-grid-header-text: var(--dh-color-heading-text);--dh-color-grid-header-separator: var(--dh-color-gray-50);--dh-color-grid-header-separator-hover: var(--dh-color-gray-600);--dh-color-grid-header-separator-hidden-hover: var(--dh-color-accent-700);--dh-color-grid-header-sort-bar: var(--dh-color-visual-purple);--dh-color-grid-header-reverse-bar: var(--dh-color-visual-green);--dh-color-grid-header-bar-casing: var(--dh-color-gray-50);--dh-color-grid-row-0-bg: var(--dh-color-gray-300);--dh-color-grid-row-1-bg: var(--dh-color-gray-100);--dh-color-grid-row-hover-bg: var(--dh-color-highlight-hover);--dh-color-grid-row-hover-bg-selected: var( --dh-color-highlight-selected-hover );--dh-color-grid-row-shadow-alpha: .15;--dh-color-grid-selection: var(--dh-color-highlight-selected);--dh-color-grid-selection-outline: var(--dh-color-accent-900);--dh-color-grid-selection-outline-casing: var(--dh-color-gray-50);--dh-color-grid-scroll-bar-active-selection-tick: var(--dh-color-accent-400);--dh-color-grid-scroll-bar-bg: var(--dh-color-gray-100);--dh-color-grid-scroll-bar-hover-bg: var(--dh-color-gray-200);--dh-color-grid-scroll-bar-casing: var(--dh-color-gray-400);--dh-color-grid-scroll-bar-corner: var(--dh-color-gray-100);--dh-color-grid-scroll-bar: var(--dh-color-gray-500);--dh-color-grid-scroll-bar-hover: var(--dh-color-gray-600);--dh-color-grid-scroll-bar-active: var(--dh-color-gray-700);--dh-color-grid-text: var(--dh-color-text);--dh-color-grid-text-hyperlink: var(--dh-color-accent-1000);--dh-color-grid-text-pending: var(--dh-color-yellow-1300);--dh-color-grid-text-error: var(--dh-color-visual-negative);--dh-color-grid-date: var(--dh-color-visual-notice);--dh-color-grid-number-positive: var(--dh-color-visual-positive);--dh-color-grid-number-negative: var(--dh-color-visual-negative);--dh-color-grid-number-zero: var(--dh-color-visual-notice);--dh-color-grid-string-null: var(--dh-color-gray-600);--dh-color-grid-filter-bar-active-bg: color-mix( in srgb, var(--dh-color-accent-700) 50%, transparent );--dh-color-grid-filter-bar-active: var(--dh-color-accent-600);--dh-color-grid-filter-bar-expanded-bg: var(--dh-color-gray-200);--dh-color-grid-filter-bar-expanded-active-bg: color-mix( in srgb, var(--dh-color-accent-1000) 19%, transparent );--dh-color-grid-filter-bar-expanded-active-cell-bg: color-mix( in srgb, var(--dh-color-accent-700) 32%, transparent );--dh-color-grid-filter-bar-separator: var(--dh-color-gray-600);--dh-color-grid-filter-bar-error: var(--dh-color-visual-negative);--dh-color-grid-filter-icon: var(--dh-color-accent-600);--dh-color-grid-context-menu-sort-icon: var(--dh-color-visual-purple);--dh-color-grid-context-menu-reverse-icon: var(--dh-color-visual-green);--dh-color-grid-column-linker-hover-bg: var( --dh-color-highlight-selected-hover );--dh-color-grid-column-grouped-divider: var(--dh-color-gray-50);--dh-color-grid-tree-line: var(--dh-color-gray-500);--dh-color-grid-tree-marker: var(--dh-color-gray-700);--dh-color-grid-tree-marker-hover: var(--dh-color-gray-900);--dh-color-grid-floating-row: var(--dh-color-gray-300);--dh-color-grid-floating-row-bg: var(--dh-color-gray-200);--dh-color-grid-floating-divider-inner: var(--dh-color-gray-200);--dh-color-grid-floating-divider-outer: var(--dh-color-gray-50);--dh-color-grid-overflow-button: var(--dh-color-gray-700);--dh-color-grid-overflow-button-hover: var(--dh-color-gray-900);--dh-color-grid-data-bar-positive: var(--dh-color-visual-positive);--dh-color-grid-data-bar-negative: var(--dh-color-visual-negative);--dh-color-grid-data-bar-marker: var(--dh-color-white);--dh-color-grid-data-bar-zero-line: var(--dh-color-gray-300);--dh-color-grid-scrim: var(--dh-color-gray-50)}
|
|
210
|
-
`,ha=`:root{--dh-color-loading-spinner-primary: var(--dh-color-accent-bg);--dh-color-loading-spinner-secondary: color-mix( in srgb, var(--dh-color-gray-800) 50%, transparent );--dh-color-quickactions-bg: color-mix( in srgb, var(--dh-color-visual-gray) 90%, transparent );--dh-color-radial-reaction: color-mix( in srgb, var(--dh-color-visual-gray) 60%, transparent );--dh-color-colorpicker-border: color-mix( in srgb, var(--dh-color-visual-gray) 10%, transparent );--dh-logo-img: var(--dh-logo-dark-img);--dh-color-login-form-bg: var(--dh-color-gray-400);--dh-color-login-status-message: var(--dh-color-gray-600);--dh-color-login-logo-bg: var(--dh-color-gray-900);--dh-color-login-footer-fg: var(--dh-color-gray-700);--dh-color-random-area-plot-animation-fg-fill: color-mix( in srgb, var(--dh-color-accent) 8%, transparent );--dh-color-random-area-plot-animation-fg-stroke: color-mix( in srgb, var(--dh-color-accent) 20%, transparent );--dh-color-random-area-plot-animation-bg: var(--dh-color-gray-75);--dh-color-random-area-plot-animation-grid: var(--dh-color-gray-300);--dh-color-action-bg: var(--dh-color-gray-75);--dh-color-action-fg: var(--dh-color-text);--dh-color-action-border: var(--dh-color-border);--dh-color-action-down-bg: var(--dh-color-gray-300);--dh-color-action-hover-bg: var(--dh-color-gray-50);--dh-color-action-hover-fg: var(--dh-color-text-hover);--dh-color-action-hover-border: var(--dh-color-hover-border);--dh-color-action-active-bg: var(--dh-color-gray-800);--dh-color-action-active-fg: var(--dh-color-gray-50);--dh-color-action-active-border: var(--dh-color-gray-800);--dh-color-action-active-hover-bg: var(--dh-color-gray-900);--dh-color-action-active-hover-fg: var(--dh-color-gray-50);--dh-color-action-active-hover-border: var(--dh-color-gray-900);--dh-color-action-disabled-bg: transparent;--dh-color-action-disabled-fg: var(--dh-color-text-disabled);--dh-color-action-disabled-border: var(--dh-color-gray-300);--dh-color-icon-fg: var(--dh-color-gray-700);--dh-color-icon-disabled-fg: var(--dh-color-gray-400);--dh-color-input-bg: var(--dh-color-gray-75);--dh-color-input-fg: var(--dh-color-text);--dh-color-input-border: var(--dh-color-border);--dh-color-input-placeholder: var(--dh-color-gray-600);--dh-color-input-active-bg: var(--dh-color-input-bg);--dh-color-input-disabled-bg: var(--dh-color-disabled-bg);--dh-color-input-disabled-border: transparent;--dh-color-input-disabled-fg: var(--dh-color-text-disabled);--dh-color-input-hover-border: var(--dh-color-hover-border);--dh-color-input-focus-border: var(--dh-color-border-focus);--dh-color-search-icon: var(--dh-color-fg);--dh-color-form-control-error: var(--dh-color-visual-negative);--dh-color-form-control-error-shadow: color-mix( in srgb, var(--dh-color-visual-negative) 25%, transparent );--dh-color-label-text: var(--dh-color-gray-700);--dh-color-selector-fg: var(--dh-color-icon-fg);--dh-color-selector-bg: var(--dh-color-gray-75);--dh-color-selector-hover-bg: var(--dh-color-gray-50);--dh-color-selector-hover-fg: var(--dh-color-gray-900);--dh-color-selector-disabled-fg: var(--dh-color-icon-disabled-fg);--dh-color-item-list-bg: transparent;--dh-color-item-list-active-bg: var(--dh-color-highlight-active);--dh-color-item-list-hover-bg: var(--dh-color-highlight-hover);--dh-color-item-list-selected-fg: var(--dh-color-text);--dh-color-item-list-selected-bg: var(--dh-color-highlight-selected);--dh-color-item-list-selected-hover-bg: var( --dh-color-highlight-selected-hover );--dh-color-item-list-selected-inactive-bg: var(--dh-color-gray-200);--dh-color-item-list-selected-border: var(--dh-color-accent-900);--dh-color-item-list-drop-target-fg: var(--dh-color-white);--dh-color-item-list-keyboard-selected-bg: color-mix( in srgb, var(--dh-color-accent) 50%, transparent );--dh-color-golden-layout-tab-header-bg: var(--dh-color-gray-75);--dh-color-golden-layout-tab-bg: var(--dh-color-gray-75);--dh-color-golden-layout-tab-selected-bg: var(--dh-color-content-bg);--dh-color-menu-item-fg: var(--dh-color-gray-700);--dh-color-hr: var(--dh-color-gray-300);--dh-color-dialog-title-fg: var(--dh-color-heading-text);--dh-color-dialog-fg: var(--dh-color-text);--dh-color-popover-bg: var(--dh-color-bg);--dh-color-tooltip-bg: var(--dh-color-gray-400);--dh-color-tooltip-fg: var(--dh-color-fg);--dh-color-tooltip-box-shadow: var(--dh-color-dropshadow);--dh-color-well-bg: color-mix( in srgb, var(--dh-color-visual-gray) 2%, transparent );--dh-color-well-border: color-mix( in srgb, var(--dh-color-visual-gray) 5%, transparent )}
|
|
211
|
-
`,ua="_themeColorsPalette_1mdfo_1",ga="_swatch_1mdfo_7",ma="_themeColors_1mdfo_1",va="_label_1mdfo_21",xa="_capitalize_1mdfo_29",U={themeColorsPalette:ua,swatch:ga,themeColors:ma,label:va,capitalize:xa};function pa(){return{"Theme Color Palette":Q("palette",sa,1),"Semantic Colors":Q("semantic",ia,1),"Chart Colors":Q("chart",na,2),"Editor Colors":Q("editor",ca,2),"Grid Colors":Q("grid",da,2),"Component Colors":Q("component",ha,1)}}function fa(){const{selectedThemeKey:t}=Ir(),r=u.useMemo(pa,[t]);return e.jsx(e.Fragment,{children:Object.entries(r).map(([o,a],l)=>o==="Theme Color Palette"?e.jsxs("div",{...p(o),children:[e.jsx("h2",{className:"ui-title",children:o}),e.jsx("div",{className:U.themeColorsPalette,children:Object.entries(a).map(([s,i],n)=>e.jsxs(u.Fragment,{children:[(n===0||n===1)&&i.map(({name:d},h)=>e.jsx("div",{style:{gridColumnStart:h+2,textAlign:"center"},className:"mt-3",children:d.split("-").pop()},d)),e.jsx("div",{className:"text-right pr-2",children:s}),i.map(({name:d,value:h})=>e.jsxs("div",{style:{backgroundColor:h,border:h===""&&d.length>0?Ve:void 0,color:`var(--dh-color-${de(h)})`},className:H(U.swatch,"px-0"),children:[e.jsxs(ee,{interactive:!0,children:[e.jsx("div",{children:d}),e.jsx("div",{children:h}),e.jsx("div",{children:he.normalizeCssColor(h,!0)})]}),e.jsx(lr,{copy:d,style:{color:`var(--dh-color-${de(h)})`}})]},d))]},s))})]},o):e.jsxs("div",{...p(o),children:[e.jsx("h2",{className:"ui-title",children:o}),e.jsx("div",{className:U.themeColors,children:Object.entries(a).map(([s,i])=>e.jsxs("div",{style:{gridRow:`span ${i.length+1}`},children:[e.jsx("span",{className:H(U.label,U.capitalize),children:s}),i.map(({isLabel:n,name:d,value:h,note:c})=>n===!0?e.jsx("span",{className:U.label,children:d},d):e.jsxs("div",{className:U.swatch,style:{backgroundColor:h,border:h===""&&d.length>0?Ve:void 0,color:`var(--dh-color-${de(h)})`},children:[e.jsxs(ee,{interactive:!0,children:[e.jsx("div",{children:d}),e.jsx("div",{children:h}),e.jsx("div",{children:he.normalizeCssColor(h,!0)})]}),e.jsx("span",{children:d.replace("--dh-color-","")}),d.endsWith("-hue")||c!=null?e.jsx("span",{children:c??h}):null,e.jsx(lr,{copy:d,style:{color:`var(--dh-color-${de(h)})`}})]},d))]},s))})]},o))})}const Re="data-menu-category",ba="data-no-menu",ja="sample-section-e2e-ignore",Mr="spectrum-component-samples",Rr="spectrum-comparison-samples";function ya(){return e.jsxs("div",{id:Mr,children:[e.jsx("h2",{className:"ui-title","data-no-menu":!0,children:"Spectrum Components"}),e.jsxs(L,{gap:20,columns:Cr("0px","1fr"),children:[e.jsxs(D,{...N("spectrum-buttons"),children:[e.jsx("h3",{children:"Buttons"}),e.jsx(wa,{})]}),e.jsxs(D,{...N("spectrum-collections"),children:[e.jsx("h3",{children:"Collections"}),e.jsx(ka,{})]}),e.jsxs(D,{...N("spectrum-content"),children:[e.jsx("h3",{children:"Content"}),e.jsx(Ta,{})]}),e.jsxs(D,{...N("spectrum-forms"),children:[e.jsx("h3",{children:"Forms"}),e.jsx(Sa,{})]}),e.jsxs(D,{...N("spectrum-overlays"),children:[e.jsx("h3",{children:"Overlays"}),e.jsxs(C,{gap:"size-160",children:[e.jsx(Ca,{}),e.jsxs(Vr,{children:[e.jsx(P,{children:"Dialog Trigger"}),t=>e.jsxs(Ur,{children:[e.jsx(Ue,{children:"Some Heading"}),e.jsx(Gr,{children:"Some Header"}),e.jsx(Hr,{}),e.jsx(Ge,{children:e.jsx($,{children:"Are you sure?"})}),e.jsxs(zr,{children:[e.jsx(j,{variant:"secondary",onPress:t,children:"Cancel"}),e.jsx(j,{variant:"accent",onPress:t,children:"Confirm"})]})]})]})]})]}),e.jsxs(D,{...N("spectrum-well"),children:[e.jsx("h3",{children:"Wells"}),e.jsx(Wr,{children:"This is a well."})]})]})]})}function wa(){return e.jsxs(e.Fragment,{children:[e.jsxs(P,{marginBottom:"size-200",children:[e.jsx(z,{children:e.jsx(T,{icon:G})}),e.jsx($,{children:"Icon Button"})]}),e.jsxs(L,{autoFlow:"column",columnGap:"size-250",rowGap:"size-150",columns:Pe(4,Cr(0,"size-2000")),rows:Pe(8,"size-400"),children:[e.jsx("label",{children:'Button style="outline"'}),e.jsx(j,{variant:"primary",style:"outline",children:"Primary"}),e.jsx(j,{variant:"secondary",style:"outline",children:"Secondary"}),e.jsx(j,{variant:"accent",style:"outline",children:"Accent"}),e.jsx(j,{variant:"negative",style:"outline",children:"Negative"}),e.jsx(j,{variant:"primary",staticColor:"black",style:"outline",children:"Static Black"}),e.jsx(j,{variant:"primary",staticColor:"white",style:"outline",children:"Static White"}),e.jsx(j,{variant:"primary",isDisabled:!0,style:"outline",children:"Disabled"}),e.jsx("label",{children:'Button style="fill"'}),e.jsx(j,{variant:"primary",style:"fill",children:"Primary"}),e.jsx(j,{variant:"secondary",style:"fill",children:"Secondary"}),e.jsx(j,{variant:"accent",style:"fill",children:"Accent"}),e.jsx(j,{variant:"negative",style:"fill",children:"Negative"}),e.jsx(j,{variant:"primary",staticColor:"black",style:"fill",children:"Static Black"}),e.jsx(j,{variant:"primary",staticColor:"white",style:"fill",children:"Static White"}),e.jsx(j,{variant:"primary",isDisabled:!0,style:"fill",children:"Disabled"}),e.jsx("label",{children:"Action Button"}),e.jsx(P,{children:"Normal"}),e.jsx(P,{gridRow:"span 3",isQuiet:!0,children:"Quiet"}),e.jsx(P,{staticColor:"black",children:"Static Black"}),e.jsx(P,{staticColor:"white",children:"Static White"}),e.jsx(P,{isDisabled:!0,children:"Disabled"}),e.jsx("label",{children:"Toggle Button"}),e.jsx(q,{children:"Normal"}),e.jsx(q,{isQuiet:!0,children:"Quiet"}),e.jsx(q,{gridRow:"span 2",isEmphasized:!0,children:"Emphasized"}),e.jsx(q,{staticColor:"black",children:"Static Black"}),e.jsx(q,{staticColor:"white",children:"Static White"}),e.jsx(q,{isDisabled:!0,children:"Disabled"})]})]})}function Ca(){return e.jsxs(e.Fragment,{children:[e.jsx($,{children:"Contextual Help"}),e.jsxs(qr,{variant:"info",children:[e.jsx(Ue,{children:"Need help?"}),e.jsx(Ge,{children:e.jsx($,{children:"This is a helpful description of the thing you need help with."})})]})]})}function Sa(){return e.jsx(Kr,{children:e.jsxs(L,{gap:20,columns:Pe("auto-fit","210px"),alignItems:"end",children:[e.jsx(Le,{label:"Text Field"}),e.jsxs(Sr,{label:"Combobox",menuTrigger:"focus",defaultSelectedKey:"two",children:[e.jsx(f,{children:"One"},"one"),e.jsx(f,{children:"Two"},"two"),e.jsx(f,{children:"Three"},"three")]}),e.jsx(_e,{children:"Checkbox"}),e.jsx(Yr,{label:"Slider",defaultValue:24}),e.jsx(Zr,{children:"Switch"})]})})}function Ta(){return e.jsxs(Xr,{children:[e.jsx(z,{size:"XL",children:e.jsx(T,{icon:go})}),e.jsx(Ue,{children:"Illustrated Message"}),e.jsx(Ge,{children:"This is the content of the message."})]})}function ka(){return e.jsxs(e.Fragment,{children:[e.jsx("label",{id:"table-view-sample",children:"List View"}),e.jsxs(Qr,{"aria-labelledby":"table-view-sample",selectionMode:"multiple",maxWidth:"size-6000",marginBottom:"size-200",children:[e.jsx(f,{children:"One"}),e.jsx(f,{children:"Two"}),e.jsx(f,{children:"Three"}),e.jsx(f,{children:"Four"})]}),e.jsx("label",{id:"table-view-sample",children:"Table View"}),e.jsxs(Jr,{"aria-labelledby":"table-view-sample",selectionMode:"multiple",children:[e.jsxs(eo,{children:[e.jsxs(K,{title:"Person",children:[e.jsx(K,{allowsResizing:!0,children:"Name"}),e.jsx(K,{children:"Age"})]}),e.jsxs(K,{title:"Address",children:[e.jsx(K,{allowsResizing:!0,children:"City"}),e.jsx(K,{children:"State"})]})]}),e.jsxs(ro,{children:[e.jsxs(be,{children:[e.jsx(E,{children:"John"}),e.jsx(E,{children:"42"}),e.jsx(E,{children:"San Francisco"}),e.jsx(E,{children:"CA"})]}),e.jsxs(be,{children:[e.jsx(E,{children:"Jane"}),e.jsx(E,{children:"38"}),e.jsx(E,{children:"San Francisco"}),e.jsx(E,{children:"CA"})]}),e.jsxs(be,{children:[e.jsx(E,{children:"Becky"}),e.jsx(E,{children:"12"}),e.jsx(E,{children:"San Francisco"}),e.jsx(E,{children:"CA"})]})]})]})]})}function ie(t){return e.jsx("div",{...t})}function Na(){const[t,r]=u.useState([]);u.useEffect(()=>{let a={category:"",items:[]};const l=[a],s=document.querySelector(`#${Mr}`),i=document.querySelector(`#sample-section-${Rr}`);document.querySelectorAll(`h2,h3,[${Re}]`).forEach(n=>{if(n.textContent==null||n.hasAttribute(ba))return;if(n.hasAttribute(Re)){a={category:n.getAttribute(Re)??"",items:[]},l.push(a);return}const h=`${s?.contains(n)===!0?"spectrum-":i?.contains(n)===!0?"spectrum-compare-":""}${n.textContent}`.toLowerCase().replace(/\s/g,"-");n.id=h,a.items.push({id:h,label:n.textContent})}),r(l)},[]),u.useEffect(()=>{const a=window.location.hash===""?null:document.querySelector(window.location.hash);setTimeout(()=>{a?a.scrollIntoView():window.scrollTo({top:0,behavior:"auto"})},0)},[]);const o=u.useCallback(a=>{const l=String(a);document.getElementById(l)?.scrollIntoView({behavior:"smooth"}),setTimeout(()=>{window.location.hash=l},1e3)},[]);return e.jsxs(oo,{children:[e.jsx(P,{children:e.jsx(z,{children:e.jsx(T,{icon:mo})})}),e.jsx(to,{items:t,onAction:o,children:({category:a,items:l})=>e.jsx(Be,{items:l,title:a,children:({id:s,label:i})=>e.jsx(f,{children:i},s)},a)})]})}function Da(){const t=u.useCallback(()=>{window.scrollTo({top:0,behavior:"smooth"}),setTimeout(()=>{window.location.hash=""},500)},[]);return u.useEffect(()=>{const r=document.querySelector("h2")?.offsetTop??0;function o(){document.documentElement.dataset.scroll=String(window.scrollY>=r)}return document.addEventListener("scroll",o,{passive:!0}),()=>{document.removeEventListener("scroll",o)}},[]),e.jsx(j,{UNSAFE_className:"goto-top-button",variant:"accent",onPress:t,children:e.jsx(z,{children:e.jsx(T,{icon:vo})})})}const Ia=["Tab 1","Tab 2","Tab 3"];function Ea({isActive:t,title:r}){return e.jsxs("li",{className:H("lm_tab",t&&"lm_active"),children:[e.jsx("span",{className:"lm_title_before"}),e.jsx("span",{className:"lm_title",children:r}),e.jsx("span",{className:"lm_close_tab"})]})}function $a(){return e.jsxs("div",{...p("golden-layout"),children:[e.jsx("h2",{className:"ui-title",children:"Golden Layout"}),[!1,!0].map(t=>e.jsxs(ue.Fragment,{children:[e.jsx("h5",{children:t?"Minimized":"Maximised"}),e.jsx("div",{style:{position:"relative",border:"none"},className:t?"lm_maximised":void 0,children:e.jsxs("div",{className:"lm_header",children:[e.jsx("ul",{className:"lm_tabs",children:Ia.map((r,o)=>e.jsx(Ea,{isActive:o===0,title:r},r))}),e.jsxs("ul",{className:"lm_controls",children:[e.jsx("li",{className:"lm_tabpreviousbutton"}),e.jsx("li",{className:"lm_tabnextbutton"}),e.jsx("li",{className:"lm_maximise"}),e.jsx("li",{className:"lm_popout"}),e.jsx("li",{className:"lm_tabdropdown"}),e.jsx("li",{className:"lm_close"})]})]})})]},String(t)))]})}function Aa(){return e.jsxs("div",{...p("animations",["sample-section-e2e-ignore"]),children:[e.jsx("h2",{className:"ui-title",children:"Animations"}),e.jsx(D,{position:"relative",height:400,children:e.jsx(_o,{})})]})}const jr=[["primary","accent"],["secondary","primary"],["danger","negative"]],Ma=[{title:"One",value:"1"},{title:"Two",value:"2"},{title:"Three",value:"3"}];function Ra(){const[t,r]=u.useState(!1),[o,a]=u.useState("1"),l=u.useCallback(s=>{a(s.target.value)},[]);return e.jsxs("div",{...p(Rr,[ja]),children:[e.jsx("h2",{className:"ui-title","data-no-menu":!0,children:"Bootstrap / Spectrum Comparison"}),e.jsxs(C,{gap:20,wrap:!0,children:[e.jsxs(D,{children:[e.jsx("h3",{children:"Buttons - Filled"}),e.jsxs(L,{gap:20,columns:"repeat(2, 120px)",autoRows:"40x",justifyItems:"start",alignItems:"start",children:[e.jsx("label",{children:"Bootstrap"}),e.jsx("label",{children:"Spectrum"}),jr.map(([s,i])=>e.jsxs(u.Fragment,{children:[e.jsx(x,{onClick:X,kind:s,icon:rr,children:"Button"}),e.jsxs(j,{variant:i,style:"fill",children:[e.jsx(z,{children:e.jsx(T,{icon:rr})}),e.jsx($,{children:"Button"})]})]},s)),e.jsx(x,{onClick:X,kind:"primary",disabled:!0,children:"Disabled"}),e.jsx(j,{variant:"accent",style:"fill",isDisabled:!0,children:"Disabled"})]})]}),e.jsxs(D,{children:[e.jsx("h3",{children:"Buttons - Outline"}),e.jsxs(L,{gap:20,columns:"repeat(2, 120px)",children:[e.jsx("label",{children:"Bootstrap"}),e.jsx("label",{children:"Spectrum"}),jr.map(([s,i])=>e.jsxs(u.Fragment,{children:[e.jsx(x,{onClick:X,kind:s,children:s}),e.jsx(j,{variant:i,style:"outline",children:i})]},s)),e.jsx(x,{onClick:X,kind:"secondary",disabled:!0,children:"Disabled"}),e.jsx(j,{variant:"primary",style:"outline",isDisabled:!0,children:"Disabled"})]})]}),e.jsxs(D,{children:[e.jsx("h3",{children:"Action Buttons"}),e.jsxs(L,{gap:20,columns:"repeat(2, 120px)",autoRows:"40x",children:[e.jsx("label",{children:"Bootstrap"}),e.jsx("label",{children:"Spectrum"}),e.jsx(x,{onClick:X,kind:"inline",children:"Inline"}),e.jsx(P,{children:"Action"}),e.jsx(x,{onClick:X,kind:"inline",disabled:!0,children:"Disabled"}),e.jsx(P,{isDisabled:!0,children:"Disabled"})]})]}),e.jsxs(D,{children:[e.jsx("h3",{children:"Pickers"}),e.jsxs(L,{gap:20,columns:"repeat(2, 192px)",autoRows:"40x",children:[e.jsx("label",{children:"Bootstrap"}),e.jsx("label",{children:"Spectrum"}),[!1,!0].map(s=>e.jsxs(u.Fragment,{children:[e.jsxs("div",{children:[e.jsxs("label",{className:"input-label",children:[s?"Disabled ":"","Combobox"]}),e.jsx(Oe,{disabled:s,options:Ma,defaultValue:"One"})]}),e.jsxs(Sr,{isDisabled:s,label:s?"Disabled Combobox":"Combobox",inputValue:"One",children:[e.jsx(f,{children:"One"},"1"),e.jsx(f,{children:"Two"},"2"),e.jsx(f,{children:"Three"},"3")]})]},String(s))),[!1,!0].map(s=>e.jsxs(u.Fragment,{children:[e.jsxs("div",{children:[e.jsx("label",{className:"input-label",children:"Select"}),e.jsxs(ve,{disabled:s,placeholder:"Select",onChange:i=>{},className:"custom-select",children:[e.jsxs("option",{disabled:!0,value:"0",children:[s?"":"Disabled ","Select"]}),e.jsx("option",{value:"1",children:"One"}),e.jsx("option",{value:"2",children:"Two"}),e.jsx("option",{value:"3",children:"Three"})]})]}),e.jsxs(ao,{isDisabled:s,label:s?"Disabled Picker":"Picker",placeholder:"Picker",children:[e.jsx(f,{children:"One"},"1"),e.jsx(f,{children:"Two"},"2"),e.jsx(f,{children:"Three"},"3")]})]},String(s)))]})]}),e.jsxs(D,{children:[e.jsx("h3",{children:"Text Field"}),e.jsxs(L,{gap:20,columns:"repeat(2, 192px)",autoRows:"40x",children:[e.jsx("label",{children:"Bootstrap"}),e.jsx("label",{children:"Spectrum"}),e.jsxs("div",{children:[e.jsx("label",{className:"input-label",children:"type=text"}),e.jsx("input",{type:"text",className:"form-control",placeholder:"Text Input"})]}),e.jsx(Le,{type:"text",label:"TextField"}),e.jsxs("div",{children:[e.jsx("label",{className:"input-label",children:"Disabled"}),e.jsx("input",{type:"text",className:"form-control",disabled:!0,value:"Disabled"})]}),e.jsx(Le,{type:"text",label:"Disabled",isDisabled:!0,value:"Disabled"})]})]}),e.jsxs(D,{children:[e.jsx("h3",{children:"Checkbox"}),e.jsxs(L,{gap:20,columns:"repeat(2, 120px)",children:[e.jsx("label",{children:"Bootstrap"}),e.jsx("label",{children:"Spectrum"}),e.jsx(_,{className:"form-group",checked:t,onChange:()=>r(s=>!s),children:"Checkbox"}),e.jsx(_e,{children:"Checkbox"}),e.jsx(_,{className:"form-group",disabled:!0,checked:t,onChange:()=>r(s=>!s),children:"Disabled"}),e.jsx(_e,{isDisabled:!0,children:"Disabled"}),e.jsx(C,{direction:"column",children:e.jsxs("label",{children:["Radio Group",e.jsxs(Nr,{onChange:l,value:o,children:[e.jsx(F,{value:"1",children:"One"}),e.jsx(F,{value:"2",children:"Two"}),e.jsx(F,{value:"3",children:"Three"})]})]})}),e.jsxs(lo,{label:"Radio Group",value:o,onChange:a,children:[e.jsx(je,{value:"1",children:"One"}),e.jsx(je,{value:"2",children:"Two"}),e.jsx(je,{value:"3",children:"Three"})]})]})]})]})]})}function ne(){return e.jsx(z,{children:e.jsx(T,{icon:xo})})}function Pa(){return e.jsxs("div",{...p("pickers"),children:[e.jsx("h2",{className:"ui-title",children:"Pickers"}),e.jsxs(C,{gap:14,children:[e.jsx(Ce,{label:"Single Child",tooltip:{placement:"bottom-end"},children:e.jsx(f,{children:"Aaa"})}),e.jsxs(Ce,{label:"Mixed Children Types",tooltip:!0,children:["String 1","String 2","String 3","","Some really long text that should get truncated",444,999,!0,!1,e.jsx(f,{children:"Item Aaa"}),e.jsx(f,{children:"Item Bbb"}),e.jsxs(f,{textValue:"Complex Ccc",children:[e.jsx(ne,{}),e.jsx($,{children:"Complex Ccc with text that should be truncated"})]})]}),e.jsxs(Ce,{label:"Sections",tooltip:!0,children:["String 1","String 2","String 3",e.jsxs(Be,{title:"Section A",children:[e.jsx(f,{children:"Item Aaa"}),e.jsx(f,{children:"Item Bbb"}),e.jsxs(f,{textValue:"Complex Ccc",children:[e.jsx(ne,{}),e.jsx($,{children:"Complex Ccc"})]})]}),e.jsxs(Be,{children:[e.jsx(f,{children:"Item Ddd"}),e.jsx(f,{children:"Item Eee"}),e.jsxs(f,{textValue:"Complex Fff",children:[e.jsx(ne,{}),e.jsx($,{children:"Complex Fff"})]}),e.jsxs(f,{children:[e.jsx(ne,{}),e.jsx($,{children:"Label"}),e.jsx($,{slot:"description",children:"Description"})]},"Ggg"),e.jsxs(f,{children:[e.jsx(ne,{}),e.jsx($,{children:"Label that causes overflow"}),e.jsx($,{slot:"description",children:"Description that causes overflow"})]},"Hhh")]},"Key B")]})]})]})}const yr={position:"sticky",justifyContent:"end",zIndex:1,UNSAFE_style:{float:"right"}};function La(){const t=window.location.search.includes("isolateSection=true"),{themes:r}=Ir(),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:`.${Ne}, .sample-section:not(${window.location.hash}), :not(.sample-section) > h2 {
|
|
212
|
-
display: none;
|
|
213
|
-
}`}),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,{...yr,UNSAFE_className:Ne,marginTop:-56,top:20,gap:10,alignItems:"end",children:[o?e.jsx(qo,{}):null,e.jsx(Na,{})]}),e.jsx(C,{...yr,UNSAFE_className:Ne,top:"calc(100vh - 40px)",marginTop:-32,marginEnd:o?-234:0,children:e.jsx(Da,{})}),e.jsx(Qt,{}),e.jsx(ie,{"data-menu-category":"Colors"}),e.jsx(kt,{}),e.jsx(fa,{}),e.jsx(ie,{"data-menu-category":"Layout"}),e.jsx($a,{}),e.jsx(ie,{"data-menu-category":"Components"}),e.jsx(J,{}),e.jsx(Yt,{}),e.jsx(zt,{}),e.jsx(Pa,{}),e.jsx(qt,{}),e.jsx(pe,{}),e.jsx(Zt,{}),e.jsx(Dt,{}),e.jsx(Kt,{}),e.jsx(Nt,{}),e.jsx(It,{}),e.jsx(la,{}),e.jsx(Xt,{}),e.jsx(Gt,{}),e.jsx(At,{}),e.jsx(Ot,{}),e.jsx(jt,{}),e.jsx(To,{}),e.jsx(Aa,{}),e.jsx(ie,{"data-menu-category":"Spectrum Components"}),e.jsx(ya,{}),e.jsx(ie,{"data-menu-category":"Spectrum Comparison"}),e.jsx(Ra,{})]})})}function Ke(t){const{workspace:r,setWorkspace:o}=t;return u.useEffect(()=>{Ko.makeDefaultWorkspace({getLayouts:async()=>[],getLayout:async()=>({})}).then(o)},[o]),r!=null?e.jsx(La,{}):null}Ke.propTypes={workspace:xe.shape({}),setWorkspace:xe.func.isRequired};Ke.defaultProps={workspace:null};const _a=t=>({workspace:No(t)}),Ba=so(_a,{setWorkspace:ko})(Ke);function Xa(){return zo.register(new URL("./download/serviceWorker.js",window.location.href)),Do.init({getWorker:()=>new po}),window["__react-beautiful-dnd-disable-dev-warnings"]=!0,e.jsx(Bo,{children:e.jsx(io,{store:Io,children:e.jsx(Ba,{})})})}export{Xa as StyleGuideRoot,Xa as default};
|
|
214
|
-
//# sourceMappingURL=StyleGuideRoot-24c3427a.js.map
|