@trackunit/react-table 2.1.38 → 2.1.41
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/index.cjs.js +1 -1
- package/index.esm.js +1 -1
- package/package.json +9 -9
package/index.cjs.js
CHANGED
|
@@ -1289,7 +1289,7 @@ const Table = ({ rowHeight = 50, loading = false, hideFooter = false, style, ...
|
|
|
1289
1289
|
}
|
|
1290
1290
|
}) })) : (jsxRuntime.jsx("tbody", { className: cvaTBody({
|
|
1291
1291
|
emptyState: !loading && (props.noDataMessage === undefined || props.noDataMessage === ""),
|
|
1292
|
-
}), children: jsxRuntime.jsx("tr", { children: jsxRuntime.jsx("td", { className: "b-0", children: loading ? (jsxRuntime.jsx(reactComponents.Spinner, { centering: "centered", containerClassName: "absolute inset-0", "data-testid": "table-loading-spinner" })) : props.noDataMessage !== undefined && props.noDataMessage !== "" ? (props.noDataMessage) : (jsxRuntime.jsx(reactComponents.EmptyState, { className: "absolute inset-0", description: t("table.noResults"), image: "SEARCH_DOCUMENT", ...props.emptyState })) }) }) }))] }) }), hideFooter ? null : (jsxRuntime.jsxs("div", { className: "flex items-center p-2", "data-testid": "table-footer", children: [jsxRuntime.jsx("div", { className: "whitespace-nowrap text-xs font-medium text-neutral-600", children: props.pagination?.pageInfo?.count
|
|
1292
|
+
}), children: jsxRuntime.jsx("tr", { children: jsxRuntime.jsx("td", { className: "b-0", children: loading ? (jsxRuntime.jsx(reactComponents.Spinner, { centering: "centered", containerClassName: "absolute inset-0", "data-testid": "table-loading-spinner" })) : props.noDataMessage !== undefined && props.noDataMessage !== "" ? (props.noDataMessage) : (jsxRuntime.jsx(reactComponents.EmptyState, { className: "absolute inset-0", description: t("table.noResults"), image: "SEARCH_DOCUMENT", ...props.emptyState })) }) }) }))] }) }), hideFooter ? null : (jsxRuntime.jsxs("div", { className: "flex items-center p-2", "data-testid": "table-footer", children: [jsxRuntime.jsx("div", { className: "whitespace-nowrap text-xs font-medium text-neutral-600", children: typeof props.pagination?.pageInfo?.count === "number"
|
|
1293
1293
|
? t(props.pagination.pageInfo.isCountCapped ? "table.pagination.full.capped" : "table.pagination.full", {
|
|
1294
1294
|
count: props.getRowModel().rows.length,
|
|
1295
1295
|
total: props.pagination.pageInfo.count,
|
package/index.esm.js
CHANGED
|
@@ -1288,7 +1288,7 @@ const Table = ({ rowHeight = 50, loading = false, hideFooter = false, style, ...
|
|
|
1288
1288
|
}
|
|
1289
1289
|
}) })) : (jsx("tbody", { className: cvaTBody({
|
|
1290
1290
|
emptyState: !loading && (props.noDataMessage === undefined || props.noDataMessage === ""),
|
|
1291
|
-
}), children: jsx("tr", { children: jsx("td", { className: "b-0", children: loading ? (jsx(Spinner, { centering: "centered", containerClassName: "absolute inset-0", "data-testid": "table-loading-spinner" })) : props.noDataMessage !== undefined && props.noDataMessage !== "" ? (props.noDataMessage) : (jsx(EmptyState, { className: "absolute inset-0", description: t("table.noResults"), image: "SEARCH_DOCUMENT", ...props.emptyState })) }) }) }))] }) }), hideFooter ? null : (jsxs("div", { className: "flex items-center p-2", "data-testid": "table-footer", children: [jsx("div", { className: "whitespace-nowrap text-xs font-medium text-neutral-600", children: props.pagination?.pageInfo?.count
|
|
1291
|
+
}), children: jsx("tr", { children: jsx("td", { className: "b-0", children: loading ? (jsx(Spinner, { centering: "centered", containerClassName: "absolute inset-0", "data-testid": "table-loading-spinner" })) : props.noDataMessage !== undefined && props.noDataMessage !== "" ? (props.noDataMessage) : (jsx(EmptyState, { className: "absolute inset-0", description: t("table.noResults"), image: "SEARCH_DOCUMENT", ...props.emptyState })) }) }) }))] }) }), hideFooter ? null : (jsxs("div", { className: "flex items-center p-2", "data-testid": "table-footer", children: [jsx("div", { className: "whitespace-nowrap text-xs font-medium text-neutral-600", children: typeof props.pagination?.pageInfo?.count === "number"
|
|
1292
1292
|
? t(props.pagination.pageInfo.isCountCapped ? "table.pagination.full.capped" : "table.pagination.full", {
|
|
1293
1293
|
count: props.getRowModel().rows.length,
|
|
1294
1294
|
total: props.pagination.pageInfo.count,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/react-table",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.41",
|
|
4
4
|
"repository": "https://github.com/Trackunit/manager",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"engines": {
|
|
@@ -11,14 +11,14 @@
|
|
|
11
11
|
"react-dnd": "16.0.1",
|
|
12
12
|
"react-dnd-html5-backend": "16.0.1",
|
|
13
13
|
"tailwind-merge": "^2.0.0",
|
|
14
|
-
"@trackunit/react-components": "2.1.
|
|
15
|
-
"@trackunit/shared-utils": "1.15.
|
|
16
|
-
"@trackunit/css-class-variance-utilities": "1.13.
|
|
17
|
-
"@trackunit/ui-icons": "1.13.
|
|
18
|
-
"@trackunit/react-table-base-components": "2.1.
|
|
19
|
-
"@trackunit/react-form-components": "2.1.
|
|
20
|
-
"@trackunit/i18n-library-translation": "2.0.
|
|
21
|
-
"@trackunit/iris-app-runtime-core-api": "1.16.
|
|
14
|
+
"@trackunit/react-components": "2.1.38",
|
|
15
|
+
"@trackunit/shared-utils": "1.15.42",
|
|
16
|
+
"@trackunit/css-class-variance-utilities": "1.13.42",
|
|
17
|
+
"@trackunit/ui-icons": "1.13.44",
|
|
18
|
+
"@trackunit/react-table-base-components": "2.1.41",
|
|
19
|
+
"@trackunit/react-form-components": "2.1.40",
|
|
20
|
+
"@trackunit/i18n-library-translation": "2.0.39",
|
|
21
|
+
"@trackunit/iris-app-runtime-core-api": "1.16.46"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
24
|
"@tanstack/react-router": "^1.114.29",
|