@libxai/board 1.8.4 → 1.8.5

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
@@ -378,10 +378,23 @@ interface ProjectForecast {
378
378
  budgetVariancePercent?: number | null;
379
379
  currency?: string;
380
380
  }
381
+ /**
382
+ * v4.3.0 — Workspace working-day configuration consumed by the tooltip
383
+ * Duration field (and any other piece that needs to count business days).
384
+ * Lets the consumer mirror its weekend toggles + holiday calendar.
385
+ */
386
+ interface GanttWorkingDaysConfig {
387
+ /** Which weekdays count as working days. 0=Sun, 1=Mon, ..., 6=Sat. Length 7. */
388
+ enabledWeekdays?: boolean[];
389
+ /** Holiday dates in 'YYYY-MM-DD' (workspace-local) to exclude. */
390
+ holidayDates?: Set<string> | string[];
391
+ }
381
392
  interface GanttConfig {
382
393
  theme?: Theme$1;
383
394
  timeScale?: TimeScale;
384
395
  rowDensity?: RowDensity;
396
+ /** v4.3.0: Defines which days count as working days for duration calculations. */
397
+ workingDaysConfig?: GanttWorkingDaysConfig;
385
398
  showThemeSelector?: boolean;
386
399
  showExportButton?: boolean;
387
400
  /**
@@ -2868,6 +2881,18 @@ onTaskReparent, // v0.17.68
2868
2881
  scrollContainerRef, // v0.18.15
2869
2882
  showCriticalPath, }: TaskGridProps): react_jsx_runtime.JSX.Element;
2870
2883
 
2884
+ /**
2885
+ * Optional working-days configuration so the tooltip Duration reflects the
2886
+ * workspace's actual working schedule (weekend toggles + holidays) instead
2887
+ * of raw calendar days. When omitted, falls back to calendar days.
2888
+ */
2889
+ interface WorkingDaysConfig {
2890
+ /** Which weekdays count as working days. 0=Sun, 1=Mon, ..., 6=Sat. */
2891
+ enabledWeekdays?: boolean[];
2892
+ /** Holiday dates in 'YYYY-MM-DD' (workspace-local) to exclude. */
2893
+ holidayDates?: Set<string> | string[];
2894
+ }
2895
+
2871
2896
  interface TimelineProps {
2872
2897
  tasks: Task[];
2873
2898
  theme: any;
@@ -2895,6 +2920,8 @@ interface TimelineProps {
2895
2920
  canEditTask?: (task: Task) => boolean;
2896
2921
  /** v4.2.0: Committed on pointerup after dragging the progress edge of a task bar. */
2897
2922
  onTaskProgressDrag?: (task: Task, newProgress: number) => void;
2923
+ /** v4.3.0: Workspace working-day config for the tooltip Duration field. */
2924
+ workingDaysConfig?: WorkingDaysConfig;
2898
2925
  }
2899
2926
  interface TaskPosition {
2900
2927
  id: string;
@@ -2907,7 +2934,7 @@ declare function Timeline({ tasks, theme, rowHeight: ROW_HEIGHT, timeScale, star
2907
2934
  templates, dependencyLineStyle, // v0.17.310
2908
2935
  showTaskBarLabels, onTaskClick, onTaskDblClick, // v0.8.0
2909
2936
  onTaskContextMenu, // v0.8.0
2910
- onTaskDateChange, onDependencyCreate, onDependencyDelete, showBaseline, showCriticalPath, showDependencies, highlightWeekends, canEditTask, onTaskProgressDrag, }: TimelineProps): react_jsx_runtime.JSX.Element;
2937
+ onTaskDateChange, onDependencyCreate, onDependencyDelete, showBaseline, showCriticalPath, showDependencies, highlightWeekends, canEditTask, onTaskProgressDrag, workingDaysConfig, }: TimelineProps): react_jsx_runtime.JSX.Element;
2911
2938
 
2912
2939
  interface TaskTooltipData {
2913
2940
  task: Task;
package/dist/index.d.ts CHANGED
@@ -378,10 +378,23 @@ interface ProjectForecast {
378
378
  budgetVariancePercent?: number | null;
379
379
  currency?: string;
380
380
  }
381
+ /**
382
+ * v4.3.0 — Workspace working-day configuration consumed by the tooltip
383
+ * Duration field (and any other piece that needs to count business days).
384
+ * Lets the consumer mirror its weekend toggles + holiday calendar.
385
+ */
386
+ interface GanttWorkingDaysConfig {
387
+ /** Which weekdays count as working days. 0=Sun, 1=Mon, ..., 6=Sat. Length 7. */
388
+ enabledWeekdays?: boolean[];
389
+ /** Holiday dates in 'YYYY-MM-DD' (workspace-local) to exclude. */
390
+ holidayDates?: Set<string> | string[];
391
+ }
381
392
  interface GanttConfig {
382
393
  theme?: Theme$1;
383
394
  timeScale?: TimeScale;
384
395
  rowDensity?: RowDensity;
396
+ /** v4.3.0: Defines which days count as working days for duration calculations. */
397
+ workingDaysConfig?: GanttWorkingDaysConfig;
385
398
  showThemeSelector?: boolean;
386
399
  showExportButton?: boolean;
387
400
  /**
@@ -2868,6 +2881,18 @@ onTaskReparent, // v0.17.68
2868
2881
  scrollContainerRef, // v0.18.15
2869
2882
  showCriticalPath, }: TaskGridProps): react_jsx_runtime.JSX.Element;
2870
2883
 
2884
+ /**
2885
+ * Optional working-days configuration so the tooltip Duration reflects the
2886
+ * workspace's actual working schedule (weekend toggles + holidays) instead
2887
+ * of raw calendar days. When omitted, falls back to calendar days.
2888
+ */
2889
+ interface WorkingDaysConfig {
2890
+ /** Which weekdays count as working days. 0=Sun, 1=Mon, ..., 6=Sat. */
2891
+ enabledWeekdays?: boolean[];
2892
+ /** Holiday dates in 'YYYY-MM-DD' (workspace-local) to exclude. */
2893
+ holidayDates?: Set<string> | string[];
2894
+ }
2895
+
2871
2896
  interface TimelineProps {
2872
2897
  tasks: Task[];
2873
2898
  theme: any;
@@ -2895,6 +2920,8 @@ interface TimelineProps {
2895
2920
  canEditTask?: (task: Task) => boolean;
2896
2921
  /** v4.2.0: Committed on pointerup after dragging the progress edge of a task bar. */
2897
2922
  onTaskProgressDrag?: (task: Task, newProgress: number) => void;
2923
+ /** v4.3.0: Workspace working-day config for the tooltip Duration field. */
2924
+ workingDaysConfig?: WorkingDaysConfig;
2898
2925
  }
2899
2926
  interface TaskPosition {
2900
2927
  id: string;
@@ -2907,7 +2934,7 @@ declare function Timeline({ tasks, theme, rowHeight: ROW_HEIGHT, timeScale, star
2907
2934
  templates, dependencyLineStyle, // v0.17.310
2908
2935
  showTaskBarLabels, onTaskClick, onTaskDblClick, // v0.8.0
2909
2936
  onTaskContextMenu, // v0.8.0
2910
- onTaskDateChange, onDependencyCreate, onDependencyDelete, showBaseline, showCriticalPath, showDependencies, highlightWeekends, canEditTask, onTaskProgressDrag, }: TimelineProps): react_jsx_runtime.JSX.Element;
2937
+ onTaskDateChange, onDependencyCreate, onDependencyDelete, showBaseline, showCriticalPath, showDependencies, highlightWeekends, canEditTask, onTaskProgressDrag, workingDaysConfig, }: TimelineProps): react_jsx_runtime.JSX.Element;
2911
2938
 
2912
2939
  interface TaskTooltipData {
2913
2940
  task: Task;