@libxai/board 1.5.87 → 1.5.88
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.cjs +21 -21
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -2
- package/dist/index.d.ts +5 -2
- package/dist/index.js +21 -21
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -2870,6 +2870,8 @@ interface TimelineProps {
|
|
|
2870
2870
|
highlightWeekends?: boolean;
|
|
2871
2871
|
/** v4.1.0: Per-task edit check — returns false for read-only bars */
|
|
2872
2872
|
canEditTask?: (task: Task) => boolean;
|
|
2873
|
+
/** v4.2.0: Committed on pointerup after dragging the progress edge of a task bar. */
|
|
2874
|
+
onTaskProgressDrag?: (task: Task, newProgress: number) => void;
|
|
2873
2875
|
}
|
|
2874
2876
|
interface TaskPosition {
|
|
2875
2877
|
id: string;
|
|
@@ -2882,7 +2884,7 @@ declare function Timeline({ tasks, theme, rowHeight: ROW_HEIGHT, timeScale, star
|
|
|
2882
2884
|
templates, dependencyLineStyle, // v0.17.310
|
|
2883
2885
|
showTaskBarLabels, onTaskClick, onTaskDblClick, // v0.8.0
|
|
2884
2886
|
onTaskContextMenu, // v0.8.0
|
|
2885
|
-
onTaskDateChange, onDependencyCreate, onDependencyDelete, showBaseline, showCriticalPath, showDependencies, highlightWeekends, canEditTask, }: TimelineProps): react_jsx_runtime.JSX.Element;
|
|
2887
|
+
onTaskDateChange, onDependencyCreate, onDependencyDelete, showBaseline, showCriticalPath, showDependencies, highlightWeekends, canEditTask, onTaskProgressDrag, }: TimelineProps): react_jsx_runtime.JSX.Element;
|
|
2886
2888
|
|
|
2887
2889
|
interface TaskTooltipData {
|
|
2888
2890
|
task: Task;
|
|
@@ -2916,13 +2918,14 @@ interface TaskBarProps {
|
|
|
2916
2918
|
showTaskBarLabels?: boolean;
|
|
2917
2919
|
showCriticalPath?: boolean;
|
|
2918
2920
|
readOnly?: boolean;
|
|
2921
|
+
onProgressChange?: (task: Task, newProgress: number) => void;
|
|
2919
2922
|
}
|
|
2920
2923
|
declare function TaskBar({ task, x, y, width, theme, dayWidth, startDate, templates, onClick, onDoubleClick, // v0.8.0
|
|
2921
2924
|
onContextMenu, // v0.8.0
|
|
2922
2925
|
onDateChange, onDependencyCreate, allTaskPositions, onDragMove, // v0.13.0
|
|
2923
2926
|
onHoverChange, // v0.17.76
|
|
2924
2927
|
showBaseline, // v3.0.0
|
|
2925
|
-
showTaskBarLabels, showCriticalPath, readOnly, }: TaskBarProps): react_jsx_runtime.JSX.Element;
|
|
2928
|
+
showTaskBarLabels, showCriticalPath, readOnly, onProgressChange, }: TaskBarProps): react_jsx_runtime.JSX.Element;
|
|
2926
2929
|
|
|
2927
2930
|
interface DependencyLineProps {
|
|
2928
2931
|
x1: number;
|
package/dist/index.d.ts
CHANGED
|
@@ -2870,6 +2870,8 @@ interface TimelineProps {
|
|
|
2870
2870
|
highlightWeekends?: boolean;
|
|
2871
2871
|
/** v4.1.0: Per-task edit check — returns false for read-only bars */
|
|
2872
2872
|
canEditTask?: (task: Task) => boolean;
|
|
2873
|
+
/** v4.2.0: Committed on pointerup after dragging the progress edge of a task bar. */
|
|
2874
|
+
onTaskProgressDrag?: (task: Task, newProgress: number) => void;
|
|
2873
2875
|
}
|
|
2874
2876
|
interface TaskPosition {
|
|
2875
2877
|
id: string;
|
|
@@ -2882,7 +2884,7 @@ declare function Timeline({ tasks, theme, rowHeight: ROW_HEIGHT, timeScale, star
|
|
|
2882
2884
|
templates, dependencyLineStyle, // v0.17.310
|
|
2883
2885
|
showTaskBarLabels, onTaskClick, onTaskDblClick, // v0.8.0
|
|
2884
2886
|
onTaskContextMenu, // v0.8.0
|
|
2885
|
-
onTaskDateChange, onDependencyCreate, onDependencyDelete, showBaseline, showCriticalPath, showDependencies, highlightWeekends, canEditTask, }: TimelineProps): react_jsx_runtime.JSX.Element;
|
|
2887
|
+
onTaskDateChange, onDependencyCreate, onDependencyDelete, showBaseline, showCriticalPath, showDependencies, highlightWeekends, canEditTask, onTaskProgressDrag, }: TimelineProps): react_jsx_runtime.JSX.Element;
|
|
2886
2888
|
|
|
2887
2889
|
interface TaskTooltipData {
|
|
2888
2890
|
task: Task;
|
|
@@ -2916,13 +2918,14 @@ interface TaskBarProps {
|
|
|
2916
2918
|
showTaskBarLabels?: boolean;
|
|
2917
2919
|
showCriticalPath?: boolean;
|
|
2918
2920
|
readOnly?: boolean;
|
|
2921
|
+
onProgressChange?: (task: Task, newProgress: number) => void;
|
|
2919
2922
|
}
|
|
2920
2923
|
declare function TaskBar({ task, x, y, width, theme, dayWidth, startDate, templates, onClick, onDoubleClick, // v0.8.0
|
|
2921
2924
|
onContextMenu, // v0.8.0
|
|
2922
2925
|
onDateChange, onDependencyCreate, allTaskPositions, onDragMove, // v0.13.0
|
|
2923
2926
|
onHoverChange, // v0.17.76
|
|
2924
2927
|
showBaseline, // v3.0.0
|
|
2925
|
-
showTaskBarLabels, showCriticalPath, readOnly, }: TaskBarProps): react_jsx_runtime.JSX.Element;
|
|
2928
|
+
showTaskBarLabels, showCriticalPath, readOnly, onProgressChange, }: TaskBarProps): react_jsx_runtime.JSX.Element;
|
|
2926
2929
|
|
|
2927
2930
|
interface DependencyLineProps {
|
|
2928
2931
|
x1: number;
|