@progress/kendo-react-gantt 5.4.0-dev.202205200719 → 5.4.0-dev.202206061009
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/dist/cdn/js/kendo-react-gantt.js +1 -1
- package/dist/es/Gantt.d.ts +1 -1
- package/dist/es/Gantt.js +18 -18
- package/dist/es/GanttNoRecords.js +3 -1
- package/dist/es/cells/FilterCells/GanttBooleanFilter.js +4 -2
- package/dist/es/cells/FilterCells/GanttDateFilter.js +4 -2
- package/dist/es/cells/FilterCells/GanttNumericFilter.js +4 -2
- package/dist/es/cells/FilterCells/GanttTextFilter.js +4 -2
- package/dist/es/components/BaseView.d.ts +1 -1
- package/dist/es/components/BaseView.js +15 -6
- package/dist/es/components/GanttDependency.js +1 -1
- package/dist/es/components/GanttTask.js +4 -4
- package/dist/es/components/GanttTreelist.d.ts +13 -10
- package/dist/es/components/GanttTreelist.js +43 -25
- package/dist/es/components/toolbar/AddButton.d.ts +3 -2
- package/dist/es/components/toolbar/Toolbar.js +4 -2
- package/dist/es/components/toolbar/view-selector/ViewSelector.js +4 -2
- package/dist/es/components/toolbar/view-selector/ViewSelectorList.d.ts +1 -1
- package/dist/es/components/toolbar/view-selector/ViewSelectorList.js +1 -1
- package/dist/es/constants/index.d.ts +2 -2
- package/dist/es/context/GanttContext.d.ts +14 -14
- package/dist/es/context/GanttViewContext.d.ts +3 -7
- package/dist/es/editors/FormAssingmentsEditor.js +2 -2
- package/dist/es/editors/FormDateTimePicker.js +8 -6
- package/dist/es/editors/FormInput.js +7 -5
- package/dist/es/editors/FormNumericTextBox.js +7 -5
- package/dist/es/editors/GanttEditor.js +4 -4
- package/dist/es/editors/GanttForm.d.ts +1 -1
- package/dist/es/editors/GanttForm.js +12 -7
- package/dist/es/editors/GanttRemoveDialog.d.ts +1 -1
- package/dist/es/hooks/useControlledState.d.ts +1 -1
- package/dist/es/hooks/useControlledState.js +1 -1
- package/dist/es/hooks/useDictionaryStore.d.ts +1 -3
- package/dist/es/hooks/useGanttTask.d.ts +1 -1
- package/dist/es/interfaces/AddDirection.js +1 -0
- package/dist/es/interfaces/DataItem.js +1 -0
- package/dist/es/interfaces/DateRange.js +1 -0
- package/dist/es/interfaces/DependencyModelFields.js +1 -0
- package/dist/es/interfaces/DragEvent.js +1 -0
- package/dist/es/interfaces/GanttBaseProps.js +1 -0
- package/dist/es/interfaces/GanttCellProps.d.ts +1 -1
- package/dist/es/interfaces/GanttCellProps.js +1 -0
- package/dist/es/interfaces/GanttColumnProps.d.ts +1 -1
- package/dist/es/interfaces/GanttColumnProps.js +1 -0
- package/dist/es/interfaces/GanttDependencyModelFields.js +1 -0
- package/dist/es/interfaces/GanttFilterCellProps.js +1 -0
- package/dist/es/interfaces/GanttFilterOperator.js +1 -0
- package/dist/es/interfaces/GanttHeaderCellProps.js +1 -0
- package/dist/es/interfaces/GanttNoRecordsProps.js +1 -0
- package/dist/es/interfaces/GanttProps.js +1 -0
- package/dist/es/interfaces/GanttRowProps.js +1 -0
- package/dist/es/interfaces/GanttSelectableSettings.js +1 -0
- package/dist/es/interfaces/GanttSlotType.js +1 -0
- package/dist/es/interfaces/GanttSortSettings.d.ts +1 -11
- package/dist/es/interfaces/GanttSortSettings.js +10 -1
- package/dist/es/interfaces/GanttTaskModelFields.js +1 -0
- package/dist/es/interfaces/GanttView.js +1 -0
- package/dist/es/interfaces/GanttViewTimelineHeaderCellProps.js +1 -0
- package/dist/es/interfaces/Rectangle.js +1 -0
- package/dist/es/interfaces/Slot.js +1 -0
- package/dist/es/interfaces/TaskModelFields.js +1 -0
- package/dist/es/interfaces/events.js +1 -0
- package/dist/es/messages/index.d.ts +44 -44
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/utils/data-operations.d.ts +14 -13
- package/dist/es/utils/index.d.ts +5 -5
- package/dist/es/utils/index.js +13 -4
- package/dist/es/views/GanttDayView.d.ts +1 -1
- package/dist/es/views/GanttMonthView.d.ts +1 -1
- package/dist/es/views/GanttWeekView.d.ts +1 -1
- package/dist/es/views/GanttYearView.d.ts +1 -1
- package/dist/npm/Gantt.d.ts +1 -1
- package/dist/npm/Gantt.js +31 -30
- package/dist/npm/GanttNoRecords.js +6 -3
- package/dist/npm/cells/FilterCells/GanttBooleanFilter.js +8 -4
- package/dist/npm/cells/FilterCells/GanttDateFilter.js +8 -4
- package/dist/npm/cells/FilterCells/GanttNumericFilter.js +8 -4
- package/dist/npm/cells/FilterCells/GanttTextFilter.js +8 -4
- package/dist/npm/cells/FilterCells/utils.js +1 -0
- package/dist/npm/components/BaseView.d.ts +1 -1
- package/dist/npm/components/BaseView.js +31 -21
- package/dist/npm/components/GanttDependency.js +11 -9
- package/dist/npm/components/GanttTask.js +23 -22
- package/dist/npm/components/GanttTreelist.d.ts +13 -10
- package/dist/npm/components/GanttTreelist.js +56 -37
- package/dist/npm/components/toolbar/AddButton.d.ts +3 -2
- package/dist/npm/components/toolbar/AddButton.js +2 -1
- package/dist/npm/components/toolbar/Toolbar.js +6 -3
- package/dist/npm/components/toolbar/view-selector/ViewSelector.js +6 -3
- package/dist/npm/components/toolbar/view-selector/ViewSelectorItem.js +5 -3
- package/dist/npm/components/toolbar/view-selector/ViewSelectorList.d.ts +1 -1
- package/dist/npm/components/toolbar/view-selector/ViewSelectorList.js +5 -4
- package/dist/npm/constants/index.d.ts +2 -2
- package/dist/npm/constants/index.js +5 -4
- package/dist/npm/context/GanttContext.d.ts +14 -14
- package/dist/npm/context/GanttContext.js +27 -13
- package/dist/npm/context/GanttViewContext.d.ts +3 -7
- package/dist/npm/context/GanttViewContext.js +9 -4
- package/dist/npm/editors/FormAssingmentsEditor.js +5 -3
- package/dist/npm/editors/FormDateTimePicker.js +11 -7
- package/dist/npm/editors/FormInput.js +10 -6
- package/dist/npm/editors/FormNumericTextBox.js +10 -6
- package/dist/npm/editors/GanttEditor.js +9 -7
- package/dist/npm/editors/GanttForm.d.ts +1 -1
- package/dist/npm/editors/GanttForm.js +16 -9
- package/dist/npm/editors/GanttRemoveDialog.d.ts +1 -1
- package/dist/npm/editors/GanttRemoveDialog.js +4 -2
- package/dist/npm/hooks/useControlledState.d.ts +1 -1
- package/dist/npm/hooks/useControlledState.js +4 -2
- package/dist/npm/hooks/useDictionaryStore.d.ts +1 -3
- package/dist/npm/hooks/useDictionaryStore.js +3 -1
- package/dist/npm/hooks/useGanttTask.d.ts +1 -1
- package/dist/npm/hooks/useGanttTask.js +4 -2
- package/dist/npm/interfaces/DataAction.js +1 -0
- package/dist/npm/interfaces/GanttCellProps.d.ts +1 -1
- package/dist/npm/interfaces/GanttColumnProps.d.ts +1 -1
- package/dist/npm/interfaces/GanttSortSettings.d.ts +1 -11
- package/dist/npm/interfaces/GanttSortSettings.js +13 -2
- package/dist/npm/main.js +28 -27
- package/dist/npm/messages/index.d.ts +44 -44
- package/dist/npm/messages/index.js +2 -1
- package/dist/npm/package-metadata.js +2 -1
- package/dist/npm/rows/GanttRow.js +1 -0
- package/dist/npm/utils/data-operations.d.ts +14 -13
- package/dist/npm/utils/data-operations.js +43 -38
- package/dist/npm/utils/index.d.ts +5 -5
- package/dist/npm/utils/index.js +81 -45
- package/dist/npm/views/GanttDayView.d.ts +1 -1
- package/dist/npm/views/GanttDayView.js +11 -10
- package/dist/npm/views/GanttMonthView.d.ts +1 -1
- package/dist/npm/views/GanttMonthView.js +10 -9
- package/dist/npm/views/GanttWeekView.d.ts +1 -1
- package/dist/npm/views/GanttWeekView.js +11 -10
- package/dist/npm/views/GanttYearView.d.ts +1 -1
- package/dist/npm/views/GanttYearView.js +10 -9
- package/dist/systemjs/kendo-react-gantt.js +1 -1
- package/package.json +12 -12
|
@@ -35,11 +35,11 @@ export declare const DRAG_DIRECTION_START = "start";
|
|
|
35
35
|
export declare const DRAG_DIRECTION_FINISH = "finish";
|
|
36
36
|
/** @hidden */
|
|
37
37
|
export declare const DEPENDENCY_DRAG_HANDLE_START_ATT: {
|
|
38
|
-
|
|
38
|
+
"data-dependency-drag-handle": string;
|
|
39
39
|
};
|
|
40
40
|
/** @hidden */
|
|
41
41
|
export declare const DEPENDENCY_DRAG_HANDLE_FINISH_ATT: {
|
|
42
|
-
|
|
42
|
+
"data-dependency-drag-handle": string;
|
|
43
43
|
};
|
|
44
44
|
/** @hidden */
|
|
45
45
|
export declare const TASK_ID_ATT = "data-task-id";
|
|
@@ -9,63 +9,63 @@ import { GanttDependencyCreateEvent, GanttTaskClickEvent, GanttTaskContextMenuEv
|
|
|
9
9
|
/** @hidden */
|
|
10
10
|
export declare type GanttTaskDataContextType = any[];
|
|
11
11
|
/** @hidden */
|
|
12
|
-
export declare const GanttTaskDataContext: React.Context<
|
|
12
|
+
export declare const GanttTaskDataContext: React.Context<GanttTaskDataContextType>;
|
|
13
13
|
/** @hidden */
|
|
14
|
-
export declare const useGanttTaskDataContext: () =>
|
|
14
|
+
export declare const useGanttTaskDataContext: () => GanttTaskDataContextType;
|
|
15
15
|
/** @hidden */
|
|
16
16
|
export declare type GanttDependencyDataContextType = any[];
|
|
17
17
|
/** @hidden */
|
|
18
|
-
export declare const GanttDependencyDataContext: React.Context<
|
|
18
|
+
export declare const GanttDependencyDataContext: React.Context<GanttDependencyDataContextType>;
|
|
19
19
|
/** @hidden */
|
|
20
|
-
export declare const useGanttDependencyDataContext: () =>
|
|
20
|
+
export declare const useGanttDependencyDataContext: () => GanttDependencyDataContextType;
|
|
21
21
|
/** @hidden */
|
|
22
22
|
export declare type GanttTaskModelFieldsContextType = TaskModelFields;
|
|
23
23
|
/** @hidden */
|
|
24
24
|
export declare const GanttTaskModelFieldsContext: React.Context<TaskModelFields>;
|
|
25
25
|
/** @hidden */
|
|
26
|
-
export declare const useGanttTaskModelFieldsContext: () =>
|
|
26
|
+
export declare const useGanttTaskModelFieldsContext: () => GanttTaskModelFieldsContextType;
|
|
27
27
|
/** @hidden */
|
|
28
28
|
export declare type GanttDependencyModelFieldsContextType = DependencyModelFields;
|
|
29
29
|
/** @hidden */
|
|
30
30
|
export declare const GanttDependencyModelFieldsContext: React.Context<DependencyModelFields>;
|
|
31
31
|
/** @hidden */
|
|
32
|
-
export declare const useGanttDependencyModelFieldsContext: () =>
|
|
32
|
+
export declare const useGanttDependencyModelFieldsContext: () => GanttDependencyModelFieldsContextType;
|
|
33
33
|
/** @hidden */
|
|
34
34
|
export declare type GanttPropsContextType = GanttBaseProps;
|
|
35
35
|
/** @hidden */
|
|
36
36
|
export declare const GanttPropsContext: React.Context<GanttBaseProps>;
|
|
37
37
|
/** @hidden */
|
|
38
|
-
export declare const useGanttPropsContext: () =>
|
|
38
|
+
export declare const useGanttPropsContext: () => GanttPropsContextType;
|
|
39
39
|
/** @hidden */
|
|
40
40
|
export declare type GanttDateRangeContextType = DateRange;
|
|
41
41
|
/** @hidden */
|
|
42
42
|
export declare const GanttDateRangeContext: React.Context<DateRange>;
|
|
43
43
|
/** @hidden */
|
|
44
|
-
export declare const useGanttDateRangeContext: () =>
|
|
44
|
+
export declare const useGanttDateRangeContext: () => GanttDateRangeContextType;
|
|
45
45
|
/** @hidden */
|
|
46
46
|
export declare type GanttViewsContextType = GanttView[];
|
|
47
47
|
/** @hidden */
|
|
48
|
-
export declare const GanttViewsContext: React.Context<
|
|
48
|
+
export declare const GanttViewsContext: React.Context<GanttViewsContextType>;
|
|
49
49
|
/** @hidden */
|
|
50
|
-
export declare const useGanttViewsContext: () =>
|
|
50
|
+
export declare const useGanttViewsContext: () => GanttViewsContextType;
|
|
51
51
|
/** @hidden */
|
|
52
52
|
export declare type GanttActiveViewContextType = [string, (activeView: string, event?: any) => void];
|
|
53
53
|
/** @hidden */
|
|
54
|
-
export declare const GanttActiveViewContext: React.Context<
|
|
54
|
+
export declare const GanttActiveViewContext: React.Context<GanttActiveViewContextType>;
|
|
55
55
|
/** @hidden */
|
|
56
|
-
export declare const useGanttActiveViewContext: () =>
|
|
56
|
+
export declare const useGanttActiveViewContext: () => GanttActiveViewContextType;
|
|
57
57
|
/** @hidden */
|
|
58
58
|
export declare type GanttRowHeightContextType = number;
|
|
59
59
|
/** @hidden */
|
|
60
60
|
export declare const GanttRowHeightContext: React.Context<number>;
|
|
61
61
|
/** @hidden */
|
|
62
|
-
export declare const useGanttRowHeightContext: () =>
|
|
62
|
+
export declare const useGanttRowHeightContext: () => GanttRowHeightContextType;
|
|
63
63
|
/** @hidden */
|
|
64
64
|
export declare type GanttToolbarHeightContextType = number;
|
|
65
65
|
/** @hidden */
|
|
66
66
|
export declare const GanttToolbarHeightContext: React.Context<number>;
|
|
67
67
|
/** @hidden */
|
|
68
|
-
export declare const useGanttToolbarHeightContext: () =>
|
|
68
|
+
export declare const useGanttToolbarHeightContext: () => GanttToolbarHeightContextType;
|
|
69
69
|
/** @hidden */
|
|
70
70
|
export declare type GanttEventsContextType = {
|
|
71
71
|
onDataStateChange: (args: TreeListDataStateChangeEvent) => void;
|
|
@@ -5,19 +5,15 @@ import { GanttTaskHandle } from '../components/GanttTask';
|
|
|
5
5
|
/** @hidden */
|
|
6
6
|
export declare type GanttViewTasksContextType = [Store<GanttTaskHandle>, (event: StoreAction<GanttTaskHandle>) => void];
|
|
7
7
|
/** @hidden */
|
|
8
|
-
export declare const GanttViewTasksContext: React.Context<
|
|
9
|
-
[id: string]: GanttTaskHandle;
|
|
10
|
-
}>, (event: StoreAction<GanttTaskHandle>) => void]>;
|
|
8
|
+
export declare const GanttViewTasksContext: React.Context<GanttViewTasksContextType>;
|
|
11
9
|
/** @hidden */
|
|
12
|
-
export declare const useGanttViewTasksContext: () =>
|
|
13
|
-
[id: string]: GanttTaskHandle;
|
|
14
|
-
}>, (event: StoreAction<GanttTaskHandle>) => void];
|
|
10
|
+
export declare const useGanttViewTasksContext: () => GanttViewTasksContextType;
|
|
15
11
|
/** @hidden */
|
|
16
12
|
export declare type GanttViewTimelineWidthContextType = number;
|
|
17
13
|
/** @hidden */
|
|
18
14
|
export declare const GanttViewTimelineWidthContext: React.Context<number>;
|
|
19
15
|
/** @hidden */
|
|
20
|
-
export declare const useGanttViewTimelineWidthContext: () =>
|
|
16
|
+
export declare const useGanttViewTimelineWidthContext: () => GanttViewTimelineWidthContextType;
|
|
21
17
|
/** @hidden */
|
|
22
18
|
export declare type GanttViewDependencyDragContextType = {
|
|
23
19
|
onDependencyHandlePress: (event: NormalizedDragEvent) => void;
|
|
@@ -8,8 +8,8 @@ export var FormAssignemntsEditor = function (fieldRenderProps) {
|
|
|
8
8
|
var validationMessage = fieldRenderProps.validationMessage, touched = fieldRenderProps.touched, label = fieldRenderProps.label, id = fieldRenderProps.id, valid = fieldRenderProps.valid, disabled = fieldRenderProps.disabled, hint = fieldRenderProps.hint, optional = fieldRenderProps.optional;
|
|
9
9
|
var showValidationMessage = touched && validationMessage;
|
|
10
10
|
var showHint = !showValidationMessage && hint;
|
|
11
|
-
var hintId = showHint ? id
|
|
12
|
-
var errorId = showValidationMessage ? id
|
|
11
|
+
var hintId = showHint ? "".concat(id, "_hint") : '';
|
|
12
|
+
var errorId = showValidationMessage ? "".concat(id, "_error") : '';
|
|
13
13
|
return (React.createElement(FieldWrapper, null,
|
|
14
14
|
React.createElement(Label, { editorId: id, editorValid: valid, editorDisabled: disabled, optional: optional }, label),
|
|
15
15
|
React.createElement("button", null, "Assignemts"),
|
|
@@ -14,8 +14,10 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
14
14
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
15
|
t[p] = s[p];
|
|
16
16
|
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++)
|
|
18
|
-
|
|
17
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
+
t[p[i]] = s[p[i]];
|
|
20
|
+
}
|
|
19
21
|
return t;
|
|
20
22
|
};
|
|
21
23
|
import * as React from 'react';
|
|
@@ -29,13 +31,13 @@ export var FormDateTimePicker = function (fieldRenderProps) {
|
|
|
29
31
|
var validationMessage = fieldRenderProps.validationMessage, touched = fieldRenderProps.touched, label = fieldRenderProps.label, id = fieldRenderProps.id, valid = fieldRenderProps.valid, disabled = fieldRenderProps.disabled, hint = fieldRenderProps.hint, wrapperStyle = fieldRenderProps.wrapperStyle, others = __rest(fieldRenderProps, ["validationMessage", "touched", "label", "id", "valid", "disabled", "hint", "wrapperStyle"]);
|
|
30
32
|
var showValidationMessage = touched && validationMessage;
|
|
31
33
|
var showHint = !showValidationMessage && hint;
|
|
32
|
-
var hintId = showHint ? id
|
|
33
|
-
var errorId = showValidationMessage ? id
|
|
34
|
-
var labelId = label ? id
|
|
34
|
+
var hintId = showHint ? "".concat(id, "_hint") : '';
|
|
35
|
+
var errorId = showValidationMessage ? "".concat(id, "_error") : '';
|
|
36
|
+
var labelId = label ? "".concat(id, "_label") : '';
|
|
35
37
|
return (React.createElement(FieldWrapper, { style: wrapperStyle },
|
|
36
38
|
React.createElement(Label, { id: labelId, editorId: id, editorValid: valid, editorDisabled: disabled }, label),
|
|
37
39
|
React.createElement("div", { className: 'k-form-field-wrap' },
|
|
38
|
-
React.createElement(DateTimePicker, __assign({ ariaLabelledBy: labelId, ariaDescribedBy: hintId
|
|
40
|
+
React.createElement(DateTimePicker, __assign({ ariaLabelledBy: labelId, ariaDescribedBy: "".concat(hintId, " ").concat(errorId), valid: valid, id: id, disabled: disabled }, others)),
|
|
39
41
|
showHint &&
|
|
40
42
|
React.createElement(Hint, { id: hintId }, hint),
|
|
41
43
|
showValidationMessage &&
|
|
@@ -14,8 +14,10 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
14
14
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
15
|
t[p] = s[p];
|
|
16
16
|
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++)
|
|
18
|
-
|
|
17
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
+
t[p[i]] = s[p[i]];
|
|
20
|
+
}
|
|
19
21
|
return t;
|
|
20
22
|
};
|
|
21
23
|
import * as React from 'react';
|
|
@@ -29,12 +31,12 @@ export var FormInput = function (fieldRenderProps) {
|
|
|
29
31
|
var validationMessage = fieldRenderProps.validationMessage, touched = fieldRenderProps.touched, label = fieldRenderProps.label, id = fieldRenderProps.id, valid = fieldRenderProps.valid, disabled = fieldRenderProps.disabled, hint = fieldRenderProps.hint, type = fieldRenderProps.type, optional = fieldRenderProps.optional, others = __rest(fieldRenderProps, ["validationMessage", "touched", "label", "id", "valid", "disabled", "hint", "type", "optional"]);
|
|
30
32
|
var showValidationMessage = touched && validationMessage;
|
|
31
33
|
var showHint = !showValidationMessage && hint;
|
|
32
|
-
var hintId = showHint ? id
|
|
33
|
-
var errorId = showValidationMessage ? id
|
|
34
|
+
var hintId = showHint ? "".concat(id, "_hint") : '';
|
|
35
|
+
var errorId = showValidationMessage ? "".concat(id, "_error") : '';
|
|
34
36
|
return (React.createElement(FieldWrapper, null,
|
|
35
37
|
React.createElement(Label, { editorId: id, editorValid: valid, editorDisabled: disabled, optional: optional }, label),
|
|
36
38
|
React.createElement("div", { className: 'k-form-field-wrap' },
|
|
37
|
-
React.createElement(Input, __assign({ valid: valid, type: type, id: id, disabled: disabled, ariaDescribedBy: hintId
|
|
39
|
+
React.createElement(Input, __assign({ valid: valid, type: type, id: id, disabled: disabled, ariaDescribedBy: "".concat(hintId, " ").concat(errorId) }, others)),
|
|
38
40
|
showHint &&
|
|
39
41
|
React.createElement(Hint, { id: hintId }, hint),
|
|
40
42
|
showValidationMessage &&
|
|
@@ -14,8 +14,10 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
14
14
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
15
|
t[p] = s[p];
|
|
16
16
|
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++)
|
|
18
|
-
|
|
17
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
+
t[p[i]] = s[p[i]];
|
|
20
|
+
}
|
|
19
21
|
return t;
|
|
20
22
|
};
|
|
21
23
|
import * as React from 'react';
|
|
@@ -29,12 +31,12 @@ export var FormNumericTextBox = function (fieldRenderProps) {
|
|
|
29
31
|
var validationMessage = fieldRenderProps.validationMessage, touched = fieldRenderProps.touched, label = fieldRenderProps.label, id = fieldRenderProps.id, valid = fieldRenderProps.valid, disabled = fieldRenderProps.disabled, hint = fieldRenderProps.hint, others = __rest(fieldRenderProps, ["validationMessage", "touched", "label", "id", "valid", "disabled", "hint"]);
|
|
30
32
|
var showValidationMessage = touched && validationMessage;
|
|
31
33
|
var showHint = !showValidationMessage && hint;
|
|
32
|
-
var hintId = showHint ? id
|
|
33
|
-
var errorId = showValidationMessage ? id
|
|
34
|
+
var hintId = showHint ? "".concat(id, "_hint") : '';
|
|
35
|
+
var errorId = showValidationMessage ? "".concat(id, "_error") : '';
|
|
34
36
|
return (React.createElement(FieldWrapper, null,
|
|
35
37
|
React.createElement(Label, { editorId: id, editorValid: valid, editorDisabled: disabled }, label),
|
|
36
38
|
React.createElement("div", { className: 'k-form-field-wrap' },
|
|
37
|
-
React.createElement(NumericTextBox, __assign({ ariaDescribedBy: hintId
|
|
39
|
+
React.createElement(NumericTextBox, __assign({ ariaDescribedBy: "".concat(hintId, " ").concat(errorId), valid: valid, id: id, disabled: disabled }, others)),
|
|
38
40
|
showHint &&
|
|
39
41
|
React.createElement(Hint, { id: hintId }, hint),
|
|
40
42
|
showValidationMessage &&
|
|
@@ -32,8 +32,8 @@ export var GanttEditor = function () {
|
|
|
32
32
|
var startValidators = React.useMemo(function () { return [requiredValidator, startAfterEndValidator]; }, [requiredValidator, startAfterEndValidator]);
|
|
33
33
|
var endValidators = React.useMemo(function () { return [requiredValidator, endAfterStartValidator]; }, [requiredValidator, endAfterStartValidator]);
|
|
34
34
|
return (React.createElement(FormElement, { style: { width: 400 }, horizontal: true },
|
|
35
|
-
React.createElement(Field, { id: taskModelFields.title
|
|
36
|
-
React.createElement(Field, { id: taskModelFields.start
|
|
37
|
-
React.createElement(Field, { id: taskModelFields.end
|
|
38
|
-
React.createElement(Field, { id: taskModelFields.percentComplete
|
|
35
|
+
React.createElement(Field, { id: "".concat(taskModelFields.title, "_gantteditor"), name: taskModelFields.title, label: taskTitleMessage, component: FormInput, validator: requiredValidator }),
|
|
36
|
+
React.createElement(Field, { id: "".concat(taskModelFields.start, "_gantteditor"), name: taskModelFields.start, label: taskStartMessage, component: FormDateTimePicker, validator: startValidators }),
|
|
37
|
+
React.createElement(Field, { id: "".concat(taskModelFields.end, "_gantteditor"), name: taskModelFields.end, label: taskEndMessage, component: FormDateTimePicker, validator: endValidators }),
|
|
38
|
+
React.createElement(Field, { id: "".concat(taskModelFields.percentComplete, "_gantteditor"), name: taskModelFields.percentComplete, format: 'p', label: taskCompleteMessage, component: FormNumericTextBox, step: 0.01, validator: requiredValidator })));
|
|
39
39
|
};
|
|
@@ -41,4 +41,4 @@ export interface GanttFormProps {
|
|
|
41
41
|
/**
|
|
42
42
|
* Represents the default `form` component rendered by the [KendoReact GanttEditItem component]({% slug api_gantt_ganttedititem %}).
|
|
43
43
|
*/
|
|
44
|
-
export declare const GanttForm: (props: GanttFormProps) => React.ReactPortal;
|
|
44
|
+
export declare const GanttForm: (props: GanttFormProps) => React.ReactPortal | null;
|
|
@@ -14,8 +14,10 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
14
14
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
15
|
t[p] = s[p];
|
|
16
16
|
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++)
|
|
18
|
-
|
|
17
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
+
t[p[i]] = s[p[i]];
|
|
20
|
+
}
|
|
19
21
|
return t;
|
|
20
22
|
};
|
|
21
23
|
import * as React from 'react';
|
|
@@ -42,18 +44,21 @@ export var GanttForm = function (props) {
|
|
|
42
44
|
var editorTitleMessage = localizeMessage(editorTitle);
|
|
43
45
|
var handleCancel = React.useCallback(function (syntheticEvent) {
|
|
44
46
|
if (onCancel) {
|
|
45
|
-
|
|
47
|
+
var ev = { syntheticEvent: syntheticEvent, nativeEvent: syntheticEvent.nativeEvent, dataItem: props.dataItem };
|
|
48
|
+
onCancel.call(undefined, ev);
|
|
46
49
|
}
|
|
47
|
-
}, [onCancel]);
|
|
50
|
+
}, [onCancel, props.dataItem]);
|
|
48
51
|
var handleClose = React.useCallback(function (_a) {
|
|
49
52
|
var syntheticEvent = _a.syntheticEvent;
|
|
50
53
|
if (onClose) {
|
|
51
|
-
|
|
54
|
+
var ev = { syntheticEvent: syntheticEvent, nativeEvent: syntheticEvent.nativeEvent, dataItem: props.dataItem };
|
|
55
|
+
onClose.call(undefined, ev);
|
|
52
56
|
}
|
|
53
|
-
}, [onClose]);
|
|
57
|
+
}, [onClose, props.dataItem]);
|
|
54
58
|
var handleSubmit = React.useCallback(function (dataItem, syntheticEvent) {
|
|
55
59
|
if (onSubmit) {
|
|
56
|
-
|
|
60
|
+
var ev = { dataItem: dataItem, syntheticEvent: syntheticEvent, nativeEvent: syntheticEvent && syntheticEvent.nativeEvent };
|
|
61
|
+
onSubmit.call(undefined, ev);
|
|
57
62
|
}
|
|
58
63
|
}, [onSubmit]);
|
|
59
64
|
var formElement = (React.createElement(Form, __assign({ initialValues: props.dataItem, onSubmit: handleSubmit, render: function (renderProps) { return (React.createElement(Dialog, { title: editorTitleMessage, minWidth: 600, onClose: handleClose, style: { zIndex: 90 } },
|
|
@@ -41,4 +41,4 @@ export interface GanttRemoveDialogProps {
|
|
|
41
41
|
/**
|
|
42
42
|
* Represents the default `removeDialog` component rendered by the [KendoReact GanttEditItem component]({% slug api_gantt_ganttedititem %}).
|
|
43
43
|
*/
|
|
44
|
-
export declare const GanttRemoveDialog: (props: GanttRemoveDialogProps) => React.ReactPortal;
|
|
44
|
+
export declare const GanttRemoveDialog: (props: GanttRemoveDialogProps) => React.ReactPortal | null;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/** @hidden */
|
|
2
2
|
export declare type ControlledStateHook<T> = [T, (value: T, event?: any) => void];
|
|
3
3
|
/** @hidden */
|
|
4
|
-
export declare const useControlledState: <T extends
|
|
4
|
+
export declare const useControlledState: <T extends unknown>(defaultProp: T, prop?: T | undefined, callback?: any) => ControlledStateHook<T>;
|
|
@@ -16,7 +16,7 @@ export var useControlledState = function (defaultProp, prop, callback) {
|
|
|
16
16
|
var handleSetEdit = React.useCallback(function (value, args) {
|
|
17
17
|
setState(value);
|
|
18
18
|
if (callback) {
|
|
19
|
-
callback.call(undefined, __assign({}, args, { value: value }));
|
|
19
|
+
callback.call(undefined, __assign(__assign({}, args), { value: value }));
|
|
20
20
|
}
|
|
21
21
|
}, [callback, setState]);
|
|
22
22
|
return [prop !== undefined ? prop : state, handleSetEdit];
|
|
@@ -15,6 +15,4 @@ export interface StoreAction<T> {
|
|
|
15
15
|
id: number | string;
|
|
16
16
|
}
|
|
17
17
|
/** @hidden */
|
|
18
|
-
export declare const useDictionaryStore: <T extends
|
|
19
|
-
[id: string]: T;
|
|
20
|
-
}>, (event: StoreAction<T>) => void];
|
|
18
|
+
export declare const useDictionaryStore: <T extends unknown>() => [Store<T>, (event: StoreAction<T>) => void];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { GanttTaskHandle } from '../components/GanttTask';
|
|
3
3
|
/** @hidden */
|
|
4
|
-
export declare const useGanttTask: (dataItem: any, id:
|
|
4
|
+
export declare const useGanttTask: (dataItem: any, id: number | string, ref: React.Ref<GanttTaskHandle | null>, taskElementRef: React.RefObject<HTMLDivElement>) => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -3,7 +3,7 @@ import { CellProps } from '@progress/kendo-react-data-tools';
|
|
|
3
3
|
/**
|
|
4
4
|
* Represents the props of the GanttCell component.
|
|
5
5
|
*/
|
|
6
|
-
export interface GanttCellProps extends CellProps {
|
|
6
|
+
export interface GanttCellProps extends Omit<CellProps, 'onChange' | 'render'> {
|
|
7
7
|
/**
|
|
8
8
|
* An array of indexes of each parent and current item in the data tree.
|
|
9
9
|
*/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -6,7 +6,7 @@ import { GanttFilterCellProps } from './GanttFilterCellProps';
|
|
|
6
6
|
/**
|
|
7
7
|
* The props of the columns of the Gantt component.
|
|
8
8
|
*/
|
|
9
|
-
export interface GanttColumnProps extends TreeColumnBaseProps {
|
|
9
|
+
export interface GanttColumnProps extends Omit<TreeColumnBaseProps, 'children' | 'editCell' | 'cell'> {
|
|
10
10
|
/**
|
|
11
11
|
* Defines the component that will be rendered as a cell. If not set, a `GanttCell` will be rendered by default.
|
|
12
12
|
*/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -10,14 +10,4 @@ export declare type GanttSortSettings = SortSettings;
|
|
|
10
10
|
/**
|
|
11
11
|
* @hidden
|
|
12
12
|
*/
|
|
13
|
-
export declare const normalize: (...settings: (
|
|
14
|
-
allowUnsort?: boolean;
|
|
15
|
-
} | (false & {
|
|
16
|
-
mode?: "multiple" | "single";
|
|
17
|
-
}) | (true & {
|
|
18
|
-
mode?: "multiple" | "single";
|
|
19
|
-
}) | ({
|
|
20
|
-
allowUnsort?: boolean;
|
|
21
|
-
} & {
|
|
22
|
-
mode?: "multiple" | "single";
|
|
23
|
-
}))[]) => any;
|
|
13
|
+
export declare const normalize: (...settings: (GanttSortSettings | GanttColumnSortSettings)[]) => any;
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
2
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
3
|
+
if (ar || !(i in from)) {
|
|
4
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
5
|
+
ar[i] = from[i];
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
9
|
+
};
|
|
1
10
|
/**
|
|
2
11
|
* @hidden
|
|
3
12
|
*/
|
|
@@ -6,5 +15,5 @@ export var normalize = function () {
|
|
|
6
15
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
7
16
|
settings[_i] = arguments[_i];
|
|
8
17
|
}
|
|
9
|
-
return Object.assign.apply(Object, [{ allowUnsort: true, mode: 'single' }]
|
|
18
|
+
return Object.assign.apply(Object, __spreadArray([{ allowUnsort: true, mode: 'single' }], settings, false));
|
|
10
19
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -90,48 +90,48 @@ export declare const deleteDialogTitle = "gantt.deleteDialogTitle";
|
|
|
90
90
|
* @hidden
|
|
91
91
|
*/
|
|
92
92
|
export declare const messages: {
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
93
|
+
"gantt.weekViewTitle": string;
|
|
94
|
+
"gantt.dayViewTitle": string;
|
|
95
|
+
"gantt.monthViewTitle": string;
|
|
96
|
+
"gantt.yearViewTitle": string;
|
|
97
|
+
"gantt.filterClearButton": string;
|
|
98
|
+
"gantt.filterEqOperator": string;
|
|
99
|
+
"gantt.filterNotEqOperator": string;
|
|
100
|
+
"gantt.filterIsNullOperator": string;
|
|
101
|
+
"gantt.filterIsNotNullOperator": string;
|
|
102
|
+
"gantt.filterIsEmptyOperator": string;
|
|
103
|
+
"gantt.filterIsNotEmptyOperator": string;
|
|
104
|
+
"gantt.filterStartsWithOperator": string;
|
|
105
|
+
"gantt.filterContainsOperator": string;
|
|
106
|
+
"gantt.filterNotContainsOperator": string;
|
|
107
|
+
"gantt.filterEndsWithOperator": string;
|
|
108
|
+
"gantt.filterGteOperator": string;
|
|
109
|
+
"gantt.filterGtOperator": string;
|
|
110
|
+
"gantt.filterLteOperator": string;
|
|
111
|
+
"gantt.filterLtOperator": string;
|
|
112
|
+
"gantt.filterIsTrue": string;
|
|
113
|
+
"gantt.filterIsFalse": string;
|
|
114
|
+
"gantt.filterBooleanAll": string;
|
|
115
|
+
"gantt.filterAfterOrEqualOperator": string;
|
|
116
|
+
"gantt.filterAfterOperator": string;
|
|
117
|
+
"gantt.filterBeforeOperator": string;
|
|
118
|
+
"gantt.filterBeforeOrEqualOperator": string;
|
|
119
|
+
"gantt.noRecords": string;
|
|
120
|
+
"gantt.editSave": string;
|
|
121
|
+
"gantt.editCancel": string;
|
|
122
|
+
"gantt.editorTitle": string;
|
|
123
|
+
"gantt.editorTaskTitle": string;
|
|
124
|
+
"gantt.editorTaskStart": string;
|
|
125
|
+
"gantt.editorTaskEnd": string;
|
|
126
|
+
"gantt.editorTaskComplete": string;
|
|
127
|
+
"gantt.editorValidationRequired": string;
|
|
128
|
+
"gantt.editorValidationStart": string;
|
|
129
|
+
"gantt.editorValidationEnd": string;
|
|
130
|
+
"gantt.addTask": string;
|
|
131
|
+
"gantt.addChild": string;
|
|
132
|
+
"gantt.addAbove": string;
|
|
133
|
+
"gantt.addBelow": string;
|
|
134
|
+
"gantt.editorDelete": string;
|
|
135
|
+
"gantt.deleteConfirmation": string;
|
|
136
|
+
"gantt.deleteDialogTitle": string;
|
|
137
137
|
};
|
|
@@ -5,7 +5,7 @@ export var packageMetadata = {
|
|
|
5
5
|
name: '@progress/kendo-react-gantt',
|
|
6
6
|
productName: 'KendoReact',
|
|
7
7
|
productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
|
|
8
|
-
publishDate:
|
|
8
|
+
publishDate: 1654509456,
|
|
9
9
|
version: '',
|
|
10
10
|
licensingDocsUrl: 'https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning'
|
|
11
11
|
};
|