ehscan-react-table 0.0.13 → 0.0.14
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { calcDateDiff, formatToDDMMYYYY } from '../tools/dateFunction';
|
|
3
|
-
import styles from '
|
|
3
|
+
import styles from '../style/table.module.css';
|
|
4
4
|
export const TableCellDueDate = ({ content, id, col, clickRow }) => {
|
|
5
5
|
const DateContent = ({ value }) => {
|
|
6
6
|
const valDate = value;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as _jsxs, jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { useState, useEffect } from "react";
|
|
3
3
|
import PaginationButton from "./PaginationButton";
|
|
4
|
-
import styles from '
|
|
4
|
+
import styles from '../style/table.module.css';
|
|
5
5
|
export const Pagination = ({ totalItems, currentEntries, limit, skip, currentPage, onPageChange }) => {
|
|
6
6
|
const [totalPages, setTotalPages] = useState(0);
|
|
7
7
|
const handlePrevious = () => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useRef } from 'react';
|
|
3
3
|
import PaginationRipple from './PaginationRipple';
|
|
4
|
-
import styles from '
|
|
4
|
+
import styles from '../style/table.module.css';
|
|
5
5
|
const PaginationButton = ({ index, txt, disabled, isActive, action, display }) => {
|
|
6
6
|
const buttonRef = useRef(null);
|
|
7
7
|
const handleRipple = PaginationRipple();
|
package/dist/elements/Table.js
CHANGED
|
@@ -11,7 +11,7 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
11
11
|
import { useEffect, useState, useRef } from "react";
|
|
12
12
|
import TableCellSelectHeadCol from "./TableCellSelectHeadCol";
|
|
13
13
|
import { debounce } from "./Debounce";
|
|
14
|
-
import styles from '
|
|
14
|
+
import styles from '../style/table.module.css';
|
|
15
15
|
export const Table = ({ columns, rows, sortOrder, setSortOrder, cellComponents, setSelectedIds, searchTermArraySetter, setSearchTermArraySetter, fallback }) => {
|
|
16
16
|
const [wrapperBottom, setWrapperBottom] = useState(undefined);
|
|
17
17
|
const headerRef = useRef(null);
|
|
@@ -10,7 +10,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
11
11
|
import { useRef } from 'react';
|
|
12
12
|
import PaginationRipple from './PaginationRipple';
|
|
13
|
-
import styles from '
|
|
13
|
+
import styles from '../style/table.module.css';
|
|
14
14
|
const TableChecklistItem = ({ checked }) => {
|
|
15
15
|
const buttonRef = useRef(null);
|
|
16
16
|
const handleRipple = PaginationRipple();
|