@majoo-ui/react 1.60.14-rc.2 → 1.60.14-rc.4
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/components/table/Table.d.ts +3 -3
- package/index.esm.js +3 -3
- package/index.umd.js +3 -3
- package/package.json +1 -1
|
@@ -1410,11 +1410,11 @@ export interface TableProps {
|
|
|
1410
1410
|
*/
|
|
1411
1411
|
virtualized?: boolean;
|
|
1412
1412
|
/**
|
|
1413
|
-
*
|
|
1413
|
+
* Add additional table header component
|
|
1414
1414
|
*/
|
|
1415
|
-
|
|
1415
|
+
additionalHeader?: React.ReactNode;
|
|
1416
1416
|
}
|
|
1417
|
-
export declare function Table({ columns, data: rawData, keyId, pageIndex: controlledPageIndex, totalPage, totalData, fetchData, hideDataInfo, rowsPerPageOptions, emptyDataMessage, customEmptyDataProps: emptyDataProps, isLoading, css, headerCss, hideHeader, onSelectedChange, isInfiniteScroll, hasMoreItems, rowLimit, cellAlign, selectedIds, rowGroup, decoration, hiddenColumns, columnOrder, customRowsStyle, isMobileLayout, showDuplicatedData, onRowClick, hidePagination, searchQuery, additionalExceptionIds, onExpand, id, onColumnChange, virtualized, withoutLimit,
|
|
1417
|
+
export declare function Table({ columns, data: rawData, keyId, pageIndex: controlledPageIndex, totalPage, totalData, fetchData, hideDataInfo, rowsPerPageOptions, emptyDataMessage, customEmptyDataProps: emptyDataProps, isLoading, css, headerCss, hideHeader, onSelectedChange, isInfiniteScroll, hasMoreItems, rowLimit, cellAlign, selectedIds, rowGroup, decoration, hiddenColumns, columnOrder, customRowsStyle, isMobileLayout, showDuplicatedData, onRowClick, hidePagination, searchQuery, additionalExceptionIds, onExpand, id, onColumnChange, virtualized, withoutLimit, additionalHeader, }: TableProps): JSX.Element;
|
|
1418
1418
|
export interface TableColumnProps {
|
|
1419
1419
|
/**
|
|
1420
1420
|
* Required if accessor is a function<br/>
|
package/index.esm.js
CHANGED
|
@@ -23266,7 +23266,7 @@ function Table({
|
|
|
23266
23266
|
onColumnChange,
|
|
23267
23267
|
virtualized = true,
|
|
23268
23268
|
withoutLimit = false,
|
|
23269
|
-
|
|
23269
|
+
additionalHeader
|
|
23270
23270
|
}) {
|
|
23271
23271
|
var _a, _b, _c, _d;
|
|
23272
23272
|
const [openMenu, setOpen] = useState(false);
|
|
@@ -23702,7 +23702,7 @@ function Table({
|
|
|
23702
23702
|
return jsx(TableHeadRow$3, Object.assign({
|
|
23703
23703
|
css: cssTableCell
|
|
23704
23704
|
}, headerGroup.getHeaderGroupProps(), {
|
|
23705
|
-
children:
|
|
23705
|
+
children: visibleHeaders.map((column, index) => {
|
|
23706
23706
|
const headerRender = column.render('Header');
|
|
23707
23707
|
return jsx(TableHeadCell$3, Object.assign({}, column.getHeaderProps(props => [props, !column.unsortable ? column.getSortByToggleProps({
|
|
23708
23708
|
title: t('sortColumnTitle', 'Urutkan') || 'Urutkan'
|
|
@@ -23735,7 +23735,7 @@ function Table({
|
|
|
23735
23735
|
})
|
|
23736
23736
|
}), void 0);
|
|
23737
23737
|
})
|
|
23738
|
-
}), void 0), jsxs(TableBody$3, Object.assign({}, getTableBodyProps(), {
|
|
23738
|
+
}), void 0), additionalHeader, jsxs(TableBody$3, Object.assign({}, getTableBodyProps(), {
|
|
23739
23739
|
children: [isInfiniteScroll && paddingTop > 0 && jsx("tr", {
|
|
23740
23740
|
children: jsx("td", {
|
|
23741
23741
|
style: {
|
package/index.umd.js
CHANGED
|
@@ -23655,7 +23655,7 @@
|
|
|
23655
23655
|
virtualized = _v === void 0 ? true : _v,
|
|
23656
23656
|
_w = _a.withoutLimit,
|
|
23657
23657
|
withoutLimit = _w === void 0 ? false : _w,
|
|
23658
|
-
|
|
23658
|
+
additionalHeader = _a.additionalHeader;
|
|
23659
23659
|
var _x = React.useState(false),
|
|
23660
23660
|
openMenu = _x[0],
|
|
23661
23661
|
setOpen = _x[1];
|
|
@@ -24138,7 +24138,7 @@
|
|
|
24138
24138
|
return jsxRuntime.jsx(TableHeadRow$3, __assign({
|
|
24139
24139
|
css: cssTableCell
|
|
24140
24140
|
}, headerGroup.getHeaderGroupProps(), {
|
|
24141
|
-
children:
|
|
24141
|
+
children: visibleHeaders.map(function (column, index) {
|
|
24142
24142
|
var headerRender = column.render('Header');
|
|
24143
24143
|
return jsxRuntime.jsx(TableHeadCell$3, __assign({}, column.getHeaderProps(function (props) {
|
|
24144
24144
|
return [props, !column.unsortable ? column.getSortByToggleProps({
|
|
@@ -24173,7 +24173,7 @@
|
|
|
24173
24173
|
})
|
|
24174
24174
|
}), void 0);
|
|
24175
24175
|
})
|
|
24176
|
-
}), void 0), jsxRuntime.jsxs(TableBody$3, __assign({}, getTableBodyProps(), {
|
|
24176
|
+
}), void 0), additionalHeader, jsxRuntime.jsxs(TableBody$3, __assign({}, getTableBodyProps(), {
|
|
24177
24177
|
children: [isInfiniteScroll && paddingTop > 0 && jsxRuntime.jsx("tr", {
|
|
24178
24178
|
children: jsxRuntime.jsx("td", {
|
|
24179
24179
|
style: {
|