@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/README.md
CHANGED
|
@@ -1,52 +1,230 @@
|
|
|
1
|
+
<br>
|
|
2
|
+
<br>
|
|
3
|
+
|
|
4
|
+
<p align="center">
|
|
5
|
+
<a href="https://bryntum.com/" rel="noopener" target="_blank">
|
|
6
|
+
<img width="350" src="https://bryntum.com/resources/bryntum_logo_blue.svg" alt="Bryntum logo">
|
|
7
|
+
</a>
|
|
8
|
+
     
|
|
9
|
+
<img src="https://bryntum.com/products/grid/docs/data/Core/images/logo/react.svg" alt="React" width="100">
|
|
10
|
+
</p>
|
|
11
|
+
|
|
12
|
+
<br>
|
|
13
|
+
|
|
1
14
|
# React wrapper for Bryntum Gantt
|
|
2
15
|
|
|
3
16
|
This package contains a wrapper that encapsulates Bryntum Gantt and turns it into a React component, exposing
|
|
4
17
|
configuration options, properties, features, and events.
|
|
5
18
|
|
|
6
|
-
|
|
19
|
+
## Version Requirement
|
|
20
|
+
|
|
21
|
+
* React: `18` or higher
|
|
22
|
+
* TypeScript: `4.2` or higher
|
|
23
|
+
* Vite `5` or higher
|
|
24
|
+
|
|
25
|
+
## Package Contents
|
|
26
|
+
|
|
27
|
+
| Path | Description |
|
|
28
|
+
|---------------|------------------------------------------------|
|
|
29
|
+
| `lib/` | React wrapper components (BryntumGantt etc.) |
|
|
30
|
+
| `src/` | Original source files |
|
|
31
|
+
|
|
32
|
+
## Installation
|
|
33
|
+
|
|
34
|
+
### React Wrapper
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
npm install @bryntum/gantt-react@latest
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
### Component Package (Required)
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
npm install @bryntum/gantt@latest
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
## Try Bryntum Online Demos
|
|
47
|
+
|
|
48
|
+
* [View Online React Demos](https://bryntum.com/products/gantt/examples/?framework=react)
|
|
7
49
|
|
|
8
|
-
|
|
9
|
-
licensed or trial user to access it.
|
|
50
|
+
## Quick Start
|
|
10
51
|
|
|
11
|
-
|
|
12
|
-
detailed information on the sign-up/login process.
|
|
52
|
+
Replace your `App.tsx` with the following:
|
|
13
53
|
|
|
14
|
-
|
|
54
|
+
```typescript
|
|
55
|
+
import { FunctionComponent, useRef } from 'react';
|
|
56
|
+
import { BryntumGantt } from '@bryntum/gantt-react';
|
|
57
|
+
import { ganttProps } from './ganttConfig';
|
|
58
|
+
import './App.scss';
|
|
15
59
|
|
|
16
|
-
|
|
17
|
-
|
|
60
|
+
const App: FunctionComponent = () => {
|
|
61
|
+
const gantt = useRef<BryntumGantt>(null);
|
|
18
62
|
|
|
19
|
-
|
|
63
|
+
return <BryntumGantt ref={gantt} {...ganttProps} />;
|
|
64
|
+
};
|
|
20
65
|
|
|
21
|
-
|
|
66
|
+
export default App;
|
|
22
67
|
```
|
|
23
68
|
|
|
24
|
-
|
|
69
|
+
Create a `GanttConfig.ts` file in the `src/` directory with the following content:
|
|
70
|
+
|
|
71
|
+
```typescript
|
|
72
|
+
import { BryntumGanttProps } from "@bryntum/gantt-react";
|
|
73
|
+
|
|
74
|
+
const ganttProps : BryntumGanttProps = {
|
|
75
|
+
startDate : new Date(2026, 0, 1),
|
|
76
|
+
endDate : new Date(2026, 2, 1),
|
|
77
|
+
columns : [{ type : 'name', field : 'name', width : 250 }],
|
|
78
|
+
viewPreset : 'weekAndDayLetter',
|
|
79
|
+
barMargin : 10,
|
|
80
|
+
|
|
81
|
+
project : {
|
|
82
|
+
transport : {
|
|
83
|
+
load : {
|
|
84
|
+
url : 'data.json'
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
autoLoad : true,
|
|
88
|
+
// Automatically introduces a `startnoearlier` constraint for tasks that (a) have no predecessors, (b) do not use
|
|
89
|
+
// constraints and (c) aren't `manuallyScheduled`
|
|
90
|
+
autoSetConstraints : true
|
|
91
|
+
}
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
export { ganttProps };
|
|
25
95
|
```
|
|
26
96
|
|
|
27
|
-
|
|
97
|
+
<details>
|
|
98
|
+
<summary>Create sample data (click to expand)</summary>
|
|
99
|
+
|
|
100
|
+
Create a `public/data/data.json` file for example data and add the following JSON data to it:
|
|
101
|
+
|
|
102
|
+
```javascript
|
|
103
|
+
{
|
|
104
|
+
"success": "true",
|
|
105
|
+
"tasks": {
|
|
106
|
+
"rows": [
|
|
107
|
+
{
|
|
108
|
+
"id": 1,
|
|
109
|
+
"name": "Documentation Project",
|
|
110
|
+
"expanded": true,
|
|
111
|
+
"children": [
|
|
112
|
+
{
|
|
113
|
+
"id": 2,
|
|
114
|
+
"name": "Preparation",
|
|
115
|
+
"expanded": true,
|
|
116
|
+
"children": [
|
|
117
|
+
{ "id": 6, "name": "Proof-read docs", "startDate": "2026-01-02", "endDate": "2026-01-09" },
|
|
118
|
+
{ "id": 3, "name": "Release docs", "startDate": "2026-01-09", "endDate": "2026-01-10" }
|
|
119
|
+
]
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"id": 4,
|
|
123
|
+
"name": "Development",
|
|
124
|
+
"expanded": true,
|
|
125
|
+
"children": [
|
|
126
|
+
{ "id": 7, "name": "Write API docs", "startDate": "2026-01-05", "endDate": "2026-01-12" },
|
|
127
|
+
{ "id": 8, "name": "Write tutorials", "startDate": "2026-01-10", "endDate": "2026-01-16" },
|
|
128
|
+
{ "id": 9, "name": "Create examples", "startDate": "2026-01-12", "endDate": "2026-01-18" }
|
|
129
|
+
]
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"id": 5,
|
|
133
|
+
"name": "Review & Release",
|
|
134
|
+
"expanded": true,
|
|
135
|
+
"children": [
|
|
136
|
+
{ "id": 10, "name": "Team review", "startDate": "2026-01-18", "endDate": "2026-01-20" },
|
|
137
|
+
{ "id": 11, "name": "Final approval", "startDate": "2026-01-20", "endDate": "2026-01-21" },
|
|
138
|
+
{ "id": 12, "name": "Public release", "startDate": "2026-01-22", "endDate": "2026-01-22" }
|
|
139
|
+
]
|
|
140
|
+
}
|
|
141
|
+
]
|
|
142
|
+
}
|
|
143
|
+
]
|
|
144
|
+
},
|
|
145
|
+
"dependencies": {
|
|
146
|
+
"rows": [
|
|
147
|
+
{ "fromTask": 6, "toTask": 3 },
|
|
148
|
+
{ "fromTask": 7, "toTask": 8 },
|
|
149
|
+
{ "fromTask": 8, "toTask": 9 },
|
|
150
|
+
{ "fromTask": 9, "toTask": 10 },
|
|
151
|
+
{ "fromTask": 10, "toTask": 11 },
|
|
152
|
+
{ "fromTask": 11, "toTask": 12 }
|
|
153
|
+
]
|
|
154
|
+
}
|
|
155
|
+
}
|
|
28
156
|
```
|
|
29
157
|
|
|
30
|
-
|
|
158
|
+
This is the data the Bryntum Gantt will use.
|
|
159
|
+
|
|
160
|
+
</details>
|
|
161
|
+
|
|
162
|
+
Lastly, add some styling to your `App.css` or `index.css`:
|
|
163
|
+
|
|
164
|
+
```css
|
|
165
|
+
/* FontAwesome is used for icons */
|
|
166
|
+
@import '@bryntum/gantt/fontawesome/css/fontawesome.css';
|
|
167
|
+
@import '@bryntum/gantt/fontawesome/css/solid.css';
|
|
168
|
+
/* Structural CSS */
|
|
169
|
+
@import "@bryntum/gantt/gantt.css";
|
|
170
|
+
/* Bryntum theme of your choice */
|
|
171
|
+
@import "@bryntum/gantt/svalbard-light.css";
|
|
31
172
|
```
|
|
32
173
|
|
|
33
|
-
|
|
174
|
+
## Integration Guide
|
|
175
|
+
|
|
176
|
+
For details on installing and using this package, see the
|
|
177
|
+
[React Integration Guide](https://bryntum.com/products/gantt/docs/guide/Gantt/integration/react/guide).
|
|
178
|
+
|
|
179
|
+
## Wrappers
|
|
180
|
+
|
|
181
|
+
React wrappers encapsulate Bryntum components as native React components, exposing all configuration options,
|
|
182
|
+
properties, features, and events through React-familiar patterns like props and callbacks.
|
|
183
|
+
|
|
184
|
+
Visit [Wrappers documentation](https://bryntum.com/products/gantt/docs/guide/Gantt/integration/react/guide#wrappers) for the complete list of available
|
|
185
|
+
wrapper components.
|
|
186
|
+
|
|
187
|
+
## Features
|
|
34
188
|
|
|
35
|
-
|
|
36
|
-
|
|
189
|
+
Features are optional modules that extend Bryntum Gantt functionality. Each feature is suffixed with `Feature` and
|
|
190
|
+
can be enabled and configured through standard React props.
|
|
37
191
|
|
|
38
|
-
#
|
|
192
|
+
Visit [Features documentation](https://bryntum.com/products/gantt/docs/guide/Gantt/integration/react/guide#features) for the complete list of available
|
|
193
|
+
features and their configuration options.
|
|
194
|
+
|
|
195
|
+
## Explore All Bryntum Products
|
|
196
|
+
|
|
197
|
+
* [Bryntum Grid](https://bryntum.com/products/grid/) - High-performance data grid
|
|
198
|
+
* [Bryntum Scheduler](https://bryntum.com/products/scheduler/) - Resource scheduling component
|
|
199
|
+
* [Bryntum Scheduler Pro](https://bryntum.com/products/schedulerpro/) - Advanced scheduling with dependencies
|
|
200
|
+
* [Bryntum Gantt](https://bryntum.com/products/gantt/) - Project planning and management
|
|
201
|
+
* [Bryntum Calendar](https://bryntum.com/products/calendar/) - Full-featured calendar component
|
|
202
|
+
* [Bryntum TaskBoard](https://bryntum.com/products/taskboard/) - Kanban-style task management
|
|
203
|
+
|
|
204
|
+
Explore our comprehensive collection of demos:
|
|
205
|
+
|
|
206
|
+
| Product | <img src="https://bryntum.com/products/grid/docs/data/Core/images/logo/js.svg" alt="JavaScript" width="30"><br>JavaScript | <img src="https://bryntum.com/products/grid/docs/data/Core/images/logo/react.svg" alt="React" width="30"><br>React | <img src="https://bryntum.com/products/grid/docs/data/Core/images/logo/vue.svg" alt="Vue" width="30"><br>Vue | <img src="https://bryntum.com/products/grid/docs/data/Core/images/logo/angular.svg" alt="Angular" width="30"><br>Angular |
|
|
207
|
+
|-------------------|:------------------------------------------------------------------------------------:|:--------------------------------------------------------------------------:|:----------------------------------------------------------------------:|:------------------------------------------------------------------------------:|
|
|
208
|
+
| **Grid** | [Grid JavaScript demos](https://bryntum.com/products/grid/examples/?framework=javascript) | [Grid React demos](https://bryntum.com/products/grid/examples/?framework=react) | [Grid Vue demos](https://bryntum.com/products/grid/examples/?framework=vue) | [Grid Angular demos](https://bryntum.com/products/grid/examples/?framework=angular) |
|
|
209
|
+
| **Scheduler** | [Scheduler JavaScript demos](https://bryntum.com/products/scheduler/examples/?framework=javascript) | [Scheduler React demos](https://bryntum.com/products/scheduler/examples/?framework=react) | [Scheduler Vue demos](https://bryntum.com/products/scheduler/examples/?framework=vue) | [Scheduler Angular demos](https://bryntum.com/products/scheduler/examples/?framework=angular) |
|
|
210
|
+
| **Scheduler Pro** | [Scheduler Pro JavaScript demos](https://bryntum.com/products/schedulerpro/examples/?framework=javascript) | [Scheduler Pro React demos](https://bryntum.com/products/schedulerpro/examples/?framework=react) | [Scheduler Pro Vue demos](https://bryntum.com/products/schedulerpro/examples/?framework=vue) | [Scheduler Pro Angular demos](https://bryntum.com/products/schedulerpro/examples/?framework=angular) |
|
|
211
|
+
| **Gantt** | [Gantt JavaScript demos](https://bryntum.com/products/gantt/examples/?framework=javascript) | [Gantt React demos](https://bryntum.com/products/gantt/examples/?framework=react) | [Gantt Vue demos](https://bryntum.com/products/gantt/examples/?framework=vue) | [Gantt Angular demos](https://bryntum.com/products/gantt/examples/?framework=angular) |
|
|
212
|
+
| **Calendar** | [Calendar JavaScript demos](https://bryntum.com/products/calendar/examples/?framework=javascript) | [Calendar React demos](https://bryntum.com/products/calendar/examples/?framework=react) | [Calendar Vue demos](https://bryntum.com/products/calendar/examples/?framework=vue) | [Calendar Angular demos](https://bryntum.com/products/calendar/examples/?framework=angular) |
|
|
213
|
+
| **TaskBoard** | [TaskBoard JavaScript demos](https://bryntum.com/products/taskboard/examples/?framework=javascript) | [TaskBoard React demos](https://bryntum.com/products/taskboard/examples/?framework=react) | [TaskBoard Vue demos](https://bryntum.com/products/taskboard/examples/?framework=vue) | [TaskBoard Angular demos](https://bryntum.com/products/taskboard/examples/?framework=angular) |
|
|
214
|
+
|
|
215
|
+
## Online references
|
|
39
216
|
|
|
40
|
-
* [Bryntum npm repository guide](https://bryntum.com/products/gantt/docs/guide/Gantt/npm-repository)
|
|
41
217
|
* [Bryntum Gantt documentation](https://bryntum.com/products/gantt/docs/)
|
|
42
218
|
* [Bryntum Gantt examples](https://bryntum.com/products/gantt/examples/)
|
|
43
|
-
* [Bryntum support Forum](https://forum.bryntum.com/)
|
|
44
|
-
* [Contacts us](https://bryntum.com/contact/)
|
|
45
219
|
|
|
46
|
-
|
|
220
|
+
* [Bryntum Support Forum](https://forum.bryntum.com/)
|
|
221
|
+
* [Contact us](https://bryntum.com/contact/)
|
|
222
|
+
|
|
223
|
+
## License and copyright
|
|
47
224
|
|
|
48
225
|
This wrapper depends on Bryntum Gantt, which is commercial software and requires a paid license.
|
|
49
226
|
Please visit the [Bryntum Gantt End User License](https://bryntum.com/products/gantt/license/) for the full text of the license.
|
|
50
227
|
|
|
51
228
|
Copyright © 2009-2026, Bryntum
|
|
52
229
|
All rights reserved.
|
|
230
|
+
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { AIFilter, AIFilterConfig, AjaxStore, AjaxStoreConfig, AssignmentGrid, AssignmentGridListeners, 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, NumberColumnConfig, PagingToolbarConfig, Panel, PanelCollapserConfig, PanelCollapserOverlayConfig, PanelHeader, PinColumns, PinColumnsConfig, PreserveScrollOptions, QuickFind, QuickFindConfig, RecordPositionContext, RegionResize, RegionResizeConfig, ResourceAssignmentColumnConfig, 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, TaskModel, Tool, ToolConfig, ToolbarConfig, ToolbarItems, Tree, TreeConfig, Widget, XLSColumn } from '@bryntum/gantt';
|
|
2
|
+
import { AIFilter, AIFilterConfig, AjaxStore, AjaxStoreConfig, AssignmentGrid, AssignmentGridListeners, 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, NumberColumnConfig, PagingToolbarConfig, Panel, PanelCollapserConfig, PanelCollapserOverlayConfig, PanelHeader, PdfExportConfig, PinColumns, PinColumnsConfig, PreserveScrollOptions, QuickFind, QuickFindConfig, RecordPositionContext, RegionResize, RegionResizeConfig, ResourceAssignmentColumnConfig, 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, TaskModel, Tool, ToolConfig, ToolbarConfig, ToolbarItems, Tree, TreeConfig, Widget, XLSColumn } from '@bryntum/gantt';
|
|
3
3
|
import { processWidgetContent } from './WrapperHelper.js';
|
|
4
4
|
export declare type BryntumAssignmentGridProps = {
|
|
5
5
|
adopt?: HTMLElement | string;
|
|
@@ -188,6 +188,11 @@ export declare type BryntumAssignmentGridProps = {
|
|
|
188
188
|
field: string;
|
|
189
189
|
value: any;
|
|
190
190
|
}) => Promise<boolean> | boolean | void) | string;
|
|
191
|
+
onBeforeColumnCollapseToggle?: ((event: {
|
|
192
|
+
source: GridBase;
|
|
193
|
+
column: Column;
|
|
194
|
+
collapsed: boolean;
|
|
195
|
+
}) => void) | string;
|
|
191
196
|
onBeforeColumnDragStart?: ((event: {
|
|
192
197
|
source: Grid;
|
|
193
198
|
column: Column;
|
|
@@ -251,16 +256,16 @@ export declare type BryntumAssignmentGridProps = {
|
|
|
251
256
|
text: string;
|
|
252
257
|
}) => Promise<boolean> | boolean | void) | string;
|
|
253
258
|
onBeforePdfExport?: ((event: {
|
|
254
|
-
config:
|
|
259
|
+
config: PdfExportConfig;
|
|
255
260
|
}) => Promise<boolean> | boolean | void) | string;
|
|
256
261
|
onBeforeRenderRow?: ((event: {
|
|
257
|
-
source:
|
|
262
|
+
source: GridBase;
|
|
258
263
|
row: Row;
|
|
259
264
|
record: Model;
|
|
260
265
|
recordIndex: number;
|
|
261
266
|
}) => void) | string;
|
|
262
267
|
onBeforeRenderRows?: ((event: {
|
|
263
|
-
source:
|
|
268
|
+
source: GridBase;
|
|
264
269
|
}) => void) | string;
|
|
265
270
|
onBeforeRowCollapse?: ((event: {
|
|
266
271
|
record: Model;
|
|
@@ -406,6 +411,11 @@ export declare type BryntumAssignmentGridProps = {
|
|
|
406
411
|
source: Grid;
|
|
407
412
|
record: Model;
|
|
408
413
|
}) => void) | string;
|
|
414
|
+
onColumnCollapseToggle?: ((event: {
|
|
415
|
+
source: GridBase;
|
|
416
|
+
column: Column;
|
|
417
|
+
collapsed: boolean;
|
|
418
|
+
}) => void) | string;
|
|
409
419
|
onColumnDrag?: ((event: {
|
|
410
420
|
source: Grid;
|
|
411
421
|
column: Column;
|
|
@@ -458,7 +468,7 @@ export declare type BryntumAssignmentGridProps = {
|
|
|
458
468
|
entityName: string;
|
|
459
469
|
}) => void) | string;
|
|
460
470
|
onDataChange?: ((event: {
|
|
461
|
-
source:
|
|
471
|
+
source: GridBase;
|
|
462
472
|
store: Store;
|
|
463
473
|
action: 'remove' | 'removeAll' | 'add' | 'clearchanges' | 'filter' | 'update' | 'dataset' | 'replace';
|
|
464
474
|
record: Model;
|
|
@@ -650,13 +660,13 @@ export declare type BryntumAssignmentGridProps = {
|
|
|
650
660
|
}) => void) | string;
|
|
651
661
|
onRecompose?: (() => void) | string;
|
|
652
662
|
onRenderRow?: ((event: {
|
|
653
|
-
source:
|
|
663
|
+
source: GridBase;
|
|
654
664
|
row: Row;
|
|
655
665
|
record: Model;
|
|
656
666
|
recordIndex: number;
|
|
657
667
|
}) => void) | string;
|
|
658
668
|
onRenderRows?: ((event: {
|
|
659
|
-
source:
|
|
669
|
+
source: GridBase;
|
|
660
670
|
}) => void) | string;
|
|
661
671
|
onResize?: ((event: {
|
|
662
672
|
source: Widget;
|
|
@@ -695,7 +705,7 @@ export declare type BryntumAssignmentGridProps = {
|
|
|
695
705
|
event: MouseEvent;
|
|
696
706
|
}) => void) | string;
|
|
697
707
|
onScroll?: ((event: {
|
|
698
|
-
source:
|
|
708
|
+
source: GridBase;
|
|
699
709
|
scrollTop: number;
|
|
700
710
|
}) => void) | string;
|
|
701
711
|
onSelectionChange?: ((event: {
|
|
@@ -752,11 +762,11 @@ export declare type BryntumAssignmentGridProps = {
|
|
|
752
762
|
editorContext: RowEditorContext;
|
|
753
763
|
}) => void) | string;
|
|
754
764
|
onSubGridCollapse?: ((event: {
|
|
755
|
-
source:
|
|
765
|
+
source: GridBase;
|
|
756
766
|
subGrid: SubGrid;
|
|
757
767
|
}) => void) | string;
|
|
758
768
|
onSubGridExpand?: ((event: {
|
|
759
|
-
source:
|
|
769
|
+
source: GridBase;
|
|
760
770
|
subGrid: SubGrid;
|
|
761
771
|
}) => void) | string;
|
|
762
772
|
onToggleGroup?: ((event: {
|
|
@@ -139,6 +139,7 @@ BryntumAssignmentGrid.propertyConfigNames = [
|
|
|
139
139
|
'onBeforeCellEditStart',
|
|
140
140
|
'onBeforeCellRangeDelete',
|
|
141
141
|
'onBeforeCellRangeEdit',
|
|
142
|
+
'onBeforeColumnCollapseToggle',
|
|
142
143
|
'onBeforeColumnDragStart',
|
|
143
144
|
'onBeforeColumnDropFinalize',
|
|
144
145
|
'onBeforeColumnResize',
|
|
@@ -179,6 +180,7 @@ BryntumAssignmentGrid.propertyConfigNames = [
|
|
|
179
180
|
'onCellMouseOver',
|
|
180
181
|
'onCollapse',
|
|
181
182
|
'onCollapseNode',
|
|
183
|
+
'onColumnCollapseToggle',
|
|
182
184
|
'onColumnDrag',
|
|
183
185
|
'onColumnDragStart',
|
|
184
186
|
'onColumnDrop',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BryntumAssignmentGrid.js","sourceRoot":"","sources":["../src/BryntumAssignmentGrid.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAoB,MAAM,OAAO,CAAC;AACzC,OAAO,EAAwD,cAAc,
|
|
1
|
+
{"version":3,"file":"BryntumAssignmentGrid.js","sourceRoot":"","sources":["../src/BryntumAssignmentGrid.tsx"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,253 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { AlignSpec, AssignmentPicker, AssignmentPickerListeners, AssignmentsManipulationStore, Base, Container, ContainerItemConfig, ContainerLayoutConfig, DomConfig, KeyMapConfig, MaskConfig, MenuItemEntry, Model, PagingToolbarConfig, Panel, PanelCollapserConfig, PanelCollapserOverlayConfig, PanelHeader, Rectangle, Scroller, ScrollerConfig, StateProvider, TabBarConfig, TabConfig, TaskModel, Tool, ToolConfig, ToolbarConfig, ToolbarItems, TooltipConfig, VueConfig, Widget } from '@bryntum/gantt';
|
|
3
|
+
import { processWidgetContent } from './WrapperHelper.js';
|
|
4
|
+
export declare type BryntumAssignmentPickerProps = {
|
|
5
|
+
activeTab?: number;
|
|
6
|
+
adopt?: HTMLElement | string;
|
|
7
|
+
align?: AlignSpec | string;
|
|
8
|
+
alignSelf?: string;
|
|
9
|
+
anchor?: boolean;
|
|
10
|
+
animateTabChange?: boolean;
|
|
11
|
+
appendTo?: HTMLElement | string;
|
|
12
|
+
ariaDescription?: string;
|
|
13
|
+
ariaLabel?: string;
|
|
14
|
+
autoHeight?: boolean;
|
|
15
|
+
autoHideResourceTypeTabs?: boolean;
|
|
16
|
+
autoUpdateRecord?: boolean;
|
|
17
|
+
bbar?: (ContainerItemConfig | string)[] | ToolbarConfig | PagingToolbarConfig | null;
|
|
18
|
+
bodyCls?: string | object;
|
|
19
|
+
bubbleEvents?: object;
|
|
20
|
+
callOnFunctions?: boolean;
|
|
21
|
+
catchEventHandlerExceptions?: boolean;
|
|
22
|
+
centered?: boolean;
|
|
23
|
+
cls?: string | object;
|
|
24
|
+
collapsed?: boolean;
|
|
25
|
+
collapsible?: boolean | PanelCollapserConfig | PanelCollapserOverlayConfig;
|
|
26
|
+
color?: string;
|
|
27
|
+
column?: number;
|
|
28
|
+
config?: object;
|
|
29
|
+
constrainTo?: HTMLElement | Widget | Rectangle;
|
|
30
|
+
content?: string;
|
|
31
|
+
contentElementCls?: string | object;
|
|
32
|
+
dataField?: string;
|
|
33
|
+
dataset?: Record<string, string>;
|
|
34
|
+
defaultBindProperty?: string;
|
|
35
|
+
defaultFocus?: ((widget: Widget) => boolean) | string;
|
|
36
|
+
defaults?: ContainerItemConfig;
|
|
37
|
+
detectCSSCompatibilityIssues?: boolean;
|
|
38
|
+
disabled?: boolean | 'inert';
|
|
39
|
+
dock?: 'top' | 'bottom' | 'left' | 'right' | 'start' | 'end' | 'header' | 'pre-header' | object;
|
|
40
|
+
draggable?: boolean | {
|
|
41
|
+
handleSelector?: string;
|
|
42
|
+
};
|
|
43
|
+
drawer?: boolean | {
|
|
44
|
+
side?: 'start' | 'left' | 'end' | 'right' | 'top' | 'bottom';
|
|
45
|
+
size?: string | number;
|
|
46
|
+
inline?: boolean;
|
|
47
|
+
autoClose: {
|
|
48
|
+
mousedown?: boolean | string;
|
|
49
|
+
focusout?: boolean | string;
|
|
50
|
+
mouseout?: string;
|
|
51
|
+
};
|
|
52
|
+
autoCloseDelay?: number;
|
|
53
|
+
};
|
|
54
|
+
elementAttributes?: Record<string, string | null>;
|
|
55
|
+
extraData?: any;
|
|
56
|
+
flex?: number | string;
|
|
57
|
+
floating?: boolean;
|
|
58
|
+
footer?: {
|
|
59
|
+
dock?: 'top' | 'right' | 'bottom' | 'left' | 'start' | 'end';
|
|
60
|
+
html?: string;
|
|
61
|
+
cls?: string;
|
|
62
|
+
} | string;
|
|
63
|
+
header?: string | boolean | PanelHeader;
|
|
64
|
+
height?: string | number;
|
|
65
|
+
hidden?: boolean;
|
|
66
|
+
hideAnimation?: boolean | object;
|
|
67
|
+
hideWhenEmpty?: boolean;
|
|
68
|
+
html?: string | ((widget: Widget) => string) | DomConfig | DomConfig[] | VueConfig;
|
|
69
|
+
htmlCls?: string | object;
|
|
70
|
+
icon?: string | DomConfig;
|
|
71
|
+
id?: string;
|
|
72
|
+
ignoreParentReadOnly?: boolean;
|
|
73
|
+
inputFieldAlign?: 'start' | 'end';
|
|
74
|
+
insertBefore?: HTMLElement | string;
|
|
75
|
+
insertFirst?: HTMLElement | string;
|
|
76
|
+
itemCls?: string;
|
|
77
|
+
items?: Record<string, ContainerItemConfig | MenuItemEntry> | (ContainerItemConfig | MenuItemEntry | Widget)[];
|
|
78
|
+
keyMap?: Record<string, KeyMapConfig>;
|
|
79
|
+
labelPosition?: 'before' | 'above' | 'align-before' | 'auto' | null;
|
|
80
|
+
layout?: string | ContainerLayoutConfig;
|
|
81
|
+
layoutStyle?: object;
|
|
82
|
+
lazyItems?: Record<string, ContainerItemConfig> | ContainerItemConfig[] | Widget[];
|
|
83
|
+
listeners?: AssignmentPickerListeners;
|
|
84
|
+
localeClass?: typeof Base;
|
|
85
|
+
localizable?: boolean;
|
|
86
|
+
localizableProperties?: string[];
|
|
87
|
+
margin?: number | string;
|
|
88
|
+
maskDefaults?: MaskConfig;
|
|
89
|
+
masked?: boolean | string | MaskConfig;
|
|
90
|
+
maxHeight?: string | number;
|
|
91
|
+
maximizeOnMobile?: number | string;
|
|
92
|
+
maxWidth?: string | number;
|
|
93
|
+
minHeight?: string | number;
|
|
94
|
+
minWidth?: string | number;
|
|
95
|
+
monitorResize?: boolean | {
|
|
96
|
+
immediate?: boolean;
|
|
97
|
+
};
|
|
98
|
+
namedItems?: Record<string, ContainerItemConfig>;
|
|
99
|
+
owner?: Widget | any;
|
|
100
|
+
positioned?: boolean;
|
|
101
|
+
preventTooltipOnTouch?: boolean;
|
|
102
|
+
projectEvent?: TaskModel;
|
|
103
|
+
readOnly?: boolean;
|
|
104
|
+
record?: Model;
|
|
105
|
+
relayStoreEvents?: boolean;
|
|
106
|
+
rendition?: string | Record<string, string> | null;
|
|
107
|
+
ripple?: boolean | {
|
|
108
|
+
delegate?: string;
|
|
109
|
+
color?: string;
|
|
110
|
+
radius?: number;
|
|
111
|
+
clip?: string;
|
|
112
|
+
};
|
|
113
|
+
rootElement?: ShadowRoot | HTMLElement;
|
|
114
|
+
rtl?: boolean;
|
|
115
|
+
scrollable?: boolean | ScrollerConfig | Scroller;
|
|
116
|
+
scrollAction?: 'hide' | 'realign' | null;
|
|
117
|
+
showAnimation?: boolean | object;
|
|
118
|
+
showCostControls?: boolean;
|
|
119
|
+
showTooltipWhenDisabled?: boolean;
|
|
120
|
+
span?: number;
|
|
121
|
+
stateful?: boolean | object | string[];
|
|
122
|
+
statefulEvents?: object | string[];
|
|
123
|
+
stateId?: string;
|
|
124
|
+
stateProvider?: StateProvider;
|
|
125
|
+
store?: AssignmentsManipulationStore;
|
|
126
|
+
strictRecordMapping?: boolean;
|
|
127
|
+
strips?: Record<string, ContainerItemConfig>;
|
|
128
|
+
tab?: boolean | TabConfig;
|
|
129
|
+
tabBar?: TabBarConfig;
|
|
130
|
+
tabBarItems?: ToolbarItems[] | Widget[];
|
|
131
|
+
tabMaxWidth?: number;
|
|
132
|
+
tabMinWidth?: number;
|
|
133
|
+
tag?: string;
|
|
134
|
+
tbar?: (ContainerItemConfig | string)[] | ToolbarConfig | PagingToolbarConfig | null;
|
|
135
|
+
textAlign?: 'left' | 'center' | 'right' | 'start' | 'end';
|
|
136
|
+
textContent?: boolean;
|
|
137
|
+
title?: string;
|
|
138
|
+
tools?: Record<string, ToolConfig> | null;
|
|
139
|
+
tooltip?: string | TooltipConfig | null;
|
|
140
|
+
trapFocus?: boolean;
|
|
141
|
+
type?: 'assignmentpicker';
|
|
142
|
+
ui?: 'plain' | 'toolbar' | string | object;
|
|
143
|
+
weight?: number;
|
|
144
|
+
width?: string | number;
|
|
145
|
+
x?: number;
|
|
146
|
+
y?: number;
|
|
147
|
+
onBeforeDestroy?: ((event: {
|
|
148
|
+
source: Base;
|
|
149
|
+
}) => void) | string;
|
|
150
|
+
onBeforeHide?: ((event: {
|
|
151
|
+
source: Widget;
|
|
152
|
+
}) => Promise<boolean> | boolean | void) | string;
|
|
153
|
+
onBeforeSetRecord?: ((event: {
|
|
154
|
+
source: Container;
|
|
155
|
+
record: Model;
|
|
156
|
+
}) => void) | string;
|
|
157
|
+
onBeforeShow?: ((event: {
|
|
158
|
+
source: Widget | any;
|
|
159
|
+
}) => Promise<boolean> | boolean | void) | string;
|
|
160
|
+
onBeforeStateApply?: ((event: {
|
|
161
|
+
state: any;
|
|
162
|
+
}) => Promise<boolean> | boolean | void) | string;
|
|
163
|
+
onBeforeStateSave?: ((event: {
|
|
164
|
+
state: any;
|
|
165
|
+
}) => Promise<boolean> | boolean | void) | string;
|
|
166
|
+
onBeforeTabChange?: ((event: {
|
|
167
|
+
activeIndex: number;
|
|
168
|
+
activeItem: Widget;
|
|
169
|
+
prevActiveIndex: number;
|
|
170
|
+
prevActiveItem: Widget;
|
|
171
|
+
}) => Promise<boolean> | boolean | void) | string;
|
|
172
|
+
onCatchAll?: ((event: {
|
|
173
|
+
[key: string]: any;
|
|
174
|
+
type: string;
|
|
175
|
+
}) => void) | string;
|
|
176
|
+
onCollapse?: ((event: {
|
|
177
|
+
source: Panel;
|
|
178
|
+
}) => void) | string;
|
|
179
|
+
onDestroy?: ((event: {
|
|
180
|
+
source: Base;
|
|
181
|
+
}) => void) | string;
|
|
182
|
+
onDirtyStateChange?: ((event: {
|
|
183
|
+
source: Container;
|
|
184
|
+
dirty: boolean;
|
|
185
|
+
}) => void) | string;
|
|
186
|
+
onElementCreated?: ((event: {
|
|
187
|
+
element: HTMLElement;
|
|
188
|
+
}) => void) | string;
|
|
189
|
+
onExpand?: ((event: {
|
|
190
|
+
source: Panel;
|
|
191
|
+
}) => void) | string;
|
|
192
|
+
onFocusIn?: ((event: {
|
|
193
|
+
source: Widget;
|
|
194
|
+
fromElement: HTMLElement;
|
|
195
|
+
toElement: HTMLElement;
|
|
196
|
+
fromWidget: Widget;
|
|
197
|
+
toWidget: Widget;
|
|
198
|
+
backwards: boolean;
|
|
199
|
+
}) => void) | string;
|
|
200
|
+
onFocusOut?: ((event: {
|
|
201
|
+
source: Widget;
|
|
202
|
+
fromElement: HTMLElement;
|
|
203
|
+
toElement: HTMLElement;
|
|
204
|
+
fromWidget: Widget;
|
|
205
|
+
toWidget: Widget;
|
|
206
|
+
backwards: boolean;
|
|
207
|
+
}) => void) | string;
|
|
208
|
+
onHide?: ((event: {
|
|
209
|
+
source: Widget;
|
|
210
|
+
}) => void) | string;
|
|
211
|
+
onPaint?: ((event: {
|
|
212
|
+
source: Widget;
|
|
213
|
+
firstPaint: boolean;
|
|
214
|
+
}) => void) | string;
|
|
215
|
+
onReadOnly?: ((event: {
|
|
216
|
+
readOnly: boolean;
|
|
217
|
+
}) => void) | string;
|
|
218
|
+
onRecompose?: (() => void) | string;
|
|
219
|
+
onResize?: ((event: {
|
|
220
|
+
source: Widget;
|
|
221
|
+
width: number;
|
|
222
|
+
height: number;
|
|
223
|
+
oldWidth: number;
|
|
224
|
+
oldHeight: number;
|
|
225
|
+
}) => void) | string;
|
|
226
|
+
onShow?: ((event: {
|
|
227
|
+
source: Widget;
|
|
228
|
+
}) => void) | string;
|
|
229
|
+
onTabChange?: ((event: {
|
|
230
|
+
activeIndex: number;
|
|
231
|
+
activeItem: Widget;
|
|
232
|
+
prevActiveIndex: number;
|
|
233
|
+
prevActiveItem: Widget;
|
|
234
|
+
}) => void) | string;
|
|
235
|
+
onToolClick?: ((event: {
|
|
236
|
+
source: Tool;
|
|
237
|
+
tool: Tool;
|
|
238
|
+
}) => void) | string;
|
|
239
|
+
};
|
|
240
|
+
export declare class BryntumAssignmentPicker extends React.Component<BryntumAssignmentPickerProps> {
|
|
241
|
+
static instanceClass: typeof AssignmentPicker;
|
|
242
|
+
static instanceName: string;
|
|
243
|
+
processWidgetContent: typeof processWidgetContent;
|
|
244
|
+
static configNames: string[];
|
|
245
|
+
static propertyConfigNames: string[];
|
|
246
|
+
static propertyNames: string[];
|
|
247
|
+
instance: AssignmentPicker;
|
|
248
|
+
element: HTMLElement;
|
|
249
|
+
componentDidMount(): void;
|
|
250
|
+
componentWillUnmount(): void;
|
|
251
|
+
shouldComponentUpdate(nextProps: Readonly<BryntumAssignmentPickerProps>, nextState: Readonly<{}>): boolean;
|
|
252
|
+
render(): React.ReactNode;
|
|
253
|
+
}
|