@progress/kendo-react-gantt 7.2.4-develop.2 → 7.2.4-develop.4

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 (151) hide show
  1. package/Gantt.js +8 -0
  2. package/Gantt.mjs +411 -0
  3. package/cells/FilterCells/GanttBooleanFilter.js +8 -0
  4. package/cells/FilterCells/GanttBooleanFilter.mjs +27 -0
  5. package/cells/FilterCells/GanttDateFilter.js +8 -0
  6. package/cells/FilterCells/GanttDateFilter.mjs +27 -0
  7. package/cells/FilterCells/GanttNumericFilter.js +8 -0
  8. package/cells/FilterCells/GanttNumericFilter.mjs +27 -0
  9. package/cells/FilterCells/GanttTextFilter.js +8 -0
  10. package/cells/FilterCells/GanttTextFilter.mjs +27 -0
  11. package/cells/FilterCells/utils.js +8 -0
  12. package/cells/FilterCells/utils.mjs +59 -0
  13. package/components/BaseView.js +8 -0
  14. package/components/BaseView.mjs +239 -0
  15. package/components/GanttDependency.js +8 -0
  16. package/components/GanttDependency.mjs +58 -0
  17. package/components/GanttTask.js +8 -0
  18. package/components/GanttTask.mjs +169 -0
  19. package/components/GanttTreelist.js +8 -0
  20. package/components/GanttTreelist.mjs +571 -0
  21. package/components/toolbar/AddButton.js +8 -0
  22. package/components/toolbar/AddButton.mjs +56 -0
  23. package/components/toolbar/Toolbar.js +8 -0
  24. package/components/toolbar/Toolbar.mjs +34 -0
  25. package/components/toolbar/view-selector/ViewSelector.js +8 -0
  26. package/components/toolbar/view-selector/ViewSelector.mjs +32 -0
  27. package/components/toolbar/view-selector/ViewSelectorItem.js +8 -0
  28. package/components/toolbar/view-selector/ViewSelectorItem.mjs +39 -0
  29. package/components/toolbar/view-selector/ViewSelectorList.js +8 -0
  30. package/components/toolbar/view-selector/ViewSelectorList.mjs +36 -0
  31. package/constants/index.js +8 -0
  32. package/constants/index.mjs +52 -0
  33. package/context/GanttContext.js +8 -0
  34. package/context/GanttContext.mjs +103 -0
  35. package/context/GanttViewContext.js +8 -0
  36. package/context/GanttViewContext.mjs +38 -0
  37. package/dist/cdn/js/kendo-react-gantt.js +8 -5
  38. package/editors/FormDateTimePicker.js +8 -0
  39. package/editors/FormDateTimePicker.mjs +29 -0
  40. package/editors/FormDropDownList.js +8 -0
  41. package/editors/FormDropDownList.mjs +62 -0
  42. package/editors/FormInput.js +8 -0
  43. package/editors/FormInput.mjs +29 -0
  44. package/editors/FormNumericTextBox.js +8 -0
  45. package/editors/FormNumericTextBox.mjs +30 -0
  46. package/editors/GanttEditor.js +8 -0
  47. package/editors/GanttEditor.mjs +260 -0
  48. package/editors/GanttEditorPredecessors.js +8 -0
  49. package/editors/GanttEditorPredecessors.mjs +121 -0
  50. package/editors/GanttEditorSuccessors.js +8 -0
  51. package/editors/GanttEditorSuccessors.mjs +121 -0
  52. package/editors/GanttForm.js +8 -0
  53. package/editors/GanttForm.mjs +113 -0
  54. package/editors/GanttRemoveDialog.js +8 -0
  55. package/editors/GanttRemoveDialog.mjs +49 -0
  56. package/hooks/useControlledState.js +8 -0
  57. package/hooks/useControlledState.mjs +21 -0
  58. package/hooks/useDictionaryStore.js +8 -0
  59. package/hooks/useDictionaryStore.mjs +30 -0
  60. package/hooks/useGanttTask.js +8 -0
  61. package/hooks/useGanttTask.mjs +35 -0
  62. package/index.d.mts +1394 -5
  63. package/index.d.ts +1394 -32
  64. package/index.js +8 -5
  65. package/index.mjs +50 -3087
  66. package/interfaces/DependencyType.js +8 -0
  67. package/interfaces/DependencyType.mjs +12 -0
  68. package/messages/index.js +8 -0
  69. package/messages/index.mjs +137 -0
  70. package/package-metadata.js +8 -0
  71. package/package-metadata.mjs +19 -0
  72. package/package.json +12 -12
  73. package/rows/GanttRow.js +8 -0
  74. package/rows/GanttRow.mjs +13 -0
  75. package/utils/data-operations.js +8 -0
  76. package/utils/data-operations.mjs +183 -0
  77. package/utils/index.js +8 -0
  78. package/utils/index.mjs +263 -0
  79. package/views/GanttDayView.js +8 -0
  80. package/views/GanttDayView.mjs +94 -0
  81. package/views/GanttMonthView.js +8 -0
  82. package/views/GanttMonthView.mjs +82 -0
  83. package/views/GanttWeekView.js +8 -0
  84. package/views/GanttWeekView.mjs +81 -0
  85. package/views/GanttYearView.js +8 -0
  86. package/views/GanttYearView.mjs +73 -0
  87. package/Gantt.d.ts +0 -29
  88. package/cells/FilterCells/GanttBooleanFilter.d.ts +0 -14
  89. package/cells/FilterCells/GanttDateFilter.d.ts +0 -14
  90. package/cells/FilterCells/GanttNumericFilter.d.ts +0 -14
  91. package/cells/FilterCells/GanttTextFilter.d.ts +0 -14
  92. package/cells/FilterCells/utils.d.ts +0 -42
  93. package/components/BaseView.d.ts +0 -24
  94. package/components/GanttDependency.d.ts +0 -13
  95. package/components/GanttTask.d.ts +0 -16
  96. package/components/GanttTreelist.d.ts +0 -143
  97. package/components/toolbar/AddButton.d.ts +0 -16
  98. package/components/toolbar/Toolbar.d.ts +0 -25
  99. package/components/toolbar/view-selector/ViewSelector.d.ts +0 -28
  100. package/components/toolbar/view-selector/ViewSelectorItem.d.ts +0 -15
  101. package/components/toolbar/view-selector/ViewSelectorList.d.ts +0 -7
  102. package/constants/index.d.ts +0 -57
  103. package/context/GanttContext.d.ts +0 -125
  104. package/context/GanttViewContext.d.ts +0 -44
  105. package/editors/FormDateTimePicker.d.ts +0 -9
  106. package/editors/FormDropDownList.d.ts +0 -9
  107. package/editors/FormInput.d.ts +0 -9
  108. package/editors/FormNumericTextBox.d.ts +0 -9
  109. package/editors/GanttEditor.d.ts +0 -21
  110. package/editors/GanttEditorPredecessors.d.ts +0 -25
  111. package/editors/GanttEditorSuccessors.d.ts +0 -25
  112. package/editors/GanttForm.d.ts +0 -70
  113. package/editors/GanttRemoveDialog.d.ts +0 -48
  114. package/hooks/useControlledState.d.ts +0 -8
  115. package/hooks/useDictionaryStore.d.ts +0 -22
  116. package/hooks/useGanttTask.d.ts +0 -8
  117. package/interfaces/AddDirection.d.ts +0 -10
  118. package/interfaces/DataItem.d.ts +0 -10
  119. package/interfaces/DateRange.d.ts +0 -12
  120. package/interfaces/DependencyModelFields.d.ts +0 -29
  121. package/interfaces/DependencyType.d.ts +0 -19
  122. package/interfaces/GanttBaseProps.d.ts +0 -66
  123. package/interfaces/GanttCellProps.d.ts +0 -45
  124. package/interfaces/GanttColumnProps.d.ts +0 -40
  125. package/interfaces/GanttDependency.d.ts +0 -30
  126. package/interfaces/GanttDependencyModelFields.d.ts +0 -29
  127. package/interfaces/GanttFilterCellProps.d.ts +0 -10
  128. package/interfaces/GanttFilterOperator.d.ts +0 -10
  129. package/interfaces/GanttHeaderCellProps.d.ts +0 -10
  130. package/interfaces/GanttNoRecordsProps.d.ts +0 -13
  131. package/interfaces/GanttProps.d.ts +0 -151
  132. package/interfaces/GanttRowProps.d.ts +0 -95
  133. package/interfaces/GanttSelectableSettings.d.ts +0 -22
  134. package/interfaces/GanttSlotType.d.ts +0 -8
  135. package/interfaces/GanttSortSettings.d.ts +0 -17
  136. package/interfaces/GanttTaskModelFields.d.ts +0 -64
  137. package/interfaces/GanttView.d.ts +0 -80
  138. package/interfaces/GanttViewTimelineHeaderCellProps.d.ts +0 -23
  139. package/interfaces/Rectangle.d.ts +0 -10
  140. package/interfaces/Slot.d.ts +0 -16
  141. package/interfaces/TaskModelFields.d.ts +0 -20
  142. package/interfaces/events.d.ts +0 -298
  143. package/messages/index.d.ts +0 -194
  144. package/package-metadata.d.ts +0 -9
  145. package/rows/GanttRow.d.ts +0 -8
  146. package/utils/data-operations.d.ts +0 -47
  147. package/utils/index.d.ts +0 -182
  148. package/views/GanttDayView.d.ts +0 -21
  149. package/views/GanttMonthView.d.ts +0 -17
  150. package/views/GanttWeekView.d.ts +0 -17
  151. package/views/GanttYearView.d.ts +0 -17
@@ -1,151 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { GanttBaseProps } from './GanttBaseProps';
6
- import { GanttTaskModelFields } from './GanttTaskModelFields';
7
- import { GanttDependencyModelFields } from './GanttDependencyModelFields';
8
- import { GanttView } from './GanttView';
9
- import { GanttViewChangeEvent, GanttDataStateChangeEvent, GanttSortChangeEvent, GanttFilterChangeEvent, GanttExpandChangeEvent, GanttRowClickEvent, GanttColumnResizeEvent, GanttColumnReorderEvent, GanttColumnMenuFilterChangeEvent, GanttAddClickEvent, GanttTaskContextMenuEvent, GanttTaskClickEvent, GanttTaskDoubleClickEvent, GanttRowDoubleClickEvent, GanttRowContextMenuEvent, GanttTaskRemoveClickEvent, GanttDependencyCreateEvent, GanttKeyDownEvent, GanttSelectionChangeEvent, GanttHeaderSelectionChangeEvent } from './events';
10
- import { DataItem } from './DataItem';
11
- import { GanttDependency } from './GanttDependency';
12
- /**
13
- * Represents the props of the [KendoReact Gantt component]({% slug overview_gantt %}).
14
- */
15
- export interface GanttProps extends GanttBaseProps {
16
- /**
17
- * Sets custom CSS classes to the Gantt DOM element.
18
- */
19
- className?: string;
20
- /**
21
- * Represents the `style` HTML attribute.
22
- */
23
- style?: React.CSSProperties;
24
- /**
25
- * Sets the task data of the Gantt component. The data is then parsed and rendered as a visual Gantt tasks.
26
- */
27
- taskData?: DataItem[];
28
- /**
29
- * Sets the dependency data of the Gantt component. The data is then parsed and rendered as a visual connections between Gantt tasks.
30
- */
31
- dependencyData?: GanttDependency[];
32
- /**
33
- * The names of the model fields from which the Gantt will read its task data.
34
- */
35
- taskModelFields?: GanttTaskModelFields;
36
- /**
37
- * The names of the model fields from which the Gantt will read its task data.
38
- */
39
- dependencyModelFields?: GanttDependencyModelFields;
40
- /**
41
- * Specify the available `view` components as `children` and the Gantt will match the currently selected view and render it.
42
- */
43
- children?: GanttView[] | GanttView;
44
- /**
45
- * Sets the initially selected view. The available values are:
46
- * * `day`
47
- * * `week` (Default)
48
- * * `month`
49
- * * `year`
50
- */
51
- defaultView?: string;
52
- /**
53
- * Sets the currently selected view. The value is matched with the `title` property of the view.
54
- */
55
- view?: string;
56
- /**
57
- * Specifies the id of the timezone that will be displayed in the Gantt.
58
- * For example, `Europe/Sofia`.
59
- */
60
- timezone?: string;
61
- /**
62
- * Defines the row height and implements equal heights for all rows.
63
- */
64
- rowHeight?: number;
65
- /**
66
- * Allow configuration of the Gantt toolbar. Currently allows enabling the add button.
67
- */
68
- toolbar?: {
69
- addTaskButton: boolean;
70
- };
71
- /**
72
- * Called when new `view` is selected. Useful for controlling the selected view.
73
- */
74
- onViewChange?: (args: GanttViewChangeEvent) => void;
75
- onColumnMenuFilterChange?: (event: GanttColumnMenuFilterChangeEvent) => void;
76
- /**
77
- * Fires when the data state of the Gantt is changed.
78
- */
79
- onDataStateChange?: (event: GanttDataStateChangeEvent) => void;
80
- /**
81
- * Fires when the sorting of the Gantt is changed ([see example]({% slug sorting_gantt %})).
82
- * You have to handle the event yourself and sort the data.
83
- */
84
- onSortChange?: (event: GanttSortChangeEvent) => void;
85
- /**
86
- * Fires when the Gantt filter is modified through the UI
87
- * ([more information and examples]({% slug filtering_gantt %})).
88
- * You have to handle the event yourself and filter the data.
89
- */
90
- onFilterChange?: (event: GanttFilterChangeEvent) => void;
91
- /**
92
- * Fires when the user clicks on the expand or collapse icon of a row.
93
- */
94
- onExpandChange?: (event: GanttExpandChangeEvent) => void;
95
- /**
96
- * Fires when the user clicks on Gantt add button.
97
- */
98
- onAddClick?: (event: GanttAddClickEvent) => void;
99
- /**
100
- * Fires when a column is resized.
101
- */
102
- onColumnResize?: (event: GanttColumnResizeEvent) => void;
103
- /**
104
- * Fires when the columns are reordered.
105
- */
106
- onColumnReorder?: (event: GanttColumnReorderEvent) => void;
107
- /**
108
- * Fires when the user clicks a row.
109
- */
110
- onRowClick?: (event: GanttRowClickEvent) => void;
111
- /**
112
- * Fires when the user double clicks a row.
113
- */
114
- onRowDoubleClick?: (event: GanttRowDoubleClickEvent) => void;
115
- /**
116
- * Fires when the user trigger the context menu of row.
117
- */
118
- onRowContextMenu?: (event: GanttRowContextMenuEvent) => void;
119
- /**
120
- * Fires when the user clicks a task.
121
- */
122
- onTaskClick?: (event: GanttTaskClickEvent) => void;
123
- /**
124
- * Fires when the user double clicks a task.
125
- */
126
- onTaskDoubleClick?: (event: GanttTaskDoubleClickEvent) => void;
127
- /**
128
- * Fires when the user trigger the context menu of task.
129
- */
130
- onTaskContextMenu?: (event: GanttTaskContextMenuEvent) => void;
131
- /**
132
- * Fires when the user clicks the task remove action.
133
- */
134
- onTaskRemoveClick?: (event: GanttTaskRemoveClickEvent) => void;
135
- /**
136
- * Fires when the user creates dependecy between two tasks.
137
- */
138
- onDependencyCreate?: (event: GanttDependencyCreateEvent) => void;
139
- /**
140
- * Fires when the user press keyboard key.
141
- */
142
- onKeyDown?: (event: GanttKeyDownEvent) => void;
143
- /**
144
- * Fires when the user tries to select or deselect a row or cell.
145
- */
146
- onSelectionChange?: (event: GanttSelectionChangeEvent) => void;
147
- /**
148
- * Fires when the user clicks the checkbox of a column header whose `field` matches `selectedField`
149
- */
150
- onHeaderSelectionChange?: (event: GanttHeaderSelectionChangeEvent) => void;
151
- }
@@ -1,95 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- /**
6
- * The props that the Gantt passes to the GanttRow component when creating it.
7
- */
8
- export interface GanttRowProps {
9
- /**
10
- * The `data` object that represents the current row.
11
- */
12
- dataItem: any;
13
- /**
14
- * The event that is fired when the row is clicked.
15
- */
16
- onClick?: any;
17
- /**
18
- * The event that is fired when the row is double clicked.
19
- */
20
- onDoubleClick?: any;
21
- /**
22
- * The event that is fired when the row context menu is triggered.
23
- */
24
- onContextMenu?: any;
25
- /**
26
- * The name of the field which will provide a Boolean representation of the selected state of the item.
27
- */
28
- selectedField?: string;
29
- /**
30
- * Sets the height of the row.
31
- */
32
- rowHeight?: number;
33
- /**
34
- * A function for overriding the default rendering of the row.
35
- */
36
- render?: (row: React.ReactElement<HTMLTableRowElement>, props: GanttRowProps) => React.ReactNode;
37
- /**
38
- * An array of indexes of each parent and current item in the data tree.
39
- */
40
- level: number[];
41
- /**
42
- * Fires when a row is dragged.
43
- */
44
- onDrag?: (event: {
45
- nativeEvent: any;
46
- dragged: number[];
47
- draggedOver: number[] | null;
48
- draggedItem: any;
49
- }) => void;
50
- /**
51
- * Fires when a row is dragged and dropped.
52
- */
53
- onDrop?: (event: {
54
- nativeEvent: any;
55
- dragged: number[];
56
- draggedOver: number[] | null;
57
- draggedItem: any;
58
- }) => void;
59
- /**
60
- * The expanded state of the row. Useful for applying `aria-expanded` accessibility attribute.
61
- */
62
- expanded: boolean;
63
- /**
64
- * The index of the row. Useful for applying `aria-rowindex` accessibility attribute.
65
- */
66
- rowIndex: number;
67
- /**
68
- * @hidden
69
- */
70
- children: React.ReactNode;
71
- /**
72
- * @hidden
73
- */
74
- levels: number[][];
75
- /**
76
- * @hidden
77
- */
78
- isAltRow?: boolean;
79
- /**
80
- * The index to be applied to the `aria-rowindex` attribute.
81
- */
82
- ariaRowIndex?: number;
83
- /**
84
- * The count of items on current level, applied to the `aria-setsize` attribute.
85
- */
86
- ariaSetSize?: number;
87
- /**
88
- * The index of the item on current level, applied to the `aria-posinset` attribute.
89
- */
90
- ariaPosInSet?: number;
91
- /**
92
- * Indicates if the row is selected.
93
- */
94
- isSelected: boolean;
95
- }
@@ -1,22 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { TableSelectableMode, TableSelectableSettings } from '@progress/kendo-react-data-tools';
6
- /**
7
- * Represents the available selection modes.
8
- */
9
- export type GanttSelectableMode = TableSelectableMode;
10
- /**
11
- * Represents the Gantt selectable settings.
12
- */
13
- export interface GanttSelectableSettings extends TableSelectableSettings {
14
- /**
15
- * The available values are:
16
- * * `single`
17
- * * `multiple`
18
- *
19
- * @default "multiple"
20
- */
21
- mode?: GanttSelectableMode;
22
- }
@@ -1,8 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- /**
6
- * The types of Gantt slot.
7
- */
8
- export type GanttSlotType = 'time' | 'day' | 'week' | 'month' | 'year';
@@ -1,17 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { ColumnSortSettings, SortSettings } from '@progress/kendo-react-data-tools';
6
- /**
7
- * The settings for sorting the Gantt columns.
8
- */
9
- export type GanttColumnSortSettings = ColumnSortSettings;
10
- /**
11
- * The settings for sorting the Gantt data.
12
- */
13
- export type GanttSortSettings = SortSettings;
14
- /**
15
- * @hidden
16
- */
17
- export declare const normalize: (...settings: (GanttSortSettings | GanttColumnSortSettings)[]) => any;
@@ -1,64 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- /**
6
- * Defines the model fields that will be used for creating `GanttTask` instances.
7
- */
8
- export interface GanttTaskModelFields {
9
- /**
10
- * The name of the `ID` model field.
11
- * Defaults to `"id"`.
12
- */
13
- id?: string;
14
- /**
15
- * The name of the start date model field.
16
- * Defaults to `"start"`.
17
- */
18
- start?: string;
19
- /**
20
- * The name of the end date model field.
21
- * Defaults to `"end"`.
22
- */
23
- end?: string;
24
- /**
25
- * The name of the title model field.
26
- * Defaults to `"title"`.
27
- */
28
- title?: string;
29
- /**
30
- * The name of the percent complete model field.
31
- * Defaults to `"percentComplete"`.
32
- */
33
- percentComplete?: string;
34
- /**
35
- * The name of the percent complete model field.
36
- * Defaults to `"parentId"`.
37
- */
38
- parentId?: string;
39
- /**
40
- * The name of the is rollup model field.
41
- * Defaults to `"isRollup"`.
42
- */
43
- isRollup?: string;
44
- /**
45
- * The name of the is expanded model field. It will provide a Boolean representation of the expanded state of the item.
46
- * Defaults to `"isExpanded"`.
47
- */
48
- isExpanded?: string;
49
- /**
50
- * The name of the children model field. It will provide an array representation of the item subitems.
51
- * Defaults to `"children"`.
52
- */
53
- children?: string;
54
- /**
55
- * The name of the is in edit model field. It will provide a Boolean representation of the edit state of the current item.
56
- * Defaults to `"isInEdit"`.
57
- */
58
- isInEdit?: string;
59
- /**
60
- * Then name of selected model field. It will provide a Boolean representation of the selected state of the current item.
61
- * Defaults to `"isSelected"`.
62
- */
63
- isSelected?: string;
64
- }
@@ -1,80 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { LocalizationService, IntlService } from '@progress/kendo-react-intl';
6
- import { Day } from '@progress/kendo-date-math';
7
- import { DateRange } from './DateRange';
8
- import { GanttViewTimelineHeaderCellProps } from './GanttViewTimelineHeaderCellProps';
9
- /**
10
- * Represents the arguments which are passed to the [dateRange]({% slug api_gantt_ganttviewprops %}#toc-daterange) function.
11
- */
12
- export interface GanttViewDateRangeArgs {
13
- tasksStart: Date;
14
- tasksEnd: Date;
15
- intl: IntlService;
16
- timezone?: string;
17
- numberOfDays?: number;
18
- }
19
- export type GanttViewDateRangeFunction = (args: GanttViewDateRangeArgs) => DateRange;
20
- /**
21
- * Represents the Object which is passed to the [`ref`](https://reactjs.org/docs/refs-and-the-dom.html) callback of the GanttView component.
22
- */
23
- export interface GanttViewHandle {
24
- /**
25
- * Method to allow the scroll to be set to a specific row index.
26
- */
27
- scrollIntoView: (options: {
28
- rowIndex?: number;
29
- }) => void;
30
- }
31
- /**
32
- * Represents the required props which every [GanttView]({% slug api_Gantt_Ganttview %}) must accept.
33
- */
34
- export interface GanttViewProps {
35
- /**
36
- * The name property is used by the Gantt to match which view is selected. Every view has a default name.
37
- */
38
- name?: string;
39
- /**
40
- * The title to be displayed in the view selection list in the Toolbar.
41
- * If a function is passed, it will receive a [LocalizationService]({ slug api_intl_localizationservice }) as an argument
42
- */
43
- title?: string | ((localization: LocalizationService) => string);
44
- /**
45
- * The width of a single time slot in pixels. Default is 100px.
46
- */
47
- slotWidth?: number;
48
- /**
49
- * Overrides the `dateRange` calculated by the `Gantt` component.
50
- *
51
- * If a function is passed, an object of type [GanttViewDateRangeArgs]({% slug api_gantt_ganttviewdaterangeargs %}) will be passed.
52
- */
53
- dateRange?: DateRange | ((args: GanttViewDateRangeArgs) => DateRange);
54
- /**
55
- * Sets the start of the work day.
56
- */
57
- workDayStart?: string;
58
- /**
59
- * Sets the end of the work day.
60
- */
61
- workDayEnd?: string;
62
- /**
63
- * The start of the work week.
64
- */
65
- workWeekStart?: Day;
66
- /**
67
- * The end of the work week.
68
- */
69
- workWeekEnd?: Day;
70
- /**
71
- * The component to be rendered in header cells of the timeline part of the Gantt.
72
- */
73
- timelineHeaderCell?: React.ComponentType<GanttViewTimelineHeaderCellProps>;
74
- /** @hidden */
75
- firstSlotRangeRef?: React.MutableRefObject<DateRange | null>;
76
- }
77
- /**
78
- * Represents a single Gantt view.
79
- */
80
- export type GanttView = React.ReactElement<GanttViewProps>;
@@ -1,23 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { DateRange } from './DateRange';
6
- import { GanttSlotType } from './GanttSlotType';
7
- /**
8
- * The props of the Gantt view timeline header cell component.
9
- */
10
- export interface GanttViewTimelineHeaderCellProps {
11
- /** The date range of the cell. */
12
- range: DateRange;
13
- /** Is the cell is in work time. */
14
- isWork: boolean;
15
- /** The default cell text value. */
16
- text: string;
17
- /** The type of the cell slot. */
18
- type: GanttSlotType;
19
- /** The header cell row index. */
20
- rowIndex: number;
21
- /** The header cell index. */
22
- index: number;
23
- }
@@ -1,10 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- /** @hidden */
6
- export interface Rectangle {
7
- top: number;
8
- start: number;
9
- end: number;
10
- }
@@ -1,16 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { DateRange } from './DateRange';
6
- import { GanttSlotType } from './GanttSlotType';
7
- /**
8
- * @hidden
9
- */
10
- export interface Slot {
11
- range: DateRange;
12
- isWork: boolean;
13
- span: number;
14
- text: string;
15
- type: GanttSlotType;
16
- }
@@ -1,20 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2024 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the package root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- /**
6
- * Represents the combined object of the default and custom GanttTaskModelFields.
7
- */
8
- export interface TaskModelFields {
9
- id: string;
10
- start: string;
11
- end: string;
12
- title: string;
13
- percentComplete: string;
14
- parentId?: string;
15
- isRollup: string;
16
- isExpanded: string;
17
- children: string;
18
- isInEdit: string;
19
- isSelected: string;
20
- }