@bryntum/calendar-angular-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 +44 -0
- package/bryntum-calendar-angular-thin.d.ts +5 -0
- package/bundles/bryntum-calendar-angular-thin.umd.js +22195 -0
- package/bundles/bryntum-calendar-angular-thin.umd.js.map +1 -0
- package/esm2015/bryntum-calendar-angular-thin.js +5 -0
- package/esm2015/lib/bryntum-agenda-view.component.js +2503 -0
- package/esm2015/lib/bryntum-calendar-date-picker.component.js +1045 -0
- package/esm2015/lib/bryntum-calendar-project-model.component.js +369 -0
- package/esm2015/lib/bryntum-calendar.component.js +2355 -0
- package/esm2015/lib/bryntum-day-agenda-view.component.js +1338 -0
- package/esm2015/lib/bryntum-day-resource-view.component.js +1347 -0
- package/esm2015/lib/bryntum-day-view.component.js +1323 -0
- package/esm2015/lib/bryntum-event-list.component.js +2453 -0
- package/esm2015/lib/bryntum-mode-selector.component.js +702 -0
- package/esm2015/lib/bryntum-month-agenda-view.component.js +1201 -0
- package/esm2015/lib/bryntum-month-grid.component.js +1262 -0
- package/esm2015/lib/bryntum-month-view.component.js +1337 -0
- package/esm2015/lib/bryntum-range-menu.component.js +884 -0
- package/esm2015/lib/bryntum-resource-view.component.js +1068 -0
- package/esm2015/lib/bryntum-week-view.component.js +1323 -0
- package/esm2015/lib/bryntum-year-view.component.js +1163 -0
- package/esm2015/lib/calendar.module.js +99 -0
- package/esm2015/lib/wrapper.helper.js +74 -0
- package/esm2015/public-api.js +21 -0
- package/fesm2015/bryntum-calendar-angular-thin.js +21714 -0
- package/fesm2015/bryntum-calendar-angular-thin.js.map +1 -0
- package/lib/bryntum-agenda-view.component.d.ts +2953 -0
- package/lib/bryntum-calendar-date-picker.component.d.ts +1525 -0
- package/lib/bryntum-calendar-project-model.component.d.ts +399 -0
- package/lib/bryntum-calendar.component.d.ts +2577 -0
- package/lib/bryntum-day-agenda-view.component.d.ts +1960 -0
- package/lib/bryntum-day-resource-view.component.d.ts +2025 -0
- package/lib/bryntum-day-view.component.d.ts +1980 -0
- package/lib/bryntum-event-list.component.d.ts +2888 -0
- package/lib/bryntum-mode-selector.component.d.ts +851 -0
- package/lib/bryntum-month-agenda-view.component.d.ts +1765 -0
- package/lib/bryntum-month-grid.component.d.ts +1731 -0
- package/lib/bryntum-month-view.component.d.ts +1897 -0
- package/lib/bryntum-range-menu.component.d.ts +1130 -0
- package/lib/bryntum-resource-view.component.d.ts +1512 -0
- package/lib/bryntum-week-view.component.d.ts +1980 -0
- package/lib/bryntum-year-view.component.d.ts +1661 -0
- package/lib/calendar.module.d.ts +22 -0
- package/lib/wrapper.helper.d.ts +26 -0
- package/package.json +33 -0
- package/public-api.d.ts +17 -0
|
@@ -0,0 +1,399 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Angular wrapper for Bryntum ProjectModel
|
|
3
|
+
*/
|
|
4
|
+
import { ElementRef, SimpleChanges, OnDestroy, OnInit } from '@angular/core';
|
|
5
|
+
import { Model, ModelConfig, StateTrackingManager, StateTrackingManagerConfig, Store, StoreConfig } from '@bryntum/core-thin';
|
|
6
|
+
import { AssignmentModel, AssignmentModelConfig, AssignmentStore, AssignmentStoreConfig, DependencyModel, DependencyModelConfig, DependencyStore, DependencyStoreConfig, EventModel, EventModelConfig, EventStore, EventStoreConfig, ResourceModel, ResourceModelConfig, ResourceStore, ResourceStoreConfig, ResourceTimeRangeModel, ResourceTimeRangeModelConfig, ResourceTimeRangeStore, ResourceTimeRangeStoreConfig, TimeRangeModel as SchedulerTimeRangeModel, TimeSpan } from '@bryntum/scheduler-thin';
|
|
7
|
+
import { ProjectModel, TimeRangeModel, TimeRangeModelConfig } from '@bryntum/calendar-thin';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
export declare type BryntumCalendarProjectModelProps = {
|
|
10
|
+
/**
|
|
11
|
+
* A flag, indicating whether the dates and duration calculations should adjust the result to DST time shift.
|
|
12
|
+
*/
|
|
13
|
+
adjustDurationToDST?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* The constructor of the assignment model class, to be used in the project. Will be set as the
|
|
16
|
+
* [modelClass](https://bryntum.com/products/calendar/docs/api/Core/data/Store#config-modelClass) property of the [assignmentStore](#Scheduler/model/ProjectModel#property-assignmentStore)
|
|
17
|
+
*/
|
|
18
|
+
assignmentModelClass?: typeof AssignmentModel;
|
|
19
|
+
/**
|
|
20
|
+
* Data use to fill the [assignmentStore](https://bryntum.com/products/calendar/docs/api/Scheduler/model/ProjectModel#property-assignmentStore). Should be an array of
|
|
21
|
+
* [AssignmentModels](https://bryntum.com/products/calendar/docs/api/Scheduler/model/AssignmentModel) or its configuration objects.
|
|
22
|
+
*/
|
|
23
|
+
assignments?: AssignmentModel[] | AssignmentModelConfig[];
|
|
24
|
+
/**
|
|
25
|
+
* The initial data, to fill the [assignmentStore](https://bryntum.com/products/calendar/docs/api/Scheduler/model/ProjectModel#property-assignmentStore) with.
|
|
26
|
+
* Should be an array of [AssignmentModels](https://bryntum.com/products/calendar/docs/api/Scheduler/model/AssignmentModel) or its configuration
|
|
27
|
+
* objects.
|
|
28
|
+
* @deprecated 6.3.0 Use [assignments](https://bryntum.com/products/calendar/docs/api/Scheduler/model/ProjectModel#config-assignments) instead
|
|
29
|
+
*/
|
|
30
|
+
assignmentsData?: AssignmentModel[] | AssignmentModelConfig[];
|
|
31
|
+
/**
|
|
32
|
+
* An [AssignmentStore](https://bryntum.com/products/calendar/docs/api/Scheduler/data/AssignmentStore) instance or a config object.
|
|
33
|
+
*/
|
|
34
|
+
assignmentStore?: AssignmentStore | AssignmentStoreConfig;
|
|
35
|
+
/**
|
|
36
|
+
* The constructor to create an assignment store instance with. Should be a class, subclassing the
|
|
37
|
+
* [AssignmentStore](https://bryntum.com/products/calendar/docs/api/Scheduler/data/AssignmentStore)
|
|
38
|
+
*/
|
|
39
|
+
assignmentStoreClass?: typeof AssignmentStore | object;
|
|
40
|
+
/**
|
|
41
|
+
* Child nodes. To allow loading children on demand, specify `children : true` in your data. Omit the field for leaf
|
|
42
|
+
* tasks.
|
|
43
|
+
* ...
|
|
44
|
+
* [View online docs...](https://bryntum.com/products/calendar/docs/api/Calendar/model/ProjectModel#config-children)
|
|
45
|
+
*/
|
|
46
|
+
children?: boolean | object[] | Model[] | ModelConfig[];
|
|
47
|
+
/**
|
|
48
|
+
* Data use to fill the [dependencyStore](https://bryntum.com/products/calendar/docs/api/Scheduler/model/ProjectModel#property-dependencyStore). Should be an array of
|
|
49
|
+
* [DependencyModels](https://bryntum.com/products/calendar/docs/api/Scheduler/model/DependencyModel) or its configuration objects.
|
|
50
|
+
*/
|
|
51
|
+
dependencies?: DependencyModel[] | DependencyModelConfig[];
|
|
52
|
+
/**
|
|
53
|
+
* The initial data, to fill the [dependencyStore](https://bryntum.com/products/calendar/docs/api/Scheduler/model/ProjectModel#property-dependencyStore) with.
|
|
54
|
+
* Should be an array of [DependencyModels](https://bryntum.com/products/calendar/docs/api/Scheduler/model/DependencyModel) or its configuration
|
|
55
|
+
* objects.
|
|
56
|
+
* @deprecated 6.3.0 Use [dependencies](https://bryntum.com/products/calendar/docs/api/Scheduler/model/ProjectModel#config-dependencies) instead
|
|
57
|
+
*/
|
|
58
|
+
dependenciesData?: DependencyModel[] | DependencyModelConfig[];
|
|
59
|
+
/**
|
|
60
|
+
* The constructor of the dependency model class, to be used in the project. Will be set as the
|
|
61
|
+
* [modelClass](https://bryntum.com/products/calendar/docs/api/Core/data/Store#config-modelClass) property of the [dependencyStore](#Scheduler/model/ProjectModel#property-dependencyStore)
|
|
62
|
+
*/
|
|
63
|
+
dependencyModelClass?: typeof DependencyModel;
|
|
64
|
+
/**
|
|
65
|
+
* A [DependencyStore](https://bryntum.com/products/calendar/docs/api/Scheduler/data/DependencyStore) instance or a config object.
|
|
66
|
+
*/
|
|
67
|
+
dependencyStore?: DependencyStore | DependencyStoreConfig;
|
|
68
|
+
/**
|
|
69
|
+
* The constructor to create a dependency store instance with. Should be a class, subclassing the
|
|
70
|
+
* [DependencyStore](https://bryntum.com/products/calendar/docs/api/Scheduler/data/DependencyStore)
|
|
71
|
+
*/
|
|
72
|
+
dependencyStoreClass?: typeof DependencyStore | object;
|
|
73
|
+
/**
|
|
74
|
+
* The constructor of the event model class, to be used in the project. Will be set as the
|
|
75
|
+
* [modelClass](https://bryntum.com/products/calendar/docs/api/Core/data/Store#config-modelClass) property of the [eventStore](#Scheduler/model/ProjectModel#property-eventStore)
|
|
76
|
+
*/
|
|
77
|
+
eventModelClass?: typeof EventModel;
|
|
78
|
+
/**
|
|
79
|
+
* Data use to fill the [eventStore](https://bryntum.com/products/calendar/docs/api/Scheduler/model/ProjectModel#property-eventStore). Should be an array of
|
|
80
|
+
* [EventModels](https://bryntum.com/products/calendar/docs/api/Scheduler/model/EventModel) or its configuration objects.
|
|
81
|
+
*/
|
|
82
|
+
events?: EventModel[] | EventModelConfig[];
|
|
83
|
+
/**
|
|
84
|
+
* The initial data, to fill the [eventStore](https://bryntum.com/products/calendar/docs/api/Scheduler/model/ProjectModel#property-eventStore) with.
|
|
85
|
+
* Should be an array of [EventModels](https://bryntum.com/products/calendar/docs/api/Scheduler/model/EventModel) or its configuration objects.
|
|
86
|
+
* @deprecated 6.3.0 Use [events](https://bryntum.com/products/calendar/docs/api/Scheduler/model/ProjectModel#config-events) instead
|
|
87
|
+
*/
|
|
88
|
+
eventsData?: EventModel[] | EventModelConfig[];
|
|
89
|
+
/**
|
|
90
|
+
* An [EventStore](https://bryntum.com/products/calendar/docs/api/Scheduler/data/EventStore) instance or a config object.
|
|
91
|
+
*/
|
|
92
|
+
eventStore?: EventStore | EventStoreConfig;
|
|
93
|
+
/**
|
|
94
|
+
* The constructor to create an event store instance with. Should be a class, subclassing the
|
|
95
|
+
* [EventStore](https://bryntum.com/products/calendar/docs/api/Scheduler/data/EventStore)
|
|
96
|
+
*/
|
|
97
|
+
eventStoreClass?: typeof EventStore | object;
|
|
98
|
+
/**
|
|
99
|
+
* Start expanded or not (only valid for tree data)
|
|
100
|
+
*/
|
|
101
|
+
expanded?: boolean;
|
|
102
|
+
/**
|
|
103
|
+
* Unique identifier for the record. Might be mapped to another dataSource using idField, but always exposed as
|
|
104
|
+
* record.id. Will get a generated value if none is specified in records data.
|
|
105
|
+
* ...
|
|
106
|
+
* [View online docs...](https://bryntum.com/products/calendar/docs/api/Calendar/model/ProjectModel#config-id)
|
|
107
|
+
*/
|
|
108
|
+
id?: string | number;
|
|
109
|
+
/**
|
|
110
|
+
* Whether to include legacy data properties in the JSON / inlineData output. The legacy data properties are
|
|
111
|
+
* the `xxData` (`eventsData`, `resourcesData` etc.) properties that are deprecated and will be removed in
|
|
112
|
+
* the future.
|
|
113
|
+
* @deprecated 6.3.0 This config will be removed when the eventsData, resourcesData etc. properties are removed in a future release.
|
|
114
|
+
*/
|
|
115
|
+
includeLegacyDataProperties?: boolean;
|
|
116
|
+
/**
|
|
117
|
+
* This field is added to the class at runtime when the Store is configured with
|
|
118
|
+
* [lazyLoad](https://bryntum.com/products/calendar/docs/api/Core/data/Store#config-lazyLoad). If set on a parent record at load time, that parent will not cause any
|
|
119
|
+
* more child load requests. If omitted, it will be automatically set to `true` when a load request receives fewer
|
|
120
|
+
* child records than requested.
|
|
121
|
+
* ...
|
|
122
|
+
* [View online docs...](https://bryntum.com/products/calendar/docs/api/Calendar/model/ProjectModel#config-isFullyLoaded)
|
|
123
|
+
*/
|
|
124
|
+
isFullyLoaded?: boolean;
|
|
125
|
+
/**
|
|
126
|
+
* Project data as a JSON string, used to populate its stores.
|
|
127
|
+
* ...
|
|
128
|
+
* [View online docs...](https://bryntum.com/products/calendar/docs/api/Calendar/model/ProjectModel#config-json)
|
|
129
|
+
*/
|
|
130
|
+
json?: string;
|
|
131
|
+
/**
|
|
132
|
+
* This is a read-only field provided in server synchronization packets to specify
|
|
133
|
+
* which position the node takes in the parent's ordered children array.
|
|
134
|
+
* This index is set on load and gets updated on reordering nodes in tree. Sorting and filtering
|
|
135
|
+
* have no effect on it.
|
|
136
|
+
*/
|
|
137
|
+
orderedParentIndex?: number;
|
|
138
|
+
/**
|
|
139
|
+
* This is a read-only field provided in server synchronization packets to specify
|
|
140
|
+
* which record id is the parent of the record.
|
|
141
|
+
*/
|
|
142
|
+
parentId?: string | number | null;
|
|
143
|
+
/**
|
|
144
|
+
* This is a read-only field provided in server synchronization packets to specify
|
|
145
|
+
* which position the node takes in the parent's children array.
|
|
146
|
+
* This index is set on load and gets updated automatically after row reordering, sorting, etc.
|
|
147
|
+
* To save the order, need to persist the field on the server and when data is fetched to be loaded,
|
|
148
|
+
* need to sort by this field.
|
|
149
|
+
*/
|
|
150
|
+
parentIndex?: number;
|
|
151
|
+
/**
|
|
152
|
+
* Flag the record as read-only on the UI level, preventing the end user from manipulating it using editing
|
|
153
|
+
* features such as cell editing and event dragging.
|
|
154
|
+
* ...
|
|
155
|
+
* [View online docs...](https://bryntum.com/products/calendar/docs/api/Calendar/model/ProjectModel#config-readOnly)
|
|
156
|
+
*/
|
|
157
|
+
readOnly?: boolean;
|
|
158
|
+
/**
|
|
159
|
+
* This field is added to the class at runtime when the Store is configured with
|
|
160
|
+
* [lazyLoad](https://bryntum.com/products/calendar/docs/api/Core/data/Store#config-lazyLoad). The
|
|
161
|
+
* number specified should reflect the <strong>total</strong> amount of children of a parent node, including nested descendants.
|
|
162
|
+
* @deprecated This field has been deprecated. Please read the [guide](https://bryntum.com/products/calendar/docs/api/Grid/guides/data/lazyloading.md) to find out if your app needs to use the new [isFullyLoaded](https://bryntum.com/products/calendar/docs/api/Core/data/mixin/TreeNode#field-isFullyLoaded) field.
|
|
163
|
+
*/
|
|
164
|
+
remoteChildCount?: number;
|
|
165
|
+
/**
|
|
166
|
+
* The constructor of the resource model class, to be used in the project. Will be set as the
|
|
167
|
+
* [modelClass](https://bryntum.com/products/calendar/docs/api/Core/data/Store#config-modelClass) property of the [resourceStore](#Scheduler/model/ProjectModel#property-resourceStore)
|
|
168
|
+
*/
|
|
169
|
+
resourceModelClass?: typeof ResourceModel;
|
|
170
|
+
/**
|
|
171
|
+
* Data use to fill the [resourceStore](https://bryntum.com/products/calendar/docs/api/Scheduler/model/ProjectModel#property-resourceStore). Should be an array of
|
|
172
|
+
* [ResourceModels](https://bryntum.com/products/calendar/docs/api/Scheduler/model/ResourceModel) or its configuration objects.
|
|
173
|
+
*/
|
|
174
|
+
resources?: ResourceModel[] | ResourceModelConfig[];
|
|
175
|
+
/**
|
|
176
|
+
* The initial data, to fill the [resourceStore](https://bryntum.com/products/calendar/docs/api/Scheduler/model/ProjectModel#property-resourceStore) with.
|
|
177
|
+
* Should be an array of [ResourceModels](https://bryntum.com/products/calendar/docs/api/Scheduler/model/ResourceModel) or its configuration objects.
|
|
178
|
+
* @deprecated 6.3.0 Use [resources](https://bryntum.com/products/calendar/docs/api/Scheduler/model/ProjectModel#config-resources) instead
|
|
179
|
+
*/
|
|
180
|
+
resourcesData?: ResourceModel[] | ResourceModelConfig[];
|
|
181
|
+
/**
|
|
182
|
+
* A [ResourceStore](https://bryntum.com/products/calendar/docs/api/Scheduler/data/ResourceStore) instance or a config object.
|
|
183
|
+
*/
|
|
184
|
+
resourceStore?: ResourceStore | ResourceStoreConfig;
|
|
185
|
+
/**
|
|
186
|
+
* The constructor to create a resource store instance with. Should be a class, subclassing the
|
|
187
|
+
* [ResourceStore](https://bryntum.com/products/calendar/docs/api/Scheduler/data/ResourceStore)
|
|
188
|
+
*/
|
|
189
|
+
resourceStoreClass?: typeof ResourceStore | object;
|
|
190
|
+
/**
|
|
191
|
+
* Data use to fill the [resourceTimeRangeStore](https://bryntum.com/products/calendar/docs/api/Scheduler/model/ProjectModel#property-resourceTimeRangeStore). Should be an array
|
|
192
|
+
* of [ResourceTimeRangeModels](https://bryntum.com/products/calendar/docs/api/Scheduler/model/ResourceTimeRangeModel) or its configuration objects.
|
|
193
|
+
*/
|
|
194
|
+
resourceTimeRanges?: ResourceTimeRangeModel[] | ResourceTimeRangeModelConfig[];
|
|
195
|
+
/**
|
|
196
|
+
* The initial data, to fill the [resourceTimeRangeStore](https://bryntum.com/products/calendar/docs/api/Scheduler/model/mixin/ProjectModelMixin#property-resourceTimeRangeStore) with.
|
|
197
|
+
* Should be an array of [ResourceTimeRangeModel](https://bryntum.com/products/calendar/docs/api/Scheduler/model/ResourceTimeRangeModel) or it's
|
|
198
|
+
* configuration objects.
|
|
199
|
+
* @deprecated 6.3.0 Use resourceTimeRanges instead
|
|
200
|
+
*/
|
|
201
|
+
resourceTimeRangesData?: ResourceTimeRangeModel[];
|
|
202
|
+
/**
|
|
203
|
+
* A [ResourceTimeRangeStore](https://bryntum.com/products/calendar/docs/api/Scheduler/data/ResourceTimeRangeStore) instance or a config object.
|
|
204
|
+
*/
|
|
205
|
+
resourceTimeRangeStore?: ResourceTimeRangeStore | ResourceTimeRangeStoreConfig;
|
|
206
|
+
/**
|
|
207
|
+
* The constructor to create a resource time range store instance with. Should be a class subclassing the
|
|
208
|
+
* [ResourceTimeRangeStore](https://bryntum.com/products/calendar/docs/api/Scheduler/data/ResourceTimeRangeStore)
|
|
209
|
+
*/
|
|
210
|
+
resourceTimeRangeStoreClass?: typeof ResourceTimeRangeStore | object;
|
|
211
|
+
/**
|
|
212
|
+
* Experimental hook that lets the app determine if a bound dataset needs syncing with the store or not, and
|
|
213
|
+
* if it does - which records that should be processed. Only called for stores that are configured with
|
|
214
|
+
* `syncDataOnLoad: true` (which is the default in the React, Angular and Vue wrappers).
|
|
215
|
+
* ...
|
|
216
|
+
* [View online docs...](https://bryntum.com/products/calendar/docs/api/Calendar/model/ProjectModel#config-shouldSyncDataOnLoad)
|
|
217
|
+
* @param {object} options Options passed by the store to this hook
|
|
218
|
+
* @param {Core.data.Store} options.store Store about to be synced
|
|
219
|
+
* @param {Core.data.Model} options.records Records currently in the store
|
|
220
|
+
* @param {object[]} options.data Incoming data
|
|
221
|
+
* @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)
|
|
222
|
+
*/
|
|
223
|
+
shouldSyncDataOnLoad?: (options: {
|
|
224
|
+
store: Store;
|
|
225
|
+
records: Model;
|
|
226
|
+
data: object[];
|
|
227
|
+
}) => Set<any> | boolean;
|
|
228
|
+
/**
|
|
229
|
+
* Silences propagations caused by the project loading.
|
|
230
|
+
* ...
|
|
231
|
+
* [View online docs...](https://bryntum.com/products/calendar/docs/api/Calendar/model/ProjectModel#config-silenceInitialCommit)
|
|
232
|
+
*/
|
|
233
|
+
silenceInitialCommit?: boolean;
|
|
234
|
+
/**
|
|
235
|
+
* Configuration options to provide to the STM manager
|
|
236
|
+
*/
|
|
237
|
+
stm?: StateTrackingManagerConfig | StateTrackingManager;
|
|
238
|
+
/**
|
|
239
|
+
* The constructor of the time range model class, to be used in the project. Will be set as the
|
|
240
|
+
* [modelClass](https://bryntum.com/products/calendar/docs/api/Core/data/Store#config-modelClass) property of the [timeRangeStore](#Calendar/model/ProjectModel#property-timeRangeStore)
|
|
241
|
+
*/
|
|
242
|
+
timeRangeModelClass?: typeof TimeRangeModel;
|
|
243
|
+
/**
|
|
244
|
+
* Data use to fill the [timeRangeStore](https://bryntum.com/products/calendar/docs/api/Scheduler/model/ProjectModel#property-timeRangeStore). Should be an array of
|
|
245
|
+
* [TimeRangeModels](https://bryntum.com/products/calendar/docs/api/Scheduler/model/TimeRangeModel) or its configuration objects.
|
|
246
|
+
*/
|
|
247
|
+
timeRanges?: SchedulerTimeRangeModel[] | TimeRangeModelConfig[];
|
|
248
|
+
/**
|
|
249
|
+
* The initial data, to fill the [timeRangeStore](https://bryntum.com/products/calendar/docs/api/Scheduler/model/mixin/ProjectModelMixin#property-timeRangeStore) with.
|
|
250
|
+
* Should be an array of [TimeSpan](https://bryntum.com/products/calendar/docs/api/Scheduler/model/TimeSpan) or its configuration objects.
|
|
251
|
+
* @deprecated 6.3.0 Use timeRanges instead
|
|
252
|
+
*/
|
|
253
|
+
timeRangesData?: TimeSpan[];
|
|
254
|
+
/**
|
|
255
|
+
* A [Store](https://bryntum.com/products/calendar/docs/api/Core/data/Store) instance or a config object.
|
|
256
|
+
*/
|
|
257
|
+
timeRangeStore?: Store | StoreConfig;
|
|
258
|
+
/**
|
|
259
|
+
* The constructor to create an timeRange store instance with. Should be a class, subclassing the
|
|
260
|
+
* [Store](https://bryntum.com/products/calendar/docs/api/Core/data/Store)
|
|
261
|
+
*/
|
|
262
|
+
timeRangeStoreClass?: typeof Store | object;
|
|
263
|
+
/**
|
|
264
|
+
* Set to a IANA time zone (i.e. `Europe/Stockholm`) or a UTC offset in minutes (i.e. `-120`). This will
|
|
265
|
+
* convert all events, tasks and time ranges to the specified time zone or offset. It will also affect the
|
|
266
|
+
* displayed timeline's headers as well at the start and end date of it.
|
|
267
|
+
* ...
|
|
268
|
+
* [View online docs...](https://bryntum.com/products/calendar/docs/api/Calendar/model/ProjectModel#config-timeZone)
|
|
269
|
+
*/
|
|
270
|
+
timeZone?: string | number;
|
|
271
|
+
/**
|
|
272
|
+
* Specifies the output format of [toJSON](https://bryntum.com/products/calendar/docs/api/Scheduler/model/mixin/ProjectModelCommon#function-toJSON).
|
|
273
|
+
* ...
|
|
274
|
+
* [View online docs...](https://bryntum.com/products/calendar/docs/api/Calendar/model/ProjectModel#config-toJSONResultFormat)
|
|
275
|
+
*/
|
|
276
|
+
toJSONResultFormat?: 'inlineData' | 'model';
|
|
277
|
+
/**
|
|
278
|
+
* By default, the stores of a project use the raw data objects passed to them as the data source for their
|
|
279
|
+
* records if data is loaded remotely (using an `AjaxStore` or a `CrudManager`). For data supplied inline,
|
|
280
|
+
* the data objects are instead by default cloned to avoid the original data object being modified by the
|
|
281
|
+
* store.
|
|
282
|
+
* ...
|
|
283
|
+
* [View online docs...](https://bryntum.com/products/calendar/docs/api/Calendar/model/ProjectModel#config-useRawData)
|
|
284
|
+
*/
|
|
285
|
+
useRawData?: boolean;
|
|
286
|
+
};
|
|
287
|
+
export declare class BryntumCalendarProjectModelComponent implements OnInit, OnDestroy {
|
|
288
|
+
static instanceClass: typeof ProjectModel;
|
|
289
|
+
static instanceName: string;
|
|
290
|
+
private static bryntumEvents;
|
|
291
|
+
private static bryntumFeatureNames;
|
|
292
|
+
private static bryntumConfigs;
|
|
293
|
+
private static bryntumConfigsOnly;
|
|
294
|
+
private static bryntumProps;
|
|
295
|
+
private elementRef;
|
|
296
|
+
instance: ProjectModel;
|
|
297
|
+
private bryntumConfig;
|
|
298
|
+
constructor(element: ElementRef);
|
|
299
|
+
adjustDurationToDST: boolean;
|
|
300
|
+
assignmentModelClass: typeof AssignmentModel;
|
|
301
|
+
assignmentsData: AssignmentModel[] | AssignmentModelConfig[];
|
|
302
|
+
assignmentStoreClass: typeof AssignmentStore | object;
|
|
303
|
+
children: boolean | object[] | Model[] | ModelConfig[];
|
|
304
|
+
dependenciesData: DependencyModel[] | DependencyModelConfig[];
|
|
305
|
+
dependencyModelClass: typeof DependencyModel;
|
|
306
|
+
dependencyStoreClass: typeof DependencyStore | object;
|
|
307
|
+
eventModelClass: typeof EventModel;
|
|
308
|
+
eventsData: EventModel[] | EventModelConfig[];
|
|
309
|
+
eventStoreClass: typeof EventStore | object;
|
|
310
|
+
expanded: boolean;
|
|
311
|
+
orderedParentIndex: number;
|
|
312
|
+
parentIndex: number;
|
|
313
|
+
resourceModelClass: typeof ResourceModel;
|
|
314
|
+
resourcesData: ResourceModel[] | ResourceModelConfig[];
|
|
315
|
+
resourceStoreClass: typeof ResourceStore | object;
|
|
316
|
+
resourceTimeRangesData: ResourceTimeRangeModel[];
|
|
317
|
+
resourceTimeRangeStoreClass: typeof ResourceTimeRangeStore | object;
|
|
318
|
+
silenceInitialCommit: boolean;
|
|
319
|
+
timeRangeModelClass: typeof TimeRangeModel;
|
|
320
|
+
timeRangesData: TimeSpan[];
|
|
321
|
+
timeRangeStoreClass: typeof Store | object;
|
|
322
|
+
toJSONResultFormat: 'inlineData' | 'model';
|
|
323
|
+
useRawData: boolean;
|
|
324
|
+
assignments: AssignmentModel[] | AssignmentModelConfig[];
|
|
325
|
+
assignmentStore: AssignmentStore | AssignmentStoreConfig;
|
|
326
|
+
dependencies: DependencyModel[] | DependencyModelConfig[];
|
|
327
|
+
dependencyStore: DependencyStore | DependencyStoreConfig;
|
|
328
|
+
events: EventModel[] | EventModelConfig[];
|
|
329
|
+
eventStore: EventStore | EventStoreConfig;
|
|
330
|
+
id: string | number;
|
|
331
|
+
includeLegacyDataProperties: boolean;
|
|
332
|
+
isFullyLoaded: boolean;
|
|
333
|
+
json: string;
|
|
334
|
+
parentId: number | string | null;
|
|
335
|
+
readOnly: boolean;
|
|
336
|
+
remoteChildCount: number;
|
|
337
|
+
resources: ResourceModel[] | ResourceModelConfig[];
|
|
338
|
+
resourceStore: ResourceStore | ResourceStoreConfig;
|
|
339
|
+
resourceTimeRanges: ResourceTimeRangeModel[] | ResourceTimeRangeModelConfig[];
|
|
340
|
+
resourceTimeRangeStore: ResourceTimeRangeStore | ResourceTimeRangeStoreConfig;
|
|
341
|
+
shouldSyncDataOnLoad: (options: {
|
|
342
|
+
store: Store;
|
|
343
|
+
records: Model;
|
|
344
|
+
data: object[];
|
|
345
|
+
}) => Set<any> | boolean;
|
|
346
|
+
stm: StateTrackingManager | StateTrackingManagerConfig;
|
|
347
|
+
timeRanges: SchedulerTimeRangeModel[] | TimeRangeModelConfig[];
|
|
348
|
+
timeRangeStore: Store | StoreConfig;
|
|
349
|
+
timeZone: string | number;
|
|
350
|
+
allChildren: Model[];
|
|
351
|
+
allUnfilteredChildren: Model[];
|
|
352
|
+
descendantCount: number;
|
|
353
|
+
hasGeneratedId: boolean;
|
|
354
|
+
inlineData: object;
|
|
355
|
+
internalId: number;
|
|
356
|
+
isCommitting: boolean;
|
|
357
|
+
isCreating: boolean;
|
|
358
|
+
isValid: boolean;
|
|
359
|
+
previousSiblingsTotalCount: number;
|
|
360
|
+
visibleDescendantCount: number;
|
|
361
|
+
/**
|
|
362
|
+
* Fired when data in any of the projects stores changes.
|
|
363
|
+
* ...
|
|
364
|
+
* [View online docs...](https://bryntum.com/products/calendar/docs/api/Calendar/model/ProjectModel#event-change)
|
|
365
|
+
* @param {object} event Event object
|
|
366
|
+
* @param {Scheduler.model.SchedulerProjectModel,any} event.source This project
|
|
367
|
+
* @param {Core.data.Store} event.store Affected store
|
|
368
|
+
* @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'`
|
|
369
|
+
* @param {Core.data.Model} event.record Changed record, for actions that affects exactly one record (`'update'`)
|
|
370
|
+
* @param {Core.data.Model[]} event.records Changed records, passed for all actions except `'removeAll'`
|
|
371
|
+
* @param {object} event.changes Passed for the `'update'` action, info on which record fields changed
|
|
372
|
+
*/
|
|
373
|
+
onChange: any;
|
|
374
|
+
/**
|
|
375
|
+
* Fired when the engine has finished its calculations and the results has been written back to the records.
|
|
376
|
+
* ...
|
|
377
|
+
* [View online docs...](https://bryntum.com/products/calendar/docs/api/Calendar/model/ProjectModel#event-dataReady)
|
|
378
|
+
* @param {object} event Event object
|
|
379
|
+
* @param {Scheduler.model.SchedulerProjectModel,any} event.source The project
|
|
380
|
+
* @param {boolean} event.isInitialCommit Flag that shows if this commit is initial
|
|
381
|
+
* @param {Set<any>} event.records Set of all [Model](https://bryntum.com/products/calendar/docs/api/Core/data/Model)s that were modified in the completed transaction. Use the [modifications](https://bryntum.com/products/calendar/docs/api/Core/data/Model#property-modifications) property of each Model to identify modified fields.
|
|
382
|
+
*/
|
|
383
|
+
onDataReady: any;
|
|
384
|
+
/**
|
|
385
|
+
* Create and append the underlying widget
|
|
386
|
+
*/
|
|
387
|
+
ngOnInit(): void;
|
|
388
|
+
/**
|
|
389
|
+
* Watch for changes
|
|
390
|
+
* @param changes
|
|
391
|
+
*/
|
|
392
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
393
|
+
/**
|
|
394
|
+
* Destroy the component
|
|
395
|
+
*/
|
|
396
|
+
ngOnDestroy(): void;
|
|
397
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BryntumCalendarProjectModelComponent, never>;
|
|
398
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BryntumCalendarProjectModelComponent, "bryntum-calendar-project-model", never, { "adjustDurationToDST": "adjustDurationToDST"; "assignmentModelClass": "assignmentModelClass"; "assignmentsData": "assignmentsData"; "assignmentStoreClass": "assignmentStoreClass"; "children": "children"; "dependenciesData": "dependenciesData"; "dependencyModelClass": "dependencyModelClass"; "dependencyStoreClass": "dependencyStoreClass"; "eventModelClass": "eventModelClass"; "eventsData": "eventsData"; "eventStoreClass": "eventStoreClass"; "expanded": "expanded"; "orderedParentIndex": "orderedParentIndex"; "parentIndex": "parentIndex"; "resourceModelClass": "resourceModelClass"; "resourcesData": "resourcesData"; "resourceStoreClass": "resourceStoreClass"; "resourceTimeRangesData": "resourceTimeRangesData"; "resourceTimeRangeStoreClass": "resourceTimeRangeStoreClass"; "silenceInitialCommit": "silenceInitialCommit"; "timeRangeModelClass": "timeRangeModelClass"; "timeRangesData": "timeRangesData"; "timeRangeStoreClass": "timeRangeStoreClass"; "toJSONResultFormat": "toJSONResultFormat"; "useRawData": "useRawData"; "assignments": "assignments"; "assignmentStore": "assignmentStore"; "dependencies": "dependencies"; "dependencyStore": "dependencyStore"; "events": "events"; "eventStore": "eventStore"; "id": "id"; "includeLegacyDataProperties": "includeLegacyDataProperties"; "isFullyLoaded": "isFullyLoaded"; "json": "json"; "parentId": "parentId"; "readOnly": "readOnly"; "remoteChildCount": "remoteChildCount"; "resources": "resources"; "resourceStore": "resourceStore"; "resourceTimeRanges": "resourceTimeRanges"; "resourceTimeRangeStore": "resourceTimeRangeStore"; "shouldSyncDataOnLoad": "shouldSyncDataOnLoad"; "stm": "stm"; "timeRanges": "timeRanges"; "timeRangeStore": "timeRangeStore"; "timeZone": "timeZone"; "allChildren": "allChildren"; "allUnfilteredChildren": "allUnfilteredChildren"; "descendantCount": "descendantCount"; "hasGeneratedId": "hasGeneratedId"; "inlineData": "inlineData"; "internalId": "internalId"; "isCommitting": "isCommitting"; "isCreating": "isCreating"; "isValid": "isValid"; "previousSiblingsTotalCount": "previousSiblingsTotalCount"; "visibleDescendantCount": "visibleDescendantCount"; }, { "onChange": "onChange"; "onDataReady": "onDataReady"; }, never, never>;
|
|
399
|
+
}
|