@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,53 @@
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 { GridRowClickEvent } from '@progress/kendo-react-grid';
9
+ import { GanttDependency } from '../interfaces/GanttDependency.js';
10
+ import { DependencyType } from '../interfaces/DependencyType.js';
11
+ import { DataItem } from '../interfaces/DataItem.js';
12
+ import * as React from 'react';
13
+ export interface GanttEditorSuccessorsProps {
14
+ /**
15
+ * The array of successor dependencies for the current task.
16
+ */
17
+ successors: GanttDependency[];
18
+ /**
19
+ * The flattened array of all tasks in the Gantt.
20
+ */
21
+ flatTasks: DataItem[];
22
+ /**
23
+ * The available dependency types with their display names.
24
+ */
25
+ dependencyTypes: {
26
+ type: DependencyType;
27
+ name: string;
28
+ }[];
29
+ /**
30
+ * The currently selected dependency item in the editor.
31
+ */
32
+ selectedItem: GanttDependency | undefined;
33
+ /**
34
+ * Callback function that handles row selection in the dependencies grid.
35
+ */
36
+ onSelectRow: (event: GridRowClickEvent) => void;
37
+ /**
38
+ * Callback function that adds a new successor dependency.
39
+ */
40
+ addSuccessorsDependency: () => void;
41
+ /**
42
+ * Callback function that removes the selected dependency.
43
+ */
44
+ deleteDependency: () => void;
45
+ /**
46
+ * Callback function that updates a dependency with new values.
47
+ */
48
+ updateDependency: (dependency: GanttDependency, field: string, newValue: number) => void;
49
+ }
50
+ /**
51
+ * @hidden
52
+ */
53
+ export declare const GanttEditorSuccessors: (props: GanttEditorSuccessorsProps) => React.JSX.Element;
@@ -0,0 +1,73 @@
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 { GanttEditorDependenciesHandler } from './GanttEditor.js';
9
+ import { DataItem } from '../interfaces/DataItem.js';
10
+ import { GanttDependency } from '../interfaces/GanttDependency.js';
11
+ import * as React from 'react';
12
+ /**
13
+ * Represents the event arguments of Gantt form.
14
+ */
15
+ export interface GanttFormStateChangeEvent {
16
+ /**
17
+ * The initial data item.
18
+ */
19
+ initialDataItem?: DataItem;
20
+ /**
21
+ * The updated data item.
22
+ */
23
+ dataItem: DataItem | null;
24
+ /**
25
+ * A React Synthetic Event.
26
+ */
27
+ syntheticEvent: React.SyntheticEvent<any>;
28
+ /**
29
+ * A native DOM event.
30
+ */
31
+ nativeEvent: any;
32
+ /**
33
+ * Passes the updated dependencies.
34
+ */
35
+ dependencies?: GanttEditorDependenciesHandler;
36
+ }
37
+ /**
38
+ * Represents the props of the KendoReact [GanttForm](https://www.telerik.com/kendo-react-ui/components/gantt/api/ganttform) component.
39
+ */
40
+ export interface GanttFormProps {
41
+ /**
42
+ * Specifies the `DataItem` to be visualized inside the form.
43
+ */
44
+ dataItem: DataItem;
45
+ /**
46
+ * The task data passed to the form.
47
+ */
48
+ taskData?: DataItem[];
49
+ /**
50
+ * The dependancy data passed to the form.
51
+ */
52
+ dependencyData?: GanttDependency[];
53
+ /**
54
+ * Called when the `cancel` button is clicked.
55
+ */
56
+ onCancel?: (event: GanttFormStateChangeEvent) => void;
57
+ /**
58
+ * Called when the `delete` button is clicked.
59
+ */
60
+ onDelete?: (event: GanttFormStateChangeEvent) => void;
61
+ /**
62
+ * Called when the `close` button is clicked.
63
+ */
64
+ onClose?: (event: GanttFormStateChangeEvent) => void;
65
+ /**
66
+ * Called when the `submit` button is clicked.
67
+ */
68
+ onSubmit: (event: GanttFormStateChangeEvent) => void;
69
+ }
70
+ /**
71
+ * Represents the default `form` component rendered when editing a task in the Gantt component.
72
+ */
73
+ export declare const GanttForm: (props: GanttFormProps) => React.ReactPortal | null;
@@ -13,11 +13,11 @@ import { Window as R, WindowActionsBar as W } from "@progress/kendo-react-dialog
13
13
  import { Button as r } from "@progress/kendo-react-buttons";
14
14
  import { GanttEditor as G } from "./GanttEditor.mjs";
15
15
  import { useLocalization as L } from "@progress/kendo-react-intl";
16
- import { messages as T, editorSave as V, editorCancel as x, editorDelete as A, editorTitle as N } from "../messages/index.mjs";
16
+ import { messages as T, editorTitle as V, editorSave as x, editorCancel as A, editorDelete as N } from "../messages/index.mjs";
17
17
  import { saveIcon as U, cancelIcon as j, trashIcon as q } from "@progress/kendo-svg-icons";
18
18
  import { findByFieldValue as v } from "@progress/kendo-react-dropdowns";
19
19
  const P = (a) => {
20
- const { onCancel: l, onDelete: c, onClose: d, onSubmit: m, ...D } = a, I = t.useRef(a.dataItem), [n, f] = t.useState({}), C = L(), i = (e) => C.toLanguageString(e, T[e]), g = i(V), h = i(x), b = i(A), E = i(N), k = t.useCallback(
20
+ const { onCancel: l, onDelete: c, onClose: d, onSubmit: m, ...D } = a, I = t.useRef(a.dataItem), [n, f] = t.useState({}), C = L(), i = (e) => C.toLanguageString(e, T[e]), g = i(x), h = i(A), b = i(N), E = i(V), k = t.useCallback(
21
21
  (e) => {
22
22
  if (l) {
23
23
  const o = {
@@ -0,0 +1,51 @@
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 { DataItem } from '../interfaces/DataItem.js';
9
+ import * as React from 'react';
10
+ /**
11
+ * Represents the event arguments of Gantt remove dialog.
12
+ */
13
+ export interface GanttRemoveDialogStateChangeEvent {
14
+ /**
15
+ * The updated data item.
16
+ */
17
+ dataItem: DataItem | null;
18
+ /**
19
+ * A React Synthetic Event.
20
+ */
21
+ syntheticEvent: React.SyntheticEvent<any>;
22
+ /**
23
+ * A native DOM event.
24
+ */
25
+ nativeEvent: any;
26
+ }
27
+ /**
28
+ * Represents the props of the KendoReact [GanttRemoveDialog](https://www.telerik.com/kendo-react-ui/components/gantt/api/ganttremovedialog) component.
29
+ */
30
+ export interface GanttRemoveDialogProps {
31
+ /**
32
+ * Specifies the `DataItem` currently being deleted.
33
+ */
34
+ dataItem: DataItem;
35
+ /**
36
+ * Called when the `close` button is clicked.
37
+ */
38
+ onClose?: (event: GanttRemoveDialogStateChangeEvent) => void;
39
+ /**
40
+ * Called when the `cancel` button is clicked.
41
+ */
42
+ onCancel?: (event: GanttRemoveDialogStateChangeEvent) => void;
43
+ /**
44
+ * Called when the `confirm` button is clicked.
45
+ */
46
+ onConfirm?: (event: GanttRemoveDialogStateChangeEvent) => void;
47
+ }
48
+ /**
49
+ * Represents the `removeDialog` component rendered when removing a task from the Gantt component.
50
+ */
51
+ export declare const GanttRemoveDialog: (props: GanttRemoveDialogProps) => React.ReactPortal | null;
@@ -9,11 +9,11 @@ import * as o from "react";
9
9
  import * as p from "react-dom";
10
10
  import { Dialog as M, DialogActionsBar as k } from "@progress/kendo-react-dialogs";
11
11
  import { useLocalization as b } from "@progress/kendo-react-intl";
12
- import { messages as E, editorDelete as z, editorCancel as I, deleteConfirmation as R, deleteDialogTitle as B } from "../messages/index.mjs";
12
+ import { messages as E, deleteDialogTitle as z, deleteConfirmation as I, editorDelete as R, editorCancel as B } from "../messages/index.mjs";
13
13
  import { canUseDOM as L } from "@progress/kendo-react-common";
14
14
  import { Button as i } from "@progress/kendo-react-buttons";
15
15
  const G = (c) => {
16
- const { onClose: a, onCancel: l, onConfirm: n, dataItem: r } = c, m = b(), t = (e) => m.toLanguageString(e, E[e]), s = t(z), d = t(I), u = t(R), C = t(B), f = o.useCallback(
16
+ const { onClose: a, onCancel: l, onConfirm: n, dataItem: r } = c, m = b(), t = (e) => m.toLanguageString(e, E[e]), s = t(R), d = t(B), u = t(I), C = t(z), f = o.useCallback(
17
17
  ({ syntheticEvent: e }) => {
18
18
  a && a.call(void 0, {
19
19
  syntheticEvent: e,
@@ -0,0 +1,11 @@
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
+ /** @hidden */
9
+ export type ControlledStateHook<T> = [T, (value: T, event?: any) => void];
10
+ /** @hidden */
11
+ export declare const useControlledState: <T extends unknown>(defaultProp: T, prop?: T | undefined, callback?: any) => ControlledStateHook<T>;
@@ -0,0 +1,25 @@
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 * as React from 'react';
9
+ /** @hidden */
10
+ export declare enum STORE_ACTION {
11
+ add = 0,
12
+ remove = 1
13
+ }
14
+ /** @hidden */
15
+ export type Store<T> = React.RefObject<{
16
+ [id: string]: T;
17
+ } | null>;
18
+ /** @hidden */
19
+ export interface StoreAction<T> {
20
+ type: STORE_ACTION;
21
+ itemRef: T;
22
+ id: number | string;
23
+ }
24
+ /** @hidden */
25
+ export declare const useDictionaryStore: <T extends unknown>() => [Store<T>, (event: StoreAction<T>) => void];
@@ -0,0 +1,11 @@
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 { GanttTaskHandle } from '../components/GanttTask.js';
9
+ import * as React from 'react';
10
+ /** @hidden */
11
+ export declare const useGanttTask: (dataItem: any, id: number | string, ref: React.Ref<GanttTaskHandle | null>, taskElementRef: React.RefObject<HTMLDivElement | null>) => void;