@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.
- package/Gantt.d.ts +42 -0
- package/GanttNoRecords.d.ts +19 -0
- package/cells/FilterCells/GanttBooleanFilter.d.ts +17 -0
- package/cells/FilterCells/GanttDateFilter.d.ts +17 -0
- package/cells/FilterCells/GanttNumericFilter.d.ts +17 -0
- package/cells/FilterCells/GanttTextFilter.d.ts +17 -0
- package/cells/FilterCells/utils.d.ts +45 -0
- package/cells/FilterCells/utils.mjs +11 -11
- package/components/BaseView.d.ts +27 -0
- package/components/GanttDependency.d.ts +17 -0
- package/components/GanttTask.d.ts +19 -0
- package/components/GanttTreelist.d.ts +146 -0
- package/components/GanttTreelist.mjs +8 -8
- package/components/toolbar/AddButton.d.ts +19 -0
- package/components/toolbar/AddButton.mjs +2 -2
- package/components/toolbar/Toolbar.d.ts +28 -0
- package/components/toolbar/view-selector/ViewSelector.d.ts +31 -0
- package/components/toolbar/view-selector/ViewSelectorItem.d.ts +19 -0
- package/components/toolbar/view-selector/ViewSelectorList.d.ts +10 -0
- package/constants/index.d.ts +60 -0
- package/constants/index.mjs +2 -2
- package/context/GanttContext.d.ts +128 -0
- package/context/GanttViewContext.d.ts +47 -0
- package/dist/cdn/js/kendo-react-gantt.js +1 -1
- package/editors/FormAssingmentsEditor.d.ts +13 -0
- package/editors/FormDateTimePicker.d.ts +13 -0
- package/editors/FormDropDownList.d.ts +13 -0
- package/editors/FormInput.d.ts +13 -0
- package/editors/FormNumericTextBox.d.ts +13 -0
- package/editors/GanttEditor.d.ts +46 -0
- package/editors/GanttEditor.mjs +5 -5
- package/editors/GanttEditorPredecessors.d.ts +53 -0
- package/editors/GanttEditorSuccessors.d.ts +53 -0
- package/editors/GanttForm.d.ts +73 -0
- package/editors/GanttForm.mjs +2 -2
- package/editors/GanttRemoveDialog.d.ts +51 -0
- package/editors/GanttRemoveDialog.mjs +2 -2
- package/hooks/useControlledState.d.ts +11 -0
- package/hooks/useDictionaryStore.d.ts +25 -0
- package/hooks/useGanttTask.d.ts +11 -0
- package/index.d.mts +28 -1607
- package/index.d.ts +28 -1607
- package/interfaces/AddDirection.d.ts +13 -0
- package/interfaces/DataAction.d.ts +32 -0
- package/interfaces/DataItem.d.ts +13 -0
- package/interfaces/DateRange.d.ts +15 -0
- package/interfaces/DependencyModelFields.d.ts +32 -0
- package/interfaces/DependencyType.d.ts +22 -0
- package/interfaces/DragEvent.d.ts +21 -0
- package/interfaces/GanttBaseProps.d.ts +81 -0
- package/interfaces/GanttCellProps.d.ts +48 -0
- package/interfaces/GanttColumnProps.d.ts +43 -0
- package/interfaces/GanttDependency.d.ts +33 -0
- package/interfaces/GanttDependencyModelFields.d.ts +32 -0
- package/interfaces/GanttFilterCellProps.d.ts +13 -0
- package/interfaces/GanttFilterOperator.d.ts +13 -0
- package/interfaces/GanttHeaderCellProps.d.ts +13 -0
- package/interfaces/GanttNoRecordsProps.d.ts +16 -0
- package/interfaces/GanttProps.d.ts +238 -0
- package/interfaces/GanttRowProps.d.ts +98 -0
- package/interfaces/GanttSelectableSettings.d.ts +25 -0
- package/interfaces/GanttSlotType.d.ts +11 -0
- package/interfaces/GanttSortSettings.d.ts +20 -0
- package/interfaces/GanttTaskModelFields.d.ts +67 -0
- package/interfaces/GanttView.d.ts +147 -0
- package/interfaces/GanttViewTimelineHeaderCellProps.d.ts +38 -0
- package/interfaces/Rectangle.d.ts +13 -0
- package/interfaces/Slot.d.ts +19 -0
- package/interfaces/TaskModelFields.d.ts +56 -0
- package/interfaces/events.d.ts +304 -0
- package/messages/index.d.ts +197 -0
- package/package-metadata.d.ts +12 -0
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +10 -16
- package/package.json +14 -14
- package/rows/GanttRow.d.ts +11 -0
- package/utils/data-operations.d.ts +50 -0
- package/utils/data-operations.mjs +1 -1
- package/utils/index.d.ts +185 -0
- package/utils/index.mjs +4 -4
- package/views/GanttDayView.d.ts +24 -0
- package/views/GanttDayView.mjs +5 -5
- package/views/GanttMonthView.d.ts +20 -0
- package/views/GanttWeekView.d.ts +20 -0
- package/views/GanttWeekView.mjs +4 -4
- package/views/GanttYearView.d.ts +20 -0
package/Gantt.d.ts
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
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 { GanttProps } from './interfaces/GanttProps.js';
|
|
9
|
+
import * as React from 'react';
|
|
10
|
+
/**
|
|
11
|
+
* Represents the Object which is passed to the [`ref`](https://react.dev/learn/referencing-values-with-refs#refs-and-the-dom) callback of the Gantt component.
|
|
12
|
+
*/
|
|
13
|
+
export interface GanttHandle {
|
|
14
|
+
/**
|
|
15
|
+
* The current element or `null` if there is no one.
|
|
16
|
+
*/
|
|
17
|
+
element: HTMLDivElement | null;
|
|
18
|
+
/**
|
|
19
|
+
* Method to allow the scroll to be set to a specific row index.
|
|
20
|
+
*/
|
|
21
|
+
scrollIntoView: (options: {
|
|
22
|
+
rowIndex?: number;
|
|
23
|
+
}) => void;
|
|
24
|
+
/**
|
|
25
|
+
* The props of the Gantt.
|
|
26
|
+
*/
|
|
27
|
+
props: GanttProps;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Represents the Gantt component.
|
|
31
|
+
*
|
|
32
|
+
* @remarks
|
|
33
|
+
* Supported children components are: {@link GanttWeekView}, {@link GanttDayView}, {@link GanttMonthView}, {@link GanttYearView}.
|
|
34
|
+
*/
|
|
35
|
+
export declare const Gantt: React.ForwardRefExoticComponent<GanttProps & React.RefAttributes<GanttHandle | null>>;
|
|
36
|
+
/** @hidden */
|
|
37
|
+
export declare const ganttDefaultProps: {
|
|
38
|
+
taskData: never[];
|
|
39
|
+
dependencyData: never[];
|
|
40
|
+
columns: never[];
|
|
41
|
+
rowHeight: number;
|
|
42
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
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 { GanttNoRecordsProps } from './interfaces/GanttNoRecordsProps.js';
|
|
9
|
+
import * as React from 'react';
|
|
10
|
+
/**
|
|
11
|
+
* Represents the GanttNoRecords component.
|
|
12
|
+
* The component is rendered when the `data` property of the Gantt is an empty array or undefined.
|
|
13
|
+
*/
|
|
14
|
+
export declare class GanttNoRecords extends React.Component<GanttNoRecordsProps, {}> {
|
|
15
|
+
/**
|
|
16
|
+
* @hidden
|
|
17
|
+
*/
|
|
18
|
+
render(): any;
|
|
19
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
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 { FilterComponentProps } from '@progress/kendo-react-data-tools';
|
|
9
|
+
import { GanttFilterOperator } from '../../interfaces/GanttFilterOperator.js';
|
|
10
|
+
import * as React from 'react';
|
|
11
|
+
export interface GanttBooleanFilterProps extends FilterComponentProps {
|
|
12
|
+
/**
|
|
13
|
+
* The list of the operators.
|
|
14
|
+
*/
|
|
15
|
+
operators?: GanttFilterOperator[];
|
|
16
|
+
}
|
|
17
|
+
export declare const GanttBooleanFilter: React.FunctionComponent<GanttBooleanFilterProps>;
|
|
@@ -0,0 +1,17 @@
|
|
|
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 { FilterComponentProps } from '@progress/kendo-react-data-tools';
|
|
9
|
+
import { GanttFilterOperator } from '../../interfaces/GanttFilterOperator.js';
|
|
10
|
+
import * as React from 'react';
|
|
11
|
+
export interface GanttDateFilterProps extends FilterComponentProps {
|
|
12
|
+
/**
|
|
13
|
+
* The list of the operators.
|
|
14
|
+
*/
|
|
15
|
+
operators?: GanttFilterOperator[];
|
|
16
|
+
}
|
|
17
|
+
export declare const GanttDateFilter: React.FunctionComponent<GanttDateFilterProps>;
|
|
@@ -0,0 +1,17 @@
|
|
|
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 { FilterComponentProps } from '@progress/kendo-react-data-tools';
|
|
9
|
+
import { GanttFilterOperator } from '../../interfaces/GanttFilterOperator.js';
|
|
10
|
+
import * as React from 'react';
|
|
11
|
+
export interface GanttNumericFilterProps extends FilterComponentProps {
|
|
12
|
+
/**
|
|
13
|
+
* The list of the operators.
|
|
14
|
+
*/
|
|
15
|
+
operators?: GanttFilterOperator[];
|
|
16
|
+
}
|
|
17
|
+
export declare const GanttNumericFilter: React.FunctionComponent<GanttNumericFilterProps>;
|
|
@@ -0,0 +1,17 @@
|
|
|
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 { FilterComponentProps } from '@progress/kendo-react-data-tools';
|
|
9
|
+
import { GanttFilterOperator } from '../../interfaces/GanttFilterOperator.js';
|
|
10
|
+
import * as React from 'react';
|
|
11
|
+
export interface GanttTextFilterProps extends FilterComponentProps {
|
|
12
|
+
/**
|
|
13
|
+
* The list of the operators.
|
|
14
|
+
*/
|
|
15
|
+
operators?: GanttFilterOperator[];
|
|
16
|
+
}
|
|
17
|
+
export declare const GanttTextFilter: React.FunctionComponent<GanttTextFilterProps>;
|
|
@@ -0,0 +1,45 @@
|
|
|
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 { LocalizationService } from '@progress/kendo-react-intl';
|
|
9
|
+
import { GanttFilterOperator } from '../../interfaces/GanttFilterOperator.js';
|
|
10
|
+
/**
|
|
11
|
+
* @hidden
|
|
12
|
+
*/
|
|
13
|
+
export declare const textFilterOperators: GanttFilterOperator[];
|
|
14
|
+
/**
|
|
15
|
+
* @hidden
|
|
16
|
+
*/
|
|
17
|
+
export declare const numericFilterOperators: GanttFilterOperator[];
|
|
18
|
+
/**
|
|
19
|
+
* @hidden
|
|
20
|
+
*/
|
|
21
|
+
export declare const dateFilterOperators: GanttFilterOperator[];
|
|
22
|
+
/**
|
|
23
|
+
* @hidden
|
|
24
|
+
*/
|
|
25
|
+
export declare const booleanOperator: string;
|
|
26
|
+
/**
|
|
27
|
+
* @hidden
|
|
28
|
+
*/
|
|
29
|
+
export declare const booleanFilterValues: ({
|
|
30
|
+
text: string;
|
|
31
|
+
operator: string;
|
|
32
|
+
} | {
|
|
33
|
+
text: string;
|
|
34
|
+
operator: boolean;
|
|
35
|
+
})[];
|
|
36
|
+
/**
|
|
37
|
+
* @hidden
|
|
38
|
+
*/
|
|
39
|
+
export declare function localizeFilter(localization: LocalizationService, operators: GanttFilterOperator[]): {
|
|
40
|
+
clearButtonTitle: string;
|
|
41
|
+
operators: {
|
|
42
|
+
text: string;
|
|
43
|
+
operator: any;
|
|
44
|
+
}[];
|
|
45
|
+
};
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
import {
|
|
8
|
+
import { messages as p, filterClearButton as i, filterContainsOperator as s, filterNotContainsOperator as x, filterEqOperator as e, filterNotEqOperator as r, filterStartsWithOperator as f, filterEndsWithOperator as O, filterIsNullOperator as o, filterIsNotNullOperator as a, filterIsEmptyOperator as u, filterIsNotEmptyOperator as g, filterGteOperator as q, filterGtOperator as c, filterLteOperator as m, filterLtOperator as E, filterBooleanAll as F, filterIsTrue as I, filterIsFalse as N, filterAfterOrEqualOperator as B, filterAfterOperator as d, filterBeforeOperator as h, filterBeforeOrEqualOperator as y } from "../../messages/index.mjs";
|
|
9
9
|
const A = [
|
|
10
10
|
{ text: s, operator: "contains" },
|
|
11
11
|
{ text: x, operator: "doesnotcontain" },
|
|
@@ -29,25 +29,25 @@ const A = [
|
|
|
29
29
|
], S = [
|
|
30
30
|
{ text: e, operator: "eq" },
|
|
31
31
|
{ text: r, operator: "neq" },
|
|
32
|
-
{ text:
|
|
33
|
-
{ text:
|
|
34
|
-
{ text:
|
|
35
|
-
{ text:
|
|
32
|
+
{ text: B, operator: "gte" },
|
|
33
|
+
{ text: d, operator: "gt" },
|
|
34
|
+
{ text: h, operator: "lt" },
|
|
35
|
+
{ text: y, operator: "lte" },
|
|
36
36
|
{ text: o, operator: "isnull" },
|
|
37
37
|
{ text: a, operator: "isnotnull" }
|
|
38
38
|
], w = [
|
|
39
|
-
{ text:
|
|
40
|
-
{ text:
|
|
41
|
-
{ text:
|
|
39
|
+
{ text: F, operator: "" },
|
|
40
|
+
{ text: I, operator: !0 },
|
|
41
|
+
{ text: N, operator: !1 }
|
|
42
42
|
];
|
|
43
43
|
function G(l, n) {
|
|
44
44
|
return {
|
|
45
45
|
clearButtonTitle: l.toLanguageString(
|
|
46
|
-
|
|
47
|
-
i
|
|
46
|
+
i,
|
|
47
|
+
p[i]
|
|
48
48
|
),
|
|
49
49
|
operators: n.map((t) => ({
|
|
50
|
-
text: l.toLanguageString(t.text,
|
|
50
|
+
text: l.toLanguageString(t.text, p[t.text]),
|
|
51
51
|
operator: t.operator
|
|
52
52
|
}))
|
|
53
53
|
};
|
|
@@ -0,0 +1,27 @@
|
|
|
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 { Slot } from '../interfaces/Slot.js';
|
|
9
|
+
import { GanttViewTimelineHeaderCellProps } from '../interfaces/GanttViewTimelineHeaderCellProps.js';
|
|
10
|
+
import * as React from 'react';
|
|
11
|
+
/**
|
|
12
|
+
* @hidden
|
|
13
|
+
*/
|
|
14
|
+
export interface BaseViewProps {
|
|
15
|
+
slotLevels: Slot[][];
|
|
16
|
+
slotWidth: number;
|
|
17
|
+
timelineHeaderCell?: React.ComponentType<GanttViewTimelineHeaderCellProps>;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* @hidden
|
|
21
|
+
*/
|
|
22
|
+
export interface BaseViewHandle {
|
|
23
|
+
scrollIntoView: (options: {
|
|
24
|
+
rowIndex?: number;
|
|
25
|
+
}) => void;
|
|
26
|
+
}
|
|
27
|
+
export declare const BaseView: React.ForwardRefExoticComponent<BaseViewProps & React.RefAttributes<BaseViewHandle | null>>;
|
|
@@ -0,0 +1,17 @@
|
|
|
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 interface GanttDependencyProps {
|
|
11
|
+
dependency: any;
|
|
12
|
+
}
|
|
13
|
+
/** @hidden */
|
|
14
|
+
export declare const GanttDependency: {
|
|
15
|
+
(props: GanttDependencyProps): React.JSX.Element;
|
|
16
|
+
displayName: string;
|
|
17
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
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 { TreeListCellProps } from '@progress/kendo-react-treelist';
|
|
9
|
+
import * as React from 'react';
|
|
10
|
+
/** @hidden */
|
|
11
|
+
export interface GanttTaskProps extends TreeListCellProps {
|
|
12
|
+
}
|
|
13
|
+
/** @hidden */
|
|
14
|
+
export interface GanttTaskHandle {
|
|
15
|
+
element: HTMLDivElement | null;
|
|
16
|
+
dataItem: any;
|
|
17
|
+
}
|
|
18
|
+
/** @hidden */
|
|
19
|
+
export declare const GanttTask: React.ForwardRefExoticComponent<GanttTaskProps & React.RefAttributes<GanttTaskHandle>>;
|
|
@@ -0,0 +1,146 @@
|
|
|
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 { default as PropTypes } from 'prop-types';
|
|
9
|
+
import { CommonDragLogic, ExtendedColumnProps, TableKeyboardNavigationContextType } from '@progress/kendo-react-data-tools';
|
|
10
|
+
import { TreeListProps } from '@progress/kendo-react-treelist';
|
|
11
|
+
import { GanttCellProps } from '../interfaces/GanttCellProps.js';
|
|
12
|
+
import { GanttHeaderCellProps } from '../interfaces/GanttHeaderCellProps.js';
|
|
13
|
+
import { GanttFilterCellProps } from '../interfaces/GanttFilterCellProps.js';
|
|
14
|
+
import * as React from 'react';
|
|
15
|
+
/**
|
|
16
|
+
* @hidden
|
|
17
|
+
*/
|
|
18
|
+
export interface GanttTreeListProps extends TreeListProps {
|
|
19
|
+
extendedColumns: ExtendedColumnProps<GanttCellProps, GanttHeaderCellProps, GanttFilterCellProps>[];
|
|
20
|
+
columnsMap: number[][];
|
|
21
|
+
afterContent: any;
|
|
22
|
+
dataItemKey: string;
|
|
23
|
+
navigatable?: boolean;
|
|
24
|
+
idPrefix: string;
|
|
25
|
+
treelistId: string;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* @hidden
|
|
29
|
+
*/
|
|
30
|
+
export declare class GanttTreeList extends React.Component<GanttTreeListProps, {}> {
|
|
31
|
+
/**
|
|
32
|
+
* @hidden
|
|
33
|
+
*/
|
|
34
|
+
static propTypes: {
|
|
35
|
+
data: PropTypes.Requireable<any[]>;
|
|
36
|
+
resizable: PropTypes.Requireable<boolean>;
|
|
37
|
+
reorderable: PropTypes.Requireable<boolean>;
|
|
38
|
+
sortable: PropTypes.Requireable<NonNullable<boolean | PropTypes.InferProps<{
|
|
39
|
+
mode: PropTypes.Requireable<string>;
|
|
40
|
+
allowUnsort: PropTypes.Requireable<boolean>;
|
|
41
|
+
}> | null | undefined>>;
|
|
42
|
+
onSortChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
43
|
+
sort: PropTypes.Requireable<any[]>;
|
|
44
|
+
columns: PropTypes.Requireable<(object | null | undefined)[]>;
|
|
45
|
+
columnVirtualization: PropTypes.Requireable<boolean>;
|
|
46
|
+
filter: PropTypes.Requireable<any[]>;
|
|
47
|
+
onFilterChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
48
|
+
filterRow: PropTypes.Requireable<any>;
|
|
49
|
+
toolbar: PropTypes.Requireable<any>;
|
|
50
|
+
noRecords: PropTypes.Requireable<any>;
|
|
51
|
+
onExpandChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
52
|
+
expandField: PropTypes.Requireable<string>;
|
|
53
|
+
subItemsField: PropTypes.Requireable<string>;
|
|
54
|
+
selectedField: PropTypes.Requireable<string>;
|
|
55
|
+
onSelectionChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
56
|
+
onHeaderSelectionChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
57
|
+
onRowClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
58
|
+
onItemChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
59
|
+
editField: PropTypes.Requireable<string>;
|
|
60
|
+
scrollable: PropTypes.Requireable<string>;
|
|
61
|
+
rowHeight: PropTypes.Requireable<number>;
|
|
62
|
+
style: PropTypes.Requireable<object>;
|
|
63
|
+
tableProps: PropTypes.Requireable<object>;
|
|
64
|
+
pager: PropTypes.Requireable<any>;
|
|
65
|
+
skip: PropTypes.Requireable<number>;
|
|
66
|
+
take: PropTypes.Requireable<number>;
|
|
67
|
+
onPageChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
68
|
+
onDataStateChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
69
|
+
onColumnResize: PropTypes.Requireable<(...args: any[]) => any>;
|
|
70
|
+
onColumnReorder: PropTypes.Requireable<(...args: any[]) => any>;
|
|
71
|
+
extendedColumns: PropTypes.Requireable<(object | null | undefined)[]>;
|
|
72
|
+
columnsMap: PropTypes.Requireable<(any[] | null | undefined)[]>;
|
|
73
|
+
dataItemKey: PropTypes.Validator<string>;
|
|
74
|
+
afterContent: PropTypes.Requireable<any>;
|
|
75
|
+
navigatable: PropTypes.Requireable<boolean>;
|
|
76
|
+
idPrefix: PropTypes.Requireable<string>;
|
|
77
|
+
treelistId: PropTypes.Requireable<string>;
|
|
78
|
+
};
|
|
79
|
+
/** @hidden */
|
|
80
|
+
static contextType: React.Context<TableKeyboardNavigationContextType | undefined>;
|
|
81
|
+
state: TableKeyboardNavigationContextType;
|
|
82
|
+
tableElement: HTMLTableElement | null;
|
|
83
|
+
tbodyElement: HTMLTableSectionElement | null;
|
|
84
|
+
private wrapperScrollLeft;
|
|
85
|
+
private wrapperScrollTop;
|
|
86
|
+
private updateOnScroll;
|
|
87
|
+
private tbodyOffsetTop;
|
|
88
|
+
private prevData;
|
|
89
|
+
private flattedData;
|
|
90
|
+
private columnResize;
|
|
91
|
+
private element;
|
|
92
|
+
protected dragLogic: CommonDragLogic<GanttCellProps, GanttHeaderCellProps, GanttFilterCellProps>;
|
|
93
|
+
private get document();
|
|
94
|
+
private contextStateRef;
|
|
95
|
+
private navigationStateRef;
|
|
96
|
+
constructor(props: GanttTreeListProps);
|
|
97
|
+
scrollIntoView: (options: {
|
|
98
|
+
rowIndex?: number;
|
|
99
|
+
}) => void;
|
|
100
|
+
/**
|
|
101
|
+
* @hidden
|
|
102
|
+
*/
|
|
103
|
+
componentDidMount(): void;
|
|
104
|
+
/**
|
|
105
|
+
* @hidden
|
|
106
|
+
*/
|
|
107
|
+
getSnapshotBeforeUpdate(): null;
|
|
108
|
+
/**
|
|
109
|
+
* @hidden
|
|
110
|
+
*/
|
|
111
|
+
componentDidUpdate(prevProps: TreeListProps): void;
|
|
112
|
+
/**
|
|
113
|
+
* @hidden
|
|
114
|
+
*/
|
|
115
|
+
componentWillUnmount(): void;
|
|
116
|
+
/**
|
|
117
|
+
* @hidden
|
|
118
|
+
*/
|
|
119
|
+
render(): React.JSX.Element;
|
|
120
|
+
private getColumns;
|
|
121
|
+
private get flatData();
|
|
122
|
+
private onKeyDown;
|
|
123
|
+
private onFocus;
|
|
124
|
+
private onRowDrag;
|
|
125
|
+
private onRowDrop;
|
|
126
|
+
private onColumnReorder;
|
|
127
|
+
private onColumnResize;
|
|
128
|
+
private onScroll;
|
|
129
|
+
private calculateSizes;
|
|
130
|
+
private onItemChange;
|
|
131
|
+
private onSelectionChange;
|
|
132
|
+
private onHeaderSelectionChange;
|
|
133
|
+
private selectionRelease;
|
|
134
|
+
private onSortChange;
|
|
135
|
+
private onFilterChange;
|
|
136
|
+
private onColumnMenuFilterChange;
|
|
137
|
+
private onExpandChange;
|
|
138
|
+
private onRowClick;
|
|
139
|
+
private rowDoubleClick;
|
|
140
|
+
private rowContextMenu;
|
|
141
|
+
private onPageChange;
|
|
142
|
+
private onDataStateChange;
|
|
143
|
+
private getDataState;
|
|
144
|
+
private getEventArguments;
|
|
145
|
+
private getLeafDataItems;
|
|
146
|
+
}
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
import * as l from "react";
|
|
9
9
|
import o from "prop-types";
|
|
10
10
|
import { noop as H, canUseDOM as Y, getter as T, classNames as Z } from "@progress/kendo-react-common";
|
|
11
|
-
import { tableKeyboardNavigation as w, getSelectionOptions as P, CommonDragLogic as _, ColumnResize as ee, TableKeyboardNavigationContext as A, tableKeyboardNavigationTools as K, Header as te,
|
|
11
|
+
import { tableKeyboardNavigation as w, getSelectionOptions as P, CommonDragLogic as _, ColumnResize as ee, TableKeyboardNavigationContext as A, tableKeyboardNavigationTools as K, Header as te, FilterRow as oe, HeaderRow as ne, tableColumnsVirtualization as se, tableKeyboardNavigationScopeAttributes as ae, TableSelection as ie, tableKeyboardNavigationBodyAttributes as le, DropClue as re, DragClue as he } from "@progress/kendo-react-data-tools";
|
|
12
12
|
import { setHeaderRowsTop as ce, tableRowsVirtualization as de, TreeListRow as pe, TreeListNoRecords as ge, TreeListCell as ue } from "@progress/kendo-react-treelist";
|
|
13
13
|
import { isExpanded as O, hasChildren as me } from "../utils/index.mjs";
|
|
14
14
|
const F = class F extends l.Component {
|
|
@@ -315,13 +315,13 @@ const F = class F extends l.Component {
|
|
|
315
315
|
afterContent: r,
|
|
316
316
|
extendedColumns: d = [],
|
|
317
317
|
columnsMap: g
|
|
318
|
-
} = this.props, c = d.some((a) => !!a.filter) || p !== void 0, E = p ||
|
|
318
|
+
} = this.props, c = d.some((a) => !!a.filter) || p !== void 0, E = p || oe, L = K.getIdPrefix(this.navigationStateRef);
|
|
319
319
|
this.columnResize.columns = d, this.columnResize.resizable = t, this.dragLogic.columns = d, this.dragLogic.reorderable = n, this.dragLogic.groupable = !1;
|
|
320
320
|
const C = d.filter((a) => a.children.length === 0), N = /* @__PURE__ */ l.createElement(
|
|
321
321
|
te,
|
|
322
322
|
{
|
|
323
323
|
headerRow: /* @__PURE__ */ l.createElement(
|
|
324
|
-
|
|
324
|
+
ne,
|
|
325
325
|
{
|
|
326
326
|
sort: this.props.sort,
|
|
327
327
|
sortable: this.props.sortable,
|
|
@@ -351,7 +351,7 @@ const F = class F extends l.Component {
|
|
|
351
351
|
) || void 0,
|
|
352
352
|
columnResize: this.columnResize
|
|
353
353
|
}
|
|
354
|
-
), b = this.props.style || {}, { colSpans: x, hiddenColumns: V } =
|
|
354
|
+
), b = this.props.style || {}, { colSpans: x, hiddenColumns: V } = se({
|
|
355
355
|
enabled: this.props.columnVirtualization,
|
|
356
356
|
columns: C,
|
|
357
357
|
scrollLeft: this.wrapperScrollLeft,
|
|
@@ -450,11 +450,11 @@ const F = class F extends l.Component {
|
|
|
450
450
|
"aria-rowcount": M,
|
|
451
451
|
"aria-colcount": C.length,
|
|
452
452
|
role: "treegrid",
|
|
453
|
-
...
|
|
453
|
+
...ae
|
|
454
454
|
},
|
|
455
455
|
this.props.toolbar,
|
|
456
456
|
/* @__PURE__ */ l.createElement(
|
|
457
|
-
|
|
457
|
+
ie,
|
|
458
458
|
{
|
|
459
459
|
selectable: this.props.selectable,
|
|
460
460
|
onRelease: this.selectionRelease,
|
|
@@ -476,7 +476,7 @@ const F = class F extends l.Component {
|
|
|
476
476
|
"tbody",
|
|
477
477
|
{
|
|
478
478
|
className: "k-table-tbody",
|
|
479
|
-
...
|
|
479
|
+
...le,
|
|
480
480
|
ref: (a) => {
|
|
481
481
|
this.tbodyElement = a;
|
|
482
482
|
},
|
|
@@ -496,7 +496,7 @@ const F = class F extends l.Component {
|
|
|
496
496
|
onPageChange: this.onPageChange
|
|
497
497
|
}
|
|
498
498
|
),
|
|
499
|
-
n && /* @__PURE__ */ l.createElement(l.Fragment, null, /* @__PURE__ */ l.createElement(
|
|
499
|
+
n && /* @__PURE__ */ l.createElement(l.Fragment, null, /* @__PURE__ */ l.createElement(re, { ref: this.dragLogic.refDropElementClue }), /* @__PURE__ */ l.createElement(he, { ref: this.dragLogic.refDragElementClue })),
|
|
500
500
|
r
|
|
501
501
|
));
|
|
502
502
|
}
|
|
@@ -0,0 +1,19 @@
|
|
|
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 { AddDirection } from '../../interfaces/AddDirection.js';
|
|
10
|
+
import * as React from 'react';
|
|
11
|
+
/** @hidden */
|
|
12
|
+
export declare const AddButton: React.ForwardRefExoticComponent<{
|
|
13
|
+
selectedTask: DataItem | null;
|
|
14
|
+
onClick: (options: {
|
|
15
|
+
nativeEvent: any;
|
|
16
|
+
syntheticEvent: any;
|
|
17
|
+
direction: AddDirection;
|
|
18
|
+
}) => void;
|
|
19
|
+
} & React.RefAttributes<unknown>>;
|
|
@@ -8,12 +8,12 @@
|
|
|
8
8
|
import * as e from "react";
|
|
9
9
|
import { useLocalization as k } from "@progress/kendo-react-intl";
|
|
10
10
|
import { Button as C, DropDownButton as f } from "@progress/kendo-react-buttons";
|
|
11
|
-
import { messages as g,
|
|
11
|
+
import { messages as g, addChild as v, addAbove as p, addBelow as b, addTask as E } from "../../messages/index.mjs";
|
|
12
12
|
import { IconWrap as w } from "@progress/kendo-react-common";
|
|
13
13
|
import { plusIcon as B } from "@progress/kendo-svg-icons";
|
|
14
14
|
const h = e.forwardRef(
|
|
15
15
|
(o, M) => {
|
|
16
|
-
const a = k(), n = (t) => a.toLanguageString(t, g[t]), l = n(
|
|
16
|
+
const a = k(), n = (t) => a.toLanguageString(t, g[t]), l = n(E), c = n(v), d = n(p), s = n(b), r = e.useCallback(
|
|
17
17
|
(t) => {
|
|
18
18
|
t.syntheticEvent.preventDefault();
|
|
19
19
|
const u = t.item && t.item.direction ? t.item.direction : "none";
|
|
@@ -0,0 +1,28 @@
|
|
|
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 { ToolbarProps as KendoToolbarProps } from '@progress/kendo-react-buttons';
|
|
9
|
+
import * as React from 'react';
|
|
10
|
+
/** @hidden */
|
|
11
|
+
export interface ToolbarProps extends KendoToolbarProps {
|
|
12
|
+
children?: React.ReactNode;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Represents the object which is returned from the `ref` callback of the [GanttToolbar](https://www.telerik.com/kendo-react-ui/components/gantt/api/gantttoolbar).
|
|
16
|
+
*
|
|
17
|
+
* For more information about Refs, refer to the [React Refs & Dom](https://react.dev/learn/referencing-values-with-refs#refs-and-the-dom) article.
|
|
18
|
+
*/
|
|
19
|
+
/** @hidden */
|
|
20
|
+
export interface GanttToolbarHandle {
|
|
21
|
+
element: HTMLDivElement | null;
|
|
22
|
+
props: ToolbarProps;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Represents the default `toolbar` component rendered by the [KendoReact Gantt component](https://www.telerik.com/kendo-react-ui/components/gantt).
|
|
26
|
+
*/
|
|
27
|
+
/** @hidden */
|
|
28
|
+
export declare const Toolbar: React.ForwardRefExoticComponent<ToolbarProps & React.RefAttributes<GanttToolbarHandle>>;
|
|
@@ -0,0 +1,31 @@
|
|
|
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 { ToolbarItemProps } from '@progress/kendo-react-buttons';
|
|
9
|
+
import * as React from 'react';
|
|
10
|
+
/**
|
|
11
|
+
* Represents the props of the KendoReact [GanttViewSelector](https://www.telerik.com/kendo-react-ui/components/gantt/api/ganttviewselector) component.
|
|
12
|
+
*/
|
|
13
|
+
/** @hidden */
|
|
14
|
+
export interface ViewSelectorProps extends ToolbarItemProps {
|
|
15
|
+
children?: React.ReactNode;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Represents the object which is returned from the `ref` callback of the [GanttViewSelector](https://www.telerik.com/kendo-react-ui/components/gantt/api/ganttviewselector).
|
|
19
|
+
*
|
|
20
|
+
* For more information about Refs, refer to the [React Refs & Dom](https://react.dev/learn/referencing-values-with-refs#refs-and-the-dom) article.
|
|
21
|
+
*/
|
|
22
|
+
/** @hidden */
|
|
23
|
+
export interface ViewSelectorHandle {
|
|
24
|
+
element: HTMLSpanElement | null;
|
|
25
|
+
props: ViewSelectorProps;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Represents the default `viewSelector` component rendered by the [KendoReact Gantt component](https://www.telerik.com/kendo-react-ui/components/gantt).
|
|
29
|
+
*/
|
|
30
|
+
/** @hidden */
|
|
31
|
+
export declare const ViewSelector: React.ForwardRefExoticComponent<ViewSelectorProps & React.RefAttributes<ViewSelectorHandle>>;
|
|
@@ -0,0 +1,19 @@
|
|
|
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 { ButtonProps } from '@progress/kendo-react-buttons';
|
|
9
|
+
import { GanttViewProps } from '../../../interfaces/GanttView.js';
|
|
10
|
+
import * as React from 'react';
|
|
11
|
+
/** @hidden */
|
|
12
|
+
export interface ViewSelectorItemProps extends ButtonProps {
|
|
13
|
+
view: GanttViewProps;
|
|
14
|
+
}
|
|
15
|
+
/** @hidden */
|
|
16
|
+
export declare const ViewSelectorItem: {
|
|
17
|
+
(props: ViewSelectorItemProps): React.JSX.Element;
|
|
18
|
+
displayName: string;
|
|
19
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
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 const ViewSelectorList: React.ForwardRefExoticComponent<React.RefAttributes<unknown>>;
|