@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/ResourceCombo#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/ResourceCombo#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/ResourceCombo#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/ResourceCombo#config-insertFirst)
|
|
405
420
|
*/
|
|
406
421
|
insertFirst ? : HTMLElement|string
|
|
407
422
|
/**
|
|
@@ -797,44 +812,36 @@ const emit = defineEmits<{
|
|
|
797
812
|
* The default action was performed (an item in the list was selected)
|
|
798
813
|
* @param {string} e Event name
|
|
799
814
|
* @param {object} params Event parameters
|
|
800
|
-
* @param {
|
|
801
|
-
* @param {
|
|
802
|
-
* @param {
|
|
803
|
-
* @param {Core.
|
|
804
|
-
* @param {
|
|
805
|
-
* @param {
|
|
806
|
-
* @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`
|
|
807
|
-
* @param {boolean} params.params.event.userAction `true` if the value change is due to user interaction
|
|
815
|
+
* @param {object} params.event Event object
|
|
816
|
+
* @param {Core.widget.Combo} params.event.source The combo
|
|
817
|
+
* @param {any} params.event.value The [value](https://bryntum.com/products/scheduler/docs/api/Core/widget/Combo#config-valueField) of the selected record
|
|
818
|
+
* @param {Core.data.Model} params.event.record Selected record
|
|
819
|
+
* @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`
|
|
820
|
+
* @param {boolean} params.event.userAction `true` if the value change is due to user interaction
|
|
808
821
|
*/
|
|
809
822
|
(e: 'action', params: ((event: { source: Combo, value: any, record: Model, records: Model[], userAction: boolean }) => void)|string): void
|
|
810
823
|
/**
|
|
811
824
|
* Fires before an object is destroyed.
|
|
812
825
|
* @param {string} e Event name
|
|
813
826
|
* @param {object} params Event parameters
|
|
814
|
-
* @param {
|
|
815
|
-
* @param {
|
|
816
|
-
* @param {object} params.params.event Event object
|
|
817
|
-
* @param {Core.Base} params.params.event.source The Object that is being destroyed.
|
|
827
|
+
* @param {object} params.event Event object
|
|
828
|
+
* @param {Core.Base} params.event.source The Object that is being destroyed.
|
|
818
829
|
*/
|
|
819
830
|
(e: 'beforeDestroy', params: ((event: { source: Base }) => void)|string): void
|
|
820
831
|
/**
|
|
821
832
|
* Triggered before a widget is hidden. Return `false` to prevent the action.
|
|
822
833
|
* @param {string} e Event name
|
|
823
834
|
* @param {object} params Event parameters
|
|
824
|
-
* @param {
|
|
825
|
-
* @param {
|
|
826
|
-
* @param {object} params.params.event Event object
|
|
827
|
-
* @param {Core.widget.Widget} params.params.event.source The widget being hidden.
|
|
835
|
+
* @param {object} params.event Event object
|
|
836
|
+
* @param {Core.widget.Widget} params.event.source The widget being hidden.
|
|
828
837
|
*/
|
|
829
|
-
(e: 'beforeHide', params: ((event: { source: Widget }) =>
|
|
838
|
+
(e: 'beforeHide', params: ((event: { source: Widget }) => boolean|void)|string): boolean|void
|
|
830
839
|
/**
|
|
831
840
|
* Triggered before a widget is shown. Return `false` to prevent the action.
|
|
832
841
|
* @param {string} e Event name
|
|
833
842
|
* @param {object} params Event parameters
|
|
834
|
-
* @param {
|
|
835
|
-
* @param {
|
|
836
|
-
* @param {object} params.params.event Event object
|
|
837
|
-
* @param {Core.widget.Widget,any} params.params.event.source The widget being shown
|
|
843
|
+
* @param {object} params.event Event object
|
|
844
|
+
* @param {Core.widget.Widget,any} params.event.source The widget being shown
|
|
838
845
|
*/
|
|
839
846
|
(e: 'beforeShow', params: ((event: { source: Widget|any }) => Promise<boolean>|boolean|void)|string): Promise<boolean>|boolean|void
|
|
840
847
|
/**
|
|
@@ -842,27 +849,23 @@ const emit = defineEmits<{
|
|
|
842
849
|
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/ResourceCombo#event-catchAll)
|
|
843
850
|
* @param {string} e Event name
|
|
844
851
|
* @param {object} params Event parameters
|
|
845
|
-
* @param {
|
|
846
|
-
* @param {
|
|
847
|
-
* @param {
|
|
848
|
-
* @param {{[key: string]: any, type: string}} params.params.event.event The Object that contains event details
|
|
849
|
-
* @param {string} params.params.event.event.type The type of the event which is caught by the listener
|
|
852
|
+
* @param {object} params.event Event object
|
|
853
|
+
* @param {{[key: string]: any, type: string}} params.event.event The Object that contains event details
|
|
854
|
+
* @param {string} params.event.event.type The type of the event which is caught by the listener
|
|
850
855
|
*/
|
|
851
856
|
(e: 'catchAll', params: ((event: {[key: string]: any, type: string}) => void)|string): void
|
|
852
857
|
/**
|
|
853
858
|
* Fired when this field's value changes.
|
|
854
859
|
* @param {string} e Event name
|
|
855
860
|
* @param {object} params Event parameters
|
|
856
|
-
* @param {
|
|
857
|
-
* @param {
|
|
858
|
-
* @param {
|
|
859
|
-
* @param {
|
|
860
|
-
* @param {
|
|
861
|
-
* @param {
|
|
862
|
-
* @param {boolean} params.
|
|
863
|
-
* @param {
|
|
864
|
-
* @param {boolean} params.params.event.userAction Triggered by user taking an action (`true`) or by setting a value (`false`)
|
|
865
|
-
* @param {boolean} params.params.event.checked
|
|
861
|
+
* @param {object} params.event Event object
|
|
862
|
+
* @param {Core.widget.Field,any} params.event.source This Field
|
|
863
|
+
* @param {string,number,boolean,any} params.event.value This field's value
|
|
864
|
+
* @param {string,number,boolean,any} params.event.oldValue This field's previous value
|
|
865
|
+
* @param {boolean} params.event.valid True if this field is in a valid state
|
|
866
|
+
* @param {Event} params.event.event The triggering DOM event if any
|
|
867
|
+
* @param {boolean} params.event.userAction Triggered by user taking an action (`true`) or by setting a value (`false`)
|
|
868
|
+
* @param {boolean} params.event.checked
|
|
866
869
|
*/
|
|
867
870
|
(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
|
|
868
871
|
/**
|
|
@@ -870,45 +873,37 @@ const emit = defineEmits<{
|
|
|
870
873
|
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/ResourceCombo#event-clear)
|
|
871
874
|
* @param {string} e Event name
|
|
872
875
|
* @param {object} params Event parameters
|
|
873
|
-
* @param {
|
|
874
|
-
* @param {
|
|
875
|
-
* @param {object} params.params.event Event object
|
|
876
|
-
* @param {Core.widget.Field,any} params.params.event.source This Field
|
|
876
|
+
* @param {object} params.event Event object
|
|
877
|
+
* @param {Core.widget.Field,any} params.event.source This Field
|
|
877
878
|
*/
|
|
878
879
|
(e: 'clear', params: ((event: { source: Field|any }) => void)|string): void
|
|
879
880
|
/**
|
|
880
881
|
* Fires when an object is destroyed.
|
|
881
882
|
* @param {string} e Event name
|
|
882
883
|
* @param {object} params Event parameters
|
|
883
|
-
* @param {
|
|
884
|
-
* @param {
|
|
885
|
-
* @param {object} params.params.event Event object
|
|
886
|
-
* @param {Core.Base} params.params.event.source The Object that is being destroyed.
|
|
884
|
+
* @param {object} params.event Event object
|
|
885
|
+
* @param {Core.Base} params.event.source The Object that is being destroyed.
|
|
887
886
|
*/
|
|
888
887
|
(e: 'destroy', params: ((event: { source: Base }) => void)|string): void
|
|
889
888
|
/**
|
|
890
889
|
* Triggered when a widget's [element](https://bryntum.com/products/scheduler/docs/api/Core/widget/Widget#property-element) is available.
|
|
891
890
|
* @param {string} e Event name
|
|
892
891
|
* @param {object} params Event parameters
|
|
893
|
-
* @param {
|
|
894
|
-
* @param {
|
|
895
|
-
* @param {object} params.params.event Event object
|
|
896
|
-
* @param {HTMLElement} params.params.event.element The Widget's element.
|
|
892
|
+
* @param {object} params.event Event object
|
|
893
|
+
* @param {HTMLElement} params.event.element The Widget's element.
|
|
897
894
|
*/
|
|
898
895
|
(e: 'elementCreated', params: ((event: { element: HTMLElement }) => void)|string): void
|
|
899
896
|
/**
|
|
900
897
|
* Fired when focus enters this Widget.
|
|
901
898
|
* @param {string} e Event name
|
|
902
899
|
* @param {object} params Event parameters
|
|
903
|
-
* @param {
|
|
904
|
-
* @param {
|
|
905
|
-
* @param {
|
|
906
|
-
* @param {
|
|
907
|
-
* @param {
|
|
908
|
-
* @param {
|
|
909
|
-
* @param {
|
|
910
|
-
* @param {Core.widget.Widget} params.params.event.toWidget The widget which gained focus.
|
|
911
|
-
* @param {boolean} params.params.event.backwards `true` if the `toElement` is before the `fromElement` in document order.
|
|
900
|
+
* @param {object} params.event Event object
|
|
901
|
+
* @param {Core.widget.Widget} params.event.source This Widget
|
|
902
|
+
* @param {HTMLElement} params.event.fromElement The element which lost focus.
|
|
903
|
+
* @param {HTMLElement} params.event.toElement The element which gained focus.
|
|
904
|
+
* @param {Core.widget.Widget} params.event.fromWidget The widget which lost focus.
|
|
905
|
+
* @param {Core.widget.Widget} params.event.toWidget The widget which gained focus.
|
|
906
|
+
* @param {boolean} params.event.backwards `true` if the `toElement` is before the `fromElement` in document order.
|
|
912
907
|
*/
|
|
913
908
|
(e: 'focusIn', params: ((event: { source: Widget, fromElement: HTMLElement, toElement: HTMLElement, fromWidget: Widget, toWidget: Widget, backwards: boolean }) => void)|string): void
|
|
914
909
|
/**
|
|
@@ -917,25 +912,21 @@ const emit = defineEmits<{
|
|
|
917
912
|
* will not trigger this event. This is when focus exits this widget completely.
|
|
918
913
|
* @param {string} e Event name
|
|
919
914
|
* @param {object} params Event parameters
|
|
920
|
-
* @param {
|
|
921
|
-
* @param {
|
|
922
|
-
* @param {
|
|
923
|
-
* @param {
|
|
924
|
-
* @param {
|
|
925
|
-
* @param {
|
|
926
|
-
* @param {
|
|
927
|
-
* @param {Core.widget.Widget} params.params.event.toWidget The widget which gained focus.
|
|
928
|
-
* @param {boolean} params.params.event.backwards `true` if the `toElement` is before the `fromElement` in document order.
|
|
915
|
+
* @param {object} params.event Event object
|
|
916
|
+
* @param {Core.widget.Widget} params.event.source This Widget
|
|
917
|
+
* @param {HTMLElement} params.event.fromElement The element which lost focus.
|
|
918
|
+
* @param {HTMLElement} params.event.toElement The element which gained focus.
|
|
919
|
+
* @param {Core.widget.Widget} params.event.fromWidget The widget which lost focus.
|
|
920
|
+
* @param {Core.widget.Widget} params.event.toWidget The widget which gained focus.
|
|
921
|
+
* @param {boolean} params.event.backwards `true` if the `toElement` is before the `fromElement` in document order.
|
|
929
922
|
*/
|
|
930
923
|
(e: 'focusOut', params: ((event: { source: Widget, fromElement: HTMLElement, toElement: HTMLElement, fromWidget: Widget, toWidget: Widget, backwards: boolean }) => void)|string): void
|
|
931
924
|
/**
|
|
932
925
|
* Triggered after a widget was hidden
|
|
933
926
|
* @param {string} e Event name
|
|
934
927
|
* @param {object} params Event parameters
|
|
935
|
-
* @param {
|
|
936
|
-
* @param {
|
|
937
|
-
* @param {object} params.params.event Event object
|
|
938
|
-
* @param {Core.widget.Widget} params.params.event.source The widget
|
|
928
|
+
* @param {object} params.event Event object
|
|
929
|
+
* @param {Core.widget.Widget} params.event.source The widget
|
|
939
930
|
*/
|
|
940
931
|
(e: 'hide', params: ((event: { source: Widget }) => void)|string): void
|
|
941
932
|
/**
|
|
@@ -943,12 +934,10 @@ const emit = defineEmits<{
|
|
|
943
934
|
* not the combos value
|
|
944
935
|
* @param {string} e Event name
|
|
945
936
|
* @param {object} params Event parameters
|
|
946
|
-
* @param {
|
|
947
|
-
* @param {
|
|
948
|
-
* @param {
|
|
949
|
-
* @param {
|
|
950
|
-
* @param {string} params.params.event.value Raw input value
|
|
951
|
-
* @param {Event} params.params.event.event The triggering DOM event if any.
|
|
937
|
+
* @param {object} params.event Event object
|
|
938
|
+
* @param {Core.widget.Combo} params.event.source The combo.
|
|
939
|
+
* @param {string} params.event.value Raw input value
|
|
940
|
+
* @param {Event} params.event.event The triggering DOM event if any.
|
|
952
941
|
*/
|
|
953
942
|
(e: 'input', params: ((event: { source: Combo, value: string, event: Event }) => void)|string): void
|
|
954
943
|
/**
|
|
@@ -957,21 +946,17 @@ const emit = defineEmits<{
|
|
|
957
946
|
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/ResourceCombo#event-paint)
|
|
958
947
|
* @param {string} e Event name
|
|
959
948
|
* @param {object} params Event parameters
|
|
960
|
-
* @param {
|
|
961
|
-
* @param {
|
|
962
|
-
* @param {
|
|
963
|
-
* @param {Core.widget.Widget} params.params.event.source The widget being painted.
|
|
964
|
-
* @param {boolean} params.params.event.firstPaint `true` if this is the first paint.
|
|
949
|
+
* @param {object} params.event Event object
|
|
950
|
+
* @param {Core.widget.Widget} params.event.source The widget being painted.
|
|
951
|
+
* @param {boolean} params.event.firstPaint `true` if this is the first paint.
|
|
965
952
|
*/
|
|
966
953
|
(e: 'paint', params: ((event: { source: Widget, firstPaint: boolean }) => void)|string): void
|
|
967
954
|
/**
|
|
968
955
|
* Fired when a Widget's read only state is toggled
|
|
969
956
|
* @param {string} e Event name
|
|
970
957
|
* @param {object} params Event parameters
|
|
971
|
-
* @param {
|
|
972
|
-
* @param {
|
|
973
|
-
* @param {object} params.params.event Event object
|
|
974
|
-
* @param {boolean} params.params.event.readOnly Read only or not
|
|
958
|
+
* @param {object} params.event Event object
|
|
959
|
+
* @param {boolean} params.event.readOnly Read only or not
|
|
975
960
|
*/
|
|
976
961
|
(e: 'readOnly', params: ((event: { readOnly: boolean }) => void)|string): void
|
|
977
962
|
/**
|
|
@@ -983,48 +968,40 @@ const emit = defineEmits<{
|
|
|
983
968
|
* 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`*.
|
|
984
969
|
* @param {string} e Event name
|
|
985
970
|
* @param {object} params Event parameters
|
|
986
|
-
* @param {
|
|
987
|
-
* @param {
|
|
988
|
-
* @param {
|
|
989
|
-
* @param {
|
|
990
|
-
* @param {number} params.
|
|
991
|
-
* @param {number} params.
|
|
992
|
-
* @param {number} params.params.event.oldWidth The old width
|
|
993
|
-
* @param {number} params.params.event.oldHeight The old height
|
|
971
|
+
* @param {object} params.event Event object
|
|
972
|
+
* @param {Core.widget.Widget} params.event.source This Widget
|
|
973
|
+
* @param {number} params.event.width The new width
|
|
974
|
+
* @param {number} params.event.height The new height
|
|
975
|
+
* @param {number} params.event.oldWidth The old width
|
|
976
|
+
* @param {number} params.event.oldHeight The old height
|
|
994
977
|
*/
|
|
995
978
|
(e: 'resize', params: ((event: { source: Widget, width: number, height: number, oldWidth: number, oldHeight: number }) => void)|string): void
|
|
996
979
|
/**
|
|
997
980
|
* An item in the list was selected
|
|
998
981
|
* @param {string} e Event name
|
|
999
982
|
* @param {object} params Event parameters
|
|
1000
|
-
* @param {
|
|
1001
|
-
* @param {
|
|
1002
|
-
* @param {
|
|
1003
|
-
* @param {Core.
|
|
1004
|
-
* @param {
|
|
1005
|
-
* @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`
|
|
1006
|
-
* @param {boolean} params.params.event.userAction `true` if the value change is due to user interaction
|
|
983
|
+
* @param {object} params.event Event object
|
|
984
|
+
* @param {Core.widget.Combo} params.event.source The combo
|
|
985
|
+
* @param {Core.data.Model} params.event.record Selected record
|
|
986
|
+
* @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`
|
|
987
|
+
* @param {boolean} params.event.userAction `true` if the value change is due to user interaction
|
|
1007
988
|
*/
|
|
1008
989
|
(e: 'select', params: ((event: { source: Combo, record: Model, records: Model[], userAction: boolean }) => void)|string): void
|
|
1009
990
|
/**
|
|
1010
991
|
* Triggered after a widget is shown.
|
|
1011
992
|
* @param {string} e Event name
|
|
1012
993
|
* @param {object} params Event parameters
|
|
1013
|
-
* @param {
|
|
1014
|
-
* @param {
|
|
1015
|
-
* @param {object} params.params.event Event object
|
|
1016
|
-
* @param {Core.widget.Widget} params.params.event.source The widget
|
|
994
|
+
* @param {object} params.event Event object
|
|
995
|
+
* @param {Core.widget.Widget} params.event.source The widget
|
|
1017
996
|
*/
|
|
1018
997
|
(e: 'show', params: ((event: { source: Widget }) => void)|string): void
|
|
1019
998
|
/**
|
|
1020
999
|
* User clicked one of this field's [triggers](https://bryntum.com/products/scheduler/docs/api/Core/widget/Field#property-triggers)
|
|
1021
1000
|
* @param {string} e Event name
|
|
1022
1001
|
* @param {object} params Event parameters
|
|
1023
|
-
* @param {
|
|
1024
|
-
* @param {
|
|
1025
|
-
* @param {
|
|
1026
|
-
* @param {Core.widget.Field,any} params.params.event.source This field
|
|
1027
|
-
* @param {Core.widget.Widget} params.params.event.trigger The trigger activated by click or touch tap.
|
|
1002
|
+
* @param {object} params.event Event object
|
|
1003
|
+
* @param {Core.widget.Field,any} params.event.source This field
|
|
1004
|
+
* @param {Core.widget.Widget} params.event.trigger The trigger activated by click or touch tap.
|
|
1028
1005
|
*/
|
|
1029
1006
|
(e: 'trigger', params: ((event: { source: Field|any, trigger: Widget }) => void)|string): void
|
|
1030
1007
|
}>();
|
|
@@ -1046,6 +1023,7 @@ const widgetData = {
|
|
|
1046
1023
|
'cacheLastResult',
|
|
1047
1024
|
'caseSensitive',
|
|
1048
1025
|
'centered',
|
|
1026
|
+
'checkValidity',
|
|
1049
1027
|
'chipView',
|
|
1050
1028
|
'clearable',
|
|
1051
1029
|
'clearTextOnPickerHide',
|
|
@@ -28,6 +28,8 @@ export declare type BryntumResourceComboProps = {
|
|
|
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/ResourceCombo#config-appendTo)
|
|
31
33
|
*/
|
|
32
34
|
appendTo ? : HTMLElement|string
|
|
33
35
|
/**
|
|
@@ -90,6 +92,15 @@ export declare type BryntumResourceComboProps = {
|
|
|
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/ResourceCombo#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 BryntumResourceComboProps = {
|
|
|
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/ResourceCombo#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/ResourceCombo#config-insertFirst)
|
|
390
405
|
*/
|
|
391
406
|
insertFirst ? : HTMLElement|string
|
|
392
407
|
/**
|