@bryntum/taskboard-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.
Files changed (96) hide show
  1. package/README.md +52 -0
  2. package/lib/BryntumColumnCombo.d.ts +268 -0
  3. package/lib/BryntumColumnCombo.js +203 -0
  4. package/lib/BryntumColumnCombo.js.map +1 -0
  5. package/lib/BryntumColumnFilterField.d.ts +234 -0
  6. package/lib/BryntumColumnFilterField.js +170 -0
  7. package/lib/BryntumColumnFilterField.js.map +1 -0
  8. package/lib/BryntumColumnPickerButton.d.ts +208 -0
  9. package/lib/BryntumColumnPickerButton.js +149 -0
  10. package/lib/BryntumColumnPickerButton.js.map +1 -0
  11. package/lib/BryntumColumnScrollButton.d.ts +208 -0
  12. package/lib/BryntumColumnScrollButton.js +149 -0
  13. package/lib/BryntumColumnScrollButton.js.map +1 -0
  14. package/lib/BryntumProjectCombo.d.ts +269 -0
  15. package/lib/BryntumProjectCombo.js +204 -0
  16. package/lib/BryntumProjectCombo.js.map +1 -0
  17. package/lib/BryntumResourcesCombo.d.ts +268 -0
  18. package/lib/BryntumResourcesCombo.js +203 -0
  19. package/lib/BryntumResourcesCombo.js.map +1 -0
  20. package/lib/BryntumSwimlaneCombo.d.ts +268 -0
  21. package/lib/BryntumSwimlaneCombo.js +203 -0
  22. package/lib/BryntumSwimlaneCombo.js.map +1 -0
  23. package/lib/BryntumSwimlaneFilterField.d.ts +236 -0
  24. package/lib/BryntumSwimlaneFilterField.js +172 -0
  25. package/lib/BryntumSwimlaneFilterField.js.map +1 -0
  26. package/lib/BryntumSwimlanePickerButton.d.ts +208 -0
  27. package/lib/BryntumSwimlanePickerButton.js +149 -0
  28. package/lib/BryntumSwimlanePickerButton.js.map +1 -0
  29. package/lib/BryntumSwimlaneScrollButton.d.ts +208 -0
  30. package/lib/BryntumSwimlaneScrollButton.js +149 -0
  31. package/lib/BryntumSwimlaneScrollButton.js.map +1 -0
  32. package/lib/BryntumTagCombo.d.ts +269 -0
  33. package/lib/BryntumTagCombo.js +204 -0
  34. package/lib/BryntumTagCombo.js.map +1 -0
  35. package/lib/BryntumTaskBoard.d.ts +610 -0
  36. package/lib/BryntumTaskBoard.js +287 -0
  37. package/lib/BryntumTaskBoard.js.map +1 -0
  38. package/lib/BryntumTaskBoardBase.d.ts +609 -0
  39. package/lib/BryntumTaskBoardBase.js +286 -0
  40. package/lib/BryntumTaskBoardBase.js.map +1 -0
  41. package/lib/BryntumTaskBoardFieldFilterPicker.d.ts +201 -0
  42. package/lib/BryntumTaskBoardFieldFilterPicker.js +159 -0
  43. package/lib/BryntumTaskBoardFieldFilterPicker.js.map +1 -0
  44. package/lib/BryntumTaskBoardFieldFilterPickerGroup.d.ts +209 -0
  45. package/lib/BryntumTaskBoardFieldFilterPickerGroup.js +165 -0
  46. package/lib/BryntumTaskBoardFieldFilterPickerGroup.js.map +1 -0
  47. package/lib/BryntumTaskBoardProjectModel.d.ts +218 -0
  48. package/lib/BryntumTaskBoardProjectModel.js +139 -0
  49. package/lib/BryntumTaskBoardProjectModel.js.map +1 -0
  50. package/lib/BryntumTaskColorCombo.d.ts +232 -0
  51. package/lib/BryntumTaskColorCombo.js +169 -0
  52. package/lib/BryntumTaskColorCombo.js.map +1 -0
  53. package/lib/BryntumTaskFilterField.d.ts +236 -0
  54. package/lib/BryntumTaskFilterField.js +172 -0
  55. package/lib/BryntumTaskFilterField.js.map +1 -0
  56. package/lib/BryntumTodoListField.d.ts +230 -0
  57. package/lib/BryntumTodoListField.js +165 -0
  58. package/lib/BryntumTodoListField.js.map +1 -0
  59. package/lib/BryntumUndoRedo.d.ts +188 -0
  60. package/lib/BryntumUndoRedo.js +150 -0
  61. package/lib/BryntumUndoRedo.js.map +1 -0
  62. package/lib/BryntumZoomSlider.d.ts +186 -0
  63. package/lib/BryntumZoomSlider.js +143 -0
  64. package/lib/BryntumZoomSlider.js.map +1 -0
  65. package/lib/WrapperHelper.d.ts +26 -0
  66. package/lib/WrapperHelper.js +569 -0
  67. package/lib/WrapperHelper.js.map +1 -0
  68. package/lib/index.d.ts +21 -0
  69. package/lib/index.js +22 -0
  70. package/lib/index.js.map +1 -0
  71. package/license.pdf +0 -0
  72. package/licenses.md +310 -0
  73. package/package.json +25 -0
  74. package/src/BryntumColumnCombo.tsx +1240 -0
  75. package/src/BryntumColumnFilterField.tsx +1019 -0
  76. package/src/BryntumColumnPickerButton.tsx +896 -0
  77. package/src/BryntumColumnScrollButton.tsx +896 -0
  78. package/src/BryntumProjectCombo.tsx +1241 -0
  79. package/src/BryntumResourcesCombo.tsx +1239 -0
  80. package/src/BryntumSwimlaneCombo.tsx +1239 -0
  81. package/src/BryntumSwimlaneFilterField.tsx +1032 -0
  82. package/src/BryntumSwimlanePickerButton.tsx +896 -0
  83. package/src/BryntumSwimlaneScrollButton.tsx +896 -0
  84. package/src/BryntumTagCombo.tsx +1244 -0
  85. package/src/BryntumTaskBoard.tsx +2021 -0
  86. package/src/BryntumTaskBoardBase.tsx +2019 -0
  87. package/src/BryntumTaskBoardFieldFilterPicker.tsx +930 -0
  88. package/src/BryntumTaskBoardFieldFilterPickerGroup.tsx +983 -0
  89. package/src/BryntumTaskBoardProjectModel.tsx +779 -0
  90. package/src/BryntumTaskColorCombo.tsx +996 -0
  91. package/src/BryntumTaskFilterField.tsx +1032 -0
  92. package/src/BryntumTodoListField.tsx +986 -0
  93. package/src/BryntumUndoRedo.tsx +871 -0
  94. package/src/BryntumZoomSlider.tsx +824 -0
  95. package/src/WrapperHelper.tsx +1125 -0
  96. package/src/index.ts +25 -0
@@ -0,0 +1,779 @@
1
+ /**
2
+ * React wrapper for Bryntum ProjectModel
3
+ */
4
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
5
+ import React, { RefObject } from 'react';
6
+ import { Base, Model, ModelConfig, StateTrackingManager, StateTrackingManagerConfig, Store, StoreConfig } from '@bryntum/core-thin';
7
+ import { AbstractCrudManager, AssignmentModel, AssignmentModelConfig, AssignmentStore, AssignmentStoreConfig, CrudManagerStoreDescriptor, DependencyModel, DependencyModelConfig, DependencyStore, DependencyStoreConfig, EventModel, EventModelConfig, EventStore, EventStoreConfig, ProjectModel, ProjectModel as SchedulerProjectModel, ProjectModelListeners, ResourceModel, ResourceModelConfig, ResourceStore, ResourceStoreConfig, ResourceTimeRangeModel, ResourceTimeRangeModelConfig, TaskModel, TaskModelConfig, TaskStore, TaskStoreConfig, TimeRangeModel, TimeRangeModelConfig } from '@bryntum/taskboard-thin';
8
+
9
+ import { createWidget, shouldComponentUpdate, processWidgetContent } from './WrapperHelper.js';
10
+
11
+ export type BryntumTaskBoardProjectModelProps = {
12
+ // Configs
13
+ /**
14
+ * A flag, indicating whether the dates and duration calculations should adjust the result to DST time shift.
15
+ */
16
+ adjustDurationToDST? : boolean
17
+ /**
18
+ * The constructor of the assignment model class, to be used in the project. Will be set as the
19
+ * [modelClass](https://bryntum.com/products/taskboard/docs/api/Core/data/Store#config-modelClass) property of the [assignmentStore](https://bryntum.com/products/scheduler/docs#Scheduler/model/ProjectModel#property-assignmentStore)
20
+ */
21
+ assignmentModelClass? : typeof AssignmentModel
22
+ /**
23
+ * Data use to fill the [assignmentStore](https://bryntum.com/products/scheduler/docs#Scheduler/model/ProjectModel#property-assignmentStore). Should be an array of
24
+ * [AssignmentModels](https://bryntum.com/products/scheduler/docs#Scheduler/model/AssignmentModel) or its configuration objects.
25
+ */
26
+ assignments? : AssignmentModel[]|AssignmentModelConfig[]
27
+ /**
28
+ * The initial data, to fill the [assignmentStore](https://bryntum.com/products/scheduler/docs#Scheduler/model/ProjectModel#property-assignmentStore) with.
29
+ * Should be an array of [AssignmentModels](https://bryntum.com/products/scheduler/docs#Scheduler/model/AssignmentModel) or its configuration
30
+ * objects.
31
+ * @deprecated 6.3.0 Use [assignments](https://bryntum.com/products/scheduler/docs#Scheduler/model/ProjectModel#config-assignments) instead
32
+ */
33
+ assignmentsData? : AssignmentModel[]|AssignmentModelConfig[]
34
+ /**
35
+ * An [AssignmentStore](https://bryntum.com/products/scheduler/docs#Scheduler/data/AssignmentStore) instance or a config object.
36
+ */
37
+ assignmentStore? : AssignmentStore|AssignmentStoreConfig
38
+ /**
39
+ * The constructor to create an assignment store instance with. Should be a class, subclassing the
40
+ * [AssignmentStore](https://bryntum.com/products/scheduler/docs#Scheduler/data/AssignmentStore)
41
+ */
42
+ assignmentStoreClass? : typeof AssignmentStore|object
43
+ /**
44
+ * Specify `true` to automatically call [load](https://bryntum.com/products/scheduler/docs#Scheduler/crud/AbstractCrudManagerMixin#function-load) method on the next frame after creation.
45
+ * ...
46
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/model/ProjectModel#config-autoLoad)
47
+ */
48
+ autoLoad? : boolean
49
+ /**
50
+ * `true` to automatically persist store changes after edits are made in any of the stores monitored.
51
+ * Please note that sync request will not be invoked immediately but only after
52
+ * [autoSyncTimeout](https://bryntum.com/products/scheduler/docs#Scheduler/crud/AbstractCrudManagerMixin#config-autoSyncTimeout) interval.
53
+ */
54
+ autoSync? : boolean
55
+ /**
56
+ * The timeout in milliseconds to wait before persisting changes to the server.
57
+ * Used when [autoSync](https://bryntum.com/products/scheduler/docs#Scheduler/crud/AbstractCrudManagerMixin#config-autoSync) is set to `true`.
58
+ */
59
+ autoSyncTimeout? : number
60
+ /**
61
+ * An object where property names with a truthy value indicate which events should bubble up the ownership
62
+ * hierarchy when triggered.
63
+ * ...
64
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/model/ProjectModel#config-bubbleEvents)
65
+ */
66
+ bubbleEvents? : object
67
+ /**
68
+ * Set to `true` to call onXXX method names (e.g. `onShow`, `onClick`), as an easy way to listen for events.
69
+ * ...
70
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/model/ProjectModel#config-callOnFunctions)
71
+ */
72
+ callOnFunctions? : boolean
73
+ /**
74
+ * By default, if an event handler throws an exception, the error propagates up the stack and the
75
+ * application state is undefined. Code which follows the event handler will *not* be executed.
76
+ * ...
77
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/model/ProjectModel#config-catchEventHandlerExceptions)
78
+ */
79
+ catchEventHandlerExceptions? : boolean
80
+ /**
81
+ * Child nodes. To allow loading children on demand, specify `children : true` in your data. Omit the field for leaf
82
+ * tasks.
83
+ * ...
84
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/model/ProjectModel#config-children)
85
+ */
86
+ children? : boolean|object[]|Model[]|ModelConfig[]
87
+ /**
88
+ * Sets the list of stores controlled by the CRUD manager.
89
+ * ...
90
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/model/ProjectModel#config-crudStores)
91
+ */
92
+ crudStores? : Store[]|string[]|CrudManagerStoreDescriptor[]|StoreConfig[]
93
+ /**
94
+ * Data use to fill the [dependencyStore](https://bryntum.com/products/scheduler/docs#Scheduler/model/ProjectModel#property-dependencyStore). Should be an array of
95
+ * [DependencyModels](https://bryntum.com/products/scheduler/docs#Scheduler/model/DependencyModel) or its configuration objects.
96
+ */
97
+ dependencies? : DependencyModel[]|DependencyModelConfig[]
98
+ /**
99
+ * The initial data, to fill the [dependencyStore](https://bryntum.com/products/scheduler/docs#Scheduler/model/ProjectModel#property-dependencyStore) with.
100
+ * Should be an array of [DependencyModels](https://bryntum.com/products/scheduler/docs#Scheduler/model/DependencyModel) or its configuration
101
+ * objects.
102
+ * @deprecated 6.3.0 Use [dependencies](https://bryntum.com/products/scheduler/docs#Scheduler/model/ProjectModel#config-dependencies) instead
103
+ */
104
+ dependenciesData? : DependencyModel[]|DependencyModelConfig[]
105
+ /**
106
+ * The constructor of the dependency model class, to be used in the project. Will be set as the
107
+ * [modelClass](https://bryntum.com/products/taskboard/docs/api/Core/data/Store#config-modelClass) property of the [dependencyStore](https://bryntum.com/products/scheduler/docs#Scheduler/model/ProjectModel#property-dependencyStore)
108
+ */
109
+ dependencyModelClass? : typeof DependencyModel
110
+ /**
111
+ * A [DependencyStore](https://bryntum.com/products/scheduler/docs#Scheduler/data/DependencyStore) instance or a config object.
112
+ */
113
+ dependencyStore? : DependencyStore|DependencyStoreConfig
114
+ /**
115
+ * The constructor to create a dependency store instance with. Should be a class, subclassing the
116
+ * [DependencyStore](https://bryntum.com/products/scheduler/docs#Scheduler/data/DependencyStore)
117
+ */
118
+ dependencyStoreClass? : typeof DependencyStore|object
119
+ /**
120
+ * Configuration of the JSON encoder used by the *Crud Manager*.
121
+ */
122
+ encoder? : {
123
+ requestData?: object
124
+ }
125
+ /**
126
+ * Data use to fill the [eventStore](https://bryntum.com/products/scheduler/docs#Scheduler/model/ProjectModel#property-eventStore). Should be an array of
127
+ * [EventModels](https://bryntum.com/products/scheduler/docs#Scheduler/model/EventModel) or its configuration objects.
128
+ */
129
+ events? : EventModel[]|EventModelConfig[]
130
+ /**
131
+ * The initial data, to fill the [eventStore](https://bryntum.com/products/scheduler/docs#Scheduler/model/ProjectModel#property-eventStore) with.
132
+ * Should be an array of [EventModels](https://bryntum.com/products/scheduler/docs#Scheduler/model/EventModel) or its configuration objects.
133
+ * @deprecated 6.3.0 Use [events](https://bryntum.com/products/scheduler/docs#Scheduler/model/ProjectModel#config-events) instead
134
+ */
135
+ eventsData? : EventModel[]|EventModelConfig[]
136
+ /**
137
+ * An [EventStore](https://bryntum.com/products/scheduler/docs#Scheduler/data/EventStore) instance or a config object.
138
+ */
139
+ eventStore? : EventStore|EventStoreConfig
140
+ /**
141
+ * Start expanded or not (only valid for tree data)
142
+ */
143
+ expanded? : boolean
144
+ /**
145
+ * Specify as `true` to force sync requests to be sent when calling `sync()`, even if there are no local
146
+ * changes. Useful in a polling scenario, to keep client up to date with the backend.
147
+ */
148
+ forceSync? : boolean
149
+ /**
150
+ * Unique identifier for the record. Might be mapped to another dataSource using idField, but always exposed as
151
+ * record.id. Will get a generated value if none is specified in records data.
152
+ * ...
153
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/model/ProjectModel#config-id)
154
+ */
155
+ id? : string|number
156
+ /**
157
+ * Set to `true` to make STM ignore changes coming from the backend. This will allow user to only undo redo
158
+ * local changes.
159
+ */
160
+ ignoreRemoteChangesInSTM? : boolean
161
+ /**
162
+ * Set to `false` to only include the id of a removed parent node in the request to the backend (also
163
+ * affects programmatic calls to get [changes](https://bryntum.com/products/scheduler/docs#Scheduler/crud/AbstractCrudManagerMixin#property-changes) etc.), and not the ids of its children.
164
+ * ...
165
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/model/ProjectModel#config-includeChildrenInRemoveRequest)
166
+ */
167
+ includeChildrenInRemoveRequest? : boolean
168
+ /**
169
+ * Whether to include legacy data properties in the JSON / inlineData output. The legacy data properties are
170
+ * the `xxData` (`eventsData`, `resourcesData` etc.) properties that are deprecated and will be removed in
171
+ * the future.
172
+ * @deprecated 6.3.0 This config will be removed when the eventsData, resourcesData etc. properties are removed in a future release.
173
+ */
174
+ includeLegacyDataProperties? : boolean
175
+ /**
176
+ * This field is added to the class at runtime when the Store is configured with
177
+ * [lazyLoad](https://bryntum.com/products/taskboard/docs/api/Core/data/Store#config-lazyLoad). If set on a parent record at load time, that parent will not cause any
178
+ * more child load requests. If omitted, it will be automatically set to `true` when a load request receives fewer
179
+ * child records than requested.
180
+ * ...
181
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/model/ProjectModel#config-isFullyLoaded)
182
+ */
183
+ isFullyLoaded? : boolean
184
+ /**
185
+ * Project data as a JSON string, used to populate its stores.
186
+ * ...
187
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/model/ProjectModel#config-json)
188
+ */
189
+ json? : string
190
+ /**
191
+ * The listener set for this object.
192
+ * ...
193
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/model/ProjectModel#config-listeners)
194
+ */
195
+ listeners? : ProjectModelListeners
196
+ /**
197
+ * Convenience shortcut to set only the url to load from, when you do not need to supply any other config
198
+ * options in the `load` section of the `transport` config.
199
+ * ...
200
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/model/ProjectModel#config-loadUrl)
201
+ */
202
+ loadUrl? : string
203
+ /**
204
+ * This is a read-only field provided in server synchronization packets to specify
205
+ * which position the node takes in the parent's ordered children array.
206
+ * This index is set on load and gets updated on reordering nodes in tree. Sorting and filtering
207
+ * have no effect on it.
208
+ */
209
+ orderedParentIndex? : number
210
+ /**
211
+ * This is a read-only field provided in server synchronization packets to specify
212
+ * which record id is the parent of the record.
213
+ */
214
+ parentId? : string|number|null
215
+ /**
216
+ * This is a read-only field provided in server synchronization packets to specify
217
+ * which position the node takes in the parent's children array.
218
+ * This index is set on load and gets updated automatically after row reordering, sorting, etc.
219
+ * To save the order, need to persist the field on the server and when data is fetched to be loaded,
220
+ * need to sort by this field.
221
+ */
222
+ parentIndex? : number
223
+ /**
224
+ * Field name to be used to transfer a phantom record identifier.
225
+ */
226
+ phantomIdField? : string
227
+ /**
228
+ * Field name to be used to transfer a phantom parent record identifier.
229
+ */
230
+ phantomParentIdField? : string
231
+ /**
232
+ * Flag the record as read-only on the UI level, preventing the end user from manipulating it using editing
233
+ * features such as cell editing and event dragging.
234
+ * ...
235
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/model/ProjectModel#config-readOnly)
236
+ */
237
+ readOnly? : boolean
238
+ /**
239
+ * This field is added to the class at runtime when the Store is configured with
240
+ * [lazyLoad](https://bryntum.com/products/taskboard/docs/api/Core/data/Store#config-lazyLoad). The
241
+ * number specified should reflect the <strong>total</strong> amount of children of a parent node, including nested descendants.
242
+ * @deprecated This field has been deprecated. Please read the [guide](https://bryntum.com/products/grid/docs/guide/Grid/data/lazyloading) to find out if your app needs to use the new [isFullyLoaded](https://bryntum.com/products/taskboard/docs/api/Core/data/mixin/TreeNode#field-isFullyLoaded) field.
243
+ */
244
+ remoteChildCount? : number
245
+ /**
246
+ * `True` to reset identifiers (defined by `idField` config) of phantom records before submitting them
247
+ * to the server.
248
+ */
249
+ resetIdsBeforeSync? : boolean
250
+ /**
251
+ * The constructor of the resource model class, to be used in the project. Will be set as the
252
+ * [modelClass](https://bryntum.com/products/taskboard/docs/api/Core/data/Store#config-modelClass) property of the [resourceStore](https://bryntum.com/products/scheduler/docs#Scheduler/model/ProjectModel#property-resourceStore)
253
+ */
254
+ resourceModelClass? : typeof ResourceModel
255
+ /**
256
+ * Data use to fill the [resourceStore](https://bryntum.com/products/scheduler/docs#Scheduler/model/ProjectModel#property-resourceStore). Should be an array of
257
+ * [ResourceModels](https://bryntum.com/products/scheduler/docs#Scheduler/model/ResourceModel) or its configuration objects.
258
+ */
259
+ resources? : ResourceModel[]|ResourceModelConfig[]
260
+ /**
261
+ * The initial data, to fill the [resourceStore](https://bryntum.com/products/scheduler/docs#Scheduler/model/ProjectModel#property-resourceStore) with.
262
+ * Should be an array of [ResourceModels](https://bryntum.com/products/scheduler/docs#Scheduler/model/ResourceModel) or its configuration objects.
263
+ * @deprecated 6.3.0 Use [resources](https://bryntum.com/products/scheduler/docs#Scheduler/model/ProjectModel#config-resources) instead
264
+ */
265
+ resourcesData? : ResourceModel[]|ResourceModelConfig[]
266
+ /**
267
+ * A [ResourceStore](https://bryntum.com/products/scheduler/docs#Scheduler/data/ResourceStore) instance or a config object.
268
+ */
269
+ resourceStore? : ResourceStore|ResourceStoreConfig
270
+ /**
271
+ * The constructor to create a resource store instance with. Should be a class, subclassing the
272
+ * [ResourceStore](https://bryntum.com/products/scheduler/docs#Scheduler/data/ResourceStore)
273
+ */
274
+ resourceStoreClass? : typeof ResourceStore|object
275
+ /**
276
+ * Experimental hook that lets the app determine if a bound dataset needs syncing with the store or not, and
277
+ * if it does - which records that should be processed. Only called for stores that are configured with
278
+ * `syncDataOnLoad: true` (which is the default in the React, Angular and Vue wrappers).
279
+ * ...
280
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/model/ProjectModel#config-shouldSyncDataOnLoad)
281
+ * @param {object} options Options passed by the store to this hook
282
+ * @param {Core.data.Store} options.store Store about to be synced
283
+ * @param {Core.data.Model} options.records Records currently in the store
284
+ * @param {object[]} options.data Incoming data
285
+ * @returns {Set<any>,boolean} Return `false` to prevent the store from syncing, or a set of record ids that need further processing (for records that has some kind of change, eg. an update, removal or addition)
286
+ */
287
+ shouldSyncDataOnLoad? : (options: { store: Store, records: Model, data: object[] }) => Set<any>|boolean
288
+ /**
289
+ * Silences propagations caused by the project loading.
290
+ * ...
291
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/model/ProjectModel#config-silenceInitialCommit)
292
+ */
293
+ silenceInitialCommit? : boolean
294
+ /**
295
+ * When `true` treats parsed responses without `success` property as successful.
296
+ * In this mode a parsed response is treated as invalid if it has explicitly set `success : false`.
297
+ */
298
+ skipSuccessProperty? : boolean
299
+ /**
300
+ * Configuration options to provide to the STM manager
301
+ */
302
+ stm? : StateTrackingManagerConfig|StateTrackingManager
303
+ /**
304
+ * Name of a store property to retrieve store identifiers from. Make sure you have an instance of a
305
+ * store to use it by id. Store identifier is used as a container name holding corresponding store data
306
+ * while transferring them to/from the server. By default, `id` property is used. And in case a
307
+ * container identifier has to differ this config can be used:
308
+ * ...
309
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/model/ProjectModel#config-storeIdProperty)
310
+ */
311
+ storeIdProperty? : string
312
+ /**
313
+ * When `true` the Crud Manager does not require all updated and removed records to be mentioned in the
314
+ * *sync* response. In this case response should include only server side changes.
315
+ * ...
316
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/model/ProjectModel#config-supportShortSyncResponse)
317
+ */
318
+ supportShortSyncResponse? : boolean
319
+ /**
320
+ * An array of store identifiers sets an alternative sync responses apply order.
321
+ * By default, the order in which sync responses are applied to the stores is the same as they
322
+ * registered in. But in case of some tricky dependencies between stores this order can be changed:
323
+ * ...
324
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/model/ProjectModel#config-syncApplySequence)
325
+ */
326
+ syncApplySequence? : string[]|CrudManagerStoreDescriptor[]
327
+ /**
328
+ * Convenience shortcut to set only the url to sync to, when you do not need to supply any other config
329
+ * options in the `sync` section of the `transport` config.
330
+ * ...
331
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/model/ProjectModel#config-syncUrl)
332
+ */
333
+ syncUrl? : string
334
+ /**
335
+ * The constructor of the task model class, to be used in the project.
336
+ * Will be set as the [modelClass](https://bryntum.com/products/taskboard/docs/api/Core/data/Store#config-modelClass)
337
+ * property of the [taskStore](https://bryntum.com/products/taskboard/docs/api/TaskBoard/model/ProjectModel#property-taskStore).
338
+ */
339
+ taskModelClass? : typeof TaskModel
340
+ /**
341
+ * The initial data, to fill the [taskStore](https://bryntum.com/products/taskboard/docs/api/TaskBoard/model/ProjectModel#property-taskStore) with. Should be an array of
342
+ * [TaskModel](https://bryntum.com/products/taskboard/docs/api/TaskBoard/model/TaskModel) or its configuration objects.
343
+ */
344
+ tasks? : TaskModel[]|TaskModelConfig[]
345
+ /**
346
+ * The initial data, to fill the [taskStore](https://bryntum.com/products/taskboard/docs/api/TaskBoard/model/ProjectModel#property-taskStore) with.
347
+ * Should be an array of [TaskModel](https://bryntum.com/products/taskboard/docs/api/TaskBoard/model/TaskModel) instances or its configuration objects.
348
+ * @deprecated 6.3.0 Use [tasks](https://bryntum.com/products/taskboard/docs/api/TaskBoard/model/ProjectModel#config-tasks) instead
349
+ */
350
+ tasksData? : TaskModel[]|TaskModelConfig[]
351
+ /**
352
+ * An [TaskStore](https://bryntum.com/products/taskboard/docs/api/TaskBoard/store/TaskStore) instance or a config object.
353
+ */
354
+ taskStore? : TaskStoreConfig|TaskStore
355
+ /**
356
+ * The constructor to create a task store instance with.
357
+ * Should be a class, subclassing the [TaskStore](https://bryntum.com/products/taskboard/docs/api/TaskBoard/store/TaskStore).
358
+ */
359
+ taskStoreClass? : typeof TaskStore
360
+ /**
361
+ * Set to a IANA time zone (i.e. `Europe/Stockholm`) or a UTC offset in minutes (i.e. `-120`). This will
362
+ * convert all events, tasks and time ranges to the specified time zone or offset. It will also affect the
363
+ * displayed timeline's headers as well at the start and end date of it.
364
+ * ...
365
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/model/ProjectModel#config-timeZone)
366
+ */
367
+ timeZone? : string|number
368
+ /**
369
+ * Specifies the output format of [toJSON](https://bryntum.com/products/scheduler/docs#Scheduler/model/mixin/ProjectModelCommon#function-toJSON).
370
+ * ...
371
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/model/ProjectModel#config-toJSONResultFormat)
372
+ */
373
+ toJSONResultFormat? : 'inlineData'|'model'
374
+ /**
375
+ * When `true` forces the CRUD manager to process responses depending on their `type` attribute.
376
+ * So `load` request may be responded with `sync` response for example.
377
+ * Can be used for smart server logic allowing the server to decide when it's better to respond with a
378
+ * complete data set (`load` response) or it's enough to return just a delta (`sync` response).
379
+ */
380
+ trackResponseType? : boolean
381
+ /**
382
+ * Configuration of the AJAX requests used by *Crud Manager* to communicate with a server-side.
383
+ * ...
384
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/model/ProjectModel#config-transport)
385
+ */
386
+ transport? : {
387
+ load?: object
388
+ sync?: object
389
+ }
390
+ /**
391
+ * By default, the stores of a project use the raw data objects passed to them as the data source for their
392
+ * records if data is loaded remotely (using an `AjaxStore` or a `CrudManager`). For data supplied inline,
393
+ * the data objects are instead by default cloned to avoid the original data object being modified by the
394
+ * store.
395
+ * ...
396
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/model/ProjectModel#config-useRawData)
397
+ */
398
+ useRawData? : boolean
399
+ /**
400
+ * This config validates the response structure for requests made by the Crud Manager.
401
+ * When `true`, the Crud Manager checks every parsed response structure for errors
402
+ * and if the response format is invalid, a warning is logged to the browser console.
403
+ * ...
404
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/model/ProjectModel#config-validateResponse)
405
+ */
406
+ validateResponse? : boolean
407
+ /**
408
+ * `true` to write all fields from the record to the server.
409
+ * If set to `false` it will only send the fields that were modified.
410
+ * Note that any fields that have [persist](https://bryntum.com/products/taskboard/docs/api/Core/data/field/DataField#config-persist) set to `false` will
411
+ * still be ignored and fields having [alwaysWrite](https://bryntum.com/products/taskboard/docs/api/Core/data/field/DataField#config-alwaysWrite) set to `true`
412
+ * will always be included.
413
+ */
414
+ writeAllFields? : boolean
415
+
416
+ // Events
417
+ /**
418
+ * Fires before an object is destroyed.
419
+ * @param {object} event Event object
420
+ * @param {Core.Base} event.source The Object that is being destroyed.
421
+ */
422
+ onBeforeDestroy? : ((event: { source: Base }) => void)|string
423
+ /**
424
+ * Fires before [load request](https://bryntum.com/products/scheduler/docs#Scheduler/crud/AbstractCrudManagerMixin#function-load) is sent. Return `false` to cancel load request.
425
+ * @param {object} event Event object
426
+ * @param {Scheduler.crud.AbstractCrudManager} event.source The CRUD manager.
427
+ * @param {object} event.pack The data package which contains data for all stores managed by the crud manager.
428
+ */
429
+ onBeforeLoad? : ((event: { source: AbstractCrudManager, pack: object }) => Promise<boolean>|boolean|void)|string
430
+ /**
431
+ * Fires before loaded data get applied to the stores. Return `false` to prevent data applying.
432
+ * This event can be used for server data preprocessing. To achieve it user can modify the `response` object.
433
+ * @param {object} event Event object
434
+ * @param {Scheduler.crud.AbstractCrudManager} event.source The CRUD manager.
435
+ * @param {object} event.response The decoded server response object.
436
+ * @param {object} event.options Options provided to the [load](https://bryntum.com/products/scheduler/docs#Scheduler/crud/AbstractCrudManagerMixin#function-load) method.
437
+ */
438
+ onBeforeLoadApply? : ((event: { source: AbstractCrudManager, response: object, options: object }) => Promise<boolean>|boolean|void)|string
439
+ /**
440
+ * Fires before server response gets applied to the stores. Return `false` to prevent data applying.
441
+ * This event can be used for server data preprocessing. To achieve it user can modify the `response` object.
442
+ * @param {object} event Event object
443
+ * @param {Scheduler.crud.AbstractCrudManager} event.source The CRUD manager.
444
+ * @param {'sync','load'} event.requestType The request type (`sync` or `load`).
445
+ * @param {object} event.response The decoded server response object.
446
+ */
447
+ onBeforeResponseApply? : ((event: { source: AbstractCrudManager, requestType: 'sync'|'load', response: object }) => Promise<boolean>|boolean|void)|string
448
+ /**
449
+ * Fires before a request is sent to the server.
450
+ * ...
451
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/model/ProjectModel#event-beforeSend)
452
+ * @param {object} event Event object
453
+ * @param {Scheduler.crud.AbstractCrudManager} event.crudManager The CRUD manager.
454
+ * @param {object} event.params HTTP request params to be passed in the request URL.
455
+ * @param {'sync','load'} event.requestType CrudManager request type (`load`/`sync`)
456
+ * @param {object} event.requestConfig Configuration object for Ajax request call
457
+ */
458
+ onBeforeSend? : ((event: { crudManager: AbstractCrudManager, params: object, requestType: 'sync'|'load', requestConfig: object }) => Promise<void>)|string
459
+ /**
460
+ * Fires before [sync request](https://bryntum.com/products/scheduler/docs#Scheduler/crud/AbstractCrudManagerMixin#function-sync) is sent. Return `false` to cancel sync request.
461
+ * ...
462
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/model/ProjectModel#event-beforeSync)
463
+ * @param {object} event Event object
464
+ * @param {Scheduler.crud.AbstractCrudManager} event.source The CRUD manager.
465
+ * @param {object} event.pack The data package which contains data for all stores managed by the crud manager.
466
+ */
467
+ onBeforeSync? : ((event: { source: AbstractCrudManager, pack: object }) => Promise<boolean>|boolean|void)|string
468
+ /**
469
+ * Fires before sync response data get applied to the stores. Return `false` to prevent data applying.
470
+ * This event can be used for server data preprocessing. To achieve it user can modify the `response` object.
471
+ * @param {object} event Event object
472
+ * @param {Scheduler.crud.AbstractCrudManager} event.source The CRUD manager.
473
+ * @param {object} event.response The decoded server response object.
474
+ */
475
+ onBeforeSyncApply? : ((event: { source: AbstractCrudManager, response: object }) => Promise<boolean>|boolean|void)|string
476
+ /**
477
+ * Fires when any other event is fired from the object.
478
+ * ...
479
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/model/ProjectModel#event-catchAll)
480
+ * @param {object} event Event object
481
+ * @param {{[key: string]: any, type: string}} event.event The Object that contains event details
482
+ * @param {string} event.event.type The type of the event which is caught by the listener
483
+ */
484
+ onCatchAll? : ((event: {[key: string]: any, type: string}) => void)|string
485
+ /**
486
+ * Fired when data in any of the projects stores changes.
487
+ * ...
488
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/model/ProjectModel#event-change)
489
+ * @param {object} event Event object
490
+ * @param {Scheduler.model.SchedulerProjectModel,any} event.source This project
491
+ * @param {Core.data.Store} event.store Affected store
492
+ * @param {'remove','removeAll','add','clearchanges','filter','update','dataset','replace'} event.action Name of action which triggered the change. May be one of: * `'remove'` * `'removeAll'` * `'add'` * `'clearchanges'` * `'filter'` * `'update'` * `'dataset'` * `'replace'`
493
+ * @param {Core.data.Model} event.record Changed record, for actions that affects exactly one record (`'update'`)
494
+ * @param {Core.data.Model[]} event.records Changed records, passed for all actions except `'removeAll'`
495
+ * @param {object} event.changes Passed for the `'update'` action, info on which record fields changed
496
+ */
497
+ onChange? : ((event: { source: SchedulerProjectModel|any, store: Store, action: 'remove'|'removeAll'|'add'|'clearchanges'|'filter'|'update'|'dataset'|'replace', record: Model, records: Model[], changes: object }) => void)|string
498
+ /**
499
+ * Fired when the engine has finished its calculations and the results has been written back to the records.
500
+ * ...
501
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/model/ProjectModel#event-dataReady)
502
+ * @param {object} event Event object
503
+ * @param {Scheduler.model.SchedulerProjectModel,any} event.source The project
504
+ * @param {boolean} event.isInitialCommit Flag that shows if this commit is initial
505
+ * @param {Set<any>} event.records Set of all [Model](https://bryntum.com/products/taskboard/docs/api/Core/data/Model)s that were modified in the completed transaction. Use the [modifications](https://bryntum.com/products/taskboard/docs/api/Core/data/Model#property-modifications) property of each Model to identify modified fields.
506
+ */
507
+ onDataReady? : ((event: { source: SchedulerProjectModel|any, isInitialCommit: boolean, records: Set<any> }) => void)|string
508
+ /**
509
+ * Fires when an object is destroyed.
510
+ * @param {object} event Event object
511
+ * @param {Core.Base} event.source The Object that is being destroyed.
512
+ */
513
+ onDestroy? : ((event: { source: Base }) => void)|string
514
+ /**
515
+ * Fires when data in any of the registered data stores is changed.
516
+ * ...
517
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/model/ProjectModel#event-hasChanges)
518
+ * @param {object} event Event object
519
+ * @param {Scheduler.crud.AbstractCrudManager} event.source The CRUD manager.
520
+ */
521
+ onHasChanges? : ((event: { source: AbstractCrudManager }) => void)|string
522
+ /**
523
+ * Fires on successful [load request](https://bryntum.com/products/scheduler/docs#Scheduler/crud/AbstractCrudManagerMixin#function-load) completion after data gets loaded to the stores.
524
+ * @param {object} event Event object
525
+ * @param {Scheduler.crud.AbstractCrudManager} event.source The CRUD manager.
526
+ * @param {object} event.response The decoded server response object.
527
+ * @param {object} event.responseOptions [DEPRECATED] see `requestOptions`
528
+ * @param {object} event.requestOptions The request options passed to the request.
529
+ * @param {Response} event.rawResponse The native Response object
530
+ */
531
+ onLoad? : ((event: { source: AbstractCrudManager, response: object, responseOptions: object, requestOptions: object, rawResponse: any }) => void)|string
532
+ /**
533
+ * Fired after [load request](https://bryntum.com/products/scheduler/docs#Scheduler/crud/AbstractCrudManagerMixin#function-load) was canceled by some [beforeLoad](https://bryntum.com/products/scheduler/docs#Scheduler/crud/AbstractCrudManagerMixin#event-beforeLoad)
534
+ * listener or due to incomplete prior load request.
535
+ * @param {object} event Event object
536
+ * @param {Scheduler.crud.AbstractCrudManager} event.source The CRUD manager.
537
+ * @param {object} event.pack The data package which contains data for all stores managed by the crud manager.
538
+ */
539
+ onLoadCanceled? : ((event: { source: AbstractCrudManager, pack: object }) => void)|string
540
+ /**
541
+ * Fires when a [load request](https://bryntum.com/products/scheduler/docs#Scheduler/crud/AbstractCrudManagerMixin#function-load) fails.
542
+ * @param {object} event Event object
543
+ * @param {Scheduler.crud.AbstractCrudManager} event.source The CRUD manager instance.
544
+ * @param {object} event.response The decoded server response object.
545
+ * @param {string} event.responseText The raw server response text
546
+ * @param {object} event.responseOptions [DEPRECATED] see `requestOptions`
547
+ * @param {object} event.requestOptions The request options passed to the request.
548
+ * @param {Response} event.rawResponse The native Response object
549
+ */
550
+ onLoadFail? : ((event: { source: AbstractCrudManager, response: object, responseText: string, responseOptions: object, requestOptions: object, rawResponse: any }) => void)|string
551
+ /**
552
+ * Fires when registered stores get into state when they don't have any
553
+ * not persisted change. This happens after [load](https://bryntum.com/products/scheduler/docs#Scheduler/crud/AbstractCrudManagerMixin#function-load) or [sync](https://bryntum.com/products/scheduler/docs#Scheduler/crud/AbstractCrudManagerMixin#function-sync) request
554
+ * completion. Or this may happen after a record update which turns its fields back to their original state.
555
+ * ...
556
+ * [View online docs...](https://bryntum.com/products/taskboard/docs/api/TaskBoard/model/ProjectModel#event-noChanges)
557
+ * @param {object} event Event object
558
+ * @param {Scheduler.crud.AbstractCrudManager} event.source The CRUD manager.
559
+ */
560
+ onNoChanges? : ((event: { source: AbstractCrudManager }) => void)|string
561
+ /**
562
+ * Fires on successful request completion after data gets applied to the stores.
563
+ * @param {object} event Event object
564
+ * @param {Scheduler.crud.AbstractCrudManager} event.source The CRUD manager.
565
+ * @param {'sync','load'} event.requestType The request type (`sync` or `load`).
566
+ * @param {object} event.response The decoded server response object.
567
+ * @param {object} event.responseOptions [DEPRECATED] see `requestOptions`
568
+ * @param {object} event.requestOptions The request options passed to the request.
569
+ * @param {Response} event.rawResponse The native Response object
570
+ */
571
+ onRequestDone? : ((event: { source: AbstractCrudManager, requestType: 'sync'|'load', response: object, responseOptions: object, requestOptions: object, rawResponse: any }) => void)|string
572
+ /**
573
+ * Fires when a request fails.
574
+ * @param {object} event Event object
575
+ * @param {Scheduler.crud.AbstractCrudManager} event.source The CRUD manager instance.
576
+ * @param {'sync','load'} event.requestType The request type (`sync` or `load`).
577
+ * @param {object} event.response The decoded server response object.
578
+ * @param {string} event.responseText The raw server response text
579
+ * @param {object} event.responseOptions [DEPRECATED] see `requestOptions`
580
+ * @param {object} event.requestOptions The request options passed to the request.
581
+ * @param {Response} event.rawResponse The native Response object
582
+ */
583
+ onRequestFail? : ((event: { source: AbstractCrudManager, requestType: 'sync'|'load', response: object, responseText: string, responseOptions: object, requestOptions: object, rawResponse: any }) => void)|string
584
+ /**
585
+ * Fires on successful [sync request](https://bryntum.com/products/scheduler/docs#Scheduler/crud/AbstractCrudManagerMixin#function-sync) completion.
586
+ * @param {object} event Event object
587
+ * @param {Scheduler.crud.AbstractCrudManager} event.source The CRUD manager.
588
+ * @param {object} event.response The decoded server response object.
589
+ * @param {object} event.responseOptions [DEPRECATED] see `requestOptions`
590
+ * @param {object} event.requestOptions The request options passed to the request.
591
+ * @param {Response} event.rawResponse The native Response object
592
+ */
593
+ onSync? : ((event: { source: AbstractCrudManager, response: object, responseOptions: object, requestOptions: object, rawResponse: any }) => void)|string
594
+ /**
595
+ * Fires after [sync request](https://bryntum.com/products/scheduler/docs#Scheduler/crud/AbstractCrudManagerMixin#function-sync) was canceled by some [beforeSync](https://bryntum.com/products/scheduler/docs#Scheduler/crud/AbstractCrudManagerMixin#event-beforeSync) listener.
596
+ * @param {object} event Event object
597
+ * @param {Scheduler.crud.AbstractCrudManager} event.source The CRUD manager.
598
+ * @param {object} event.pack The data package which contains data for all stores managed by the crud manager.
599
+ */
600
+ onSyncCanceled? : ((event: { source: AbstractCrudManager, pack: object }) => void)|string
601
+ /**
602
+ * Fires after [sync request](https://bryntum.com/products/scheduler/docs#Scheduler/crud/AbstractCrudManagerMixin#function-sync) was delayed due to incomplete previous one.
603
+ * @param {object} event Event object
604
+ * @param {Scheduler.crud.AbstractCrudManager} event.source The CRUD manager.
605
+ * @param {object} event.arguments The arguments of [sync](https://bryntum.com/products/scheduler/docs#Scheduler/crud/AbstractCrudManagerMixin#function-sync) call.
606
+ */
607
+ onSyncDelayed? : ((event: { source: AbstractCrudManager, arguments: object }) => void)|string
608
+ /**
609
+ * Fires when a [sync request](https://bryntum.com/products/scheduler/docs#Scheduler/crud/AbstractCrudManagerMixin#function-sync) fails.
610
+ * @param {object} event Event object
611
+ * @param {Scheduler.crud.AbstractCrudManager} event.source The CRUD manager instance.
612
+ * @param {object} event.response The decoded server response object.
613
+ * @param {string} event.responseText The raw server response text
614
+ * @param {object} event.responseOptions [DEPRECATED] see `requestOptions`
615
+ * @param {object} event.requestOptions The request options passed to the request.
616
+ * @param {Response} event.rawResponse The native Response object
617
+ */
618
+ onSyncFail? : ((event: { source: AbstractCrudManager, response: object, responseText: string, responseOptions: object, requestOptions: object, rawResponse: any }) => void)|string
619
+
620
+ }
621
+
622
+ export class BryntumTaskBoardProjectModel extends React.Component<BryntumTaskBoardProjectModelProps> {
623
+
624
+ static instanceClass = ProjectModel;
625
+
626
+ static instanceName = 'ProjectModel';
627
+
628
+ processWidgetContent = processWidgetContent;
629
+
630
+ dataStores = {
631
+ 'assignmentStore': 'assignments',
632
+ 'dependencyStore': 'dependencies',
633
+ 'eventStore': 'events',
634
+ 'resourceStore': 'resources',
635
+ 'taskStore': 'tasks'
636
+ };
637
+
638
+ static configNames = [
639
+ 'adjustDurationToDST',
640
+ 'assignmentModelClass',
641
+ 'assignmentsData',
642
+ 'assignmentStoreClass',
643
+ 'autoLoad',
644
+ 'autoSync',
645
+ 'autoSyncTimeout',
646
+ 'bubbleEvents',
647
+ 'children',
648
+ 'dependenciesData',
649
+ 'dependencyModelClass',
650
+ 'dependencyStoreClass',
651
+ 'encoder',
652
+ 'eventsData',
653
+ 'expanded',
654
+ 'ignoreRemoteChangesInSTM',
655
+ 'includeChildrenInRemoveRequest',
656
+ 'listeners',
657
+ 'orderedParentIndex',
658
+ 'parentIndex',
659
+ 'phantomIdField',
660
+ 'phantomParentIdField',
661
+ 'resetIdsBeforeSync',
662
+ 'resourceModelClass',
663
+ 'resourcesData',
664
+ 'resourceStoreClass',
665
+ 'silenceInitialCommit',
666
+ 'skipSuccessProperty',
667
+ 'storeIdProperty',
668
+ 'supportShortSyncResponse',
669
+ 'taskModelClass',
670
+ 'tasksData',
671
+ 'taskStoreClass',
672
+ 'toJSONResultFormat',
673
+ 'trackResponseType',
674
+ 'transport',
675
+ 'useRawData',
676
+ 'validateResponse',
677
+ 'writeAllFields'
678
+ ];
679
+
680
+ static propertyConfigNames = [
681
+ 'assignments',
682
+ 'assignmentStore',
683
+ 'callOnFunctions',
684
+ 'catchEventHandlerExceptions',
685
+ 'crudStores',
686
+ 'dependencies',
687
+ 'dependencyStore',
688
+ 'events',
689
+ 'eventStore',
690
+ 'forceSync',
691
+ 'id',
692
+ 'includeLegacyDataProperties',
693
+ 'isFullyLoaded',
694
+ 'json',
695
+ 'loadUrl',
696
+ 'onBeforeDestroy',
697
+ 'onBeforeLoad',
698
+ 'onBeforeLoadApply',
699
+ 'onBeforeResponseApply',
700
+ 'onBeforeSend',
701
+ 'onBeforeSync',
702
+ 'onBeforeSyncApply',
703
+ 'onCatchAll',
704
+ 'onChange',
705
+ 'onDataReady',
706
+ 'onDestroy',
707
+ 'onHasChanges',
708
+ 'onLoad',
709
+ 'onLoadCanceled',
710
+ 'onLoadFail',
711
+ 'onNoChanges',
712
+ 'onRequestDone',
713
+ 'onRequestFail',
714
+ 'onSync',
715
+ 'onSyncCanceled',
716
+ 'onSyncDelayed',
717
+ 'onSyncFail',
718
+ 'parentId',
719
+ 'readOnly',
720
+ 'remoteChildCount',
721
+ 'resources',
722
+ 'resourceStore',
723
+ 'shouldSyncDataOnLoad',
724
+ 'stm',
725
+ 'syncApplySequence',
726
+ 'syncUrl',
727
+ 'tasks',
728
+ 'taskStore',
729
+ 'timeZone'
730
+ ];
731
+
732
+ static propertyNames = [
733
+ 'allChildren',
734
+ 'allUnfilteredChildren',
735
+ 'descendantCount',
736
+ 'hasGeneratedId',
737
+ 'inlineData',
738
+ 'internalId',
739
+ 'isCommitting',
740
+ 'isCreating',
741
+ 'isValid',
742
+ 'previousSiblingsTotalCount',
743
+ 'resourceTimeRanges',
744
+ 'timeRanges',
745
+ 'visibleDescendantCount'
746
+ ];
747
+
748
+ // Component instance
749
+ instance!: ProjectModel;
750
+
751
+ // Component element
752
+ element! : HTMLElement;
753
+
754
+ componentDidMount(): void {
755
+ this.instance = createWidget(this);
756
+ }
757
+
758
+ componentWillUnmount(): void {
759
+ // @ts-ignore
760
+ this.instance?.destroy?.();
761
+ }
762
+
763
+ /**
764
+ * Component about to be updated, from changing a prop using state.
765
+ * React to it depending on what changed and prevent react from re-rendering our component.
766
+ * @param nextProps
767
+ * @param nextState
768
+ * @returns {boolean}
769
+ */
770
+ shouldComponentUpdate(nextProps: Readonly<BryntumTaskBoardProjectModelProps>, nextState: Readonly<{}>): boolean {
771
+ return shouldComponentUpdate(this, nextProps, nextState);
772
+ }
773
+
774
+ render(): React.ReactNode {
775
+
776
+ return null
777
+
778
+ }
779
+ }