gantt-lib 0.106.0 → 0.108.0
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/core/scheduling/index.d.mts +1 -1
- package/dist/core/scheduling/index.d.ts +1 -1
- package/dist/{index-Cz64T82f.d.mts → index-Ci6WiKhW.d.mts} +6 -1
- package/dist/{index-Cz64T82f.d.ts → index-Ci6WiKhW.d.ts} +6 -1
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +7 -3
- package/dist/index.d.ts +7 -3
- package/dist/index.js +166 -19
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +166 -19
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +49 -4
- package/package.json +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { D as DAY_MS, e as DependencyError, L as LinkType,
|
|
1
|
+
export { D as DAY_MS, e as DependencyError, L as LinkType, a7 as ScheduleCommandOptions, a8 as ScheduleCommandResult, a9 as ScheduleDependency, aa as ScheduleTask, ab as ScheduleTaskUpdate, T as Task, ac as TaskDependency, V as ValidationResult, ad as addBusinessDays, n as alignToWorkingDay, o as areTasksHierarchicallyRelated, p as buildAdjacencyList, q as buildTaskRangeFromEnd, r as buildTaskRangeFromStart, s as calculateSuccessorDate, t as cascadeByLinks, u as clampTaskRangeForIncomingFS, v as computeLagFromDates, w as computeParentDates, x as computeParentProgress, y as detectCycles, z as findParentId, A as getAllDependencyEdges, C as getAllDescendants, E as getBusinessDayOffset, ae as getBusinessDaysCount, F as getChildren, H as getDependencyLag, I as getSuccessorChain, J as getTaskDuration, K as getTransitiveCascadeChain, N as isAncestorTask, O as isTaskParent, P as moveTaskRange, Q as moveTaskWithCascade, S as normalizeDependencyLag, U as normalizePredecessorDates, X as normalizeTaskDependencyLags, Y as normalizeUTCDate, Z as parseDateOnly, _ as recalculateIncomingLags, $ as recalculateProjectSchedule, a0 as recalculateTaskFromDependencies, a1 as reflowTasksOnModeSwitch, a2 as removeDependenciesBetweenTasks, a3 as resizeTaskWithCascade, a4 as shiftBusinessDayOffset, af as subtractBusinessDays, a5 as universalCascade, a6 as validateDependencies } from '../../index-Ci6WiKhW.mjs';
|
|
2
2
|
import 'react';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { D as DAY_MS, e as DependencyError, L as LinkType,
|
|
1
|
+
export { D as DAY_MS, e as DependencyError, L as LinkType, a7 as ScheduleCommandOptions, a8 as ScheduleCommandResult, a9 as ScheduleDependency, aa as ScheduleTask, ab as ScheduleTaskUpdate, T as Task, ac as TaskDependency, V as ValidationResult, ad as addBusinessDays, n as alignToWorkingDay, o as areTasksHierarchicallyRelated, p as buildAdjacencyList, q as buildTaskRangeFromEnd, r as buildTaskRangeFromStart, s as calculateSuccessorDate, t as cascadeByLinks, u as clampTaskRangeForIncomingFS, v as computeLagFromDates, w as computeParentDates, x as computeParentProgress, y as detectCycles, z as findParentId, A as getAllDependencyEdges, C as getAllDescendants, E as getBusinessDayOffset, ae as getBusinessDaysCount, F as getChildren, H as getDependencyLag, I as getSuccessorChain, J as getTaskDuration, K as getTransitiveCascadeChain, N as isAncestorTask, O as isTaskParent, P as moveTaskRange, Q as moveTaskWithCascade, S as normalizeDependencyLag, U as normalizePredecessorDates, X as normalizeTaskDependencyLags, Y as normalizeUTCDate, Z as parseDateOnly, _ as recalculateIncomingLags, $ as recalculateProjectSchedule, a0 as recalculateTaskFromDependencies, a1 as reflowTasksOnModeSwitch, a2 as removeDependenciesBetweenTasks, a3 as resizeTaskWithCascade, a4 as shiftBusinessDayOffset, af as subtractBusinessDays, a5 as universalCascade, a6 as validateDependencies } from '../../index-Ci6WiKhW.js';
|
|
2
2
|
import 'react';
|
|
@@ -56,6 +56,9 @@ interface ResourceTimelineResourceMenuCommand<TItem extends ResourceTimelineItem
|
|
|
56
56
|
danger?: boolean;
|
|
57
57
|
closeOnSelect?: boolean;
|
|
58
58
|
}
|
|
59
|
+
type BuiltInResourceTableColumnId = 'number' | 'name' | 'availability' | 'assignments' | 'actions';
|
|
60
|
+
type ResourceTableColumnId = BuiltInResourceTableColumnId | (string & {});
|
|
61
|
+
type ResourceTableColumnWidthMap = Partial<Record<ResourceTableColumnId, number>>;
|
|
59
62
|
interface ResourcePlannerChartProps<TItem extends ResourceTimelineItem = ResourceTimelineItem> {
|
|
60
63
|
mode: 'resource-planner';
|
|
61
64
|
resources: Array<ResourceTimelineResource<TItem>>;
|
|
@@ -85,6 +88,8 @@ interface ResourcePlannerChartProps<TItem extends ResourceTimelineItem = Resourc
|
|
|
85
88
|
onAddResource?: (resource: ResourceTimelineResource<TItem>) => void;
|
|
86
89
|
enableAddResource?: boolean;
|
|
87
90
|
resourceMenuCommands?: Array<ResourceTimelineResourceMenuCommand<TItem>>;
|
|
91
|
+
resourceTableColumnWidths?: ResourceTableColumnWidthMap;
|
|
92
|
+
onResourceTableColumnWidthsChange?: (widths: ResourceTableColumnWidthMap) => void;
|
|
88
93
|
}
|
|
89
94
|
/**
|
|
90
95
|
* Dependency link types following PM standard
|
|
@@ -582,4 +587,4 @@ declare function isAncestorTask(ancestorId: string, taskId: string, tasks: Task[
|
|
|
582
587
|
*/
|
|
583
588
|
declare function areTasksHierarchicallyRelated(taskId1: string, taskId2: string, tasks: Task[]): boolean;
|
|
584
589
|
|
|
585
|
-
export {
|
|
590
|
+
export { recalculateProjectSchedule as $, getAllDependencyEdges as A, type BuiltInResourceTableColumnId as B, getAllDescendants as C, DAY_MS as D, getBusinessDayOffset as E, getChildren as F, type GanttChartMode as G, getDependencyLag as H, getSuccessorChain as I, getTaskDuration as J, getTransitiveCascadeChain as K, type LinkType as L, type MonthSpan as M, isAncestorTask as N, isTaskParent as O, moveTaskRange as P, moveTaskWithCascade as Q, type ResourceTimelineItem as R, normalizeDependencyLag as S, type Task as T, normalizePredecessorDates as U, type ValidationResult as V, type WeekendBlock as W, normalizeTaskDependencyLags as X, normalizeUTCDate as Y, parseDateOnly as Z, recalculateIncomingLags as _, type TimelineMarker as a, recalculateTaskFromDependencies as a0, reflowTasksOnModeSwitch as a1, removeDependenciesBetweenTasks as a2, resizeTaskWithCascade as a3, shiftBusinessDayOffset as a4, universalCascade as a5, validateDependencies as a6, type ScheduleCommandOptions as a7, type ScheduleCommandResult as a8, type ScheduleDependency as a9, type ScheduleTask as aa, type ScheduleTaskUpdate as ab, type TaskDependency as ac, addBusinessDays as ad, getBusinessDaysCount as ae, subtractBusinessDays as af, type TaskDateChangeMode as b, type ResourcePlannerChartProps as c, type ResourceTimelineResource as d, type DependencyError as e, type GanttDateRange as f, type GridConfig as g, type GridLine as h, type ResourceTableColumnId as i, type ResourceTableColumnWidthMap as j, type ResourceTimelineMove as k, type ResourceTimelineResourceMenuCommand as l, type TaskBarGeometry as m, alignToWorkingDay as n, areTasksHierarchicallyRelated as o, buildAdjacencyList as p, buildTaskRangeFromEnd as q, buildTaskRangeFromStart as r, calculateSuccessorDate as s, cascadeByLinks as t, clampTaskRangeForIncomingFS as u, computeLagFromDates as v, computeParentDates as w, computeParentProgress as x, detectCycles as y, findParentId as z };
|
|
@@ -56,6 +56,9 @@ interface ResourceTimelineResourceMenuCommand<TItem extends ResourceTimelineItem
|
|
|
56
56
|
danger?: boolean;
|
|
57
57
|
closeOnSelect?: boolean;
|
|
58
58
|
}
|
|
59
|
+
type BuiltInResourceTableColumnId = 'number' | 'name' | 'availability' | 'assignments' | 'actions';
|
|
60
|
+
type ResourceTableColumnId = BuiltInResourceTableColumnId | (string & {});
|
|
61
|
+
type ResourceTableColumnWidthMap = Partial<Record<ResourceTableColumnId, number>>;
|
|
59
62
|
interface ResourcePlannerChartProps<TItem extends ResourceTimelineItem = ResourceTimelineItem> {
|
|
60
63
|
mode: 'resource-planner';
|
|
61
64
|
resources: Array<ResourceTimelineResource<TItem>>;
|
|
@@ -85,6 +88,8 @@ interface ResourcePlannerChartProps<TItem extends ResourceTimelineItem = Resourc
|
|
|
85
88
|
onAddResource?: (resource: ResourceTimelineResource<TItem>) => void;
|
|
86
89
|
enableAddResource?: boolean;
|
|
87
90
|
resourceMenuCommands?: Array<ResourceTimelineResourceMenuCommand<TItem>>;
|
|
91
|
+
resourceTableColumnWidths?: ResourceTableColumnWidthMap;
|
|
92
|
+
onResourceTableColumnWidthsChange?: (widths: ResourceTableColumnWidthMap) => void;
|
|
88
93
|
}
|
|
89
94
|
/**
|
|
90
95
|
* Dependency link types following PM standard
|
|
@@ -582,4 +587,4 @@ declare function isAncestorTask(ancestorId: string, taskId: string, tasks: Task[
|
|
|
582
587
|
*/
|
|
583
588
|
declare function areTasksHierarchicallyRelated(taskId1: string, taskId2: string, tasks: Task[]): boolean;
|
|
584
589
|
|
|
585
|
-
export {
|
|
590
|
+
export { recalculateProjectSchedule as $, getAllDependencyEdges as A, type BuiltInResourceTableColumnId as B, getAllDescendants as C, DAY_MS as D, getBusinessDayOffset as E, getChildren as F, type GanttChartMode as G, getDependencyLag as H, getSuccessorChain as I, getTaskDuration as J, getTransitiveCascadeChain as K, type LinkType as L, type MonthSpan as M, isAncestorTask as N, isTaskParent as O, moveTaskRange as P, moveTaskWithCascade as Q, type ResourceTimelineItem as R, normalizeDependencyLag as S, type Task as T, normalizePredecessorDates as U, type ValidationResult as V, type WeekendBlock as W, normalizeTaskDependencyLags as X, normalizeUTCDate as Y, parseDateOnly as Z, recalculateIncomingLags as _, type TimelineMarker as a, recalculateTaskFromDependencies as a0, reflowTasksOnModeSwitch as a1, removeDependenciesBetweenTasks as a2, resizeTaskWithCascade as a3, shiftBusinessDayOffset as a4, universalCascade as a5, validateDependencies as a6, type ScheduleCommandOptions as a7, type ScheduleCommandResult as a8, type ScheduleDependency as a9, type ScheduleTask as aa, type ScheduleTaskUpdate as ab, type TaskDependency as ac, addBusinessDays as ad, getBusinessDaysCount as ae, subtractBusinessDays as af, type TaskDateChangeMode as b, type ResourcePlannerChartProps as c, type ResourceTimelineResource as d, type DependencyError as e, type GanttDateRange as f, type GridConfig as g, type GridLine as h, type ResourceTableColumnId as i, type ResourceTableColumnWidthMap as j, type ResourceTimelineMove as k, type ResourceTimelineResourceMenuCommand as l, type TaskBarGeometry as m, alignToWorkingDay as n, areTasksHierarchicallyRelated as o, buildAdjacencyList as p, buildTaskRangeFromEnd as q, buildTaskRangeFromStart as r, calculateSuccessorDate as s, cascadeByLinks as t, clampTaskRangeForIncomingFS as u, computeLagFromDates as v, computeParentDates as w, computeParentProgress as x, detectCycles as y, findParentId as z };
|