@bryntum/schedulerpro-vue-3-thin 7.3.0 → 7.3.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 +9 -9
- package/lib/chunks/{BFFz1c24.js → 7vz3cAx6.js} +6 -4
- package/lib/chunks/7vz3cAx6.js.map +1 -0
- package/lib/chunks/{oM3gO3yH.js → B1SaPsRu.js} +3 -1
- package/lib/chunks/B1SaPsRu.js.map +1 -0
- package/lib/chunks/B4dVznPx.js.map +1 -1
- package/lib/chunks/{Pb5GbfMi.js → B8GKehTJ.js} +6 -4
- package/lib/chunks/B8GKehTJ.js.map +1 -0
- package/lib/chunks/{CvNpXefN.js → BhXv58eE.js} +7 -5
- package/lib/chunks/BhXv58eE.js.map +1 -0
- package/lib/chunks/{DmFXOMJ5.js → BhfdqXGU.js} +6 -4
- package/lib/chunks/BhfdqXGU.js.map +1 -0
- package/lib/chunks/{b8yreHIz.js → Bk2bIVfG.js} +3 -1
- package/lib/chunks/Bk2bIVfG.js.map +1 -0
- package/lib/chunks/{s35t-2ke.js → C1vi1h_N.js} +6 -4
- package/lib/chunks/C1vi1h_N.js.map +1 -0
- package/lib/chunks/{CqtUB81W.js → CEQZr1q6.js} +3 -1
- package/lib/chunks/CEQZr1q6.js.map +1 -0
- package/lib/chunks/CPjow0gO.js.map +1 -1
- package/lib/chunks/{BNBuOpUp.js → Cb_akueu.js} +10 -8
- package/lib/chunks/Cb_akueu.js.map +1 -0
- package/lib/chunks/{BIkGnHve.js → Cc_DPp3S.js} +6 -4
- package/lib/chunks/Cc_DPp3S.js.map +1 -0
- package/lib/chunks/{Bp7aU5Ia.js → Cr5VTUbs.js} +11 -9
- package/lib/chunks/Cr5VTUbs.js.map +1 -0
- package/lib/chunks/{yF4wtntA.js → D-hmgVVF.js} +12 -10
- package/lib/chunks/D-hmgVVF.js.map +1 -0
- package/lib/chunks/{D1a3F6m-.js → D-v-Wqj4.js} +3 -1
- package/lib/chunks/D-v-Wqj4.js.map +1 -0
- package/lib/chunks/D0hJ3P6L.js.map +1 -1
- package/lib/chunks/DPA-xEW5.js.map +1 -1
- package/lib/chunks/{C3Dz-ovY.js → XQWZfDOm.js} +5 -3
- package/lib/chunks/XQWZfDOm.js.map +1 -0
- package/lib/chunks/{DdbMybqv.js → eKXSEOkn.js} +3 -1
- package/lib/chunks/eKXSEOkn.js.map +1 -0
- package/lib/chunks/{DjFBhm9P.js → edcDjaO2.js} +6 -4
- package/lib/chunks/edcDjaO2.js.map +1 -0
- package/lib/chunks/{p1r0F5YC.js → n2IZFQjR.js} +9 -7
- package/lib/chunks/n2IZFQjR.js.map +1 -0
- package/lib/chunks/{W-pa3HyX.js → zY4Qxi9x.js} +5 -3
- package/lib/chunks/zY4Qxi9x.js.map +1 -0
- package/lib/components/BryntumCalendarField.js +1 -1
- package/lib/components/BryntumConstraintTypePicker.js +1 -1
- package/lib/components/BryntumCostAccrualField.js +1 -1
- package/lib/components/BryntumDependencyTypePicker.js +1 -1
- package/lib/components/BryntumEffortField.js +1 -1
- package/lib/components/BryntumEndDateField.js +1 -1
- package/lib/components/BryntumModelCombo.js +1 -1
- package/lib/components/BryntumRateTableField.js +1 -1
- package/lib/components/BryntumResourceGrid.js +1 -1
- package/lib/components/BryntumResourceHistogram.js +1 -1
- package/lib/components/BryntumResourceTypeField.js +1 -1
- package/lib/components/BryntumResourceUtilization.js +1 -1
- package/lib/components/BryntumSchedulerPro.js +1 -1
- package/lib/components/BryntumSchedulerProBase.js +1 -1
- package/lib/components/BryntumSchedulingDirectionPicker.js +1 -1
- package/lib/components/BryntumSchedulingModePicker.js +1 -1
- package/lib/components/BryntumStartDateField.js +1 -1
- package/lib/components/BryntumTimeline.js +1 -1
- package/lib/index.js +18 -18
- package/package.json +1 -1
- package/src/components/BryntumCalendarEditor.vue +64 -106
- package/src/components/BryntumCalendarField.vue +81 -109
- package/src/components/BryntumCalendarFieldProps.ts +9 -0
- package/src/components/BryntumConstraintTypePicker.vue +81 -109
- package/src/components/BryntumConstraintTypePickerProps.ts +9 -0
- package/src/components/BryntumCostAccrualField.vue +81 -109
- package/src/components/BryntumCostAccrualFieldProps.ts +9 -0
- package/src/components/BryntumDependencyTypePicker.vue +81 -109
- package/src/components/BryntumDependencyTypePickerProps.ts +9 -0
- package/src/components/BryntumEffortField.vue +76 -102
- package/src/components/BryntumEffortFieldProps.ts +9 -0
- package/src/components/BryntumEndDateField.vue +80 -106
- package/src/components/BryntumEndDateFieldProps.ts +9 -0
- package/src/components/BryntumModelCombo.vue +81 -109
- package/src/components/BryntumModelComboProps.ts +9 -0
- package/src/components/BryntumRateTableField.vue +81 -109
- package/src/components/BryntumRateTableFieldProps.ts +9 -0
- package/src/components/BryntumResourceEditor.vue +64 -106
- package/src/components/BryntumResourceGrid.vue +529 -755
- package/src/components/BryntumResourceGridProps.ts +5 -0
- package/src/components/BryntumResourceHistogram.vue +773 -1091
- package/src/components/BryntumResourceHistogramProps.ts +5 -0
- package/src/components/BryntumResourceTypeField.vue +81 -109
- package/src/components/BryntumResourceTypeFieldProps.ts +9 -0
- package/src/components/BryntumResourceUtilization.vue +789 -1113
- package/src/components/BryntumResourceUtilizationProps.ts +5 -0
- package/src/components/BryntumSchedulerPro.vue +1613 -2195
- package/src/components/BryntumSchedulerProBase.vue +1613 -2195
- package/src/components/BryntumSchedulerProBaseProps.ts +5 -0
- package/src/components/BryntumSchedulerProProjectModel.vue +134 -187
- package/src/components/BryntumSchedulerProProjectModelProps.ts +8 -7
- package/src/components/BryntumSchedulerProProps.ts +5 -0
- package/src/components/BryntumSchedulingDirectionPicker.vue +81 -109
- package/src/components/BryntumSchedulingDirectionPickerProps.ts +9 -0
- package/src/components/BryntumSchedulingModePicker.vue +81 -109
- package/src/components/BryntumSchedulingModePickerProps.ts +9 -0
- package/src/components/BryntumStartDateField.vue +80 -106
- package/src/components/BryntumStartDateFieldProps.ts +9 -0
- package/src/components/BryntumTimeline.vue +1425 -1927
- package/src/components/BryntumTimelineProps.ts +5 -0
- package/src/components/BryntumVersionGrid.vue +527 -763
- package/lib/chunks/BFFz1c24.js.map +0 -1
- package/lib/chunks/BIkGnHve.js.map +0 -1
- package/lib/chunks/BNBuOpUp.js.map +0 -1
- package/lib/chunks/Bp7aU5Ia.js.map +0 -1
- package/lib/chunks/C3Dz-ovY.js.map +0 -1
- package/lib/chunks/CqtUB81W.js.map +0 -1
- package/lib/chunks/CvNpXefN.js.map +0 -1
- package/lib/chunks/D1a3F6m-.js.map +0 -1
- package/lib/chunks/DdbMybqv.js.map +0 -1
- package/lib/chunks/DjFBhm9P.js.map +0 -1
- package/lib/chunks/DmFXOMJ5.js.map +0 -1
- package/lib/chunks/Pb5GbfMi.js.map +0 -1
- package/lib/chunks/W-pa3HyX.js.map +0 -1
- package/lib/chunks/b8yreHIz.js.map +0 -1
- package/lib/chunks/oM3gO3yH.js.map +0 -1
- package/lib/chunks/p1r0F5YC.js.map +0 -1
- package/lib/chunks/s35t-2ke.js.map +0 -1
- package/lib/chunks/yF4wtntA.js.map +0 -1
|
@@ -940,6 +940,11 @@ export declare type BryntumSchedulerProBaseProps = {
|
|
|
940
940
|
* A [ProjectModel](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/model/ProjectModel) instance or a config object. The project holds all SchedulerPro data.
|
|
941
941
|
*/
|
|
942
942
|
project ? : ProjectModel|ProjectModelConfig|object
|
|
943
|
+
/**
|
|
944
|
+
* The project model class to use when creating the project instance. Override this to use a custom project
|
|
945
|
+
* model class. In SchedulerPro and Gantt, this is overridden to use their respective project model classes.
|
|
946
|
+
*/
|
|
947
|
+
projectModelClass ? : typeof ProjectModel
|
|
943
948
|
/**
|
|
944
949
|
* Accepts the following values:
|
|
945
950
|
* [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/view/SchedulerProBase#config-projectProgressReporting)
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
import { getCurrentInstance, onBeforeUnmount, onMounted, provide, ref, watch, toRaw } from 'vue';
|
|
12
12
|
|
|
13
|
-
import type { Base, DurationUnit, Model, ModelConfig, StateTrackingManager as CoreStateTrackingManager, Store, StoreConfig } from '@bryntum/core-thin';
|
|
13
|
+
import type { Base, DurationUnit, FetchCredentials, HttpMethod, Model, ModelConfig, StateTrackingManager as CoreStateTrackingManager, Store, StoreConfig } from '@bryntum/core-thin';
|
|
14
14
|
import type { AbstractCrudManager, CrudManagerRequestResponse, CrudManagerStoreDescriptor, LazyLoadCrudManagerRequestParams, ProjectModel as SchedulerProjectModel, ResourceTimeRangeModel, ResourceTimeRangeModelConfig, ResourceTimeRangeStore, ResourceTimeRangeStoreConfig, TimeRangeStore, TimeSpan, TimeSpanConfig } from '@bryntum/scheduler-thin';
|
|
15
15
|
import type { AssignmentModel, AssignmentModelConfig, AssignmentStore, AssignmentStoreConfig, CalendarManagerStore, CalendarManagerStoreConfig, CalendarModel, CalendarModelConfig, DependencyModel, DependencyModelConfig, DependencyStore, DependencyStoreConfig, EventModel, EventModelConfig, EventStore, EventStoreConfig, ProjectModelListeners, ResourceAllocationInfo, ResourceModel, ResourceModelConfig, ResourceStore, ResourceStoreConfig, StateTrackingManagerConfig } from '@bryntum/schedulerpro-thin';
|
|
16
16
|
import { ProjectModel } from '@bryntum/schedulerpro-thin';
|
|
@@ -279,12 +279,11 @@ defineProps<{
|
|
|
279
279
|
* If set to `true`, or a config object, this makes the CrudManager load records only when needed. When a record
|
|
280
280
|
* or a date range that is not already loaded is requested, a load request will be made to the specified URL.
|
|
281
281
|
* More more details about lazy loading, see the [guide](https://bryntum.com/products/schedulerpro/docs/api/Grid/guides/data/lazyloading.md)
|
|
282
|
-
* @param {
|
|
283
|
-
* @param {number} lazyLoad.chunkSize The number of records to be loaded before and after the requested index (only affects the ResourceStore).
|
|
282
|
+
* @param {number} chunkSize The number of records to be loaded before and after the requested index (only affects the ResourceStore).
|
|
284
283
|
* @param {DurationUnit} bufferUnit Used together with bufferAmount to calculate the start and end dates of each load request. The value is added to the current visible start or end date. Defaults to the visible time span length (does not affect ResourceStore).
|
|
285
284
|
* @param {number} bufferAmount See `bufferUnit`
|
|
286
285
|
*/
|
|
287
|
-
lazyLoad ? : Boolean|{
|
|
286
|
+
lazyLoad ? : Boolean|{ chunkSize: number, bufferUnit: DurationUnit, bufferAmount: number }
|
|
288
287
|
/**
|
|
289
288
|
* The listener set for this object.
|
|
290
289
|
* [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/model/ProjectModel#config-listeners)
|
|
@@ -551,18 +550,20 @@ defineProps<{
|
|
|
551
550
|
* [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/model/ProjectModel#config-transport)
|
|
552
551
|
* @property {object} [transport.load] Load requests configuration:
|
|
553
552
|
* @property {string} [transport.load.url] URL to request for data loading.
|
|
554
|
-
* @property {
|
|
553
|
+
* @property {HttpMethod} [transport.load.method] HTTP method to be used for load requests.
|
|
554
|
+
* @property {FetchCredentials} [transport.load.credentials] The request credentials option to use for load requests. Corresponds to the standard <a href="https://developer.mozilla.org/en-US/docs/Web/API/Request/credentials">Fetch API `credentials`</a> option.
|
|
555
555
|
* @property {string} [transport.load.paramName] Name of the parameter that will contain a serialized `load` request. The value is mandatory for requests using `GET` method (default for `load`) so if the value is not provided `data` string is used as default. This value is optional for HTTP methods like `POST` and `PUT`, the request body will be used for data transferring in these cases.
|
|
556
556
|
* @property {object} [transport.load.params] An object containing extra HTTP parameters to pass to the server when sending a `load` request. ```javascript transport : { load : { url : 'http://mycool-server.com/load.php', // HTTP request parameter used to pass serialized "load"-requests paramName : 'data', // pass extra HTTP request parameter // so resulting URL will look like: http://mycool-server.com/load.php?userId=123456&data=... params : { userId : '123456' } }, ... } ```
|
|
557
557
|
* @property {Record<string, string>} [transport.load.headers] An object containing headers to pass to each server request. ```javascript transport : { load : { url : 'http://mycool-server.com/load.php', // HTTP request parameter used to pass serialized "load"-requests paramName : 'data', // specify Content-Type for "load" requests headers : { 'Content-Type' : 'application/json' } }, ... } ```
|
|
558
558
|
* @property {object} [transport.sync] Sync requests (`sync` in further text) configuration:
|
|
559
559
|
* @property {string} [transport.sync.url] URL to request for `sync`.
|
|
560
|
-
* @property {
|
|
560
|
+
* @property {HttpMethod} [transport.sync.method] HTTP request method to be used for `sync`.
|
|
561
|
+
* @property {FetchCredentials} [transport.sync.credentials] The request credentials option to use for sync requests. Corresponds to the standard <a href="https://developer.mozilla.org/en-US/docs/Web/API/Request/credentials">Fetch API `credentials`</a> option.
|
|
561
562
|
* @property {string} [transport.sync.paramName] Name of the parameter in which `sync` data will be transferred. This value is optional for requests using methods like `POST` and `PUT`, the request body will be used for data transferring in this case (default for `sync`). And the value is mandatory for requests using `GET` method (if the value is not provided `data` string will be used as fallback).
|
|
562
563
|
* @property {object} [transport.sync.params] HTTP parameters to pass with an HTTP request handling `sync`. ```javascript transport : { sync : { url : 'http://mycool-server.com/sync.php', // extra HTTP request parameter params : { userId : '123456' } }, ... } ```
|
|
563
564
|
* @property {Record<string, string>} [transport.sync.headers] HTTP headers to pass with an HTTP request handling `sync`. ```javascript transport : { sync : { url : 'http://mycool-server.com/sync.php', // specify Content-Type for "sync" requests headers : { 'Content-Type' : 'application/json' } }, ... } ```
|
|
564
565
|
*/
|
|
565
|
-
transport ? : { load?: { url?: string, method?:
|
|
566
|
+
transport ? : { load?: { url?: string, method?: HttpMethod, credentials?: FetchCredentials, paramName?: string, params?: object, headers?: Record<string, string> }, sync?: { url?: string, method?: HttpMethod, credentials?: FetchCredentials, paramName?: string, params?: object, headers?: Record<string, string> } }
|
|
566
567
|
/**
|
|
567
568
|
* By default, the stores of a project use the raw data objects passed to them as the data source for their
|
|
568
569
|
* records if data is loaded remotely (using an `AjaxStore` or a `CrudManager`). For data supplied inline,
|
|
@@ -594,61 +595,51 @@ const emit = defineEmits<{
|
|
|
594
595
|
* Fires before an object is destroyed.
|
|
595
596
|
* @param {string} e Event name
|
|
596
597
|
* @param {object} params Event parameters
|
|
597
|
-
* @param {
|
|
598
|
-
* @param {
|
|
599
|
-
* @param {object} params.params.event Event object
|
|
600
|
-
* @param {Core.Base} params.params.event.source The Object that is being destroyed.
|
|
598
|
+
* @param {object} params.event Event object
|
|
599
|
+
* @param {Core.Base} params.event.source The Object that is being destroyed.
|
|
601
600
|
*/
|
|
602
601
|
(e: 'beforeDestroy', params: ((event: { source: Base }) => void)|string): void
|
|
603
602
|
/**
|
|
604
603
|
* Fires before [load request](https://bryntum.com/products/schedulerpro/docs/api/Scheduler/crud/AbstractCrudManagerMixin#function-load) is sent. Return `false` to cancel load request.
|
|
605
604
|
* @param {string} e Event name
|
|
606
605
|
* @param {object} params Event parameters
|
|
607
|
-
* @param {
|
|
608
|
-
* @param {
|
|
609
|
-
* @param {object} params.
|
|
610
|
-
* @param {Scheduler.crud.AbstractCrudManager} params.params.event.source The CRUD manager.
|
|
611
|
-
* @param {object} params.params.event.pack The data package which contains data for all stores managed by the crud manager.
|
|
606
|
+
* @param {object} params.event Event object
|
|
607
|
+
* @param {Scheduler.crud.AbstractCrudManager} params.event.source The CRUD manager.
|
|
608
|
+
* @param {object} params.event.pack The data package which contains data for all stores managed by the crud manager.
|
|
612
609
|
*/
|
|
613
|
-
(e: 'beforeLoad', params: ((event: { source: AbstractCrudManager, pack: object }) =>
|
|
610
|
+
(e: 'beforeLoad', params: ((event: { source: AbstractCrudManager, pack: object }) => boolean|void)|string): boolean|void
|
|
614
611
|
/**
|
|
615
612
|
* Fires before loaded data get applied to the stores. Return `false` to prevent data applying.
|
|
616
613
|
* This event can be used for server data preprocessing. To achieve it user can modify the `response` object.
|
|
617
614
|
* @param {string} e Event name
|
|
618
615
|
* @param {object} params Event parameters
|
|
619
|
-
* @param {
|
|
620
|
-
* @param {
|
|
621
|
-
* @param {object} params.
|
|
622
|
-
* @param {
|
|
623
|
-
* @param {object} params.params.event.response The decoded server response object.
|
|
624
|
-
* @param {object} params.params.event.options Options provided to the [load](https://bryntum.com/products/schedulerpro/docs/api/Scheduler/crud/AbstractCrudManagerMixin#function-load) method.
|
|
616
|
+
* @param {object} params.event Event object
|
|
617
|
+
* @param {Scheduler.crud.AbstractCrudManager} params.event.source The CRUD manager.
|
|
618
|
+
* @param {object} params.event.response The decoded server response object.
|
|
619
|
+
* @param {object} params.event.options Options provided to the [load](https://bryntum.com/products/schedulerpro/docs/api/Scheduler/crud/AbstractCrudManagerMixin#function-load) method.
|
|
625
620
|
*/
|
|
626
|
-
(e: 'beforeLoadApply', params: ((event: { source: AbstractCrudManager, response: object, options: object }) =>
|
|
621
|
+
(e: 'beforeLoadApply', params: ((event: { source: AbstractCrudManager, response: object, options: object }) => boolean|void)|string): boolean|void
|
|
627
622
|
/**
|
|
628
623
|
* Fires before server response gets applied to the stores. Return `false` to prevent data applying.
|
|
629
624
|
* This event can be used for server data preprocessing. To achieve it user can modify the `response` object.
|
|
630
625
|
* @param {string} e Event name
|
|
631
626
|
* @param {object} params Event parameters
|
|
632
|
-
* @param {
|
|
633
|
-
* @param {
|
|
634
|
-
* @param {
|
|
635
|
-
* @param {
|
|
636
|
-
* @param {'sync','load'} params.params.event.requestType The request type (`sync` or `load`).
|
|
637
|
-
* @param {object} params.params.event.response The decoded server response object.
|
|
627
|
+
* @param {object} params.event Event object
|
|
628
|
+
* @param {Scheduler.crud.AbstractCrudManager} params.event.source The CRUD manager.
|
|
629
|
+
* @param {'sync','load'} params.event.requestType The request type (`sync` or `load`).
|
|
630
|
+
* @param {object} params.event.response The decoded server response object.
|
|
638
631
|
*/
|
|
639
|
-
(e: 'beforeResponseApply', params: ((event: { source: AbstractCrudManager, requestType: 'sync'|'load', response: object }) =>
|
|
632
|
+
(e: 'beforeResponseApply', params: ((event: { source: AbstractCrudManager, requestType: 'sync'|'load', response: object }) => boolean|void)|string): boolean|void
|
|
640
633
|
/**
|
|
641
634
|
* Fires before a request is sent to the server.
|
|
642
635
|
* [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/model/ProjectModel#event-beforeSend)
|
|
643
636
|
* @param {string} e Event name
|
|
644
637
|
* @param {object} params Event parameters
|
|
645
|
-
* @param {
|
|
646
|
-
* @param {
|
|
647
|
-
* @param {object} params.params
|
|
648
|
-
* @param {
|
|
649
|
-
* @param {object} params.
|
|
650
|
-
* @param {'sync','load'} params.params.event.requestType CrudManager request type (`load`/`sync`)
|
|
651
|
-
* @param {object} params.params.event.requestConfig Configuration object for Ajax request call
|
|
638
|
+
* @param {object} params.event Event object
|
|
639
|
+
* @param {Scheduler.crud.AbstractCrudManager} params.event.crudManager The CRUD manager.
|
|
640
|
+
* @param {object} params.event.params HTTP request params to be passed in the request URL.
|
|
641
|
+
* @param {'sync','load'} params.event.requestType CrudManager request type (`load`/`sync`)
|
|
642
|
+
* @param {object} params.event.requestConfig Configuration object for Ajax request call
|
|
652
643
|
*/
|
|
653
644
|
(e: 'beforeSend', params: ((event: { crudManager: AbstractCrudManager, params: object, requestType: 'sync'|'load', requestConfig: object }) => Promise<void>)|string): Promise<void>
|
|
654
645
|
/**
|
|
@@ -656,11 +647,9 @@ const emit = defineEmits<{
|
|
|
656
647
|
* [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/model/ProjectModel#event-beforeSync)
|
|
657
648
|
* @param {string} e Event name
|
|
658
649
|
* @param {object} params Event parameters
|
|
659
|
-
* @param {
|
|
660
|
-
* @param {
|
|
661
|
-
* @param {object} params.
|
|
662
|
-
* @param {Scheduler.crud.AbstractCrudManager} params.params.event.source The CRUD manager.
|
|
663
|
-
* @param {object} params.params.event.pack The data package which contains data for all stores managed by the crud manager.
|
|
650
|
+
* @param {object} params.event Event object
|
|
651
|
+
* @param {Scheduler.crud.AbstractCrudManager} params.event.source The CRUD manager.
|
|
652
|
+
* @param {object} params.event.pack The data package which contains data for all stores managed by the crud manager.
|
|
664
653
|
*/
|
|
665
654
|
(e: 'beforeSync', params: ((event: { source: AbstractCrudManager, pack: object }) => Promise<boolean>|boolean|void)|string): Promise<boolean>|boolean|void
|
|
666
655
|
/**
|
|
@@ -668,23 +657,19 @@ const emit = defineEmits<{
|
|
|
668
657
|
* This event can be used for server data preprocessing. To achieve it user can modify the `response` object.
|
|
669
658
|
* @param {string} e Event name
|
|
670
659
|
* @param {object} params Event parameters
|
|
671
|
-
* @param {
|
|
672
|
-
* @param {
|
|
673
|
-
* @param {object} params.
|
|
674
|
-
* @param {Scheduler.crud.AbstractCrudManager} params.params.event.source The CRUD manager.
|
|
675
|
-
* @param {object} params.params.event.response The decoded server response object.
|
|
660
|
+
* @param {object} params.event Event object
|
|
661
|
+
* @param {Scheduler.crud.AbstractCrudManager} params.event.source The CRUD manager.
|
|
662
|
+
* @param {object} params.event.response The decoded server response object.
|
|
676
663
|
*/
|
|
677
|
-
(e: 'beforeSyncApply', params: ((event: { source: AbstractCrudManager, response: object }) =>
|
|
664
|
+
(e: 'beforeSyncApply', params: ((event: { source: AbstractCrudManager, response: object }) => boolean|void)|string): boolean|void
|
|
678
665
|
/**
|
|
679
666
|
* Fires when any other event is fired from the object.
|
|
680
667
|
* [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/model/ProjectModel#event-catchAll)
|
|
681
668
|
* @param {string} e Event name
|
|
682
669
|
* @param {object} params Event parameters
|
|
683
|
-
* @param {
|
|
684
|
-
* @param {
|
|
685
|
-
* @param {
|
|
686
|
-
* @param {{[key: string]: any, type: string}} params.params.event.event The Object that contains event details
|
|
687
|
-
* @param {string} params.params.event.event.type The type of the event which is caught by the listener
|
|
670
|
+
* @param {object} params.event Event object
|
|
671
|
+
* @param {{[key: string]: any, type: string}} params.event.event The Object that contains event details
|
|
672
|
+
* @param {string} params.event.event.type The type of the event which is caught by the listener
|
|
688
673
|
*/
|
|
689
674
|
(e: 'catchAll', params: ((event: {[key: string]: any, type: string}) => void)|string): void
|
|
690
675
|
/**
|
|
@@ -692,29 +677,25 @@ const emit = defineEmits<{
|
|
|
692
677
|
* [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/model/ProjectModel#event-change)
|
|
693
678
|
* @param {string} e Event name
|
|
694
679
|
* @param {object} params Event parameters
|
|
695
|
-
* @param {
|
|
696
|
-
* @param {
|
|
697
|
-
* @param {
|
|
698
|
-
* @param {
|
|
699
|
-
* @param {Core.data.
|
|
700
|
-
* @param {
|
|
701
|
-
* @param {
|
|
702
|
-
* @param {Core.data.Model[]} params.params.event.records Changed records, passed for all actions except `'removeAll'`
|
|
703
|
-
* @param {object} params.params.event.changes Passed for the `'update'` action, info on which record fields changed
|
|
680
|
+
* @param {object} params.event Event object
|
|
681
|
+
* @param {Scheduler.model.SchedulerProjectModel,any} params.event.source This project
|
|
682
|
+
* @param {Core.data.Store} params.event.store Affected store
|
|
683
|
+
* @param {'remove','removeAll','add','clearchanges','filter','update','dataset','replace'} params.event.action Name of action which triggered the change. May be one of: * `'remove'` * `'removeAll'` * `'add'` * `'clearchanges'` * `'filter'` * `'update'` * `'dataset'` * `'replace'`
|
|
684
|
+
* @param {Core.data.Model} params.event.record Changed record, for actions that affects exactly one record (`'update'`)
|
|
685
|
+
* @param {Core.data.Model[]} params.event.records Changed records, passed for all actions except `'removeAll'`
|
|
686
|
+
* @param {object} params.event.changes Passed for the `'update'` action, info on which record fields changed
|
|
704
687
|
*/
|
|
705
688
|
(e: 'change', params: ((event: { source: SchedulerProjectModel|any, store: Store, action: 'remove'|'removeAll'|'add'|'clearchanges'|'filter'|'update'|'dataset'|'replace', record: Model, records: Model[], changes: object }) => void)|string): void
|
|
706
689
|
/**
|
|
707
690
|
* Fired when the Engine detects a computation cycle.
|
|
708
691
|
* @param {string} e Event name
|
|
709
692
|
* @param {object} params Event parameters
|
|
710
|
-
* @param {
|
|
711
|
-
* @param {object} params.
|
|
712
|
-
* @param {
|
|
713
|
-
* @param {object} params.
|
|
714
|
-
* @param {Function} params.
|
|
715
|
-
* @param {
|
|
716
|
-
* @param {Function} params.params.event.schedulingIssue.getResolutions Returns possible resolutions
|
|
717
|
-
* @param {Function} params.params.event.continueWithResolutionResult Function to call after a resolution is chosen to proceed with the Engine calculations: ```javascript project.on('cycle', ({ continueWithResolutionResult }) => { // cancel changes in case of a cycle continueWithResolutionResult(EffectResolutionResult.Cancel); }) ``` Where `EffectResolutionResult.Cancel` results in cancelling the changes.
|
|
693
|
+
* @param {object} params.event Event object
|
|
694
|
+
* @param {object} params.event.schedulingIssue Scheduling error describing the case:
|
|
695
|
+
* @param {Function} params.event.schedulingIssue.getDescription Returns the cycle description
|
|
696
|
+
* @param {object} params.event.schedulingIssue.cycle Object providing the cycle info
|
|
697
|
+
* @param {Function} params.event.schedulingIssue.getResolutions Returns possible resolutions
|
|
698
|
+
* @param {Function} params.event.continueWithResolutionResult Function to call after a resolution is chosen to proceed with the Engine calculations: ```javascript project.on('cycle', ({ continueWithResolutionResult }) => { // cancel changes in case of a cycle continueWithResolutionResult(EffectResolutionResult.Cancel); }) ``` Where `EffectResolutionResult.Cancel` results in cancelling the changes.
|
|
718
699
|
*/
|
|
719
700
|
(e: 'cycle', params: ((event: { schedulingIssue: { getDescription: Function, cycle: object, getResolutions: Function }, continueWithResolutionResult: Function }) => void)|string): void
|
|
720
701
|
/**
|
|
@@ -722,22 +703,18 @@ const emit = defineEmits<{
|
|
|
722
703
|
* [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/model/ProjectModel#event-dataReady)
|
|
723
704
|
* @param {string} e Event name
|
|
724
705
|
* @param {object} params Event parameters
|
|
725
|
-
* @param {
|
|
726
|
-
* @param {
|
|
727
|
-
* @param {
|
|
728
|
-
* @param {
|
|
729
|
-
* @param {boolean} params.params.event.isInitialCommit Flag that shows if this commit is initial
|
|
730
|
-
* @param {Set<any>} params.params.event.records Set of all [Model](https://bryntum.com/products/schedulerpro/docs/api/Core/data/Model)s that were modified in the completed transaction. Use the [modifications](https://bryntum.com/products/schedulerpro/docs/api/Core/data/Model#property-modifications) property of each Model to identify modified fields.
|
|
706
|
+
* @param {object} params.event Event object
|
|
707
|
+
* @param {SchedulerPro.model.ProjectModel} params.event.source The project
|
|
708
|
+
* @param {boolean} params.event.isInitialCommit Flag that shows if this commit is initial
|
|
709
|
+
* @param {Set<any>} params.event.records Set of all [Model](https://bryntum.com/products/schedulerpro/docs/api/Core/data/Model)s that were modified in the completed transaction. Use the [modifications](https://bryntum.com/products/schedulerpro/docs/api/Core/data/Model#property-modifications) property of each Model to identify modified fields.
|
|
731
710
|
*/
|
|
732
711
|
(e: 'dataReady', params: ((event: { source: ProjectModel, isInitialCommit: boolean, records: Set<any> }) => void)|string): void
|
|
733
712
|
/**
|
|
734
713
|
* Fires when an object is destroyed.
|
|
735
714
|
* @param {string} e Event name
|
|
736
715
|
* @param {object} params Event parameters
|
|
737
|
-
* @param {
|
|
738
|
-
* @param {
|
|
739
|
-
* @param {object} params.params.event Event object
|
|
740
|
-
* @param {Core.Base} params.params.event.source The Object that is being destroyed.
|
|
716
|
+
* @param {object} params.event Event object
|
|
717
|
+
* @param {Core.Base} params.event.source The Object that is being destroyed.
|
|
741
718
|
*/
|
|
742
719
|
(e: 'destroy', params: ((event: { source: Base }) => void)|string): void
|
|
743
720
|
/**
|
|
@@ -745,14 +722,12 @@ const emit = defineEmits<{
|
|
|
745
722
|
* not provide any working periods of time which makes the calendar usage impossible.
|
|
746
723
|
* @param {string} e Event name
|
|
747
724
|
* @param {object} params Event parameters
|
|
748
|
-
* @param {
|
|
749
|
-
* @param {object} params.
|
|
750
|
-
* @param {
|
|
751
|
-
* @param {
|
|
752
|
-
* @param {Function} params.
|
|
753
|
-
* @param {Function} params.
|
|
754
|
-
* @param {Function} params.params.event.schedulingIssue.getResolutions Returns possible resolutions
|
|
755
|
-
* @param {Function} params.params.event.continueWithResolutionResult Function to call after a resolution is chosen to proceed with the Engine calculations: ```javascript project.on('emptyCalendar', ({ schedulingIssue, continueWithResolutionResult }) => { // apply the first resolution and continue schedulingIssue.getResolutions()[0].resolve(); continueWithResolutionResult(EffectResolutionResult.Resume); }) ```
|
|
725
|
+
* @param {object} params.event Event object
|
|
726
|
+
* @param {object} params.event.schedulingIssue Scheduling error describing the case:
|
|
727
|
+
* @param {Function} params.event.schedulingIssue.getDescription Returns the error description
|
|
728
|
+
* @param {Function} params.event.schedulingIssue.getCalendar Returns the calendar that must be fixed
|
|
729
|
+
* @param {Function} params.event.schedulingIssue.getResolutions Returns possible resolutions
|
|
730
|
+
* @param {Function} params.event.continueWithResolutionResult Function to call after a resolution is chosen to proceed with the Engine calculations: ```javascript project.on('emptyCalendar', ({ schedulingIssue, continueWithResolutionResult }) => { // apply the first resolution and continue schedulingIssue.getResolutions()[0].resolve(); continueWithResolutionResult(EffectResolutionResult.Resume); }) ```
|
|
756
731
|
*/
|
|
757
732
|
(e: 'emptyCalendar', params: ((event: { schedulingIssue: { getDescription: Function, getCalendar: Function, getResolutions: Function }, continueWithResolutionResult: Function }) => void)|string): void
|
|
758
733
|
/**
|
|
@@ -760,24 +735,20 @@ const emit = defineEmits<{
|
|
|
760
735
|
* [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/model/ProjectModel#event-hasChanges)
|
|
761
736
|
* @param {string} e Event name
|
|
762
737
|
* @param {object} params Event parameters
|
|
763
|
-
* @param {
|
|
764
|
-
* @param {
|
|
765
|
-
* @param {object} params.params.event Event object
|
|
766
|
-
* @param {Scheduler.crud.AbstractCrudManager} params.params.event.source The CRUD manager.
|
|
738
|
+
* @param {object} params.event Event object
|
|
739
|
+
* @param {Scheduler.crud.AbstractCrudManager} params.event.source The CRUD manager.
|
|
767
740
|
*/
|
|
768
741
|
(e: 'hasChanges', params: ((event: { source: AbstractCrudManager }) => void)|string): void
|
|
769
742
|
/**
|
|
770
743
|
* Fires on successful [load request](https://bryntum.com/products/schedulerpro/docs/api/Scheduler/crud/AbstractCrudManagerMixin#function-load) completion after data gets loaded to the stores.
|
|
771
744
|
* @param {string} e Event name
|
|
772
745
|
* @param {object} params Event parameters
|
|
773
|
-
* @param {
|
|
774
|
-
* @param {
|
|
775
|
-
* @param {object} params.
|
|
776
|
-
* @param {
|
|
777
|
-
* @param {object} params.
|
|
778
|
-
* @param {
|
|
779
|
-
* @param {object} params.params.event.requestOptions The request options passed to the request.
|
|
780
|
-
* @param {Response} params.params.event.rawResponse The native Response object
|
|
746
|
+
* @param {object} params.event Event object
|
|
747
|
+
* @param {Scheduler.crud.AbstractCrudManager} params.event.source The CRUD manager.
|
|
748
|
+
* @param {object} params.event.response The decoded server response object.
|
|
749
|
+
* @param {object} params.event.responseOptions [DEPRECATED] see `requestOptions`
|
|
750
|
+
* @param {object} params.event.requestOptions The request options passed to the request.
|
|
751
|
+
* @param {Response} params.event.rawResponse The native Response object
|
|
781
752
|
*/
|
|
782
753
|
(e: 'load', params: ((event: { source: AbstractCrudManager, response: object, responseOptions: object, requestOptions: object, rawResponse: Response }) => void)|string): void
|
|
783
754
|
/**
|
|
@@ -785,26 +756,22 @@ const emit = defineEmits<{
|
|
|
785
756
|
* listener or due to incomplete prior load request.
|
|
786
757
|
* @param {string} e Event name
|
|
787
758
|
* @param {object} params Event parameters
|
|
788
|
-
* @param {
|
|
789
|
-
* @param {
|
|
790
|
-
* @param {object} params.
|
|
791
|
-
* @param {Scheduler.crud.AbstractCrudManager} params.params.event.source The CRUD manager.
|
|
792
|
-
* @param {object} params.params.event.pack The data package which contains data for all stores managed by the crud manager.
|
|
759
|
+
* @param {object} params.event Event object
|
|
760
|
+
* @param {Scheduler.crud.AbstractCrudManager} params.event.source The CRUD manager.
|
|
761
|
+
* @param {object} params.event.pack The data package which contains data for all stores managed by the crud manager.
|
|
793
762
|
*/
|
|
794
763
|
(e: 'loadCanceled', params: ((event: { source: AbstractCrudManager, pack: object }) => void)|string): void
|
|
795
764
|
/**
|
|
796
765
|
* Fires when a [load request](https://bryntum.com/products/schedulerpro/docs/api/Scheduler/crud/AbstractCrudManagerMixin#function-load) fails.
|
|
797
766
|
* @param {string} e Event name
|
|
798
767
|
* @param {object} params Event parameters
|
|
799
|
-
* @param {
|
|
800
|
-
* @param {
|
|
801
|
-
* @param {object} params.
|
|
802
|
-
* @param {
|
|
803
|
-
* @param {object} params.
|
|
804
|
-
* @param {
|
|
805
|
-
* @param {
|
|
806
|
-
* @param {object} params.params.event.requestOptions The request options passed to the request.
|
|
807
|
-
* @param {Response} params.params.event.rawResponse The native Response object
|
|
768
|
+
* @param {object} params.event Event object
|
|
769
|
+
* @param {Scheduler.crud.AbstractCrudManager} params.event.source The CRUD manager instance.
|
|
770
|
+
* @param {object} params.event.response The decoded server response object.
|
|
771
|
+
* @param {string} params.event.responseText The raw server response text
|
|
772
|
+
* @param {object} params.event.responseOptions [DEPRECATED] see `requestOptions`
|
|
773
|
+
* @param {object} params.event.requestOptions The request options passed to the request.
|
|
774
|
+
* @param {Response} params.event.rawResponse The native Response object
|
|
808
775
|
*/
|
|
809
776
|
(e: 'loadFail', params: ((event: { source: AbstractCrudManager, response: object, responseText: string, responseOptions: object, requestOptions: object, rawResponse: Response }) => void)|string): void
|
|
810
777
|
/**
|
|
@@ -814,54 +781,46 @@ const emit = defineEmits<{
|
|
|
814
781
|
* [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/model/ProjectModel#event-noChanges)
|
|
815
782
|
* @param {string} e Event name
|
|
816
783
|
* @param {object} params Event parameters
|
|
817
|
-
* @param {
|
|
818
|
-
* @param {
|
|
819
|
-
* @param {object} params.params.event Event object
|
|
820
|
-
* @param {Scheduler.crud.AbstractCrudManager} params.params.event.source The CRUD manager.
|
|
784
|
+
* @param {object} params.event Event object
|
|
785
|
+
* @param {Scheduler.crud.AbstractCrudManager} params.event.source The CRUD manager.
|
|
821
786
|
*/
|
|
822
787
|
(e: 'noChanges', params: ((event: { source: AbstractCrudManager }) => void)|string): void
|
|
823
788
|
/**
|
|
824
789
|
* Fired during the Engine calculation if [enableProgressNotifications](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/model/ProjectModel#config-enableProgressNotifications) config is `true`
|
|
825
790
|
* @param {string} e Event name
|
|
826
791
|
* @param {object} params Event parameters
|
|
827
|
-
* @param {
|
|
828
|
-
* @param {
|
|
829
|
-
* @param {
|
|
830
|
-
* @param {
|
|
831
|
-
* @param {
|
|
832
|
-
* @param {number} params.params.event.remaining The number of remaining operations
|
|
833
|
-
* @param {'storePopulation','propagating'} params.params.event.phase The phase of the calculation, either 'storePopulation' when data is getting loaded, or 'propagating' when data is getting calculated
|
|
792
|
+
* @param {object} params.event Event object
|
|
793
|
+
* @param {SchedulerPro.model.ProjectModel} params.event.source The owning project
|
|
794
|
+
* @param {number} params.event.total The total number of operations
|
|
795
|
+
* @param {number} params.event.remaining The number of remaining operations
|
|
796
|
+
* @param {'storePopulation','propagating'} params.event.phase The phase of the calculation, either 'storePopulation' when data is getting loaded, or 'propagating' when data is getting calculated
|
|
834
797
|
*/
|
|
835
798
|
(e: 'progress', params: ((event: { source: ProjectModel, total: number, remaining: number, phase: 'storePopulation'|'propagating' }) => void)|string): void
|
|
836
799
|
/**
|
|
837
800
|
* Fires on successful request completion after data gets applied to the stores.
|
|
838
801
|
* @param {string} e Event name
|
|
839
802
|
* @param {object} params Event parameters
|
|
840
|
-
* @param {
|
|
841
|
-
* @param {
|
|
842
|
-
* @param {
|
|
843
|
-
* @param {
|
|
844
|
-
* @param {
|
|
845
|
-
* @param {object} params.
|
|
846
|
-
* @param {
|
|
847
|
-
* @param {object} params.params.event.requestOptions The request options passed to the request.
|
|
848
|
-
* @param {Response} params.params.event.rawResponse The native Response object
|
|
803
|
+
* @param {object} params.event Event object
|
|
804
|
+
* @param {Scheduler.crud.AbstractCrudManager} params.event.source The CRUD manager.
|
|
805
|
+
* @param {'sync','load'} params.event.requestType The request type (`sync` or `load`).
|
|
806
|
+
* @param {object} params.event.response The decoded server response object.
|
|
807
|
+
* @param {object} params.event.responseOptions [DEPRECATED] see `requestOptions`
|
|
808
|
+
* @param {object} params.event.requestOptions The request options passed to the request.
|
|
809
|
+
* @param {Response} params.event.rawResponse The native Response object
|
|
849
810
|
*/
|
|
850
811
|
(e: 'requestDone', params: ((event: { source: AbstractCrudManager, requestType: 'sync'|'load', response: object, responseOptions: object, requestOptions: object, rawResponse: Response }) => void)|string): void
|
|
851
812
|
/**
|
|
852
813
|
* Fires when a request fails.
|
|
853
814
|
* @param {string} e Event name
|
|
854
815
|
* @param {object} params Event parameters
|
|
855
|
-
* @param {
|
|
856
|
-
* @param {
|
|
857
|
-
* @param {
|
|
858
|
-
* @param {
|
|
859
|
-
* @param {
|
|
860
|
-
* @param {object} params.
|
|
861
|
-
* @param {
|
|
862
|
-
* @param {
|
|
863
|
-
* @param {object} params.params.event.requestOptions The request options passed to the request.
|
|
864
|
-
* @param {Response} params.params.event.rawResponse The native Response object
|
|
816
|
+
* @param {object} params.event Event object
|
|
817
|
+
* @param {Scheduler.crud.AbstractCrudManager} params.event.source The CRUD manager instance.
|
|
818
|
+
* @param {'sync','load'} params.event.requestType The request type (`sync` or `load`).
|
|
819
|
+
* @param {object} params.event.response The decoded server response object.
|
|
820
|
+
* @param {string} params.event.responseText The raw server response text
|
|
821
|
+
* @param {object} params.event.responseOptions [DEPRECATED] see `requestOptions`
|
|
822
|
+
* @param {object} params.event.requestOptions The request options passed to the request.
|
|
823
|
+
* @param {Response} params.event.rawResponse The native Response object
|
|
865
824
|
*/
|
|
866
825
|
(e: 'requestFail', params: ((event: { source: AbstractCrudManager, requestType: 'sync'|'load', response: object, responseText: string, responseOptions: object, requestOptions: object, rawResponse: Response }) => void)|string): void
|
|
867
826
|
/**
|
|
@@ -869,78 +828,66 @@ const emit = defineEmits<{
|
|
|
869
828
|
* new revision.
|
|
870
829
|
* @param {string} e Event name
|
|
871
830
|
* @param {object} params Event parameters
|
|
872
|
-
* @param {
|
|
873
|
-
* @param {
|
|
874
|
-
* @param {
|
|
875
|
-
* @param {string} params.
|
|
876
|
-
* @param {
|
|
877
|
-
* @param {string} params.params.event.clientId ID of the client instance. Used to distinguish own revisions from the broadcast channel
|
|
878
|
-
* @param {object} params.params.event.changes Object with changes constituting revision
|
|
831
|
+
* @param {object} params.event Event object
|
|
832
|
+
* @param {string} params.event.localRevisionId ID of the local revision. Backend should send it in the broadcast channel
|
|
833
|
+
* @param {string} [params.event.conflictResolutionFor] ID of the revision with a conflict which was resolved by this revision
|
|
834
|
+
* @param {string} params.event.clientId ID of the client instance. Used to distinguish own revisions from the broadcast channel
|
|
835
|
+
* @param {object} params.event.changes Object with changes constituting revision
|
|
879
836
|
*/
|
|
880
837
|
(e: 'revisionNotification', params: ((event: { localRevisionId: string, conflictResolutionFor?: string, clientId: string, changes: object }) => void)|string): void
|
|
881
838
|
/**
|
|
882
839
|
* Fired when the Engine detects a scheduling conflict.
|
|
883
840
|
* @param {string} e Event name
|
|
884
841
|
* @param {object} params Event parameters
|
|
885
|
-
* @param {
|
|
886
|
-
* @param {object} params.
|
|
887
|
-
* @param {
|
|
888
|
-
* @param {object} params.
|
|
889
|
-
* @param {Function} params.
|
|
890
|
-
* @param {
|
|
891
|
-
* @param {Function} params.params.event.schedulingIssue.getResolutions Function to get possible resolutions
|
|
892
|
-
* @param {Function} params.params.event.continueWithResolutionResult Function to call after a resolution is chosen to proceed with the Engine calculations: ```javascript project.on('schedulingConflict', ({ schedulingIssue, continueWithResolutionResult }) => { // apply the first resolution and continue schedulingIssue.getResolutions()[0].resolve(); continueWithResolutionResult(EffectResolutionResult.Resume); }) ``` Where `EffectResolutionResult.Resume` results in a resolution being applied and current transaction should be continued.
|
|
842
|
+
* @param {object} params.event Event object
|
|
843
|
+
* @param {object} params.event.schedulingIssue The conflict details:
|
|
844
|
+
* @param {Function} params.event.schedulingIssue.getDescription Returns the conflict description
|
|
845
|
+
* @param {object[]} params.event.schedulingIssue.intervals Array of conflicting intervals
|
|
846
|
+
* @param {Function} params.event.schedulingIssue.getResolutions Function to get possible resolutions
|
|
847
|
+
* @param {Function} params.event.continueWithResolutionResult Function to call after a resolution is chosen to proceed with the Engine calculations: ```javascript project.on('schedulingConflict', ({ schedulingIssue, continueWithResolutionResult }) => { // apply the first resolution and continue schedulingIssue.getResolutions()[0].resolve(); continueWithResolutionResult(EffectResolutionResult.Resume); }) ``` Where `EffectResolutionResult.Resume` results in a resolution being applied and current transaction should be continued.
|
|
893
848
|
*/
|
|
894
849
|
(e: 'schedulingConflict', params: ((event: { schedulingIssue: { getDescription: Function, intervals: object[], getResolutions: Function }, continueWithResolutionResult: Function }) => void)|string): void
|
|
895
850
|
/**
|
|
896
851
|
* Fires on successful [sync request](https://bryntum.com/products/schedulerpro/docs/api/Scheduler/crud/AbstractCrudManagerMixin#function-sync) completion.
|
|
897
852
|
* @param {string} e Event name
|
|
898
853
|
* @param {object} params Event parameters
|
|
899
|
-
* @param {
|
|
900
|
-
* @param {
|
|
901
|
-
* @param {object} params.
|
|
902
|
-
* @param {
|
|
903
|
-
* @param {object} params.
|
|
904
|
-
* @param {
|
|
905
|
-
* @param {object} params.params.event.requestOptions The request options passed to the request.
|
|
906
|
-
* @param {Response} params.params.event.rawResponse The native Response object
|
|
854
|
+
* @param {object} params.event Event object
|
|
855
|
+
* @param {Scheduler.crud.AbstractCrudManager} params.event.source The CRUD manager.
|
|
856
|
+
* @param {object} params.event.response The decoded server response object.
|
|
857
|
+
* @param {object} params.event.responseOptions [DEPRECATED] see `requestOptions`
|
|
858
|
+
* @param {object} params.event.requestOptions The request options passed to the request.
|
|
859
|
+
* @param {Response} params.event.rawResponse The native Response object
|
|
907
860
|
*/
|
|
908
861
|
(e: 'sync', params: ((event: { source: AbstractCrudManager, response: object, responseOptions: object, requestOptions: object, rawResponse: Response }) => void)|string): void
|
|
909
862
|
/**
|
|
910
863
|
* Fires after [sync request](https://bryntum.com/products/schedulerpro/docs/api/Scheduler/crud/AbstractCrudManagerMixin#function-sync) was canceled by some [beforeSync](#Scheduler/crud/AbstractCrudManagerMixin#event-beforeSync) listener.
|
|
911
864
|
* @param {string} e Event name
|
|
912
865
|
* @param {object} params Event parameters
|
|
913
|
-
* @param {
|
|
914
|
-
* @param {
|
|
915
|
-
* @param {object} params.
|
|
916
|
-
* @param {Scheduler.crud.AbstractCrudManager} params.params.event.source The CRUD manager.
|
|
917
|
-
* @param {object} params.params.event.pack The data package which contains data for all stores managed by the crud manager.
|
|
866
|
+
* @param {object} params.event Event object
|
|
867
|
+
* @param {Scheduler.crud.AbstractCrudManager} params.event.source The CRUD manager.
|
|
868
|
+
* @param {object} params.event.pack The data package which contains data for all stores managed by the crud manager.
|
|
918
869
|
*/
|
|
919
870
|
(e: 'syncCanceled', params: ((event: { source: AbstractCrudManager, pack: object }) => void)|string): void
|
|
920
871
|
/**
|
|
921
872
|
* Fires after [sync request](https://bryntum.com/products/schedulerpro/docs/api/Scheduler/crud/AbstractCrudManagerMixin#function-sync) was delayed due to incomplete previous one.
|
|
922
873
|
* @param {string} e Event name
|
|
923
874
|
* @param {object} params Event parameters
|
|
924
|
-
* @param {
|
|
925
|
-
* @param {
|
|
926
|
-
* @param {object} params.
|
|
927
|
-
* @param {Scheduler.crud.AbstractCrudManager} params.params.event.source The CRUD manager.
|
|
928
|
-
* @param {object} params.params.event.arguments The arguments of [sync](https://bryntum.com/products/schedulerpro/docs/api/Scheduler/crud/AbstractCrudManagerMixin#function-sync) call.
|
|
875
|
+
* @param {object} params.event Event object
|
|
876
|
+
* @param {Scheduler.crud.AbstractCrudManager} params.event.source The CRUD manager.
|
|
877
|
+
* @param {object} params.event.arguments The arguments of [sync](https://bryntum.com/products/schedulerpro/docs/api/Scheduler/crud/AbstractCrudManagerMixin#function-sync) call.
|
|
929
878
|
*/
|
|
930
879
|
(e: 'syncDelayed', params: ((event: { source: AbstractCrudManager, arguments: object }) => void)|string): void
|
|
931
880
|
/**
|
|
932
881
|
* Fires when a [sync request](https://bryntum.com/products/schedulerpro/docs/api/Scheduler/crud/AbstractCrudManagerMixin#function-sync) fails.
|
|
933
882
|
* @param {string} e Event name
|
|
934
883
|
* @param {object} params Event parameters
|
|
935
|
-
* @param {
|
|
936
|
-
* @param {
|
|
937
|
-
* @param {object} params.
|
|
938
|
-
* @param {
|
|
939
|
-
* @param {object} params.
|
|
940
|
-
* @param {
|
|
941
|
-
* @param {
|
|
942
|
-
* @param {object} params.params.event.requestOptions The request options passed to the request.
|
|
943
|
-
* @param {Response} params.params.event.rawResponse The native Response object
|
|
884
|
+
* @param {object} params.event Event object
|
|
885
|
+
* @param {Scheduler.crud.AbstractCrudManager} params.event.source The CRUD manager instance.
|
|
886
|
+
* @param {object} params.event.response The decoded server response object.
|
|
887
|
+
* @param {string} params.event.responseText The raw server response text
|
|
888
|
+
* @param {object} params.event.responseOptions [DEPRECATED] see `requestOptions`
|
|
889
|
+
* @param {object} params.event.requestOptions The request options passed to the request.
|
|
890
|
+
* @param {Response} params.event.rawResponse The native Response object
|
|
944
891
|
*/
|
|
945
892
|
(e: 'syncFail', params: ((event: { source: AbstractCrudManager, response: object, responseText: string, responseOptions: object, requestOptions: object, rawResponse: Response }) => void)|string): void
|
|
946
893
|
}>();
|