@libxai/board 1.9.34 → 1.9.36

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.cts CHANGED
@@ -478,6 +478,15 @@ interface GanttConfig {
478
478
  * una sola fila. Sin él, la barra de siempre.
479
479
  */
480
480
  toolbarContainer?: HTMLElement | null;
481
+ /** 1.9.35 · oculta el selector de nivel WBS (All / L1 / L2…) de la barra. */
482
+ hideWbsLevel?: boolean;
483
+ /** 1.9.36 · cabecera de la escala W: 'number' («Week 36», por defecto) o 'range' («Sep 1–7»). */
484
+ weekHeaderFormat?: 'number' | 'range';
485
+ /**
486
+ * 1.9.36 · columnas visibles por defecto (además de «name»). Solo cambia el
487
+ * punto de partida: lo que el usuario guardó con persistColumns manda.
488
+ */
489
+ defaultVisibleColumns?: ColumnType$1[];
481
490
  templates?: GanttTemplates;
482
491
  permissions?: GanttPermissions;
483
492
  disableScrollSync?: boolean;
@@ -2790,6 +2799,17 @@ interface GanttBoardRef {
2790
2799
  * the project's date range.
2791
2800
  */
2792
2801
  scrollToToday: () => void;
2802
+ /**
2803
+ * 1.9.35 · Desplaza la línea de tiempo a una fecha. `align` 'start' la deja
2804
+ * cerca del borde izquierdo (con un pequeño margen); 'center', centrada.
2805
+ * Para abrir el Timeline encuadrado en las fechas del proyecto.
2806
+ */
2807
+ scrollToDate: (date: Date, align?: 'start' | 'center') => void;
2808
+ /**
2809
+ * 1.9.35 · Encuadra un rango: elige la escala (≤3 semanas día, ≤4 meses semana,
2810
+ * si no mes) y desplaza al inicio del rango.
2811
+ */
2812
+ fitToDates: (start: Date, end: Date) => void;
2793
2813
  }
2794
2814
 
2795
2815
  interface GanttBoardProps {
@@ -2949,6 +2969,8 @@ interface TimelineProps {
2949
2969
  showCriticalPath?: boolean;
2950
2970
  showDependencies?: boolean;
2951
2971
  highlightWeekends?: boolean;
2972
+ /** 1.9.36 · 'range' pinta «Sep 1–7» en la escala W. */
2973
+ weekHeaderFormat?: 'number' | 'range';
2952
2974
  /** v4.1.0: Per-task edit check — returns false for read-only bars */
2953
2975
  canEditTask?: (task: Task) => boolean;
2954
2976
  /** v4.2.0: Committed on pointerup after dragging the progress edge of a task bar. */
@@ -2967,7 +2989,7 @@ declare function Timeline({ tasks, theme, rowHeight: ROW_HEIGHT, timeScale, star
2967
2989
  templates, dependencyLineStyle, // v0.17.310
2968
2990
  showTaskBarLabels, onTaskClick, onTaskDblClick, // v0.8.0
2969
2991
  onTaskContextMenu, // v0.8.0
2970
- onTaskDateChange, onDependencyCreate, onDependencyDelete, showBaseline, showCriticalPath, showDependencies, highlightWeekends, canEditTask, onTaskProgressDrag, workingDaysConfig, }: TimelineProps): react_jsx_runtime.JSX.Element;
2992
+ onTaskDateChange, onDependencyCreate, onDependencyDelete, showBaseline, showCriticalPath, showDependencies, highlightWeekends, weekHeaderFormat, canEditTask, onTaskProgressDrag, workingDaysConfig, }: TimelineProps): react_jsx_runtime.JSX.Element;
2971
2993
 
2972
2994
  interface TaskTooltipData {
2973
2995
  task: Task;
package/dist/index.d.ts CHANGED
@@ -478,6 +478,15 @@ interface GanttConfig {
478
478
  * una sola fila. Sin él, la barra de siempre.
479
479
  */
480
480
  toolbarContainer?: HTMLElement | null;
481
+ /** 1.9.35 · oculta el selector de nivel WBS (All / L1 / L2…) de la barra. */
482
+ hideWbsLevel?: boolean;
483
+ /** 1.9.36 · cabecera de la escala W: 'number' («Week 36», por defecto) o 'range' («Sep 1–7»). */
484
+ weekHeaderFormat?: 'number' | 'range';
485
+ /**
486
+ * 1.9.36 · columnas visibles por defecto (además de «name»). Solo cambia el
487
+ * punto de partida: lo que el usuario guardó con persistColumns manda.
488
+ */
489
+ defaultVisibleColumns?: ColumnType$1[];
481
490
  templates?: GanttTemplates;
482
491
  permissions?: GanttPermissions;
483
492
  disableScrollSync?: boolean;
@@ -2790,6 +2799,17 @@ interface GanttBoardRef {
2790
2799
  * the project's date range.
2791
2800
  */
2792
2801
  scrollToToday: () => void;
2802
+ /**
2803
+ * 1.9.35 · Desplaza la línea de tiempo a una fecha. `align` 'start' la deja
2804
+ * cerca del borde izquierdo (con un pequeño margen); 'center', centrada.
2805
+ * Para abrir el Timeline encuadrado en las fechas del proyecto.
2806
+ */
2807
+ scrollToDate: (date: Date, align?: 'start' | 'center') => void;
2808
+ /**
2809
+ * 1.9.35 · Encuadra un rango: elige la escala (≤3 semanas día, ≤4 meses semana,
2810
+ * si no mes) y desplaza al inicio del rango.
2811
+ */
2812
+ fitToDates: (start: Date, end: Date) => void;
2793
2813
  }
2794
2814
 
2795
2815
  interface GanttBoardProps {
@@ -2949,6 +2969,8 @@ interface TimelineProps {
2949
2969
  showCriticalPath?: boolean;
2950
2970
  showDependencies?: boolean;
2951
2971
  highlightWeekends?: boolean;
2972
+ /** 1.9.36 · 'range' pinta «Sep 1–7» en la escala W. */
2973
+ weekHeaderFormat?: 'number' | 'range';
2952
2974
  /** v4.1.0: Per-task edit check — returns false for read-only bars */
2953
2975
  canEditTask?: (task: Task) => boolean;
2954
2976
  /** v4.2.0: Committed on pointerup after dragging the progress edge of a task bar. */
@@ -2967,7 +2989,7 @@ declare function Timeline({ tasks, theme, rowHeight: ROW_HEIGHT, timeScale, star
2967
2989
  templates, dependencyLineStyle, // v0.17.310
2968
2990
  showTaskBarLabels, onTaskClick, onTaskDblClick, // v0.8.0
2969
2991
  onTaskContextMenu, // v0.8.0
2970
- onTaskDateChange, onDependencyCreate, onDependencyDelete, showBaseline, showCriticalPath, showDependencies, highlightWeekends, canEditTask, onTaskProgressDrag, workingDaysConfig, }: TimelineProps): react_jsx_runtime.JSX.Element;
2992
+ onTaskDateChange, onDependencyCreate, onDependencyDelete, showBaseline, showCriticalPath, showDependencies, highlightWeekends, weekHeaderFormat, canEditTask, onTaskProgressDrag, workingDaysConfig, }: TimelineProps): react_jsx_runtime.JSX.Element;
2971
2993
 
2972
2994
  interface TaskTooltipData {
2973
2995
  task: Task;