@yusr_systems/ui 2.0.8 → 2.1.0
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 +6 -26
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ActionCreatorWithPayload } from '@reduxjs/toolkit';
|
|
2
2
|
import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
|
|
3
3
|
import { AsyncThunk } from '@reduxjs/toolkit';
|
|
4
|
-
import { AsyncThunkConfig } from '@reduxjs/toolkit';
|
|
5
4
|
import * as AvatarPrimitive from '@radix-ui/react-avatar';
|
|
6
5
|
import { BaseApiService } from '@yusr_systems/core/src/networking';
|
|
7
6
|
import { BaseEntity } from '@yusr_systems/core/src/entities';
|
|
@@ -407,33 +406,14 @@ export declare function createGenericDialogSlice<T>(sliceName: string): Slice<ID
|
|
|
407
406
|
|
|
408
407
|
export declare function createGenericEntitySlice<T extends BaseEntity, CR extends SliceCaseReducers<IEntityState<T>> = {}>(sliceName: string, service: BaseFilterableApiService<T>, filterMethod?: FilterMethodType<T>, customReducers?: CR): {
|
|
409
408
|
reducer: Reducer<IEntityState<T>>;
|
|
410
|
-
actions:
|
|
411
|
-
setCurrentPage:
|
|
412
|
-
|
|
413
|
-
data: Draft<T>[] | undefined;
|
|
414
|
-
count: number;
|
|
415
|
-
};
|
|
416
|
-
isLoaded: boolean;
|
|
417
|
-
isLoading: boolean;
|
|
418
|
-
currentPage: number;
|
|
419
|
-
rowsPerPage: number;
|
|
420
|
-
}, action: PayloadAction<number>) => void;
|
|
421
|
-
refresh: (state: {
|
|
422
|
-
entities: {
|
|
423
|
-
data: Draft<T>[] | undefined;
|
|
424
|
-
count: number;
|
|
425
|
-
};
|
|
426
|
-
isLoaded: boolean;
|
|
427
|
-
isLoading: boolean;
|
|
428
|
-
currentPage: number;
|
|
429
|
-
rowsPerPage: number;
|
|
430
|
-
}, action: PayloadAction<{
|
|
409
|
+
actions: {
|
|
410
|
+
setCurrentPage: ActionCreatorWithPayload<number, string>;
|
|
411
|
+
refresh: ActionCreatorWithPayload<{
|
|
431
412
|
data?: T;
|
|
432
413
|
deletedId?: number;
|
|
433
|
-
}
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
};
|
|
414
|
+
}, string>;
|
|
415
|
+
filter: AsyncThunk<FilterResult<T> | undefined, FilterCondition | undefined, any>;
|
|
416
|
+
} & CaseReducerActions<CR, string>;
|
|
437
417
|
};
|
|
438
418
|
|
|
439
419
|
export declare interface CrudActions<T extends BaseEntity> {
|