@selfeesas/shared-components 1.3.2 → 1.3.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.
@@ -252,7 +252,7 @@ declare const __VLS_component_7: DefineComponent<ExtractPropTypes<__VLS_WithDefa
252
252
  persistKey: string;
253
253
  defaultRowsPerPage: number;
254
254
  useBuiltInPagination: boolean;
255
- fetchDataFn: (params: Record<string, any>) => Promise< ResponseAPI<any>>;
255
+ fetchDataFn: (params?: Record<string, any>) => Promise<any> | void;
256
256
  initialParams: Record<string, any>;
257
257
  filterSelected: Record<string, any>;
258
258
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
@@ -1087,7 +1087,7 @@ declare interface CustomTableProps_2 {
1087
1087
  columnStorageKey?: string;
1088
1088
  onRowDblClick?: (row: any) => void;
1089
1089
  useBuiltInPagination?: boolean;
1090
- fetchDataFn?: (params: Record<string, any>) => Promise<ResponseAPI<any>>;
1090
+ fetchDataFn?: (params?: Record<string, any>) => Promise<any> | void;
1091
1091
  persistKey?: string;
1092
1092
  defaultRowsPerPage?: number;
1093
1093
  initialParams?: Record<string, any>;
@@ -1303,11 +1303,6 @@ export declare const DateRange: DefineComponent<ExtractPropTypes<__VLS_WithDefau
1303
1303
  }>;
1304
1304
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
1305
1305
 
1306
- declare interface DateRange_2 {
1307
- from: string;
1308
- to: string;
1309
- }
1310
-
1311
1306
  export declare interface DateRangeLocale {
1312
1307
  days?: string[];
1313
1308
  daysShort?: string[];
@@ -1348,11 +1343,16 @@ export declare interface DateRangeProps {
1348
1343
  }>;
1349
1344
  }
1350
1345
 
1346
+ export declare interface DateRangeType {
1347
+ from: string;
1348
+ to: string;
1349
+ }
1350
+
1351
1351
  export declare const dateRangeUtils: {
1352
- validateAndUpdate(currentRange: DateRange_2, newValue: string, isStartDate: boolean): DateRange_2;
1352
+ validateAndUpdate(currentRange: DateRangeType, newValue: string, isStartDate: boolean): DateRangeType;
1353
1353
  isEndDateValid(startDate: string, endDate: string, allowSameDate?: boolean): boolean;
1354
- handlePickerUpdate(value: DateRange_2 | string | null): DateRange_2;
1355
- reset(): DateRange_2;
1354
+ handlePickerUpdate(value: DateRangeType | string | null): DateRangeType;
1355
+ reset(): DateRangeType;
1356
1356
  handleInput(value: string | number | null, callback: (value: string) => void): void;
1357
1357
  };
1358
1358
 
@@ -1668,13 +1668,6 @@ export declare const ResetFiltersButton: DefineComponent<ExtractPropTypes<__VLS_
1668
1668
  onReset?: (() => any) | undefined;
1669
1669
  }>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
1670
1670
 
1671
- declare interface ResponseAPI<T> {
1672
- results?: T[];
1673
- count?: number;
1674
- next?: string | null;
1675
- previous?: string | null;
1676
- }
1677
-
1678
1671
  export declare interface SelectOption<T = any> {
1679
1672
  label: string;
1680
1673
  value: string | number | T;