@snowpact/react-tanstack-query-table 1.0.0 → 1.1.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/index.d.ts CHANGED
@@ -287,6 +287,31 @@ export declare interface PrefilterTabsProps {
287
287
  onPrefilterChange: (id: string) => void;
288
288
  }
289
289
 
290
+ /**
291
+ * Construct a URL with DataTable state parameters.
292
+ *
293
+ * @param baseUrl - Base URL path (e.g., '/isra/travel-reservation')
294
+ * @param tableState - Optional table state parameters (prefilter, search, pagination, filters, sorting)
295
+ * @returns Complete URL with all query parameters
296
+ *
297
+ * @example
298
+ * redirectToPageWithParam('/isra/travel-reservation', { prefilter: 'all' })
299
+ * // Returns: /isra/travel-reservation?dt_prefilter=all
300
+ */
301
+ export declare const redirectToPageWithParam: (baseUrl: string, tableState?: {
302
+ prefilter?: string;
303
+ search?: string;
304
+ pagination?: {
305
+ pageIndex: number;
306
+ pageSize: number;
307
+ };
308
+ filters?: Record<string, string[]>;
309
+ sorting?: {
310
+ id: string;
311
+ desc: boolean;
312
+ }[];
313
+ }) => string;
314
+
290
315
  export declare function SearchBar({ value, onDebouncedChange, placeholder }: SearchBarProps): JSX.Element;
291
316
 
292
317
  /**