@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/StartDateField#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/StartDateField#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/StartDateField#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/StartDateField#config-insertFirst)
|
|
311
326
|
*/
|
|
312
327
|
insertFirst ? : HTMLElement|string
|
|
313
328
|
/**
|
|
@@ -504,7 +519,7 @@ defineProps<{
|
|
|
504
519
|
/**
|
|
505
520
|
* Project model calendar of which should be used by the field.
|
|
506
521
|
*/
|
|
507
|
-
project ? : ProjectModel|object
|
|
522
|
+
project ? : ProjectModel|object|null
|
|
508
523
|
/**
|
|
509
524
|
* Makes the field unmodifiable by user action. The input area is not editable, and triggers
|
|
510
525
|
* are unresponsive.
|
|
@@ -696,48 +711,40 @@ const emit = defineEmits<{
|
|
|
696
711
|
* User performed default action (typed into this field).
|
|
697
712
|
* @param {string} e Event name
|
|
698
713
|
* @param {object} params Event parameters
|
|
699
|
-
* @param {
|
|
700
|
-
* @param {
|
|
701
|
-
* @param {
|
|
702
|
-
* @param {
|
|
703
|
-
* @param {
|
|
704
|
-
* @param {
|
|
705
|
-
* @param {
|
|
706
|
-
* @param {
|
|
707
|
-
* @param {
|
|
708
|
-
* @param {
|
|
709
|
-
* @param {boolean} params.params.event.userAction Triggered by user taking an action (`true`) or by setting a value (`false`)
|
|
710
|
-
* @param {boolean} params.params.event.checked
|
|
714
|
+
* @param {object} params.event Event object
|
|
715
|
+
* @param {Core.widget.Field,any} params.event.source This Field
|
|
716
|
+
* @param {string,number,boolean,any} params.event.value This field's value
|
|
717
|
+
* @param {string,number,boolean,any} params.event.oldValue This field's previous value
|
|
718
|
+
* @param {boolean} params.event.valid True if this field is in a valid state
|
|
719
|
+
* @param {Event} params.event.event The triggering DOM event if any
|
|
720
|
+
* @param {Core.data.Model} params.event.record Selected record. Available for fields with records selection functionality
|
|
721
|
+
* @param {Core.data.Model[]} params.event.records Selected records as an array. Available for fields with records selection functionality
|
|
722
|
+
* @param {boolean} params.event.userAction Triggered by user taking an action (`true`) or by setting a value (`false`)
|
|
723
|
+
* @param {boolean} params.event.checked
|
|
711
724
|
*/
|
|
712
725
|
(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
|
|
713
726
|
/**
|
|
714
727
|
* Fires before an object is destroyed.
|
|
715
728
|
* @param {string} e Event name
|
|
716
729
|
* @param {object} params Event parameters
|
|
717
|
-
* @param {
|
|
718
|
-
* @param {
|
|
719
|
-
* @param {object} params.params.event Event object
|
|
720
|
-
* @param {Core.Base} params.params.event.source The Object that is being destroyed.
|
|
730
|
+
* @param {object} params.event Event object
|
|
731
|
+
* @param {Core.Base} params.event.source The Object that is being destroyed.
|
|
721
732
|
*/
|
|
722
733
|
(e: 'beforeDestroy', params: ((event: { source: Base }) => void)|string): void
|
|
723
734
|
/**
|
|
724
735
|
* Triggered before a widget is hidden. Return `false` to prevent the action.
|
|
725
736
|
* @param {string} e Event name
|
|
726
737
|
* @param {object} params Event parameters
|
|
727
|
-
* @param {
|
|
728
|
-
* @param {
|
|
729
|
-
* @param {object} params.params.event Event object
|
|
730
|
-
* @param {Core.widget.Widget} params.params.event.source The widget being hidden.
|
|
738
|
+
* @param {object} params.event Event object
|
|
739
|
+
* @param {Core.widget.Widget} params.event.source The widget being hidden.
|
|
731
740
|
*/
|
|
732
|
-
(e: 'beforeHide', params: ((event: { source: Widget }) =>
|
|
741
|
+
(e: 'beforeHide', params: ((event: { source: Widget }) => boolean|void)|string): boolean|void
|
|
733
742
|
/**
|
|
734
743
|
* Triggered before a widget is shown. Return `false` to prevent the action.
|
|
735
744
|
* @param {string} e Event name
|
|
736
745
|
* @param {object} params Event parameters
|
|
737
|
-
* @param {
|
|
738
|
-
* @param {
|
|
739
|
-
* @param {object} params.params.event Event object
|
|
740
|
-
* @param {Core.widget.Widget,any} params.params.event.source The widget being shown
|
|
746
|
+
* @param {object} params.event Event object
|
|
747
|
+
* @param {Core.widget.Widget,any} params.event.source The widget being shown
|
|
741
748
|
*/
|
|
742
749
|
(e: 'beforeShow', params: ((event: { source: Widget|any }) => Promise<boolean>|boolean|void)|string): Promise<boolean>|boolean|void
|
|
743
750
|
/**
|
|
@@ -745,27 +752,23 @@ const emit = defineEmits<{
|
|
|
745
752
|
* [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/StartDateField#event-catchAll)
|
|
746
753
|
* @param {string} e Event name
|
|
747
754
|
* @param {object} params Event parameters
|
|
748
|
-
* @param {
|
|
749
|
-
* @param {
|
|
750
|
-
* @param {
|
|
751
|
-
* @param {{[key: string]: any, type: string}} params.params.event.event The Object that contains event details
|
|
752
|
-
* @param {string} params.params.event.event.type The type of the event which is caught by the listener
|
|
755
|
+
* @param {object} params.event Event object
|
|
756
|
+
* @param {{[key: string]: any, type: string}} params.event.event The Object that contains event details
|
|
757
|
+
* @param {string} params.event.event.type The type of the event which is caught by the listener
|
|
753
758
|
*/
|
|
754
759
|
(e: 'catchAll', params: ((event: {[key: string]: any, type: string}) => void)|string): void
|
|
755
760
|
/**
|
|
756
761
|
* Fired when this field's value changes.
|
|
757
762
|
* @param {string} e Event name
|
|
758
763
|
* @param {object} params Event parameters
|
|
759
|
-
* @param {
|
|
760
|
-
* @param {
|
|
761
|
-
* @param {
|
|
762
|
-
* @param {
|
|
763
|
-
* @param {
|
|
764
|
-
* @param {
|
|
765
|
-
* @param {boolean} params.
|
|
766
|
-
* @param {
|
|
767
|
-
* @param {boolean} params.params.event.userAction Triggered by user taking an action (`true`) or by setting a value (`false`)
|
|
768
|
-
* @param {boolean} params.params.event.checked
|
|
764
|
+
* @param {object} params.event Event object
|
|
765
|
+
* @param {Core.widget.DateField} params.event.source This DateField
|
|
766
|
+
* @param {Date} params.event.value This field's value
|
|
767
|
+
* @param {Date} params.event.oldValue This field's previous value
|
|
768
|
+
* @param {boolean} params.event.valid True if this field is in a valid state
|
|
769
|
+
* @param {Event} params.event.event The triggering DOM event if any
|
|
770
|
+
* @param {boolean} params.event.userAction Triggered by user taking an action (`true`) or by setting a value (`false`)
|
|
771
|
+
* @param {boolean} params.event.checked
|
|
769
772
|
*/
|
|
770
773
|
(e: 'change', params: ((event: { source: DateField, value: Date, oldValue: Date, valid: boolean, event: Event, userAction: boolean, checked: boolean }) => void)|string): void
|
|
771
774
|
/**
|
|
@@ -773,45 +776,37 @@ const emit = defineEmits<{
|
|
|
773
776
|
* [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/StartDateField#event-clear)
|
|
774
777
|
* @param {string} e Event name
|
|
775
778
|
* @param {object} params Event parameters
|
|
776
|
-
* @param {
|
|
777
|
-
* @param {
|
|
778
|
-
* @param {object} params.params.event Event object
|
|
779
|
-
* @param {Core.widget.Field,any} params.params.event.source This Field
|
|
779
|
+
* @param {object} params.event Event object
|
|
780
|
+
* @param {Core.widget.Field,any} params.event.source This Field
|
|
780
781
|
*/
|
|
781
782
|
(e: 'clear', params: ((event: { source: Field|any }) => void)|string): void
|
|
782
783
|
/**
|
|
783
784
|
* Fires when an object is destroyed.
|
|
784
785
|
* @param {string} e Event name
|
|
785
786
|
* @param {object} params Event parameters
|
|
786
|
-
* @param {
|
|
787
|
-
* @param {
|
|
788
|
-
* @param {object} params.params.event Event object
|
|
789
|
-
* @param {Core.Base} params.params.event.source The Object that is being destroyed.
|
|
787
|
+
* @param {object} params.event Event object
|
|
788
|
+
* @param {Core.Base} params.event.source The Object that is being destroyed.
|
|
790
789
|
*/
|
|
791
790
|
(e: 'destroy', params: ((event: { source: Base }) => void)|string): void
|
|
792
791
|
/**
|
|
793
792
|
* Triggered when a widget's [element](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Widget#property-element) is available.
|
|
794
793
|
* @param {string} e Event name
|
|
795
794
|
* @param {object} params Event parameters
|
|
796
|
-
* @param {
|
|
797
|
-
* @param {
|
|
798
|
-
* @param {object} params.params.event Event object
|
|
799
|
-
* @param {HTMLElement} params.params.event.element The Widget's element.
|
|
795
|
+
* @param {object} params.event Event object
|
|
796
|
+
* @param {HTMLElement} params.event.element The Widget's element.
|
|
800
797
|
*/
|
|
801
798
|
(e: 'elementCreated', params: ((event: { element: HTMLElement }) => void)|string): void
|
|
802
799
|
/**
|
|
803
800
|
* Fired when focus enters this Widget.
|
|
804
801
|
* @param {string} e Event name
|
|
805
802
|
* @param {object} params Event parameters
|
|
806
|
-
* @param {
|
|
807
|
-
* @param {
|
|
808
|
-
* @param {
|
|
809
|
-
* @param {
|
|
810
|
-
* @param {
|
|
811
|
-
* @param {
|
|
812
|
-
* @param {
|
|
813
|
-
* @param {Core.widget.Widget} params.params.event.toWidget The widget which gained focus.
|
|
814
|
-
* @param {boolean} params.params.event.backwards `true` if the `toElement` is before the `fromElement` in document order.
|
|
803
|
+
* @param {object} params.event Event object
|
|
804
|
+
* @param {Core.widget.Widget} params.event.source This Widget
|
|
805
|
+
* @param {HTMLElement} params.event.fromElement The element which lost focus.
|
|
806
|
+
* @param {HTMLElement} params.event.toElement The element which gained focus.
|
|
807
|
+
* @param {Core.widget.Widget} params.event.fromWidget The widget which lost focus.
|
|
808
|
+
* @param {Core.widget.Widget} params.event.toWidget The widget which gained focus.
|
|
809
|
+
* @param {boolean} params.event.backwards `true` if the `toElement` is before the `fromElement` in document order.
|
|
815
810
|
*/
|
|
816
811
|
(e: 'focusIn', params: ((event: { source: Widget, fromElement: HTMLElement, toElement: HTMLElement, fromWidget: Widget, toWidget: Widget, backwards: boolean }) => void)|string): void
|
|
817
812
|
/**
|
|
@@ -820,37 +815,31 @@ const emit = defineEmits<{
|
|
|
820
815
|
* will not trigger this event. This is when focus exits this widget completely.
|
|
821
816
|
* @param {string} e Event name
|
|
822
817
|
* @param {object} params Event parameters
|
|
823
|
-
* @param {
|
|
824
|
-
* @param {
|
|
825
|
-
* @param {
|
|
826
|
-
* @param {
|
|
827
|
-
* @param {
|
|
828
|
-
* @param {
|
|
829
|
-
* @param {
|
|
830
|
-
* @param {Core.widget.Widget} params.params.event.toWidget The widget which gained focus.
|
|
831
|
-
* @param {boolean} params.params.event.backwards `true` if the `toElement` is before the `fromElement` in document order.
|
|
818
|
+
* @param {object} params.event Event object
|
|
819
|
+
* @param {Core.widget.Widget} params.event.source This Widget
|
|
820
|
+
* @param {HTMLElement} params.event.fromElement The element which lost focus.
|
|
821
|
+
* @param {HTMLElement} params.event.toElement The element which gained focus.
|
|
822
|
+
* @param {Core.widget.Widget} params.event.fromWidget The widget which lost focus.
|
|
823
|
+
* @param {Core.widget.Widget} params.event.toWidget The widget which gained focus.
|
|
824
|
+
* @param {boolean} params.event.backwards `true` if the `toElement` is before the `fromElement` in document order.
|
|
832
825
|
*/
|
|
833
826
|
(e: 'focusOut', params: ((event: { source: Widget, fromElement: HTMLElement, toElement: HTMLElement, fromWidget: Widget, toWidget: Widget, backwards: boolean }) => void)|string): void
|
|
834
827
|
/**
|
|
835
828
|
* Triggered after a widget was hidden
|
|
836
829
|
* @param {string} e Event name
|
|
837
830
|
* @param {object} params Event parameters
|
|
838
|
-
* @param {
|
|
839
|
-
* @param {
|
|
840
|
-
* @param {object} params.params.event Event object
|
|
841
|
-
* @param {Core.widget.Widget} params.params.event.source The widget
|
|
831
|
+
* @param {object} params.event Event object
|
|
832
|
+
* @param {Core.widget.Widget} params.event.source The widget
|
|
842
833
|
*/
|
|
843
834
|
(e: 'hide', params: ((event: { source: Widget }) => void)|string): void
|
|
844
835
|
/**
|
|
845
836
|
* Fired when the user types into this field.
|
|
846
837
|
* @param {string} e Event name
|
|
847
838
|
* @param {object} params Event parameters
|
|
848
|
-
* @param {
|
|
849
|
-
* @param {
|
|
850
|
-
* @param {
|
|
851
|
-
* @param {
|
|
852
|
-
* @param {string,number,boolean,any} params.params.event.value This field's value
|
|
853
|
-
* @param {Event} params.params.event.event The triggering DOM event
|
|
839
|
+
* @param {object} params.event Event object
|
|
840
|
+
* @param {Core.widget.Field,any} params.event.source This field
|
|
841
|
+
* @param {string,number,boolean,any} params.event.value This field's value
|
|
842
|
+
* @param {Event} params.event.event The triggering DOM event
|
|
854
843
|
*/
|
|
855
844
|
(e: 'input', params: ((event: { source: Field|any, value: string|number|boolean|any, event: Event }) => void)|string): void
|
|
856
845
|
/**
|
|
@@ -859,21 +848,17 @@ const emit = defineEmits<{
|
|
|
859
848
|
* [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/StartDateField#event-paint)
|
|
860
849
|
* @param {string} e Event name
|
|
861
850
|
* @param {object} params Event parameters
|
|
862
|
-
* @param {
|
|
863
|
-
* @param {
|
|
864
|
-
* @param {
|
|
865
|
-
* @param {Core.widget.Widget} params.params.event.source The widget being painted.
|
|
866
|
-
* @param {boolean} params.params.event.firstPaint `true` if this is the first paint.
|
|
851
|
+
* @param {object} params.event Event object
|
|
852
|
+
* @param {Core.widget.Widget} params.event.source The widget being painted.
|
|
853
|
+
* @param {boolean} params.event.firstPaint `true` if this is the first paint.
|
|
867
854
|
*/
|
|
868
855
|
(e: 'paint', params: ((event: { source: Widget, firstPaint: boolean }) => void)|string): void
|
|
869
856
|
/**
|
|
870
857
|
* Fired when a Widget's read only state is toggled
|
|
871
858
|
* @param {string} e Event name
|
|
872
859
|
* @param {object} params Event parameters
|
|
873
|
-
* @param {
|
|
874
|
-
* @param {
|
|
875
|
-
* @param {object} params.params.event Event object
|
|
876
|
-
* @param {boolean} params.params.event.readOnly Read only or not
|
|
860
|
+
* @param {object} params.event Event object
|
|
861
|
+
* @param {boolean} params.event.readOnly Read only or not
|
|
877
862
|
*/
|
|
878
863
|
(e: 'readOnly', params: ((event: { readOnly: boolean }) => void)|string): void
|
|
879
864
|
/**
|
|
@@ -885,35 +870,29 @@ const emit = defineEmits<{
|
|
|
885
870
|
* 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`*.
|
|
886
871
|
* @param {string} e Event name
|
|
887
872
|
* @param {object} params Event parameters
|
|
888
|
-
* @param {
|
|
889
|
-
* @param {
|
|
890
|
-
* @param {
|
|
891
|
-
* @param {
|
|
892
|
-
* @param {number} params.
|
|
893
|
-
* @param {number} params.
|
|
894
|
-
* @param {number} params.params.event.oldWidth The old width
|
|
895
|
-
* @param {number} params.params.event.oldHeight The old height
|
|
873
|
+
* @param {object} params.event Event object
|
|
874
|
+
* @param {Core.widget.Widget} params.event.source This Widget
|
|
875
|
+
* @param {number} params.event.width The new width
|
|
876
|
+
* @param {number} params.event.height The new height
|
|
877
|
+
* @param {number} params.event.oldWidth The old width
|
|
878
|
+
* @param {number} params.event.oldHeight The old height
|
|
896
879
|
*/
|
|
897
880
|
(e: 'resize', params: ((event: { source: Widget, width: number, height: number, oldWidth: number, oldHeight: number }) => void)|string): void
|
|
898
881
|
/**
|
|
899
882
|
* Triggered after a widget is shown.
|
|
900
883
|
* @param {string} e Event name
|
|
901
884
|
* @param {object} params Event parameters
|
|
902
|
-
* @param {
|
|
903
|
-
* @param {
|
|
904
|
-
* @param {object} params.params.event Event object
|
|
905
|
-
* @param {Core.widget.Widget} params.params.event.source The widget
|
|
885
|
+
* @param {object} params.event Event object
|
|
886
|
+
* @param {Core.widget.Widget} params.event.source The widget
|
|
906
887
|
*/
|
|
907
888
|
(e: 'show', params: ((event: { source: Widget }) => void)|string): void
|
|
908
889
|
/**
|
|
909
890
|
* User clicked one of this field's [triggers](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Field#property-triggers)
|
|
910
891
|
* @param {string} e Event name
|
|
911
892
|
* @param {object} params Event parameters
|
|
912
|
-
* @param {
|
|
913
|
-
* @param {
|
|
914
|
-
* @param {
|
|
915
|
-
* @param {Core.widget.Field,any} params.params.event.source This field
|
|
916
|
-
* @param {Core.widget.Widget} params.params.event.trigger The trigger activated by click or touch tap.
|
|
893
|
+
* @param {object} params.event Event object
|
|
894
|
+
* @param {Core.widget.Field,any} params.event.source This field
|
|
895
|
+
* @param {Core.widget.Widget} params.event.trigger The trigger activated by click or touch tap.
|
|
917
896
|
*/
|
|
918
897
|
(e: 'trigger', params: ((event: { source: Field|any, trigger: Widget }) => void)|string): void
|
|
919
898
|
}>();
|
|
@@ -933,6 +912,7 @@ const widgetData = {
|
|
|
933
912
|
'autoSelect',
|
|
934
913
|
'bubbleEvents',
|
|
935
914
|
'centered',
|
|
915
|
+
'checkValidity',
|
|
936
916
|
'clearable',
|
|
937
917
|
'color',
|
|
938
918
|
'config',
|
|
@@ -28,6 +28,8 @@ export declare type BryntumStartDateFieldProps = {
|
|
|
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/StartDateField#config-appendTo)
|
|
31
33
|
*/
|
|
32
34
|
appendTo ? : HTMLElement|string
|
|
33
35
|
/**
|
|
@@ -81,6 +83,15 @@ export declare type BryntumStartDateFieldProps = {
|
|
|
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/StartDateField#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 BryntumStartDateFieldProps = {
|
|
|
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/StartDateField#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/StartDateField#config-insertFirst)
|
|
296
311
|
*/
|
|
297
312
|
insertFirst ? : HTMLElement|string
|
|
298
313
|
/**
|
|
@@ -489,7 +504,7 @@ export declare type BryntumStartDateFieldProps = {
|
|
|
489
504
|
/**
|
|
490
505
|
* Project model calendar of which should be used by the field.
|
|
491
506
|
*/
|
|
492
|
-
project ? : ProjectModel|object
|
|
507
|
+
project ? : ProjectModel|object|null
|
|
493
508
|
/**
|
|
494
509
|
* Makes the field unmodifiable by user action. The input area is not editable, and triggers
|
|
495
510
|
* are unresponsive.
|