umwd-components 0.1.331 → 0.1.332
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.
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* @copyright Jelle Paulus
|
|
4
4
|
* @license MIT
|
|
5
5
|
*/
|
|
6
|
-
import{__read as e}from"../../../../node_modules/tslib/tslib.es6.js";import t,{Fragment as a}from"react";import l from"@mui/material/Box";import r from"@mui/material/TableRow";import n from"@mui/material/TableCell";import o from"@mui/material/IconButton";import i from"@mui/material/Collapse";import m from"@mui/material/Typography";import c from"@mui/material/Table";import u from"@mui/material/TableHead";import d from"@mui/material/TableBody";import p from"@mui/material/Checkbox";import s from"@mui/icons-material/KeyboardArrowUp";import b from"@mui/icons-material/KeyboardArrowDown";function f(f,E){var g=f.row,h=f.headCells,y=f.subHeadCells,k=f.withSelection,w=f.isSelected,x=f.handleSelectClick,C=f.subTitle,T=g.subRows;console.log("subRows",T),console.log("subHeadCells",y);var B=e(t.useState(!1),2),S=B[0],v=B[1],P="enhanced-table-checkbox-".concat(E);return t.createElement(a,null,t.createElement(r,{sx:{"& > *":{borderBottom:"unset"}}},k&&t.createElement(n,{padding:"checkbox"},t.createElement(p,{color:"primary",checked:w,inputProps:{"aria-labelledby":P},onClick:function(e){return x&&x(e,g.id)}})),T&&y&&t.createElement(n,null,t.createElement(o,{"aria-label":"expand row",size:"small",onClick:function(){return v(!S)}},S?t.createElement(s,null):t.createElement(b,null))),h.map((function(e){return t.createElement(n,{key:e.id,align:e.numeric?"right":"left",padding:e.disablePadding?"none":"normal"},g[e.id])}))),T&&y&&t.createElement(r,null,t.createElement(n,{style:{paddingBottom:0,paddingTop:0},colSpan:
|
|
6
|
+
import{__read as e}from"../../../../node_modules/tslib/tslib.es6.js";import t,{Fragment as a}from"react";import l from"@mui/material/Box";import r from"@mui/material/TableRow";import n from"@mui/material/TableCell";import o from"@mui/material/IconButton";import i from"@mui/material/Collapse";import m from"@mui/material/Typography";import c from"@mui/material/Table";import u from"@mui/material/TableHead";import d from"@mui/material/TableBody";import p from"@mui/material/Checkbox";import s from"@mui/icons-material/KeyboardArrowUp";import b from"@mui/icons-material/KeyboardArrowDown";function f(f,E){var g=f.row,h=f.headCells,y=f.subHeadCells,k=f.withSelection,w=f.isSelected,x=f.handleSelectClick,C=f.subTitle,T=g.subRows;console.log("subRows",T),console.log("subHeadCells",y);var B=e(t.useState(!1),2),S=B[0],v=B[1],P="enhanced-table-checkbox-".concat(E),H=h.length+(k?1:0)+(y?1:0);return t.createElement(a,null,t.createElement(r,{sx:{"& > *":{borderBottom:"unset"}}},k&&t.createElement(n,{padding:"checkbox"},t.createElement(p,{color:"primary",checked:w,inputProps:{"aria-labelledby":P},onClick:function(e){return x&&x(e,g.id)}})),T&&y&&t.createElement(n,null,t.createElement(o,{"aria-label":"expand row",size:"small",onClick:function(){return v(!S)}},S?t.createElement(s,null):t.createElement(b,null))),h.map((function(e){return t.createElement(n,{key:e.id,align:e.numeric?"right":"left",padding:e.disablePadding?"none":"normal"},g[e.id])}))),T&&y&&t.createElement(r,null,t.createElement(n,{style:{paddingBottom:0,paddingTop:0},colSpan:H},t.createElement(i,{in:S,timeout:"auto",unmountOnExit:!0},t.createElement(l,{sx:{margin:1}},t.createElement(m,{variant:"h6",gutterBottom:!0,component:"div"},C),t.createElement(c,{size:"small","aria-label":"purchases"},t.createElement(u,null,t.createElement(r,null,y.map((function(e){return t.createElement(n,{key:"".concat(e.id).concat(e.label),align:e.numeric?"right":"left",padding:e.disablePadding?"none":"normal"},e.label)})))),t.createElement(d,null,T.map((function(e,a){return t.createElement(r,{key:"".concat(e.key).concat(a)},y.map((function(a,l){return t.createElement(n,{key:"".concat(l).concat(a.label),align:a.numeric?"right":"left",padding:a.disablePadding?"none":"normal"},e[a.id])})))})))))))))}export{f as default};
|