@corva/ui 0.100.0-22 → 0.100.0-23
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),r=require("react-virtualized"),t=require("@material-ui/core"),a=t.makeStyles({tableWrapper:{borderTop:"1px solid #5C5C5C",borderBottom:"1px solid #5C5C5C",width:"100%",height:"100%",overflow:"scroll"},table:{"& .ReactVirtualized__Table__headerRow":{textTransform:"none",border:"1px solid rgba(81, 81, 81, 1)"},"& .ReactVirtualized__Table__row":{border:"1px solid rgba(81, 81, 81, 1)"},"& .ReactVirtualized__Table__Grid":{outline:"none"},"& .ReactVirtualized__Table__headerColumn":{outline:"none"}},cell:{width:200}}),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),r=require("react-virtualized"),t=require("@material-ui/core"),a=require("lodash"),i=t.makeStyles({tableWrapper:{borderTop:"1px solid #5C5C5C",borderBottom:"1px solid #5C5C5C",width:"100%",height:"100%",overflow:"scroll"},table:{"& .ReactVirtualized__Table__headerRow":{textTransform:"none",border:"1px solid rgba(81, 81, 81, 1)"},"& .ReactVirtualized__Table__row":{border:"1px solid rgba(81, 81, 81, 1)"},"& .ReactVirtualized__Table__Grid":{outline:"none"},"& .ReactVirtualized__Table__headerColumn":{outline:"none"}},cell:{width:200}}),l=function(r){var t=r.cellData,l=i();return e.jsx("div",{className:l.cell,children:a.isDate(t)?t.toISOString():t})};exports.CsvViewer=function(t){var a=t.fileData,n=i(),o=Object.keys(a[0]||{});return e.jsx("div",{className:n.tableWrapper,children:e.jsx(r.AutoSizer,{children:function(t){var i=t.height;return t.width,function(t){var i=t.height;return e.jsx(r.Table,{className:n.table,width:200*(o.length||10),height:i,headerHeight:40,rowHeight:50,rowCount:a.length,rowGetter:function(e){var r=e.index;return a[r]},children:o.map((function(t){return e.jsx(r.Column,{width:200,flexGrow:1,dataKey:t,label:t,cellRenderer:function(r){var t=r.cellData;return e.jsx(l,{cellData:t})}},t)}))})}({height:i})}})})};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CsvViewer.d.ts","sourceRoot":"","sources":["../../../../src/components/NewDocumentViewer/components/CsvViewer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"CsvViewer.d.ts","sourceRoot":"","sources":["../../../../src/components/NewDocumentViewer/components/CsvViewer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAwC1B,UAAU,cAAc;IACtB,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,CAAC;CACjC;AAED,QAAA,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAgCvC,CAAC;AAEF,OAAO,EAAE,SAAS,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e}from"react/jsx-runtime";import{AutoSizer as r,Table as t,Column as a}from"react-virtualized";import{makeStyles as i}from"@material-ui/core";var
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";import{AutoSizer as r,Table as t,Column as a}from"react-virtualized";import{makeStyles as i}from"@material-ui/core";import{isDate as l}from"lodash";var o=i({tableWrapper:{borderTop:"1px solid #5C5C5C",borderBottom:"1px solid #5C5C5C",width:"100%",height:"100%",overflow:"scroll"},table:{"& .ReactVirtualized__Table__headerRow":{textTransform:"none",border:"1px solid rgba(81, 81, 81, 1)"},"& .ReactVirtualized__Table__row":{border:"1px solid rgba(81, 81, 81, 1)"},"& .ReactVirtualized__Table__Grid":{outline:"none"},"& .ReactVirtualized__Table__headerColumn":{outline:"none"}},cell:{width:200}}),n=function(r){var t=r.cellData,a=o();return e("div",{className:a.cell,children:l(t)?t.toISOString():t})},d=function(i){var l=i.fileData,d=o(),c=Object.keys(l[0]||{});return e("div",{className:d.tableWrapper,children:e(r,{children:function(r){var i=r.height;return r.width,function(r){var i=r.height;return e(t,{className:d.table,width:200*(c.length||10),height:i,headerHeight:40,rowHeight:50,rowCount:l.length,rowGetter:function(e){var r=e.index;return l[r]},children:c.map((function(r){return e(a,{width:200,flexGrow:1,dataKey:r,label:r,cellRenderer:function(r){var t=r.cellData;return e(n,{cellData:t})}},r)}))})}({height:i})}})})};export{d as CsvViewer};
|