@bryntum/scheduler-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 +8 -8
- package/lib/chunks/{DVFhf2Ma.js → BTSObfAz.js} +6 -4
- package/lib/chunks/BTSObfAz.js.map +1 -0
- package/lib/chunks/BXIuEgYD.js.map +1 -1
- package/lib/chunks/{DhhzgoYL.js → CCTV8qn0.js} +3 -1
- package/lib/chunks/CCTV8qn0.js.map +1 -0
- package/lib/chunks/{kN-s_8Na.js → COFzBhB8.js} +8 -6
- package/lib/chunks/COFzBhB8.js.map +1 -0
- package/lib/chunks/DB0UHrA3.js.map +1 -1
- package/lib/chunks/{5o-YjSb7.js → DJSlX0qP.js} +3 -1
- package/lib/chunks/DJSlX0qP.js.map +1 -0
- package/lib/chunks/DP61St-u.js.map +1 -1
- package/lib/chunks/{ZkU6CtWX.js → LNqNYJck.js} +9 -7
- package/lib/chunks/LNqNYJck.js.map +1 -0
- package/lib/chunks/R69sJLmF.js.map +1 -1
- package/lib/chunks/{OJaN5ZWK.js → WykRcMCN.js} +6 -4
- package/lib/chunks/WykRcMCN.js.map +1 -0
- package/lib/chunks/eUISgYXE.js.map +1 -1
- package/lib/chunks/t8aiH3XL.js.map +1 -1
- package/lib/components/BryntumEventColorField.js +1 -1
- package/lib/components/BryntumProjectCombo.js +1 -1
- package/lib/components/BryntumResourceCombo.js +1 -1
- package/lib/components/BryntumScheduler.js +1 -1
- package/lib/components/BryntumSchedulerBase.js +1 -1
- package/lib/components/BryntumViewPresetCombo.js +1 -1
- package/lib/index.js +6 -6
- package/package.json +1 -1
- package/src/components/BryntumEventColorField.vue +86 -106
- package/src/components/BryntumEventColorFieldProps.ts +15 -0
- package/src/components/BryntumProjectCombo.vue +88 -110
- package/src/components/BryntumProjectComboProps.ts +16 -1
- package/src/components/BryntumResourceCombo.vue +87 -109
- package/src/components/BryntumResourceComboProps.ts +15 -0
- package/src/components/BryntumResourceFilter.vue +75 -107
- package/src/components/BryntumResourceFilterProps.ts +6 -0
- package/src/components/BryntumScheduler.vue +1432 -1928
- package/src/components/BryntumSchedulerBase.vue +1432 -1928
- package/src/components/BryntumSchedulerBaseProps.ts +12 -1
- package/src/components/BryntumSchedulerDatePicker.vue +91 -135
- package/src/components/BryntumSchedulerDatePickerProps.ts +6 -0
- package/src/components/BryntumSchedulerProjectModel.vue +11 -15
- package/src/components/BryntumSchedulerProps.ts +12 -1
- package/src/components/BryntumTimeZoomSlider.vue +56 -80
- package/src/components/BryntumTimeZoomSliderProps.ts +6 -0
- package/src/components/BryntumTimelineHistogram.vue +728 -1030
- package/src/components/BryntumTimelineHistogramProps.ts +6 -0
- package/src/components/BryntumUndoRedo.vue +56 -80
- package/src/components/BryntumUndoRedoProps.ts +7 -1
- package/src/components/BryntumViewPresetCombo.vue +83 -103
- package/src/components/BryntumViewPresetComboProps.ts +15 -0
- package/lib/chunks/5o-YjSb7.js.map +0 -1
- package/lib/chunks/DVFhf2Ma.js.map +0 -1
- package/lib/chunks/DhhzgoYL.js.map +0 -1
- package/lib/chunks/OJaN5ZWK.js.map +0 -1
- package/lib/chunks/ZkU6CtWX.js.map +0 -1
- package/lib/chunks/kN-s_8Na.js.map +0 -1
|
@@ -47,6 +47,8 @@ defineProps<{
|
|
|
47
47
|
/**
|
|
48
48
|
* Element (or the id of an element) to append this widget's element to. Can be configured, or set once at
|
|
49
49
|
* runtime. To access the element of a rendered widget, see [element](https://bryntum.com/products/scheduler/docs/api/Core/widget/Widget#property-element).
|
|
50
|
+
* <div class="note">When creating nested trees of widgets, this should only be used on the outermost widget.
|
|
51
|
+
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/EventColorField#config-appendTo)
|
|
50
52
|
*/
|
|
51
53
|
appendTo ? : HTMLElement|string
|
|
52
54
|
/**
|
|
@@ -100,6 +102,15 @@ defineProps<{
|
|
|
100
102
|
* Set to `true` to centre the Widget in browser viewport space.
|
|
101
103
|
*/
|
|
102
104
|
centered ? : Boolean
|
|
105
|
+
/**
|
|
106
|
+
* A function (or the name of a function in the ownership hierarchy) called during field validation
|
|
107
|
+
* to perform custom validity checks. The function is called as part of the [isValid](https://bryntum.com/products/scheduler/docs/api/Core/widget/Field#property-isValid)
|
|
108
|
+
* evaluation, after the built-in [required](https://bryntum.com/products/scheduler/docs/api/Core/widget/Field#config-required) check.
|
|
109
|
+
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/EventColorField#config-checkValidity)
|
|
110
|
+
* @param {Core.widget.Field} field The field being validated
|
|
111
|
+
* @returns {void}
|
|
112
|
+
*/
|
|
113
|
+
checkValidity ? : ((field: Field) => void)|string
|
|
103
114
|
/**
|
|
104
115
|
* Show a trigger to clear field, if this field is not [readOnly](https://bryntum.com/products/scheduler/docs/api/Core/widget/Field#config-readOnly). The trigger is available
|
|
105
116
|
* in the [triggers](https://bryntum.com/products/scheduler/docs/api/Core/widget/Field#property-triggers) object under the name `clear`. May also be an object which
|
|
@@ -297,10 +308,14 @@ defineProps<{
|
|
|
297
308
|
inputWidth ? : string|number
|
|
298
309
|
/**
|
|
299
310
|
* Element (or element id) to insert this widget before. If provided, [appendTo](https://bryntum.com/products/scheduler/docs/api/Core/widget/Widget#config-appendTo) config is ignored.
|
|
311
|
+
* <div class="note">When creating nested trees of widgets, this should only be used on the outermost widget.
|
|
312
|
+
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/EventColorField#config-insertBefore)
|
|
300
313
|
*/
|
|
301
314
|
insertBefore ? : HTMLElement|string
|
|
302
315
|
/**
|
|
303
316
|
* Element (or element id) to append this widget element to, as a first child. If provided, [appendTo](https://bryntum.com/products/scheduler/docs/api/Core/widget/Widget#config-appendTo) config is ignored.
|
|
317
|
+
* <div class="note">When creating nested trees of widgets, this should only be used on the outermost widget.
|
|
318
|
+
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/EventColorField#config-insertFirst)
|
|
304
319
|
*/
|
|
305
320
|
insertFirst ? : HTMLElement|string
|
|
306
321
|
/**
|
|
@@ -613,48 +628,40 @@ const emit = defineEmits<{
|
|
|
613
628
|
* User performed default action (typed into this field).
|
|
614
629
|
* @param {string} e Event name
|
|
615
630
|
* @param {object} params Event parameters
|
|
616
|
-
* @param {
|
|
617
|
-
* @param {
|
|
618
|
-
* @param {
|
|
619
|
-
* @param {
|
|
620
|
-
* @param {
|
|
621
|
-
* @param {
|
|
622
|
-
* @param {
|
|
623
|
-
* @param {
|
|
624
|
-
* @param {
|
|
625
|
-
* @param {
|
|
626
|
-
* @param {boolean} params.params.event.userAction Triggered by user taking an action (`true`) or by setting a value (`false`)
|
|
627
|
-
* @param {boolean} params.params.event.checked
|
|
631
|
+
* @param {object} params.event Event object
|
|
632
|
+
* @param {Core.widget.Field,any} params.event.source This Field
|
|
633
|
+
* @param {string,number,boolean,any} params.event.value This field's value
|
|
634
|
+
* @param {string,number,boolean,any} params.event.oldValue This field's previous value
|
|
635
|
+
* @param {boolean} params.event.valid True if this field is in a valid state
|
|
636
|
+
* @param {Event} params.event.event The triggering DOM event if any
|
|
637
|
+
* @param {Core.data.Model} params.event.record Selected record. Available for fields with records selection functionality
|
|
638
|
+
* @param {Core.data.Model[]} params.event.records Selected records as an array. Available for fields with records selection functionality
|
|
639
|
+
* @param {boolean} params.event.userAction Triggered by user taking an action (`true`) or by setting a value (`false`)
|
|
640
|
+
* @param {boolean} params.event.checked
|
|
628
641
|
*/
|
|
629
642
|
(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
|
|
630
643
|
/**
|
|
631
644
|
* Fires before an object is destroyed.
|
|
632
645
|
* @param {string} e Event name
|
|
633
646
|
* @param {object} params Event parameters
|
|
634
|
-
* @param {
|
|
635
|
-
* @param {
|
|
636
|
-
* @param {object} params.params.event Event object
|
|
637
|
-
* @param {Core.Base} params.params.event.source The Object that is being destroyed.
|
|
647
|
+
* @param {object} params.event Event object
|
|
648
|
+
* @param {Core.Base} params.event.source The Object that is being destroyed.
|
|
638
649
|
*/
|
|
639
650
|
(e: 'beforeDestroy', params: ((event: { source: Base }) => void)|string): void
|
|
640
651
|
/**
|
|
641
652
|
* Triggered before a widget is hidden. Return `false` to prevent the action.
|
|
642
653
|
* @param {string} e Event name
|
|
643
654
|
* @param {object} params Event parameters
|
|
644
|
-
* @param {
|
|
645
|
-
* @param {
|
|
646
|
-
* @param {object} params.params.event Event object
|
|
647
|
-
* @param {Core.widget.Widget} params.params.event.source The widget being hidden.
|
|
655
|
+
* @param {object} params.event Event object
|
|
656
|
+
* @param {Core.widget.Widget} params.event.source The widget being hidden.
|
|
648
657
|
*/
|
|
649
|
-
(e: 'beforeHide', params: ((event: { source: Widget }) =>
|
|
658
|
+
(e: 'beforeHide', params: ((event: { source: Widget }) => boolean|void)|string): boolean|void
|
|
650
659
|
/**
|
|
651
660
|
* Triggered before a widget is shown. Return `false` to prevent the action.
|
|
652
661
|
* @param {string} e Event name
|
|
653
662
|
* @param {object} params Event parameters
|
|
654
|
-
* @param {
|
|
655
|
-
* @param {
|
|
656
|
-
* @param {object} params.params.event Event object
|
|
657
|
-
* @param {Core.widget.Widget,any} params.params.event.source The widget being shown
|
|
663
|
+
* @param {object} params.event Event object
|
|
664
|
+
* @param {Core.widget.Widget,any} params.event.source The widget being shown
|
|
658
665
|
*/
|
|
659
666
|
(e: 'beforeShow', params: ((event: { source: Widget|any }) => Promise<boolean>|boolean|void)|string): Promise<boolean>|boolean|void
|
|
660
667
|
/**
|
|
@@ -662,27 +669,23 @@ const emit = defineEmits<{
|
|
|
662
669
|
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/EventColorField#event-catchAll)
|
|
663
670
|
* @param {string} e Event name
|
|
664
671
|
* @param {object} params Event parameters
|
|
665
|
-
* @param {
|
|
666
|
-
* @param {
|
|
667
|
-
* @param {
|
|
668
|
-
* @param {{[key: string]: any, type: string}} params.params.event.event The Object that contains event details
|
|
669
|
-
* @param {string} params.params.event.event.type The type of the event which is caught by the listener
|
|
672
|
+
* @param {object} params.event Event object
|
|
673
|
+
* @param {{[key: string]: any, type: string}} params.event.event The Object that contains event details
|
|
674
|
+
* @param {string} params.event.event.type The type of the event which is caught by the listener
|
|
670
675
|
*/
|
|
671
676
|
(e: 'catchAll', params: ((event: {[key: string]: any, type: string}) => void)|string): void
|
|
672
677
|
/**
|
|
673
678
|
* Fired when this field's value changes.
|
|
674
679
|
* @param {string} e Event name
|
|
675
680
|
* @param {object} params Event parameters
|
|
676
|
-
* @param {
|
|
677
|
-
* @param {
|
|
678
|
-
* @param {
|
|
679
|
-
* @param {
|
|
680
|
-
* @param {
|
|
681
|
-
* @param {
|
|
682
|
-
* @param {boolean} params.
|
|
683
|
-
* @param {
|
|
684
|
-
* @param {boolean} params.params.event.userAction Triggered by user taking an action (`true`) or by setting a value (`false`)
|
|
685
|
-
* @param {boolean} params.params.event.checked
|
|
681
|
+
* @param {object} params.event Event object
|
|
682
|
+
* @param {Core.widget.Field,any} params.event.source This Field
|
|
683
|
+
* @param {string,number,boolean,any} params.event.value This field's value
|
|
684
|
+
* @param {string,number,boolean,any} params.event.oldValue This field's previous value
|
|
685
|
+
* @param {boolean} params.event.valid True if this field is in a valid state
|
|
686
|
+
* @param {Event} params.event.event The triggering DOM event if any
|
|
687
|
+
* @param {boolean} params.event.userAction Triggered by user taking an action (`true`) or by setting a value (`false`)
|
|
688
|
+
* @param {boolean} params.event.checked
|
|
686
689
|
*/
|
|
687
690
|
(e: 'change', params: ((event: { source: Field|any, value: string|number|boolean|any, oldValue: string|number|boolean|any, valid: boolean, event: Event, userAction: boolean, checked: boolean }) => void)|string): void
|
|
688
691
|
/**
|
|
@@ -690,45 +693,37 @@ const emit = defineEmits<{
|
|
|
690
693
|
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/EventColorField#event-clear)
|
|
691
694
|
* @param {string} e Event name
|
|
692
695
|
* @param {object} params Event parameters
|
|
693
|
-
* @param {
|
|
694
|
-
* @param {
|
|
695
|
-
* @param {object} params.params.event Event object
|
|
696
|
-
* @param {Core.widget.Field,any} params.params.event.source This Field
|
|
696
|
+
* @param {object} params.event Event object
|
|
697
|
+
* @param {Core.widget.Field,any} params.event.source This Field
|
|
697
698
|
*/
|
|
698
699
|
(e: 'clear', params: ((event: { source: Field|any }) => void)|string): void
|
|
699
700
|
/**
|
|
700
701
|
* Fires when an object is destroyed.
|
|
701
702
|
* @param {string} e Event name
|
|
702
703
|
* @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.
|
|
704
|
+
* @param {object} params.event Event object
|
|
705
|
+
* @param {Core.Base} params.event.source The Object that is being destroyed.
|
|
707
706
|
*/
|
|
708
707
|
(e: 'destroy', params: ((event: { source: Base }) => void)|string): void
|
|
709
708
|
/**
|
|
710
709
|
* Triggered when a widget's [element](https://bryntum.com/products/scheduler/docs/api/Core/widget/Widget#property-element) is available.
|
|
711
710
|
* @param {string} e Event name
|
|
712
711
|
* @param {object} params Event parameters
|
|
713
|
-
* @param {
|
|
714
|
-
* @param {
|
|
715
|
-
* @param {object} params.params.event Event object
|
|
716
|
-
* @param {HTMLElement} params.params.event.element The Widget's element.
|
|
712
|
+
* @param {object} params.event Event object
|
|
713
|
+
* @param {HTMLElement} params.event.element The Widget's element.
|
|
717
714
|
*/
|
|
718
715
|
(e: 'elementCreated', params: ((event: { element: HTMLElement }) => void)|string): void
|
|
719
716
|
/**
|
|
720
717
|
* Fired when focus enters this Widget.
|
|
721
718
|
* @param {string} e Event name
|
|
722
719
|
* @param {object} params Event parameters
|
|
723
|
-
* @param {
|
|
724
|
-
* @param {
|
|
725
|
-
* @param {
|
|
726
|
-
* @param {
|
|
727
|
-
* @param {
|
|
728
|
-
* @param {
|
|
729
|
-
* @param {
|
|
730
|
-
* @param {Core.widget.Widget} params.params.event.toWidget The widget which gained focus.
|
|
731
|
-
* @param {boolean} params.params.event.backwards `true` if the `toElement` is before the `fromElement` in document order.
|
|
720
|
+
* @param {object} params.event Event object
|
|
721
|
+
* @param {Core.widget.Widget} params.event.source This Widget
|
|
722
|
+
* @param {HTMLElement} params.event.fromElement The element which lost focus.
|
|
723
|
+
* @param {HTMLElement} params.event.toElement The element which gained focus.
|
|
724
|
+
* @param {Core.widget.Widget} params.event.fromWidget The widget which lost focus.
|
|
725
|
+
* @param {Core.widget.Widget} params.event.toWidget The widget which gained focus.
|
|
726
|
+
* @param {boolean} params.event.backwards `true` if the `toElement` is before the `fromElement` in document order.
|
|
732
727
|
*/
|
|
733
728
|
(e: 'focusIn', params: ((event: { source: Widget, fromElement: HTMLElement, toElement: HTMLElement, fromWidget: Widget, toWidget: Widget, backwards: boolean }) => void)|string): void
|
|
734
729
|
/**
|
|
@@ -737,37 +732,31 @@ const emit = defineEmits<{
|
|
|
737
732
|
* will not trigger this event. This is when focus exits this widget completely.
|
|
738
733
|
* @param {string} e Event name
|
|
739
734
|
* @param {object} params Event parameters
|
|
740
|
-
* @param {
|
|
741
|
-
* @param {
|
|
742
|
-
* @param {
|
|
743
|
-
* @param {
|
|
744
|
-
* @param {
|
|
745
|
-
* @param {
|
|
746
|
-
* @param {
|
|
747
|
-
* @param {Core.widget.Widget} params.params.event.toWidget The widget which gained focus.
|
|
748
|
-
* @param {boolean} params.params.event.backwards `true` if the `toElement` is before the `fromElement` in document order.
|
|
735
|
+
* @param {object} params.event Event object
|
|
736
|
+
* @param {Core.widget.Widget} params.event.source This Widget
|
|
737
|
+
* @param {HTMLElement} params.event.fromElement The element which lost focus.
|
|
738
|
+
* @param {HTMLElement} params.event.toElement The element which gained focus.
|
|
739
|
+
* @param {Core.widget.Widget} params.event.fromWidget The widget which lost focus.
|
|
740
|
+
* @param {Core.widget.Widget} params.event.toWidget The widget which gained focus.
|
|
741
|
+
* @param {boolean} params.event.backwards `true` if the `toElement` is before the `fromElement` in document order.
|
|
749
742
|
*/
|
|
750
743
|
(e: 'focusOut', params: ((event: { source: Widget, fromElement: HTMLElement, toElement: HTMLElement, fromWidget: Widget, toWidget: Widget, backwards: boolean }) => void)|string): void
|
|
751
744
|
/**
|
|
752
745
|
* Triggered after a widget was hidden
|
|
753
746
|
* @param {string} e Event name
|
|
754
747
|
* @param {object} params Event parameters
|
|
755
|
-
* @param {
|
|
756
|
-
* @param {
|
|
757
|
-
* @param {object} params.params.event Event object
|
|
758
|
-
* @param {Core.widget.Widget} params.params.event.source The widget
|
|
748
|
+
* @param {object} params.event Event object
|
|
749
|
+
* @param {Core.widget.Widget} params.event.source The widget
|
|
759
750
|
*/
|
|
760
751
|
(e: 'hide', params: ((event: { source: Widget }) => void)|string): void
|
|
761
752
|
/**
|
|
762
753
|
* Fired when the user types into this field.
|
|
763
754
|
* @param {string} e Event name
|
|
764
755
|
* @param {object} params Event parameters
|
|
765
|
-
* @param {
|
|
766
|
-
* @param {
|
|
767
|
-
* @param {
|
|
768
|
-
* @param {
|
|
769
|
-
* @param {string,number,boolean,any} params.params.event.value This field's value
|
|
770
|
-
* @param {Event} params.params.event.event The triggering DOM event
|
|
756
|
+
* @param {object} params.event Event object
|
|
757
|
+
* @param {Core.widget.Field,any} params.event.source This field
|
|
758
|
+
* @param {string,number,boolean,any} params.event.value This field's value
|
|
759
|
+
* @param {Event} params.event.event The triggering DOM event
|
|
771
760
|
*/
|
|
772
761
|
(e: 'input', params: ((event: { source: Field|any, value: string|number|boolean|any, event: Event }) => void)|string): void
|
|
773
762
|
/**
|
|
@@ -776,21 +765,17 @@ const emit = defineEmits<{
|
|
|
776
765
|
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/EventColorField#event-paint)
|
|
777
766
|
* @param {string} e Event name
|
|
778
767
|
* @param {object} params Event parameters
|
|
779
|
-
* @param {
|
|
780
|
-
* @param {
|
|
781
|
-
* @param {
|
|
782
|
-
* @param {Core.widget.Widget} params.params.event.source The widget being painted.
|
|
783
|
-
* @param {boolean} params.params.event.firstPaint `true` if this is the first paint.
|
|
768
|
+
* @param {object} params.event Event object
|
|
769
|
+
* @param {Core.widget.Widget} params.event.source The widget being painted.
|
|
770
|
+
* @param {boolean} params.event.firstPaint `true` if this is the first paint.
|
|
784
771
|
*/
|
|
785
772
|
(e: 'paint', params: ((event: { source: Widget, firstPaint: boolean }) => void)|string): void
|
|
786
773
|
/**
|
|
787
774
|
* Fired when a Widget's read only state is toggled
|
|
788
775
|
* @param {string} e Event name
|
|
789
776
|
* @param {object} params Event parameters
|
|
790
|
-
* @param {
|
|
791
|
-
* @param {
|
|
792
|
-
* @param {object} params.params.event Event object
|
|
793
|
-
* @param {boolean} params.params.event.readOnly Read only or not
|
|
777
|
+
* @param {object} params.event Event object
|
|
778
|
+
* @param {boolean} params.event.readOnly Read only or not
|
|
794
779
|
*/
|
|
795
780
|
(e: 'readOnly', params: ((event: { readOnly: boolean }) => void)|string): void
|
|
796
781
|
/**
|
|
@@ -802,35 +787,29 @@ const emit = defineEmits<{
|
|
|
802
787
|
* Fired when the encapsulating element of a Widget resizes *only when [monitorResize](https://bryntum.com/products/scheduler/docs/api/Core/widget/Widget#config-monitorResize) is `true`*.
|
|
803
788
|
* @param {string} e Event name
|
|
804
789
|
* @param {object} params Event parameters
|
|
805
|
-
* @param {
|
|
806
|
-
* @param {
|
|
807
|
-
* @param {
|
|
808
|
-
* @param {
|
|
809
|
-
* @param {number} params.
|
|
810
|
-
* @param {number} params.
|
|
811
|
-
* @param {number} params.params.event.oldWidth The old width
|
|
812
|
-
* @param {number} params.params.event.oldHeight The old height
|
|
790
|
+
* @param {object} params.event Event object
|
|
791
|
+
* @param {Core.widget.Widget} params.event.source This Widget
|
|
792
|
+
* @param {number} params.event.width The new width
|
|
793
|
+
* @param {number} params.event.height The new height
|
|
794
|
+
* @param {number} params.event.oldWidth The old width
|
|
795
|
+
* @param {number} params.event.oldHeight The old height
|
|
813
796
|
*/
|
|
814
797
|
(e: 'resize', params: ((event: { source: Widget, width: number, height: number, oldWidth: number, oldHeight: number }) => void)|string): void
|
|
815
798
|
/**
|
|
816
799
|
* Triggered after a widget is shown.
|
|
817
800
|
* @param {string} e Event name
|
|
818
801
|
* @param {object} params Event parameters
|
|
819
|
-
* @param {
|
|
820
|
-
* @param {
|
|
821
|
-
* @param {object} params.params.event Event object
|
|
822
|
-
* @param {Core.widget.Widget} params.params.event.source The widget
|
|
802
|
+
* @param {object} params.event Event object
|
|
803
|
+
* @param {Core.widget.Widget} params.event.source The widget
|
|
823
804
|
*/
|
|
824
805
|
(e: 'show', params: ((event: { source: Widget }) => void)|string): void
|
|
825
806
|
/**
|
|
826
807
|
* User clicked one of this field's [triggers](https://bryntum.com/products/scheduler/docs/api/Core/widget/Field#property-triggers)
|
|
827
808
|
* @param {string} e Event name
|
|
828
809
|
* @param {object} params Event parameters
|
|
829
|
-
* @param {
|
|
830
|
-
* @param {
|
|
831
|
-
* @param {
|
|
832
|
-
* @param {Core.widget.Field,any} params.params.event.source This field
|
|
833
|
-
* @param {Core.widget.Widget} params.params.event.trigger The trigger activated by click or touch tap.
|
|
810
|
+
* @param {object} params.event Event object
|
|
811
|
+
* @param {Core.widget.Field,any} params.event.source This field
|
|
812
|
+
* @param {Core.widget.Widget} params.event.trigger The trigger activated by click or touch tap.
|
|
834
813
|
*/
|
|
835
814
|
(e: 'trigger', params: ((event: { source: Field|any, trigger: Widget }) => void)|string): void
|
|
836
815
|
}>();
|
|
@@ -850,6 +829,7 @@ const widgetData = {
|
|
|
850
829
|
'autoSelect',
|
|
851
830
|
'bubbleEvents',
|
|
852
831
|
'centered',
|
|
832
|
+
'checkValidity',
|
|
853
833
|
'clearable',
|
|
854
834
|
'config',
|
|
855
835
|
'constrainTo',
|
|
@@ -32,6 +32,8 @@ export declare type BryntumEventColorFieldProps = {
|
|
|
32
32
|
/**
|
|
33
33
|
* Element (or the id of an element) to append this widget's element to. Can be configured, or set once at
|
|
34
34
|
* runtime. To access the element of a rendered widget, see [element](https://bryntum.com/products/scheduler/docs/api/Core/widget/Widget#property-element).
|
|
35
|
+
* <div class="note">When creating nested trees of widgets, this should only be used on the outermost widget.
|
|
36
|
+
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/EventColorField#config-appendTo)
|
|
35
37
|
*/
|
|
36
38
|
appendTo ? : HTMLElement|string
|
|
37
39
|
/**
|
|
@@ -85,6 +87,15 @@ export declare type BryntumEventColorFieldProps = {
|
|
|
85
87
|
* Set to `true` to centre the Widget in browser viewport space.
|
|
86
88
|
*/
|
|
87
89
|
centered ? : Boolean
|
|
90
|
+
/**
|
|
91
|
+
* A function (or the name of a function in the ownership hierarchy) called during field validation
|
|
92
|
+
* to perform custom validity checks. The function is called as part of the [isValid](https://bryntum.com/products/scheduler/docs/api/Core/widget/Field#property-isValid)
|
|
93
|
+
* evaluation, after the built-in [required](https://bryntum.com/products/scheduler/docs/api/Core/widget/Field#config-required) check.
|
|
94
|
+
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/EventColorField#config-checkValidity)
|
|
95
|
+
* @param {Core.widget.Field} field The field being validated
|
|
96
|
+
* @returns {void}
|
|
97
|
+
*/
|
|
98
|
+
checkValidity ? : ((field: Field) => void)|string
|
|
88
99
|
/**
|
|
89
100
|
* Show a trigger to clear field, if this field is not [readOnly](https://bryntum.com/products/scheduler/docs/api/Core/widget/Field#config-readOnly). The trigger is available
|
|
90
101
|
* in the [triggers](https://bryntum.com/products/scheduler/docs/api/Core/widget/Field#property-triggers) object under the name `clear`. May also be an object which
|
|
@@ -282,10 +293,14 @@ export declare type BryntumEventColorFieldProps = {
|
|
|
282
293
|
inputWidth ? : string|number
|
|
283
294
|
/**
|
|
284
295
|
* Element (or element id) to insert this widget before. If provided, [appendTo](https://bryntum.com/products/scheduler/docs/api/Core/widget/Widget#config-appendTo) config is ignored.
|
|
296
|
+
* <div class="note">When creating nested trees of widgets, this should only be used on the outermost widget.
|
|
297
|
+
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/EventColorField#config-insertBefore)
|
|
285
298
|
*/
|
|
286
299
|
insertBefore ? : HTMLElement|string
|
|
287
300
|
/**
|
|
288
301
|
* Element (or element id) to append this widget element to, as a first child. If provided, [appendTo](https://bryntum.com/products/scheduler/docs/api/Core/widget/Widget#config-appendTo) config is ignored.
|
|
302
|
+
* <div class="note">When creating nested trees of widgets, this should only be used on the outermost widget.
|
|
303
|
+
* [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/EventColorField#config-insertFirst)
|
|
289
304
|
*/
|
|
290
305
|
insertFirst ? : HTMLElement|string
|
|
291
306
|
/**
|