Hiyve Components - v1.0.0
    Preparing search index...

    Interface AssignmentMetadataProps

    Props for the AssignmentMetadata component.

    Displays and manages assignment metadata fields including due date, time estimate, status, and assigned participants. When readOnly is true, all fields are displayed but not editable.

    <AssignmentMetadata
    dueDate="2024-04-01T00:00:00.000Z"
    timeHours={2}
    timeMinutes={30}
    status="in_progress"
    assignedTo={['user-1']}
    participants={[{ userId: 'user-1', userName: 'Alice' }]}
    onStatusChange={(status) => console.log(status)}
    onDueDateChange={(date) => console.log(date)}
    onTimeHoursChange={(hours) => console.log(hours)}
    onTimeMinutesChange={(minutes) => console.log(minutes)}
    onAssignedToChange={(userIds) => console.log(userIds)}
    labels={labels}
    icons={icons}
    colors={colors}
    styles={styles}
    />
    interface AssignmentMetadataProps {
        assignedTo: string[];
        colors: AssignmentEditorColors;
        dueDate: string | null;
        icons: AssignmentEditorIcons;
        labels: AssignmentEditorLabels;
        onAssignedToChange: (userIds: string[]) => void;
        onDueDateChange: (date: string | null) => void;
        onStatusChange: (status: AssignmentStatus) => void;
        onTimeHoursChange: (hours: number) => void;
        onTimeMinutesChange: (minutes: number) => void;
        participants: { userId: string; userName?: string }[];
        readOnly?: boolean;
        status: AssignmentStatus;
        styles: AssignmentEditorStyles;
        timeHours: number;
        timeMinutes: number;
    }
    Index

    Properties

    assignedTo: string[]

    List of assigned user IDs

    Custom colors

    dueDate: string | null

    Current due date (ISO string or null)

    Custom icons

    Custom labels

    onAssignedToChange: (userIds: string[]) => void

    Callback when assigned users change

    onDueDateChange: (date: string | null) => void

    Callback when due date changes

    onStatusChange: (status: AssignmentStatus) => void

    Callback when status changes

    onTimeHoursChange: (hours: number) => void

    Callback when hours estimate changes

    onTimeMinutesChange: (minutes: number) => void

    Callback when minutes estimate changes

    participants: { userId: string; userName?: string }[]

    Available participants for assignment

    readOnly?: boolean

    Whether metadata fields are read-only

    Current assignment status

    Custom styles

    timeHours: number

    Current hours component of the time estimate

    timeMinutes: number

    Current minutes component of the time estimate