@secondstaxorg/sscomp 1.8.47 → 1.8.48

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/dist/index.js CHANGED
@@ -25508,7 +25508,7 @@ const _jsxFileName$b = "D:\\SSX\\Project\\Component Library\\sscomp\\src\\compon
25508
25508
  * Default SSX table component
25509
25509
  */
25510
25510
  const TablePrimary = (props) => {
25511
- const {thead,children,tbody,clickedRow,showPagination,itemsPerPage} = props;
25511
+ const {thead,children,tbody,clickedRow,showPagination,itemsPerPage,paginatedItems} = props;
25512
25512
  const [tbodyItems,setTbodyItems] = React$1.useState([]);
25513
25513
  const [tbodyOri,setTbodyOri] = React$1.useState(tbody);
25514
25514
 
@@ -25535,7 +25535,7 @@ const TablePrimary = (props) => {
25535
25535
  )
25536
25536
  , React$1.createElement('tbody', { className: "rounded-row", __self: undefined, __source: {fileName: _jsxFileName$b, lineNumber: 35}}
25537
25537
  , children
25538
- , tbodyItems && tbodyItems.map((item,index) => (
25538
+ , !children && tbodyItems && tbodyItems.map((item,index) => (
25539
25539
  React$1.createElement('tr', { key: index, className: clickedRow && 'clickable', onClick: ()=>{
25540
25540
  if (clickedRow) {
25541
25541
  clickedRow(item);
@@ -25558,7 +25558,10 @@ const TablePrimary = (props) => {
25558
25558
  )
25559
25559
  )
25560
25560
  , showPagination && itemsPerPage && itemsPerPage > 0 && tbodyOri &&
25561
- React$1.createElement(Pagination, { itemsPerPage: itemsPerPage, items: tbodyOri, paginatedItems: (arr)=>{setTbodyItems(arr);}, __self: undefined, __source: {fileName: _jsxFileName$b, lineNumber: 60}})
25561
+ React$1.createElement(Pagination, { itemsPerPage: itemsPerPage, items: tbodyOri, paginatedItems: (arr)=>{
25562
+ setTbodyItems(arr);
25563
+ paginatedItems(arr);
25564
+ }, __self: undefined, __source: {fileName: _jsxFileName$b, lineNumber: 60}})
25562
25565
 
25563
25566
  )
25564
25567
  )