@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
|
@@ -52,6 +52,8 @@ defineProps<{
|
|
|
52
52
|
/**
|
|
53
53
|
* Element (or the id of an element) to append this widget's element to. Can be configured, or set once at
|
|
54
54
|
* runtime. To access the element of a rendered widget, see [element](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Widget#property-element).
|
|
55
|
+
* <div class="note">When creating nested trees of widgets, this should only be used on the outermost widget.
|
|
56
|
+
* [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-appendTo)
|
|
55
57
|
*/
|
|
56
58
|
appendTo ? : HTMLElement|string
|
|
57
59
|
/**
|
|
@@ -101,6 +103,15 @@ defineProps<{
|
|
|
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/EffortField#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
|
* 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
|
|
106
117
|
* 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
|
|
@@ -308,10 +319,14 @@ defineProps<{
|
|
|
308
319
|
inputWidth ? : string|number
|
|
309
320
|
/**
|
|
310
321
|
* 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.
|
|
322
|
+
* <div class="note">When creating nested trees of widgets, this should only be used on the outermost widget.
|
|
323
|
+
* [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-insertBefore)
|
|
311
324
|
*/
|
|
312
325
|
insertBefore ? : HTMLElement|string
|
|
313
326
|
/**
|
|
314
327
|
* 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.
|
|
328
|
+
* <div class="note">When creating nested trees of widgets, this should only be used on the outermost widget.
|
|
329
|
+
* [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-insertFirst)
|
|
315
330
|
*/
|
|
316
331
|
insertFirst ? : HTMLElement|string
|
|
317
332
|
/**
|
|
@@ -653,45 +668,37 @@ const emit = defineEmits<{
|
|
|
653
668
|
* User performed the default action (typed into this field or hit the triggers).
|
|
654
669
|
* @param {string} e Event name
|
|
655
670
|
* @param {object} params Event parameters
|
|
656
|
-
* @param {
|
|
657
|
-
* @param {
|
|
658
|
-
* @param {
|
|
659
|
-
* @param {
|
|
660
|
-
* @param {
|
|
661
|
-
* @param {boolean} params.
|
|
662
|
-
* @param {
|
|
663
|
-
* @param {boolean} params.params.event.userAction Triggered by user taking an action (`true`) or by setting a value (`false`)
|
|
664
|
-
* @param {Core.widget.DurationField} params.params.event.source This field
|
|
671
|
+
* @param {object} params.event Event object
|
|
672
|
+
* @param {Core.data.Duration} params.event.value This field's value
|
|
673
|
+
* @param {Core.data.Duration} params.event.oldValue This field's previous value
|
|
674
|
+
* @param {boolean} params.event.valid True if this field is in a valid state.
|
|
675
|
+
* @param {Event} [params.event.event] The triggering DOM event if any.
|
|
676
|
+
* @param {boolean} params.event.userAction Triggered by user taking an action (`true`) or by setting a value (`false`)
|
|
677
|
+
* @param {Core.widget.DurationField} params.event.source This field
|
|
665
678
|
*/
|
|
666
679
|
(e: 'action', params: ((event: { value: Duration, oldValue: Duration, valid: boolean, event?: Event, userAction: boolean, source: DurationField }) => void)|string): void
|
|
667
680
|
/**
|
|
668
681
|
* Fires before an object is destroyed.
|
|
669
682
|
* @param {string} e Event name
|
|
670
683
|
* @param {object} params Event parameters
|
|
671
|
-
* @param {
|
|
672
|
-
* @param {
|
|
673
|
-
* @param {object} params.params.event Event object
|
|
674
|
-
* @param {Core.Base} params.params.event.source The Object that is being destroyed.
|
|
684
|
+
* @param {object} params.event Event object
|
|
685
|
+
* @param {Core.Base} params.event.source The Object that is being destroyed.
|
|
675
686
|
*/
|
|
676
687
|
(e: 'beforeDestroy', params: ((event: { source: Base }) => void)|string): void
|
|
677
688
|
/**
|
|
678
689
|
* Triggered before a widget is hidden. Return `false` to prevent the action.
|
|
679
690
|
* @param {string} e Event name
|
|
680
691
|
* @param {object} params Event parameters
|
|
681
|
-
* @param {
|
|
682
|
-
* @param {
|
|
683
|
-
* @param {object} params.params.event Event object
|
|
684
|
-
* @param {Core.widget.Widget} params.params.event.source The widget being hidden.
|
|
692
|
+
* @param {object} params.event Event object
|
|
693
|
+
* @param {Core.widget.Widget} params.event.source The widget being hidden.
|
|
685
694
|
*/
|
|
686
|
-
(e: 'beforeHide', params: ((event: { source: Widget }) =>
|
|
695
|
+
(e: 'beforeHide', params: ((event: { source: Widget }) => boolean|void)|string): boolean|void
|
|
687
696
|
/**
|
|
688
697
|
* Triggered before a widget is shown. Return `false` to prevent the action.
|
|
689
698
|
* @param {string} e Event name
|
|
690
699
|
* @param {object} params Event parameters
|
|
691
|
-
* @param {
|
|
692
|
-
* @param {
|
|
693
|
-
* @param {object} params.params.event Event object
|
|
694
|
-
* @param {Core.widget.Widget,any} params.params.event.source The widget being shown
|
|
700
|
+
* @param {object} params.event Event object
|
|
701
|
+
* @param {Core.widget.Widget,any} params.event.source The widget being shown
|
|
695
702
|
*/
|
|
696
703
|
(e: 'beforeShow', params: ((event: { source: Widget|any }) => Promise<boolean>|boolean|void)|string): Promise<boolean>|boolean|void
|
|
697
704
|
/**
|
|
@@ -699,26 +706,22 @@ const emit = defineEmits<{
|
|
|
699
706
|
* [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#event-catchAll)
|
|
700
707
|
* @param {string} e Event name
|
|
701
708
|
* @param {object} params Event parameters
|
|
702
|
-
* @param {
|
|
703
|
-
* @param {
|
|
704
|
-
* @param {
|
|
705
|
-
* @param {{[key: string]: any, type: string}} params.params.event.event The Object that contains event details
|
|
706
|
-
* @param {string} params.params.event.event.type The type of the event which is caught by the listener
|
|
709
|
+
* @param {object} params.event Event object
|
|
710
|
+
* @param {{[key: string]: any, type: string}} params.event.event The Object that contains event details
|
|
711
|
+
* @param {string} params.event.event.type The type of the event which is caught by the listener
|
|
707
712
|
*/
|
|
708
713
|
(e: 'catchAll', params: ((event: {[key: string]: any, type: string}) => void)|string): void
|
|
709
714
|
/**
|
|
710
715
|
* Fired when this field's value changes.
|
|
711
716
|
* @param {string} e Event name
|
|
712
717
|
* @param {object} params Event parameters
|
|
713
|
-
* @param {
|
|
714
|
-
* @param {
|
|
715
|
-
* @param {
|
|
716
|
-
* @param {
|
|
717
|
-
* @param {
|
|
718
|
-
* @param {boolean} params.
|
|
719
|
-
* @param {
|
|
720
|
-
* @param {boolean} params.params.event.userAction Triggered by user taking an action (`true`) or by setting a value (`false`)
|
|
721
|
-
* @param {Core.widget.DurationField} params.params.event.source This field
|
|
718
|
+
* @param {object} params.event Event object
|
|
719
|
+
* @param {Core.data.Duration} params.event.value This field's value
|
|
720
|
+
* @param {Core.data.Duration} params.event.oldValue This field's previous value
|
|
721
|
+
* @param {boolean} params.event.valid True if this field is in a valid state.
|
|
722
|
+
* @param {Event} [params.event.event] The triggering DOM event if any.
|
|
723
|
+
* @param {boolean} params.event.userAction Triggered by user taking an action (`true`) or by setting a value (`false`)
|
|
724
|
+
* @param {Core.widget.DurationField} params.event.source This field
|
|
722
725
|
*/
|
|
723
726
|
(e: 'change', params: ((event: { value: Duration, oldValue: Duration, valid: boolean, event?: Event, userAction: boolean, source: DurationField }) => void)|string): void
|
|
724
727
|
/**
|
|
@@ -726,45 +729,37 @@ const emit = defineEmits<{
|
|
|
726
729
|
* [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#event-clear)
|
|
727
730
|
* @param {string} e Event name
|
|
728
731
|
* @param {object} params Event parameters
|
|
729
|
-
* @param {
|
|
730
|
-
* @param {
|
|
731
|
-
* @param {object} params.params.event Event object
|
|
732
|
-
* @param {Core.widget.Field,any} params.params.event.source This Field
|
|
732
|
+
* @param {object} params.event Event object
|
|
733
|
+
* @param {Core.widget.Field,any} params.event.source This Field
|
|
733
734
|
*/
|
|
734
735
|
(e: 'clear', params: ((event: { source: Field|any }) => void)|string): void
|
|
735
736
|
/**
|
|
736
737
|
* Fires when an object is destroyed.
|
|
737
738
|
* @param {string} e Event name
|
|
738
739
|
* @param {object} params Event parameters
|
|
739
|
-
* @param {
|
|
740
|
-
* @param {
|
|
741
|
-
* @param {object} params.params.event Event object
|
|
742
|
-
* @param {Core.Base} params.params.event.source The Object that is being destroyed.
|
|
740
|
+
* @param {object} params.event Event object
|
|
741
|
+
* @param {Core.Base} params.event.source The Object that is being destroyed.
|
|
743
742
|
*/
|
|
744
743
|
(e: 'destroy', params: ((event: { source: Base }) => void)|string): void
|
|
745
744
|
/**
|
|
746
745
|
* Triggered when a widget's [element](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Widget#property-element) is available.
|
|
747
746
|
* @param {string} e Event name
|
|
748
747
|
* @param {object} params Event parameters
|
|
749
|
-
* @param {
|
|
750
|
-
* @param {
|
|
751
|
-
* @param {object} params.params.event Event object
|
|
752
|
-
* @param {HTMLElement} params.params.event.element The Widget's element.
|
|
748
|
+
* @param {object} params.event Event object
|
|
749
|
+
* @param {HTMLElement} params.event.element The Widget's element.
|
|
753
750
|
*/
|
|
754
751
|
(e: 'elementCreated', params: ((event: { element: HTMLElement }) => void)|string): void
|
|
755
752
|
/**
|
|
756
753
|
* Fired when focus enters this Widget.
|
|
757
754
|
* @param {string} e Event name
|
|
758
755
|
* @param {object} params Event parameters
|
|
759
|
-
* @param {
|
|
760
|
-
* @param {
|
|
761
|
-
* @param {
|
|
762
|
-
* @param {
|
|
763
|
-
* @param {
|
|
764
|
-
* @param {
|
|
765
|
-
* @param {
|
|
766
|
-
* @param {Core.widget.Widget} params.params.event.toWidget The widget which gained focus.
|
|
767
|
-
* @param {boolean} params.params.event.backwards `true` if the `toElement` is before the `fromElement` in document order.
|
|
756
|
+
* @param {object} params.event Event object
|
|
757
|
+
* @param {Core.widget.Widget} params.event.source This Widget
|
|
758
|
+
* @param {HTMLElement} params.event.fromElement The element which lost focus.
|
|
759
|
+
* @param {HTMLElement} params.event.toElement The element which gained focus.
|
|
760
|
+
* @param {Core.widget.Widget} params.event.fromWidget The widget which lost focus.
|
|
761
|
+
* @param {Core.widget.Widget} params.event.toWidget The widget which gained focus.
|
|
762
|
+
* @param {boolean} params.event.backwards `true` if the `toElement` is before the `fromElement` in document order.
|
|
768
763
|
*/
|
|
769
764
|
(e: 'focusIn', params: ((event: { source: Widget, fromElement: HTMLElement, toElement: HTMLElement, fromWidget: Widget, toWidget: Widget, backwards: boolean }) => void)|string): void
|
|
770
765
|
/**
|
|
@@ -773,37 +768,31 @@ const emit = defineEmits<{
|
|
|
773
768
|
* will not trigger this event. This is when focus exits this widget completely.
|
|
774
769
|
* @param {string} e Event name
|
|
775
770
|
* @param {object} params Event parameters
|
|
776
|
-
* @param {
|
|
777
|
-
* @param {
|
|
778
|
-
* @param {
|
|
779
|
-
* @param {
|
|
780
|
-
* @param {
|
|
781
|
-
* @param {
|
|
782
|
-
* @param {
|
|
783
|
-
* @param {Core.widget.Widget} params.params.event.toWidget The widget which gained focus.
|
|
784
|
-
* @param {boolean} params.params.event.backwards `true` if the `toElement` is before the `fromElement` in document order.
|
|
771
|
+
* @param {object} params.event Event object
|
|
772
|
+
* @param {Core.widget.Widget} params.event.source This Widget
|
|
773
|
+
* @param {HTMLElement} params.event.fromElement The element which lost focus.
|
|
774
|
+
* @param {HTMLElement} params.event.toElement The element which gained focus.
|
|
775
|
+
* @param {Core.widget.Widget} params.event.fromWidget The widget which lost focus.
|
|
776
|
+
* @param {Core.widget.Widget} params.event.toWidget The widget which gained focus.
|
|
777
|
+
* @param {boolean} params.event.backwards `true` if the `toElement` is before the `fromElement` in document order.
|
|
785
778
|
*/
|
|
786
779
|
(e: 'focusOut', params: ((event: { source: Widget, fromElement: HTMLElement, toElement: HTMLElement, fromWidget: Widget, toWidget: Widget, backwards: boolean }) => void)|string): void
|
|
787
780
|
/**
|
|
788
781
|
* Triggered after a widget was hidden
|
|
789
782
|
* @param {string} e Event name
|
|
790
783
|
* @param {object} params Event parameters
|
|
791
|
-
* @param {
|
|
792
|
-
* @param {
|
|
793
|
-
* @param {object} params.params.event Event object
|
|
794
|
-
* @param {Core.widget.Widget} params.params.event.source The widget
|
|
784
|
+
* @param {object} params.event Event object
|
|
785
|
+
* @param {Core.widget.Widget} params.event.source The widget
|
|
795
786
|
*/
|
|
796
787
|
(e: 'hide', params: ((event: { source: Widget }) => void)|string): void
|
|
797
788
|
/**
|
|
798
789
|
* Fired when the user types into this field.
|
|
799
790
|
* @param {string} e Event name
|
|
800
791
|
* @param {object} params Event parameters
|
|
801
|
-
* @param {
|
|
802
|
-
* @param {
|
|
803
|
-
* @param {
|
|
804
|
-
* @param {
|
|
805
|
-
* @param {string,number,boolean,any} params.params.event.value This field's value
|
|
806
|
-
* @param {Event} params.params.event.event The triggering DOM event
|
|
792
|
+
* @param {object} params.event Event object
|
|
793
|
+
* @param {Core.widget.Field,any} params.event.source This field
|
|
794
|
+
* @param {string,number,boolean,any} params.event.value This field's value
|
|
795
|
+
* @param {Event} params.event.event The triggering DOM event
|
|
807
796
|
*/
|
|
808
797
|
(e: 'input', params: ((event: { source: Field|any, value: string|number|boolean|any, event: Event }) => void)|string): void
|
|
809
798
|
/**
|
|
@@ -812,21 +801,17 @@ const emit = defineEmits<{
|
|
|
812
801
|
* [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#event-paint)
|
|
813
802
|
* @param {string} e Event name
|
|
814
803
|
* @param {object} params Event parameters
|
|
815
|
-
* @param {
|
|
816
|
-
* @param {
|
|
817
|
-
* @param {
|
|
818
|
-
* @param {Core.widget.Widget} params.params.event.source The widget being painted.
|
|
819
|
-
* @param {boolean} params.params.event.firstPaint `true` if this is the first paint.
|
|
804
|
+
* @param {object} params.event Event object
|
|
805
|
+
* @param {Core.widget.Widget} params.event.source The widget being painted.
|
|
806
|
+
* @param {boolean} params.event.firstPaint `true` if this is the first paint.
|
|
820
807
|
*/
|
|
821
808
|
(e: 'paint', params: ((event: { source: Widget, firstPaint: boolean }) => void)|string): void
|
|
822
809
|
/**
|
|
823
810
|
* Fired when a Widget's read only state is toggled
|
|
824
811
|
* @param {string} e Event name
|
|
825
812
|
* @param {object} params Event parameters
|
|
826
|
-
* @param {
|
|
827
|
-
* @param {
|
|
828
|
-
* @param {object} params.params.event Event object
|
|
829
|
-
* @param {boolean} params.params.event.readOnly Read only or not
|
|
813
|
+
* @param {object} params.event Event object
|
|
814
|
+
* @param {boolean} params.event.readOnly Read only or not
|
|
830
815
|
*/
|
|
831
816
|
(e: 'readOnly', params: ((event: { readOnly: boolean }) => void)|string): void
|
|
832
817
|
/**
|
|
@@ -838,35 +823,29 @@ const emit = defineEmits<{
|
|
|
838
823
|
* 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`*.
|
|
839
824
|
* @param {string} e Event name
|
|
840
825
|
* @param {object} params Event parameters
|
|
841
|
-
* @param {
|
|
842
|
-
* @param {
|
|
843
|
-
* @param {
|
|
844
|
-
* @param {
|
|
845
|
-
* @param {number} params.
|
|
846
|
-
* @param {number} params.
|
|
847
|
-
* @param {number} params.params.event.oldWidth The old width
|
|
848
|
-
* @param {number} params.params.event.oldHeight The old height
|
|
826
|
+
* @param {object} params.event Event object
|
|
827
|
+
* @param {Core.widget.Widget} params.event.source This Widget
|
|
828
|
+
* @param {number} params.event.width The new width
|
|
829
|
+
* @param {number} params.event.height The new height
|
|
830
|
+
* @param {number} params.event.oldWidth The old width
|
|
831
|
+
* @param {number} params.event.oldHeight The old height
|
|
849
832
|
*/
|
|
850
833
|
(e: 'resize', params: ((event: { source: Widget, width: number, height: number, oldWidth: number, oldHeight: number }) => void)|string): void
|
|
851
834
|
/**
|
|
852
835
|
* Triggered after a widget is shown.
|
|
853
836
|
* @param {string} e Event name
|
|
854
837
|
* @param {object} params Event parameters
|
|
855
|
-
* @param {
|
|
856
|
-
* @param {
|
|
857
|
-
* @param {object} params.params.event Event object
|
|
858
|
-
* @param {Core.widget.Widget} params.params.event.source The widget
|
|
838
|
+
* @param {object} params.event Event object
|
|
839
|
+
* @param {Core.widget.Widget} params.event.source The widget
|
|
859
840
|
*/
|
|
860
841
|
(e: 'show', params: ((event: { source: Widget }) => void)|string): void
|
|
861
842
|
/**
|
|
862
843
|
* User clicked one of this field's [triggers](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Field#property-triggers)
|
|
863
844
|
* @param {string} e Event name
|
|
864
845
|
* @param {object} params Event parameters
|
|
865
|
-
* @param {
|
|
866
|
-
* @param {
|
|
867
|
-
* @param {
|
|
868
|
-
* @param {Core.widget.Field,any} params.params.event.source This field
|
|
869
|
-
* @param {Core.widget.Widget} params.params.event.trigger The trigger activated by click or touch tap.
|
|
846
|
+
* @param {object} params.event Event object
|
|
847
|
+
* @param {Core.widget.Field,any} params.event.source This field
|
|
848
|
+
* @param {Core.widget.Widget} params.event.trigger The trigger activated by click or touch tap.
|
|
870
849
|
*/
|
|
871
850
|
(e: 'trigger', params: ((event: { source: Field|any, trigger: Widget }) => void)|string): void
|
|
872
851
|
}>();
|
|
@@ -886,6 +865,7 @@ const widgetData = {
|
|
|
886
865
|
'autoSelect',
|
|
887
866
|
'bubbleEvents',
|
|
888
867
|
'centered',
|
|
868
|
+
'checkValidity',
|
|
889
869
|
'clearable',
|
|
890
870
|
'color',
|
|
891
871
|
'config',
|
|
@@ -37,6 +37,8 @@ export declare type BryntumEffortFieldProps = {
|
|
|
37
37
|
/**
|
|
38
38
|
* Element (or the id of an element) to append this widget's element to. Can be configured, or set once at
|
|
39
39
|
* runtime. To access the element of a rendered widget, see [element](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Widget#property-element).
|
|
40
|
+
* <div class="note">When creating nested trees of widgets, this should only be used on the outermost widget.
|
|
41
|
+
* [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-appendTo)
|
|
40
42
|
*/
|
|
41
43
|
appendTo ? : HTMLElement|string
|
|
42
44
|
/**
|
|
@@ -86,6 +88,15 @@ export declare type BryntumEffortFieldProps = {
|
|
|
86
88
|
* Set to `true` to centre the Widget in browser viewport space.
|
|
87
89
|
*/
|
|
88
90
|
centered ? : Boolean
|
|
91
|
+
/**
|
|
92
|
+
* A function (or the name of a function in the ownership hierarchy) called during field validation
|
|
93
|
+
* 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)
|
|
94
|
+
* evaluation, after the built-in [required](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Field#config-required) check.
|
|
95
|
+
* [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-checkValidity)
|
|
96
|
+
* @param {Core.widget.Field} field The field being validated
|
|
97
|
+
* @returns {void}
|
|
98
|
+
*/
|
|
99
|
+
checkValidity ? : ((field: Field) => void)|string
|
|
89
100
|
/**
|
|
90
101
|
* 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
|
|
91
102
|
* 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
|
|
@@ -293,10 +304,14 @@ export declare type BryntumEffortFieldProps = {
|
|
|
293
304
|
inputWidth ? : string|number
|
|
294
305
|
/**
|
|
295
306
|
* 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.
|
|
307
|
+
* <div class="note">When creating nested trees of widgets, this should only be used on the outermost widget.
|
|
308
|
+
* [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-insertBefore)
|
|
296
309
|
*/
|
|
297
310
|
insertBefore ? : HTMLElement|string
|
|
298
311
|
/**
|
|
299
312
|
* 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.
|
|
313
|
+
* <div class="note">When creating nested trees of widgets, this should only be used on the outermost widget.
|
|
314
|
+
* [More...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/EffortField#config-insertFirst)
|
|
300
315
|
*/
|
|
301
316
|
insertFirst ? : HTMLElement|string
|
|
302
317
|
/**
|