@bryntum/grid-angular-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 (30) hide show
  1. package/README.md +5 -5
  2. package/bundles/bryntum-grid-angular-thin.umd.js +15 -3
  3. package/bundles/bryntum-grid-angular-thin.umd.js.map +1 -1
  4. package/esm2015/lib/bryntum-a-i-filter-field.component.js +6 -2
  5. package/esm2015/lib/bryntum-checklist-filter-combo.component.js +6 -2
  6. package/esm2015/lib/bryntum-grid-base.component.js +1 -1
  7. package/esm2015/lib/bryntum-grid-chart-designer.component.js +1 -1
  8. package/esm2015/lib/bryntum-grid-field-filter-picker-group.component.js +1 -1
  9. package/esm2015/lib/bryntum-grid-field-filter-picker.component.js +1 -1
  10. package/esm2015/lib/bryntum-grid.component.js +1 -1
  11. package/esm2015/lib/bryntum-group-bar.component.js +1 -1
  12. package/esm2015/lib/bryntum-tree-combo.component.js +6 -2
  13. package/esm2015/lib/bryntum-tree-grid.component.js +1 -1
  14. package/fesm2015/bryntum-grid-angular-thin.js +15 -3
  15. package/fesm2015/bryntum-grid-angular-thin.js.map +1 -1
  16. package/lib/bryntum-a-i-filter-field.component.d.ts +11 -1
  17. package/lib/bryntum-checklist-filter-combo.component.d.ts +11 -1
  18. package/lib/bryntum-tree-combo.component.d.ts +11 -1
  19. package/package.json +1 -1
  20. package/src/lib/bryntum-a-i-filter-field.component.ts +13 -1
  21. package/src/lib/bryntum-checklist-filter-combo.component.ts +13 -1
  22. package/src/lib/bryntum-grid-base.component.ts +25 -25
  23. package/src/lib/bryntum-grid-chart-designer.component.ts +1 -1
  24. package/src/lib/bryntum-grid-field-filter-picker-group.component.ts +2 -2
  25. package/src/lib/bryntum-grid-field-filter-picker.component.ts +1 -1
  26. package/src/lib/bryntum-grid.component.ts +25 -25
  27. package/src/lib/bryntum-group-bar.component.ts +2 -2
  28. package/src/lib/bryntum-theme-combo.component.ts +0 -1
  29. package/src/lib/bryntum-tree-combo.component.ts +13 -1
  30. package/src/lib/bryntum-tree-grid.component.ts +25 -25
@@ -1624,7 +1624,7 @@ export class BryntumGridComponent implements OnInit, OnDestroy {
1624
1624
  * @param {Grid.view.Grid} event.source Owner grid
1625
1625
  * @param {Grid.util.GridLocation} event.editorContext Editing context
1626
1626
  */
1627
- @Output() onBeforeCancelCellEdit: any = new EventEmitter<((event: { source: Grid, editorContext: GridLocation }) => Promise<boolean>|boolean|void)|string>();
1627
+ @Output() onBeforeCancelCellEdit: any = new EventEmitter<((event: { source: Grid, editorContext: GridLocation }) => boolean|void)|string>();
1628
1628
  /**
1629
1629
  * Fires on the owning Grid before the row editing is canceled, return false to signal that the value is invalid and editing should not be finalized.
1630
1630
  * [More...](https://bryntum.com/products/grid/docs/api/Grid/view/Grid#event-beforeCancelRowEdit)
@@ -1639,7 +1639,7 @@ export class BryntumGridComponent implements OnInit, OnDestroy {
1639
1639
  * @param {Grid.view.Grid} event.source Owner grid
1640
1640
  * @param {CellEditorContext} event.editorContext Editing context
1641
1641
  */
1642
- @Output() onBeforeCellEditStart: any = new EventEmitter<((event: { source: Grid, editorContext: CellEditorContext }) => Promise<boolean>|boolean|void)|string>();
1642
+ @Output() onBeforeCellEditStart: any = new EventEmitter<((event: { source: Grid, editorContext: CellEditorContext }) => boolean|void)|string>();
1643
1643
  /**
1644
1644
  * Fires on the owning Grid before deleting a range of selected cell values by pressing <kbd>Backspace</kbd> or <kbd>Delete</kbd>
1645
1645
  * buttons while [autoEdit](https://bryntum.com/products/grid/docs/api/Grid/feature/CellEdit#config-autoEdit) is set to `true`. Return `false` to prevent editing.
@@ -1647,7 +1647,7 @@ export class BryntumGridComponent implements OnInit, OnDestroy {
1647
1647
  * @param {Grid.view.Grid} event.source Owner grid
1648
1648
  * @param {(Grid.util.GridLocation|Core.data.Model)[]} event.gridSelection An array of cell selectors or records that will have their values deleted (the records themselves will not get deleted, only visible column values).
1649
1649
  */
1650
- @Output() onBeforeCellRangeDelete: any = new EventEmitter<((event: { source: Grid, gridSelection: (GridLocation|Model)[] }) => Promise<boolean>|boolean|void)|string>();
1650
+ @Output() onBeforeCellRangeDelete: any = new EventEmitter<((event: { source: Grid, gridSelection: (GridLocation|Model)[] }) => boolean|void)|string>();
1651
1651
  /**
1652
1652
  * Fires for each selected record on the owning Grid before editing a range of selected cell values
1653
1653
  * @param {object} event Event object
@@ -1655,7 +1655,7 @@ export class BryntumGridComponent implements OnInit, OnDestroy {
1655
1655
  * @param {string} event.field The field being changed
1656
1656
  * @param {any} event.value The value being set
1657
1657
  */
1658
- @Output() onBeforeCellRangeEdit: any = new EventEmitter<((event: { record: Model, field: string, value: any }) => Promise<boolean>|boolean|void)|string>();
1658
+ @Output() onBeforeCellRangeEdit: any = new EventEmitter<((event: { record: Model, field: string, value: any }) => boolean|void)|string>();
1659
1659
  /**
1660
1660
  * This event is triggered before a parent column is collapsed or expanded.
1661
1661
  * @param {object} event Event object
@@ -1671,7 +1671,7 @@ export class BryntumGridComponent implements OnInit, OnDestroy {
1671
1671
  * @param {Grid.column.Column} event.column The dragged column.
1672
1672
  * @param {Event} event.event The browser event.
1673
1673
  */
1674
- @Output() onBeforeColumnDragStart: any = new EventEmitter<((event: { source: Grid, column: Column, event: Event }) => Promise<boolean>|boolean|void)|string>();
1674
+ @Output() onBeforeColumnDragStart: any = new EventEmitter<((event: { source: Grid, column: Column, event: Event }) => boolean|void)|string>();
1675
1675
  /**
1676
1676
  * This event is fired when a column is dropped, and you can return false from a listener to abort the operation.
1677
1677
  * @param {object} event Event object
@@ -1682,7 +1682,7 @@ export class BryntumGridComponent implements OnInit, OnDestroy {
1682
1682
  * @param {Event} event.event The browser event.
1683
1683
  * @param {string} event.region The region where the column was dropped.
1684
1684
  */
1685
- @Output() onBeforeColumnDropFinalize: any = new EventEmitter<((event: { source: Grid, column: Column, insertBefore: Column, newParent: Column, event: Event, region: string }) => Promise<boolean>|boolean|void)|string>();
1685
+ @Output() onBeforeColumnDropFinalize: any = new EventEmitter<((event: { source: Grid, column: Column, insertBefore: Column, newParent: Column, event: Event, region: string }) => boolean|void)|string>();
1686
1686
  /**
1687
1687
  * This event is fired prior to starting a column resize gesture. The resize is canceled if a listener returns
1688
1688
  * `false`.
@@ -1691,7 +1691,7 @@ export class BryntumGridComponent implements OnInit, OnDestroy {
1691
1691
  * @param {Grid.column.Column} event.column The column
1692
1692
  * @param {Event} event.domEvent The browser event
1693
1693
  */
1694
- @Output() onBeforeColumnResize: any = new EventEmitter<((event: { source: Grid, column: Column, domEvent: Event }) => Promise<boolean>|boolean|void)|string>();
1694
+ @Output() onBeforeColumnResize: any = new EventEmitter<((event: { source: Grid, column: Column, domEvent: Event }) => boolean|void)|string>();
1695
1695
  /**
1696
1696
  * Fires on the owning Grid before a copy action is performed, return `false` to prevent the action
1697
1697
  * @param {object} event Event object
@@ -1711,7 +1711,7 @@ export class BryntumGridComponent implements OnInit, OnDestroy {
1711
1711
  * @param {string} event.lineDelimiter The CSV delimiter to separate lines
1712
1712
  * @param {string} event.columnDelimiter The CSV delimiter to separate values on one line
1713
1713
  */
1714
- @Output() onBeforeCSVExport: any = new EventEmitter<((event: { config: ExportConfig, columns: Column[], rows: Model[], lineDelimiter: string, columnDelimiter: string }) => Promise<boolean>|boolean|void)|string>();
1714
+ @Output() onBeforeCSVExport: any = new EventEmitter<((event: { config: ExportConfig, columns: Column[], rows: Model[], lineDelimiter: string, columnDelimiter: string }) => boolean|void)|string>();
1715
1715
  /**
1716
1716
  * Fires before an object is destroyed.
1717
1717
  * @param {object} event Event object
@@ -1725,14 +1725,14 @@ export class BryntumGridComponent implements OnInit, OnDestroy {
1725
1725
  * @param {XLSColumn[]} event.columns An array of columns to export
1726
1726
  * @param {any[][]} event.rows An array of records to export
1727
1727
  */
1728
- @Output() onBeforeExcelExport: any = new EventEmitter<((event: { config: ExportConfig, columns: XLSColumn[], rows: any[] }) => Promise<boolean>|boolean|void)|string>();
1728
+ @Output() onBeforeExcelExport: any = new EventEmitter<((event: { config: ExportConfig, columns: XLSColumn[], rows: any[] }) => boolean|void)|string>();
1729
1729
  /**
1730
1730
  * Fired before dragging of the FillHandle starts, return `false` to prevent the drag operation.
1731
1731
  * @param {object} event Event object
1732
1732
  * @param {Grid.util.GridLocation} event.cell Information about the column / record
1733
1733
  * @param {MouseEvent} event.domEvent The raw DOM event
1734
1734
  */
1735
- @Output() onBeforeFillHandleDragStart: any = new EventEmitter<((event: { cell: GridLocation, domEvent: MouseEvent }) => Promise<boolean>|boolean|void)|string>();
1735
+ @Output() onBeforeFillHandleDragStart: any = new EventEmitter<((event: { cell: GridLocation, domEvent: MouseEvent }) => boolean|void)|string>();
1736
1736
  /**
1737
1737
  * Fires on the owning Grid before the cell editing is finished, return false to signal that the value is invalid and editing should not be finalized.
1738
1738
  * @param {object} event Event object
@@ -1753,7 +1753,7 @@ export class BryntumGridComponent implements OnInit, OnDestroy {
1753
1753
  * @param {object} event Event object
1754
1754
  * @param {Core.widget.Widget} event.source The widget being hidden.
1755
1755
  */
1756
- @Output() onBeforeHide: any = new EventEmitter<((event: { source: Widget }) => Promise<boolean>|boolean|void)|string>();
1756
+ @Output() onBeforeHide: any = new EventEmitter<((event: { source: Widget }) => boolean|void)|string>();
1757
1757
  /**
1758
1758
  * Fires on the owning Grid before a paste action is performed, return `false` to prevent the action
1759
1759
  * @param {object} event Event object
@@ -1769,7 +1769,7 @@ export class BryntumGridComponent implements OnInit, OnDestroy {
1769
1769
  * @param {object} event Event object
1770
1770
  * @param {PdfExportConfig} event.config Export config
1771
1771
  */
1772
- @Output() onBeforePdfExport: any = new EventEmitter<((event: { config: PdfExportConfig }) => Promise<boolean>|boolean|void)|string>();
1772
+ @Output() onBeforePdfExport: any = new EventEmitter<((event: { config: PdfExportConfig }) => boolean|void)|string>();
1773
1773
  /**
1774
1774
  * Fires before a row is rendered.
1775
1775
  * @param {object} event Event object
@@ -1812,7 +1812,7 @@ export class BryntumGridComponent implements OnInit, OnDestroy {
1812
1812
  * @param {Grid.util.GridLocation[]} event.selectedCells The cells to be selected in this operation.
1813
1813
  * @param {Grid.util.GridLocation[]} event.cellSelection The cells in the current selection, before applying `selectedCells` and `deselectedCells`
1814
1814
  */
1815
- @Output() onBeforeSelectionChange: any = new EventEmitter<((event: { action: string, mode: 'row'|'cell', source: Grid, deselected: Model[], selected: Model[], selection: Model[], deselectedCells: GridLocation[], selectedCells: GridLocation[], cellSelection: GridLocation[] }) => Promise<boolean>|boolean|void)|string>();
1815
+ @Output() onBeforeSelectionChange: any = new EventEmitter<((event: { action: string, mode: 'row'|'cell', source: Grid, deselected: Model[], selected: Model[], selection: Model[], deselectedCells: GridLocation[], selectedCells: GridLocation[], cellSelection: GridLocation[] }) => boolean|void)|string>();
1816
1816
  /**
1817
1817
  * Fired before this container will load record values into its child fields. This is useful if you
1818
1818
  * want to modify the UI before data is loaded (e.g. set some input field to be readonly)
@@ -1833,19 +1833,19 @@ export class BryntumGridComponent implements OnInit, OnDestroy {
1833
1833
  * @param {Grid.view.Grid} event.source Owner grid
1834
1834
  * @param {RowEditorContext} event.editorContext Editing context
1835
1835
  */
1836
- @Output() onBeforeStartRowEdit: any = new EventEmitter<((event: { source: Grid, editorContext: RowEditorContext }) => Promise<boolean>|boolean|void)|string>();
1836
+ @Output() onBeforeStartRowEdit: any = new EventEmitter<((event: { source: Grid, editorContext: RowEditorContext }) => boolean|void)|string>();
1837
1837
  /**
1838
1838
  * Fired before state is applied to the source. Allows editing the state object or preventing the operation.
1839
1839
  * @param {object} event Event object
1840
1840
  * @param {GridStateInfo} event.state State object config
1841
1841
  */
1842
- @Output() onBeforeStateApply: any = new EventEmitter<((event: { state: GridStateInfo }) => Promise<boolean>|boolean|void)|string>();
1842
+ @Output() onBeforeStateApply: any = new EventEmitter<((event: { state: GridStateInfo }) => boolean|void)|string>();
1843
1843
  /**
1844
1844
  * Fired before state is saved by the StateProvider. Allows editing the state object or preventing the operation.
1845
1845
  * @param {object} event Event object
1846
1846
  * @param {GridStateInfo} event.state State object config
1847
1847
  */
1848
- @Output() onBeforeStateSave: any = new EventEmitter<((event: { state: GridStateInfo }) => Promise<boolean>|boolean|void)|string>();
1848
+ @Output() onBeforeStateSave: any = new EventEmitter<((event: { state: GridStateInfo }) => boolean|void)|string>();
1849
1849
  /**
1850
1850
  * Fired when a group is going to be expanded or collapsed using the UI.
1851
1851
  * Returning `false` from a listener prevents the operation
@@ -1855,7 +1855,7 @@ export class BryntumGridComponent implements OnInit, OnDestroy {
1855
1855
  * @param {boolean} event.collapse Collapsed (true) or expanded (false)
1856
1856
  * @param {Event} event.domEvent The user interaction event (eg a `click` event) if the toggle request was instigated by user interaction.
1857
1857
  */
1858
- @Output() onBeforeToggleGroup: any = new EventEmitter<((event: { groupRecord: Model, groupRecords: Model[], collapse: boolean, domEvent: Event }) => Promise<boolean>|boolean|void)|string>();
1858
+ @Output() onBeforeToggleGroup: any = new EventEmitter<((event: { groupRecord: Model, groupRecords: Model[], collapse: boolean, domEvent: Event }) => boolean|void)|string>();
1859
1859
  /**
1860
1860
  * Fired before a parent node record toggles its collapsed state.
1861
1861
  * @param {object} event Event object
@@ -1924,7 +1924,7 @@ export class BryntumGridComponent implements OnInit, OnDestroy {
1924
1924
  * @param {Grid.column.Column} event.column Column
1925
1925
  * @param {Core.data.Model} event.record Record
1926
1926
  */
1927
- @Output() onCellMenuBeforeShow: any = new EventEmitter<((event: { source: Grid, menu: Menu, items: Record<string, MenuItemEntry>, column: Column, record: Model }) => Promise<boolean>|boolean|void)|string>();
1927
+ @Output() onCellMenuBeforeShow: any = new EventEmitter<((event: { source: Grid, menu: Menu, items: Record<string, MenuItemEntry>, column: Column, record: Model }) => boolean|void)|string>();
1928
1928
  /**
1929
1929
  * This event fires on the owning grid when an item is selected in the cell context menu.
1930
1930
  * @param {object} event Event object
@@ -2051,7 +2051,7 @@ export class BryntumGridComponent implements OnInit, OnDestroy {
2051
2051
  * @param {Event} event.event The browser event.
2052
2052
  * @param {string} event.region The region where the column was dropped.
2053
2053
  */
2054
- @Output() onColumnDrop: any = new EventEmitter<((event: { source: Grid, column: Column, insertBefore: Column, newParent: Column, valid: boolean, event: Event, region: string }) => Promise<boolean>|boolean|void)|string>();
2054
+ @Output() onColumnDrop: any = new EventEmitter<((event: { source: Grid, column: Column, insertBefore: Column, newParent: Column, valid: boolean, event: Event, region: string }) => boolean|void)|string>();
2055
2055
  /**
2056
2056
  * This event is fired after a resize gesture is completed.
2057
2057
  * @param {object} event Event object
@@ -2191,7 +2191,7 @@ export class BryntumGridComponent implements OnInit, OnDestroy {
2191
2191
  * @param {Grid.util.GridLocation} event.cell Information about the column / record
2192
2192
  * @param {MouseEvent} event.domEvent The raw DOM event
2193
2193
  */
2194
- @Output() onFillHandleDragStart: any = new EventEmitter<((event: { cell: GridLocation, domEvent: MouseEvent }) => Promise<boolean>|boolean|void)|string>();
2194
+ @Output() onFillHandleDragStart: any = new EventEmitter<((event: { cell: GridLocation, domEvent: MouseEvent }) => boolean|void)|string>();
2195
2195
  /**
2196
2196
  * Fires on the owning Grid when cell editing is finished
2197
2197
  * @param {object} event Event object
@@ -2239,7 +2239,7 @@ export class BryntumGridComponent implements OnInit, OnDestroy {
2239
2239
  * @param {Core.data.Model[]} event.context.records The dragged row records
2240
2240
  * @param {MouseEvent,TouchEvent} event.event
2241
2241
  */
2242
- @Output() onGridRowBeforeDragStart: any = new EventEmitter<((event: { source: GridBase, context: { records: Model[] }, event: MouseEvent|TouchEvent }) => Promise<boolean>|boolean|void)|string>();
2242
+ @Output() onGridRowBeforeDragStart: any = new EventEmitter<((event: { source: GridBase, context: { records: Model[] }, event: MouseEvent|TouchEvent }) => boolean|void)|string>();
2243
2243
  /**
2244
2244
  * Fired before the row drop operation is finalized. You can return false to abort the drop operation, or a
2245
2245
  * Promise yielding `true` / `false` which allows for asynchronous abort (e.g. first show user a confirmation dialog).
@@ -2306,7 +2306,7 @@ export class BryntumGridComponent implements OnInit, OnDestroy {
2306
2306
  * @param {Event} event.domEvent The triggering DOM event.
2307
2307
  * @param {Grid.column.Column} event.column The column clicked on.
2308
2308
  */
2309
- @Output() onHeaderClick: any = new EventEmitter<((event: { domEvent: Event, column: Column }) => Promise<boolean>|boolean|void)|string>();
2309
+ @Output() onHeaderClick: any = new EventEmitter<((event: { domEvent: Event, column: Column }) => boolean|void)|string>();
2310
2310
  /**
2311
2311
  * This event fires on the owning Grid before the context menu is shown for a header.
2312
2312
  * Allows manipulation of the items to show in the same way as in the [processItems](https://bryntum.com/products/grid/docs/api/Grid/feature/HeaderMenu#config-processItems).
@@ -2317,7 +2317,7 @@ export class BryntumGridComponent implements OnInit, OnDestroy {
2317
2317
  * @param {Record<string, MenuItemEntry>} event.items Menu item configs
2318
2318
  * @param {Grid.column.Column} event.column Column
2319
2319
  */
2320
- @Output() onHeaderMenuBeforeShow: any = new EventEmitter<((event: { source: Grid, menu: Menu, items: Record<string, MenuItemEntry>, column: Column }) => Promise<boolean>|boolean|void)|string>();
2320
+ @Output() onHeaderMenuBeforeShow: any = new EventEmitter<((event: { source: Grid, menu: Menu, items: Record<string, MenuItemEntry>, column: Column }) => boolean|void)|string>();
2321
2321
  /**
2322
2322
  * This event fires on the owning Grid when an item is selected in the header context menu.
2323
2323
  * @param {object} event Event object
@@ -2528,7 +2528,7 @@ export class BryntumGridComponent implements OnInit, OnDestroy {
2528
2528
  * @param {Grid.view.SubGrid} event.subGrid The subgrid
2529
2529
  * @param {Event} event.domEvent The native DOM event
2530
2530
  */
2531
- @Output() onSplitterCollapseClick: any = new EventEmitter<((event: { source: Grid, subGrid: SubGrid, domEvent: Event }) => Promise<boolean>|boolean|void)|string>();
2531
+ @Output() onSplitterCollapseClick: any = new EventEmitter<((event: { source: Grid, subGrid: SubGrid, domEvent: Event }) => boolean|void)|string>();
2532
2532
  /**
2533
2533
  * Fired by the Grid after a sub-grid has been resized using the splitter
2534
2534
  * @param {object} event Event object
@@ -2553,7 +2553,7 @@ export class BryntumGridComponent implements OnInit, OnDestroy {
2553
2553
  * @param {Grid.view.SubGrid} event.subGrid The subgrid
2554
2554
  * @param {Event} event.domEvent The native DOM event
2555
2555
  */
2556
- @Output() onSplitterExpandClick: any = new EventEmitter<((event: { source: Grid, subGrid: SubGrid, domEvent: Event }) => Promise<boolean>|boolean|void)|string>();
2556
+ @Output() onSplitterExpandClick: any = new EventEmitter<((event: { source: Grid, subGrid: SubGrid, domEvent: Event }) => boolean|void)|string>();
2557
2557
  /**
2558
2558
  * Fires on the owning Grid when editing starts
2559
2559
  * @param {object} event Event object
@@ -924,7 +924,7 @@ export class BryntumGroupBarComponent implements OnInit, OnDestroy {
924
924
  * @param {object} event Event object
925
925
  * @param {Core.widget.Widget} event.source The widget being hidden.
926
926
  */
927
- @Output() onBeforeHide: any = new EventEmitter<((event: { source: Widget }) => Promise<boolean>|boolean|void)|string>();
927
+ @Output() onBeforeHide: any = new EventEmitter<((event: { source: Widget }) => boolean|void)|string>();
928
928
  /**
929
929
  * User going to activate an item in the list either by pointer or keyboard.
930
930
  * The active record, list item index, and the triggering event are passed.
@@ -936,7 +936,7 @@ export class BryntumGroupBarComponent implements OnInit, OnDestroy {
936
936
  * @param {number} event.index List item index
937
937
  * @param {Event} event.event Triggering event
938
938
  */
939
- @Output() onBeforeItem: any = new EventEmitter<((event: { source: List, item: HTMLElement, record: Model, index: number, event: Event }) => Promise<boolean>|boolean|void)|string>();
939
+ @Output() onBeforeItem: any = new EventEmitter<((event: { source: List, item: HTMLElement, record: Model, index: number, event: Event }) => boolean|void)|string>();
940
940
  /**
941
941
  * Triggered before a widget is shown. Return `false` to prevent the action.
942
942
  * @param {object} event Event object
@@ -89,7 +89,6 @@ export class BryntumThemeComboComponent implements OnInit, OnChanges, OnDestroy
89
89
  this.combo.value = theme;
90
90
  }
91
91
 
92
- console.log(`Set: .b-theme-${this.combo.value as string}`);
93
92
  // Always set the initial body class — even when theme detection falls back to the
94
93
  // combo's default value (CSS vars may be unreadable in shadow DOM contexts)
95
94
  document.body.classList.add(`b-theme-${this.combo.value as string}`);
@@ -102,6 +102,15 @@ export type BryntumTreeComboProps = {
102
102
  * Set to `true` to centre the Widget in browser viewport space.
103
103
  */
104
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/grid/docs/api/Core/widget/Field#property-isValid)
108
+ * evaluation, after the built-in [required](https://bryntum.com/products/grid/docs/api/Core/widget/Field#config-required) check.
109
+ * [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-checkValidity)
110
+ * @param {Core.widget.Field} field The field being validated
111
+ * @returns {void}
112
+ */
113
+ checkValidity ? : ((field: Field) => void)|string
105
114
  /**
106
115
  * A config object to configure the [ChipView](https://bryntum.com/products/grid/docs/api/Core/widget/ChipView) to display the
107
116
  * selected value set when [multiSelect](https://bryntum.com/products/grid/docs/api/Core/widget/Combo#config-multiSelect) is `true`.
@@ -840,6 +849,7 @@ export class BryntumTreeComboComponent implements OnInit, OnDestroy {
840
849
  'caseSensitive',
841
850
  'catchEventHandlerExceptions',
842
851
  'centered',
852
+ 'checkValidity',
843
853
  'chipView',
844
854
  'clearable',
845
855
  'clearTextOnPickerHide',
@@ -980,6 +990,7 @@ export class BryntumTreeComboComponent implements OnInit, OnDestroy {
980
990
  'cacheLastResult',
981
991
  'caseSensitive',
982
992
  'centered',
993
+ 'checkValidity',
983
994
  'chipView',
984
995
  'clearable',
985
996
  'clearTextOnPickerHide',
@@ -1150,6 +1161,7 @@ export class BryntumTreeComboComponent implements OnInit, OnDestroy {
1150
1161
  @Input() cacheLastResult ! : number|string|Duration|DurationConfig;
1151
1162
  @Input() caseSensitive ! : boolean;
1152
1163
  @Input() centered ! : boolean;
1164
+ @Input() checkValidity ! : ((field: Field) => void)|string;
1153
1165
  @Input() chipView ! : ChipViewConfig;
1154
1166
  @Input() clearable ! : boolean|FieldTriggerConfig;
1155
1167
  @Input() clearTextOnPickerHide ! : boolean;
@@ -1313,7 +1325,7 @@ export class BryntumTreeComboComponent implements OnInit, OnDestroy {
1313
1325
  * @param {object} event Event object
1314
1326
  * @param {Core.widget.Widget} event.source The widget being hidden.
1315
1327
  */
1316
- @Output() onBeforeHide: any = new EventEmitter<((event: { source: Widget }) => Promise<boolean>|boolean|void)|string>();
1328
+ @Output() onBeforeHide: any = new EventEmitter<((event: { source: Widget }) => boolean|void)|string>();
1317
1329
  /**
1318
1330
  * Triggered before a widget is shown. Return `false` to prevent the action.
1319
1331
  * @param {object} event Event object
@@ -1624,7 +1624,7 @@ export class BryntumTreeGridComponent implements OnInit, OnDestroy {
1624
1624
  * @param {Grid.view.Grid} event.source Owner grid
1625
1625
  * @param {Grid.util.GridLocation} event.editorContext Editing context
1626
1626
  */
1627
- @Output() onBeforeCancelCellEdit: any = new EventEmitter<((event: { source: Grid, editorContext: GridLocation }) => Promise<boolean>|boolean|void)|string>();
1627
+ @Output() onBeforeCancelCellEdit: any = new EventEmitter<((event: { source: Grid, editorContext: GridLocation }) => boolean|void)|string>();
1628
1628
  /**
1629
1629
  * Fires on the owning Grid before the row editing is canceled, return false to signal that the value is invalid and editing should not be finalized.
1630
1630
  * [More...](https://bryntum.com/products/grid/docs/api/Grid/view/TreeGrid#event-beforeCancelRowEdit)
@@ -1639,7 +1639,7 @@ export class BryntumTreeGridComponent implements OnInit, OnDestroy {
1639
1639
  * @param {Grid.view.Grid} event.source Owner grid
1640
1640
  * @param {CellEditorContext} event.editorContext Editing context
1641
1641
  */
1642
- @Output() onBeforeCellEditStart: any = new EventEmitter<((event: { source: Grid, editorContext: CellEditorContext }) => Promise<boolean>|boolean|void)|string>();
1642
+ @Output() onBeforeCellEditStart: any = new EventEmitter<((event: { source: Grid, editorContext: CellEditorContext }) => boolean|void)|string>();
1643
1643
  /**
1644
1644
  * Fires on the owning Grid before deleting a range of selected cell values by pressing <kbd>Backspace</kbd> or <kbd>Delete</kbd>
1645
1645
  * buttons while [autoEdit](https://bryntum.com/products/grid/docs/api/Grid/feature/CellEdit#config-autoEdit) is set to `true`. Return `false` to prevent editing.
@@ -1647,7 +1647,7 @@ export class BryntumTreeGridComponent implements OnInit, OnDestroy {
1647
1647
  * @param {Grid.view.Grid} event.source Owner grid
1648
1648
  * @param {(Grid.util.GridLocation|Core.data.Model)[]} event.gridSelection An array of cell selectors or records that will have their values deleted (the records themselves will not get deleted, only visible column values).
1649
1649
  */
1650
- @Output() onBeforeCellRangeDelete: any = new EventEmitter<((event: { source: Grid, gridSelection: (GridLocation|Model)[] }) => Promise<boolean>|boolean|void)|string>();
1650
+ @Output() onBeforeCellRangeDelete: any = new EventEmitter<((event: { source: Grid, gridSelection: (GridLocation|Model)[] }) => boolean|void)|string>();
1651
1651
  /**
1652
1652
  * Fires for each selected record on the owning Grid before editing a range of selected cell values
1653
1653
  * @param {object} event Event object
@@ -1655,7 +1655,7 @@ export class BryntumTreeGridComponent implements OnInit, OnDestroy {
1655
1655
  * @param {string} event.field The field being changed
1656
1656
  * @param {any} event.value The value being set
1657
1657
  */
1658
- @Output() onBeforeCellRangeEdit: any = new EventEmitter<((event: { record: Model, field: string, value: any }) => Promise<boolean>|boolean|void)|string>();
1658
+ @Output() onBeforeCellRangeEdit: any = new EventEmitter<((event: { record: Model, field: string, value: any }) => boolean|void)|string>();
1659
1659
  /**
1660
1660
  * This event is triggered before a parent column is collapsed or expanded.
1661
1661
  * @param {object} event Event object
@@ -1671,7 +1671,7 @@ export class BryntumTreeGridComponent implements OnInit, OnDestroy {
1671
1671
  * @param {Grid.column.Column} event.column The dragged column.
1672
1672
  * @param {Event} event.event The browser event.
1673
1673
  */
1674
- @Output() onBeforeColumnDragStart: any = new EventEmitter<((event: { source: Grid, column: Column, event: Event }) => Promise<boolean>|boolean|void)|string>();
1674
+ @Output() onBeforeColumnDragStart: any = new EventEmitter<((event: { source: Grid, column: Column, event: Event }) => boolean|void)|string>();
1675
1675
  /**
1676
1676
  * This event is fired when a column is dropped, and you can return false from a listener to abort the operation.
1677
1677
  * @param {object} event Event object
@@ -1682,7 +1682,7 @@ export class BryntumTreeGridComponent implements OnInit, OnDestroy {
1682
1682
  * @param {Event} event.event The browser event.
1683
1683
  * @param {string} event.region The region where the column was dropped.
1684
1684
  */
1685
- @Output() onBeforeColumnDropFinalize: any = new EventEmitter<((event: { source: Grid, column: Column, insertBefore: Column, newParent: Column, event: Event, region: string }) => Promise<boolean>|boolean|void)|string>();
1685
+ @Output() onBeforeColumnDropFinalize: any = new EventEmitter<((event: { source: Grid, column: Column, insertBefore: Column, newParent: Column, event: Event, region: string }) => boolean|void)|string>();
1686
1686
  /**
1687
1687
  * This event is fired prior to starting a column resize gesture. The resize is canceled if a listener returns
1688
1688
  * `false`.
@@ -1691,7 +1691,7 @@ export class BryntumTreeGridComponent implements OnInit, OnDestroy {
1691
1691
  * @param {Grid.column.Column} event.column The column
1692
1692
  * @param {Event} event.domEvent The browser event
1693
1693
  */
1694
- @Output() onBeforeColumnResize: any = new EventEmitter<((event: { source: Grid, column: Column, domEvent: Event }) => Promise<boolean>|boolean|void)|string>();
1694
+ @Output() onBeforeColumnResize: any = new EventEmitter<((event: { source: Grid, column: Column, domEvent: Event }) => boolean|void)|string>();
1695
1695
  /**
1696
1696
  * Fires on the owning Grid before a copy action is performed, return `false` to prevent the action
1697
1697
  * @param {object} event Event object
@@ -1711,7 +1711,7 @@ export class BryntumTreeGridComponent implements OnInit, OnDestroy {
1711
1711
  * @param {string} event.lineDelimiter The CSV delimiter to separate lines
1712
1712
  * @param {string} event.columnDelimiter The CSV delimiter to separate values on one line
1713
1713
  */
1714
- @Output() onBeforeCSVExport: any = new EventEmitter<((event: { config: ExportConfig, columns: Column[], rows: Model[], lineDelimiter: string, columnDelimiter: string }) => Promise<boolean>|boolean|void)|string>();
1714
+ @Output() onBeforeCSVExport: any = new EventEmitter<((event: { config: ExportConfig, columns: Column[], rows: Model[], lineDelimiter: string, columnDelimiter: string }) => boolean|void)|string>();
1715
1715
  /**
1716
1716
  * Fires before an object is destroyed.
1717
1717
  * @param {object} event Event object
@@ -1725,14 +1725,14 @@ export class BryntumTreeGridComponent implements OnInit, OnDestroy {
1725
1725
  * @param {XLSColumn[]} event.columns An array of columns to export
1726
1726
  * @param {any[][]} event.rows An array of records to export
1727
1727
  */
1728
- @Output() onBeforeExcelExport: any = new EventEmitter<((event: { config: ExportConfig, columns: XLSColumn[], rows: any[] }) => Promise<boolean>|boolean|void)|string>();
1728
+ @Output() onBeforeExcelExport: any = new EventEmitter<((event: { config: ExportConfig, columns: XLSColumn[], rows: any[] }) => boolean|void)|string>();
1729
1729
  /**
1730
1730
  * Fired before dragging of the FillHandle starts, return `false` to prevent the drag operation.
1731
1731
  * @param {object} event Event object
1732
1732
  * @param {Grid.util.GridLocation} event.cell Information about the column / record
1733
1733
  * @param {MouseEvent} event.domEvent The raw DOM event
1734
1734
  */
1735
- @Output() onBeforeFillHandleDragStart: any = new EventEmitter<((event: { cell: GridLocation, domEvent: MouseEvent }) => Promise<boolean>|boolean|void)|string>();
1735
+ @Output() onBeforeFillHandleDragStart: any = new EventEmitter<((event: { cell: GridLocation, domEvent: MouseEvent }) => boolean|void)|string>();
1736
1736
  /**
1737
1737
  * Fires on the owning Grid before the cell editing is finished, return false to signal that the value is invalid and editing should not be finalized.
1738
1738
  * @param {object} event Event object
@@ -1753,7 +1753,7 @@ export class BryntumTreeGridComponent implements OnInit, OnDestroy {
1753
1753
  * @param {object} event Event object
1754
1754
  * @param {Core.widget.Widget} event.source The widget being hidden.
1755
1755
  */
1756
- @Output() onBeforeHide: any = new EventEmitter<((event: { source: Widget }) => Promise<boolean>|boolean|void)|string>();
1756
+ @Output() onBeforeHide: any = new EventEmitter<((event: { source: Widget }) => boolean|void)|string>();
1757
1757
  /**
1758
1758
  * Fires on the owning Grid before a paste action is performed, return `false` to prevent the action
1759
1759
  * @param {object} event Event object
@@ -1769,7 +1769,7 @@ export class BryntumTreeGridComponent implements OnInit, OnDestroy {
1769
1769
  * @param {object} event Event object
1770
1770
  * @param {PdfExportConfig} event.config Export config
1771
1771
  */
1772
- @Output() onBeforePdfExport: any = new EventEmitter<((event: { config: PdfExportConfig }) => Promise<boolean>|boolean|void)|string>();
1772
+ @Output() onBeforePdfExport: any = new EventEmitter<((event: { config: PdfExportConfig }) => boolean|void)|string>();
1773
1773
  /**
1774
1774
  * Fires before a row is rendered.
1775
1775
  * @param {object} event Event object
@@ -1812,7 +1812,7 @@ export class BryntumTreeGridComponent implements OnInit, OnDestroy {
1812
1812
  * @param {Grid.util.GridLocation[]} event.selectedCells The cells to be selected in this operation.
1813
1813
  * @param {Grid.util.GridLocation[]} event.cellSelection The cells in the current selection, before applying `selectedCells` and `deselectedCells`
1814
1814
  */
1815
- @Output() onBeforeSelectionChange: any = new EventEmitter<((event: { action: string, mode: 'row'|'cell', source: Grid, deselected: Model[], selected: Model[], selection: Model[], deselectedCells: GridLocation[], selectedCells: GridLocation[], cellSelection: GridLocation[] }) => Promise<boolean>|boolean|void)|string>();
1815
+ @Output() onBeforeSelectionChange: any = new EventEmitter<((event: { action: string, mode: 'row'|'cell', source: Grid, deselected: Model[], selected: Model[], selection: Model[], deselectedCells: GridLocation[], selectedCells: GridLocation[], cellSelection: GridLocation[] }) => boolean|void)|string>();
1816
1816
  /**
1817
1817
  * Fired before this container will load record values into its child fields. This is useful if you
1818
1818
  * want to modify the UI before data is loaded (e.g. set some input field to be readonly)
@@ -1833,19 +1833,19 @@ export class BryntumTreeGridComponent implements OnInit, OnDestroy {
1833
1833
  * @param {Grid.view.Grid} event.source Owner grid
1834
1834
  * @param {RowEditorContext} event.editorContext Editing context
1835
1835
  */
1836
- @Output() onBeforeStartRowEdit: any = new EventEmitter<((event: { source: Grid, editorContext: RowEditorContext }) => Promise<boolean>|boolean|void)|string>();
1836
+ @Output() onBeforeStartRowEdit: any = new EventEmitter<((event: { source: Grid, editorContext: RowEditorContext }) => boolean|void)|string>();
1837
1837
  /**
1838
1838
  * Fired before state is applied to the source. Allows editing the state object or preventing the operation.
1839
1839
  * @param {object} event Event object
1840
1840
  * @param {GridStateInfo} event.state State object config
1841
1841
  */
1842
- @Output() onBeforeStateApply: any = new EventEmitter<((event: { state: GridStateInfo }) => Promise<boolean>|boolean|void)|string>();
1842
+ @Output() onBeforeStateApply: any = new EventEmitter<((event: { state: GridStateInfo }) => boolean|void)|string>();
1843
1843
  /**
1844
1844
  * Fired before state is saved by the StateProvider. Allows editing the state object or preventing the operation.
1845
1845
  * @param {object} event Event object
1846
1846
  * @param {GridStateInfo} event.state State object config
1847
1847
  */
1848
- @Output() onBeforeStateSave: any = new EventEmitter<((event: { state: GridStateInfo }) => Promise<boolean>|boolean|void)|string>();
1848
+ @Output() onBeforeStateSave: any = new EventEmitter<((event: { state: GridStateInfo }) => boolean|void)|string>();
1849
1849
  /**
1850
1850
  * Fired when a group is going to be expanded or collapsed using the UI.
1851
1851
  * Returning `false` from a listener prevents the operation
@@ -1855,7 +1855,7 @@ export class BryntumTreeGridComponent implements OnInit, OnDestroy {
1855
1855
  * @param {boolean} event.collapse Collapsed (true) or expanded (false)
1856
1856
  * @param {Event} event.domEvent The user interaction event (eg a `click` event) if the toggle request was instigated by user interaction.
1857
1857
  */
1858
- @Output() onBeforeToggleGroup: any = new EventEmitter<((event: { groupRecord: Model, groupRecords: Model[], collapse: boolean, domEvent: Event }) => Promise<boolean>|boolean|void)|string>();
1858
+ @Output() onBeforeToggleGroup: any = new EventEmitter<((event: { groupRecord: Model, groupRecords: Model[], collapse: boolean, domEvent: Event }) => boolean|void)|string>();
1859
1859
  /**
1860
1860
  * Fired before a parent node record toggles its collapsed state.
1861
1861
  * @param {object} event Event object
@@ -1924,7 +1924,7 @@ export class BryntumTreeGridComponent implements OnInit, OnDestroy {
1924
1924
  * @param {Grid.column.Column} event.column Column
1925
1925
  * @param {Core.data.Model} event.record Record
1926
1926
  */
1927
- @Output() onCellMenuBeforeShow: any = new EventEmitter<((event: { source: Grid, menu: Menu, items: Record<string, MenuItemEntry>, column: Column, record: Model }) => Promise<boolean>|boolean|void)|string>();
1927
+ @Output() onCellMenuBeforeShow: any = new EventEmitter<((event: { source: Grid, menu: Menu, items: Record<string, MenuItemEntry>, column: Column, record: Model }) => boolean|void)|string>();
1928
1928
  /**
1929
1929
  * This event fires on the owning grid when an item is selected in the cell context menu.
1930
1930
  * @param {object} event Event object
@@ -2051,7 +2051,7 @@ export class BryntumTreeGridComponent implements OnInit, OnDestroy {
2051
2051
  * @param {Event} event.event The browser event.
2052
2052
  * @param {string} event.region The region where the column was dropped.
2053
2053
  */
2054
- @Output() onColumnDrop: any = new EventEmitter<((event: { source: Grid, column: Column, insertBefore: Column, newParent: Column, valid: boolean, event: Event, region: string }) => Promise<boolean>|boolean|void)|string>();
2054
+ @Output() onColumnDrop: any = new EventEmitter<((event: { source: Grid, column: Column, insertBefore: Column, newParent: Column, valid: boolean, event: Event, region: string }) => boolean|void)|string>();
2055
2055
  /**
2056
2056
  * This event is fired after a resize gesture is completed.
2057
2057
  * @param {object} event Event object
@@ -2191,7 +2191,7 @@ export class BryntumTreeGridComponent implements OnInit, OnDestroy {
2191
2191
  * @param {Grid.util.GridLocation} event.cell Information about the column / record
2192
2192
  * @param {MouseEvent} event.domEvent The raw DOM event
2193
2193
  */
2194
- @Output() onFillHandleDragStart: any = new EventEmitter<((event: { cell: GridLocation, domEvent: MouseEvent }) => Promise<boolean>|boolean|void)|string>();
2194
+ @Output() onFillHandleDragStart: any = new EventEmitter<((event: { cell: GridLocation, domEvent: MouseEvent }) => boolean|void)|string>();
2195
2195
  /**
2196
2196
  * Fires on the owning Grid when cell editing is finished
2197
2197
  * @param {object} event Event object
@@ -2239,7 +2239,7 @@ export class BryntumTreeGridComponent implements OnInit, OnDestroy {
2239
2239
  * @param {Core.data.Model[]} event.context.records The dragged row records
2240
2240
  * @param {MouseEvent,TouchEvent} event.event
2241
2241
  */
2242
- @Output() onGridRowBeforeDragStart: any = new EventEmitter<((event: { source: GridBase, context: { records: Model[] }, event: MouseEvent|TouchEvent }) => Promise<boolean>|boolean|void)|string>();
2242
+ @Output() onGridRowBeforeDragStart: any = new EventEmitter<((event: { source: GridBase, context: { records: Model[] }, event: MouseEvent|TouchEvent }) => boolean|void)|string>();
2243
2243
  /**
2244
2244
  * Fired before the row drop operation is finalized. You can return false to abort the drop operation, or a
2245
2245
  * Promise yielding `true` / `false` which allows for asynchronous abort (e.g. first show user a confirmation dialog).
@@ -2306,7 +2306,7 @@ export class BryntumTreeGridComponent implements OnInit, OnDestroy {
2306
2306
  * @param {Event} event.domEvent The triggering DOM event.
2307
2307
  * @param {Grid.column.Column} event.column The column clicked on.
2308
2308
  */
2309
- @Output() onHeaderClick: any = new EventEmitter<((event: { domEvent: Event, column: Column }) => Promise<boolean>|boolean|void)|string>();
2309
+ @Output() onHeaderClick: any = new EventEmitter<((event: { domEvent: Event, column: Column }) => boolean|void)|string>();
2310
2310
  /**
2311
2311
  * This event fires on the owning Grid before the context menu is shown for a header.
2312
2312
  * Allows manipulation of the items to show in the same way as in the [processItems](https://bryntum.com/products/grid/docs/api/Grid/feature/HeaderMenu#config-processItems).
@@ -2317,7 +2317,7 @@ export class BryntumTreeGridComponent implements OnInit, OnDestroy {
2317
2317
  * @param {Record<string, MenuItemEntry>} event.items Menu item configs
2318
2318
  * @param {Grid.column.Column} event.column Column
2319
2319
  */
2320
- @Output() onHeaderMenuBeforeShow: any = new EventEmitter<((event: { source: Grid, menu: Menu, items: Record<string, MenuItemEntry>, column: Column }) => Promise<boolean>|boolean|void)|string>();
2320
+ @Output() onHeaderMenuBeforeShow: any = new EventEmitter<((event: { source: Grid, menu: Menu, items: Record<string, MenuItemEntry>, column: Column }) => boolean|void)|string>();
2321
2321
  /**
2322
2322
  * This event fires on the owning Grid when an item is selected in the header context menu.
2323
2323
  * @param {object} event Event object
@@ -2528,7 +2528,7 @@ export class BryntumTreeGridComponent implements OnInit, OnDestroy {
2528
2528
  * @param {Grid.view.SubGrid} event.subGrid The subgrid
2529
2529
  * @param {Event} event.domEvent The native DOM event
2530
2530
  */
2531
- @Output() onSplitterCollapseClick: any = new EventEmitter<((event: { source: Grid, subGrid: SubGrid, domEvent: Event }) => Promise<boolean>|boolean|void)|string>();
2531
+ @Output() onSplitterCollapseClick: any = new EventEmitter<((event: { source: Grid, subGrid: SubGrid, domEvent: Event }) => boolean|void)|string>();
2532
2532
  /**
2533
2533
  * Fired by the Grid after a sub-grid has been resized using the splitter
2534
2534
  * @param {object} event Event object
@@ -2553,7 +2553,7 @@ export class BryntumTreeGridComponent implements OnInit, OnDestroy {
2553
2553
  * @param {Grid.view.SubGrid} event.subGrid The subgrid
2554
2554
  * @param {Event} event.domEvent The native DOM event
2555
2555
  */
2556
- @Output() onSplitterExpandClick: any = new EventEmitter<((event: { source: Grid, subGrid: SubGrid, domEvent: Event }) => Promise<boolean>|boolean|void)|string>();
2556
+ @Output() onSplitterExpandClick: any = new EventEmitter<((event: { source: Grid, subGrid: SubGrid, domEvent: Event }) => boolean|void)|string>();
2557
2557
  /**
2558
2558
  * Fires on the owning Grid when editing starts
2559
2559
  * @param {object} event Event object