@bryntum/grid-react-thin 7.1.2 → 7.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -10
- package/lib/BryntumAIFilterField.d.ts +2 -2
- package/lib/BryntumChecklistFilterCombo.d.ts +2 -2
- package/lib/BryntumGrid.d.ts +23 -11
- package/lib/BryntumGrid.js +4 -0
- package/lib/BryntumGrid.js.map +1 -1
- package/lib/BryntumGridBase.d.ts +23 -11
- package/lib/BryntumGridBase.js +4 -0
- package/lib/BryntumGridBase.js.map +1 -1
- package/lib/BryntumGridChartDesigner.d.ts +2 -2
- package/lib/BryntumGridFieldFilterPicker.d.ts +3 -2
- package/lib/BryntumGridFieldFilterPicker.js +1 -0
- package/lib/BryntumGridFieldFilterPicker.js.map +1 -1
- package/lib/BryntumGridFieldFilterPickerGroup.d.ts +3 -2
- package/lib/BryntumGridFieldFilterPickerGroup.js +1 -0
- package/lib/BryntumGridFieldFilterPickerGroup.js.map +1 -1
- package/lib/BryntumGroupBar.d.ts +2 -2
- package/lib/BryntumGroupBar.js +2 -2
- package/lib/BryntumGroupBar.js.map +1 -1
- package/lib/BryntumTreeCombo.d.ts +2 -2
- package/lib/BryntumTreeGrid.d.ts +23 -11
- package/lib/BryntumTreeGrid.js +4 -0
- package/lib/BryntumTreeGrid.js.map +1 -1
- package/lib/WrapperHelper.js +46 -1
- package/lib/WrapperHelper.js.map +1 -1
- package/package.json +1 -1
- package/src/BryntumAIFilterField.tsx +2 -2
- package/src/BryntumChecklistFilterCombo.tsx +2 -2
- package/src/BryntumGrid.tsx +58 -25
- package/src/BryntumGridBase.tsx +58 -25
- package/src/BryntumGridChartDesigner.tsx +2 -2
- package/src/BryntumGridFieldFilterPicker.tsx +7 -2
- package/src/BryntumGridFieldFilterPickerGroup.tsx +7 -2
- package/src/BryntumGroupBar.tsx +4 -4
- package/src/BryntumTreeCombo.tsx +2 -2
- package/src/BryntumTreeGrid.tsx +58 -25
- package/src/WrapperHelper.tsx +162 -35
package/src/BryntumGridBase.tsx
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
*/
|
|
4
4
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
5
5
|
import React, { RefObject } from 'react';
|
|
6
|
-
import { AjaxStore, AjaxStoreConfig, Base, Container, DomConfig, FormulaProviderConfig, KeyMapConfig, Mask, MaskConfig, Menu, MenuItem, MenuItemEntry, Model, ModelConfig, PagingToolbarConfig, Panel, PanelCollapserConfig, PanelCollapserOverlayConfig, PanelHeader, ScrollManager, ScrollManagerConfig, Scroller, ScrollerConfig, StateProvider, Store, StoreConfig, TabConfig, Tool, ToolConfig, ToolbarConfig, ToolbarItems, TooltipConfig, Widget } from '@bryntum/core-thin';
|
|
7
|
-
import { AIFilter, AIFilterConfig, CellCopyPaste, CellCopyPasteConfig, CellEdit, CellEditConfig, CellEditorContext, CellMenu, CellMenuConfig, CellTooltip, CellTooltipConfig, Charts, ChartsConfig, Column, ColumnAutoWidth, ColumnAutoWidthConfig, ColumnDragToolbar, ColumnDragToolbarConfig, ColumnPicker, ColumnPickerConfig, ColumnRename, ColumnRenameConfig, ColumnReorder, ColumnReorderConfig, ColumnResize, ColumnResizeConfig, ColumnStore, ColumnStoreConfig, GridContainerItemConfig, EmptyTextDomConfig, ExcelExporter, ExcelExporterConfig, ExportConfig, FileDrop, FileDropConfig, FillHandle, FillHandleConfig, Filter, FilterBar, FilterBarConfig, FilterConfig, Grid, GridBase, GridBaseListeners, GridColumnConfig, GridLocation, GridLocationConfig, GridSelectionMode, GridStateInfo, Group, GroupConfig, GroupSummary, GroupSummaryConfig, HeaderMenu, HeaderMenuConfig, LockRows, LockRowsConfig, MergeCells, MergeCellsConfig, PdfExport, PdfExportConfig, PinColumns, PinColumnsConfig, PreserveScrollOptions, Print, PrintConfig, QuickFind, QuickFindConfig, RecordPositionContext, RegionResize, RegionResizeConfig, ResponsiveLevelConfig, Row, RowCopyPaste, RowCopyPasteConfig, RowEdit, RowEditConfig, RowEditorContext, RowExpander, RowExpanderConfig, RowReorder, RowReorderConfig, RowResize, RowResizeConfig, Search, SearchConfig, Sort, SortConfig, Split, SplitConfig, StickyCells, StickyCellsConfig, Stripe, StripeConfig, SubGrid, SubGridConfig, Summary, SummaryConfig, Tree, TreeConfig, TreeGroup, TreeGroupConfig, XLSColumn } from '@bryntum/grid-thin';
|
|
6
|
+
import { AjaxStore, AjaxStoreConfig, Base, Color, Container, DomConfig, FormulaProviderConfig, KeyMapConfig, Mask, MaskConfig, Menu, MenuItem, MenuItemEntry, Model, ModelConfig, PagingToolbarConfig, Panel, PanelCollapserConfig, PanelCollapserOverlayConfig, PanelHeader, ScrollManager, ScrollManagerConfig, Scroller, ScrollerConfig, StateProvider, Store, StoreConfig, TabConfig, Tool, ToolConfig, ToolbarConfig, ToolbarItems, TooltipConfig, Widget } from '@bryntum/core-thin';
|
|
7
|
+
import { AI, AIConfig, AIFilter, AIFilterConfig, CellCopyPaste, CellCopyPasteConfig, CellEdit, CellEditConfig, CellEditorContext, CellMenu, CellMenuConfig, CellTooltip, CellTooltipConfig, Charts, ChartsConfig, Column, ColumnAutoWidth, ColumnAutoWidthConfig, ColumnDragToolbar, ColumnDragToolbarConfig, ColumnPicker, ColumnPickerConfig, ColumnRename, ColumnRenameConfig, ColumnReorder, ColumnReorderConfig, ColumnResize, ColumnResizeConfig, ColumnStore, ColumnStoreConfig, GridContainerItemConfig, EmptyTextDomConfig, ExcelExporter, ExcelExporterConfig, ExportConfig, FileDrop, FileDropConfig, FillHandle, FillHandleConfig, Filter, FilterBar, FilterBarConfig, FilterConfig, Grid, GridBase, GridBaseListeners, GridColumnConfig, GridLocation, GridLocationConfig, GridSelectionMode, GridStateInfo, Group, GroupConfig, GroupSummary, GroupSummaryConfig, HeaderMenu, HeaderMenuConfig, LockRows, LockRowsConfig, MergeCells, MergeCellsConfig, PdfExport, PdfExportConfig, PinColumns, PinColumnsConfig, PreserveScrollOptions, Print, PrintConfig, QuickFind, QuickFindConfig, RecordPositionContext, RegionResize, RegionResizeConfig, ResponsiveLevelConfig, Row, RowCopyPaste, RowCopyPasteConfig, RowEdit, RowEditConfig, RowEditorContext, RowExpander, RowExpanderConfig, RowReorder, RowReorderConfig, RowResize, RowResizeConfig, Search, SearchConfig, Sort, SortConfig, Split, SplitConfig, StickyCells, StickyCellsConfig, Stripe, StripeConfig, SubGrid, SubGridConfig, Summary, SummaryConfig, Tree, TreeConfig, TreeGroup, TreeGroupConfig, XLSColumn } from '@bryntum/grid-thin';
|
|
8
8
|
|
|
9
9
|
import { createWidget, shouldComponentUpdate, processWidgetContent } from './WrapperHelper.js';
|
|
10
10
|
|
|
@@ -79,6 +79,10 @@ export type BryntumGridBaseProps = {
|
|
|
79
79
|
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/GridBase#config-bodyCls)
|
|
80
80
|
*/
|
|
81
81
|
bodyCls? : string|object
|
|
82
|
+
/**
|
|
83
|
+
* Set `true` to add a border to this container's element.
|
|
84
|
+
*/
|
|
85
|
+
border? : boolean
|
|
82
86
|
/**
|
|
83
87
|
* An object where property names with a truthy value indicate which events should bubble up the ownership
|
|
84
88
|
* hierarchy when triggered.
|
|
@@ -130,7 +134,7 @@ export type BryntumGridBaseProps = {
|
|
|
130
134
|
* ...
|
|
131
135
|
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/GridBase#config-color)
|
|
132
136
|
*/
|
|
133
|
-
color? :
|
|
137
|
+
color? : Color
|
|
134
138
|
/**
|
|
135
139
|
* Programmatic control over which column to start in when used in a grid layout.
|
|
136
140
|
*/
|
|
@@ -790,6 +794,14 @@ export type BryntumGridBaseProps = {
|
|
|
790
794
|
* @param {any} event.value The value being set
|
|
791
795
|
*/
|
|
792
796
|
onBeforeCellRangeEdit? : ((event: { record: Model, field: string, value: any }) => Promise<boolean>|boolean|void)|string
|
|
797
|
+
/**
|
|
798
|
+
* This event is triggered before a parent column is collapsed or expanded.
|
|
799
|
+
* @param {object} event Event object
|
|
800
|
+
* @param {Grid.view.GridBase} event.source The grid instance
|
|
801
|
+
* @param {Grid.column.Column} event.column The column
|
|
802
|
+
* @param {boolean} event.collapsed `true` if the column is being collapsed, `false` if expanded
|
|
803
|
+
*/
|
|
804
|
+
onBeforeColumnCollapseToggle? : ((event: { source: GridBase, column: Column, collapsed: boolean }) => void)|string
|
|
793
805
|
/**
|
|
794
806
|
* This event is fired prior to starting a column drag gesture. The drag is canceled if a listener returns `false`.
|
|
795
807
|
* @param {object} event Event object
|
|
@@ -900,18 +912,18 @@ export type BryntumGridBaseProps = {
|
|
|
900
912
|
/**
|
|
901
913
|
* Fires before a row is rendered.
|
|
902
914
|
* @param {object} event Event object
|
|
903
|
-
* @param {Grid.view.
|
|
904
|
-
* @param {Grid.row.Row} event.row The row about to be rendered
|
|
905
|
-
* @param {Core.data.Model} event.record The record for the row
|
|
906
|
-
* @param {number} event.recordIndex The zero-based index of the record
|
|
915
|
+
* @param {Grid.view.GridBase} event.source The firing Grid instance
|
|
916
|
+
* @param {Grid.row.Row} event.row The row about to be rendered
|
|
917
|
+
* @param {Core.data.Model} event.record The record for the row
|
|
918
|
+
* @param {number} event.recordIndex The zero-based index of the record
|
|
907
919
|
*/
|
|
908
|
-
onBeforeRenderRow? : ((event: { source:
|
|
920
|
+
onBeforeRenderRow? : ((event: { source: GridBase, row: Row, record: Model, recordIndex: number }) => void)|string
|
|
909
921
|
/**
|
|
910
922
|
* Grid rows are about to be rendered
|
|
911
923
|
* @param {object} event Event object
|
|
912
|
-
* @param {Grid.view.
|
|
924
|
+
* @param {Grid.view.GridBase} event.source This grid.
|
|
913
925
|
*/
|
|
914
|
-
onBeforeRenderRows? : ((event: { source:
|
|
926
|
+
onBeforeRenderRows? : ((event: { source: GridBase }) => void)|string
|
|
915
927
|
/**
|
|
916
928
|
* This event fires before row collapse is started.
|
|
917
929
|
* ...
|
|
@@ -1142,6 +1154,14 @@ export type BryntumGridBaseProps = {
|
|
|
1142
1154
|
* @param {Core.data.Model} event.record The record which has been collapsed.
|
|
1143
1155
|
*/
|
|
1144
1156
|
onCollapseNode? : ((event: { source: Grid, record: Model }) => void)|string
|
|
1157
|
+
/**
|
|
1158
|
+
* This event is triggered after a parent column has been collapsed or expanded.
|
|
1159
|
+
* @param {object} event Event object
|
|
1160
|
+
* @param {Grid.view.GridBase} event.source The Grid instance
|
|
1161
|
+
* @param {Grid.column.Column} event.column The column being toggled
|
|
1162
|
+
* @param {boolean} event.collapsed `true` if the column is now collapsed, `false` if expanded
|
|
1163
|
+
*/
|
|
1164
|
+
onColumnCollapseToggle? : ((event: { source: GridBase, column: Column, collapsed: boolean }) => void)|string
|
|
1145
1165
|
/**
|
|
1146
1166
|
* This event is fired when a column is being dragged, and you can set the `valid` flag on the `context` object
|
|
1147
1167
|
* to indicate whether the drop position is valid or not.
|
|
@@ -1223,14 +1243,14 @@ export type BryntumGridBaseProps = {
|
|
|
1223
1243
|
* ...
|
|
1224
1244
|
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/GridBase#event-dataChange)
|
|
1225
1245
|
* @param {object} event Event object
|
|
1226
|
-
* @param {Grid.view.
|
|
1246
|
+
* @param {Grid.view.GridBase} event.source Owning grid
|
|
1227
1247
|
* @param {Core.data.Store} event.store The originating store
|
|
1228
1248
|
* @param {'remove','removeAll','add','clearchanges','filter','update','dataset','replace'} event.action Name of action which triggered the change. May be one of: * `'remove'` * `'removeAll'` * `'add'` * `'clearchanges'` * `'filter'` * `'update'` * `'dataset'` * `'replace'`
|
|
1229
1249
|
* @param {Core.data.Model} event.record Changed record, for actions that affects exactly one record (`'update'`)
|
|
1230
1250
|
* @param {Core.data.Model[]} event.records Changed records, passed for all actions except `'removeAll'`
|
|
1231
1251
|
* @param {object} event.changes Passed for the `'update'` action, info on which record fields changed
|
|
1232
1252
|
*/
|
|
1233
|
-
onDataChange? : ((event: { source:
|
|
1253
|
+
onDataChange? : ((event: { source: GridBase, store: Store, action: 'remove'|'removeAll'|'add'|'clearchanges'|'filter'|'update'|'dataset'|'replace', record: Model, records: Model[], changes: object }) => void)|string
|
|
1234
1254
|
/**
|
|
1235
1255
|
* Fires when an object is destroyed.
|
|
1236
1256
|
* @param {object} event Event object
|
|
@@ -1538,18 +1558,18 @@ export type BryntumGridBaseProps = {
|
|
|
1538
1558
|
/**
|
|
1539
1559
|
* Fires after a row is rendered.
|
|
1540
1560
|
* @param {object} event Event object
|
|
1541
|
-
* @param {Grid.view.
|
|
1542
|
-
* @param {Grid.row.Row} event.row The row that has been rendered
|
|
1543
|
-
* @param {Core.data.Model} event.record The record for the row
|
|
1544
|
-
* @param {number} event.recordIndex The zero-based index of the record
|
|
1561
|
+
* @param {Grid.view.GridBase} event.source The firing Grid instance
|
|
1562
|
+
* @param {Grid.row.Row} event.row The row that has been rendered
|
|
1563
|
+
* @param {Core.data.Model} event.record The record for the row
|
|
1564
|
+
* @param {number} event.recordIndex The zero-based index of the record
|
|
1545
1565
|
*/
|
|
1546
|
-
onRenderRow? : ((event: { source:
|
|
1566
|
+
onRenderRow? : ((event: { source: GridBase, row: Row, record: Model, recordIndex: number }) => void)|string
|
|
1547
1567
|
/**
|
|
1548
1568
|
* Grid rows have been rendered
|
|
1549
1569
|
* @param {object} event Event object
|
|
1550
|
-
* @param {Grid.view.
|
|
1570
|
+
* @param {Grid.view.GridBase} event.source This grid.
|
|
1551
1571
|
*/
|
|
1552
|
-
onRenderRows? : ((event: { source:
|
|
1572
|
+
onRenderRows? : ((event: { source: GridBase }) => void)|string
|
|
1553
1573
|
/**
|
|
1554
1574
|
* 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`*.
|
|
1555
1575
|
* @param {object} event Event object
|
|
@@ -1609,10 +1629,10 @@ export type BryntumGridBaseProps = {
|
|
|
1609
1629
|
/**
|
|
1610
1630
|
* Grid has scrolled vertically
|
|
1611
1631
|
* @param {object} event Event object
|
|
1612
|
-
* @param {Grid.view.
|
|
1632
|
+
* @param {Grid.view.GridBase} event.source The firing Grid instance.
|
|
1613
1633
|
* @param {number} event.scrollTop The vertical scroll position.
|
|
1614
1634
|
*/
|
|
1615
|
-
onScroll? : ((event: { source:
|
|
1635
|
+
onScroll? : ((event: { source: GridBase, scrollTop: number }) => void)|string
|
|
1616
1636
|
/**
|
|
1617
1637
|
* The selection has been changed.
|
|
1618
1638
|
* @param {object} event Event object
|
|
@@ -1700,17 +1720,17 @@ export type BryntumGridBaseProps = {
|
|
|
1700
1720
|
/**
|
|
1701
1721
|
* Fires after a sub grid is collapsed.
|
|
1702
1722
|
* @param {object} event Event object
|
|
1703
|
-
* @param {Grid.view.
|
|
1723
|
+
* @param {Grid.view.GridBase} event.source The firing Grid instance
|
|
1704
1724
|
* @param {Grid.view.SubGrid} event.subGrid The sub grid instance
|
|
1705
1725
|
*/
|
|
1706
|
-
onSubGridCollapse? : ((event: { source:
|
|
1726
|
+
onSubGridCollapse? : ((event: { source: GridBase, subGrid: SubGrid }) => void)|string
|
|
1707
1727
|
/**
|
|
1708
1728
|
* Fires after a sub grid is expanded.
|
|
1709
1729
|
* @param {object} event Event object
|
|
1710
|
-
* @param {Grid.view.
|
|
1730
|
+
* @param {Grid.view.GridBase} event.source The firing Grid instance
|
|
1711
1731
|
* @param {Grid.view.SubGrid} event.subGrid The sub grid instance
|
|
1712
1732
|
*/
|
|
1713
|
-
onSubGridExpand? : ((event: { source:
|
|
1733
|
+
onSubGridExpand? : ((event: { source: GridBase, subGrid: SubGrid }) => void)|string
|
|
1714
1734
|
/**
|
|
1715
1735
|
* Fired when one or more groups are expanded or collapsed
|
|
1716
1736
|
* @param {object} event Event object
|
|
@@ -1746,6 +1766,15 @@ export type BryntumGridBaseProps = {
|
|
|
1746
1766
|
onUnsplit? : (() => void)|string
|
|
1747
1767
|
|
|
1748
1768
|
// Features
|
|
1769
|
+
/**
|
|
1770
|
+
* This feature provides an AI agent for Grid. It provides a chat panel that allows the user to send messages to the
|
|
1771
|
+
* agent and see the responses. Which allows the user to use natural language to interact with the Grid in different
|
|
1772
|
+
* ways. For example, the user can ask the agent to filter the data, sort it, or select specific records. The agent can
|
|
1773
|
+
* also perform data manipulation operations such as adding, updating, deleting records.
|
|
1774
|
+
* ...
|
|
1775
|
+
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/feature/AI)
|
|
1776
|
+
*/
|
|
1777
|
+
aiFeature? : object|boolean|string|AI|AIConfig
|
|
1749
1778
|
/**
|
|
1750
1779
|
* AI-powered filter feature for Grid. Allows users to type natural language queries to filter grid data.
|
|
1751
1780
|
* ...
|
|
@@ -2054,6 +2083,7 @@ export class BryntumGridBase extends React.Component<BryntumGridBaseProps> {
|
|
|
2054
2083
|
};
|
|
2055
2084
|
|
|
2056
2085
|
static featureNames = [
|
|
2086
|
+
'aiFeature',
|
|
2057
2087
|
'aiFilterFeature',
|
|
2058
2088
|
'cellCopyPasteFeature',
|
|
2059
2089
|
'cellEditFeature',
|
|
@@ -2111,6 +2141,7 @@ export class BryntumGridBase extends React.Component<BryntumGridBaseProps> {
|
|
|
2111
2141
|
'autoHeight',
|
|
2112
2142
|
'bbar',
|
|
2113
2143
|
'bodyCls',
|
|
2144
|
+
'border',
|
|
2114
2145
|
'bubbleEvents',
|
|
2115
2146
|
'collapsible',
|
|
2116
2147
|
'color',
|
|
@@ -2215,6 +2246,7 @@ export class BryntumGridBase extends React.Component<BryntumGridBaseProps> {
|
|
|
2215
2246
|
'onBeforeCellEditStart',
|
|
2216
2247
|
'onBeforeCellRangeDelete',
|
|
2217
2248
|
'onBeforeCellRangeEdit',
|
|
2249
|
+
'onBeforeColumnCollapseToggle',
|
|
2218
2250
|
'onBeforeColumnDragStart',
|
|
2219
2251
|
'onBeforeColumnDropFinalize',
|
|
2220
2252
|
'onBeforeColumnResize',
|
|
@@ -2255,6 +2287,7 @@ export class BryntumGridBase extends React.Component<BryntumGridBaseProps> {
|
|
|
2255
2287
|
'onCellMouseOver',
|
|
2256
2288
|
'onCollapse',
|
|
2257
2289
|
'onCollapseNode',
|
|
2290
|
+
'onColumnCollapseToggle',
|
|
2258
2291
|
'onColumnDrag',
|
|
2259
2292
|
'onColumnDragStart',
|
|
2260
2293
|
'onColumnDrop',
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
5
5
|
import React, { RefObject } from 'react';
|
|
6
|
-
import { AlignSpec, Base, DomConfig, KeyMapConfig, MaskConfig, Rectangle, Scroller, ScrollerConfig, TabConfig, TooltipConfig, VueConfig, Widget } from '@bryntum/core-thin';
|
|
6
|
+
import { AlignSpec, Base, Color, DomConfig, KeyMapConfig, MaskConfig, Rectangle, Scroller, ScrollerConfig, TabConfig, TooltipConfig, VueConfig, Widget } from '@bryntum/core-thin';
|
|
7
7
|
import { Grid, GridChartDesigner, GridChartDesignerListeners } from '@bryntum/grid-thin';
|
|
8
8
|
|
|
9
9
|
import { createWidget, shouldComponentUpdate, processWidgetContent } from './WrapperHelper.js';
|
|
@@ -92,7 +92,7 @@ export type BryntumGridChartDesignerProps = {
|
|
|
92
92
|
* ...
|
|
93
93
|
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/GridChartDesigner#config-color)
|
|
94
94
|
*/
|
|
95
|
-
color? :
|
|
95
|
+
color? : Color
|
|
96
96
|
/**
|
|
97
97
|
* Programmatic control over which column to start in when used in a grid layout.
|
|
98
98
|
*/
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
5
5
|
import React, { RefObject } from 'react';
|
|
6
|
-
import { AlignSpec, Base, CollectionFilter, CollectionFilterConfig, ComboConfig, Container, DomConfig, FieldFilterPicker, FieldOption, KeyMapConfig, Layout, MaskConfig, MenuItemConfig, MenuItemEntry, Model, Rectangle, Scroller, ScrollerConfig, TabConfig, ToolbarItems, TooltipConfig, ValueFieldPlaceholders, VueConfig, Widget } from '@bryntum/core-thin';
|
|
6
|
+
import { AlignSpec, Base, CollectionFilter, CollectionFilterConfig, Color, ComboConfig, Container, DomConfig, FieldFilterPicker, FieldOption, KeyMapConfig, Layout, MaskConfig, MenuItemConfig, MenuItemEntry, Model, Rectangle, Scroller, ScrollerConfig, TabConfig, ToolbarItems, TooltipConfig, ValueFieldPlaceholders, VueConfig, Widget } from '@bryntum/core-thin';
|
|
7
7
|
import { GridContainerItemConfig, GridContainerLayoutConfig, Grid, GridFieldFilterPicker, GridFieldFilterPickerListeners } from '@bryntum/grid-thin';
|
|
8
8
|
|
|
9
9
|
import { createWidget, shouldComponentUpdate, processWidgetContent } from './WrapperHelper.js';
|
|
@@ -65,6 +65,10 @@ export type BryntumGridFieldFilterPickerProps = {
|
|
|
65
65
|
* Update assigned [record](https://bryntum.com/products/grid/docs/api/Core/widget/Container#config-record) automatically on field changes
|
|
66
66
|
*/
|
|
67
67
|
autoUpdateRecord? : boolean
|
|
68
|
+
/**
|
|
69
|
+
* Set `true` to add a border to this container's element.
|
|
70
|
+
*/
|
|
71
|
+
border? : boolean
|
|
68
72
|
/**
|
|
69
73
|
* An object where property names with a truthy value indicate which events should bubble up the ownership
|
|
70
74
|
* hierarchy when triggered.
|
|
@@ -104,7 +108,7 @@ export type BryntumGridFieldFilterPickerProps = {
|
|
|
104
108
|
* ...
|
|
105
109
|
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/GridFieldFilterPicker#config-color)
|
|
106
110
|
*/
|
|
107
|
-
color? :
|
|
111
|
+
color? : Color
|
|
108
112
|
/**
|
|
109
113
|
* Programmatic control over which column to start in when used in a grid layout.
|
|
110
114
|
*/
|
|
@@ -789,6 +793,7 @@ export class BryntumGridFieldFilterPicker extends React.Component<BryntumGridFie
|
|
|
789
793
|
'ariaDescription',
|
|
790
794
|
'ariaLabel',
|
|
791
795
|
'autoUpdateRecord',
|
|
796
|
+
'border',
|
|
792
797
|
'bubbleEvents',
|
|
793
798
|
'centered',
|
|
794
799
|
'color',
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
5
5
|
import React, { RefObject } from 'react';
|
|
6
|
-
import { AlignSpec, Base, CollectionFilterConfig, Container, DomConfig, FieldFilterPicker, FieldFilterPickerConfig, FieldFilterPickerGroup, KeyMapConfig, Layout, MaskConfig, MenuItemConfig, MenuItemEntry, Model, Rectangle, Scroller, ScrollerConfig, TabConfig, ToolbarItems, TooltipConfig, VueConfig, Widget } from '@bryntum/core-thin';
|
|
6
|
+
import { AlignSpec, Base, CollectionFilterConfig, Color, Container, DomConfig, FieldFilterPicker, FieldFilterPickerConfig, FieldFilterPickerGroup, KeyMapConfig, Layout, MaskConfig, MenuItemConfig, MenuItemEntry, Model, Rectangle, Scroller, ScrollerConfig, TabConfig, ToolbarItems, TooltipConfig, VueConfig, Widget } from '@bryntum/core-thin';
|
|
7
7
|
import { GridContainerItemConfig, GridContainerLayoutConfig, Grid, GridFieldFilterPickerGroup, GridFieldFilterPickerGroupListeners } from '@bryntum/grid-thin';
|
|
8
8
|
|
|
9
9
|
import { createWidget, shouldComponentUpdate, processWidgetContent } from './WrapperHelper.js';
|
|
@@ -67,6 +67,10 @@ export type BryntumGridFieldFilterPickerGroupProps = {
|
|
|
67
67
|
* Update assigned [record](https://bryntum.com/products/grid/docs/api/Core/widget/Container#config-record) automatically on field changes
|
|
68
68
|
*/
|
|
69
69
|
autoUpdateRecord? : boolean
|
|
70
|
+
/**
|
|
71
|
+
* Set `true` to add a border to this container's element.
|
|
72
|
+
*/
|
|
73
|
+
border? : boolean
|
|
70
74
|
/**
|
|
71
75
|
* An object where property names with a truthy value indicate which events should bubble up the ownership
|
|
72
76
|
* hierarchy when triggered.
|
|
@@ -122,7 +126,7 @@ export type BryntumGridFieldFilterPickerGroupProps = {
|
|
|
122
126
|
* ...
|
|
123
127
|
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/GridFieldFilterPickerGroup#config-color)
|
|
124
128
|
*/
|
|
125
|
-
color? :
|
|
129
|
+
color? : Color
|
|
126
130
|
/**
|
|
127
131
|
* Programmatic control over which column to start in when used in a grid layout.
|
|
128
132
|
*/
|
|
@@ -803,6 +807,7 @@ export class BryntumGridFieldFilterPickerGroup extends React.Component<BryntumGr
|
|
|
803
807
|
'ariaDescription',
|
|
804
808
|
'ariaLabel',
|
|
805
809
|
'autoUpdateRecord',
|
|
810
|
+
'border',
|
|
806
811
|
'bubbleEvents',
|
|
807
812
|
'canDeleteFilter',
|
|
808
813
|
'canManageFilter',
|
package/src/BryntumGroupBar.tsx
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
5
5
|
import React, { RefObject } from 'react';
|
|
6
|
-
import { AlignSpec, Base, Collection, CollectionConfig, DomConfig, KeyMapConfig, List, MaskConfig, Model, ModelConfig, Rectangle, Scroller, ScrollerConfig, Store, StoreConfig, TabConfig, TooltipConfig, VueConfig, Widget } from '@bryntum/core-thin';
|
|
6
|
+
import { AlignSpec, Base, Collection, CollectionConfig, Color, DomConfig, KeyMapConfig, List, MaskConfig, Model, ModelConfig, Rectangle, Scroller, ScrollerConfig, Store, StoreConfig, TabConfig, TooltipConfig, VueConfig, Widget } from '@bryntum/core-thin';
|
|
7
7
|
import { GroupBar, GroupBarListeners } from '@bryntum/grid-thin';
|
|
8
8
|
|
|
9
9
|
import { createWidget, shouldComponentUpdate, processWidgetContent } from './WrapperHelper.js';
|
|
@@ -123,7 +123,7 @@ export type BryntumGroupBarProps = {
|
|
|
123
123
|
* ...
|
|
124
124
|
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/GroupBar#config-color)
|
|
125
125
|
*/
|
|
126
|
-
color? :
|
|
126
|
+
color? : Color
|
|
127
127
|
/**
|
|
128
128
|
* Programmatic control over which column to start in when used in a grid layout.
|
|
129
129
|
*/
|
|
@@ -753,13 +753,11 @@ export class BryntumGroupBar extends React.Component<BryntumGroupBarProps> {
|
|
|
753
753
|
'activateOnMouseover',
|
|
754
754
|
'adopt',
|
|
755
755
|
'align',
|
|
756
|
-
'allowGroupSelect',
|
|
757
756
|
'anchor',
|
|
758
757
|
'ariaDescription',
|
|
759
758
|
'ariaLabel',
|
|
760
759
|
'bubbleEvents',
|
|
761
760
|
'centered',
|
|
762
|
-
'clearSelectionOnEmptySpaceClick',
|
|
763
761
|
'closable',
|
|
764
762
|
'closeHandler',
|
|
765
763
|
'color',
|
|
@@ -812,9 +810,11 @@ export class BryntumGroupBar extends React.Component<BryntumGroupBarProps> {
|
|
|
812
810
|
|
|
813
811
|
static propertyConfigNames = [
|
|
814
812
|
'alignSelf',
|
|
813
|
+
'allowGroupSelect',
|
|
815
814
|
'appendTo',
|
|
816
815
|
'callOnFunctions',
|
|
817
816
|
'catchEventHandlerExceptions',
|
|
817
|
+
'clearSelectionOnEmptySpaceClick',
|
|
818
818
|
'cls',
|
|
819
819
|
'collapsibleGroups',
|
|
820
820
|
'column',
|
package/src/BryntumTreeCombo.tsx
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
5
5
|
import React, { RefObject } from 'react';
|
|
6
|
-
import { AlignSpec, Base, ChipViewConfig, CollectionCompareOperator, CollectionFilterConfig, Combo, ComboModel, DomConfig, Duration, DurationConfig, Field, FieldContainer, FieldContainerConfig, FieldTriggerConfig, KeyMapConfig, List, ListConfig, MaskConfig, Model, Rectangle, Scroller, Store, StoreConfig, TabConfig, TooltipConfig, VueConfig, Widget } from '@bryntum/core-thin';
|
|
6
|
+
import { AlignSpec, Base, ChipViewConfig, CollectionCompareOperator, CollectionFilterConfig, Color, Combo, ComboModel, DomConfig, Duration, DurationConfig, Field, FieldContainer, FieldContainerConfig, FieldTriggerConfig, KeyMapConfig, List, ListConfig, MaskConfig, Model, Rectangle, Scroller, Store, StoreConfig, TabConfig, TooltipConfig, VueConfig, Widget } from '@bryntum/core-thin';
|
|
7
7
|
import { GridContainerItemConfig, TreeCombo, TreeComboListeners } from '@bryntum/grid-thin';
|
|
8
8
|
|
|
9
9
|
import { createWidget, shouldComponentUpdate, processWidgetContent } from './WrapperHelper.js';
|
|
@@ -144,7 +144,7 @@ export type BryntumTreeComboProps = {
|
|
|
144
144
|
* ...
|
|
145
145
|
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-color)
|
|
146
146
|
*/
|
|
147
|
-
color? :
|
|
147
|
+
color? : Color
|
|
148
148
|
/**
|
|
149
149
|
* Programmatic control over which column to start in when used in a grid layout.
|
|
150
150
|
*/
|
package/src/BryntumTreeGrid.tsx
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
*/
|
|
4
4
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
5
5
|
import React, { RefObject } from 'react';
|
|
6
|
-
import { AjaxStore, AjaxStoreConfig, Base, Container, DomConfig, FormulaProviderConfig, KeyMapConfig, Mask, MaskConfig, Menu, MenuItem, MenuItemEntry, Model, ModelConfig, PagingToolbarConfig, Panel, PanelCollapserConfig, PanelCollapserOverlayConfig, PanelHeader, ScrollManager, ScrollManagerConfig, Scroller, ScrollerConfig, StateProvider, Store, StoreConfig, TabConfig, Tool, ToolConfig, ToolbarConfig, ToolbarItems, TooltipConfig, Widget } from '@bryntum/core-thin';
|
|
7
|
-
import { AIFilter, AIFilterConfig, CellCopyPaste, CellCopyPasteConfig, CellEdit, CellEditConfig, CellEditorContext, CellMenu, CellMenuConfig, CellTooltip, CellTooltipConfig, Charts, ChartsConfig, Column, ColumnAutoWidth, ColumnAutoWidthConfig, ColumnDragToolbar, ColumnDragToolbarConfig, ColumnPicker, ColumnPickerConfig, ColumnRename, ColumnRenameConfig, ColumnReorder, ColumnReorderConfig, ColumnResize, ColumnResizeConfig, ColumnStore, ColumnStoreConfig, GridContainerItemConfig, EmptyTextDomConfig, ExcelExporter, ExcelExporterConfig, ExportConfig, FileDrop, FileDropConfig, FillHandle, FillHandleConfig, Filter, FilterBar, FilterBarConfig, FilterConfig, Grid, GridBase, GridColumnConfig, GridLocation, GridLocationConfig, GridSelectionMode, GridStateInfo, Group, GroupConfig, GroupSummary, GroupSummaryConfig, HeaderMenu, HeaderMenuConfig, LockRows, LockRowsConfig, MergeCells, MergeCellsConfig, PdfExport, PdfExportConfig, PinColumns, PinColumnsConfig, PreserveScrollOptions, Print, PrintConfig, QuickFind, QuickFindConfig, RecordPositionContext, RegionResize, RegionResizeConfig, ResponsiveLevelConfig, Row, RowCopyPaste, RowCopyPasteConfig, RowEdit, RowEditConfig, RowEditorContext, RowExpander, RowExpanderConfig, RowReorder, RowReorderConfig, RowResize, RowResizeConfig, Search, SearchConfig, Sort, SortConfig, Split, SplitConfig, StickyCells, StickyCellsConfig, Stripe, StripeConfig, SubGrid, SubGridConfig, Summary, SummaryConfig, Tree, TreeConfig, TreeGrid, TreeGridListeners, TreeGroup, TreeGroupConfig, XLSColumn } from '@bryntum/grid-thin';
|
|
6
|
+
import { AjaxStore, AjaxStoreConfig, Base, Color, Container, DomConfig, FormulaProviderConfig, KeyMapConfig, Mask, MaskConfig, Menu, MenuItem, MenuItemEntry, Model, ModelConfig, PagingToolbarConfig, Panel, PanelCollapserConfig, PanelCollapserOverlayConfig, PanelHeader, ScrollManager, ScrollManagerConfig, Scroller, ScrollerConfig, StateProvider, Store, StoreConfig, TabConfig, Tool, ToolConfig, ToolbarConfig, ToolbarItems, TooltipConfig, Widget } from '@bryntum/core-thin';
|
|
7
|
+
import { AI, AIConfig, AIFilter, AIFilterConfig, CellCopyPaste, CellCopyPasteConfig, CellEdit, CellEditConfig, CellEditorContext, CellMenu, CellMenuConfig, CellTooltip, CellTooltipConfig, Charts, ChartsConfig, Column, ColumnAutoWidth, ColumnAutoWidthConfig, ColumnDragToolbar, ColumnDragToolbarConfig, ColumnPicker, ColumnPickerConfig, ColumnRename, ColumnRenameConfig, ColumnReorder, ColumnReorderConfig, ColumnResize, ColumnResizeConfig, ColumnStore, ColumnStoreConfig, GridContainerItemConfig, EmptyTextDomConfig, ExcelExporter, ExcelExporterConfig, ExportConfig, FileDrop, FileDropConfig, FillHandle, FillHandleConfig, Filter, FilterBar, FilterBarConfig, FilterConfig, Grid, GridBase, GridColumnConfig, GridLocation, GridLocationConfig, GridSelectionMode, GridStateInfo, Group, GroupConfig, GroupSummary, GroupSummaryConfig, HeaderMenu, HeaderMenuConfig, LockRows, LockRowsConfig, MergeCells, MergeCellsConfig, PdfExport, PdfExportConfig, PinColumns, PinColumnsConfig, PreserveScrollOptions, Print, PrintConfig, QuickFind, QuickFindConfig, RecordPositionContext, RegionResize, RegionResizeConfig, ResponsiveLevelConfig, Row, RowCopyPaste, RowCopyPasteConfig, RowEdit, RowEditConfig, RowEditorContext, RowExpander, RowExpanderConfig, RowReorder, RowReorderConfig, RowResize, RowResizeConfig, Search, SearchConfig, Sort, SortConfig, Split, SplitConfig, StickyCells, StickyCellsConfig, Stripe, StripeConfig, SubGrid, SubGridConfig, Summary, SummaryConfig, Tree, TreeConfig, TreeGrid, TreeGridListeners, TreeGroup, TreeGroupConfig, XLSColumn } from '@bryntum/grid-thin';
|
|
8
8
|
|
|
9
9
|
import { createWidget, shouldComponentUpdate, processWidgetContent } from './WrapperHelper.js';
|
|
10
10
|
|
|
@@ -79,6 +79,10 @@ export type BryntumTreeGridProps = {
|
|
|
79
79
|
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/TreeGrid#config-bodyCls)
|
|
80
80
|
*/
|
|
81
81
|
bodyCls? : string|object
|
|
82
|
+
/**
|
|
83
|
+
* Set `true` to add a border to this container's element.
|
|
84
|
+
*/
|
|
85
|
+
border? : boolean
|
|
82
86
|
/**
|
|
83
87
|
* An object where property names with a truthy value indicate which events should bubble up the ownership
|
|
84
88
|
* hierarchy when triggered.
|
|
@@ -130,7 +134,7 @@ export type BryntumTreeGridProps = {
|
|
|
130
134
|
* ...
|
|
131
135
|
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/TreeGrid#config-color)
|
|
132
136
|
*/
|
|
133
|
-
color? :
|
|
137
|
+
color? : Color
|
|
134
138
|
/**
|
|
135
139
|
* Programmatic control over which column to start in when used in a grid layout.
|
|
136
140
|
*/
|
|
@@ -791,6 +795,14 @@ export type BryntumTreeGridProps = {
|
|
|
791
795
|
* @param {any} event.value The value being set
|
|
792
796
|
*/
|
|
793
797
|
onBeforeCellRangeEdit? : ((event: { record: Model, field: string, value: any }) => Promise<boolean>|boolean|void)|string
|
|
798
|
+
/**
|
|
799
|
+
* This event is triggered before a parent column is collapsed or expanded.
|
|
800
|
+
* @param {object} event Event object
|
|
801
|
+
* @param {Grid.view.GridBase} event.source The grid instance
|
|
802
|
+
* @param {Grid.column.Column} event.column The column
|
|
803
|
+
* @param {boolean} event.collapsed `true` if the column is being collapsed, `false` if expanded
|
|
804
|
+
*/
|
|
805
|
+
onBeforeColumnCollapseToggle? : ((event: { source: GridBase, column: Column, collapsed: boolean }) => void)|string
|
|
794
806
|
/**
|
|
795
807
|
* This event is fired prior to starting a column drag gesture. The drag is canceled if a listener returns `false`.
|
|
796
808
|
* @param {object} event Event object
|
|
@@ -901,18 +913,18 @@ export type BryntumTreeGridProps = {
|
|
|
901
913
|
/**
|
|
902
914
|
* Fires before a row is rendered.
|
|
903
915
|
* @param {object} event Event object
|
|
904
|
-
* @param {Grid.view.
|
|
905
|
-
* @param {Grid.row.Row} event.row The row about to be rendered
|
|
906
|
-
* @param {Core.data.Model} event.record The record for the row
|
|
907
|
-
* @param {number} event.recordIndex The zero-based index of the record
|
|
916
|
+
* @param {Grid.view.GridBase} event.source The firing Grid instance
|
|
917
|
+
* @param {Grid.row.Row} event.row The row about to be rendered
|
|
918
|
+
* @param {Core.data.Model} event.record The record for the row
|
|
919
|
+
* @param {number} event.recordIndex The zero-based index of the record
|
|
908
920
|
*/
|
|
909
|
-
onBeforeRenderRow? : ((event: { source:
|
|
921
|
+
onBeforeRenderRow? : ((event: { source: GridBase, row: Row, record: Model, recordIndex: number }) => void)|string
|
|
910
922
|
/**
|
|
911
923
|
* Grid rows are about to be rendered
|
|
912
924
|
* @param {object} event Event object
|
|
913
|
-
* @param {Grid.view.
|
|
925
|
+
* @param {Grid.view.GridBase} event.source This grid.
|
|
914
926
|
*/
|
|
915
|
-
onBeforeRenderRows? : ((event: { source:
|
|
927
|
+
onBeforeRenderRows? : ((event: { source: GridBase }) => void)|string
|
|
916
928
|
/**
|
|
917
929
|
* This event fires before row collapse is started.
|
|
918
930
|
* ...
|
|
@@ -1143,6 +1155,14 @@ export type BryntumTreeGridProps = {
|
|
|
1143
1155
|
* @param {Core.data.Model} event.record The record which has been collapsed.
|
|
1144
1156
|
*/
|
|
1145
1157
|
onCollapseNode? : ((event: { source: Grid, record: Model }) => void)|string
|
|
1158
|
+
/**
|
|
1159
|
+
* This event is triggered after a parent column has been collapsed or expanded.
|
|
1160
|
+
* @param {object} event Event object
|
|
1161
|
+
* @param {Grid.view.GridBase} event.source The Grid instance
|
|
1162
|
+
* @param {Grid.column.Column} event.column The column being toggled
|
|
1163
|
+
* @param {boolean} event.collapsed `true` if the column is now collapsed, `false` if expanded
|
|
1164
|
+
*/
|
|
1165
|
+
onColumnCollapseToggle? : ((event: { source: GridBase, column: Column, collapsed: boolean }) => void)|string
|
|
1146
1166
|
/**
|
|
1147
1167
|
* This event is fired when a column is being dragged, and you can set the `valid` flag on the `context` object
|
|
1148
1168
|
* to indicate whether the drop position is valid or not.
|
|
@@ -1224,14 +1244,14 @@ export type BryntumTreeGridProps = {
|
|
|
1224
1244
|
* ...
|
|
1225
1245
|
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/TreeGrid#event-dataChange)
|
|
1226
1246
|
* @param {object} event Event object
|
|
1227
|
-
* @param {Grid.view.
|
|
1247
|
+
* @param {Grid.view.GridBase} event.source Owning grid
|
|
1228
1248
|
* @param {Core.data.Store} event.store The originating store
|
|
1229
1249
|
* @param {'remove','removeAll','add','clearchanges','filter','update','dataset','replace'} event.action Name of action which triggered the change. May be one of: * `'remove'` * `'removeAll'` * `'add'` * `'clearchanges'` * `'filter'` * `'update'` * `'dataset'` * `'replace'`
|
|
1230
1250
|
* @param {Core.data.Model} event.record Changed record, for actions that affects exactly one record (`'update'`)
|
|
1231
1251
|
* @param {Core.data.Model[]} event.records Changed records, passed for all actions except `'removeAll'`
|
|
1232
1252
|
* @param {object} event.changes Passed for the `'update'` action, info on which record fields changed
|
|
1233
1253
|
*/
|
|
1234
|
-
onDataChange? : ((event: { source:
|
|
1254
|
+
onDataChange? : ((event: { source: GridBase, store: Store, action: 'remove'|'removeAll'|'add'|'clearchanges'|'filter'|'update'|'dataset'|'replace', record: Model, records: Model[], changes: object }) => void)|string
|
|
1235
1255
|
/**
|
|
1236
1256
|
* Fires when an object is destroyed.
|
|
1237
1257
|
* @param {object} event Event object
|
|
@@ -1539,18 +1559,18 @@ export type BryntumTreeGridProps = {
|
|
|
1539
1559
|
/**
|
|
1540
1560
|
* Fires after a row is rendered.
|
|
1541
1561
|
* @param {object} event Event object
|
|
1542
|
-
* @param {Grid.view.
|
|
1543
|
-
* @param {Grid.row.Row} event.row The row that has been rendered
|
|
1544
|
-
* @param {Core.data.Model} event.record The record for the row
|
|
1545
|
-
* @param {number} event.recordIndex The zero-based index of the record
|
|
1562
|
+
* @param {Grid.view.GridBase} event.source The firing Grid instance
|
|
1563
|
+
* @param {Grid.row.Row} event.row The row that has been rendered
|
|
1564
|
+
* @param {Core.data.Model} event.record The record for the row
|
|
1565
|
+
* @param {number} event.recordIndex The zero-based index of the record
|
|
1546
1566
|
*/
|
|
1547
|
-
onRenderRow? : ((event: { source:
|
|
1567
|
+
onRenderRow? : ((event: { source: GridBase, row: Row, record: Model, recordIndex: number }) => void)|string
|
|
1548
1568
|
/**
|
|
1549
1569
|
* Grid rows have been rendered
|
|
1550
1570
|
* @param {object} event Event object
|
|
1551
|
-
* @param {Grid.view.
|
|
1571
|
+
* @param {Grid.view.GridBase} event.source This grid.
|
|
1552
1572
|
*/
|
|
1553
|
-
onRenderRows? : ((event: { source:
|
|
1573
|
+
onRenderRows? : ((event: { source: GridBase }) => void)|string
|
|
1554
1574
|
/**
|
|
1555
1575
|
* 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`*.
|
|
1556
1576
|
* @param {object} event Event object
|
|
@@ -1610,10 +1630,10 @@ export type BryntumTreeGridProps = {
|
|
|
1610
1630
|
/**
|
|
1611
1631
|
* Grid has scrolled vertically
|
|
1612
1632
|
* @param {object} event Event object
|
|
1613
|
-
* @param {Grid.view.
|
|
1633
|
+
* @param {Grid.view.GridBase} event.source The firing Grid instance.
|
|
1614
1634
|
* @param {number} event.scrollTop The vertical scroll position.
|
|
1615
1635
|
*/
|
|
1616
|
-
onScroll? : ((event: { source:
|
|
1636
|
+
onScroll? : ((event: { source: GridBase, scrollTop: number }) => void)|string
|
|
1617
1637
|
/**
|
|
1618
1638
|
* The selection has been changed.
|
|
1619
1639
|
* @param {object} event Event object
|
|
@@ -1701,17 +1721,17 @@ export type BryntumTreeGridProps = {
|
|
|
1701
1721
|
/**
|
|
1702
1722
|
* Fires after a sub grid is collapsed.
|
|
1703
1723
|
* @param {object} event Event object
|
|
1704
|
-
* @param {Grid.view.
|
|
1724
|
+
* @param {Grid.view.GridBase} event.source The firing Grid instance
|
|
1705
1725
|
* @param {Grid.view.SubGrid} event.subGrid The sub grid instance
|
|
1706
1726
|
*/
|
|
1707
|
-
onSubGridCollapse? : ((event: { source:
|
|
1727
|
+
onSubGridCollapse? : ((event: { source: GridBase, subGrid: SubGrid }) => void)|string
|
|
1708
1728
|
/**
|
|
1709
1729
|
* Fires after a sub grid is expanded.
|
|
1710
1730
|
* @param {object} event Event object
|
|
1711
|
-
* @param {Grid.view.
|
|
1731
|
+
* @param {Grid.view.GridBase} event.source The firing Grid instance
|
|
1712
1732
|
* @param {Grid.view.SubGrid} event.subGrid The sub grid instance
|
|
1713
1733
|
*/
|
|
1714
|
-
onSubGridExpand? : ((event: { source:
|
|
1734
|
+
onSubGridExpand? : ((event: { source: GridBase, subGrid: SubGrid }) => void)|string
|
|
1715
1735
|
/**
|
|
1716
1736
|
* Fired when one or more groups are expanded or collapsed
|
|
1717
1737
|
* @param {object} event Event object
|
|
@@ -1747,6 +1767,15 @@ export type BryntumTreeGridProps = {
|
|
|
1747
1767
|
onUnsplit? : (() => void)|string
|
|
1748
1768
|
|
|
1749
1769
|
// Features
|
|
1770
|
+
/**
|
|
1771
|
+
* This feature provides an AI agent for Grid. It provides a chat panel that allows the user to send messages to the
|
|
1772
|
+
* agent and see the responses. Which allows the user to use natural language to interact with the Grid in different
|
|
1773
|
+
* ways. For example, the user can ask the agent to filter the data, sort it, or select specific records. The agent can
|
|
1774
|
+
* also perform data manipulation operations such as adding, updating, deleting records.
|
|
1775
|
+
* ...
|
|
1776
|
+
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/feature/AI)
|
|
1777
|
+
*/
|
|
1778
|
+
aiFeature? : object|boolean|string|AI|AIConfig
|
|
1750
1779
|
/**
|
|
1751
1780
|
* AI-powered filter feature for Grid. Allows users to type natural language queries to filter grid data.
|
|
1752
1781
|
* ...
|
|
@@ -2055,6 +2084,7 @@ export class BryntumTreeGrid extends React.Component<BryntumTreeGridProps> {
|
|
|
2055
2084
|
};
|
|
2056
2085
|
|
|
2057
2086
|
static featureNames = [
|
|
2087
|
+
'aiFeature',
|
|
2058
2088
|
'aiFilterFeature',
|
|
2059
2089
|
'cellCopyPasteFeature',
|
|
2060
2090
|
'cellEditFeature',
|
|
@@ -2112,6 +2142,7 @@ export class BryntumTreeGrid extends React.Component<BryntumTreeGridProps> {
|
|
|
2112
2142
|
'autoHeight',
|
|
2113
2143
|
'bbar',
|
|
2114
2144
|
'bodyCls',
|
|
2145
|
+
'border',
|
|
2115
2146
|
'bubbleEvents',
|
|
2116
2147
|
'collapsible',
|
|
2117
2148
|
'color',
|
|
@@ -2217,6 +2248,7 @@ export class BryntumTreeGrid extends React.Component<BryntumTreeGridProps> {
|
|
|
2217
2248
|
'onBeforeCellEditStart',
|
|
2218
2249
|
'onBeforeCellRangeDelete',
|
|
2219
2250
|
'onBeforeCellRangeEdit',
|
|
2251
|
+
'onBeforeColumnCollapseToggle',
|
|
2220
2252
|
'onBeforeColumnDragStart',
|
|
2221
2253
|
'onBeforeColumnDropFinalize',
|
|
2222
2254
|
'onBeforeColumnResize',
|
|
@@ -2257,6 +2289,7 @@ export class BryntumTreeGrid extends React.Component<BryntumTreeGridProps> {
|
|
|
2257
2289
|
'onCellMouseOver',
|
|
2258
2290
|
'onCollapse',
|
|
2259
2291
|
'onCollapseNode',
|
|
2292
|
+
'onColumnCollapseToggle',
|
|
2260
2293
|
'onColumnDrag',
|
|
2261
2294
|
'onColumnDragStart',
|
|
2262
2295
|
'onColumnDrop',
|