@bryntum/schedulerpro-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 +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 +70 -106
- package/src/components/BryntumCalendarEditorProps.ts +6 -0
- package/src/components/BryntumCalendarField.vue +87 -109
- package/src/components/BryntumCalendarFieldProps.ts +15 -0
- package/src/components/BryntumConstraintTypePicker.vue +87 -109
- package/src/components/BryntumConstraintTypePickerProps.ts +15 -0
- package/src/components/BryntumCostAccrualField.vue +87 -109
- package/src/components/BryntumCostAccrualFieldProps.ts +15 -0
- package/src/components/BryntumDependencyTypePicker.vue +87 -109
- package/src/components/BryntumDependencyTypePickerProps.ts +15 -0
- package/src/components/BryntumEffortField.vue +82 -102
- package/src/components/BryntumEffortFieldProps.ts +15 -0
- package/src/components/BryntumEndDateField.vue +87 -107
- package/src/components/BryntumEndDateFieldProps.ts +16 -1
- package/src/components/BryntumModelCombo.vue +87 -109
- package/src/components/BryntumModelComboProps.ts +15 -0
- package/src/components/BryntumRateTableField.vue +87 -109
- package/src/components/BryntumRateTableFieldProps.ts +15 -0
- package/src/components/BryntumResourceEditor.vue +70 -106
- package/src/components/BryntumResourceEditorProps.ts +6 -0
- package/src/components/BryntumResourceGrid.vue +536 -756
- package/src/components/BryntumResourceGridProps.ts +12 -1
- package/src/components/BryntumResourceHistogram.vue +780 -1092
- package/src/components/BryntumResourceHistogramProps.ts +12 -1
- package/src/components/BryntumResourceTypeField.vue +87 -109
- package/src/components/BryntumResourceTypeFieldProps.ts +15 -0
- package/src/components/BryntumResourceUtilization.vue +796 -1114
- package/src/components/BryntumResourceUtilizationProps.ts +12 -1
- package/src/components/BryntumSchedulerPro.vue +1620 -2196
- package/src/components/BryntumSchedulerProBase.vue +1620 -2196
- package/src/components/BryntumSchedulerProBaseProps.ts +12 -1
- package/src/components/BryntumSchedulerProProjectModel.vue +140 -190
- package/src/components/BryntumSchedulerProProjectModelProps.ts +9 -7
- package/src/components/BryntumSchedulerProProps.ts +12 -1
- package/src/components/BryntumSchedulingDirectionPicker.vue +87 -109
- package/src/components/BryntumSchedulingDirectionPickerProps.ts +15 -0
- package/src/components/BryntumSchedulingModePicker.vue +87 -109
- package/src/components/BryntumSchedulingModePickerProps.ts +15 -0
- package/src/components/BryntumStartDateField.vue +87 -107
- package/src/components/BryntumStartDateFieldProps.ts +16 -1
- package/src/components/BryntumTimeline.vue +1432 -1928
- package/src/components/BryntumTimelineProps.ts +12 -1
- package/src/components/BryntumVersionGrid.vue +534 -764
- package/src/components/BryntumVersionGridProps.ts +7 -1
- 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
|
@@ -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/schedulerpro/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/schedulerpro/docs/api/SchedulerPro/widget/ModelCombo#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/schedulerpro/docs/api/Core/widget/Field#property-isValid)
|
|
113
|
+
* evaluation, after the built-in [required](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Field#config-required) check.
|
|
114
|
+
* [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/ModelCombo#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/schedulerpro/docs/api/Core/widget/ChipView) to display the
|
|
110
121
|
* selected value set when [multiSelect](https://bryntum.com/products/schedulerpro/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/schedulerpro/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/schedulerpro/docs/api/SchedulerPro/widget/ModelCombo#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/schedulerpro/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/schedulerpro/docs/api/SchedulerPro/widget/ModelCombo#config-insertFirst)
|
|
405
420
|
*/
|
|
406
421
|
insertFirst ? : HTMLElement|string
|
|
407
422
|
/**
|
|
@@ -793,44 +808,36 @@ const emit = defineEmits<{
|
|
|
793
808
|
* The default action was performed (an item in the list was selected)
|
|
794
809
|
* @param {string} e Event name
|
|
795
810
|
* @param {object} params Event parameters
|
|
796
|
-
* @param {
|
|
797
|
-
* @param {
|
|
798
|
-
* @param {
|
|
799
|
-
* @param {Core.
|
|
800
|
-
* @param {
|
|
801
|
-
* @param {
|
|
802
|
-
* @param {Core.data.Model[]} params.params.event.records Selected records as an array if [multiSelect](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Combo#config-multiSelect) is `true`
|
|
803
|
-
* @param {boolean} params.params.event.userAction `true` if the value change is due to user interaction
|
|
811
|
+
* @param {object} params.event Event object
|
|
812
|
+
* @param {Core.widget.Combo} params.event.source The combo
|
|
813
|
+
* @param {any} params.event.value The [value](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Combo#config-valueField) of the selected record
|
|
814
|
+
* @param {Core.data.Model} params.event.record Selected record
|
|
815
|
+
* @param {Core.data.Model[]} params.event.records Selected records as an array if [multiSelect](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Combo#config-multiSelect) is `true`
|
|
816
|
+
* @param {boolean} params.event.userAction `true` if the value change is due to user interaction
|
|
804
817
|
*/
|
|
805
818
|
(e: 'action', params: ((event: { source: Combo, value: any, record: Model, records: Model[], userAction: boolean }) => void)|string): void
|
|
806
819
|
/**
|
|
807
820
|
* Fires before an object is destroyed.
|
|
808
821
|
* @param {string} e Event name
|
|
809
822
|
* @param {object} params Event parameters
|
|
810
|
-
* @param {
|
|
811
|
-
* @param {
|
|
812
|
-
* @param {object} params.params.event Event object
|
|
813
|
-
* @param {Core.Base} params.params.event.source The Object that is being destroyed.
|
|
823
|
+
* @param {object} params.event Event object
|
|
824
|
+
* @param {Core.Base} params.event.source The Object that is being destroyed.
|
|
814
825
|
*/
|
|
815
826
|
(e: 'beforeDestroy', params: ((event: { source: Base }) => void)|string): void
|
|
816
827
|
/**
|
|
817
828
|
* Triggered before a widget is hidden. Return `false` to prevent the action.
|
|
818
829
|
* @param {string} e Event name
|
|
819
830
|
* @param {object} params Event parameters
|
|
820
|
-
* @param {
|
|
821
|
-
* @param {
|
|
822
|
-
* @param {object} params.params.event Event object
|
|
823
|
-
* @param {Core.widget.Widget} params.params.event.source The widget being hidden.
|
|
831
|
+
* @param {object} params.event Event object
|
|
832
|
+
* @param {Core.widget.Widget} params.event.source The widget being hidden.
|
|
824
833
|
*/
|
|
825
|
-
(e: 'beforeHide', params: ((event: { source: Widget }) =>
|
|
834
|
+
(e: 'beforeHide', params: ((event: { source: Widget }) => boolean|void)|string): boolean|void
|
|
826
835
|
/**
|
|
827
836
|
* Triggered before a widget is shown. Return `false` to prevent the action.
|
|
828
837
|
* @param {string} e Event name
|
|
829
838
|
* @param {object} params Event parameters
|
|
830
|
-
* @param {
|
|
831
|
-
* @param {
|
|
832
|
-
* @param {object} params.params.event Event object
|
|
833
|
-
* @param {Core.widget.Widget,any} params.params.event.source The widget being shown
|
|
839
|
+
* @param {object} params.event Event object
|
|
840
|
+
* @param {Core.widget.Widget,any} params.event.source The widget being shown
|
|
834
841
|
*/
|
|
835
842
|
(e: 'beforeShow', params: ((event: { source: Widget|any }) => Promise<boolean>|boolean|void)|string): Promise<boolean>|boolean|void
|
|
836
843
|
/**
|
|
@@ -838,27 +845,23 @@ const emit = defineEmits<{
|
|
|
838
845
|
* [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/ModelCombo#event-catchAll)
|
|
839
846
|
* @param {string} e Event name
|
|
840
847
|
* @param {object} params Event parameters
|
|
841
|
-
* @param {
|
|
842
|
-
* @param {
|
|
843
|
-
* @param {
|
|
844
|
-
* @param {{[key: string]: any, type: string}} params.params.event.event The Object that contains event details
|
|
845
|
-
* @param {string} params.params.event.event.type The type of the event which is caught by the listener
|
|
848
|
+
* @param {object} params.event Event object
|
|
849
|
+
* @param {{[key: string]: any, type: string}} params.event.event The Object that contains event details
|
|
850
|
+
* @param {string} params.event.event.type The type of the event which is caught by the listener
|
|
846
851
|
*/
|
|
847
852
|
(e: 'catchAll', params: ((event: {[key: string]: any, type: string}) => void)|string): void
|
|
848
853
|
/**
|
|
849
854
|
* Fired when this field's value changes.
|
|
850
855
|
* @param {string} e Event name
|
|
851
856
|
* @param {object} params Event parameters
|
|
852
|
-
* @param {
|
|
853
|
-
* @param {
|
|
854
|
-
* @param {
|
|
855
|
-
* @param {
|
|
856
|
-
* @param {
|
|
857
|
-
* @param {
|
|
858
|
-
* @param {boolean} params.
|
|
859
|
-
* @param {
|
|
860
|
-
* @param {boolean} params.params.event.userAction Triggered by user taking an action (`true`) or by setting a value (`false`)
|
|
861
|
-
* @param {boolean} params.params.event.checked
|
|
857
|
+
* @param {object} params.event Event object
|
|
858
|
+
* @param {Core.widget.Field,any} params.event.source This Field
|
|
859
|
+
* @param {string,number,boolean,any} params.event.value This field's value
|
|
860
|
+
* @param {string,number,boolean,any} params.event.oldValue This field's previous value
|
|
861
|
+
* @param {boolean} params.event.valid True if this field is in a valid state
|
|
862
|
+
* @param {Event} params.event.event The triggering DOM event if any
|
|
863
|
+
* @param {boolean} params.event.userAction Triggered by user taking an action (`true`) or by setting a value (`false`)
|
|
864
|
+
* @param {boolean} params.event.checked
|
|
862
865
|
*/
|
|
863
866
|
(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
|
|
864
867
|
/**
|
|
@@ -866,45 +869,37 @@ const emit = defineEmits<{
|
|
|
866
869
|
* [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/ModelCombo#event-clear)
|
|
867
870
|
* @param {string} e Event name
|
|
868
871
|
* @param {object} params Event parameters
|
|
869
|
-
* @param {
|
|
870
|
-
* @param {
|
|
871
|
-
* @param {object} params.params.event Event object
|
|
872
|
-
* @param {Core.widget.Field,any} params.params.event.source This Field
|
|
872
|
+
* @param {object} params.event Event object
|
|
873
|
+
* @param {Core.widget.Field,any} params.event.source This Field
|
|
873
874
|
*/
|
|
874
875
|
(e: 'clear', params: ((event: { source: Field|any }) => void)|string): void
|
|
875
876
|
/**
|
|
876
877
|
* Fires when an object is destroyed.
|
|
877
878
|
* @param {string} e Event name
|
|
878
879
|
* @param {object} params Event parameters
|
|
879
|
-
* @param {
|
|
880
|
-
* @param {
|
|
881
|
-
* @param {object} params.params.event Event object
|
|
882
|
-
* @param {Core.Base} params.params.event.source The Object that is being destroyed.
|
|
880
|
+
* @param {object} params.event Event object
|
|
881
|
+
* @param {Core.Base} params.event.source The Object that is being destroyed.
|
|
883
882
|
*/
|
|
884
883
|
(e: 'destroy', params: ((event: { source: Base }) => void)|string): void
|
|
885
884
|
/**
|
|
886
885
|
* Triggered when a widget's [element](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Widget#property-element) is available.
|
|
887
886
|
* @param {string} e Event name
|
|
888
887
|
* @param {object} params Event parameters
|
|
889
|
-
* @param {
|
|
890
|
-
* @param {
|
|
891
|
-
* @param {object} params.params.event Event object
|
|
892
|
-
* @param {HTMLElement} params.params.event.element The Widget's element.
|
|
888
|
+
* @param {object} params.event Event object
|
|
889
|
+
* @param {HTMLElement} params.event.element The Widget's element.
|
|
893
890
|
*/
|
|
894
891
|
(e: 'elementCreated', params: ((event: { element: HTMLElement }) => void)|string): void
|
|
895
892
|
/**
|
|
896
893
|
* Fired when focus enters this Widget.
|
|
897
894
|
* @param {string} e Event name
|
|
898
895
|
* @param {object} params Event parameters
|
|
899
|
-
* @param {
|
|
900
|
-
* @param {
|
|
901
|
-
* @param {
|
|
902
|
-
* @param {
|
|
903
|
-
* @param {
|
|
904
|
-
* @param {
|
|
905
|
-
* @param {
|
|
906
|
-
* @param {Core.widget.Widget} params.params.event.toWidget The widget which gained focus.
|
|
907
|
-
* @param {boolean} params.params.event.backwards `true` if the `toElement` is before the `fromElement` in document order.
|
|
896
|
+
* @param {object} params.event Event object
|
|
897
|
+
* @param {Core.widget.Widget} params.event.source This Widget
|
|
898
|
+
* @param {HTMLElement} params.event.fromElement The element which lost focus.
|
|
899
|
+
* @param {HTMLElement} params.event.toElement The element which gained focus.
|
|
900
|
+
* @param {Core.widget.Widget} params.event.fromWidget The widget which lost focus.
|
|
901
|
+
* @param {Core.widget.Widget} params.event.toWidget The widget which gained focus.
|
|
902
|
+
* @param {boolean} params.event.backwards `true` if the `toElement` is before the `fromElement` in document order.
|
|
908
903
|
*/
|
|
909
904
|
(e: 'focusIn', params: ((event: { source: Widget, fromElement: HTMLElement, toElement: HTMLElement, fromWidget: Widget, toWidget: Widget, backwards: boolean }) => void)|string): void
|
|
910
905
|
/**
|
|
@@ -913,25 +908,21 @@ const emit = defineEmits<{
|
|
|
913
908
|
* will not trigger this event. This is when focus exits this widget completely.
|
|
914
909
|
* @param {string} e Event name
|
|
915
910
|
* @param {object} params Event parameters
|
|
916
|
-
* @param {
|
|
917
|
-
* @param {
|
|
918
|
-
* @param {
|
|
919
|
-
* @param {
|
|
920
|
-
* @param {
|
|
921
|
-
* @param {
|
|
922
|
-
* @param {
|
|
923
|
-
* @param {Core.widget.Widget} params.params.event.toWidget The widget which gained focus.
|
|
924
|
-
* @param {boolean} params.params.event.backwards `true` if the `toElement` is before the `fromElement` in document order.
|
|
911
|
+
* @param {object} params.event Event object
|
|
912
|
+
* @param {Core.widget.Widget} params.event.source This Widget
|
|
913
|
+
* @param {HTMLElement} params.event.fromElement The element which lost focus.
|
|
914
|
+
* @param {HTMLElement} params.event.toElement The element which gained focus.
|
|
915
|
+
* @param {Core.widget.Widget} params.event.fromWidget The widget which lost focus.
|
|
916
|
+
* @param {Core.widget.Widget} params.event.toWidget The widget which gained focus.
|
|
917
|
+
* @param {boolean} params.event.backwards `true` if the `toElement` is before the `fromElement` in document order.
|
|
925
918
|
*/
|
|
926
919
|
(e: 'focusOut', params: ((event: { source: Widget, fromElement: HTMLElement, toElement: HTMLElement, fromWidget: Widget, toWidget: Widget, backwards: boolean }) => void)|string): void
|
|
927
920
|
/**
|
|
928
921
|
* Triggered after a widget was hidden
|
|
929
922
|
* @param {string} e Event name
|
|
930
923
|
* @param {object} params Event parameters
|
|
931
|
-
* @param {
|
|
932
|
-
* @param {
|
|
933
|
-
* @param {object} params.params.event Event object
|
|
934
|
-
* @param {Core.widget.Widget} params.params.event.source The widget
|
|
924
|
+
* @param {object} params.event Event object
|
|
925
|
+
* @param {Core.widget.Widget} params.event.source The widget
|
|
935
926
|
*/
|
|
936
927
|
(e: 'hide', params: ((event: { source: Widget }) => void)|string): void
|
|
937
928
|
/**
|
|
@@ -939,12 +930,10 @@ const emit = defineEmits<{
|
|
|
939
930
|
* not the combos value
|
|
940
931
|
* @param {string} e Event name
|
|
941
932
|
* @param {object} params Event parameters
|
|
942
|
-
* @param {
|
|
943
|
-
* @param {
|
|
944
|
-
* @param {
|
|
945
|
-
* @param {
|
|
946
|
-
* @param {string} params.params.event.value Raw input value
|
|
947
|
-
* @param {Event} params.params.event.event The triggering DOM event if any.
|
|
933
|
+
* @param {object} params.event Event object
|
|
934
|
+
* @param {Core.widget.Combo} params.event.source The combo.
|
|
935
|
+
* @param {string} params.event.value Raw input value
|
|
936
|
+
* @param {Event} params.event.event The triggering DOM event if any.
|
|
948
937
|
*/
|
|
949
938
|
(e: 'input', params: ((event: { source: Combo, value: string, event: Event }) => void)|string): void
|
|
950
939
|
/**
|
|
@@ -953,21 +942,17 @@ const emit = defineEmits<{
|
|
|
953
942
|
* [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/ModelCombo#event-paint)
|
|
954
943
|
* @param {string} e Event name
|
|
955
944
|
* @param {object} params Event parameters
|
|
956
|
-
* @param {
|
|
957
|
-
* @param {
|
|
958
|
-
* @param {
|
|
959
|
-
* @param {Core.widget.Widget} params.params.event.source The widget being painted.
|
|
960
|
-
* @param {boolean} params.params.event.firstPaint `true` if this is the first paint.
|
|
945
|
+
* @param {object} params.event Event object
|
|
946
|
+
* @param {Core.widget.Widget} params.event.source The widget being painted.
|
|
947
|
+
* @param {boolean} params.event.firstPaint `true` if this is the first paint.
|
|
961
948
|
*/
|
|
962
949
|
(e: 'paint', params: ((event: { source: Widget, firstPaint: boolean }) => void)|string): void
|
|
963
950
|
/**
|
|
964
951
|
* Fired when a Widget's read only state is toggled
|
|
965
952
|
* @param {string} e Event name
|
|
966
953
|
* @param {object} params Event parameters
|
|
967
|
-
* @param {
|
|
968
|
-
* @param {
|
|
969
|
-
* @param {object} params.params.event Event object
|
|
970
|
-
* @param {boolean} params.params.event.readOnly Read only or not
|
|
954
|
+
* @param {object} params.event Event object
|
|
955
|
+
* @param {boolean} params.event.readOnly Read only or not
|
|
971
956
|
*/
|
|
972
957
|
(e: 'readOnly', params: ((event: { readOnly: boolean }) => void)|string): void
|
|
973
958
|
/**
|
|
@@ -979,48 +964,40 @@ const emit = defineEmits<{
|
|
|
979
964
|
* Fired when the encapsulating element of a Widget resizes *only when [monitorResize](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Widget#config-monitorResize) is `true`*.
|
|
980
965
|
* @param {string} e Event name
|
|
981
966
|
* @param {object} params Event parameters
|
|
982
|
-
* @param {
|
|
983
|
-
* @param {
|
|
984
|
-
* @param {
|
|
985
|
-
* @param {
|
|
986
|
-
* @param {number} params.
|
|
987
|
-
* @param {number} params.
|
|
988
|
-
* @param {number} params.params.event.oldWidth The old width
|
|
989
|
-
* @param {number} params.params.event.oldHeight The old height
|
|
967
|
+
* @param {object} params.event Event object
|
|
968
|
+
* @param {Core.widget.Widget} params.event.source This Widget
|
|
969
|
+
* @param {number} params.event.width The new width
|
|
970
|
+
* @param {number} params.event.height The new height
|
|
971
|
+
* @param {number} params.event.oldWidth The old width
|
|
972
|
+
* @param {number} params.event.oldHeight The old height
|
|
990
973
|
*/
|
|
991
974
|
(e: 'resize', params: ((event: { source: Widget, width: number, height: number, oldWidth: number, oldHeight: number }) => void)|string): void
|
|
992
975
|
/**
|
|
993
976
|
* An item in the list was selected
|
|
994
977
|
* @param {string} e Event name
|
|
995
978
|
* @param {object} params Event parameters
|
|
996
|
-
* @param {
|
|
997
|
-
* @param {
|
|
998
|
-
* @param {
|
|
999
|
-
* @param {Core.
|
|
1000
|
-
* @param {
|
|
1001
|
-
* @param {Core.data.Model[]} params.params.event.records Selected records as an array if [multiSelect](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Combo#config-multiSelect) is `true`
|
|
1002
|
-
* @param {boolean} params.params.event.userAction `true` if the value change is due to user interaction
|
|
979
|
+
* @param {object} params.event Event object
|
|
980
|
+
* @param {Core.widget.Combo} params.event.source The combo
|
|
981
|
+
* @param {Core.data.Model} params.event.record Selected record
|
|
982
|
+
* @param {Core.data.Model[]} params.event.records Selected records as an array if [multiSelect](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Combo#config-multiSelect) is `true`
|
|
983
|
+
* @param {boolean} params.event.userAction `true` if the value change is due to user interaction
|
|
1003
984
|
*/
|
|
1004
985
|
(e: 'select', params: ((event: { source: Combo, record: Model, records: Model[], userAction: boolean }) => void)|string): void
|
|
1005
986
|
/**
|
|
1006
987
|
* Triggered after a widget is shown.
|
|
1007
988
|
* @param {string} e Event name
|
|
1008
989
|
* @param {object} params Event parameters
|
|
1009
|
-
* @param {
|
|
1010
|
-
* @param {
|
|
1011
|
-
* @param {object} params.params.event Event object
|
|
1012
|
-
* @param {Core.widget.Widget} params.params.event.source The widget
|
|
990
|
+
* @param {object} params.event Event object
|
|
991
|
+
* @param {Core.widget.Widget} params.event.source The widget
|
|
1013
992
|
*/
|
|
1014
993
|
(e: 'show', params: ((event: { source: Widget }) => void)|string): void
|
|
1015
994
|
/**
|
|
1016
995
|
* User clicked one of this field's [triggers](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Field#property-triggers)
|
|
1017
996
|
* @param {string} e Event name
|
|
1018
997
|
* @param {object} params Event parameters
|
|
1019
|
-
* @param {
|
|
1020
|
-
* @param {
|
|
1021
|
-
* @param {
|
|
1022
|
-
* @param {Core.widget.Field,any} params.params.event.source This field
|
|
1023
|
-
* @param {Core.widget.Widget} params.params.event.trigger The trigger activated by click or touch tap.
|
|
998
|
+
* @param {object} params.event Event object
|
|
999
|
+
* @param {Core.widget.Field,any} params.event.source This field
|
|
1000
|
+
* @param {Core.widget.Widget} params.event.trigger The trigger activated by click or touch tap.
|
|
1024
1001
|
*/
|
|
1025
1002
|
(e: 'trigger', params: ((event: { source: Field|any, trigger: Widget }) => void)|string): void
|
|
1026
1003
|
}>();
|
|
@@ -1042,6 +1019,7 @@ const widgetData = {
|
|
|
1042
1019
|
'cacheLastResult',
|
|
1043
1020
|
'caseSensitive',
|
|
1044
1021
|
'centered',
|
|
1022
|
+
'checkValidity',
|
|
1045
1023
|
'chipView',
|
|
1046
1024
|
'clearable',
|
|
1047
1025
|
'clearTextOnPickerHide',
|
|
@@ -28,6 +28,8 @@ export declare type BryntumModelComboProps = {
|
|
|
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/schedulerpro/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/schedulerpro/docs/api/SchedulerPro/widget/ModelCombo#config-appendTo)
|
|
31
33
|
*/
|
|
32
34
|
appendTo ? : HTMLElement|string
|
|
33
35
|
/**
|
|
@@ -90,6 +92,15 @@ export declare type BryntumModelComboProps = {
|
|
|
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/schedulerpro/docs/api/Core/widget/Field#property-isValid)
|
|
98
|
+
* evaluation, after the built-in [required](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Field#config-required) check.
|
|
99
|
+
* [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/ModelCombo#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/schedulerpro/docs/api/Core/widget/ChipView) to display the
|
|
95
106
|
* selected value set when [multiSelect](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Combo#config-multiSelect) is `true`.
|
|
@@ -383,10 +394,14 @@ export declare type BryntumModelComboProps = {
|
|
|
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/schedulerpro/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/schedulerpro/docs/api/SchedulerPro/widget/ModelCombo#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/schedulerpro/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/schedulerpro/docs/api/SchedulerPro/widget/ModelCombo#config-insertFirst)
|
|
390
405
|
*/
|
|
391
406
|
insertFirst ? : HTMLElement|string
|
|
392
407
|
/**
|