@progress/kendo-react-gantt 7.2.4-develop.3 → 7.2.4-develop.4
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/Gantt.js +8 -0
- package/Gantt.mjs +411 -0
- package/cells/FilterCells/GanttBooleanFilter.js +8 -0
- package/cells/FilterCells/GanttBooleanFilter.mjs +27 -0
- package/cells/FilterCells/GanttDateFilter.js +8 -0
- package/cells/FilterCells/GanttDateFilter.mjs +27 -0
- package/cells/FilterCells/GanttNumericFilter.js +8 -0
- package/cells/FilterCells/GanttNumericFilter.mjs +27 -0
- package/cells/FilterCells/GanttTextFilter.js +8 -0
- package/cells/FilterCells/GanttTextFilter.mjs +27 -0
- package/cells/FilterCells/utils.js +8 -0
- package/cells/FilterCells/utils.mjs +59 -0
- package/components/BaseView.js +8 -0
- package/components/BaseView.mjs +239 -0
- package/components/GanttDependency.js +8 -0
- package/components/GanttDependency.mjs +58 -0
- package/components/GanttTask.js +8 -0
- package/components/GanttTask.mjs +169 -0
- package/components/GanttTreelist.js +8 -0
- package/components/GanttTreelist.mjs +571 -0
- package/components/toolbar/AddButton.js +8 -0
- package/components/toolbar/AddButton.mjs +56 -0
- package/components/toolbar/Toolbar.js +8 -0
- package/components/toolbar/Toolbar.mjs +34 -0
- package/components/toolbar/view-selector/ViewSelector.js +8 -0
- package/components/toolbar/view-selector/ViewSelector.mjs +32 -0
- package/components/toolbar/view-selector/ViewSelectorItem.js +8 -0
- package/components/toolbar/view-selector/ViewSelectorItem.mjs +39 -0
- package/components/toolbar/view-selector/ViewSelectorList.js +8 -0
- package/components/toolbar/view-selector/ViewSelectorList.mjs +36 -0
- package/constants/index.js +8 -0
- package/constants/index.mjs +52 -0
- package/context/GanttContext.js +8 -0
- package/context/GanttContext.mjs +103 -0
- package/context/GanttViewContext.js +8 -0
- package/context/GanttViewContext.mjs +38 -0
- package/dist/cdn/js/kendo-react-gantt.js +8 -5
- package/editors/FormDateTimePicker.js +8 -0
- package/editors/FormDateTimePicker.mjs +29 -0
- package/editors/FormDropDownList.js +8 -0
- package/editors/FormDropDownList.mjs +62 -0
- package/editors/FormInput.js +8 -0
- package/editors/FormInput.mjs +29 -0
- package/editors/FormNumericTextBox.js +8 -0
- package/editors/FormNumericTextBox.mjs +30 -0
- package/editors/GanttEditor.js +8 -0
- package/editors/GanttEditor.mjs +260 -0
- package/editors/GanttEditorPredecessors.js +8 -0
- package/editors/GanttEditorPredecessors.mjs +121 -0
- package/editors/GanttEditorSuccessors.js +8 -0
- package/editors/GanttEditorSuccessors.mjs +121 -0
- package/editors/GanttForm.js +8 -0
- package/editors/GanttForm.mjs +113 -0
- package/editors/GanttRemoveDialog.js +8 -0
- package/editors/GanttRemoveDialog.mjs +49 -0
- package/hooks/useControlledState.js +8 -0
- package/hooks/useControlledState.mjs +21 -0
- package/hooks/useDictionaryStore.js +8 -0
- package/hooks/useDictionaryStore.mjs +30 -0
- package/hooks/useGanttTask.js +8 -0
- package/hooks/useGanttTask.mjs +35 -0
- package/index.d.mts +1394 -5
- package/index.d.ts +1394 -32
- package/index.js +8 -5
- package/index.mjs +50 -3087
- package/interfaces/DependencyType.js +8 -0
- package/interfaces/DependencyType.mjs +12 -0
- package/messages/index.js +8 -0
- package/messages/index.mjs +137 -0
- package/package-metadata.js +8 -0
- package/package-metadata.mjs +19 -0
- package/package.json +12 -12
- package/rows/GanttRow.js +8 -0
- package/rows/GanttRow.mjs +13 -0
- package/utils/data-operations.js +8 -0
- package/utils/data-operations.mjs +183 -0
- package/utils/index.js +8 -0
- package/utils/index.mjs +263 -0
- package/views/GanttDayView.js +8 -0
- package/views/GanttDayView.mjs +94 -0
- package/views/GanttMonthView.js +8 -0
- package/views/GanttMonthView.mjs +82 -0
- package/views/GanttWeekView.js +8 -0
- package/views/GanttWeekView.mjs +81 -0
- package/views/GanttYearView.js +8 -0
- package/views/GanttYearView.mjs +73 -0
- package/Gantt.d.ts +0 -29
- package/cells/FilterCells/GanttBooleanFilter.d.ts +0 -14
- package/cells/FilterCells/GanttDateFilter.d.ts +0 -14
- package/cells/FilterCells/GanttNumericFilter.d.ts +0 -14
- package/cells/FilterCells/GanttTextFilter.d.ts +0 -14
- package/cells/FilterCells/utils.d.ts +0 -42
- package/components/BaseView.d.ts +0 -24
- package/components/GanttDependency.d.ts +0 -13
- package/components/GanttTask.d.ts +0 -16
- package/components/GanttTreelist.d.ts +0 -143
- package/components/toolbar/AddButton.d.ts +0 -16
- package/components/toolbar/Toolbar.d.ts +0 -25
- package/components/toolbar/view-selector/ViewSelector.d.ts +0 -28
- package/components/toolbar/view-selector/ViewSelectorItem.d.ts +0 -15
- package/components/toolbar/view-selector/ViewSelectorList.d.ts +0 -7
- package/constants/index.d.ts +0 -57
- package/context/GanttContext.d.ts +0 -125
- package/context/GanttViewContext.d.ts +0 -44
- package/editors/FormDateTimePicker.d.ts +0 -9
- package/editors/FormDropDownList.d.ts +0 -9
- package/editors/FormInput.d.ts +0 -9
- package/editors/FormNumericTextBox.d.ts +0 -9
- package/editors/GanttEditor.d.ts +0 -21
- package/editors/GanttEditorPredecessors.d.ts +0 -25
- package/editors/GanttEditorSuccessors.d.ts +0 -25
- package/editors/GanttForm.d.ts +0 -70
- package/editors/GanttRemoveDialog.d.ts +0 -48
- package/hooks/useControlledState.d.ts +0 -8
- package/hooks/useDictionaryStore.d.ts +0 -22
- package/hooks/useGanttTask.d.ts +0 -8
- package/interfaces/AddDirection.d.ts +0 -10
- package/interfaces/DataItem.d.ts +0 -10
- package/interfaces/DateRange.d.ts +0 -12
- package/interfaces/DependencyModelFields.d.ts +0 -29
- package/interfaces/DependencyType.d.ts +0 -19
- package/interfaces/GanttBaseProps.d.ts +0 -66
- package/interfaces/GanttCellProps.d.ts +0 -45
- package/interfaces/GanttColumnProps.d.ts +0 -40
- package/interfaces/GanttDependency.d.ts +0 -30
- package/interfaces/GanttDependencyModelFields.d.ts +0 -29
- package/interfaces/GanttFilterCellProps.d.ts +0 -10
- package/interfaces/GanttFilterOperator.d.ts +0 -10
- package/interfaces/GanttHeaderCellProps.d.ts +0 -10
- package/interfaces/GanttNoRecordsProps.d.ts +0 -13
- package/interfaces/GanttProps.d.ts +0 -151
- package/interfaces/GanttRowProps.d.ts +0 -95
- package/interfaces/GanttSelectableSettings.d.ts +0 -22
- package/interfaces/GanttSlotType.d.ts +0 -8
- package/interfaces/GanttSortSettings.d.ts +0 -17
- package/interfaces/GanttTaskModelFields.d.ts +0 -64
- package/interfaces/GanttView.d.ts +0 -80
- package/interfaces/GanttViewTimelineHeaderCellProps.d.ts +0 -23
- package/interfaces/Rectangle.d.ts +0 -10
- package/interfaces/Slot.d.ts +0 -16
- package/interfaces/TaskModelFields.d.ts +0 -20
- package/interfaces/events.d.ts +0 -298
- package/messages/index.d.ts +0 -194
- package/package-metadata.d.ts +0 -9
- package/rows/GanttRow.d.ts +0 -8
- package/utils/data-operations.d.ts +0 -47
- package/utils/index.d.ts +0 -182
- package/views/GanttDayView.d.ts +0 -21
- package/views/GanttMonthView.d.ts +0 -17
- package/views/GanttWeekView.d.ts +0 -17
- package/views/GanttYearView.d.ts +0 -17
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const R=require("react"),p=require("react-dom"),s=require("@progress/kendo-react-dialogs"),O=require("@progress/kendo-react-intl"),c=require("../messages/index.js"),q=require("@progress/kendo-react-common"),u=require("@progress/kendo-react-buttons");function d(n){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const t in n)if(t!=="default"){const l=Object.getOwnPropertyDescriptor(n,t);Object.defineProperty(o,t,l.get?l:{enumerable:!0,get:()=>n[t]})}}return o.default=n,Object.freeze(o)}const a=d(R),S=d(p),j=n=>{const{onClose:o,onCancel:t,onConfirm:l,dataItem:i}=n,m=O.useLocalization(),r=e=>m.toLanguageString(e,c.messages[e]),g=r(c.editorDelete),C=r(c.editorCancel),f=r(c.deleteConfirmation),D=r(c.deleteDialogTitle),v=a.useCallback(({syntheticEvent:e})=>{o&&o.call(void 0,{syntheticEvent:e,nativeEvent:e&&e.nativeEvent,dataItem:null})},[o]),b=a.useCallback(e=>{t&&t.call(void 0,{syntheticEvent:e,nativeEvent:e&&e.nativeEvent,dataItem:null})},[t]),k=a.useCallback(e=>{l&&l.call(void 0,{syntheticEvent:e,nativeEvent:e&&e.nativeEvent,dataItem:i})},[l,i]),M=a.createElement(s.Dialog,{title:D,onClose:v},f,a.createElement(s.DialogActionsBar,{layout:"end"},a.createElement(u.Button,{themeColor:"primary",onClick:k},g),a.createElement(u.Button,{onClick:b},C)));return q.canUseDOM?S.createPortal(M,document&&document.body):null};exports.GanttRemoveDialog=j;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";
|
|
9
|
+
import * as o from "react";
|
|
10
|
+
import * as p from "react-dom";
|
|
11
|
+
import { Dialog as M, DialogActionsBar as k } from "@progress/kendo-react-dialogs";
|
|
12
|
+
import { useLocalization as b } from "@progress/kendo-react-intl";
|
|
13
|
+
import { messages as E, editorDelete as z, editorCancel as I, deleteConfirmation as R, deleteDialogTitle as B } from "../messages/index.mjs";
|
|
14
|
+
import { canUseDOM as L } from "@progress/kendo-react-common";
|
|
15
|
+
import { Button as r } from "@progress/kendo-react-buttons";
|
|
16
|
+
const G = (c) => {
|
|
17
|
+
const { onClose: a, onCancel: l, onConfirm: n, dataItem: i } = c, m = b(), t = (e) => m.toLanguageString(e, E[e]), s = t(z), d = t(I), u = t(R), C = t(B), f = o.useCallback(
|
|
18
|
+
({ syntheticEvent: e }) => {
|
|
19
|
+
a && a.call(void 0, {
|
|
20
|
+
syntheticEvent: e,
|
|
21
|
+
nativeEvent: e && e.nativeEvent,
|
|
22
|
+
dataItem: null
|
|
23
|
+
});
|
|
24
|
+
},
|
|
25
|
+
[a]
|
|
26
|
+
), g = o.useCallback(
|
|
27
|
+
(e) => {
|
|
28
|
+
l && l.call(void 0, {
|
|
29
|
+
syntheticEvent: e,
|
|
30
|
+
nativeEvent: e && e.nativeEvent,
|
|
31
|
+
dataItem: null
|
|
32
|
+
});
|
|
33
|
+
},
|
|
34
|
+
[l]
|
|
35
|
+
), v = o.useCallback(
|
|
36
|
+
(e) => {
|
|
37
|
+
n && n.call(void 0, {
|
|
38
|
+
syntheticEvent: e,
|
|
39
|
+
nativeEvent: e && e.nativeEvent,
|
|
40
|
+
dataItem: i
|
|
41
|
+
});
|
|
42
|
+
},
|
|
43
|
+
[n, i]
|
|
44
|
+
), D = /* @__PURE__ */ o.createElement(M, { title: C, onClose: f }, u, /* @__PURE__ */ o.createElement(k, { layout: "end" }, /* @__PURE__ */ o.createElement(r, { themeColor: "primary", onClick: v }, s), /* @__PURE__ */ o.createElement(r, { onClick: g }, d)));
|
|
45
|
+
return L ? p.createPortal(D, document && document.body) : null;
|
|
46
|
+
};
|
|
47
|
+
export {
|
|
48
|
+
G as GanttRemoveDialog
|
|
49
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react");function l(t){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const e in t)if(e!=="default"){const o=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(n,e,o.get?o:{enumerable:!0,get:()=>t[e]})}}return n.default=t,Object.freeze(n)}const s=l(i),d=(t,n,e)=>{const[o,r]=s.useState(n||t),a=s.useCallback((c,u)=>{r(c),e&&e.call(void 0,{...u,value:c})},[e,r]);return[n!==void 0?n:o,a]};exports.useControlledState=d;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";
|
|
9
|
+
import * as n from "react";
|
|
10
|
+
const u = (i, t, e) => {
|
|
11
|
+
const [a, s] = n.useState(t || i), d = n.useCallback(
|
|
12
|
+
(o, r) => {
|
|
13
|
+
s(o), e && e.call(void 0, { ...r, value: o });
|
|
14
|
+
},
|
|
15
|
+
[e, s]
|
|
16
|
+
);
|
|
17
|
+
return [t !== void 0 ? t : a, d];
|
|
18
|
+
};
|
|
19
|
+
export {
|
|
20
|
+
u as useControlledState
|
|
21
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react");function u(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const c=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,c.get?c:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const n=u(a);var o=(e=>(e[e.add=0]="add",e[e.remove=1]="remove",e))(o||{});const s=()=>{const e=n.useRef({}),r=n.useCallback(t=>{switch(t.type){case 0:e.current[t.id]=t.itemRef;break;case 1:delete e.current[t.id];break}},[]);return[e,r]};exports.STORE_ACTION=o;exports.useDictionaryStore=s;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";
|
|
9
|
+
import * as t from "react";
|
|
10
|
+
var a = /* @__PURE__ */ ((e) => (e[e.add = 0] = "add", e[e.remove = 1] = "remove", e))(a || {});
|
|
11
|
+
const c = () => {
|
|
12
|
+
const e = t.useRef({}), s = t.useCallback(
|
|
13
|
+
(r) => {
|
|
14
|
+
switch (r.type) {
|
|
15
|
+
case 0:
|
|
16
|
+
e.current[r.id] = r.itemRef;
|
|
17
|
+
break;
|
|
18
|
+
case 1:
|
|
19
|
+
delete e.current[r.id];
|
|
20
|
+
break;
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
[]
|
|
24
|
+
);
|
|
25
|
+
return [e, s];
|
|
26
|
+
};
|
|
27
|
+
export {
|
|
28
|
+
a as STORE_ACTION,
|
|
29
|
+
c as useDictionaryStore
|
|
30
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react"),f=require("../context/GanttViewContext.js"),u=require("./useDictionaryStore.js"),l=require("@progress/kendo-react-common");function m(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const c=m(i),p=(e,t,n,r)=>{const o=c.useRef(null),[,s]=f.useGanttViewTasksContext();c.useImperativeHandle(o,()=>({element:r.current,dataItem:e})),c.useImperativeHandle(n,()=>o.current),l.useIsomorphicLayoutEffect(()=>{const a=o.current;if(a)return s({type:u.STORE_ACTION.add,itemRef:a,id:t}),()=>{s({type:u.STORE_ACTION.remove,itemRef:a,id:t})}})};exports.useGanttTask=p;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";
|
|
9
|
+
import * as r from "react";
|
|
10
|
+
import { useGanttViewTasksContext as c } from "../context/GanttViewContext.mjs";
|
|
11
|
+
import { STORE_ACTION as a } from "./useDictionaryStore.mjs";
|
|
12
|
+
import { useIsomorphicLayoutEffect as f } from "@progress/kendo-react-common";
|
|
13
|
+
const l = (n, s, m, u) => {
|
|
14
|
+
const e = r.useRef(null), [, o] = c();
|
|
15
|
+
r.useImperativeHandle(e, () => ({ element: u.current, dataItem: n })), r.useImperativeHandle(m, () => e.current), f(
|
|
16
|
+
() => {
|
|
17
|
+
const t = e.current;
|
|
18
|
+
if (t)
|
|
19
|
+
return o({
|
|
20
|
+
type: a.add,
|
|
21
|
+
itemRef: t,
|
|
22
|
+
id: s
|
|
23
|
+
}), () => {
|
|
24
|
+
o({
|
|
25
|
+
type: a.remove,
|
|
26
|
+
itemRef: t,
|
|
27
|
+
id: s
|
|
28
|
+
});
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
);
|
|
32
|
+
};
|
|
33
|
+
export {
|
|
34
|
+
l as useGanttTask
|
|
35
|
+
};
|