@tsed/react-formio 2.2.0 → 2.2.1
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/components/table/hooks/useCustomTable.hook.d.ts +5 -0
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +5 -1
- package/dist/index.modern.js.map +1 -1
- package/package.json +3 -3
- package/src/components/table/hooks/useCustomTable.hook.tsx +6 -0
- package/src/components/table/table.component.tsx +2 -0
package/dist/index.modern.js
CHANGED
|
@@ -694,7 +694,7 @@ function useOperations({
|
|
|
694
694
|
};
|
|
695
695
|
}
|
|
696
696
|
|
|
697
|
-
const _excluded$9 = ["children", "className", "columns", "data", "onChange", "onClick", "onDrag", "onDrop", "operations", "pageSizes", "filters", "filterId", "pageSize", "pageIndex", "sortBy", "isLoading", "disableFilters", "disablePagination", "ArrowSort", "ColumnFilter", "EmptyData", "Loader", "Pagination", "Row", "CellHeader", "CellOperations", "i18n"];
|
|
697
|
+
const _excluded$9 = ["children", "className", "columns", "data", "onChange", "onClick", "onDrag", "onDrop", "operations", "pageSizes", "filters", "filterId", "pageSize", "pageIndex", "totalLength", "sortBy", "isLoading", "disableFilters", "disablePagination", "ArrowSort", "ColumnFilter", "EmptyData", "Loader", "Pagination", "Row", "CellHeader", "CellOperations", "i18n"];
|
|
698
698
|
function getOperationCallback(operations, onClick) {
|
|
699
699
|
return (data, action) => {
|
|
700
700
|
const operation = operations.find(operation => operation.action === action || operation.alias === action);
|
|
@@ -730,6 +730,7 @@ function useCustomTable(props) {
|
|
|
730
730
|
filterId: controlledFilterId,
|
|
731
731
|
pageSize: controlledPageSize,
|
|
732
732
|
pageIndex: controlledPageIndex,
|
|
733
|
+
totalLength,
|
|
733
734
|
sortBy: controlledSortBy,
|
|
734
735
|
isLoading,
|
|
735
736
|
disableFilters,
|
|
@@ -819,6 +820,7 @@ function useCustomTable(props) {
|
|
|
819
820
|
pageIndex,
|
|
820
821
|
pageSize,
|
|
821
822
|
pageSizes,
|
|
823
|
+
totalLength,
|
|
822
824
|
setPageSize,
|
|
823
825
|
i18n,
|
|
824
826
|
children,
|
|
@@ -846,6 +848,7 @@ function Table(props) {
|
|
|
846
848
|
pageSize,
|
|
847
849
|
pageSizes,
|
|
848
850
|
setPageSize,
|
|
851
|
+
totalLength,
|
|
849
852
|
i18n,
|
|
850
853
|
enableDragNDrop,
|
|
851
854
|
children,
|
|
@@ -884,6 +887,7 @@ function Table(props) {
|
|
|
884
887
|
})) : null), isLoading ? /*#__PURE__*/React.createElement(Loader, null) : null, !data.length ? /*#__PURE__*/React.createElement(EmptyData, null) : null, !isLoading && data.length && !disablePagination ? /*#__PURE__*/React.createElement("div", {
|
|
885
888
|
className: "overflow-hidden"
|
|
886
889
|
}, /*#__PURE__*/React.createElement(Pagination, _extends({}, tableInstance, {
|
|
890
|
+
totalLength: totalLength,
|
|
887
891
|
className: "text-sm",
|
|
888
892
|
pageIndex: pageIndex,
|
|
889
893
|
pageSize: pageSize,
|