@progress/kendo-react-gantt 7.2.4-develop.3 → 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,9 +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 { FieldRenderProps } from '@progress/kendo-react-form';
6
- /**
7
- * @hidden
8
- */
9
- export declare const FormInput: (fieldRenderProps: FieldRenderProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,9 +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 { FieldRenderProps } from '@progress/kendo-react-form';
6
- /**
7
- * @hidden
8
- */
9
- export declare const FormNumericTextBox: (fieldRenderProps: FieldRenderProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,21 +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 { DataItem } from '../interfaces/DataItem';
6
- import { GanttDependency } from '../interfaces/GanttDependency';
7
- export interface GanttEditorDependenciesHandler {
8
- createdDependencies: GanttDependency[];
9
- updatedDependencies: GanttDependency[];
10
- deletedDependencies: GanttDependency[];
11
- }
12
- export interface GanttEditorProps {
13
- taskData?: DataItem[];
14
- dependencyData?: GanttDependency[];
15
- dataItem: DataItem;
16
- onDependencyCreate?: (event: GanttEditorDependenciesHandler) => void;
17
- }
18
- /**
19
- * @hidden
20
- */
21
- export declare const GanttEditor: (props: GanttEditorProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,25 +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 { GridRowClickEvent } from '@progress/kendo-react-grid';
6
- import { GanttDependency } from '../interfaces/GanttDependency';
7
- import { DependencyType } from '../interfaces/DependencyType';
8
- import { DataItem } from '../interfaces/DataItem';
9
- export interface GanttEditorPredecessorsProps {
10
- predecessors: GanttDependency[];
11
- flatTasks: DataItem[];
12
- dependencyTypes: {
13
- type: DependencyType;
14
- name: string;
15
- }[];
16
- selectedItem: GanttDependency | undefined;
17
- onSelectRow: (event: GridRowClickEvent) => void;
18
- addPredecessorsDependency: () => void;
19
- deleteDependency: () => void;
20
- updateDependency: (dependency: GanttDependency, field: string, newValue: number) => void;
21
- }
22
- /**
23
- * @hidden
24
- */
25
- export declare const GanttEditorPredecessors: (props: GanttEditorPredecessorsProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,25 +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 { GridRowClickEvent } from '@progress/kendo-react-grid';
6
- import { GanttDependency } from '../interfaces/GanttDependency';
7
- import { DependencyType } from '../interfaces/DependencyType';
8
- import { DataItem } from '../interfaces/DataItem';
9
- export interface GanttEditorSuccessorsProps {
10
- successors: GanttDependency[];
11
- flatTasks: DataItem[];
12
- dependencyTypes: {
13
- type: DependencyType;
14
- name: string;
15
- }[];
16
- selectedItem: GanttDependency | undefined;
17
- onSelectRow: (event: GridRowClickEvent) => void;
18
- addSuccessorsDependency: () => void;
19
- deleteDependency: () => void;
20
- updateDependency: (dependency: GanttDependency, field: string, newValue: number) => void;
21
- }
22
- /**
23
- * @hidden
24
- */
25
- export declare const GanttEditorSuccessors: (props: GanttEditorSuccessorsProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,70 +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 * as React from 'react';
6
- import { GanttEditorDependenciesHandler } from './GanttEditor';
7
- import { DataItem } from '../interfaces/DataItem';
8
- import { GanttDependency } from '../interfaces/GanttDependency';
9
- /**
10
- * Represents the event arguments of Gantt form.
11
- */
12
- export interface GanttFormStateChangeEvent {
13
- /**
14
- * The initial data item.
15
- */
16
- initialDataItem?: DataItem;
17
- /**
18
- * The updated data item.
19
- */
20
- dataItem: DataItem | null;
21
- /**
22
- * A React Synthetic Event.
23
- */
24
- syntheticEvent: React.SyntheticEvent<any>;
25
- /**
26
- * A native DOM event.
27
- */
28
- nativeEvent: any;
29
- /**
30
- * Passes the updated dependencies.
31
- */
32
- dependencies?: GanttEditorDependenciesHandler;
33
- }
34
- /**
35
- * Represents the props of the KendoReact [GanttForm]({% slug api_gantt_ganttform %}) component.
36
- */
37
- export interface GanttFormProps {
38
- /**
39
- * Specifies the `DataItem` to be visualized inside the form.
40
- */
41
- dataItem: DataItem;
42
- /**
43
- * The task data passed to the form.
44
- */
45
- taskData?: DataItem[];
46
- /**
47
- * The dependancy data passed to the form.
48
- */
49
- dependencyData?: GanttDependency[];
50
- /**
51
- * Called when the `cancel` button is clicked.
52
- */
53
- onCancel?: (event: GanttFormStateChangeEvent) => void;
54
- /**
55
- * Called when the `delete` button is clicked.
56
- */
57
- onDelete?: (event: GanttFormStateChangeEvent) => void;
58
- /**
59
- * Called when the `close` button is clicked.
60
- */
61
- onClose?: (event: GanttFormStateChangeEvent) => void;
62
- /**
63
- * Called when the `submit` button is clicked.
64
- */
65
- onSubmit: (event: GanttFormStateChangeEvent) => void;
66
- }
67
- /**
68
- * Represents the default `form` component rendered by the [KendoReact GanttEditItem component]({% slug api_gantt_ganttedititem %}).
69
- */
70
- export declare const GanttForm: (props: GanttFormProps) => React.ReactPortal | null;
@@ -1,48 +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 * as React from 'react';
6
- import { DataItem } from '../interfaces/DataItem';
7
- /**
8
- * Represents the event arguments of Gantt remove dialog.
9
- */
10
- export interface GanttRemoveDialogStateChangeEvent {
11
- /**
12
- * The updated data item.
13
- */
14
- dataItem: DataItem | null;
15
- /**
16
- * A React Synthetic Event.
17
- */
18
- syntheticEvent: React.SyntheticEvent<any>;
19
- /**
20
- * A native DOM event.
21
- */
22
- nativeEvent: any;
23
- }
24
- /**
25
- * Represents the props of the KendoReact [GanttRemoveDialog]({% slug api_gantt_ganttremovedialog %}) component.
26
- */
27
- export interface GanttRemoveDialogProps {
28
- /**
29
- * Specifies the `DataItem` currently being deleted.
30
- */
31
- dataItem: DataItem;
32
- /**
33
- * Called when the `close` button is clicked.
34
- */
35
- onClose?: (event: GanttRemoveDialogStateChangeEvent) => void;
36
- /**
37
- * Called when the `cancel` button is clicked.
38
- */
39
- onCancel?: (event: GanttRemoveDialogStateChangeEvent) => void;
40
- /**
41
- * Called when the `confirm` button is clicked.
42
- */
43
- onConfirm?: (event: GanttRemoveDialogStateChangeEvent) => void;
44
- }
45
- /**
46
- * Represents the default `removeDialog` component rendered by the [KendoReact GanttEditItem component]({% slug api_gantt_ganttedititem %}).
47
- */
48
- export declare const GanttRemoveDialog: (props: GanttRemoveDialogProps) => React.ReactPortal | null;
@@ -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
- /** @hidden */
6
- export type ControlledStateHook<T> = [T, (value: T, event?: any) => void];
7
- /** @hidden */
8
- export declare const useControlledState: <T extends unknown>(defaultProp: T, prop?: T | undefined, callback?: any) => ControlledStateHook<T>;
@@ -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 * as React from 'react';
6
- /** @hidden */
7
- export declare enum STORE_ACTION {
8
- add = 0,
9
- remove = 1
10
- }
11
- /** @hidden */
12
- export type Store<T> = React.RefObject<{
13
- [id: string]: T;
14
- }>;
15
- /** @hidden */
16
- export interface StoreAction<T> {
17
- type: STORE_ACTION;
18
- itemRef: T;
19
- id: number | string;
20
- }
21
- /** @hidden */
22
- export declare const useDictionaryStore: <T extends unknown>() => [Store<T>, (event: StoreAction<T>) => void];
@@ -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
- import * as React from 'react';
6
- import { GanttTaskHandle } from '../components/GanttTask';
7
- /** @hidden */
8
- export declare const useGanttTask: (dataItem: any, id: number | string, ref: React.Ref<GanttTaskHandle | null>, taskElementRef: React.RefObject<HTMLDivElement>) => void;
@@ -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
- /**
6
- * The direction of the add new task action.
7
- * If set to 'none' the task should be added at the end of the data collection.
8
- * If set to 'above', 'below' or 'child', `selectedTask` option should be provided.
9
- */
10
- export type AddDirection = 'none' | 'above' | 'below' | 'child';
@@ -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
- /**
6
- * Represents the items which the [`data`]({% slug api_gantt_ganttprops %}#toc-data) property accepts.
7
- * The `data` has no strict type. However, to visualize it correctly,
8
- * use it in combination with the [`modelFields`]({% slug api_gantt_ganttprops %}#toc-modelfields) property.
9
- */
10
- export type DataItem = any;
@@ -1,12 +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 { ZonedDate } from '@progress/kendo-date-math';
6
- /** @hidden */
7
- export interface DateRange {
8
- start: Date;
9
- end: Date;
10
- zonedStart: ZonedDate;
11
- zonedEnd: ZonedDate;
12
- }
@@ -1,29 +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 GanttDependencyModelFields.
7
- */
8
- export interface DependencyModelFields {
9
- /**
10
- * The unique identifier of the Gantt dependency. Dependencies, whose id is not set, are considered as "new".
11
- * Defaults to `"id"`.
12
- */
13
- id: string;
14
- /**
15
- * The unique identifier of the from task.
16
- * Defaults to `"fromId"`.
17
- */
18
- fromId: string;
19
- /**
20
- * The unique identifier of the to task.
21
- * Defaults to `"toId"`.
22
- */
23
- toId: string;
24
- /**
25
- * The type of the dependency.
26
- * Defaults to `"type"`.
27
- */
28
- type: string;
29
- }
@@ -1,19 +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 dependency type when two tasks are connected.
7
- *
8
- * The supported values are:
9
- * * `FF`&mdash;from 'finish' to 'finish'
10
- * * `FS`&mdash;from 'finish' to 'start'
11
- * * `SS`&mdash;from 'start' to 'start'
12
- * * `SF`&mdash;from 'start' to 'finish'
13
- */
14
- export declare enum DependencyType {
15
- FF = 0,
16
- FS = 1,
17
- SF = 2,
18
- SS = 3
19
- }
@@ -1,66 +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 { GanttColumnProps } from './GanttColumnProps';
6
- import { GanttNoRecordsProps } from './GanttNoRecordsProps';
7
- import { SortDescriptor, FilterDescriptor, CompositeFilterDescriptor } from '@progress/kendo-data-query';
8
- import { GanttRowProps } from './GanttRowProps';
9
- import { GanttSelectableSettings } from './GanttSelectableSettings';
10
- import { GanttSortSettings } from './GanttSortSettings';
11
- /**
12
- * @hidden
13
- */
14
- export interface GanttBaseProps {
15
- /**
16
- * Represents the component that will be rendered when the `data` property of the Gantt is empty or undefined.
17
- */
18
- noRecords?: React.ReactElement<GanttNoRecordsProps>;
19
- /**
20
- * A collection of `GanttColumnProps` for creating columns.
21
- */
22
- columns?: GanttColumnProps[];
23
- /**
24
- * Specifies the id of the timezone that will be displayed in the Gantt.
25
- * For example, `Europe/Sofia`.
26
- *
27
- * Defaults to `Etc/UTC`.
28
- */
29
- timezone?: string;
30
- /**
31
- * If set to `true`, the user can resize columns by dragging the edges (resize handles) of their header cells.
32
- */
33
- resizable?: boolean;
34
- /**
35
- * Enables sorting ([see example]({% slug sorting_gantt %})).
36
- */
37
- sortable?: GanttSortSettings;
38
- /**
39
- * The descriptors by which the data is sorted. Applies the sorting styles and buttons to the affected columns.
40
- */
41
- sort?: SortDescriptor[];
42
- /**
43
- * The descriptors by which the data is filtered ([more information and examples]({% slug filtering_gantt %})).
44
- * This affects the values and buttons in the `FilterRow` of the Gantt.
45
- */
46
- filter?: FilterDescriptor[];
47
- /**
48
- * If set to `true`, the user can reorder columns by dragging their header cells.
49
- */
50
- reorderable?: boolean;
51
- /**
52
- * If set to `true`, the user can use dedicated shortcuts to interact with the Gantt.
53
- * By default, navigation is disabled and the Gantt content is accessible in the normal tab sequence.
54
- */
55
- navigatable?: boolean;
56
- columnMenuFilter?: CompositeFilterDescriptor[];
57
- columnMenu?: React.ComponentType<any>;
58
- /**
59
- * The Gantt row component.
60
- */
61
- row?: React.ComponentType<GanttRowProps>;
62
- /**
63
- * The Gantt selectable settings.
64
- */
65
- selectable?: GanttSelectableSettings;
66
- }
@@ -1,45 +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 { CellProps } from '@progress/kendo-react-data-tools';
6
- /**
7
- * Represents the props of the GanttCell component.
8
- */
9
- export interface GanttCellProps extends Omit<CellProps, 'onChange' | 'render'> {
10
- /**
11
- * An array of indexes of each parent and current item in the data tree.
12
- */
13
- level: number[];
14
- /**
15
- * Indicates that the data item of the cell has subitems.
16
- */
17
- hasChildren?: boolean;
18
- /**
19
- * If set to `true`, the cell will render indentation based on its level prop and
20
- * the icons that are used for expanding and collapsing child rows.
21
- */
22
- expandable?: boolean;
23
- /**
24
- * The index of the column. Useful for applying `aria-colindex` accessibility attribute.
25
- */
26
- colIndex: number;
27
- /**
28
- * The event that is fired when the expand or collapse icon of the cell is clicked.
29
- */
30
- onExpandChange: (event: React.MouseEvent<HTMLSpanElement>, dataItem: any, level: number[]) => void;
31
- /**
32
- * A function for overriding the default rendering of the cell.
33
- */
34
- render?: (defaultRendering: React.ReactElement<HTMLTableCellElement> | null, props: GanttCellProps) => React.ReactElement<HTMLTableCellElement> | null;
35
- /**
36
- * The event that is fired when the cell value is changed.
37
- */
38
- onChange?: (event: {
39
- dataItem: any;
40
- level: number[];
41
- syntheticEvent: React.SyntheticEvent<any>;
42
- field?: string;
43
- value?: any;
44
- }) => void;
45
- }
@@ -1,40 +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 { ComponentType } from 'react';
6
- import { TreeColumnBaseProps } from '@progress/kendo-react-data-tools';
7
- import { GanttCellProps } from './GanttCellProps';
8
- import { GanttHeaderCellProps } from './GanttHeaderCellProps';
9
- import { GanttFilterCellProps } from './GanttFilterCellProps';
10
- /**
11
- * The props of the columns of the Gantt component.
12
- */
13
- export interface GanttColumnProps extends Omit<TreeColumnBaseProps, 'children' | 'editCell' | 'cell'> {
14
- /**
15
- * Defines the component that will be rendered as a cell. If not set, a `GanttCell` will be rendered by default.
16
- */
17
- cell?: ComponentType<GanttCellProps>;
18
- /**
19
- * @hidden
20
- * Defines the component that will be rendered as an edit cell.
21
- */
22
- editCell?: ComponentType<GanttCellProps>;
23
- /**
24
- * Defines the component that will be rendered as a header cell.
25
- * If not set, a `GanttHeaderCell` will be rendered by default.
26
- */
27
- headerCell?: ComponentType<GanttHeaderCellProps>;
28
- /**
29
- * **Deprecated**. Use `filterCell` prop instead.
30
- */
31
- filter?: ComponentType<GanttFilterCellProps>;
32
- /**
33
- * Defines the component that will be rendered as a filter cell.
34
- */
35
- filterCell?: ComponentType<GanttFilterCellProps>;
36
- /**
37
- * A collection of child columns.
38
- */
39
- children?: GanttColumnProps[];
40
- }
@@ -1,30 +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 { DependencyType } from './DependencyType';
6
- /**
7
- * Represents an instance of a Gantt dependency.
8
- */
9
- export interface GanttDependency {
10
- /**
11
- * The `id` of the origin task of this dependency.
12
- */
13
- fromId: string | number;
14
- /**
15
- * The unique identifier of the dependency.
16
- */
17
- id: string | number;
18
- /**
19
- * @hidden
20
- */
21
- uid?: string | number;
22
- /**
23
- * The `id` of the destination task of this dependency.
24
- */
25
- toId: string | number;
26
- /**
27
- * The type of the dependency.
28
- */
29
- type: DependencyType;
30
- }
@@ -1,29 +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 `GanttDependency` instances.
7
- */
8
- export interface GanttDependencyModelFields {
9
- /**
10
- * The name of the `ID` model field.
11
- * Defaults to `"id"`.
12
- */
13
- id?: string;
14
- /**
15
- * The name of the from task id model field.
16
- * Defaults to `"fromId"`.
17
- */
18
- fromId?: string;
19
- /**
20
- * The name of the to task id model field.
21
- * Defaults to `"toId"`.
22
- */
23
- toId?: string;
24
- /**
25
- * The name of the type model field.
26
- * Defaults to `"type"`.
27
- */
28
- type?: string;
29
- }
@@ -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
- import { FilterCellProps } from '@progress/kendo-react-data-tools';
6
- /**
7
- * @hidden
8
- */
9
- export interface GanttFilterCellProps extends FilterCellProps {
10
- }
@@ -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
- import { FilterOperator } from '@progress/kendo-react-data-tools';
6
- /**
7
- * The filter operator for the Gantt filters.
8
- */
9
- export interface GanttFilterOperator extends FilterOperator {
10
- }
@@ -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
- import { HeaderCellProps } from '@progress/kendo-react-data-tools';
6
- /**
7
- * The props of the GanttHeaderCell component.
8
- */
9
- export interface GanttHeaderCellProps extends HeaderCellProps {
10
- }
@@ -1,13 +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 of the GanttNoRecords component.
7
- */
8
- export interface GanttNoRecordsProps {
9
- /**
10
- * The React elements which will be rendered inside the Gantt when no records are available.
11
- */
12
- children?: React.ReactNode;
13
- }