@bryntum/grid-angular-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.
Files changed (36) hide show
  1. package/README.md +16 -10
  2. package/bundles/bryntum-grid-angular-thin.umd.js +149 -54
  3. package/bundles/bryntum-grid-angular-thin.umd.js.map +1 -1
  4. package/esm2015/lib/bryntum-a-i-filter-field.component.js +1 -1
  5. package/esm2015/lib/bryntum-checklist-filter-combo.component.js +1 -1
  6. package/esm2015/lib/bryntum-grid-base.component.js +45 -16
  7. package/esm2015/lib/bryntum-grid-chart-designer.component.js +1 -1
  8. package/esm2015/lib/bryntum-grid-field-filter-picker-group.component.js +6 -2
  9. package/esm2015/lib/bryntum-grid-field-filter-picker.component.js +6 -2
  10. package/esm2015/lib/bryntum-grid.component.js +45 -16
  11. package/esm2015/lib/bryntum-group-bar.component.js +8 -8
  12. package/esm2015/lib/bryntum-tree-combo.component.js +1 -1
  13. package/esm2015/lib/bryntum-tree-grid.component.js +45 -16
  14. package/fesm2015/bryntum-grid-angular-thin.js +149 -54
  15. package/fesm2015/bryntum-grid-angular-thin.js.map +1 -1
  16. package/lib/bryntum-a-i-filter-field.component.d.ts +3 -3
  17. package/lib/bryntum-checklist-filter-combo.component.d.ts +3 -3
  18. package/lib/bryntum-grid-base.component.d.ts +50 -19
  19. package/lib/bryntum-grid-chart-designer.component.d.ts +3 -3
  20. package/lib/bryntum-grid-field-filter-picker-group.component.d.ts +9 -4
  21. package/lib/bryntum-grid-field-filter-picker.component.d.ts +9 -4
  22. package/lib/bryntum-grid.component.d.ts +50 -19
  23. package/lib/bryntum-group-bar.component.d.ts +6 -6
  24. package/lib/bryntum-tree-combo.component.d.ts +3 -3
  25. package/lib/bryntum-tree-grid.component.d.ts +50 -19
  26. package/package.json +1 -1
  27. package/src/lib/bryntum-a-i-filter-field.component.ts +3 -3
  28. package/src/lib/bryntum-checklist-filter-combo.component.ts +3 -3
  29. package/src/lib/bryntum-grid-base.component.ts +62 -26
  30. package/src/lib/bryntum-grid-chart-designer.component.ts +3 -3
  31. package/src/lib/bryntum-grid-field-filter-picker-group.component.ts +10 -3
  32. package/src/lib/bryntum-grid-field-filter-picker.component.ts +10 -3
  33. package/src/lib/bryntum-grid.component.ts +62 -26
  34. package/src/lib/bryntum-group-bar.component.ts +102 -102
  35. package/src/lib/bryntum-tree-combo.component.ts +3 -3
  36. package/src/lib/bryntum-tree-grid.component.ts +62 -26
@@ -7,8 +7,8 @@ import { Component, ElementRef, EventEmitter, Output, Input, SimpleChange, Simpl
7
7
 
8
8
  import WrapperHelper from './wrapper.helper';
9
9
 
10
- 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';
11
- 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';
10
+ 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';
11
+ 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';
12
12
 
13
13
  import { StringHelper } from '@bryntum/core-thin';
14
14
 
@@ -83,6 +83,10 @@ export type BryntumTreeGridProps = {
83
83
  * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/TreeGrid#config-bodyCls)
84
84
  */
85
85
  bodyCls ? : string|object
86
+ /**
87
+ * Set `true` to add a border to this container's element.
88
+ */
89
+ border ? : boolean
86
90
  /**
87
91
  * An object where property names with a truthy value indicate which events should bubble up the ownership
88
92
  * hierarchy when triggered.
@@ -134,7 +138,7 @@ export type BryntumTreeGridProps = {
134
138
  * ...
135
139
  * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/TreeGrid#config-color)
136
140
  */
137
- color ? : string
141
+ color ? : Color
138
142
  /**
139
143
  * Programmatic control over which column to start in when used in a grid layout.
140
144
  */
@@ -756,6 +760,15 @@ export type BryntumTreeGridProps = {
756
760
  width ? : string|number
757
761
 
758
762
  // Features
763
+ /**
764
+ * This feature provides an AI agent for Grid. It provides a chat panel that allows the user to send messages to the
765
+ * agent and see the responses. Which allows the user to use natural language to interact with the Grid in different
766
+ * ways. For example, the user can ask the agent to filter the data, sort it, or select specific records. The agent can
767
+ * also perform data manipulation operations such as adding, updating, deleting records.
768
+ * ...
769
+ * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/feature/AI)
770
+ */
771
+ aiFeature ? : object|boolean|string|AI|AIConfig
759
772
  /**
760
773
  * AI-powered filter feature for Grid. Allows users to type natural language queries to filter grid data.
761
774
  * ...
@@ -1054,6 +1067,7 @@ export class BryntumTreeGridComponent implements OnInit, OnDestroy {
1054
1067
  'onBeforeCellEditStart',
1055
1068
  'onBeforeCellRangeDelete',
1056
1069
  'onBeforeCellRangeEdit',
1070
+ 'onBeforeColumnCollapseToggle',
1057
1071
  'onBeforeColumnDragStart',
1058
1072
  'onBeforeColumnDropFinalize',
1059
1073
  'onBeforeColumnResize',
@@ -1094,6 +1108,7 @@ export class BryntumTreeGridComponent implements OnInit, OnDestroy {
1094
1108
  'onCellMouseOver',
1095
1109
  'onCollapse',
1096
1110
  'onCollapseNode',
1111
+ 'onColumnCollapseToggle',
1097
1112
  'onColumnDrag',
1098
1113
  'onColumnDragStart',
1099
1114
  'onColumnDrop',
@@ -1168,6 +1183,7 @@ export class BryntumTreeGridComponent implements OnInit, OnDestroy {
1168
1183
  ];
1169
1184
 
1170
1185
  private static bryntumFeatureNames: string[] = [
1186
+ 'aiFeature',
1171
1187
  'aiFilterFeature',
1172
1188
  'cellCopyPasteFeature',
1173
1189
  'cellEditFeature',
@@ -1222,6 +1238,7 @@ export class BryntumTreeGridComponent implements OnInit, OnDestroy {
1222
1238
  'autoHeight',
1223
1239
  'bbar',
1224
1240
  'bodyCls',
1241
+ 'border',
1225
1242
  'bubbleEvents',
1226
1243
  'callOnFunctions',
1227
1244
  'catchEventHandlerExceptions',
@@ -1343,6 +1360,7 @@ export class BryntumTreeGridComponent implements OnInit, OnDestroy {
1343
1360
  'autoHeight',
1344
1361
  'bbar',
1345
1362
  'bodyCls',
1363
+ 'border',
1346
1364
  'bubbleEvents',
1347
1365
  'collapsible',
1348
1366
  'color',
@@ -1497,9 +1515,10 @@ export class BryntumTreeGridComponent implements OnInit, OnDestroy {
1497
1515
  @Input() autoHeight ! : boolean;
1498
1516
  @Input() bbar ! : (GridContainerItemConfig|string)[]|ToolbarConfig|PagingToolbarConfig|null;
1499
1517
  @Input() bodyCls ! : string|object;
1518
+ @Input() border ! : boolean;
1500
1519
  @Input() bubbleEvents ! : object;
1501
1520
  @Input() collapsible ! : boolean|PanelCollapserConfig|PanelCollapserOverlayConfig;
1502
- @Input() color ! : string;
1521
+ @Input() color ! : Color;
1503
1522
  @Input() config ! : object;
1504
1523
  @Input() contentElementCls ! : string|object;
1505
1524
  @Input() contextMenuTriggerEvent ! : 'contextmenu'|'click'|'dblclick';
@@ -1656,6 +1675,7 @@ export class BryntumTreeGridComponent implements OnInit, OnDestroy {
1656
1675
  @Input() tooltip ! : string|TooltipConfig;
1657
1676
 
1658
1677
  // Features
1678
+ @Input() aiFeature ! : object|boolean|string|AI|AIConfig;
1659
1679
  @Input() aiFilterFeature ! : object|boolean|string|AIFilter|AIFilterConfig;
1660
1680
  @Input() cellCopyPasteFeature ! : object|boolean|string|CellCopyPaste|CellCopyPasteConfig;
1661
1681
  @Input() cellEditFeature ! : object|boolean|string|CellEdit|CellEditConfig;
@@ -1737,6 +1757,14 @@ export class BryntumTreeGridComponent implements OnInit, OnDestroy {
1737
1757
  * @param {any} event.value The value being set
1738
1758
  */
1739
1759
  @Output() onBeforeCellRangeEdit: any = new EventEmitter<((event: { record: Model, field: string, value: any }) => Promise<boolean>|boolean|void)|string>();
1760
+ /**
1761
+ * This event is triggered before a parent column is collapsed or expanded.
1762
+ * @param {object} event Event object
1763
+ * @param {Grid.view.GridBase} event.source The grid instance
1764
+ * @param {Grid.column.Column} event.column The column
1765
+ * @param {boolean} event.collapsed `true` if the column is being collapsed, `false` if expanded
1766
+ */
1767
+ @Output() onBeforeColumnCollapseToggle: any = new EventEmitter<((event: { source: GridBase, column: Column, collapsed: boolean }) => void)|string>();
1740
1768
  /**
1741
1769
  * This event is fired prior to starting a column drag gesture. The drag is canceled if a listener returns `false`.
1742
1770
  * @param {object} event Event object
@@ -1847,18 +1875,18 @@ export class BryntumTreeGridComponent implements OnInit, OnDestroy {
1847
1875
  /**
1848
1876
  * Fires before a row is rendered.
1849
1877
  * @param {object} event Event object
1850
- * @param {Grid.view.Grid} event.source The firing Grid instance.
1851
- * @param {Grid.row.Row} event.row The row about to be rendered.
1852
- * @param {Core.data.Model} event.record The record for the row.
1853
- * @param {number} event.recordIndex The zero-based index of the record.
1878
+ * @param {Grid.view.GridBase} event.source The firing Grid instance
1879
+ * @param {Grid.row.Row} event.row The row about to be rendered
1880
+ * @param {Core.data.Model} event.record The record for the row
1881
+ * @param {number} event.recordIndex The zero-based index of the record
1854
1882
  */
1855
- @Output() onBeforeRenderRow: any = new EventEmitter<((event: { source: Grid, row: Row, record: Model, recordIndex: number }) => void)|string>();
1883
+ @Output() onBeforeRenderRow: any = new EventEmitter<((event: { source: GridBase, row: Row, record: Model, recordIndex: number }) => void)|string>();
1856
1884
  /**
1857
1885
  * Grid rows are about to be rendered
1858
1886
  * @param {object} event Event object
1859
- * @param {Grid.view.Grid} event.source This grid.
1887
+ * @param {Grid.view.GridBase} event.source This grid.
1860
1888
  */
1861
- @Output() onBeforeRenderRows: any = new EventEmitter<((event: { source: Grid }) => void)|string>();
1889
+ @Output() onBeforeRenderRows: any = new EventEmitter<((event: { source: GridBase }) => void)|string>();
1862
1890
  /**
1863
1891
  * This event fires before row collapse is started.
1864
1892
  * ...
@@ -2089,6 +2117,14 @@ export class BryntumTreeGridComponent implements OnInit, OnDestroy {
2089
2117
  * @param {Core.data.Model} event.record The record which has been collapsed.
2090
2118
  */
2091
2119
  @Output() onCollapseNode: any = new EventEmitter<((event: { source: Grid, record: Model }) => void)|string>();
2120
+ /**
2121
+ * This event is triggered after a parent column has been collapsed or expanded.
2122
+ * @param {object} event Event object
2123
+ * @param {Grid.view.GridBase} event.source The Grid instance
2124
+ * @param {Grid.column.Column} event.column The column being toggled
2125
+ * @param {boolean} event.collapsed `true` if the column is now collapsed, `false` if expanded
2126
+ */
2127
+ @Output() onColumnCollapseToggle: any = new EventEmitter<((event: { source: GridBase, column: Column, collapsed: boolean }) => void)|string>();
2092
2128
  /**
2093
2129
  * This event is fired when a column is being dragged, and you can set the `valid` flag on the `context` object
2094
2130
  * to indicate whether the drop position is valid or not.
@@ -2170,14 +2206,14 @@ export class BryntumTreeGridComponent implements OnInit, OnDestroy {
2170
2206
  * ...
2171
2207
  * [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/TreeGrid#event-dataChange)
2172
2208
  * @param {object} event Event object
2173
- * @param {Grid.view.Grid} event.source Owning grid
2209
+ * @param {Grid.view.GridBase} event.source Owning grid
2174
2210
  * @param {Core.data.Store} event.store The originating store
2175
2211
  * @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'`
2176
2212
  * @param {Core.data.Model} event.record Changed record, for actions that affects exactly one record (`'update'`)
2177
2213
  * @param {Core.data.Model[]} event.records Changed records, passed for all actions except `'removeAll'`
2178
2214
  * @param {object} event.changes Passed for the `'update'` action, info on which record fields changed
2179
2215
  */
2180
- @Output() onDataChange: any = new EventEmitter<((event: { source: Grid, store: Store, action: 'remove'|'removeAll'|'add'|'clearchanges'|'filter'|'update'|'dataset'|'replace', record: Model, records: Model[], changes: object }) => void)|string>();
2216
+ @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>();
2181
2217
  /**
2182
2218
  * Fires when an object is destroyed.
2183
2219
  * @param {object} event Event object
@@ -2485,18 +2521,18 @@ export class BryntumTreeGridComponent implements OnInit, OnDestroy {
2485
2521
  /**
2486
2522
  * Fires after a row is rendered.
2487
2523
  * @param {object} event Event object
2488
- * @param {Grid.view.Grid} event.source The firing Grid instance.
2489
- * @param {Grid.row.Row} event.row The row that has been rendered.
2490
- * @param {Core.data.Model} event.record The record for the row.
2491
- * @param {number} event.recordIndex The zero-based index of the record.
2524
+ * @param {Grid.view.GridBase} event.source The firing Grid instance
2525
+ * @param {Grid.row.Row} event.row The row that has been rendered
2526
+ * @param {Core.data.Model} event.record The record for the row
2527
+ * @param {number} event.recordIndex The zero-based index of the record
2492
2528
  */
2493
- @Output() onRenderRow: any = new EventEmitter<((event: { source: Grid, row: Row, record: Model, recordIndex: number }) => void)|string>();
2529
+ @Output() onRenderRow: any = new EventEmitter<((event: { source: GridBase, row: Row, record: Model, recordIndex: number }) => void)|string>();
2494
2530
  /**
2495
2531
  * Grid rows have been rendered
2496
2532
  * @param {object} event Event object
2497
- * @param {Grid.view.Grid} event.source This grid.
2533
+ * @param {Grid.view.GridBase} event.source This grid.
2498
2534
  */
2499
- @Output() onRenderRows: any = new EventEmitter<((event: { source: Grid }) => void)|string>();
2535
+ @Output() onRenderRows: any = new EventEmitter<((event: { source: GridBase }) => void)|string>();
2500
2536
  /**
2501
2537
  * 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`*.
2502
2538
  * @param {object} event Event object
@@ -2556,10 +2592,10 @@ export class BryntumTreeGridComponent implements OnInit, OnDestroy {
2556
2592
  /**
2557
2593
  * Grid has scrolled vertically
2558
2594
  * @param {object} event Event object
2559
- * @param {Grid.view.Grid} event.source The firing Grid instance.
2595
+ * @param {Grid.view.GridBase} event.source The firing Grid instance.
2560
2596
  * @param {number} event.scrollTop The vertical scroll position.
2561
2597
  */
2562
- @Output() onScroll: any = new EventEmitter<((event: { source: Grid, scrollTop: number }) => void)|string>();
2598
+ @Output() onScroll: any = new EventEmitter<((event: { source: GridBase, scrollTop: number }) => void)|string>();
2563
2599
  /**
2564
2600
  * The selection has been changed.
2565
2601
  * @param {object} event Event object
@@ -2647,17 +2683,17 @@ export class BryntumTreeGridComponent implements OnInit, OnDestroy {
2647
2683
  /**
2648
2684
  * Fires after a sub grid is collapsed.
2649
2685
  * @param {object} event Event object
2650
- * @param {Grid.view.Grid} event.source The firing Grid instance
2686
+ * @param {Grid.view.GridBase} event.source The firing Grid instance
2651
2687
  * @param {Grid.view.SubGrid} event.subGrid The sub grid instance
2652
2688
  */
2653
- @Output() onSubGridCollapse: any = new EventEmitter<((event: { source: Grid, subGrid: SubGrid }) => void)|string>();
2689
+ @Output() onSubGridCollapse: any = new EventEmitter<((event: { source: GridBase, subGrid: SubGrid }) => void)|string>();
2654
2690
  /**
2655
2691
  * Fires after a sub grid is expanded.
2656
2692
  * @param {object} event Event object
2657
- * @param {Grid.view.Grid} event.source The firing Grid instance
2693
+ * @param {Grid.view.GridBase} event.source The firing Grid instance
2658
2694
  * @param {Grid.view.SubGrid} event.subGrid The sub grid instance
2659
2695
  */
2660
- @Output() onSubGridExpand: any = new EventEmitter<((event: { source: Grid, subGrid: SubGrid }) => void)|string>();
2696
+ @Output() onSubGridExpand: any = new EventEmitter<((event: { source: GridBase, subGrid: SubGrid }) => void)|string>();
2661
2697
  /**
2662
2698
  * Fired when one or more groups are expanded or collapsed
2663
2699
  * @param {object} event Event object