@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.
Files changed (56) hide show
  1. package/README.md +8 -8
  2. package/lib/chunks/{DVFhf2Ma.js → BTSObfAz.js} +6 -4
  3. package/lib/chunks/BTSObfAz.js.map +1 -0
  4. package/lib/chunks/BXIuEgYD.js.map +1 -1
  5. package/lib/chunks/{DhhzgoYL.js → CCTV8qn0.js} +3 -1
  6. package/lib/chunks/CCTV8qn0.js.map +1 -0
  7. package/lib/chunks/{kN-s_8Na.js → COFzBhB8.js} +8 -6
  8. package/lib/chunks/COFzBhB8.js.map +1 -0
  9. package/lib/chunks/DB0UHrA3.js.map +1 -1
  10. package/lib/chunks/{5o-YjSb7.js → DJSlX0qP.js} +3 -1
  11. package/lib/chunks/DJSlX0qP.js.map +1 -0
  12. package/lib/chunks/DP61St-u.js.map +1 -1
  13. package/lib/chunks/{ZkU6CtWX.js → LNqNYJck.js} +9 -7
  14. package/lib/chunks/LNqNYJck.js.map +1 -0
  15. package/lib/chunks/R69sJLmF.js.map +1 -1
  16. package/lib/chunks/{OJaN5ZWK.js → WykRcMCN.js} +6 -4
  17. package/lib/chunks/WykRcMCN.js.map +1 -0
  18. package/lib/chunks/eUISgYXE.js.map +1 -1
  19. package/lib/chunks/t8aiH3XL.js.map +1 -1
  20. package/lib/components/BryntumEventColorField.js +1 -1
  21. package/lib/components/BryntumProjectCombo.js +1 -1
  22. package/lib/components/BryntumResourceCombo.js +1 -1
  23. package/lib/components/BryntumScheduler.js +1 -1
  24. package/lib/components/BryntumSchedulerBase.js +1 -1
  25. package/lib/components/BryntumViewPresetCombo.js +1 -1
  26. package/lib/index.js +6 -6
  27. package/package.json +1 -1
  28. package/src/components/BryntumEventColorField.vue +86 -106
  29. package/src/components/BryntumEventColorFieldProps.ts +15 -0
  30. package/src/components/BryntumProjectCombo.vue +88 -110
  31. package/src/components/BryntumProjectComboProps.ts +16 -1
  32. package/src/components/BryntumResourceCombo.vue +87 -109
  33. package/src/components/BryntumResourceComboProps.ts +15 -0
  34. package/src/components/BryntumResourceFilter.vue +75 -107
  35. package/src/components/BryntumResourceFilterProps.ts +6 -0
  36. package/src/components/BryntumScheduler.vue +1432 -1928
  37. package/src/components/BryntumSchedulerBase.vue +1432 -1928
  38. package/src/components/BryntumSchedulerBaseProps.ts +12 -1
  39. package/src/components/BryntumSchedulerDatePicker.vue +91 -135
  40. package/src/components/BryntumSchedulerDatePickerProps.ts +6 -0
  41. package/src/components/BryntumSchedulerProjectModel.vue +11 -15
  42. package/src/components/BryntumSchedulerProps.ts +12 -1
  43. package/src/components/BryntumTimeZoomSlider.vue +56 -80
  44. package/src/components/BryntumTimeZoomSliderProps.ts +6 -0
  45. package/src/components/BryntumTimelineHistogram.vue +728 -1030
  46. package/src/components/BryntumTimelineHistogramProps.ts +6 -0
  47. package/src/components/BryntumUndoRedo.vue +56 -80
  48. package/src/components/BryntumUndoRedoProps.ts +7 -1
  49. package/src/components/BryntumViewPresetCombo.vue +83 -103
  50. package/src/components/BryntumViewPresetComboProps.ts +15 -0
  51. package/lib/chunks/5o-YjSb7.js.map +0 -1
  52. package/lib/chunks/DVFhf2Ma.js.map +0 -1
  53. package/lib/chunks/DhhzgoYL.js.map +0 -1
  54. package/lib/chunks/OJaN5ZWK.js.map +0 -1
  55. package/lib/chunks/ZkU6CtWX.js.map +0 -1
  56. package/lib/chunks/kN-s_8Na.js.map +0 -1
@@ -52,6 +52,8 @@ export declare type BryntumTimelineHistogramProps = {
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/scheduler/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/scheduler/docs/api/Scheduler/view/TimelineHistogram#config-appendTo)
55
57
  */
56
58
  appendTo ? : HTMLElement|string
57
59
  /**
@@ -581,10 +583,14 @@ export declare type BryntumTimelineHistogramProps = {
581
583
  inputFieldAlign ? : 'start'|'end'
582
584
  /**
583
585
  * 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.
586
+ * <div class="note">When creating nested trees of widgets, this should only be used on the outermost widget.
587
+ * [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/view/TimelineHistogram#config-insertBefore)
584
588
  */
585
589
  insertBefore ? : HTMLElement|string
586
590
  /**
587
591
  * 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.
592
+ * <div class="note">When creating nested trees of widgets, this should only be used on the outermost widget.
593
+ * [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/view/TimelineHistogram#config-insertFirst)
588
594
  */
589
595
  insertFirst ? : HTMLElement|string
590
596
  /**
@@ -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/scheduler/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/scheduler/docs/api/Scheduler/widget/UndoRedo#config-appendTo)
46
48
  */
47
49
  appendTo ? : HTMLElement|string
48
50
  /**
@@ -245,10 +247,14 @@ defineProps<{
245
247
  inputFieldAlign ? : 'start'|'end'
246
248
  /**
247
249
  * 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.
250
+ * <div class="note">When creating nested trees of widgets, this should only be used on the outermost widget.
251
+ * [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/UndoRedo#config-insertBefore)
248
252
  */
249
253
  insertBefore ? : HTMLElement|string
250
254
  /**
251
255
  * 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.
256
+ * <div class="note">When creating nested trees of widgets, this should only be used on the outermost widget.
257
+ * [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/UndoRedo#config-insertFirst)
252
258
  */
253
259
  insertFirst ? : HTMLElement|string
254
260
  /**
@@ -391,7 +397,7 @@ defineProps<{
391
397
  * transaction to track.
392
398
  * [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/UndoRedo#config-project)
393
399
  */
394
- project ? : ProjectModel|ProjectModelConfig|object
400
+ project ? : ProjectModel|ProjectModelConfig|object|null
395
401
  /**
396
402
  * Whether this widget is read-only. This is only valid if the widget is an input
397
403
  * field, <strong>or contains input fields at any depth</strong>.
@@ -556,42 +562,34 @@ const emit = defineEmits<{
556
562
  * Fires before an object is destroyed.
557
563
  * @param {string} e Event name
558
564
  * @param {object} params Event parameters
559
- * @param {string} params.e Event name
560
- * @param {object} params.params Event parameters
561
- * @param {object} params.params.event Event object
562
- * @param {Core.Base} params.params.event.source The Object that is being destroyed.
565
+ * @param {object} params.event Event object
566
+ * @param {Core.Base} params.event.source The Object that is being destroyed.
563
567
  */
564
568
  (e: 'beforeDestroy', params: ((event: { source: Base }) => void)|string): void
565
569
  /**
566
570
  * Triggered before a widget is hidden. Return `false` to prevent the action.
567
571
  * @param {string} e Event name
568
572
  * @param {object} params Event parameters
569
- * @param {string} params.e Event name
570
- * @param {object} params.params Event parameters
571
- * @param {object} params.params.event Event object
572
- * @param {Core.widget.Widget} params.params.event.source The widget being hidden.
573
+ * @param {object} params.event Event object
574
+ * @param {Core.widget.Widget} params.event.source The widget being hidden.
573
575
  */
574
- (e: 'beforeHide', params: ((event: { source: Widget }) => Promise<boolean>|boolean|void)|string): Promise<boolean>|boolean|void
576
+ (e: 'beforeHide', params: ((event: { source: Widget }) => boolean|void)|string): boolean|void
575
577
  /**
576
578
  * Fired before this container will load record values into its child fields. This is useful if you
577
579
  * want to modify the UI before data is loaded (e.g. set some input field to be readonly)
578
580
  * @param {string} e Event name
579
581
  * @param {object} params Event parameters
580
- * @param {string} params.e Event name
581
- * @param {object} params.params Event parameters
582
- * @param {object} params.params.event Event object
583
- * @param {Core.widget.Container} params.params.event.source The container
584
- * @param {Core.data.Model} params.params.event.record The record
582
+ * @param {object} params.event Event object
583
+ * @param {Core.widget.Container} params.event.source The container
584
+ * @param {Core.data.Model} params.event.record The record
585
585
  */
586
586
  (e: 'beforeSetRecord', params: ((event: { source: Container, record: Model }) => void)|string): void
587
587
  /**
588
588
  * Triggered before a widget is shown. Return `false` to prevent the action.
589
589
  * @param {string} e Event name
590
590
  * @param {object} params Event parameters
591
- * @param {string} params.e Event name
592
- * @param {object} params.params Event parameters
593
- * @param {object} params.params.event Event object
594
- * @param {Core.widget.Widget,any} params.params.event.source The widget being shown
591
+ * @param {object} params.event Event object
592
+ * @param {Core.widget.Widget,any} params.event.source The widget being shown
595
593
  */
596
594
  (e: 'beforeShow', params: ((event: { source: Widget|any }) => Promise<boolean>|boolean|void)|string): Promise<boolean>|boolean|void
597
595
  /**
@@ -599,57 +597,47 @@ const emit = defineEmits<{
599
597
  * [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/UndoRedo#event-catchAll)
600
598
  * @param {string} e Event name
601
599
  * @param {object} params Event parameters
602
- * @param {string} params.e Event name
603
- * @param {object} params.params Event parameters
604
- * @param {object} params.params.event Event object
605
- * @param {{[key: string]: any, type: string}} params.params.event.event The Object that contains event details
606
- * @param {string} params.params.event.event.type The type of the event which is caught by the listener
600
+ * @param {object} params.event Event object
601
+ * @param {{[key: string]: any, type: string}} params.event.event The Object that contains event details
602
+ * @param {string} params.event.event.type The type of the event which is caught by the listener
607
603
  */
608
604
  (e: 'catchAll', params: ((event: {[key: string]: any, type: string}) => void)|string): void
609
605
  /**
610
606
  * Fires when an object is destroyed.
611
607
  * @param {string} e Event name
612
608
  * @param {object} params Event parameters
613
- * @param {string} params.e Event name
614
- * @param {object} params.params Event parameters
615
- * @param {object} params.params.event Event object
616
- * @param {Core.Base} params.params.event.source The Object that is being destroyed.
609
+ * @param {object} params.event Event object
610
+ * @param {Core.Base} params.event.source The Object that is being destroyed.
617
611
  */
618
612
  (e: 'destroy', params: ((event: { source: Base }) => void)|string): void
619
613
  /**
620
614
  * Fires when a field is mutated and the state of the [hasChanges](https://bryntum.com/products/scheduler/docs/api/Core/widget/Container#property-hasChanges) property changes
621
615
  * @param {string} e Event name
622
616
  * @param {object} params Event parameters
623
- * @param {string} params.e Event name
624
- * @param {object} params.params Event parameters
625
- * @param {object} params.params.event Event object
626
- * @param {Core.widget.Container} params.params.event.source The container.
627
- * @param {boolean} params.params.event.dirty The dirty state of the Container - `true` if there are any fields which have been changed since initial load.
617
+ * @param {object} params.event Event object
618
+ * @param {Core.widget.Container} params.event.source The container.
619
+ * @param {boolean} params.event.dirty The dirty state of the Container - `true` if there are any fields which have been changed since initial load.
628
620
  */
629
621
  (e: 'dirtyStateChange', params: ((event: { source: Container, dirty: boolean }) => void)|string): void
630
622
  /**
631
623
  * Triggered when a widget's [element](https://bryntum.com/products/scheduler/docs/api/Core/widget/Widget#property-element) is available.
632
624
  * @param {string} e Event name
633
625
  * @param {object} params Event parameters
634
- * @param {string} params.e Event name
635
- * @param {object} params.params Event parameters
636
- * @param {object} params.params.event Event object
637
- * @param {HTMLElement} params.params.event.element The Widget's element.
626
+ * @param {object} params.event Event object
627
+ * @param {HTMLElement} params.event.element The Widget's element.
638
628
  */
639
629
  (e: 'elementCreated', params: ((event: { element: HTMLElement }) => void)|string): void
640
630
  /**
641
631
  * Fired when focus enters this Widget.
642
632
  * @param {string} e Event name
643
633
  * @param {object} params Event parameters
644
- * @param {string} params.e Event name
645
- * @param {object} params.params Event parameters
646
- * @param {object} params.params.event Event object
647
- * @param {Core.widget.Widget} params.params.event.source This Widget
648
- * @param {HTMLElement} params.params.event.fromElement The element which lost focus.
649
- * @param {HTMLElement} params.params.event.toElement The element which gained focus.
650
- * @param {Core.widget.Widget} params.params.event.fromWidget The widget which lost focus.
651
- * @param {Core.widget.Widget} params.params.event.toWidget The widget which gained focus.
652
- * @param {boolean} params.params.event.backwards `true` if the `toElement` is before the `fromElement` in document order.
634
+ * @param {object} params.event Event object
635
+ * @param {Core.widget.Widget} params.event.source This Widget
636
+ * @param {HTMLElement} params.event.fromElement The element which lost focus.
637
+ * @param {HTMLElement} params.event.toElement The element which gained focus.
638
+ * @param {Core.widget.Widget} params.event.fromWidget The widget which lost focus.
639
+ * @param {Core.widget.Widget} params.event.toWidget The widget which gained focus.
640
+ * @param {boolean} params.event.backwards `true` if the `toElement` is before the `fromElement` in document order.
653
641
  */
654
642
  (e: 'focusIn', params: ((event: { source: Widget, fromElement: HTMLElement, toElement: HTMLElement, fromWidget: Widget, toWidget: Widget, backwards: boolean }) => void)|string): void
655
643
  /**
@@ -658,25 +646,21 @@ const emit = defineEmits<{
658
646
  * will not trigger this event. This is when focus exits this widget completely.
659
647
  * @param {string} e Event name
660
648
  * @param {object} params Event parameters
661
- * @param {string} params.e Event name
662
- * @param {object} params.params Event parameters
663
- * @param {object} params.params.event Event object
664
- * @param {Core.widget.Widget} params.params.event.source This Widget
665
- * @param {HTMLElement} params.params.event.fromElement The element which lost focus.
666
- * @param {HTMLElement} params.params.event.toElement The element which gained focus.
667
- * @param {Core.widget.Widget} params.params.event.fromWidget The widget which lost focus.
668
- * @param {Core.widget.Widget} params.params.event.toWidget The widget which gained focus.
669
- * @param {boolean} params.params.event.backwards `true` if the `toElement` is before the `fromElement` in document order.
649
+ * @param {object} params.event Event object
650
+ * @param {Core.widget.Widget} params.event.source This Widget
651
+ * @param {HTMLElement} params.event.fromElement The element which lost focus.
652
+ * @param {HTMLElement} params.event.toElement The element which gained focus.
653
+ * @param {Core.widget.Widget} params.event.fromWidget The widget which lost focus.
654
+ * @param {Core.widget.Widget} params.event.toWidget The widget which gained focus.
655
+ * @param {boolean} params.event.backwards `true` if the `toElement` is before the `fromElement` in document order.
670
656
  */
671
657
  (e: 'focusOut', params: ((event: { source: Widget, fromElement: HTMLElement, toElement: HTMLElement, fromWidget: Widget, toWidget: Widget, backwards: boolean }) => void)|string): void
672
658
  /**
673
659
  * Triggered after a widget was hidden
674
660
  * @param {string} e Event name
675
661
  * @param {object} params Event parameters
676
- * @param {string} params.e Event name
677
- * @param {object} params.params Event parameters
678
- * @param {object} params.params.event Event object
679
- * @param {Core.widget.Widget} params.params.event.source The widget
662
+ * @param {object} params.event Event object
663
+ * @param {Core.widget.Widget} params.event.source The widget
680
664
  */
681
665
  (e: 'hide', params: ((event: { source: Widget }) => void)|string): void
682
666
  /**
@@ -685,21 +669,17 @@ const emit = defineEmits<{
685
669
  * [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/UndoRedo#event-paint)
686
670
  * @param {string} e Event name
687
671
  * @param {object} params Event parameters
688
- * @param {string} params.e Event name
689
- * @param {object} params.params Event parameters
690
- * @param {object} params.params.event Event object
691
- * @param {Core.widget.Widget} params.params.event.source The widget being painted.
692
- * @param {boolean} params.params.event.firstPaint `true` if this is the first paint.
672
+ * @param {object} params.event Event object
673
+ * @param {Core.widget.Widget} params.event.source The widget being painted.
674
+ * @param {boolean} params.event.firstPaint `true` if this is the first paint.
693
675
  */
694
676
  (e: 'paint', params: ((event: { source: Widget, firstPaint: boolean }) => void)|string): void
695
677
  /**
696
678
  * Fired when a Widget's read only state is toggled
697
679
  * @param {string} e Event name
698
680
  * @param {object} params Event parameters
699
- * @param {string} params.e Event name
700
- * @param {object} params.params Event parameters
701
- * @param {object} params.params.event Event object
702
- * @param {boolean} params.params.event.readOnly Read only or not
681
+ * @param {object} params.event Event object
682
+ * @param {boolean} params.event.readOnly Read only or not
703
683
  */
704
684
  (e: 'readOnly', params: ((event: { readOnly: boolean }) => void)|string): void
705
685
  /**
@@ -711,24 +691,20 @@ const emit = defineEmits<{
711
691
  * 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`*.
712
692
  * @param {string} e Event name
713
693
  * @param {object} params Event parameters
714
- * @param {string} params.e Event name
715
- * @param {object} params.params Event parameters
716
- * @param {object} params.params.event Event object
717
- * @param {Core.widget.Widget} params.params.event.source This Widget
718
- * @param {number} params.params.event.width The new width
719
- * @param {number} params.params.event.height The new height
720
- * @param {number} params.params.event.oldWidth The old width
721
- * @param {number} params.params.event.oldHeight The old height
694
+ * @param {object} params.event Event object
695
+ * @param {Core.widget.Widget} params.event.source This Widget
696
+ * @param {number} params.event.width The new width
697
+ * @param {number} params.event.height The new height
698
+ * @param {number} params.event.oldWidth The old width
699
+ * @param {number} params.event.oldHeight The old height
722
700
  */
723
701
  (e: 'resize', params: ((event: { source: Widget, width: number, height: number, oldWidth: number, oldHeight: number }) => void)|string): void
724
702
  /**
725
703
  * Triggered after a widget is shown.
726
704
  * @param {string} e Event name
727
705
  * @param {object} params Event parameters
728
- * @param {string} params.e Event name
729
- * @param {object} params.params Event parameters
730
- * @param {object} params.params.event Event object
731
- * @param {Core.widget.Widget} params.params.event.source The widget
706
+ * @param {object} params.event Event object
707
+ * @param {Core.widget.Widget} params.event.source The widget
732
708
  */
733
709
  (e: 'show', params: ((event: { source: Widget }) => void)|string): void
734
710
  }>();
@@ -28,6 +28,8 @@ export declare type BryntumUndoRedoProps = {
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/scheduler/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/scheduler/docs/api/Scheduler/widget/UndoRedo#config-appendTo)
31
33
  */
32
34
  appendTo ? : HTMLElement|string
33
35
  /**
@@ -230,10 +232,14 @@ export declare type BryntumUndoRedoProps = {
230
232
  inputFieldAlign ? : 'start'|'end'
231
233
  /**
232
234
  * 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.
235
+ * <div class="note">When creating nested trees of widgets, this should only be used on the outermost widget.
236
+ * [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/UndoRedo#config-insertBefore)
233
237
  */
234
238
  insertBefore ? : HTMLElement|string
235
239
  /**
236
240
  * 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.
241
+ * <div class="note">When creating nested trees of widgets, this should only be used on the outermost widget.
242
+ * [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/UndoRedo#config-insertFirst)
237
243
  */
238
244
  insertFirst ? : HTMLElement|string
239
245
  /**
@@ -376,7 +382,7 @@ export declare type BryntumUndoRedoProps = {
376
382
  * transaction to track.
377
383
  * [More...](https://bryntum.com/products/scheduler/docs/api/Scheduler/widget/UndoRedo#config-project)
378
384
  */
379
- project ? : ProjectModel|ProjectModelConfig|object
385
+ project ? : ProjectModel|ProjectModelConfig|object|null
380
386
  /**
381
387
  * Whether this widget is read-only. This is only valid if the widget is an input
382
388
  * field, <strong>or contains input fields at any depth</strong>.