@progress/kendo-react-taskboard 5.3.0-dev.202205091142 → 5.3.1-dev.202205130741
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-taskboard.js +1 -1
- package/dist/es/TaskBoardAddCard.d.ts +1 -1
- package/dist/es/TaskBoardCardBase.d.ts +4 -0
- package/dist/es/TaskBoardCardBase.js +7 -2
- package/dist/es/TaskBoardColumnBase.d.ts +4 -0
- package/dist/es/TaskBoardColumnBase.js +3 -1
- package/dist/es/TaskBoardConfirmDialog.d.ts +4 -4
- package/dist/es/TaskBoardTaskEditPane.d.ts +4 -4
- package/dist/es/card/Card.d.ts +23 -19
- package/dist/es/card/Card.js +1 -1
- package/dist/es/card/CardHeader.d.ts +6 -6
- package/dist/es/card/PreviewDialog.d.ts +7 -7
- package/dist/es/card/PreviewDialog.js +2 -2
- package/dist/es/column/Column.d.ts +7 -14
- package/dist/es/column/Column.js +1 -1
- package/dist/es/column/ColumnBody.d.ts +0 -29
- package/dist/es/column/ColumnHeader.d.ts +5 -5
- package/dist/es/hooks/taskEditing.d.ts +2 -1
- package/dist/es/hooks/taskEditing.js +1 -1
- package/dist/es/package-metadata.js +1 -1
- package/dist/npm/TaskBoardAddCard.d.ts +1 -1
- package/dist/npm/TaskBoardCardBase.d.ts +4 -0
- package/dist/npm/TaskBoardCardBase.js +7 -2
- package/dist/npm/TaskBoardColumnBase.d.ts +4 -0
- package/dist/npm/TaskBoardColumnBase.js +3 -1
- package/dist/npm/TaskBoardConfirmDialog.d.ts +4 -4
- package/dist/npm/TaskBoardTaskEditPane.d.ts +4 -4
- package/dist/npm/card/Card.d.ts +23 -19
- package/dist/npm/card/Card.js +1 -1
- package/dist/npm/card/CardHeader.d.ts +6 -6
- package/dist/npm/card/PreviewDialog.d.ts +7 -7
- package/dist/npm/card/PreviewDialog.js +2 -2
- package/dist/npm/column/Column.d.ts +7 -14
- package/dist/npm/column/Column.js +1 -1
- package/dist/npm/column/ColumnBody.d.ts +0 -29
- package/dist/npm/column/ColumnHeader.d.ts +5 -5
- package/dist/npm/hooks/taskEditing.d.ts +2 -1
- package/dist/npm/hooks/taskEditing.js +1 -1
- package/dist/npm/package-metadata.js +1 -1
- package/dist/systemjs/kendo-react-taskboard.js +1 -1
- package/package.json +12 -12
|
@@ -12,7 +12,7 @@ export interface TaskBoardAddCardProps {
|
|
|
12
12
|
/**
|
|
13
13
|
* Triggered on `onClose` event of the TaskBoardAddCard.
|
|
14
14
|
*/
|
|
15
|
-
onClose: () => void;
|
|
15
|
+
onClose: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
16
16
|
/**
|
|
17
17
|
* Triggered on `onSave` event of the TaskBoardAddCard.
|
|
18
18
|
*/
|
|
@@ -4,6 +4,8 @@ import { TaskBoardCardProps } from './card/Card';
|
|
|
4
4
|
import { TaskBoardTaskModel } from './TaskBoard';
|
|
5
5
|
/**
|
|
6
6
|
* Represents the props of the TaskBoardCardBase component
|
|
7
|
+
*
|
|
8
|
+
* @hidden
|
|
7
9
|
*/
|
|
8
10
|
export interface TaskBoardCardBaseProps {
|
|
9
11
|
/**
|
|
@@ -48,6 +50,8 @@ export interface TaskBoardCardBaseProps {
|
|
|
48
50
|
}
|
|
49
51
|
/**
|
|
50
52
|
* Represents the TaskBoardCardBase component.
|
|
53
|
+
*
|
|
54
|
+
* @hidden
|
|
51
55
|
*/
|
|
52
56
|
export declare const TaskBoardCardBase: {
|
|
53
57
|
(props: TaskBoardCardBaseProps): JSX.Element;
|
|
@@ -21,6 +21,8 @@ import { TaskBoardConfirmDialog } from './TaskBoardConfirmDialog';
|
|
|
21
21
|
import { TaskBoardPreviewDialog } from './card/PreviewDialog';
|
|
22
22
|
/**
|
|
23
23
|
* Represents the TaskBoardCardBase component.
|
|
24
|
+
*
|
|
25
|
+
* @hidden
|
|
24
26
|
*/
|
|
25
27
|
export var TaskBoardCardBase = function (props) {
|
|
26
28
|
var _a;
|
|
@@ -68,7 +70,10 @@ export var TaskBoardCardBase = function (props) {
|
|
|
68
70
|
setConfirmTaskDeleteVisible(!confirmTaskDeleteVisible);
|
|
69
71
|
};
|
|
70
72
|
var onShowTaskPreviewPane = function () {
|
|
71
|
-
setShowTaskPreviewPane(
|
|
73
|
+
setShowTaskPreviewPane(true);
|
|
74
|
+
};
|
|
75
|
+
var onClosePreviewPane = function () {
|
|
76
|
+
setShowTaskPreviewPane(false);
|
|
72
77
|
};
|
|
73
78
|
var onTaskEdit = function () {
|
|
74
79
|
showEditPane(task);
|
|
@@ -77,7 +82,7 @@ export var TaskBoardCardBase = function (props) {
|
|
|
77
82
|
if (task.isPlaceholder && dragTargetRef && dragTargetRef.current) {
|
|
78
83
|
return (React.createElement("div", __assign({ style: { width: dragTargetRef.current.width, height: dragTargetRef.current.height }, className: 'k-taskboard-drag-placeholder' }, (_a = {}, _a[TASKBOARD_PLACEHOLDER] = true, _a))));
|
|
79
84
|
}
|
|
80
|
-
return (React.createElement(props.cardComponent, { task: task, style: style, tabIndex: props.tabIndex, disabled: props.disabled, elementRef: elementRef, showMenu: optionMenuVisible, showDeleteConfirm: confirmTaskDeleteVisible, showTaskPreviewPane: showTaskPreviewPane, menuItems: optionButtons, popupRef: popupRef, confirmDialogMessage: localization.toLanguageString(taskBoardDeleteTaskDialogMessage, messages[taskBoardDeleteTaskDialogMessage]), confirmDialogTitle: localization.toLanguageString(taskBoardDeleteTaskDialogTitle, messages[taskBoardDeleteTaskDialogTitle]), confirmDialogConfirmButton: localization.toLanguageString(taskBoardDeleteTaskConfirmButton, messages[taskBoardDeleteTaskConfirmButton]), confirmDialogCancelButton: localization.toLanguageString(taskBoardDeleteTaskCancelButton, messages[taskBoardDeleteTaskCancelButton]), previewDialogPriorityLabel: localization.toLanguageString(taskBoardPreviewPanePriorityLabel, messages[taskBoardPreviewPanePriorityLabel]), previewDialogDelete: localization.toLanguageString(taskBoardPreviewPaneDeleteBtn, messages[taskBoardPreviewPaneDeleteBtn]), previewDialogEdit: localization.toLanguageString(taskBoardPreviewPaneEditBtn, messages[taskBoardPreviewPaneEditBtn]), onShowPreviewPane: onShowTaskPreviewPane, onMenuItemSelect: handleSelect, onShowMenu: onShowMenu, onHideMenu: onHideMenu, onMenuButtonBlur: onMenuButtonBlur, onTaskDelete: onDeleteTask, onTaskEdit: onTaskEdit, onCloseConfirmDialog: closeConfirmDialog, card: Card, cardHeader: TaskBoardCardHeader, cardBody: TaskBoardCardBody, confirmDialog: TaskBoardConfirmDialog, previewDialog: TaskBoardPreviewDialog }));
|
|
85
|
+
return (React.createElement(props.cardComponent, { task: task, style: style, tabIndex: props.tabIndex, disabled: props.disabled, elementRef: elementRef, showMenu: optionMenuVisible, showDeleteConfirm: confirmTaskDeleteVisible, showTaskPreviewPane: showTaskPreviewPane, menuItems: optionButtons, popupRef: popupRef, confirmDialogMessage: localization.toLanguageString(taskBoardDeleteTaskDialogMessage, messages[taskBoardDeleteTaskDialogMessage]), confirmDialogTitle: localization.toLanguageString(taskBoardDeleteTaskDialogTitle, messages[taskBoardDeleteTaskDialogTitle]), confirmDialogConfirmButton: localization.toLanguageString(taskBoardDeleteTaskConfirmButton, messages[taskBoardDeleteTaskConfirmButton]), confirmDialogCancelButton: localization.toLanguageString(taskBoardDeleteTaskCancelButton, messages[taskBoardDeleteTaskCancelButton]), previewDialogPriorityLabel: localization.toLanguageString(taskBoardPreviewPanePriorityLabel, messages[taskBoardPreviewPanePriorityLabel]), previewDialogDelete: localization.toLanguageString(taskBoardPreviewPaneDeleteBtn, messages[taskBoardPreviewPaneDeleteBtn]), previewDialogEdit: localization.toLanguageString(taskBoardPreviewPaneEditBtn, messages[taskBoardPreviewPaneEditBtn]), onShowPreviewPane: onShowTaskPreviewPane, onClosePreviewPane: onClosePreviewPane, onMenuItemSelect: handleSelect, onShowMenu: onShowMenu, onHideMenu: onHideMenu, onMenuButtonBlur: onMenuButtonBlur, onTaskDelete: onDeleteTask, onTaskEdit: onTaskEdit, onCloseConfirmDialog: closeConfirmDialog, card: Card, cardHeader: TaskBoardCardHeader, cardBody: TaskBoardCardBody, confirmDialog: TaskBoardConfirmDialog, previewDialog: TaskBoardPreviewDialog }));
|
|
81
86
|
};
|
|
82
87
|
var defaultProps = {};
|
|
83
88
|
TaskBoardCardBase.propTypes = {
|
|
@@ -4,6 +4,8 @@ import { TaskBoardColumnProps } from './column/Column';
|
|
|
4
4
|
import { TaskBoardColumnModel, TaskBoardPriority, TaskBoardTaskModel } from './TaskBoard';
|
|
5
5
|
/**
|
|
6
6
|
* Represents the props of the TaskBoardColumnBase component
|
|
7
|
+
*
|
|
8
|
+
* @hidden
|
|
7
9
|
*/
|
|
8
10
|
export interface TaskBoardColumnBaseProps {
|
|
9
11
|
/**
|
|
@@ -64,6 +66,8 @@ export interface TaskBoardColumnBaseProps {
|
|
|
64
66
|
}
|
|
65
67
|
/**
|
|
66
68
|
* Represents the TaskBoardColumnBase component.
|
|
69
|
+
*
|
|
70
|
+
* @hidden
|
|
67
71
|
*/
|
|
68
72
|
export declare const TaskBoardColumnBase: {
|
|
69
73
|
(props: TaskBoardColumnBaseProps): JSX.Element;
|
|
@@ -22,6 +22,8 @@ import { TaskBoardAddCard } from './TaskBoardAddCard';
|
|
|
22
22
|
import { TaskBoardCardBase } from './TaskBoardCardBase';
|
|
23
23
|
/**
|
|
24
24
|
* Represents the TaskBoardColumnBase component.
|
|
25
|
+
*
|
|
26
|
+
* @hidden
|
|
25
27
|
*/
|
|
26
28
|
export var TaskBoardColumnBase = function (props) {
|
|
27
29
|
var _a;
|
|
@@ -77,7 +79,7 @@ export var TaskBoardColumnBase = function (props) {
|
|
|
77
79
|
var height = dragTargetRef.current ? dragTargetRef.current.height : 0;
|
|
78
80
|
return (React.createElement("div", __assign({ style: { width: width, height: height }, className: 'k-taskboard-column k-taskboard-drag-placeholder' }, (_a = {}, _a[TASKBOARD_PLACEHOLDER] = true, _a))));
|
|
79
81
|
}
|
|
80
|
-
return (React.createElement(props.columnComponent, { column: props.column, tasks: tasks, priorities: props.priorities, style: Boolean(dragTargetRef) ? __assign({ overflow: 'visible' }, style) : style, tabIndex: props.tabIndex, elementRef: elementRef,
|
|
82
|
+
return (React.createElement(props.columnComponent, { column: props.column, tasks: tasks, priorities: props.priorities, style: Boolean(dragTargetRef) ? __assign({ overflow: 'visible' }, style) : style, tabIndex: props.tabIndex, elementRef: elementRef, onTaskCreate: onNewTask, onTaskEdit: editTask, onTaskDelete: deleteTask, card: props.cardComponent, header: TaskBoardColumnHeader, body: TaskBoardColumnBody, confirmDialog: TaskBoardConfirmDialog, editCardDialog: TaskBoardEditCard, addCardDialog: TaskBoardAddCard, onTitleChange: onTitleChange, onColumnEnterEdit: onColumnEnterEdit, onColumnExitEdit: onColumnExitEdit, onColumnConfirmDelete: onConfirmColumnDelete, onShowAddCardDialog: showAddCardDialog, onShowEditCardPane: showEditCardPane, onColumnDelete: onColumnDelete, onCloseDialog: hideCloseModal, showAddCard: addCard, showEditCard: editCardPane, showColumnConfirmDelete: confirmColumnDeleteVisible, editedTask: taskToEdit, confirmDialogMessage: localization.toLanguageString(taskBoardDelColumnDialogMsg, messages[taskBoardDelColumnDialogMsg]), confirmDialogTitle: localization.toLanguageString(taskBoardDelColumnDialogTitle, messages[taskBoardDelColumnDialogTitle]), confirmDialogConfirmButton: localization.toLanguageString(taskBoardDelColumnConfirmBtn, messages[taskBoardDelColumnConfirmBtn]), confirmDialogCancelButton: localization.toLanguageString(taskBoardDelColumnCancelBtn, messages[taskBoardDelColumnCancelBtn]), editButtonTitle: localization.toLanguageString(taskBoardEditColumnButton, messages[taskBoardEditColumnButton]), addButtonTitle: localization.toLanguageString(taskBoardAddCardButton, messages[taskBoardAddCardButton]), closeButtonTitle: localization.toLanguageString(taskBoardDeleteColumnButton, messages[taskBoardDeleteColumnButton]) }, tasks && tasks.map(function (task) {
|
|
81
83
|
return (React.createElement(TaskBoardCardBase, { key: task.id, tabIndex: props.tabIndex, task: task, disabled: Boolean(props.column.edit), onDeleteTask: function () { return deleteTask(task); }, showEditPane: function () { return showEditCardPane(task); }, dragTargetRef: props.dragTargetRef, style: { borderLeftColor: task.priority.color }, cardComponent: props.cardComponent }));
|
|
82
84
|
})));
|
|
83
85
|
};
|
|
@@ -20,13 +20,13 @@ export interface TaskBoardConfirmDialogProps {
|
|
|
20
20
|
*/
|
|
21
21
|
dialogCancelButton: React.ReactNode;
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* The Close Button click event handler of the TaskBoardConfirmDialog component.
|
|
24
24
|
*/
|
|
25
|
-
onClose: () => void;
|
|
25
|
+
onClose: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* The Confirm Button click event handler of the TaskBoardConfirmDialog component.
|
|
28
28
|
*/
|
|
29
|
-
onConfirm: () => void;
|
|
29
|
+
onConfirm: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
30
30
|
}
|
|
31
31
|
/**
|
|
32
32
|
* Represents the TaskBoardConfirmDialog component.
|
|
@@ -63,13 +63,13 @@ export interface TaskBoardTaskEditPaneProps {
|
|
|
63
63
|
*/
|
|
64
64
|
description: string;
|
|
65
65
|
/**
|
|
66
|
-
* Fires
|
|
66
|
+
* Fires when Save button is clicked.
|
|
67
67
|
*/
|
|
68
|
-
onSave: () => void;
|
|
68
|
+
onSave: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
69
69
|
/**
|
|
70
|
-
* Fires
|
|
70
|
+
* Fires when Cancel button is clicked.
|
|
71
71
|
*/
|
|
72
|
-
onClose: () => void;
|
|
72
|
+
onClose: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
73
73
|
/**
|
|
74
74
|
* Fires when a title is changed.
|
|
75
75
|
*/
|
package/dist/es/card/Card.d.ts
CHANGED
|
@@ -35,11 +35,11 @@ export interface TaskBoardCardProps {
|
|
|
35
35
|
*/
|
|
36
36
|
showMenu: boolean;
|
|
37
37
|
/**
|
|
38
|
-
* Determines the visibility of the delete
|
|
38
|
+
* Determines the visibility of the task's delete confirmation dialog.
|
|
39
39
|
*/
|
|
40
40
|
showDeleteConfirm: boolean;
|
|
41
41
|
/**
|
|
42
|
-
* Determines the visibility of the
|
|
42
|
+
* Determines the visibility of the task's preview pane.
|
|
43
43
|
*/
|
|
44
44
|
showTaskPreviewPane: boolean;
|
|
45
45
|
/**
|
|
@@ -51,23 +51,23 @@ export interface TaskBoardCardProps {
|
|
|
51
51
|
*/
|
|
52
52
|
popupRef: React.RefObject<Popup>;
|
|
53
53
|
/**
|
|
54
|
-
* Represents the
|
|
54
|
+
* Represents the content of the TaskBoardConfirmDialog component.
|
|
55
55
|
*/
|
|
56
56
|
confirmDialogMessage: React.ReactNode;
|
|
57
57
|
/**
|
|
58
|
-
* Represents the
|
|
58
|
+
* Represents the title of the TaskBoardConfirmDialog component.
|
|
59
59
|
*/
|
|
60
60
|
confirmDialogTitle: string;
|
|
61
61
|
/**
|
|
62
|
-
* Represents the
|
|
62
|
+
* Represents the content of the confirm button of the TaskBoardConfirmDialog component.
|
|
63
63
|
*/
|
|
64
64
|
confirmDialogConfirmButton: React.ReactNode;
|
|
65
65
|
/**
|
|
66
|
-
* Represents the cancel
|
|
66
|
+
* Represents the content of the cancel button of the TaskBoardConfirmDialog component.
|
|
67
67
|
*/
|
|
68
68
|
confirmDialogCancelButton: React.ReactNode;
|
|
69
69
|
/**
|
|
70
|
-
* Represents the preview dialog
|
|
70
|
+
* Represents the priority label in the preview dialog.
|
|
71
71
|
*/
|
|
72
72
|
previewDialogPriorityLabel: string;
|
|
73
73
|
/**
|
|
@@ -79,37 +79,41 @@ export interface TaskBoardCardProps {
|
|
|
79
79
|
*/
|
|
80
80
|
previewDialogEdit: React.ReactNode;
|
|
81
81
|
/**
|
|
82
|
-
* Fires
|
|
82
|
+
* Fires when the preview pane needs to be shown.
|
|
83
83
|
*/
|
|
84
|
-
onShowPreviewPane: () => void;
|
|
84
|
+
onShowPreviewPane: (event: React.MouseEvent<HTMLElement>) => void;
|
|
85
|
+
/**
|
|
86
|
+
* Fires when the preview pane needs to be closed.
|
|
87
|
+
*/
|
|
88
|
+
onClosePreviewPane: (event: React.MouseEvent<HTMLElement>) => void;
|
|
85
89
|
/**
|
|
86
90
|
* Fires on menu item selection.
|
|
87
91
|
*/
|
|
88
92
|
onMenuItemSelect: (event: MenuSelectEvent) => void;
|
|
89
93
|
/**
|
|
90
|
-
* Fires when the menu
|
|
94
|
+
* Fires when the menu needs to be shown.
|
|
91
95
|
*/
|
|
92
|
-
onShowMenu: () => void;
|
|
96
|
+
onShowMenu: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
93
97
|
/**
|
|
94
|
-
* Fires when the menu
|
|
98
|
+
* Fires when the menu needs to be hidden.
|
|
95
99
|
*/
|
|
96
|
-
onHideMenu: () => void;
|
|
100
|
+
onHideMenu: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
97
101
|
/**
|
|
98
102
|
* Fires on blur of the menu button.
|
|
99
103
|
*/
|
|
100
104
|
onMenuButtonBlur: (event: React.FocusEvent<HTMLButtonElement>) => void;
|
|
101
105
|
/**
|
|
102
|
-
* Fires when task is
|
|
106
|
+
* Fires when task's delete button is clicked.
|
|
103
107
|
*/
|
|
104
|
-
onTaskDelete: () => void;
|
|
108
|
+
onTaskDelete: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
105
109
|
/**
|
|
106
|
-
* Fires when task is
|
|
110
|
+
* Fires when task's edit button is clicked.
|
|
107
111
|
*/
|
|
108
|
-
onTaskEdit: () => void;
|
|
112
|
+
onTaskEdit: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
109
113
|
/**
|
|
110
|
-
*
|
|
114
|
+
* The Close Button click event handler of the TaskBoardConfirmDialog component.
|
|
111
115
|
*/
|
|
112
|
-
onCloseConfirmDialog: () => void;
|
|
116
|
+
onCloseConfirmDialog: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
113
117
|
/**
|
|
114
118
|
* Represents the Card component.
|
|
115
119
|
*/
|
package/dist/es/card/Card.js
CHANGED
|
@@ -28,6 +28,6 @@ export var TaskBoardCard = function (props) {
|
|
|
28
28
|
React.createElement(props.cardHeader, { showMenu: props.showMenu, menuItems: props.menuItems, popupRef: props.popupRef, title: props.task.title, task: props.task, onShowPreviewPane: props.onShowPreviewPane, onShowMenu: props.onShowMenu, onHideMenu: props.onHideMenu, onMenuButtonBlur: props.onMenuButtonBlur, onMenuItemSelect: props.onMenuItemSelect }),
|
|
29
29
|
React.createElement(props.cardBody, { task: props.task }, props.task.description)),
|
|
30
30
|
props.showDeleteConfirm && (React.createElement(props.confirmDialog, { onConfirm: props.onTaskDelete, onClose: props.onCloseConfirmDialog, dialogMessage: props.confirmDialogMessage, dialogTitle: props.confirmDialogTitle, dialogConfirmButton: props.confirmDialogConfirmButton, dialogCancelButton: props.confirmDialogCancelButton })),
|
|
31
|
-
props.showTaskPreviewPane && (React.createElement(props.previewDialog, { title: props.task.title, description: props.task.description, priorityLabel: props.previewDialogPriorityLabel, delete: props.previewDialogDelete, edit: props.previewDialogEdit,
|
|
31
|
+
props.showTaskPreviewPane && (React.createElement(props.previewDialog, { title: props.task.title, description: props.task.description, priorityLabel: props.previewDialogPriorityLabel, delete: props.previewDialogDelete, edit: props.previewDialogEdit, onClosePreviewPane: props.onClosePreviewPane, onTaskDelete: props.onTaskDelete, onTaskEdit: props.onTaskEdit, priority: props.task.priority }))));
|
|
32
32
|
};
|
|
33
33
|
TaskBoardCard.displayName = 'KendoReactTaskBoardCard';
|
|
@@ -27,17 +27,17 @@ export interface TaskBoardCardHeaderProps {
|
|
|
27
27
|
*/
|
|
28
28
|
task: TaskBoardTaskModel;
|
|
29
29
|
/**
|
|
30
|
-
* Fires when the preview pane
|
|
30
|
+
* Fires when the preview pane needs to be shown.
|
|
31
31
|
*/
|
|
32
|
-
onShowPreviewPane: () => void;
|
|
32
|
+
onShowPreviewPane: (event: React.MouseEvent<HTMLElement>) => void;
|
|
33
33
|
/**
|
|
34
|
-
* Fires when the menu
|
|
34
|
+
* Fires when the menu needs to be shown.
|
|
35
35
|
*/
|
|
36
|
-
onShowMenu: () => void;
|
|
36
|
+
onShowMenu: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
37
37
|
/**
|
|
38
|
-
* Fires when the menu
|
|
38
|
+
* Fires when the menu needs to be hidden.
|
|
39
39
|
*/
|
|
40
|
-
onHideMenu: () => void;
|
|
40
|
+
onHideMenu: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
41
41
|
/**
|
|
42
42
|
* Fires on blur of the menu button.
|
|
43
43
|
*/
|
|
@@ -17,29 +17,29 @@ export interface TaskBoardPreviewDialogProps {
|
|
|
17
17
|
*/
|
|
18
18
|
priorityLabel: React.ReactNode;
|
|
19
19
|
/**
|
|
20
|
-
* Determines the delete
|
|
20
|
+
* Determines the content of the delete button.
|
|
21
21
|
*/
|
|
22
22
|
delete: React.ReactNode;
|
|
23
23
|
/**
|
|
24
|
-
* Determines the edit
|
|
24
|
+
* Determines the content of the edit button.
|
|
25
25
|
*/
|
|
26
26
|
edit: React.ReactNode;
|
|
27
27
|
/**
|
|
28
|
-
* Represents the priority of the task
|
|
28
|
+
* Represents the priority of the current task.
|
|
29
29
|
*/
|
|
30
30
|
priority: TaskBoardPriority;
|
|
31
31
|
/**
|
|
32
|
-
* Fires when
|
|
32
|
+
* Fires when the preview pane needs to be shown.
|
|
33
33
|
*/
|
|
34
|
-
|
|
34
|
+
onClosePreviewPane: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
35
35
|
/**
|
|
36
36
|
* Fires when task is deleted.
|
|
37
37
|
*/
|
|
38
|
-
|
|
38
|
+
onTaskDelete: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
39
39
|
/**
|
|
40
40
|
* Fires when task is edited.
|
|
41
41
|
*/
|
|
42
|
-
onTaskEdit: () => void;
|
|
42
|
+
onTaskEdit: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
43
43
|
}
|
|
44
44
|
/**
|
|
45
45
|
* Represents the TaskBoardPreviewDialog component.
|
|
@@ -9,7 +9,7 @@ export var TaskBoardPreviewDialog = function (props) {
|
|
|
9
9
|
React.createElement("div", { className: 'k-taskboard-pane-header-text' }, props.title),
|
|
10
10
|
React.createElement("span", { className: "k-spacer" }),
|
|
11
11
|
React.createElement("div", { className: "k-taskboard-pane-header-actions" },
|
|
12
|
-
React.createElement(Button, { icon: 'close', fillMode: "flat", onClick: props.
|
|
12
|
+
React.createElement(Button, { icon: 'close', fillMode: "flat", onClick: props.onClosePreviewPane }))),
|
|
13
13
|
React.createElement("div", { className: "k-taskboard-pane-content" },
|
|
14
14
|
React.createElement("p", null, props.description),
|
|
15
15
|
React.createElement("p", null,
|
|
@@ -19,7 +19,7 @@ export var TaskBoardPreviewDialog = function (props) {
|
|
|
19
19
|
"\u00A0",
|
|
20
20
|
props.priority.priority)),
|
|
21
21
|
React.createElement("div", { className: "k-taskboard-pane-actions k-actions k-hstack k-justify-content-end" },
|
|
22
|
-
React.createElement(Button, { onClick: props.
|
|
22
|
+
React.createElement(Button, { onClick: props.onTaskDelete }, props.delete),
|
|
23
23
|
React.createElement(Button, { themeColor: 'primary', onClick: props.onTaskEdit }, props.edit))));
|
|
24
24
|
};
|
|
25
25
|
TaskBoardPreviewDialog.displayName = 'KendoReactTaskBoardPreviewDialog';
|
|
@@ -35,13 +35,6 @@ export interface TaskBoardColumnProps {
|
|
|
35
35
|
* Represents the reference of the element.
|
|
36
36
|
*/
|
|
37
37
|
elementRef?: React.RefObject<HTMLDivElement>;
|
|
38
|
-
/**
|
|
39
|
-
* Represents the reference of the drag target.
|
|
40
|
-
*/
|
|
41
|
-
dragTargetRef?: React.RefObject<{
|
|
42
|
-
width: number;
|
|
43
|
-
height: number;
|
|
44
|
-
}>;
|
|
45
38
|
/**
|
|
46
39
|
* Determines the visibility of the add card.
|
|
47
40
|
*/
|
|
@@ -109,19 +102,19 @@ export interface TaskBoardColumnProps {
|
|
|
109
102
|
/**
|
|
110
103
|
* Fires when column enters edit.
|
|
111
104
|
*/
|
|
112
|
-
onColumnEnterEdit: () => void;
|
|
105
|
+
onColumnEnterEdit: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
113
106
|
/**
|
|
114
107
|
* Fires when column exits edit.
|
|
115
108
|
*/
|
|
116
|
-
onColumnExitEdit: () => void;
|
|
109
|
+
onColumnExitEdit: (event: React.FocusEvent<HTMLInputElement>) => void;
|
|
117
110
|
/**
|
|
118
111
|
* Fires on confirmation of column deletion.
|
|
119
112
|
*/
|
|
120
|
-
onColumnConfirmDelete: () => void;
|
|
113
|
+
onColumnConfirmDelete: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
121
114
|
/**
|
|
122
115
|
* Fires when the add card dialog is shown.
|
|
123
116
|
*/
|
|
124
|
-
onShowAddCardDialog: () => void;
|
|
117
|
+
onShowAddCardDialog: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
125
118
|
/**
|
|
126
119
|
* Fires when the edit card pane is shown.
|
|
127
120
|
*/
|
|
@@ -129,11 +122,11 @@ export interface TaskBoardColumnProps {
|
|
|
129
122
|
/**
|
|
130
123
|
* Fires on column deletion.
|
|
131
124
|
*/
|
|
132
|
-
onColumnDelete: () => void;
|
|
125
|
+
onColumnDelete: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
133
126
|
/**
|
|
134
|
-
*
|
|
127
|
+
* The Close Button click event handler of the TaskBoardConfirmDialog component.
|
|
135
128
|
*/
|
|
136
|
-
onCloseDialog: () => void;
|
|
129
|
+
onCloseDialog: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
137
130
|
/**
|
|
138
131
|
* Represents the TaskBoardCard component.
|
|
139
132
|
*/
|
package/dist/es/column/Column.js
CHANGED
|
@@ -26,7 +26,7 @@ export var TaskBoardColumn = function (props) {
|
|
|
26
26
|
_a[TASKBOARD_ITEM_ID] = props.column.id,
|
|
27
27
|
_a)),
|
|
28
28
|
React.createElement(props.header, { column: props.column, tasks: props.tasks, onTitleChange: props.onTitleChange, onColumnExitEdit: props.onColumnExitEdit, editButtonTitle: props.editButtonTitle, onColumnEnterEdit: props.onColumnEnterEdit, addButtonTitle: props.addButtonTitle, onShowAddCardDialog: props.onShowAddCardDialog, closeButtonTitle: props.closeButtonTitle, onColumnDelete: props.onColumnDelete }),
|
|
29
|
-
React.createElement(props.body,
|
|
29
|
+
React.createElement(props.body, null, props.children)),
|
|
30
30
|
props.showAddCard && (React.createElement(props.addCardDialog, { onClose: props.onCloseDialog, onSave: props.onTaskCreate, priorities: props.priorities, editPane: TaskBoardTaskEditPane })),
|
|
31
31
|
props.showEditCard && props.editedTask && (React.createElement(props.editCardDialog, { onClose: props.onCloseDialog, onSave: props.onTaskEdit, task: props.editedTask, priorities: props.priorities, editPane: TaskBoardTaskEditPane })),
|
|
32
32
|
props.showColumnConfirmDelete && (React.createElement(props.confirmDialog, { onClose: props.onColumnDelete, onConfirm: props.onColumnConfirmDelete, dialogMessage: props.confirmDialogMessage, dialogTitle: props.confirmDialogTitle, dialogConfirmButton: props.confirmDialogConfirmButton, dialogCancelButton: props.confirmDialogCancelButton }))));
|
|
@@ -1,41 +1,12 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { TaskBoardCardProps } from '../card/Card';
|
|
3
|
-
import { TaskBoardColumnModel, TaskBoardTaskModel } from '../TaskBoard';
|
|
4
2
|
/**
|
|
5
3
|
* Represents the props of the TaskBoardColumnBody component
|
|
6
4
|
*/
|
|
7
5
|
export interface TaskBoardColumnBodyProps {
|
|
8
|
-
/**
|
|
9
|
-
* The rendered column.
|
|
10
|
-
*/
|
|
11
|
-
column: TaskBoardColumnModel;
|
|
12
|
-
/**
|
|
13
|
-
* The rendered tasks.
|
|
14
|
-
*/
|
|
15
|
-
tasks: TaskBoardTaskModel[];
|
|
16
6
|
/**
|
|
17
7
|
* Determines the children nodes.
|
|
18
8
|
*/
|
|
19
9
|
children: React.ReactNode;
|
|
20
|
-
/**
|
|
21
|
-
* Represents the drag target reference.
|
|
22
|
-
*/
|
|
23
|
-
dragTargetRef?: React.RefObject<{
|
|
24
|
-
width: number;
|
|
25
|
-
height: number;
|
|
26
|
-
}>;
|
|
27
|
-
/**
|
|
28
|
-
* The event that is fired when a task is deleted.
|
|
29
|
-
*/
|
|
30
|
-
onTaskDelete: (task: TaskBoardTaskModel) => void;
|
|
31
|
-
/**
|
|
32
|
-
* The event that is fired when a task is edited.
|
|
33
|
-
*/
|
|
34
|
-
onShowEditCardPane: (task: TaskBoardTaskModel) => void;
|
|
35
|
-
/**
|
|
36
|
-
* Represents the TaskBoardCard component.
|
|
37
|
-
*/
|
|
38
|
-
card: React.ComponentType<TaskBoardCardProps>;
|
|
39
10
|
}
|
|
40
11
|
/**
|
|
41
12
|
* Represents the TaskBoardColumnBody component.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import { InputChangeEvent } from '@progress/kendo-react-inputs';
|
|
3
3
|
import { TaskBoardColumnModel, TaskBoardTaskModel } from '../TaskBoard';
|
|
4
4
|
/**
|
|
@@ -32,19 +32,19 @@ export interface TaskBoardColumnHeaderProps {
|
|
|
32
32
|
/**
|
|
33
33
|
* The event that is fired when a column enters edit mode.
|
|
34
34
|
*/
|
|
35
|
-
onColumnEnterEdit: () => void;
|
|
35
|
+
onColumnEnterEdit: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
36
36
|
/**
|
|
37
37
|
* The event that is fired when a column exits edit mode.
|
|
38
38
|
*/
|
|
39
|
-
onColumnExitEdit: () => void;
|
|
39
|
+
onColumnExitEdit: (event: React.FocusEvent<HTMLInputElement>) => void;
|
|
40
40
|
/**
|
|
41
41
|
* The event that is fired when a add card dialog is shown.
|
|
42
42
|
*/
|
|
43
|
-
onShowAddCardDialog: () => void;
|
|
43
|
+
onShowAddCardDialog: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
44
44
|
/**
|
|
45
45
|
* The event that is fired when a column is deleted.
|
|
46
46
|
*/
|
|
47
|
-
onColumnDelete: () => void;
|
|
47
|
+
onColumnDelete: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
48
48
|
}
|
|
49
49
|
/**
|
|
50
50
|
* Represents the TaskBoardColumnHeader component.
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
1
2
|
import { DropDownListChangeEvent } from '@progress/kendo-react-dropdowns';
|
|
2
3
|
import { InputChangeEvent } from '@progress/kendo-react-inputs';
|
|
3
4
|
import { TaskBoardPriority, TaskBoardTaskModel } from '../TaskBoard';
|
|
@@ -8,7 +9,7 @@ export interface TaskEditingResult {
|
|
|
8
9
|
description: string;
|
|
9
10
|
onPriorityChange: (event: DropDownListChangeEvent) => void;
|
|
10
11
|
priority: TaskBoardPriority;
|
|
11
|
-
onSave: () => void;
|
|
12
|
+
onSave: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
12
13
|
}
|
|
13
14
|
export interface TaskEditingProps {
|
|
14
15
|
task?: TaskBoardTaskModel;
|
|
@@ -24,7 +24,7 @@ export var useTaskEditing = function (_a) {
|
|
|
24
24
|
var onPriorityChange = React.useCallback(function (event) {
|
|
25
25
|
setPriority(event.target.value);
|
|
26
26
|
}, []);
|
|
27
|
-
var onSaveIn = React.useCallback(function () {
|
|
27
|
+
var onSaveIn = React.useCallback(function (_event) {
|
|
28
28
|
var nextTask = __assign({ id: undefined, status: '' }, (task || {}), { title: title, description: description, priority: priority });
|
|
29
29
|
onSave.call(undefined, nextTask, task);
|
|
30
30
|
}, [onSave, task, title, description, priority]);
|
|
@@ -5,7 +5,7 @@ export var packageMetadata = {
|
|
|
5
5
|
name: '@progress/kendo-react-taskboard',
|
|
6
6
|
productName: 'KendoReact',
|
|
7
7
|
productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
|
|
8
|
-
publishDate:
|
|
8
|
+
publishDate: 1652427600,
|
|
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
|
};
|
|
@@ -12,7 +12,7 @@ export interface TaskBoardAddCardProps {
|
|
|
12
12
|
/**
|
|
13
13
|
* Triggered on `onClose` event of the TaskBoardAddCard.
|
|
14
14
|
*/
|
|
15
|
-
onClose: () => void;
|
|
15
|
+
onClose: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
16
16
|
/**
|
|
17
17
|
* Triggered on `onSave` event of the TaskBoardAddCard.
|
|
18
18
|
*/
|
|
@@ -4,6 +4,8 @@ import { TaskBoardCardProps } from './card/Card';
|
|
|
4
4
|
import { TaskBoardTaskModel } from './TaskBoard';
|
|
5
5
|
/**
|
|
6
6
|
* Represents the props of the TaskBoardCardBase component
|
|
7
|
+
*
|
|
8
|
+
* @hidden
|
|
7
9
|
*/
|
|
8
10
|
export interface TaskBoardCardBaseProps {
|
|
9
11
|
/**
|
|
@@ -48,6 +50,8 @@ export interface TaskBoardCardBaseProps {
|
|
|
48
50
|
}
|
|
49
51
|
/**
|
|
50
52
|
* Represents the TaskBoardCardBase component.
|
|
53
|
+
*
|
|
54
|
+
* @hidden
|
|
51
55
|
*/
|
|
52
56
|
export declare const TaskBoardCardBase: {
|
|
53
57
|
(props: TaskBoardCardBaseProps): JSX.Element;
|
|
@@ -23,6 +23,8 @@ var TaskBoardConfirmDialog_1 = require("./TaskBoardConfirmDialog");
|
|
|
23
23
|
var PreviewDialog_1 = require("./card/PreviewDialog");
|
|
24
24
|
/**
|
|
25
25
|
* Represents the TaskBoardCardBase component.
|
|
26
|
+
*
|
|
27
|
+
* @hidden
|
|
26
28
|
*/
|
|
27
29
|
exports.TaskBoardCardBase = function (props) {
|
|
28
30
|
var _a;
|
|
@@ -70,7 +72,10 @@ exports.TaskBoardCardBase = function (props) {
|
|
|
70
72
|
setConfirmTaskDeleteVisible(!confirmTaskDeleteVisible);
|
|
71
73
|
};
|
|
72
74
|
var onShowTaskPreviewPane = function () {
|
|
73
|
-
setShowTaskPreviewPane(
|
|
75
|
+
setShowTaskPreviewPane(true);
|
|
76
|
+
};
|
|
77
|
+
var onClosePreviewPane = function () {
|
|
78
|
+
setShowTaskPreviewPane(false);
|
|
74
79
|
};
|
|
75
80
|
var onTaskEdit = function () {
|
|
76
81
|
showEditPane(task);
|
|
@@ -79,7 +84,7 @@ exports.TaskBoardCardBase = function (props) {
|
|
|
79
84
|
if (task.isPlaceholder && dragTargetRef && dragTargetRef.current) {
|
|
80
85
|
return (React.createElement("div", __assign({ style: { width: dragTargetRef.current.width, height: dragTargetRef.current.height }, className: 'k-taskboard-drag-placeholder' }, (_a = {}, _a[constants_1.TASKBOARD_PLACEHOLDER] = true, _a))));
|
|
81
86
|
}
|
|
82
|
-
return (React.createElement(props.cardComponent, { task: task, style: style, tabIndex: props.tabIndex, disabled: props.disabled, elementRef: elementRef, showMenu: optionMenuVisible, showDeleteConfirm: confirmTaskDeleteVisible, showTaskPreviewPane: showTaskPreviewPane, menuItems: optionButtons, popupRef: popupRef, confirmDialogMessage: localization.toLanguageString(messages_1.taskBoardDeleteTaskDialogMessage, messages_1.messages[messages_1.taskBoardDeleteTaskDialogMessage]), confirmDialogTitle: localization.toLanguageString(messages_1.taskBoardDeleteTaskDialogTitle, messages_1.messages[messages_1.taskBoardDeleteTaskDialogTitle]), confirmDialogConfirmButton: localization.toLanguageString(messages_1.taskBoardDeleteTaskConfirmButton, messages_1.messages[messages_1.taskBoardDeleteTaskConfirmButton]), confirmDialogCancelButton: localization.toLanguageString(messages_1.taskBoardDeleteTaskCancelButton, messages_1.messages[messages_1.taskBoardDeleteTaskCancelButton]), previewDialogPriorityLabel: localization.toLanguageString(messages_1.taskBoardPreviewPanePriorityLabel, messages_1.messages[messages_1.taskBoardPreviewPanePriorityLabel]), previewDialogDelete: localization.toLanguageString(messages_1.taskBoardPreviewPaneDeleteBtn, messages_1.messages[messages_1.taskBoardPreviewPaneDeleteBtn]), previewDialogEdit: localization.toLanguageString(messages_1.taskBoardPreviewPaneEditBtn, messages_1.messages[messages_1.taskBoardPreviewPaneEditBtn]), onShowPreviewPane: onShowTaskPreviewPane, onMenuItemSelect: handleSelect, onShowMenu: onShowMenu, onHideMenu: onHideMenu, onMenuButtonBlur: onMenuButtonBlur, onTaskDelete: onDeleteTask, onTaskEdit: onTaskEdit, onCloseConfirmDialog: closeConfirmDialog, card: kendo_react_layout_1.Card, cardHeader: CardHeader_1.TaskBoardCardHeader, cardBody: CardBody_1.TaskBoardCardBody, confirmDialog: TaskBoardConfirmDialog_1.TaskBoardConfirmDialog, previewDialog: PreviewDialog_1.TaskBoardPreviewDialog }));
|
|
87
|
+
return (React.createElement(props.cardComponent, { task: task, style: style, tabIndex: props.tabIndex, disabled: props.disabled, elementRef: elementRef, showMenu: optionMenuVisible, showDeleteConfirm: confirmTaskDeleteVisible, showTaskPreviewPane: showTaskPreviewPane, menuItems: optionButtons, popupRef: popupRef, confirmDialogMessage: localization.toLanguageString(messages_1.taskBoardDeleteTaskDialogMessage, messages_1.messages[messages_1.taskBoardDeleteTaskDialogMessage]), confirmDialogTitle: localization.toLanguageString(messages_1.taskBoardDeleteTaskDialogTitle, messages_1.messages[messages_1.taskBoardDeleteTaskDialogTitle]), confirmDialogConfirmButton: localization.toLanguageString(messages_1.taskBoardDeleteTaskConfirmButton, messages_1.messages[messages_1.taskBoardDeleteTaskConfirmButton]), confirmDialogCancelButton: localization.toLanguageString(messages_1.taskBoardDeleteTaskCancelButton, messages_1.messages[messages_1.taskBoardDeleteTaskCancelButton]), previewDialogPriorityLabel: localization.toLanguageString(messages_1.taskBoardPreviewPanePriorityLabel, messages_1.messages[messages_1.taskBoardPreviewPanePriorityLabel]), previewDialogDelete: localization.toLanguageString(messages_1.taskBoardPreviewPaneDeleteBtn, messages_1.messages[messages_1.taskBoardPreviewPaneDeleteBtn]), previewDialogEdit: localization.toLanguageString(messages_1.taskBoardPreviewPaneEditBtn, messages_1.messages[messages_1.taskBoardPreviewPaneEditBtn]), onShowPreviewPane: onShowTaskPreviewPane, onClosePreviewPane: onClosePreviewPane, onMenuItemSelect: handleSelect, onShowMenu: onShowMenu, onHideMenu: onHideMenu, onMenuButtonBlur: onMenuButtonBlur, onTaskDelete: onDeleteTask, onTaskEdit: onTaskEdit, onCloseConfirmDialog: closeConfirmDialog, card: kendo_react_layout_1.Card, cardHeader: CardHeader_1.TaskBoardCardHeader, cardBody: CardBody_1.TaskBoardCardBody, confirmDialog: TaskBoardConfirmDialog_1.TaskBoardConfirmDialog, previewDialog: PreviewDialog_1.TaskBoardPreviewDialog }));
|
|
83
88
|
};
|
|
84
89
|
var defaultProps = {};
|
|
85
90
|
exports.TaskBoardCardBase.propTypes = {
|
|
@@ -4,6 +4,8 @@ import { TaskBoardColumnProps } from './column/Column';
|
|
|
4
4
|
import { TaskBoardColumnModel, TaskBoardPriority, TaskBoardTaskModel } from './TaskBoard';
|
|
5
5
|
/**
|
|
6
6
|
* Represents the props of the TaskBoardColumnBase component
|
|
7
|
+
*
|
|
8
|
+
* @hidden
|
|
7
9
|
*/
|
|
8
10
|
export interface TaskBoardColumnBaseProps {
|
|
9
11
|
/**
|
|
@@ -64,6 +66,8 @@ export interface TaskBoardColumnBaseProps {
|
|
|
64
66
|
}
|
|
65
67
|
/**
|
|
66
68
|
* Represents the TaskBoardColumnBase component.
|
|
69
|
+
*
|
|
70
|
+
* @hidden
|
|
67
71
|
*/
|
|
68
72
|
export declare const TaskBoardColumnBase: {
|
|
69
73
|
(props: TaskBoardColumnBaseProps): JSX.Element;
|
|
@@ -24,6 +24,8 @@ var TaskBoardAddCard_1 = require("./TaskBoardAddCard");
|
|
|
24
24
|
var TaskBoardCardBase_1 = require("./TaskBoardCardBase");
|
|
25
25
|
/**
|
|
26
26
|
* Represents the TaskBoardColumnBase component.
|
|
27
|
+
*
|
|
28
|
+
* @hidden
|
|
27
29
|
*/
|
|
28
30
|
exports.TaskBoardColumnBase = function (props) {
|
|
29
31
|
var _a;
|
|
@@ -79,7 +81,7 @@ exports.TaskBoardColumnBase = function (props) {
|
|
|
79
81
|
var height = dragTargetRef.current ? dragTargetRef.current.height : 0;
|
|
80
82
|
return (React.createElement("div", __assign({ style: { width: width, height: height }, className: 'k-taskboard-column k-taskboard-drag-placeholder' }, (_a = {}, _a[constants_1.TASKBOARD_PLACEHOLDER] = true, _a))));
|
|
81
83
|
}
|
|
82
|
-
return (React.createElement(props.columnComponent, { column: props.column, tasks: tasks, priorities: props.priorities, style: Boolean(dragTargetRef) ? __assign({ overflow: 'visible' }, style) : style, tabIndex: props.tabIndex, elementRef: elementRef,
|
|
84
|
+
return (React.createElement(props.columnComponent, { column: props.column, tasks: tasks, priorities: props.priorities, style: Boolean(dragTargetRef) ? __assign({ overflow: 'visible' }, style) : style, tabIndex: props.tabIndex, elementRef: elementRef, onTaskCreate: onNewTask, onTaskEdit: editTask, onTaskDelete: deleteTask, card: props.cardComponent, header: ColumnHeader_1.TaskBoardColumnHeader, body: ColumnBody_1.TaskBoardColumnBody, confirmDialog: TaskBoardConfirmDialog_1.TaskBoardConfirmDialog, editCardDialog: TaskBoardEditCard_1.TaskBoardEditCard, addCardDialog: TaskBoardAddCard_1.TaskBoardAddCard, onTitleChange: onTitleChange, onColumnEnterEdit: onColumnEnterEdit, onColumnExitEdit: onColumnExitEdit, onColumnConfirmDelete: onConfirmColumnDelete, onShowAddCardDialog: showAddCardDialog, onShowEditCardPane: showEditCardPane, onColumnDelete: onColumnDelete, onCloseDialog: hideCloseModal, showAddCard: addCard, showEditCard: editCardPane, showColumnConfirmDelete: confirmColumnDeleteVisible, editedTask: taskToEdit, confirmDialogMessage: localization.toLanguageString(messages_1.taskBoardDelColumnDialogMsg, messages_1.messages[messages_1.taskBoardDelColumnDialogMsg]), confirmDialogTitle: localization.toLanguageString(messages_1.taskBoardDelColumnDialogTitle, messages_1.messages[messages_1.taskBoardDelColumnDialogTitle]), confirmDialogConfirmButton: localization.toLanguageString(messages_1.taskBoardDelColumnConfirmBtn, messages_1.messages[messages_1.taskBoardDelColumnConfirmBtn]), confirmDialogCancelButton: localization.toLanguageString(messages_1.taskBoardDelColumnCancelBtn, messages_1.messages[messages_1.taskBoardDelColumnCancelBtn]), editButtonTitle: localization.toLanguageString(messages_1.taskBoardEditColumnButton, messages_1.messages[messages_1.taskBoardEditColumnButton]), addButtonTitle: localization.toLanguageString(messages_1.taskBoardAddCardButton, messages_1.messages[messages_1.taskBoardAddCardButton]), closeButtonTitle: localization.toLanguageString(messages_1.taskBoardDeleteColumnButton, messages_1.messages[messages_1.taskBoardDeleteColumnButton]) }, tasks && tasks.map(function (task) {
|
|
83
85
|
return (React.createElement(TaskBoardCardBase_1.TaskBoardCardBase, { key: task.id, tabIndex: props.tabIndex, task: task, disabled: Boolean(props.column.edit), onDeleteTask: function () { return deleteTask(task); }, showEditPane: function () { return showEditCardPane(task); }, dragTargetRef: props.dragTargetRef, style: { borderLeftColor: task.priority.color }, cardComponent: props.cardComponent }));
|
|
84
86
|
})));
|
|
85
87
|
};
|
|
@@ -20,13 +20,13 @@ export interface TaskBoardConfirmDialogProps {
|
|
|
20
20
|
*/
|
|
21
21
|
dialogCancelButton: React.ReactNode;
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* The Close Button click event handler of the TaskBoardConfirmDialog component.
|
|
24
24
|
*/
|
|
25
|
-
onClose: () => void;
|
|
25
|
+
onClose: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* The Confirm Button click event handler of the TaskBoardConfirmDialog component.
|
|
28
28
|
*/
|
|
29
|
-
onConfirm: () => void;
|
|
29
|
+
onConfirm: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
30
30
|
}
|
|
31
31
|
/**
|
|
32
32
|
* Represents the TaskBoardConfirmDialog component.
|