@mailstep/design-system 0.8.32-beta.1 → 0.8.32-beta.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/package.json
CHANGED
|
@@ -14,7 +14,7 @@ const useGridAggregation = ({ rowsData, columns, activeColumnName, operation })
|
|
|
14
14
|
rowsData
|
|
15
15
|
]);
|
|
16
16
|
const numericValues = useMemo(() => {
|
|
17
|
-
return rowsData
|
|
17
|
+
return rowsData?.map((row) => {
|
|
18
18
|
const value = get(activeColumnName || "", row);
|
|
19
19
|
const rowValue = column?.formatRowValue?.(row) || value;
|
|
20
20
|
return Number(rowValue);
|
|
@@ -3,7 +3,6 @@ import { rowsPerPageOptions } from "../../utils/constants.js";
|
|
|
3
3
|
import { useCallback, useMemo } from "react";
|
|
4
4
|
import styled$1, { x } from "@xstyled/styled-components";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
-
import { Trans } from "@lingui/react";
|
|
7
6
|
//#region packages/ui/Blocks/CommonGrid/components/TablePagination/TablePagination.tsx
|
|
8
7
|
const Wrapper = styled$1.span`
|
|
9
8
|
display: flex;
|
|
@@ -20,7 +19,7 @@ const StyledSelect = styled$1(x.div)`
|
|
|
20
19
|
align-items: center;
|
|
21
20
|
gap: 8px;
|
|
22
21
|
margin-right: 15px;
|
|
23
|
-
width:
|
|
22
|
+
width: 170px;
|
|
24
23
|
font-size: 14px;
|
|
25
24
|
white-space: nowrap;
|
|
26
25
|
color: gray1;
|
|
@@ -47,10 +46,7 @@ const TablePagination = ({ gridActions, gridSelectors, autoRowsPerPage, customPa
|
|
|
47
46
|
page,
|
|
48
47
|
customPaginationHandler
|
|
49
48
|
]);
|
|
50
|
-
return /* @__PURE__ */ jsx(Wrapper, { children: /* @__PURE__ */ jsxs(StyledSelect, { children: [/* @__PURE__ */ jsx(
|
|
51
|
-
id: "dataGrid.perPage",
|
|
52
|
-
message: "Per page"
|
|
53
|
-
}), /* @__PURE__ */ jsx(Select, {
|
|
49
|
+
return /* @__PURE__ */ jsx(Wrapper, { children: /* @__PURE__ */ jsxs(StyledSelect, { children: ["Na stránce", /* @__PURE__ */ jsx(Select, {
|
|
54
50
|
name: "rowsPerPage",
|
|
55
51
|
menuPlacement: "top",
|
|
56
52
|
style: "gridFilter",
|