@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/TaskBoardEditCard.mjs
CHANGED
|
@@ -7,25 +7,25 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import * as T from "react";
|
|
9
9
|
import { useLocalization as E } from "@progress/kendo-react-intl";
|
|
10
|
-
import {
|
|
10
|
+
import { taskBoardEditPanePriorityLabel as i, messages as a, taskBoardEditPaneDescriptionLabel as o, taskBoardEditPaneTitleLabel as r, taskBoardEditPaneCancelBtn as n, taskBoardEditCardPaneSaveBtn as d, taskBoardAddCardPriorityLabel as g, taskBoardAddCardDescriptionLabel as s, taskBoardAddCardTitleLabel as l, taskBoardEditCardPaneTitle 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: u, title: k, onDescriptionChange: B, description: p, onPriorityChange: C, priority: m, onSave: S } = P(e), t = E();
|
|
14
14
|
return /* @__PURE__ */ T.createElement(
|
|
15
15
|
e.editPane,
|
|
16
16
|
{
|
|
17
|
-
header: t.toLanguageString(
|
|
17
|
+
header: t.toLanguageString(L, a[L]) + e.task.title,
|
|
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
|
task: e.task,
|
|
31
31
|
saveButton: t.toLanguageString(
|
|
@@ -33,21 +33,21 @@ const c = (e) => {
|
|
|
33
33
|
a[d]
|
|
34
34
|
),
|
|
35
35
|
cancelButton: t.toLanguageString(
|
|
36
|
-
|
|
37
|
-
a[
|
|
36
|
+
n,
|
|
37
|
+
a[n]
|
|
38
38
|
),
|
|
39
39
|
priorities: e.priorities,
|
|
40
40
|
titleLabel: t.toLanguageString(
|
|
41
|
-
|
|
42
|
-
a[
|
|
41
|
+
r,
|
|
42
|
+
a[r]
|
|
43
43
|
),
|
|
44
44
|
descriptionLabel: t.toLanguageString(
|
|
45
|
-
|
|
46
|
-
a[
|
|
45
|
+
o,
|
|
46
|
+
a[o]
|
|
47
47
|
),
|
|
48
48
|
priorityLabel: t.toLanguageString(
|
|
49
|
-
|
|
50
|
-
a[
|
|
49
|
+
i,
|
|
50
|
+
a[i]
|
|
51
51
|
),
|
|
52
52
|
onSave: S,
|
|
53
53
|
onClose: e.onClose,
|
|
@@ -0,0 +1,96 @@
|
|
|
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 { DropDownListChangeEvent } from '@progress/kendo-react-dropdowns';
|
|
9
|
+
import { InputChangeEvent } from '@progress/kendo-react-inputs';
|
|
10
|
+
import { TaskBoardPriority, TaskBoardTaskModel } from './TaskBoard.js';
|
|
11
|
+
import * as React from 'react';
|
|
12
|
+
/**
|
|
13
|
+
* Represents the props of the TaskBoardTaskEditPane component
|
|
14
|
+
*/
|
|
15
|
+
export interface TaskBoardTaskEditPaneProps {
|
|
16
|
+
/**
|
|
17
|
+
* Represents the rendered header of the TaskBoardTaskEditPane.
|
|
18
|
+
*/
|
|
19
|
+
header: string;
|
|
20
|
+
/**
|
|
21
|
+
* Represents the save button of the TaskBoardTaskEditPane.
|
|
22
|
+
*/
|
|
23
|
+
saveButton: React.ReactNode;
|
|
24
|
+
/**
|
|
25
|
+
* Represents the cancel button of the TaskBoardTaskEditPane.
|
|
26
|
+
*/
|
|
27
|
+
cancelButton: React.ReactNode;
|
|
28
|
+
/**
|
|
29
|
+
* Represents the titleInput title of the TaskBoardTaskEditPane.
|
|
30
|
+
*/
|
|
31
|
+
titleInputTitle: string;
|
|
32
|
+
/**
|
|
33
|
+
* Represents the descriptionInput title of the TaskBoardTaskEditPane.
|
|
34
|
+
*/
|
|
35
|
+
descriptionInputTitle: string;
|
|
36
|
+
/**
|
|
37
|
+
* Represents the priorityDropDownTitle title of the TaskBoardTaskEditPane.
|
|
38
|
+
*/
|
|
39
|
+
priorityDropDownTitle: string;
|
|
40
|
+
/**
|
|
41
|
+
* Represents the title label of the TaskBoardTaskEditPane.
|
|
42
|
+
*/
|
|
43
|
+
titleLabel: React.ReactNode;
|
|
44
|
+
/**
|
|
45
|
+
* Represents the description label of the TaskBoardTaskEditPane.
|
|
46
|
+
*/
|
|
47
|
+
descriptionLabel: React.ReactNode;
|
|
48
|
+
/**
|
|
49
|
+
* Represents the priority label of the TaskBoardTaskEditPane.
|
|
50
|
+
*/
|
|
51
|
+
priorityLabel: React.ReactNode;
|
|
52
|
+
/**
|
|
53
|
+
* Represents the rendered task of the TaskBoardTaskEditPane.
|
|
54
|
+
*/
|
|
55
|
+
task?: TaskBoardTaskModel;
|
|
56
|
+
/**
|
|
57
|
+
* Determines the priority.
|
|
58
|
+
*/
|
|
59
|
+
priority: TaskBoardPriority;
|
|
60
|
+
/**
|
|
61
|
+
* Determines the rendered priorities.
|
|
62
|
+
*/
|
|
63
|
+
priorities: TaskBoardPriority[];
|
|
64
|
+
/**
|
|
65
|
+
* Represents the title of the TaskBoardTaskEditPane.
|
|
66
|
+
*/
|
|
67
|
+
title: string;
|
|
68
|
+
/**
|
|
69
|
+
* The rendered description.
|
|
70
|
+
*/
|
|
71
|
+
description: string;
|
|
72
|
+
/**
|
|
73
|
+
* Fires when Save button is clicked.
|
|
74
|
+
*/
|
|
75
|
+
onSave: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
76
|
+
/**
|
|
77
|
+
* Fires when Cancel button is clicked.
|
|
78
|
+
*/
|
|
79
|
+
onClose: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
80
|
+
/**
|
|
81
|
+
* Fires when a title is changed.
|
|
82
|
+
*/
|
|
83
|
+
onTitleChange: (event: InputChangeEvent) => void;
|
|
84
|
+
/**
|
|
85
|
+
* Fires when a description is changed.
|
|
86
|
+
*/
|
|
87
|
+
onDescriptionChange: (event: InputChangeEvent) => void;
|
|
88
|
+
/**
|
|
89
|
+
* Fires when a priority has been changed.
|
|
90
|
+
*/
|
|
91
|
+
onPriorityChange: (event: DropDownListChangeEvent) => void;
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Represents the TaskBoardTaskEditPane component.
|
|
95
|
+
*/
|
|
96
|
+
export declare const TaskBoardTaskEditPane: React.FunctionComponent<TaskBoardTaskEditPaneProps>;
|
package/TaskBoardTaskEditPane.js
CHANGED
|
@@ -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
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react"),m=require("@progress/kendo-react-dropdowns"),i=require("@progress/kendo-react-buttons"),d=require("@progress/kendo-react-inputs"),r=require("@progress/kendo-react-labels"),l=require("@progress/kendo-react-form"),s=require("./utils.js"),k=require("@progress/kendo-svg-icons");function b(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const c=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(n,a,c.get?c:{enumerable:!0,get:()=>e[a]})}}return n.default=e,Object.freeze(n)}const t=b(u),o=e=>t.createElement("div",{className:"k-taskboard-pane k-taskboard-edit-pane"},t.createElement("div",{className:"k-taskboard-pane-header"},t.createElement("div",{className:"k-taskboard-pane-header-text"},e.header),t.createElement("span",{className:"k-spacer"}),t.createElement("div",{className:"k-taskboard-pane-header-actions"},t.createElement(i.Button,{icon:"x",svgIcon:k.xIcon,onClick:e.onClose}))),t.createElement("div",{className:"k-taskboard-pane-content"},t.createElement("div",{role:"form","data-role":"form",className:"k-form"},t.createElement(l.FieldWrapper,null,t.createElement(r.Label,{editorId:"title"},e.titleLabel),t.createElement(d.Input,{id:"title",onChange:e.onTitleChange,value:e.title,title:e.titleInputTitle})),t.createElement(l.FieldWrapper,null,t.createElement(r.Label,{editorId:"description"},e.descriptionLabel),t.createElement(d.Input,{id:"description",onChange:e.onDescriptionChange,value:e.description,title:e.descriptionInputTitle})),t.createElement(l.FieldWrapper,null,t.createElement(r.Label,{editorId:"priority"},e.priorityLabel),t.createElement(m.DropDownList,{id:"priority",data:e.priorities,value:e.priority,onChange:e.onPriorityChange,itemRender:s.itemRender,valueRender:s.valueRender,textField:"priority",dataItemKey:"priority",title:e.priorityDropDownTitle})))),t.createElement("div",{className:"k-taskboard-pane-actions k-actions k-hstack k-justify-content-end"},t.createElement(i.Button,{onClick:e.onClose},e.cancelButton),t.createElement(i.Button,{onClick:e.onSave,disabled:!e.title||!e.description},e.saveButton)));o.propTypes={};o.displayName="KendoReactTaskBoardEditPane";exports.TaskBoardTaskEditPane=o;
|
|
@@ -11,9 +11,9 @@ import { Button as a } from "@progress/kendo-react-buttons";
|
|
|
11
11
|
import { Input as r } from "@progress/kendo-react-inputs";
|
|
12
12
|
import { Label as i } from "@progress/kendo-react-labels";
|
|
13
13
|
import { FieldWrapper as n } from "@progress/kendo-react-form";
|
|
14
|
-
import {
|
|
15
|
-
import { xIcon as
|
|
16
|
-
const l = (e) => /* @__PURE__ */ t.createElement("div", { className: "k-taskboard-pane k-taskboard-edit-pane" }, /* @__PURE__ */ t.createElement("div", { className: "k-taskboard-pane-header" }, /* @__PURE__ */ t.createElement("div", { className: "k-taskboard-pane-header-text" }, e.header), /* @__PURE__ */ t.createElement("span", { className: "k-spacer" }), /* @__PURE__ */ t.createElement("div", { className: "k-taskboard-pane-header-actions" }, /* @__PURE__ */ t.createElement(a, { icon: "x", svgIcon:
|
|
14
|
+
import { valueRender as c, itemRender as d } from "./utils.mjs";
|
|
15
|
+
import { xIcon as m } from "@progress/kendo-svg-icons";
|
|
16
|
+
const l = (e) => /* @__PURE__ */ t.createElement("div", { className: "k-taskboard-pane k-taskboard-edit-pane" }, /* @__PURE__ */ t.createElement("div", { className: "k-taskboard-pane-header" }, /* @__PURE__ */ t.createElement("div", { className: "k-taskboard-pane-header-text" }, e.header), /* @__PURE__ */ t.createElement("span", { className: "k-spacer" }), /* @__PURE__ */ t.createElement("div", { className: "k-taskboard-pane-header-actions" }, /* @__PURE__ */ t.createElement(a, { icon: "x", svgIcon: m, onClick: e.onClose }))), /* @__PURE__ */ t.createElement("div", { className: "k-taskboard-pane-content" }, /* @__PURE__ */ t.createElement("div", { role: "form", "data-role": "form", className: "k-form" }, /* @__PURE__ */ t.createElement(n, null, /* @__PURE__ */ t.createElement(i, { editorId: "title" }, e.titleLabel), /* @__PURE__ */ t.createElement(
|
|
17
17
|
r,
|
|
18
18
|
{
|
|
19
19
|
id: "title",
|
|
@@ -36,13 +36,13 @@ const l = (e) => /* @__PURE__ */ t.createElement("div", { className: "k-taskboar
|
|
|
36
36
|
data: e.priorities,
|
|
37
37
|
value: e.priority,
|
|
38
38
|
onChange: e.onPriorityChange,
|
|
39
|
-
itemRender:
|
|
40
|
-
valueRender:
|
|
39
|
+
itemRender: d,
|
|
40
|
+
valueRender: c,
|
|
41
41
|
textField: "priority",
|
|
42
42
|
dataItemKey: "priority",
|
|
43
43
|
title: e.priorityDropDownTitle
|
|
44
44
|
}
|
|
45
|
-
)))), /* @__PURE__ */ t.createElement("div", { className: "k-taskboard-pane-actions k-actions k-hstack k-justify-content-end" }, /* @__PURE__ */ t.createElement(a, { onClick: e.onClose }, e.cancelButton), /* @__PURE__ */ t.createElement(a, {
|
|
45
|
+
)))), /* @__PURE__ */ t.createElement("div", { className: "k-taskboard-pane-actions k-actions k-hstack k-justify-content-end" }, /* @__PURE__ */ t.createElement(a, { onClick: e.onClose }, e.cancelButton), /* @__PURE__ */ t.createElement(a, { onClick: e.onSave, disabled: !e.title || !e.description }, e.saveButton)));
|
|
46
46
|
l.propTypes = {};
|
|
47
47
|
l.displayName = "KendoReactTaskBoardEditPane";
|
|
48
48
|
export {
|
|
@@ -0,0 +1,29 @@
|
|
|
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 TaskBoardToolbar component
|
|
11
|
+
*/
|
|
12
|
+
export interface TaskBoardToolbarProps {
|
|
13
|
+
/**
|
|
14
|
+
* The React elements that will be rendered inside the toolbar of the TaskBoard.
|
|
15
|
+
*/
|
|
16
|
+
children?: any;
|
|
17
|
+
/**
|
|
18
|
+
* Specifies a list of CSS classes that will be added to the TaskBoardToolbar element.
|
|
19
|
+
*/
|
|
20
|
+
className?: string | Array<string>;
|
|
21
|
+
/**
|
|
22
|
+
* Represents the styles that are applied to the TaskBoardToolbar.
|
|
23
|
+
*/
|
|
24
|
+
style?: React.CSSProperties;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Represents the TaskBoardToolbar component.
|
|
28
|
+
*/
|
|
29
|
+
export declare const TaskBoardToolbar: React.FunctionComponent<TaskBoardToolbarProps>;
|
package/TaskBoardToolbar.js
CHANGED
|
@@ -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
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react"),s=require("prop-types"),l=require("@progress/kendo-react-common");function d(e){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(a,t,o.get?o:{enumerable:!0,get:()=>e[t]})}}return a.default=e,Object.freeze(a)}const c=d(n),r=e=>{const{className:a,style:t,children:o}=e;return c.createElement("div",{style:t,className:l.classNames("k-taskboard-header",a)},c.createElement("div",{className:"k-taskboard-toolbar k-toolbar"},o))};r.propTypes={children:s.node};r.displayName="KendoReactTaskBoardToolbar";exports.TaskBoardToolbar=r;
|
package/TaskBoardToolbar.mjs
CHANGED
|
@@ -7,15 +7,15 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import * as a from "react";
|
|
9
9
|
import l from "prop-types";
|
|
10
|
-
import { classNames as
|
|
11
|
-
const
|
|
12
|
-
const { className: r, style: s, children: t } =
|
|
13
|
-
return /* @__PURE__ */ a.createElement("div", { style: s, className:
|
|
10
|
+
import { classNames as m } from "@progress/kendo-react-common";
|
|
11
|
+
const e = (o) => {
|
|
12
|
+
const { className: r, style: s, children: t } = o;
|
|
13
|
+
return /* @__PURE__ */ a.createElement("div", { style: s, className: m("k-taskboard-header", r) }, /* @__PURE__ */ a.createElement("div", { className: "k-taskboard-toolbar k-toolbar" }, t));
|
|
14
14
|
};
|
|
15
|
-
|
|
15
|
+
e.propTypes = {
|
|
16
16
|
children: l.node
|
|
17
17
|
};
|
|
18
|
-
|
|
18
|
+
e.displayName = "KendoReactTaskBoardToolbar";
|
|
19
19
|
export {
|
|
20
|
-
|
|
20
|
+
e as TaskBoardToolbar
|
|
21
21
|
};
|
package/card/Card.d.ts
ADDED
|
@@ -0,0 +1,148 @@
|
|
|
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 { CardProps, CardHandle, MenuSelectEvent } from '@progress/kendo-react-layout';
|
|
9
|
+
import { TaskBoardConfirmDialogProps } from '../TaskBoardConfirmDialog.js';
|
|
10
|
+
import { TaskBoardCardHeaderProps } from './CardHeader.js';
|
|
11
|
+
import { TaskBoardCardBodyProps } from './CardBody.js';
|
|
12
|
+
import { TaskBoardPreviewDialogProps } from './PreviewDialog.js';
|
|
13
|
+
import { TaskBoardTaskModel } from '../TaskBoard.js';
|
|
14
|
+
import { PopupHandle } from '@progress/kendo-react-popup';
|
|
15
|
+
import * as React from 'react';
|
|
16
|
+
/**
|
|
17
|
+
* Represents the props of the TaskBoardCard component.
|
|
18
|
+
*/
|
|
19
|
+
export interface TaskBoardCardProps {
|
|
20
|
+
/**
|
|
21
|
+
* The rendered task.
|
|
22
|
+
*/
|
|
23
|
+
task: TaskBoardTaskModel;
|
|
24
|
+
/**
|
|
25
|
+
* The applied styles.
|
|
26
|
+
*/
|
|
27
|
+
style?: React.CSSProperties;
|
|
28
|
+
/**
|
|
29
|
+
* Specifies the `tabIndex` that will be added to the TaskBoard Card element.
|
|
30
|
+
*/
|
|
31
|
+
tabIndex?: number;
|
|
32
|
+
/**
|
|
33
|
+
* The disabled state.
|
|
34
|
+
*/
|
|
35
|
+
disabled?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Specifies the CardHandle reference.
|
|
38
|
+
*/
|
|
39
|
+
elementRef?: React.RefObject<CardHandle | null>;
|
|
40
|
+
/**
|
|
41
|
+
* Determines the menu visibility.
|
|
42
|
+
*/
|
|
43
|
+
showMenu: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Determines the visibility of the task's delete confirmation dialog.
|
|
46
|
+
*/
|
|
47
|
+
showDeleteConfirm: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* Determines the visibility of the task's preview pane.
|
|
50
|
+
*/
|
|
51
|
+
showTaskPreviewPane: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* Represents the menu items.
|
|
54
|
+
*/
|
|
55
|
+
menuItems: any[];
|
|
56
|
+
/**
|
|
57
|
+
* Represents the popup reference.
|
|
58
|
+
*/
|
|
59
|
+
popupRef: React.RefObject<PopupHandle | null>;
|
|
60
|
+
/**
|
|
61
|
+
* Represents the content of the TaskBoardConfirmDialog component.
|
|
62
|
+
*/
|
|
63
|
+
confirmDialogMessage: React.ReactNode;
|
|
64
|
+
/**
|
|
65
|
+
* Represents the title of the TaskBoardConfirmDialog component.
|
|
66
|
+
*/
|
|
67
|
+
confirmDialogTitle: string;
|
|
68
|
+
/**
|
|
69
|
+
* Represents the content of the confirm button of the TaskBoardConfirmDialog component.
|
|
70
|
+
*/
|
|
71
|
+
confirmDialogConfirmButton: React.ReactNode;
|
|
72
|
+
/**
|
|
73
|
+
* Represents the content of the cancel button of the TaskBoardConfirmDialog component.
|
|
74
|
+
*/
|
|
75
|
+
confirmDialogCancelButton: React.ReactNode;
|
|
76
|
+
/**
|
|
77
|
+
* Represents the priority label in the preview dialog.
|
|
78
|
+
*/
|
|
79
|
+
previewDialogPriorityLabel: string;
|
|
80
|
+
/**
|
|
81
|
+
* Represents the preview dialog delete node.
|
|
82
|
+
*/
|
|
83
|
+
previewDialogDelete: React.ReactNode;
|
|
84
|
+
/**
|
|
85
|
+
* Represents the preview dialog edit node.
|
|
86
|
+
*/
|
|
87
|
+
previewDialogEdit: React.ReactNode;
|
|
88
|
+
/**
|
|
89
|
+
* Fires when the preview pane needs to be shown.
|
|
90
|
+
*/
|
|
91
|
+
onShowPreviewPane: (event: React.MouseEvent<HTMLElement>) => void;
|
|
92
|
+
/**
|
|
93
|
+
* Fires when the preview pane needs to be closed.
|
|
94
|
+
*/
|
|
95
|
+
onClosePreviewPane: (event: React.MouseEvent<HTMLElement>) => void;
|
|
96
|
+
/**
|
|
97
|
+
* Fires on menu item selection.
|
|
98
|
+
*/
|
|
99
|
+
onMenuItemSelect: (event: MenuSelectEvent) => void;
|
|
100
|
+
/**
|
|
101
|
+
* Fires when the menu needs to be shown.
|
|
102
|
+
*/
|
|
103
|
+
onShowMenu: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
104
|
+
/**
|
|
105
|
+
* Fires when the menu needs to be hidden.
|
|
106
|
+
*/
|
|
107
|
+
onHideMenu: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
108
|
+
/**
|
|
109
|
+
* Fires on blur of the menu button.
|
|
110
|
+
*/
|
|
111
|
+
onMenuButtonBlur: (event: React.FocusEvent<HTMLButtonElement>) => void;
|
|
112
|
+
/**
|
|
113
|
+
* Fires when task's delete button is clicked.
|
|
114
|
+
*/
|
|
115
|
+
onTaskDelete: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
116
|
+
/**
|
|
117
|
+
* Fires when task's edit button is clicked.
|
|
118
|
+
*/
|
|
119
|
+
onTaskEdit: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
120
|
+
/**
|
|
121
|
+
* The Close Button click event handler of the TaskBoardConfirmDialog component.
|
|
122
|
+
*/
|
|
123
|
+
onCloseConfirmDialog: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
124
|
+
/**
|
|
125
|
+
* Represents the Card component.
|
|
126
|
+
*/
|
|
127
|
+
card: React.ForwardRefExoticComponent<CardProps & React.RefAttributes<CardHandle | null>>;
|
|
128
|
+
/**
|
|
129
|
+
* Represents the TaskBoardCardHeader component.
|
|
130
|
+
*/
|
|
131
|
+
cardHeader: React.ComponentType<TaskBoardCardHeaderProps>;
|
|
132
|
+
/**
|
|
133
|
+
* Represents the TaskBoardCardBody component.
|
|
134
|
+
*/
|
|
135
|
+
cardBody: React.ComponentType<TaskBoardCardBodyProps>;
|
|
136
|
+
/**
|
|
137
|
+
* Represents the TaskBoardConfirmDialog component.
|
|
138
|
+
*/
|
|
139
|
+
confirmDialog: React.ComponentType<TaskBoardConfirmDialogProps>;
|
|
140
|
+
/**
|
|
141
|
+
* Represents the TaskBoardPreviewDialog component.
|
|
142
|
+
*/
|
|
143
|
+
previewDialog: React.ComponentType<TaskBoardPreviewDialogProps>;
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* Represents the TaskBoardCard component.
|
|
147
|
+
*/
|
|
148
|
+
export declare const TaskBoardCard: React.FunctionComponent<TaskBoardCardProps>;
|
package/card/Card.mjs
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import * as t from "react";
|
|
9
9
|
import { classNames as a } from "@progress/kendo-react-common";
|
|
10
|
-
import {
|
|
10
|
+
import { TASKBOARD_TASK as n, TASKBOARD_ITEM_ID as i, TASKBOARD_ITEM_TYPE as l } from "../constants.mjs";
|
|
11
11
|
const o = (e) => /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement(
|
|
12
12
|
e.card,
|
|
13
13
|
{
|
|
@@ -17,8 +17,8 @@ const o = (e) => /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__
|
|
|
17
17
|
className: a("k-taskboard-card k-cursor-move k-taskboard-card-category", {
|
|
18
18
|
"k-disabled": e.disabled
|
|
19
19
|
}),
|
|
20
|
-
[
|
|
21
|
-
[
|
|
20
|
+
[l]: n,
|
|
21
|
+
[i]: e.task.id,
|
|
22
22
|
tabIndex: e.tabIndex
|
|
23
23
|
},
|
|
24
24
|
/* @__PURE__ */ t.createElement(
|
|
@@ -0,0 +1,26 @@
|
|
|
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 * as React from 'react';
|
|
10
|
+
/**
|
|
11
|
+
* Represents the props of the TaskBoardCardBody component.
|
|
12
|
+
*/
|
|
13
|
+
export interface TaskBoardCardBodyProps {
|
|
14
|
+
/**
|
|
15
|
+
* Determines the children nodes.
|
|
16
|
+
*/
|
|
17
|
+
children: React.ReactNode;
|
|
18
|
+
/**
|
|
19
|
+
* Determines the TaskBoardTask.
|
|
20
|
+
*/
|
|
21
|
+
task: TaskBoardTaskModel;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Represents the TaskBoardCardBody component.
|
|
25
|
+
*/
|
|
26
|
+
export declare const TaskBoardCardBody: React.FunctionComponent<TaskBoardCardBodyProps>;
|
|
@@ -0,0 +1,60 @@
|
|
|
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 { MenuSelectEvent } from '@progress/kendo-react-layout';
|
|
9
|
+
import { PopupHandle } from '@progress/kendo-react-popup';
|
|
10
|
+
import { TaskBoardTaskModel } from '../TaskBoard.js';
|
|
11
|
+
import * as React from 'react';
|
|
12
|
+
/**
|
|
13
|
+
* Represents the props of the TaskBoardCardHeader component.
|
|
14
|
+
*/
|
|
15
|
+
export interface TaskBoardCardHeaderProps {
|
|
16
|
+
/**
|
|
17
|
+
* Determines the visibility of the show menu.
|
|
18
|
+
*/
|
|
19
|
+
showMenu: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Represents the menu items.
|
|
22
|
+
*/
|
|
23
|
+
menuItems: any[];
|
|
24
|
+
/**
|
|
25
|
+
* Specifies the popup reference.
|
|
26
|
+
*/
|
|
27
|
+
popupRef: React.RefObject<PopupHandle | null>;
|
|
28
|
+
/**
|
|
29
|
+
* The rendered title.
|
|
30
|
+
*/
|
|
31
|
+
title: React.ReactNode;
|
|
32
|
+
/**
|
|
33
|
+
* The rendered task.
|
|
34
|
+
*/
|
|
35
|
+
task: TaskBoardTaskModel;
|
|
36
|
+
/**
|
|
37
|
+
* Fires when the preview pane needs to be shown.
|
|
38
|
+
*/
|
|
39
|
+
onShowPreviewPane: (event: React.MouseEvent<HTMLElement>) => void;
|
|
40
|
+
/**
|
|
41
|
+
* Fires when the menu needs to be shown.
|
|
42
|
+
*/
|
|
43
|
+
onShowMenu: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
44
|
+
/**
|
|
45
|
+
* Fires when the menu needs to be hidden.
|
|
46
|
+
*/
|
|
47
|
+
onHideMenu: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
48
|
+
/**
|
|
49
|
+
* Fires on blur of the menu button.
|
|
50
|
+
*/
|
|
51
|
+
onMenuButtonBlur: (event: React.FocusEvent<HTMLButtonElement>) => void;
|
|
52
|
+
/**
|
|
53
|
+
* Fires when menu item is selected.
|
|
54
|
+
*/
|
|
55
|
+
onMenuItemSelect: (event: MenuSelectEvent) => void;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Represents the TaskBoardCardHeader component.
|
|
59
|
+
*/
|
|
60
|
+
export declare const TaskBoardCardHeader: React.FunctionComponent<TaskBoardCardHeaderProps>;
|
package/card/CardHeader.js
CHANGED
|
@@ -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 l=require("react"),u=require("@progress/kendo-react-buttons"),
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react"),u=require("@progress/kendo-react-buttons"),r=require("@progress/kendo-react-layout"),s=require("@progress/kendo-react-popup"),i=require("@progress/kendo-svg-icons");function d(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const c=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(n,a,c.get?c:{enumerable:!0,get:()=>e[a]})}}return n.default=e,Object.freeze(n)}const t=d(l),o=e=>{const n=t.useRef(void 0);return t.createElement(r.CardHeader,{className:"k-hbox"},t.createElement("span",{className:"k-card-title k-link",onClick:e.onShowPreviewPane},e.title),t.createElement("span",{className:"k-spacer"}),t.createElement("div",{className:"k-card-header-actions"},t.createElement(u.Button,{fillMode:"flat",className:"k-card-details",icon:"more-vertical",svgIcon:i.moreVerticalIcon,ref:n,onClick:e.showMenu?e.onHideMenu:e.onShowMenu,onBlur:e.onMenuButtonBlur}),t.createElement(s.Popup,{anchor:n.current&&n.current.element,show:e.showMenu,ref:e.popupRef},t.createElement(r.Menu,{vertical:!0,onSelect:e.onMenuItemSelect,items:e.menuItems,className:"k-context-menu"}))))};o.displayName="KendoReactTaskBoardCardHeader";exports.TaskBoardCardHeader=o;
|
package/card/CardHeader.mjs
CHANGED
|
@@ -15,9 +15,8 @@ const l = (e) => {
|
|
|
15
15
|
return /* @__PURE__ */ t.createElement(r, { className: "k-hbox" }, /* @__PURE__ */ t.createElement("span", { className: "k-card-title k-link", onClick: e.onShowPreviewPane }, e.title), /* @__PURE__ */ t.createElement("span", { className: "k-spacer" }), /* @__PURE__ */ t.createElement("div", { className: "k-card-header-actions" }, /* @__PURE__ */ t.createElement(
|
|
16
16
|
n,
|
|
17
17
|
{
|
|
18
|
-
className: "k-card-details",
|
|
19
18
|
fillMode: "flat",
|
|
20
|
-
|
|
19
|
+
className: "k-card-details",
|
|
21
20
|
icon: "more-vertical",
|
|
22
21
|
svgIcon: m,
|
|
23
22
|
ref: a,
|
|
@@ -0,0 +1,54 @@
|
|
|
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 { TaskBoardPriority } from '../TaskBoard.js';
|
|
9
|
+
import * as React from 'react';
|
|
10
|
+
/**
|
|
11
|
+
* Represents the props of the TaskBoardPreviewDialog component.
|
|
12
|
+
*/
|
|
13
|
+
export interface TaskBoardPreviewDialogProps {
|
|
14
|
+
/**
|
|
15
|
+
* The rendered title.
|
|
16
|
+
*/
|
|
17
|
+
title: React.ReactNode;
|
|
18
|
+
/**
|
|
19
|
+
* The rendered description.
|
|
20
|
+
*/
|
|
21
|
+
description: React.ReactNode;
|
|
22
|
+
/**
|
|
23
|
+
* Represents the priority label of the TaskBoardPreviewDialog.
|
|
24
|
+
*/
|
|
25
|
+
priorityLabel: React.ReactNode;
|
|
26
|
+
/**
|
|
27
|
+
* Determines the content of the delete button.
|
|
28
|
+
*/
|
|
29
|
+
delete: React.ReactNode;
|
|
30
|
+
/**
|
|
31
|
+
* Determines the content of the edit button.
|
|
32
|
+
*/
|
|
33
|
+
edit: React.ReactNode;
|
|
34
|
+
/**
|
|
35
|
+
* Represents the priority of the current task.
|
|
36
|
+
*/
|
|
37
|
+
priority: TaskBoardPriority;
|
|
38
|
+
/**
|
|
39
|
+
* Fires when the preview pane needs to be shown.
|
|
40
|
+
*/
|
|
41
|
+
onClosePreviewPane: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
42
|
+
/**
|
|
43
|
+
* Fires when task is deleted.
|
|
44
|
+
*/
|
|
45
|
+
onTaskDelete: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
46
|
+
/**
|
|
47
|
+
* Fires when task is edited.
|
|
48
|
+
*/
|
|
49
|
+
onTaskEdit: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Represents the TaskBoardPreviewDialog component.
|
|
53
|
+
*/
|
|
54
|
+
export declare const TaskBoardPreviewDialog: React.FunctionComponent<TaskBoardPreviewDialogProps>;
|
package/card/PreviewDialog.js
CHANGED
|
@@ -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 l=require("react"),r=require("@progress/kendo-react-buttons"),i=require("@progress/kendo-svg-icons");function s(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react"),r=require("@progress/kendo-react-buttons"),i=require("@progress/kendo-svg-icons");function s(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const c=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(n,a,c.get?c:{enumerable:!0,get:()=>e[a]})}}return n.default=e,Object.freeze(n)}const t=s(l),o=e=>t.createElement("div",{className:"k-taskboard-pane k-taskboard-preview-pane"},t.createElement("div",{className:"k-taskboard-pane-header"},t.createElement("div",{className:"k-taskboard-pane-header-text"},e.title),t.createElement("span",{className:"k-spacer"}),t.createElement("div",{className:"k-taskboard-pane-header-actions"},t.createElement(r.Button,{icon:"x",svgIcon:i.xIcon,onClick:e.onClosePreviewPane}))),t.createElement("div",{className:"k-taskboard-pane-content"},t.createElement("p",null,e.description),t.createElement("p",null,e.priorityLabel," ",t.createElement("span",{style:{backgroundColor:e.priority.color}}," ")," ",e.priority.priority)),t.createElement("div",{className:"k-taskboard-pane-actions k-actions k-hstack k-justify-content-end"},t.createElement(r.Button,{onClick:e.onTaskDelete},e.delete),t.createElement(r.Button,{onClick:e.onTaskEdit},e.edit)));o.displayName="KendoReactTaskBoardPreviewDialog";exports.TaskBoardPreviewDialog=o;
|
package/card/PreviewDialog.mjs
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
import * as e from "react";
|
|
9
9
|
import { Button as t } from "@progress/kendo-react-buttons";
|
|
10
10
|
import { xIcon as n } from "@progress/kendo-svg-icons";
|
|
11
|
-
const r = (a) => /* @__PURE__ */ e.createElement("div", { className: "k-taskboard-pane k-taskboard-preview-pane" }, /* @__PURE__ */ e.createElement("div", { className: "k-taskboard-pane-header" }, /* @__PURE__ */ e.createElement("div", { className: "k-taskboard-pane-header-text" }, a.title), /* @__PURE__ */ e.createElement("span", { className: "k-spacer" }), /* @__PURE__ */ e.createElement("div", { className: "k-taskboard-pane-header-actions" }, /* @__PURE__ */ e.createElement(t, { icon: "x", svgIcon: n,
|
|
11
|
+
const r = (a) => /* @__PURE__ */ e.createElement("div", { className: "k-taskboard-pane k-taskboard-preview-pane" }, /* @__PURE__ */ e.createElement("div", { className: "k-taskboard-pane-header" }, /* @__PURE__ */ e.createElement("div", { className: "k-taskboard-pane-header-text" }, a.title), /* @__PURE__ */ e.createElement("span", { className: "k-spacer" }), /* @__PURE__ */ e.createElement("div", { className: "k-taskboard-pane-header-actions" }, /* @__PURE__ */ e.createElement(t, { icon: "x", svgIcon: n, onClick: a.onClosePreviewPane }))), /* @__PURE__ */ e.createElement("div", { className: "k-taskboard-pane-content" }, /* @__PURE__ */ e.createElement("p", null, a.description), /* @__PURE__ */ e.createElement("p", null, a.priorityLabel, " ", /* @__PURE__ */ e.createElement("span", { style: { backgroundColor: a.priority.color } }, " "), " ", a.priority.priority)), /* @__PURE__ */ e.createElement("div", { className: "k-taskboard-pane-actions k-actions k-hstack k-justify-content-end" }, /* @__PURE__ */ e.createElement(t, { onClick: a.onTaskDelete }, a.delete), /* @__PURE__ */ e.createElement(t, { onClick: a.onTaskEdit }, a.edit)));
|
|
12
12
|
r.displayName = "KendoReactTaskBoardPreviewDialog";
|
|
13
13
|
export {
|
|
14
14
|
r as TaskBoardPreviewDialog
|