gantt-lib 0.121.2 → 0.123.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.mts CHANGED
@@ -572,6 +572,8 @@ interface TaskChartSharedProps<TTask extends Task = Task> {
572
572
  onUngroupTask?: (taskId: string) => void;
573
573
  /** Enable add task button at bottom of task list (default: true) */
574
574
  enableAddTask?: boolean;
575
+ /** Label text for the add task button (default: 'Добавить работу') */
576
+ addTaskLabel?: string;
575
577
  /** Default duration for newly created tasks, interpreted in the active day mode (default: 5). */
576
578
  defaultTaskDurationDays?: number;
577
579
  /** View mode: 'day' renders one column per day, 'week' renders one column per 7 days, 'month' renders one column per month (default: 'day') */
@@ -791,6 +793,12 @@ interface TaskRowProps {
791
793
  isWeekend?: (date: Date) => boolean;
792
794
  /** Disable task drag and resize (overrides task.locked) */
793
795
  disableTaskDrag?: boolean;
796
+ /** Disable visual dependency creation ports */
797
+ disableDependencyEditing?: boolean;
798
+ /** Called when a user starts dragging a dependency from a task edge */
799
+ onDependencyPortPointerDown?: (taskId: string, side: 'left' | 'right', event: React$1.PointerEvent<HTMLButtonElement>) => void;
800
+ /** Whether a dependency drag is currently active */
801
+ isDependencyDragActive?: boolean;
794
802
  /** Active chart view mode */
795
803
  viewMode?: 'day' | 'week' | 'month';
796
804
  }
@@ -934,6 +942,12 @@ interface TaskListProps {
934
942
  predecessorId: string;
935
943
  linkType: string;
936
944
  } | null) => void;
945
+ /** Selected dependency controlled by the chart, e.g. after clicking a dependency line */
946
+ selectedChip?: {
947
+ successorId: string;
948
+ predecessorId: string;
949
+ linkType: string;
950
+ } | null;
937
951
  /** Callback when a new task is added (called with full Task object including generated id) */
938
952
  onAdd?: (task: Task) => void;
939
953
  /** Callback when a task is deleted (called with taskId) */
@@ -950,6 +964,8 @@ interface TaskListProps {
950
964
  editingTaskId?: string | null;
951
965
  /** Enable add task button at bottom of task list (default: true) */
952
966
  enableAddTask?: boolean;
967
+ /** Label text for the add task button (default: 'Добавить работу') */
968
+ addTaskLabel?: string;
953
969
  /** Default duration for newly created tasks, interpreted in the active day mode (default: 5). */
954
970
  defaultTaskDurationDays?: number;
955
971
  /** Set of collapsed parent task IDs */
package/dist/index.d.ts CHANGED
@@ -572,6 +572,8 @@ interface TaskChartSharedProps<TTask extends Task = Task> {
572
572
  onUngroupTask?: (taskId: string) => void;
573
573
  /** Enable add task button at bottom of task list (default: true) */
574
574
  enableAddTask?: boolean;
575
+ /** Label text for the add task button (default: 'Добавить работу') */
576
+ addTaskLabel?: string;
575
577
  /** Default duration for newly created tasks, interpreted in the active day mode (default: 5). */
576
578
  defaultTaskDurationDays?: number;
577
579
  /** View mode: 'day' renders one column per day, 'week' renders one column per 7 days, 'month' renders one column per month (default: 'day') */
@@ -791,6 +793,12 @@ interface TaskRowProps {
791
793
  isWeekend?: (date: Date) => boolean;
792
794
  /** Disable task drag and resize (overrides task.locked) */
793
795
  disableTaskDrag?: boolean;
796
+ /** Disable visual dependency creation ports */
797
+ disableDependencyEditing?: boolean;
798
+ /** Called when a user starts dragging a dependency from a task edge */
799
+ onDependencyPortPointerDown?: (taskId: string, side: 'left' | 'right', event: React$1.PointerEvent<HTMLButtonElement>) => void;
800
+ /** Whether a dependency drag is currently active */
801
+ isDependencyDragActive?: boolean;
794
802
  /** Active chart view mode */
795
803
  viewMode?: 'day' | 'week' | 'month';
796
804
  }
@@ -934,6 +942,12 @@ interface TaskListProps {
934
942
  predecessorId: string;
935
943
  linkType: string;
936
944
  } | null) => void;
945
+ /** Selected dependency controlled by the chart, e.g. after clicking a dependency line */
946
+ selectedChip?: {
947
+ successorId: string;
948
+ predecessorId: string;
949
+ linkType: string;
950
+ } | null;
937
951
  /** Callback when a new task is added (called with full Task object including generated id) */
938
952
  onAdd?: (task: Task) => void;
939
953
  /** Callback when a task is deleted (called with taskId) */
@@ -950,6 +964,8 @@ interface TaskListProps {
950
964
  editingTaskId?: string | null;
951
965
  /** Enable add task button at bottom of task list (default: true) */
952
966
  enableAddTask?: boolean;
967
+ /** Label text for the add task button (default: 'Добавить работу') */
968
+ addTaskLabel?: string;
953
969
  /** Default duration for newly created tasks, interpreted in the active day mode (default: 5). */
954
970
  defaultTaskDurationDays?: number;
955
971
  /** Set of collapsed parent task IDs */