@secondstaxorg/sscomp 1.8.49 → 1.8.51

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.es.js CHANGED
@@ -4741,7 +4741,7 @@ PERFORMANCE OF THIS SOFTWARE.
4741
4741
  gap: 4px;
4742
4742
  align-items: center;
4743
4743
  }
4744
- `,tm="D:\\SSX\\Project\\Component Library\\sscomp\\src\\components\\TablePrimary\\index.tsx",im=e=>{const{thead:r,children:n,tbody:o,clickedRow:l,showPagination:a,itemsPerPage:s,paginatedItems:c}=e,[d,u]=i([]),[f,b]=i(o);return t.createElement(t.Fragment,null,t.createElement($b,{__self:void 0,__source:{fileName:tm,lineNumber:24}},t.createElement(em,{__self:void 0,__source:{fileName:tm,lineNumber:25}},t.createElement("thead",{__self:void 0,__source:{fileName:tm,lineNumber:26}},t.createElement("tr",{className:"rounded-row",__self:void 0,__source:{fileName:tm,lineNumber:27}},r.map(((e,i)=>t.createElement("th",{key:i,onClick:()=>{!function(e){if(o&&o.length>0){const t=[...o];t.sort(((t,i)=>t[e].localeCompare(i[e]))),b(t)}}(e.dataKey)},__self:void 0,__source:{fileName:tm,lineNumber:29}},e.label))))),t.createElement("tbody",{className:"rounded-row",__self:void 0,__source:{fileName:tm,lineNumber:35}},n,!n&&d&&d.map(((e,i)=>t.createElement("tr",{key:i,className:l&&"clickable",onClick:()=>{l&&l(e)},__self:void 0,__source:{fileName:tm,lineNumber:38}},r.map(((i,n)=>t.createElement("td",{key:n,className:n==r.length-1&&l?"with-arrow":"",__self:void 0,__source:{fileName:tm,lineNumber:43}},t.createElement("span",{__self:void 0,__source:{fileName:tm,lineNumber:44}},e[i.dataKey]),n==r.length-1&&l&&t.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",__self:void 0,__source:{fileName:tm,lineNumber:48}},t.createElement("path",{d:"M10.3592 7.52685L6.58584 3.76019C6.52387 3.6977 6.45013 3.64811 6.36889 3.61426C6.28765 3.58041 6.20052 3.56299 6.11251 3.56299C6.0245 3.56299 5.93736 3.58041 5.85612 3.61426C5.77488 3.64811 5.70115 3.6977 5.63917 3.76019C5.51501 3.8851 5.44531 4.05406 5.44531 4.23019C5.44531 4.40631 5.51501 4.57528 5.63917 4.70019L8.93917 8.03352L5.63917 11.3335C5.51501 11.4584 5.44531 11.6274 5.44531 11.8035C5.44531 11.9796 5.51501 12.1486 5.63917 12.2735C5.70092 12.3365 5.77455 12.3866 5.8558 12.421C5.93705 12.4553 6.0243 12.4732 6.11251 12.4735C6.20071 12.4732 6.28797 12.4553 6.36922 12.421C6.45047 12.3866 6.5241 12.3365 6.58584 12.2735L10.3592 8.50685C10.4268 8.44443 10.4808 8.36866 10.5178 8.28432C10.5547 8.19999 10.5738 8.10892 10.5738 8.01685C10.5738 7.92479 10.5547 7.83372 10.5178 7.74938C10.4808 7.66505 10.4268 7.58928 10.3592 7.52685Z",fill:"#A4BBDD",__self:void 0,__source:{fileName:tm,lineNumber:49}}))))))))))),a&&s&&s>0&&f&&t.createElement(_,{itemsPerPage:s,items:f,paginatedItems:e=>{u(e),c(e)},__self:void 0,__source:{fileName:tm,lineNumber:60}}))},rm=l.table`
4744
+ `,tm="D:\\SSX\\Project\\Component Library\\sscomp\\src\\components\\TablePrimary\\index.tsx",im=e=>{const{thead:n,children:o,tbody:l,clickedRow:a,showPagination:s,itemsPerPage:c,paginatedItems:d}=e,[u,f]=i([]),[b,m]=i(l),[h,p]=i("");return r((()=>{s||f(l)}),[s]),t.createElement(t.Fragment,null,t.createElement($b,{__self:void 0,__source:{fileName:tm,lineNumber:46}},t.createElement(em,{__self:void 0,__source:{fileName:tm,lineNumber:47}},t.createElement("thead",{__self:void 0,__source:{fileName:tm,lineNumber:48}},t.createElement("tr",{className:"rounded-row",__self:void 0,__source:{fileName:tm,lineNumber:49}},n.map(((e,i)=>t.createElement("th",{key:i,onClick:()=>{!function(e){if(e!==h){if(e===h);else if(p(e),l&&l.length>0){const t=[...l];t.sort(((t,i)=>t[e].localeCompare(i[e]))),f(t)}}else if(l&&l.length>0){const t=[...l];t.sort(((t,i)=>t[e].localeCompare(i[e])));let i=t.reverse();f(i),p("")}}(e.dataKey)},__self:void 0,__source:{fileName:tm,lineNumber:51}},e.label))))),t.createElement("tbody",{className:"rounded-row",__self:void 0,__source:{fileName:tm,lineNumber:57}},o,!o&&u&&u.map(((e,i)=>t.createElement("tr",{key:i,className:a&&"clickable",onClick:()=>{a&&a(e)},__self:void 0,__source:{fileName:tm,lineNumber:60}},n.map(((i,r)=>t.createElement("td",{key:r,className:r==n.length-1&&a?"with-arrow":"",__self:void 0,__source:{fileName:tm,lineNumber:65}},t.createElement("span",{__self:void 0,__source:{fileName:tm,lineNumber:66}},e[i.dataKey]),r==n.length-1&&a&&t.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",__self:void 0,__source:{fileName:tm,lineNumber:70}},t.createElement("path",{d:"M10.3592 7.52685L6.58584 3.76019C6.52387 3.6977 6.45013 3.64811 6.36889 3.61426C6.28765 3.58041 6.20052 3.56299 6.11251 3.56299C6.0245 3.56299 5.93736 3.58041 5.85612 3.61426C5.77488 3.64811 5.70115 3.6977 5.63917 3.76019C5.51501 3.8851 5.44531 4.05406 5.44531 4.23019C5.44531 4.40631 5.51501 4.57528 5.63917 4.70019L8.93917 8.03352L5.63917 11.3335C5.51501 11.4584 5.44531 11.6274 5.44531 11.8035C5.44531 11.9796 5.51501 12.1486 5.63917 12.2735C5.70092 12.3365 5.77455 12.3866 5.8558 12.421C5.93705 12.4553 6.0243 12.4732 6.11251 12.4735C6.20071 12.4732 6.28797 12.4553 6.36922 12.421C6.45047 12.3866 6.5241 12.3365 6.58584 12.2735L10.3592 8.50685C10.4268 8.44443 10.4808 8.36866 10.5178 8.28432C10.5547 8.19999 10.5738 8.10892 10.5738 8.01685C10.5738 7.92479 10.5547 7.83372 10.5178 7.74938C10.4808 7.66505 10.4268 7.58928 10.3592 7.52685Z",fill:"#A4BBDD",__self:void 0,__source:{fileName:tm,lineNumber:71}}))))))))))),s&&c&&c>0&&b&&t.createElement(_,{itemsPerPage:c,items:b,paginatedItems:e=>{f(e),d(e)},__self:void 0,__source:{fileName:tm,lineNumber:82}}))},rm=l.table`
4745
4745
  width: 100%;
4746
4746
  background: white;
4747
4747
  border-collapse: collapse;