@bryntum/grid-angular 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 +12 -6
- package/bundles/bryntum-grid-angular.umd.js +1094 -302
- package/bundles/bryntum-grid-angular.umd.js.map +1 -1
- package/esm2015/lib/bryntum-a-i-filter-field.component.js +1 -1
- package/esm2015/lib/bryntum-button-group.component.js +6 -2
- package/esm2015/lib/bryntum-button.component.js +1 -1
- package/esm2015/lib/bryntum-chat-panel.component.js +6 -2
- package/esm2015/lib/bryntum-checkbox-group.component.js +6 -2
- package/esm2015/lib/bryntum-checklist-filter-combo.component.js +1 -1
- package/esm2015/lib/bryntum-chip-view.component.js +8 -8
- package/esm2015/lib/bryntum-code-editor.component.js +6 -2
- package/esm2015/lib/bryntum-combo.component.js +1 -1
- package/esm2015/lib/bryntum-container.component.js +6 -2
- package/esm2015/lib/bryntum-date-field.component.js +6 -2
- package/esm2015/lib/bryntum-date-picker.component.js +9 -5
- package/esm2015/lib/bryntum-date-range-field.component.js +1 -1
- package/esm2015/lib/bryntum-date-time-field.component.js +1 -1
- package/esm2015/lib/bryntum-demo-code-editor.component.js +6 -2
- package/esm2015/lib/bryntum-display-field.component.js +1 -1
- package/esm2015/lib/bryntum-duration-field.component.js +1 -1
- package/esm2015/lib/bryntum-editor.component.js +6 -2
- package/esm2015/lib/bryntum-field-filter-picker-group.component.js +6 -2
- package/esm2015/lib/bryntum-field-filter-picker.component.js +6 -2
- package/esm2015/lib/bryntum-field-set.component.js +6 -2
- package/esm2015/lib/bryntum-file-field.component.js +1 -1
- package/esm2015/lib/bryntum-file-picker.component.js +6 -2
- package/esm2015/lib/bryntum-filter-field.component.js +1 -1
- package/esm2015/lib/bryntum-grid-base.component.js +45 -16
- package/esm2015/lib/bryntum-grid-chart-designer.component.js +1 -1
- package/esm2015/lib/bryntum-grid-field-filter-picker-group.component.js +6 -2
- package/esm2015/lib/bryntum-grid-field-filter-picker.component.js +6 -2
- package/esm2015/lib/bryntum-grid.component.js +45 -16
- package/esm2015/lib/bryntum-group-bar.component.js +8 -8
- package/esm2015/lib/bryntum-hint.component.js +6 -2
- package/esm2015/lib/bryntum-label.component.js +1 -1
- package/esm2015/lib/bryntum-list.component.js +8 -8
- package/esm2015/lib/bryntum-menu.component.js +6 -2
- package/esm2015/lib/bryntum-month-picker.component.js +6 -2
- package/esm2015/lib/bryntum-number-field.component.js +1 -1
- package/esm2015/lib/bryntum-paging-toolbar.component.js +6 -2
- package/esm2015/lib/bryntum-panel.component.js +6 -2
- package/esm2015/lib/bryntum-password-field.component.js +1 -1
- package/esm2015/lib/bryntum-progress-bar.component.js +600 -0
- package/esm2015/lib/bryntum-radio-group.component.js +6 -2
- package/esm2015/lib/bryntum-slider.component.js +1 -1
- package/esm2015/lib/bryntum-splitter.component.js +1 -1
- package/esm2015/lib/bryntum-tab-panel.component.js +6 -2
- package/esm2015/lib/bryntum-text-area-field.component.js +1 -1
- package/esm2015/lib/bryntum-text-area-picker-field.component.js +1 -1
- package/esm2015/lib/bryntum-text-field.component.js +1 -1
- package/esm2015/lib/bryntum-time-field.component.js +6 -2
- package/esm2015/lib/bryntum-time-picker.component.js +6 -2
- package/esm2015/lib/bryntum-toolbar.component.js +6 -2
- package/esm2015/lib/bryntum-tree-combo.component.js +1 -1
- package/esm2015/lib/bryntum-tree-grid.component.js +45 -16
- package/esm2015/lib/bryntum-widget.component.js +1 -1
- package/esm2015/lib/bryntum-year-picker.component.js +6 -2
- package/esm2015/lib/grid.module.js +6 -1
- package/esm2015/public-api.js +2 -1
- package/fesm2015/bryntum-grid-angular.js +1087 -299
- package/fesm2015/bryntum-grid-angular.js.map +1 -1
- package/lib/bryntum-a-i-filter-field.component.d.ts +3 -3
- package/lib/bryntum-button-group.component.d.ts +6 -1
- package/lib/bryntum-button.component.d.ts +3 -3
- package/lib/bryntum-chat-panel.component.d.ts +9 -4
- package/lib/bryntum-checkbox-group.component.d.ts +9 -4
- package/lib/bryntum-checklist-filter-combo.component.d.ts +3 -3
- package/lib/bryntum-chip-view.component.d.ts +6 -6
- package/lib/bryntum-code-editor.component.d.ts +9 -4
- package/lib/bryntum-combo.component.d.ts +3 -3
- package/lib/bryntum-container.component.d.ts +9 -4
- package/lib/bryntum-date-field.component.d.ts +15 -5
- package/lib/bryntum-date-picker.component.d.ts +10 -5
- package/lib/bryntum-date-range-field.component.d.ts +3 -3
- package/lib/bryntum-date-time-field.component.d.ts +3 -3
- package/lib/bryntum-demo-code-editor.component.d.ts +9 -4
- package/lib/bryntum-display-field.component.d.ts +3 -3
- package/lib/bryntum-duration-field.component.d.ts +3 -3
- package/lib/bryntum-editor.component.d.ts +9 -4
- package/lib/bryntum-field-filter-picker-group.component.d.ts +9 -4
- package/lib/bryntum-field-filter-picker.component.d.ts +9 -4
- package/lib/bryntum-field-set.component.d.ts +9 -4
- package/lib/bryntum-file-field.component.d.ts +3 -3
- package/lib/bryntum-file-picker.component.d.ts +9 -4
- package/lib/bryntum-filter-field.component.d.ts +3 -3
- package/lib/bryntum-grid-base.component.d.ts +49 -18
- package/lib/bryntum-grid-chart-designer.component.d.ts +3 -3
- package/lib/bryntum-grid-field-filter-picker-group.component.d.ts +9 -4
- package/lib/bryntum-grid-field-filter-picker.component.d.ts +9 -4
- package/lib/bryntum-grid.component.d.ts +49 -18
- package/lib/bryntum-group-bar.component.d.ts +6 -6
- package/lib/bryntum-hint.component.d.ts +9 -4
- package/lib/bryntum-label.component.d.ts +3 -3
- package/lib/bryntum-list.component.d.ts +6 -6
- package/lib/bryntum-menu.component.d.ts +9 -4
- package/lib/bryntum-month-picker.component.d.ts +9 -4
- package/lib/bryntum-number-field.component.d.ts +3 -3
- package/lib/bryntum-paging-toolbar.component.d.ts +9 -4
- package/lib/bryntum-panel.component.d.ts +9 -4
- package/lib/bryntum-password-field.component.d.ts +3 -3
- package/lib/bryntum-progress-bar.component.d.ts +705 -0
- package/lib/bryntum-radio-group.component.d.ts +9 -4
- package/lib/bryntum-slider.component.d.ts +3 -3
- package/lib/bryntum-splitter.component.d.ts +3 -3
- package/lib/bryntum-tab-panel.component.d.ts +9 -4
- package/lib/bryntum-text-area-field.component.d.ts +3 -3
- package/lib/bryntum-text-area-picker-field.component.d.ts +3 -3
- package/lib/bryntum-text-field.component.d.ts +3 -3
- package/lib/bryntum-time-field.component.d.ts +13 -4
- package/lib/bryntum-time-picker.component.d.ts +9 -4
- package/lib/bryntum-toolbar.component.d.ts +9 -4
- package/lib/bryntum-tree-combo.component.d.ts +3 -3
- package/lib/bryntum-tree-grid.component.d.ts +49 -18
- package/lib/bryntum-widget.component.d.ts +3 -3
- package/lib/bryntum-year-picker.component.d.ts +9 -4
- package/lib/grid.module.d.ts +18 -17
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
- package/src/lib/bryntum-a-i-filter-field.component.ts +3 -3
- package/src/lib/bryntum-button-group.component.ts +7 -0
- package/src/lib/bryntum-button.component.ts +3 -3
- package/src/lib/bryntum-chat-panel.component.ts +10 -3
- package/src/lib/bryntum-checkbox-group.component.ts +10 -3
- package/src/lib/bryntum-checklist-filter-combo.component.ts +3 -3
- package/src/lib/bryntum-chip-view.component.ts +102 -102
- package/src/lib/bryntum-code-editor.component.ts +10 -3
- package/src/lib/bryntum-combo.component.ts +3 -3
- package/src/lib/bryntum-container.component.ts +10 -3
- package/src/lib/bryntum-date-field.component.ts +16 -4
- package/src/lib/bryntum-date-picker.component.ts +12 -5
- package/src/lib/bryntum-date-range-field.component.ts +3 -3
- package/src/lib/bryntum-date-time-field.component.ts +3 -3
- package/src/lib/bryntum-demo-code-editor.component.ts +10 -3
- package/src/lib/bryntum-display-field.component.ts +3 -3
- package/src/lib/bryntum-duration-field.component.ts +3 -3
- package/src/lib/bryntum-editor.component.ts +10 -3
- package/src/lib/bryntum-field-filter-picker-group.component.ts +10 -3
- package/src/lib/bryntum-field-filter-picker.component.ts +10 -3
- package/src/lib/bryntum-field-set.component.ts +10 -3
- package/src/lib/bryntum-file-field.component.ts +3 -3
- package/src/lib/bryntum-file-picker.component.ts +10 -3
- package/src/lib/bryntum-filter-field.component.ts +3 -3
- package/src/lib/bryntum-grid-base.component.ts +61 -25
- package/src/lib/bryntum-grid-chart-designer.component.ts +3 -3
- package/src/lib/bryntum-grid-field-filter-picker-group.component.ts +10 -3
- package/src/lib/bryntum-grid-field-filter-picker.component.ts +10 -3
- package/src/lib/bryntum-grid.component.ts +61 -25
- package/src/lib/bryntum-group-bar.component.ts +102 -102
- package/src/lib/bryntum-hint.component.ts +10 -3
- package/src/lib/bryntum-label.component.ts +3 -3
- package/src/lib/bryntum-list.component.ts +99 -99
- package/src/lib/bryntum-menu.component.ts +10 -3
- package/src/lib/bryntum-month-picker.component.ts +10 -3
- package/src/lib/bryntum-number-field.component.ts +3 -3
- package/src/lib/bryntum-paging-toolbar.component.ts +10 -3
- package/src/lib/bryntum-panel.component.ts +10 -3
- package/src/lib/bryntum-password-field.component.ts +3 -3
- package/src/lib/bryntum-progress-bar.component.ts +1019 -0
- package/src/lib/bryntum-radio-group.component.ts +10 -3
- package/src/lib/bryntum-slider.component.ts +3 -3
- package/src/lib/bryntum-splitter.component.ts +3 -3
- package/src/lib/bryntum-tab-panel.component.ts +10 -3
- package/src/lib/bryntum-text-area-field.component.ts +3 -3
- package/src/lib/bryntum-text-area-picker-field.component.ts +3 -3
- package/src/lib/bryntum-text-field.component.ts +3 -3
- package/src/lib/bryntum-time-field.component.ts +14 -3
- package/src/lib/bryntum-time-picker.component.ts +10 -3
- package/src/lib/bryntum-toolbar.component.ts +10 -3
- package/src/lib/bryntum-tree-combo.component.ts +3 -3
- package/src/lib/bryntum-tree-grid.component.ts +61 -25
- package/src/lib/bryntum-widget.component.ts +3 -3
- package/src/lib/bryntum-year-picker.component.ts +10 -3
- package/src/lib/grid.module.ts +3 -0
- package/src/public-api.ts +1 -0
|
@@ -7,7 +7,7 @@ import { Component, ElementRef, EventEmitter, Output, Input, SimpleChange, Simpl
|
|
|
7
7
|
|
|
8
8
|
import WrapperHelper from './wrapper.helper';
|
|
9
9
|
|
|
10
|
-
import { AIFilter, AIFilterConfig, AjaxStore, AjaxStoreConfig, Base, 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, Container, ContainerItemConfig, DomConfig, EmptyTextDomConfig, ExcelExporter, ExcelExporterConfig, ExportConfig, FileDrop, FileDropConfig, FillHandle, FillHandleConfig, Filter, FilterBar, FilterBarConfig, FilterConfig, FormulaProviderConfig, Grid, GridBase, GridBaseListeners, GridColumnConfig, GridLocation, GridLocationConfig, GridSelectionMode, GridStateInfo, Group, GroupConfig, GroupSummary, GroupSummaryConfig, HeaderMenu, HeaderMenuConfig, KeyMapConfig, LockRows, LockRowsConfig, Mask, MaskConfig, Menu, MenuItem, MenuItemEntry, MergeCells, MergeCellsConfig, Model, ModelConfig, PagingToolbarConfig, Panel, PanelCollapserConfig, PanelCollapserOverlayConfig, PanelHeader, 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, ScrollManager, ScrollManagerConfig, Scroller, ScrollerConfig, Search, SearchConfig, Sort, SortConfig, Split, SplitConfig, StateProvider, StickyCells, StickyCellsConfig, Store, StoreConfig, Stripe, StripeConfig, SubGrid, SubGridConfig, Summary, SummaryConfig, TabConfig, Tool, ToolConfig, ToolbarConfig, ToolbarItems, TooltipConfig, Tree, TreeConfig, TreeGroup, TreeGroupConfig, Widget, XLSColumn } from '@bryntum/grid';
|
|
10
|
+
import { AI, AIConfig, AIFilter, AIFilterConfig, AjaxStore, AjaxStoreConfig, Base, CellCopyPaste, CellCopyPasteConfig, CellEdit, CellEditConfig, CellEditorContext, CellMenu, CellMenuConfig, CellTooltip, CellTooltipConfig, Charts, ChartsConfig, Color, Column, ColumnAutoWidth, ColumnAutoWidthConfig, ColumnDragToolbar, ColumnDragToolbarConfig, ColumnPicker, ColumnPickerConfig, ColumnRename, ColumnRenameConfig, ColumnReorder, ColumnReorderConfig, ColumnResize, ColumnResizeConfig, ColumnStore, ColumnStoreConfig, Container, ContainerItemConfig, DomConfig, EmptyTextDomConfig, ExcelExporter, ExcelExporterConfig, ExportConfig, FileDrop, FileDropConfig, FillHandle, FillHandleConfig, Filter, FilterBar, FilterBarConfig, FilterConfig, FormulaProviderConfig, Grid, GridBase, GridBaseListeners, GridColumnConfig, GridLocation, GridLocationConfig, GridSelectionMode, GridStateInfo, Group, GroupConfig, GroupSummary, GroupSummaryConfig, HeaderMenu, HeaderMenuConfig, KeyMapConfig, LockRows, LockRowsConfig, Mask, MaskConfig, Menu, MenuItem, MenuItemEntry, MergeCells, MergeCellsConfig, Model, ModelConfig, PagingToolbarConfig, Panel, PanelCollapserConfig, PanelCollapserOverlayConfig, PanelHeader, 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, ScrollManager, ScrollManagerConfig, Scroller, ScrollerConfig, Search, SearchConfig, Sort, SortConfig, Split, SplitConfig, StateProvider, StickyCells, StickyCellsConfig, Store, StoreConfig, Stripe, StripeConfig, SubGrid, SubGridConfig, Summary, SummaryConfig, TabConfig, Tool, ToolConfig, ToolbarConfig, ToolbarItems, TooltipConfig, Tree, TreeConfig, TreeGroup, TreeGroupConfig, Widget, XLSColumn } from '@bryntum/grid';
|
|
11
11
|
|
|
12
12
|
import { StringHelper } from '@bryntum/grid';
|
|
13
13
|
|
|
@@ -82,6 +82,10 @@ export type BryntumGridBaseProps = {
|
|
|
82
82
|
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/GridBase#config-bodyCls)
|
|
83
83
|
*/
|
|
84
84
|
bodyCls ? : string|object
|
|
85
|
+
/**
|
|
86
|
+
* Set `true` to add a border to this container's element.
|
|
87
|
+
*/
|
|
88
|
+
border ? : boolean
|
|
85
89
|
/**
|
|
86
90
|
* An object where property names with a truthy value indicate which events should bubble up the ownership
|
|
87
91
|
* hierarchy when triggered.
|
|
@@ -133,7 +137,7 @@ export type BryntumGridBaseProps = {
|
|
|
133
137
|
* ...
|
|
134
138
|
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/GridBase#config-color)
|
|
135
139
|
*/
|
|
136
|
-
color ? :
|
|
140
|
+
color ? : Color
|
|
137
141
|
/**
|
|
138
142
|
* Programmatic control over which column to start in when used in a grid layout.
|
|
139
143
|
*/
|
|
@@ -754,6 +758,15 @@ export type BryntumGridBaseProps = {
|
|
|
754
758
|
width ? : string|number
|
|
755
759
|
|
|
756
760
|
// Features
|
|
761
|
+
/**
|
|
762
|
+
* This feature provides an AI agent for Grid. It provides a chat panel that allows the user to send messages to the
|
|
763
|
+
* agent and see the responses. Which allows the user to use natural language to interact with the Grid in different
|
|
764
|
+
* ways. For example, the user can ask the agent to filter the data, sort it, or select specific records. The agent can
|
|
765
|
+
* also perform data manipulation operations such as adding, updating, deleting records.
|
|
766
|
+
* ...
|
|
767
|
+
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/feature/AI)
|
|
768
|
+
*/
|
|
769
|
+
aiFeature ? : object|boolean|string|AI|AIConfig
|
|
757
770
|
/**
|
|
758
771
|
* AI-powered filter feature for Grid. Allows users to type natural language queries to filter grid data.
|
|
759
772
|
* ...
|
|
@@ -1052,6 +1065,7 @@ export class BryntumGridBaseComponent implements OnInit, OnDestroy {
|
|
|
1052
1065
|
'onBeforeCellEditStart',
|
|
1053
1066
|
'onBeforeCellRangeDelete',
|
|
1054
1067
|
'onBeforeCellRangeEdit',
|
|
1068
|
+
'onBeforeColumnCollapseToggle',
|
|
1055
1069
|
'onBeforeColumnDragStart',
|
|
1056
1070
|
'onBeforeColumnDropFinalize',
|
|
1057
1071
|
'onBeforeColumnResize',
|
|
@@ -1092,6 +1106,7 @@ export class BryntumGridBaseComponent implements OnInit, OnDestroy {
|
|
|
1092
1106
|
'onCellMouseOver',
|
|
1093
1107
|
'onCollapse',
|
|
1094
1108
|
'onCollapseNode',
|
|
1109
|
+
'onColumnCollapseToggle',
|
|
1095
1110
|
'onColumnDrag',
|
|
1096
1111
|
'onColumnDragStart',
|
|
1097
1112
|
'onColumnDrop',
|
|
@@ -1166,6 +1181,7 @@ export class BryntumGridBaseComponent implements OnInit, OnDestroy {
|
|
|
1166
1181
|
];
|
|
1167
1182
|
|
|
1168
1183
|
private static bryntumFeatureNames: string[] = [
|
|
1184
|
+
'aiFeature',
|
|
1169
1185
|
'aiFilterFeature',
|
|
1170
1186
|
'cellCopyPasteFeature',
|
|
1171
1187
|
'cellEditFeature',
|
|
@@ -1220,6 +1236,7 @@ export class BryntumGridBaseComponent implements OnInit, OnDestroy {
|
|
|
1220
1236
|
'autoHeight',
|
|
1221
1237
|
'bbar',
|
|
1222
1238
|
'bodyCls',
|
|
1239
|
+
'border',
|
|
1223
1240
|
'bubbleEvents',
|
|
1224
1241
|
'callOnFunctions',
|
|
1225
1242
|
'catchEventHandlerExceptions',
|
|
@@ -1340,6 +1357,7 @@ export class BryntumGridBaseComponent implements OnInit, OnDestroy {
|
|
|
1340
1357
|
'autoHeight',
|
|
1341
1358
|
'bbar',
|
|
1342
1359
|
'bodyCls',
|
|
1360
|
+
'border',
|
|
1343
1361
|
'bubbleEvents',
|
|
1344
1362
|
'collapsible',
|
|
1345
1363
|
'color',
|
|
@@ -1493,9 +1511,10 @@ export class BryntumGridBaseComponent implements OnInit, OnDestroy {
|
|
|
1493
1511
|
@Input() autoHeight ! : boolean;
|
|
1494
1512
|
@Input() bbar ! : (ContainerItemConfig|string)[]|ToolbarConfig|PagingToolbarConfig|null;
|
|
1495
1513
|
@Input() bodyCls ! : string|object;
|
|
1514
|
+
@Input() border ! : boolean;
|
|
1496
1515
|
@Input() bubbleEvents ! : object;
|
|
1497
1516
|
@Input() collapsible ! : boolean|PanelCollapserConfig|PanelCollapserOverlayConfig;
|
|
1498
|
-
@Input() color ! :
|
|
1517
|
+
@Input() color ! : Color;
|
|
1499
1518
|
@Input() config ! : object;
|
|
1500
1519
|
@Input() contentElementCls ! : string|object;
|
|
1501
1520
|
@Input() contextMenuTriggerEvent ! : 'contextmenu'|'click'|'dblclick';
|
|
@@ -1651,6 +1670,7 @@ export class BryntumGridBaseComponent implements OnInit, OnDestroy {
|
|
|
1651
1670
|
@Input() tooltip ! : string|TooltipConfig;
|
|
1652
1671
|
|
|
1653
1672
|
// Features
|
|
1673
|
+
@Input() aiFeature ! : object|boolean|string|AI|AIConfig;
|
|
1654
1674
|
@Input() aiFilterFeature ! : object|boolean|string|AIFilter|AIFilterConfig;
|
|
1655
1675
|
@Input() cellCopyPasteFeature ! : object|boolean|string|CellCopyPaste|CellCopyPasteConfig;
|
|
1656
1676
|
@Input() cellEditFeature ! : object|boolean|string|CellEdit|CellEditConfig;
|
|
@@ -1732,6 +1752,14 @@ export class BryntumGridBaseComponent implements OnInit, OnDestroy {
|
|
|
1732
1752
|
* @param {any} event.value The value being set
|
|
1733
1753
|
*/
|
|
1734
1754
|
@Output() onBeforeCellRangeEdit: any = new EventEmitter<((event: { record: Model, field: string, value: any }) => Promise<boolean>|boolean|void)|string>();
|
|
1755
|
+
/**
|
|
1756
|
+
* This event is triggered before a parent column is collapsed or expanded.
|
|
1757
|
+
* @param {object} event Event object
|
|
1758
|
+
* @param {Grid.view.GridBase} event.source The grid instance
|
|
1759
|
+
* @param {Grid.column.Column} event.column The column
|
|
1760
|
+
* @param {boolean} event.collapsed `true` if the column is being collapsed, `false` if expanded
|
|
1761
|
+
*/
|
|
1762
|
+
@Output() onBeforeColumnCollapseToggle: any = new EventEmitter<((event: { source: GridBase, column: Column, collapsed: boolean }) => void)|string>();
|
|
1735
1763
|
/**
|
|
1736
1764
|
* This event is fired prior to starting a column drag gesture. The drag is canceled if a listener returns `false`.
|
|
1737
1765
|
* @param {object} event Event object
|
|
@@ -1842,18 +1870,18 @@ export class BryntumGridBaseComponent implements OnInit, OnDestroy {
|
|
|
1842
1870
|
/**
|
|
1843
1871
|
* Fires before a row is rendered.
|
|
1844
1872
|
* @param {object} event Event object
|
|
1845
|
-
* @param {Grid.view.
|
|
1846
|
-
* @param {Grid.row.Row} event.row The row about to be rendered
|
|
1847
|
-
* @param {Core.data.Model} event.record The record for the row
|
|
1848
|
-
* @param {number} event.recordIndex The zero-based index of the record
|
|
1873
|
+
* @param {Grid.view.GridBase} event.source The firing Grid instance
|
|
1874
|
+
* @param {Grid.row.Row} event.row The row about to be rendered
|
|
1875
|
+
* @param {Core.data.Model} event.record The record for the row
|
|
1876
|
+
* @param {number} event.recordIndex The zero-based index of the record
|
|
1849
1877
|
*/
|
|
1850
|
-
@Output() onBeforeRenderRow: any = new EventEmitter<((event: { source:
|
|
1878
|
+
@Output() onBeforeRenderRow: any = new EventEmitter<((event: { source: GridBase, row: Row, record: Model, recordIndex: number }) => void)|string>();
|
|
1851
1879
|
/**
|
|
1852
1880
|
* Grid rows are about to be rendered
|
|
1853
1881
|
* @param {object} event Event object
|
|
1854
|
-
* @param {Grid.view.
|
|
1882
|
+
* @param {Grid.view.GridBase} event.source This grid.
|
|
1855
1883
|
*/
|
|
1856
|
-
@Output() onBeforeRenderRows: any = new EventEmitter<((event: { source:
|
|
1884
|
+
@Output() onBeforeRenderRows: any = new EventEmitter<((event: { source: GridBase }) => void)|string>();
|
|
1857
1885
|
/**
|
|
1858
1886
|
* This event fires before row collapse is started.
|
|
1859
1887
|
* ...
|
|
@@ -2084,6 +2112,14 @@ export class BryntumGridBaseComponent implements OnInit, OnDestroy {
|
|
|
2084
2112
|
* @param {Core.data.Model} event.record The record which has been collapsed.
|
|
2085
2113
|
*/
|
|
2086
2114
|
@Output() onCollapseNode: any = new EventEmitter<((event: { source: Grid, record: Model }) => void)|string>();
|
|
2115
|
+
/**
|
|
2116
|
+
* This event is triggered after a parent column has been collapsed or expanded.
|
|
2117
|
+
* @param {object} event Event object
|
|
2118
|
+
* @param {Grid.view.GridBase} event.source The Grid instance
|
|
2119
|
+
* @param {Grid.column.Column} event.column The column being toggled
|
|
2120
|
+
* @param {boolean} event.collapsed `true` if the column is now collapsed, `false` if expanded
|
|
2121
|
+
*/
|
|
2122
|
+
@Output() onColumnCollapseToggle: any = new EventEmitter<((event: { source: GridBase, column: Column, collapsed: boolean }) => void)|string>();
|
|
2087
2123
|
/**
|
|
2088
2124
|
* This event is fired when a column is being dragged, and you can set the `valid` flag on the `context` object
|
|
2089
2125
|
* to indicate whether the drop position is valid or not.
|
|
@@ -2165,14 +2201,14 @@ export class BryntumGridBaseComponent implements OnInit, OnDestroy {
|
|
|
2165
2201
|
* ...
|
|
2166
2202
|
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/GridBase#event-dataChange)
|
|
2167
2203
|
* @param {object} event Event object
|
|
2168
|
-
* @param {Grid.view.
|
|
2204
|
+
* @param {Grid.view.GridBase} event.source Owning grid
|
|
2169
2205
|
* @param {Core.data.Store} event.store The originating store
|
|
2170
2206
|
* @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'`
|
|
2171
2207
|
* @param {Core.data.Model} event.record Changed record, for actions that affects exactly one record (`'update'`)
|
|
2172
2208
|
* @param {Core.data.Model[]} event.records Changed records, passed for all actions except `'removeAll'`
|
|
2173
2209
|
* @param {object} event.changes Passed for the `'update'` action, info on which record fields changed
|
|
2174
2210
|
*/
|
|
2175
|
-
@Output() onDataChange: any = new EventEmitter<((event: { source:
|
|
2211
|
+
@Output() onDataChange: any = new EventEmitter<((event: { source: GridBase, store: Store, action: 'remove'|'removeAll'|'add'|'clearchanges'|'filter'|'update'|'dataset'|'replace', record: Model, records: Model[], changes: object }) => void)|string>();
|
|
2176
2212
|
/**
|
|
2177
2213
|
* Fires when an object is destroyed.
|
|
2178
2214
|
* @param {object} event Event object
|
|
@@ -2480,18 +2516,18 @@ export class BryntumGridBaseComponent implements OnInit, OnDestroy {
|
|
|
2480
2516
|
/**
|
|
2481
2517
|
* Fires after a row is rendered.
|
|
2482
2518
|
* @param {object} event Event object
|
|
2483
|
-
* @param {Grid.view.
|
|
2484
|
-
* @param {Grid.row.Row} event.row The row that has been rendered
|
|
2485
|
-
* @param {Core.data.Model} event.record The record for the row
|
|
2486
|
-
* @param {number} event.recordIndex The zero-based index of the record
|
|
2519
|
+
* @param {Grid.view.GridBase} event.source The firing Grid instance
|
|
2520
|
+
* @param {Grid.row.Row} event.row The row that has been rendered
|
|
2521
|
+
* @param {Core.data.Model} event.record The record for the row
|
|
2522
|
+
* @param {number} event.recordIndex The zero-based index of the record
|
|
2487
2523
|
*/
|
|
2488
|
-
@Output() onRenderRow: any = new EventEmitter<((event: { source:
|
|
2524
|
+
@Output() onRenderRow: any = new EventEmitter<((event: { source: GridBase, row: Row, record: Model, recordIndex: number }) => void)|string>();
|
|
2489
2525
|
/**
|
|
2490
2526
|
* Grid rows have been rendered
|
|
2491
2527
|
* @param {object} event Event object
|
|
2492
|
-
* @param {Grid.view.
|
|
2528
|
+
* @param {Grid.view.GridBase} event.source This grid.
|
|
2493
2529
|
*/
|
|
2494
|
-
@Output() onRenderRows: any = new EventEmitter<((event: { source:
|
|
2530
|
+
@Output() onRenderRows: any = new EventEmitter<((event: { source: GridBase }) => void)|string>();
|
|
2495
2531
|
/**
|
|
2496
2532
|
* 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`*.
|
|
2497
2533
|
* @param {object} event Event object
|
|
@@ -2551,10 +2587,10 @@ export class BryntumGridBaseComponent implements OnInit, OnDestroy {
|
|
|
2551
2587
|
/**
|
|
2552
2588
|
* Grid has scrolled vertically
|
|
2553
2589
|
* @param {object} event Event object
|
|
2554
|
-
* @param {Grid.view.
|
|
2590
|
+
* @param {Grid.view.GridBase} event.source The firing Grid instance.
|
|
2555
2591
|
* @param {number} event.scrollTop The vertical scroll position.
|
|
2556
2592
|
*/
|
|
2557
|
-
@Output() onScroll: any = new EventEmitter<((event: { source:
|
|
2593
|
+
@Output() onScroll: any = new EventEmitter<((event: { source: GridBase, scrollTop: number }) => void)|string>();
|
|
2558
2594
|
/**
|
|
2559
2595
|
* The selection has been changed.
|
|
2560
2596
|
* @param {object} event Event object
|
|
@@ -2642,17 +2678,17 @@ export class BryntumGridBaseComponent implements OnInit, OnDestroy {
|
|
|
2642
2678
|
/**
|
|
2643
2679
|
* Fires after a sub grid is collapsed.
|
|
2644
2680
|
* @param {object} event Event object
|
|
2645
|
-
* @param {Grid.view.
|
|
2681
|
+
* @param {Grid.view.GridBase} event.source The firing Grid instance
|
|
2646
2682
|
* @param {Grid.view.SubGrid} event.subGrid The sub grid instance
|
|
2647
2683
|
*/
|
|
2648
|
-
@Output() onSubGridCollapse: any = new EventEmitter<((event: { source:
|
|
2684
|
+
@Output() onSubGridCollapse: any = new EventEmitter<((event: { source: GridBase, subGrid: SubGrid }) => void)|string>();
|
|
2649
2685
|
/**
|
|
2650
2686
|
* Fires after a sub grid is expanded.
|
|
2651
2687
|
* @param {object} event Event object
|
|
2652
|
-
* @param {Grid.view.
|
|
2688
|
+
* @param {Grid.view.GridBase} event.source The firing Grid instance
|
|
2653
2689
|
* @param {Grid.view.SubGrid} event.subGrid The sub grid instance
|
|
2654
2690
|
*/
|
|
2655
|
-
@Output() onSubGridExpand: any = new EventEmitter<((event: { source:
|
|
2691
|
+
@Output() onSubGridExpand: any = new EventEmitter<((event: { source: GridBase, subGrid: SubGrid }) => void)|string>();
|
|
2656
2692
|
/**
|
|
2657
2693
|
* Fired when one or more groups are expanded or collapsed
|
|
2658
2694
|
* @param {object} event Event object
|
|
@@ -7,7 +7,7 @@ import { Component, ElementRef, EventEmitter, Output, Input, SimpleChange, Simpl
|
|
|
7
7
|
|
|
8
8
|
import WrapperHelper from './wrapper.helper';
|
|
9
9
|
|
|
10
|
-
import { AlignSpec, Base, DomConfig, Grid, GridChartDesigner, GridChartDesignerListeners, KeyMapConfig, MaskConfig, Rectangle, Scroller, ScrollerConfig, TabConfig, TooltipConfig, VueConfig, Widget } from '@bryntum/grid';
|
|
10
|
+
import { AlignSpec, Base, Color, DomConfig, Grid, GridChartDesigner, GridChartDesignerListeners, KeyMapConfig, MaskConfig, Rectangle, Scroller, ScrollerConfig, TabConfig, TooltipConfig, VueConfig, Widget } from '@bryntum/grid';
|
|
11
11
|
|
|
12
12
|
import { StringHelper } from '@bryntum/grid';
|
|
13
13
|
|
|
@@ -95,7 +95,7 @@ export type BryntumGridChartDesignerProps = {
|
|
|
95
95
|
* ...
|
|
96
96
|
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/GridChartDesigner#config-color)
|
|
97
97
|
*/
|
|
98
|
-
color ? :
|
|
98
|
+
color ? : Color
|
|
99
99
|
/**
|
|
100
100
|
* Programmatic control over which column to start in when used in a grid layout.
|
|
101
101
|
*/
|
|
@@ -698,7 +698,7 @@ export class BryntumGridChartDesignerComponent implements OnInit, OnDestroy {
|
|
|
698
698
|
@Input() ariaLabel ! : string;
|
|
699
699
|
@Input() bubbleEvents ! : object;
|
|
700
700
|
@Input() centered ! : boolean;
|
|
701
|
-
@Input() color ! :
|
|
701
|
+
@Input() color ! : Color;
|
|
702
702
|
@Input() config ! : object;
|
|
703
703
|
@Input() constrainTo ! : HTMLElement|Widget|Rectangle;
|
|
704
704
|
@Input() contentElementCls ! : string|object;
|
|
@@ -7,7 +7,7 @@ import { Component, ElementRef, EventEmitter, Output, Input, SimpleChange, Simpl
|
|
|
7
7
|
|
|
8
8
|
import WrapperHelper from './wrapper.helper';
|
|
9
9
|
|
|
10
|
-
import { AlignSpec, Base, CollectionFilterConfig, Container, ContainerItemConfig, ContainerLayoutConfig, DomConfig, FieldFilterPicker, FieldFilterPickerConfig, FieldFilterPickerGroup, Grid, GridFieldFilterPickerGroup, GridFieldFilterPickerGroupListeners, KeyMapConfig, Layout, MaskConfig, MenuItemConfig, MenuItemEntry, Model, Rectangle, Scroller, ScrollerConfig, TabConfig, ToolbarItems, TooltipConfig, VueConfig, Widget } from '@bryntum/grid';
|
|
10
|
+
import { AlignSpec, Base, CollectionFilterConfig, Color, Container, ContainerItemConfig, ContainerLayoutConfig, DomConfig, FieldFilterPicker, FieldFilterPickerConfig, FieldFilterPickerGroup, Grid, GridFieldFilterPickerGroup, GridFieldFilterPickerGroupListeners, KeyMapConfig, Layout, MaskConfig, MenuItemConfig, MenuItemEntry, Model, Rectangle, Scroller, ScrollerConfig, TabConfig, ToolbarItems, TooltipConfig, VueConfig, Widget } from '@bryntum/grid';
|
|
11
11
|
|
|
12
12
|
import { StringHelper } from '@bryntum/grid';
|
|
13
13
|
|
|
@@ -70,6 +70,10 @@ export type BryntumGridFieldFilterPickerGroupProps = {
|
|
|
70
70
|
* Update assigned [record](https://bryntum.com/products/grid/docs/api/Core/widget/Container#config-record) automatically on field changes
|
|
71
71
|
*/
|
|
72
72
|
autoUpdateRecord ? : boolean
|
|
73
|
+
/**
|
|
74
|
+
* Set `true` to add a border to this container's element.
|
|
75
|
+
*/
|
|
76
|
+
border ? : boolean
|
|
73
77
|
/**
|
|
74
78
|
* An object where property names with a truthy value indicate which events should bubble up the ownership
|
|
75
79
|
* hierarchy when triggered.
|
|
@@ -125,7 +129,7 @@ export type BryntumGridFieldFilterPickerGroupProps = {
|
|
|
125
129
|
* ...
|
|
126
130
|
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/GridFieldFilterPickerGroup#config-color)
|
|
127
131
|
*/
|
|
128
|
-
color ? :
|
|
132
|
+
color ? : Color
|
|
129
133
|
/**
|
|
130
134
|
* Programmatic control over which column to start in when used in a grid layout.
|
|
131
135
|
*/
|
|
@@ -696,6 +700,7 @@ export class BryntumGridFieldFilterPickerGroupComponent implements OnInit, OnDes
|
|
|
696
700
|
'ariaDescription',
|
|
697
701
|
'ariaLabel',
|
|
698
702
|
'autoUpdateRecord',
|
|
703
|
+
'border',
|
|
699
704
|
'bubbleEvents',
|
|
700
705
|
'callOnFunctions',
|
|
701
706
|
'canDeleteFilter',
|
|
@@ -802,6 +807,7 @@ export class BryntumGridFieldFilterPickerGroupComponent implements OnInit, OnDes
|
|
|
802
807
|
'ariaDescription',
|
|
803
808
|
'ariaLabel',
|
|
804
809
|
'autoUpdateRecord',
|
|
810
|
+
'border',
|
|
805
811
|
'bubbleEvents',
|
|
806
812
|
'canDeleteFilter',
|
|
807
813
|
'canManageFilter',
|
|
@@ -937,11 +943,12 @@ export class BryntumGridFieldFilterPickerGroupComponent implements OnInit, OnDes
|
|
|
937
943
|
@Input() ariaDescription ! : string;
|
|
938
944
|
@Input() ariaLabel ! : string;
|
|
939
945
|
@Input() autoUpdateRecord ! : boolean;
|
|
946
|
+
@Input() border ! : boolean;
|
|
940
947
|
@Input() bubbleEvents ! : object;
|
|
941
948
|
@Input() canDeleteFilter ! : (filter: any) => boolean;
|
|
942
949
|
@Input() canManageFilter ! : (filter: any) => boolean;
|
|
943
950
|
@Input() centered ! : boolean;
|
|
944
|
-
@Input() color ! :
|
|
951
|
+
@Input() color ! : Color;
|
|
945
952
|
@Input() config ! : object;
|
|
946
953
|
@Input() constrainTo ! : HTMLElement|Widget|Rectangle;
|
|
947
954
|
@Input() contentElementCls ! : string|object;
|
|
@@ -7,7 +7,7 @@ import { Component, ElementRef, EventEmitter, Output, Input, SimpleChange, Simpl
|
|
|
7
7
|
|
|
8
8
|
import WrapperHelper from './wrapper.helper';
|
|
9
9
|
|
|
10
|
-
import { AlignSpec, Base, CollectionFilter, CollectionFilterConfig, ComboConfig, Container, ContainerItemConfig, ContainerLayoutConfig, DomConfig, FieldFilterPicker, FieldOption, Grid, GridFieldFilterPicker, GridFieldFilterPickerListeners, KeyMapConfig, Layout, MaskConfig, MenuItemConfig, MenuItemEntry, Model, Rectangle, Scroller, ScrollerConfig, TabConfig, ToolbarItems, TooltipConfig, ValueFieldPlaceholders, VueConfig, Widget } from '@bryntum/grid';
|
|
10
|
+
import { AlignSpec, Base, CollectionFilter, CollectionFilterConfig, Color, ComboConfig, Container, ContainerItemConfig, ContainerLayoutConfig, DomConfig, FieldFilterPicker, FieldOption, Grid, GridFieldFilterPicker, GridFieldFilterPickerListeners, KeyMapConfig, Layout, MaskConfig, MenuItemConfig, MenuItemEntry, Model, Rectangle, Scroller, ScrollerConfig, TabConfig, ToolbarItems, TooltipConfig, ValueFieldPlaceholders, VueConfig, Widget } from '@bryntum/grid';
|
|
11
11
|
|
|
12
12
|
import { StringHelper } from '@bryntum/grid';
|
|
13
13
|
|
|
@@ -68,6 +68,10 @@ export type BryntumGridFieldFilterPickerProps = {
|
|
|
68
68
|
* Update assigned [record](https://bryntum.com/products/grid/docs/api/Core/widget/Container#config-record) automatically on field changes
|
|
69
69
|
*/
|
|
70
70
|
autoUpdateRecord ? : boolean
|
|
71
|
+
/**
|
|
72
|
+
* Set `true` to add a border to this container's element.
|
|
73
|
+
*/
|
|
74
|
+
border ? : boolean
|
|
71
75
|
/**
|
|
72
76
|
* An object where property names with a truthy value indicate which events should bubble up the ownership
|
|
73
77
|
* hierarchy when triggered.
|
|
@@ -107,7 +111,7 @@ export type BryntumGridFieldFilterPickerProps = {
|
|
|
107
111
|
* ...
|
|
108
112
|
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/GridFieldFilterPicker#config-color)
|
|
109
113
|
*/
|
|
110
|
-
color ? :
|
|
114
|
+
color ? : Color
|
|
111
115
|
/**
|
|
112
116
|
* Programmatic control over which column to start in when used in a grid layout.
|
|
113
117
|
*/
|
|
@@ -689,6 +693,7 @@ export class BryntumGridFieldFilterPickerComponent implements OnInit, OnDestroy
|
|
|
689
693
|
'ariaDescription',
|
|
690
694
|
'ariaLabel',
|
|
691
695
|
'autoUpdateRecord',
|
|
696
|
+
'border',
|
|
692
697
|
'bubbleEvents',
|
|
693
698
|
'callOnFunctions',
|
|
694
699
|
'catchEventHandlerExceptions',
|
|
@@ -796,6 +801,7 @@ export class BryntumGridFieldFilterPickerComponent implements OnInit, OnDestroy
|
|
|
796
801
|
'ariaDescription',
|
|
797
802
|
'ariaLabel',
|
|
798
803
|
'autoUpdateRecord',
|
|
804
|
+
'border',
|
|
799
805
|
'bubbleEvents',
|
|
800
806
|
'centered',
|
|
801
807
|
'color',
|
|
@@ -931,9 +937,10 @@ export class BryntumGridFieldFilterPickerComponent implements OnInit, OnDestroy
|
|
|
931
937
|
@Input() ariaDescription ! : string;
|
|
932
938
|
@Input() ariaLabel ! : string;
|
|
933
939
|
@Input() autoUpdateRecord ! : boolean;
|
|
940
|
+
@Input() border ! : boolean;
|
|
934
941
|
@Input() bubbleEvents ! : object;
|
|
935
942
|
@Input() centered ! : boolean;
|
|
936
|
-
@Input() color ! :
|
|
943
|
+
@Input() color ! : Color;
|
|
937
944
|
@Input() config ! : object;
|
|
938
945
|
@Input() constrainTo ! : HTMLElement|Widget|Rectangle;
|
|
939
946
|
@Input() contentElementCls ! : string|object;
|
|
@@ -7,7 +7,7 @@ import { Component, ElementRef, EventEmitter, Output, Input, SimpleChange, Simpl
|
|
|
7
7
|
|
|
8
8
|
import WrapperHelper from './wrapper.helper';
|
|
9
9
|
|
|
10
|
-
import { AIFilter, AIFilterConfig, AjaxStore, AjaxStoreConfig, Base, 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, Container, ContainerItemConfig, DomConfig, EmptyTextDomConfig, ExcelExporter, ExcelExporterConfig, ExportConfig, FileDrop, FileDropConfig, FillHandle, FillHandleConfig, Filter, FilterBar, FilterBarConfig, FilterConfig, FormulaProviderConfig, Grid, GridBase, GridColumnConfig, GridListeners, GridLocation, GridLocationConfig, GridSelectionMode, GridStateInfo, Group, GroupConfig, GroupSummary, GroupSummaryConfig, HeaderMenu, HeaderMenuConfig, KeyMapConfig, LockRows, LockRowsConfig, Mask, MaskConfig, Menu, MenuItem, MenuItemEntry, MergeCells, MergeCellsConfig, Model, ModelConfig, PagingToolbarConfig, Panel, PanelCollapserConfig, PanelCollapserOverlayConfig, PanelHeader, 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, ScrollManager, ScrollManagerConfig, Scroller, ScrollerConfig, Search, SearchConfig, Sort, SortConfig, Split, SplitConfig, StateProvider, StickyCells, StickyCellsConfig, Store, StoreConfig, Stripe, StripeConfig, SubGrid, SubGridConfig, Summary, SummaryConfig, TabConfig, Tool, ToolConfig, ToolbarConfig, ToolbarItems, TooltipConfig, Tree, TreeConfig, TreeGroup, TreeGroupConfig, Widget, XLSColumn } from '@bryntum/grid';
|
|
10
|
+
import { AI, AIConfig, AIFilter, AIFilterConfig, AjaxStore, AjaxStoreConfig, Base, CellCopyPaste, CellCopyPasteConfig, CellEdit, CellEditConfig, CellEditorContext, CellMenu, CellMenuConfig, CellTooltip, CellTooltipConfig, Charts, ChartsConfig, Color, Column, ColumnAutoWidth, ColumnAutoWidthConfig, ColumnDragToolbar, ColumnDragToolbarConfig, ColumnPicker, ColumnPickerConfig, ColumnRename, ColumnRenameConfig, ColumnReorder, ColumnReorderConfig, ColumnResize, ColumnResizeConfig, ColumnStore, ColumnStoreConfig, Container, ContainerItemConfig, DomConfig, EmptyTextDomConfig, ExcelExporter, ExcelExporterConfig, ExportConfig, FileDrop, FileDropConfig, FillHandle, FillHandleConfig, Filter, FilterBar, FilterBarConfig, FilterConfig, FormulaProviderConfig, Grid, GridBase, GridColumnConfig, GridListeners, GridLocation, GridLocationConfig, GridSelectionMode, GridStateInfo, Group, GroupConfig, GroupSummary, GroupSummaryConfig, HeaderMenu, HeaderMenuConfig, KeyMapConfig, LockRows, LockRowsConfig, Mask, MaskConfig, Menu, MenuItem, MenuItemEntry, MergeCells, MergeCellsConfig, Model, ModelConfig, PagingToolbarConfig, Panel, PanelCollapserConfig, PanelCollapserOverlayConfig, PanelHeader, 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, ScrollManager, ScrollManagerConfig, Scroller, ScrollerConfig, Search, SearchConfig, Sort, SortConfig, Split, SplitConfig, StateProvider, StickyCells, StickyCellsConfig, Store, StoreConfig, Stripe, StripeConfig, SubGrid, SubGridConfig, Summary, SummaryConfig, TabConfig, Tool, ToolConfig, ToolbarConfig, ToolbarItems, TooltipConfig, Tree, TreeConfig, TreeGroup, TreeGroupConfig, Widget, XLSColumn } from '@bryntum/grid';
|
|
11
11
|
|
|
12
12
|
import { StringHelper } from '@bryntum/grid';
|
|
13
13
|
|
|
@@ -82,6 +82,10 @@ export type BryntumGridProps = {
|
|
|
82
82
|
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/Grid#config-bodyCls)
|
|
83
83
|
*/
|
|
84
84
|
bodyCls ? : string|object
|
|
85
|
+
/**
|
|
86
|
+
* Set `true` to add a border to this container's element.
|
|
87
|
+
*/
|
|
88
|
+
border ? : boolean
|
|
85
89
|
/**
|
|
86
90
|
* An object where property names with a truthy value indicate which events should bubble up the ownership
|
|
87
91
|
* hierarchy when triggered.
|
|
@@ -133,7 +137,7 @@ export type BryntumGridProps = {
|
|
|
133
137
|
* ...
|
|
134
138
|
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/Grid#config-color)
|
|
135
139
|
*/
|
|
136
|
-
color ? :
|
|
140
|
+
color ? : Color
|
|
137
141
|
/**
|
|
138
142
|
* Programmatic control over which column to start in when used in a grid layout.
|
|
139
143
|
*/
|
|
@@ -755,6 +759,15 @@ export type BryntumGridProps = {
|
|
|
755
759
|
width ? : string|number
|
|
756
760
|
|
|
757
761
|
// Features
|
|
762
|
+
/**
|
|
763
|
+
* This feature provides an AI agent for Grid. It provides a chat panel that allows the user to send messages to the
|
|
764
|
+
* agent and see the responses. Which allows the user to use natural language to interact with the Grid in different
|
|
765
|
+
* ways. For example, the user can ask the agent to filter the data, sort it, or select specific records. The agent can
|
|
766
|
+
* also perform data manipulation operations such as adding, updating, deleting records.
|
|
767
|
+
* ...
|
|
768
|
+
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/feature/AI)
|
|
769
|
+
*/
|
|
770
|
+
aiFeature ? : object|boolean|string|AI|AIConfig
|
|
758
771
|
/**
|
|
759
772
|
* AI-powered filter feature for Grid. Allows users to type natural language queries to filter grid data.
|
|
760
773
|
* ...
|
|
@@ -1053,6 +1066,7 @@ export class BryntumGridComponent implements OnInit, OnDestroy {
|
|
|
1053
1066
|
'onBeforeCellEditStart',
|
|
1054
1067
|
'onBeforeCellRangeDelete',
|
|
1055
1068
|
'onBeforeCellRangeEdit',
|
|
1069
|
+
'onBeforeColumnCollapseToggle',
|
|
1056
1070
|
'onBeforeColumnDragStart',
|
|
1057
1071
|
'onBeforeColumnDropFinalize',
|
|
1058
1072
|
'onBeforeColumnResize',
|
|
@@ -1093,6 +1107,7 @@ export class BryntumGridComponent implements OnInit, OnDestroy {
|
|
|
1093
1107
|
'onCellMouseOver',
|
|
1094
1108
|
'onCollapse',
|
|
1095
1109
|
'onCollapseNode',
|
|
1110
|
+
'onColumnCollapseToggle',
|
|
1096
1111
|
'onColumnDrag',
|
|
1097
1112
|
'onColumnDragStart',
|
|
1098
1113
|
'onColumnDrop',
|
|
@@ -1167,6 +1182,7 @@ export class BryntumGridComponent implements OnInit, OnDestroy {
|
|
|
1167
1182
|
];
|
|
1168
1183
|
|
|
1169
1184
|
private static bryntumFeatureNames: string[] = [
|
|
1185
|
+
'aiFeature',
|
|
1170
1186
|
'aiFilterFeature',
|
|
1171
1187
|
'cellCopyPasteFeature',
|
|
1172
1188
|
'cellEditFeature',
|
|
@@ -1221,6 +1237,7 @@ export class BryntumGridComponent implements OnInit, OnDestroy {
|
|
|
1221
1237
|
'autoHeight',
|
|
1222
1238
|
'bbar',
|
|
1223
1239
|
'bodyCls',
|
|
1240
|
+
'border',
|
|
1224
1241
|
'bubbleEvents',
|
|
1225
1242
|
'callOnFunctions',
|
|
1226
1243
|
'catchEventHandlerExceptions',
|
|
@@ -1342,6 +1359,7 @@ export class BryntumGridComponent implements OnInit, OnDestroy {
|
|
|
1342
1359
|
'autoHeight',
|
|
1343
1360
|
'bbar',
|
|
1344
1361
|
'bodyCls',
|
|
1362
|
+
'border',
|
|
1345
1363
|
'bubbleEvents',
|
|
1346
1364
|
'collapsible',
|
|
1347
1365
|
'color',
|
|
@@ -1496,9 +1514,10 @@ export class BryntumGridComponent implements OnInit, OnDestroy {
|
|
|
1496
1514
|
@Input() autoHeight ! : boolean;
|
|
1497
1515
|
@Input() bbar ! : (ContainerItemConfig|string)[]|ToolbarConfig|PagingToolbarConfig|null;
|
|
1498
1516
|
@Input() bodyCls ! : string|object;
|
|
1517
|
+
@Input() border ! : boolean;
|
|
1499
1518
|
@Input() bubbleEvents ! : object;
|
|
1500
1519
|
@Input() collapsible ! : boolean|PanelCollapserConfig|PanelCollapserOverlayConfig;
|
|
1501
|
-
@Input() color ! :
|
|
1520
|
+
@Input() color ! : Color;
|
|
1502
1521
|
@Input() config ! : object;
|
|
1503
1522
|
@Input() contentElementCls ! : string|object;
|
|
1504
1523
|
@Input() contextMenuTriggerEvent ! : 'contextmenu'|'click'|'dblclick';
|
|
@@ -1655,6 +1674,7 @@ export class BryntumGridComponent implements OnInit, OnDestroy {
|
|
|
1655
1674
|
@Input() tooltip ! : string|TooltipConfig;
|
|
1656
1675
|
|
|
1657
1676
|
// Features
|
|
1677
|
+
@Input() aiFeature ! : object|boolean|string|AI|AIConfig;
|
|
1658
1678
|
@Input() aiFilterFeature ! : object|boolean|string|AIFilter|AIFilterConfig;
|
|
1659
1679
|
@Input() cellCopyPasteFeature ! : object|boolean|string|CellCopyPaste|CellCopyPasteConfig;
|
|
1660
1680
|
@Input() cellEditFeature ! : object|boolean|string|CellEdit|CellEditConfig;
|
|
@@ -1736,6 +1756,14 @@ export class BryntumGridComponent implements OnInit, OnDestroy {
|
|
|
1736
1756
|
* @param {any} event.value The value being set
|
|
1737
1757
|
*/
|
|
1738
1758
|
@Output() onBeforeCellRangeEdit: any = new EventEmitter<((event: { record: Model, field: string, value: any }) => Promise<boolean>|boolean|void)|string>();
|
|
1759
|
+
/**
|
|
1760
|
+
* This event is triggered before a parent column is collapsed or expanded.
|
|
1761
|
+
* @param {object} event Event object
|
|
1762
|
+
* @param {Grid.view.GridBase} event.source The grid instance
|
|
1763
|
+
* @param {Grid.column.Column} event.column The column
|
|
1764
|
+
* @param {boolean} event.collapsed `true` if the column is being collapsed, `false` if expanded
|
|
1765
|
+
*/
|
|
1766
|
+
@Output() onBeforeColumnCollapseToggle: any = new EventEmitter<((event: { source: GridBase, column: Column, collapsed: boolean }) => void)|string>();
|
|
1739
1767
|
/**
|
|
1740
1768
|
* This event is fired prior to starting a column drag gesture. The drag is canceled if a listener returns `false`.
|
|
1741
1769
|
* @param {object} event Event object
|
|
@@ -1846,18 +1874,18 @@ export class BryntumGridComponent implements OnInit, OnDestroy {
|
|
|
1846
1874
|
/**
|
|
1847
1875
|
* Fires before a row is rendered.
|
|
1848
1876
|
* @param {object} event Event object
|
|
1849
|
-
* @param {Grid.view.
|
|
1850
|
-
* @param {Grid.row.Row} event.row The row about to be rendered
|
|
1851
|
-
* @param {Core.data.Model} event.record The record for the row
|
|
1852
|
-
* @param {number} event.recordIndex The zero-based index of the record
|
|
1877
|
+
* @param {Grid.view.GridBase} event.source The firing Grid instance
|
|
1878
|
+
* @param {Grid.row.Row} event.row The row about to be rendered
|
|
1879
|
+
* @param {Core.data.Model} event.record The record for the row
|
|
1880
|
+
* @param {number} event.recordIndex The zero-based index of the record
|
|
1853
1881
|
*/
|
|
1854
|
-
@Output() onBeforeRenderRow: any = new EventEmitter<((event: { source:
|
|
1882
|
+
@Output() onBeforeRenderRow: any = new EventEmitter<((event: { source: GridBase, row: Row, record: Model, recordIndex: number }) => void)|string>();
|
|
1855
1883
|
/**
|
|
1856
1884
|
* Grid rows are about to be rendered
|
|
1857
1885
|
* @param {object} event Event object
|
|
1858
|
-
* @param {Grid.view.
|
|
1886
|
+
* @param {Grid.view.GridBase} event.source This grid.
|
|
1859
1887
|
*/
|
|
1860
|
-
@Output() onBeforeRenderRows: any = new EventEmitter<((event: { source:
|
|
1888
|
+
@Output() onBeforeRenderRows: any = new EventEmitter<((event: { source: GridBase }) => void)|string>();
|
|
1861
1889
|
/**
|
|
1862
1890
|
* This event fires before row collapse is started.
|
|
1863
1891
|
* ...
|
|
@@ -2088,6 +2116,14 @@ export class BryntumGridComponent implements OnInit, OnDestroy {
|
|
|
2088
2116
|
* @param {Core.data.Model} event.record The record which has been collapsed.
|
|
2089
2117
|
*/
|
|
2090
2118
|
@Output() onCollapseNode: any = new EventEmitter<((event: { source: Grid, record: Model }) => void)|string>();
|
|
2119
|
+
/**
|
|
2120
|
+
* This event is triggered after a parent column has been collapsed or expanded.
|
|
2121
|
+
* @param {object} event Event object
|
|
2122
|
+
* @param {Grid.view.GridBase} event.source The Grid instance
|
|
2123
|
+
* @param {Grid.column.Column} event.column The column being toggled
|
|
2124
|
+
* @param {boolean} event.collapsed `true` if the column is now collapsed, `false` if expanded
|
|
2125
|
+
*/
|
|
2126
|
+
@Output() onColumnCollapseToggle: any = new EventEmitter<((event: { source: GridBase, column: Column, collapsed: boolean }) => void)|string>();
|
|
2091
2127
|
/**
|
|
2092
2128
|
* This event is fired when a column is being dragged, and you can set the `valid` flag on the `context` object
|
|
2093
2129
|
* to indicate whether the drop position is valid or not.
|
|
@@ -2169,14 +2205,14 @@ export class BryntumGridComponent implements OnInit, OnDestroy {
|
|
|
2169
2205
|
* ...
|
|
2170
2206
|
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/Grid#event-dataChange)
|
|
2171
2207
|
* @param {object} event Event object
|
|
2172
|
-
* @param {Grid.view.
|
|
2208
|
+
* @param {Grid.view.GridBase} event.source Owning grid
|
|
2173
2209
|
* @param {Core.data.Store} event.store The originating store
|
|
2174
2210
|
* @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'`
|
|
2175
2211
|
* @param {Core.data.Model} event.record Changed record, for actions that affects exactly one record (`'update'`)
|
|
2176
2212
|
* @param {Core.data.Model[]} event.records Changed records, passed for all actions except `'removeAll'`
|
|
2177
2213
|
* @param {object} event.changes Passed for the `'update'` action, info on which record fields changed
|
|
2178
2214
|
*/
|
|
2179
|
-
@Output() onDataChange: any = new EventEmitter<((event: { source:
|
|
2215
|
+
@Output() onDataChange: any = new EventEmitter<((event: { source: GridBase, store: Store, action: 'remove'|'removeAll'|'add'|'clearchanges'|'filter'|'update'|'dataset'|'replace', record: Model, records: Model[], changes: object }) => void)|string>();
|
|
2180
2216
|
/**
|
|
2181
2217
|
* Fires when an object is destroyed.
|
|
2182
2218
|
* @param {object} event Event object
|
|
@@ -2484,18 +2520,18 @@ export class BryntumGridComponent implements OnInit, OnDestroy {
|
|
|
2484
2520
|
/**
|
|
2485
2521
|
* Fires after a row is rendered.
|
|
2486
2522
|
* @param {object} event Event object
|
|
2487
|
-
* @param {Grid.view.
|
|
2488
|
-
* @param {Grid.row.Row} event.row The row that has been rendered
|
|
2489
|
-
* @param {Core.data.Model} event.record The record for the row
|
|
2490
|
-
* @param {number} event.recordIndex The zero-based index of the record
|
|
2523
|
+
* @param {Grid.view.GridBase} event.source The firing Grid instance
|
|
2524
|
+
* @param {Grid.row.Row} event.row The row that has been rendered
|
|
2525
|
+
* @param {Core.data.Model} event.record The record for the row
|
|
2526
|
+
* @param {number} event.recordIndex The zero-based index of the record
|
|
2491
2527
|
*/
|
|
2492
|
-
@Output() onRenderRow: any = new EventEmitter<((event: { source:
|
|
2528
|
+
@Output() onRenderRow: any = new EventEmitter<((event: { source: GridBase, row: Row, record: Model, recordIndex: number }) => void)|string>();
|
|
2493
2529
|
/**
|
|
2494
2530
|
* Grid rows have been rendered
|
|
2495
2531
|
* @param {object} event Event object
|
|
2496
|
-
* @param {Grid.view.
|
|
2532
|
+
* @param {Grid.view.GridBase} event.source This grid.
|
|
2497
2533
|
*/
|
|
2498
|
-
@Output() onRenderRows: any = new EventEmitter<((event: { source:
|
|
2534
|
+
@Output() onRenderRows: any = new EventEmitter<((event: { source: GridBase }) => void)|string>();
|
|
2499
2535
|
/**
|
|
2500
2536
|
* 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`*.
|
|
2501
2537
|
* @param {object} event Event object
|
|
@@ -2555,10 +2591,10 @@ export class BryntumGridComponent implements OnInit, OnDestroy {
|
|
|
2555
2591
|
/**
|
|
2556
2592
|
* Grid has scrolled vertically
|
|
2557
2593
|
* @param {object} event Event object
|
|
2558
|
-
* @param {Grid.view.
|
|
2594
|
+
* @param {Grid.view.GridBase} event.source The firing Grid instance.
|
|
2559
2595
|
* @param {number} event.scrollTop The vertical scroll position.
|
|
2560
2596
|
*/
|
|
2561
|
-
@Output() onScroll: any = new EventEmitter<((event: { source:
|
|
2597
|
+
@Output() onScroll: any = new EventEmitter<((event: { source: GridBase, scrollTop: number }) => void)|string>();
|
|
2562
2598
|
/**
|
|
2563
2599
|
* The selection has been changed.
|
|
2564
2600
|
* @param {object} event Event object
|
|
@@ -2646,17 +2682,17 @@ export class BryntumGridComponent implements OnInit, OnDestroy {
|
|
|
2646
2682
|
/**
|
|
2647
2683
|
* Fires after a sub grid is collapsed.
|
|
2648
2684
|
* @param {object} event Event object
|
|
2649
|
-
* @param {Grid.view.
|
|
2685
|
+
* @param {Grid.view.GridBase} event.source The firing Grid instance
|
|
2650
2686
|
* @param {Grid.view.SubGrid} event.subGrid The sub grid instance
|
|
2651
2687
|
*/
|
|
2652
|
-
@Output() onSubGridCollapse: any = new EventEmitter<((event: { source:
|
|
2688
|
+
@Output() onSubGridCollapse: any = new EventEmitter<((event: { source: GridBase, subGrid: SubGrid }) => void)|string>();
|
|
2653
2689
|
/**
|
|
2654
2690
|
* Fires after a sub grid is expanded.
|
|
2655
2691
|
* @param {object} event Event object
|
|
2656
|
-
* @param {Grid.view.
|
|
2692
|
+
* @param {Grid.view.GridBase} event.source The firing Grid instance
|
|
2657
2693
|
* @param {Grid.view.SubGrid} event.subGrid The sub grid instance
|
|
2658
2694
|
*/
|
|
2659
|
-
@Output() onSubGridExpand: any = new EventEmitter<((event: { source:
|
|
2695
|
+
@Output() onSubGridExpand: any = new EventEmitter<((event: { source: GridBase, subGrid: SubGrid }) => void)|string>();
|
|
2660
2696
|
/**
|
|
2661
2697
|
* Fired when one or more groups are expanded or collapsed
|
|
2662
2698
|
* @param {object} event Event object
|