@progress/kendo-react-gantt 7.2.4-develop.3 → 7.3.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 (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
package/utils/index.d.ts DELETED
@@ -1,182 +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 { TaskModelFields } from '../interfaces/TaskModelFields';
7
- import { DependencyModelFields } from '../interfaces/DependencyModelFields';
8
- import { Day } from '@progress/kendo-date-math';
9
- import { DateRange } from '../interfaces/DateRange';
10
- import { Slot } from '../interfaces/Slot';
11
- import { IntlService } from '@progress/kendo-react-intl';
12
- import { filterBy as filterByCommon, orderBy as orderByCommon } from '@progress/kendo-react-data-tools';
13
- import { GanttTaskModelFields } from '../interfaces/GanttTaskModelFields';
14
- import { GanttDependencyModelFields } from '../interfaces/GanttDependencyModelFields';
15
- import { Rectangle } from '../interfaces/Rectangle';
16
- import { GanttViewTimelineHeaderCellProps } from '../interfaces/GanttViewTimelineHeaderCellProps';
17
- /**
18
- * Orders the specified tree according to the provided sort descriptors.
19
- *
20
- * @param {T[]} data - The data that will be sorted.
21
- * @param {SortDescriptor[]} descriptors - The descriptors by which the data will be sorted.
22
- * @param {string} subItemsField - The field which points to the subitems collection of each data item.
23
- * @returns {T[]} - The sorted data.
24
- */
25
- export declare const orderBy: typeof orderByCommon;
26
- /**
27
- * Filters the provided data tree according to the specified `Array<FilterDescriptor|CompositeFilterDescriptor>`.
28
- *
29
- * @param {T[]} data - The data that will be filtered.
30
- * @param {FilterDescriptor[]|CompositeFilterDescriptor[]} descriptors - The filter criteria that will be applied.
31
- * @param {string} subItemsField - The field which points to the subitems collection of each data item.
32
- * @returns {T[]} - The filtered data.
33
- */
34
- export declare const filterBy: typeof filterByCommon;
35
- /**
36
- * Creates a new array with the results of calling the provided callback function
37
- * on every element in the provided data tree.
38
- *
39
- * @param {any[]} tree - The data tree.
40
- * @param {string} subItemsField - The field which points to the subitems collection of each data item.
41
- * @param {(value: any) => any} callback - The callback function.
42
- * @returns {any[]} - The new data tree.
43
- */
44
- export declare const mapTree: (tree: any[], subItemsField: string, callback: (value: any) => any) => any[];
45
- /**
46
- * Similar to the `Object.assign` function. Additionally, creates a new array for the subitems.
47
- *
48
- * @param {object} item - The source data item.
49
- * @param {string} subItemsField - The field which points to the subitems collection of each data item.
50
- * @param {object} propsToExtend - The props with which the source data item will be extended.
51
- * @returns {object} - The target data item.
52
- */
53
- export declare const extendDataItem: (item: any, subItemsField: string, propsToExtend?: any) => any;
54
- /**
55
- * Creates a tree from the passed dataset.
56
- *
57
- * @param {object[]} dataset - The source dataset of data items.
58
- * @param {(item: object) => any} getId - A function which will return the id of the data item.
59
- * @param {(item: object) => any} getParentId - A function which will return the data item id of its parent data item.
60
- * @param {string} subItemsField - The field which points to the subitems collection of each data item.
61
- * @returns {object[]} - A collection of the generated data items that are structured in a tree.
62
- */
63
- export declare const createDataTree: (dataset: any[], getId: (item: any) => any, getParentId: (item: any) => any, subItemsField: string) => any[];
64
- /** @hidden */
65
- export declare const getTaskModelFields: (taskModelFields: GanttTaskModelFields | undefined) => {
66
- fields: TaskModelFields;
67
- };
68
- /** @hidden */
69
- export declare const getDependencyModelFields: (dependencyModelFields: GanttDependencyModelFields | undefined) => {
70
- fields: DependencyModelFields;
71
- };
72
- /** @hidden */
73
- export declare const getStartDate: (date: any) => Date;
74
- /** @hidden */
75
- export declare const getEndDate: (date: any, numberOfDays?: any) => Date;
76
- /** @hidden */
77
- export declare const isInRange: (slotStart: Date, slotEnd: Date, taskStart: Date, taskEnd: Date) => boolean;
78
- /** @hidden */
79
- export declare function toUTCDateTime(localDate: Date): Date;
80
- /** @hidden */
81
- export declare const ARROW_SIZE = 4;
82
- /** @hidden */
83
- export declare const MIN_LINE_WIDTH = 10;
84
- /** @hidden */
85
- export declare const dependencyCoordinates: (from: Rectangle, to: Rectangle, rowHeight: number, type: number) => {
86
- left: number;
87
- top: number;
88
- }[];
89
- /** @hidden */
90
- export declare const addArrow: (top: any, left: any, points: any, isArrowWest: any) => void;
91
- /** @hidden */
92
- export declare const addArrowWest: (top: any, left: any, points: any) => void;
93
- /** @hidden */
94
- export declare const addArrowEast: (top: any, left: any, points: any) => void;
95
- /**
96
- * @hidden
97
- */
98
- export declare const getWorkDays: (options: {
99
- workWeekStart?: Day;
100
- workWeekEnd?: Day;
101
- }) => number[];
102
- /**
103
- * @hidden
104
- */
105
- export declare const isWorkDay: (date: any, workDays: any) => boolean;
106
- /**
107
- * @hidden
108
- */
109
- export declare const toRanges: (dateRange: DateRange, { step, timezone }: {
110
- step: any;
111
- timezone: any;
112
- }) => DateRange[];
113
- /**
114
- * @hidden
115
- */
116
- export declare const toWeekRanges: (dateRange: DateRange, { timezone }: any, intl: any) => DateRange[];
117
- /**
118
- * @hidden
119
- */
120
- export declare const toMonthRanges: (dateRange: DateRange, { timezone }: any) => DateRange[];
121
- /**
122
- * @hidden
123
- */
124
- export declare const toYearRanges: (dateRange: DateRange, { timezone }: any) => DateRange[];
125
- /**
126
- * @hidden
127
- */
128
- export declare const getHourSlots: (range: DateRange, options: {
129
- workDayEnd: string;
130
- workDayStart: string;
131
- slotDuration: number;
132
- timezone?: string;
133
- }, intl: any) => Slot[];
134
- /**
135
- * @hidden
136
- */
137
- export declare const getDaySlots: (range: DateRange, options: {
138
- workDays: number[];
139
- timezone?: string;
140
- }, intl: IntlService) => Slot[];
141
- /**
142
- * @hidden
143
- */
144
- export declare const getWeekSlots: (range: DateRange, options: {
145
- timezone?: string;
146
- }, intl: IntlService) => Slot[];
147
- /**
148
- * @hidden
149
- */
150
- export declare const getMonthSlots: (range: DateRange, options: {
151
- timezone?: string;
152
- }, intl: IntlService) => Slot[];
153
- /**
154
- * @hidden
155
- */
156
- export declare const getYearSlots: (range: DateRange, options: {
157
- timezone?: string;
158
- }, intl: IntlService) => Slot[];
159
- /**
160
- * @hidden
161
- */
162
- export declare const getTimelineHeader: (slotLevels: Slot[][], ref: React.MutableRefObject<HTMLTableElement | null>, timelineHeaderCell?: React.ComponentType<GanttViewTimelineHeaderCellProps>) => import("react/jsx-runtime").JSX.Element;
163
- /**
164
- * @hidden
165
- */
166
- export declare const getTimelineContent: (slotLevels: Slot[][], ref: React.MutableRefObject<HTMLTableElement | null>) => import("react/jsx-runtime").JSX.Element;
167
- /**
168
- * @hidden
169
- */
170
- export declare const getTimelineWidth: (slotLevels: Slot[][], slotWidth: number) => number;
171
- /**
172
- * @hidden
173
- */
174
- export declare const isExpanded: (dataItem: any, expandedField: string) => boolean;
175
- /**
176
- * @hidden
177
- */
178
- export declare const hasChildren: (dataItem: any, childrenField: string) => boolean;
179
- /**
180
- * @hidden
181
- */
182
- export declare const expandedChildren: (expandedField: string, childrenField: string) => (dataItem: any) => any[];
@@ -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 * as React from 'react';
6
- import { GanttViewHandle, GanttViewProps } from '../interfaces/GanttView';
7
- /**
8
- * @hidden
9
- */
10
- export interface GanttDayViewProps extends GanttViewProps {
11
- /**
12
- * The span of an hour slot. Defaults to 1.
13
- */
14
- slotDuration?: number;
15
- }
16
- /**
17
- * Represents the KendoReact DayView Component.
18
- */
19
- export declare const GanttDayView: React.ForwardRefExoticComponent<GanttDayViewProps & React.RefAttributes<GanttViewHandle | null>>;
20
- /** @hidden */
21
- export declare const defaultProps: GanttDayViewProps;
@@ -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 * as React from 'react';
6
- import { GanttViewHandle, GanttViewProps } from '../interfaces/GanttView';
7
- /**
8
- * @hidden
9
- */
10
- export interface GanttMonthViewProps extends GanttViewProps {
11
- }
12
- /**
13
- * Represents the KendoReact MonthView Component.
14
- */
15
- export declare const GanttMonthView: React.ForwardRefExoticComponent<GanttMonthViewProps & React.RefAttributes<GanttViewHandle | null>>;
16
- /** @hidden */
17
- export declare const defaultProps: GanttMonthViewProps;
@@ -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 * as React from 'react';
6
- import { GanttViewHandle, GanttViewProps } from '../interfaces/GanttView';
7
- /**
8
- * @hidden
9
- */
10
- export interface GanttWeekViewProps extends GanttViewProps {
11
- }
12
- /**
13
- * Represents the KendoReact WeekView Component.
14
- */
15
- export declare const GanttWeekView: React.ForwardRefExoticComponent<GanttWeekViewProps & React.RefAttributes<GanttViewHandle | null>>;
16
- /** @hidden */
17
- export declare const defaultProps: GanttWeekViewProps;
@@ -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 * as React from 'react';
6
- import { GanttViewHandle, GanttViewProps } from '../interfaces/GanttView';
7
- /**
8
- * @hidden
9
- */
10
- export interface GanttYearViewProps extends GanttViewProps {
11
- }
12
- /**
13
- * Represents the KendoReact YearView Component.
14
- */
15
- export declare const GanttYearView: React.ForwardRefExoticComponent<GanttYearViewProps & React.RefAttributes<GanttViewHandle | null>>;
16
- /** @hidden */
17
- export declare const defaultProps: GanttYearViewProps;