@progress/kendo-react-taskboard 13.3.0 → 13.4.0-develop.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/TaskBoard.d.ts +218 -0
- package/TaskBoardAddCard.d.ts +35 -0
- package/TaskBoardAddCard.mjs +16 -16
- package/TaskBoardCardBase.d.ts +66 -0
- package/TaskBoardCardBase.mjs +13 -13
- package/TaskBoardColumnBase.d.ts +82 -0
- package/TaskBoardColumnBase.mjs +12 -12
- package/TaskBoardConfirmDialog.d.ts +41 -0
- package/TaskBoardConfirmDialog.js +1 -1
- package/TaskBoardConfirmDialog.mjs +6 -6
- package/TaskBoardEditCard.d.ts +23 -0
- package/TaskBoardEditCard.mjs +16 -16
- package/TaskBoardTaskEditPane.d.ts +96 -0
- package/TaskBoardTaskEditPane.js +1 -1
- package/TaskBoardTaskEditPane.mjs +6 -6
- package/TaskBoardToolbar.d.ts +29 -0
- package/TaskBoardToolbar.js +1 -1
- package/TaskBoardToolbar.mjs +7 -7
- package/card/Card.d.ts +148 -0
- package/card/Card.mjs +3 -3
- package/card/CardBody.d.ts +26 -0
- package/card/CardHeader.d.ts +60 -0
- package/card/CardHeader.js +1 -1
- package/card/CardHeader.mjs +1 -2
- package/card/PreviewDialog.d.ts +54 -0
- package/card/PreviewDialog.js +1 -1
- package/card/PreviewDialog.mjs +1 -1
- package/column/Column.d.ts +165 -0
- package/column/Column.mjs +3 -3
- package/column/ColumnBody.d.ts +21 -0
- package/column/ColumnHeader.d.ts +59 -0
- package/constants.d.ts +27 -0
- package/dist/cdn/js/kendo-react-taskboard.js +1 -1
- package/hooks/taskEditing.d.ts +56 -0
- package/index.d.mts +14 -928
- package/index.d.ts +14 -928
- package/messages/index.d.ts +157 -0
- package/package-metadata.d.ts +12 -0
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +10 -16
- package/package.json +13 -13
- package/utils.d.ts +32 -0
package/TaskBoard.d.ts
ADDED
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { TaskBoardCardProps } from './card/Card.js';
|
|
9
|
+
import { TaskBoardColumnProps } from './column/Column.js';
|
|
10
|
+
import * as React from 'react';
|
|
11
|
+
/**
|
|
12
|
+
* Represent the target(props) of the TaskBoardHandle.
|
|
13
|
+
*/
|
|
14
|
+
export interface TaskBoardHandle {
|
|
15
|
+
/**
|
|
16
|
+
* The props values of the TackBoard.
|
|
17
|
+
*/
|
|
18
|
+
props: TaskBoardProps;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Represents the target of the TaskBoardPriority.
|
|
22
|
+
*/
|
|
23
|
+
export interface TaskBoardPriority {
|
|
24
|
+
/**
|
|
25
|
+
* Represents the priority of a TaskBoard.
|
|
26
|
+
*/
|
|
27
|
+
priority: string;
|
|
28
|
+
/**
|
|
29
|
+
* Represents the color of a TaskBoard.
|
|
30
|
+
*/
|
|
31
|
+
color: string;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Represent the item model.
|
|
35
|
+
*/
|
|
36
|
+
interface ItemModel {
|
|
37
|
+
/**
|
|
38
|
+
* Sets the `id` of an ItemModel.
|
|
39
|
+
*/
|
|
40
|
+
id: string | number | undefined;
|
|
41
|
+
/**
|
|
42
|
+
* Determines the title of an ItemModel.
|
|
43
|
+
*/
|
|
44
|
+
title: string;
|
|
45
|
+
/**
|
|
46
|
+
* Determines the status of an ItemModel.
|
|
47
|
+
*/
|
|
48
|
+
status: string;
|
|
49
|
+
/**
|
|
50
|
+
* Determines of an ItemModel is going to edited.
|
|
51
|
+
*/
|
|
52
|
+
edit?: boolean;
|
|
53
|
+
/**
|
|
54
|
+
* @hidden
|
|
55
|
+
*/
|
|
56
|
+
isPlaceholder?: boolean;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Represents the task board column model.
|
|
60
|
+
*/
|
|
61
|
+
export interface TaskBoardColumnModel extends ItemModel {
|
|
62
|
+
/**
|
|
63
|
+
* Determined the index of the TaskBoardTaskModel.
|
|
64
|
+
*/
|
|
65
|
+
index?: number;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Represents the task board task model.
|
|
69
|
+
*/
|
|
70
|
+
export interface TaskBoardTaskModel extends ItemModel {
|
|
71
|
+
/**
|
|
72
|
+
* Determined the description of the TaskBoardTaskModel.
|
|
73
|
+
*/
|
|
74
|
+
description: string;
|
|
75
|
+
/**
|
|
76
|
+
* Determined the priority of the TaskBoardTaskModel.
|
|
77
|
+
*/
|
|
78
|
+
priority: TaskBoardPriority;
|
|
79
|
+
/**
|
|
80
|
+
* Determined the index of the TaskBoardTaskModel.
|
|
81
|
+
*/
|
|
82
|
+
index?: number;
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Represents the return type of TaskBoardChangeEvent.
|
|
86
|
+
*/
|
|
87
|
+
export interface TaskBoardChangeEvent {
|
|
88
|
+
/**
|
|
89
|
+
* Determines the returned data.
|
|
90
|
+
*/
|
|
91
|
+
data: {}[] | TaskBoardTaskModel[];
|
|
92
|
+
/**
|
|
93
|
+
* Determines the returned type.
|
|
94
|
+
*/
|
|
95
|
+
type: string;
|
|
96
|
+
/**
|
|
97
|
+
* Represents the previous item.
|
|
98
|
+
*/
|
|
99
|
+
previousItem: TaskBoardColumnModel | TaskBoardTaskModel | null;
|
|
100
|
+
/**
|
|
101
|
+
* Represents the current item.
|
|
102
|
+
*/
|
|
103
|
+
item: TaskBoardColumnModel | TaskBoardTaskModel | null;
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* Represents the props of the TaskBoard component
|
|
107
|
+
*/
|
|
108
|
+
export interface TaskBoardProps {
|
|
109
|
+
/**
|
|
110
|
+
* Specifies the column data from type TaskBoardColumnModel.
|
|
111
|
+
* Example:
|
|
112
|
+
* ```jsx
|
|
113
|
+
* <TaskBoard columnData={[
|
|
114
|
+
* { id: 1, title: 'To Do', status: 'todo' },
|
|
115
|
+
* { id: 2, title: 'In Progress', status: 'inProgress' }
|
|
116
|
+
* ]} />
|
|
117
|
+
* ```
|
|
118
|
+
*/
|
|
119
|
+
columnData: TaskBoardColumnModel[];
|
|
120
|
+
/**
|
|
121
|
+
* Represents the task data from type TaskBoardTaskModel.
|
|
122
|
+
* Example:
|
|
123
|
+
* ```jsx
|
|
124
|
+
* <TaskBoard taskData={[
|
|
125
|
+
* { id: 1, title: 'Task 1', status: 'todo', description: 'Description 1', priority: { priority: 'High', color: 'red' } },
|
|
126
|
+
* { id: 2, title: 'Task 2', status: 'inProgress', description: 'Description 2', priority: { priority: 'Low', color: 'green' } }
|
|
127
|
+
* ]} />
|
|
128
|
+
* ```
|
|
129
|
+
*/
|
|
130
|
+
taskData: TaskBoardTaskModel[];
|
|
131
|
+
/**
|
|
132
|
+
* Specifies the priorities of the task board.
|
|
133
|
+
* Example:
|
|
134
|
+
* ```jsx
|
|
135
|
+
* <TaskBoard priorities={[
|
|
136
|
+
* { priority: 'High', color: 'red' },
|
|
137
|
+
* { priority: 'Low', color: 'green' }
|
|
138
|
+
* ]} />
|
|
139
|
+
* ```
|
|
140
|
+
*/
|
|
141
|
+
priorities: TaskBoardPriority[];
|
|
142
|
+
/**
|
|
143
|
+
* Specifies a list of CSS classes that will be added to the TaskBoard element.
|
|
144
|
+
* Example:
|
|
145
|
+
* ```jsx
|
|
146
|
+
* <TaskBoard className="custom-taskboard" />
|
|
147
|
+
* ```
|
|
148
|
+
*/
|
|
149
|
+
className?: string | Array<string>;
|
|
150
|
+
/**
|
|
151
|
+
* Specifies the id that will be added to the TaskBoard element.
|
|
152
|
+
* Example:
|
|
153
|
+
* ```jsx
|
|
154
|
+
* <TaskBoard id="taskboard-1" />
|
|
155
|
+
* ```
|
|
156
|
+
*/
|
|
157
|
+
id?: string;
|
|
158
|
+
/**
|
|
159
|
+
* Specifies the `tabIndex` that will be added to the TaskBoard Column and Card elements.
|
|
160
|
+
* Example:
|
|
161
|
+
* ```jsx
|
|
162
|
+
* <TaskBoard tabIndex={0} />
|
|
163
|
+
* ```
|
|
164
|
+
*/
|
|
165
|
+
tabIndex?: number;
|
|
166
|
+
/**
|
|
167
|
+
* Represents the styles that are applied to the TaskBoard.
|
|
168
|
+
* Example:
|
|
169
|
+
* ```jsx
|
|
170
|
+
* <TaskBoard style={{ backgroundColor: 'lightgray' }} />
|
|
171
|
+
* ```
|
|
172
|
+
*/
|
|
173
|
+
style?: React.CSSProperties;
|
|
174
|
+
/**
|
|
175
|
+
* The React elements that will be rendered inside the toolbar of the TaskBoard.
|
|
176
|
+
* Example:
|
|
177
|
+
* ```jsx
|
|
178
|
+
* <TaskBoard>
|
|
179
|
+
* <Button>Add Task</Button>
|
|
180
|
+
* </TaskBoard>
|
|
181
|
+
* ```
|
|
182
|
+
*/
|
|
183
|
+
children?: React.ReactNode;
|
|
184
|
+
/**
|
|
185
|
+
* Represents the `onChange` event. Triggered after tasks or columns are changed.
|
|
186
|
+
* Example:
|
|
187
|
+
* ```jsx
|
|
188
|
+
* <TaskBoard onChange={(event) => console.log(event.data)} />
|
|
189
|
+
* ```
|
|
190
|
+
*/
|
|
191
|
+
onChange: (event: TaskBoardChangeEvent) => void;
|
|
192
|
+
/**
|
|
193
|
+
* Represents the TaskBoardCard component.
|
|
194
|
+
* Example:
|
|
195
|
+
* ```jsx
|
|
196
|
+
* <TaskBoard card={(props) => <div>{props.title}</div>} />
|
|
197
|
+
* ```
|
|
198
|
+
*/
|
|
199
|
+
card?: React.ComponentType<TaskBoardCardProps>;
|
|
200
|
+
/**
|
|
201
|
+
* Represents the TaskBoardColumn component.
|
|
202
|
+
* Example:
|
|
203
|
+
* ```jsx
|
|
204
|
+
* <TaskBoard column={(props) => <div>{props.title}</div>} />
|
|
205
|
+
* ```
|
|
206
|
+
*/
|
|
207
|
+
column?: React.ComponentType<TaskBoardColumnProps>;
|
|
208
|
+
}
|
|
209
|
+
/**
|
|
210
|
+
* Represents the [KendoReact TaskBoard component](https://www.telerik.com/kendo-react-ui/components/taskboard).
|
|
211
|
+
*
|
|
212
|
+
* Accepts properties of type [TaskBoardProps](https://www.telerik.com/kendo-react-ui/components/taskboard/api/taskboardprops).
|
|
213
|
+
*
|
|
214
|
+
* @remarks
|
|
215
|
+
* Supported children components are: {@link TaskBoardToolbar}.
|
|
216
|
+
*/
|
|
217
|
+
export declare const TaskBoard: React.ForwardRefExoticComponent<TaskBoardProps & React.RefAttributes<TaskBoardHandle | null>>;
|
|
218
|
+
export {};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { TaskBoardTaskEditPaneProps } from './TaskBoardTaskEditPane.js';
|
|
9
|
+
import { TaskBoardPriority, TaskBoardTaskModel } from './TaskBoard.js';
|
|
10
|
+
import * as React from 'react';
|
|
11
|
+
/**
|
|
12
|
+
* Represents the props of the TaskBoardAddCard component
|
|
13
|
+
*/
|
|
14
|
+
export interface TaskBoardAddCardProps {
|
|
15
|
+
/**
|
|
16
|
+
* Represent the priorities of the task board card.
|
|
17
|
+
*/
|
|
18
|
+
priorities: TaskBoardPriority[];
|
|
19
|
+
/**
|
|
20
|
+
* Triggered on `onClose` event of the TaskBoardAddCard.
|
|
21
|
+
*/
|
|
22
|
+
onClose: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
23
|
+
/**
|
|
24
|
+
* Triggered on `onSave` event of the TaskBoardAddCard.
|
|
25
|
+
*/
|
|
26
|
+
onSave: (task: TaskBoardTaskModel, prevTask: TaskBoardTaskModel) => void;
|
|
27
|
+
/**
|
|
28
|
+
* Specifies the TaskBoardTaskEditPane component.
|
|
29
|
+
*/
|
|
30
|
+
editPane: React.ComponentType<TaskBoardTaskEditPaneProps>;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Represents the TaskBoardAddCard component.
|
|
34
|
+
*/
|
|
35
|
+
export declare const TaskBoardAddCard: React.FunctionComponent<TaskBoardAddCardProps>;
|
package/TaskBoardAddCard.mjs
CHANGED
|
@@ -7,45 +7,45 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import * as S from "react";
|
|
9
9
|
import { useLocalization as b } from "@progress/kendo-react-intl";
|
|
10
|
-
import {
|
|
10
|
+
import { taskBoardEditPaneCancelBtn as i, messages as a, taskBoardAddCardCreateButton as o, taskBoardEditPanePriorityLabel as r, taskBoardEditPaneDescriptionLabel as n, taskBoardEditPaneTitleLabel as d, taskBoardAddCardPriorityLabel as g, taskBoardAddCardDescriptionLabel as s, taskBoardAddCardTitleLabel as l, taskBoardAddCardPaneTitle as L } from "./messages/index.mjs";
|
|
11
11
|
import { useTaskEditing as P } from "./hooks/taskEditing.mjs";
|
|
12
12
|
const c = (e) => {
|
|
13
13
|
const { onTitleChange: p, title: u, onDescriptionChange: B, description: C, onPriorityChange: k, priority: m, onSave: T } = P(e), t = b();
|
|
14
14
|
return /* @__PURE__ */ S.createElement(
|
|
15
15
|
e.editPane,
|
|
16
16
|
{
|
|
17
|
-
header: t.toLanguageString(
|
|
17
|
+
header: t.toLanguageString(L, a[L]),
|
|
18
18
|
titleInputTitle: t.toLanguageString(
|
|
19
|
-
|
|
20
|
-
a[
|
|
19
|
+
l,
|
|
20
|
+
a[l]
|
|
21
21
|
),
|
|
22
22
|
descriptionInputTitle: t.toLanguageString(
|
|
23
|
-
|
|
24
|
-
a[
|
|
23
|
+
s,
|
|
24
|
+
a[s]
|
|
25
25
|
),
|
|
26
26
|
priorityDropDownTitle: t.toLanguageString(
|
|
27
|
-
|
|
28
|
-
a[
|
|
27
|
+
g,
|
|
28
|
+
a[g]
|
|
29
29
|
),
|
|
30
30
|
titleLabel: t.toLanguageString(
|
|
31
31
|
d,
|
|
32
32
|
a[d]
|
|
33
33
|
),
|
|
34
34
|
descriptionLabel: t.toLanguageString(
|
|
35
|
-
|
|
36
|
-
a[
|
|
35
|
+
n,
|
|
36
|
+
a[n]
|
|
37
37
|
),
|
|
38
38
|
priorityLabel: t.toLanguageString(
|
|
39
|
-
|
|
40
|
-
a[
|
|
39
|
+
r,
|
|
40
|
+
a[r]
|
|
41
41
|
),
|
|
42
42
|
saveButton: t.toLanguageString(
|
|
43
|
-
|
|
44
|
-
a[
|
|
43
|
+
o,
|
|
44
|
+
a[o]
|
|
45
45
|
),
|
|
46
46
|
cancelButton: t.toLanguageString(
|
|
47
|
-
|
|
48
|
-
a[
|
|
47
|
+
i,
|
|
48
|
+
a[i]
|
|
49
49
|
),
|
|
50
50
|
priorities: e.priorities,
|
|
51
51
|
onSave: T,
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { CardHandle } from '@progress/kendo-react-layout';
|
|
9
|
+
import { TaskBoardCardProps } from './card/Card.js';
|
|
10
|
+
import { TaskBoardTaskModel } from './TaskBoard.js';
|
|
11
|
+
import * as React from 'react';
|
|
12
|
+
/**
|
|
13
|
+
* Represents the props of the TaskBoardCardBase component
|
|
14
|
+
*
|
|
15
|
+
* @hidden
|
|
16
|
+
*/
|
|
17
|
+
export interface TaskBoardCardBaseProps {
|
|
18
|
+
/**
|
|
19
|
+
* The task of the TaskBoardCardBase.
|
|
20
|
+
*/
|
|
21
|
+
task: TaskBoardTaskModel;
|
|
22
|
+
/**
|
|
23
|
+
* The styles for the TaskBoardCardBase.
|
|
24
|
+
*/
|
|
25
|
+
style?: React.CSSProperties;
|
|
26
|
+
/**
|
|
27
|
+
* Determines the disabled mode.
|
|
28
|
+
*/
|
|
29
|
+
disabled?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Specifies the `tabIndex` that will be added to the TaskBoard Column and Card elements.
|
|
32
|
+
*/
|
|
33
|
+
tabIndex?: number;
|
|
34
|
+
/**
|
|
35
|
+
* Specifies the CardHandle reference.
|
|
36
|
+
*/
|
|
37
|
+
elementRef?: React.RefObject<CardHandle | null>;
|
|
38
|
+
/**
|
|
39
|
+
* Specifies the width and height of the drag target reference.
|
|
40
|
+
*/
|
|
41
|
+
dragTargetRef?: React.RefObject<{
|
|
42
|
+
width: number;
|
|
43
|
+
height: number;
|
|
44
|
+
} | null>;
|
|
45
|
+
/**
|
|
46
|
+
* Fires when a task is deleted.
|
|
47
|
+
*/
|
|
48
|
+
onDeleteTask: () => void;
|
|
49
|
+
/**
|
|
50
|
+
* Represents the `showEditPane` event.
|
|
51
|
+
*/
|
|
52
|
+
showEditPane: (task: TaskBoardTaskModel) => void;
|
|
53
|
+
/**
|
|
54
|
+
* Represents the TaskBoardCard component.
|
|
55
|
+
*/
|
|
56
|
+
cardComponent: React.ComponentType<TaskBoardCardProps>;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Represents the TaskBoardCardBase component.
|
|
60
|
+
*
|
|
61
|
+
* @hidden
|
|
62
|
+
*/
|
|
63
|
+
export declare const TaskBoardCardBase: {
|
|
64
|
+
(props: TaskBoardCardBaseProps): React.JSX.Element;
|
|
65
|
+
displayName: string;
|
|
66
|
+
};
|
package/TaskBoardCardBase.mjs
CHANGED
|
@@ -10,7 +10,7 @@ import z from "prop-types";
|
|
|
10
10
|
import { Card as K } from "@progress/kendo-react-layout";
|
|
11
11
|
import { TASKBOARD_PLACEHOLDER as N } from "./constants.mjs";
|
|
12
12
|
import { useLocalization as j } from "@progress/kendo-react-intl";
|
|
13
|
-
import { taskBoardEditCardButton as B, messages as t, taskBoardDeleteCardButton as p,
|
|
13
|
+
import { taskBoardEditCardButton as B, messages as t, taskBoardDeleteCardButton as p, taskBoardPreviewPaneEditBtn as D, taskBoardPreviewPaneDeleteBtn as T, taskBoardPreviewPanePriorityLabel as w, taskBoardDeleteTaskCancelButton as P, taskBoardDeleteTaskConfirmButton as C, taskBoardDeleteTaskDialogTitle as h, taskBoardDeleteTaskDialogMessage as S } from "./messages/index.mjs";
|
|
14
14
|
import { TaskBoardCardHeader as q } from "./card/CardHeader.mjs";
|
|
15
15
|
import { TaskBoardCardBody as _ } from "./card/CardBody.mjs";
|
|
16
16
|
import { TaskBoardConfirmDialog as F } from "./TaskBoardConfirmDialog.mjs";
|
|
@@ -73,32 +73,32 @@ const v = (n) => {
|
|
|
73
73
|
menuItems: M,
|
|
74
74
|
popupRef: d,
|
|
75
75
|
confirmDialogMessage: e.toLanguageString(
|
|
76
|
-
|
|
77
|
-
t[
|
|
76
|
+
S,
|
|
77
|
+
t[S]
|
|
78
78
|
),
|
|
79
79
|
confirmDialogTitle: e.toLanguageString(
|
|
80
|
-
|
|
81
|
-
t[
|
|
80
|
+
h,
|
|
81
|
+
t[h]
|
|
82
82
|
),
|
|
83
83
|
confirmDialogConfirmButton: e.toLanguageString(
|
|
84
|
-
|
|
85
|
-
t[
|
|
84
|
+
C,
|
|
85
|
+
t[C]
|
|
86
86
|
),
|
|
87
87
|
confirmDialogCancelButton: e.toLanguageString(
|
|
88
88
|
P,
|
|
89
89
|
t[P]
|
|
90
90
|
),
|
|
91
91
|
previewDialogPriorityLabel: e.toLanguageString(
|
|
92
|
-
|
|
93
|
-
t[
|
|
92
|
+
w,
|
|
93
|
+
t[w]
|
|
94
94
|
),
|
|
95
95
|
previewDialogDelete: e.toLanguageString(
|
|
96
|
-
|
|
97
|
-
t[
|
|
96
|
+
T,
|
|
97
|
+
t[T]
|
|
98
98
|
),
|
|
99
99
|
previewDialogEdit: e.toLanguageString(
|
|
100
|
-
|
|
101
|
-
t[
|
|
100
|
+
D,
|
|
101
|
+
t[D]
|
|
102
102
|
),
|
|
103
103
|
onShowPreviewPane: f,
|
|
104
104
|
onClosePreviewPane: A,
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { TaskBoardCardProps } from './card/Card.js';
|
|
9
|
+
import { TaskBoardColumnProps } from './column/Column.js';
|
|
10
|
+
import { TaskBoardColumnModel, TaskBoardPriority, TaskBoardTaskModel } from './TaskBoard.js';
|
|
11
|
+
import * as React from 'react';
|
|
12
|
+
/**
|
|
13
|
+
* Represents the props of the TaskBoardColumnBase component
|
|
14
|
+
*
|
|
15
|
+
* @hidden
|
|
16
|
+
*/
|
|
17
|
+
export interface TaskBoardColumnBaseProps {
|
|
18
|
+
/**
|
|
19
|
+
* The rendered column.
|
|
20
|
+
*/
|
|
21
|
+
column: TaskBoardColumnModel;
|
|
22
|
+
/**
|
|
23
|
+
* The rendered tasks.
|
|
24
|
+
*/
|
|
25
|
+
tasks: TaskBoardTaskModel[];
|
|
26
|
+
/**
|
|
27
|
+
* The rendered priorities.
|
|
28
|
+
*/
|
|
29
|
+
priorities: TaskBoardPriority[];
|
|
30
|
+
/**
|
|
31
|
+
* The applied styles.
|
|
32
|
+
*/
|
|
33
|
+
style?: React.CSSProperties;
|
|
34
|
+
/**
|
|
35
|
+
* Specifies the `tabIndex` that will be added to the TaskBoard Column and Card elements.
|
|
36
|
+
*/
|
|
37
|
+
tabIndex?: number;
|
|
38
|
+
/**
|
|
39
|
+
* Specifies the element reference.
|
|
40
|
+
*/
|
|
41
|
+
elementRef?: React.RefObject<HTMLDivElement | null>;
|
|
42
|
+
/**
|
|
43
|
+
* Specifies the width and height of the drag target reference.
|
|
44
|
+
*/
|
|
45
|
+
dragTargetRef?: React.RefObject<{
|
|
46
|
+
width: number;
|
|
47
|
+
height: number;
|
|
48
|
+
} | null>;
|
|
49
|
+
/**
|
|
50
|
+
* Fires when a task is created.
|
|
51
|
+
*/
|
|
52
|
+
onTaskCreate: (task: TaskBoardTaskModel) => void;
|
|
53
|
+
/**
|
|
54
|
+
* Fires when a task is edited.
|
|
55
|
+
*/
|
|
56
|
+
onTaskEdit: (task: TaskBoardTaskModel, prevTask: TaskBoardTaskModel) => void;
|
|
57
|
+
/**
|
|
58
|
+
* Fires when a task is deleted.
|
|
59
|
+
*/
|
|
60
|
+
onTaskDelete: (task: TaskBoardTaskModel) => void;
|
|
61
|
+
/**
|
|
62
|
+
* Fires when a column is changed.
|
|
63
|
+
*/
|
|
64
|
+
onColumnChange: (column: TaskBoardColumnModel, prevColumn: TaskBoardColumnModel) => void;
|
|
65
|
+
/**
|
|
66
|
+
* Determines the TaskBoardCard component.
|
|
67
|
+
*/
|
|
68
|
+
cardComponent: React.ComponentType<TaskBoardCardProps>;
|
|
69
|
+
/**
|
|
70
|
+
* Determines the TaskBoardColumn component.
|
|
71
|
+
*/
|
|
72
|
+
columnComponent: React.ComponentType<TaskBoardColumnProps>;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Represents the TaskBoardColumnBase component.
|
|
76
|
+
*
|
|
77
|
+
* @hidden
|
|
78
|
+
*/
|
|
79
|
+
export declare const TaskBoardColumnBase: {
|
|
80
|
+
(props: TaskBoardColumnBaseProps): React.JSX.Element;
|
|
81
|
+
displayName: string;
|
|
82
|
+
};
|
package/TaskBoardColumnBase.mjs
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
import * as t from "react";
|
|
9
9
|
import D from "prop-types";
|
|
10
10
|
import { useLocalization as _ } from "@progress/kendo-react-intl";
|
|
11
|
-
import {
|
|
11
|
+
import { taskBoardDeleteColumnButton as b, messages as d, taskBoardAddCardButton as h, taskBoardEditColumnButton as E, taskBoardDelColumnCancelBtn as w, taskBoardDelColumnConfirmBtn as S, taskBoardDelColumnDialogTitle as v, taskBoardDelColumnDialogMsg as y } from "./messages/index.mjs";
|
|
12
12
|
import { TASKBOARD_PLACEHOLDER as F } from "./constants.mjs";
|
|
13
13
|
import { TaskBoardColumnHeader as G } from "./column/ColumnHeader.mjs";
|
|
14
14
|
import { TaskBoardColumnBody as J } from "./column/ColumnBody.mjs";
|
|
@@ -97,29 +97,29 @@ const L = (a) => {
|
|
|
97
97
|
showColumnConfirmDelete: u,
|
|
98
98
|
editedTask: P,
|
|
99
99
|
confirmDialogMessage: r.toLanguageString(
|
|
100
|
-
|
|
101
|
-
d[
|
|
100
|
+
y,
|
|
101
|
+
d[y]
|
|
102
102
|
),
|
|
103
103
|
confirmDialogTitle: r.toLanguageString(
|
|
104
|
-
|
|
105
|
-
d[
|
|
104
|
+
v,
|
|
105
|
+
d[v]
|
|
106
106
|
),
|
|
107
107
|
confirmDialogConfirmButton: r.toLanguageString(
|
|
108
|
-
|
|
109
|
-
d[
|
|
108
|
+
S,
|
|
109
|
+
d[S]
|
|
110
110
|
),
|
|
111
111
|
confirmDialogCancelButton: r.toLanguageString(
|
|
112
112
|
w,
|
|
113
113
|
d[w]
|
|
114
114
|
),
|
|
115
115
|
editButtonTitle: r.toLanguageString(
|
|
116
|
-
|
|
117
|
-
d[
|
|
116
|
+
E,
|
|
117
|
+
d[E]
|
|
118
118
|
),
|
|
119
|
-
addButtonTitle: r.toLanguageString(
|
|
119
|
+
addButtonTitle: r.toLanguageString(h, d[h]),
|
|
120
120
|
closeButtonTitle: r.toLanguageString(
|
|
121
|
-
|
|
122
|
-
d[
|
|
121
|
+
b,
|
|
122
|
+
d[b]
|
|
123
123
|
)
|
|
124
124
|
},
|
|
125
125
|
c && c.map((o) => /* @__PURE__ */ t.createElement(
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import * as React from 'react';
|
|
9
|
+
/**
|
|
10
|
+
* Represents the props of the TaskBoardConfirmDialog component
|
|
11
|
+
*/
|
|
12
|
+
export interface TaskBoardConfirmDialogProps {
|
|
13
|
+
/**
|
|
14
|
+
* The dialog message.
|
|
15
|
+
*/
|
|
16
|
+
dialogMessage: React.ReactNode;
|
|
17
|
+
/**
|
|
18
|
+
* The dialog title.
|
|
19
|
+
*/
|
|
20
|
+
dialogTitle: string;
|
|
21
|
+
/**
|
|
22
|
+
* The dialog confirm button.
|
|
23
|
+
*/
|
|
24
|
+
dialogConfirmButton: React.ReactNode;
|
|
25
|
+
/**
|
|
26
|
+
* The dialog cancel button.
|
|
27
|
+
*/
|
|
28
|
+
dialogCancelButton: React.ReactNode;
|
|
29
|
+
/**
|
|
30
|
+
* The Close Button click event handler of the TaskBoardConfirmDialog component.
|
|
31
|
+
*/
|
|
32
|
+
onClose: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
33
|
+
/**
|
|
34
|
+
* The Confirm Button click event handler of the TaskBoardConfirmDialog component.
|
|
35
|
+
*/
|
|
36
|
+
onConfirm: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Represents the TaskBoardConfirmDialog component.
|
|
40
|
+
*/
|
|
41
|
+
export declare const TaskBoardConfirmDialog: React.FunctionComponent<TaskBoardConfirmDialogProps>;
|
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("react"),o=require("prop-types"),l=require("@progress/kendo-react-dialogs"),s=require("@progress/kendo-react-buttons");function f(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const i=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,i.get?i:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const r=f(g),a=e=>{const{onClose:n,onConfirm:t,dialogMessage:i,dialogTitle:c,dialogConfirmButton:u,dialogCancelButton:d}=e;return r.createElement(l.Dialog,{title:c,closeIcon:!1},i,r.createElement(l.DialogActionsBar,{layout:"end"},r.createElement(s.Button,{
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("react"),o=require("prop-types"),l=require("@progress/kendo-react-dialogs"),s=require("@progress/kendo-react-buttons");function f(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const i=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,i.get?i:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const r=f(g),a=e=>{const{onClose:n,onConfirm:t,dialogMessage:i,dialogTitle:c,dialogConfirmButton:u,dialogCancelButton:d}=e;return r.createElement(l.Dialog,{title:c,closeIcon:!1},i,r.createElement(l.DialogActionsBar,{layout:"end"},r.createElement(s.Button,{onClick:t},u),r.createElement(s.Button,{onClick:n},d)))};a.propTypes={onClose:o.func.isRequired,onConfirm:o.func.isRequired,dialogMessage:o.string.isRequired,dialogTitle:o.string.isRequired,dialogConfirmButton:o.string.isRequired,dialogCancelButton:o.string.isRequired};a.displayName="KendoReactTaskBoardConfirmDialog";exports.TaskBoardConfirmDialog=a;
|
|
@@ -9,11 +9,11 @@ import * as e from "react";
|
|
|
9
9
|
import o from "prop-types";
|
|
10
10
|
import { Dialog as g, DialogActionsBar as c } from "@progress/kendo-react-dialogs";
|
|
11
11
|
import { Button as i } from "@progress/kendo-react-buttons";
|
|
12
|
-
const
|
|
13
|
-
const { onClose:
|
|
14
|
-
return /* @__PURE__ */ e.createElement(g, { title: s, closeIcon: !1 }, l, /* @__PURE__ */ e.createElement(c, { layout: "end" }, /* @__PURE__ */ e.createElement(i, {
|
|
12
|
+
const t = (n) => {
|
|
13
|
+
const { onClose: r, onConfirm: a, dialogMessage: l, dialogTitle: s, dialogConfirmButton: d, dialogCancelButton: m } = n;
|
|
14
|
+
return /* @__PURE__ */ e.createElement(g, { title: s, closeIcon: !1 }, l, /* @__PURE__ */ e.createElement(c, { layout: "end" }, /* @__PURE__ */ e.createElement(i, { onClick: a }, d), /* @__PURE__ */ e.createElement(i, { onClick: r }, m)));
|
|
15
15
|
};
|
|
16
|
-
|
|
16
|
+
t.propTypes = {
|
|
17
17
|
onClose: o.func.isRequired,
|
|
18
18
|
onConfirm: o.func.isRequired,
|
|
19
19
|
dialogMessage: o.string.isRequired,
|
|
@@ -21,7 +21,7 @@ r.propTypes = {
|
|
|
21
21
|
dialogConfirmButton: o.string.isRequired,
|
|
22
22
|
dialogCancelButton: o.string.isRequired
|
|
23
23
|
};
|
|
24
|
-
|
|
24
|
+
t.displayName = "KendoReactTaskBoardConfirmDialog";
|
|
25
25
|
export {
|
|
26
|
-
|
|
26
|
+
t as TaskBoardConfirmDialog
|
|
27
27
|
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { TaskBoardTaskModel } from './TaskBoard.js';
|
|
9
|
+
import { TaskBoardAddCardProps } from './TaskBoardAddCard.js';
|
|
10
|
+
import * as React from 'react';
|
|
11
|
+
/**
|
|
12
|
+
* Represents the props of the TaskBoardEditCard component
|
|
13
|
+
*/
|
|
14
|
+
export interface TaskBoardEditCardProps extends TaskBoardAddCardProps {
|
|
15
|
+
/**
|
|
16
|
+
* Determines the task of the TaskBoardEditCard component.
|
|
17
|
+
*/
|
|
18
|
+
task: TaskBoardTaskModel;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Represents the TaskBoardEditCard component.
|
|
22
|
+
*/
|
|
23
|
+
export declare const TaskBoardEditCard: React.FunctionComponent<TaskBoardEditCardProps>;
|