lml-main
Version:
This is now a mono repository published into many standalone packages.
35 lines (34 loc) • 1.44 kB
TypeScript
export declare const SET_DRAG_TARGET = "SET_DRAG_TARGET";
export declare const SET_DROP_TARGET = "SET_DROP_TARGET";
export declare const RESET_DRAG_AND_DROP = "RESET_DRAG_AND_DROP";
export declare const RESET_DROP_TARGET = "RESET_DROP_TARGET";
export declare type COURIER_DRAG_TYPE = 'COURIER_DRAG_TYPE';
export declare type JOB_DRAG_TYPE = 'JOB_DRAG_TYPE';
export declare enum DRAG_TYPES {
JOB = 0,
COURIER = 1,
}
export declare type DragType = DRAG_TYPES.COURIER | DRAG_TYPES.JOB | null;
export interface SetDragTargetAction {
type: 'SET_DRAG_TARGET';
draggingType: DragType;
refId: string;
}
export interface SetDropTargetAction {
type: 'SET_DROP_TARGET';
draggingType: DragType;
refId: string;
}
export interface ResetDragAndDropAction {
type: 'RESET_DRAG_AND_DROP';
}
export interface ResetDropTargetAction {
type: 'RESET_DROP_TARGET';
draggingType: DragType;
refId: string;
}
export declare type DraggingAction = SetDragTargetAction | ResetDragAndDropAction | SetDropTargetAction | ResetDropTargetAction;
export declare const setDragTarget: (draggingType: DRAG_TYPES, refId: string) => SetDragTargetAction;
export declare const setDropTarget: (draggingType: DRAG_TYPES, refId: string) => SetDropTargetAction;
export declare const resetDragAndDrop: () => ResetDragAndDropAction;
export declare const resetDropTarget: (draggingType: DRAG_TYPES, refId: string) => ResetDropTargetAction;