@libxai/board 0.16.0 → 0.16.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/index.cjs +20 -20
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +34 -0
- package/dist/index.d.ts +34 -0
- package/dist/index.js +20 -20
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1611,6 +1611,26 @@ interface GanttConfig {
|
|
|
1611
1611
|
onTaskUpdate?: (task: Task) => void;
|
|
1612
1612
|
onTaskDateChange?: (task: Task, startDate: Date, endDate: Date) => void;
|
|
1613
1613
|
onProgressChange?: (taskId: string, oldProgress: number, newProgress: number) => void;
|
|
1614
|
+
/**
|
|
1615
|
+
* Called when user clicks "Edit Task" in context menu
|
|
1616
|
+
* If not provided, the built-in TaskFormModal will be used
|
|
1617
|
+
*/
|
|
1618
|
+
onTaskEdit?: (task: Task) => void;
|
|
1619
|
+
/**
|
|
1620
|
+
* Called when user clicks "Add Subtask" in context menu
|
|
1621
|
+
* If not provided, the built-in subtask creation will be used
|
|
1622
|
+
*/
|
|
1623
|
+
onTaskAddSubtask?: (parentTask: Task) => void;
|
|
1624
|
+
/**
|
|
1625
|
+
* Called when user clicks "Mark Incomplete" in context menu
|
|
1626
|
+
* Sets task status to 'todo' and progress to 0
|
|
1627
|
+
*/
|
|
1628
|
+
onTaskMarkIncomplete?: (task: Task) => void;
|
|
1629
|
+
/**
|
|
1630
|
+
* Called when user clicks "Set In Progress" in context menu
|
|
1631
|
+
* Sets task status to 'in-progress'
|
|
1632
|
+
*/
|
|
1633
|
+
onTaskSetInProgress?: (task: Task) => void;
|
|
1614
1634
|
onDependencyCreate?: (fromTaskId: string, toTaskId: string) => void;
|
|
1615
1635
|
onDependencyDelete?: (taskId: string, dependencyId: string) => void;
|
|
1616
1636
|
onBeforeTaskAdd?: (task: Task) => boolean | void | Promise<boolean | void>;
|
|
@@ -1970,8 +1990,10 @@ interface ContextMenuProps {
|
|
|
1970
1990
|
declare function ContextMenu({ isOpen, x, y, items, onClose, theme }: ContextMenuProps): react_jsx_runtime.JSX.Element | null;
|
|
1971
1991
|
declare const MenuIcons: {
|
|
1972
1992
|
Edit: react_jsx_runtime.JSX.Element;
|
|
1993
|
+
Pencil: react_jsx_runtime.JSX.Element;
|
|
1973
1994
|
Delete: react_jsx_runtime.JSX.Element;
|
|
1974
1995
|
Add: react_jsx_runtime.JSX.Element;
|
|
1996
|
+
AddSubtask: react_jsx_runtime.JSX.Element;
|
|
1975
1997
|
Remove: react_jsx_runtime.JSX.Element;
|
|
1976
1998
|
Link: react_jsx_runtime.JSX.Element;
|
|
1977
1999
|
Progress: react_jsx_runtime.JSX.Element;
|
|
@@ -1982,6 +2004,9 @@ declare const MenuIcons: {
|
|
|
1982
2004
|
Show: react_jsx_runtime.JSX.Element;
|
|
1983
2005
|
Settings: react_jsx_runtime.JSX.Element;
|
|
1984
2006
|
Split: react_jsx_runtime.JSX.Element;
|
|
2007
|
+
MarkIncomplete: react_jsx_runtime.JSX.Element;
|
|
2008
|
+
SetInProgress: react_jsx_runtime.JSX.Element;
|
|
2009
|
+
MarkComplete: react_jsx_runtime.JSX.Element;
|
|
1985
2010
|
};
|
|
1986
2011
|
|
|
1987
2012
|
interface TaskFormData {
|
|
@@ -2496,6 +2521,15 @@ interface GanttTranslations {
|
|
|
2496
2521
|
normal: string;
|
|
2497
2522
|
spacious: string;
|
|
2498
2523
|
};
|
|
2524
|
+
contextMenu: {
|
|
2525
|
+
editTask: string;
|
|
2526
|
+
addSubtask: string;
|
|
2527
|
+
markIncomplete: string;
|
|
2528
|
+
setInProgress: string;
|
|
2529
|
+
markComplete: string;
|
|
2530
|
+
splitTask: string;
|
|
2531
|
+
deleteTask: string;
|
|
2532
|
+
};
|
|
2499
2533
|
actions: {
|
|
2500
2534
|
edit: string;
|
|
2501
2535
|
delete: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -1611,6 +1611,26 @@ interface GanttConfig {
|
|
|
1611
1611
|
onTaskUpdate?: (task: Task) => void;
|
|
1612
1612
|
onTaskDateChange?: (task: Task, startDate: Date, endDate: Date) => void;
|
|
1613
1613
|
onProgressChange?: (taskId: string, oldProgress: number, newProgress: number) => void;
|
|
1614
|
+
/**
|
|
1615
|
+
* Called when user clicks "Edit Task" in context menu
|
|
1616
|
+
* If not provided, the built-in TaskFormModal will be used
|
|
1617
|
+
*/
|
|
1618
|
+
onTaskEdit?: (task: Task) => void;
|
|
1619
|
+
/**
|
|
1620
|
+
* Called when user clicks "Add Subtask" in context menu
|
|
1621
|
+
* If not provided, the built-in subtask creation will be used
|
|
1622
|
+
*/
|
|
1623
|
+
onTaskAddSubtask?: (parentTask: Task) => void;
|
|
1624
|
+
/**
|
|
1625
|
+
* Called when user clicks "Mark Incomplete" in context menu
|
|
1626
|
+
* Sets task status to 'todo' and progress to 0
|
|
1627
|
+
*/
|
|
1628
|
+
onTaskMarkIncomplete?: (task: Task) => void;
|
|
1629
|
+
/**
|
|
1630
|
+
* Called when user clicks "Set In Progress" in context menu
|
|
1631
|
+
* Sets task status to 'in-progress'
|
|
1632
|
+
*/
|
|
1633
|
+
onTaskSetInProgress?: (task: Task) => void;
|
|
1614
1634
|
onDependencyCreate?: (fromTaskId: string, toTaskId: string) => void;
|
|
1615
1635
|
onDependencyDelete?: (taskId: string, dependencyId: string) => void;
|
|
1616
1636
|
onBeforeTaskAdd?: (task: Task) => boolean | void | Promise<boolean | void>;
|
|
@@ -1970,8 +1990,10 @@ interface ContextMenuProps {
|
|
|
1970
1990
|
declare function ContextMenu({ isOpen, x, y, items, onClose, theme }: ContextMenuProps): react_jsx_runtime.JSX.Element | null;
|
|
1971
1991
|
declare const MenuIcons: {
|
|
1972
1992
|
Edit: react_jsx_runtime.JSX.Element;
|
|
1993
|
+
Pencil: react_jsx_runtime.JSX.Element;
|
|
1973
1994
|
Delete: react_jsx_runtime.JSX.Element;
|
|
1974
1995
|
Add: react_jsx_runtime.JSX.Element;
|
|
1996
|
+
AddSubtask: react_jsx_runtime.JSX.Element;
|
|
1975
1997
|
Remove: react_jsx_runtime.JSX.Element;
|
|
1976
1998
|
Link: react_jsx_runtime.JSX.Element;
|
|
1977
1999
|
Progress: react_jsx_runtime.JSX.Element;
|
|
@@ -1982,6 +2004,9 @@ declare const MenuIcons: {
|
|
|
1982
2004
|
Show: react_jsx_runtime.JSX.Element;
|
|
1983
2005
|
Settings: react_jsx_runtime.JSX.Element;
|
|
1984
2006
|
Split: react_jsx_runtime.JSX.Element;
|
|
2007
|
+
MarkIncomplete: react_jsx_runtime.JSX.Element;
|
|
2008
|
+
SetInProgress: react_jsx_runtime.JSX.Element;
|
|
2009
|
+
MarkComplete: react_jsx_runtime.JSX.Element;
|
|
1985
2010
|
};
|
|
1986
2011
|
|
|
1987
2012
|
interface TaskFormData {
|
|
@@ -2496,6 +2521,15 @@ interface GanttTranslations {
|
|
|
2496
2521
|
normal: string;
|
|
2497
2522
|
spacious: string;
|
|
2498
2523
|
};
|
|
2524
|
+
contextMenu: {
|
|
2525
|
+
editTask: string;
|
|
2526
|
+
addSubtask: string;
|
|
2527
|
+
markIncomplete: string;
|
|
2528
|
+
setInProgress: string;
|
|
2529
|
+
markComplete: string;
|
|
2530
|
+
splitTask: string;
|
|
2531
|
+
deleteTask: string;
|
|
2532
|
+
};
|
|
2499
2533
|
actions: {
|
|
2500
2534
|
edit: string;
|
|
2501
2535
|
delete: string;
|