@object-ui/plugin-gantt 6.2.2 → 7.0.0
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/CHANGELOG.md +150 -0
- package/README.md +109 -4
- package/dist/GanttView.d.ts +217 -0
- package/dist/GanttView.d.ts.map +1 -0
- package/dist/ObjectGantt.d.ts +38 -0
- package/dist/ObjectGantt.d.ts.map +1 -0
- package/dist/QuickFilterBar.d.ts +39 -0
- package/dist/QuickFilterBar.d.ts.map +1 -0
- package/dist/ResourceWorkload.d.ts +37 -0
- package/dist/ResourceWorkload.d.ts.map +1 -0
- package/dist/index.d.ts +17 -2
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +3449 -534
- package/dist/index.umd.cjs +93 -1
- package/dist/scheduling.d.ts +83 -0
- package/dist/scheduling.d.ts.map +1 -0
- package/dist/{packages/plugin-gantt/src/useGanttTranslation.d.ts → useGanttTranslation.d.ts} +3 -6
- package/dist/useGanttTranslation.d.ts.map +1 -0
- package/dist/workload.d.ts +73 -0
- package/dist/workload.d.ts.map +1 -0
- package/package.json +13 -12
- package/dist/packages/plugin-gantt/src/GanttView.d.ts +0 -43
- package/dist/packages/plugin-gantt/src/GanttView.d.ts.map +0 -1
- package/dist/packages/plugin-gantt/src/ObjectGantt.d.ts +0 -13
- package/dist/packages/plugin-gantt/src/ObjectGantt.d.ts.map +0 -1
- package/dist/packages/plugin-gantt/src/index.d.ts +0 -10
- package/dist/packages/plugin-gantt/src/index.d.ts.map +0 -1
- package/dist/packages/plugin-gantt/src/useGanttTranslation.d.ts.map +0 -1
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ObjectUI
|
|
3
|
-
* Copyright (c) 2024-present ObjectStack Inc.
|
|
4
|
-
*
|
|
5
|
-
* This source code is licensed under the MIT license found in the
|
|
6
|
-
* LICENSE file in the root directory of this source tree.
|
|
7
|
-
*/
|
|
8
|
-
export interface GanttTask {
|
|
9
|
-
id: string | number;
|
|
10
|
-
title: string;
|
|
11
|
-
start: Date;
|
|
12
|
-
end: Date;
|
|
13
|
-
progress: number;
|
|
14
|
-
color?: string;
|
|
15
|
-
data?: any;
|
|
16
|
-
dependencies?: (string | number)[];
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* @deprecated The day/week/month/quarter view-mode dropdown was removed
|
|
20
|
-
* because all four values rendered the same daily-column timeline.
|
|
21
|
-
* Kept exported only to avoid breaking downstream type imports; the
|
|
22
|
-
* `viewMode` / `onViewChange` props on `GanttViewProps` are no-ops.
|
|
23
|
-
* Re-introduce real semantics here when timeline granularity is
|
|
24
|
-
* implemented.
|
|
25
|
-
*/
|
|
26
|
-
export type GanttViewMode = 'day' | 'week' | 'month' | 'quarter';
|
|
27
|
-
export interface GanttViewProps {
|
|
28
|
-
tasks: GanttTask[];
|
|
29
|
-
/** @deprecated no-op — see {@link GanttViewMode} */
|
|
30
|
-
viewMode?: GanttViewMode;
|
|
31
|
-
startDate?: Date;
|
|
32
|
-
endDate?: Date;
|
|
33
|
-
onTaskClick?: (task: GanttTask) => void;
|
|
34
|
-
onTaskUpdate?: (task: GanttTask, changes: Partial<Pick<GanttTask, 'title' | 'start' | 'end' | 'progress'>>) => void;
|
|
35
|
-
onTaskDelete?: (task: GanttTask) => void;
|
|
36
|
-
/** @deprecated no-op — see {@link GanttViewMode} */
|
|
37
|
-
onViewChange?: (view: GanttViewMode) => void;
|
|
38
|
-
className?: string;
|
|
39
|
-
/** Enable inline editing of task fields */
|
|
40
|
-
inlineEdit?: boolean;
|
|
41
|
-
}
|
|
42
|
-
export declare function GanttView({ tasks, startDate, endDate, onTaskClick, onTaskUpdate, className, inlineEdit, }: GanttViewProps): import("react/jsx-runtime").JSX.Element;
|
|
43
|
-
//# sourceMappingURL=GanttView.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GanttView.d.ts","sourceRoot":"","sources":["../../../../src/GanttView.tsx"],"names":[],"mappings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,2CA8kBhB"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { ObjectGridSchema, DataSource } from '@object-ui/types';
|
|
3
|
-
export interface ObjectGanttProps {
|
|
4
|
-
schema: ObjectGridSchema;
|
|
5
|
-
dataSource?: DataSource;
|
|
6
|
-
className?: string;
|
|
7
|
-
onTaskClick?: (record: any) => void;
|
|
8
|
-
onRowClick?: (record: any) => void;
|
|
9
|
-
onEdit?: (record: any) => void;
|
|
10
|
-
onDelete?: (record: any) => void;
|
|
11
|
-
}
|
|
12
|
-
export declare const ObjectGantt: React.FC<ObjectGanttProps>;
|
|
13
|
-
//# sourceMappingURL=ObjectGantt.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ObjectGantt.d.ts","sourceRoot":"","sources":["../../../../src/ObjectGantt.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAoD,MAAM,OAAO,CAAC;AACzE,OAAO,KAAK,EAAE,gBAAgB,EAAE,UAAU,EAAyB,MAAM,kBAAkB,CAAC;AAkB5F,MAAM,WAAW,gBAAgB;IAC/B,MAAM,EAAE,gBAAgB,CAAC;IACzB,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,CAAC,MAAM,EAAE,GAAG,KAAK,IAAI,CAAC;IACpC,UAAU,CAAC,EAAE,CAAC,MAAM,EAAE,GAAG,KAAK,IAAI,CAAC;IACnC,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,GAAG,KAAK,IAAI,CAAC;IAC/B,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,GAAG,KAAK,IAAI,CAAC;CAClC;AAyFD,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAuYlD,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { ObjectGantt, ObjectGanttProps } from './ObjectGantt';
|
|
3
|
-
export { ObjectGantt };
|
|
4
|
-
export type { ObjectGanttProps };
|
|
5
|
-
export { GanttView } from './GanttView';
|
|
6
|
-
export type { GanttViewProps, GanttTask, GanttViewMode } from './GanttView';
|
|
7
|
-
export declare const ObjectGanttRenderer: React.FC<{
|
|
8
|
-
schema: any;
|
|
9
|
-
}>;
|
|
10
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/index.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAEtD,OAAO,EAAE,WAAW,EAAE,CAAC;AACvB,YAAY,EAAE,gBAAgB,EAAE,CAAC;AAEjC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,YAAY,EAAE,cAAc,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAG5E,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC;IAAE,MAAM,EAAE,GAAG,CAAA;CAAE,CAGzD,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useGanttTranslation.d.ts","sourceRoot":"","sources":["../../../../src/useGanttTranslation.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH;;;;;GAKG;AACH,eAAO,MAAM,0BAA0B,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAY7D,CAAC;AAIF,iBAAS,QAAQ,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAQxE;AAED,wBAAgB,mBAAmB;;;;EAWlC"}
|