@progress/kendo-react-gantt 6.1.1 → 7.0.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/{dist/npm/Gantt.d.ts → Gantt.d.ts} +4 -0
- package/LICENSE.md +1 -1
- package/{dist/es/cells → cells}/FilterCells/GanttBooleanFilter.d.ts +4 -0
- package/{dist/npm/cells → cells}/FilterCells/GanttDateFilter.d.ts +4 -0
- package/{dist/es/cells → cells}/FilterCells/GanttNumericFilter.d.ts +4 -0
- package/{dist/npm/cells → cells}/FilterCells/GanttTextFilter.d.ts +4 -0
- package/{dist/npm/cells → cells}/FilterCells/utils.d.ts +4 -0
- package/{dist/npm/components → components}/BaseView.d.ts +4 -0
- package/components/GanttDependency.d.ts +13 -0
- package/{dist/npm/components → components}/GanttTask.d.ts +4 -0
- package/{dist/npm/components → components}/GanttTreelist.d.ts +6 -2
- package/{dist/npm/components → components}/toolbar/AddButton.d.ts +4 -0
- package/{dist/npm/components → components}/toolbar/Toolbar.d.ts +4 -0
- package/{dist/es/components → components}/toolbar/view-selector/ViewSelector.d.ts +4 -0
- package/components/toolbar/view-selector/ViewSelectorItem.d.ts +15 -0
- package/components/toolbar/view-selector/ViewSelectorList.d.ts +7 -0
- package/{dist/npm/constants → constants}/index.d.ts +4 -0
- package/{dist/es/context → context}/GanttContext.d.ts +17 -13
- package/{dist/npm/context → context}/GanttViewContext.d.ts +8 -4
- package/dist/cdn/js/kendo-react-gantt.js +5 -1
- package/editors/FormDateTimePicker.d.ts +8 -0
- package/editors/FormInput.d.ts +8 -0
- package/editors/FormNumericTextBox.d.ts +8 -0
- package/editors/GanttEditor.d.ts +8 -0
- package/{dist/npm/editors → editors}/GanttForm.d.ts +4 -0
- package/{dist/es/editors → editors}/GanttRemoveDialog.d.ts +4 -0
- package/hooks/useControlledState.d.ts +8 -0
- package/{dist/es/hooks → hooks}/useDictionaryStore.d.ts +5 -1
- package/hooks/useGanttTask.d.ts +8 -0
- package/index.d.ts +30 -0
- package/index.js +5 -0
- package/index.mjs +2582 -0
- package/interfaces/AddDirection.d.ts +10 -0
- package/interfaces/DataItem.d.ts +10 -0
- package/interfaces/DateRange.d.ts +12 -0
- package/{dist/es/interfaces → interfaces}/DependencyModelFields.d.ts +4 -0
- package/{dist/npm/interfaces → interfaces}/GanttBaseProps.d.ts +4 -1
- package/{dist/es/interfaces → interfaces}/GanttCellProps.d.ts +4 -1
- package/{dist/npm/interfaces → interfaces}/GanttColumnProps.d.ts +4 -0
- package/{dist/npm/interfaces → interfaces}/GanttDependencyModelFields.d.ts +4 -0
- package/interfaces/GanttFilterCellProps.d.ts +10 -0
- package/interfaces/GanttFilterOperator.d.ts +10 -0
- package/interfaces/GanttHeaderCellProps.d.ts +10 -0
- package/interfaces/GanttNoRecordsProps.d.ts +13 -0
- package/{dist/npm/interfaces → interfaces}/GanttProps.d.ts +4 -1
- package/{dist/es/interfaces → interfaces}/GanttRowProps.d.ts +4 -1
- package/{dist/es/interfaces → interfaces}/GanttSelectableSettings.d.ts +5 -1
- package/interfaces/GanttSlotType.d.ts +8 -0
- package/interfaces/GanttSortSettings.d.ts +17 -0
- package/{dist/es/interfaces → interfaces}/GanttTaskModelFields.d.ts +4 -0
- package/{dist/npm/interfaces → interfaces}/GanttView.d.ts +6 -3
- package/{dist/es/interfaces → interfaces}/GanttViewTimelineHeaderCellProps.d.ts +4 -0
- package/interfaces/Rectangle.d.ts +10 -0
- package/interfaces/Slot.d.ts +16 -0
- package/interfaces/TaskModelFields.d.ts +19 -0
- package/{dist/npm/interfaces → interfaces}/events.d.ts +4 -0
- package/{dist/es/messages → messages}/index.d.ts +4 -0
- package/package-metadata.d.ts +9 -0
- package/package.json +40 -57
- package/rows/GanttRow.d.ts +8 -0
- package/{dist/es/utils → utils}/data-operations.d.ts +4 -0
- package/{dist/es/utils → utils}/index.d.ts +11 -7
- package/{dist/npm/views → views}/GanttDayView.d.ts +4 -0
- package/{dist/npm/views → views}/GanttMonthView.d.ts +4 -0
- package/{dist/es/views → views}/GanttWeekView.d.ts +4 -0
- package/{dist/npm/views → views}/GanttYearView.d.ts +4 -0
- package/about.md +0 -3
- package/dist/es/Gantt.d.ts +0 -25
- package/dist/es/Gantt.js +0 -332
- package/dist/es/GanttNoRecords.d.ts +0 -12
- package/dist/es/GanttNoRecords.js +0 -37
- package/dist/es/cells/FilterCells/GanttBooleanFilter.js +0 -31
- package/dist/es/cells/FilterCells/GanttDateFilter.d.ts +0 -10
- package/dist/es/cells/FilterCells/GanttDateFilter.js +0 -31
- package/dist/es/cells/FilterCells/GanttNumericFilter.js +0 -31
- package/dist/es/cells/FilterCells/GanttTextFilter.d.ts +0 -10
- package/dist/es/cells/FilterCells/GanttTextFilter.js +0 -31
- package/dist/es/cells/FilterCells/utils.d.ts +0 -38
- package/dist/es/cells/FilterCells/utils.js +0 -66
- package/dist/es/components/BaseView.d.ts +0 -20
- package/dist/es/components/BaseView.js +0 -253
- package/dist/es/components/GanttDependency.d.ts +0 -10
- package/dist/es/components/GanttDependency.js +0 -56
- package/dist/es/components/GanttTask.d.ts +0 -12
- package/dist/es/components/GanttTask.js +0 -164
- package/dist/es/components/GanttTreelist.d.ts +0 -138
- package/dist/es/components/GanttTreelist.js +0 -607
- package/dist/es/components/toolbar/AddButton.d.ts +0 -12
- package/dist/es/components/toolbar/AddButton.js +0 -47
- package/dist/es/components/toolbar/Toolbar.d.ts +0 -21
- package/dist/es/components/toolbar/Toolbar.js +0 -41
- package/dist/es/components/toolbar/view-selector/ViewSelector.js +0 -38
- package/dist/es/components/toolbar/view-selector/ViewSelectorItem.d.ts +0 -12
- package/dist/es/components/toolbar/view-selector/ViewSelectorItem.js +0 -17
- package/dist/es/components/toolbar/view-selector/ViewSelectorList.d.ts +0 -3
- package/dist/es/components/toolbar/view-selector/ViewSelectorList.js +0 -42
- package/dist/es/constants/index.d.ts +0 -53
- package/dist/es/constants/index.js +0 -63
- package/dist/es/context/GanttContext.js +0 -105
- package/dist/es/context/GanttViewContext.d.ts +0 -40
- package/dist/es/context/GanttViewContext.js +0 -31
- package/dist/es/editors/FormAssingmentsEditor.d.ts +0 -5
- package/dist/es/editors/FormAssingmentsEditor.js +0 -20
- package/dist/es/editors/FormDateTimePicker.d.ts +0 -5
- package/dist/es/editors/FormDateTimePicker.js +0 -45
- package/dist/es/editors/FormInput.d.ts +0 -5
- package/dist/es/editors/FormInput.js +0 -44
- package/dist/es/editors/FormNumericTextBox.d.ts +0 -5
- package/dist/es/editors/FormNumericTextBox.js +0 -44
- package/dist/es/editors/GanttEditor.d.ts +0 -5
- package/dist/es/editors/GanttEditor.js +0 -39
- package/dist/es/editors/GanttForm.d.ts +0 -44
- package/dist/es/editors/GanttForm.js +0 -72
- package/dist/es/editors/GanttRemoveDialog.js +0 -61
- package/dist/es/hooks/useControlledState.d.ts +0 -4
- package/dist/es/hooks/useControlledState.js +0 -23
- package/dist/es/hooks/useDictionaryStore.js +0 -24
- package/dist/es/hooks/useGanttTask.d.ts +0 -4
- package/dist/es/hooks/useGanttTask.js +0 -27
- package/dist/es/interfaces/AddDirection.d.ts +0 -6
- package/dist/es/interfaces/AddDirection.js +0 -1
- package/dist/es/interfaces/DataAction.d.ts +0 -25
- package/dist/es/interfaces/DataAction.js +0 -9
- package/dist/es/interfaces/DataItem.d.ts +0 -6
- package/dist/es/interfaces/DataItem.js +0 -1
- package/dist/es/interfaces/DateRange.d.ts +0 -8
- package/dist/es/interfaces/DateRange.js +0 -1
- package/dist/es/interfaces/DependencyModelFields.js +0 -1
- package/dist/es/interfaces/DragEvent.d.ts +0 -14
- package/dist/es/interfaces/DragEvent.js +0 -1
- package/dist/es/interfaces/GanttBaseProps.d.ts +0 -63
- package/dist/es/interfaces/GanttBaseProps.js +0 -1
- package/dist/es/interfaces/GanttCellProps.js +0 -1
- package/dist/es/interfaces/GanttColumnProps.d.ts +0 -36
- package/dist/es/interfaces/GanttColumnProps.js +0 -1
- package/dist/es/interfaces/GanttDependencyModelFields.d.ts +0 -25
- package/dist/es/interfaces/GanttDependencyModelFields.js +0 -1
- package/dist/es/interfaces/GanttFilterCellProps.d.ts +0 -6
- package/dist/es/interfaces/GanttFilterCellProps.js +0 -1
- package/dist/es/interfaces/GanttFilterOperator.d.ts +0 -6
- package/dist/es/interfaces/GanttFilterOperator.js +0 -1
- package/dist/es/interfaces/GanttHeaderCellProps.d.ts +0 -6
- package/dist/es/interfaces/GanttHeaderCellProps.js +0 -1
- package/dist/es/interfaces/GanttNoRecordsProps.d.ts +0 -10
- package/dist/es/interfaces/GanttNoRecordsProps.js +0 -1
- package/dist/es/interfaces/GanttProps.d.ts +0 -147
- package/dist/es/interfaces/GanttProps.js +0 -1
- package/dist/es/interfaces/GanttRowProps.js +0 -1
- package/dist/es/interfaces/GanttSelectableSettings.js +0 -2
- package/dist/es/interfaces/GanttSlotType.d.ts +0 -4
- package/dist/es/interfaces/GanttSlotType.js +0 -1
- package/dist/es/interfaces/GanttSortSettings.d.ts +0 -13
- package/dist/es/interfaces/GanttSortSettings.js +0 -19
- package/dist/es/interfaces/GanttTaskModelFields.js +0 -1
- package/dist/es/interfaces/GanttView.d.ts +0 -77
- package/dist/es/interfaces/GanttView.js +0 -1
- package/dist/es/interfaces/GanttViewTimelineHeaderCellProps.js +0 -1
- package/dist/es/interfaces/Rectangle.d.ts +0 -6
- package/dist/es/interfaces/Rectangle.js +0 -1
- package/dist/es/interfaces/Slot.d.ts +0 -12
- package/dist/es/interfaces/Slot.js +0 -1
- package/dist/es/interfaces/TaskModelFields.d.ts +0 -15
- package/dist/es/interfaces/TaskModelFields.js +0 -1
- package/dist/es/interfaces/events.d.ts +0 -294
- package/dist/es/interfaces/events.js +0 -84
- package/dist/es/main.d.ts +0 -26
- package/dist/es/main.js +0 -17
- package/dist/es/messages/index.js +0 -138
- package/dist/es/package-metadata.d.ts +0 -5
- package/dist/es/package-metadata.js +0 -11
- package/dist/es/rows/GanttRow.d.ts +0 -5
- package/dist/es/rows/GanttRow.js +0 -5
- package/dist/es/utils/data-operations.js +0 -319
- package/dist/es/utils/index.js +0 -455
- package/dist/es/views/GanttDayView.d.ts +0 -17
- package/dist/es/views/GanttDayView.js +0 -102
- package/dist/es/views/GanttMonthView.d.ts +0 -13
- package/dist/es/views/GanttMonthView.js +0 -78
- package/dist/es/views/GanttWeekView.js +0 -84
- package/dist/es/views/GanttYearView.d.ts +0 -13
- package/dist/es/views/GanttYearView.js +0 -70
- package/dist/npm/Gantt.js +0 -335
- package/dist/npm/GanttNoRecords.d.ts +0 -12
- package/dist/npm/GanttNoRecords.js +0 -40
- package/dist/npm/cells/FilterCells/GanttBooleanFilter.d.ts +0 -10
- package/dist/npm/cells/FilterCells/GanttBooleanFilter.js +0 -35
- package/dist/npm/cells/FilterCells/GanttDateFilter.js +0 -35
- package/dist/npm/cells/FilterCells/GanttNumericFilter.d.ts +0 -10
- package/dist/npm/cells/FilterCells/GanttNumericFilter.js +0 -35
- package/dist/npm/cells/FilterCells/GanttTextFilter.js +0 -35
- package/dist/npm/cells/FilterCells/utils.js +0 -70
- package/dist/npm/components/BaseView.js +0 -256
- package/dist/npm/components/GanttDependency.d.ts +0 -10
- package/dist/npm/components/GanttDependency.js +0 -60
- package/dist/npm/components/GanttTask.js +0 -167
- package/dist/npm/components/GanttTreelist.js +0 -610
- package/dist/npm/components/toolbar/AddButton.js +0 -50
- package/dist/npm/components/toolbar/Toolbar.js +0 -44
- package/dist/npm/components/toolbar/view-selector/ViewSelector.d.ts +0 -24
- package/dist/npm/components/toolbar/view-selector/ViewSelector.js +0 -41
- package/dist/npm/components/toolbar/view-selector/ViewSelectorItem.d.ts +0 -12
- package/dist/npm/components/toolbar/view-selector/ViewSelectorItem.js +0 -21
- package/dist/npm/components/toolbar/view-selector/ViewSelectorList.d.ts +0 -3
- package/dist/npm/components/toolbar/view-selector/ViewSelectorList.js +0 -45
- package/dist/npm/constants/index.js +0 -67
- package/dist/npm/context/GanttContext.d.ts +0 -121
- package/dist/npm/context/GanttContext.js +0 -121
- package/dist/npm/context/GanttViewContext.js +0 -38
- package/dist/npm/editors/FormAssingmentsEditor.d.ts +0 -5
- package/dist/npm/editors/FormAssingmentsEditor.js +0 -24
- package/dist/npm/editors/FormDateTimePicker.d.ts +0 -5
- package/dist/npm/editors/FormDateTimePicker.js +0 -49
- package/dist/npm/editors/FormInput.d.ts +0 -5
- package/dist/npm/editors/FormInput.js +0 -48
- package/dist/npm/editors/FormNumericTextBox.d.ts +0 -5
- package/dist/npm/editors/FormNumericTextBox.js +0 -48
- package/dist/npm/editors/GanttEditor.d.ts +0 -5
- package/dist/npm/editors/GanttEditor.js +0 -43
- package/dist/npm/editors/GanttForm.js +0 -76
- package/dist/npm/editors/GanttRemoveDialog.d.ts +0 -44
- package/dist/npm/editors/GanttRemoveDialog.js +0 -65
- package/dist/npm/hooks/useControlledState.d.ts +0 -4
- package/dist/npm/hooks/useControlledState.js +0 -27
- package/dist/npm/hooks/useDictionaryStore.d.ts +0 -18
- package/dist/npm/hooks/useDictionaryStore.js +0 -28
- package/dist/npm/hooks/useGanttTask.d.ts +0 -4
- package/dist/npm/hooks/useGanttTask.js +0 -31
- package/dist/npm/interfaces/AddDirection.d.ts +0 -6
- package/dist/npm/interfaces/AddDirection.js +0 -2
- package/dist/npm/interfaces/DataAction.d.ts +0 -25
- package/dist/npm/interfaces/DataAction.js +0 -12
- package/dist/npm/interfaces/DataItem.d.ts +0 -6
- package/dist/npm/interfaces/DataItem.js +0 -2
- package/dist/npm/interfaces/DateRange.d.ts +0 -8
- package/dist/npm/interfaces/DateRange.js +0 -2
- package/dist/npm/interfaces/DependencyModelFields.d.ts +0 -25
- package/dist/npm/interfaces/DependencyModelFields.js +0 -2
- package/dist/npm/interfaces/DragEvent.d.ts +0 -14
- package/dist/npm/interfaces/DragEvent.js +0 -2
- package/dist/npm/interfaces/GanttBaseProps.js +0 -2
- package/dist/npm/interfaces/GanttCellProps.d.ts +0 -42
- package/dist/npm/interfaces/GanttCellProps.js +0 -2
- package/dist/npm/interfaces/GanttColumnProps.js +0 -2
- package/dist/npm/interfaces/GanttDependencyModelFields.js +0 -2
- package/dist/npm/interfaces/GanttFilterCellProps.d.ts +0 -6
- package/dist/npm/interfaces/GanttFilterCellProps.js +0 -2
- package/dist/npm/interfaces/GanttFilterOperator.d.ts +0 -6
- package/dist/npm/interfaces/GanttFilterOperator.js +0 -2
- package/dist/npm/interfaces/GanttHeaderCellProps.d.ts +0 -6
- package/dist/npm/interfaces/GanttHeaderCellProps.js +0 -2
- package/dist/npm/interfaces/GanttNoRecordsProps.d.ts +0 -10
- package/dist/npm/interfaces/GanttNoRecordsProps.js +0 -2
- package/dist/npm/interfaces/GanttProps.js +0 -2
- package/dist/npm/interfaces/GanttRowProps.d.ts +0 -92
- package/dist/npm/interfaces/GanttRowProps.js +0 -2
- package/dist/npm/interfaces/GanttSelectableSettings.d.ts +0 -18
- package/dist/npm/interfaces/GanttSelectableSettings.js +0 -3
- package/dist/npm/interfaces/GanttSlotType.d.ts +0 -4
- package/dist/npm/interfaces/GanttSlotType.js +0 -2
- package/dist/npm/interfaces/GanttSortSettings.d.ts +0 -13
- package/dist/npm/interfaces/GanttSortSettings.js +0 -23
- package/dist/npm/interfaces/GanttTaskModelFields.d.ts +0 -55
- package/dist/npm/interfaces/GanttTaskModelFields.js +0 -2
- package/dist/npm/interfaces/GanttView.js +0 -2
- package/dist/npm/interfaces/GanttViewTimelineHeaderCellProps.d.ts +0 -19
- package/dist/npm/interfaces/GanttViewTimelineHeaderCellProps.js +0 -2
- package/dist/npm/interfaces/Rectangle.d.ts +0 -6
- package/dist/npm/interfaces/Rectangle.js +0 -2
- package/dist/npm/interfaces/Slot.d.ts +0 -12
- package/dist/npm/interfaces/Slot.js +0 -2
- package/dist/npm/interfaces/TaskModelFields.d.ts +0 -15
- package/dist/npm/interfaces/TaskModelFields.js +0 -2
- package/dist/npm/interfaces/events.js +0 -85
- package/dist/npm/main.d.ts +0 -26
- package/dist/npm/main.js +0 -46
- package/dist/npm/messages/index.d.ts +0 -137
- package/dist/npm/messages/index.js +0 -141
- package/dist/npm/package-metadata.d.ts +0 -5
- package/dist/npm/package-metadata.js +0 -14
- package/dist/npm/rows/GanttRow.d.ts +0 -5
- package/dist/npm/rows/GanttRow.js +0 -8
- package/dist/npm/utils/data-operations.d.ts +0 -43
- package/dist/npm/utils/data-operations.js +0 -326
- package/dist/npm/utils/index.d.ts +0 -178
- package/dist/npm/utils/index.js +0 -485
- package/dist/npm/views/GanttDayView.js +0 -105
- package/dist/npm/views/GanttMonthView.js +0 -81
- package/dist/npm/views/GanttWeekView.d.ts +0 -13
- package/dist/npm/views/GanttWeekView.js +0 -87
- package/dist/npm/views/GanttYearView.js +0 -73
- package/dist/systemjs/kendo-react-gantt.js +0 -1
- package/e2e-next/gantt.basic.tests.ts +0 -24
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
var __assign = (this && this.__assign) || function () {
|
|
2
|
-
__assign = Object.assign || function(t) {
|
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
-
s = arguments[i];
|
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
-
t[p] = s[p];
|
|
7
|
-
}
|
|
8
|
-
return t;
|
|
9
|
-
};
|
|
10
|
-
return __assign.apply(this, arguments);
|
|
11
|
-
};
|
|
12
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
13
|
-
var t = {};
|
|
14
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
|
-
t[p] = s[p];
|
|
16
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
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
|
-
}
|
|
21
|
-
return t;
|
|
22
|
-
};
|
|
23
|
-
import * as React from 'react';
|
|
24
|
-
import { FieldWrapper } from '@progress/kendo-react-form';
|
|
25
|
-
import { Hint, Label, Error } from '@progress/kendo-react-labels';
|
|
26
|
-
import { NumericTextBox } from '@progress/kendo-react-inputs';
|
|
27
|
-
/**
|
|
28
|
-
* @hidden
|
|
29
|
-
*/
|
|
30
|
-
export var FormNumericTextBox = function (fieldRenderProps) {
|
|
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"]);
|
|
32
|
-
var showValidationMessage = touched && validationMessage;
|
|
33
|
-
var showHint = !showValidationMessage && hint;
|
|
34
|
-
var hintId = showHint ? "".concat(id, "_hint") : '';
|
|
35
|
-
var errorId = showValidationMessage ? "".concat(id, "_error") : '';
|
|
36
|
-
return (React.createElement(FieldWrapper, null,
|
|
37
|
-
React.createElement(Label, { editorId: id, editorValid: valid, editorDisabled: disabled }, label),
|
|
38
|
-
React.createElement("div", { className: 'k-form-field-wrap' },
|
|
39
|
-
React.createElement(NumericTextBox, __assign({ ariaDescribedBy: "".concat(hintId, " ").concat(errorId), valid: valid, id: id, disabled: disabled }, others)),
|
|
40
|
-
showHint &&
|
|
41
|
-
React.createElement(Hint, { id: hintId }, hint),
|
|
42
|
-
showValidationMessage &&
|
|
43
|
-
React.createElement(Error, { id: errorId }, validationMessage))));
|
|
44
|
-
};
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { FormElement, Field } from '@progress/kendo-react-form';
|
|
3
|
-
import { useGanttTaskModelFieldsContext } from '../context/GanttContext';
|
|
4
|
-
import { FormInput } from './FormInput';
|
|
5
|
-
import { useLocalization } from '@progress/kendo-react-intl';
|
|
6
|
-
import { editorTaskComplete, editorTaskEnd, editorTaskStart, editorTaskTitle, editorValidationEnd, editorValidationRequired, editorValidationStart, messages } from '../messages';
|
|
7
|
-
import { FormDateTimePicker } from './FormDateTimePicker';
|
|
8
|
-
import { FormNumericTextBox } from './FormNumericTextBox';
|
|
9
|
-
/**
|
|
10
|
-
* @hidden
|
|
11
|
-
*/
|
|
12
|
-
export var GanttEditor = function () {
|
|
13
|
-
var taskModelFields = useGanttTaskModelFieldsContext();
|
|
14
|
-
var localizationService = useLocalization();
|
|
15
|
-
var localizeMessage = function (message) {
|
|
16
|
-
return localizationService.toLanguageString(message, messages[message]);
|
|
17
|
-
};
|
|
18
|
-
var taskTitleMessage = localizeMessage(editorTaskTitle);
|
|
19
|
-
var taskStartMessage = localizeMessage(editorTaskStart);
|
|
20
|
-
var taskEndMessage = localizeMessage(editorTaskEnd);
|
|
21
|
-
var taskCompleteMessage = localizeMessage(editorTaskComplete);
|
|
22
|
-
var validationRequiredMessage = localizeMessage(editorValidationRequired);
|
|
23
|
-
var validationStartMessage = localizeMessage(editorValidationStart);
|
|
24
|
-
var validationEndMessage = localizeMessage(editorValidationEnd);
|
|
25
|
-
var requiredValidator = React.useCallback(function (value) { return (value || value === 0 ? undefined : validationRequiredMessage); }, [validationRequiredMessage]);
|
|
26
|
-
var startAfterEndValidator = React.useCallback(function (value, formValueGetter) { return (Boolean(value && formValueGetter(taskModelFields.end) && value.getTime() > formValueGetter(taskModelFields.end).getTime()) ?
|
|
27
|
-
validationStartMessage :
|
|
28
|
-
undefined); }, [taskModelFields, validationStartMessage]);
|
|
29
|
-
var endAfterStartValidator = React.useCallback(function (value, formValueGetter) { return (Boolean(value && formValueGetter(taskModelFields.start) && value.getTime() < formValueGetter(taskModelFields.start).getTime()) ?
|
|
30
|
-
validationEndMessage :
|
|
31
|
-
undefined); }, [taskModelFields, validationEndMessage]);
|
|
32
|
-
var startValidators = React.useMemo(function () { return [requiredValidator, startAfterEndValidator]; }, [requiredValidator, startAfterEndValidator]);
|
|
33
|
-
var endValidators = React.useMemo(function () { return [requiredValidator, endAfterStartValidator]; }, [requiredValidator, endAfterStartValidator]);
|
|
34
|
-
return (React.createElement(FormElement, { style: { width: 400 }, horizontal: true },
|
|
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
|
-
};
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { DataItem } from '../interfaces/DataItem';
|
|
3
|
-
/**
|
|
4
|
-
* Represents the event arguments of Gantt form.
|
|
5
|
-
*/
|
|
6
|
-
export interface GanttFormStateChangeEvent {
|
|
7
|
-
/**
|
|
8
|
-
* The updated data item.
|
|
9
|
-
*/
|
|
10
|
-
dataItem: DataItem | null;
|
|
11
|
-
/**
|
|
12
|
-
* A React Synthetic Event.
|
|
13
|
-
*/
|
|
14
|
-
syntheticEvent: React.SyntheticEvent<any>;
|
|
15
|
-
/**
|
|
16
|
-
* A native DOM event.
|
|
17
|
-
*/
|
|
18
|
-
nativeEvent: any;
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Represents the props of the KendoReact [GanttForm]({% slug api_gantt_ganttform %}) component.
|
|
22
|
-
*/
|
|
23
|
-
export interface GanttFormProps {
|
|
24
|
-
/**
|
|
25
|
-
* Specifies the `DataItem` to be visualized inside the form.
|
|
26
|
-
*/
|
|
27
|
-
dataItem: DataItem;
|
|
28
|
-
/**
|
|
29
|
-
* Called when the `cancel` button is clicked.
|
|
30
|
-
*/
|
|
31
|
-
onCancel?: (event: GanttFormStateChangeEvent) => void;
|
|
32
|
-
/**
|
|
33
|
-
* Called when the `close` button is clicked.
|
|
34
|
-
*/
|
|
35
|
-
onClose?: (event: GanttFormStateChangeEvent) => void;
|
|
36
|
-
/**
|
|
37
|
-
* Called when the `submit` button is clicked.
|
|
38
|
-
*/
|
|
39
|
-
onSubmit: (event: GanttFormStateChangeEvent) => void;
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* Represents the default `form` component rendered by the [KendoReact GanttEditItem component]({% slug api_gantt_ganttedititem %}).
|
|
43
|
-
*/
|
|
44
|
-
export declare const GanttForm: (props: GanttFormProps) => React.ReactPortal | null;
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
var __assign = (this && this.__assign) || function () {
|
|
2
|
-
__assign = Object.assign || function(t) {
|
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
-
s = arguments[i];
|
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
-
t[p] = s[p];
|
|
7
|
-
}
|
|
8
|
-
return t;
|
|
9
|
-
};
|
|
10
|
-
return __assign.apply(this, arguments);
|
|
11
|
-
};
|
|
12
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
13
|
-
var t = {};
|
|
14
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
|
-
t[p] = s[p];
|
|
16
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
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
|
-
}
|
|
21
|
-
return t;
|
|
22
|
-
};
|
|
23
|
-
import * as React from 'react';
|
|
24
|
-
import * as ReactDOM from 'react-dom';
|
|
25
|
-
import { canUseDOM } from '@progress/kendo-react-common';
|
|
26
|
-
import { Form } from '@progress/kendo-react-form';
|
|
27
|
-
import { Dialog, DialogActionsBar } from '@progress/kendo-react-dialogs';
|
|
28
|
-
import { Button } from '@progress/kendo-react-buttons';
|
|
29
|
-
import { GanttEditor } from './GanttEditor';
|
|
30
|
-
import { useLocalization } from '@progress/kendo-react-intl';
|
|
31
|
-
import { editorCancel, editorSave, editorTitle, messages } from '../messages';
|
|
32
|
-
/* eslint-disable max-len */
|
|
33
|
-
/**
|
|
34
|
-
* Represents the default `form` component rendered by the [KendoReact GanttEditItem component]({% slug api_gantt_ganttedititem %}).
|
|
35
|
-
*/
|
|
36
|
-
export var GanttForm = function (props) {
|
|
37
|
-
var onCancel = props.onCancel, onClose = props.onClose, onSubmit = props.onSubmit, other = __rest(props, ["onCancel", "onClose", "onSubmit"]);
|
|
38
|
-
var localizationService = useLocalization();
|
|
39
|
-
var localizeMessage = function (message) {
|
|
40
|
-
return localizationService.toLanguageString(message, messages[message]);
|
|
41
|
-
};
|
|
42
|
-
var editSaveMessage = localizeMessage(editorSave);
|
|
43
|
-
var editCancelMessage = localizeMessage(editorCancel);
|
|
44
|
-
var editorTitleMessage = localizeMessage(editorTitle);
|
|
45
|
-
var handleCancel = React.useCallback(function (syntheticEvent) {
|
|
46
|
-
if (onCancel) {
|
|
47
|
-
var ev = { syntheticEvent: syntheticEvent, nativeEvent: syntheticEvent.nativeEvent, dataItem: props.dataItem };
|
|
48
|
-
onCancel.call(undefined, ev);
|
|
49
|
-
}
|
|
50
|
-
}, [onCancel, props.dataItem]);
|
|
51
|
-
var handleClose = React.useCallback(function (_a) {
|
|
52
|
-
var syntheticEvent = _a.syntheticEvent;
|
|
53
|
-
if (onClose) {
|
|
54
|
-
var ev = { syntheticEvent: syntheticEvent, nativeEvent: syntheticEvent.nativeEvent, dataItem: props.dataItem };
|
|
55
|
-
onClose.call(undefined, ev);
|
|
56
|
-
}
|
|
57
|
-
}, [onClose, props.dataItem]);
|
|
58
|
-
var handleSubmit = React.useCallback(function (dataItem, syntheticEvent) {
|
|
59
|
-
if (onSubmit) {
|
|
60
|
-
var ev = { dataItem: dataItem, syntheticEvent: syntheticEvent, nativeEvent: syntheticEvent && syntheticEvent.nativeEvent };
|
|
61
|
-
onSubmit.call(undefined, ev);
|
|
62
|
-
}
|
|
63
|
-
}, [onSubmit]);
|
|
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 } },
|
|
65
|
-
React.createElement(GanttEditor, null),
|
|
66
|
-
React.createElement(DialogActionsBar, null,
|
|
67
|
-
React.createElement(Button, { disabled: !renderProps.allowSubmit, onClick: renderProps.onSubmit }, editSaveMessage),
|
|
68
|
-
React.createElement(Button, { onClick: handleCancel }, editCancelMessage)))); } }, other)));
|
|
69
|
-
return canUseDOM
|
|
70
|
-
? ReactDOM.createPortal(formElement, document && document.body)
|
|
71
|
-
: null;
|
|
72
|
-
};
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import * as ReactDOM from 'react-dom';
|
|
3
|
-
import { DialogActionsBar, Dialog } from '@progress/kendo-react-dialogs';
|
|
4
|
-
import { useLocalization } from '@progress/kendo-react-intl';
|
|
5
|
-
import { messages, editorCancel, deleteConfirmation, editorDelete, deleteDialogTitle } from '../messages';
|
|
6
|
-
import { canUseDOM } from '@progress/kendo-react-common';
|
|
7
|
-
/* eslint-disable max-len */
|
|
8
|
-
/**
|
|
9
|
-
* Represents the default `removeDialog` component rendered by the [KendoReact GanttEditItem component]({% slug api_gantt_ganttedititem %}).
|
|
10
|
-
*/
|
|
11
|
-
export var GanttRemoveDialog = function (props) {
|
|
12
|
-
// tslint:enable:max-line-length
|
|
13
|
-
var onClose = props.onClose, onCancel = props.onCancel, onConfirm = props.onConfirm, dataItem = props.dataItem;
|
|
14
|
-
var localizationService = useLocalization();
|
|
15
|
-
var localizeMessage = function (message) {
|
|
16
|
-
return localizationService.toLanguageString(message, messages[message]);
|
|
17
|
-
};
|
|
18
|
-
var editDeleteMessage = localizeMessage(editorDelete);
|
|
19
|
-
var editCancelMessage = localizeMessage(editorCancel);
|
|
20
|
-
var editorConfirmationMessage = localizeMessage(deleteConfirmation);
|
|
21
|
-
var editorDeleteDialogTitleMessage = localizeMessage(deleteDialogTitle);
|
|
22
|
-
var handleClose = React.useCallback(function (_a) {
|
|
23
|
-
var syntheticEvent = _a.syntheticEvent;
|
|
24
|
-
if (!onClose) {
|
|
25
|
-
return;
|
|
26
|
-
}
|
|
27
|
-
onClose.call(undefined, {
|
|
28
|
-
syntheticEvent: syntheticEvent,
|
|
29
|
-
nativeEvent: syntheticEvent && syntheticEvent.nativeEvent,
|
|
30
|
-
dataItem: null
|
|
31
|
-
});
|
|
32
|
-
}, [onClose]);
|
|
33
|
-
var handleCancel = React.useCallback(function (syntheticEvent) {
|
|
34
|
-
if (!onCancel) {
|
|
35
|
-
return;
|
|
36
|
-
}
|
|
37
|
-
onCancel.call(undefined, {
|
|
38
|
-
syntheticEvent: syntheticEvent,
|
|
39
|
-
nativeEvent: syntheticEvent && syntheticEvent.nativeEvent,
|
|
40
|
-
dataItem: null
|
|
41
|
-
});
|
|
42
|
-
}, [onCancel]);
|
|
43
|
-
var handleConfirm = React.useCallback(function (syntheticEvent) {
|
|
44
|
-
if (!onConfirm) {
|
|
45
|
-
return;
|
|
46
|
-
}
|
|
47
|
-
onConfirm.call(undefined, {
|
|
48
|
-
syntheticEvent: syntheticEvent,
|
|
49
|
-
nativeEvent: syntheticEvent && syntheticEvent.nativeEvent,
|
|
50
|
-
dataItem: dataItem
|
|
51
|
-
});
|
|
52
|
-
}, [onConfirm, dataItem]);
|
|
53
|
-
var element = (React.createElement(Dialog, { title: editorDeleteDialogTitleMessage, onClose: handleClose },
|
|
54
|
-
editorConfirmationMessage,
|
|
55
|
-
React.createElement(DialogActionsBar, null,
|
|
56
|
-
React.createElement("button", { className: "k-button", onClick: handleCancel }, editCancelMessage),
|
|
57
|
-
React.createElement("button", { className: "k-button", onClick: handleConfirm }, editDeleteMessage))));
|
|
58
|
-
return canUseDOM
|
|
59
|
-
? ReactDOM.createPortal(element, document && document.body)
|
|
60
|
-
: null;
|
|
61
|
-
};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
var __assign = (this && this.__assign) || function () {
|
|
2
|
-
__assign = Object.assign || function(t) {
|
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
-
s = arguments[i];
|
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
-
t[p] = s[p];
|
|
7
|
-
}
|
|
8
|
-
return t;
|
|
9
|
-
};
|
|
10
|
-
return __assign.apply(this, arguments);
|
|
11
|
-
};
|
|
12
|
-
import * as React from 'react';
|
|
13
|
-
/** @hidden */
|
|
14
|
-
export var useControlledState = function (defaultProp, prop, callback) {
|
|
15
|
-
var _a = React.useState(prop || defaultProp), state = _a[0], setState = _a[1];
|
|
16
|
-
var handleSetEdit = React.useCallback(function (value, args) {
|
|
17
|
-
setState(value);
|
|
18
|
-
if (callback) {
|
|
19
|
-
callback.call(undefined, __assign(__assign({}, args), { value: value }));
|
|
20
|
-
}
|
|
21
|
-
}, [callback, setState]);
|
|
22
|
-
return [prop !== undefined ? prop : state, handleSetEdit];
|
|
23
|
-
};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
/** @hidden */
|
|
3
|
-
export var STORE_ACTION;
|
|
4
|
-
(function (STORE_ACTION) {
|
|
5
|
-
STORE_ACTION[STORE_ACTION["add"] = 0] = "add";
|
|
6
|
-
STORE_ACTION[STORE_ACTION["remove"] = 1] = "remove";
|
|
7
|
-
})(STORE_ACTION || (STORE_ACTION = {}));
|
|
8
|
-
/** @hidden */
|
|
9
|
-
export var useDictionaryStore = function () {
|
|
10
|
-
var store = React.useRef({});
|
|
11
|
-
var handleStoreAction = React.useCallback(function (action) {
|
|
12
|
-
switch (action.type) {
|
|
13
|
-
case STORE_ACTION.add:
|
|
14
|
-
store.current[action.id] = action.itemRef;
|
|
15
|
-
break;
|
|
16
|
-
case STORE_ACTION.remove:
|
|
17
|
-
delete store.current[action.id];
|
|
18
|
-
break;
|
|
19
|
-
default:
|
|
20
|
-
break;
|
|
21
|
-
}
|
|
22
|
-
}, []);
|
|
23
|
-
return [store, handleStoreAction];
|
|
24
|
-
};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { GanttTaskHandle } from '../components/GanttTask';
|
|
3
|
-
/** @hidden */
|
|
4
|
-
export declare const useGanttTask: (dataItem: any, id: number | string, ref: React.Ref<GanttTaskHandle | null>, taskElementRef: React.RefObject<HTMLDivElement>) => void;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { useGanttViewTasksContext } from '../context/GanttViewContext';
|
|
3
|
-
import { STORE_ACTION } from './useDictionaryStore';
|
|
4
|
-
/** @hidden */
|
|
5
|
-
export var useGanttTask = function (dataItem, id, ref, taskElementRef) {
|
|
6
|
-
var taskRef = React.useRef(null);
|
|
7
|
-
var _a = useGanttViewTasksContext(), dispatchTaskRef = _a[1];
|
|
8
|
-
React.useImperativeHandle(taskRef, function () { return ({ element: taskElementRef.current, dataItem: dataItem }); });
|
|
9
|
-
React.useImperativeHandle(ref, function () { return taskRef.current; });
|
|
10
|
-
React.useLayoutEffect(function () {
|
|
11
|
-
var target = taskRef.current;
|
|
12
|
-
if (target) {
|
|
13
|
-
dispatchTaskRef({
|
|
14
|
-
type: STORE_ACTION.add,
|
|
15
|
-
itemRef: target,
|
|
16
|
-
id: id
|
|
17
|
-
});
|
|
18
|
-
return function () {
|
|
19
|
-
dispatchTaskRef({
|
|
20
|
-
type: STORE_ACTION.remove,
|
|
21
|
-
itemRef: target,
|
|
22
|
-
id: id
|
|
23
|
-
});
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
});
|
|
27
|
-
};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The direction of the add new task action.
|
|
3
|
-
* If set to 'none' the task should be added at the end of the data collection.
|
|
4
|
-
* If set to 'above', 'below' or 'child', `selectedTask` option should be provided.
|
|
5
|
-
*/
|
|
6
|
-
export declare type AddDirection = 'none' | 'above' | 'below' | 'child';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { DataItem } from './DataItem';
|
|
2
|
-
/**
|
|
3
|
-
* Specifies the available [DataAction]({% slug api_gantt_data_action %}) types.
|
|
4
|
-
*/
|
|
5
|
-
export declare enum DATA_ACTION {
|
|
6
|
-
create = 0,
|
|
7
|
-
update = 1,
|
|
8
|
-
remove = 2
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* Specifies the action which can be dispatched through the Gantt context.
|
|
12
|
-
*/
|
|
13
|
-
export interface DataAction {
|
|
14
|
-
/**
|
|
15
|
-
* The `type` of the action. The available types are:
|
|
16
|
-
* - `create`
|
|
17
|
-
* - `update`
|
|
18
|
-
* - `remove`
|
|
19
|
-
*/
|
|
20
|
-
type: DATA_ACTION;
|
|
21
|
-
/**
|
|
22
|
-
* Specifies the `dataItem` being edited.
|
|
23
|
-
*/
|
|
24
|
-
dataItem: DataItem;
|
|
25
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Specifies the available [DataAction]({% slug api_gantt_data_action %}) types.
|
|
3
|
-
*/
|
|
4
|
-
export var DATA_ACTION;
|
|
5
|
-
(function (DATA_ACTION) {
|
|
6
|
-
DATA_ACTION[DATA_ACTION["create"] = 0] = "create";
|
|
7
|
-
DATA_ACTION[DATA_ACTION["update"] = 1] = "update";
|
|
8
|
-
DATA_ACTION[DATA_ACTION["remove"] = 2] = "remove";
|
|
9
|
-
})(DATA_ACTION || (DATA_ACTION = {}));
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Represents the items which the [`data`]({% slug api_gantt_ganttprops %}#toc-data) property accepts.
|
|
3
|
-
* The `data` has no strict type. However, to visualize it correctly,
|
|
4
|
-
* use it in combination with the [`modelFields`]({% slug api_gantt_ganttprops %}#toc-modelfields) property.
|
|
5
|
-
*/
|
|
6
|
-
export declare type DataItem = any;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/** @hidden */
|
|
2
|
-
export interface DragEvent {
|
|
3
|
-
pageX: number;
|
|
4
|
-
pageY: number;
|
|
5
|
-
clientX: number;
|
|
6
|
-
clientY: number;
|
|
7
|
-
offsetX: number;
|
|
8
|
-
offsetY: number;
|
|
9
|
-
type: string;
|
|
10
|
-
ctrlKey: boolean;
|
|
11
|
-
shiftKey: boolean;
|
|
12
|
-
altKey: boolean;
|
|
13
|
-
originalEvent: PointerEvent;
|
|
14
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { GanttColumnProps } from './GanttColumnProps';
|
|
3
|
-
import { GanttNoRecordsProps } from './GanttNoRecordsProps';
|
|
4
|
-
import { SortDescriptor, FilterDescriptor, CompositeFilterDescriptor } from '@progress/kendo-data-query';
|
|
5
|
-
import { GanttRowProps } from './GanttRowProps';
|
|
6
|
-
import { GanttSelectableSettings } from './GanttSelectableSettings';
|
|
7
|
-
import { GanttSortSettings } from './GanttSortSettings';
|
|
8
|
-
/**
|
|
9
|
-
* @hidden
|
|
10
|
-
*/
|
|
11
|
-
export interface GanttBaseProps {
|
|
12
|
-
/**
|
|
13
|
-
* Represents the component that will be rendered when the `data` property of the Gantt is empty or undefined.
|
|
14
|
-
*/
|
|
15
|
-
noRecords?: React.ReactElement<GanttNoRecordsProps>;
|
|
16
|
-
/**
|
|
17
|
-
* A collection of `GanttColumnProps` for creating columns.
|
|
18
|
-
*/
|
|
19
|
-
columns?: GanttColumnProps[];
|
|
20
|
-
/**
|
|
21
|
-
* Specifies the id of the timezone that will be displayed in the Gantt.
|
|
22
|
-
* For example, `Europe/Sofia`.
|
|
23
|
-
*
|
|
24
|
-
* Defaults to `Etc/UTC`.
|
|
25
|
-
*/
|
|
26
|
-
timezone?: string;
|
|
27
|
-
/**
|
|
28
|
-
* If set to `true`, the user can resize columns by dragging the edges (resize handles) of their header cells.
|
|
29
|
-
*/
|
|
30
|
-
resizable?: boolean;
|
|
31
|
-
/**
|
|
32
|
-
* Enables sorting ([see example]({% slug sorting_gantt %})).
|
|
33
|
-
*/
|
|
34
|
-
sortable?: GanttSortSettings;
|
|
35
|
-
/**
|
|
36
|
-
* The descriptors by which the data is sorted. Applies the sorting styles and buttons to the affected columns.
|
|
37
|
-
*/
|
|
38
|
-
sort?: SortDescriptor[];
|
|
39
|
-
/**
|
|
40
|
-
* The descriptors by which the data is filtered ([more information and examples]({% slug filtering_gantt %})).
|
|
41
|
-
* This affects the values and buttons in the `FilterRow` of the Gantt.
|
|
42
|
-
*/
|
|
43
|
-
filter?: FilterDescriptor[];
|
|
44
|
-
/**
|
|
45
|
-
* If set to `true`, the user can reorder columns by dragging their header cells.
|
|
46
|
-
*/
|
|
47
|
-
reorderable?: boolean;
|
|
48
|
-
/**
|
|
49
|
-
* If set to `true`, the user can use dedicated shortcuts to interact with the Gantt.
|
|
50
|
-
* By default, navigation is disabled and the Gantt content is accessible in the normal tab sequence.
|
|
51
|
-
*/
|
|
52
|
-
navigatable?: boolean;
|
|
53
|
-
columnMenuFilter?: CompositeFilterDescriptor[];
|
|
54
|
-
columnMenu?: React.ComponentType<any>;
|
|
55
|
-
/**
|
|
56
|
-
* The Gantt row component.
|
|
57
|
-
*/
|
|
58
|
-
row?: React.ComponentType<GanttRowProps>;
|
|
59
|
-
/**
|
|
60
|
-
* The Gantt selectable settings.
|
|
61
|
-
*/
|
|
62
|
-
selectable?: GanttSelectableSettings;
|
|
63
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { ComponentType } from 'react';
|
|
2
|
-
import { TreeColumnBaseProps } from '@progress/kendo-react-data-tools';
|
|
3
|
-
import { GanttCellProps } from './GanttCellProps';
|
|
4
|
-
import { GanttHeaderCellProps } from './GanttHeaderCellProps';
|
|
5
|
-
import { GanttFilterCellProps } from './GanttFilterCellProps';
|
|
6
|
-
/**
|
|
7
|
-
* The props of the columns of the Gantt component.
|
|
8
|
-
*/
|
|
9
|
-
export interface GanttColumnProps extends Omit<TreeColumnBaseProps, 'children' | 'editCell' | 'cell'> {
|
|
10
|
-
/**
|
|
11
|
-
* Defines the component that will be rendered as a cell. If not set, a `GanttCell` will be rendered by default.
|
|
12
|
-
*/
|
|
13
|
-
cell?: ComponentType<GanttCellProps>;
|
|
14
|
-
/**
|
|
15
|
-
* @hidden
|
|
16
|
-
* Defines the component that will be rendered as an edit cell.
|
|
17
|
-
*/
|
|
18
|
-
editCell?: ComponentType<GanttCellProps>;
|
|
19
|
-
/**
|
|
20
|
-
* Defines the component that will be rendered as a header cell.
|
|
21
|
-
* If not set, a `GanttHeaderCell` will be rendered by default.
|
|
22
|
-
*/
|
|
23
|
-
headerCell?: ComponentType<GanttHeaderCellProps>;
|
|
24
|
-
/**
|
|
25
|
-
* **Deprecated**. Use `filterCell` prop instead.
|
|
26
|
-
*/
|
|
27
|
-
filter?: ComponentType<GanttFilterCellProps>;
|
|
28
|
-
/**
|
|
29
|
-
* Defines the component that will be rendered as a filter cell.
|
|
30
|
-
*/
|
|
31
|
-
filterCell?: ComponentType<GanttFilterCellProps>;
|
|
32
|
-
/**
|
|
33
|
-
* A collection of child columns.
|
|
34
|
-
*/
|
|
35
|
-
children?: GanttColumnProps[];
|
|
36
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Defines the model fields that will be used for creating `GanttDependency` instances.
|
|
3
|
-
*/
|
|
4
|
-
export interface GanttDependencyModelFields {
|
|
5
|
-
/**
|
|
6
|
-
* The name of the `ID` model field.
|
|
7
|
-
* Defaults to `"id"`.
|
|
8
|
-
*/
|
|
9
|
-
id?: string;
|
|
10
|
-
/**
|
|
11
|
-
* The name of the from task id model field.
|
|
12
|
-
* Defaults to `"fromId"`.
|
|
13
|
-
*/
|
|
14
|
-
fromId?: string;
|
|
15
|
-
/**
|
|
16
|
-
* The name of the to task id model field.
|
|
17
|
-
* Defaults to `"toId"`.
|
|
18
|
-
*/
|
|
19
|
-
toId?: string;
|
|
20
|
-
/**
|
|
21
|
-
* The name of the type model field.
|
|
22
|
-
* Defaults to `"type"`.
|
|
23
|
-
*/
|
|
24
|
-
type?: string;
|
|
25
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
/**
|
|
3
|
-
* The props of the GanttNoRecords component.
|
|
4
|
-
*/
|
|
5
|
-
export interface GanttNoRecordsProps {
|
|
6
|
-
/**
|
|
7
|
-
* The React elements which will be rendered inside the Gantt when no records are available.
|
|
8
|
-
*/
|
|
9
|
-
children?: React.ReactNode;
|
|
10
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|