@svar-ui/gantt-store 2.8.0 → 2.8.2
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/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/types/DataStore.d.ts +7 -4
- package/dist/types/eventSource.d.ts +3 -0
- package/dist/types/tasks.d.ts +2 -5
- package/package.json +1 -1
|
@@ -11,8 +11,7 @@ export default class DataStore extends Store<IData> {
|
|
|
11
11
|
private _placeholderRow;
|
|
12
12
|
constructor(w: TWritableCreator);
|
|
13
13
|
init(config: Partial<IDataConfig>): void;
|
|
14
|
-
private
|
|
15
|
-
private isRemote;
|
|
14
|
+
private unrecorded;
|
|
16
15
|
private resetDatasetState;
|
|
17
16
|
private changed;
|
|
18
17
|
private prepareLayoutConfig;
|
|
@@ -49,7 +48,7 @@ export default class DataStore extends Store<IData> {
|
|
|
49
48
|
getResourceTasks(id: TID): IParsedTask[];
|
|
50
49
|
private changeScale;
|
|
51
50
|
private shouldExpandScale;
|
|
52
|
-
private
|
|
51
|
+
private applyOpen;
|
|
53
52
|
private resetSummaryDates;
|
|
54
53
|
private deriveSummary;
|
|
55
54
|
private applyInactiveDown;
|
|
@@ -81,6 +80,7 @@ export type IDataMethodsConfig = CombineTypes<{
|
|
|
81
80
|
diff?: number;
|
|
82
81
|
inProgress?: boolean;
|
|
83
82
|
eventSource?: string;
|
|
83
|
+
derive?: boolean;
|
|
84
84
|
skipUndo?: boolean;
|
|
85
85
|
};
|
|
86
86
|
["delete-task"]: {
|
|
@@ -90,6 +90,8 @@ export type IDataMethodsConfig = CombineTypes<{
|
|
|
90
90
|
["open-task"]: {
|
|
91
91
|
id: TID;
|
|
92
92
|
mode: boolean;
|
|
93
|
+
nested?: boolean;
|
|
94
|
+
eventSource?: string;
|
|
93
95
|
};
|
|
94
96
|
["select-task"]: {
|
|
95
97
|
id: TID;
|
|
@@ -157,6 +159,7 @@ export type IDataMethodsConfig = CombineTypes<{
|
|
|
157
159
|
["render-data"]: IVisibleArea;
|
|
158
160
|
["request-data"]: {
|
|
159
161
|
id: TID;
|
|
162
|
+
nested?: boolean;
|
|
160
163
|
};
|
|
161
164
|
["provide-data"]: {
|
|
162
165
|
id: TID;
|
|
@@ -165,6 +168,7 @@ export type IDataMethodsConfig = CombineTypes<{
|
|
|
165
168
|
links?: Array<ILink>;
|
|
166
169
|
assignments?: Array<IAssignment>;
|
|
167
170
|
};
|
|
171
|
+
nested?: boolean;
|
|
168
172
|
};
|
|
169
173
|
["zoom-scale"]: {
|
|
170
174
|
dir: number;
|
|
@@ -252,7 +256,6 @@ export type IDataMethodsConfig = CombineTypes<{
|
|
|
252
256
|
}, {
|
|
253
257
|
skipProvider?: boolean;
|
|
254
258
|
skipUndo?: boolean;
|
|
255
|
-
joinUndo?: boolean;
|
|
256
259
|
[key: string]: any;
|
|
257
260
|
}>;
|
|
258
261
|
export {};
|
package/dist/types/tasks.d.ts
CHANGED
|
@@ -2,8 +2,8 @@ import { IGanttTask, IParsedTask, GanttDataTree, ITask, IDataHash, IData, ICalen
|
|
|
2
2
|
import { EventBus } from "@svar-ui/lib-state";
|
|
3
3
|
export declare const heightAdjustment = 7;
|
|
4
4
|
export declare function isManualSummary(task: Partial<ITask>, state?: Partial<IData>): boolean;
|
|
5
|
-
export declare function dragSummaryKids(task: IParsedTask, dx: number, rollups: boolean, holdManual?: boolean): void;
|
|
6
|
-
export declare function dragSummary(tasks: GanttDataTree, task: IParsedTask, inactiveTasks?: boolean, autoSchedule?: boolean): void;
|
|
5
|
+
export declare function dragSummaryKids(task: IParsedTask, dx: number, rollups: boolean, holdManual?: boolean, slack?: boolean): void;
|
|
6
|
+
export declare function dragSummary(tasks: GanttDataTree, task: IParsedTask, inactiveTasks?: boolean, autoSchedule?: boolean, unscheduledTasks?: boolean): void;
|
|
7
7
|
export declare function setSummaryDates(task: ITask, unscheduledTasks?: boolean, inactiveTasks?: boolean, excludeInactive?: boolean): ITask;
|
|
8
8
|
export declare function updateTask(t: IGanttTask, i: number | null, state: Partial<IData>): IGanttTask;
|
|
9
9
|
export declare function isSegmentMoveAllowed(task: IGanttTask, moveOptions: IDataHash): boolean;
|
|
@@ -11,15 +11,12 @@ export declare function extendDragOptions(task: ITask, options: IDataHash): void
|
|
|
11
11
|
type TResourceHistory = {
|
|
12
12
|
startBatch(): void;
|
|
13
13
|
endBatch(): void;
|
|
14
|
-
isBatching(): boolean;
|
|
15
14
|
} | null;
|
|
16
15
|
export declare function setTaskResources(taskId: TID, resourceIds: TID[], ctx: {
|
|
17
16
|
exec: EventBus<TMethodsConfig, keyof TMethodsConfig>["exec"];
|
|
18
17
|
getState: () => Partial<IData>;
|
|
19
18
|
getHistory: () => TResourceHistory | null;
|
|
20
19
|
eventSource?: string;
|
|
21
|
-
skipUndo?: boolean;
|
|
22
|
-
joinUndo?: boolean;
|
|
23
20
|
}): void;
|
|
24
21
|
export declare function getDefaultTaskStart(state: Partial<IData>, calendar?: ICalendar): Date;
|
|
25
22
|
export {};
|