@bryntum/scheduler-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 +8 -8
- package/lib/chunks/{DVFhf2Ma.js → BTSObfAz.js} +6 -4
- package/lib/chunks/BTSObfAz.js.map +1 -0
- package/lib/chunks/BXIuEgYD.js.map +1 -1
- package/lib/chunks/{DhhzgoYL.js → CCTV8qn0.js} +3 -1
- package/lib/chunks/CCTV8qn0.js.map +1 -0
- package/lib/chunks/{kN-s_8Na.js → COFzBhB8.js} +8 -6
- package/lib/chunks/COFzBhB8.js.map +1 -0
- package/lib/chunks/DB0UHrA3.js.map +1 -1
- package/lib/chunks/{5o-YjSb7.js → DJSlX0qP.js} +3 -1
- package/lib/chunks/DJSlX0qP.js.map +1 -0
- package/lib/chunks/DP61St-u.js.map +1 -1
- package/lib/chunks/{ZkU6CtWX.js → LNqNYJck.js} +9 -7
- package/lib/chunks/LNqNYJck.js.map +1 -0
- package/lib/chunks/R69sJLmF.js.map +1 -1
- package/lib/chunks/{OJaN5ZWK.js → WykRcMCN.js} +6 -4
- package/lib/chunks/WykRcMCN.js.map +1 -0
- package/lib/chunks/eUISgYXE.js.map +1 -1
- package/lib/chunks/t8aiH3XL.js.map +1 -1
- package/lib/components/BryntumEventColorField.js +1 -1
- package/lib/components/BryntumProjectCombo.js +1 -1
- package/lib/components/BryntumResourceCombo.js +1 -1
- package/lib/components/BryntumScheduler.js +1 -1
- package/lib/components/BryntumSchedulerBase.js +1 -1
- package/lib/components/BryntumViewPresetCombo.js +1 -1
- package/lib/index.js +6 -6
- package/package.json +1 -1
- package/src/components/BryntumEventColorField.vue +80 -106
- package/src/components/BryntumEventColorFieldProps.ts +9 -0
- package/src/components/BryntumProjectCombo.vue +81 -109
- package/src/components/BryntumProjectComboProps.ts +9 -0
- package/src/components/BryntumResourceCombo.vue +81 -109
- package/src/components/BryntumResourceComboProps.ts +9 -0
- package/src/components/BryntumResourceFilter.vue +69 -107
- package/src/components/BryntumScheduler.vue +1425 -1927
- package/src/components/BryntumSchedulerBase.vue +1425 -1927
- package/src/components/BryntumSchedulerBaseProps.ts +5 -0
- package/src/components/BryntumSchedulerDatePicker.vue +85 -135
- package/src/components/BryntumSchedulerProjectModel.vue +11 -15
- package/src/components/BryntumSchedulerProps.ts +5 -0
- package/src/components/BryntumTimeZoomSlider.vue +50 -80
- package/src/components/BryntumTimelineHistogram.vue +722 -1030
- package/src/components/BryntumUndoRedo.vue +49 -79
- package/src/components/BryntumViewPresetCombo.vue +77 -103
- package/src/components/BryntumViewPresetComboProps.ts +9 -0
- package/lib/chunks/5o-YjSb7.js.map +0 -1
- package/lib/chunks/DVFhf2Ma.js.map +0 -1
- package/lib/chunks/DhhzgoYL.js.map +0 -1
- package/lib/chunks/OJaN5ZWK.js.map +0 -1
- package/lib/chunks/ZkU6CtWX.js.map +0 -1
- package/lib/chunks/kN-s_8Na.js.map +0 -1
|
@@ -922,6 +922,11 @@ export declare type BryntumSchedulerBaseProps = {
|
|
|
922
922
|
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/view/SchedulerBase#config-project)
|
|
923
923
|
*/
|
|
924
924
|
project ? : ProjectModel|ProjectModelConfig|object
|
|
925
|
+
/**
|
|
926
|
+
* The project model class to use when creating the project instance. Override this to use a custom project
|
|
927
|
+
* model class. In SchedulerPro and Gantt, this is overridden to use their respective project model classes.
|
|
928
|
+
*/
|
|
929
|
+
projectModelClass ? : typeof ProjectModel
|
|
925
930
|
/**
|
|
926
931
|
* Range used to set the length of the time axis when used as a component of a Calendar. Suitable units are
|
|
927
932
|
* `'month'`, `'week'` and `'day'`.
|
|
@@ -863,30 +863,24 @@ const emit = defineEmits<{
|
|
|
863
863
|
* Fires before an object is destroyed.
|
|
864
864
|
* @param {string} e Event name
|
|
865
865
|
* @param {object} params Event parameters
|
|
866
|
-
* @param {
|
|
867
|
-
* @param {
|
|
868
|
-
* @param {object} params.params.event Event object
|
|
869
|
-
* @param {Core.Base} params.params.event.source The Object that is being destroyed.
|
|
866
|
+
* @param {object} params.event Event object
|
|
867
|
+
* @param {Core.Base} params.event.source The Object that is being destroyed.
|
|
870
868
|
*/
|
|
871
869
|
(e: 'beforeDestroy', params: ((event: { source: Base }) => void)|string): void
|
|
872
870
|
/**
|
|
873
871
|
* Triggered before a widget is hidden. Return `false` to prevent the action.
|
|
874
872
|
* @param {string} e Event name
|
|
875
873
|
* @param {object} params Event parameters
|
|
876
|
-
* @param {
|
|
877
|
-
* @param {
|
|
878
|
-
* @param {object} params.params.event Event object
|
|
879
|
-
* @param {Core.widget.Widget} params.params.event.source The widget being hidden.
|
|
874
|
+
* @param {object} params.event Event object
|
|
875
|
+
* @param {Core.widget.Widget} params.event.source The widget being hidden.
|
|
880
876
|
*/
|
|
881
|
-
(e: 'beforeHide', params: ((event: { source: Widget }) =>
|
|
877
|
+
(e: 'beforeHide', params: ((event: { source: Widget }) => boolean|void)|string): boolean|void
|
|
882
878
|
/**
|
|
883
879
|
* Fires before this CalendarPanel refreshes in response to changes in its month.
|
|
884
880
|
* @param {string} e Event name
|
|
885
881
|
* @param {object} params Event parameters
|
|
886
|
-
* @param {
|
|
887
|
-
* @param {
|
|
888
|
-
* @param {object} params.params.event Event object
|
|
889
|
-
* @param {Core.widget.DatePicker} params.params.event.source This DatePicker.
|
|
882
|
+
* @param {object} params.event Event object
|
|
883
|
+
* @param {Core.widget.DatePicker} params.event.source This DatePicker.
|
|
890
884
|
*/
|
|
891
885
|
(e: 'beforeRefresh', params: ((event: { source: DatePicker }) => void)|string): void
|
|
892
886
|
/**
|
|
@@ -894,148 +888,122 @@ const emit = defineEmits<{
|
|
|
894
888
|
* want to modify the UI before data is loaded (e.g. set some input field to be readonly)
|
|
895
889
|
* @param {string} e Event name
|
|
896
890
|
* @param {object} params Event parameters
|
|
897
|
-
* @param {
|
|
898
|
-
* @param {
|
|
899
|
-
* @param {
|
|
900
|
-
* @param {Core.widget.Container} params.params.event.source The container
|
|
901
|
-
* @param {Core.data.Model} params.params.event.record The record
|
|
891
|
+
* @param {object} params.event Event object
|
|
892
|
+
* @param {Core.widget.Container} params.event.source The container
|
|
893
|
+
* @param {Core.data.Model} params.event.record The record
|
|
902
894
|
*/
|
|
903
895
|
(e: 'beforeSetRecord', params: ((event: { source: Container, record: Model }) => void)|string): void
|
|
904
896
|
/**
|
|
905
897
|
* Triggered before a widget is shown. Return `false` to prevent the action.
|
|
906
898
|
* @param {string} e Event name
|
|
907
899
|
* @param {object} params Event parameters
|
|
908
|
-
* @param {
|
|
909
|
-
* @param {
|
|
910
|
-
* @param {object} params.params.event Event object
|
|
911
|
-
* @param {Core.widget.Widget,any} params.params.event.source The widget being shown
|
|
900
|
+
* @param {object} params.event Event object
|
|
901
|
+
* @param {Core.widget.Widget,any} params.event.source The widget being shown
|
|
912
902
|
*/
|
|
913
903
|
(e: 'beforeShow', params: ((event: { source: Widget|any }) => Promise<boolean>|boolean|void)|string): Promise<boolean>|boolean|void
|
|
914
904
|
/**
|
|
915
905
|
* Fired before state is applied to the source. Allows editing the state object or preventing the operation.
|
|
916
906
|
* @param {string} e Event name
|
|
917
907
|
* @param {object} params Event parameters
|
|
918
|
-
* @param {
|
|
919
|
-
* @param {
|
|
920
|
-
* @param {object} params.params.event Event object
|
|
921
|
-
* @param {any} params.params.event.state State object config
|
|
908
|
+
* @param {object} params.event Event object
|
|
909
|
+
* @param {any} params.event.state State object config
|
|
922
910
|
*/
|
|
923
|
-
(e: 'beforeStateApply', params: ((event: { state: any }) =>
|
|
911
|
+
(e: 'beforeStateApply', params: ((event: { state: any }) => boolean|void)|string): boolean|void
|
|
924
912
|
/**
|
|
925
913
|
* Fired before state is saved by the StateProvider. Allows editing the state object or preventing the operation.
|
|
926
914
|
* @param {string} e Event name
|
|
927
915
|
* @param {object} params Event parameters
|
|
928
|
-
* @param {
|
|
929
|
-
* @param {
|
|
930
|
-
* @param {object} params.params.event Event object
|
|
931
|
-
* @param {any} params.params.event.state State object config
|
|
916
|
+
* @param {object} params.event Event object
|
|
917
|
+
* @param {any} params.event.state State object config
|
|
932
918
|
*/
|
|
933
|
-
(e: 'beforeStateSave', params: ((event: { state: any }) =>
|
|
919
|
+
(e: 'beforeStateSave', params: ((event: { state: any }) => boolean|void)|string): boolean|void
|
|
934
920
|
/**
|
|
935
921
|
* Fires when any other event is fired from the object.
|
|
936
922
|
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/SchedulerDatePicker#event-catchAll)
|
|
937
923
|
* @param {string} e Event name
|
|
938
924
|
* @param {object} params Event parameters
|
|
939
|
-
* @param {
|
|
940
|
-
* @param {
|
|
941
|
-
* @param {
|
|
942
|
-
* @param {{[key: string]: any, type: string}} params.params.event.event The Object that contains event details
|
|
943
|
-
* @param {string} params.params.event.event.type The type of the event which is caught by the listener
|
|
925
|
+
* @param {object} params.event Event object
|
|
926
|
+
* @param {{[key: string]: any, type: string}} params.event.event The Object that contains event details
|
|
927
|
+
* @param {string} params.event.event.type The type of the event which is caught by the listener
|
|
944
928
|
*/
|
|
945
929
|
(e: 'catchAll', params: ((event: {[key: string]: any, type: string}) => void)|string): void
|
|
946
930
|
/**
|
|
947
931
|
* Fired when a date cell is clicked.
|
|
948
932
|
* @param {string} e Event name
|
|
949
933
|
* @param {object} params Event parameters
|
|
950
|
-
* @param {
|
|
951
|
-
* @param {
|
|
952
|
-
* @param {
|
|
953
|
-
* @param {
|
|
954
|
-
* @param {
|
|
955
|
-
* @param {number[]} params.params.event.week The week array `[year, weekNumber]`.
|
|
956
|
-
* @param {Event} params.params.event.domEvent The original DOM event.
|
|
934
|
+
* @param {object} params.event Event object
|
|
935
|
+
* @param {HTMLElement} params.event.cell The clicked cell element.
|
|
936
|
+
* @param {Date} params.event.date The date represented by the cell.
|
|
937
|
+
* @param {number[]} params.event.week The week array `[year, weekNumber]`.
|
|
938
|
+
* @param {Event} params.event.domEvent The original DOM event.
|
|
957
939
|
*/
|
|
958
940
|
(e: 'cellClick', params: ((event: { cell: HTMLElement, date: Date, week: number[], domEvent: Event }) => void)|string): void
|
|
959
941
|
/**
|
|
960
942
|
* Fires when a Panel is collapsed using the [collapsible](https://bryntum.com/products/scheduler/docs/api/Core/widget/Panel#config-collapsible) setting.
|
|
961
943
|
* @param {string} e Event name
|
|
962
944
|
* @param {object} params Event parameters
|
|
963
|
-
* @param {
|
|
964
|
-
* @param {
|
|
965
|
-
* @param {object} params.params.event Event object
|
|
966
|
-
* @param {Core.widget.Panel} params.params.event.source This Panel.
|
|
945
|
+
* @param {object} params.event Event object
|
|
946
|
+
* @param {Core.widget.Panel} params.event.source This Panel.
|
|
967
947
|
*/
|
|
968
948
|
(e: 'collapse', params: ((event: { source: Panel }) => void)|string): void
|
|
969
949
|
/**
|
|
970
950
|
* Fires when the date of this CalendarPanel is set.
|
|
971
951
|
* @param {string} e Event name
|
|
972
952
|
* @param {object} params Event parameters
|
|
973
|
-
* @param {
|
|
974
|
-
* @param {
|
|
975
|
-
* @param {
|
|
976
|
-
* @param {
|
|
977
|
-
* @param {
|
|
978
|
-
* @param {
|
|
979
|
-
* @param {boolean} params.
|
|
980
|
-
* @param {boolean} params.
|
|
981
|
-
* @param {boolean} params.params.event.changes.m True if the month changed (including same month in a different year).
|
|
982
|
-
* @param {boolean} params.params.event.changes.y True if the year changed.
|
|
953
|
+
* @param {object} params.event Event object
|
|
954
|
+
* @param {Date} params.event.value The new date.
|
|
955
|
+
* @param {Date} params.event.oldValue The old date.
|
|
956
|
+
* @param {object} params.event.changes An object which contains properties which indicate what part of the date changed.
|
|
957
|
+
* @param {boolean} params.event.changes.d True if the date changed in any way.
|
|
958
|
+
* @param {boolean} params.event.changes.w True if the week changed (including same week in a different year).
|
|
959
|
+
* @param {boolean} params.event.changes.m True if the month changed (including same month in a different year).
|
|
960
|
+
* @param {boolean} params.event.changes.y True if the year changed.
|
|
983
961
|
*/
|
|
984
962
|
(e: 'dateChange', params: ((event: { value: Date, oldValue: Date, changes: { d: boolean, w: boolean, m: boolean, y: boolean } }) => void)|string): void
|
|
985
963
|
/**
|
|
986
964
|
* Fires when an object is destroyed.
|
|
987
965
|
* @param {string} e Event name
|
|
988
966
|
* @param {object} params Event parameters
|
|
989
|
-
* @param {
|
|
990
|
-
* @param {
|
|
991
|
-
* @param {object} params.params.event Event object
|
|
992
|
-
* @param {Core.Base} params.params.event.source The Object that is being destroyed.
|
|
967
|
+
* @param {object} params.event Event object
|
|
968
|
+
* @param {Core.Base} params.event.source The Object that is being destroyed.
|
|
993
969
|
*/
|
|
994
970
|
(e: 'destroy', params: ((event: { source: Base }) => void)|string): void
|
|
995
971
|
/**
|
|
996
972
|
* Fires when a field is mutated and the state of the [hasChanges](https://bryntum.com/products/scheduler/docs/api/Core/widget/Container#property-hasChanges) property changes
|
|
997
973
|
* @param {string} e Event name
|
|
998
974
|
* @param {object} params Event parameters
|
|
999
|
-
* @param {
|
|
1000
|
-
* @param {
|
|
1001
|
-
* @param {
|
|
1002
|
-
* @param {Core.widget.Container} params.params.event.source The container.
|
|
1003
|
-
* @param {boolean} params.params.event.dirty The dirty state of the Container - `true` if there are any fields which have been changed since initial load.
|
|
975
|
+
* @param {object} params.event Event object
|
|
976
|
+
* @param {Core.widget.Container} params.event.source The container.
|
|
977
|
+
* @param {boolean} params.event.dirty The dirty state of the Container - `true` if there are any fields which have been changed since initial load.
|
|
1004
978
|
*/
|
|
1005
979
|
(e: 'dirtyStateChange', params: ((event: { source: Container, dirty: boolean }) => void)|string): void
|
|
1006
980
|
/**
|
|
1007
981
|
* Triggered when a widget's [element](https://bryntum.com/products/scheduler/docs/api/Core/widget/Widget#property-element) is available.
|
|
1008
982
|
* @param {string} e Event name
|
|
1009
983
|
* @param {object} params Event parameters
|
|
1010
|
-
* @param {
|
|
1011
|
-
* @param {
|
|
1012
|
-
* @param {object} params.params.event Event object
|
|
1013
|
-
* @param {HTMLElement} params.params.event.element The Widget's element.
|
|
984
|
+
* @param {object} params.event Event object
|
|
985
|
+
* @param {HTMLElement} params.event.element The Widget's element.
|
|
1014
986
|
*/
|
|
1015
987
|
(e: 'elementCreated', params: ((event: { element: HTMLElement }) => void)|string): void
|
|
1016
988
|
/**
|
|
1017
989
|
* Fires when a Panel is expanded using the [collapsible](https://bryntum.com/products/scheduler/docs/api/Core/widget/Panel#config-collapsible) setting.
|
|
1018
990
|
* @param {string} e Event name
|
|
1019
991
|
* @param {object} params Event parameters
|
|
1020
|
-
* @param {
|
|
1021
|
-
* @param {
|
|
1022
|
-
* @param {object} params.params.event Event object
|
|
1023
|
-
* @param {Core.widget.Panel} params.params.event.source This Panel.
|
|
992
|
+
* @param {object} params.event Event object
|
|
993
|
+
* @param {Core.widget.Panel} params.event.source This Panel.
|
|
1024
994
|
*/
|
|
1025
995
|
(e: 'expand', params: ((event: { source: Panel }) => void)|string): void
|
|
1026
996
|
/**
|
|
1027
997
|
* Fired when focus enters this Widget.
|
|
1028
998
|
* @param {string} e Event name
|
|
1029
999
|
* @param {object} params Event parameters
|
|
1030
|
-
* @param {
|
|
1031
|
-
* @param {
|
|
1032
|
-
* @param {
|
|
1033
|
-
* @param {
|
|
1034
|
-
* @param {
|
|
1035
|
-
* @param {
|
|
1036
|
-
* @param {
|
|
1037
|
-
* @param {Core.widget.Widget} params.params.event.toWidget The widget which gained focus.
|
|
1038
|
-
* @param {boolean} params.params.event.backwards `true` if the `toElement` is before the `fromElement` in document order.
|
|
1000
|
+
* @param {object} params.event Event object
|
|
1001
|
+
* @param {Core.widget.Widget} params.event.source This Widget
|
|
1002
|
+
* @param {HTMLElement} params.event.fromElement The element which lost focus.
|
|
1003
|
+
* @param {HTMLElement} params.event.toElement The element which gained focus.
|
|
1004
|
+
* @param {Core.widget.Widget} params.event.fromWidget The widget which lost focus.
|
|
1005
|
+
* @param {Core.widget.Widget} params.event.toWidget The widget which gained focus.
|
|
1006
|
+
* @param {boolean} params.event.backwards `true` if the `toElement` is before the `fromElement` in document order.
|
|
1039
1007
|
*/
|
|
1040
1008
|
(e: 'focusIn', params: ((event: { source: Widget, fromElement: HTMLElement, toElement: HTMLElement, fromWidget: Widget, toWidget: Widget, backwards: boolean }) => void)|string): void
|
|
1041
1009
|
/**
|
|
@@ -1044,25 +1012,21 @@ const emit = defineEmits<{
|
|
|
1044
1012
|
* will not trigger this event. This is when focus exits this widget completely.
|
|
1045
1013
|
* @param {string} e Event name
|
|
1046
1014
|
* @param {object} params Event parameters
|
|
1047
|
-
* @param {
|
|
1048
|
-
* @param {
|
|
1049
|
-
* @param {
|
|
1050
|
-
* @param {
|
|
1051
|
-
* @param {
|
|
1052
|
-
* @param {
|
|
1053
|
-
* @param {
|
|
1054
|
-
* @param {Core.widget.Widget} params.params.event.toWidget The widget which gained focus.
|
|
1055
|
-
* @param {boolean} params.params.event.backwards `true` if the `toElement` is before the `fromElement` in document order.
|
|
1015
|
+
* @param {object} params.event Event object
|
|
1016
|
+
* @param {Core.widget.Widget} params.event.source This Widget
|
|
1017
|
+
* @param {HTMLElement} params.event.fromElement The element which lost focus.
|
|
1018
|
+
* @param {HTMLElement} params.event.toElement The element which gained focus.
|
|
1019
|
+
* @param {Core.widget.Widget} params.event.fromWidget The widget which lost focus.
|
|
1020
|
+
* @param {Core.widget.Widget} params.event.toWidget The widget which gained focus.
|
|
1021
|
+
* @param {boolean} params.event.backwards `true` if the `toElement` is before the `fromElement` in document order.
|
|
1056
1022
|
*/
|
|
1057
1023
|
(e: 'focusOut', params: ((event: { source: Widget, fromElement: HTMLElement, toElement: HTMLElement, fromWidget: Widget, toWidget: Widget, backwards: boolean }) => void)|string): void
|
|
1058
1024
|
/**
|
|
1059
1025
|
* Triggered after a widget was hidden
|
|
1060
1026
|
* @param {string} e Event name
|
|
1061
1027
|
* @param {object} params Event parameters
|
|
1062
|
-
* @param {
|
|
1063
|
-
* @param {
|
|
1064
|
-
* @param {object} params.params.event Event object
|
|
1065
|
-
* @param {Core.widget.Widget} params.params.event.source The widget
|
|
1028
|
+
* @param {object} params.event Event object
|
|
1029
|
+
* @param {Core.widget.Widget} params.event.source The widget
|
|
1066
1030
|
*/
|
|
1067
1031
|
(e: 'hide', params: ((event: { source: Widget }) => void)|string): void
|
|
1068
1032
|
/**
|
|
@@ -1071,21 +1035,17 @@ const emit = defineEmits<{
|
|
|
1071
1035
|
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/SchedulerDatePicker#event-paint)
|
|
1072
1036
|
* @param {string} e Event name
|
|
1073
1037
|
* @param {object} params Event parameters
|
|
1074
|
-
* @param {
|
|
1075
|
-
* @param {
|
|
1076
|
-
* @param {
|
|
1077
|
-
* @param {Core.widget.Widget} params.params.event.source The widget being painted.
|
|
1078
|
-
* @param {boolean} params.params.event.firstPaint `true` if this is the first paint.
|
|
1038
|
+
* @param {object} params.event Event object
|
|
1039
|
+
* @param {Core.widget.Widget} params.event.source The widget being painted.
|
|
1040
|
+
* @param {boolean} params.event.firstPaint `true` if this is the first paint.
|
|
1079
1041
|
*/
|
|
1080
1042
|
(e: 'paint', params: ((event: { source: Widget, firstPaint: boolean }) => void)|string): void
|
|
1081
1043
|
/**
|
|
1082
1044
|
* Fired when a Widget's read only state is toggled
|
|
1083
1045
|
* @param {string} e Event name
|
|
1084
1046
|
* @param {object} params Event parameters
|
|
1085
|
-
* @param {
|
|
1086
|
-
* @param {
|
|
1087
|
-
* @param {object} params.params.event Event object
|
|
1088
|
-
* @param {boolean} params.params.event.readOnly Read only or not
|
|
1047
|
+
* @param {object} params.event Event object
|
|
1048
|
+
* @param {boolean} params.event.readOnly Read only or not
|
|
1089
1049
|
*/
|
|
1090
1050
|
(e: 'readOnly', params: ((event: { readOnly: boolean }) => void)|string): void
|
|
1091
1051
|
/**
|
|
@@ -1101,14 +1061,12 @@ const emit = defineEmits<{
|
|
|
1101
1061
|
* Fired when the encapsulating element of a Widget resizes *only when [monitorResize](https://bryntum.com/products/scheduler/docs/api/Core/widget/Widget#config-monitorResize) is `true`*.
|
|
1102
1062
|
* @param {string} e Event name
|
|
1103
1063
|
* @param {object} params Event parameters
|
|
1104
|
-
* @param {
|
|
1105
|
-
* @param {
|
|
1106
|
-
* @param {
|
|
1107
|
-
* @param {
|
|
1108
|
-
* @param {number} params.
|
|
1109
|
-
* @param {number} params.
|
|
1110
|
-
* @param {number} params.params.event.oldWidth The old width
|
|
1111
|
-
* @param {number} params.params.event.oldHeight The old height
|
|
1064
|
+
* @param {object} params.event Event object
|
|
1065
|
+
* @param {Core.widget.Widget} params.event.source This Widget
|
|
1066
|
+
* @param {number} params.event.width The new width
|
|
1067
|
+
* @param {number} params.event.height The new height
|
|
1068
|
+
* @param {number} params.event.oldWidth The old width
|
|
1069
|
+
* @param {number} params.event.oldHeight The old height
|
|
1112
1070
|
*/
|
|
1113
1071
|
(e: 'resize', params: ((event: { source: Widget, width: number, height: number, oldWidth: number, oldHeight: number }) => void)|string): void
|
|
1114
1072
|
/**
|
|
@@ -1116,45 +1074,37 @@ const emit = defineEmits<{
|
|
|
1116
1074
|
* this will fire upon deselection and selection of dates.
|
|
1117
1075
|
* @param {string} e Event name
|
|
1118
1076
|
* @param {object} params Event parameters
|
|
1119
|
-
* @param {
|
|
1120
|
-
* @param {
|
|
1121
|
-
* @param {
|
|
1122
|
-
* @param {
|
|
1123
|
-
* @param {Date[]} params.params.event.oldSelection The previously selected dates. If [multiSelect](https://bryntum.com/products/scheduler/docs/api/Core/widget/DatePicker#config-multiSelect) is specified this may be a two element array specifying start and end dates.
|
|
1124
|
-
* @param {boolean} params.params.event.userAction This will be `true` if the change was caused by user interaction as opposed to programmatic setting.
|
|
1077
|
+
* @param {object} params.event Event object
|
|
1078
|
+
* @param {Date[]} params.event.selection The selected dates. If [multiSelect](https://bryntum.com/products/scheduler/docs/api/Core/widget/DatePicker#config-multiSelect) is specified this may be a two element array specifying start and end dates.
|
|
1079
|
+
* @param {Date[]} params.event.oldSelection The previously selected dates. If [multiSelect](https://bryntum.com/products/scheduler/docs/api/Core/widget/DatePicker#config-multiSelect) is specified this may be a two element array specifying start and end dates.
|
|
1080
|
+
* @param {boolean} params.event.userAction This will be `true` if the change was caused by user interaction as opposed to programmatic setting.
|
|
1125
1081
|
*/
|
|
1126
1082
|
(e: 'selectionChange', params: ((event: { selection: Date[], oldSelection: Date[], userAction: boolean }) => void)|string): void
|
|
1127
1083
|
/**
|
|
1128
1084
|
* Triggered after a widget is shown.
|
|
1129
1085
|
* @param {string} e Event name
|
|
1130
1086
|
* @param {object} params Event parameters
|
|
1131
|
-
* @param {
|
|
1132
|
-
* @param {
|
|
1133
|
-
* @param {object} params.params.event Event object
|
|
1134
|
-
* @param {Core.widget.Widget} params.params.event.source The widget
|
|
1087
|
+
* @param {object} params.event Event object
|
|
1088
|
+
* @param {Core.widget.Widget} params.event.source The widget
|
|
1135
1089
|
*/
|
|
1136
1090
|
(e: 'show', params: ((event: { source: Widget }) => void)|string): void
|
|
1137
1091
|
/**
|
|
1138
1092
|
* A header [tool](https://bryntum.com/products/scheduler/docs/api/Core/widget/Panel#config-tools) has been clicked.
|
|
1139
1093
|
* @param {string} e Event name
|
|
1140
1094
|
* @param {object} params Event parameters
|
|
1141
|
-
* @param {
|
|
1142
|
-
* @param {
|
|
1143
|
-
* @param {
|
|
1144
|
-
* @param {Core.widget.Tool} params.params.event.source This Panel.
|
|
1145
|
-
* @param {Core.widget.Tool} params.params.event.tool The tool which is being clicked.
|
|
1095
|
+
* @param {object} params.event Event object
|
|
1096
|
+
* @param {Core.widget.Tool} params.event.source This Panel.
|
|
1097
|
+
* @param {Core.widget.Tool} params.event.tool The tool which is being clicked.
|
|
1146
1098
|
*/
|
|
1147
1099
|
(e: 'toolClick', params: ((event: { source: Tool, tool: Tool }) => void)|string): void
|
|
1148
1100
|
/**
|
|
1149
1101
|
* Fired when a week number cell is clicked.
|
|
1150
1102
|
* @param {string} e Event name
|
|
1151
1103
|
* @param {object} params Event parameters
|
|
1152
|
-
* @param {
|
|
1153
|
-
* @param {
|
|
1154
|
-
* @param {
|
|
1155
|
-
* @param {
|
|
1156
|
-
* @param {number[]} params.params.event.week The week array `[year, weekNumber]`.
|
|
1157
|
-
* @param {Event} params.params.event.domEvent The original DOM event.
|
|
1104
|
+
* @param {object} params.event Event object
|
|
1105
|
+
* @param {Date} params.event.date The start date of the week.
|
|
1106
|
+
* @param {number[]} params.event.week The week array `[year, weekNumber]`.
|
|
1107
|
+
* @param {Event} params.event.domEvent The original DOM event.
|
|
1158
1108
|
*/
|
|
1159
1109
|
(e: 'weekCellClick', params: ((event: { date: Date, week: number[], domEvent: Event }) => void)|string): void
|
|
1160
1110
|
}>();
|
|
@@ -284,15 +284,13 @@ const emit = defineEmits<{
|
|
|
284
284
|
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/model/ProjectModel#event-change)
|
|
285
285
|
* @param {string} e Event name
|
|
286
286
|
* @param {object} params Event parameters
|
|
287
|
-
* @param {
|
|
288
|
-
* @param {
|
|
289
|
-
* @param {
|
|
290
|
-
* @param {
|
|
291
|
-
* @param {Core.data.
|
|
292
|
-
* @param {
|
|
293
|
-
* @param {
|
|
294
|
-
* @param {Core.data.Model[]} params.params.event.records Changed records, passed for all actions except `'removeAll'`
|
|
295
|
-
* @param {object} params.params.event.changes Passed for the `'update'` action, info on which record fields changed
|
|
287
|
+
* @param {object} params.event Event object
|
|
288
|
+
* @param {Scheduler.model.ProjectModel,any} params.event.source This project
|
|
289
|
+
* @param {Core.data.Store} params.event.store Affected store
|
|
290
|
+
* @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'`
|
|
291
|
+
* @param {Core.data.Model} params.event.record Changed record, for actions that affects exactly one record (`'update'`)
|
|
292
|
+
* @param {Core.data.Model[]} params.event.records Changed records, passed for all actions except `'removeAll'`
|
|
293
|
+
* @param {object} params.event.changes Passed for the `'update'` action, info on which record fields changed
|
|
296
294
|
*/
|
|
297
295
|
(e: 'change', params: ((event: { source: ProjectModel|any, store: Store, action: 'remove'|'removeAll'|'add'|'clearchanges'|'filter'|'update'|'dataset'|'replace', record: Model, records: Model[], changes: object }) => void)|string): void
|
|
298
296
|
/**
|
|
@@ -300,12 +298,10 @@ const emit = defineEmits<{
|
|
|
300
298
|
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/model/ProjectModel#event-dataReady)
|
|
301
299
|
* @param {string} e Event name
|
|
302
300
|
* @param {object} params Event parameters
|
|
303
|
-
* @param {
|
|
304
|
-
* @param {
|
|
305
|
-
* @param {
|
|
306
|
-
* @param {
|
|
307
|
-
* @param {boolean} params.params.event.isInitialCommit Flag that shows if this commit is initial
|
|
308
|
-
* @param {Set<any>} params.params.event.records Set of all [Model](https://bryntum.com/products/scheduler/docs/api/Core/data/Model)s that were modified in the completed transaction. Use the [modifications](https://bryntum.com/products/scheduler/docs/api/Core/data/Model#property-modifications) property of each Model to identify modified fields.
|
|
301
|
+
* @param {object} params.event Event object
|
|
302
|
+
* @param {Scheduler.model.ProjectModel,any} params.event.source The project
|
|
303
|
+
* @param {boolean} params.event.isInitialCommit Flag that shows if this commit is initial
|
|
304
|
+
* @param {Set<any>} params.event.records Set of all [Model](https://bryntum.com/products/scheduler/docs/api/Core/data/Model)s that were modified in the completed transaction. Use the [modifications](https://bryntum.com/products/scheduler/docs/api/Core/data/Model#property-modifications) property of each Model to identify modified fields.
|
|
309
305
|
*/
|
|
310
306
|
(e: 'dataReady', params: ((event: { source: ProjectModel|any, isInitialCommit: boolean, records: Set<any> }) => void)|string): void
|
|
311
307
|
}>();
|
|
@@ -922,6 +922,11 @@ export declare type BryntumSchedulerProps = {
|
|
|
922
922
|
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/view/Scheduler#config-project)
|
|
923
923
|
*/
|
|
924
924
|
project ? : ProjectModel|ProjectModelConfig|object
|
|
925
|
+
/**
|
|
926
|
+
* The project model class to use when creating the project instance. Override this to use a custom project
|
|
927
|
+
* model class. In SchedulerPro and Gantt, this is overridden to use their respective project model classes.
|
|
928
|
+
*/
|
|
929
|
+
projectModelClass ? : typeof ProjectModel
|
|
925
930
|
/**
|
|
926
931
|
* Range used to set the length of the time axis when used as a component of a Calendar. Suitable units are
|
|
927
932
|
* `'month'`, `'week'` and `'day'`.
|