andoncloud-station-assignment-widget 1.0.0 → 1.0.2
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/components/AssignmentBoard/DropZone/index.d.ts +2 -1
- package/dist/components/AssignmentBoard/OperatorCard/index.d.ts +7 -0
- package/dist/components/AssignmentBoard/OperatorCard/styles.d.ts +1 -1
- package/dist/components/AssignmentBoard/WorkplaceColumn/index.d.ts +3 -0
- package/dist/components/AssignmentBoard/WorkplaceColumn/styles.d.ts +1 -1
- package/dist/components/Navigation/index.d.ts +3 -0
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/dist/utils/state.d.ts +1 -0
- package/dist/version.d.ts +1 -1
- package/package.json +13 -13
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { DroppableProvided } from '@hello-pangea/dnd';
|
|
2
|
+
import { DroppableProps, DroppableProvided } from '@hello-pangea/dnd';
|
|
3
3
|
interface DropZoneProps {
|
|
4
4
|
droppableId: string;
|
|
5
5
|
children: (provided: DroppableProvided) => React.ReactNode;
|
|
6
|
+
renderClone?: DroppableProps['renderClone'];
|
|
6
7
|
}
|
|
7
8
|
declare const DropZone: React.FC<DropZoneProps>;
|
|
8
9
|
export default DropZone;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { DraggableProvided } from '@hello-pangea/dnd';
|
|
2
3
|
import { PresenceStatusEnum } from 'andoncloud-dashboard-toolkit';
|
|
3
4
|
import { OperatorUser } from '@/types';
|
|
4
5
|
interface OperatorCardProps {
|
|
@@ -7,6 +8,12 @@ interface OperatorCardProps {
|
|
|
7
8
|
draggableId: string;
|
|
8
9
|
showPresence?: boolean;
|
|
9
10
|
presenceStatus?: PresenceStatusEnum;
|
|
11
|
+
onRemove?: () => void;
|
|
10
12
|
}
|
|
13
|
+
interface DraggingOperatorCardProps {
|
|
14
|
+
provided: DraggableProvided;
|
|
15
|
+
user: OperatorUser;
|
|
16
|
+
}
|
|
17
|
+
export declare const DraggingOperatorCard: React.FC<DraggingOperatorCardProps>;
|
|
11
18
|
declare const OperatorCard: React.FC<OperatorCardProps>;
|
|
12
19
|
export default OperatorCard;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SxProps, Theme } from '@mui/material';
|
|
2
2
|
import { PresenceStatusEnum } from 'andoncloud-dashboard-toolkit';
|
|
3
|
-
export declare const makeCardStyles: (
|
|
3
|
+
export declare const makeCardStyles: (dragging?: boolean) => SxProps<Theme>;
|
|
4
4
|
export declare const makePresenceDotStyles: (status: PresenceStatusEnum) => SxProps<Theme>;
|
|
5
5
|
declare const styles: Record<string, SxProps<Theme>>;
|
|
6
6
|
export default styles;
|
|
@@ -2,6 +2,9 @@ import React from 'react';
|
|
|
2
2
|
import { ListWorkplaceAssignments_WorkplaceWithAssignment } from 'andoncloud-dashboard-toolkit';
|
|
3
3
|
interface WorkplaceColumnProps {
|
|
4
4
|
assignment: ListWorkplaceAssignments_WorkplaceWithAssignment;
|
|
5
|
+
registerRef?: (el: HTMLDivElement | null) => void;
|
|
6
|
+
frozenHeight?: number;
|
|
7
|
+
onRemoveOperator?: (userId: string) => void;
|
|
5
8
|
}
|
|
6
9
|
declare const WorkplaceColumn: React.FC<WorkplaceColumnProps>;
|
|
7
10
|
export default WorkplaceColumn;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SxProps, Theme } from '@mui/material';
|
|
2
|
-
export declare const makeRootStyles: (isOvercapacity: boolean) => SxProps<Theme>;
|
|
2
|
+
export declare const makeRootStyles: (isOvercapacity: boolean, frozenHeight?: number) => SxProps<Theme>;
|
|
3
3
|
declare const styles: Record<string, SxProps<Theme>>;
|
|
4
4
|
export declare const makeStatusBadgeStyles: (status: "missing" | "overcapacity" | "ok") => SxProps<Theme>;
|
|
5
5
|
export default styles;
|
|
@@ -2,6 +2,9 @@ import React from 'react';
|
|
|
2
2
|
import { ViewState } from '@/types';
|
|
3
3
|
interface NavigationProps {
|
|
4
4
|
viewState: ViewState;
|
|
5
|
+
departmentName?: string;
|
|
6
|
+
canPrev?: boolean;
|
|
7
|
+
canNext?: boolean;
|
|
5
8
|
onNavigate: (direction: 'prev' | 'next') => void;
|
|
6
9
|
}
|
|
7
10
|
declare const Navigation: React.FC<NavigationProps>;
|