@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/EndDateField#config-appendTo)
|
|
46
48
|
*/
|
|
47
49
|
appendTo ? : HTMLElement|string
|
|
48
50
|
/**
|
|
@@ -96,6 +98,15 @@ defineProps<{
|
|
|
96
98
|
* Set to `true` to centre the Widget in browser viewport space.
|
|
97
99
|
*/
|
|
98
100
|
centered ? : Boolean
|
|
101
|
+
/**
|
|
102
|
+
* A function (or the name of a function in the ownership hierarchy) called during field validation
|
|
103
|
+
* 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)
|
|
104
|
+
* evaluation, after the built-in [required](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Field#config-required) check.
|
|
105
|
+
* [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EndDateField#config-checkValidity)
|
|
106
|
+
* @param {Core.widget.Field} field The field being validated
|
|
107
|
+
* @returns {void}
|
|
108
|
+
*/
|
|
109
|
+
checkValidity ? : ((field: Field) => void)|string
|
|
99
110
|
/**
|
|
100
111
|
* Show a trigger to clear field, if this field is not [readOnly](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Field#config-readOnly). The trigger is available
|
|
101
112
|
* in the [triggers](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Field#property-triggers) object under the name `clear`. May also be an object which
|
|
@@ -304,10 +315,14 @@ defineProps<{
|
|
|
304
315
|
inputWidth ? : string|number
|
|
305
316
|
/**
|
|
306
317
|
* 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.
|
|
318
|
+
* <div class="note">When creating nested trees of widgets, this should only be used on the outermost widget.
|
|
319
|
+
* [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EndDateField#config-insertBefore)
|
|
307
320
|
*/
|
|
308
321
|
insertBefore ? : HTMLElement|string
|
|
309
322
|
/**
|
|
310
323
|
* 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.
|
|
324
|
+
* <div class="note">When creating nested trees of widgets, this should only be used on the outermost widget.
|
|
325
|
+
* [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EndDateField#config-insertFirst)
|
|
311
326
|
*/
|
|
312
327
|
insertFirst ? : HTMLElement|string
|
|
313
328
|
/**
|
|
@@ -490,7 +505,7 @@ defineProps<{
|
|
|
490
505
|
/**
|
|
491
506
|
* Project model calendar of which should be used by the field.
|
|
492
507
|
*/
|
|
493
|
-
project ? : ProjectModel|object
|
|
508
|
+
project ? : ProjectModel|object|null
|
|
494
509
|
/**
|
|
495
510
|
* Makes the field unmodifiable by user action. The input area is not editable, and triggers
|
|
496
511
|
* are unresponsive.
|
|
@@ -682,48 +697,40 @@ const emit = defineEmits<{
|
|
|
682
697
|
* User performed default action (typed into this field).
|
|
683
698
|
* @param {string} e Event name
|
|
684
699
|
* @param {object} params Event parameters
|
|
685
|
-
* @param {
|
|
686
|
-
* @param {
|
|
687
|
-
* @param {
|
|
688
|
-
* @param {
|
|
689
|
-
* @param {
|
|
690
|
-
* @param {
|
|
691
|
-
* @param {
|
|
692
|
-
* @param {
|
|
693
|
-
* @param {
|
|
694
|
-
* @param {
|
|
695
|
-
* @param {boolean} params.params.event.userAction Triggered by user taking an action (`true`) or by setting a value (`false`)
|
|
696
|
-
* @param {boolean} params.params.event.checked
|
|
700
|
+
* @param {object} params.event Event object
|
|
701
|
+
* @param {Core.widget.Field,any} params.event.source This Field
|
|
702
|
+
* @param {string,number,boolean,any} params.event.value This field's value
|
|
703
|
+
* @param {string,number,boolean,any} params.event.oldValue This field's previous value
|
|
704
|
+
* @param {boolean} params.event.valid True if this field is in a valid state
|
|
705
|
+
* @param {Event} params.event.event The triggering DOM event if any
|
|
706
|
+
* @param {Core.data.Model} params.event.record Selected record. Available for fields with records selection functionality
|
|
707
|
+
* @param {Core.data.Model[]} params.event.records Selected records as an array. Available for fields with records selection functionality
|
|
708
|
+
* @param {boolean} params.event.userAction Triggered by user taking an action (`true`) or by setting a value (`false`)
|
|
709
|
+
* @param {boolean} params.event.checked
|
|
697
710
|
*/
|
|
698
711
|
(e: 'action', params: ((event: { source: Field|any, value: string|number|boolean|any, oldValue: string|number|boolean|any, valid: boolean, event: Event, record: Model, records: Model[], userAction: boolean, checked: boolean }) => void)|string): void
|
|
699
712
|
/**
|
|
700
713
|
* Fires before an object is destroyed.
|
|
701
714
|
* @param {string} e Event name
|
|
702
715
|
* @param {object} params Event parameters
|
|
703
|
-
* @param {
|
|
704
|
-
* @param {
|
|
705
|
-
* @param {object} params.params.event Event object
|
|
706
|
-
* @param {Core.Base} params.params.event.source The Object that is being destroyed.
|
|
716
|
+
* @param {object} params.event Event object
|
|
717
|
+
* @param {Core.Base} params.event.source The Object that is being destroyed.
|
|
707
718
|
*/
|
|
708
719
|
(e: 'beforeDestroy', params: ((event: { source: Base }) => void)|string): void
|
|
709
720
|
/**
|
|
710
721
|
* Triggered before a widget is hidden. Return `false` to prevent the action.
|
|
711
722
|
* @param {string} e Event name
|
|
712
723
|
* @param {object} params Event parameters
|
|
713
|
-
* @param {
|
|
714
|
-
* @param {
|
|
715
|
-
* @param {object} params.params.event Event object
|
|
716
|
-
* @param {Core.widget.Widget} params.params.event.source The widget being hidden.
|
|
724
|
+
* @param {object} params.event Event object
|
|
725
|
+
* @param {Core.widget.Widget} params.event.source The widget being hidden.
|
|
717
726
|
*/
|
|
718
|
-
(e: 'beforeHide', params: ((event: { source: Widget }) =>
|
|
727
|
+
(e: 'beforeHide', params: ((event: { source: Widget }) => boolean|void)|string): boolean|void
|
|
719
728
|
/**
|
|
720
729
|
* Triggered before a widget is shown. Return `false` to prevent the action.
|
|
721
730
|
* @param {string} e Event name
|
|
722
731
|
* @param {object} params Event parameters
|
|
723
|
-
* @param {
|
|
724
|
-
* @param {
|
|
725
|
-
* @param {object} params.params.event Event object
|
|
726
|
-
* @param {Core.widget.Widget,any} params.params.event.source The widget being shown
|
|
732
|
+
* @param {object} params.event Event object
|
|
733
|
+
* @param {Core.widget.Widget,any} params.event.source The widget being shown
|
|
727
734
|
*/
|
|
728
735
|
(e: 'beforeShow', params: ((event: { source: Widget|any }) => Promise<boolean>|boolean|void)|string): Promise<boolean>|boolean|void
|
|
729
736
|
/**
|
|
@@ -731,27 +738,23 @@ const emit = defineEmits<{
|
|
|
731
738
|
* [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EndDateField#event-catchAll)
|
|
732
739
|
* @param {string} e Event name
|
|
733
740
|
* @param {object} params Event parameters
|
|
734
|
-
* @param {
|
|
735
|
-
* @param {
|
|
736
|
-
* @param {
|
|
737
|
-
* @param {{[key: string]: any, type: string}} params.params.event.event The Object that contains event details
|
|
738
|
-
* @param {string} params.params.event.event.type The type of the event which is caught by the listener
|
|
741
|
+
* @param {object} params.event Event object
|
|
742
|
+
* @param {{[key: string]: any, type: string}} params.event.event The Object that contains event details
|
|
743
|
+
* @param {string} params.event.event.type The type of the event which is caught by the listener
|
|
739
744
|
*/
|
|
740
745
|
(e: 'catchAll', params: ((event: {[key: string]: any, type: string}) => void)|string): void
|
|
741
746
|
/**
|
|
742
747
|
* Fired when this field's value changes.
|
|
743
748
|
* @param {string} e Event name
|
|
744
749
|
* @param {object} params Event parameters
|
|
745
|
-
* @param {
|
|
746
|
-
* @param {
|
|
747
|
-
* @param {
|
|
748
|
-
* @param {
|
|
749
|
-
* @param {
|
|
750
|
-
* @param {
|
|
751
|
-
* @param {boolean} params.
|
|
752
|
-
* @param {
|
|
753
|
-
* @param {boolean} params.params.event.userAction Triggered by user taking an action (`true`) or by setting a value (`false`)
|
|
754
|
-
* @param {boolean} params.params.event.checked
|
|
750
|
+
* @param {object} params.event Event object
|
|
751
|
+
* @param {Core.widget.DateField} params.event.source This DateField
|
|
752
|
+
* @param {Date} params.event.value This field's value
|
|
753
|
+
* @param {Date} params.event.oldValue This field's previous value
|
|
754
|
+
* @param {boolean} params.event.valid True if this field is in a valid state
|
|
755
|
+
* @param {Event} params.event.event The triggering DOM event if any
|
|
756
|
+
* @param {boolean} params.event.userAction Triggered by user taking an action (`true`) or by setting a value (`false`)
|
|
757
|
+
* @param {boolean} params.event.checked
|
|
755
758
|
*/
|
|
756
759
|
(e: 'change', params: ((event: { source: DateField, value: Date, oldValue: Date, valid: boolean, event: Event, userAction: boolean, checked: boolean }) => void)|string): void
|
|
757
760
|
/**
|
|
@@ -759,45 +762,37 @@ const emit = defineEmits<{
|
|
|
759
762
|
* [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EndDateField#event-clear)
|
|
760
763
|
* @param {string} e Event name
|
|
761
764
|
* @param {object} params Event parameters
|
|
762
|
-
* @param {
|
|
763
|
-
* @param {
|
|
764
|
-
* @param {object} params.params.event Event object
|
|
765
|
-
* @param {Core.widget.Field,any} params.params.event.source This Field
|
|
765
|
+
* @param {object} params.event Event object
|
|
766
|
+
* @param {Core.widget.Field,any} params.event.source This Field
|
|
766
767
|
*/
|
|
767
768
|
(e: 'clear', params: ((event: { source: Field|any }) => void)|string): void
|
|
768
769
|
/**
|
|
769
770
|
* Fires when an object is destroyed.
|
|
770
771
|
* @param {string} e Event name
|
|
771
772
|
* @param {object} params Event parameters
|
|
772
|
-
* @param {
|
|
773
|
-
* @param {
|
|
774
|
-
* @param {object} params.params.event Event object
|
|
775
|
-
* @param {Core.Base} params.params.event.source The Object that is being destroyed.
|
|
773
|
+
* @param {object} params.event Event object
|
|
774
|
+
* @param {Core.Base} params.event.source The Object that is being destroyed.
|
|
776
775
|
*/
|
|
777
776
|
(e: 'destroy', params: ((event: { source: Base }) => void)|string): void
|
|
778
777
|
/**
|
|
779
778
|
* Triggered when a widget's [element](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Widget#property-element) is available.
|
|
780
779
|
* @param {string} e Event name
|
|
781
780
|
* @param {object} params Event parameters
|
|
782
|
-
* @param {
|
|
783
|
-
* @param {
|
|
784
|
-
* @param {object} params.params.event Event object
|
|
785
|
-
* @param {HTMLElement} params.params.event.element The Widget's element.
|
|
781
|
+
* @param {object} params.event Event object
|
|
782
|
+
* @param {HTMLElement} params.event.element The Widget's element.
|
|
786
783
|
*/
|
|
787
784
|
(e: 'elementCreated', params: ((event: { element: HTMLElement }) => void)|string): void
|
|
788
785
|
/**
|
|
789
786
|
* Fired when focus enters this Widget.
|
|
790
787
|
* @param {string} e Event name
|
|
791
788
|
* @param {object} params Event parameters
|
|
792
|
-
* @param {
|
|
793
|
-
* @param {
|
|
794
|
-
* @param {
|
|
795
|
-
* @param {
|
|
796
|
-
* @param {
|
|
797
|
-
* @param {
|
|
798
|
-
* @param {
|
|
799
|
-
* @param {Core.widget.Widget} params.params.event.toWidget The widget which gained focus.
|
|
800
|
-
* @param {boolean} params.params.event.backwards `true` if the `toElement` is before the `fromElement` in document order.
|
|
789
|
+
* @param {object} params.event Event object
|
|
790
|
+
* @param {Core.widget.Widget} params.event.source This Widget
|
|
791
|
+
* @param {HTMLElement} params.event.fromElement The element which lost focus.
|
|
792
|
+
* @param {HTMLElement} params.event.toElement The element which gained focus.
|
|
793
|
+
* @param {Core.widget.Widget} params.event.fromWidget The widget which lost focus.
|
|
794
|
+
* @param {Core.widget.Widget} params.event.toWidget The widget which gained focus.
|
|
795
|
+
* @param {boolean} params.event.backwards `true` if the `toElement` is before the `fromElement` in document order.
|
|
801
796
|
*/
|
|
802
797
|
(e: 'focusIn', params: ((event: { source: Widget, fromElement: HTMLElement, toElement: HTMLElement, fromWidget: Widget, toWidget: Widget, backwards: boolean }) => void)|string): void
|
|
803
798
|
/**
|
|
@@ -806,37 +801,31 @@ const emit = defineEmits<{
|
|
|
806
801
|
* will not trigger this event. This is when focus exits this widget completely.
|
|
807
802
|
* @param {string} e Event name
|
|
808
803
|
* @param {object} params Event parameters
|
|
809
|
-
* @param {
|
|
810
|
-
* @param {
|
|
811
|
-
* @param {
|
|
812
|
-
* @param {
|
|
813
|
-
* @param {
|
|
814
|
-
* @param {
|
|
815
|
-
* @param {
|
|
816
|
-
* @param {Core.widget.Widget} params.params.event.toWidget The widget which gained focus.
|
|
817
|
-
* @param {boolean} params.params.event.backwards `true` if the `toElement` is before the `fromElement` in document order.
|
|
804
|
+
* @param {object} params.event Event object
|
|
805
|
+
* @param {Core.widget.Widget} params.event.source This Widget
|
|
806
|
+
* @param {HTMLElement} params.event.fromElement The element which lost focus.
|
|
807
|
+
* @param {HTMLElement} params.event.toElement The element which gained focus.
|
|
808
|
+
* @param {Core.widget.Widget} params.event.fromWidget The widget which lost focus.
|
|
809
|
+
* @param {Core.widget.Widget} params.event.toWidget The widget which gained focus.
|
|
810
|
+
* @param {boolean} params.event.backwards `true` if the `toElement` is before the `fromElement` in document order.
|
|
818
811
|
*/
|
|
819
812
|
(e: 'focusOut', params: ((event: { source: Widget, fromElement: HTMLElement, toElement: HTMLElement, fromWidget: Widget, toWidget: Widget, backwards: boolean }) => void)|string): void
|
|
820
813
|
/**
|
|
821
814
|
* Triggered after a widget was hidden
|
|
822
815
|
* @param {string} e Event name
|
|
823
816
|
* @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
|
|
817
|
+
* @param {object} params.event Event object
|
|
818
|
+
* @param {Core.widget.Widget} params.event.source The widget
|
|
828
819
|
*/
|
|
829
820
|
(e: 'hide', params: ((event: { source: Widget }) => void)|string): void
|
|
830
821
|
/**
|
|
831
822
|
* Fired when the user types into this field.
|
|
832
823
|
* @param {string} e Event name
|
|
833
824
|
* @param {object} params Event parameters
|
|
834
|
-
* @param {
|
|
835
|
-
* @param {
|
|
836
|
-
* @param {
|
|
837
|
-
* @param {
|
|
838
|
-
* @param {string,number,boolean,any} params.params.event.value This field's value
|
|
839
|
-
* @param {Event} params.params.event.event The triggering DOM event
|
|
825
|
+
* @param {object} params.event Event object
|
|
826
|
+
* @param {Core.widget.Field,any} params.event.source This field
|
|
827
|
+
* @param {string,number,boolean,any} params.event.value This field's value
|
|
828
|
+
* @param {Event} params.event.event The triggering DOM event
|
|
840
829
|
*/
|
|
841
830
|
(e: 'input', params: ((event: { source: Field|any, value: string|number|boolean|any, event: Event }) => void)|string): void
|
|
842
831
|
/**
|
|
@@ -845,21 +834,17 @@ const emit = defineEmits<{
|
|
|
845
834
|
* [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EndDateField#event-paint)
|
|
846
835
|
* @param {string} e Event name
|
|
847
836
|
* @param {object} params Event parameters
|
|
848
|
-
* @param {
|
|
849
|
-
* @param {
|
|
850
|
-
* @param {
|
|
851
|
-
* @param {Core.widget.Widget} params.params.event.source The widget being painted.
|
|
852
|
-
* @param {boolean} params.params.event.firstPaint `true` if this is the first paint.
|
|
837
|
+
* @param {object} params.event Event object
|
|
838
|
+
* @param {Core.widget.Widget} params.event.source The widget being painted.
|
|
839
|
+
* @param {boolean} params.event.firstPaint `true` if this is the first paint.
|
|
853
840
|
*/
|
|
854
841
|
(e: 'paint', params: ((event: { source: Widget, firstPaint: boolean }) => void)|string): void
|
|
855
842
|
/**
|
|
856
843
|
* Fired when a Widget's read only state is toggled
|
|
857
844
|
* @param {string} e Event name
|
|
858
845
|
* @param {object} params Event parameters
|
|
859
|
-
* @param {
|
|
860
|
-
* @param {
|
|
861
|
-
* @param {object} params.params.event Event object
|
|
862
|
-
* @param {boolean} params.params.event.readOnly Read only or not
|
|
846
|
+
* @param {object} params.event Event object
|
|
847
|
+
* @param {boolean} params.event.readOnly Read only or not
|
|
863
848
|
*/
|
|
864
849
|
(e: 'readOnly', params: ((event: { readOnly: boolean }) => void)|string): void
|
|
865
850
|
/**
|
|
@@ -871,35 +856,29 @@ const emit = defineEmits<{
|
|
|
871
856
|
* 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`*.
|
|
872
857
|
* @param {string} e Event name
|
|
873
858
|
* @param {object} params Event parameters
|
|
874
|
-
* @param {
|
|
875
|
-
* @param {
|
|
876
|
-
* @param {
|
|
877
|
-
* @param {
|
|
878
|
-
* @param {number} params.
|
|
879
|
-
* @param {number} params.
|
|
880
|
-
* @param {number} params.params.event.oldWidth The old width
|
|
881
|
-
* @param {number} params.params.event.oldHeight The old height
|
|
859
|
+
* @param {object} params.event Event object
|
|
860
|
+
* @param {Core.widget.Widget} params.event.source This Widget
|
|
861
|
+
* @param {number} params.event.width The new width
|
|
862
|
+
* @param {number} params.event.height The new height
|
|
863
|
+
* @param {number} params.event.oldWidth The old width
|
|
864
|
+
* @param {number} params.event.oldHeight The old height
|
|
882
865
|
*/
|
|
883
866
|
(e: 'resize', params: ((event: { source: Widget, width: number, height: number, oldWidth: number, oldHeight: number }) => void)|string): void
|
|
884
867
|
/**
|
|
885
868
|
* Triggered after a widget is shown.
|
|
886
869
|
* @param {string} e Event name
|
|
887
870
|
* @param {object} params Event parameters
|
|
888
|
-
* @param {
|
|
889
|
-
* @param {
|
|
890
|
-
* @param {object} params.params.event Event object
|
|
891
|
-
* @param {Core.widget.Widget} params.params.event.source The widget
|
|
871
|
+
* @param {object} params.event Event object
|
|
872
|
+
* @param {Core.widget.Widget} params.event.source The widget
|
|
892
873
|
*/
|
|
893
874
|
(e: 'show', params: ((event: { source: Widget }) => void)|string): void
|
|
894
875
|
/**
|
|
895
876
|
* User clicked one of this field's [triggers](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Field#property-triggers)
|
|
896
877
|
* @param {string} e Event name
|
|
897
878
|
* @param {object} params Event parameters
|
|
898
|
-
* @param {
|
|
899
|
-
* @param {
|
|
900
|
-
* @param {
|
|
901
|
-
* @param {Core.widget.Field,any} params.params.event.source This field
|
|
902
|
-
* @param {Core.widget.Widget} params.params.event.trigger The trigger activated by click or touch tap.
|
|
879
|
+
* @param {object} params.event Event object
|
|
880
|
+
* @param {Core.widget.Field,any} params.event.source This field
|
|
881
|
+
* @param {Core.widget.Widget} params.event.trigger The trigger activated by click or touch tap.
|
|
903
882
|
*/
|
|
904
883
|
(e: 'trigger', params: ((event: { source: Field|any, trigger: Widget }) => void)|string): void
|
|
905
884
|
}>();
|
|
@@ -919,6 +898,7 @@ const widgetData = {
|
|
|
919
898
|
'autoSelect',
|
|
920
899
|
'bubbleEvents',
|
|
921
900
|
'centered',
|
|
901
|
+
'checkValidity',
|
|
922
902
|
'clearable',
|
|
923
903
|
'color',
|
|
924
904
|
'config',
|
|
@@ -28,6 +28,8 @@ export declare type BryntumEndDateFieldProps = {
|
|
|
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/EndDateField#config-appendTo)
|
|
31
33
|
*/
|
|
32
34
|
appendTo ? : HTMLElement|string
|
|
33
35
|
/**
|
|
@@ -81,6 +83,15 @@ export declare type BryntumEndDateFieldProps = {
|
|
|
81
83
|
* Set to `true` to centre the Widget in browser viewport space.
|
|
82
84
|
*/
|
|
83
85
|
centered ? : Boolean
|
|
86
|
+
/**
|
|
87
|
+
* A function (or the name of a function in the ownership hierarchy) called during field validation
|
|
88
|
+
* 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)
|
|
89
|
+
* evaluation, after the built-in [required](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Field#config-required) check.
|
|
90
|
+
* [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EndDateField#config-checkValidity)
|
|
91
|
+
* @param {Core.widget.Field} field The field being validated
|
|
92
|
+
* @returns {void}
|
|
93
|
+
*/
|
|
94
|
+
checkValidity ? : ((field: Field) => void)|string
|
|
84
95
|
/**
|
|
85
96
|
* Show a trigger to clear field, if this field is not [readOnly](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Field#config-readOnly). The trigger is available
|
|
86
97
|
* in the [triggers](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Field#property-triggers) object under the name `clear`. May also be an object which
|
|
@@ -289,10 +300,14 @@ export declare type BryntumEndDateFieldProps = {
|
|
|
289
300
|
inputWidth ? : string|number
|
|
290
301
|
/**
|
|
291
302
|
* 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.
|
|
303
|
+
* <div class="note">When creating nested trees of widgets, this should only be used on the outermost widget.
|
|
304
|
+
* [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EndDateField#config-insertBefore)
|
|
292
305
|
*/
|
|
293
306
|
insertBefore ? : HTMLElement|string
|
|
294
307
|
/**
|
|
295
308
|
* 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.
|
|
309
|
+
* <div class="note">When creating nested trees of widgets, this should only be used on the outermost widget.
|
|
310
|
+
* [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EndDateField#config-insertFirst)
|
|
296
311
|
*/
|
|
297
312
|
insertFirst ? : HTMLElement|string
|
|
298
313
|
/**
|
|
@@ -475,7 +490,7 @@ export declare type BryntumEndDateFieldProps = {
|
|
|
475
490
|
/**
|
|
476
491
|
* Project model calendar of which should be used by the field.
|
|
477
492
|
*/
|
|
478
|
-
project ? : ProjectModel|object
|
|
493
|
+
project ? : ProjectModel|object|null
|
|
479
494
|
/**
|
|
480
495
|
* Makes the field unmodifiable by user action. The input area is not editable, and triggers
|
|
481
496
|
* are unresponsive.
|