@addsign/moje-agenda-shared-lib 1.0.21 → 1.0.23

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.
@@ -22,5 +22,6 @@ type DataTableInternalItems = {
22
22
  _isHighlighted?: boolean;
23
23
  id: string;
24
24
  };
25
+ export declare const resetAllDataTablePaging: () => void;
25
26
  declare function DataTableServer<T extends DataTableInternalItems>({ id, url, columns, title, subtitle, allowSearch, showHeader, rowAction, bulkAction, filters, }: DataTableServerProps<T>): import("react/jsx-runtime").JSX.Element;
26
27
  export default DataTableServer;
@@ -21682,6 +21682,16 @@ var utils = {
21682
21682
  SHEET_VERY_HIDDEN: 2
21683
21683
  }
21684
21684
  };
21685
+ const resetAllDataTablePaging = () => {
21686
+ Object.keys(localStorage).filter((key) => key.startsWith("datatable:")).forEach((key) => {
21687
+ const storageObject = localStorage.getItem(key);
21688
+ if (storageObject) {
21689
+ const parsedObject = JSON.parse(storageObject);
21690
+ parsedObject.currentPage = 0;
21691
+ localStorage.setItem(key, JSON.stringify(parsedObject));
21692
+ }
21693
+ });
21694
+ };
21685
21695
  function DataTableServer({
21686
21696
  id,
21687
21697
  url,
@@ -22330,6 +22340,7 @@ function DataTableServer({
22330
22340
  ) });
22331
22341
  }
22332
22342
  export {
22333
- DataTableServer as default
22343
+ DataTableServer as default,
22344
+ resetAllDataTablePaging
22334
22345
  };
22335
22346
  //# sourceMappingURL=DataTableServer.js.map