@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
|
@@ -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, AssignmentStoreConfig, Base, CalendarHighlight, CalendarHighlightConfig, CalendarModelConfig, 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, CycleResolutionPopup, DateConstraint, DependencyBaseModel, DependencyEdit, DependencyEditConfig, DependencyMenu, DependencyMenuConfig, DependencyModelConfig, DependencyStoreConfig, DomClassList, DomConfig, DropData, DurationConfig, DurationUnit, EmptyTextDomConfig, EventBuffer, EventBufferConfig, EventColor, EventCopyPaste, EventCopyPasteConfig, EventDrag, EventDragConfig, EventDragCreate, EventDragCreateConfig, EventDragSelect, EventDragSelectConfig, EventEdit, EventEditConfig, EventFilter, EventFilterConfig, EventLayoutConfig, EventMenu, EventMenuConfig, EventModel, EventModelConfig, EventNonWorkingTime, EventNonWorkingTimeConfig, EventResize, EventResizeConfig, EventResizeData, EventSegmentDrag, EventSegmentDragConfig, EventSegmentResize, EventSegmentResizeConfig, EventSegments, EventSegmentsConfig, EventStore, EventStoreConfig, EventTooltip, EventTooltipConfig, ExcelExporter, ExcelExporterConfig, ExportConfig, FileDrop, FileDropConfig, FillHandle, FillHandleConfig, Filter, FilterBar, FilterBarConfig, FilterConfig, FormulaProviderConfig, Grid, GridBase, GridColumnConfig, GridLocation, GridLocationConfig, GridSelectionMode, GridTreeGroup, GridTreeGroupConfig, Group, GroupConfig, GroupSummary, GroupSummaryConfig, HeaderMenu, HeaderMenuConfig, HeaderZoom, HeaderZoomConfig, KeyMapConfig, LockRows, LockRowsConfig, Mask, MaskConfig, Menu, MenuConfig, MenuItem, MenuItemEntry, MergeCells, MergeCellsConfig, Model, ModelConfig, NestedEvents, NestedEventsConfig, NonWorkingTime, NonWorkingTimeConfig, PagingToolbarConfig, Pan, PanConfig, Panel, PanelCollapserConfig, PanelCollapserOverlayConfig, PanelHeader, PercentBar, PercentBarConfig, PinColumns, PinColumnsConfig, Popup, PreserveScrollOptions, PresetStore, ProjectModel, ProjectModelConfig, QuickFind, QuickFindConfig, RecordPositionContext, Rectangle, RecurrenceConfirmationPopup, RecurrenceConfirmationPopupConfig, RegionResize, RegionResizeConfig, ResourceEdit, ResourceEditConfig, ResourceEditor, ResourceGrid, ResourceHeaderConfig, ResourceMarginConfig, ResourceMenu, ResourceMenuConfig, ResourceModelConfig, ResourceNonWorkingTime, ResourceNonWorkingTimeConfig, ResourceStoreConfig, ResourceTimeRangeModel, ResourceTimeRangeModelConfig, ResourceTimeRangeStore, ResourceTimeRangeStoreConfig, ResourceTimeRanges, ResourceTimeRangesConfig, Row, RowCopyPaste, RowCopyPasteConfig, RowEdit, RowEditConfig, RowEditorContext, RowExpander, RowExpanderConfig, RowReorder, RowReorderConfig, RowResize, RowResizeConfig, ScheduleContext, ScheduleContextConfig, ScheduleMenu, ScheduleMenuConfig, ScheduleTooltip, ScheduleTooltipConfig, Scheduler, SchedulerAssignmentModel, SchedulerBase, SchedulerDependencyEdit, SchedulerDependencyModel, SchedulerEventModel, SchedulerLabels, SchedulerLabelsConfig, SchedulerPdfExport, SchedulerPdfExportConfig, SchedulerPrint, SchedulerPrintConfig, SchedulerPro, SchedulerProAssignmentModel, SchedulerProAssignmentModelConfig, SchedulerProAssignmentStore, SchedulerProBase, SchedulerProBaseListeners, SchedulerProCalendarModel, SchedulerProCellEdit, SchedulerProCellEditConfig, SchedulerProDependencies, SchedulerProDependenciesConfig, SchedulerProDependencyModel, SchedulerProDependencyStore, SchedulerProProjectModel, SchedulerProResourceModel, SchedulerProResourceModelConfig, SchedulerProResourceStore, SchedulerProTaskEdit, SchedulerProTaskEditConfig, SchedulerProVersions, SchedulerProVersionsConfig, SchedulerResourceModel, SchedulerResponsiveLevelConfig, SchedulerScrollButtons, SchedulerScrollButtonsConfig, SchedulerStateInfo, SchedulerSummary, SchedulerSummaryConfig, SchedulerTimeAxisColumn, SchedulingIssueResolutionPopup, ScrollManager, ScrollManagerConfig, Scroller, ScrollerConfig, Search, SearchConfig, SimpleEventEdit, SimpleEventEditConfig, Sort, SortConfig, Split, SplitConfig, StateProvider, StickyCells, StickyCellsConfig, StickyEvents, StickyEventsConfig, Store, StoreConfig, Stripe, StripeConfig, SubGrid, SubGridConfig, TabConfig, TaskEditorBase, TimeAxis, TimeAxisConfig, TimeAxisHeaderMenu, TimeAxisHeaderMenuConfig, TimeRanges, TimeRangesConfig, TimeSelection, TimeSelectionConfig, TimeSpan, TimeSpanConfig, TimeSpanHighlight, TimeSpanHighlightConfig, TimelineBase, TimelineContext, Tool, ToolConfig, ToolbarConfig, ToolbarItems, TooltipConfig, Tree, TreeConfig, TreeSummary, TreeSummaryConfig, VerticalTimeAxisColumn, VerticalTimeAxisColumnConfig, ViewPreset, ViewPresetConfig, VisibleDate, Widget, XLSColumn } from '@bryntum/gantt';
|
|
6
|
+
import { AIFilter, AIFilterConfig, AjaxStore, AjaxStoreConfig, AssignmentStoreConfig, Base, CalendarHighlight, CalendarHighlightConfig, CalendarModelConfig, 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, CycleResolutionPopup, DateConstraint, DependencyBaseModel, DependencyEdit, DependencyEditConfig, DependencyMenu, DependencyMenuConfig, DependencyModelConfig, DependencyStoreConfig, DomClassList, DomConfig, DropData, DurationConfig, DurationUnit, EmptyTextDomConfig, EventBuffer, EventBufferConfig, EventColor, EventCopyPaste, EventCopyPasteConfig, EventDrag, EventDragConfig, EventDragCreate, EventDragCreateConfig, EventDragSelect, EventDragSelectConfig, EventEdit, EventEditConfig, EventFilter, EventFilterConfig, EventLayoutConfig, EventMenu, EventMenuConfig, EventModel, EventModelConfig, EventNonWorkingTime, EventNonWorkingTimeConfig, EventResize, EventResizeConfig, EventResizeData, EventSegmentDrag, EventSegmentDragConfig, EventSegmentResize, EventSegmentResizeConfig, EventSegments, EventSegmentsConfig, EventStore, EventStoreConfig, EventTooltip, EventTooltipConfig, ExcelExporter, ExcelExporterConfig, ExportConfig, FileDrop, FileDropConfig, FillHandle, FillHandleConfig, Filter, FilterBar, FilterBarConfig, FilterConfig, FormulaProviderConfig, Grid, GridBase, GridColumnConfig, GridLocation, GridLocationConfig, GridSelectionMode, GridTreeGroup, GridTreeGroupConfig, Group, GroupConfig, GroupSummary, GroupSummaryConfig, HeaderMenu, HeaderMenuConfig, HeaderZoom, HeaderZoomConfig, KeyMapConfig, LockRows, LockRowsConfig, Mask, MaskConfig, Menu, MenuConfig, MenuItem, MenuItemEntry, MergeCells, MergeCellsConfig, Model, ModelConfig, NestedEvents, NestedEventsConfig, NonWorkingTime, NonWorkingTimeConfig, PagingToolbarConfig, Pan, PanConfig, Panel, PanelCollapserConfig, PanelCollapserOverlayConfig, PanelHeader, PdfExportConfig, PercentBar, PercentBarConfig, PinColumns, PinColumnsConfig, Popup, PreserveScrollOptions, PresetStore, ProjectModel, ProjectModelConfig, QuickFind, QuickFindConfig, RecordPositionContext, Rectangle, RecurrenceConfirmationPopup, RecurrenceConfirmationPopupConfig, RegionResize, RegionResizeConfig, ResourceEdit, ResourceEditConfig, ResourceEditor, ResourceGrid, ResourceHeaderConfig, ResourceMarginConfig, ResourceMenu, ResourceMenuConfig, ResourceModelConfig, ResourceNonWorkingTime, ResourceNonWorkingTimeConfig, ResourceStoreConfig, ResourceTimeRangeModel, ResourceTimeRangeModelConfig, ResourceTimeRangeStore, ResourceTimeRangeStoreConfig, ResourceTimeRanges, ResourceTimeRangesConfig, Row, RowCopyPaste, RowCopyPasteConfig, RowEdit, RowEditConfig, RowEditorContext, RowExpander, RowExpanderConfig, RowReorder, RowReorderConfig, RowResize, RowResizeConfig, ScheduleContext, ScheduleContextConfig, ScheduleMenu, ScheduleMenuConfig, ScheduleTooltip, ScheduleTooltipConfig, Scheduler, SchedulerAssignmentModel, SchedulerBase, SchedulerDependencyEdit, SchedulerDependencyModel, SchedulerEventModel, SchedulerLabels, SchedulerLabelsConfig, SchedulerPdfExport, SchedulerPdfExportConfig, SchedulerPrint, SchedulerPrintConfig, SchedulerPro, SchedulerProAssignmentModel, SchedulerProAssignmentModelConfig, SchedulerProAssignmentStore, SchedulerProBase, SchedulerProBaseListeners, SchedulerProCalendarModel, SchedulerProCellEdit, SchedulerProCellEditConfig, SchedulerProDependencies, SchedulerProDependenciesConfig, SchedulerProDependencyModel, SchedulerProDependencyStore, SchedulerProProjectModel, SchedulerProResourceModel, SchedulerProResourceModelConfig, SchedulerProResourceStore, SchedulerProTaskEdit, SchedulerProTaskEditConfig, SchedulerProVersions, SchedulerProVersionsConfig, SchedulerResourceModel, SchedulerResponsiveLevelConfig, SchedulerScrollButtons, SchedulerScrollButtonsConfig, SchedulerStateInfo, SchedulerSummary, SchedulerSummaryConfig, SchedulerTimeAxisColumn, SchedulingIssueResolutionPopup, ScrollManager, ScrollManagerConfig, Scroller, ScrollerConfig, Search, SearchConfig, SimpleEventEdit, SimpleEventEditConfig, Sort, SortConfig, Split, SplitConfig, StateProvider, StickyCells, StickyCellsConfig, StickyEvents, StickyEventsConfig, Store, StoreConfig, Stripe, StripeConfig, SubGrid, SubGridConfig, TabConfig, TaskEditorBase, TimeAxis, TimeAxisConfig, TimeAxisHeaderMenu, TimeAxisHeaderMenuConfig, TimeRanges, TimeRangesConfig, TimeSelection, TimeSelectionConfig, TimeSpan, TimeSpanConfig, TimeSpanHighlight, TimeSpanHighlightConfig, TimelineBase, TimelineContext, Tool, ToolConfig, ToolbarConfig, ToolbarItems, TooltipConfig, Tree, TreeConfig, TreeSummary, TreeSummaryConfig, VerticalTimeAxisColumn, VerticalTimeAxisColumnConfig, ViewPreset, ViewPresetConfig, VisibleDate, Widget, XLSColumn } from '@bryntum/gantt';
|
|
7
7
|
|
|
8
8
|
import { createWidget, shouldComponentUpdate, processWidgetContent } from './WrapperHelper.js';
|
|
9
9
|
|
|
@@ -1776,6 +1776,14 @@ export type BryntumSchedulerProBaseProps = {
|
|
|
1776
1776
|
* @param {any} event.value The value being set
|
|
1777
1777
|
*/
|
|
1778
1778
|
onBeforeCellRangeEdit? : ((event: { record: Model, field: string, value: any }) => Promise<boolean>|boolean|void)|string
|
|
1779
|
+
/**
|
|
1780
|
+
* This event is triggered before a parent column is collapsed or expanded.
|
|
1781
|
+
* @param {object} event Event object
|
|
1782
|
+
* @param {Grid.view.GridBase} event.source The grid instance
|
|
1783
|
+
* @param {Grid.column.Column} event.column The column
|
|
1784
|
+
* @param {boolean} event.collapsed `true` if the column is being collapsed, `false` if expanded
|
|
1785
|
+
*/
|
|
1786
|
+
onBeforeColumnCollapseToggle? : ((event: { source: GridBase, column: Column, collapsed: boolean }) => void)|string
|
|
1779
1787
|
/**
|
|
1780
1788
|
* This event is fired prior to starting a column drag gesture. The drag is canceled if a listener returns `false`.
|
|
1781
1789
|
* @param {object} event Event object
|
|
@@ -2176,9 +2184,9 @@ export type BryntumSchedulerProBaseProps = {
|
|
|
2176
2184
|
/**
|
|
2177
2185
|
* Fires on the owning Grid before export started. Return `false` to cancel the export.
|
|
2178
2186
|
* @param {object} event Event object
|
|
2179
|
-
* @param {
|
|
2187
|
+
* @param {PdfExportConfig} event.config Export config
|
|
2180
2188
|
*/
|
|
2181
|
-
onBeforePdfExport? : ((event: { config:
|
|
2189
|
+
onBeforePdfExport? : ((event: { config: PdfExportConfig }) => Promise<boolean>|boolean|void)|string
|
|
2182
2190
|
/**
|
|
2183
2191
|
* Fired before the [viewPreset](https://bryntum.com/products/gantt/docs/api/Scheduler/view/mixin/TimelineViewPresets#config-viewPreset) is changed.
|
|
2184
2192
|
* @param {object} event Event object
|
|
@@ -2202,18 +2210,18 @@ export type BryntumSchedulerProBaseProps = {
|
|
|
2202
2210
|
/**
|
|
2203
2211
|
* Fires before a row is rendered.
|
|
2204
2212
|
* @param {object} event Event object
|
|
2205
|
-
* @param {Grid.view.
|
|
2206
|
-
* @param {Grid.row.Row} event.row The row about to be rendered
|
|
2207
|
-
* @param {Core.data.Model} event.record The record for the row
|
|
2208
|
-
* @param {number} event.recordIndex The zero-based index of the record
|
|
2213
|
+
* @param {Grid.view.GridBase} event.source The firing Grid instance
|
|
2214
|
+
* @param {Grid.row.Row} event.row The row about to be rendered
|
|
2215
|
+
* @param {Core.data.Model} event.record The record for the row
|
|
2216
|
+
* @param {number} event.recordIndex The zero-based index of the record
|
|
2209
2217
|
*/
|
|
2210
|
-
onBeforeRenderRow? : ((event: { source:
|
|
2218
|
+
onBeforeRenderRow? : ((event: { source: GridBase, row: Row, record: Model, recordIndex: number }) => void)|string
|
|
2211
2219
|
/**
|
|
2212
2220
|
* Grid rows are about to be rendered
|
|
2213
2221
|
* @param {object} event Event object
|
|
2214
|
-
* @param {Grid.view.
|
|
2222
|
+
* @param {Grid.view.GridBase} event.source This grid.
|
|
2215
2223
|
*/
|
|
2216
|
-
onBeforeRenderRows? : ((event: { source:
|
|
2224
|
+
onBeforeRenderRows? : ((event: { source: GridBase }) => void)|string
|
|
2217
2225
|
/**
|
|
2218
2226
|
* Fires on the owning grid before a resource editing starts.
|
|
2219
2227
|
* This may be listened for to allow an application to take over event editing duties.
|
|
@@ -2516,6 +2524,14 @@ export type BryntumSchedulerProBaseProps = {
|
|
|
2516
2524
|
* @param {Core.data.Model} event.record The record which has been collapsed.
|
|
2517
2525
|
*/
|
|
2518
2526
|
onCollapseNode? : ((event: { source: Grid, record: Model }) => void)|string
|
|
2527
|
+
/**
|
|
2528
|
+
* This event is triggered after a parent column has been collapsed or expanded.
|
|
2529
|
+
* @param {object} event Event object
|
|
2530
|
+
* @param {Grid.view.GridBase} event.source The Grid instance
|
|
2531
|
+
* @param {Grid.column.Column} event.column The column being toggled
|
|
2532
|
+
* @param {boolean} event.collapsed `true` if the column is now collapsed, `false` if expanded
|
|
2533
|
+
*/
|
|
2534
|
+
onColumnCollapseToggle? : ((event: { source: GridBase, column: Column, collapsed: boolean }) => void)|string
|
|
2519
2535
|
/**
|
|
2520
2536
|
* This event is fired when a column is being dragged, and you can set the `valid` flag on the `context` object
|
|
2521
2537
|
* to indicate whether the drop position is valid or not.
|
|
@@ -2604,14 +2620,14 @@ export type BryntumSchedulerProBaseProps = {
|
|
|
2604
2620
|
* ...
|
|
2605
2621
|
* [View online docs...](https://bryntum.com/products/gantt/docs/api/SchedulerPro/view/SchedulerProBase#event-dataChange)
|
|
2606
2622
|
* @param {object} event Event object
|
|
2607
|
-
* @param {Grid.view.
|
|
2623
|
+
* @param {Grid.view.GridBase} event.source Owning grid
|
|
2608
2624
|
* @param {Core.data.Store} event.store The originating store
|
|
2609
2625
|
* @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'`
|
|
2610
2626
|
* @param {Core.data.Model} event.record Changed record, for actions that affects exactly one record (`'update'`)
|
|
2611
2627
|
* @param {Core.data.Model[]} event.records Changed records, passed for all actions except `'removeAll'`
|
|
2612
2628
|
* @param {object} event.changes Passed for the `'update'` action, info on which record fields changed
|
|
2613
2629
|
*/
|
|
2614
|
-
onDataChange? : ((event: { source:
|
|
2630
|
+
onDataChange? : ((event: { source: GridBase, store: Store, action: 'remove'|'removeAll'|'add'|'clearchanges'|'filter'|'update'|'dataset'|'replace', record: Model, records: Model[], changes: object }) => void)|string
|
|
2615
2631
|
/**
|
|
2616
2632
|
* Fired when the range of dates encapsulated by the UI changes. This will be when
|
|
2617
2633
|
* moving a view in time by reconfiguring its [timeAxis](https://bryntum.com/products/gantt/docs/api/Scheduler/view/TimelineBase#config-timeAxis). This will happen
|
|
@@ -2722,16 +2738,20 @@ export type BryntumSchedulerProBaseProps = {
|
|
|
2722
2738
|
* @param {Scheduler.model.TimeSpan} event.source The source task
|
|
2723
2739
|
* @param {Scheduler.model.TimeSpan} event.target The target task
|
|
2724
2740
|
* @param {number} event.dependencyType The dependency type, see [Type](https://bryntum.com/products/gantt/docs/api/Scheduler/model/DependencyBaseModel#property-Type-static)
|
|
2741
|
+
* @param {'start','end','top','bottom'} event.fromSide The side of the source task where the dependency starts
|
|
2742
|
+
* @param {'start','end','top','bottom'} event.toSide The side of the target task where the dependency ends
|
|
2725
2743
|
*/
|
|
2726
|
-
onDependencyValidationComplete? : ((event: { source: TimeSpan, target: TimeSpan, dependencyType: number }) => void)|string
|
|
2744
|
+
onDependencyValidationComplete? : ((event: { source: TimeSpan, target: TimeSpan, dependencyType: number, fromSide: 'start'|'end'|'top'|'bottom', toSide: 'start'|'end'|'top'|'bottom' }) => void)|string
|
|
2727
2745
|
/**
|
|
2728
2746
|
* Fired on the owning Scheduler/Gantt when asynchronous dependency validation starts
|
|
2729
2747
|
* @param {object} event Event object
|
|
2730
2748
|
* @param {Scheduler.model.TimeSpan} event.source The source task
|
|
2731
2749
|
* @param {Scheduler.model.TimeSpan} event.target The target task
|
|
2732
2750
|
* @param {number} event.dependencyType The dependency type, see [Type](https://bryntum.com/products/gantt/docs/api/Scheduler/model/DependencyBaseModel#property-Type-static)
|
|
2751
|
+
* @param {'start','end','top','bottom'} event.fromSide The side of the source task where the dependency starts
|
|
2752
|
+
* @param {'start','end','top','bottom'} event.toSide The side of the target task where the dependency ends
|
|
2733
2753
|
*/
|
|
2734
|
-
onDependencyValidationStart? : ((event: { source: TimeSpan, target: TimeSpan, dependencyType: number }) => void)|string
|
|
2754
|
+
onDependencyValidationStart? : ((event: { source: TimeSpan, target: TimeSpan, dependencyType: number, fromSide: 'start'|'end'|'top'|'bottom', toSide: 'start'|'end'|'top'|'bottom' }) => void)|string
|
|
2735
2755
|
/**
|
|
2736
2756
|
* Fires when an object is destroyed.
|
|
2737
2757
|
* @param {object} event Event object
|
|
@@ -3565,18 +3585,18 @@ export type BryntumSchedulerProBaseProps = {
|
|
|
3565
3585
|
/**
|
|
3566
3586
|
* Fires after a row is rendered.
|
|
3567
3587
|
* @param {object} event Event object
|
|
3568
|
-
* @param {Grid.view.
|
|
3569
|
-
* @param {Grid.row.Row} event.row The row that has been rendered
|
|
3570
|
-
* @param {Core.data.Model} event.record The record for the row
|
|
3571
|
-
* @param {number} event.recordIndex The zero-based index of the record
|
|
3588
|
+
* @param {Grid.view.GridBase} event.source The firing Grid instance
|
|
3589
|
+
* @param {Grid.row.Row} event.row The row that has been rendered
|
|
3590
|
+
* @param {Core.data.Model} event.record The record for the row
|
|
3591
|
+
* @param {number} event.recordIndex The zero-based index of the record
|
|
3572
3592
|
*/
|
|
3573
|
-
onRenderRow? : ((event: { source:
|
|
3593
|
+
onRenderRow? : ((event: { source: GridBase, row: Row, record: Model, recordIndex: number }) => void)|string
|
|
3574
3594
|
/**
|
|
3575
3595
|
* Grid rows have been rendered
|
|
3576
3596
|
* @param {object} event Event object
|
|
3577
|
-
* @param {Grid.view.
|
|
3597
|
+
* @param {Grid.view.GridBase} event.source This grid.
|
|
3578
3598
|
*/
|
|
3579
|
-
onRenderRows? : ((event: { source:
|
|
3599
|
+
onRenderRows? : ((event: { source: GridBase }) => void)|string
|
|
3580
3600
|
/**
|
|
3581
3601
|
* 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`*.
|
|
3582
3602
|
* @param {object} event Event object
|
|
@@ -4024,10 +4044,10 @@ export type BryntumSchedulerProBaseProps = {
|
|
|
4024
4044
|
/**
|
|
4025
4045
|
* Grid has scrolled vertically
|
|
4026
4046
|
* @param {object} event Event object
|
|
4027
|
-
* @param {Grid.view.
|
|
4047
|
+
* @param {Grid.view.GridBase} event.source The firing Grid instance.
|
|
4028
4048
|
* @param {number} event.scrollTop The vertical scroll position.
|
|
4029
4049
|
*/
|
|
4030
|
-
onScroll? : ((event: { source:
|
|
4050
|
+
onScroll? : ((event: { source: GridBase, scrollTop: number }) => void)|string
|
|
4031
4051
|
/**
|
|
4032
4052
|
* Fires on owner when the scroll button is clicked, return `false` to prevent default scroll behavior
|
|
4033
4053
|
* @param {object} event Event object
|
|
@@ -4131,17 +4151,17 @@ export type BryntumSchedulerProBaseProps = {
|
|
|
4131
4151
|
/**
|
|
4132
4152
|
* Fires after a sub grid is collapsed.
|
|
4133
4153
|
* @param {object} event Event object
|
|
4134
|
-
* @param {Grid.view.
|
|
4154
|
+
* @param {Grid.view.GridBase} event.source The firing Grid instance
|
|
4135
4155
|
* @param {Grid.view.SubGrid} event.subGrid The sub grid instance
|
|
4136
4156
|
*/
|
|
4137
|
-
onSubGridCollapse? : ((event: { source:
|
|
4157
|
+
onSubGridCollapse? : ((event: { source: GridBase, subGrid: SubGrid }) => void)|string
|
|
4138
4158
|
/**
|
|
4139
4159
|
* Fires after a sub grid is expanded.
|
|
4140
4160
|
* @param {object} event Event object
|
|
4141
|
-
* @param {Grid.view.
|
|
4161
|
+
* @param {Grid.view.GridBase} event.source The firing Grid instance
|
|
4142
4162
|
* @param {Grid.view.SubGrid} event.subGrid The sub grid instance
|
|
4143
4163
|
*/
|
|
4144
|
-
onSubGridExpand? : ((event: { source:
|
|
4164
|
+
onSubGridExpand? : ((event: { source: GridBase, subGrid: SubGrid }) => void)|string
|
|
4145
4165
|
/**
|
|
4146
4166
|
* Fires on the owning Scheduler or Gantt widget when the editor for an event is canceled.
|
|
4147
4167
|
* @param {object} event Event object
|
|
@@ -5168,9 +5188,7 @@ export class BryntumSchedulerProBase extends React.Component<BryntumSchedulerPro
|
|
|
5168
5188
|
'managedEventSizing',
|
|
5169
5189
|
'maskDefaults',
|
|
5170
5190
|
'masked',
|
|
5171
|
-
'maxDate',
|
|
5172
5191
|
'maxTimeAxisUnit',
|
|
5173
|
-
'minDate',
|
|
5174
5192
|
'mode',
|
|
5175
5193
|
'monitorResize',
|
|
5176
5194
|
'multiEventSelect',
|
|
@@ -5294,6 +5312,7 @@ export class BryntumSchedulerProBase extends React.Component<BryntumSchedulerPro
|
|
|
5294
5312
|
'lazyLoadingIndicator',
|
|
5295
5313
|
'longPressTime',
|
|
5296
5314
|
'margin',
|
|
5315
|
+
'maxDate',
|
|
5297
5316
|
'maxHeight',
|
|
5298
5317
|
'maxWidth',
|
|
5299
5318
|
'maxZoomLevel',
|
|
@@ -5301,6 +5320,7 @@ export class BryntumSchedulerProBase extends React.Component<BryntumSchedulerPro
|
|
|
5301
5320
|
'milestoneCharWidth',
|
|
5302
5321
|
'milestoneLayoutMode',
|
|
5303
5322
|
'milestoneTextPosition',
|
|
5323
|
+
'minDate',
|
|
5304
5324
|
'minHeight',
|
|
5305
5325
|
'minPackSize',
|
|
5306
5326
|
'minWidth',
|
|
@@ -5324,6 +5344,7 @@ export class BryntumSchedulerProBase extends React.Component<BryntumSchedulerPro
|
|
|
5324
5344
|
'onBeforeCellEditStart',
|
|
5325
5345
|
'onBeforeCellRangeDelete',
|
|
5326
5346
|
'onBeforeCellRangeEdit',
|
|
5347
|
+
'onBeforeColumnCollapseToggle',
|
|
5327
5348
|
'onBeforeColumnDragStart',
|
|
5328
5349
|
'onBeforeColumnDropFinalize',
|
|
5329
5350
|
'onBeforeColumnResize',
|
|
@@ -5399,6 +5420,7 @@ export class BryntumSchedulerProBase extends React.Component<BryntumSchedulerPro
|
|
|
5399
5420
|
'onCellMouseOver',
|
|
5400
5421
|
'onCollapse',
|
|
5401
5422
|
'onCollapseNode',
|
|
5423
|
+
'onColumnCollapseToggle',
|
|
5402
5424
|
'onColumnDrag',
|
|
5403
5425
|
'onColumnDragStart',
|
|
5404
5426
|
'onColumnDrop',
|
package/src/BryntumTimeline.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, ColumnLines, ColumnLinesConfig, ColumnPicker, ColumnPickerConfig, ColumnRename, ColumnRenameConfig, ColumnReorder, ColumnReorderConfig, ColumnResize, ColumnResizeConfig, ColumnStore, ColumnStoreConfig, Container, ContainerItemConfig, CrudManager, CrudManagerConfig, DateConstraint, DependencyBaseModel, DependencyMenu, DependencyMenuConfig, DependencyStoreConfig, DomClassList, DomConfig, DropData, DurationConfig, DurationUnit, EmptyTextDomConfig, EventColor, EventCopyPaste, EventCopyPasteConfig, EventDrag, EventDragConfig, EventDragCreate, EventDragCreateConfig, EventDragSelect, EventDragSelectConfig, EventEdit, EventEditConfig, EventFilter, EventFilterConfig, EventMenu, EventMenuConfig, EventNonWorkingTime, EventNonWorkingTimeConfig, EventResizeData, EventTooltip, EventTooltipConfig, ExcelExporter, ExcelExporterConfig, ExportConfig, FileDrop, FileDropConfig, FillHandle, FillHandleConfig, Filter, FilterBar, FilterBarConfig, FilterConfig, FormulaProviderConfig, Grid, GridBase, GridCellEdit, GridCellEditConfig, GridColumnConfig, GridLocation, GridLocationConfig, GridSelectionMode, GridTreeGroup, GridTreeGroupConfig, Group, GroupConfig, GroupSummary, GroupSummaryConfig, HeaderMenu, HeaderMenuConfig, HeaderZoom, HeaderZoomConfig, KeyMapConfig, LockRows, LockRowsConfig, Mask, MaskConfig, Menu, MenuConfig, MenuItem, MenuItemEntry, MergeCells, MergeCellsConfig, Model, ModelConfig, NonWorkingTime, NonWorkingTimeConfig, PagingToolbarConfig, Pan, PanConfig, Panel, PanelCollapserConfig, PanelCollapserOverlayConfig, PanelHeader, PinColumns, PinColumnsConfig, Popup, PreserveScrollOptions, PresetStore, ProjectModel, ProjectModelConfig, QuickFind, QuickFindConfig, RecordPositionContext, Rectangle, RecurrenceConfirmationPopup, RecurrenceConfirmationPopupConfig, RegionResize, RegionResizeConfig, ResourceHeaderConfig, ResourceMarginConfig, ResourceMenu, ResourceMenuConfig, ResourceTimeRangeModel, ResourceTimeRangeModelConfig, ResourceTimeRangeStore, ResourceTimeRangeStoreConfig, ResourceTimeRanges, ResourceTimeRangesConfig, Row, RowCopyPaste, RowCopyPasteConfig, RowEdit, RowEditConfig, RowEditorContext, RowExpander, RowExpanderConfig, RowReorder, RowReorderConfig, RowResize, RowResizeConfig, ScheduleContext, ScheduleContextConfig, ScheduleMenu, ScheduleMenuConfig, ScheduleTooltip, ScheduleTooltipConfig, Scheduler, SchedulerAssignmentModel, SchedulerAssignmentModelConfig, SchedulerAssignmentStore, SchedulerAssignmentStoreConfig, SchedulerBase, SchedulerDependencies, SchedulerDependenciesConfig, SchedulerDependencyEdit, SchedulerDependencyEditConfig, SchedulerDependencyModel, SchedulerDependencyModelConfig, SchedulerDependencyStore, SchedulerEventModel, SchedulerEventModelConfig, SchedulerEventResize, SchedulerEventResizeConfig, SchedulerEventStore, SchedulerEventStoreConfig, SchedulerLabels, SchedulerLabelsConfig, SchedulerPdfExport, SchedulerPdfExportConfig, SchedulerPrint, SchedulerPrintConfig, SchedulerProProjectModel, SchedulerResourceModel, SchedulerResourceModelConfig, SchedulerResourceStore, SchedulerResourceStoreConfig, SchedulerResponsiveLevelConfig, SchedulerScrollButtons, SchedulerScrollButtonsConfig, SchedulerStateInfo, SchedulerSummary, SchedulerSummaryConfig, SchedulerTimeAxisColumn, ScrollManager, ScrollManagerConfig, Scroller, ScrollerConfig, Search, SearchConfig, SimpleEventEdit, SimpleEventEditConfig, Sort, SortConfig, Split, SplitConfig, StateProvider, StickyCells, StickyCellsConfig, StickyEvents, StickyEventsConfig, Store, StoreConfig, Stripe, StripeConfig, SubGrid, SubGridConfig, TabConfig, TimeAxis, TimeAxisConfig, TimeAxisHeaderMenu, TimeAxisHeaderMenuConfig, TimeRanges, TimeRangesConfig, TimeSelection, TimeSelectionConfig, TimeSpan, TimeSpanConfig, Timeline, TimelineBase, TimelineContext, TimelineListeners, Tool, ToolConfig, ToolbarConfig, ToolbarItems, TooltipConfig, Tree, TreeConfig, TreeSummary, TreeSummaryConfig, VerticalTimeAxisColumn, VerticalTimeAxisColumnConfig, 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, DateConstraint, DependencyBaseModel, DependencyMenu, DependencyMenuConfig, DependencyStoreConfig, DomClassList, DomConfig, DropData, DurationConfig, DurationUnit, EmptyTextDomConfig, EventColor, EventCopyPaste, EventCopyPasteConfig, EventDrag, EventDragConfig, EventDragCreate, EventDragCreateConfig, EventDragSelect, EventDragSelectConfig, EventEdit, EventEditConfig, EventFilter, EventFilterConfig, EventMenu, EventMenuConfig, EventNonWorkingTime, EventNonWorkingTimeConfig, EventResizeData, EventTooltip, EventTooltipConfig, ExcelExporter, ExcelExporterConfig, ExportConfig, FileDrop, FileDropConfig, FillHandle, FillHandleConfig, Filter, FilterBar, FilterBarConfig, FilterConfig, FormulaProviderConfig, Grid, GridBase, GridCellEdit, GridCellEditConfig, GridColumnConfig, GridLocation, GridLocationConfig, GridSelectionMode, GridTreeGroup, GridTreeGroupConfig, Group, GroupConfig, GroupSummary, GroupSummaryConfig, HeaderMenu, HeaderMenuConfig, HeaderZoom, HeaderZoomConfig, KeyMapConfig, LockRows, LockRowsConfig, Mask, MaskConfig, Menu, MenuConfig, MenuItem, MenuItemEntry, MergeCells, MergeCellsConfig, Model, ModelConfig, NonWorkingTime, NonWorkingTimeConfig, PagingToolbarConfig, Pan, PanConfig, Panel, PanelCollapserConfig, PanelCollapserOverlayConfig, PanelHeader, PdfExportConfig, PinColumns, PinColumnsConfig, Popup, PreserveScrollOptions, PresetStore, ProjectModel, ProjectModelConfig, QuickFind, QuickFindConfig, RecordPositionContext, Rectangle, RecurrenceConfirmationPopup, RecurrenceConfirmationPopupConfig, RegionResize, RegionResizeConfig, ResourceHeaderConfig, ResourceMarginConfig, ResourceMenu, ResourceMenuConfig, ResourceTimeRangeModel, ResourceTimeRangeModelConfig, ResourceTimeRangeStore, ResourceTimeRangeStoreConfig, ResourceTimeRanges, ResourceTimeRangesConfig, Row, RowCopyPaste, RowCopyPasteConfig, RowEdit, RowEditConfig, RowEditorContext, RowExpander, RowExpanderConfig, RowReorder, RowReorderConfig, RowResize, RowResizeConfig, ScheduleContext, ScheduleContextConfig, ScheduleMenu, ScheduleMenuConfig, ScheduleTooltip, ScheduleTooltipConfig, Scheduler, SchedulerAssignmentModel, SchedulerAssignmentModelConfig, SchedulerAssignmentStore, SchedulerAssignmentStoreConfig, SchedulerBase, SchedulerDependencies, SchedulerDependenciesConfig, SchedulerDependencyEdit, SchedulerDependencyEditConfig, SchedulerDependencyModel, SchedulerDependencyModelConfig, SchedulerDependencyStore, SchedulerEventModel, SchedulerEventModelConfig, SchedulerEventResize, SchedulerEventResizeConfig, SchedulerEventStore, SchedulerEventStoreConfig, SchedulerLabels, SchedulerLabelsConfig, SchedulerPdfExport, SchedulerPdfExportConfig, SchedulerPrint, SchedulerPrintConfig, SchedulerProProjectModel, SchedulerResourceModel, SchedulerResourceModelConfig, SchedulerResourceStore, SchedulerResourceStoreConfig, SchedulerResponsiveLevelConfig, SchedulerScrollButtons, SchedulerScrollButtonsConfig, SchedulerStateInfo, SchedulerSummary, SchedulerSummaryConfig, SchedulerTimeAxisColumn, ScrollManager, ScrollManagerConfig, Scroller, ScrollerConfig, Search, SearchConfig, SimpleEventEdit, SimpleEventEditConfig, Sort, SortConfig, Split, SplitConfig, StateProvider, StickyCells, StickyCellsConfig, StickyEvents, StickyEventsConfig, Store, StoreConfig, Stripe, StripeConfig, SubGrid, SubGridConfig, TabConfig, TimeAxis, TimeAxisConfig, TimeAxisHeaderMenu, TimeAxisHeaderMenuConfig, TimeRanges, TimeRangesConfig, TimeSelection, TimeSelectionConfig, TimeSpan, TimeSpanConfig, Timeline, TimelineBase, TimelineContext, TimelineListeners, Tool, ToolConfig, ToolbarConfig, ToolbarItems, TooltipConfig, Tree, TreeConfig, TreeSummary, TreeSummaryConfig, VerticalTimeAxisColumn, VerticalTimeAxisColumnConfig, ViewPreset, ViewPresetConfig, VisibleDate, Widget, XLSColumn } from '@bryntum/gantt';
|
|
7
7
|
|
|
8
8
|
import { createWidget, shouldComponentUpdate, processWidgetContent } from './WrapperHelper.js';
|
|
9
9
|
|
|
@@ -1703,6 +1703,14 @@ export type BryntumTimelineProps = {
|
|
|
1703
1703
|
* @param {any} event.value The value being set
|
|
1704
1704
|
*/
|
|
1705
1705
|
onBeforeCellRangeEdit? : ((event: { record: Model, field: string, value: any }) => Promise<boolean>|boolean|void)|string
|
|
1706
|
+
/**
|
|
1707
|
+
* This event is triggered before a parent column is collapsed or expanded.
|
|
1708
|
+
* @param {object} event Event object
|
|
1709
|
+
* @param {Grid.view.GridBase} event.source The grid instance
|
|
1710
|
+
* @param {Grid.column.Column} event.column The column
|
|
1711
|
+
* @param {boolean} event.collapsed `true` if the column is being collapsed, `false` if expanded
|
|
1712
|
+
*/
|
|
1713
|
+
onBeforeColumnCollapseToggle? : ((event: { source: GridBase, column: Column, collapsed: boolean }) => void)|string
|
|
1706
1714
|
/**
|
|
1707
1715
|
* This event is fired prior to starting a column drag gesture. The drag is canceled if a listener returns `false`.
|
|
1708
1716
|
* @param {object} event Event object
|
|
@@ -2060,9 +2068,9 @@ export type BryntumTimelineProps = {
|
|
|
2060
2068
|
/**
|
|
2061
2069
|
* Fires on the owning Grid before export started. Return `false` to cancel the export.
|
|
2062
2070
|
* @param {object} event Event object
|
|
2063
|
-
* @param {
|
|
2071
|
+
* @param {PdfExportConfig} event.config Export config
|
|
2064
2072
|
*/
|
|
2065
|
-
onBeforePdfExport? : ((event: { config:
|
|
2073
|
+
onBeforePdfExport? : ((event: { config: PdfExportConfig }) => Promise<boolean>|boolean|void)|string
|
|
2066
2074
|
/**
|
|
2067
2075
|
* Fired before the [viewPreset](https://bryntum.com/products/gantt/docs/api/Scheduler/view/mixin/TimelineViewPresets#config-viewPreset) is changed.
|
|
2068
2076
|
* @param {object} event Event object
|
|
@@ -2076,18 +2084,18 @@ export type BryntumTimelineProps = {
|
|
|
2076
2084
|
/**
|
|
2077
2085
|
* Fires before a row is rendered.
|
|
2078
2086
|
* @param {object} event Event object
|
|
2079
|
-
* @param {Grid.view.
|
|
2080
|
-
* @param {Grid.row.Row} event.row The row about to be rendered
|
|
2081
|
-
* @param {Core.data.Model} event.record The record for the row
|
|
2082
|
-
* @param {number} event.recordIndex The zero-based index of the record
|
|
2087
|
+
* @param {Grid.view.GridBase} event.source The firing Grid instance
|
|
2088
|
+
* @param {Grid.row.Row} event.row The row about to be rendered
|
|
2089
|
+
* @param {Core.data.Model} event.record The record for the row
|
|
2090
|
+
* @param {number} event.recordIndex The zero-based index of the record
|
|
2083
2091
|
*/
|
|
2084
|
-
onBeforeRenderRow? : ((event: { source:
|
|
2092
|
+
onBeforeRenderRow? : ((event: { source: GridBase, row: Row, record: Model, recordIndex: number }) => void)|string
|
|
2085
2093
|
/**
|
|
2086
2094
|
* Grid rows are about to be rendered
|
|
2087
2095
|
* @param {object} event Event object
|
|
2088
|
-
* @param {Grid.view.
|
|
2096
|
+
* @param {Grid.view.GridBase} event.source This grid.
|
|
2089
2097
|
*/
|
|
2090
|
-
onBeforeRenderRows? : ((event: { source:
|
|
2098
|
+
onBeforeRenderRows? : ((event: { source: GridBase }) => void)|string
|
|
2091
2099
|
/**
|
|
2092
2100
|
* This event fires before row collapse is started.
|
|
2093
2101
|
* ...
|
|
@@ -2336,6 +2344,14 @@ export type BryntumTimelineProps = {
|
|
|
2336
2344
|
* @param {Core.data.Model} event.record The record which has been collapsed.
|
|
2337
2345
|
*/
|
|
2338
2346
|
onCollapseNode? : ((event: { source: Grid, record: Model }) => void)|string
|
|
2347
|
+
/**
|
|
2348
|
+
* This event is triggered after a parent column has been collapsed or expanded.
|
|
2349
|
+
* @param {object} event Event object
|
|
2350
|
+
* @param {Grid.view.GridBase} event.source The Grid instance
|
|
2351
|
+
* @param {Grid.column.Column} event.column The column being toggled
|
|
2352
|
+
* @param {boolean} event.collapsed `true` if the column is now collapsed, `false` if expanded
|
|
2353
|
+
*/
|
|
2354
|
+
onColumnCollapseToggle? : ((event: { source: GridBase, column: Column, collapsed: boolean }) => void)|string
|
|
2339
2355
|
/**
|
|
2340
2356
|
* This event is fired when a column is being dragged, and you can set the `valid` flag on the `context` object
|
|
2341
2357
|
* to indicate whether the drop position is valid or not.
|
|
@@ -2424,14 +2440,14 @@ export type BryntumTimelineProps = {
|
|
|
2424
2440
|
* ...
|
|
2425
2441
|
* [View online docs...](https://bryntum.com/products/gantt/docs/api/SchedulerPro/widget/Timeline#event-dataChange)
|
|
2426
2442
|
* @param {object} event Event object
|
|
2427
|
-
* @param {Grid.view.
|
|
2443
|
+
* @param {Grid.view.GridBase} event.source Owning grid
|
|
2428
2444
|
* @param {Core.data.Store} event.store The originating store
|
|
2429
2445
|
* @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'`
|
|
2430
2446
|
* @param {Core.data.Model} event.record Changed record, for actions that affects exactly one record (`'update'`)
|
|
2431
2447
|
* @param {Core.data.Model[]} event.records Changed records, passed for all actions except `'removeAll'`
|
|
2432
2448
|
* @param {object} event.changes Passed for the `'update'` action, info on which record fields changed
|
|
2433
2449
|
*/
|
|
2434
|
-
onDataChange? : ((event: { source:
|
|
2450
|
+
onDataChange? : ((event: { source: GridBase, store: Store, action: 'remove'|'removeAll'|'add'|'clearchanges'|'filter'|'update'|'dataset'|'replace', record: Model, records: Model[], changes: object }) => void)|string
|
|
2435
2451
|
/**
|
|
2436
2452
|
* Fired when the range of dates encapsulated by the UI changes. This will be when
|
|
2437
2453
|
* moving a view in time by reconfiguring its [timeAxis](https://bryntum.com/products/gantt/docs/api/Scheduler/view/TimelineBase#config-timeAxis). This will happen
|
|
@@ -2542,16 +2558,20 @@ export type BryntumTimelineProps = {
|
|
|
2542
2558
|
* @param {Scheduler.model.TimeSpan} event.source The source task
|
|
2543
2559
|
* @param {Scheduler.model.TimeSpan} event.target The target task
|
|
2544
2560
|
* @param {number} event.dependencyType The dependency type, see [Type](https://bryntum.com/products/gantt/docs/api/Scheduler/model/DependencyBaseModel#property-Type-static)
|
|
2561
|
+
* @param {'start','end','top','bottom'} event.fromSide The side of the source task where the dependency starts
|
|
2562
|
+
* @param {'start','end','top','bottom'} event.toSide The side of the target task where the dependency ends
|
|
2545
2563
|
*/
|
|
2546
|
-
onDependencyValidationComplete? : ((event: { source: TimeSpan, target: TimeSpan, dependencyType: number }) => void)|string
|
|
2564
|
+
onDependencyValidationComplete? : ((event: { source: TimeSpan, target: TimeSpan, dependencyType: number, fromSide: 'start'|'end'|'top'|'bottom', toSide: 'start'|'end'|'top'|'bottom' }) => void)|string
|
|
2547
2565
|
/**
|
|
2548
2566
|
* Fired on the owning Scheduler/Gantt when asynchronous dependency validation starts
|
|
2549
2567
|
* @param {object} event Event object
|
|
2550
2568
|
* @param {Scheduler.model.TimeSpan} event.source The source task
|
|
2551
2569
|
* @param {Scheduler.model.TimeSpan} event.target The target task
|
|
2552
2570
|
* @param {number} event.dependencyType The dependency type, see [Type](https://bryntum.com/products/gantt/docs/api/Scheduler/model/DependencyBaseModel#property-Type-static)
|
|
2571
|
+
* @param {'start','end','top','bottom'} event.fromSide The side of the source task where the dependency starts
|
|
2572
|
+
* @param {'start','end','top','bottom'} event.toSide The side of the target task where the dependency ends
|
|
2553
2573
|
*/
|
|
2554
|
-
onDependencyValidationStart? : ((event: { source: TimeSpan, target: TimeSpan, dependencyType: number }) => void)|string
|
|
2574
|
+
onDependencyValidationStart? : ((event: { source: TimeSpan, target: TimeSpan, dependencyType: number, fromSide: 'start'|'end'|'top'|'bottom', toSide: 'start'|'end'|'top'|'bottom' }) => void)|string
|
|
2555
2575
|
/**
|
|
2556
2576
|
* Fires when an object is destroyed.
|
|
2557
2577
|
* @param {object} event Event object
|
|
@@ -3286,18 +3306,18 @@ export type BryntumTimelineProps = {
|
|
|
3286
3306
|
/**
|
|
3287
3307
|
* Fires after a row is rendered.
|
|
3288
3308
|
* @param {object} event Event object
|
|
3289
|
-
* @param {Grid.view.
|
|
3290
|
-
* @param {Grid.row.Row} event.row The row that has been rendered
|
|
3291
|
-
* @param {Core.data.Model} event.record The record for the row
|
|
3292
|
-
* @param {number} event.recordIndex The zero-based index of the record
|
|
3309
|
+
* @param {Grid.view.GridBase} event.source The firing Grid instance
|
|
3310
|
+
* @param {Grid.row.Row} event.row The row that has been rendered
|
|
3311
|
+
* @param {Core.data.Model} event.record The record for the row
|
|
3312
|
+
* @param {number} event.recordIndex The zero-based index of the record
|
|
3293
3313
|
*/
|
|
3294
|
-
onRenderRow? : ((event: { source:
|
|
3314
|
+
onRenderRow? : ((event: { source: GridBase, row: Row, record: Model, recordIndex: number }) => void)|string
|
|
3295
3315
|
/**
|
|
3296
3316
|
* Grid rows have been rendered
|
|
3297
3317
|
* @param {object} event Event object
|
|
3298
|
-
* @param {Grid.view.
|
|
3318
|
+
* @param {Grid.view.GridBase} event.source This grid.
|
|
3299
3319
|
*/
|
|
3300
|
-
onRenderRows? : ((event: { source:
|
|
3320
|
+
onRenderRows? : ((event: { source: GridBase }) => void)|string
|
|
3301
3321
|
/**
|
|
3302
3322
|
* 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`*.
|
|
3303
3323
|
* @param {object} event Event object
|
|
@@ -3639,10 +3659,10 @@ export type BryntumTimelineProps = {
|
|
|
3639
3659
|
/**
|
|
3640
3660
|
* Grid has scrolled vertically
|
|
3641
3661
|
* @param {object} event Event object
|
|
3642
|
-
* @param {Grid.view.
|
|
3662
|
+
* @param {Grid.view.GridBase} event.source The firing Grid instance.
|
|
3643
3663
|
* @param {number} event.scrollTop The vertical scroll position.
|
|
3644
3664
|
*/
|
|
3645
|
-
onScroll? : ((event: { source:
|
|
3665
|
+
onScroll? : ((event: { source: GridBase, scrollTop: number }) => void)|string
|
|
3646
3666
|
/**
|
|
3647
3667
|
* Fires on owner when the scroll button is clicked, return `false` to prevent default scroll behavior
|
|
3648
3668
|
* @param {object} event Event object
|
|
@@ -3746,17 +3766,17 @@ export type BryntumTimelineProps = {
|
|
|
3746
3766
|
/**
|
|
3747
3767
|
* Fires after a sub grid is collapsed.
|
|
3748
3768
|
* @param {object} event Event object
|
|
3749
|
-
* @param {Grid.view.
|
|
3769
|
+
* @param {Grid.view.GridBase} event.source The firing Grid instance
|
|
3750
3770
|
* @param {Grid.view.SubGrid} event.subGrid The sub grid instance
|
|
3751
3771
|
*/
|
|
3752
|
-
onSubGridCollapse? : ((event: { source:
|
|
3772
|
+
onSubGridCollapse? : ((event: { source: GridBase, subGrid: SubGrid }) => void)|string
|
|
3753
3773
|
/**
|
|
3754
3774
|
* Fires after a sub grid is expanded.
|
|
3755
3775
|
* @param {object} event Event object
|
|
3756
|
-
* @param {Grid.view.
|
|
3776
|
+
* @param {Grid.view.GridBase} event.source The firing Grid instance
|
|
3757
3777
|
* @param {Grid.view.SubGrid} event.subGrid The sub grid instance
|
|
3758
3778
|
*/
|
|
3759
|
-
onSubGridExpand? : ((event: { source:
|
|
3779
|
+
onSubGridExpand? : ((event: { source: GridBase, subGrid: SubGrid }) => void)|string
|
|
3760
3780
|
/**
|
|
3761
3781
|
* Triggered for click on a tick cell. Only triggered if the TreeSummary feature is configured with
|
|
3762
3782
|
* `[enableMouseEvents](https://bryntum.com/products/gantt/docs/api/Scheduler/feature/TreeSummary#config-enableMouseEvents): true`.
|
|
@@ -4569,9 +4589,7 @@ export class BryntumTimeline extends React.Component<BryntumTimelineProps> {
|
|
|
4569
4589
|
'managedEventSizing',
|
|
4570
4590
|
'maskDefaults',
|
|
4571
4591
|
'masked',
|
|
4572
|
-
'maxDate',
|
|
4573
4592
|
'maxTimeAxisUnit',
|
|
4574
|
-
'minDate',
|
|
4575
4593
|
'mode',
|
|
4576
4594
|
'monitorResize',
|
|
4577
4595
|
'multiEventSelect',
|
|
@@ -4692,6 +4710,7 @@ export class BryntumTimeline extends React.Component<BryntumTimelineProps> {
|
|
|
4692
4710
|
'lazyLoadingIndicator',
|
|
4693
4711
|
'longPressTime',
|
|
4694
4712
|
'margin',
|
|
4713
|
+
'maxDate',
|
|
4695
4714
|
'maxHeight',
|
|
4696
4715
|
'maxWidth',
|
|
4697
4716
|
'maxZoomLevel',
|
|
@@ -4699,6 +4718,7 @@ export class BryntumTimeline extends React.Component<BryntumTimelineProps> {
|
|
|
4699
4718
|
'milestoneCharWidth',
|
|
4700
4719
|
'milestoneLayoutMode',
|
|
4701
4720
|
'milestoneTextPosition',
|
|
4721
|
+
'minDate',
|
|
4702
4722
|
'minHeight',
|
|
4703
4723
|
'minPackSize',
|
|
4704
4724
|
'minWidth',
|
|
@@ -4719,6 +4739,7 @@ export class BryntumTimeline extends React.Component<BryntumTimelineProps> {
|
|
|
4719
4739
|
'onBeforeCellEditStart',
|
|
4720
4740
|
'onBeforeCellRangeDelete',
|
|
4721
4741
|
'onBeforeCellRangeEdit',
|
|
4742
|
+
'onBeforeColumnCollapseToggle',
|
|
4722
4743
|
'onBeforeColumnDragStart',
|
|
4723
4744
|
'onBeforeColumnDropFinalize',
|
|
4724
4745
|
'onBeforeColumnResize',
|
|
@@ -4784,6 +4805,7 @@ export class BryntumTimeline extends React.Component<BryntumTimelineProps> {
|
|
|
4784
4805
|
'onCellMouseOver',
|
|
4785
4806
|
'onCollapse',
|
|
4786
4807
|
'onCollapseNode',
|
|
4808
|
+
'onColumnCollapseToggle',
|
|
4787
4809
|
'onColumnDrag',
|
|
4788
4810
|
'onColumnDragStart',
|
|
4789
4811
|
'onColumnDrop',
|