@bryntum/grid-vue-3-thin 7.3.0 → 7.3.1

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 (35) hide show
  1. package/README.md +4 -4
  2. package/lib/chunks/Bc2x_WPR.js.map +1 -1
  3. package/lib/chunks/Be7ZZzGW.js.map +1 -1
  4. package/lib/chunks/BpNo5v3W.js.map +1 -1
  5. package/lib/chunks/{BeyOFZne.js → C87PnYXS.js} +11 -9
  6. package/lib/chunks/C87PnYXS.js.map +1 -0
  7. package/lib/chunks/{Ba35uKyP.js → C9RmZYoQ.js} +7 -5
  8. package/lib/chunks/C9RmZYoQ.js.map +1 -0
  9. package/lib/chunks/CAlh-Y8B.js.map +1 -1
  10. package/lib/chunks/CWYhi4DG.js.map +1 -1
  11. package/lib/chunks/CcfDAcJD.js.map +1 -1
  12. package/lib/chunks/{BGeNcVH6.js → DZ2V6NNc.js} +12 -10
  13. package/lib/chunks/DZ2V6NNc.js.map +1 -0
  14. package/lib/chunks/w2GDktIt.js.map +1 -1
  15. package/lib/components/BryntumAIFilterField.js +1 -1
  16. package/lib/components/BryntumChecklistFilterCombo.js +1 -1
  17. package/lib/components/BryntumTreeCombo.js +1 -1
  18. package/lib/index.js +3 -3
  19. package/package.json +1 -1
  20. package/src/components/BryntumAIFilterField.vue +80 -106
  21. package/src/components/BryntumAIFilterFieldProps.ts +9 -0
  22. package/src/components/BryntumChecklistFilterCombo.vue +81 -109
  23. package/src/components/BryntumChecklistFilterComboProps.ts +9 -0
  24. package/src/components/BryntumGrid.vue +523 -755
  25. package/src/components/BryntumGridBase.vue +523 -755
  26. package/src/components/BryntumGridChartDesigner.vue +43 -69
  27. package/src/components/BryntumGridFieldFilterPicker.vue +53 -85
  28. package/src/components/BryntumGridFieldFilterPickerGroup.vue +57 -91
  29. package/src/components/BryntumGroupBar.vue +65 -101
  30. package/src/components/BryntumTreeCombo.vue +81 -109
  31. package/src/components/BryntumTreeComboProps.ts +9 -0
  32. package/src/components/BryntumTreeGrid.vue +523 -755
  33. package/lib/chunks/BGeNcVH6.js.map +0 -1
  34. package/lib/chunks/Ba35uKyP.js.map +0 -1
  35. package/lib/chunks/BeyOFZne.js.map +0 -1
@@ -105,6 +105,15 @@ defineProps<{
105
105
  * Set to `true` to centre the Widget in browser viewport space.
106
106
  */
107
107
  centered ? : Boolean
108
+ /**
109
+ * A function (or the name of a function in the ownership hierarchy) called during field validation
110
+ * to perform custom validity checks. The function is called as part of the [isValid](https://bryntum.com/products/grid/docs/api/Core/widget/Field#property-isValid)
111
+ * evaluation, after the built-in [required](https://bryntum.com/products/grid/docs/api/Core/widget/Field#config-required) check.
112
+ * [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/ChecklistFilterCombo#config-checkValidity)
113
+ * @param {Core.widget.Field} field The field being validated
114
+ * @returns {void}
115
+ */
116
+ checkValidity ? : ((field: Field) => void)|string
108
117
  /**
109
118
  * A config object to configure the [ChipView](https://bryntum.com/products/grid/docs/api/Core/widget/ChipView) to display the
110
119
  * selected value set when [multiSelect](https://bryntum.com/products/grid/docs/api/Core/widget/Combo#config-multiSelect) is `true`.
@@ -802,44 +811,36 @@ const emit = defineEmits<{
802
811
  * The default action was performed (an item in the list was selected)
803
812
  * @param {string} e Event name
804
813
  * @param {object} params Event parameters
805
- * @param {string} params.e Event name
806
- * @param {object} params.params Event parameters
807
- * @param {object} params.params.event Event object
808
- * @param {Core.widget.Combo} params.params.event.source The combo
809
- * @param {any} params.params.event.value The [value](https://bryntum.com/products/grid/docs/api/Core/widget/Combo#config-valueField) of the selected record
810
- * @param {Core.data.Model} params.params.event.record Selected record
811
- * @param {Core.data.Model[]} params.params.event.records Selected records as an array if [multiSelect](https://bryntum.com/products/grid/docs/api/Core/widget/Combo#config-multiSelect) is `true`
812
- * @param {boolean} params.params.event.userAction `true` if the value change is due to user interaction
814
+ * @param {object} params.event Event object
815
+ * @param {Core.widget.Combo} params.event.source The combo
816
+ * @param {any} params.event.value The [value](https://bryntum.com/products/grid/docs/api/Core/widget/Combo#config-valueField) of the selected record
817
+ * @param {Core.data.Model} params.event.record Selected record
818
+ * @param {Core.data.Model[]} params.event.records Selected records as an array if [multiSelect](https://bryntum.com/products/grid/docs/api/Core/widget/Combo#config-multiSelect) is `true`
819
+ * @param {boolean} params.event.userAction `true` if the value change is due to user interaction
813
820
  */
814
821
  (e: 'action', params: ((event: { source: Combo, value: any, record: Model, records: Model[], userAction: boolean }) => void)|string): void
815
822
  /**
816
823
  * Fires before an object is destroyed.
817
824
  * @param {string} e Event name
818
825
  * @param {object} params Event parameters
819
- * @param {string} params.e Event name
820
- * @param {object} params.params Event parameters
821
- * @param {object} params.params.event Event object
822
- * @param {Core.Base} params.params.event.source The Object that is being destroyed.
826
+ * @param {object} params.event Event object
827
+ * @param {Core.Base} params.event.source The Object that is being destroyed.
823
828
  */
824
829
  (e: 'beforeDestroy', params: ((event: { source: Base }) => void)|string): void
825
830
  /**
826
831
  * Triggered before a widget is hidden. Return `false` to prevent the action.
827
832
  * @param {string} e Event name
828
833
  * @param {object} params Event parameters
829
- * @param {string} params.e Event name
830
- * @param {object} params.params Event parameters
831
- * @param {object} params.params.event Event object
832
- * @param {Core.widget.Widget} params.params.event.source The widget being hidden.
834
+ * @param {object} params.event Event object
835
+ * @param {Core.widget.Widget} params.event.source The widget being hidden.
833
836
  */
834
- (e: 'beforeHide', params: ((event: { source: Widget }) => Promise<boolean>|boolean|void)|string): Promise<boolean>|boolean|void
837
+ (e: 'beforeHide', params: ((event: { source: Widget }) => boolean|void)|string): boolean|void
835
838
  /**
836
839
  * Triggered before a widget is shown. Return `false` to prevent the action.
837
840
  * @param {string} e Event name
838
841
  * @param {object} params Event parameters
839
- * @param {string} params.e Event name
840
- * @param {object} params.params Event parameters
841
- * @param {object} params.params.event Event object
842
- * @param {Core.widget.Widget,any} params.params.event.source The widget being shown
842
+ * @param {object} params.event Event object
843
+ * @param {Core.widget.Widget,any} params.event.source The widget being shown
843
844
  */
844
845
  (e: 'beforeShow', params: ((event: { source: Widget|any }) => Promise<boolean>|boolean|void)|string): Promise<boolean>|boolean|void
845
846
  /**
@@ -847,27 +848,23 @@ const emit = defineEmits<{
847
848
  * [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/ChecklistFilterCombo#event-catchAll)
848
849
  * @param {string} e Event name
849
850
  * @param {object} params Event parameters
850
- * @param {string} params.e Event name
851
- * @param {object} params.params Event parameters
852
- * @param {object} params.params.event Event object
853
- * @param {{[key: string]: any, type: string}} params.params.event.event The Object that contains event details
854
- * @param {string} params.params.event.event.type The type of the event which is caught by the listener
851
+ * @param {object} params.event Event object
852
+ * @param {{[key: string]: any, type: string}} params.event.event The Object that contains event details
853
+ * @param {string} params.event.event.type The type of the event which is caught by the listener
855
854
  */
856
855
  (e: 'catchAll', params: ((event: {[key: string]: any, type: string}) => void)|string): void
857
856
  /**
858
857
  * Fired when this field's value changes.
859
858
  * @param {string} e Event name
860
859
  * @param {object} params Event parameters
861
- * @param {string} params.e Event name
862
- * @param {object} params.params Event parameters
863
- * @param {object} params.params.event Event object
864
- * @param {Core.widget.Field,any} params.params.event.source This Field
865
- * @param {string,number,boolean,any} params.params.event.value This field's value
866
- * @param {string,number,boolean,any} params.params.event.oldValue This field's previous value
867
- * @param {boolean} params.params.event.valid True if this field is in a valid state
868
- * @param {Event} params.params.event.event The triggering DOM event if any
869
- * @param {boolean} params.params.event.userAction Triggered by user taking an action (`true`) or by setting a value (`false`)
870
- * @param {boolean} params.params.event.checked
860
+ * @param {object} params.event Event object
861
+ * @param {Core.widget.Field,any} params.event.source This Field
862
+ * @param {string,number,boolean,any} params.event.value This field's value
863
+ * @param {string,number,boolean,any} params.event.oldValue This field's previous value
864
+ * @param {boolean} params.event.valid True if this field is in a valid state
865
+ * @param {Event} params.event.event The triggering DOM event if any
866
+ * @param {boolean} params.event.userAction Triggered by user taking an action (`true`) or by setting a value (`false`)
867
+ * @param {boolean} params.event.checked
871
868
  */
872
869
  (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
873
870
  /**
@@ -875,45 +872,37 @@ const emit = defineEmits<{
875
872
  * [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/ChecklistFilterCombo#event-clear)
876
873
  * @param {string} e Event name
877
874
  * @param {object} params Event parameters
878
- * @param {string} params.e Event name
879
- * @param {object} params.params Event parameters
880
- * @param {object} params.params.event Event object
881
- * @param {Core.widget.Field,any} params.params.event.source This Field
875
+ * @param {object} params.event Event object
876
+ * @param {Core.widget.Field,any} params.event.source This Field
882
877
  */
883
878
  (e: 'clear', params: ((event: { source: Field|any }) => void)|string): void
884
879
  /**
885
880
  * Fires when an object is destroyed.
886
881
  * @param {string} e Event name
887
882
  * @param {object} params Event parameters
888
- * @param {string} params.e Event name
889
- * @param {object} params.params Event parameters
890
- * @param {object} params.params.event Event object
891
- * @param {Core.Base} params.params.event.source The Object that is being destroyed.
883
+ * @param {object} params.event Event object
884
+ * @param {Core.Base} params.event.source The Object that is being destroyed.
892
885
  */
893
886
  (e: 'destroy', params: ((event: { source: Base }) => void)|string): void
894
887
  /**
895
888
  * Triggered when a widget's [element](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#property-element) is available.
896
889
  * @param {string} e Event name
897
890
  * @param {object} params Event parameters
898
- * @param {string} params.e Event name
899
- * @param {object} params.params Event parameters
900
- * @param {object} params.params.event Event object
901
- * @param {HTMLElement} params.params.event.element The Widget's element.
891
+ * @param {object} params.event Event object
892
+ * @param {HTMLElement} params.event.element The Widget's element.
902
893
  */
903
894
  (e: 'elementCreated', params: ((event: { element: HTMLElement }) => void)|string): void
904
895
  /**
905
896
  * Fired when focus enters this Widget.
906
897
  * @param {string} e Event name
907
898
  * @param {object} params Event parameters
908
- * @param {string} params.e Event name
909
- * @param {object} params.params Event parameters
910
- * @param {object} params.params.event Event object
911
- * @param {Core.widget.Widget} params.params.event.source This Widget
912
- * @param {HTMLElement} params.params.event.fromElement The element which lost focus.
913
- * @param {HTMLElement} params.params.event.toElement The element which gained focus.
914
- * @param {Core.widget.Widget} params.params.event.fromWidget The widget which lost focus.
915
- * @param {Core.widget.Widget} params.params.event.toWidget The widget which gained focus.
916
- * @param {boolean} params.params.event.backwards `true` if the `toElement` is before the `fromElement` in document order.
899
+ * @param {object} params.event Event object
900
+ * @param {Core.widget.Widget} params.event.source This Widget
901
+ * @param {HTMLElement} params.event.fromElement The element which lost focus.
902
+ * @param {HTMLElement} params.event.toElement The element which gained focus.
903
+ * @param {Core.widget.Widget} params.event.fromWidget The widget which lost focus.
904
+ * @param {Core.widget.Widget} params.event.toWidget The widget which gained focus.
905
+ * @param {boolean} params.event.backwards `true` if the `toElement` is before the `fromElement` in document order.
917
906
  */
918
907
  (e: 'focusIn', params: ((event: { source: Widget, fromElement: HTMLElement, toElement: HTMLElement, fromWidget: Widget, toWidget: Widget, backwards: boolean }) => void)|string): void
919
908
  /**
@@ -922,25 +911,21 @@ const emit = defineEmits<{
922
911
  * will not trigger this event. This is when focus exits this widget completely.
923
912
  * @param {string} e Event name
924
913
  * @param {object} params Event parameters
925
- * @param {string} params.e Event name
926
- * @param {object} params.params Event parameters
927
- * @param {object} params.params.event Event object
928
- * @param {Core.widget.Widget} params.params.event.source This Widget
929
- * @param {HTMLElement} params.params.event.fromElement The element which lost focus.
930
- * @param {HTMLElement} params.params.event.toElement The element which gained focus.
931
- * @param {Core.widget.Widget} params.params.event.fromWidget The widget which lost focus.
932
- * @param {Core.widget.Widget} params.params.event.toWidget The widget which gained focus.
933
- * @param {boolean} params.params.event.backwards `true` if the `toElement` is before the `fromElement` in document order.
914
+ * @param {object} params.event Event object
915
+ * @param {Core.widget.Widget} params.event.source This Widget
916
+ * @param {HTMLElement} params.event.fromElement The element which lost focus.
917
+ * @param {HTMLElement} params.event.toElement The element which gained focus.
918
+ * @param {Core.widget.Widget} params.event.fromWidget The widget which lost focus.
919
+ * @param {Core.widget.Widget} params.event.toWidget The widget which gained focus.
920
+ * @param {boolean} params.event.backwards `true` if the `toElement` is before the `fromElement` in document order.
934
921
  */
935
922
  (e: 'focusOut', params: ((event: { source: Widget, fromElement: HTMLElement, toElement: HTMLElement, fromWidget: Widget, toWidget: Widget, backwards: boolean }) => void)|string): void
936
923
  /**
937
924
  * Triggered after a widget was hidden
938
925
  * @param {string} e Event name
939
926
  * @param {object} params Event parameters
940
- * @param {string} params.e Event name
941
- * @param {object} params.params Event parameters
942
- * @param {object} params.params.event Event object
943
- * @param {Core.widget.Widget} params.params.event.source The widget
927
+ * @param {object} params.event Event object
928
+ * @param {Core.widget.Widget} params.event.source The widget
944
929
  */
945
930
  (e: 'hide', params: ((event: { source: Widget }) => void)|string): void
946
931
  /**
@@ -948,12 +933,10 @@ const emit = defineEmits<{
948
933
  * not the combos value
949
934
  * @param {string} e Event name
950
935
  * @param {object} params Event parameters
951
- * @param {string} params.e Event name
952
- * @param {object} params.params Event parameters
953
- * @param {object} params.params.event Event object
954
- * @param {Core.widget.Combo} params.params.event.source The combo.
955
- * @param {string} params.params.event.value Raw input value
956
- * @param {Event} params.params.event.event The triggering DOM event if any.
936
+ * @param {object} params.event Event object
937
+ * @param {Core.widget.Combo} params.event.source The combo.
938
+ * @param {string} params.event.value Raw input value
939
+ * @param {Event} params.event.event The triggering DOM event if any.
957
940
  */
958
941
  (e: 'input', params: ((event: { source: Combo, value: string, event: Event }) => void)|string): void
959
942
  /**
@@ -962,21 +945,17 @@ const emit = defineEmits<{
962
945
  * [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/ChecklistFilterCombo#event-paint)
963
946
  * @param {string} e Event name
964
947
  * @param {object} params Event parameters
965
- * @param {string} params.e Event name
966
- * @param {object} params.params Event parameters
967
- * @param {object} params.params.event Event object
968
- * @param {Core.widget.Widget} params.params.event.source The widget being painted.
969
- * @param {boolean} params.params.event.firstPaint `true` if this is the first paint.
948
+ * @param {object} params.event Event object
949
+ * @param {Core.widget.Widget} params.event.source The widget being painted.
950
+ * @param {boolean} params.event.firstPaint `true` if this is the first paint.
970
951
  */
971
952
  (e: 'paint', params: ((event: { source: Widget, firstPaint: boolean }) => void)|string): void
972
953
  /**
973
954
  * Fired when a Widget's read only state is toggled
974
955
  * @param {string} e Event name
975
956
  * @param {object} params Event parameters
976
- * @param {string} params.e Event name
977
- * @param {object} params.params Event parameters
978
- * @param {object} params.params.event Event object
979
- * @param {boolean} params.params.event.readOnly Read only or not
957
+ * @param {object} params.event Event object
958
+ * @param {boolean} params.event.readOnly Read only or not
980
959
  */
981
960
  (e: 'readOnly', params: ((event: { readOnly: boolean }) => void)|string): void
982
961
  /**
@@ -988,48 +967,40 @@ const emit = defineEmits<{
988
967
  * Fired when the encapsulating element of a Widget resizes *only when [monitorResize](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#config-monitorResize) is `true`*.
989
968
  * @param {string} e Event name
990
969
  * @param {object} params Event parameters
991
- * @param {string} params.e Event name
992
- * @param {object} params.params Event parameters
993
- * @param {object} params.params.event Event object
994
- * @param {Core.widget.Widget} params.params.event.source This Widget
995
- * @param {number} params.params.event.width The new width
996
- * @param {number} params.params.event.height The new height
997
- * @param {number} params.params.event.oldWidth The old width
998
- * @param {number} params.params.event.oldHeight The old height
970
+ * @param {object} params.event Event object
971
+ * @param {Core.widget.Widget} params.event.source This Widget
972
+ * @param {number} params.event.width The new width
973
+ * @param {number} params.event.height The new height
974
+ * @param {number} params.event.oldWidth The old width
975
+ * @param {number} params.event.oldHeight The old height
999
976
  */
1000
977
  (e: 'resize', params: ((event: { source: Widget, width: number, height: number, oldWidth: number, oldHeight: number }) => void)|string): void
1001
978
  /**
1002
979
  * An item in the list was selected
1003
980
  * @param {string} e Event name
1004
981
  * @param {object} params Event parameters
1005
- * @param {string} params.e Event name
1006
- * @param {object} params.params Event parameters
1007
- * @param {object} params.params.event Event object
1008
- * @param {Core.widget.Combo} params.params.event.source The combo
1009
- * @param {Core.data.Model} params.params.event.record Selected record
1010
- * @param {Core.data.Model[]} params.params.event.records Selected records as an array if [multiSelect](https://bryntum.com/products/grid/docs/api/Core/widget/Combo#config-multiSelect) is `true`
1011
- * @param {boolean} params.params.event.userAction `true` if the value change is due to user interaction
982
+ * @param {object} params.event Event object
983
+ * @param {Core.widget.Combo} params.event.source The combo
984
+ * @param {Core.data.Model} params.event.record Selected record
985
+ * @param {Core.data.Model[]} params.event.records Selected records as an array if [multiSelect](https://bryntum.com/products/grid/docs/api/Core/widget/Combo#config-multiSelect) is `true`
986
+ * @param {boolean} params.event.userAction `true` if the value change is due to user interaction
1012
987
  */
1013
988
  (e: 'select', params: ((event: { source: Combo, record: Model, records: Model[], userAction: boolean }) => void)|string): void
1014
989
  /**
1015
990
  * Triggered after a widget is shown.
1016
991
  * @param {string} e Event name
1017
992
  * @param {object} params Event parameters
1018
- * @param {string} params.e Event name
1019
- * @param {object} params.params Event parameters
1020
- * @param {object} params.params.event Event object
1021
- * @param {Core.widget.Widget} params.params.event.source The widget
993
+ * @param {object} params.event Event object
994
+ * @param {Core.widget.Widget} params.event.source The widget
1022
995
  */
1023
996
  (e: 'show', params: ((event: { source: Widget }) => void)|string): void
1024
997
  /**
1025
998
  * User clicked one of this field's [triggers](https://bryntum.com/products/grid/docs/api/Core/widget/Field#property-triggers)
1026
999
  * @param {string} e Event name
1027
1000
  * @param {object} params Event parameters
1028
- * @param {string} params.e Event name
1029
- * @param {object} params.params Event parameters
1030
- * @param {object} params.params.event Event object
1031
- * @param {Core.widget.Field,any} params.params.event.source This field
1032
- * @param {Core.widget.Widget} params.params.event.trigger The trigger activated by click or touch tap.
1001
+ * @param {object} params.event Event object
1002
+ * @param {Core.widget.Field,any} params.event.source This field
1003
+ * @param {Core.widget.Widget} params.event.trigger The trigger activated by click or touch tap.
1033
1004
  */
1034
1005
  (e: 'trigger', params: ((event: { source: Field|any, trigger: Widget }) => void)|string): void
1035
1006
  }>();
@@ -1051,6 +1022,7 @@ const widgetData = {
1051
1022
  'cacheLastResult',
1052
1023
  'caseSensitive',
1053
1024
  'centered',
1025
+ 'checkValidity',
1054
1026
  'chipView',
1055
1027
  'clearable',
1056
1028
  'clearTextOnPickerHide',
@@ -90,6 +90,15 @@ export declare type BryntumChecklistFilterComboProps = {
90
90
  * Set to `true` to centre the Widget in browser viewport space.
91
91
  */
92
92
  centered ? : Boolean
93
+ /**
94
+ * A function (or the name of a function in the ownership hierarchy) called during field validation
95
+ * to perform custom validity checks. The function is called as part of the [isValid](https://bryntum.com/products/grid/docs/api/Core/widget/Field#property-isValid)
96
+ * evaluation, after the built-in [required](https://bryntum.com/products/grid/docs/api/Core/widget/Field#config-required) check.
97
+ * [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/ChecklistFilterCombo#config-checkValidity)
98
+ * @param {Core.widget.Field} field The field being validated
99
+ * @returns {void}
100
+ */
101
+ checkValidity ? : ((field: Field) => void)|string
93
102
  /**
94
103
  * A config object to configure the [ChipView](https://bryntum.com/products/grid/docs/api/Core/widget/ChipView) to display the
95
104
  * selected value set when [multiSelect](https://bryntum.com/products/grid/docs/api/Core/widget/Combo#config-multiSelect) is `true`.