@progress/kendo-react-gantt 13.3.0 → 13.4.0-develop.1

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.
Files changed (86) hide show
  1. package/Gantt.d.ts +42 -0
  2. package/GanttNoRecords.d.ts +19 -0
  3. package/cells/FilterCells/GanttBooleanFilter.d.ts +17 -0
  4. package/cells/FilterCells/GanttDateFilter.d.ts +17 -0
  5. package/cells/FilterCells/GanttNumericFilter.d.ts +17 -0
  6. package/cells/FilterCells/GanttTextFilter.d.ts +17 -0
  7. package/cells/FilterCells/utils.d.ts +45 -0
  8. package/cells/FilterCells/utils.mjs +11 -11
  9. package/components/BaseView.d.ts +27 -0
  10. package/components/GanttDependency.d.ts +17 -0
  11. package/components/GanttTask.d.ts +19 -0
  12. package/components/GanttTreelist.d.ts +146 -0
  13. package/components/GanttTreelist.mjs +8 -8
  14. package/components/toolbar/AddButton.d.ts +19 -0
  15. package/components/toolbar/AddButton.mjs +2 -2
  16. package/components/toolbar/Toolbar.d.ts +28 -0
  17. package/components/toolbar/view-selector/ViewSelector.d.ts +31 -0
  18. package/components/toolbar/view-selector/ViewSelectorItem.d.ts +19 -0
  19. package/components/toolbar/view-selector/ViewSelectorList.d.ts +10 -0
  20. package/constants/index.d.ts +60 -0
  21. package/constants/index.mjs +2 -2
  22. package/context/GanttContext.d.ts +128 -0
  23. package/context/GanttViewContext.d.ts +47 -0
  24. package/dist/cdn/js/kendo-react-gantt.js +1 -1
  25. package/editors/FormAssingmentsEditor.d.ts +13 -0
  26. package/editors/FormDateTimePicker.d.ts +13 -0
  27. package/editors/FormDropDownList.d.ts +13 -0
  28. package/editors/FormInput.d.ts +13 -0
  29. package/editors/FormNumericTextBox.d.ts +13 -0
  30. package/editors/GanttEditor.d.ts +46 -0
  31. package/editors/GanttEditor.mjs +5 -5
  32. package/editors/GanttEditorPredecessors.d.ts +53 -0
  33. package/editors/GanttEditorSuccessors.d.ts +53 -0
  34. package/editors/GanttForm.d.ts +73 -0
  35. package/editors/GanttForm.mjs +2 -2
  36. package/editors/GanttRemoveDialog.d.ts +51 -0
  37. package/editors/GanttRemoveDialog.mjs +2 -2
  38. package/hooks/useControlledState.d.ts +11 -0
  39. package/hooks/useDictionaryStore.d.ts +25 -0
  40. package/hooks/useGanttTask.d.ts +11 -0
  41. package/index.d.mts +28 -1607
  42. package/index.d.ts +28 -1607
  43. package/interfaces/AddDirection.d.ts +13 -0
  44. package/interfaces/DataAction.d.ts +32 -0
  45. package/interfaces/DataItem.d.ts +13 -0
  46. package/interfaces/DateRange.d.ts +15 -0
  47. package/interfaces/DependencyModelFields.d.ts +32 -0
  48. package/interfaces/DependencyType.d.ts +22 -0
  49. package/interfaces/DragEvent.d.ts +21 -0
  50. package/interfaces/GanttBaseProps.d.ts +81 -0
  51. package/interfaces/GanttCellProps.d.ts +48 -0
  52. package/interfaces/GanttColumnProps.d.ts +43 -0
  53. package/interfaces/GanttDependency.d.ts +33 -0
  54. package/interfaces/GanttDependencyModelFields.d.ts +32 -0
  55. package/interfaces/GanttFilterCellProps.d.ts +13 -0
  56. package/interfaces/GanttFilterOperator.d.ts +13 -0
  57. package/interfaces/GanttHeaderCellProps.d.ts +13 -0
  58. package/interfaces/GanttNoRecordsProps.d.ts +16 -0
  59. package/interfaces/GanttProps.d.ts +238 -0
  60. package/interfaces/GanttRowProps.d.ts +98 -0
  61. package/interfaces/GanttSelectableSettings.d.ts +25 -0
  62. package/interfaces/GanttSlotType.d.ts +11 -0
  63. package/interfaces/GanttSortSettings.d.ts +20 -0
  64. package/interfaces/GanttTaskModelFields.d.ts +67 -0
  65. package/interfaces/GanttView.d.ts +147 -0
  66. package/interfaces/GanttViewTimelineHeaderCellProps.d.ts +38 -0
  67. package/interfaces/Rectangle.d.ts +13 -0
  68. package/interfaces/Slot.d.ts +19 -0
  69. package/interfaces/TaskModelFields.d.ts +56 -0
  70. package/interfaces/events.d.ts +304 -0
  71. package/messages/index.d.ts +197 -0
  72. package/package-metadata.d.ts +12 -0
  73. package/package-metadata.js +1 -1
  74. package/package-metadata.mjs +10 -16
  75. package/package.json +14 -14
  76. package/rows/GanttRow.d.ts +11 -0
  77. package/utils/data-operations.d.ts +50 -0
  78. package/utils/data-operations.mjs +1 -1
  79. package/utils/index.d.ts +185 -0
  80. package/utils/index.mjs +4 -4
  81. package/views/GanttDayView.d.ts +24 -0
  82. package/views/GanttDayView.mjs +5 -5
  83. package/views/GanttMonthView.d.ts +20 -0
  84. package/views/GanttWeekView.d.ts +20 -0
  85. package/views/GanttWeekView.mjs +4 -4
  86. package/views/GanttYearView.d.ts +20 -0
@@ -0,0 +1,60 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2026 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ import { MS_PER_DAY, MS_PER_HOUR, MS_PER_MINUTE } from '@progress/kendo-date-math';
9
+ import { TaskModelFields } from '../interfaces/TaskModelFields.js';
10
+ import { DependencyModelFields } from '../interfaces/DependencyModelFields.js';
11
+ /** The attribute required by the Gantt selection on Gantt `tr` elements. */
12
+ export declare const GANTT_ROW_INDEX_ATTRIBUTE = "data-grid-row-index";
13
+ /** The attribute required by the Gantt selection on Gantt `td` elements. */
14
+ export declare const GANTT_COL_INDEX_ATTRIBUTE = "data-grid-col-index";
15
+ /** Attribute which disable selection start from this element. */
16
+ export declare const GANTT_PREVENT_SELECTION_ELEMENT = "data-prevent-selection";
17
+ /** @hidden */
18
+ export { MS_PER_HOUR, MS_PER_MINUTE, MS_PER_DAY };
19
+ /** @hidden */
20
+ export declare const DEFAULT_DATE: number;
21
+ /** @hidden */
22
+ export declare const DAYS_IN_WEEK_COUNT = 7;
23
+ /** @hidden */
24
+ export declare const HOUR_DATE_FORMAT = "hh:mm a";
25
+ /** @hidden */
26
+ export declare const DAY_DATE_FORMAT: {
27
+ skeleton: string;
28
+ };
29
+ /** @hidden */
30
+ export declare const MONTH_DATE_FORMAT = "MMM";
31
+ /** @hidden */
32
+ export declare const YEAR_DATE_FORMAT = "yyyy";
33
+ /** @hidden */
34
+ export declare const DEFAULT_COLUMN_WIDTH = 100;
35
+ /** @hidden */
36
+ export declare const MILESTONE_OFFSET = 6;
37
+ /** @hidden */
38
+ export declare const DEPENDENCY_DRAG_HANDLE = "data-dependency-drag-handle";
39
+ /** @hidden */
40
+ export declare const DRAG_DIRECTION_START = "start";
41
+ /** @hidden */
42
+ export declare const DRAG_DIRECTION_FINISH = "finish";
43
+ /** @hidden */
44
+ export declare const DEPENDENCY_DRAG_HANDLE_START_ATT: {
45
+ "data-dependency-drag-handle": string;
46
+ };
47
+ /** @hidden */
48
+ export declare const DEPENDENCY_DRAG_HANDLE_FINISH_ATT: {
49
+ "data-dependency-drag-handle": string;
50
+ };
51
+ /** @hidden */
52
+ export declare const TASK_ID_ATT = "data-task-id";
53
+ /**
54
+ * @hidden
55
+ */
56
+ export declare const DEFAULT_TASK_MODEL_FIELDS: TaskModelFields;
57
+ /**
58
+ * @hidden
59
+ */
60
+ export declare const DEFAULT_DEPENDENCY_MODEL_FIELDS: DependencyModelFields;
@@ -6,8 +6,8 @@
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
8
  import { MS_PER_DAY as F, MS_PER_HOUR as U, MS_PER_MINUTE as m } from "@progress/kendo-date-math";
9
- import { TABLE_ROW_INDEX_ATTRIBUTE as T, TABLE_COL_INDEX_ATTRIBUTE as _, TABLE_PREVENT_SELECTION_ELEMENT as t } from "@progress/kendo-react-data-tools";
10
- const n = T, N = _, o = t, s = (/* @__PURE__ */ new Date()).getTime(), I = 7, d = "hh:mm a", R = { skeleton: "MEd" }, c = "MMM", i = "yyyy", L = 100, O = 6, E = "data-dependency-drag-handle", A = "start", D = "finish", M = { [E]: A }, S = { [E]: D }, r = "data-task-id", a = {
9
+ import { TABLE_COL_INDEX_ATTRIBUTE as T, TABLE_ROW_INDEX_ATTRIBUTE as _, TABLE_PREVENT_SELECTION_ELEMENT as t } from "@progress/kendo-react-data-tools";
10
+ const n = _, N = T, o = t, s = (/* @__PURE__ */ new Date()).getTime(), I = 7, d = "hh:mm a", R = { skeleton: "MEd" }, c = "MMM", i = "yyyy", L = 100, O = 6, E = "data-dependency-drag-handle", A = "start", D = "finish", M = { [E]: A }, S = { [E]: D }, r = "data-task-id", a = {
11
11
  id: "id",
12
12
  start: "start",
13
13
  end: "end",
@@ -0,0 +1,128 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2026 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ import { TaskModelFields } from '../interfaces/TaskModelFields.js';
9
+ import { DependencyModelFields } from '../interfaces/DependencyModelFields.js';
10
+ import { GanttView } from '../interfaces/GanttView.js';
11
+ import { TreeListDataStateChangeEvent, TreeListSortChangeEvent, TreeListFilterChangeEvent, TreeListColumnMenuFilterChangeEvent, TreeListExpandChangeEvent, TreeListRowClickEvent, TreeListColumnResizeEvent, TreeListColumnReorderEvent, TreeListKeyDownEvent, TreeListSelectionChangeEvent, TreeListHeaderSelectionChangeEvent } from '@progress/kendo-react-treelist';
12
+ import { DateRange } from '../interfaces/DateRange.js';
13
+ import { GanttBaseProps } from '../interfaces/GanttBaseProps.js';
14
+ import { GanttDependencyCreateEvent, GanttTaskClickEvent, GanttTaskContextMenuEvent, GanttTaskDoubleClickEvent, GanttTaskRemoveClickEvent } from '../interfaces/events.js';
15
+ import * as React from 'react';
16
+ /** @hidden */
17
+ export type GanttTaskDataContextType = any[];
18
+ /** @hidden */
19
+ export declare const GanttTaskDataContext: React.Context<GanttTaskDataContextType>;
20
+ /** @hidden */
21
+ export declare const useGanttTaskDataContext: () => GanttTaskDataContextType;
22
+ /** @hidden */
23
+ export type GanttDependencyDataContextType = any[];
24
+ /** @hidden */
25
+ export declare const GanttDependencyDataContext: React.Context<GanttDependencyDataContextType>;
26
+ /** @hidden */
27
+ export declare const useGanttDependencyDataContext: () => GanttDependencyDataContextType;
28
+ /** @hidden */
29
+ export type GanttTaskModelFieldsContextType = TaskModelFields;
30
+ /** @hidden */
31
+ export declare const GanttTaskModelFieldsContext: React.Context<TaskModelFields>;
32
+ /** @hidden */
33
+ export declare const useGanttTaskModelFieldsContext: () => GanttTaskModelFieldsContextType;
34
+ /** @hidden */
35
+ export type GanttDependencyModelFieldsContextType = DependencyModelFields;
36
+ /** @hidden */
37
+ export declare const GanttDependencyModelFieldsContext: React.Context<DependencyModelFields>;
38
+ /** @hidden */
39
+ export declare const useGanttDependencyModelFieldsContext: () => GanttDependencyModelFieldsContextType;
40
+ /** @hidden */
41
+ export type GanttPropsContextType = GanttBaseProps;
42
+ /** @hidden */
43
+ export declare const GanttPropsContext: React.Context<GanttBaseProps>;
44
+ /** @hidden */
45
+ export declare const useGanttPropsContext: () => GanttPropsContextType;
46
+ /** @hidden */
47
+ export type GanttDateRangeContextType = DateRange;
48
+ /** @hidden */
49
+ export declare const GanttDateRangeContext: React.Context<DateRange>;
50
+ /** @hidden */
51
+ export declare const useGanttDateRangeContext: () => GanttDateRangeContextType;
52
+ /** @hidden */
53
+ export type GanttViewsContextType = GanttView[];
54
+ /** @hidden */
55
+ export declare const GanttViewsContext: React.Context<GanttViewsContextType>;
56
+ /** @hidden */
57
+ export declare const useGanttViewsContext: () => GanttViewsContextType;
58
+ /** @hidden */
59
+ export type GanttActiveViewContextType = [string, (activeView: string, event?: any) => void];
60
+ /** @hidden */
61
+ export declare const GanttActiveViewContext: React.Context<GanttActiveViewContextType>;
62
+ /** @hidden */
63
+ export declare const useGanttActiveViewContext: () => GanttActiveViewContextType;
64
+ /** @hidden */
65
+ export type GanttRowHeightContextType = number;
66
+ /** @hidden */
67
+ export declare const GanttRowHeightContext: React.Context<number>;
68
+ /** @hidden */
69
+ export declare const useGanttRowHeightContext: () => GanttRowHeightContextType;
70
+ /** @hidden */
71
+ export type GanttToolbarHeightContextType = number;
72
+ /** @hidden */
73
+ export declare const GanttToolbarHeightContext: React.Context<number>;
74
+ /** @hidden */
75
+ export declare const useGanttToolbarHeightContext: () => GanttToolbarHeightContextType;
76
+ /** @hidden */
77
+ export type GanttEventsContextType = {
78
+ onDataStateChange: (args: TreeListDataStateChangeEvent) => void;
79
+ onSortChange: (args: TreeListSortChangeEvent) => void;
80
+ onFilterChange: (args: TreeListFilterChangeEvent) => void;
81
+ onColumnMenuFilterChange: (args: TreeListColumnMenuFilterChangeEvent) => void;
82
+ onExpandChange: (args: TreeListExpandChangeEvent) => void;
83
+ onRowClick: (args: TreeListRowClickEvent) => void;
84
+ onRowDoubleClick: (args: TreeListRowClickEvent) => void;
85
+ onRowContextMenu: (args: TreeListRowClickEvent) => void;
86
+ onColumnResize: (args: TreeListColumnResizeEvent) => void;
87
+ onColumnReorder: (args: TreeListColumnReorderEvent) => void;
88
+ onDependencyCreate?: (args: GanttDependencyCreateEvent) => void;
89
+ onKeyDown?: (args: TreeListKeyDownEvent) => void;
90
+ onSelectionChange?: (args: TreeListSelectionChangeEvent) => void;
91
+ onHeaderSelectionChange?: (args: TreeListHeaderSelectionChangeEvent) => void;
92
+ };
93
+ /** @hidden */
94
+ export declare const GanttEventsContext: React.Context<GanttEventsContextType>;
95
+ /** @hidden */
96
+ export declare const useGanttEventsContext: () => GanttEventsContextType;
97
+ /** @hidden */
98
+ export type GanttTaskEventsContextType = {
99
+ onTaskClick: (args: GanttTaskClickEvent) => void;
100
+ onTaskDoubleClick: (args: GanttTaskDoubleClickEvent) => void;
101
+ onTaskContextMenu: (args: GanttTaskContextMenuEvent) => void;
102
+ onTaskRemoveClick?: (args: GanttTaskRemoveClickEvent) => void;
103
+ };
104
+ /** @hidden */
105
+ export declare const GanttTaskEventsContext: React.Context<GanttTaskEventsContextType>;
106
+ /** @hidden */
107
+ export declare const useGanttTaskEventsContext: () => GanttTaskEventsContextType;
108
+ /** @hidden */
109
+ export interface GanttContextProps {
110
+ children?: React.ReactNode;
111
+ views: GanttViewsContextType;
112
+ taskData: GanttTaskDataContextType;
113
+ dependencyData: GanttDependencyDataContextType;
114
+ taskModelFields: TaskModelFields;
115
+ dependencyModelFields: DependencyModelFields;
116
+ props: GanttBaseProps;
117
+ events: GanttEventsContextType;
118
+ taskEvents: GanttTaskEventsContextType;
119
+ dateRange: DateRange;
120
+ rowHeight: number;
121
+ toolbarHeight: number;
122
+ activeView: GanttActiveViewContextType;
123
+ }
124
+ /** @hidden */
125
+ export declare const GanttContext: {
126
+ ({ children, taskData, dependencyData, taskModelFields, dependencyModelFields, props, dateRange, views, activeView, rowHeight, toolbarHeight, events, taskEvents }: GanttContextProps): React.JSX.Element;
127
+ displayName: string;
128
+ };
@@ -0,0 +1,47 @@
1
+ /**
2
+ * @license
3
+ *-------------------------------------------------------------------------------------------
4
+ * Copyright © 2026 Progress Software Corporation. All rights reserved.
5
+ * Licensed under commercial license. See LICENSE.md in the package root for more information
6
+ *-------------------------------------------------------------------------------------------
7
+ */
8
+ import { NormalizedDragEvent } from '@progress/kendo-react-common';
9
+ import { Store, StoreAction } from '../hooks/useDictionaryStore.js';
10
+ import { GanttTaskHandle } from '../components/GanttTask.js';
11
+ import * as React from 'react';
12
+ /** @hidden */
13
+ export type GanttViewTasksContextType = [Store<GanttTaskHandle>, (event: StoreAction<GanttTaskHandle>) => void];
14
+ /** @hidden */
15
+ export declare const GanttViewTasksContext: React.Context<GanttViewTasksContextType>;
16
+ /** @hidden */
17
+ export declare const useGanttViewTasksContext: () => GanttViewTasksContextType;
18
+ /** @hidden */
19
+ export type GanttViewTimelineWidthContextType = number;
20
+ /** @hidden */
21
+ export declare const GanttViewTimelineWidthContext: React.Context<number>;
22
+ /** @hidden */
23
+ export declare const useGanttViewTimelineWidthContext: () => GanttViewTimelineWidthContextType;
24
+ /** @hidden */
25
+ export type GanttViewDependencyDragContextType = {
26
+ onDependencyHandlePress: (event: NormalizedDragEvent) => void;
27
+ onDependencyHandleDrag: (event: NormalizedDragEvent) => void;
28
+ onDependencyHandleRelease: (event: NormalizedDragEvent) => void;
29
+ isEnabled: boolean;
30
+ draggedId: string | null;
31
+ };
32
+ /** @hidden */
33
+ export declare const GanttViewDependencyDragContext: React.Context<GanttViewDependencyDragContextType>;
34
+ /** @hidden */
35
+ export declare const useGanttViewDependencyDragContext: () => GanttViewDependencyDragContextType;
36
+ /** @hidden */
37
+ export interface GanttViewContextProps {
38
+ children?: React.ReactNode;
39
+ tasksStore: [Store<GanttTaskHandle>, (event: StoreAction<GanttTaskHandle>) => void];
40
+ dependencyDrag: GanttViewDependencyDragContextType;
41
+ timelineWidth: number;
42
+ }
43
+ /** @hidden */
44
+ export declare const GanttViewContext: {
45
+ ({ children, tasksStore: tasks, timelineWidth, dependencyDrag }: GanttViewContextProps): React.JSX.Element;
46
+ displayName: string;
47
+ };