@bryntum/scheduler-vue-3-thin 7.3.0 → 7.3.2
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 +86 -106
- package/src/components/BryntumEventColorFieldProps.ts +15 -0
- package/src/components/BryntumProjectCombo.vue +88 -110
- package/src/components/BryntumProjectComboProps.ts +16 -1
- package/src/components/BryntumResourceCombo.vue +87 -109
- package/src/components/BryntumResourceComboProps.ts +15 -0
- package/src/components/BryntumResourceFilter.vue +75 -107
- package/src/components/BryntumResourceFilterProps.ts +6 -0
- package/src/components/BryntumScheduler.vue +1432 -1928
- package/src/components/BryntumSchedulerBase.vue +1432 -1928
- package/src/components/BryntumSchedulerBaseProps.ts +12 -1
- package/src/components/BryntumSchedulerDatePicker.vue +91 -135
- package/src/components/BryntumSchedulerDatePickerProps.ts +6 -0
- package/src/components/BryntumSchedulerProjectModel.vue +11 -15
- package/src/components/BryntumSchedulerProps.ts +12 -1
- package/src/components/BryntumTimeZoomSlider.vue +56 -80
- package/src/components/BryntumTimeZoomSliderProps.ts +6 -0
- package/src/components/BryntumTimelineHistogram.vue +728 -1030
- package/src/components/BryntumTimelineHistogramProps.ts +6 -0
- package/src/components/BryntumUndoRedo.vue +56 -80
- package/src/components/BryntumUndoRedoProps.ts +7 -1
- package/src/components/BryntumViewPresetCombo.vue +83 -103
- package/src/components/BryntumViewPresetComboProps.ts +15 -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
|
@@ -43,6 +43,8 @@ defineProps<{
|
|
|
43
43
|
/**
|
|
44
44
|
* Element (or the id of an element) to append this widget's element to. Can be configured, or set once at
|
|
45
45
|
* runtime. To access the element of a rendered widget, see [element](https://bryntum.com/products/scheduler/docs/api/Core/widget/Widget#property-element).
|
|
46
|
+
* <div class="note">When creating nested trees of widgets, this should only be used on the outermost widget.
|
|
47
|
+
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/ProjectCombo#config-appendTo)
|
|
46
48
|
*/
|
|
47
49
|
appendTo ? : HTMLElement|string
|
|
48
50
|
/**
|
|
@@ -105,6 +107,15 @@ defineProps<{
|
|
|
105
107
|
* Set to `true` to centre the Widget in browser viewport space.
|
|
106
108
|
*/
|
|
107
109
|
centered ? : Boolean
|
|
110
|
+
/**
|
|
111
|
+
* A function (or the name of a function in the ownership hierarchy) called during field validation
|
|
112
|
+
* to perform custom validity checks. The function is called as part of the [isValid](https://bryntum.com/products/scheduler/docs/api/Core/widget/Field#property-isValid)
|
|
113
|
+
* evaluation, after the built-in [required](https://bryntum.com/products/scheduler/docs/api/Core/widget/Field#config-required) check.
|
|
114
|
+
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/ProjectCombo#config-checkValidity)
|
|
115
|
+
* @param {Core.widget.Field} field The field being validated
|
|
116
|
+
* @returns {void}
|
|
117
|
+
*/
|
|
118
|
+
checkValidity ? : ((field: Field) => void)|string
|
|
108
119
|
/**
|
|
109
120
|
* A config object to configure the [ChipView](https://bryntum.com/products/scheduler/docs/api/Core/widget/ChipView) to display the
|
|
110
121
|
* selected value set when [multiSelect](https://bryntum.com/products/scheduler/docs/api/Core/widget/Combo#config-multiSelect) is `true`.
|
|
@@ -398,10 +409,14 @@ defineProps<{
|
|
|
398
409
|
inputWidth ? : string|number
|
|
399
410
|
/**
|
|
400
411
|
* Element (or element id) to insert this widget before. If provided, [appendTo](https://bryntum.com/products/scheduler/docs/api/Core/widget/Widget#config-appendTo) config is ignored.
|
|
412
|
+
* <div class="note">When creating nested trees of widgets, this should only be used on the outermost widget.
|
|
413
|
+
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/ProjectCombo#config-insertBefore)
|
|
401
414
|
*/
|
|
402
415
|
insertBefore ? : HTMLElement|string
|
|
403
416
|
/**
|
|
404
417
|
* Element (or element id) to append this widget element to, as a first child. If provided, [appendTo](https://bryntum.com/products/scheduler/docs/api/Core/widget/Widget#config-appendTo) config is ignored.
|
|
418
|
+
* <div class="note">When creating nested trees of widgets, this should only be used on the outermost widget.
|
|
419
|
+
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/ProjectCombo#config-insertFirst)
|
|
405
420
|
*/
|
|
406
421
|
insertFirst ? : HTMLElement|string
|
|
407
422
|
/**
|
|
@@ -613,7 +628,7 @@ defineProps<{
|
|
|
613
628
|
/**
|
|
614
629
|
* Project to reconfigure when picking an item.
|
|
615
630
|
*/
|
|
616
|
-
project ? : ProjectModel|object
|
|
631
|
+
project ? : ProjectModel|object|null
|
|
617
632
|
/**
|
|
618
633
|
* Makes the field unmodifiable by user action. The input area is not editable, and triggers
|
|
619
634
|
* are unresponsive.
|
|
@@ -795,44 +810,36 @@ const emit = defineEmits<{
|
|
|
795
810
|
* The default action was performed (an item in the list was selected)
|
|
796
811
|
* @param {string} e Event name
|
|
797
812
|
* @param {object} params Event parameters
|
|
798
|
-
* @param {
|
|
799
|
-
* @param {
|
|
800
|
-
* @param {
|
|
801
|
-
* @param {Core.
|
|
802
|
-
* @param {
|
|
803
|
-
* @param {
|
|
804
|
-
* @param {Core.data.Model[]} params.params.event.records Selected records as an array if [multiSelect](https://bryntum.com/products/scheduler/docs/api/Core/widget/Combo#config-multiSelect) is `true`
|
|
805
|
-
* @param {boolean} params.params.event.userAction `true` if the value change is due to user interaction
|
|
813
|
+
* @param {object} params.event Event object
|
|
814
|
+
* @param {Core.widget.Combo} params.event.source The combo
|
|
815
|
+
* @param {any} params.event.value The [value](https://bryntum.com/products/scheduler/docs/api/Core/widget/Combo#config-valueField) of the selected record
|
|
816
|
+
* @param {Core.data.Model} params.event.record Selected record
|
|
817
|
+
* @param {Core.data.Model[]} params.event.records Selected records as an array if [multiSelect](https://bryntum.com/products/scheduler/docs/api/Core/widget/Combo#config-multiSelect) is `true`
|
|
818
|
+
* @param {boolean} params.event.userAction `true` if the value change is due to user interaction
|
|
806
819
|
*/
|
|
807
820
|
(e: 'action', params: ((event: { source: Combo, value: any, record: Model, records: Model[], userAction: boolean }) => void)|string): void
|
|
808
821
|
/**
|
|
809
822
|
* Fires before an object is destroyed.
|
|
810
823
|
* @param {string} e Event name
|
|
811
824
|
* @param {object} params Event parameters
|
|
812
|
-
* @param {
|
|
813
|
-
* @param {
|
|
814
|
-
* @param {object} params.params.event Event object
|
|
815
|
-
* @param {Core.Base} params.params.event.source The Object that is being destroyed.
|
|
825
|
+
* @param {object} params.event Event object
|
|
826
|
+
* @param {Core.Base} params.event.source The Object that is being destroyed.
|
|
816
827
|
*/
|
|
817
828
|
(e: 'beforeDestroy', params: ((event: { source: Base }) => void)|string): void
|
|
818
829
|
/**
|
|
819
830
|
* Triggered before a widget is hidden. Return `false` to prevent the action.
|
|
820
831
|
* @param {string} e Event name
|
|
821
832
|
* @param {object} params Event parameters
|
|
822
|
-
* @param {
|
|
823
|
-
* @param {
|
|
824
|
-
* @param {object} params.params.event Event object
|
|
825
|
-
* @param {Core.widget.Widget} params.params.event.source The widget being hidden.
|
|
833
|
+
* @param {object} params.event Event object
|
|
834
|
+
* @param {Core.widget.Widget} params.event.source The widget being hidden.
|
|
826
835
|
*/
|
|
827
|
-
(e: 'beforeHide', params: ((event: { source: Widget }) =>
|
|
836
|
+
(e: 'beforeHide', params: ((event: { source: Widget }) => boolean|void)|string): boolean|void
|
|
828
837
|
/**
|
|
829
838
|
* Triggered before a widget is shown. Return `false` to prevent the action.
|
|
830
839
|
* @param {string} e Event name
|
|
831
840
|
* @param {object} params Event parameters
|
|
832
|
-
* @param {
|
|
833
|
-
* @param {
|
|
834
|
-
* @param {object} params.params.event Event object
|
|
835
|
-
* @param {Core.widget.Widget,any} params.params.event.source The widget being shown
|
|
841
|
+
* @param {object} params.event Event object
|
|
842
|
+
* @param {Core.widget.Widget,any} params.event.source The widget being shown
|
|
836
843
|
*/
|
|
837
844
|
(e: 'beforeShow', params: ((event: { source: Widget|any }) => Promise<boolean>|boolean|void)|string): Promise<boolean>|boolean|void
|
|
838
845
|
/**
|
|
@@ -840,27 +847,23 @@ const emit = defineEmits<{
|
|
|
840
847
|
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/ProjectCombo#event-catchAll)
|
|
841
848
|
* @param {string} e Event name
|
|
842
849
|
* @param {object} params Event parameters
|
|
843
|
-
* @param {
|
|
844
|
-
* @param {
|
|
845
|
-
* @param {
|
|
846
|
-
* @param {{[key: string]: any, type: string}} params.params.event.event The Object that contains event details
|
|
847
|
-
* @param {string} params.params.event.event.type The type of the event which is caught by the listener
|
|
850
|
+
* @param {object} params.event Event object
|
|
851
|
+
* @param {{[key: string]: any, type: string}} params.event.event The Object that contains event details
|
|
852
|
+
* @param {string} params.event.event.type The type of the event which is caught by the listener
|
|
848
853
|
*/
|
|
849
854
|
(e: 'catchAll', params: ((event: {[key: string]: any, type: string}) => void)|string): void
|
|
850
855
|
/**
|
|
851
856
|
* Fired when this field's value changes.
|
|
852
857
|
* @param {string} e Event name
|
|
853
858
|
* @param {object} params Event parameters
|
|
854
|
-
* @param {
|
|
855
|
-
* @param {
|
|
856
|
-
* @param {
|
|
857
|
-
* @param {
|
|
858
|
-
* @param {
|
|
859
|
-
* @param {
|
|
860
|
-
* @param {boolean} params.
|
|
861
|
-
* @param {
|
|
862
|
-
* @param {boolean} params.params.event.userAction Triggered by user taking an action (`true`) or by setting a value (`false`)
|
|
863
|
-
* @param {boolean} params.params.event.checked
|
|
859
|
+
* @param {object} params.event Event object
|
|
860
|
+
* @param {Core.widget.Field,any} params.event.source This Field
|
|
861
|
+
* @param {string,number,boolean,any} params.event.value This field's value
|
|
862
|
+
* @param {string,number,boolean,any} params.event.oldValue This field's previous value
|
|
863
|
+
* @param {boolean} params.event.valid True if this field is in a valid state
|
|
864
|
+
* @param {Event} params.event.event The triggering DOM event if any
|
|
865
|
+
* @param {boolean} params.event.userAction Triggered by user taking an action (`true`) or by setting a value (`false`)
|
|
866
|
+
* @param {boolean} params.event.checked
|
|
864
867
|
*/
|
|
865
868
|
(e: 'change', params: ((event: { source: Field|any, value: string|number|boolean|any, oldValue: string|number|boolean|any, valid: boolean, event: Event, userAction: boolean, checked: boolean }) => void)|string): void
|
|
866
869
|
/**
|
|
@@ -868,45 +871,37 @@ const emit = defineEmits<{
|
|
|
868
871
|
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/ProjectCombo#event-clear)
|
|
869
872
|
* @param {string} e Event name
|
|
870
873
|
* @param {object} params Event parameters
|
|
871
|
-
* @param {
|
|
872
|
-
* @param {
|
|
873
|
-
* @param {object} params.params.event Event object
|
|
874
|
-
* @param {Core.widget.Field,any} params.params.event.source This Field
|
|
874
|
+
* @param {object} params.event Event object
|
|
875
|
+
* @param {Core.widget.Field,any} params.event.source This Field
|
|
875
876
|
*/
|
|
876
877
|
(e: 'clear', params: ((event: { source: Field|any }) => void)|string): void
|
|
877
878
|
/**
|
|
878
879
|
* Fires when an object is destroyed.
|
|
879
880
|
* @param {string} e Event name
|
|
880
881
|
* @param {object} params Event parameters
|
|
881
|
-
* @param {
|
|
882
|
-
* @param {
|
|
883
|
-
* @param {object} params.params.event Event object
|
|
884
|
-
* @param {Core.Base} params.params.event.source The Object that is being destroyed.
|
|
882
|
+
* @param {object} params.event Event object
|
|
883
|
+
* @param {Core.Base} params.event.source The Object that is being destroyed.
|
|
885
884
|
*/
|
|
886
885
|
(e: 'destroy', params: ((event: { source: Base }) => void)|string): void
|
|
887
886
|
/**
|
|
888
887
|
* Triggered when a widget's [element](https://bryntum.com/products/scheduler/docs/api/Core/widget/Widget#property-element) is available.
|
|
889
888
|
* @param {string} e Event name
|
|
890
889
|
* @param {object} params Event parameters
|
|
891
|
-
* @param {
|
|
892
|
-
* @param {
|
|
893
|
-
* @param {object} params.params.event Event object
|
|
894
|
-
* @param {HTMLElement} params.params.event.element The Widget's element.
|
|
890
|
+
* @param {object} params.event Event object
|
|
891
|
+
* @param {HTMLElement} params.event.element The Widget's element.
|
|
895
892
|
*/
|
|
896
893
|
(e: 'elementCreated', params: ((event: { element: HTMLElement }) => void)|string): void
|
|
897
894
|
/**
|
|
898
895
|
* Fired when focus enters this Widget.
|
|
899
896
|
* @param {string} e Event name
|
|
900
897
|
* @param {object} params Event parameters
|
|
901
|
-
* @param {
|
|
902
|
-
* @param {
|
|
903
|
-
* @param {
|
|
904
|
-
* @param {
|
|
905
|
-
* @param {
|
|
906
|
-
* @param {
|
|
907
|
-
* @param {
|
|
908
|
-
* @param {Core.widget.Widget} params.params.event.toWidget The widget which gained focus.
|
|
909
|
-
* @param {boolean} params.params.event.backwards `true` if the `toElement` is before the `fromElement` in document order.
|
|
898
|
+
* @param {object} params.event Event object
|
|
899
|
+
* @param {Core.widget.Widget} params.event.source This Widget
|
|
900
|
+
* @param {HTMLElement} params.event.fromElement The element which lost focus.
|
|
901
|
+
* @param {HTMLElement} params.event.toElement The element which gained focus.
|
|
902
|
+
* @param {Core.widget.Widget} params.event.fromWidget The widget which lost focus.
|
|
903
|
+
* @param {Core.widget.Widget} params.event.toWidget The widget which gained focus.
|
|
904
|
+
* @param {boolean} params.event.backwards `true` if the `toElement` is before the `fromElement` in document order.
|
|
910
905
|
*/
|
|
911
906
|
(e: 'focusIn', params: ((event: { source: Widget, fromElement: HTMLElement, toElement: HTMLElement, fromWidget: Widget, toWidget: Widget, backwards: boolean }) => void)|string): void
|
|
912
907
|
/**
|
|
@@ -915,25 +910,21 @@ const emit = defineEmits<{
|
|
|
915
910
|
* will not trigger this event. This is when focus exits this widget completely.
|
|
916
911
|
* @param {string} e Event name
|
|
917
912
|
* @param {object} params Event parameters
|
|
918
|
-
* @param {
|
|
919
|
-
* @param {
|
|
920
|
-
* @param {
|
|
921
|
-
* @param {
|
|
922
|
-
* @param {
|
|
923
|
-
* @param {
|
|
924
|
-
* @param {
|
|
925
|
-
* @param {Core.widget.Widget} params.params.event.toWidget The widget which gained focus.
|
|
926
|
-
* @param {boolean} params.params.event.backwards `true` if the `toElement` is before the `fromElement` in document order.
|
|
913
|
+
* @param {object} params.event Event object
|
|
914
|
+
* @param {Core.widget.Widget} params.event.source This Widget
|
|
915
|
+
* @param {HTMLElement} params.event.fromElement The element which lost focus.
|
|
916
|
+
* @param {HTMLElement} params.event.toElement The element which gained focus.
|
|
917
|
+
* @param {Core.widget.Widget} params.event.fromWidget The widget which lost focus.
|
|
918
|
+
* @param {Core.widget.Widget} params.event.toWidget The widget which gained focus.
|
|
919
|
+
* @param {boolean} params.event.backwards `true` if the `toElement` is before the `fromElement` in document order.
|
|
927
920
|
*/
|
|
928
921
|
(e: 'focusOut', params: ((event: { source: Widget, fromElement: HTMLElement, toElement: HTMLElement, fromWidget: Widget, toWidget: Widget, backwards: boolean }) => void)|string): void
|
|
929
922
|
/**
|
|
930
923
|
* Triggered after a widget was hidden
|
|
931
924
|
* @param {string} e Event name
|
|
932
925
|
* @param {object} params Event parameters
|
|
933
|
-
* @param {
|
|
934
|
-
* @param {
|
|
935
|
-
* @param {object} params.params.event Event object
|
|
936
|
-
* @param {Core.widget.Widget} params.params.event.source The widget
|
|
926
|
+
* @param {object} params.event Event object
|
|
927
|
+
* @param {Core.widget.Widget} params.event.source The widget
|
|
937
928
|
*/
|
|
938
929
|
(e: 'hide', params: ((event: { source: Widget }) => void)|string): void
|
|
939
930
|
/**
|
|
@@ -941,12 +932,10 @@ const emit = defineEmits<{
|
|
|
941
932
|
* not the combos value
|
|
942
933
|
* @param {string} e Event name
|
|
943
934
|
* @param {object} params Event parameters
|
|
944
|
-
* @param {
|
|
945
|
-
* @param {
|
|
946
|
-
* @param {
|
|
947
|
-
* @param {
|
|
948
|
-
* @param {string} params.params.event.value Raw input value
|
|
949
|
-
* @param {Event} params.params.event.event The triggering DOM event if any.
|
|
935
|
+
* @param {object} params.event Event object
|
|
936
|
+
* @param {Core.widget.Combo} params.event.source The combo.
|
|
937
|
+
* @param {string} params.event.value Raw input value
|
|
938
|
+
* @param {Event} params.event.event The triggering DOM event if any.
|
|
950
939
|
*/
|
|
951
940
|
(e: 'input', params: ((event: { source: Combo, value: string, event: Event }) => void)|string): void
|
|
952
941
|
/**
|
|
@@ -955,21 +944,17 @@ const emit = defineEmits<{
|
|
|
955
944
|
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/ProjectCombo#event-paint)
|
|
956
945
|
* @param {string} e Event name
|
|
957
946
|
* @param {object} params Event parameters
|
|
958
|
-
* @param {
|
|
959
|
-
* @param {
|
|
960
|
-
* @param {
|
|
961
|
-
* @param {Core.widget.Widget} params.params.event.source The widget being painted.
|
|
962
|
-
* @param {boolean} params.params.event.firstPaint `true` if this is the first paint.
|
|
947
|
+
* @param {object} params.event Event object
|
|
948
|
+
* @param {Core.widget.Widget} params.event.source The widget being painted.
|
|
949
|
+
* @param {boolean} params.event.firstPaint `true` if this is the first paint.
|
|
963
950
|
*/
|
|
964
951
|
(e: 'paint', params: ((event: { source: Widget, firstPaint: boolean }) => void)|string): void
|
|
965
952
|
/**
|
|
966
953
|
* Fired when a Widget's read only state is toggled
|
|
967
954
|
* @param {string} e Event name
|
|
968
955
|
* @param {object} params Event parameters
|
|
969
|
-
* @param {
|
|
970
|
-
* @param {
|
|
971
|
-
* @param {object} params.params.event Event object
|
|
972
|
-
* @param {boolean} params.params.event.readOnly Read only or not
|
|
956
|
+
* @param {object} params.event Event object
|
|
957
|
+
* @param {boolean} params.event.readOnly Read only or not
|
|
973
958
|
*/
|
|
974
959
|
(e: 'readOnly', params: ((event: { readOnly: boolean }) => void)|string): void
|
|
975
960
|
/**
|
|
@@ -981,48 +966,40 @@ const emit = defineEmits<{
|
|
|
981
966
|
* 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`*.
|
|
982
967
|
* @param {string} e Event name
|
|
983
968
|
* @param {object} params Event parameters
|
|
984
|
-
* @param {
|
|
985
|
-
* @param {
|
|
986
|
-
* @param {
|
|
987
|
-
* @param {
|
|
988
|
-
* @param {number} params.
|
|
989
|
-
* @param {number} params.
|
|
990
|
-
* @param {number} params.params.event.oldWidth The old width
|
|
991
|
-
* @param {number} params.params.event.oldHeight The old height
|
|
969
|
+
* @param {object} params.event Event object
|
|
970
|
+
* @param {Core.widget.Widget} params.event.source This Widget
|
|
971
|
+
* @param {number} params.event.width The new width
|
|
972
|
+
* @param {number} params.event.height The new height
|
|
973
|
+
* @param {number} params.event.oldWidth The old width
|
|
974
|
+
* @param {number} params.event.oldHeight The old height
|
|
992
975
|
*/
|
|
993
976
|
(e: 'resize', params: ((event: { source: Widget, width: number, height: number, oldWidth: number, oldHeight: number }) => void)|string): void
|
|
994
977
|
/**
|
|
995
978
|
* An item in the list was selected
|
|
996
979
|
* @param {string} e Event name
|
|
997
980
|
* @param {object} params Event parameters
|
|
998
|
-
* @param {
|
|
999
|
-
* @param {
|
|
1000
|
-
* @param {
|
|
1001
|
-
* @param {Core.
|
|
1002
|
-
* @param {
|
|
1003
|
-
* @param {Core.data.Model[]} params.params.event.records Selected records as an array if [multiSelect](https://bryntum.com/products/scheduler/docs/api/Core/widget/Combo#config-multiSelect) is `true`
|
|
1004
|
-
* @param {boolean} params.params.event.userAction `true` if the value change is due to user interaction
|
|
981
|
+
* @param {object} params.event Event object
|
|
982
|
+
* @param {Core.widget.Combo} params.event.source The combo
|
|
983
|
+
* @param {Core.data.Model} params.event.record Selected record
|
|
984
|
+
* @param {Core.data.Model[]} params.event.records Selected records as an array if [multiSelect](https://bryntum.com/products/scheduler/docs/api/Core/widget/Combo#config-multiSelect) is `true`
|
|
985
|
+
* @param {boolean} params.event.userAction `true` if the value change is due to user interaction
|
|
1005
986
|
*/
|
|
1006
987
|
(e: 'select', params: ((event: { source: Combo, record: Model, records: Model[], userAction: boolean }) => void)|string): void
|
|
1007
988
|
/**
|
|
1008
989
|
* Triggered after a widget is shown.
|
|
1009
990
|
* @param {string} e Event name
|
|
1010
991
|
* @param {object} params Event parameters
|
|
1011
|
-
* @param {
|
|
1012
|
-
* @param {
|
|
1013
|
-
* @param {object} params.params.event Event object
|
|
1014
|
-
* @param {Core.widget.Widget} params.params.event.source The widget
|
|
992
|
+
* @param {object} params.event Event object
|
|
993
|
+
* @param {Core.widget.Widget} params.event.source The widget
|
|
1015
994
|
*/
|
|
1016
995
|
(e: 'show', params: ((event: { source: Widget }) => void)|string): void
|
|
1017
996
|
/**
|
|
1018
997
|
* User clicked one of this field's [triggers](https://bryntum.com/products/scheduler/docs/api/Core/widget/Field#property-triggers)
|
|
1019
998
|
* @param {string} e Event name
|
|
1020
999
|
* @param {object} params Event parameters
|
|
1021
|
-
* @param {
|
|
1022
|
-
* @param {
|
|
1023
|
-
* @param {
|
|
1024
|
-
* @param {Core.widget.Field,any} params.params.event.source This field
|
|
1025
|
-
* @param {Core.widget.Widget} params.params.event.trigger The trigger activated by click or touch tap.
|
|
1000
|
+
* @param {object} params.event Event object
|
|
1001
|
+
* @param {Core.widget.Field,any} params.event.source This field
|
|
1002
|
+
* @param {Core.widget.Widget} params.event.trigger The trigger activated by click or touch tap.
|
|
1026
1003
|
*/
|
|
1027
1004
|
(e: 'trigger', params: ((event: { source: Field|any, trigger: Widget }) => void)|string): void
|
|
1028
1005
|
}>();
|
|
@@ -1044,6 +1021,7 @@ const widgetData = {
|
|
|
1044
1021
|
'cacheLastResult',
|
|
1045
1022
|
'caseSensitive',
|
|
1046
1023
|
'centered',
|
|
1024
|
+
'checkValidity',
|
|
1047
1025
|
'chipView',
|
|
1048
1026
|
'clearable',
|
|
1049
1027
|
'clearTextOnPickerHide',
|
|
@@ -28,6 +28,8 @@ export declare type BryntumProjectComboProps = {
|
|
|
28
28
|
/**
|
|
29
29
|
* Element (or the id of an element) to append this widget's element to. Can be configured, or set once at
|
|
30
30
|
* runtime. To access the element of a rendered widget, see [element](https://bryntum.com/products/scheduler/docs/api/Core/widget/Widget#property-element).
|
|
31
|
+
* <div class="note">When creating nested trees of widgets, this should only be used on the outermost widget.
|
|
32
|
+
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/ProjectCombo#config-appendTo)
|
|
31
33
|
*/
|
|
32
34
|
appendTo ? : HTMLElement|string
|
|
33
35
|
/**
|
|
@@ -90,6 +92,15 @@ export declare type BryntumProjectComboProps = {
|
|
|
90
92
|
* Set to `true` to centre the Widget in browser viewport space.
|
|
91
93
|
*/
|
|
92
94
|
centered ? : Boolean
|
|
95
|
+
/**
|
|
96
|
+
* A function (or the name of a function in the ownership hierarchy) called during field validation
|
|
97
|
+
* to perform custom validity checks. The function is called as part of the [isValid](https://bryntum.com/products/scheduler/docs/api/Core/widget/Field#property-isValid)
|
|
98
|
+
* evaluation, after the built-in [required](https://bryntum.com/products/scheduler/docs/api/Core/widget/Field#config-required) check.
|
|
99
|
+
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/ProjectCombo#config-checkValidity)
|
|
100
|
+
* @param {Core.widget.Field} field The field being validated
|
|
101
|
+
* @returns {void}
|
|
102
|
+
*/
|
|
103
|
+
checkValidity ? : ((field: Field) => void)|string
|
|
93
104
|
/**
|
|
94
105
|
* A config object to configure the [ChipView](https://bryntum.com/products/scheduler/docs/api/Core/widget/ChipView) to display the
|
|
95
106
|
* selected value set when [multiSelect](https://bryntum.com/products/scheduler/docs/api/Core/widget/Combo#config-multiSelect) is `true`.
|
|
@@ -383,10 +394,14 @@ export declare type BryntumProjectComboProps = {
|
|
|
383
394
|
inputWidth ? : string|number
|
|
384
395
|
/**
|
|
385
396
|
* Element (or element id) to insert this widget before. If provided, [appendTo](https://bryntum.com/products/scheduler/docs/api/Core/widget/Widget#config-appendTo) config is ignored.
|
|
397
|
+
* <div class="note">When creating nested trees of widgets, this should only be used on the outermost widget.
|
|
398
|
+
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/ProjectCombo#config-insertBefore)
|
|
386
399
|
*/
|
|
387
400
|
insertBefore ? : HTMLElement|string
|
|
388
401
|
/**
|
|
389
402
|
* Element (or element id) to append this widget element to, as a first child. If provided, [appendTo](https://bryntum.com/products/scheduler/docs/api/Core/widget/Widget#config-appendTo) config is ignored.
|
|
403
|
+
* <div class="note">When creating nested trees of widgets, this should only be used on the outermost widget.
|
|
404
|
+
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/ProjectCombo#config-insertFirst)
|
|
390
405
|
*/
|
|
391
406
|
insertFirst ? : HTMLElement|string
|
|
392
407
|
/**
|
|
@@ -598,7 +613,7 @@ export declare type BryntumProjectComboProps = {
|
|
|
598
613
|
/**
|
|
599
614
|
* Project to reconfigure when picking an item.
|
|
600
615
|
*/
|
|
601
|
-
project ? : ProjectModel|object
|
|
616
|
+
project ? : ProjectModel|object|null
|
|
602
617
|
/**
|
|
603
618
|
* Makes the field unmodifiable by user action. The input area is not editable, and triggers
|
|
604
619
|
* are unresponsive.
|