@bryntum/gantt-react 7.1.1 → 7.1.3
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 +199 -21
- package/lib/BryntumAssignmentGrid.d.ts +20 -10
- package/lib/BryntumAssignmentGrid.js +2 -0
- package/lib/BryntumAssignmentGrid.js.map +1 -1
- package/lib/BryntumAssignmentPicker.d.ts +253 -0
- package/lib/BryntumAssignmentPicker.js +182 -0
- package/lib/BryntumAssignmentPicker.js.map +1 -0
- package/lib/BryntumGantt.d.ts +23 -9
- package/lib/BryntumGantt.js +4 -2
- package/lib/BryntumGantt.js.map +1 -1
- package/lib/BryntumGanttBase.d.ts +23 -9
- package/lib/BryntumGanttBase.js +4 -2
- package/lib/BryntumGanttBase.js.map +1 -1
- package/lib/BryntumGrid.d.ts +20 -10
- package/lib/BryntumGrid.js +2 -0
- package/lib/BryntumGrid.js.map +1 -1
- package/lib/BryntumGridBase.d.ts +20 -10
- package/lib/BryntumGridBase.js +2 -0
- package/lib/BryntumGridBase.js.map +1 -1
- package/lib/BryntumResourceGrid.d.ts +20 -10
- package/lib/BryntumResourceGrid.js +2 -0
- package/lib/BryntumResourceGrid.js.map +1 -1
- package/lib/BryntumResourceHistogram.d.ts +20 -10
- package/lib/BryntumResourceHistogram.js +4 -2
- package/lib/BryntumResourceHistogram.js.map +1 -1
- package/lib/BryntumResourceUtilization.d.ts +20 -10
- package/lib/BryntumResourceUtilization.js +4 -2
- package/lib/BryntumResourceUtilization.js.map +1 -1
- package/lib/BryntumScheduler.d.ts +24 -10
- package/lib/BryntumScheduler.js +4 -2
- package/lib/BryntumScheduler.js.map +1 -1
- package/lib/BryntumSchedulerBase.d.ts +24 -10
- package/lib/BryntumSchedulerBase.js +4 -2
- package/lib/BryntumSchedulerBase.js.map +1 -1
- package/lib/BryntumSchedulerPro.d.ts +24 -10
- package/lib/BryntumSchedulerPro.js +4 -2
- package/lib/BryntumSchedulerPro.js.map +1 -1
- package/lib/BryntumSchedulerProBase.d.ts +24 -10
- package/lib/BryntumSchedulerProBase.js +4 -2
- package/lib/BryntumSchedulerProBase.js.map +1 -1
- package/lib/BryntumTimeline.d.ts +24 -10
- package/lib/BryntumTimeline.js +4 -2
- package/lib/BryntumTimeline.js.map +1 -1
- package/lib/BryntumTimelineHistogram.d.ts +20 -10
- package/lib/BryntumTimelineHistogram.js +4 -2
- package/lib/BryntumTimelineHistogram.js.map +1 -1
- package/lib/BryntumTreeGrid.d.ts +20 -10
- package/lib/BryntumTreeGrid.js +2 -0
- package/lib/BryntumTreeGrid.js.map +1 -1
- package/lib/BryntumVersionGrid.d.ts +20 -10
- package/lib/BryntumVersionGrid.js +2 -0
- package/lib/BryntumVersionGrid.js.map +1 -1
- package/lib/WrapperHelper.js +1 -1
- package/lib/WrapperHelper.js.map +1 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.js +1 -0
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
- package/src/BryntumAssignmentGrid.tsx +43 -25
- package/src/BryntumAssignmentPicker.tsx +1109 -0
- package/src/BryntumGantt.tsx +52 -29
- package/src/BryntumGanttBase.tsx +52 -29
- package/src/BryntumGrid.tsx +43 -25
- package/src/BryntumGridBase.tsx +43 -25
- package/src/BryntumResourceGrid.tsx +43 -25
- package/src/BryntumResourceHistogram.tsx +45 -27
- package/src/BryntumResourceUtilization.tsx +45 -27
- package/src/BryntumScheduler.tsx +51 -29
- package/src/BryntumSchedulerBase.tsx +51 -29
- package/src/BryntumSchedulerPro.tsx +51 -29
- package/src/BryntumSchedulerProBase.tsx +51 -29
- package/src/BryntumTimeline.tsx +51 -29
- package/src/BryntumTimelineHistogram.tsx +45 -27
- package/src/BryntumTreeGrid.tsx +43 -25
- package/src/BryntumVersionGrid.tsx +43 -25
- package/src/WrapperHelper.tsx +2 -1
- package/src/index.ts +1 -0
package/src/BryntumGridBase.tsx
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
5
5
|
import React, { RefObject } from 'react';
|
|
6
|
-
import { AIFilter, AIFilterConfig, AjaxStore, AjaxStoreConfig, Base, CellCopyPaste, CellCopyPasteConfig, 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, ExportConfig, FileDrop, FileDropConfig, FillHandle, FillHandleConfig, Filter, FilterBar, FilterBarConfig, FilterConfig, FormulaProviderConfig, Grid, GridBase, GridBaseListeners, GridCellEdit, GridCellEditConfig, GridColumnConfig, GridExcelExporter, GridExcelExporterConfig, GridGroupSummary, GridGroupSummaryConfig, GridLocation, GridLocationConfig, GridLockRows, GridLockRowsConfig, GridPdfExport, GridPdfExportConfig, GridPrint, GridPrintConfig, GridRowReorder, GridRowReorderConfig, GridRowResize, GridRowResizeConfig, GridSelectionMode, GridSplit, GridSplitConfig, GridStateInfo, GridSummary, GridSummaryConfig, GridTreeGroup, GridTreeGroupConfig, Group, GroupConfig, HeaderMenu, HeaderMenuConfig, KeyMapConfig, Mask, MaskConfig, Menu, MenuItem, MenuItemEntry, MergeCells, MergeCellsConfig, Model, ModelConfig, PagingToolbarConfig, Panel, PanelCollapserConfig, PanelCollapserOverlayConfig, PanelHeader, PinColumns, PinColumnsConfig, PreserveScrollOptions, QuickFind, QuickFindConfig, RecordPositionContext, RegionResize, RegionResizeConfig, ResponsiveLevelConfig, Row, RowCopyPaste, RowCopyPasteConfig, RowEdit, RowEditConfig, RowEditorContext, RowExpander, RowExpanderConfig, ScrollManager, ScrollManagerConfig, Scroller, ScrollerConfig, Search, SearchConfig, Sort, SortConfig, StateProvider, StickyCells, StickyCellsConfig, Store, StoreConfig, Stripe, StripeConfig, SubGrid, SubGridConfig, TabConfig, Tool, ToolConfig, ToolbarConfig, ToolbarItems, TooltipConfig, Tree, TreeConfig, Widget, XLSColumn } from '@bryntum/gantt';
|
|
6
|
+
import { AIFilter, AIFilterConfig, AjaxStore, AjaxStoreConfig, Base, CellCopyPaste, CellCopyPasteConfig, 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, ExportConfig, FileDrop, FileDropConfig, FillHandle, FillHandleConfig, Filter, FilterBar, FilterBarConfig, FilterConfig, FormulaProviderConfig, Grid, GridBase, GridBaseListeners, GridCellEdit, GridCellEditConfig, GridColumnConfig, GridExcelExporter, GridExcelExporterConfig, GridGroupSummary, GridGroupSummaryConfig, GridLocation, GridLocationConfig, GridLockRows, GridLockRowsConfig, GridPdfExport, GridPdfExportConfig, GridPrint, GridPrintConfig, GridRowReorder, GridRowReorderConfig, GridRowResize, GridRowResizeConfig, GridSelectionMode, GridSplit, GridSplitConfig, GridStateInfo, GridSummary, GridSummaryConfig, GridTreeGroup, GridTreeGroupConfig, Group, GroupConfig, HeaderMenu, HeaderMenuConfig, KeyMapConfig, Mask, MaskConfig, Menu, MenuItem, MenuItemEntry, MergeCells, MergeCellsConfig, Model, ModelConfig, PagingToolbarConfig, Panel, PanelCollapserConfig, PanelCollapserOverlayConfig, PanelHeader, PdfExportConfig, PinColumns, PinColumnsConfig, PreserveScrollOptions, QuickFind, QuickFindConfig, RecordPositionContext, RegionResize, RegionResizeConfig, ResponsiveLevelConfig, Row, RowCopyPaste, RowCopyPasteConfig, RowEdit, RowEditConfig, RowEditorContext, RowExpander, RowExpanderConfig, ScrollManager, ScrollManagerConfig, Scroller, ScrollerConfig, Search, SearchConfig, Sort, SortConfig, StateProvider, StickyCells, StickyCellsConfig, Store, StoreConfig, Stripe, StripeConfig, SubGrid, SubGridConfig, TabConfig, Tool, ToolConfig, ToolbarConfig, ToolbarItems, TooltipConfig, Tree, TreeConfig, Widget, XLSColumn } from '@bryntum/gantt';
|
|
7
7
|
|
|
8
8
|
import { createWidget, shouldComponentUpdate, processWidgetContent } from './WrapperHelper.js';
|
|
9
9
|
|
|
@@ -789,6 +789,14 @@ export type BryntumGridBaseProps = {
|
|
|
789
789
|
* @param {any} event.value The value being set
|
|
790
790
|
*/
|
|
791
791
|
onBeforeCellRangeEdit? : ((event: { record: Model, field: string, value: any }) => Promise<boolean>|boolean|void)|string
|
|
792
|
+
/**
|
|
793
|
+
* This event is triggered before a parent column is collapsed or expanded.
|
|
794
|
+
* @param {object} event Event object
|
|
795
|
+
* @param {Grid.view.GridBase} event.source The grid instance
|
|
796
|
+
* @param {Grid.column.Column} event.column The column
|
|
797
|
+
* @param {boolean} event.collapsed `true` if the column is being collapsed, `false` if expanded
|
|
798
|
+
*/
|
|
799
|
+
onBeforeColumnCollapseToggle? : ((event: { source: GridBase, column: Column, collapsed: boolean }) => void)|string
|
|
792
800
|
/**
|
|
793
801
|
* This event is fired prior to starting a column drag gesture. The drag is canceled if a listener returns `false`.
|
|
794
802
|
* @param {object} event Event object
|
|
@@ -893,24 +901,24 @@ export type BryntumGridBaseProps = {
|
|
|
893
901
|
/**
|
|
894
902
|
* Fires on the owning Grid before export started. Return `false` to cancel the export.
|
|
895
903
|
* @param {object} event Event object
|
|
896
|
-
* @param {
|
|
904
|
+
* @param {PdfExportConfig} event.config Export config
|
|
897
905
|
*/
|
|
898
|
-
onBeforePdfExport? : ((event: { config:
|
|
906
|
+
onBeforePdfExport? : ((event: { config: PdfExportConfig }) => Promise<boolean>|boolean|void)|string
|
|
899
907
|
/**
|
|
900
908
|
* Fires before a row is rendered.
|
|
901
909
|
* @param {object} event Event object
|
|
902
|
-
* @param {Grid.view.
|
|
903
|
-
* @param {Grid.row.Row} event.row The row about to be rendered
|
|
904
|
-
* @param {Core.data.Model} event.record The record for the row
|
|
905
|
-
* @param {number} event.recordIndex The zero-based index of the record
|
|
910
|
+
* @param {Grid.view.GridBase} event.source The firing Grid instance
|
|
911
|
+
* @param {Grid.row.Row} event.row The row about to be rendered
|
|
912
|
+
* @param {Core.data.Model} event.record The record for the row
|
|
913
|
+
* @param {number} event.recordIndex The zero-based index of the record
|
|
906
914
|
*/
|
|
907
|
-
onBeforeRenderRow? : ((event: { source:
|
|
915
|
+
onBeforeRenderRow? : ((event: { source: GridBase, row: Row, record: Model, recordIndex: number }) => void)|string
|
|
908
916
|
/**
|
|
909
917
|
* Grid rows are about to be rendered
|
|
910
918
|
* @param {object} event Event object
|
|
911
|
-
* @param {Grid.view.
|
|
919
|
+
* @param {Grid.view.GridBase} event.source This grid.
|
|
912
920
|
*/
|
|
913
|
-
onBeforeRenderRows? : ((event: { source:
|
|
921
|
+
onBeforeRenderRows? : ((event: { source: GridBase }) => void)|string
|
|
914
922
|
/**
|
|
915
923
|
* This event fires before row collapse is started.
|
|
916
924
|
* ...
|
|
@@ -1141,6 +1149,14 @@ export type BryntumGridBaseProps = {
|
|
|
1141
1149
|
* @param {Core.data.Model} event.record The record which has been collapsed.
|
|
1142
1150
|
*/
|
|
1143
1151
|
onCollapseNode? : ((event: { source: Grid, record: Model }) => void)|string
|
|
1152
|
+
/**
|
|
1153
|
+
* This event is triggered after a parent column has been collapsed or expanded.
|
|
1154
|
+
* @param {object} event Event object
|
|
1155
|
+
* @param {Grid.view.GridBase} event.source The Grid instance
|
|
1156
|
+
* @param {Grid.column.Column} event.column The column being toggled
|
|
1157
|
+
* @param {boolean} event.collapsed `true` if the column is now collapsed, `false` if expanded
|
|
1158
|
+
*/
|
|
1159
|
+
onColumnCollapseToggle? : ((event: { source: GridBase, column: Column, collapsed: boolean }) => void)|string
|
|
1144
1160
|
/**
|
|
1145
1161
|
* This event is fired when a column is being dragged, and you can set the `valid` flag on the `context` object
|
|
1146
1162
|
* to indicate whether the drop position is valid or not.
|
|
@@ -1222,14 +1238,14 @@ export type BryntumGridBaseProps = {
|
|
|
1222
1238
|
* ...
|
|
1223
1239
|
* [View online docs...](https://bryntum.com/products/gantt/docs/api/Grid/view/GridBase#event-dataChange)
|
|
1224
1240
|
* @param {object} event Event object
|
|
1225
|
-
* @param {Grid.view.
|
|
1241
|
+
* @param {Grid.view.GridBase} event.source Owning grid
|
|
1226
1242
|
* @param {Core.data.Store} event.store The originating store
|
|
1227
1243
|
* @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'`
|
|
1228
1244
|
* @param {Core.data.Model} event.record Changed record, for actions that affects exactly one record (`'update'`)
|
|
1229
1245
|
* @param {Core.data.Model[]} event.records Changed records, passed for all actions except `'removeAll'`
|
|
1230
1246
|
* @param {object} event.changes Passed for the `'update'` action, info on which record fields changed
|
|
1231
1247
|
*/
|
|
1232
|
-
onDataChange? : ((event: { source:
|
|
1248
|
+
onDataChange? : ((event: { source: GridBase, store: Store, action: 'remove'|'removeAll'|'add'|'clearchanges'|'filter'|'update'|'dataset'|'replace', record: Model, records: Model[], changes: object }) => void)|string
|
|
1233
1249
|
/**
|
|
1234
1250
|
* Fires when an object is destroyed.
|
|
1235
1251
|
* @param {object} event Event object
|
|
@@ -1537,18 +1553,18 @@ export type BryntumGridBaseProps = {
|
|
|
1537
1553
|
/**
|
|
1538
1554
|
* Fires after a row is rendered.
|
|
1539
1555
|
* @param {object} event Event object
|
|
1540
|
-
* @param {Grid.view.
|
|
1541
|
-
* @param {Grid.row.Row} event.row The row that has been rendered
|
|
1542
|
-
* @param {Core.data.Model} event.record The record for the row
|
|
1543
|
-
* @param {number} event.recordIndex The zero-based index of the record
|
|
1556
|
+
* @param {Grid.view.GridBase} event.source The firing Grid instance
|
|
1557
|
+
* @param {Grid.row.Row} event.row The row that has been rendered
|
|
1558
|
+
* @param {Core.data.Model} event.record The record for the row
|
|
1559
|
+
* @param {number} event.recordIndex The zero-based index of the record
|
|
1544
1560
|
*/
|
|
1545
|
-
onRenderRow? : ((event: { source:
|
|
1561
|
+
onRenderRow? : ((event: { source: GridBase, row: Row, record: Model, recordIndex: number }) => void)|string
|
|
1546
1562
|
/**
|
|
1547
1563
|
* Grid rows have been rendered
|
|
1548
1564
|
* @param {object} event Event object
|
|
1549
|
-
* @param {Grid.view.
|
|
1565
|
+
* @param {Grid.view.GridBase} event.source This grid.
|
|
1550
1566
|
*/
|
|
1551
|
-
onRenderRows? : ((event: { source:
|
|
1567
|
+
onRenderRows? : ((event: { source: GridBase }) => void)|string
|
|
1552
1568
|
/**
|
|
1553
1569
|
* Fired when the encapsulating element of a Widget resizes *only when [monitorResize](https://bryntum.com/products/gantt/docs/api/Core/widget/Widget#config-monitorResize) is `true`*.
|
|
1554
1570
|
* @param {object} event Event object
|
|
@@ -1608,10 +1624,10 @@ export type BryntumGridBaseProps = {
|
|
|
1608
1624
|
/**
|
|
1609
1625
|
* Grid has scrolled vertically
|
|
1610
1626
|
* @param {object} event Event object
|
|
1611
|
-
* @param {Grid.view.
|
|
1627
|
+
* @param {Grid.view.GridBase} event.source The firing Grid instance.
|
|
1612
1628
|
* @param {number} event.scrollTop The vertical scroll position.
|
|
1613
1629
|
*/
|
|
1614
|
-
onScroll? : ((event: { source:
|
|
1630
|
+
onScroll? : ((event: { source: GridBase, scrollTop: number }) => void)|string
|
|
1615
1631
|
/**
|
|
1616
1632
|
* The selection has been changed.
|
|
1617
1633
|
* @param {object} event Event object
|
|
@@ -1699,17 +1715,17 @@ export type BryntumGridBaseProps = {
|
|
|
1699
1715
|
/**
|
|
1700
1716
|
* Fires after a sub grid is collapsed.
|
|
1701
1717
|
* @param {object} event Event object
|
|
1702
|
-
* @param {Grid.view.
|
|
1718
|
+
* @param {Grid.view.GridBase} event.source The firing Grid instance
|
|
1703
1719
|
* @param {Grid.view.SubGrid} event.subGrid The sub grid instance
|
|
1704
1720
|
*/
|
|
1705
|
-
onSubGridCollapse? : ((event: { source:
|
|
1721
|
+
onSubGridCollapse? : ((event: { source: GridBase, subGrid: SubGrid }) => void)|string
|
|
1706
1722
|
/**
|
|
1707
1723
|
* Fires after a sub grid is expanded.
|
|
1708
1724
|
* @param {object} event Event object
|
|
1709
|
-
* @param {Grid.view.
|
|
1725
|
+
* @param {Grid.view.GridBase} event.source The firing Grid instance
|
|
1710
1726
|
* @param {Grid.view.SubGrid} event.subGrid The sub grid instance
|
|
1711
1727
|
*/
|
|
1712
|
-
onSubGridExpand? : ((event: { source:
|
|
1728
|
+
onSubGridExpand? : ((event: { source: GridBase, subGrid: SubGrid }) => void)|string
|
|
1713
1729
|
/**
|
|
1714
1730
|
* Fired when one or more groups are expanded or collapsed
|
|
1715
1731
|
* @param {object} event Event object
|
|
@@ -2214,6 +2230,7 @@ export class BryntumGridBase extends React.Component<BryntumGridBaseProps> {
|
|
|
2214
2230
|
'onBeforeCellEditStart',
|
|
2215
2231
|
'onBeforeCellRangeDelete',
|
|
2216
2232
|
'onBeforeCellRangeEdit',
|
|
2233
|
+
'onBeforeColumnCollapseToggle',
|
|
2217
2234
|
'onBeforeColumnDragStart',
|
|
2218
2235
|
'onBeforeColumnDropFinalize',
|
|
2219
2236
|
'onBeforeColumnResize',
|
|
@@ -2254,6 +2271,7 @@ export class BryntumGridBase extends React.Component<BryntumGridBaseProps> {
|
|
|
2254
2271
|
'onCellMouseOver',
|
|
2255
2272
|
'onCollapse',
|
|
2256
2273
|
'onCollapseNode',
|
|
2274
|
+
'onColumnCollapseToggle',
|
|
2257
2275
|
'onColumnDrag',
|
|
2258
2276
|
'onColumnDragStart',
|
|
2259
2277
|
'onColumnDrop',
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
5
5
|
import React, { RefObject } from 'react';
|
|
6
|
-
import { AIFilter, AIFilterConfig, AjaxStore, AjaxStoreConfig, Base, CellCopyPaste, CellCopyPasteConfig, 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, ExportConfig, FileDrop, FileDropConfig, FillHandle, FillHandleConfig, Filter, FilterBar, FilterBarConfig, FilterConfig, FormulaProviderConfig, Grid, GridBase, GridCellEdit, GridCellEditConfig, GridColumnConfig, GridExcelExporter, GridExcelExporterConfig, GridGroupSummary, GridGroupSummaryConfig, GridLocation, GridLocationConfig, GridLockRows, GridLockRowsConfig, GridPdfExport, GridPdfExportConfig, GridPrint, GridPrintConfig, GridRowReorder, GridRowReorderConfig, GridRowResize, GridRowResizeConfig, GridSelectionMode, GridSplit, GridSplitConfig, GridStateInfo, GridSummary, GridSummaryConfig, GridTreeGroup, GridTreeGroupConfig, Group, GroupConfig, HeaderMenu, HeaderMenuConfig, KeyMapConfig, Mask, MaskConfig, Menu, MenuItem, MenuItemEntry, MergeCells, MergeCellsConfig, Model, ModelConfig, PagingToolbarConfig, Panel, PanelCollapserConfig, PanelCollapserOverlayConfig, PanelHeader, PinColumns, PinColumnsConfig, PreserveScrollOptions, ProjectModel, ProjectModelConfig, QuickFind, QuickFindConfig, RecordPositionContext, RegionResize, RegionResizeConfig, ResourceGrid, ResourceGridListeners, ResponsiveLevelConfig, Row, RowCopyPaste, RowCopyPasteConfig, RowEdit, RowEditConfig, RowEditorContext, RowExpander, RowExpanderConfig, ScrollManager, ScrollManagerConfig, Scroller, ScrollerConfig, Search, SearchConfig, Sort, SortConfig, StateProvider, StickyCells, StickyCellsConfig, Store, StoreConfig, Stripe, StripeConfig, SubGrid, SubGridConfig, TabConfig, Tool, ToolConfig, ToolbarConfig, ToolbarItems, TooltipConfig, Tree, TreeConfig, Widget, XLSColumn } from '@bryntum/gantt';
|
|
6
|
+
import { AIFilter, AIFilterConfig, AjaxStore, AjaxStoreConfig, Base, CellCopyPaste, CellCopyPasteConfig, 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, ExportConfig, FileDrop, FileDropConfig, FillHandle, FillHandleConfig, Filter, FilterBar, FilterBarConfig, FilterConfig, FormulaProviderConfig, Grid, GridBase, GridCellEdit, GridCellEditConfig, GridColumnConfig, GridExcelExporter, GridExcelExporterConfig, GridGroupSummary, GridGroupSummaryConfig, GridLocation, GridLocationConfig, GridLockRows, GridLockRowsConfig, GridPdfExport, GridPdfExportConfig, GridPrint, GridPrintConfig, GridRowReorder, GridRowReorderConfig, GridRowResize, GridRowResizeConfig, GridSelectionMode, GridSplit, GridSplitConfig, GridStateInfo, GridSummary, GridSummaryConfig, GridTreeGroup, GridTreeGroupConfig, Group, GroupConfig, HeaderMenu, HeaderMenuConfig, KeyMapConfig, Mask, MaskConfig, Menu, MenuItem, MenuItemEntry, MergeCells, MergeCellsConfig, Model, ModelConfig, PagingToolbarConfig, Panel, PanelCollapserConfig, PanelCollapserOverlayConfig, PanelHeader, PdfExportConfig, PinColumns, PinColumnsConfig, PreserveScrollOptions, ProjectModel, ProjectModelConfig, QuickFind, QuickFindConfig, RecordPositionContext, RegionResize, RegionResizeConfig, ResourceGrid, ResourceGridListeners, ResponsiveLevelConfig, Row, RowCopyPaste, RowCopyPasteConfig, RowEdit, RowEditConfig, RowEditorContext, RowExpander, RowExpanderConfig, ScrollManager, ScrollManagerConfig, Scroller, ScrollerConfig, Search, SearchConfig, Sort, SortConfig, StateProvider, StickyCells, StickyCellsConfig, Store, StoreConfig, Stripe, StripeConfig, SubGrid, SubGridConfig, TabConfig, Tool, ToolConfig, ToolbarConfig, ToolbarItems, TooltipConfig, Tree, TreeConfig, Widget, XLSColumn } from '@bryntum/gantt';
|
|
7
7
|
|
|
8
8
|
import { createWidget, shouldComponentUpdate, processWidgetContent } from './WrapperHelper.js';
|
|
9
9
|
|
|
@@ -801,6 +801,14 @@ export type BryntumResourceGridProps = {
|
|
|
801
801
|
* @param {any} event.value The value being set
|
|
802
802
|
*/
|
|
803
803
|
onBeforeCellRangeEdit? : ((event: { record: Model, field: string, value: any }) => Promise<boolean>|boolean|void)|string
|
|
804
|
+
/**
|
|
805
|
+
* This event is triggered before a parent column is collapsed or expanded.
|
|
806
|
+
* @param {object} event Event object
|
|
807
|
+
* @param {Grid.view.GridBase} event.source The grid instance
|
|
808
|
+
* @param {Grid.column.Column} event.column The column
|
|
809
|
+
* @param {boolean} event.collapsed `true` if the column is being collapsed, `false` if expanded
|
|
810
|
+
*/
|
|
811
|
+
onBeforeColumnCollapseToggle? : ((event: { source: GridBase, column: Column, collapsed: boolean }) => void)|string
|
|
804
812
|
/**
|
|
805
813
|
* This event is fired prior to starting a column drag gesture. The drag is canceled if a listener returns `false`.
|
|
806
814
|
* @param {object} event Event object
|
|
@@ -905,24 +913,24 @@ export type BryntumResourceGridProps = {
|
|
|
905
913
|
/**
|
|
906
914
|
* Fires on the owning Grid before export started. Return `false` to cancel the export.
|
|
907
915
|
* @param {object} event Event object
|
|
908
|
-
* @param {
|
|
916
|
+
* @param {PdfExportConfig} event.config Export config
|
|
909
917
|
*/
|
|
910
|
-
onBeforePdfExport? : ((event: { config:
|
|
918
|
+
onBeforePdfExport? : ((event: { config: PdfExportConfig }) => Promise<boolean>|boolean|void)|string
|
|
911
919
|
/**
|
|
912
920
|
* Fires before a row is rendered.
|
|
913
921
|
* @param {object} event Event object
|
|
914
|
-
* @param {Grid.view.
|
|
915
|
-
* @param {Grid.row.Row} event.row The row about to be rendered
|
|
916
|
-
* @param {Core.data.Model} event.record The record for the row
|
|
917
|
-
* @param {number} event.recordIndex The zero-based index of the record
|
|
922
|
+
* @param {Grid.view.GridBase} event.source The firing Grid instance
|
|
923
|
+
* @param {Grid.row.Row} event.row The row about to be rendered
|
|
924
|
+
* @param {Core.data.Model} event.record The record for the row
|
|
925
|
+
* @param {number} event.recordIndex The zero-based index of the record
|
|
918
926
|
*/
|
|
919
|
-
onBeforeRenderRow? : ((event: { source:
|
|
927
|
+
onBeforeRenderRow? : ((event: { source: GridBase, row: Row, record: Model, recordIndex: number }) => void)|string
|
|
920
928
|
/**
|
|
921
929
|
* Grid rows are about to be rendered
|
|
922
930
|
* @param {object} event Event object
|
|
923
|
-
* @param {Grid.view.
|
|
931
|
+
* @param {Grid.view.GridBase} event.source This grid.
|
|
924
932
|
*/
|
|
925
|
-
onBeforeRenderRows? : ((event: { source:
|
|
933
|
+
onBeforeRenderRows? : ((event: { source: GridBase }) => void)|string
|
|
926
934
|
/**
|
|
927
935
|
* This event fires before row collapse is started.
|
|
928
936
|
* ...
|
|
@@ -1153,6 +1161,14 @@ export type BryntumResourceGridProps = {
|
|
|
1153
1161
|
* @param {Core.data.Model} event.record The record which has been collapsed.
|
|
1154
1162
|
*/
|
|
1155
1163
|
onCollapseNode? : ((event: { source: Grid, record: Model }) => void)|string
|
|
1164
|
+
/**
|
|
1165
|
+
* This event is triggered after a parent column has been collapsed or expanded.
|
|
1166
|
+
* @param {object} event Event object
|
|
1167
|
+
* @param {Grid.view.GridBase} event.source The Grid instance
|
|
1168
|
+
* @param {Grid.column.Column} event.column The column being toggled
|
|
1169
|
+
* @param {boolean} event.collapsed `true` if the column is now collapsed, `false` if expanded
|
|
1170
|
+
*/
|
|
1171
|
+
onColumnCollapseToggle? : ((event: { source: GridBase, column: Column, collapsed: boolean }) => void)|string
|
|
1156
1172
|
/**
|
|
1157
1173
|
* This event is fired when a column is being dragged, and you can set the `valid` flag on the `context` object
|
|
1158
1174
|
* to indicate whether the drop position is valid or not.
|
|
@@ -1234,14 +1250,14 @@ export type BryntumResourceGridProps = {
|
|
|
1234
1250
|
* ...
|
|
1235
1251
|
* [View online docs...](https://bryntum.com/products/gantt/docs/api/SchedulerPro/view/ResourceGrid#event-dataChange)
|
|
1236
1252
|
* @param {object} event Event object
|
|
1237
|
-
* @param {Grid.view.
|
|
1253
|
+
* @param {Grid.view.GridBase} event.source Owning grid
|
|
1238
1254
|
* @param {Core.data.Store} event.store The originating store
|
|
1239
1255
|
* @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'`
|
|
1240
1256
|
* @param {Core.data.Model} event.record Changed record, for actions that affects exactly one record (`'update'`)
|
|
1241
1257
|
* @param {Core.data.Model[]} event.records Changed records, passed for all actions except `'removeAll'`
|
|
1242
1258
|
* @param {object} event.changes Passed for the `'update'` action, info on which record fields changed
|
|
1243
1259
|
*/
|
|
1244
|
-
onDataChange? : ((event: { source:
|
|
1260
|
+
onDataChange? : ((event: { source: GridBase, store: Store, action: 'remove'|'removeAll'|'add'|'clearchanges'|'filter'|'update'|'dataset'|'replace', record: Model, records: Model[], changes: object }) => void)|string
|
|
1245
1261
|
/**
|
|
1246
1262
|
* Fires when an object is destroyed.
|
|
1247
1263
|
* @param {object} event Event object
|
|
@@ -1549,18 +1565,18 @@ export type BryntumResourceGridProps = {
|
|
|
1549
1565
|
/**
|
|
1550
1566
|
* Fires after a row is rendered.
|
|
1551
1567
|
* @param {object} event Event object
|
|
1552
|
-
* @param {Grid.view.
|
|
1553
|
-
* @param {Grid.row.Row} event.row The row that has been rendered
|
|
1554
|
-
* @param {Core.data.Model} event.record The record for the row
|
|
1555
|
-
* @param {number} event.recordIndex The zero-based index of the record
|
|
1568
|
+
* @param {Grid.view.GridBase} event.source The firing Grid instance
|
|
1569
|
+
* @param {Grid.row.Row} event.row The row that has been rendered
|
|
1570
|
+
* @param {Core.data.Model} event.record The record for the row
|
|
1571
|
+
* @param {number} event.recordIndex The zero-based index of the record
|
|
1556
1572
|
*/
|
|
1557
|
-
onRenderRow? : ((event: { source:
|
|
1573
|
+
onRenderRow? : ((event: { source: GridBase, row: Row, record: Model, recordIndex: number }) => void)|string
|
|
1558
1574
|
/**
|
|
1559
1575
|
* Grid rows have been rendered
|
|
1560
1576
|
* @param {object} event Event object
|
|
1561
|
-
* @param {Grid.view.
|
|
1577
|
+
* @param {Grid.view.GridBase} event.source This grid.
|
|
1562
1578
|
*/
|
|
1563
|
-
onRenderRows? : ((event: { source:
|
|
1579
|
+
onRenderRows? : ((event: { source: GridBase }) => void)|string
|
|
1564
1580
|
/**
|
|
1565
1581
|
* Fired when the encapsulating element of a Widget resizes *only when [monitorResize](https://bryntum.com/products/gantt/docs/api/Core/widget/Widget#config-monitorResize) is `true`*.
|
|
1566
1582
|
* @param {object} event Event object
|
|
@@ -1620,10 +1636,10 @@ export type BryntumResourceGridProps = {
|
|
|
1620
1636
|
/**
|
|
1621
1637
|
* Grid has scrolled vertically
|
|
1622
1638
|
* @param {object} event Event object
|
|
1623
|
-
* @param {Grid.view.
|
|
1639
|
+
* @param {Grid.view.GridBase} event.source The firing Grid instance.
|
|
1624
1640
|
* @param {number} event.scrollTop The vertical scroll position.
|
|
1625
1641
|
*/
|
|
1626
|
-
onScroll? : ((event: { source:
|
|
1642
|
+
onScroll? : ((event: { source: GridBase, scrollTop: number }) => void)|string
|
|
1627
1643
|
/**
|
|
1628
1644
|
* The selection has been changed.
|
|
1629
1645
|
* @param {object} event Event object
|
|
@@ -1711,17 +1727,17 @@ export type BryntumResourceGridProps = {
|
|
|
1711
1727
|
/**
|
|
1712
1728
|
* Fires after a sub grid is collapsed.
|
|
1713
1729
|
* @param {object} event Event object
|
|
1714
|
-
* @param {Grid.view.
|
|
1730
|
+
* @param {Grid.view.GridBase} event.source The firing Grid instance
|
|
1715
1731
|
* @param {Grid.view.SubGrid} event.subGrid The sub grid instance
|
|
1716
1732
|
*/
|
|
1717
|
-
onSubGridCollapse? : ((event: { source:
|
|
1733
|
+
onSubGridCollapse? : ((event: { source: GridBase, subGrid: SubGrid }) => void)|string
|
|
1718
1734
|
/**
|
|
1719
1735
|
* Fires after a sub grid is expanded.
|
|
1720
1736
|
* @param {object} event Event object
|
|
1721
|
-
* @param {Grid.view.
|
|
1737
|
+
* @param {Grid.view.GridBase} event.source The firing Grid instance
|
|
1722
1738
|
* @param {Grid.view.SubGrid} event.subGrid The sub grid instance
|
|
1723
1739
|
*/
|
|
1724
|
-
onSubGridExpand? : ((event: { source:
|
|
1740
|
+
onSubGridExpand? : ((event: { source: GridBase, subGrid: SubGrid }) => void)|string
|
|
1725
1741
|
/**
|
|
1726
1742
|
* Fired when one or more groups are expanded or collapsed
|
|
1727
1743
|
* @param {object} event Event object
|
|
@@ -2162,6 +2178,7 @@ export class BryntumResourceGrid extends React.Component<BryntumResourceGridProp
|
|
|
2162
2178
|
'onBeforeCellEditStart',
|
|
2163
2179
|
'onBeforeCellRangeDelete',
|
|
2164
2180
|
'onBeforeCellRangeEdit',
|
|
2181
|
+
'onBeforeColumnCollapseToggle',
|
|
2165
2182
|
'onBeforeColumnDragStart',
|
|
2166
2183
|
'onBeforeColumnDropFinalize',
|
|
2167
2184
|
'onBeforeColumnResize',
|
|
@@ -2202,6 +2219,7 @@ export class BryntumResourceGrid extends React.Component<BryntumResourceGridProp
|
|
|
2202
2219
|
'onCellMouseOver',
|
|
2203
2220
|
'onCollapse',
|
|
2204
2221
|
'onCollapseNode',
|
|
2222
|
+
'onColumnCollapseToggle',
|
|
2205
2223
|
'onColumnDrag',
|
|
2206
2224
|
'onColumnDragStart',
|
|
2207
2225
|
'onColumnDrop',
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
5
5
|
import React, { RefObject } from 'react';
|
|
6
|
-
import { AIFilter, AIFilterConfig, AjaxStore, AjaxStoreConfig, Base, CellCopyPaste, CellCopyPasteConfig, CellEditorContext, CellMenu, CellMenuConfig, CellTooltip, CellTooltipConfig, Charts, ChartsConfig, Column, ColumnAutoWidth, ColumnAutoWidthConfig, ColumnDragToolbar, ColumnDragToolbarConfig, ColumnLines, ColumnLinesConfig, ColumnPicker, ColumnPickerConfig, ColumnRename, ColumnRenameConfig, ColumnReorder, ColumnReorderConfig, ColumnResize, ColumnResizeConfig, ColumnStore, ColumnStoreConfig, Container, ContainerItemConfig, CrudManager, CrudManagerConfig, DomConfig, DurationUnit, EmptyTextDomConfig, EventColor, ExportConfig, FileDrop, FileDropConfig, FillHandle, FillHandleConfig, Filter, FilterBar, FilterBarConfig, FilterConfig, FormulaProviderConfig, Grid, GridBase, GridColumnConfig, GridExcelExporter, GridExcelExporterConfig, GridLocation, GridLocationConfig, GridLockRows, GridLockRowsConfig, GridPdfExport, GridPdfExportConfig, GridPrint, GridPrintConfig, GridRowResize, GridRowResizeConfig, GridSelectionMode, GridStateInfo, GridTreeGroup, GridTreeGroupConfig, Group, GroupConfig, GroupSummary, GroupSummaryConfig, HeaderMenu, HeaderMenuConfig, HeaderZoom, HeaderZoomConfig, Histogram, HistogramConfig, HistogramSeries, KeyMapConfig, Mask, MaskConfig, Menu, MenuItem, MenuItemEntry, MergeCells, MergeCellsConfig, Model, ModelConfig, NonWorkingTime, NonWorkingTimeConfig, NumberFormatConfig, PagingToolbarConfig, Pan, PanConfig, Panel, PanelCollapserConfig, PanelCollapserOverlayConfig, PanelHeader, PinColumns, PinColumnsConfig, PreserveScrollOptions, PresetStore, ProjectModel, ProjectModelConfig, QuickFind, QuickFindConfig, RecordPositionContext, RecurrenceConfirmationPopup, RecurrenceConfirmationPopupConfig, RegionResize, RegionResizeConfig, ResourceAllocationInfo, ResourceAllocationInterval, ResourceHistogram, ResourceHistogramListeners, ResourceHistogramRenderData, ResourceMarginConfig, ResourceMenu, ResourceMenuConfig, ResourceNonWorkingTime, ResourceNonWorkingTimeConfig, ResourceTimeRangeModel, ResourceTimeRangeModelConfig, ResourceTimeRangeStore, ResourceTimeRangeStoreConfig, ResourceTimeRanges, ResourceTimeRangesConfig, ResponsiveLevelConfig, Row, RowCopyPaste, RowCopyPasteConfig, RowEdit, RowEditConfig, RowEditorContext, RowExpander, RowExpanderConfig, RowReorder, RowReorderConfig, ScaleColumnConfig, ScalePoint, ScheduleTooltip, ScheduleTooltipConfig, Scheduler, SchedulerAssignmentModel, SchedulerEventModel, SchedulerPro, SchedulerProAssignmentModel, SchedulerProCellEdit, SchedulerProCellEditConfig, SchedulerProResourceModel, SchedulerResourceModel, SchedulerSummary, SchedulerSummaryConfig, SchedulerTimeAxisColumn, ScrollManager, ScrollManagerConfig, Scroller, ScrollerConfig, Search, SearchConfig, Sort, SortConfig, Split, SplitConfig, StateProvider, StickyCells, StickyCellsConfig, Store, StoreConfig, Stripe, StripeConfig, SubGrid, SubGridConfig, TabConfig, TimeAxis, TimeAxisConfig, TimeAxisHeaderMenu, TimeAxisHeaderMenuConfig, TimeRanges, TimeRangesConfig, TimeSpan, TimeSpanConfig, TimeSpanHighlight, TimeSpanHighlightConfig, TimelineBase, TimelineContext, TimelineHistogram, TimelineStateInfo, Tool, ToolConfig, ToolbarConfig, ToolbarItems, Tooltip, TooltipConfig, Tree, TreeConfig, VerticalTimeAxisColumn, ViewPreset, ViewPresetConfig, VisibleDate, Widget, XLSColumn } from '@bryntum/gantt';
|
|
6
|
+
import { AIFilter, AIFilterConfig, AjaxStore, AjaxStoreConfig, Base, CellCopyPaste, CellCopyPasteConfig, CellEditorContext, CellMenu, CellMenuConfig, CellTooltip, CellTooltipConfig, Charts, ChartsConfig, Column, ColumnAutoWidth, ColumnAutoWidthConfig, ColumnDragToolbar, ColumnDragToolbarConfig, ColumnLines, ColumnLinesConfig, ColumnPicker, ColumnPickerConfig, ColumnRename, ColumnRenameConfig, ColumnReorder, ColumnReorderConfig, ColumnResize, ColumnResizeConfig, ColumnStore, ColumnStoreConfig, Container, ContainerItemConfig, CrudManager, CrudManagerConfig, DomConfig, DurationUnit, EmptyTextDomConfig, EventColor, ExportConfig, FileDrop, FileDropConfig, FillHandle, FillHandleConfig, Filter, FilterBar, FilterBarConfig, FilterConfig, FormulaProviderConfig, Grid, GridBase, GridColumnConfig, GridExcelExporter, GridExcelExporterConfig, GridLocation, GridLocationConfig, GridLockRows, GridLockRowsConfig, GridPdfExport, GridPdfExportConfig, GridPrint, GridPrintConfig, GridRowResize, GridRowResizeConfig, GridSelectionMode, GridStateInfo, GridTreeGroup, GridTreeGroupConfig, Group, GroupConfig, GroupSummary, GroupSummaryConfig, HeaderMenu, HeaderMenuConfig, HeaderZoom, HeaderZoomConfig, Histogram, HistogramConfig, HistogramSeries, KeyMapConfig, Mask, MaskConfig, Menu, MenuItem, MenuItemEntry, MergeCells, MergeCellsConfig, Model, ModelConfig, NonWorkingTime, NonWorkingTimeConfig, NumberFormatConfig, PagingToolbarConfig, Pan, PanConfig, Panel, PanelCollapserConfig, PanelCollapserOverlayConfig, PanelHeader, PdfExportConfig, PinColumns, PinColumnsConfig, PreserveScrollOptions, PresetStore, ProjectModel, ProjectModelConfig, QuickFind, QuickFindConfig, RecordPositionContext, RecurrenceConfirmationPopup, RecurrenceConfirmationPopupConfig, RegionResize, RegionResizeConfig, ResourceAllocationInfo, ResourceAllocationInterval, ResourceHistogram, ResourceHistogramListeners, ResourceHistogramRenderData, ResourceMarginConfig, ResourceMenu, ResourceMenuConfig, ResourceNonWorkingTime, ResourceNonWorkingTimeConfig, ResourceTimeRangeModel, ResourceTimeRangeModelConfig, ResourceTimeRangeStore, ResourceTimeRangeStoreConfig, ResourceTimeRanges, ResourceTimeRangesConfig, ResponsiveLevelConfig, Row, RowCopyPaste, RowCopyPasteConfig, RowEdit, RowEditConfig, RowEditorContext, RowExpander, RowExpanderConfig, RowReorder, RowReorderConfig, ScaleColumnConfig, ScalePoint, ScheduleTooltip, ScheduleTooltipConfig, Scheduler, SchedulerAssignmentModel, SchedulerEventModel, SchedulerPro, SchedulerProAssignmentModel, SchedulerProCellEdit, SchedulerProCellEditConfig, SchedulerProResourceModel, SchedulerResourceModel, SchedulerSummary, SchedulerSummaryConfig, SchedulerTimeAxisColumn, ScrollManager, ScrollManagerConfig, Scroller, ScrollerConfig, Search, SearchConfig, Sort, SortConfig, Split, SplitConfig, StateProvider, StickyCells, StickyCellsConfig, Store, StoreConfig, Stripe, StripeConfig, SubGrid, SubGridConfig, TabConfig, TimeAxis, TimeAxisConfig, TimeAxisHeaderMenu, TimeAxisHeaderMenuConfig, TimeRanges, TimeRangesConfig, TimeSpan, TimeSpanConfig, TimeSpanHighlight, TimeSpanHighlightConfig, TimelineBase, TimelineContext, TimelineHistogram, TimelineStateInfo, Tool, ToolConfig, ToolbarConfig, ToolbarItems, Tooltip, TooltipConfig, Tree, TreeConfig, VerticalTimeAxisColumn, ViewPreset, ViewPresetConfig, VisibleDate, Widget, XLSColumn } from '@bryntum/gantt';
|
|
7
7
|
|
|
8
8
|
import { createWidget, shouldComponentUpdate, processWidgetContent } from './WrapperHelper.js';
|
|
9
9
|
|
|
@@ -1395,6 +1395,14 @@ export type BryntumResourceHistogramProps = {
|
|
|
1395
1395
|
* @param {any} event.value The value being set
|
|
1396
1396
|
*/
|
|
1397
1397
|
onBeforeCellRangeEdit? : ((event: { record: Model, field: string, value: any }) => Promise<boolean>|boolean|void)|string
|
|
1398
|
+
/**
|
|
1399
|
+
* This event is triggered before a parent column is collapsed or expanded.
|
|
1400
|
+
* @param {object} event Event object
|
|
1401
|
+
* @param {Grid.view.GridBase} event.source The grid instance
|
|
1402
|
+
* @param {Grid.column.Column} event.column The column
|
|
1403
|
+
* @param {boolean} event.collapsed `true` if the column is being collapsed, `false` if expanded
|
|
1404
|
+
*/
|
|
1405
|
+
onBeforeColumnCollapseToggle? : ((event: { source: GridBase, column: Column, collapsed: boolean }) => void)|string
|
|
1398
1406
|
/**
|
|
1399
1407
|
* This event is fired prior to starting a column drag gesture. The drag is canceled if a listener returns `false`.
|
|
1400
1408
|
* @param {object} event Event object
|
|
@@ -1529,9 +1537,9 @@ export type BryntumResourceHistogramProps = {
|
|
|
1529
1537
|
/**
|
|
1530
1538
|
* Fires on the owning Grid before export started. Return `false` to cancel the export.
|
|
1531
1539
|
* @param {object} event Event object
|
|
1532
|
-
* @param {
|
|
1540
|
+
* @param {PdfExportConfig} event.config Export config
|
|
1533
1541
|
*/
|
|
1534
|
-
onBeforePdfExport? : ((event: { config:
|
|
1542
|
+
onBeforePdfExport? : ((event: { config: PdfExportConfig }) => Promise<boolean>|boolean|void)|string
|
|
1535
1543
|
/**
|
|
1536
1544
|
* Fired before the [viewPreset](https://bryntum.com/products/gantt/docs/api/Scheduler/view/mixin/TimelineViewPresets#config-viewPreset) is changed.
|
|
1537
1545
|
* @param {object} event Event object
|
|
@@ -1565,18 +1573,18 @@ export type BryntumResourceHistogramProps = {
|
|
|
1565
1573
|
/**
|
|
1566
1574
|
* Fires before a row is rendered.
|
|
1567
1575
|
* @param {object} event Event object
|
|
1568
|
-
* @param {Grid.view.
|
|
1569
|
-
* @param {Grid.row.Row} event.row The row about to be rendered
|
|
1570
|
-
* @param {Core.data.Model} event.record The record for the row
|
|
1571
|
-
* @param {number} event.recordIndex The zero-based index of the record
|
|
1576
|
+
* @param {Grid.view.GridBase} event.source The firing Grid instance
|
|
1577
|
+
* @param {Grid.row.Row} event.row The row about to be rendered
|
|
1578
|
+
* @param {Core.data.Model} event.record The record for the row
|
|
1579
|
+
* @param {number} event.recordIndex The zero-based index of the record
|
|
1572
1580
|
*/
|
|
1573
|
-
onBeforeRenderRow? : ((event: { source:
|
|
1581
|
+
onBeforeRenderRow? : ((event: { source: GridBase, row: Row, record: Model, recordIndex: number }) => void)|string
|
|
1574
1582
|
/**
|
|
1575
1583
|
* Grid rows are about to be rendered
|
|
1576
1584
|
* @param {object} event Event object
|
|
1577
|
-
* @param {Grid.view.
|
|
1585
|
+
* @param {Grid.view.GridBase} event.source This grid.
|
|
1578
1586
|
*/
|
|
1579
|
-
onBeforeRenderRows? : ((event: { source:
|
|
1587
|
+
onBeforeRenderRows? : ((event: { source: GridBase }) => void)|string
|
|
1580
1588
|
/**
|
|
1581
1589
|
* This event fires before row collapse is started.
|
|
1582
1590
|
* ...
|
|
@@ -1807,6 +1815,14 @@ export type BryntumResourceHistogramProps = {
|
|
|
1807
1815
|
* @param {Core.data.Model} event.record The record which has been collapsed.
|
|
1808
1816
|
*/
|
|
1809
1817
|
onCollapseNode? : ((event: { source: Grid, record: Model }) => void)|string
|
|
1818
|
+
/**
|
|
1819
|
+
* This event is triggered after a parent column has been collapsed or expanded.
|
|
1820
|
+
* @param {object} event Event object
|
|
1821
|
+
* @param {Grid.view.GridBase} event.source The Grid instance
|
|
1822
|
+
* @param {Grid.column.Column} event.column The column being toggled
|
|
1823
|
+
* @param {boolean} event.collapsed `true` if the column is now collapsed, `false` if expanded
|
|
1824
|
+
*/
|
|
1825
|
+
onColumnCollapseToggle? : ((event: { source: GridBase, column: Column, collapsed: boolean }) => void)|string
|
|
1810
1826
|
/**
|
|
1811
1827
|
* This event is fired when a column is being dragged, and you can set the `valid` flag on the `context` object
|
|
1812
1828
|
* to indicate whether the drop position is valid or not.
|
|
@@ -1895,14 +1911,14 @@ export type BryntumResourceHistogramProps = {
|
|
|
1895
1911
|
* ...
|
|
1896
1912
|
* [View online docs...](https://bryntum.com/products/gantt/docs/api/SchedulerPro/view/ResourceHistogram#event-dataChange)
|
|
1897
1913
|
* @param {object} event Event object
|
|
1898
|
-
* @param {Grid.view.
|
|
1914
|
+
* @param {Grid.view.GridBase} event.source Owning grid
|
|
1899
1915
|
* @param {Core.data.Store} event.store The originating store
|
|
1900
1916
|
* @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'`
|
|
1901
1917
|
* @param {Core.data.Model} event.record Changed record, for actions that affects exactly one record (`'update'`)
|
|
1902
1918
|
* @param {Core.data.Model[]} event.records Changed records, passed for all actions except `'removeAll'`
|
|
1903
1919
|
* @param {object} event.changes Passed for the `'update'` action, info on which record fields changed
|
|
1904
1920
|
*/
|
|
1905
|
-
onDataChange? : ((event: { source:
|
|
1921
|
+
onDataChange? : ((event: { source: GridBase, store: Store, action: 'remove'|'removeAll'|'add'|'clearchanges'|'filter'|'update'|'dataset'|'replace', record: Model, records: Model[], changes: object }) => void)|string
|
|
1906
1922
|
/**
|
|
1907
1923
|
* Fired when the range of dates encapsulated by the UI changes. This will be when
|
|
1908
1924
|
* moving a view in time by reconfiguring its [timeAxis](https://bryntum.com/products/gantt/docs/api/Scheduler/view/TimelineBase#config-timeAxis). This will happen
|
|
@@ -2265,18 +2281,18 @@ export type BryntumResourceHistogramProps = {
|
|
|
2265
2281
|
/**
|
|
2266
2282
|
* Fires after a row is rendered.
|
|
2267
2283
|
* @param {object} event Event object
|
|
2268
|
-
* @param {Grid.view.
|
|
2269
|
-
* @param {Grid.row.Row} event.row The row that has been rendered
|
|
2270
|
-
* @param {Core.data.Model} event.record The record for the row
|
|
2271
|
-
* @param {number} event.recordIndex The zero-based index of the record
|
|
2284
|
+
* @param {Grid.view.GridBase} event.source The firing Grid instance
|
|
2285
|
+
* @param {Grid.row.Row} event.row The row that has been rendered
|
|
2286
|
+
* @param {Core.data.Model} event.record The record for the row
|
|
2287
|
+
* @param {number} event.recordIndex The zero-based index of the record
|
|
2272
2288
|
*/
|
|
2273
|
-
onRenderRow? : ((event: { source:
|
|
2289
|
+
onRenderRow? : ((event: { source: GridBase, row: Row, record: Model, recordIndex: number }) => void)|string
|
|
2274
2290
|
/**
|
|
2275
2291
|
* Grid rows have been rendered
|
|
2276
2292
|
* @param {object} event Event object
|
|
2277
|
-
* @param {Grid.view.
|
|
2293
|
+
* @param {Grid.view.GridBase} event.source This grid.
|
|
2278
2294
|
*/
|
|
2279
|
-
onRenderRows? : ((event: { source:
|
|
2295
|
+
onRenderRows? : ((event: { source: GridBase }) => void)|string
|
|
2280
2296
|
/**
|
|
2281
2297
|
* Fired when the encapsulating element of a Widget resizes *only when [monitorResize](https://bryntum.com/products/gantt/docs/api/Core/widget/Widget#config-monitorResize) is `true`*.
|
|
2282
2298
|
* @param {object} event Event object
|
|
@@ -2531,10 +2547,10 @@ export type BryntumResourceHistogramProps = {
|
|
|
2531
2547
|
/**
|
|
2532
2548
|
* Grid has scrolled vertically
|
|
2533
2549
|
* @param {object} event Event object
|
|
2534
|
-
* @param {Grid.view.
|
|
2550
|
+
* @param {Grid.view.GridBase} event.source The firing Grid instance.
|
|
2535
2551
|
* @param {number} event.scrollTop The vertical scroll position.
|
|
2536
2552
|
*/
|
|
2537
|
-
onScroll? : ((event: { source:
|
|
2553
|
+
onScroll? : ((event: { source: GridBase, scrollTop: number }) => void)|string
|
|
2538
2554
|
/**
|
|
2539
2555
|
* The selection has been changed.
|
|
2540
2556
|
* @param {object} event Event object
|
|
@@ -2622,17 +2638,17 @@ export type BryntumResourceHistogramProps = {
|
|
|
2622
2638
|
/**
|
|
2623
2639
|
* Fires after a sub grid is collapsed.
|
|
2624
2640
|
* @param {object} event Event object
|
|
2625
|
-
* @param {Grid.view.
|
|
2641
|
+
* @param {Grid.view.GridBase} event.source The firing Grid instance
|
|
2626
2642
|
* @param {Grid.view.SubGrid} event.subGrid The sub grid instance
|
|
2627
2643
|
*/
|
|
2628
|
-
onSubGridCollapse? : ((event: { source:
|
|
2644
|
+
onSubGridCollapse? : ((event: { source: GridBase, subGrid: SubGrid }) => void)|string
|
|
2629
2645
|
/**
|
|
2630
2646
|
* Fires after a sub grid is expanded.
|
|
2631
2647
|
* @param {object} event Event object
|
|
2632
|
-
* @param {Grid.view.
|
|
2648
|
+
* @param {Grid.view.GridBase} event.source The firing Grid instance
|
|
2633
2649
|
* @param {Grid.view.SubGrid} event.subGrid The sub grid instance
|
|
2634
2650
|
*/
|
|
2635
|
-
onSubGridExpand? : ((event: { source:
|
|
2651
|
+
onSubGridExpand? : ((event: { source: GridBase, subGrid: SubGrid }) => void)|string
|
|
2636
2652
|
/**
|
|
2637
2653
|
* Fired when the tick size changes.
|
|
2638
2654
|
* ...
|
|
@@ -3321,9 +3337,7 @@ export class BryntumResourceHistogram extends React.Component<BryntumResourceHis
|
|
|
3321
3337
|
'managedEventSizing',
|
|
3322
3338
|
'maskDefaults',
|
|
3323
3339
|
'masked',
|
|
3324
|
-
'maxDate',
|
|
3325
3340
|
'maxTimeAxisUnit',
|
|
3326
|
-
'minDate',
|
|
3327
3341
|
'monitorResize',
|
|
3328
3342
|
'owner',
|
|
3329
3343
|
'partner',
|
|
@@ -3417,9 +3431,11 @@ export class BryntumResourceHistogram extends React.Component<BryntumResourceHis
|
|
|
3417
3431
|
'labelPosition',
|
|
3418
3432
|
'longPressTime',
|
|
3419
3433
|
'margin',
|
|
3434
|
+
'maxDate',
|
|
3420
3435
|
'maxHeight',
|
|
3421
3436
|
'maxWidth',
|
|
3422
3437
|
'maxZoomLevel',
|
|
3438
|
+
'minDate',
|
|
3423
3439
|
'minHeight',
|
|
3424
3440
|
'minWidth',
|
|
3425
3441
|
'minZoomLevel',
|
|
@@ -3429,6 +3445,7 @@ export class BryntumResourceHistogram extends React.Component<BryntumResourceHis
|
|
|
3429
3445
|
'onBeforeCellEditStart',
|
|
3430
3446
|
'onBeforeCellRangeDelete',
|
|
3431
3447
|
'onBeforeCellRangeEdit',
|
|
3448
|
+
'onBeforeColumnCollapseToggle',
|
|
3432
3449
|
'onBeforeColumnDragStart',
|
|
3433
3450
|
'onBeforeColumnDropFinalize',
|
|
3434
3451
|
'onBeforeColumnResize',
|
|
@@ -3475,6 +3492,7 @@ export class BryntumResourceHistogram extends React.Component<BryntumResourceHis
|
|
|
3475
3492
|
'onCellMouseOver',
|
|
3476
3493
|
'onCollapse',
|
|
3477
3494
|
'onCollapseNode',
|
|
3495
|
+
'onColumnCollapseToggle',
|
|
3478
3496
|
'onColumnDrag',
|
|
3479
3497
|
'onColumnDragStart',
|
|
3480
3498
|
'onColumnDrop',
|