@bryntum/grid-angular-thin 7.3.4 → 7.3.5

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 (36) hide show
  1. package/README.md +32 -55
  2. package/bundles/bryntum-grid-angular-thin.umd.js +59 -19
  3. package/bundles/bryntum-grid-angular-thin.umd.js.map +1 -1
  4. package/esm2015/lib/bryntum-a-i-filter-field.component.js +6 -2
  5. package/esm2015/lib/bryntum-checklist-filter-combo.component.js +6 -2
  6. package/esm2015/lib/bryntum-grid-base.component.js +9 -5
  7. package/esm2015/lib/bryntum-grid-chart-designer.component.js +6 -2
  8. package/esm2015/lib/bryntum-grid-field-filter-picker-group.component.js +6 -2
  9. package/esm2015/lib/bryntum-grid-field-filter-picker.component.js +6 -2
  10. package/esm2015/lib/bryntum-grid.component.js +9 -5
  11. package/esm2015/lib/bryntum-group-bar.component.js +6 -2
  12. package/esm2015/lib/bryntum-tree-combo.component.js +6 -2
  13. package/esm2015/lib/bryntum-tree-grid.component.js +9 -5
  14. package/fesm2015/bryntum-grid-angular-thin.js +59 -19
  15. package/fesm2015/bryntum-grid-angular-thin.js.map +1 -1
  16. package/lib/bryntum-a-i-filter-field.component.d.ts +9 -2
  17. package/lib/bryntum-checklist-filter-combo.component.d.ts +9 -2
  18. package/lib/bryntum-grid-base.component.d.ts +11 -4
  19. package/lib/bryntum-grid-chart-designer.component.d.ts +9 -2
  20. package/lib/bryntum-grid-field-filter-picker-group.component.d.ts +9 -2
  21. package/lib/bryntum-grid-field-filter-picker.component.d.ts +9 -2
  22. package/lib/bryntum-grid.component.d.ts +11 -4
  23. package/lib/bryntum-group-bar.component.d.ts +9 -2
  24. package/lib/bryntum-tree-combo.component.d.ts +9 -2
  25. package/lib/bryntum-tree-grid.component.d.ts +11 -4
  26. package/package.json +1 -1
  27. package/src/lib/bryntum-a-i-filter-field.component.ts +10 -1
  28. package/src/lib/bryntum-checklist-filter-combo.component.ts +10 -1
  29. package/src/lib/bryntum-grid-base.component.ts +13 -4
  30. package/src/lib/bryntum-grid-chart-designer.component.ts +10 -1
  31. package/src/lib/bryntum-grid-field-filter-picker-group.component.ts +10 -1
  32. package/src/lib/bryntum-grid-field-filter-picker.component.ts +10 -1
  33. package/src/lib/bryntum-grid.component.ts +13 -4
  34. package/src/lib/bryntum-group-bar.component.ts +10 -1
  35. package/src/lib/bryntum-tree-combo.component.ts +10 -1
  36. package/src/lib/bryntum-tree-grid.component.ts +13 -4
package/README.md CHANGED
@@ -55,38 +55,39 @@ npm install @bryntum/grid-thin@latest
55
55
 
56
56
  ## Quick Start
57
57
 
58
- Edit the `src/app/app-module.ts` file and add the following import:
58
+ Update the `src/app/app.ts` file with the following content:
59
59
 
60
60
  ```typescript
61
- import { NgModule } from '@angular/core';
62
- import { BrowserModule } from '@angular/platform-browser';
63
-
61
+ /**
62
+ * App component script
63
+ */
64
+ import { ChangeDetectionStrategy, Component, ViewEncapsulation, viewChild } from '@angular/core';
64
65
  import { BryntumCoreModule } from '@bryntum/core-angular-thin';
65
- import { BryntumGridModule } from '@bryntum/grid-angular-thin';
66
-
67
- import { AppComponent } from './app';
66
+ import { BryntumGridComponent, BryntumGridModule } from '@bryntum/grid-angular-thin';
67
+ import { gridProps } from './demo.config';
68
68
 
69
- @NgModule({
70
- declarations : [
71
- AppComponent
72
- ],
73
- imports : [
74
- BrowserModule,
75
- BryntumCoreModule,
76
- BryntumGridModule
77
- ],
78
- providers : [],
79
- bootstrap : [AppComponent]
69
+ @Component({
70
+ selector : 'app-root',
71
+ imports : [BryntumCoreModule, BryntumGridModule],
72
+ templateUrl : './app.html',
73
+ styleUrl : './app.scss',
74
+ changeDetection : ChangeDetectionStrategy.OnPush,
75
+ encapsulation : ViewEncapsulation.None
80
76
  })
81
- export class AppModule {}
77
+ export class App {
78
+
79
+ protected readonly gridProps = gridProps;
80
+
81
+ protected readonly gridComponent = viewChild.required(BryntumGridComponent);
82
+ }
82
83
  ```
83
84
 
84
- Create `src/app/app.config.ts` file with the following content:
85
+ Create the `src/app/demo.config.ts` file with the following content:
85
86
 
86
87
  ```typescript
87
- import { BryntumGridProps } from '@bryntum/grid-angular-thin';
88
+ import type { BryntumGridProps } from '@bryntum/grid-angular-thin';
88
89
 
89
- export const gridProps: BryntumGridProps = {
90
+ export const gridProps = {
90
91
  columns : [
91
92
  {
92
93
  text : 'Name',
@@ -149,31 +150,7 @@ export const gridProps: BryntumGridProps = {
149
150
  { id : 24, name : 'James O Connor', age : 34, city : 'Dublin', food : 'Irish Stew', color : 'Green' },
150
151
  { id : 25, name : 'Isabelle Chen', age : 31, city : 'Hong Kong', food : 'Dim Sum', color : 'Brown' }
151
152
  ]
152
- };
153
- ```
154
-
155
- Update the `src/app/app.ts` file with the following content:
156
-
157
- ```typescript
158
- /**
159
- * App component script
160
- */
161
- import { Component, ViewChild } from '@angular/core';
162
- import { BryntumGridComponent } from '@bryntum/grid-angular-thin';
163
- import { gridProps } from './app.config';
164
-
165
- @Component({
166
- selector : 'app-root',
167
- standalone : false,
168
- templateUrl : './app.html',
169
- styleUrl : './app.css'
170
- })
171
- export class AppComponent {
172
-
173
- gridProps = gridProps;
174
-
175
- @ViewChild('grid') gridComponent!: BryntumGridComponent;
176
- }
153
+ } satisfies BryntumGridProps;
177
154
  ```
178
155
 
179
156
  Edit the `src/app/app.html` file and replace the content with the following:
@@ -181,8 +158,8 @@ Edit the `src/app/app.html` file and replace the content with the following:
181
158
  ```html
182
159
  <bryntum-grid
183
160
  #grid
184
- [data] = "gridProps.data!"
185
- [columns] = "gridProps.columns!"
161
+ [data] = "gridProps.data"
162
+ [columns] = "gridProps.columns"
186
163
  ></bryntum-grid>
187
164
  ```
188
165
 
@@ -195,8 +172,8 @@ API packages:
195
172
  ```json
196
173
  {
197
174
  "dependencies": {
198
- "@bryntum/core-thin": "7.3.4",
199
- "@bryntum/grid-thin": "7.3.4"
175
+ "@bryntum/core-thin": "7.3.5",
176
+ "@bryntum/grid-thin": "7.3.5"
200
177
  }
201
178
  }
202
179
  ```
@@ -206,8 +183,8 @@ Framework wrapper packages:
206
183
  ```json
207
184
  {
208
185
  "dependencies": {
209
- "@bryntum/core-angular-thin": "7.3.4",
210
- "@bryntum/grid-angular-thin": "7.3.4"
186
+ "@bryntum/core-angular-thin": "7.3.5",
187
+ "@bryntum/grid-angular-thin": "7.3.5"
211
188
  }
212
189
  }
213
190
  ```
@@ -217,9 +194,9 @@ Framework wrapper packages:
217
194
  ```typescript
218
195
  import { BryntumGridProps } from '@bryntum/grid-angular-thin';
219
196
 
220
- const gridProps : BryntumGridProps = {
197
+ const gridProps = {
221
198
  // Grid configuration
222
- };
199
+ } satisfies BryntumGridProps;
223
200
  ```
224
201
 
225
202
  ### Product Styling