@progress/kendo-react-gantt 7.2.4-develop.2 → 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 s=require("react"),u=require("@progress/kendo-react-buttons"),i=require("@progress/kendo-react-common");function m(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const c=m(s),l=c.forwardRef((e,n)=>{const{className:t,...r}=e,o=c.useRef(null);return c.useImperativeHandle(n,()=>({element:o.current,props:e})),c.createElement(u.ToolbarItem,{ref:a=>{a&&(o.current=a.element)},className:i.classNames("k-gantt-views",t),...r},e.children)});l.displayName="KendoReactGanttViewSelector";exports.ViewSelector=l;
|
|
@@ -0,0 +1,32 @@
|
|
|
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 e from "react";
|
|
10
|
+
import { ToolbarItem as m } from "@progress/kendo-react-buttons";
|
|
11
|
+
import { classNames as o } from "@progress/kendo-react-common";
|
|
12
|
+
const s = e.forwardRef((t, n) => {
|
|
13
|
+
const {
|
|
14
|
+
className: l,
|
|
15
|
+
...c
|
|
16
|
+
} = t, r = e.useRef(null);
|
|
17
|
+
return e.useImperativeHandle(n, () => ({ element: r.current, props: t })), /* @__PURE__ */ e.createElement(
|
|
18
|
+
m,
|
|
19
|
+
{
|
|
20
|
+
ref: (a) => {
|
|
21
|
+
a && (r.current = a.element);
|
|
22
|
+
},
|
|
23
|
+
className: o("k-gantt-views", l),
|
|
24
|
+
...c
|
|
25
|
+
},
|
|
26
|
+
t.children
|
|
27
|
+
);
|
|
28
|
+
});
|
|
29
|
+
s.displayName = "KendoReactGanttViewSelector";
|
|
30
|
+
export {
|
|
31
|
+
s as ViewSelector
|
|
32
|
+
};
|
|
@@ -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"),u=require("@progress/kendo-react-buttons"),s=require("@progress/kendo-react-intl"),m=require("../../../context/GanttContext.js");function d(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 c=d(r),o=e=>{const[n,t]=m.useGanttActiveViewContext(),i=s.useLocalization(),a=c.useMemo(()=>typeof e.view.title=="function"?e.view.title.call(void 0,i):e.view.title,[e.view.title,i]),l=c.useCallback(()=>{e.view.name&&t(e.view.name)},[t,e.view.name]);return c.createElement(u.Button,{role:"button",type:"button",tabIndex:-1,togglable:!0,selected:e.view.name===n,onClick:l},a)};o.displayName="KendoReactGanttViewSelectorItem";exports.ViewSelectorItem=o;
|
|
@@ -0,0 +1,39 @@
|
|
|
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
|
+
import { Button as c } from "@progress/kendo-react-buttons";
|
|
11
|
+
import { useLocalization as m } from "@progress/kendo-react-intl";
|
|
12
|
+
import { useGanttActiveViewContext as v } from "../../../context/GanttContext.mjs";
|
|
13
|
+
const w = (e) => {
|
|
14
|
+
const [a, i] = v(), n = m(), o = t.useMemo(
|
|
15
|
+
() => typeof e.view.title == "function" ? e.view.title.call(void 0, n) : e.view.title,
|
|
16
|
+
[e.view.title, n]
|
|
17
|
+
), l = t.useCallback(
|
|
18
|
+
() => {
|
|
19
|
+
e.view.name && i(e.view.name);
|
|
20
|
+
},
|
|
21
|
+
[i, e.view.name]
|
|
22
|
+
);
|
|
23
|
+
return /* @__PURE__ */ t.createElement(
|
|
24
|
+
c,
|
|
25
|
+
{
|
|
26
|
+
role: "button",
|
|
27
|
+
type: "button",
|
|
28
|
+
tabIndex: -1,
|
|
29
|
+
togglable: !0,
|
|
30
|
+
selected: e.view.name === a,
|
|
31
|
+
onClick: l
|
|
32
|
+
},
|
|
33
|
+
o
|
|
34
|
+
);
|
|
35
|
+
};
|
|
36
|
+
w.displayName = "KendoReactGanttViewSelectorItem";
|
|
37
|
+
export {
|
|
38
|
+
w as ViewSelectorItem
|
|
39
|
+
};
|
|
@@ -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 p=require("react"),d=require("@progress/kendo-react-intl"),m=require("@progress/kendo-react-buttons"),k=require("./ViewSelectorItem.js"),c=require("../../../context/GanttContext.js"),i=require("../../../messages/index.js");function f(t){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const a=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(o,n,a.get?a:{enumerable:!0,get:()=>t[n]})}}return o.default=t,Object.freeze(o)}const r=f(p),s=r.forwardRef(()=>{const t=c.useGanttViewsContext(),[o,n]=c.useGanttActiveViewContext(),a=d.useLocalization(),l=e=>a.toLanguageString(e,i.messages[e]),u=r.useCallback(e=>{n&&(e.preventDefault(),n(e.target.value))},[n]);return r.createElement("div",{className:"k-gantt-views-wrapper"},r.createElement(m.ButtonGroup,{className:"k-gantt-views"},t.map(e=>r.createElement(k.ViewSelectorItem,{key:e.props.name,view:e.props}))),r.createElement("select",{value:o,onChange:u,"aria-label":l(i.viewSelector),className:"k-picker k-picker-solid k-dropdown-list k-dropdown k-views-dropdown k-rounded-md"},t.map(e=>r.createElement("option",{key:e.props.name,value:e.props.name},typeof e.props.title=="function"?e.props.title.call(void 0,a):e.props.title))))});s.displayName="KendoReactGanttViewSelectorList";exports.ViewSelectorList=s;
|
|
@@ -0,0 +1,36 @@
|
|
|
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
|
+
import { useLocalization as l } from "@progress/kendo-react-intl";
|
|
11
|
+
import { ButtonGroup as c } from "@progress/kendo-react-buttons";
|
|
12
|
+
import { ViewSelectorItem as p } from "./ViewSelectorItem.mjs";
|
|
13
|
+
import { useGanttViewsContext as m, useGanttActiveViewContext as u } from "../../../context/GanttContext.mjs";
|
|
14
|
+
import { messages as d, viewSelector as k } from "../../../messages/index.mjs";
|
|
15
|
+
const w = t.forwardRef(() => {
|
|
16
|
+
const r = m(), [i, o] = u(), a = l(), n = (e) => a.toLanguageString(e, d[e]), s = t.useCallback(
|
|
17
|
+
(e) => {
|
|
18
|
+
o && (e.preventDefault(), o(e.target.value));
|
|
19
|
+
},
|
|
20
|
+
[o]
|
|
21
|
+
);
|
|
22
|
+
return /* @__PURE__ */ t.createElement("div", { className: "k-gantt-views-wrapper" }, /* @__PURE__ */ t.createElement(c, { className: "k-gantt-views" }, r.map((e) => /* @__PURE__ */ t.createElement(p, { key: e.props.name, view: e.props }))), /* @__PURE__ */ t.createElement(
|
|
23
|
+
"select",
|
|
24
|
+
{
|
|
25
|
+
value: i,
|
|
26
|
+
onChange: s,
|
|
27
|
+
"aria-label": n(k),
|
|
28
|
+
className: "k-picker k-picker-solid k-dropdown-list k-dropdown k-views-dropdown k-rounded-md"
|
|
29
|
+
},
|
|
30
|
+
r.map((e) => /* @__PURE__ */ t.createElement("option", { key: e.props.name, value: e.props.name }, typeof e.props.title == "function" ? e.props.title.call(void 0, a) : e.props.title))
|
|
31
|
+
));
|
|
32
|
+
});
|
|
33
|
+
w.displayName = "KendoReactGanttViewSelectorList";
|
|
34
|
+
export {
|
|
35
|
+
w as ViewSelectorList
|
|
36
|
+
};
|
|
@@ -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 E=require("@progress/kendo-date-math"),_=require("@progress/kendo-react-data-tools"),A=_.TABLE_ROW_INDEX_ATTRIBUTE,t=_.TABLE_COL_INDEX_ATTRIBUTE,N=_.TABLE_PREVENT_SELECTION_ELEMENT,I=new Date().getTime(),R=7,n="hh:mm a",O={skeleton:"MEd"},o="MMM",s="yyyy",L=100,d=6,T="data-dependency-drag-handle",D="start",e="finish",c={[T]:D},M={[T]:e},S="data-task-id",r={id:"id",start:"start",end:"end",title:"title",percentComplete:"percentComplete",parentId:"parentId",isRollup:"isRollup",isExpanded:"isExpanded",isInEdit:"isInEdit",children:"children",isSelected:"isSelected"},i={id:"id",fromId:"fromId",toId:"toId",type:"type"};Object.defineProperty(exports,"MS_PER_DAY",{enumerable:!0,get:()=>E.MS_PER_DAY});Object.defineProperty(exports,"MS_PER_HOUR",{enumerable:!0,get:()=>E.MS_PER_HOUR});Object.defineProperty(exports,"MS_PER_MINUTE",{enumerable:!0,get:()=>E.MS_PER_MINUTE});exports.DAYS_IN_WEEK_COUNT=R;exports.DAY_DATE_FORMAT=O;exports.DEFAULT_COLUMN_WIDTH=L;exports.DEFAULT_DATE=I;exports.DEFAULT_DEPENDENCY_MODEL_FIELDS=i;exports.DEFAULT_TASK_MODEL_FIELDS=r;exports.DEPENDENCY_DRAG_HANDLE=T;exports.DEPENDENCY_DRAG_HANDLE_FINISH_ATT=M;exports.DEPENDENCY_DRAG_HANDLE_START_ATT=c;exports.DRAG_DIRECTION_FINISH=e;exports.DRAG_DIRECTION_START=D;exports.GANTT_COL_INDEX_ATTRIBUTE=t;exports.GANTT_PREVENT_SELECTION_ELEMENT=N;exports.GANTT_ROW_INDEX_ATTRIBUTE=A;exports.HOUR_DATE_FORMAT=n;exports.MILESTONE_OFFSET=d;exports.MONTH_DATE_FORMAT=o;exports.TASK_ID_ATT=S;exports.YEAR_DATE_FORMAT=s;
|
|
@@ -0,0 +1,52 @@
|
|
|
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 { MS_PER_DAY as F, MS_PER_HOUR as U, MS_PER_MINUTE as m } from "@progress/kendo-date-math";
|
|
10
|
+
import { TABLE_ROW_INDEX_ATTRIBUTE as T, TABLE_COL_INDEX_ATTRIBUTE as _, TABLE_PREVENT_SELECTION_ELEMENT as t } from "@progress/kendo-react-data-tools";
|
|
11
|
+
const n = T, s = _, N = t, o = (/* @__PURE__ */ new Date()).getTime(), I = 7, d = "hh:mm a", R = { skeleton: "MEd" }, c = "MMM", i = "yyyy", L = 100, O = 6, E = "data-dependency-drag-handle", A = "start", D = "finish", M = { [E]: A }, S = { [E]: D }, r = "data-task-id", a = {
|
|
12
|
+
id: "id",
|
|
13
|
+
start: "start",
|
|
14
|
+
end: "end",
|
|
15
|
+
title: "title",
|
|
16
|
+
percentComplete: "percentComplete",
|
|
17
|
+
parentId: "parentId",
|
|
18
|
+
isRollup: "isRollup",
|
|
19
|
+
isExpanded: "isExpanded",
|
|
20
|
+
isInEdit: "isInEdit",
|
|
21
|
+
children: "children",
|
|
22
|
+
isSelected: "isSelected"
|
|
23
|
+
}, p = {
|
|
24
|
+
id: "id",
|
|
25
|
+
fromId: "fromId",
|
|
26
|
+
toId: "toId",
|
|
27
|
+
type: "type"
|
|
28
|
+
};
|
|
29
|
+
export {
|
|
30
|
+
I as DAYS_IN_WEEK_COUNT,
|
|
31
|
+
R as DAY_DATE_FORMAT,
|
|
32
|
+
L as DEFAULT_COLUMN_WIDTH,
|
|
33
|
+
o as DEFAULT_DATE,
|
|
34
|
+
p as DEFAULT_DEPENDENCY_MODEL_FIELDS,
|
|
35
|
+
a as DEFAULT_TASK_MODEL_FIELDS,
|
|
36
|
+
E as DEPENDENCY_DRAG_HANDLE,
|
|
37
|
+
S as DEPENDENCY_DRAG_HANDLE_FINISH_ATT,
|
|
38
|
+
M as DEPENDENCY_DRAG_HANDLE_START_ATT,
|
|
39
|
+
D as DRAG_DIRECTION_FINISH,
|
|
40
|
+
A as DRAG_DIRECTION_START,
|
|
41
|
+
s as GANTT_COL_INDEX_ATTRIBUTE,
|
|
42
|
+
N as GANTT_PREVENT_SELECTION_ELEMENT,
|
|
43
|
+
n as GANTT_ROW_INDEX_ATTRIBUTE,
|
|
44
|
+
d as HOUR_DATE_FORMAT,
|
|
45
|
+
O as MILESTONE_OFFSET,
|
|
46
|
+
c as MONTH_DATE_FORMAT,
|
|
47
|
+
F as MS_PER_DAY,
|
|
48
|
+
U as MS_PER_HOUR,
|
|
49
|
+
m as MS_PER_MINUTE,
|
|
50
|
+
r as TASK_ID_ATT,
|
|
51
|
+
i as YEAR_DATE_FORMAT
|
|
52
|
+
};
|
|
@@ -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 N=require("react"),m=require("@progress/kendo-date-math"),e=require("@progress/kendo-react-common"),E=require("../constants/index.js");function b(n){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const o in n)if(o!=="default"){const s=Object.getOwnPropertyDescriptor(n,o);Object.defineProperty(a,o,s.get?s:{enumerable:!0,get:()=>n[o]})}}return a.default=n,Object.freeze(a)}const t=b(N),c=t.createContext([]),K=()=>t.useContext(c);c.displayName="KendoReactGanttTaskDataContext";const C=t.createContext([]),f=()=>t.useContext(C);C.displayName="KendoReactGanttDependencyDataContext";const r=t.createContext(E.DEFAULT_TASK_MODEL_FIELDS),S=()=>t.useContext(r);r.displayName="KendoReactGanttTaskModelFieldsContext";const x=t.createContext(E.DEFAULT_DEPENDENCY_MODEL_FIELDS),H=()=>t.useContext(x);x.displayName="KendoReactGanttDependencyModelFieldsContext";const l=t.createContext({}),V=()=>t.useContext(l);l.displayName="KendoReactGanttPropsContext";const d=t.createContext({start:new Date,end:new Date,zonedStart:m.ZonedDate.fromLocalDate(new Date),zonedEnd:m.ZonedDate.fromLocalDate(new Date)}),_=()=>t.useContext(d);d.displayName="KendoReactGanttDateRangeContext";const i=t.createContext([]),A=()=>t.useContext(i);i.displayName="KendoReactGanttViewsContext";const u=t.createContext(["week",e.noop]),L=()=>t.useContext(u);u.displayName="KendoReactGanttActiveViewContext";const G=t.createContext(0),O=()=>t.useContext(G);G.displayName="KendoReactGanttRowHeightContext";const p=t.createContext(0),j=()=>t.useContext(p);p.displayName="KendoReactGanttToolbarHeightContext";const D=t.createContext({onDataStateChange:e.noop,onSortChange:e.noop,onFilterChange:e.noop,onColumnMenuFilterChange:e.noop,onExpandChange:e.noop,onRowClick:e.noop,onRowDoubleClick:e.noop,onRowContextMenu:e.noop,onColumnResize:e.noop,onColumnReorder:e.noop,onDependencyCreate:e.noop,onKeyDown:e.noop,onSelectionChange:e.noop,onHeaderSelectionChange:e.noop}),q=()=>t.useContext(D);D.displayName="KendoReactGanttEventsContext";const v=t.createContext({onTaskClick:e.noop,onTaskDoubleClick:e.noop,onTaskContextMenu:e.noop}),z=()=>t.useContext(v);v.displayName="KendoReactGanttTaskEventsContext";const R=({children:n,taskData:a,dependencyData:o,taskModelFields:s,dependencyModelFields:y,props:g,dateRange:T,views:k,activeView:w,rowHeight:P,toolbarHeight:h,events:M,taskEvents:F})=>t.createElement(l.Provider,{value:g},t.createElement(c.Provider,{value:a},t.createElement(C.Provider,{value:o},t.createElement(r.Provider,{value:s},t.createElement(x.Provider,{value:y},t.createElement(d.Provider,{value:T},t.createElement(i.Provider,{value:k},t.createElement(u.Provider,{value:w},t.createElement(G.Provider,{value:P},t.createElement(p.Provider,{value:h},t.createElement(D.Provider,{value:M},t.createElement(v.Provider,{value:F},n))))))))))));R.displayName="KendoReactGanttContext";exports.GanttActiveViewContext=u;exports.GanttContext=R;exports.GanttDateRangeContext=d;exports.GanttDependencyDataContext=C;exports.GanttDependencyModelFieldsContext=x;exports.GanttEventsContext=D;exports.GanttPropsContext=l;exports.GanttRowHeightContext=G;exports.GanttTaskDataContext=c;exports.GanttTaskEventsContext=v;exports.GanttTaskModelFieldsContext=r;exports.GanttToolbarHeightContext=p;exports.GanttViewsContext=i;exports.useGanttActiveViewContext=L;exports.useGanttDateRangeContext=_;exports.useGanttDependencyDataContext=f;exports.useGanttDependencyModelFieldsContext=H;exports.useGanttEventsContext=q;exports.useGanttPropsContext=V;exports.useGanttRowHeightContext=O;exports.useGanttTaskDataContext=K;exports.useGanttTaskEventsContext=z;exports.useGanttTaskModelFieldsContext=S;exports.useGanttToolbarHeightContext=j;exports.useGanttViewsContext=A;
|
|
@@ -0,0 +1,103 @@
|
|
|
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 e from "react";
|
|
10
|
+
import { ZonedDate as m } from "@progress/kendo-date-math";
|
|
11
|
+
import { noop as t } from "@progress/kendo-react-common";
|
|
12
|
+
import { DEFAULT_TASK_MODEL_FIELDS as N, DEFAULT_DEPENDENCY_MODEL_FIELDS as h } from "../constants/index.mjs";
|
|
13
|
+
const n = e.createContext([]), H = () => e.useContext(n);
|
|
14
|
+
n.displayName = "KendoReactGanttTaskDataContext";
|
|
15
|
+
const o = e.createContext([]), f = () => e.useContext(o);
|
|
16
|
+
o.displayName = "KendoReactGanttDependencyDataContext";
|
|
17
|
+
const a = e.createContext(N), A = () => e.useContext(a);
|
|
18
|
+
a.displayName = "KendoReactGanttTaskModelFieldsContext";
|
|
19
|
+
const s = e.createContext(h), V = () => e.useContext(s);
|
|
20
|
+
s.displayName = "KendoReactGanttDependencyModelFieldsContext";
|
|
21
|
+
const c = e.createContext({}), _ = () => e.useContext(c);
|
|
22
|
+
c.displayName = "KendoReactGanttPropsContext";
|
|
23
|
+
const C = e.createContext({
|
|
24
|
+
start: /* @__PURE__ */ new Date(),
|
|
25
|
+
end: /* @__PURE__ */ new Date(),
|
|
26
|
+
zonedStart: m.fromLocalDate(/* @__PURE__ */ new Date()),
|
|
27
|
+
zonedEnd: m.fromLocalDate(/* @__PURE__ */ new Date())
|
|
28
|
+
}), b = () => e.useContext(C);
|
|
29
|
+
C.displayName = "KendoReactGanttDateRangeContext";
|
|
30
|
+
const r = e.createContext([]), z = () => e.useContext(r);
|
|
31
|
+
r.displayName = "KendoReactGanttViewsContext";
|
|
32
|
+
const l = e.createContext(["week", t]), I = () => e.useContext(l);
|
|
33
|
+
l.displayName = "KendoReactGanttActiveViewContext";
|
|
34
|
+
const x = e.createContext(0), O = () => e.useContext(x);
|
|
35
|
+
x.displayName = "KendoReactGanttRowHeightContext";
|
|
36
|
+
const d = e.createContext(0), U = () => e.useContext(d);
|
|
37
|
+
d.displayName = "KendoReactGanttToolbarHeightContext";
|
|
38
|
+
const i = e.createContext({
|
|
39
|
+
onDataStateChange: t,
|
|
40
|
+
onSortChange: t,
|
|
41
|
+
onFilterChange: t,
|
|
42
|
+
onColumnMenuFilterChange: t,
|
|
43
|
+
onExpandChange: t,
|
|
44
|
+
onRowClick: t,
|
|
45
|
+
onRowDoubleClick: t,
|
|
46
|
+
onRowContextMenu: t,
|
|
47
|
+
onColumnResize: t,
|
|
48
|
+
onColumnReorder: t,
|
|
49
|
+
onDependencyCreate: t,
|
|
50
|
+
onKeyDown: t,
|
|
51
|
+
onSelectionChange: t,
|
|
52
|
+
onHeaderSelectionChange: t
|
|
53
|
+
}), Y = () => e.useContext(i);
|
|
54
|
+
i.displayName = "KendoReactGanttEventsContext";
|
|
55
|
+
const u = e.createContext({
|
|
56
|
+
onTaskClick: t,
|
|
57
|
+
onTaskDoubleClick: t,
|
|
58
|
+
onTaskContextMenu: t
|
|
59
|
+
}), Z = () => e.useContext(u);
|
|
60
|
+
u.displayName = "KendoReactGanttTaskEventsContext";
|
|
61
|
+
const F = ({
|
|
62
|
+
children: G,
|
|
63
|
+
taskData: D,
|
|
64
|
+
dependencyData: v,
|
|
65
|
+
taskModelFields: p,
|
|
66
|
+
dependencyModelFields: E,
|
|
67
|
+
props: R,
|
|
68
|
+
dateRange: y,
|
|
69
|
+
views: w,
|
|
70
|
+
activeView: T,
|
|
71
|
+
rowHeight: k,
|
|
72
|
+
toolbarHeight: g,
|
|
73
|
+
events: P,
|
|
74
|
+
taskEvents: K
|
|
75
|
+
}) => /* @__PURE__ */ e.createElement(c.Provider, { value: R }, /* @__PURE__ */ e.createElement(n.Provider, { value: D }, /* @__PURE__ */ e.createElement(o.Provider, { value: v }, /* @__PURE__ */ e.createElement(a.Provider, { value: p }, /* @__PURE__ */ e.createElement(s.Provider, { value: E }, /* @__PURE__ */ e.createElement(C.Provider, { value: y }, /* @__PURE__ */ e.createElement(r.Provider, { value: w }, /* @__PURE__ */ e.createElement(l.Provider, { value: T }, /* @__PURE__ */ e.createElement(x.Provider, { value: k }, /* @__PURE__ */ e.createElement(d.Provider, { value: g }, /* @__PURE__ */ e.createElement(i.Provider, { value: P }, /* @__PURE__ */ e.createElement(u.Provider, { value: K }, G))))))))))));
|
|
76
|
+
F.displayName = "KendoReactGanttContext";
|
|
77
|
+
export {
|
|
78
|
+
l as GanttActiveViewContext,
|
|
79
|
+
F as GanttContext,
|
|
80
|
+
C as GanttDateRangeContext,
|
|
81
|
+
o as GanttDependencyDataContext,
|
|
82
|
+
s as GanttDependencyModelFieldsContext,
|
|
83
|
+
i as GanttEventsContext,
|
|
84
|
+
c as GanttPropsContext,
|
|
85
|
+
x as GanttRowHeightContext,
|
|
86
|
+
n as GanttTaskDataContext,
|
|
87
|
+
u as GanttTaskEventsContext,
|
|
88
|
+
a as GanttTaskModelFieldsContext,
|
|
89
|
+
d as GanttToolbarHeightContext,
|
|
90
|
+
r as GanttViewsContext,
|
|
91
|
+
I as useGanttActiveViewContext,
|
|
92
|
+
b as useGanttDateRangeContext,
|
|
93
|
+
f as useGanttDependencyDataContext,
|
|
94
|
+
V as useGanttDependencyModelFieldsContext,
|
|
95
|
+
Y as useGanttEventsContext,
|
|
96
|
+
_ as useGanttPropsContext,
|
|
97
|
+
O as useGanttRowHeightContext,
|
|
98
|
+
H as useGanttTaskDataContext,
|
|
99
|
+
Z as useGanttTaskEventsContext,
|
|
100
|
+
A as useGanttTaskModelFieldsContext,
|
|
101
|
+
U as useGanttToolbarHeightContext,
|
|
102
|
+
z as useGanttViewsContext
|
|
103
|
+
};
|
|
@@ -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 l=require("react"),i=require("@progress/kendo-react-common");function u(t){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(a,n,o.get?o:{enumerable:!0,get:()=>t[n]})}}return a.default=t,Object.freeze(a)}const e=u(l),r=e.createContext([{current:{}},i.noop]),C=()=>e.useContext(r);r.displayName="KendoReactGanttViewContext";const c=e.createContext(0),x=()=>e.useContext(c);c.displayName="KendoReactGanttViewTimelineWidthContext";const s=e.createContext({onDependencyHandlePress:i.noop,onDependencyHandleDrag:i.noop,onDependencyHandleRelease:i.noop,isEnabled:!1,draggedId:null}),p=()=>e.useContext(s);s.displayName="KendoReactGanttViewDependencyDragContext";const d=({children:t,tasksStore:a,timelineWidth:n,dependencyDrag:o})=>e.createElement(r.Provider,{value:a},e.createElement(c.Provider,{value:n},e.createElement(s.Provider,{value:o},t)));d.displayName="KendoReactGanttViewContext";exports.GanttViewContext=d;exports.GanttViewDependencyDragContext=s;exports.GanttViewTasksContext=r;exports.GanttViewTimelineWidthContext=c;exports.useGanttViewDependencyDragContext=p;exports.useGanttViewTasksContext=C;exports.useGanttViewTimelineWidthContext=x;
|
|
@@ -0,0 +1,38 @@
|
|
|
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 e from "react";
|
|
10
|
+
import { noop as t } from "@progress/kendo-react-common";
|
|
11
|
+
const n = e.createContext([{ current: {} }, t]), x = () => e.useContext(n);
|
|
12
|
+
n.displayName = "KendoReactGanttViewContext";
|
|
13
|
+
const a = e.createContext(0), C = () => e.useContext(a);
|
|
14
|
+
a.displayName = "KendoReactGanttViewTimelineWidthContext";
|
|
15
|
+
const o = e.createContext({
|
|
16
|
+
onDependencyHandlePress: t,
|
|
17
|
+
onDependencyHandleDrag: t,
|
|
18
|
+
onDependencyHandleRelease: t,
|
|
19
|
+
isEnabled: !1,
|
|
20
|
+
draggedId: null
|
|
21
|
+
}), m = () => e.useContext(o);
|
|
22
|
+
o.displayName = "KendoReactGanttViewDependencyDragContext";
|
|
23
|
+
const c = ({
|
|
24
|
+
children: i,
|
|
25
|
+
tasksStore: s,
|
|
26
|
+
timelineWidth: r,
|
|
27
|
+
dependencyDrag: d
|
|
28
|
+
}) => /* @__PURE__ */ e.createElement(n.Provider, { value: s }, /* @__PURE__ */ e.createElement(a.Provider, { value: r }, /* @__PURE__ */ e.createElement(o.Provider, { value: d }, i)));
|
|
29
|
+
c.displayName = "KendoReactGanttViewContext";
|
|
30
|
+
export {
|
|
31
|
+
c as GanttViewContext,
|
|
32
|
+
o as GanttViewDependencyDragContext,
|
|
33
|
+
n as GanttViewTasksContext,
|
|
34
|
+
a as GanttViewTimelineWidthContext,
|
|
35
|
+
m as useGanttViewDependencyDragContext,
|
|
36
|
+
x as useGanttViewTasksContext,
|
|
37
|
+
C as useGanttViewTimelineWidthContext
|
|
38
|
+
};
|