@bryntum/grid-angular 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.
Files changed (74) hide show
  1. package/README.md +215 -15
  2. package/bundles/bryntum-grid-angular.umd.js +114 -48
  3. package/bundles/bryntum-grid-angular.umd.js.map +1 -1
  4. package/esm2015/lib/bryntum-grid-base.component.js +39 -17
  5. package/esm2015/lib/bryntum-grid.component.js +39 -17
  6. package/esm2015/lib/bryntum-tree-grid.component.js +39 -17
  7. package/fesm2015/bryntum-grid-angular.js +114 -48
  8. package/fesm2015/bryntum-grid-angular.js.map +1 -1
  9. package/lib/bryntum-grid-base.component.d.ts +32 -16
  10. package/lib/bryntum-grid.component.d.ts +32 -16
  11. package/lib/bryntum-tree-grid.component.d.ts +32 -16
  12. package/package.json +1 -1
  13. package/src/lib/bryntum-a-i-filter-field.component.ts +1336 -0
  14. package/src/lib/bryntum-button-group.component.ts +1213 -0
  15. package/src/lib/bryntum-button.component.ts +1190 -0
  16. package/src/lib/bryntum-chat-panel.component.ts +1435 -0
  17. package/src/lib/bryntum-checkbox-group.component.ts +1478 -0
  18. package/src/lib/bryntum-checkbox.component.ts +1333 -0
  19. package/src/lib/bryntum-checklist-filter-combo.component.ts +1650 -0
  20. package/src/lib/bryntum-chip-view.component.ts +1225 -0
  21. package/src/lib/bryntum-code-editor.component.ts +1419 -0
  22. package/src/lib/bryntum-color-field.component.ts +1334 -0
  23. package/src/lib/bryntum-combo.component.ts +1634 -0
  24. package/src/lib/bryntum-container.component.ts +1166 -0
  25. package/src/lib/bryntum-date-field.component.ts +1413 -0
  26. package/src/lib/bryntum-date-picker.component.ts +1756 -0
  27. package/src/lib/bryntum-date-range-field.component.ts +1417 -0
  28. package/src/lib/bryntum-date-time-field.component.ts +1261 -0
  29. package/src/lib/bryntum-demo-code-editor.component.ts +1441 -0
  30. package/src/lib/bryntum-demo-header.component.ts +141 -0
  31. package/src/lib/bryntum-display-field.component.ts +1308 -0
  32. package/src/lib/bryntum-duration-field.component.ts +1390 -0
  33. package/src/lib/bryntum-editor.component.ts +1343 -0
  34. package/src/lib/bryntum-field-filter-picker-group.component.ts +1308 -0
  35. package/src/lib/bryntum-field-filter-picker.component.ts +1272 -0
  36. package/src/lib/bryntum-field-set.component.ts +1408 -0
  37. package/src/lib/bryntum-file-field.component.ts +1313 -0
  38. package/src/lib/bryntum-file-picker.component.ts +1199 -0
  39. package/src/lib/bryntum-filter-field.component.ts +1367 -0
  40. package/src/lib/bryntum-fullscreen-button.component.ts +53 -0
  41. package/src/lib/bryntum-grid-base.component.ts +2814 -0
  42. package/src/lib/bryntum-grid-chart-designer.component.ts +999 -0
  43. package/src/lib/bryntum-grid-field-filter-picker-group.component.ts +1300 -0
  44. package/src/lib/bryntum-grid-field-filter-picker.component.ts +1287 -0
  45. package/src/lib/bryntum-grid.component.ts +2818 -0
  46. package/src/lib/bryntum-group-bar.component.ts +1225 -0
  47. package/src/lib/bryntum-hint.component.ts +1506 -0
  48. package/src/lib/bryntum-label.component.ts +989 -0
  49. package/src/lib/bryntum-list.component.ts +1196 -0
  50. package/src/lib/bryntum-menu.component.ts +1520 -0
  51. package/src/lib/bryntum-month-picker.component.ts +1400 -0
  52. package/src/lib/bryntum-number-field.component.ts +1368 -0
  53. package/src/lib/bryntum-paging-toolbar.component.ts +1243 -0
  54. package/src/lib/bryntum-panel.component.ts +1377 -0
  55. package/src/lib/bryntum-password-field.component.ts +1296 -0
  56. package/src/lib/bryntum-radio-group.component.ts +1446 -0
  57. package/src/lib/bryntum-radio.component.ts +1333 -0
  58. package/src/lib/bryntum-slide-toggle.component.ts +1333 -0
  59. package/src/lib/bryntum-slider.component.ts +1112 -0
  60. package/src/lib/bryntum-splitter.component.ts +1025 -0
  61. package/src/lib/bryntum-tab-panel.component.ts +1441 -0
  62. package/src/lib/bryntum-text-area-field.component.ts +1312 -0
  63. package/src/lib/bryntum-text-area-picker-field.component.ts +1343 -0
  64. package/src/lib/bryntum-text-field.component.ts +1321 -0
  65. package/src/lib/bryntum-time-field.component.ts +1388 -0
  66. package/src/lib/bryntum-time-picker.component.ts +1207 -0
  67. package/src/lib/bryntum-toolbar.component.ts +1234 -0
  68. package/src/lib/bryntum-tree-combo.component.ts +1634 -0
  69. package/src/lib/bryntum-tree-grid.component.ts +2818 -0
  70. package/src/lib/bryntum-widget.component.ts +982 -0
  71. package/src/lib/bryntum-year-picker.component.ts +1423 -0
  72. package/src/lib/grid.module.ts +196 -0
  73. package/src/lib/wrapper.helper.ts +89 -0
  74. package/src/public-api.ts +65 -0
package/README.md CHANGED
@@ -1,37 +1,236 @@
1
- # Angular Ivy wrapper for Bryntum Grid
1
+ <br>
2
+ <br>
2
3
 
3
- This package contains a wrapper that encapsulates Bryntum Grid and turns it into an Angular component, exposing
4
- configuration options, properties, features, and events. Compiled for the Angular Ivy engine.
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
+ &emsp;&emsp;&emsp;&emsp;&emsp;
9
+ <img src="https://bryntum.com/products/grid/docs/data/Core/images/logo/angular.svg" alt="Angular" width="100">
10
+ </p>
11
+
12
+ <br>
13
+
14
+ # Angular wrapper for Bryntum Grid
15
+
16
+ This package provides a wrapper that turns Bryntum Grid into an Angular component, exposing configuration options,
17
+ properties, features, and events.
18
+
19
+ ## Version Requirement
20
+
21
+ Wrapper is compiled for the **Angular Ivy** rendering engine (Angular 12+).
22
+
23
+ * Angular: `12` with Ivy support or higher
24
+ * TypeScript: `4.2` or higher
25
+ * Vite `5` or higher (starting with Angular `17`)
26
+
27
+ ## Package Contents
28
+
29
+ | Path | Description |
30
+ |------------|----------------------------------|
31
+ | `bundles/` | UMD bundles with source maps |
32
+ | `lib/` | Component type definitions |
33
+ | `src/` | Original TypeScript source files |
5
34
 
6
35
  ## Installation
7
36
 
8
- The installation is performed by issuing the installation command in the root of the application folder.
9
- The specific command depends on the package manager used by the application.
37
+ ### Angular Wrapper
38
+
39
+ ```bash
40
+ npm install @bryntum/grid-angular@latest
41
+ ```
42
+
43
+ ### Component Package (Required)
44
+
45
+ ```bash
46
+ npm install @bryntum/grid@latest
47
+ ```
48
+
49
+ ## Try Bryntum Online Demos
50
+
51
+ * [View Online Angular Demos](https://bryntum.com/products/grid/examples/?framework=angular)
52
+
53
+ ## Quick Start
54
+
55
+ Edit the `src/app/app-module.ts` file and add the following import:
56
+
57
+ ```typescript
58
+ import { BryntumGridModule } from '@bryntum/grid-angular';
59
+ ```
60
+
61
+ Next, add `BryntumGridModule` to `imports[]` :
62
+
63
+ ```typescript
64
+ @NgModule({
65
+ imports : [
66
+ BryntumGridModule
67
+ ]
68
+ })
69
+ ```
70
+
71
+ Create `src/app/app.config.ts` file with the following content:
10
72
 
11
- The following are most frequently used:
73
+ ```typescript
74
+ import { BryntumGridProps } from '@bryntum/grid-angular';
12
75
 
13
- Install using `npm`:
76
+ export const gridProps: BryntumGridProps = {
77
+ columns : [
78
+ {
79
+ text : 'Name',
80
+ field : 'name',
81
+ flex : 1,
82
+ editor : {
83
+ type : 'textfield',
84
+ required : true
85
+ }
86
+ }, {
87
+ text : 'Age',
88
+ field : 'age',
89
+ width : 100,
90
+ type : 'number'
91
+ }, {
92
+ text : 'City',
93
+ field : 'city',
94
+ flex : 1
95
+ }, {
96
+ text : 'Food',
97
+ field : 'food',
98
+ flex : 1
99
+ }, {
100
+ text : 'Color',
101
+ field : 'color',
102
+ width : 80,
103
+ type : 'column',
104
+ renderer : ({ cellElement, value }) => {
105
+ cellElement.style.color = value;
106
+ cellElement.style.fontWeight = '700';
107
+ return value;
108
+ }
109
+ }
110
+ ],
14
111
 
15
- ```shell
16
- npm install @bryntum/grid-angular@7.1.1
112
+ data : [
113
+ { id : 1, name : 'Don A Taylor', age : 30, city : 'Moscow', food : 'Salad', color : 'Black' },
114
+ { id : 2, name : 'John B Adams', age : 65, city : 'Paris', food : 'Bolognese', color : 'Orange' },
115
+ { id : 3, name : 'John Doe', age : 40, city : 'London', food : 'Fish and Chips', color : 'Blue' },
116
+ { id : 4, name : 'Maria Garcia', age : 28, city : 'Madrid', food : 'Paella', color : 'Green' },
117
+ { id : 5, name : 'Li Wei', age : 35, city : 'Beijing', food : 'Dumplings', color : 'Yellow' },
118
+ { id : 6, name : 'Sara Johnson', age : 32, city : 'Sydney', food : 'Sushi', color : 'Purple' },
119
+ { id : 7, name : 'Lucas Brown', age : 22, city : 'Toronto', food : 'Poutine', color : 'Orange' },
120
+ { id : 8, name : 'Emma Wilson', age : 27, city : 'Paris', food : 'Croissant', color : 'Pink' },
121
+ { id : 9, name : 'Ivan Petrov', age : 45, city : 'St. Petersburg', food : 'Borscht', color : 'Grey' },
122
+ { id : 10, name : 'Zhang Ming', age : 50, city : 'Shanghai', food : 'Hot Pot', color : 'Purple' },
123
+ { id : 11, name : 'Sophia Martinez', age : 20, city : 'Mexico City', food : 'Tacos', color : 'Crimson' },
124
+ { id : 12, name : 'Noah Smith', age : 55, city : 'Cape Town', food : 'Biltong', color : 'Turquoise' },
125
+ { id : 13, name : 'Isabella Jones', age : 33, city : 'Rio de Janeiro', food : 'Feijoada', color : 'Magenta' },
126
+ { id : 14, name : 'Ethan Taylor', age : 29, city : 'Chicago', food : 'Deep-Dish Pizza', color : 'Cyan' },
127
+ { id : 15, name : 'Olivia Brown', age : 37, city : 'Berlin', food : 'Schnitzel', color : 'Maroon' },
128
+ { id : 16, name : 'Mia Wilson', age : 26, city : 'Rome', food : 'Pasta', color : 'Olive' },
129
+ { id : 17, name : 'Jacob Miller', age : 60, city : 'Amsterdam', food : 'Stroopwafel', color : 'Lime' },
130
+ { id : 18, name : 'Chloe Davis', age : 23, city : 'Los Angeles', food : 'Burger', color : 'Teal' },
131
+ { id : 19, name : 'Aiden Martinez', age : 48, city : 'Buenos Aires', food : 'Asado', color : 'Violet' },
132
+ { id : 20, name : 'Liam Lee', age : 38, city : 'Seoul', food : 'Kimchi', color : 'Indigo' },
133
+ { id : 21, name : 'Sophie Kim', age : 21, city : 'Tokyo', food : 'Ramen', color : 'Pink' },
134
+ { id : 22, name : 'Alexander Nguyen', age : 41, city : 'Hanoi', food : 'Pho', color : 'Coral' },
135
+ { id : 23, name : 'Ella Patel', age : 19, city : 'Mumbai', food : 'Curry', color : 'Amber' },
136
+ { id : 24, name : 'James O Connor', age : 34, city : 'Dublin', food : 'Irish Stew', color : 'Green' },
137
+ { id : 25, name : 'Isabelle Chen', age : 31, city : 'Hong Kong', food : 'Dim Sum', color : 'Brown' }
138
+ ]
139
+ };
17
140
  ```
18
141
 
19
- Install using `yarn`:
142
+ Update the `src/app/app.ts` file with the following content:
143
+
144
+ ```typescript
145
+ /**
146
+ * App component script
147
+ */
148
+ import { Component, ViewChild } from '@angular/core';
149
+ import { BryntumGridComponent } from '@bryntum/grid-angular';
150
+ import { gridProps } from './app.config';
151
+
152
+ @Component({
153
+ selector : 'app-root',
154
+ standalone : false,
155
+ templateUrl : './app.html',
156
+ styleUrl : './app.css',
157
+ })
158
+ export class App {
20
159
 
21
- ```shell
22
- yarn add @bryntum/grid-angular@7.1.1
160
+ gridProps = gridProps;
161
+
162
+ @ViewChild('grid') gridComponent!: BryntumGridComponent;
163
+ }
23
164
  ```
24
165
 
25
- ## Integration guide
166
+ Edit the `src/app/app.html` file and replace the content with the following:
167
+
168
+ ```html
169
+ <bryntum-grid
170
+ #grid
171
+ [data] = "gridProps.data!"
172
+ [columns] = "gridProps.columns!"
173
+ ></bryntum-grid>
174
+ ```
175
+
176
+ Lastly, add some styling to your `styles.css` :
177
+
178
+ ```css
179
+ /* FontAwesome is used for icons */
180
+ @import '@bryntum/grid/fontawesome/css/fontawesome.css';
181
+ @import '@bryntum/grid/fontawesome/css/solid.css';
182
+ /* Structural CSS */
183
+ @import "@bryntum/grid/grid.css";
184
+ /* Bryntum theme of your choice */
185
+ @import "@bryntum/grid/material3-light.css";
186
+ ```
187
+
188
+ ## Integration Guide
26
189
 
27
190
  For details on installing and using this package, see the
28
191
  [Angular Integration Guide](https://bryntum.com/products/grid/docs/guide/Grid/integration/angular/guide).
29
192
 
30
- # Online references
193
+ ## Wrappers
194
+
195
+ Angular wrappers encapsulate Bryntum components as native Angular components, exposing all configuration options,
196
+ properties, features, and events through Angular-familiar patterns like inputs, outputs, and templates.
197
+
198
+ Visit [Wrappers documentation](https://bryntum.com/products/grid/docs/guide/Grid/integration/angular/guide#wrappers) for the complete list of available
199
+ wrapper components.
200
+
201
+ ## Features
202
+
203
+ Features are optional modules that extend Bryntum Grid functionality. Each feature is suffixed with `Feature` and
204
+ can be enabled and configured through standard Angular inputs.
205
+
206
+ Visit [Features documentation](https://bryntum.com/products/grid/docs/guide/Grid/integration/angular/guide#features) for the complete list of available
207
+ features and their configuration options.
208
+
209
+ ## Explore All Bryntum Products
210
+
211
+ * [Bryntum Grid](https://bryntum.com/products/grid/) - High-performance data grid
212
+ * [Bryntum Scheduler](https://bryntum.com/products/scheduler/) - Resource scheduling component
213
+ * [Bryntum Scheduler Pro](https://bryntum.com/products/schedulerpro/) - Advanced scheduling with dependencies
214
+ * [Bryntum Gantt](https://bryntum.com/products/gantt/) - Project planning and management
215
+ * [Bryntum Calendar](https://bryntum.com/products/calendar/) - Full-featured calendar component
216
+ * [Bryntum TaskBoard](https://bryntum.com/products/taskboard/) - Kanban-style task management
217
+
218
+ Explore our comprehensive collection of demos:
219
+
220
+ | 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 |
221
+ |-------------------|:------------------------------------------------------------------------------------:|:--------------------------------------------------------------------------:|:----------------------------------------------------------------------:|:------------------------------------------------------------------------------:|
222
+ | **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) |
223
+ | **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) |
224
+ | **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) |
225
+ | **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) |
226
+ | **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) |
227
+ | **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) |
228
+
229
+ ## Online references
31
230
 
32
- * [Bryntum npm repository guide](https://bryntum.com/products/grid/docs/guide/Grid/npm-repository)
33
231
  * [Bryntum Grid documentation](https://bryntum.com/products/grid/docs/)
34
232
  * [Bryntum Grid examples](https://bryntum.com/products/grid/examples/)
233
+
35
234
  * [Bryntum Support Forum](https://forum.bryntum.com/)
36
235
  * [Contact us](https://bryntum.com/contact/)
37
236
 
@@ -42,3 +241,4 @@ Please visit the [Bryntum Grid End User License](https://bryntum.com/products/gr
42
241
 
43
242
  Copyright © 2009-2026, Bryntum
44
243
  All rights reserved.
244
+