@progress/kendo-react-gantt 8.1.0-develop.27 → 8.1.0-develop.28
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 +1 -1
- package/Gantt.mjs +146 -143
- package/dist/cdn/js/kendo-react-gantt.js +1 -1
- package/package-metadata.mjs +1 -1
- package/package.json +12 -12
- package/views/GanttDayView.js +1 -1
- package/views/GanttDayView.mjs +35 -36
- package/views/GanttMonthView.js +1 -1
- package/views/GanttMonthView.mjs +30 -31
- package/views/GanttWeekView.js +1 -1
- package/views/GanttWeekView.mjs +28 -29
- package/views/GanttYearView.js +1 -1
- package/views/GanttYearView.mjs +28 -29
package/views/GanttMonthView.mjs
CHANGED
|
@@ -8,64 +8,63 @@
|
|
|
8
8
|
"use client";
|
|
9
9
|
import * as e from "react";
|
|
10
10
|
import t from "prop-types";
|
|
11
|
-
import { ZonedDate as c, firstDayOfMonth as
|
|
12
|
-
import { BaseView as
|
|
13
|
-
import { getMonthSlots as
|
|
14
|
-
import { useGanttPropsContext as
|
|
15
|
-
import { DEFAULT_COLUMN_WIDTH as
|
|
16
|
-
import { monthViewTitle as
|
|
17
|
-
import { useInternationalization as
|
|
18
|
-
const
|
|
19
|
-
const { slotWidth: n =
|
|
11
|
+
import { ZonedDate as c, firstDayOfMonth as S, getDate as g, addDays as V, lastDayOfMonth as W } from "@progress/kendo-date-math";
|
|
12
|
+
import { BaseView as E } from "../components/BaseView.mjs";
|
|
13
|
+
import { getMonthSlots as C, getWeekSlots as M, toUTCDateTime as w } from "../utils/index.mjs";
|
|
14
|
+
import { useGanttPropsContext as b, useGanttDateRangeContext as I } from "../context/GanttContext.mjs";
|
|
15
|
+
import { DEFAULT_COLUMN_WIDTH as L } from "../constants/index.mjs";
|
|
16
|
+
import { monthViewTitle as D, messages as O } from "../messages/index.mjs";
|
|
17
|
+
import { useInternationalization as U } from "@progress/kendo-react-intl";
|
|
18
|
+
const k = e.forwardRef((a, f) => {
|
|
19
|
+
const { slotWidth: n = H.slotWidth, firstSlotRangeRef: l, timelineHeaderCell: u } = a, { timezone: s } = b(), i = U(), m = e.useRef(null), r = e.useRef(null), h = e.useCallback(
|
|
20
20
|
(o) => {
|
|
21
21
|
r.current && r.current.scrollIntoView(o);
|
|
22
22
|
},
|
|
23
23
|
[]
|
|
24
24
|
);
|
|
25
25
|
e.useImperativeHandle(m, () => ({ scrollIntoView: h })), e.useImperativeHandle(f, () => m.current);
|
|
26
|
-
const
|
|
26
|
+
const d = I(), T = e.useMemo(
|
|
27
27
|
() => {
|
|
28
|
-
const o = [],
|
|
29
|
-
return
|
|
30
|
-
const
|
|
31
|
-
|
|
28
|
+
const o = [], p = C(d, { timezone: s }, i);
|
|
29
|
+
return p.forEach((y) => {
|
|
30
|
+
const R = M(
|
|
31
|
+
y.range,
|
|
32
32
|
{ timezone: s },
|
|
33
33
|
i
|
|
34
34
|
);
|
|
35
|
-
o.push.apply(o,
|
|
36
|
-
}), l && o[0] && (l.current = o[0].range), [
|
|
35
|
+
o.push.apply(o, R);
|
|
36
|
+
}), l && o[0] && (l.current = o[0].range), [p, o];
|
|
37
37
|
},
|
|
38
|
-
[s,
|
|
38
|
+
[s, d.start.getTime(), d.end.getTime(), i]
|
|
39
39
|
);
|
|
40
40
|
return /* @__PURE__ */ e.createElement(
|
|
41
|
-
|
|
41
|
+
E,
|
|
42
42
|
{
|
|
43
43
|
ref: r,
|
|
44
44
|
slotWidth: n,
|
|
45
|
-
slotLevels:
|
|
46
|
-
timelineHeaderCell:
|
|
45
|
+
slotLevels: T,
|
|
46
|
+
timelineHeaderCell: u
|
|
47
47
|
}
|
|
48
48
|
);
|
|
49
|
-
}),
|
|
50
|
-
const l = c.fromLocalDate(a, n),
|
|
49
|
+
}), G = ({ tasksStart: a, tasksEnd: f, timezone: n }) => {
|
|
50
|
+
const l = c.fromLocalDate(a, n), u = c.fromLocalDate(f, n), s = S(g(l)), i = V(W(g(u)), 1), m = c.fromUTCDate(w(s), n), r = c.fromUTCDate(w(i), n);
|
|
51
51
|
return {
|
|
52
52
|
start: new Date(m.getTime()),
|
|
53
53
|
end: new Date(r.getTime()),
|
|
54
54
|
zonedStart: m,
|
|
55
55
|
zonedEnd: r
|
|
56
56
|
};
|
|
57
|
-
},
|
|
57
|
+
}, H = {
|
|
58
58
|
name: "month",
|
|
59
|
-
dateRange:
|
|
60
|
-
title: (a) => a.toLanguageString(
|
|
61
|
-
slotWidth:
|
|
59
|
+
dateRange: G,
|
|
60
|
+
title: (a) => a.toLanguageString(D, O[D]),
|
|
61
|
+
slotWidth: L,
|
|
62
62
|
workWeekStart: 1,
|
|
63
63
|
workWeekEnd: 5,
|
|
64
64
|
workDayStart: "08:00",
|
|
65
65
|
workDayEnd: "17:00"
|
|
66
66
|
};
|
|
67
|
-
|
|
68
|
-
p.propTypes = {
|
|
67
|
+
k.propTypes = {
|
|
69
68
|
name: t.string,
|
|
70
69
|
dateRange: t.oneOfType([t.func, t.object]),
|
|
71
70
|
title: t.oneOfType([t.string, t.func]),
|
|
@@ -75,8 +74,8 @@ p.propTypes = {
|
|
|
75
74
|
workDayStart: t.string,
|
|
76
75
|
workDayEnd: t.string
|
|
77
76
|
};
|
|
78
|
-
|
|
77
|
+
k.displayName = "GanttMonthView";
|
|
79
78
|
export {
|
|
80
|
-
|
|
81
|
-
|
|
79
|
+
k as GanttMonthView,
|
|
80
|
+
H as ganttMonthViewDefaultProps
|
|
82
81
|
};
|
package/views/GanttWeekView.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 client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const I=require("react"),t=require("prop-types"),a=require("@progress/kendo-date-math"),O=require("../components/BaseView.js"),i=require("../utils/index.js"),E=require("../context/GanttContext.js"),R=require("../constants/index.js"),
|
|
8
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const I=require("react"),t=require("prop-types"),a=require("@progress/kendo-date-math"),O=require("../components/BaseView.js"),i=require("../utils/index.js"),E=require("../context/GanttContext.js"),R=require("../constants/index.js"),W=require("../messages/index.js"),q=require("@progress/kendo-react-intl");function _(e){const s=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(s,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return s.default=e,Object.freeze(s)}const o=_(I),y=o.forwardRef((e,s)=>{const{slotWidth:r=D.slotWidth,firstSlotRangeRef:n,timelineHeaderCell:f}=e,{timezone:l}=E.useGanttPropsContext(),u=q.useInternationalization(),k=o.useRef(null),c=o.useRef(null),w=o.useCallback(m=>{c.current&&c.current.scrollIntoView(m)},[]);o.useImperativeHandle(k,()=>({scrollIntoView:w})),o.useImperativeHandle(s,()=>k.current);const g=E.useGanttDateRangeContext(),T=e.workWeekStart||D.workWeekStart,S=e.workWeekEnd||D.workWeekEnd,b=o.useMemo(()=>{const m=i.getWorkDays({workWeekStart:T,workWeekEnd:S}),d=[],p=i.getWeekSlots(g,{timezone:l},u);return p.forEach(V=>{const C=i.getDaySlots(V.range,{workDays:m,timezone:l},u);d.push.apply(d,C)}),n&&d[0]&&(n.current=d[0].range),[p,d]},[l,g.start.getTime(),g.end.getTime(),u,T,S]);return o.createElement(O.BaseView,{ref:c,slotWidth:r,slotLevels:b,timelineHeaderCell:f})}),h=({intl:e,tasksStart:s,tasksEnd:r,timezone:n})=>{const f=a.ZonedDate.fromLocalDate(s,n),l=a.ZonedDate.fromLocalDate(r,n),u=i.getStartDate(a.firstDayInWeek(a.getDate(f),e.firstDay())),k=i.getEndDate(a.firstDayInWeek(a.getDate(l),e.firstDay()),R.DAYS_IN_WEEK_COUNT),c=a.ZonedDate.fromUTCDate(i.toUTCDateTime(u),n),w=a.ZonedDate.fromUTCDate(i.toUTCDateTime(k),n);return{start:new Date(c.getTime()),end:new Date(w.getTime()),zonedStart:c,zonedEnd:w}},D={name:"week",dateRange:h,title:e=>e.toLanguageString(W.weekViewTitle,W.messages[W.weekViewTitle]),slotWidth:R.DEFAULT_COLUMN_WIDTH,workWeekStart:1,workWeekEnd:5,workDayStart:"08:00",workDayEnd:"17:00"};y.propTypes={name:t.string,dateRange:t.oneOfType([t.func,t.object]),title:t.oneOfType([t.string,t.func]),slotWidth:t.number,workWeekStart:t.number,workWeekEnd:t.number,workDayStart:t.string,workDayEnd:t.string};y.displayName="KendoReactGanttWeekView";exports.GanttWeekView=y;exports.ganttWeekViewDefaultProps=D;
|
package/views/GanttWeekView.mjs
CHANGED
|
@@ -8,63 +8,62 @@
|
|
|
8
8
|
"use client";
|
|
9
9
|
import * as o from "react";
|
|
10
10
|
import e from "prop-types";
|
|
11
|
-
import { ZonedDate as
|
|
11
|
+
import { ZonedDate as l, firstDayInWeek as y, getDate as T } from "@progress/kendo-date-math";
|
|
12
12
|
import { BaseView as b } from "../components/BaseView.mjs";
|
|
13
|
-
import { getWeekSlots as h, getDaySlots as L, getWorkDays as U, getStartDate as _, getEndDate as G, toUTCDateTime as
|
|
13
|
+
import { getWeekSlots as h, getDaySlots as L, getWorkDays as U, getStartDate as _, getEndDate as G, toUTCDateTime as S } from "../utils/index.mjs";
|
|
14
14
|
import { useGanttPropsContext as H, useGanttDateRangeContext as N } from "../context/GanttContext.mjs";
|
|
15
|
-
import { DEFAULT_COLUMN_WIDTH as O, DAYS_IN_WEEK_COUNT as
|
|
16
|
-
import { weekViewTitle as
|
|
17
|
-
import { useInternationalization as
|
|
18
|
-
const
|
|
19
|
-
const { slotWidth:
|
|
15
|
+
import { DEFAULT_COLUMN_WIDTH as O, DAYS_IN_WEEK_COUNT as v } from "../constants/index.mjs";
|
|
16
|
+
import { weekViewTitle as E, messages as x } from "../messages/index.mjs";
|
|
17
|
+
import { useInternationalization as z } from "@progress/kendo-react-intl";
|
|
18
|
+
const R = o.forwardRef((t, m) => {
|
|
19
|
+
const { slotWidth: f = g.slotWidth, firstSlotRangeRef: r, timelineHeaderCell: w } = t, { timezone: a } = H(), s = z(), c = o.useRef(null), n = o.useRef(null), k = o.useCallback(
|
|
20
20
|
(D) => {
|
|
21
21
|
n.current && n.current.scrollIntoView(D);
|
|
22
22
|
},
|
|
23
23
|
[]
|
|
24
24
|
);
|
|
25
|
-
o.useImperativeHandle(c, () => ({ scrollIntoView:
|
|
26
|
-
const
|
|
25
|
+
o.useImperativeHandle(c, () => ({ scrollIntoView: k })), o.useImperativeHandle(m, () => c.current);
|
|
26
|
+
const d = N(), u = t.workWeekStart || g.workWeekStart, W = t.workWeekEnd || g.workWeekEnd, V = o.useMemo(
|
|
27
27
|
() => {
|
|
28
28
|
const D = U({
|
|
29
|
-
workWeekStart:
|
|
29
|
+
workWeekStart: u,
|
|
30
30
|
workWeekEnd: W
|
|
31
|
-
}), i = [],
|
|
32
|
-
return
|
|
33
|
-
const I = L(
|
|
31
|
+
}), i = [], p = h(d, { timezone: a }, s);
|
|
32
|
+
return p.forEach((C) => {
|
|
33
|
+
const I = L(C.range, { workDays: D, timezone: a }, s);
|
|
34
34
|
i.push.apply(i, I);
|
|
35
|
-
}), r && i[0] && (r.current = i[0].range), [
|
|
35
|
+
}), r && i[0] && (r.current = i[0].range), [p, i];
|
|
36
36
|
},
|
|
37
|
-
[a,
|
|
37
|
+
[a, d.start.getTime(), d.end.getTime(), s, u, W]
|
|
38
38
|
);
|
|
39
39
|
return /* @__PURE__ */ o.createElement(
|
|
40
40
|
b,
|
|
41
41
|
{
|
|
42
42
|
ref: n,
|
|
43
|
-
slotWidth:
|
|
44
|
-
slotLevels:
|
|
43
|
+
slotWidth: f,
|
|
44
|
+
slotLevels: V,
|
|
45
45
|
timelineHeaderCell: w
|
|
46
46
|
}
|
|
47
47
|
);
|
|
48
|
-
}),
|
|
49
|
-
const w =
|
|
48
|
+
}), P = ({ intl: t, tasksStart: m, tasksEnd: f, timezone: r }) => {
|
|
49
|
+
const w = l.fromLocalDate(m, r), a = l.fromLocalDate(f, r), s = _(y(T(w), t.firstDay())), c = G(y(T(a), t.firstDay()), v), n = l.fromUTCDate(S(s), r), k = l.fromUTCDate(S(c), r);
|
|
50
50
|
return {
|
|
51
51
|
start: new Date(n.getTime()),
|
|
52
|
-
end: new Date(
|
|
52
|
+
end: new Date(k.getTime()),
|
|
53
53
|
zonedStart: n,
|
|
54
|
-
zonedEnd:
|
|
54
|
+
zonedEnd: k
|
|
55
55
|
};
|
|
56
|
-
},
|
|
56
|
+
}, g = {
|
|
57
57
|
name: "week",
|
|
58
|
-
dateRange:
|
|
59
|
-
title: (t) => t.toLanguageString(
|
|
58
|
+
dateRange: P,
|
|
59
|
+
title: (t) => t.toLanguageString(E, x[E]),
|
|
60
60
|
slotWidth: O,
|
|
61
61
|
workWeekStart: 1,
|
|
62
62
|
workWeekEnd: 5,
|
|
63
63
|
workDayStart: "08:00",
|
|
64
64
|
workDayEnd: "17:00"
|
|
65
65
|
};
|
|
66
|
-
|
|
67
|
-
g.propTypes = {
|
|
66
|
+
R.propTypes = {
|
|
68
67
|
name: e.string,
|
|
69
68
|
dateRange: e.oneOfType([e.func, e.object]),
|
|
70
69
|
title: e.oneOfType([e.string, e.func]),
|
|
@@ -74,8 +73,8 @@ g.propTypes = {
|
|
|
74
73
|
workDayStart: e.string,
|
|
75
74
|
workDayEnd: e.string
|
|
76
75
|
};
|
|
77
|
-
|
|
76
|
+
R.displayName = "KendoReactGanttWeekView";
|
|
78
77
|
export {
|
|
79
|
-
|
|
80
|
-
|
|
78
|
+
R as GanttWeekView,
|
|
79
|
+
g as ganttWeekViewDefaultProps
|
|
81
80
|
};
|
package/views/GanttYearView.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 client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
8
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("react"),a=require("prop-types"),n=require("@progress/kendo-date-math"),M=require("../components/BaseView.js"),g=require("../utils/index.js"),y=require("../context/GanttContext.js"),S=require("../constants/index.js"),p=require("../messages/index.js"),C=require("@progress/kendo-react-intl");function q(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const s=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,s.get?s:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const o=q(b),T=o.forwardRef((e,r)=>{const{slotWidth:t=w.slotWidth,firstSlotRangeRef:s,timelineHeaderCell:D}=e,{timezone:i}=y.useGanttPropsContext(),c=C.useInternationalization(),l=o.useRef(null),u=o.useRef(null),h=o.useCallback(d=>{u.current&&u.current.scrollIntoView(d)},[]);o.useImperativeHandle(l,()=>({scrollIntoView:h})),o.useImperativeHandle(r,()=>l.current);const m=y.useGanttDateRangeContext(),R=o.useMemo(()=>{const d=g.getYearSlots(m,{timezone:i},c),f=[];return d.forEach(V=>{const O=g.getMonthSlots(V.range,{timezone:i},c);f.push.apply(f,O)}),s&&f[0]&&(s.current=f[0].range),[d,f]},[i,m.start.getTime(),m.end.getTime(),c]);return o.createElement(M.BaseView,{slotWidth:t,slotLevels:R,timelineHeaderCell:D})}),Y=({tasksStart:e,tasksEnd:r,timezone:t})=>{const s=n.ZonedDate.fromLocalDate(e,t),D=n.ZonedDate.fromLocalDate(r,t),i=n.firstDayOfMonth(n.firstMonthOfYear(n.getDate(s))),c=n.addDays(n.lastDayOfMonth(n.lastMonthOfYear(n.getDate(D))),1),l=n.ZonedDate.fromUTCDate(g.toUTCDateTime(i),t),u=n.ZonedDate.fromUTCDate(g.toUTCDateTime(c),t);return{start:new Date(l.getTime()),end:new Date(u.getTime()),zonedStart:l,zonedEnd:u}},w={name:"year",dateRange:Y,title:e=>e.toLanguageString(p.yearViewTitle,p.messages[p.yearViewTitle]),slotWidth:S.DEFAULT_COLUMN_WIDTH};T.propTypes={name:a.string,dateRange:a.oneOfType([a.func,a.object]),title:a.oneOfType([a.string,a.func]),slotWidth:a.number};T.displayName="GanttYearView";exports.GanttYearView=T;exports.ganttYearViewDefaultProps=w;
|
package/views/GanttYearView.mjs
CHANGED
|
@@ -8,66 +8,65 @@
|
|
|
8
8
|
"use client";
|
|
9
9
|
import * as t from "react";
|
|
10
10
|
import e from "prop-types";
|
|
11
|
-
import { ZonedDate as
|
|
12
|
-
import { BaseView as
|
|
13
|
-
import { getYearSlots as
|
|
14
|
-
import { useGanttPropsContext as
|
|
15
|
-
import { DEFAULT_COLUMN_WIDTH as
|
|
16
|
-
import { yearViewTitle as
|
|
17
|
-
import { useInternationalization as
|
|
18
|
-
const
|
|
19
|
-
const { slotWidth: o =
|
|
20
|
-
(
|
|
21
|
-
i.current && i.current.scrollIntoView(
|
|
11
|
+
import { ZonedDate as f, firstDayOfMonth as M, firstMonthOfYear as C, getDate as g, addDays as S, lastDayOfMonth as O, lastMonthOfYear as I } from "@progress/kendo-date-math";
|
|
12
|
+
import { BaseView as L } from "../components/BaseView.mjs";
|
|
13
|
+
import { getYearSlots as Y, getMonthSlots as E, toUTCDateTime as D } from "../utils/index.mjs";
|
|
14
|
+
import { useGanttPropsContext as U, useGanttDateRangeContext as W } from "../context/GanttContext.mjs";
|
|
15
|
+
import { DEFAULT_COLUMN_WIDTH as b } from "../constants/index.mjs";
|
|
16
|
+
import { yearViewTitle as T, messages as G } from "../messages/index.mjs";
|
|
17
|
+
import { useInternationalization as H } from "@progress/kendo-react-intl";
|
|
18
|
+
const h = t.forwardRef((n, p) => {
|
|
19
|
+
const { slotWidth: o = v.slotWidth, firstSlotRangeRef: m, timelineHeaderCell: u } = n, { timezone: a } = U(), r = H(), s = t.useRef(null), i = t.useRef(null), y = t.useCallback(
|
|
20
|
+
(c) => {
|
|
21
|
+
i.current && i.current.scrollIntoView(c);
|
|
22
22
|
},
|
|
23
23
|
[]
|
|
24
24
|
);
|
|
25
|
-
t.useImperativeHandle(s, () => ({ scrollIntoView:
|
|
26
|
-
const d =
|
|
25
|
+
t.useImperativeHandle(s, () => ({ scrollIntoView: y })), t.useImperativeHandle(p, () => s.current);
|
|
26
|
+
const d = W(), w = t.useMemo(
|
|
27
27
|
() => {
|
|
28
|
-
const
|
|
29
|
-
return
|
|
30
|
-
const V =
|
|
31
|
-
|
|
28
|
+
const c = Y(d, { timezone: a }, r), l = [];
|
|
29
|
+
return c.forEach((R) => {
|
|
30
|
+
const V = E(
|
|
31
|
+
R.range,
|
|
32
32
|
{ timezone: a },
|
|
33
33
|
r
|
|
34
34
|
);
|
|
35
35
|
l.push.apply(l, V);
|
|
36
|
-
}),
|
|
36
|
+
}), m && l[0] && (m.current = l[0].range), [c, l];
|
|
37
37
|
},
|
|
38
38
|
[a, d.start.getTime(), d.end.getTime(), r]
|
|
39
39
|
);
|
|
40
40
|
return /* @__PURE__ */ t.createElement(
|
|
41
|
-
|
|
41
|
+
L,
|
|
42
42
|
{
|
|
43
43
|
slotWidth: o,
|
|
44
|
-
slotLevels:
|
|
44
|
+
slotLevels: w,
|
|
45
45
|
timelineHeaderCell: u
|
|
46
46
|
}
|
|
47
47
|
);
|
|
48
48
|
}), k = ({ tasksStart: n, tasksEnd: p, timezone: o }) => {
|
|
49
|
-
const
|
|
49
|
+
const m = f.fromLocalDate(n, o), u = f.fromLocalDate(p, o), a = M(C(g(m))), r = S(O(I(g(u))), 1), s = f.fromUTCDate(D(a), o), i = f.fromUTCDate(D(r), o);
|
|
50
50
|
return {
|
|
51
51
|
start: new Date(s.getTime()),
|
|
52
52
|
end: new Date(i.getTime()),
|
|
53
53
|
zonedStart: s,
|
|
54
54
|
zonedEnd: i
|
|
55
55
|
};
|
|
56
|
-
},
|
|
56
|
+
}, v = {
|
|
57
57
|
name: "year",
|
|
58
58
|
dateRange: k,
|
|
59
|
-
title: (n) => n.toLanguageString(
|
|
60
|
-
slotWidth:
|
|
59
|
+
title: (n) => n.toLanguageString(T, G[T]),
|
|
60
|
+
slotWidth: b
|
|
61
61
|
};
|
|
62
|
-
|
|
63
|
-
g.propTypes = {
|
|
62
|
+
h.propTypes = {
|
|
64
63
|
name: e.string,
|
|
65
64
|
dateRange: e.oneOfType([e.func, e.object]),
|
|
66
65
|
title: e.oneOfType([e.string, e.func]),
|
|
67
66
|
slotWidth: e.number
|
|
68
67
|
};
|
|
69
|
-
|
|
68
|
+
h.displayName = "GanttYearView";
|
|
70
69
|
export {
|
|
71
|
-
|
|
72
|
-
|
|
70
|
+
h as GanttYearView,
|
|
71
|
+
v as ganttYearViewDefaultProps
|
|
73
72
|
};
|