@bryntum/gantt-react-thin 7.1.1
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/README.md +52 -0
- package/lib/BryntumAssignmentField.d.ts +272 -0
- package/lib/BryntumAssignmentField.js +204 -0
- package/lib/BryntumAssignmentField.js.map +1 -0
- package/lib/BryntumAssignmentGrid.d.ts +836 -0
- package/lib/BryntumAssignmentGrid.js +283 -0
- package/lib/BryntumAssignmentGrid.js.map +1 -0
- package/lib/BryntumCalendarPicker.d.ts +267 -0
- package/lib/BryntumCalendarPicker.js +202 -0
- package/lib/BryntumCalendarPicker.js.map +1 -0
- package/lib/BryntumDependencyField.d.ts +274 -0
- package/lib/BryntumDependencyField.js +209 -0
- package/lib/BryntumDependencyField.js.map +1 -0
- package/lib/BryntumGantt.d.ts +1776 -0
- package/lib/BryntumGantt.js +601 -0
- package/lib/BryntumGantt.js.map +1 -0
- package/lib/BryntumGanttBase.d.ts +1775 -0
- package/lib/BryntumGanttBase.js +600 -0
- package/lib/BryntumGanttBase.js.map +1 -0
- package/lib/BryntumGanttProjectModel.d.ts +306 -0
- package/lib/BryntumGanttProjectModel.js +188 -0
- package/lib/BryntumGanttProjectModel.js.map +1 -0
- package/lib/WrapperHelper.d.ts +26 -0
- package/lib/WrapperHelper.js +569 -0
- package/lib/WrapperHelper.js.map +1 -0
- package/lib/index.d.ts +7 -0
- package/lib/index.js +8 -0
- package/lib/index.js.map +1 -0
- package/license.pdf +0 -0
- package/licenses.md +310 -0
- package/package.json +25 -0
- package/src/BryntumAssignmentField.tsx +1250 -0
- package/src/BryntumAssignmentGrid.tsx +2349 -0
- package/src/BryntumCalendarPicker.tsx +1231 -0
- package/src/BryntumDependencyField.tsx +1272 -0
- package/src/BryntumGantt.tsx +4698 -0
- package/src/BryntumGanttBase.tsx +4696 -0
- package/src/BryntumGanttProjectModel.tsx +1147 -0
- package/src/WrapperHelper.tsx +1125 -0
- package/src/index.ts +11 -0
|
@@ -0,0 +1,306 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Base, DurationUnit, Model, ModelConfig, StateTrackingManager as CoreStateTrackingManager, Store, StoreConfig } from '@bryntum/core-thin';
|
|
3
|
+
import { AbstractCrudManager, CrudManagerRequestResponse, CrudManagerStoreDescriptor, LazyLoadCrudManagerRequestParams, TimeRangeModel, TimeRangeModelConfig, TimeRangeStore, TimeRangeStoreConfig, TimeSpan, TimeSpanConfig } from '@bryntum/scheduler-thin';
|
|
4
|
+
import { StateTrackingManagerConfig } from '@bryntum/schedulerpro-thin';
|
|
5
|
+
import { AssignmentModel, AssignmentModelConfig, AssignmentStore, AssignmentStoreConfig, CalendarManagerStore, CalendarManagerStoreConfig, CalendarModel, CalendarModelConfig, DependencyModel, DependencyModelConfig, DependencyStore, DependencyStoreConfig, ProjectModel, ProjectModelListeners, ResourceModel, ResourceModelConfig, ResourceStore, ResourceStoreConfig, TaskModel, TaskModelConfig, TaskStore, TaskStoreConfig } from '@bryntum/gantt-thin';
|
|
6
|
+
import { processWidgetContent } from './WrapperHelper.js';
|
|
7
|
+
export declare type BryntumGanttProjectModelProps = {
|
|
8
|
+
addConstraintOnDateSet?: boolean;
|
|
9
|
+
adjustDurationToDST?: boolean;
|
|
10
|
+
allowPostponedConflicts?: boolean;
|
|
11
|
+
assignmentModelClass?: typeof AssignmentModel;
|
|
12
|
+
assignments?: AssignmentModel[] | AssignmentModelConfig[];
|
|
13
|
+
assignmentsData?: AssignmentModelConfig[] | AssignmentModel[];
|
|
14
|
+
assignmentStore?: AssignmentStore | AssignmentStoreConfig;
|
|
15
|
+
assignmentStoreClass?: typeof AssignmentStore;
|
|
16
|
+
autoCalculatePercentDoneForParentTasks?: boolean;
|
|
17
|
+
autoLoad?: boolean;
|
|
18
|
+
autoMergeAdjacentSegments?: boolean;
|
|
19
|
+
autoPostponeConflicts?: boolean;
|
|
20
|
+
autoPostponedConflicts?: boolean;
|
|
21
|
+
autoScheduleManualTasksOnSecondPass?: boolean;
|
|
22
|
+
autoSetConstraints?: boolean;
|
|
23
|
+
autoSync?: boolean;
|
|
24
|
+
autoSyncTimeout?: number;
|
|
25
|
+
bubbleEvents?: object;
|
|
26
|
+
bwcConflictPostpone?: boolean;
|
|
27
|
+
calendar?: string | CalendarModelConfig | CalendarModel;
|
|
28
|
+
calendarManagerStore?: CalendarManagerStore | CalendarManagerStoreConfig;
|
|
29
|
+
calendarManagerStoreClass?: typeof CalendarManagerStore;
|
|
30
|
+
calendarModelClass?: typeof CalendarModel;
|
|
31
|
+
calendars?: CalendarModel[] | CalendarModelConfig[];
|
|
32
|
+
calendarsData?: CalendarModelConfig[] | CalendarModel[];
|
|
33
|
+
callOnFunctions?: boolean;
|
|
34
|
+
catchEventHandlerExceptions?: boolean;
|
|
35
|
+
children?: boolean | object[] | Model[] | ModelConfig[];
|
|
36
|
+
crudStores?: Store[] | string[] | CrudManagerStoreDescriptor[] | StoreConfig[];
|
|
37
|
+
daysPerMonth?: number;
|
|
38
|
+
daysPerWeek?: number;
|
|
39
|
+
delayCalculation?: boolean;
|
|
40
|
+
dependencies?: DependencyModel[] | DependencyModelConfig[];
|
|
41
|
+
dependenciesCalendar?: 'ToEvent' | 'FromEvent' | 'Project' | 'AllWorking';
|
|
42
|
+
dependenciesData?: DependencyModelConfig[] | DependencyModel[];
|
|
43
|
+
dependencyModelClass?: typeof DependencyModel;
|
|
44
|
+
dependencyStore?: DependencyStore | DependencyStoreConfig;
|
|
45
|
+
dependencyStoreClass?: typeof DependencyStore;
|
|
46
|
+
description?: string;
|
|
47
|
+
direction?: 'Forward' | 'Backward';
|
|
48
|
+
enableProgressNotifications?: boolean;
|
|
49
|
+
encoder?: {
|
|
50
|
+
requestData?: object;
|
|
51
|
+
};
|
|
52
|
+
endDate?: string | Date;
|
|
53
|
+
eventsData?: TaskModelConfig[] | TaskModel[];
|
|
54
|
+
eventStore?: TaskStore | TaskStoreConfig;
|
|
55
|
+
expanded?: boolean;
|
|
56
|
+
forceSync?: boolean;
|
|
57
|
+
hoursPerDay?: number;
|
|
58
|
+
id?: string | number;
|
|
59
|
+
ignoreConstraintsOnConflictDuringSecondPass?: boolean;
|
|
60
|
+
ignoreRemoteChangesInSTM?: boolean;
|
|
61
|
+
includeAsapAlapAsConstraints?: boolean;
|
|
62
|
+
includeChildrenInRemoveRequest?: boolean;
|
|
63
|
+
includeLegacyDataProperties?: boolean;
|
|
64
|
+
isFullyLoaded?: boolean;
|
|
65
|
+
json?: string;
|
|
66
|
+
lazyLoad?: boolean | {
|
|
67
|
+
lazyLoad: {
|
|
68
|
+
chunkSize: number;
|
|
69
|
+
};
|
|
70
|
+
bufferUnit: DurationUnit;
|
|
71
|
+
bufferAmount: number;
|
|
72
|
+
};
|
|
73
|
+
listeners?: ProjectModelListeners;
|
|
74
|
+
loadUrl?: string;
|
|
75
|
+
maxCalendarRange?: number;
|
|
76
|
+
maxCriticalPathsCount?: number;
|
|
77
|
+
name?: string;
|
|
78
|
+
orderedParentIndex?: number;
|
|
79
|
+
pageSize?: number;
|
|
80
|
+
parentId?: string | number | null;
|
|
81
|
+
parentIndex?: number;
|
|
82
|
+
phantomIdField?: string;
|
|
83
|
+
phantomParentIdField?: string;
|
|
84
|
+
readOnly?: boolean;
|
|
85
|
+
remoteChildCount?: number;
|
|
86
|
+
remotePaging?: boolean;
|
|
87
|
+
requestData?: (params: LazyLoadCrudManagerRequestParams) => Promise<CrudManagerRequestResponse>;
|
|
88
|
+
resetIdsBeforeSync?: boolean;
|
|
89
|
+
resetUndoRedoQueuesAfterLoad?: boolean;
|
|
90
|
+
resourceModelClass?: typeof ResourceModel;
|
|
91
|
+
resources?: ResourceModel[] | ResourceModelConfig[];
|
|
92
|
+
resourcesData?: ResourceModelConfig[] | ResourceModel[];
|
|
93
|
+
resourceStore?: ResourceStore | ResourceStoreConfig;
|
|
94
|
+
resourceStoreClass?: typeof ResourceStore;
|
|
95
|
+
shouldSyncDataOnLoad?: (options: {
|
|
96
|
+
store: Store;
|
|
97
|
+
records: Model;
|
|
98
|
+
data: object[];
|
|
99
|
+
}) => Set<any> | boolean;
|
|
100
|
+
silenceInitialCommit?: boolean;
|
|
101
|
+
skipNonWorkingTimeInDurationWhenSchedulingManually?: boolean;
|
|
102
|
+
skipNonWorkingTimeWhenSchedulingManually?: boolean;
|
|
103
|
+
skipSuccessProperty?: boolean;
|
|
104
|
+
startDate?: string | Date;
|
|
105
|
+
startedTaskScheduling?: string;
|
|
106
|
+
statusDate?: Date;
|
|
107
|
+
stm?: StateTrackingManagerConfig | CoreStateTrackingManager;
|
|
108
|
+
storeIdProperty?: string;
|
|
109
|
+
supportShortSyncResponse?: boolean;
|
|
110
|
+
syncApplySequence?: string[] | CrudManagerStoreDescriptor[];
|
|
111
|
+
syncUrl?: string;
|
|
112
|
+
taskModelClass?: typeof TaskModel;
|
|
113
|
+
tasks?: TaskModel[] | TaskModelConfig[];
|
|
114
|
+
tasksData?: TaskModelConfig[] | TaskModel[];
|
|
115
|
+
taskStore?: TaskStore | TaskStoreConfig;
|
|
116
|
+
taskStoreClass?: typeof TaskStore;
|
|
117
|
+
timeRanges?: TimeRangeModel[] | TimeRangeModelConfig[];
|
|
118
|
+
timeRangesData?: TimeSpanConfig[] | TimeSpan[];
|
|
119
|
+
timeRangeStore?: TimeRangeStoreConfig | TimeRangeStore;
|
|
120
|
+
timeZone?: string | number;
|
|
121
|
+
toJSONResultFormat?: 'inlineData' | 'model';
|
|
122
|
+
trackProjectModelChanges?: boolean;
|
|
123
|
+
trackResponseType?: boolean;
|
|
124
|
+
transport?: {
|
|
125
|
+
load?: object;
|
|
126
|
+
sync?: object;
|
|
127
|
+
};
|
|
128
|
+
useRawData?: boolean;
|
|
129
|
+
validateResponse?: boolean;
|
|
130
|
+
writeAllFields?: boolean;
|
|
131
|
+
onBeforeDestroy?: ((event: {
|
|
132
|
+
source: Base;
|
|
133
|
+
}) => void) | string;
|
|
134
|
+
onBeforeLoad?: ((event: {
|
|
135
|
+
source: AbstractCrudManager;
|
|
136
|
+
pack: object;
|
|
137
|
+
}) => Promise<boolean> | boolean | void) | string;
|
|
138
|
+
onBeforeLoadApply?: ((event: {
|
|
139
|
+
source: AbstractCrudManager;
|
|
140
|
+
response: object;
|
|
141
|
+
options: object;
|
|
142
|
+
}) => Promise<boolean> | boolean | void) | string;
|
|
143
|
+
onBeforeResponseApply?: ((event: {
|
|
144
|
+
source: AbstractCrudManager;
|
|
145
|
+
requestType: 'sync' | 'load';
|
|
146
|
+
response: object;
|
|
147
|
+
}) => Promise<boolean> | boolean | void) | string;
|
|
148
|
+
onBeforeSend?: ((event: {
|
|
149
|
+
crudManager: AbstractCrudManager;
|
|
150
|
+
params: object;
|
|
151
|
+
requestType: 'sync' | 'load';
|
|
152
|
+
requestConfig: object;
|
|
153
|
+
}) => Promise<void>) | string;
|
|
154
|
+
onBeforeSync?: ((event: {
|
|
155
|
+
source: AbstractCrudManager;
|
|
156
|
+
pack: object;
|
|
157
|
+
}) => Promise<boolean> | boolean | void) | string;
|
|
158
|
+
onBeforeSyncApply?: ((event: {
|
|
159
|
+
source: AbstractCrudManager;
|
|
160
|
+
response: object;
|
|
161
|
+
}) => Promise<boolean> | boolean | void) | string;
|
|
162
|
+
onCatchAll?: ((event: {
|
|
163
|
+
[key: string]: any;
|
|
164
|
+
type: string;
|
|
165
|
+
}) => void) | string;
|
|
166
|
+
onChange?: ((event: {
|
|
167
|
+
source: ProjectModel;
|
|
168
|
+
store: Store;
|
|
169
|
+
action: 'remove' | 'removeAll' | 'add' | 'clearchanges' | 'filter' | 'update' | 'dataset' | 'replace';
|
|
170
|
+
record: Model;
|
|
171
|
+
records: Model[];
|
|
172
|
+
changes: object;
|
|
173
|
+
}) => void) | string;
|
|
174
|
+
onCycle?: ((event: {
|
|
175
|
+
schedulingIssue: {
|
|
176
|
+
getDescription: Function;
|
|
177
|
+
cycle: object;
|
|
178
|
+
getResolutions: Function;
|
|
179
|
+
};
|
|
180
|
+
continueWithResolutionResult: Function;
|
|
181
|
+
}) => void) | string;
|
|
182
|
+
onDataReady?: ((event: {
|
|
183
|
+
source: ProjectModel;
|
|
184
|
+
isInitialCommit: boolean;
|
|
185
|
+
records: Set<any>;
|
|
186
|
+
}) => void) | string;
|
|
187
|
+
onDestroy?: ((event: {
|
|
188
|
+
source: Base;
|
|
189
|
+
}) => void) | string;
|
|
190
|
+
onEmptyCalendar?: ((event: {
|
|
191
|
+
schedulingIssue: {
|
|
192
|
+
getDescription: Function;
|
|
193
|
+
getCalendar: Function;
|
|
194
|
+
getResolutions: Function;
|
|
195
|
+
};
|
|
196
|
+
continueWithResolutionResult: Function;
|
|
197
|
+
}) => void) | string;
|
|
198
|
+
onHasChanges?: ((event: {
|
|
199
|
+
source: AbstractCrudManager;
|
|
200
|
+
}) => void) | string;
|
|
201
|
+
onLoad?: ((event: {
|
|
202
|
+
source: AbstractCrudManager;
|
|
203
|
+
response: object;
|
|
204
|
+
responseOptions: object;
|
|
205
|
+
requestOptions: object;
|
|
206
|
+
rawResponse: any;
|
|
207
|
+
}) => void) | string;
|
|
208
|
+
onLoadCanceled?: ((event: {
|
|
209
|
+
source: AbstractCrudManager;
|
|
210
|
+
pack: object;
|
|
211
|
+
}) => void) | string;
|
|
212
|
+
onLoadFail?: ((event: {
|
|
213
|
+
source: AbstractCrudManager;
|
|
214
|
+
response: object;
|
|
215
|
+
responseText: string;
|
|
216
|
+
responseOptions: object;
|
|
217
|
+
requestOptions: object;
|
|
218
|
+
rawResponse: any;
|
|
219
|
+
}) => void) | string;
|
|
220
|
+
onNoChanges?: ((event: {
|
|
221
|
+
source: AbstractCrudManager;
|
|
222
|
+
}) => void) | string;
|
|
223
|
+
onProgress?: ((event: {
|
|
224
|
+
source: ProjectModel;
|
|
225
|
+
total: number;
|
|
226
|
+
remaining: number;
|
|
227
|
+
phase: 'storePopulation' | 'propagating';
|
|
228
|
+
}) => void) | string;
|
|
229
|
+
onRequestDone?: ((event: {
|
|
230
|
+
source: AbstractCrudManager;
|
|
231
|
+
requestType: 'sync' | 'load';
|
|
232
|
+
response: object;
|
|
233
|
+
responseOptions: object;
|
|
234
|
+
requestOptions: object;
|
|
235
|
+
rawResponse: any;
|
|
236
|
+
}) => void) | string;
|
|
237
|
+
onRequestFail?: ((event: {
|
|
238
|
+
source: AbstractCrudManager;
|
|
239
|
+
requestType: 'sync' | 'load';
|
|
240
|
+
response: object;
|
|
241
|
+
responseText: string;
|
|
242
|
+
responseOptions: object;
|
|
243
|
+
requestOptions: object;
|
|
244
|
+
rawResponse: any;
|
|
245
|
+
}) => void) | string;
|
|
246
|
+
onRevisionNotification?: ((event: {
|
|
247
|
+
localRevisionId: string;
|
|
248
|
+
conflictResolutionFor?: string;
|
|
249
|
+
clientId: string;
|
|
250
|
+
changes: object;
|
|
251
|
+
}) => void) | string;
|
|
252
|
+
onSchedulingConflict?: ((event: {
|
|
253
|
+
schedulingIssue: {
|
|
254
|
+
getDescription: Function;
|
|
255
|
+
intervals: object[];
|
|
256
|
+
getResolutions: Function;
|
|
257
|
+
};
|
|
258
|
+
continueWithResolutionResult: Function;
|
|
259
|
+
}) => void) | string;
|
|
260
|
+
onSync?: ((event: {
|
|
261
|
+
source: AbstractCrudManager;
|
|
262
|
+
response: object;
|
|
263
|
+
responseOptions: object;
|
|
264
|
+
requestOptions: object;
|
|
265
|
+
rawResponse: any;
|
|
266
|
+
}) => void) | string;
|
|
267
|
+
onSyncCanceled?: ((event: {
|
|
268
|
+
source: AbstractCrudManager;
|
|
269
|
+
pack: object;
|
|
270
|
+
}) => void) | string;
|
|
271
|
+
onSyncDelayed?: ((event: {
|
|
272
|
+
source: AbstractCrudManager;
|
|
273
|
+
arguments: object;
|
|
274
|
+
}) => void) | string;
|
|
275
|
+
onSyncFail?: ((event: {
|
|
276
|
+
source: AbstractCrudManager;
|
|
277
|
+
response: object;
|
|
278
|
+
responseText: string;
|
|
279
|
+
responseOptions: object;
|
|
280
|
+
requestOptions: object;
|
|
281
|
+
rawResponse: any;
|
|
282
|
+
}) => void) | string;
|
|
283
|
+
};
|
|
284
|
+
export declare class BryntumGanttProjectModel extends React.Component<BryntumGanttProjectModelProps> {
|
|
285
|
+
static instanceClass: typeof ProjectModel;
|
|
286
|
+
static instanceName: string;
|
|
287
|
+
processWidgetContent: typeof processWidgetContent;
|
|
288
|
+
dataStores: {
|
|
289
|
+
assignmentStore: string;
|
|
290
|
+
calendarManagerStore: string;
|
|
291
|
+
dependencyStore: string;
|
|
292
|
+
eventStore: string;
|
|
293
|
+
resourceStore: string;
|
|
294
|
+
taskStore: string;
|
|
295
|
+
timeRangeStore: string;
|
|
296
|
+
};
|
|
297
|
+
static configNames: string[];
|
|
298
|
+
static propertyConfigNames: string[];
|
|
299
|
+
static propertyNames: string[];
|
|
300
|
+
instance: ProjectModel;
|
|
301
|
+
element: HTMLElement;
|
|
302
|
+
componentDidMount(): void;
|
|
303
|
+
componentWillUnmount(): void;
|
|
304
|
+
shouldComponentUpdate(nextProps: Readonly<BryntumGanttProjectModelProps>, nextState: Readonly<{}>): boolean;
|
|
305
|
+
render(): React.ReactNode;
|
|
306
|
+
}
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ProjectModel } from '@bryntum/gantt-thin';
|
|
3
|
+
import { createWidget, shouldComponentUpdate, processWidgetContent } from './WrapperHelper.js';
|
|
4
|
+
export class BryntumGanttProjectModel extends React.Component {
|
|
5
|
+
constructor() {
|
|
6
|
+
super(...arguments);
|
|
7
|
+
this.processWidgetContent = processWidgetContent;
|
|
8
|
+
this.dataStores = {
|
|
9
|
+
'assignmentStore': 'assignments',
|
|
10
|
+
'calendarManagerStore': 'calendars',
|
|
11
|
+
'dependencyStore': 'dependencies',
|
|
12
|
+
'eventStore': 'events',
|
|
13
|
+
'resourceStore': 'resources',
|
|
14
|
+
'taskStore': 'tasks',
|
|
15
|
+
'timeRangeStore': 'timeRanges'
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
componentDidMount() {
|
|
19
|
+
this.instance = createWidget(this);
|
|
20
|
+
}
|
|
21
|
+
componentWillUnmount() {
|
|
22
|
+
var _a, _b;
|
|
23
|
+
(_b = (_a = this.instance) === null || _a === void 0 ? void 0 : _a.destroy) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
24
|
+
}
|
|
25
|
+
shouldComponentUpdate(nextProps, nextState) {
|
|
26
|
+
return shouldComponentUpdate(this, nextProps, nextState);
|
|
27
|
+
}
|
|
28
|
+
render() {
|
|
29
|
+
return null;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
BryntumGanttProjectModel.instanceClass = ProjectModel;
|
|
33
|
+
BryntumGanttProjectModel.instanceName = 'ProjectModel';
|
|
34
|
+
BryntumGanttProjectModel.configNames = [
|
|
35
|
+
'adjustDurationToDST',
|
|
36
|
+
'assignmentModelClass',
|
|
37
|
+
'assignmentsData',
|
|
38
|
+
'assignmentStoreClass',
|
|
39
|
+
'autoLoad',
|
|
40
|
+
'autoSetConstraints',
|
|
41
|
+
'autoSync',
|
|
42
|
+
'autoSyncTimeout',
|
|
43
|
+
'bubbleEvents',
|
|
44
|
+
'bwcConflictPostpone',
|
|
45
|
+
'calendarManagerStoreClass',
|
|
46
|
+
'calendarModelClass',
|
|
47
|
+
'calendarsData',
|
|
48
|
+
'children',
|
|
49
|
+
'delayCalculation',
|
|
50
|
+
'dependenciesData',
|
|
51
|
+
'dependencyModelClass',
|
|
52
|
+
'dependencyStoreClass',
|
|
53
|
+
'encoder',
|
|
54
|
+
'eventsData',
|
|
55
|
+
'expanded',
|
|
56
|
+
'includeAsapAlapAsConstraints',
|
|
57
|
+
'includeChildrenInRemoveRequest',
|
|
58
|
+
'listeners',
|
|
59
|
+
'maxCalendarRange',
|
|
60
|
+
'orderedParentIndex',
|
|
61
|
+
'pageSize',
|
|
62
|
+
'parentIndex',
|
|
63
|
+
'phantomIdField',
|
|
64
|
+
'phantomParentIdField',
|
|
65
|
+
'remotePaging',
|
|
66
|
+
'requestData',
|
|
67
|
+
'resetIdsBeforeSync',
|
|
68
|
+
'resetUndoRedoQueuesAfterLoad',
|
|
69
|
+
'resourceModelClass',
|
|
70
|
+
'resourcesData',
|
|
71
|
+
'resourceStoreClass',
|
|
72
|
+
'silenceInitialCommit',
|
|
73
|
+
'skipSuccessProperty',
|
|
74
|
+
'storeIdProperty',
|
|
75
|
+
'supportShortSyncResponse',
|
|
76
|
+
'taskModelClass',
|
|
77
|
+
'tasksData',
|
|
78
|
+
'taskStoreClass',
|
|
79
|
+
'timeRangesData',
|
|
80
|
+
'toJSONResultFormat',
|
|
81
|
+
'trackResponseType',
|
|
82
|
+
'transport',
|
|
83
|
+
'useRawData',
|
|
84
|
+
'validateResponse',
|
|
85
|
+
'writeAllFields'
|
|
86
|
+
];
|
|
87
|
+
BryntumGanttProjectModel.propertyConfigNames = [
|
|
88
|
+
'addConstraintOnDateSet',
|
|
89
|
+
'allowPostponedConflicts',
|
|
90
|
+
'assignments',
|
|
91
|
+
'assignmentStore',
|
|
92
|
+
'autoCalculatePercentDoneForParentTasks',
|
|
93
|
+
'autoMergeAdjacentSegments',
|
|
94
|
+
'autoPostponeConflicts',
|
|
95
|
+
'autoPostponedConflicts',
|
|
96
|
+
'autoScheduleManualTasksOnSecondPass',
|
|
97
|
+
'calendar',
|
|
98
|
+
'calendarManagerStore',
|
|
99
|
+
'calendars',
|
|
100
|
+
'callOnFunctions',
|
|
101
|
+
'catchEventHandlerExceptions',
|
|
102
|
+
'crudStores',
|
|
103
|
+
'daysPerMonth',
|
|
104
|
+
'daysPerWeek',
|
|
105
|
+
'dependencies',
|
|
106
|
+
'dependenciesCalendar',
|
|
107
|
+
'dependencyStore',
|
|
108
|
+
'description',
|
|
109
|
+
'direction',
|
|
110
|
+
'enableProgressNotifications',
|
|
111
|
+
'endDate',
|
|
112
|
+
'eventStore',
|
|
113
|
+
'forceSync',
|
|
114
|
+
'hoursPerDay',
|
|
115
|
+
'id',
|
|
116
|
+
'ignoreConstraintsOnConflictDuringSecondPass',
|
|
117
|
+
'ignoreRemoteChangesInSTM',
|
|
118
|
+
'includeLegacyDataProperties',
|
|
119
|
+
'isFullyLoaded',
|
|
120
|
+
'json',
|
|
121
|
+
'lazyLoad',
|
|
122
|
+
'loadUrl',
|
|
123
|
+
'maxCriticalPathsCount',
|
|
124
|
+
'name',
|
|
125
|
+
'onBeforeDestroy',
|
|
126
|
+
'onBeforeLoad',
|
|
127
|
+
'onBeforeLoadApply',
|
|
128
|
+
'onBeforeResponseApply',
|
|
129
|
+
'onBeforeSend',
|
|
130
|
+
'onBeforeSync',
|
|
131
|
+
'onBeforeSyncApply',
|
|
132
|
+
'onCatchAll',
|
|
133
|
+
'onChange',
|
|
134
|
+
'onCycle',
|
|
135
|
+
'onDataReady',
|
|
136
|
+
'onDestroy',
|
|
137
|
+
'onEmptyCalendar',
|
|
138
|
+
'onHasChanges',
|
|
139
|
+
'onLoad',
|
|
140
|
+
'onLoadCanceled',
|
|
141
|
+
'onLoadFail',
|
|
142
|
+
'onNoChanges',
|
|
143
|
+
'onProgress',
|
|
144
|
+
'onRequestDone',
|
|
145
|
+
'onRequestFail',
|
|
146
|
+
'onRevisionNotification',
|
|
147
|
+
'onSchedulingConflict',
|
|
148
|
+
'onSync',
|
|
149
|
+
'onSyncCanceled',
|
|
150
|
+
'onSyncDelayed',
|
|
151
|
+
'onSyncFail',
|
|
152
|
+
'parentId',
|
|
153
|
+
'readOnly',
|
|
154
|
+
'remoteChildCount',
|
|
155
|
+
'resources',
|
|
156
|
+
'resourceStore',
|
|
157
|
+
'shouldSyncDataOnLoad',
|
|
158
|
+
'skipNonWorkingTimeInDurationWhenSchedulingManually',
|
|
159
|
+
'skipNonWorkingTimeWhenSchedulingManually',
|
|
160
|
+
'startDate',
|
|
161
|
+
'startedTaskScheduling',
|
|
162
|
+
'statusDate',
|
|
163
|
+
'stm',
|
|
164
|
+
'syncApplySequence',
|
|
165
|
+
'syncUrl',
|
|
166
|
+
'tasks',
|
|
167
|
+
'taskStore',
|
|
168
|
+
'timeRanges',
|
|
169
|
+
'timeRangeStore',
|
|
170
|
+
'timeZone',
|
|
171
|
+
'trackProjectModelChanges'
|
|
172
|
+
];
|
|
173
|
+
BryntumGanttProjectModel.propertyNames = [
|
|
174
|
+
'allChildren',
|
|
175
|
+
'allUnfilteredChildren',
|
|
176
|
+
'criticalPaths',
|
|
177
|
+
'descendantCount',
|
|
178
|
+
'hasGeneratedId',
|
|
179
|
+
'inlineData',
|
|
180
|
+
'internalId',
|
|
181
|
+
'isCommitting',
|
|
182
|
+
'isCreating',
|
|
183
|
+
'isValid',
|
|
184
|
+
'previousSiblingsTotalCount',
|
|
185
|
+
'segmentModelClass',
|
|
186
|
+
'visibleDescendantCount'
|
|
187
|
+
];
|
|
188
|
+
//# sourceMappingURL=BryntumGanttProjectModel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BryntumGanttProjectModel.js","sourceRoot":"","sources":["../src/BryntumGanttProjectModel.tsx"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Widget } from '@bryntum/core-thin';
|
|
3
|
+
declare global {
|
|
4
|
+
interface Window {
|
|
5
|
+
bryntum: {
|
|
6
|
+
isTestEnv?: boolean;
|
|
7
|
+
react?: {
|
|
8
|
+
isReactElement?: (element: any) => boolean;
|
|
9
|
+
handleReactElement?: (widget: Widget, element: any) => void;
|
|
10
|
+
handleReactHeaderElement?: (column: {
|
|
11
|
+
grid: any;
|
|
12
|
+
id: string;
|
|
13
|
+
}, headerElement: HTMLElement, html: any) => void;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
declare function createWidget(component: any): any;
|
|
19
|
+
declare function shouldComponentUpdate(component: any, nextProps: Readonly<any>, nextState: Readonly<any>): boolean;
|
|
20
|
+
declare function processWidgetContent({ reactElement, widget, reactComponent, contentElement }: {
|
|
21
|
+
reactElement: any;
|
|
22
|
+
widget: any;
|
|
23
|
+
reactComponent: any;
|
|
24
|
+
contentElement: any;
|
|
25
|
+
}): React.ReactPortal | undefined;
|
|
26
|
+
export { createWidget, shouldComponentUpdate, processWidgetContent };
|