next-helios-fe 1.4.20 → 1.4.22

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "next-helios-fe",
3
- "version": "1.4.20",
3
+ "version": "1.4.22",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -155,7 +155,7 @@ export const Table: TableComponentProps = ({
155
155
  };
156
156
 
157
157
  const handleOnNextClick = () => {
158
- if (page + 1 === data.length) {
158
+ if (page + 1 === Math.ceil(data.length / maxRow)) {
159
159
  paginationRef.current?.scrollTo({
160
160
  left: paginationRef.current.scrollWidth,
161
161
  behavior: "smooth",
@@ -421,7 +421,7 @@ export const Table: TableComponentProps = ({
421
421
  }
422
422
  })}
423
423
  {actionColumn && (
424
- <td className="px-4 py-1 border-b bg-secondary-bg text-center">
424
+ <td className="sticky right-0 px-4 py-1 border-b bg-secondary-bg text-center">
425
425
  {actionColumn(item)}
426
426
  </td>
427
427
  )}
@@ -575,7 +575,7 @@ export const Table: TableComponentProps = ({
575
575
  {!options?.hideNumberColumn && (
576
576
  <th className="sticky left-0 w-min px-4 py-2 z-10 bg-secondary-bg font-medium text-center whitespace-nowrap">
577
577
  <div className="flex flex-col">
578
- <span>NO.</span>
578
+ <span>No.</span>
579
579
  {options?.toolbar?.columnSearch?.show !== false && (
580
580
  <div className="invisible w-0 overflow-hidden">
581
581
  <input
@@ -589,7 +589,7 @@ export const Table: TableComponentProps = ({
589
589
  )}
590
590
  {headerArr}
591
591
  {actionColumn && (
592
- <th className="w-min px-4 py-2 bg-secondary-bg font-medium text-center">
592
+ <th className="sticky right-0 w-min px-4 py-2 z-10 bg-secondary-bg font-medium text-center whitespace-nowrap">
593
593
  <div className="flex flex-col">
594
594
  <span>Actions</span>
595
595
  {options?.toolbar?.columnSearch?.show !== false && (