@nocobase/plugin-gantt 2.1.0-beta.37 → 2.1.0-beta.38
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/client-v2.d.ts +2 -0
- package/client-v2.js +3 -0
- package/dist/client/index.js +1 -1
- package/dist/client-v2/143.1a8cf1cd5ce17b64.js +10 -0
- package/dist/client-v2/416.b7bb09162520e448.js +10 -0
- package/dist/client-v2/617.de3dc437887f3f07.js +10 -0
- package/dist/client-v2/872.e640aca77c79d895.js +10 -0
- package/dist/client-v2/index.d.ts +10 -0
- package/dist/client-v2/index.js +10 -0
- package/dist/client-v2/locale.d.ts +78 -0
- package/dist/client-v2/models/GanttBlockModel.d.ts +98 -0
- package/dist/client-v2/models/GanttBlockModel.helpers.d.ts +31 -0
- package/dist/client-v2/models/GanttBlockModel.settings.d.ts +9 -0
- package/dist/client-v2/models/actions/GanttActionModels.d.ts +33 -0
- package/dist/client-v2/models/actions/GanttPopupModels.d.ts +26 -0
- package/dist/client-v2/models/components/GanttBlock.d.ts +13 -0
- package/dist/client-v2/models/components/GanttBlock.helpers.d.ts +22 -0
- package/dist/client-v2/models/components/GanttBlock.styles.d.ts +22 -0
- package/dist/client-v2/models/components/GanttBlock.tree.d.ts +46 -0
- package/dist/client-v2/models/components/getLabelFormatValue.d.ts +11 -0
- package/dist/client-v2/models/index.d.ts +11 -0
- package/dist/client-v2/plugin.d.ts +13 -0
- package/dist/externalVersion.js +7 -6
- package/dist/locale/de-DE.json +2 -0
- package/dist/locale/en-US.json +25 -1
- package/dist/locale/es-ES.json +2 -0
- package/dist/locale/fr-FR.json +2 -0
- package/dist/locale/hu-HU.json +2 -0
- package/dist/locale/id-ID.json +2 -0
- package/dist/locale/it-IT.json +2 -0
- package/dist/locale/ja-JP.json +2 -0
- package/dist/locale/ko-KR.json +2 -0
- package/dist/locale/nl-NL.json +2 -0
- package/dist/locale/pt-BR.json +2 -0
- package/dist/locale/ru-RU.json +2 -0
- package/dist/locale/tr-TR.json +2 -0
- package/dist/locale/uk-UA.json +2 -0
- package/dist/locale/vi-VN.json +2 -0
- package/dist/locale/zh-CN.json +25 -1
- package/dist/locale/zh-TW.json +4 -0
- package/dist/node_modules/@ctrl/tinycolor/LICENSE +7 -0
- package/dist/node_modules/@ctrl/tinycolor/dist/bundles/tinycolor.umd.min.js +2 -0
- package/dist/node_modules/@ctrl/tinycolor/dist/conversion.d.ts +61 -0
- package/dist/node_modules/@ctrl/tinycolor/dist/conversion.js +250 -0
- package/dist/node_modules/@ctrl/tinycolor/dist/css-color-names.d.ts +4 -0
- package/dist/node_modules/@ctrl/tinycolor/dist/css-color-names.js +157 -0
- package/dist/node_modules/@ctrl/tinycolor/dist/format-input.d.ts +37 -0
- package/dist/node_modules/@ctrl/tinycolor/dist/format-input.js +189 -0
- package/dist/node_modules/@ctrl/tinycolor/dist/from-ratio.d.ts +14 -0
- package/dist/node_modules/@ctrl/tinycolor/dist/from-ratio.js +30 -0
- package/dist/node_modules/@ctrl/tinycolor/dist/index.d.ts +207 -0
- package/dist/node_modules/@ctrl/tinycolor/dist/index.js +512 -0
- package/dist/node_modules/@ctrl/tinycolor/dist/interfaces.d.ts +46 -0
- package/dist/node_modules/@ctrl/tinycolor/dist/interfaces.js +2 -0
- package/dist/node_modules/@ctrl/tinycolor/dist/module/conversion.js +235 -0
- package/dist/node_modules/@ctrl/tinycolor/dist/module/css-color-names.js +154 -0
- package/dist/node_modules/@ctrl/tinycolor/dist/module/format-input.js +183 -0
- package/dist/node_modules/@ctrl/tinycolor/dist/module/from-ratio.js +25 -0
- package/dist/node_modules/@ctrl/tinycolor/dist/module/index.js +508 -0
- package/dist/node_modules/@ctrl/tinycolor/dist/module/interfaces.js +1 -0
- package/dist/node_modules/@ctrl/tinycolor/dist/module/public_api.js +12 -0
- package/dist/node_modules/@ctrl/tinycolor/dist/module/random.js +278 -0
- package/dist/node_modules/@ctrl/tinycolor/dist/module/readability.js +80 -0
- package/dist/node_modules/@ctrl/tinycolor/dist/module/to-ms-filter.js +16 -0
- package/dist/node_modules/@ctrl/tinycolor/dist/module/umd_api.js +20 -0
- package/dist/node_modules/@ctrl/tinycolor/dist/module/util.js +82 -0
- package/dist/node_modules/@ctrl/tinycolor/dist/public_api.d.ts +11 -0
- package/dist/node_modules/@ctrl/tinycolor/dist/public_api.js +1 -0
- package/dist/node_modules/@ctrl/tinycolor/dist/random.d.ts +24 -0
- package/dist/node_modules/@ctrl/tinycolor/dist/random.js +282 -0
- package/dist/node_modules/@ctrl/tinycolor/dist/readability.d.ts +46 -0
- package/dist/node_modules/@ctrl/tinycolor/dist/readability.js +86 -0
- package/dist/node_modules/@ctrl/tinycolor/dist/to-ms-filter.d.ts +5 -0
- package/dist/node_modules/@ctrl/tinycolor/dist/to-ms-filter.js +20 -0
- package/dist/node_modules/@ctrl/tinycolor/dist/umd_api.d.ts +23 -0
- package/dist/node_modules/@ctrl/tinycolor/dist/umd_api.js +22 -0
- package/dist/node_modules/@ctrl/tinycolor/dist/util.d.ts +36 -0
- package/dist/node_modules/@ctrl/tinycolor/dist/util.js +92 -0
- package/dist/node_modules/@ctrl/tinycolor/package.json +1 -0
- package/dist/shared/components/calendar/calendar.d.ts +22 -0
- package/dist/shared/components/calendar/calendar.js +417 -0
- package/dist/shared/components/calendar/style.d.ts +14 -0
- package/dist/shared/components/calendar/style.js +79 -0
- package/dist/shared/components/calendar/top-part-of-calendar.d.ts +19 -0
- package/dist/shared/components/calendar/top-part-of-calendar.js +57 -0
- package/dist/shared/components/gantt/style.d.ts +14 -0
- package/dist/shared/components/gantt/style.js +74 -0
- package/dist/shared/components/gantt/task-gantt-content.d.ts +35 -0
- package/dist/shared/components/gantt/task-gantt-content.js +337 -0
- package/dist/shared/components/gantt/task-gantt.d.ts +24 -0
- package/dist/shared/components/gantt/task-gantt.js +128 -0
- package/dist/shared/components/grid/grid-body.d.ts +21 -0
- package/dist/shared/components/grid/grid-body.js +114 -0
- package/dist/shared/components/grid/grid.d.ts +12 -0
- package/dist/shared/components/grid/grid.js +50 -0
- package/dist/shared/components/grid/style.d.ts +14 -0
- package/dist/shared/components/grid/style.js +54 -0
- package/dist/shared/components/other/arrow.d.ts +20 -0
- package/dist/shared/components/other/arrow.js +90 -0
- package/dist/shared/components/other/horizontal-scroll.d.ts +16 -0
- package/dist/shared/components/other/horizontal-scroll.js +64 -0
- package/dist/shared/components/other/style.d.ts +16 -0
- package/dist/shared/components/other/style.js +125 -0
- package/dist/shared/components/other/tooltip.d.ts +36 -0
- package/dist/shared/components/other/tooltip.js +137 -0
- package/dist/shared/components/other/vertical-scroll.d.ts +17 -0
- package/dist/shared/components/other/vertical-scroll.js +74 -0
- package/dist/shared/components/task-item/bar/bar-date-handle.d.ts +19 -0
- package/dist/shared/components/task-item/bar/bar-date-handle.js +62 -0
- package/dist/shared/components/task-item/bar/bar-display.d.ts +29 -0
- package/dist/shared/components/task-item/bar/bar-display.js +98 -0
- package/dist/shared/components/task-item/bar/bar-progress-handle.d.ts +15 -0
- package/dist/shared/components/task-item/bar/bar-progress-handle.js +49 -0
- package/dist/shared/components/task-item/bar/bar-small.d.ts +11 -0
- package/dist/shared/components/task-item/bar/bar-small.js +85 -0
- package/dist/shared/components/task-item/bar/bar.d.ts +11 -0
- package/dist/shared/components/task-item/bar/bar.js +113 -0
- package/dist/shared/components/task-item/bar/style.d.ts +10 -0
- package/dist/shared/components/task-item/bar/style.js +58 -0
- package/dist/shared/components/task-item/milestone/milestone.d.ts +11 -0
- package/dist/shared/components/task-item/milestone/milestone.js +72 -0
- package/dist/shared/components/task-item/milestone/style.d.ts +10 -0
- package/dist/shared/components/task-item/milestone/style.js +45 -0
- package/dist/shared/components/task-item/project/project.d.ts +11 -0
- package/dist/shared/components/task-item/project/project.js +77 -0
- package/dist/shared/components/task-item/project/style.d.ts +11 -0
- package/dist/shared/components/task-item/project/style.js +51 -0
- package/dist/shared/components/task-item/style.d.ts +12 -0
- package/dist/shared/components/task-item/style.js +74 -0
- package/dist/shared/components/task-item/task-item.d.ts +23 -0
- package/dist/shared/components/task-item/task-item.js +132 -0
- package/dist/shared/helpers/bar-helper.d.ts +22 -0
- package/dist/shared/helpers/bar-helper.js +415 -0
- package/dist/shared/helpers/date-helper.d.ts +27 -0
- package/dist/shared/helpers/date-helper.js +231 -0
- package/dist/shared/helpers/other-helper.d.ts +17 -0
- package/dist/shared/helpers/other-helper.js +97 -0
- package/dist/shared/types/bar-task.d.ts +30 -0
- package/dist/shared/types/bar-task.js +24 -0
- package/dist/shared/types/date-setup.d.ts +13 -0
- package/dist/shared/types/date-setup.js +24 -0
- package/dist/shared/types/gantt-task-actions.d.ts +16 -0
- package/dist/shared/types/gantt-task-actions.js +24 -0
- package/dist/shared/types/public-types.d.ts +145 -0
- package/dist/shared/types/public-types.js +46 -0
- package/package.json +2 -2
|
@@ -0,0 +1,98 @@
|
|
|
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 { ActionModel, TableActionsColumnModel, TableBlockModel } from '@nocobase/client-v2';
|
|
10
|
+
import { MultiRecordResource } from '@nocobase/flow-engine';
|
|
11
|
+
import React from 'react';
|
|
12
|
+
import { Task } from '../../shared/types/public-types';
|
|
13
|
+
type GanttScrollToDateOptions = {
|
|
14
|
+
behavior?: ScrollBehavior;
|
|
15
|
+
};
|
|
16
|
+
export declare class GanttBlockModel extends TableBlockModel {
|
|
17
|
+
static scene: import("@nocobase/client-v2").BlockSceneType;
|
|
18
|
+
customModelClasses: {
|
|
19
|
+
CollectionActionGroupModel: string;
|
|
20
|
+
RecordActionGroupModel: string;
|
|
21
|
+
TableColumnModel: string;
|
|
22
|
+
TableAssociationFieldGroupModel: string;
|
|
23
|
+
TableCustomColumnModel: string;
|
|
24
|
+
};
|
|
25
|
+
static filterCollection(collection: any): any;
|
|
26
|
+
get resource(): MultiRecordResource<any>;
|
|
27
|
+
createResource(): MultiRecordResource<unknown>;
|
|
28
|
+
normalizePageSize(value?: any): number;
|
|
29
|
+
getPageSize(): number;
|
|
30
|
+
normalizeTableWidth(value?: any): number;
|
|
31
|
+
getAutoTableWidth(): any;
|
|
32
|
+
getTableWidth(): any;
|
|
33
|
+
shouldShowRowNumbers(): boolean;
|
|
34
|
+
isTreeCollection(): boolean;
|
|
35
|
+
isTreeTableEnabled(): boolean;
|
|
36
|
+
shouldDefaultExpandAllRows(): boolean;
|
|
37
|
+
getTreeChildrenFieldName(): any;
|
|
38
|
+
private treeExpanded;
|
|
39
|
+
isTreeExpanded(): boolean;
|
|
40
|
+
setTreeExpandFlag(expanded: boolean): void;
|
|
41
|
+
expandAllTreeRows(): void;
|
|
42
|
+
collapseAllTreeRows(): void;
|
|
43
|
+
toggleAllTreeRows(): void;
|
|
44
|
+
scrollToDate(date: Date, options?: GanttScrollToDateOptions): void;
|
|
45
|
+
scrollToToday(options?: GanttScrollToDateOptions): void;
|
|
46
|
+
getCollectionFields(): import("@nocobase/flow-engine").CollectionField[];
|
|
47
|
+
getFieldOptions(types: string[]): {
|
|
48
|
+
label: any;
|
|
49
|
+
value: any;
|
|
50
|
+
}[];
|
|
51
|
+
getDefaultTitleFieldName(): any;
|
|
52
|
+
getDefaultStartFieldName(): any;
|
|
53
|
+
getDefaultEndFieldName(): any;
|
|
54
|
+
getFieldNames(): {
|
|
55
|
+
title: any;
|
|
56
|
+
start: any;
|
|
57
|
+
end: any;
|
|
58
|
+
progress: any;
|
|
59
|
+
color: any;
|
|
60
|
+
range: any;
|
|
61
|
+
};
|
|
62
|
+
getRecordFilterByTk(record: any, fallback?: string): any;
|
|
63
|
+
private getTaskId;
|
|
64
|
+
private formatTitle;
|
|
65
|
+
private getRecordColor;
|
|
66
|
+
private formatData;
|
|
67
|
+
getTasks(): (Task & {
|
|
68
|
+
record?: any;
|
|
69
|
+
})[];
|
|
70
|
+
getEventViewAction(): any;
|
|
71
|
+
getPopupActionUid(actionKey: 'eventViewAction'): string;
|
|
72
|
+
getPopupSettingsDefaults(actionUid?: string): {
|
|
73
|
+
mode: string;
|
|
74
|
+
size: string;
|
|
75
|
+
pageModelClass: string;
|
|
76
|
+
uid: string;
|
|
77
|
+
collectionName: any;
|
|
78
|
+
dataSourceKey: any;
|
|
79
|
+
};
|
|
80
|
+
getStoredPopupSettings(): any;
|
|
81
|
+
normalizePopupSettings(popupSettings?: Record<string, any>): {
|
|
82
|
+
[x: string]: any;
|
|
83
|
+
};
|
|
84
|
+
setPopupSettings(popupSettings?: Record<string, any>): {
|
|
85
|
+
[x: string]: any;
|
|
86
|
+
};
|
|
87
|
+
getPopupSettings(action: any, actionUid?: string): any;
|
|
88
|
+
syncPopupActionSettings(action: any): Promise<void>;
|
|
89
|
+
loadPopupAction(actionKey: 'eventViewAction'): Promise<import("@nocobase/flow-engine").FlowModel<import("@nocobase/flow-engine").DefaultStructure>>;
|
|
90
|
+
ensurePopupAction(actionKey?: 'eventViewAction'): Promise<any>;
|
|
91
|
+
openEvent(record: any): Promise<void>;
|
|
92
|
+
getActionsColumn(): TableActionsColumnModel;
|
|
93
|
+
renderConfigureActions(): React.JSX.Element;
|
|
94
|
+
getVisibleActionModels(): ActionModel<import("@nocobase/flow-engine").DefaultStructure>[];
|
|
95
|
+
renderActionBar(): React.JSX.Element;
|
|
96
|
+
renderComponent(): React.JSX.Element;
|
|
97
|
+
}
|
|
98
|
+
export {};
|
|
@@ -0,0 +1,31 @@
|
|
|
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
|
+
export declare const DATE_FIELD_TYPES: string[];
|
|
11
|
+
export declare const TITLE_FIELD_TYPES: string[];
|
|
12
|
+
export declare const PROGRESS_FIELD_TYPES: string[];
|
|
13
|
+
export declare const COLOR_FIELD_TYPES: string[];
|
|
14
|
+
export declare const DEFAULT_PRESET_COLOR = "#d9d9d9";
|
|
15
|
+
export declare const getTimeScaleOptions: (translate?: (key: string, options?: Record<string, any>) => string) => {
|
|
16
|
+
label: string;
|
|
17
|
+
value: string;
|
|
18
|
+
}[];
|
|
19
|
+
export declare const DRAG_HANDLER_TOOLBAR_ITEMS: {
|
|
20
|
+
key: string;
|
|
21
|
+
component: React.ComponentType<any>;
|
|
22
|
+
sort: number;
|
|
23
|
+
}[];
|
|
24
|
+
export declare const HIDDEN_GANTT_TABLE_SETTING_STEPS: string[];
|
|
25
|
+
export declare const HIDDEN_GANTT_TOP_ACTION_MODELS: Set<string>;
|
|
26
|
+
export declare const isSupportedByValues: (value: any, values: string[]) => boolean;
|
|
27
|
+
export declare const applyGanttFieldNames: (model: any, params: Record<string, any>) => void;
|
|
28
|
+
export declare const getProgress: (record: any, progressFieldName?: string) => number;
|
|
29
|
+
export declare const normalizeColorValue: (value: any) => any;
|
|
30
|
+
export declare const getFieldEnumColor: (field: any, value: any) => any;
|
|
31
|
+
export declare const normalizeEventOpenMode: (value?: string) => "dialog" | "embed" | "drawer";
|
|
@@ -0,0 +1,9 @@
|
|
|
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 function registerGanttBlockModelSettings(GanttBlockModel: any): void;
|
|
@@ -0,0 +1,33 @@
|
|
|
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 { ActionGroupModel, ActionModel } from '@nocobase/client-v2';
|
|
10
|
+
import { type FlowModelContext } from '@nocobase/flow-engine';
|
|
11
|
+
export declare const ALLOWED_GANTT_COLLECTION_ACTIONS: string[];
|
|
12
|
+
export declare class GanttCollectionActionGroupModel extends ActionGroupModel {
|
|
13
|
+
static defineChildren(ctx: FlowModelContext): Promise<any[]>;
|
|
14
|
+
}
|
|
15
|
+
export declare class GanttTodayActionModel extends ActionModel {
|
|
16
|
+
static scene: import("@nocobase/client-v2").ActionSceneType;
|
|
17
|
+
defaultProps: {
|
|
18
|
+
type: "default";
|
|
19
|
+
title: string;
|
|
20
|
+
icon: string;
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
export declare class GanttExpandCollapseActionModel extends ActionModel {
|
|
24
|
+
static scene: import("@nocobase/client-v2").ActionSceneType;
|
|
25
|
+
expandFlag: boolean;
|
|
26
|
+
defaultProps: {
|
|
27
|
+
type: "default";
|
|
28
|
+
title: string;
|
|
29
|
+
icon: string;
|
|
30
|
+
};
|
|
31
|
+
getTitle(): string;
|
|
32
|
+
setExpandFlag(flag: boolean): void;
|
|
33
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
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 { PopupActionModel } from '@nocobase/client-v2';
|
|
10
|
+
export declare const createGanttEventViewActionOptions: (uid?: string) => {
|
|
11
|
+
uid: string;
|
|
12
|
+
use: string;
|
|
13
|
+
};
|
|
14
|
+
declare class GanttPopupActionModel extends PopupActionModel {
|
|
15
|
+
get collection(): any;
|
|
16
|
+
getInputArgs(): {
|
|
17
|
+
dataSourceKey: any;
|
|
18
|
+
collectionName: any;
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
export declare class GanttEventViewActionModel extends GanttPopupActionModel {
|
|
22
|
+
static scene: import("@nocobase/client-v2").ActionSceneType;
|
|
23
|
+
defaultPopupTitle: string;
|
|
24
|
+
getAclActionName(): any;
|
|
25
|
+
}
|
|
26
|
+
export {};
|
|
@@ -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 React from 'react';
|
|
10
|
+
import type { GanttBlockModel } from '../GanttBlockModel';
|
|
11
|
+
export declare const GanttBlock: React.MemoExoticComponent<import("@formily/reactive-react").ReactFC<{
|
|
12
|
+
model: GanttBlockModel;
|
|
13
|
+
}>>;
|
|
@@ -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 type { GanttBlockModel } from '../GanttBlockModel';
|
|
10
|
+
export declare const ROW_SELECTION_COLUMN_WIDTH = 50;
|
|
11
|
+
export declare const TREE_EXPAND_COLUMN_WIDTH = 42;
|
|
12
|
+
export declare const getColumnWidth: (dataSetLength: any, clientWidth: any) => number;
|
|
13
|
+
export declare const getGanttRowKey: (model: GanttBlockModel, record: any) => string;
|
|
14
|
+
export declare const measureElementHeight: (element: Element | null) => number;
|
|
15
|
+
export declare const getDateIndex: (date: Date, dates: Date[]) => number;
|
|
16
|
+
export declare const getTreeRowNumber: (path?: string) => string;
|
|
17
|
+
export declare const getRowNumber: ({ page, pageSize, rowIndex, rowPath, }: {
|
|
18
|
+
page?: number;
|
|
19
|
+
pageSize?: number;
|
|
20
|
+
rowIndex: number;
|
|
21
|
+
rowPath?: string;
|
|
22
|
+
}) => string | number;
|
|
@@ -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
|
+
export declare const createGanttBlockClassNames: ({ token, tableWidth, hasVerticalScroll, hasHorizontalScroll, hasHorizontalTableScroll, }: {
|
|
10
|
+
token: any;
|
|
11
|
+
tableWidth: number;
|
|
12
|
+
hasVerticalScroll?: boolean;
|
|
13
|
+
hasHorizontalScroll?: boolean;
|
|
14
|
+
hasHorizontalTableScroll?: boolean;
|
|
15
|
+
}) => {
|
|
16
|
+
tableClass: string;
|
|
17
|
+
contentClass: string;
|
|
18
|
+
actionsColumnClass: string;
|
|
19
|
+
actionsTableClass: string;
|
|
20
|
+
chartClass: string;
|
|
21
|
+
paginationClass: string;
|
|
22
|
+
};
|
|
@@ -0,0 +1,46 @@
|
|
|
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 type { ColumnsType } from 'antd/es/table';
|
|
10
|
+
import React from 'react';
|
|
11
|
+
import type { Task } from '../../../shared/types/public-types';
|
|
12
|
+
import type { GanttBlockModel } from '../GanttBlockModel';
|
|
13
|
+
export declare const GANTT_TREE_CHILDREN_COLUMN = "__ganttChildren";
|
|
14
|
+
export declare const getGanttTreeMeta: (tasks: Task[]) => {
|
|
15
|
+
childrenByParent: Map<string, Task[]>;
|
|
16
|
+
getDepth: (task: Task) => number;
|
|
17
|
+
roots: Task[];
|
|
18
|
+
};
|
|
19
|
+
export declare const getVisibleGanttTasks: ({ expandedRowKeySet, tasks, treeTableEnabled, }: {
|
|
20
|
+
expandedRowKeySet: Set<string>;
|
|
21
|
+
tasks: Task[];
|
|
22
|
+
treeTableEnabled: boolean;
|
|
23
|
+
}) => Task[];
|
|
24
|
+
export declare const getExpandableGanttRowKeys: (tasks: Task[]) => string[];
|
|
25
|
+
export declare const getOrderedGanttTasks: ({ tasks, treeTableEnabled }: {
|
|
26
|
+
tasks: Task[];
|
|
27
|
+
treeTableEnabled: boolean;
|
|
28
|
+
}) => Task[];
|
|
29
|
+
export declare const getGanttTableRecords: ({ tasks, treeTableEnabled }: {
|
|
30
|
+
tasks: Task[];
|
|
31
|
+
treeTableEnabled: boolean;
|
|
32
|
+
}) => Record<string, any>[];
|
|
33
|
+
export declare const useGanttTree: ({ model, tasks, tableColumns, }: {
|
|
34
|
+
model: GanttBlockModel;
|
|
35
|
+
tasks: Task[];
|
|
36
|
+
tableColumns: ColumnsType<any>;
|
|
37
|
+
}) => {
|
|
38
|
+
treeTableEnabled: boolean;
|
|
39
|
+
visibleTasks: Task[];
|
|
40
|
+
tableRecords: Record<string, any>[];
|
|
41
|
+
resolvedTableColumns: ColumnsType<any>;
|
|
42
|
+
expandable: {
|
|
43
|
+
expandedRowKeys: React.Key[];
|
|
44
|
+
onExpand: (expanded: boolean, record: any) => void;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
@@ -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 getDatePickerLabel: (props: any) => string;
|
|
10
|
+
export declare const getLabelFormatValue: (labelUiSchema: any, value: any) => any;
|
|
11
|
+
export declare const toPlainLabel: (value: any) => 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
|
+
export * from './GanttBlockModel';
|
|
10
|
+
export * from './actions/GanttActionModels';
|
|
11
|
+
export * from './actions/GanttPopupModels';
|
|
@@ -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 { Application, Plugin } from '@nocobase/client-v2';
|
|
10
|
+
export declare class PluginGanttClient extends Plugin<any, Application> {
|
|
11
|
+
load(): Promise<void>;
|
|
12
|
+
}
|
|
13
|
+
export default PluginGanttClient;
|
package/dist/externalVersion.js
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
module.exports = {
|
|
11
|
-
"@nocobase/client": "2.1.0-beta.
|
|
11
|
+
"@nocobase/client": "2.1.0-beta.38",
|
|
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/
|
|
20
|
-
"@nocobase/
|
|
19
|
+
"@nocobase/flow-engine": "2.1.0-beta.38",
|
|
20
|
+
"@nocobase/client-v2": "2.1.0-beta.38",
|
|
21
|
+
"@nocobase/server": "2.1.0-beta.38",
|
|
22
|
+
"@nocobase/test": "2.1.0-beta.38",
|
|
23
|
+
"antd": "5.24.2",
|
|
21
24
|
"@emotion/css": "11.13.0",
|
|
22
25
|
"antd-style": "3.7.1",
|
|
23
|
-
"@nocobase/
|
|
24
|
-
"@nocobase/utils": "2.1.0-beta.37",
|
|
25
|
-
"antd": "5.24.2"
|
|
26
|
+
"@nocobase/utils": "2.1.0-beta.38"
|
|
26
27
|
};
|
package/dist/locale/de-DE.json
CHANGED
|
@@ -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",
|
package/dist/locale/en-US.json
CHANGED
|
@@ -1,8 +1,32 @@
|
|
|
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
|
+
"Event popup settings": "Event popup settings",
|
|
11
|
+
"Expand all": "Expand all",
|
|
12
|
+
"Expand all rows by default": "Expand all rows by default",
|
|
13
|
+
"Expand/Collapse": "Expand/Collapse",
|
|
14
|
+
"Gantt": "Gantt",
|
|
15
|
+
"Gantt action": "Gantt action",
|
|
16
|
+
"Gantt fields": "Gantt fields",
|
|
17
|
+
"Half of day": "Half of day",
|
|
18
|
+
"Hour": "Hour",
|
|
19
|
+
"Month": "Month",
|
|
20
|
+
"Page size": "Page size",
|
|
4
21
|
"Progress field": "Progress field",
|
|
22
|
+
"Quarter of day": "Quarter of day",
|
|
23
|
+
"QuarterYear": "QuarterYear",
|
|
24
|
+
"Show table": "Show table",
|
|
5
25
|
"Start date field": "Start date field",
|
|
26
|
+
"Table width": "Table width",
|
|
6
27
|
"Time scale": "Time scale",
|
|
7
|
-
"Title field": "Title field"
|
|
28
|
+
"Title field": "Title field",
|
|
29
|
+
"Today": "Today",
|
|
30
|
+
"Week": "Week",
|
|
31
|
+
"Year": "Year"
|
|
8
32
|
}
|
package/dist/locale/es-ES.json
CHANGED
|
@@ -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",
|
package/dist/locale/fr-FR.json
CHANGED
|
@@ -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",
|
package/dist/locale/hu-HU.json
CHANGED
|
@@ -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",
|
package/dist/locale/id-ID.json
CHANGED
|
@@ -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",
|
package/dist/locale/it-IT.json
CHANGED
|
@@ -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",
|
package/dist/locale/ja-JP.json
CHANGED
package/dist/locale/ko-KR.json
CHANGED
package/dist/locale/nl-NL.json
CHANGED
|
@@ -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",
|
package/dist/locale/pt-BR.json
CHANGED
|
@@ -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",
|
package/dist/locale/ru-RU.json
CHANGED
|
@@ -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": "Временной масштаб",
|
package/dist/locale/tr-TR.json
CHANGED
|
@@ -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",
|
package/dist/locale/uk-UA.json
CHANGED
|
@@ -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": "Подробиці",
|
|
5
|
+
"Event popup settings": "Налаштування спливаючого вікна події",
|
|
4
6
|
"Progress field": "Progress field",
|
|
5
7
|
"Start date field": "Start date field",
|
|
6
8
|
"Time scale": "Time scale",
|
package/dist/locale/vi-VN.json
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"Enable drag to reschedule": "Enable drag to reschedule",
|
|
3
3
|
"End date field": "Trường ngày kết thúc",
|
|
4
|
+
"Details": "Chi tiet",
|
|
5
|
+
"Event popup settings": "Cai dat popup su kien",
|
|
4
6
|
"Progress field": "Progress field",
|
|
5
7
|
"Start date field": "Start date field",
|
|
6
8
|
"Time scale": "Time scale",
|
package/dist/locale/zh-CN.json
CHANGED
|
@@ -1,8 +1,32 @@
|
|
|
1
1
|
{
|
|
2
|
+
"Actions": "操作",
|
|
3
|
+
"Collapse all": "全部折叠",
|
|
4
|
+
"Color field": "颜色字段",
|
|
5
|
+
"Day": "天",
|
|
6
|
+
"Details": "详情",
|
|
2
7
|
"Enable drag to reschedule": "启用拖动重新排期",
|
|
8
|
+
"Enable tree table": "启用树表格",
|
|
3
9
|
"End date field": "结束日期字段",
|
|
10
|
+
"Event popup settings": "任务弹窗设置",
|
|
11
|
+
"Expand all": "全部展开",
|
|
12
|
+
"Expand all rows by default": "默认展开全部行",
|
|
13
|
+
"Expand/Collapse": "展开/折叠",
|
|
14
|
+
"Gantt": "甘特图",
|
|
15
|
+
"Gantt action": "甘特图操作",
|
|
16
|
+
"Gantt fields": "甘特图字段",
|
|
17
|
+
"Half of day": "半天",
|
|
18
|
+
"Hour": "小时",
|
|
19
|
+
"Month": "月",
|
|
20
|
+
"Page size": "每页条数",
|
|
4
21
|
"Progress field": "进度字段",
|
|
22
|
+
"Quarter of day": "一天的四分之一",
|
|
23
|
+
"QuarterYear": "季度",
|
|
24
|
+
"Show table": "表格显示",
|
|
5
25
|
"Start date field": "开始日期字段",
|
|
26
|
+
"Table width": "表格宽度",
|
|
6
27
|
"Time scale": "时间缩放等级",
|
|
7
|
-
"Title field": "标题字段"
|
|
28
|
+
"Title field": "标题字段",
|
|
29
|
+
"Today": "今天",
|
|
30
|
+
"Week": "周",
|
|
31
|
+
"Year": "年"
|
|
8
32
|
}
|
package/dist/locale/zh-TW.json
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
{
|
|
2
|
+
"Color field": "顏色字段",
|
|
2
3
|
"Enable drag to reschedule": "啟用拖動重新排程",
|
|
3
4
|
"End date field": "End date field",
|
|
5
|
+
"Details": "詳情",
|
|
6
|
+
"Event popup settings": "任務彈窗設定",
|
|
4
7
|
"Progress field": "Progress field",
|
|
8
|
+
"Show table": "表格顯示",
|
|
5
9
|
"Start date field": "Start date field",
|
|
6
10
|
"Time scale": "Time scale",
|
|
7
11
|
"Title field": "Title field"
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
Copyright (c) Scott Cooper <scttcper@gmail.com>
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
4
|
+
|
|
5
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
6
|
+
|
|
7
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|