@yusr_systems/ui 2.0.9 → 2.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 +10 -8
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -406,14 +406,7 @@ export declare function createGenericDialogSlice<T>(sliceName: string): Slice<ID
|
|
|
406
406
|
|
|
407
407
|
export declare function createGenericEntitySlice<T extends BaseEntity, CR extends SliceCaseReducers<IEntityState<T>> = {}>(sliceName: string, service: BaseFilterableApiService<T>, filterMethod?: FilterMethodType<T>, customReducers?: CR): {
|
|
408
408
|
reducer: Reducer<IEntityState<T>>;
|
|
409
|
-
actions:
|
|
410
|
-
setCurrentPage: ActionCreatorWithPayload<number, string>;
|
|
411
|
-
refresh: ActionCreatorWithPayload<{
|
|
412
|
-
data?: T;
|
|
413
|
-
deletedId?: number;
|
|
414
|
-
}, string>;
|
|
415
|
-
filter: AsyncThunk<FilterResult<T> | undefined, FilterCondition | undefined, any>;
|
|
416
|
-
} & CaseReducerActions<CR, string>;
|
|
409
|
+
actions: EntityActions<T, CR>;
|
|
417
410
|
};
|
|
418
411
|
|
|
419
412
|
export declare interface CrudActions<T extends BaseEntity> {
|
|
@@ -643,6 +636,15 @@ declare type EmptyTablePreviewProps = {
|
|
|
643
636
|
|
|
644
637
|
export declare function EmptyTitle({ className, ...props }: React.ComponentProps<"div">): JSX.Element;
|
|
645
638
|
|
|
639
|
+
export declare type EntityActions<T, CR extends SliceCaseReducers<IEntityState<T>>> = {
|
|
640
|
+
setCurrentPage: ActionCreatorWithPayload<number, string>;
|
|
641
|
+
refresh: ActionCreatorWithPayload<{
|
|
642
|
+
data?: T;
|
|
643
|
+
deletedId?: number;
|
|
644
|
+
}, string>;
|
|
645
|
+
filter: AsyncThunk<FilterResult<T> | undefined, FilterCondition | undefined, any>;
|
|
646
|
+
} & CaseReducerActions<CR, string>;
|
|
647
|
+
|
|
646
648
|
export declare function Field({ className, orientation, ...props }: React.ComponentProps<"div"> & VariantProps<typeof fieldVariants>): JSX.Element;
|
|
647
649
|
|
|
648
650
|
export declare function FieldContent({ className, ...props }: React.ComponentProps<"div">): JSX.Element;
|