@nocobase/plugin-gantt 2.1.0-beta.37 → 2.1.0-beta.40

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.
Files changed (74) hide show
  1. package/client-v2.d.ts +2 -0
  2. package/client-v2.js +3 -0
  3. package/dist/client/index.js +1 -1
  4. package/dist/client-v2/416.b7bb09162520e448.js +10 -0
  5. package/dist/client-v2/617.de3dc437887f3f07.js +10 -0
  6. package/dist/client-v2/793.629d4cd39664b681.js +10 -0
  7. package/dist/client-v2/872.e640aca77c79d895.js +10 -0
  8. package/dist/client-v2/index.d.ts +10 -0
  9. package/dist/client-v2/index.js +10 -0
  10. package/dist/client-v2/locale.d.ts +84 -0
  11. package/dist/client-v2/models/GanttBlockModel.d.ts +98 -0
  12. package/dist/client-v2/models/GanttBlockModel.helpers.d.ts +31 -0
  13. package/dist/client-v2/models/GanttBlockModel.settings.d.ts +9 -0
  14. package/dist/client-v2/models/actions/GanttActionModels.d.ts +33 -0
  15. package/dist/client-v2/models/actions/GanttPopupModels.d.ts +26 -0
  16. package/dist/client-v2/models/components/GanttBlock.d.ts +13 -0
  17. package/dist/client-v2/models/components/GanttBlock.helpers.d.ts +30 -0
  18. package/dist/client-v2/models/components/GanttBlock.styles.d.ts +23 -0
  19. package/dist/client-v2/models/components/GanttBlock.tree.d.ts +49 -0
  20. package/dist/client-v2/models/components/getLabelFormatValue.d.ts +11 -0
  21. package/dist/client-v2/models/index.d.ts +11 -0
  22. package/dist/client-v2/plugin.d.ts +13 -0
  23. package/dist/client-v2/shared/components/calendar/calendar.d.ts +22 -0
  24. package/dist/client-v2/shared/components/calendar/style.d.ts +14 -0
  25. package/dist/client-v2/shared/components/calendar/top-part-of-calendar.d.ts +19 -0
  26. package/dist/client-v2/shared/components/gantt/style.d.ts +14 -0
  27. package/dist/client-v2/shared/components/gantt/task-gantt-content.d.ts +35 -0
  28. package/dist/client-v2/shared/components/gantt/task-gantt.d.ts +24 -0
  29. package/dist/client-v2/shared/components/grid/grid-body.d.ts +21 -0
  30. package/dist/client-v2/shared/components/grid/grid.d.ts +12 -0
  31. package/dist/client-v2/shared/components/grid/style.d.ts +15 -0
  32. package/dist/client-v2/shared/components/other/arrow.d.ts +20 -0
  33. package/dist/client-v2/shared/components/other/horizontal-scroll.d.ts +16 -0
  34. package/dist/client-v2/shared/components/other/style.d.ts +16 -0
  35. package/dist/client-v2/shared/components/other/tooltip.d.ts +36 -0
  36. package/dist/client-v2/shared/components/other/vertical-scroll.d.ts +17 -0
  37. package/dist/client-v2/shared/components/task-item/bar/bar-date-handle.d.ts +19 -0
  38. package/dist/client-v2/shared/components/task-item/bar/bar-display.d.ts +29 -0
  39. package/dist/client-v2/shared/components/task-item/bar/bar-progress-handle.d.ts +15 -0
  40. package/dist/client-v2/shared/components/task-item/bar/bar-small.d.ts +11 -0
  41. package/dist/client-v2/shared/components/task-item/bar/bar.d.ts +11 -0
  42. package/dist/client-v2/shared/components/task-item/bar/style.d.ts +10 -0
  43. package/dist/client-v2/shared/components/task-item/milestone/milestone.d.ts +11 -0
  44. package/dist/client-v2/shared/components/task-item/milestone/style.d.ts +10 -0
  45. package/dist/client-v2/shared/components/task-item/project/project.d.ts +11 -0
  46. package/dist/client-v2/shared/components/task-item/project/style.d.ts +11 -0
  47. package/dist/client-v2/shared/components/task-item/style.d.ts +12 -0
  48. package/dist/client-v2/shared/components/task-item/task-item.d.ts +23 -0
  49. package/dist/client-v2/shared/helpers/bar-helper.d.ts +22 -0
  50. package/dist/client-v2/shared/helpers/date-helper.d.ts +27 -0
  51. package/dist/client-v2/shared/helpers/other-helper.d.ts +17 -0
  52. package/dist/client-v2/shared/types/bar-task.d.ts +30 -0
  53. package/dist/client-v2/shared/types/date-setup.d.ts +13 -0
  54. package/dist/client-v2/shared/types/gantt-task-actions.d.ts +16 -0
  55. package/dist/client-v2/shared/types/public-types.d.ts +145 -0
  56. package/dist/externalVersion.js +7 -6
  57. package/dist/locale/de-DE.json +2 -0
  58. package/dist/locale/en-US.json +28 -1
  59. package/dist/locale/es-ES.json +2 -0
  60. package/dist/locale/fr-FR.json +2 -0
  61. package/dist/locale/hu-HU.json +2 -0
  62. package/dist/locale/id-ID.json +2 -0
  63. package/dist/locale/it-IT.json +2 -0
  64. package/dist/locale/ja-JP.json +2 -0
  65. package/dist/locale/ko-KR.json +2 -0
  66. package/dist/locale/nl-NL.json +2 -0
  67. package/dist/locale/pt-BR.json +2 -0
  68. package/dist/locale/ru-RU.json +2 -0
  69. package/dist/locale/tr-TR.json +2 -0
  70. package/dist/locale/uk-UA.json +2 -0
  71. package/dist/locale/vi-VN.json +2 -0
  72. package/dist/locale/zh-CN.json +28 -1
  73. package/dist/locale/zh-TW.json +4 -0
  74. package/package.json +2 -2
@@ -0,0 +1,19 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ import React from 'react';
10
+ type BarDateHandleProps = {
11
+ x: number;
12
+ y: number;
13
+ width: number;
14
+ height: number;
15
+ barCornerRadius: number;
16
+ onMouseDown: (event: React.MouseEvent<SVGRectElement, MouseEvent>) => void;
17
+ };
18
+ export declare const BarDateHandle: React.FC<BarDateHandleProps>;
19
+ export {};
@@ -0,0 +1,29 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ import React from 'react';
10
+ type BarDisplayProps = {
11
+ x: number;
12
+ y: number;
13
+ color?: string;
14
+ width: number;
15
+ height: number;
16
+ isSelected: boolean;
17
+ progressX: number;
18
+ progressWidth: number;
19
+ barCornerRadius: number;
20
+ styles: {
21
+ backgroundColor: string;
22
+ backgroundSelectedColor: string;
23
+ progressColor: string;
24
+ progressSelectedColor: string;
25
+ };
26
+ onMouseDown: (event: React.MouseEvent<SVGPolygonElement, MouseEvent>) => void;
27
+ };
28
+ export declare const BarDisplay: React.FC<BarDisplayProps>;
29
+ export {};
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ import React from 'react';
10
+ type BarProgressHandleProps = {
11
+ progressPoint: string;
12
+ onMouseDown: (event: React.MouseEvent<SVGPolygonElement, MouseEvent>) => void;
13
+ };
14
+ export declare const BarProgressHandle: React.FC<BarProgressHandleProps>;
15
+ export {};
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ import React from 'react';
10
+ import { TaskItemProps } from '../task-item';
11
+ export declare const BarSmall: React.FC<TaskItemProps>;
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ import React from 'react';
10
+ import { TaskItemProps } from '../task-item';
11
+ export declare const Bar: React.FC<TaskItemProps>;
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ export declare const barWrapper: string;
10
+ export declare const barBackground: string;
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ import React from 'react';
10
+ import { TaskItemProps } from '../task-item';
11
+ export declare const Milestone: React.FC<TaskItemProps>;
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ export declare const milestoneWrapper: string;
10
+ export declare const milestoneBackground: string;
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ import React from 'react';
10
+ import { TaskItemProps } from '../task-item';
11
+ export declare const Project: React.FC<TaskItemProps>;
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ export declare const projectWrapper: string;
10
+ export declare const projectBackground: string;
11
+ export declare const projectTop: string;
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ declare const useStyles: (props?: unknown) => import("antd-style").ReturnStyles<{
10
+ nbganttTaskitem: import("antd-style").SerializedStyles;
11
+ }>;
12
+ export default useStyles;
@@ -0,0 +1,23 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ import React from 'react';
10
+ import { BarTask } from '../../types/bar-task';
11
+ import { GanttContentMoveAction } from '../../types/gantt-task-actions';
12
+ export type TaskItemProps = {
13
+ task: BarTask;
14
+ arrowIndent: number;
15
+ taskHeight: number;
16
+ isProgressChangeable: boolean;
17
+ isDateChangeable: boolean;
18
+ isDelete: boolean;
19
+ isSelected: boolean;
20
+ rtl: boolean;
21
+ onEventStart: (action: GanttContentMoveAction, selectedTask: BarTask, event?: React.MouseEvent | React.KeyboardEvent) => any;
22
+ };
23
+ export declare const TaskItem: React.FC<TaskItemProps>;
@@ -0,0 +1,22 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ import { BarTask } from '../types/bar-task';
10
+ import { BarMoveAction } from '../types/gantt-task-actions';
11
+ import { Task } from '../types/public-types';
12
+ export declare const convertToBarTasks: (tasks: Task[], dates: Date[], columnWidth: number, rowHeight: number, taskHeight: number, barCornerRadius: number, handleWidth: number, rtl: boolean, barProgressColor: string, barProgressSelectedColor: string, barBackgroundColor: string, barBackgroundSelectedColor: string, projectProgressColor: string, projectProgressSelectedColor: string, projectBackgroundColor: string, projectBackgroundSelectedColor: string, milestoneBackgroundColor: string, milestoneBackgroundSelectedColor: string) => BarTask[];
13
+ export declare const progressWithByParams: (taskX1: number, taskX2: number, progress: number, rtl: boolean) => number[];
14
+ export declare const progressByProgressWidth: (progressWidth: number, barTask: BarTask) => number;
15
+ export declare const getProgressPoint: (progressX: number, taskY: number, taskHeight: number) => string;
16
+ /**
17
+ * Method handles event in real time(mousemove) and on finish(mouseup)
18
+ */
19
+ export declare const handleTaskBySVGMouseEvent: (svgX: number, action: BarMoveAction, selectedTask: BarTask, xStep: number, timeStep: number, initEventX1Delta: number, rtl: boolean) => {
20
+ isChanged: boolean;
21
+ changedTask: BarTask;
22
+ };
@@ -0,0 +1,27 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ import { Task, ViewMode } from '../types/public-types';
10
+ declare const DateTimeFormat: {
11
+ (locales?: string | string[], options?: Intl.DateTimeFormatOptions): Intl.DateTimeFormat;
12
+ new (locales?: string | string[], options?: Intl.DateTimeFormatOptions): Intl.DateTimeFormat;
13
+ supportedLocalesOf(locales: string | string[], options?: Intl.DateTimeFormatOptions): string[];
14
+ readonly prototype: Intl.DateTimeFormat;
15
+ };
16
+ type DateTimeFormat = typeof DateTimeFormat;
17
+ type DateHelperScales = 'year' | 'month' | 'day' | 'hour' | 'minute' | 'second' | 'millisecond';
18
+ export declare const getCachedDateTimeFormat: (locString: string | string[], opts?: any) => DateTimeFormat;
19
+ export declare const addToDate: (date: Date, quantity: number, scale: DateHelperScales) => Date;
20
+ export declare const startOfDate: (date: Date, scale: DateHelperScales) => Date;
21
+ export declare const ganttDateRange: (tasks: Task[], viewMode: ViewMode, preStepsCount: number) => Date[];
22
+ export declare const seedDates: (startDate: Date, endDate: Date, viewMode: ViewMode) => Date[];
23
+ export declare const getLocaleMonth: (date: Date, locale: string) => any;
24
+ export declare const getLocalDayOfWeek: (date: Date, locale: string, format?: 'long' | 'short' | 'narrow' | undefined) => any;
25
+ export declare const getWeekNumberISO8601: (date: Date) => string;
26
+ export declare const getDaysInMonth: (month: number, year: number) => number;
27
+ export {};
@@ -0,0 +1,17 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ /// <reference types="react" />
10
+ import { BarTask } from '../types/bar-task';
11
+ import { Task } from '../types/public-types';
12
+ export declare function isKeyboardEvent(event: React.MouseEvent | React.KeyboardEvent | React.FocusEvent): event is React.KeyboardEvent;
13
+ export declare function isMouseEvent(event: React.MouseEvent | React.KeyboardEvent | React.FocusEvent): event is React.MouseEvent;
14
+ export declare function isBarTask(task: Task | BarTask): task is BarTask;
15
+ export declare function removeHiddenTasks(tasks: Task[]): Task[];
16
+ export declare const sortTasks: (taskA: Task, taskB: Task) => 0 | 1 | -1;
17
+ export declare const getYmd: (date: Date) => string | 0;
@@ -0,0 +1,30 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ import { Task, TaskType } from './public-types';
10
+ export interface BarTask extends Task {
11
+ index: number;
12
+ typeInternal: TaskTypeInternal;
13
+ x1: number;
14
+ x2: number;
15
+ y: number;
16
+ height: number;
17
+ progressX: number;
18
+ progressWidth: number;
19
+ barCornerRadius: number;
20
+ handleWidth: number;
21
+ barChildren: BarTask[];
22
+ color?: string;
23
+ styles: {
24
+ backgroundColor: string;
25
+ backgroundSelectedColor: string;
26
+ progressColor: string;
27
+ progressSelectedColor: string;
28
+ };
29
+ }
30
+ export type TaskTypeInternal = TaskType | 'smalltask';
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ import { ViewMode } from './public-types';
10
+ export interface DateSetup {
11
+ dates: Date[];
12
+ viewMode: ViewMode;
13
+ }
@@ -0,0 +1,16 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ import { BarTask } from './bar-task';
10
+ export type BarMoveAction = 'progress' | 'end' | 'start' | 'move';
11
+ export type GanttContentMoveAction = 'mouseenter' | 'mouseleave' | 'delete' | 'dblclick' | 'click' | 'select' | '' | BarMoveAction;
12
+ export type GanttEvent = {
13
+ changedTask?: BarTask;
14
+ originalSelectedTask?: BarTask;
15
+ action: GanttContentMoveAction;
16
+ };
@@ -0,0 +1,145 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ /// <reference types="react" />
10
+ export declare enum ViewMode {
11
+ Hour = "hour",
12
+ QuarterDay = "quarterDay",
13
+ HalfDay = "halfDay",
14
+ Day = "day",
15
+ /** ISO-8601 week */
16
+ Week = "week",
17
+ Month = "month",
18
+ QuarterYear = "quarterYear",
19
+ Year = "year"
20
+ }
21
+ export type TaskType = 'task' | 'milestone' | 'project';
22
+ export interface Task {
23
+ id: string;
24
+ type: TaskType;
25
+ name: string;
26
+ start: Date;
27
+ end: Date;
28
+ /**
29
+ * From 0 to 100
30
+ */
31
+ progress: number;
32
+ color?: string;
33
+ styles?: {
34
+ backgroundColor?: string;
35
+ backgroundSelectedColor?: string;
36
+ progressColor?: string;
37
+ progressSelectedColor?: string;
38
+ };
39
+ isDisabled?: boolean;
40
+ project?: string;
41
+ dependencies?: string[];
42
+ hideChildren?: boolean;
43
+ displayOrder?: number;
44
+ }
45
+ export interface EventOption {
46
+ /**
47
+ * Time step value for date changes.
48
+ */
49
+ timeStep?: number;
50
+ /**
51
+ * Invokes on bar select on unselect.
52
+ */
53
+ onSelect?: (task: Task, isSelected: boolean) => void;
54
+ /**
55
+ * Invokes on bar double click.
56
+ */
57
+ onDoubleClick?: (task: Task) => void;
58
+ /**
59
+ * Invokes on bar click.
60
+ */
61
+ onClick?: (task: Task) => void;
62
+ /**
63
+ * Invokes on end and start time change. Chart undoes operation if method return false or error.
64
+ */
65
+ onDateChange?: (task: Task, children: Task[]) => void | boolean | Promise<void> | Promise<boolean>;
66
+ /**
67
+ * Invokes on progress change. Chart undoes operation if method return false or error.
68
+ */
69
+ onProgressChange?: (task: Task, children: Task[]) => void | boolean | Promise<void> | Promise<boolean>;
70
+ /**
71
+ * Invokes on delete selected task. Chart undoes operation if method return false or error.
72
+ */
73
+ onDelete?: (task: Task) => void | boolean | Promise<void> | Promise<boolean>;
74
+ /**
75
+ * Invokes on expander on task list
76
+ */
77
+ onExpanderClick?: (task: Task) => void;
78
+ }
79
+ export interface DisplayOption {
80
+ viewMode?: ViewMode;
81
+ viewDate?: Date;
82
+ preStepsCount?: number;
83
+ /**
84
+ * Specifies the month name language. Able formats: ISO 639-2, Java Locale
85
+ */
86
+ locale?: string;
87
+ rtl?: boolean;
88
+ }
89
+ export interface StylingOption {
90
+ headerHeight?: number;
91
+ columnWidth?: number;
92
+ listCellWidth?: string;
93
+ rowHeight?: number;
94
+ ganttHeight?: number;
95
+ barCornerRadius?: number;
96
+ handleWidth?: number;
97
+ fontFamily?: string;
98
+ fontSize?: string;
99
+ /**
100
+ * How many of row width can be taken by task.
101
+ * From 0 to 100
102
+ */
103
+ barFill?: number;
104
+ barProgressColor?: string;
105
+ barProgressSelectedColor?: string;
106
+ barBackgroundColor?: string;
107
+ barBackgroundSelectedColor?: string;
108
+ projectProgressColor?: string;
109
+ projectProgressSelectedColor?: string;
110
+ projectBackgroundColor?: string;
111
+ projectBackgroundSelectedColor?: string;
112
+ milestoneBackgroundColor?: string;
113
+ milestoneBackgroundSelectedColor?: string;
114
+ arrowColor?: string;
115
+ arrowIndent?: number;
116
+ todayColor?: string;
117
+ TooltipContent?: React.FC<{
118
+ task: Task;
119
+ fontSize: string;
120
+ fontFamily: string;
121
+ }>;
122
+ TaskListHeader?: React.FC<{
123
+ headerHeight: number;
124
+ rowWidth: string;
125
+ fontFamily: string;
126
+ fontSize: string;
127
+ }>;
128
+ TaskListTable?: React.FC<{
129
+ rowHeight: number;
130
+ rowWidth: string;
131
+ fontFamily: string;
132
+ fontSize: string;
133
+ locale: string;
134
+ tasks: Task[];
135
+ selectedTaskId: string;
136
+ /**
137
+ * Sets selected task by id
138
+ */
139
+ setSelectedTask: (taskId: string) => void;
140
+ onExpanderClick: (task: Task) => void;
141
+ }>;
142
+ }
143
+ export interface GanttProps extends EventOption, DisplayOption, StylingOption {
144
+ tasks: Task[];
145
+ }
@@ -8,7 +8,7 @@
8
8
  */
9
9
 
10
10
  module.exports = {
11
- "@nocobase/client": "2.1.0-beta.37",
11
+ "@nocobase/client": "2.1.0-beta.40",
12
12
  "react": "18.2.0",
13
13
  "@formily/react": "2.3.7",
14
14
  "react-i18next": "11.18.6",
@@ -16,11 +16,12 @@ module.exports = {
16
16
  "@formily/antd-v5": "1.2.3",
17
17
  "lodash": "4.18.1",
18
18
  "@formily/shared": "2.3.7",
19
- "@nocobase/server": "2.1.0-beta.37",
20
- "@nocobase/test": "2.1.0-beta.37",
19
+ "@nocobase/flow-engine": "2.1.0-beta.40",
20
+ "@nocobase/client-v2": "2.1.0-beta.40",
21
+ "@nocobase/server": "2.1.0-beta.40",
22
+ "@nocobase/test": "2.1.0-beta.40",
23
+ "antd": "5.24.2",
21
24
  "@emotion/css": "11.13.0",
22
25
  "antd-style": "3.7.1",
23
- "@nocobase/flow-engine": "2.1.0-beta.37",
24
- "@nocobase/utils": "2.1.0-beta.37",
25
- "antd": "5.24.2"
26
+ "@nocobase/utils": "2.1.0-beta.40"
26
27
  };
@@ -1,6 +1,8 @@
1
1
  {
2
2
  "Enable drag to reschedule": "Enable drag to reschedule",
3
3
  "End date field": "Enddatumsfeld",
4
+ "Details": "Details",
5
+ "Event popup settings": "Einstellungen fur Ereignis-Popup",
4
6
  "Progress field": "Fortschrittsfeld",
5
7
  "Start date field": "Startdatumsfeld",
6
8
  "Time scale": "Zeitskala",
@@ -1,8 +1,35 @@
1
1
  {
2
+ "Actions": "Actions",
3
+ "Collapse all": "Collapse all",
4
+ "Color field": "Color field",
5
+ "Day": "Day",
2
6
  "Enable drag to reschedule": "Enable drag to reschedule",
7
+ "Enable tree table": "Enable tree table",
3
8
  "End date field": "End date field",
9
+ "Details": "Details",
10
+ "Duration: {{value}} day(s)": "Duration: {{value}} day(s)",
11
+ "Event popup settings": "Event popup settings",
12
+ "Expand all": "Expand all",
13
+ "Expand all rows by default": "Expand all rows by default",
14
+ "Expand/Collapse": "Expand/Collapse",
15
+ "Gantt": "Gantt",
16
+ "Gantt action": "Gantt action",
17
+ "Gantt fields": "Gantt fields",
18
+ "Half of day": "Half of day",
19
+ "Hour": "Hour",
20
+ "Month": "Month",
21
+ "Page size": "Page size",
4
22
  "Progress field": "Progress field",
23
+ "Quarter of day": "Quarter of day",
24
+ "QuarterYear": "QuarterYear",
25
+ "Show table": "Show table",
5
26
  "Start date field": "Start date field",
27
+ "Table width": "Table width",
28
+ "Task date range": "{{name}}: {{start}} ~ {{end}}",
6
29
  "Time scale": "Time scale",
7
- "Title field": "Title field"
30
+ "Title field": "Title field",
31
+ "Today": "Today",
32
+ "Week": "Week",
33
+ "Year": "Year",
34
+ "Progress: {{value}}%": "Progress: {{value}}%"
8
35
  }
@@ -1,6 +1,8 @@
1
1
  {
2
2
  "Enable drag to reschedule": "Enable drag to reschedule",
3
3
  "End date field": "Campo de fecha de final",
4
+ "Details": "Detalles",
5
+ "Event popup settings": "Configuracion de ventana emergente de evento",
4
6
  "Progress field": "Campo de progreso",
5
7
  "Start date field": "Campo de fecha de inicio",
6
8
  "Time scale": "Escala de tiempo",
@@ -1,6 +1,8 @@
1
1
  {
2
2
  "Enable drag to reschedule": "Enable drag to reschedule",
3
3
  "End date field": "End date field",
4
+ "Details": "Details",
5
+ "Event popup settings": "Parametres de la fenetre contextuelle d'evenement",
4
6
  "Progress field": "Progress field",
5
7
  "Start date field": "Start date field",
6
8
  "Time scale": "Time scale",
@@ -1,6 +1,8 @@
1
1
  {
2
2
  "Enable drag to reschedule": "Enable drag to reschedule",
3
3
  "End date field": "Befejezés dátuma mező",
4
+ "Details": "Reszletek",
5
+ "Event popup settings": "Esemeny felugro ablak beallitasai",
4
6
  "Progress field": "Előrehaladás mező",
5
7
  "Start date field": "Kezdés dátuma mező",
6
8
  "Time scale": "Időskála",
@@ -1,6 +1,8 @@
1
1
  {
2
2
  "Enable drag to reschedule": "Enable drag to reschedule",
3
3
  "End date field": "Bidang tanggal akhir",
4
+ "Details": "Detail",
5
+ "Event popup settings": "Pengaturan popup acara",
4
6
  "Progress field": "Bidang kemajuan",
5
7
  "Start date field": "Bidang tanggal mulai",
6
8
  "Time scale": "Skala waktu",
@@ -1,6 +1,8 @@
1
1
  {
2
2
  "Enable drag to reschedule": "Enable drag to reschedule",
3
3
  "End date field": "Campo data di fine",
4
+ "Details": "Dettagli",
5
+ "Event popup settings": "Impostazioni popup evento",
4
6
  "Progress field": "Campo progresso",
5
7
  "Start date field": "Campo data di inizio",
6
8
  "Time scale": "Scala temporale",
@@ -1,6 +1,8 @@
1
1
  {
2
2
  "Enable drag to reschedule": "Enable drag to reschedule",
3
3
  "End date field": "終了日フィールド",
4
+ "Details": "詳細",
5
+ "Event popup settings": "予定ポップアップ設定",
4
6
  "Progress field": "進行状況フィールド",
5
7
  "Start date field": "開始日フィールド",
6
8
  "Time scale": "タイムスケール",
@@ -1,6 +1,8 @@
1
1
  {
2
2
  "Enable drag to reschedule": "Enable drag to reschedule",
3
3
  "End date field": "종료 날짜 필드",
4
+ "Details": "상세",
5
+ "Event popup settings": "일정 팝업 설정",
4
6
  "Progress field": "진행률 필드",
5
7
  "Start date field": "시작 날짜 필드",
6
8
  "Time scale": "시간 척도",
@@ -1,6 +1,8 @@
1
1
  {
2
2
  "Enable drag to reschedule": "Enable drag to reschedule",
3
3
  "End date field": "End date field",
4
+ "Details": "Details",
5
+ "Event popup settings": "Instellingen voor gebeurtenispopup",
4
6
  "Progress field": "Voortgangsveld",
5
7
  "Start date field": "Begindatumveld",
6
8
  "Time scale": "Tijdschaal",
@@ -1,6 +1,8 @@
1
1
  {
2
2
  "Enable drag to reschedule": "Enable drag to reschedule",
3
3
  "End date field": "Campo de data de término",
4
+ "Details": "Detalhes",
5
+ "Event popup settings": "Configuracoes do popup de evento",
4
6
  "Progress field": "Progress field",
5
7
  "Start date field": "Campo de data de início",
6
8
  "Time scale": "Time scale",
@@ -1,6 +1,8 @@
1
1
  {
2
2
  "Enable drag to reschedule": "Enable drag to reschedule",
3
3
  "End date field": "Поле даты окончания",
4
+ "Details": "Подробности",
5
+ "Event popup settings": "Настройки всплывающего окна события",
4
6
  "Progress field": "Поле прогресса",
5
7
  "Start date field": "Поле даты начала",
6
8
  "Time scale": "Временной масштаб",
@@ -1,6 +1,8 @@
1
1
  {
2
2
  "Enable drag to reschedule": "Enable drag to reschedule",
3
3
  "End date field": "End date field",
4
+ "Details": "Detaylar",
5
+ "Event popup settings": "Etkinlik acilir pencere ayarlari",
4
6
  "Progress field": "Progress field",
5
7
  "Start date field": "Start date field",
6
8
  "Time scale": "Time scale",