@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.
- package/README.md +16 -10
- package/bundles/bryntum-grid-angular-thin.umd.js +149 -54
- package/bundles/bryntum-grid-angular-thin.umd.js.map +1 -1
- package/esm2015/lib/bryntum-a-i-filter-field.component.js +1 -1
- package/esm2015/lib/bryntum-checklist-filter-combo.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-tree-combo.component.js +1 -1
- package/esm2015/lib/bryntum-tree-grid.component.js +45 -16
- package/fesm2015/bryntum-grid-angular-thin.js +149 -54
- package/fesm2015/bryntum-grid-angular-thin.js.map +1 -1
- package/lib/bryntum-a-i-filter-field.component.d.ts +3 -3
- package/lib/bryntum-checklist-filter-combo.component.d.ts +3 -3
- package/lib/bryntum-grid-base.component.d.ts +50 -19
- 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 +50 -19
- package/lib/bryntum-group-bar.component.d.ts +6 -6
- package/lib/bryntum-tree-combo.component.d.ts +3 -3
- package/lib/bryntum-tree-grid.component.d.ts +50 -19
- package/package.json +1 -1
- package/src/lib/bryntum-a-i-filter-field.component.ts +3 -3
- package/src/lib/bryntum-checklist-filter-combo.component.ts +3 -3
- package/src/lib/bryntum-grid-base.component.ts +62 -26
- 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 +62 -26
- package/src/lib/bryntum-group-bar.component.ts +102 -102
- package/src/lib/bryntum-tree-combo.component.ts +3 -3
- 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, GridListeners, 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';
|
|
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, GridListeners, 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';
|
|
12
12
|
|
|
13
13
|
import { StringHelper } from '@bryntum/core-thin';
|
|
14
14
|
|
|
@@ -83,6 +83,10 @@ export type BryntumGridProps = {
|
|
|
83
83
|
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/Grid#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 BryntumGridProps = {
|
|
|
134
138
|
* ...
|
|
135
139
|
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/Grid#config-color)
|
|
136
140
|
*/
|
|
137
|
-
color ? :
|
|
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 BryntumGridProps = {
|
|
|
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 BryntumGridComponent 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 BryntumGridComponent 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 BryntumGridComponent 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 BryntumGridComponent 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 BryntumGridComponent 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 BryntumGridComponent 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 ! :
|
|
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 BryntumGridComponent 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 BryntumGridComponent 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 BryntumGridComponent implements OnInit, OnDestroy {
|
|
|
1847
1875
|
/**
|
|
1848
1876
|
* Fires before a row is rendered.
|
|
1849
1877
|
* @param {object} event Event object
|
|
1850
|
-
* @param {Grid.view.
|
|
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:
|
|
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.
|
|
1887
|
+
* @param {Grid.view.GridBase} event.source This grid.
|
|
1860
1888
|
*/
|
|
1861
|
-
@Output() onBeforeRenderRows: any = new EventEmitter<((event: { source:
|
|
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 BryntumGridComponent 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 BryntumGridComponent implements OnInit, OnDestroy {
|
|
|
2170
2206
|
* ...
|
|
2171
2207
|
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/view/Grid#event-dataChange)
|
|
2172
2208
|
* @param {object} event Event object
|
|
2173
|
-
* @param {Grid.view.
|
|
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:
|
|
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 BryntumGridComponent implements OnInit, OnDestroy {
|
|
|
2485
2521
|
/**
|
|
2486
2522
|
* Fires after a row is rendered.
|
|
2487
2523
|
* @param {object} event Event object
|
|
2488
|
-
* @param {Grid.view.
|
|
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:
|
|
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.
|
|
2533
|
+
* @param {Grid.view.GridBase} event.source This grid.
|
|
2498
2534
|
*/
|
|
2499
|
-
@Output() onRenderRows: any = new EventEmitter<((event: { source:
|
|
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 BryntumGridComponent implements OnInit, OnDestroy {
|
|
|
2556
2592
|
/**
|
|
2557
2593
|
* Grid has scrolled vertically
|
|
2558
2594
|
* @param {object} event Event object
|
|
2559
|
-
* @param {Grid.view.
|
|
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:
|
|
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 BryntumGridComponent 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.
|
|
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:
|
|
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.
|
|
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:
|
|
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
|
|
@@ -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, Collection, CollectionConfig, DomConfig, KeyMapConfig, List, MaskConfig, Model, ModelConfig, Rectangle, Scroller, ScrollerConfig, Store, StoreConfig, TabConfig, TooltipConfig, VueConfig, Widget } from '@bryntum/core-thin';
|
|
10
|
+
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';
|
|
11
11
|
import { GroupBar, GroupBarListeners } from '@bryntum/grid-thin';
|
|
12
12
|
|
|
13
13
|
import { StringHelper } from '@bryntum/core-thin';
|
|
@@ -127,7 +127,7 @@ export type BryntumGroupBarProps = {
|
|
|
127
127
|
* ...
|
|
128
128
|
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/GroupBar#config-color)
|
|
129
129
|
*/
|
|
130
|
-
color ? :
|
|
130
|
+
color ? : Color
|
|
131
131
|
/**
|
|
132
132
|
* Programmatic control over which column to start in when used in a grid layout.
|
|
133
133
|
*/
|
|
@@ -734,13 +734,11 @@ export class BryntumGroupBarComponent implements OnInit, OnDestroy {
|
|
|
734
734
|
'activateOnMouseover',
|
|
735
735
|
'adopt',
|
|
736
736
|
'align',
|
|
737
|
-
'allowGroupSelect',
|
|
738
737
|
'anchor',
|
|
739
738
|
'ariaDescription',
|
|
740
739
|
'ariaLabel',
|
|
741
740
|
'bubbleEvents',
|
|
742
741
|
'centered',
|
|
743
|
-
'clearSelectionOnEmptySpaceClick',
|
|
744
742
|
'closable',
|
|
745
743
|
'closeHandler',
|
|
746
744
|
'color',
|
|
@@ -793,10 +791,12 @@ export class BryntumGroupBarComponent implements OnInit, OnDestroy {
|
|
|
793
791
|
|
|
794
792
|
private static bryntumProps: string[] = BryntumGroupBarComponent.bryntumFeatureNames.concat([
|
|
795
793
|
'alignSelf',
|
|
794
|
+
'allowGroupSelect',
|
|
796
795
|
'anchorSize',
|
|
797
796
|
'appendTo',
|
|
798
797
|
'callOnFunctions',
|
|
799
798
|
'catchEventHandlerExceptions',
|
|
799
|
+
'clearSelectionOnEmptySpaceClick',
|
|
800
800
|
'cls',
|
|
801
801
|
'collapsibleGroups',
|
|
802
802
|
'column',
|
|
@@ -854,115 +854,115 @@ export class BryntumGroupBarComponent implements OnInit, OnDestroy {
|
|
|
854
854
|
}
|
|
855
855
|
|
|
856
856
|
// Configs only
|
|
857
|
-
@Input() activateOnMouseover
|
|
858
|
-
@Input() adopt
|
|
859
|
-
@Input() align
|
|
860
|
-
@Input()
|
|
861
|
-
@Input()
|
|
862
|
-
@Input()
|
|
863
|
-
@Input()
|
|
864
|
-
@Input()
|
|
865
|
-
@Input()
|
|
866
|
-
@Input()
|
|
867
|
-
@Input()
|
|
868
|
-
@Input()
|
|
869
|
-
@Input()
|
|
870
|
-
@Input()
|
|
871
|
-
@Input()
|
|
872
|
-
@Input()
|
|
873
|
-
@Input()
|
|
874
|
-
@Input()
|
|
875
|
-
@Input()
|
|
876
|
-
@Input()
|
|
877
|
-
@Input() dock ! : 'top'|'bottom'|'left'|'right'|'start'|'end'|'header'|'pre-header'|object;
|
|
878
|
-
@Input() draggable ! : boolean|{
|
|
857
|
+
@Input() activateOnMouseover ! : boolean;
|
|
858
|
+
@Input() adopt ! : HTMLElement|string;
|
|
859
|
+
@Input() align ! : AlignSpec|string;
|
|
860
|
+
@Input() anchor ! : boolean;
|
|
861
|
+
@Input() ariaDescription ! : string;
|
|
862
|
+
@Input() ariaLabel ! : string;
|
|
863
|
+
@Input() bubbleEvents ! : object;
|
|
864
|
+
@Input() centered ! : boolean;
|
|
865
|
+
@Input() closable ! : boolean;
|
|
866
|
+
@Input() closeHandler ! : string|(() => void);
|
|
867
|
+
@Input() color ! : Color;
|
|
868
|
+
@Input() config ! : object;
|
|
869
|
+
@Input() constrainTo ! : HTMLElement|Widget|Rectangle;
|
|
870
|
+
@Input() contentElementCls ! : string|object;
|
|
871
|
+
@Input() dataField ! : string;
|
|
872
|
+
@Input() defaultBindProperty ! : string;
|
|
873
|
+
@Input() detectCSSCompatibilityIssues ! : boolean;
|
|
874
|
+
@Input() displayField ! : string;
|
|
875
|
+
@Input() dock ! : 'top'|'bottom'|'left'|'right'|'start'|'end'|'header'|'pre-header'|object;
|
|
876
|
+
@Input() draggable ! : boolean|{
|
|
879
877
|
handleSelector?: string
|
|
880
878
|
};
|
|
881
|
-
@Input() elementAttributes
|
|
882
|
-
@Input() floating
|
|
883
|
-
@Input() getItemCls
|
|
884
|
-
@Input() getItemStyle
|
|
885
|
-
@Input() groupHeaderTpl
|
|
886
|
-
@Input() hideAnimation
|
|
887
|
-
@Input() htmlCls
|
|
888
|
-
@Input() iconTpl
|
|
889
|
-
@Input() ignoreParentReadOnly
|
|
890
|
-
@Input() isSelectable
|
|
891
|
-
@Input() itemTpl
|
|
892
|
-
@Input() listeners
|
|
893
|
-
@Input() localeClass
|
|
894
|
-
@Input() localizable
|
|
895
|
-
@Input() localizableProperties
|
|
896
|
-
@Input() maskDefaults
|
|
897
|
-
@Input() masked
|
|
898
|
-
@Input() monitorResize
|
|
879
|
+
@Input() elementAttributes ! : Record<string, string|null>;
|
|
880
|
+
@Input() floating ! : boolean;
|
|
881
|
+
@Input() getItemCls ! : ((record: Model) => string)|string;
|
|
882
|
+
@Input() getItemStyle ! : ((record: Model) => string)|string;
|
|
883
|
+
@Input() groupHeaderTpl ! : (record: Model, groupName: string) => string;
|
|
884
|
+
@Input() hideAnimation ! : boolean|object;
|
|
885
|
+
@Input() htmlCls ! : string|object;
|
|
886
|
+
@Input() iconTpl ! : (record: Model) => DomConfig|string|void;
|
|
887
|
+
@Input() ignoreParentReadOnly ! : boolean;
|
|
888
|
+
@Input() isSelectable ! : (() => boolean)|string;
|
|
889
|
+
@Input() itemTpl ! : ((record: Model) => string)|string;
|
|
890
|
+
@Input() listeners ! : GroupBarListeners;
|
|
891
|
+
@Input() localeClass ! : typeof Base;
|
|
892
|
+
@Input() localizable ! : boolean;
|
|
893
|
+
@Input() localizableProperties ! : string[];
|
|
894
|
+
@Input() maskDefaults ! : MaskConfig;
|
|
895
|
+
@Input() masked ! : boolean|string|MaskConfig;
|
|
896
|
+
@Input() monitorResize ! : boolean|{
|
|
899
897
|
immediate?: boolean
|
|
900
898
|
};
|
|
901
|
-
@Input() owner
|
|
902
|
-
@Input() positioned
|
|
903
|
-
@Input() preventTooltipOnTouch
|
|
904
|
-
@Input() relayStoreEvents
|
|
905
|
-
@Input() ripple
|
|
899
|
+
@Input() owner ! : Widget|any;
|
|
900
|
+
@Input() positioned ! : boolean;
|
|
901
|
+
@Input() preventTooltipOnTouch ! : boolean;
|
|
902
|
+
@Input() relayStoreEvents ! : boolean;
|
|
903
|
+
@Input() ripple ! : boolean|{
|
|
906
904
|
delegate?: string
|
|
907
905
|
color?: string
|
|
908
906
|
radius?: number
|
|
909
907
|
clip?: string
|
|
910
908
|
};
|
|
911
|
-
@Input() rootElement
|
|
912
|
-
@Input() scrollAction
|
|
913
|
-
@Input() selectAllItem
|
|
914
|
-
@Input() showAnimation
|
|
915
|
-
@Input() showTooltipWhenDisabled
|
|
916
|
-
@Input() tab
|
|
917
|
-
@Input() tag
|
|
918
|
-
@Input() textAlign
|
|
919
|
-
@Input() tooltipTemplate
|
|
920
|
-
@Input() type
|
|
921
|
-
@Input() ui
|
|
922
|
-
@Input() virtualize
|
|
923
|
-
@Input() weight
|
|
909
|
+
@Input() rootElement ! : ShadowRoot|HTMLElement;
|
|
910
|
+
@Input() scrollAction ! : 'hide'|'realign'|null;
|
|
911
|
+
@Input() selectAllItem ! : boolean|string;
|
|
912
|
+
@Input() showAnimation ! : boolean|object;
|
|
913
|
+
@Input() showTooltipWhenDisabled ! : boolean;
|
|
914
|
+
@Input() tab ! : boolean|TabConfig;
|
|
915
|
+
@Input() tag ! : string;
|
|
916
|
+
@Input() textAlign ! : 'left'|'center'|'right'|'start'|'end';
|
|
917
|
+
@Input() tooltipTemplate ! : (record: Model) => string;
|
|
918
|
+
@Input() type ! : 'groupbar';
|
|
919
|
+
@Input() ui ! : string|object;
|
|
920
|
+
@Input() virtualize ! : boolean|number;
|
|
921
|
+
@Input() weight ! : number;
|
|
924
922
|
|
|
925
923
|
// Configs and properties
|
|
926
|
-
@Input() alignSelf
|
|
927
|
-
@Input()
|
|
928
|
-
@Input()
|
|
929
|
-
@Input()
|
|
930
|
-
@Input()
|
|
931
|
-
@Input()
|
|
932
|
-
@Input()
|
|
933
|
-
@Input()
|
|
934
|
-
@Input()
|
|
935
|
-
@Input()
|
|
936
|
-
@Input()
|
|
937
|
-
@Input()
|
|
938
|
-
@Input()
|
|
939
|
-
@Input()
|
|
940
|
-
@Input()
|
|
941
|
-
@Input()
|
|
942
|
-
@Input()
|
|
943
|
-
@Input()
|
|
944
|
-
@Input()
|
|
945
|
-
@Input()
|
|
946
|
-
@Input()
|
|
947
|
-
@Input()
|
|
948
|
-
@Input()
|
|
949
|
-
@Input()
|
|
950
|
-
@Input()
|
|
951
|
-
@Input()
|
|
952
|
-
@Input()
|
|
953
|
-
@Input()
|
|
954
|
-
@Input()
|
|
955
|
-
@Input()
|
|
956
|
-
@Input()
|
|
957
|
-
@Input()
|
|
958
|
-
@Input()
|
|
959
|
-
@Input()
|
|
960
|
-
@Input()
|
|
961
|
-
@Input()
|
|
962
|
-
@Input()
|
|
963
|
-
@Input()
|
|
964
|
-
@Input()
|
|
965
|
-
@Input()
|
|
924
|
+
@Input() alignSelf ! : string;
|
|
925
|
+
@Input() allowGroupSelect ! : boolean;
|
|
926
|
+
@Input() appendTo ! : HTMLElement|string;
|
|
927
|
+
@Input() callOnFunctions ! : boolean;
|
|
928
|
+
@Input() catchEventHandlerExceptions ! : boolean;
|
|
929
|
+
@Input() clearSelectionOnEmptySpaceClick ! : boolean;
|
|
930
|
+
@Input() cls ! : string|object;
|
|
931
|
+
@Input() collapsibleGroups ! : boolean;
|
|
932
|
+
@Input() column ! : number;
|
|
933
|
+
@Input() content ! : string;
|
|
934
|
+
@Input() dataset ! : object|Record<string, string>;
|
|
935
|
+
@Input() disabled ! : boolean|'inert';
|
|
936
|
+
@Input() emptyText ! : string;
|
|
937
|
+
@Input() extraData ! : any;
|
|
938
|
+
@Input() flex ! : number|string;
|
|
939
|
+
@Input() height ! : number|string;
|
|
940
|
+
@Input() hidden ! : boolean;
|
|
941
|
+
@Input() html ! : string|((widget: Widget) => string)|DomConfig|DomConfig[]|VueConfig;
|
|
942
|
+
@Input() id ! : string;
|
|
943
|
+
@Input() insertBefore ! : HTMLElement|string;
|
|
944
|
+
@Input() insertFirst ! : HTMLElement|string;
|
|
945
|
+
@Input() items ! : object[];
|
|
946
|
+
@Input() keyMap ! : Record<string, KeyMapConfig>;
|
|
947
|
+
@Input() margin ! : number|string;
|
|
948
|
+
@Input() maxHeight ! : string|number;
|
|
949
|
+
@Input() maximizeOnMobile ! : number|string;
|
|
950
|
+
@Input() maxWidth ! : string|number;
|
|
951
|
+
@Input() minHeight ! : string|number;
|
|
952
|
+
@Input() minWidth ! : string|number;
|
|
953
|
+
@Input() multiSelect ! : boolean;
|
|
954
|
+
@Input() readOnly ! : boolean;
|
|
955
|
+
@Input() rtl ! : boolean;
|
|
956
|
+
@Input() scrollable ! : Scroller|boolean|ScrollerConfig;
|
|
957
|
+
@Input() selected ! : Model|Model[]|string|string[]|number|number[]|Collection|object[]|CollectionConfig|ModelConfig[]|CollectionConfig[];
|
|
958
|
+
@Input() span ! : number;
|
|
959
|
+
@Input() store ! : object|object[]|StoreConfig|Store|StoreConfig[];
|
|
960
|
+
@Input() title ! : string;
|
|
961
|
+
@Input() toggleAllIfCtrlPressed ! : boolean;
|
|
962
|
+
@Input() tooltip ! : string|TooltipConfig|null;
|
|
963
|
+
@Input() width ! : number|string;
|
|
964
|
+
@Input() x ! : number;
|
|
965
|
+
@Input() y ! : number;
|
|
966
966
|
|
|
967
967
|
// Properties only
|
|
968
968
|
@Input() anchorSize ! : number[];
|
|
@@ -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, 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';
|
|
10
|
+
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';
|
|
11
11
|
import { GridContainerItemConfig, TreeCombo, TreeComboListeners } from '@bryntum/grid-thin';
|
|
12
12
|
|
|
13
13
|
import { StringHelper } from '@bryntum/core-thin';
|
|
@@ -148,7 +148,7 @@ export type BryntumTreeComboProps = {
|
|
|
148
148
|
* ...
|
|
149
149
|
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-color)
|
|
150
150
|
*/
|
|
151
|
-
color ? :
|
|
151
|
+
color ? : Color
|
|
152
152
|
/**
|
|
153
153
|
* Programmatic control over which column to start in when used in a grid layout.
|
|
154
154
|
*/
|
|
@@ -1220,7 +1220,7 @@ export class BryntumTreeComboComponent implements OnInit, OnDestroy {
|
|
|
1220
1220
|
@Input() clearTextOnPickerHide ! : boolean;
|
|
1221
1221
|
@Input() clearTextOnSelection ! : boolean;
|
|
1222
1222
|
@Input() clearWhenInputEmpty ! : boolean;
|
|
1223
|
-
@Input() color ! :
|
|
1223
|
+
@Input() color ! : Color;
|
|
1224
1224
|
@Input() config ! : object;
|
|
1225
1225
|
@Input() constrainTo ! : HTMLElement|Widget|Rectangle;
|
|
1226
1226
|
@Input() container ! : Record<string, GridContainerItemConfig>|GridContainerItemConfig[]|FieldContainerConfig|FieldContainer;
|