@libxai/board 1.9.47 → 1.9.48
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 +33 -33
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +45 -5
- package/dist/index.d.ts +45 -5
- package/dist/index.js +33 -33
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -92,7 +92,8 @@ type TimeScale = 'day' | 'week' | 'month';
|
|
|
92
92
|
type Theme$1 = 'dark' | 'light' | 'neutral';
|
|
93
93
|
type RowDensity = 'compact' | 'comfortable' | 'spacious';
|
|
94
94
|
type DependencyLineStyle = 'curved' | 'squared';
|
|
95
|
-
|
|
95
|
+
/** Gantt ronda 2 (Yesid) · R4 · 'overdue': sin terminar y con el fin ya pasado. */
|
|
96
|
+
type TaskFilterType = 'all' | 'incomplete' | 'in_progress' | 'completed' | 'overdue';
|
|
96
97
|
type ColumnType$1 = 'name' | 'startDate' | 'endDate' | 'duration' | 'assignees' | 'status' | 'progress' | 'priority';
|
|
97
98
|
interface GanttColumn {
|
|
98
99
|
id: ColumnType$1;
|
|
@@ -503,6 +504,11 @@ interface GanttConfig {
|
|
|
503
504
|
icono?: ReactNode;
|
|
504
505
|
alPulsar: () => void;
|
|
505
506
|
}>;
|
|
507
|
+
/** Gantt ronda 2 (Yesid) · P2 · lo que la app pone en el menú «Vista» (p. ej. sus líneas base), entre la densidad y «Mostrar». */
|
|
508
|
+
contenidoDeVista?: (cerrar: () => void) => ReactNode;
|
|
509
|
+
/** Gantt ronda 2 · P2 · «Mostrar leyenda» en el menú «Vista» (la leyenda la pinta la app, bajo demanda). */
|
|
510
|
+
leyendaVisible?: boolean;
|
|
511
|
+
onLeyendaVisibleChange?: (visible: boolean) => void;
|
|
506
512
|
/** Avisa del cambio de densidad (para que la app la recuerde). */
|
|
507
513
|
onRowDensityChange?: (density: RowDensity) => void;
|
|
508
514
|
/** 1.9.36 · cabecera de la escala W: 'number' («Week 36», por defecto) o 'range' («Sep 1–7»). */
|
|
@@ -3010,6 +3016,16 @@ interface TaskGridProps {
|
|
|
3010
3016
|
resumenV6?: string;
|
|
3011
3017
|
/** Gantt v6: el botón «contraer todos los grupos». */
|
|
3012
3018
|
onContraerTodo?: () => void;
|
|
3019
|
+
/** Gantt ronda 2 · P2 · «Mostrar» las completadas ocultas, junto a su contador. */
|
|
3020
|
+
onMostrarOcultas?: () => void;
|
|
3021
|
+
/** Gantt ronda 2 · R1 · las filas que se dibujan; `null`, todas. */
|
|
3022
|
+
filasVisibles?: {
|
|
3023
|
+
desde: number;
|
|
3024
|
+
hasta: number;
|
|
3025
|
+
} | null;
|
|
3026
|
+
/** Gantt ronda 2 · R4 · «12 vencidas» y su «Ver» (activa el filtro «Solo vencidas»). */
|
|
3027
|
+
avisoVencidas?: string;
|
|
3028
|
+
onVerVencidas?: () => void;
|
|
3013
3029
|
}
|
|
3014
3030
|
declare function TaskGrid({ tasks, theme, rowHeight: ROW_HEIGHT, availableUsers, templates: _templates, // TODO: Use templates for custom rendering
|
|
3015
3031
|
onTaskClick, onTaskSelectionChange, selectedTaskId, onTaskDblClick, // v0.8.0
|
|
@@ -3019,7 +3035,7 @@ onTaskReparent, // v0.17.68
|
|
|
3019
3035
|
allTasks, // v1.9.10: árbol completo para traducir posición con filtros activos
|
|
3020
3036
|
scrollContainerRef, // v0.18.15
|
|
3021
3037
|
showCriticalPath, // v5.1.0
|
|
3022
|
-
v6, resumenV6, onContraerTodo, }: TaskGridProps): react_jsx_runtime.JSX.Element;
|
|
3038
|
+
v6, resumenV6, onContraerTodo, onMostrarOcultas, filasVisibles, avisoVencidas, onVerVencidas, }: TaskGridProps): react_jsx_runtime.JSX.Element;
|
|
3023
3039
|
|
|
3024
3040
|
/**
|
|
3025
3041
|
* Optional working-days configuration so the tooltip Duration reflects the
|
|
@@ -3039,6 +3055,11 @@ interface TimelineProps {
|
|
|
3039
3055
|
izq: number;
|
|
3040
3056
|
der: number;
|
|
3041
3057
|
} | null;
|
|
3058
|
+
/** Gantt ronda 2 (Yesid) · R1 · las filas que se dibujan (las visibles y un margen); `null`, todas (p. ej. al exportar). */
|
|
3059
|
+
filasVisibles?: {
|
|
3060
|
+
desde: number;
|
|
3061
|
+
hasta: number;
|
|
3062
|
+
} | null;
|
|
3042
3063
|
onIrAFecha?: (fecha: Date) => void;
|
|
3043
3064
|
/** Mejora fuerte 6 · fin planeado del proyecto y fin previsto (pronóstico). */
|
|
3044
3065
|
finPlaneado?: Date | null;
|
|
@@ -3077,6 +3098,8 @@ interface TimelineProps {
|
|
|
3077
3098
|
alturaCabecera?: number;
|
|
3078
3099
|
/** Gantt v6 (Asakaa): escala, barras y marcas de la maqueta. */
|
|
3079
3100
|
v6?: boolean;
|
|
3101
|
+
/** Gantt ronda 2 (Yesid) · P2 · la tarea seleccionada: sus conectores no se atenúan en la escala Mes. */
|
|
3102
|
+
tareaEnFoco?: string | null;
|
|
3080
3103
|
/** Gantt v6: alto de la barra según la densidad (18 · 22 · 26). */
|
|
3081
3104
|
alturaBarra?: number;
|
|
3082
3105
|
}
|
|
@@ -3091,7 +3114,7 @@ declare function Timeline({ tasks, theme, rowHeight: ROW_HEIGHT, timeScale, star
|
|
|
3091
3114
|
templates, dependencyLineStyle, // v0.17.310
|
|
3092
3115
|
showTaskBarLabels, onTaskClick, onTaskDblClick, // v0.8.0
|
|
3093
3116
|
onTaskContextMenu, // v0.8.0
|
|
3094
|
-
onTaskDateChange, onDependencyCreate, onDependencyDelete, showBaseline, showCriticalPath, showDependencies, highlightWeekends, weekHeaderFormat, canEditTask, onTaskProgressDrag, workingDaysConfig, ventanaVisible, onIrAFecha, finPlaneado, finPrevisto, alturaCabecera, v6, alturaBarra, }: TimelineProps): react_jsx_runtime.JSX.Element;
|
|
3117
|
+
onTaskDateChange, onDependencyCreate, onDependencyDelete, showBaseline, showCriticalPath, showDependencies, highlightWeekends, weekHeaderFormat, canEditTask, onTaskProgressDrag, workingDaysConfig, ventanaVisible, filasVisibles, onIrAFecha, finPlaneado, finPrevisto, alturaCabecera, v6, tareaEnFoco, alturaBarra, }: TimelineProps): react_jsx_runtime.JSX.Element;
|
|
3095
3118
|
|
|
3096
3119
|
/**
|
|
3097
3120
|
* ═══ EL MOTOR DEL CRONOGRAMA (QA Asakaa, mejora fuerte 5) ════════════════════════
|
|
@@ -3222,13 +3245,15 @@ interface TaskBarProps {
|
|
|
3222
3245
|
alturaBarra?: number;
|
|
3223
3246
|
/** Gantt v6: la duración en días hábiles, a la derecha de la barra («5 d»). */
|
|
3224
3247
|
duracionV6?: string;
|
|
3248
|
+
/** Gantt ronda 2 (Yesid) · R3 · una tarea TRANSVERSAL (dura casi todo el proyecto: seguimiento, informes): línea fina. */
|
|
3249
|
+
transversal?: boolean;
|
|
3225
3250
|
}
|
|
3226
3251
|
declare function TaskBar({ task, x, y, width, theme, dayWidth, startDate, templates, onClick, onDoubleClick, // v0.8.0
|
|
3227
3252
|
onContextMenu, // v0.8.0
|
|
3228
3253
|
onDateChange, onDependencyCreate, allTaskPositions, onDragMove, // v0.13.0
|
|
3229
3254
|
onHoverChange, // v0.17.76
|
|
3230
3255
|
showBaseline, // v3.0.0
|
|
3231
|
-
showTaskBarLabels, showCriticalPath, readOnly, onProgressChange, v6, alturaBarra, duracionV6, }: TaskBarProps): react_jsx_runtime.JSX.Element;
|
|
3256
|
+
showTaskBarLabels, showCriticalPath, readOnly, onProgressChange, v6, alturaBarra, duracionV6, transversal, }: TaskBarProps): react_jsx_runtime.JSX.Element;
|
|
3232
3257
|
|
|
3233
3258
|
interface DependencyLineProps {
|
|
3234
3259
|
x1: number;
|
|
@@ -3248,6 +3273,21 @@ interface DependencyLineProps {
|
|
|
3248
3273
|
entradaPorFin?: boolean;
|
|
3249
3274
|
/** «CC +2», «FF», «+1»…: el tipo (si no es FC) y el desfase (si no es 0). */
|
|
3250
3275
|
etiqueta?: string;
|
|
3276
|
+
/** Gantt ronda 2 (Yesid) · P1-4 · un enlace en conflicto va DISCONTINUO (y en ámbar, por `colorOverride`). */
|
|
3277
|
+
discontinua?: boolean;
|
|
3278
|
+
/** El tooltip del conector (p. ej. el porqué del conflicto). */
|
|
3279
|
+
titulo?: string;
|
|
3280
|
+
/** Gantt ronda 2 (Yesid) · P2 · un conector largo que no toca la tarea en foco, atenuado (escala Mes). */
|
|
3281
|
+
atenuada?: boolean;
|
|
3282
|
+
/**
|
|
3283
|
+
* Gantt ronda 2 (Yesid) · E14 · «se marca, pero nada avisa ni propone corregir». En la capa del hover de un enlace en
|
|
3284
|
+
* conflicto, la píldora «Corregir → 19 oct» junto a la flecha de llegada: mueve la sucesora lo justo para cumplirlo.
|
|
3285
|
+
*/
|
|
3286
|
+
corregir?: {
|
|
3287
|
+
texto: string;
|
|
3288
|
+
titulo: string;
|
|
3289
|
+
onClick: () => void;
|
|
3290
|
+
};
|
|
3251
3291
|
}
|
|
3252
3292
|
/**
|
|
3253
3293
|
* v0.17.364: TRUE ClickUp-style dependency line routing
|
|
@@ -3267,7 +3307,7 @@ interface DependencyLineProps {
|
|
|
3267
3307
|
* The vertical segment must still be LEFT of destination: turnX = x2 - OFFSET
|
|
3268
3308
|
* Path: right → horizontal past source → down/up → LEFT back to destination
|
|
3269
3309
|
*/
|
|
3270
|
-
declare function DependencyLine({ x1, y1, x2, y2, theme, onDelete, lineStyle, isHoverLayer, onHoverChange, hoverOverlayOnly, colorOverride, strokeWidthOverride, glowFilter, salidaPorInicio, entradaPorFin, etiqueta, }: DependencyLineProps): react_jsx_runtime.JSX.Element;
|
|
3310
|
+
declare function DependencyLine({ x1, y1, x2, y2, theme, onDelete, lineStyle, isHoverLayer, onHoverChange, hoverOverlayOnly, colorOverride, strokeWidthOverride, glowFilter, salidaPorInicio, entradaPorFin, etiqueta, discontinua, titulo, atenuada, corregir, }: DependencyLineProps): react_jsx_runtime.JSX.Element;
|
|
3271
3311
|
|
|
3272
3312
|
interface MilestoneProps {
|
|
3273
3313
|
task: Task;
|
package/dist/index.d.ts
CHANGED
|
@@ -92,7 +92,8 @@ type TimeScale = 'day' | 'week' | 'month';
|
|
|
92
92
|
type Theme$1 = 'dark' | 'light' | 'neutral';
|
|
93
93
|
type RowDensity = 'compact' | 'comfortable' | 'spacious';
|
|
94
94
|
type DependencyLineStyle = 'curved' | 'squared';
|
|
95
|
-
|
|
95
|
+
/** Gantt ronda 2 (Yesid) · R4 · 'overdue': sin terminar y con el fin ya pasado. */
|
|
96
|
+
type TaskFilterType = 'all' | 'incomplete' | 'in_progress' | 'completed' | 'overdue';
|
|
96
97
|
type ColumnType$1 = 'name' | 'startDate' | 'endDate' | 'duration' | 'assignees' | 'status' | 'progress' | 'priority';
|
|
97
98
|
interface GanttColumn {
|
|
98
99
|
id: ColumnType$1;
|
|
@@ -503,6 +504,11 @@ interface GanttConfig {
|
|
|
503
504
|
icono?: ReactNode;
|
|
504
505
|
alPulsar: () => void;
|
|
505
506
|
}>;
|
|
507
|
+
/** Gantt ronda 2 (Yesid) · P2 · lo que la app pone en el menú «Vista» (p. ej. sus líneas base), entre la densidad y «Mostrar». */
|
|
508
|
+
contenidoDeVista?: (cerrar: () => void) => ReactNode;
|
|
509
|
+
/** Gantt ronda 2 · P2 · «Mostrar leyenda» en el menú «Vista» (la leyenda la pinta la app, bajo demanda). */
|
|
510
|
+
leyendaVisible?: boolean;
|
|
511
|
+
onLeyendaVisibleChange?: (visible: boolean) => void;
|
|
506
512
|
/** Avisa del cambio de densidad (para que la app la recuerde). */
|
|
507
513
|
onRowDensityChange?: (density: RowDensity) => void;
|
|
508
514
|
/** 1.9.36 · cabecera de la escala W: 'number' («Week 36», por defecto) o 'range' («Sep 1–7»). */
|
|
@@ -3010,6 +3016,16 @@ interface TaskGridProps {
|
|
|
3010
3016
|
resumenV6?: string;
|
|
3011
3017
|
/** Gantt v6: el botón «contraer todos los grupos». */
|
|
3012
3018
|
onContraerTodo?: () => void;
|
|
3019
|
+
/** Gantt ronda 2 · P2 · «Mostrar» las completadas ocultas, junto a su contador. */
|
|
3020
|
+
onMostrarOcultas?: () => void;
|
|
3021
|
+
/** Gantt ronda 2 · R1 · las filas que se dibujan; `null`, todas. */
|
|
3022
|
+
filasVisibles?: {
|
|
3023
|
+
desde: number;
|
|
3024
|
+
hasta: number;
|
|
3025
|
+
} | null;
|
|
3026
|
+
/** Gantt ronda 2 · R4 · «12 vencidas» y su «Ver» (activa el filtro «Solo vencidas»). */
|
|
3027
|
+
avisoVencidas?: string;
|
|
3028
|
+
onVerVencidas?: () => void;
|
|
3013
3029
|
}
|
|
3014
3030
|
declare function TaskGrid({ tasks, theme, rowHeight: ROW_HEIGHT, availableUsers, templates: _templates, // TODO: Use templates for custom rendering
|
|
3015
3031
|
onTaskClick, onTaskSelectionChange, selectedTaskId, onTaskDblClick, // v0.8.0
|
|
@@ -3019,7 +3035,7 @@ onTaskReparent, // v0.17.68
|
|
|
3019
3035
|
allTasks, // v1.9.10: árbol completo para traducir posición con filtros activos
|
|
3020
3036
|
scrollContainerRef, // v0.18.15
|
|
3021
3037
|
showCriticalPath, // v5.1.0
|
|
3022
|
-
v6, resumenV6, onContraerTodo, }: TaskGridProps): react_jsx_runtime.JSX.Element;
|
|
3038
|
+
v6, resumenV6, onContraerTodo, onMostrarOcultas, filasVisibles, avisoVencidas, onVerVencidas, }: TaskGridProps): react_jsx_runtime.JSX.Element;
|
|
3023
3039
|
|
|
3024
3040
|
/**
|
|
3025
3041
|
* Optional working-days configuration so the tooltip Duration reflects the
|
|
@@ -3039,6 +3055,11 @@ interface TimelineProps {
|
|
|
3039
3055
|
izq: number;
|
|
3040
3056
|
der: number;
|
|
3041
3057
|
} | null;
|
|
3058
|
+
/** Gantt ronda 2 (Yesid) · R1 · las filas que se dibujan (las visibles y un margen); `null`, todas (p. ej. al exportar). */
|
|
3059
|
+
filasVisibles?: {
|
|
3060
|
+
desde: number;
|
|
3061
|
+
hasta: number;
|
|
3062
|
+
} | null;
|
|
3042
3063
|
onIrAFecha?: (fecha: Date) => void;
|
|
3043
3064
|
/** Mejora fuerte 6 · fin planeado del proyecto y fin previsto (pronóstico). */
|
|
3044
3065
|
finPlaneado?: Date | null;
|
|
@@ -3077,6 +3098,8 @@ interface TimelineProps {
|
|
|
3077
3098
|
alturaCabecera?: number;
|
|
3078
3099
|
/** Gantt v6 (Asakaa): escala, barras y marcas de la maqueta. */
|
|
3079
3100
|
v6?: boolean;
|
|
3101
|
+
/** Gantt ronda 2 (Yesid) · P2 · la tarea seleccionada: sus conectores no se atenúan en la escala Mes. */
|
|
3102
|
+
tareaEnFoco?: string | null;
|
|
3080
3103
|
/** Gantt v6: alto de la barra según la densidad (18 · 22 · 26). */
|
|
3081
3104
|
alturaBarra?: number;
|
|
3082
3105
|
}
|
|
@@ -3091,7 +3114,7 @@ declare function Timeline({ tasks, theme, rowHeight: ROW_HEIGHT, timeScale, star
|
|
|
3091
3114
|
templates, dependencyLineStyle, // v0.17.310
|
|
3092
3115
|
showTaskBarLabels, onTaskClick, onTaskDblClick, // v0.8.0
|
|
3093
3116
|
onTaskContextMenu, // v0.8.0
|
|
3094
|
-
onTaskDateChange, onDependencyCreate, onDependencyDelete, showBaseline, showCriticalPath, showDependencies, highlightWeekends, weekHeaderFormat, canEditTask, onTaskProgressDrag, workingDaysConfig, ventanaVisible, onIrAFecha, finPlaneado, finPrevisto, alturaCabecera, v6, alturaBarra, }: TimelineProps): react_jsx_runtime.JSX.Element;
|
|
3117
|
+
onTaskDateChange, onDependencyCreate, onDependencyDelete, showBaseline, showCriticalPath, showDependencies, highlightWeekends, weekHeaderFormat, canEditTask, onTaskProgressDrag, workingDaysConfig, ventanaVisible, filasVisibles, onIrAFecha, finPlaneado, finPrevisto, alturaCabecera, v6, tareaEnFoco, alturaBarra, }: TimelineProps): react_jsx_runtime.JSX.Element;
|
|
3095
3118
|
|
|
3096
3119
|
/**
|
|
3097
3120
|
* ═══ EL MOTOR DEL CRONOGRAMA (QA Asakaa, mejora fuerte 5) ════════════════════════
|
|
@@ -3222,13 +3245,15 @@ interface TaskBarProps {
|
|
|
3222
3245
|
alturaBarra?: number;
|
|
3223
3246
|
/** Gantt v6: la duración en días hábiles, a la derecha de la barra («5 d»). */
|
|
3224
3247
|
duracionV6?: string;
|
|
3248
|
+
/** Gantt ronda 2 (Yesid) · R3 · una tarea TRANSVERSAL (dura casi todo el proyecto: seguimiento, informes): línea fina. */
|
|
3249
|
+
transversal?: boolean;
|
|
3225
3250
|
}
|
|
3226
3251
|
declare function TaskBar({ task, x, y, width, theme, dayWidth, startDate, templates, onClick, onDoubleClick, // v0.8.0
|
|
3227
3252
|
onContextMenu, // v0.8.0
|
|
3228
3253
|
onDateChange, onDependencyCreate, allTaskPositions, onDragMove, // v0.13.0
|
|
3229
3254
|
onHoverChange, // v0.17.76
|
|
3230
3255
|
showBaseline, // v3.0.0
|
|
3231
|
-
showTaskBarLabels, showCriticalPath, readOnly, onProgressChange, v6, alturaBarra, duracionV6, }: TaskBarProps): react_jsx_runtime.JSX.Element;
|
|
3256
|
+
showTaskBarLabels, showCriticalPath, readOnly, onProgressChange, v6, alturaBarra, duracionV6, transversal, }: TaskBarProps): react_jsx_runtime.JSX.Element;
|
|
3232
3257
|
|
|
3233
3258
|
interface DependencyLineProps {
|
|
3234
3259
|
x1: number;
|
|
@@ -3248,6 +3273,21 @@ interface DependencyLineProps {
|
|
|
3248
3273
|
entradaPorFin?: boolean;
|
|
3249
3274
|
/** «CC +2», «FF», «+1»…: el tipo (si no es FC) y el desfase (si no es 0). */
|
|
3250
3275
|
etiqueta?: string;
|
|
3276
|
+
/** Gantt ronda 2 (Yesid) · P1-4 · un enlace en conflicto va DISCONTINUO (y en ámbar, por `colorOverride`). */
|
|
3277
|
+
discontinua?: boolean;
|
|
3278
|
+
/** El tooltip del conector (p. ej. el porqué del conflicto). */
|
|
3279
|
+
titulo?: string;
|
|
3280
|
+
/** Gantt ronda 2 (Yesid) · P2 · un conector largo que no toca la tarea en foco, atenuado (escala Mes). */
|
|
3281
|
+
atenuada?: boolean;
|
|
3282
|
+
/**
|
|
3283
|
+
* Gantt ronda 2 (Yesid) · E14 · «se marca, pero nada avisa ni propone corregir». En la capa del hover de un enlace en
|
|
3284
|
+
* conflicto, la píldora «Corregir → 19 oct» junto a la flecha de llegada: mueve la sucesora lo justo para cumplirlo.
|
|
3285
|
+
*/
|
|
3286
|
+
corregir?: {
|
|
3287
|
+
texto: string;
|
|
3288
|
+
titulo: string;
|
|
3289
|
+
onClick: () => void;
|
|
3290
|
+
};
|
|
3251
3291
|
}
|
|
3252
3292
|
/**
|
|
3253
3293
|
* v0.17.364: TRUE ClickUp-style dependency line routing
|
|
@@ -3267,7 +3307,7 @@ interface DependencyLineProps {
|
|
|
3267
3307
|
* The vertical segment must still be LEFT of destination: turnX = x2 - OFFSET
|
|
3268
3308
|
* Path: right → horizontal past source → down/up → LEFT back to destination
|
|
3269
3309
|
*/
|
|
3270
|
-
declare function DependencyLine({ x1, y1, x2, y2, theme, onDelete, lineStyle, isHoverLayer, onHoverChange, hoverOverlayOnly, colorOverride, strokeWidthOverride, glowFilter, salidaPorInicio, entradaPorFin, etiqueta, }: DependencyLineProps): react_jsx_runtime.JSX.Element;
|
|
3310
|
+
declare function DependencyLine({ x1, y1, x2, y2, theme, onDelete, lineStyle, isHoverLayer, onHoverChange, hoverOverlayOnly, colorOverride, strokeWidthOverride, glowFilter, salidaPorInicio, entradaPorFin, etiqueta, discontinua, titulo, atenuada, corregir, }: DependencyLineProps): react_jsx_runtime.JSX.Element;
|
|
3271
3311
|
|
|
3272
3312
|
interface MilestoneProps {
|
|
3273
3313
|
task: Task;
|