nillud-data-table 1.2.2 → 1.2.3
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 +11 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -38,7 +38,7 @@ var Column = ({ column, getSortField, sortBy, getFilters, filters }) => {
|
|
38
38
|
return /* @__PURE__ */ jsxs("div", { className: "ndt-column", children: [
|
39
39
|
/* @__PURE__ */ jsxs("div", { className: "ndt-column-head", children: [
|
40
40
|
/* @__PURE__ */ jsx3("span", { children: column.title }),
|
41
|
-
typeof column.autoinc === "undefined" && (typeof column.sortable === "undefined" || column.sortable) && /* @__PURE__ */ jsx3("div", { className: "ndt-sorter", onClick: toggleSort, children: currentSort === "asc" ? /* @__PURE__ */ jsx3(SortDown_default, {}) : currentSort === "desc" ? /* @__PURE__ */ jsx3(SortUp_default, {}) :
|
41
|
+
typeof column.autoinc === "undefined" && (typeof column.sortable === "undefined" || column.sortable) && /* @__PURE__ */ jsx3("div", { className: "ndt-sorter", onClick: toggleSort, children: currentSort === "asc" ? /* @__PURE__ */ jsx3(SortDown_default, {}) : currentSort === "desc" ? /* @__PURE__ */ jsx3(SortUp_default, {}) : /* @__PURE__ */ jsx3(SortDown_default, {}) })
|
42
42
|
] }),
|
43
43
|
/* @__PURE__ */ jsx3("div", { className: "ndt-column-footer", children: typeof column.autoinc === "undefined" && (typeof column.filterable === "undefined" || column.filterable) && /* @__PURE__ */ jsx3(
|
44
44
|
"input",
|
@@ -235,7 +235,16 @@ var TableFooter = ({
|
|
235
235
|
}
|
236
236
|
};
|
237
237
|
const renderPageNumbers = () => {
|
238
|
-
if (totalPages <= 1) return /* @__PURE__ */ jsx12(
|
238
|
+
if (totalPages <= 1) return /* @__PURE__ */ jsx12(
|
239
|
+
"button",
|
240
|
+
{
|
241
|
+
className: "btn-active",
|
242
|
+
onClick: () => handlePageChange(0),
|
243
|
+
disabled: true,
|
244
|
+
children: "1"
|
245
|
+
},
|
246
|
+
"page-0"
|
247
|
+
);
|
239
248
|
const pages = [];
|
240
249
|
const maxVisible = 5;
|
241
250
|
let start = Math.max(0, paginationPage - Math.floor(maxVisible / 2));
|