@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/CalendarField#config-appendTo)
|
|
46
48
|
*/
|
|
47
49
|
appendTo ? : HTMLElement|string
|
|
48
50
|
/**
|
|
@@ -116,6 +118,15 @@ defineProps<{
|
|
|
116
118
|
* Set to `true` to centre the Widget in browser viewport space.
|
|
117
119
|
*/
|
|
118
120
|
centered ? : Boolean
|
|
121
|
+
/**
|
|
122
|
+
* A function (or the name of a function in the ownership hierarchy) called during field validation
|
|
123
|
+
* 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)
|
|
124
|
+
* evaluation, after the built-in [required](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Field#config-required) check.
|
|
125
|
+
* [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/CalendarField#config-checkValidity)
|
|
126
|
+
* @param {Core.widget.Field} field The field being validated
|
|
127
|
+
* @returns {void}
|
|
128
|
+
*/
|
|
129
|
+
checkValidity ? : ((field: Field) => void)|string
|
|
119
130
|
/**
|
|
120
131
|
* A config object to configure the [ChipView](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/ChipView) to display the
|
|
121
132
|
* selected value set when [multiSelect](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Combo#config-multiSelect) is `true`.
|
|
@@ -409,10 +420,14 @@ defineProps<{
|
|
|
409
420
|
inputWidth ? : string|number
|
|
410
421
|
/**
|
|
411
422
|
* 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.
|
|
423
|
+
* <div class="note">When creating nested trees of widgets, this should only be used on the outermost widget.
|
|
424
|
+
* [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/CalendarField#config-insertBefore)
|
|
412
425
|
*/
|
|
413
426
|
insertBefore ? : HTMLElement|string
|
|
414
427
|
/**
|
|
415
428
|
* 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.
|
|
429
|
+
* <div class="note">When creating nested trees of widgets, this should only be used on the outermost widget.
|
|
430
|
+
* [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/CalendarField#config-insertFirst)
|
|
416
431
|
*/
|
|
417
432
|
insertFirst ? : HTMLElement|string
|
|
418
433
|
/**
|
|
@@ -804,44 +819,36 @@ const emit = defineEmits<{
|
|
|
804
819
|
* The default action was performed (an item in the list was selected)
|
|
805
820
|
* @param {string} e Event name
|
|
806
821
|
* @param {object} params Event parameters
|
|
807
|
-
* @param {
|
|
808
|
-
* @param {
|
|
809
|
-
* @param {
|
|
810
|
-
* @param {Core.
|
|
811
|
-
* @param {
|
|
812
|
-
* @param {
|
|
813
|
-
* @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`
|
|
814
|
-
* @param {boolean} params.params.event.userAction `true` if the value change is due to user interaction
|
|
822
|
+
* @param {object} params.event Event object
|
|
823
|
+
* @param {Core.widget.Combo} params.event.source The combo
|
|
824
|
+
* @param {any} params.event.value The [value](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Combo#config-valueField) of the selected record
|
|
825
|
+
* @param {Core.data.Model} params.event.record Selected record
|
|
826
|
+
* @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`
|
|
827
|
+
* @param {boolean} params.event.userAction `true` if the value change is due to user interaction
|
|
815
828
|
*/
|
|
816
829
|
(e: 'action', params: ((event: { source: Combo, value: any, record: Model, records: Model[], userAction: boolean }) => void)|string): void
|
|
817
830
|
/**
|
|
818
831
|
* Fires before an object is destroyed.
|
|
819
832
|
* @param {string} e Event name
|
|
820
833
|
* @param {object} params Event parameters
|
|
821
|
-
* @param {
|
|
822
|
-
* @param {
|
|
823
|
-
* @param {object} params.params.event Event object
|
|
824
|
-
* @param {Core.Base} params.params.event.source The Object that is being destroyed.
|
|
834
|
+
* @param {object} params.event Event object
|
|
835
|
+
* @param {Core.Base} params.event.source The Object that is being destroyed.
|
|
825
836
|
*/
|
|
826
837
|
(e: 'beforeDestroy', params: ((event: { source: Base }) => void)|string): void
|
|
827
838
|
/**
|
|
828
839
|
* Triggered before a widget is hidden. Return `false` to prevent the action.
|
|
829
840
|
* @param {string} e Event name
|
|
830
841
|
* @param {object} params Event parameters
|
|
831
|
-
* @param {
|
|
832
|
-
* @param {
|
|
833
|
-
* @param {object} params.params.event Event object
|
|
834
|
-
* @param {Core.widget.Widget} params.params.event.source The widget being hidden.
|
|
842
|
+
* @param {object} params.event Event object
|
|
843
|
+
* @param {Core.widget.Widget} params.event.source The widget being hidden.
|
|
835
844
|
*/
|
|
836
|
-
(e: 'beforeHide', params: ((event: { source: Widget }) =>
|
|
845
|
+
(e: 'beforeHide', params: ((event: { source: Widget }) => boolean|void)|string): boolean|void
|
|
837
846
|
/**
|
|
838
847
|
* Triggered before a widget is shown. Return `false` to prevent the action.
|
|
839
848
|
* @param {string} e Event name
|
|
840
849
|
* @param {object} params Event parameters
|
|
841
|
-
* @param {
|
|
842
|
-
* @param {
|
|
843
|
-
* @param {object} params.params.event Event object
|
|
844
|
-
* @param {Core.widget.Widget,any} params.params.event.source The widget being shown
|
|
850
|
+
* @param {object} params.event Event object
|
|
851
|
+
* @param {Core.widget.Widget,any} params.event.source The widget being shown
|
|
845
852
|
*/
|
|
846
853
|
(e: 'beforeShow', params: ((event: { source: Widget|any }) => Promise<boolean>|boolean|void)|string): Promise<boolean>|boolean|void
|
|
847
854
|
/**
|
|
@@ -849,27 +856,23 @@ const emit = defineEmits<{
|
|
|
849
856
|
* [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/CalendarField#event-catchAll)
|
|
850
857
|
* @param {string} e Event name
|
|
851
858
|
* @param {object} params Event parameters
|
|
852
|
-
* @param {
|
|
853
|
-
* @param {
|
|
854
|
-
* @param {
|
|
855
|
-
* @param {{[key: string]: any, type: string}} params.params.event.event The Object that contains event details
|
|
856
|
-
* @param {string} params.params.event.event.type The type of the event which is caught by the listener
|
|
859
|
+
* @param {object} params.event Event object
|
|
860
|
+
* @param {{[key: string]: any, type: string}} params.event.event The Object that contains event details
|
|
861
|
+
* @param {string} params.event.event.type The type of the event which is caught by the listener
|
|
857
862
|
*/
|
|
858
863
|
(e: 'catchAll', params: ((event: {[key: string]: any, type: string}) => void)|string): void
|
|
859
864
|
/**
|
|
860
865
|
* Fired when this field's value changes.
|
|
861
866
|
* @param {string} e Event name
|
|
862
867
|
* @param {object} params Event parameters
|
|
863
|
-
* @param {
|
|
864
|
-
* @param {
|
|
865
|
-
* @param {
|
|
866
|
-
* @param {
|
|
867
|
-
* @param {
|
|
868
|
-
* @param {
|
|
869
|
-
* @param {boolean} params.
|
|
870
|
-
* @param {
|
|
871
|
-
* @param {boolean} params.params.event.userAction Triggered by user taking an action (`true`) or by setting a value (`false`)
|
|
872
|
-
* @param {boolean} params.params.event.checked
|
|
868
|
+
* @param {object} params.event Event object
|
|
869
|
+
* @param {Core.widget.Field,any} params.event.source This Field
|
|
870
|
+
* @param {string,number,boolean,any} params.event.value This field's value
|
|
871
|
+
* @param {string,number,boolean,any} params.event.oldValue This field's previous value
|
|
872
|
+
* @param {boolean} params.event.valid True if this field is in a valid state
|
|
873
|
+
* @param {Event} params.event.event The triggering DOM event if any
|
|
874
|
+
* @param {boolean} params.event.userAction Triggered by user taking an action (`true`) or by setting a value (`false`)
|
|
875
|
+
* @param {boolean} params.event.checked
|
|
873
876
|
*/
|
|
874
877
|
(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
|
|
875
878
|
/**
|
|
@@ -877,45 +880,37 @@ const emit = defineEmits<{
|
|
|
877
880
|
* [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/CalendarField#event-clear)
|
|
878
881
|
* @param {string} e Event name
|
|
879
882
|
* @param {object} params Event parameters
|
|
880
|
-
* @param {
|
|
881
|
-
* @param {
|
|
882
|
-
* @param {object} params.params.event Event object
|
|
883
|
-
* @param {Core.widget.Field,any} params.params.event.source This Field
|
|
883
|
+
* @param {object} params.event Event object
|
|
884
|
+
* @param {Core.widget.Field,any} params.event.source This Field
|
|
884
885
|
*/
|
|
885
886
|
(e: 'clear', params: ((event: { source: Field|any }) => void)|string): void
|
|
886
887
|
/**
|
|
887
888
|
* Fires when an object is destroyed.
|
|
888
889
|
* @param {string} e Event name
|
|
889
890
|
* @param {object} params Event parameters
|
|
890
|
-
* @param {
|
|
891
|
-
* @param {
|
|
892
|
-
* @param {object} params.params.event Event object
|
|
893
|
-
* @param {Core.Base} params.params.event.source The Object that is being destroyed.
|
|
891
|
+
* @param {object} params.event Event object
|
|
892
|
+
* @param {Core.Base} params.event.source The Object that is being destroyed.
|
|
894
893
|
*/
|
|
895
894
|
(e: 'destroy', params: ((event: { source: Base }) => void)|string): void
|
|
896
895
|
/**
|
|
897
896
|
* Triggered when a widget's [element](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Widget#property-element) is available.
|
|
898
897
|
* @param {string} e Event name
|
|
899
898
|
* @param {object} params Event parameters
|
|
900
|
-
* @param {
|
|
901
|
-
* @param {
|
|
902
|
-
* @param {object} params.params.event Event object
|
|
903
|
-
* @param {HTMLElement} params.params.event.element The Widget's element.
|
|
899
|
+
* @param {object} params.event Event object
|
|
900
|
+
* @param {HTMLElement} params.event.element The Widget's element.
|
|
904
901
|
*/
|
|
905
902
|
(e: 'elementCreated', params: ((event: { element: HTMLElement }) => void)|string): void
|
|
906
903
|
/**
|
|
907
904
|
* Fired when focus enters this Widget.
|
|
908
905
|
* @param {string} e Event name
|
|
909
906
|
* @param {object} params Event parameters
|
|
910
|
-
* @param {
|
|
911
|
-
* @param {
|
|
912
|
-
* @param {
|
|
913
|
-
* @param {
|
|
914
|
-
* @param {
|
|
915
|
-
* @param {
|
|
916
|
-
* @param {
|
|
917
|
-
* @param {Core.widget.Widget} params.params.event.toWidget The widget which gained focus.
|
|
918
|
-
* @param {boolean} params.params.event.backwards `true` if the `toElement` is before the `fromElement` in document order.
|
|
907
|
+
* @param {object} params.event Event object
|
|
908
|
+
* @param {Core.widget.Widget} params.event.source This Widget
|
|
909
|
+
* @param {HTMLElement} params.event.fromElement The element which lost focus.
|
|
910
|
+
* @param {HTMLElement} params.event.toElement The element which gained focus.
|
|
911
|
+
* @param {Core.widget.Widget} params.event.fromWidget The widget which lost focus.
|
|
912
|
+
* @param {Core.widget.Widget} params.event.toWidget The widget which gained focus.
|
|
913
|
+
* @param {boolean} params.event.backwards `true` if the `toElement` is before the `fromElement` in document order.
|
|
919
914
|
*/
|
|
920
915
|
(e: 'focusIn', params: ((event: { source: Widget, fromElement: HTMLElement, toElement: HTMLElement, fromWidget: Widget, toWidget: Widget, backwards: boolean }) => void)|string): void
|
|
921
916
|
/**
|
|
@@ -924,25 +919,21 @@ const emit = defineEmits<{
|
|
|
924
919
|
* will not trigger this event. This is when focus exits this widget completely.
|
|
925
920
|
* @param {string} e Event name
|
|
926
921
|
* @param {object} params Event parameters
|
|
927
|
-
* @param {
|
|
928
|
-
* @param {
|
|
929
|
-
* @param {
|
|
930
|
-
* @param {
|
|
931
|
-
* @param {
|
|
932
|
-
* @param {
|
|
933
|
-
* @param {
|
|
934
|
-
* @param {Core.widget.Widget} params.params.event.toWidget The widget which gained focus.
|
|
935
|
-
* @param {boolean} params.params.event.backwards `true` if the `toElement` is before the `fromElement` in document order.
|
|
922
|
+
* @param {object} params.event Event object
|
|
923
|
+
* @param {Core.widget.Widget} params.event.source This Widget
|
|
924
|
+
* @param {HTMLElement} params.event.fromElement The element which lost focus.
|
|
925
|
+
* @param {HTMLElement} params.event.toElement The element which gained focus.
|
|
926
|
+
* @param {Core.widget.Widget} params.event.fromWidget The widget which lost focus.
|
|
927
|
+
* @param {Core.widget.Widget} params.event.toWidget The widget which gained focus.
|
|
928
|
+
* @param {boolean} params.event.backwards `true` if the `toElement` is before the `fromElement` in document order.
|
|
936
929
|
*/
|
|
937
930
|
(e: 'focusOut', params: ((event: { source: Widget, fromElement: HTMLElement, toElement: HTMLElement, fromWidget: Widget, toWidget: Widget, backwards: boolean }) => void)|string): void
|
|
938
931
|
/**
|
|
939
932
|
* Triggered after a widget was hidden
|
|
940
933
|
* @param {string} e Event name
|
|
941
934
|
* @param {object} params Event parameters
|
|
942
|
-
* @param {
|
|
943
|
-
* @param {
|
|
944
|
-
* @param {object} params.params.event Event object
|
|
945
|
-
* @param {Core.widget.Widget} params.params.event.source The widget
|
|
935
|
+
* @param {object} params.event Event object
|
|
936
|
+
* @param {Core.widget.Widget} params.event.source The widget
|
|
946
937
|
*/
|
|
947
938
|
(e: 'hide', params: ((event: { source: Widget }) => void)|string): void
|
|
948
939
|
/**
|
|
@@ -950,12 +941,10 @@ const emit = defineEmits<{
|
|
|
950
941
|
* not the combos value
|
|
951
942
|
* @param {string} e Event name
|
|
952
943
|
* @param {object} params Event parameters
|
|
953
|
-
* @param {
|
|
954
|
-
* @param {
|
|
955
|
-
* @param {
|
|
956
|
-
* @param {
|
|
957
|
-
* @param {string} params.params.event.value Raw input value
|
|
958
|
-
* @param {Event} params.params.event.event The triggering DOM event if any.
|
|
944
|
+
* @param {object} params.event Event object
|
|
945
|
+
* @param {Core.widget.Combo} params.event.source The combo.
|
|
946
|
+
* @param {string} params.event.value Raw input value
|
|
947
|
+
* @param {Event} params.event.event The triggering DOM event if any.
|
|
959
948
|
*/
|
|
960
949
|
(e: 'input', params: ((event: { source: Combo, value: string, event: Event }) => void)|string): void
|
|
961
950
|
/**
|
|
@@ -964,21 +953,17 @@ const emit = defineEmits<{
|
|
|
964
953
|
* [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/CalendarField#event-paint)
|
|
965
954
|
* @param {string} e Event name
|
|
966
955
|
* @param {object} params Event parameters
|
|
967
|
-
* @param {
|
|
968
|
-
* @param {
|
|
969
|
-
* @param {
|
|
970
|
-
* @param {Core.widget.Widget} params.params.event.source The widget being painted.
|
|
971
|
-
* @param {boolean} params.params.event.firstPaint `true` if this is the first paint.
|
|
956
|
+
* @param {object} params.event Event object
|
|
957
|
+
* @param {Core.widget.Widget} params.event.source The widget being painted.
|
|
958
|
+
* @param {boolean} params.event.firstPaint `true` if this is the first paint.
|
|
972
959
|
*/
|
|
973
960
|
(e: 'paint', params: ((event: { source: Widget, firstPaint: boolean }) => void)|string): void
|
|
974
961
|
/**
|
|
975
962
|
* Fired when a Widget's read only state is toggled
|
|
976
963
|
* @param {string} e Event name
|
|
977
964
|
* @param {object} params Event parameters
|
|
978
|
-
* @param {
|
|
979
|
-
* @param {
|
|
980
|
-
* @param {object} params.params.event Event object
|
|
981
|
-
* @param {boolean} params.params.event.readOnly Read only or not
|
|
965
|
+
* @param {object} params.event Event object
|
|
966
|
+
* @param {boolean} params.event.readOnly Read only or not
|
|
982
967
|
*/
|
|
983
968
|
(e: 'readOnly', params: ((event: { readOnly: boolean }) => void)|string): void
|
|
984
969
|
/**
|
|
@@ -990,48 +975,40 @@ const emit = defineEmits<{
|
|
|
990
975
|
* 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`*.
|
|
991
976
|
* @param {string} e Event name
|
|
992
977
|
* @param {object} params Event parameters
|
|
993
|
-
* @param {
|
|
994
|
-
* @param {
|
|
995
|
-
* @param {
|
|
996
|
-
* @param {
|
|
997
|
-
* @param {number} params.
|
|
998
|
-
* @param {number} params.
|
|
999
|
-
* @param {number} params.params.event.oldWidth The old width
|
|
1000
|
-
* @param {number} params.params.event.oldHeight The old height
|
|
978
|
+
* @param {object} params.event Event object
|
|
979
|
+
* @param {Core.widget.Widget} params.event.source This Widget
|
|
980
|
+
* @param {number} params.event.width The new width
|
|
981
|
+
* @param {number} params.event.height The new height
|
|
982
|
+
* @param {number} params.event.oldWidth The old width
|
|
983
|
+
* @param {number} params.event.oldHeight The old height
|
|
1001
984
|
*/
|
|
1002
985
|
(e: 'resize', params: ((event: { source: Widget, width: number, height: number, oldWidth: number, oldHeight: number }) => void)|string): void
|
|
1003
986
|
/**
|
|
1004
987
|
* An item in the list was selected
|
|
1005
988
|
* @param {string} e Event name
|
|
1006
989
|
* @param {object} params Event parameters
|
|
1007
|
-
* @param {
|
|
1008
|
-
* @param {
|
|
1009
|
-
* @param {
|
|
1010
|
-
* @param {Core.
|
|
1011
|
-
* @param {
|
|
1012
|
-
* @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`
|
|
1013
|
-
* @param {boolean} params.params.event.userAction `true` if the value change is due to user interaction
|
|
990
|
+
* @param {object} params.event Event object
|
|
991
|
+
* @param {Core.widget.Combo} params.event.source The combo
|
|
992
|
+
* @param {Core.data.Model} params.event.record Selected record
|
|
993
|
+
* @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`
|
|
994
|
+
* @param {boolean} params.event.userAction `true` if the value change is due to user interaction
|
|
1014
995
|
*/
|
|
1015
996
|
(e: 'select', params: ((event: { source: Combo, record: Model, records: Model[], userAction: boolean }) => void)|string): void
|
|
1016
997
|
/**
|
|
1017
998
|
* Triggered after a widget is shown.
|
|
1018
999
|
* @param {string} e Event name
|
|
1019
1000
|
* @param {object} params Event parameters
|
|
1020
|
-
* @param {
|
|
1021
|
-
* @param {
|
|
1022
|
-
* @param {object} params.params.event Event object
|
|
1023
|
-
* @param {Core.widget.Widget} params.params.event.source The widget
|
|
1001
|
+
* @param {object} params.event Event object
|
|
1002
|
+
* @param {Core.widget.Widget} params.event.source The widget
|
|
1024
1003
|
*/
|
|
1025
1004
|
(e: 'show', params: ((event: { source: Widget }) => void)|string): void
|
|
1026
1005
|
/**
|
|
1027
1006
|
* User clicked one of this field's [triggers](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Field#property-triggers)
|
|
1028
1007
|
* @param {string} e Event name
|
|
1029
1008
|
* @param {object} params Event parameters
|
|
1030
|
-
* @param {
|
|
1031
|
-
* @param {
|
|
1032
|
-
* @param {
|
|
1033
|
-
* @param {Core.widget.Field,any} params.params.event.source This field
|
|
1034
|
-
* @param {Core.widget.Widget} params.params.event.trigger The trigger activated by click or touch tap.
|
|
1009
|
+
* @param {object} params.event Event object
|
|
1010
|
+
* @param {Core.widget.Field,any} params.event.source This field
|
|
1011
|
+
* @param {Core.widget.Widget} params.event.trigger The trigger activated by click or touch tap.
|
|
1035
1012
|
*/
|
|
1036
1013
|
(e: 'trigger', params: ((event: { source: Field|any, trigger: Widget }) => void)|string): void
|
|
1037
1014
|
}>();
|
|
@@ -1055,6 +1032,7 @@ const widgetData = {
|
|
|
1055
1032
|
'calendarEditor',
|
|
1056
1033
|
'caseSensitive',
|
|
1057
1034
|
'centered',
|
|
1035
|
+
'checkValidity',
|
|
1058
1036
|
'chipView',
|
|
1059
1037
|
'clearable',
|
|
1060
1038
|
'clearTextOnPickerHide',
|
|
@@ -28,6 +28,8 @@ export declare type BryntumCalendarFieldProps = {
|
|
|
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/CalendarField#config-appendTo)
|
|
31
33
|
*/
|
|
32
34
|
appendTo ? : HTMLElement|string
|
|
33
35
|
/**
|
|
@@ -101,6 +103,15 @@ export declare type BryntumCalendarFieldProps = {
|
|
|
101
103
|
* Set to `true` to centre the Widget in browser viewport space.
|
|
102
104
|
*/
|
|
103
105
|
centered ? : Boolean
|
|
106
|
+
/**
|
|
107
|
+
* A function (or the name of a function in the ownership hierarchy) called during field validation
|
|
108
|
+
* 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)
|
|
109
|
+
* evaluation, after the built-in [required](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Field#config-required) check.
|
|
110
|
+
* [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/CalendarField#config-checkValidity)
|
|
111
|
+
* @param {Core.widget.Field} field The field being validated
|
|
112
|
+
* @returns {void}
|
|
113
|
+
*/
|
|
114
|
+
checkValidity ? : ((field: Field) => void)|string
|
|
104
115
|
/**
|
|
105
116
|
* A config object to configure the [ChipView](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/ChipView) to display the
|
|
106
117
|
* selected value set when [multiSelect](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Combo#config-multiSelect) is `true`.
|
|
@@ -394,10 +405,14 @@ export declare type BryntumCalendarFieldProps = {
|
|
|
394
405
|
inputWidth ? : string|number
|
|
395
406
|
/**
|
|
396
407
|
* 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.
|
|
408
|
+
* <div class="note">When creating nested trees of widgets, this should only be used on the outermost widget.
|
|
409
|
+
* [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/CalendarField#config-insertBefore)
|
|
397
410
|
*/
|
|
398
411
|
insertBefore ? : HTMLElement|string
|
|
399
412
|
/**
|
|
400
413
|
* 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.
|
|
414
|
+
* <div class="note">When creating nested trees of widgets, this should only be used on the outermost widget.
|
|
415
|
+
* [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/CalendarField#config-insertFirst)
|
|
401
416
|
*/
|
|
402
417
|
insertFirst ? : HTMLElement|string
|
|
403
418
|
/**
|