@bryntum/grid-angular 7.1.1 → 7.1.2

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 +209 -15
  2. package/bundles/bryntum-grid-angular.umd.js +3 -3
  3. package/bundles/bryntum-grid-angular.umd.js.map +1 -1
  4. package/esm2015/lib/bryntum-grid-base.component.js +2 -2
  5. package/esm2015/lib/bryntum-grid.component.js +2 -2
  6. package/esm2015/lib/bryntum-tree-grid.component.js +2 -2
  7. package/fesm2015/bryntum-grid-angular.js +3 -3
  8. package/fesm2015/bryntum-grid-angular.js.map +1 -1
  9. package/lib/bryntum-grid-base.component.d.ts +1 -1
  10. package/lib/bryntum-grid.component.d.ts +1 -1
  11. package/lib/bryntum-tree-grid.component.d.ts +1 -1
  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 +2796 -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 +2800 -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 +2800 -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,230 @@
1
- # Angular Ivy wrapper for Bryntum Grid
1
+ <div style="display: flex; justify-content: space-between; align-items: center; margin: 0 50px;">
2
+ <a href="https://bryntum.com/" rel="noopener" target="_blank">
3
+ <img width="350" src="https://bryntum.com/resources/bryntum_logo_blue.svg" alt="Bryntum logo">
4
+ </a>
5
+ <img src="https://bryntum.com/products/grid/docs/data/Core/images/logo/angular.svg" alt="Angular" width="100">
6
+ </div>
2
7
 
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.
8
+ # Angular wrapper for Bryntum Grid
9
+
10
+ This package provides a wrapper that turns Bryntum Grid into an Angular component, exposing configuration options,
11
+ properties, features, and events.
12
+
13
+ ## Version Requirement
14
+
15
+ Wrapper is compiled for the **Angular Ivy** rendering engine (Angular 12+).
16
+
17
+ * Angular: `12` with Ivy support or higher
18
+ * TypeScript: `4.2` or higher
19
+ * Vite `5` or higher (starting with Angular `17`)
20
+
21
+ ## Package Contents
22
+
23
+ | Path | Description |
24
+ |------------|----------------------------------|
25
+ | `bundles/` | UMD bundles with source maps |
26
+ | `lib/` | Component type definitions |
27
+ | `src/` | Original TypeScript source files |
5
28
 
6
29
  ## Installation
7
30
 
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.
31
+ ### Angular Wrapper
32
+
33
+ ```bash
34
+ npm install @bryntum/grid-angular@latest
35
+ ```
36
+
37
+ ### Component Package (Required)
38
+
39
+ ```bash
40
+ npm install @bryntum/grid@latest
41
+ ```
42
+
43
+ ## Try Bryntum Online Demos
44
+
45
+ * [View Online Angular Demos](https://bryntum.com/products/grid/examples/?framework=angular)
46
+
47
+ ## Quick Start
48
+
49
+ Edit the `src/app/app-module.ts` file and add the following import:
50
+
51
+ ```typescript
52
+ import { BryntumGridModule } from '@bryntum/grid-angular';
53
+ ```
54
+
55
+ Next, add `BryntumGridModule` to `imports[]` :
56
+
57
+ ```typescript
58
+ @NgModule({
59
+ imports : [
60
+ BryntumGridModule
61
+ ]
62
+ })
63
+ ```
64
+
65
+ Create `src/app/app.config.ts` file with the following content:
10
66
 
11
- The following are most frequently used:
67
+ ```typescript
68
+ import { BryntumGridProps } from '@bryntum/grid-angular';
12
69
 
13
- Install using `npm`:
70
+ export const gridProps: BryntumGridProps = {
71
+ columns : [
72
+ {
73
+ text : 'Name',
74
+ field : 'name',
75
+ flex : 1,
76
+ editor : {
77
+ type : 'textfield',
78
+ required : true
79
+ }
80
+ }, {
81
+ text : 'Age',
82
+ field : 'age',
83
+ width : 100,
84
+ type : 'number'
85
+ }, {
86
+ text : 'City',
87
+ field : 'city',
88
+ flex : 1
89
+ }, {
90
+ text : 'Food',
91
+ field : 'food',
92
+ flex : 1
93
+ }, {
94
+ text : 'Color',
95
+ field : 'color',
96
+ width : 80,
97
+ type : 'column',
98
+ renderer : ({ cellElement, value }) => {
99
+ cellElement.style.color = value;
100
+ cellElement.style.fontWeight = '700';
101
+ return value;
102
+ }
103
+ }
104
+ ],
14
105
 
15
- ```shell
16
- npm install @bryntum/grid-angular@7.1.1
106
+ data : [
107
+ { id : 1, name : 'Don A Taylor', age : 30, city : 'Moscow', food : 'Salad', color : 'Black' },
108
+ { id : 2, name : 'John B Adams', age : 65, city : 'Paris', food : 'Bolognese', color : 'Orange' },
109
+ { id : 3, name : 'John Doe', age : 40, city : 'London', food : 'Fish and Chips', color : 'Blue' },
110
+ { id : 4, name : 'Maria Garcia', age : 28, city : 'Madrid', food : 'Paella', color : 'Green' },
111
+ { id : 5, name : 'Li Wei', age : 35, city : 'Beijing', food : 'Dumplings', color : 'Yellow' },
112
+ { id : 6, name : 'Sara Johnson', age : 32, city : 'Sydney', food : 'Sushi', color : 'Purple' },
113
+ { id : 7, name : 'Lucas Brown', age : 22, city : 'Toronto', food : 'Poutine', color : 'Orange' },
114
+ { id : 8, name : 'Emma Wilson', age : 27, city : 'Paris', food : 'Croissant', color : 'Pink' },
115
+ { id : 9, name : 'Ivan Petrov', age : 45, city : 'St. Petersburg', food : 'Borscht', color : 'Grey' },
116
+ { id : 10, name : 'Zhang Ming', age : 50, city : 'Shanghai', food : 'Hot Pot', color : 'Purple' },
117
+ { id : 11, name : 'Sophia Martinez', age : 20, city : 'Mexico City', food : 'Tacos', color : 'Crimson' },
118
+ { id : 12, name : 'Noah Smith', age : 55, city : 'Cape Town', food : 'Biltong', color : 'Turquoise' },
119
+ { id : 13, name : 'Isabella Jones', age : 33, city : 'Rio de Janeiro', food : 'Feijoada', color : 'Magenta' },
120
+ { id : 14, name : 'Ethan Taylor', age : 29, city : 'Chicago', food : 'Deep-Dish Pizza', color : 'Cyan' },
121
+ { id : 15, name : 'Olivia Brown', age : 37, city : 'Berlin', food : 'Schnitzel', color : 'Maroon' },
122
+ { id : 16, name : 'Mia Wilson', age : 26, city : 'Rome', food : 'Pasta', color : 'Olive' },
123
+ { id : 17, name : 'Jacob Miller', age : 60, city : 'Amsterdam', food : 'Stroopwafel', color : 'Lime' },
124
+ { id : 18, name : 'Chloe Davis', age : 23, city : 'Los Angeles', food : 'Burger', color : 'Teal' },
125
+ { id : 19, name : 'Aiden Martinez', age : 48, city : 'Buenos Aires', food : 'Asado', color : 'Violet' },
126
+ { id : 20, name : 'Liam Lee', age : 38, city : 'Seoul', food : 'Kimchi', color : 'Indigo' },
127
+ { id : 21, name : 'Sophie Kim', age : 21, city : 'Tokyo', food : 'Ramen', color : 'Pink' },
128
+ { id : 22, name : 'Alexander Nguyen', age : 41, city : 'Hanoi', food : 'Pho', color : 'Coral' },
129
+ { id : 23, name : 'Ella Patel', age : 19, city : 'Mumbai', food : 'Curry', color : 'Amber' },
130
+ { id : 24, name : 'James O Connor', age : 34, city : 'Dublin', food : 'Irish Stew', color : 'Green' },
131
+ { id : 25, name : 'Isabelle Chen', age : 31, city : 'Hong Kong', food : 'Dim Sum', color : 'Brown' }
132
+ ]
133
+ };
17
134
  ```
18
135
 
19
- Install using `yarn`:
136
+ Update the `src/app/app.ts` file with the following content:
20
137
 
21
- ```shell
22
- yarn add @bryntum/grid-angular@7.1.1
138
+ ```typescript
139
+ /**
140
+ * App component script
141
+ */
142
+ import { Component, ViewChild } from '@angular/core';
143
+ import { BryntumGridComponent } from '@bryntum/grid-angular';
144
+ import { gridProps } from './app.config';
145
+
146
+ @Component({
147
+ selector : 'app-root',
148
+ standalone : false,
149
+ templateUrl : './app.html',
150
+ styleUrl : './app.css',
151
+ })
152
+ export class App {
153
+
154
+ gridProps = gridProps;
155
+
156
+ @ViewChild('grid') gridComponent!: BryntumGridComponent;
157
+ }
158
+ ```
159
+
160
+ Edit the `src/app/app.html` file and replace the content with the following:
161
+
162
+ ```html
163
+ <bryntum-grid
164
+ #grid
165
+ [data] = "gridProps.data!"
166
+ [columns] = "gridProps.columns!"
167
+ ></bryntum-grid>
23
168
  ```
24
169
 
25
- ## Integration guide
170
+ Lastly, add some styling to your `styles.css` :
171
+
172
+ ```css
173
+ /* FontAwesome is used for icons */
174
+ @import '@bryntum/grid/fontawesome/css/fontawesome.css';
175
+ @import '@bryntum/grid/fontawesome/css/solid.css';
176
+ /* Structural CSS */
177
+ @import "@bryntum/grid/grid.css";
178
+ /* Bryntum theme of your choice */
179
+ @import "@bryntum/grid/material3-light.css";
180
+ ```
181
+
182
+ ## Integration Guide
26
183
 
27
184
  For details on installing and using this package, see the
28
185
  [Angular Integration Guide](https://bryntum.com/products/grid/docs/guide/Grid/integration/angular/guide).
29
186
 
30
- # Online references
187
+ ## Wrappers
188
+
189
+ Angular wrappers encapsulate Bryntum components as native Angular components, exposing all configuration options,
190
+ properties, features, and events through Angular-familiar patterns like inputs, outputs, and templates.
191
+
192
+ Visit [Wrappers documentation](https://bryntum.com/products/grid/docs/guide/Grid/integration/angular/guide#wrappers) for the complete list of available
193
+ wrapper components.
194
+
195
+ ## Features
196
+
197
+ Features are optional modules that extend Bryntum Grid functionality. Each feature is suffixed with `Feature` and
198
+ can be enabled and configured through standard Angular inputs.
199
+
200
+ Visit [Features documentation](https://bryntum.com/products/grid/docs/guide/Grid/integration/angular/guide#features) for the complete list of available
201
+ features and their configuration options.
202
+
203
+ ## Explore All Bryntum Products
204
+
205
+ * [Bryntum Grid](https://bryntum.com/products/grid/) - High-performance data grid
206
+ * [Bryntum Scheduler](https://bryntum.com/products/scheduler/) - Resource scheduling component
207
+ * [Bryntum Scheduler Pro](https://bryntum.com/products/schedulerpro/) - Advanced scheduling with dependencies
208
+ * [Bryntum Gantt](https://bryntum.com/products/gantt/) - Project planning and management
209
+ * [Bryntum Calendar](https://bryntum.com/products/calendar/) - Full-featured calendar component
210
+ * [Bryntum TaskBoard](https://bryntum.com/products/taskboard/) - Kanban-style task management
211
+
212
+ Explore our comprehensive collection of demos:
213
+
214
+ | 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 |
215
+ |-------------------|:------------------------------------------------------------------------------------:|:--------------------------------------------------------------------------:|:----------------------------------------------------------------------:|:------------------------------------------------------------------------------:|
216
+ | **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) |
217
+ | **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) |
218
+ | **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) |
219
+ | **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) |
220
+ | **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) |
221
+ | **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) |
222
+
223
+ ## Online references
31
224
 
32
- * [Bryntum npm repository guide](https://bryntum.com/products/grid/docs/guide/Grid/npm-repository)
33
225
  * [Bryntum Grid documentation](https://bryntum.com/products/grid/docs/)
34
226
  * [Bryntum Grid examples](https://bryntum.com/products/grid/examples/)
227
+
35
228
  * [Bryntum Support Forum](https://forum.bryntum.com/)
36
229
  * [Contact us](https://bryntum.com/contact/)
37
230
 
@@ -42,3 +235,4 @@ Please visit the [Bryntum Grid End User License](https://bryntum.com/products/gr
42
235
 
43
236
  Copyright © 2009-2026, Bryntum
44
237
  All rights reserved.
238
+
@@ -21577,7 +21577,7 @@
21577
21577
  /**
21578
21578
  * Fires on the owning Grid before export started. Return `false` to cancel the export.
21579
21579
  * @param {object} event Event object
21580
- * @param {object} event.config Export config
21580
+ * @param {PdfExportConfig} event.config Export config
21581
21581
  */
21582
21582
  this.onBeforePdfExport = new i0.EventEmitter();
21583
21583
  /**
@@ -23675,7 +23675,7 @@
23675
23675
  /**
23676
23676
  * Fires on the owning Grid before export started. Return `false` to cancel the export.
23677
23677
  * @param {object} event Event object
23678
- * @param {object} event.config Export config
23678
+ * @param {PdfExportConfig} event.config Export config
23679
23679
  */
23680
23680
  this.onBeforePdfExport = new i0.EventEmitter();
23681
23681
  /**
@@ -45538,7 +45538,7 @@
45538
45538
  /**
45539
45539
  * Fires on the owning Grid before export started. Return `false` to cancel the export.
45540
45540
  * @param {object} event Event object
45541
- * @param {object} event.config Export config
45541
+ * @param {PdfExportConfig} event.config Export config
45542
45542
  */
45543
45543
  this.onBeforePdfExport = new i0.EventEmitter();
45544
45544
  /**