@rxap/data-grid 16.0.0-dev.1 → 16.0.0-dev.11

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 (37) hide show
  1. package/CHANGELOG.md +242 -0
  2. package/LICENSE +621 -27
  3. package/LICENSE.md +621 -0
  4. package/README.md +7 -22
  5. package/esm2022/index.mjs +4 -4
  6. package/esm2022/lib/data-grid-cell-def.directive.mjs +7 -7
  7. package/esm2022/lib/data-grid-edit-cell-def.directive.mjs +8 -8
  8. package/esm2022/lib/data-grid-header-cell-def.directive.mjs +7 -7
  9. package/esm2022/lib/data-grid-row-def.directive.mjs +30 -15
  10. package/esm2022/lib/data-grid-value.pipe.mjs +22 -0
  11. package/esm2022/lib/data-grid.component.mjs +255 -0
  12. package/esm2022/lib/data-grid.module.mjs +40 -0
  13. package/esm2022/rxap-data-grid.mjs +1 -1
  14. package/fesm2022/rxap-data-grid.mjs +320 -84
  15. package/fesm2022/rxap-data-grid.mjs.map +1 -1
  16. package/index.d.ts +3 -3
  17. package/lib/data-grid-cell-def.directive.d.ts +1 -1
  18. package/lib/data-grid-edit-cell-def.directive.d.ts +3 -4
  19. package/lib/data-grid-header-cell-def.directive.d.ts +1 -1
  20. package/lib/data-grid-row-def.directive.d.ts +20 -2
  21. package/lib/data-grid-value.pipe.d.ts +8 -0
  22. package/lib/data-grid.component.d.ts +71 -0
  23. package/lib/data-grid.module.d.ts +11 -0
  24. package/package.json +64 -46
  25. package/theme.css +1 -0
  26. package/collection.json +0 -10
  27. package/esm2022/lib/data-grid.component.module.mjs +0 -36
  28. package/esm2022/lib/readonly/data-grid-readonly.component.mjs +0 -35
  29. package/esm2022/lib/readonly/data-grid-readonly.component.module.mjs +0 -32
  30. package/lib/data-grid.component.module.d.ts +0 -10
  31. package/lib/readonly/data-grid-readonly.component.d.ts +0 -10
  32. package/lib/readonly/data-grid-readonly.component.module.d.ts +0 -10
  33. package/migration.json +0 -4
  34. package/src/schematics/ng-add/index.d.ts +0 -2
  35. package/src/schematics/ng-add/index.js +0 -8
  36. package/src/schematics/ng-add/index.js.map +0 -1
  37. package/src/schematics/ng-add/schema.json +0 -7
@@ -2,4 +2,4 @@
2
2
  * Generated bundle index. Do not edit.
3
3
  */
4
4
  export * from './index';
5
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicnhhcC1kYXRhLWdyaWQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9saWJzL2RhdGEtZ3JpZC9zcmMvcnhhcC1kYXRhLWdyaWQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLFNBQVMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9pbmRleCc7XG4iXX0=
5
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicnhhcC1kYXRhLWdyaWQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy9hbmd1bGFyL2RhdGEtZ3JpZC9zcmMvcnhhcC1kYXRhLWdyaWQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLFNBQVMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9pbmRleCc7XG4iXX0=
@@ -1,11 +1,24 @@
1
1
  import * as i0 from '@angular/core';
2
- import { TemplateRef, Directive, Inject, Input, ContentChild, NgModule, QueryList, Component, ChangeDetectionStrategy, ContentChildren } from '@angular/core';
3
- import { __decorate, __metadata } from 'tslib';
4
- import { Required } from '@rxap/utilities';
5
- import * as i1 from '@angular/common';
6
- import { CommonModule } from '@angular/common';
7
- import * as i2 from '@rxap/pipes';
8
- import { GetFromObjectPipeModule } from '@rxap/pipes';
2
+ import { TemplateRef, Directive, Inject, Input, ContentChild, Pipe, isDevMode, EventEmitter, Component, ChangeDetectionStrategy, Optional, ContentChildren, Output, NgModule } from '@angular/core';
3
+ import { getFromObject, clone } from '@rxap/utilities';
4
+ import { map, filter, tap, shareReplay, take } from 'rxjs/operators';
5
+ import * as i1 from '@angular/router';
6
+ import { ActivationEnd } from '@angular/router';
7
+ import * as i2 from '@rxap/forms';
8
+ import { RxapFormsModule } from '@rxap/forms';
9
+ import { ToggleSubject } from '@rxap/rxjs';
10
+ import { EMPTY, BehaviorSubject, merge, of, debounceTime, combineLatest } from 'rxjs';
11
+ import * as i3 from '@angular/material/button';
12
+ import { MatButtonModule } from '@angular/material/button';
13
+ import { MatIconModule } from '@angular/material/icon';
14
+ import { GetFromObjectPipe, ReplacePipe, EscapeQuotationMarkPipe } from '@rxap/pipes';
15
+ import * as i4 from '@angular/material/progress-spinner';
16
+ import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
17
+ import * as i5 from '@angular/material/divider';
18
+ import { MatDividerModule } from '@angular/material/divider';
19
+ import { AsyncPipe, NgIf, NgFor, NgTemplateOutlet, NgClass } from '@angular/common';
20
+ import * as i6 from '@angular/material/form-field';
21
+ import { MatFormFieldModule } from '@angular/material/form-field';
9
22
 
10
23
  class DataGridCellDefDirective {
11
24
  static ngTemplateContextGuard(dir, ctx) {
@@ -14,13 +27,14 @@ class DataGridCellDefDirective {
14
27
  constructor(template) {
15
28
  this.template = template;
16
29
  }
17
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: DataGridCellDefDirective, deps: [{ token: TemplateRef }], target: i0.ɵɵFactoryTarget.Directive }); }
18
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.2", type: DataGridCellDefDirective, selector: "[rxapDataGridCellDef]", ngImport: i0 }); }
30
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: DataGridCellDefDirective, deps: [{ token: TemplateRef }], target: i0.ɵɵFactoryTarget.Directive }); }
31
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.4", type: DataGridCellDefDirective, isStandalone: true, selector: "[rxapDataGridCellDef]", ngImport: i0 }); }
19
32
  }
20
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: DataGridCellDefDirective, decorators: [{
33
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: DataGridCellDefDirective, decorators: [{
21
34
  type: Directive,
22
35
  args: [{
23
36
  selector: '[rxapDataGridCellDef]',
37
+ standalone: true,
24
38
  }]
25
39
  }], ctorParameters: function () { return [{ type: i0.TemplateRef, decorators: [{
26
40
  type: Inject,
@@ -34,13 +48,14 @@ class DataGridHeaderCellDefDirective {
34
48
  constructor(template) {
35
49
  this.template = template;
36
50
  }
37
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: DataGridHeaderCellDefDirective, deps: [{ token: TemplateRef }], target: i0.ɵɵFactoryTarget.Directive }); }
38
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.2", type: DataGridHeaderCellDefDirective, selector: "[rxapDataGridHeaderCellDef]", ngImport: i0 }); }
51
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: DataGridHeaderCellDefDirective, deps: [{ token: TemplateRef }], target: i0.ɵɵFactoryTarget.Directive }); }
52
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.4", type: DataGridHeaderCellDefDirective, isStandalone: true, selector: "[rxapDataGridHeaderCellDef]", ngImport: i0 }); }
39
53
  }
40
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: DataGridHeaderCellDefDirective, decorators: [{
54
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: DataGridHeaderCellDefDirective, decorators: [{
41
55
  type: Directive,
42
56
  args: [{
43
57
  selector: '[rxapDataGridHeaderCellDef]',
58
+ standalone: true,
44
59
  }]
45
60
  }], ctorParameters: function () { return [{ type: i0.TemplateRef, decorators: [{
46
61
  type: Inject,
@@ -54,13 +69,14 @@ class DataGridEditCellDefDirective {
54
69
  constructor(template) {
55
70
  this.template = template;
56
71
  }
57
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: DataGridEditCellDefDirective, deps: [{ token: TemplateRef }], target: i0.ɵɵFactoryTarget.Directive }); }
58
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.2", type: DataGridEditCellDefDirective, selector: "[rxapDataGridEditCellDef]", ngImport: i0 }); }
72
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: DataGridEditCellDefDirective, deps: [{ token: TemplateRef }], target: i0.ɵɵFactoryTarget.Directive }); }
73
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.4", type: DataGridEditCellDefDirective, isStandalone: true, selector: "[rxapDataGridEditCellDef]", ngImport: i0 }); }
59
74
  }
60
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: DataGridEditCellDefDirective, decorators: [{
75
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: DataGridEditCellDefDirective, decorators: [{
61
76
  type: Directive,
62
77
  args: [{
63
- selector: '[rxapDataGridEditCellDef]'
78
+ selector: '[rxapDataGridEditCellDef]',
79
+ standalone: true,
64
80
  }]
65
81
  }], ctorParameters: function () { return [{ type: i0.TemplateRef, decorators: [{
66
82
  type: Inject,
@@ -70,25 +86,43 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImpor
70
86
  class DataGridRowDefDirective {
71
87
  constructor() {
72
88
  this.data = null;
89
+ /**
90
+ * true - the header and content cell are "rotated" by 90°. The header is above the content cell and both have a
91
+ * colspan
92
+ *
93
+ * **flip: false**
94
+ * Label | Value
95
+ * --- | ---
96
+ * Header | Content
97
+ *
98
+ * **flip: true**
99
+ * Label | Value
100
+ * --- | ---
101
+ * Header (colspan 2)
102
+ * Content (colspan 2)
103
+ *
104
+ */
105
+ this.flip = false;
73
106
  }
74
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: DataGridRowDefDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
75
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.2", type: DataGridRowDefDirective, selector: "[rxapDataGridRowDef]", inputs: { data: "data", name: ["rxapDataGridRowDef", "name"] }, queries: [{ propertyName: "cell", first: true, predicate: DataGridCellDefDirective, descendants: true }, { propertyName: "headerCell", first: true, predicate: DataGridHeaderCellDefDirective, descendants: true }, { propertyName: "editCell", first: true, predicate: DataGridEditCellDefDirective, descendants: true }], ngImport: i0 }); }
107
+ get isSubHeader() {
108
+ return !this.name;
109
+ }
110
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: DataGridRowDefDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
111
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.4", type: DataGridRowDefDirective, isStandalone: true, selector: "[rxapDataGridRowDef]", inputs: { data: "data", name: ["rxapDataGridRowDef", "name"], flip: "flip" }, queries: [{ propertyName: "cell", first: true, predicate: DataGridCellDefDirective, descendants: true }, { propertyName: "headerCell", first: true, predicate: DataGridHeaderCellDefDirective, descendants: true }, { propertyName: "editCell", first: true, predicate: DataGridEditCellDefDirective, descendants: true }], ngImport: i0 }); }
76
112
  }
77
- __decorate([
78
- Required,
79
- __metadata("design:type", String)
80
- ], DataGridRowDefDirective.prototype, "name", void 0);
81
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: DataGridRowDefDirective, decorators: [{
113
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: DataGridRowDefDirective, decorators: [{
82
114
  type: Directive,
83
115
  args: [{
84
- // tslint:disable-next-line:directive-selector
85
- selector: '[rxapDataGridRowDef]'
116
+ selector: '[rxapDataGridRowDef]',
117
+ standalone: true,
86
118
  }]
87
119
  }], propDecorators: { data: [{
88
120
  type: Input
89
121
  }], name: [{
90
122
  type: Input,
91
123
  args: ['rxapDataGridRowDef']
124
+ }], flip: [{
125
+ type: Input
92
126
  }], cell: [{
93
127
  type: ContentChild,
94
128
  args: [DataGridCellDefDirective]
@@ -100,84 +134,286 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImpor
100
134
  args: [DataGridEditCellDefDirective]
101
135
  }] } });
102
136
 
103
- class DataGridModule {
104
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: DataGridModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
105
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.2", ngImport: i0, type: DataGridModule, declarations: [DataGridRowDefDirective,
106
- DataGridHeaderCellDefDirective,
107
- DataGridCellDefDirective,
108
- DataGridEditCellDefDirective], exports: [DataGridRowDefDirective,
109
- DataGridHeaderCellDefDirective,
110
- DataGridCellDefDirective,
111
- DataGridEditCellDefDirective] }); }
112
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: DataGridModule }); }
137
+ class DataGridValuePipe {
138
+ transform(data, path) {
139
+ if (!path) {
140
+ throw new Error('FATAL: The path is required! Ensure the data grid row has a defined name property!');
141
+ }
142
+ return data.pipe(map(source => getFromObject(source, path)));
143
+ }
144
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: DataGridValuePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
145
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.1.4", ngImport: i0, type: DataGridValuePipe, isStandalone: true, name: "dataGridValue" }); }
113
146
  }
114
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: DataGridModule, decorators: [{
115
- type: NgModule,
147
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: DataGridValuePipe, decorators: [{
148
+ type: Pipe,
116
149
  args: [{
117
- declarations: [
118
- DataGridRowDefDirective,
119
- DataGridHeaderCellDefDirective,
120
- DataGridCellDefDirective,
121
- DataGridEditCellDefDirective
122
- ],
123
- exports: [
124
- DataGridRowDefDirective,
125
- DataGridHeaderCellDefDirective,
126
- DataGridCellDefDirective,
127
- DataGridEditCellDefDirective
128
- ]
150
+ name: 'dataGridValue',
151
+ standalone: true,
129
152
  }]
130
153
  }] });
131
154
 
132
- class DataGridReadonlyComponent {
133
- constructor() {
134
- this.header = true;
155
+ var DataGridMode;
156
+ (function (DataGridMode) {
157
+ /**
158
+ * The view cell template is used to display the property value
159
+ */
160
+ DataGridMode["PLAIN"] = "plain";
161
+ /**
162
+ * The edit cell template is used to display the property value, but the form and all controls are marked as disabled
163
+ */
164
+ DataGridMode["FORM"] = "form";
165
+ })(DataGridMode || (DataGridMode = {}));
166
+ function IsDataGridMode(value) {
167
+ return [DataGridMode.PLAIN, DataGridMode.FORM].includes(value);
168
+ }
169
+ class DataGridComponent {
170
+ constructor(cdr, router, formDirective) {
171
+ this.cdr = cdr;
172
+ this.router = router;
173
+ this.formDirective = formDirective;
174
+ this.isDevMode = isDevMode();
175
+ this.header = false;
176
+ this.viewer = this;
177
+ this.displayProperties = null;
178
+ this.editModeChange = new EventEmitter();
179
+ this.rows$ = EMPTY;
180
+ this.hasError$ = EMPTY;
181
+ this.dataLoading$ = EMPTY;
182
+ this.loading$ = new ToggleSubject();
183
+ this._editMode$ = new BehaviorSubject(false);
184
+ this._mode$ = new BehaviorSubject(DataGridMode.PLAIN);
185
+ this._routerEventSubscription = null;
186
+ this.isEditMode$ = this._editMode$.asObservable();
187
+ this.mode$ = this._mode$.asObservable();
188
+ this.isFormMode$ = this.mode$.pipe(map(mode => mode === DataGridMode.FORM));
189
+ this.isPlainMode$ = this.mode$.pipe(map(mode => mode === DataGridMode.PLAIN));
190
+ }
191
+ set mode(value) {
192
+ if (IsDataGridMode(value)) {
193
+ this._mode$.next(value);
194
+ }
195
+ else {
196
+ throw new Error(`The data grid mode only support 'plain' and 'form' - given '${value}'`);
197
+ }
198
+ }
199
+ get isFormMode() {
200
+ return this._mode$.value === DataGridMode.FORM;
201
+ }
202
+ get hasAnyEditCells() {
203
+ return this.rows.some(row => !!row.editCell);
204
+ }
205
+ get isEditMode() {
206
+ return this._editMode$.value;
207
+ }
208
+ set editMode(value) {
209
+ this._editMode$.next(value);
210
+ }
211
+ /**
212
+ * @deprecated use the loading$ property instead
213
+ */
214
+ get loading() {
215
+ return this.loading$.value;
216
+ }
217
+ ngAfterContentInit() {
218
+ this.rows$ = merge(of(this.rows), this.rows.changes);
219
+ }
220
+ logCurrentFormState() {
221
+ console.log(clone(this.formDirective?.form.value));
222
+ }
223
+ ngOnInit() {
224
+ // resets the edit mode if this component is used in a sibling router path
225
+ // if not reset the edit mode is president after the route changes
226
+ this._routerEventSubscription = this.router.events.pipe(filter(event => event instanceof ActivationEnd), tap(() => this.disableEditMode())).subscribe();
227
+ if (this.dataSource && this.data) {
228
+ throw new Error('You can not use both dataSource and data input');
229
+ }
230
+ let data$ = EMPTY;
231
+ if (this.dataSource) {
232
+ data$ = this.dataSource.connect(this.viewer);
233
+ }
234
+ if (this.data) {
235
+ data$ = of(this.data);
236
+ }
237
+ if (data$ === EMPTY && isDevMode()) {
238
+ console.warn('No data source or data input provided');
239
+ }
240
+ this.data$ = data$.pipe(debounceTime(100), tap(data => this.data = data), tap(data => {
241
+ if (this.formDirective) {
242
+ this.formDirective.form.patchValue(data, {
243
+ coerce: true,
244
+ strict: true,
245
+ });
246
+ if (this.isFormMode) {
247
+ this.formDirective.form.disable();
248
+ }
249
+ }
250
+ }), shareReplay(1));
251
+ if (this.dataSource) {
252
+ this.hasError$ = this.dataSource.hasError$;
253
+ this.dataLoading$ = this.dataSource.loading$;
254
+ }
255
+ else {
256
+ this.hasError$ = of(false);
257
+ this.dataLoading$ = of(false);
258
+ }
259
+ if (this.formDirective && this.isFormMode) {
260
+ this.formDirective.form.disabledWhile(combineLatest([
261
+ this._editMode$,
262
+ this._mode$,
263
+ ]).pipe(map(([editMode, mode]) => !editMode && mode === 'form')), { onlySelf: false });
264
+ }
135
265
  }
136
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: DataGridReadonlyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
137
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.2", type: DataGridReadonlyComponent, selector: "rxap-data-grid-readonly", inputs: { header: "header", data: "data" }, host: { classAttribute: "rxap-data-grid-readonly" }, queries: [{ propertyName: "rows", predicate: DataGridRowDefDirective }], ngImport: i0, template: "<table>\n <thead *ngIf=\"header\">\n <tr>\n <th>Label</th>\n <th>Wert</th>\n </tr>\n </thead>\n <tr *ngFor=\"let row of rows\">\n <ng-container\n *ngTemplateOutlet=\"\n row.headerCell ? row.headerCell.template : defaultHeaderCell;\n context: { $implicit: row.name }\n \"\n ></ng-container>\n <ng-container\n *ngTemplateOutlet=\"\n row.cell ? row.cell.template : defaultCell;\n context: { $implicit: data | getFromObject: row.name, data: data }\n \"\n ></ng-container>\n </tr>\n</table>\n\n<ng-template #defaultCell let-value>\n <td>{{ value }}</td>\n</ng-template>\n<ng-template #defaultHeaderCell let-name>\n <th>{{ name }}</th>\n</ng-template>\n", styles: [""], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "pipe", type: i2.GetFromObjectPipe, name: "getFromObject" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
266
+ ngOnDestroy() {
267
+ this.dataSource?.disconnect(this.viewer);
268
+ this._routerEventSubscription?.unsubscribe();
269
+ }
270
+ enableEditMode() {
271
+ if (!this.formDirective) {
272
+ if (isDevMode()) {
273
+ console.warn('Can not enable edit mode without a form directive');
274
+ }
275
+ return;
276
+ }
277
+ this.editMode = true;
278
+ if (this.data) {
279
+ this.formDirective.form.patchValue(this.data, {
280
+ coerce: true,
281
+ strict: true,
282
+ });
283
+ }
284
+ }
285
+ disableEditMode() {
286
+ if (!this.formDirective) {
287
+ if (isDevMode()) {
288
+ console.warn('Can not enable edit mode without a form directive');
289
+ }
290
+ return;
291
+ }
292
+ this.editMode = false;
293
+ }
294
+ submit() {
295
+ if (!this.formDirective) {
296
+ if (isDevMode()) {
297
+ console.warn('Can not support without a form directive');
298
+ }
299
+ return;
300
+ }
301
+ this.loading$.enable();
302
+ this.formDirective.form.markAllAsDirty();
303
+ this.formDirective.form.markAllAsTouched();
304
+ this.formDirective.cdr.markForCheck();
305
+ this.formDirective.rxapSubmit.pipe(take(1), tap(() => {
306
+ this.disableEditMode();
307
+ })).subscribe();
308
+ this.formDirective.invalidSubmit.pipe(take(1), tap(() => {
309
+ this.loading$.disable();
310
+ })).subscribe();
311
+ this.formDirective.submitError$.pipe(filter(Boolean), // if the error is undefined we do not want to disable the loading
312
+ take(1), tap(() => {
313
+ this.loading$.disable();
314
+ })).subscribe();
315
+ this.formDirective.submitSuccessful$.pipe(take(1), tap(() => {
316
+ this.loading$.disable();
317
+ this.refresh();
318
+ })).subscribe();
319
+ this.formDirective.onSubmit(new Event('submit'));
320
+ }
321
+ reset() {
322
+ if (this.formDirective && this.data) {
323
+ this.formDirective.form.patchValue(this.data, {
324
+ coerce: true,
325
+ strict: true,
326
+ });
327
+ }
328
+ }
329
+ refresh() {
330
+ if (this.dataSource) {
331
+ this.dataSource.refresh();
332
+ }
333
+ else if (isDevMode()) {
334
+ console.warn('can not refresh the data. data source is not defined');
335
+ }
336
+ }
337
+ cancel() {
338
+ this.reset();
339
+ this.disableEditMode();
340
+ }
341
+ retry() {
342
+ this.refresh();
343
+ }
344
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: DataGridComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1.Router }, { token: i2.FormDirective, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
345
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.4", type: DataGridComponent, isStandalone: true, selector: "rxap-data-grid", inputs: { header: "header", dataSource: "dataSource", viewer: "viewer", data: "data", displayProperties: "displayProperties", mode: "mode" }, outputs: { editModeChange: "editModeChange" }, queries: [{ propertyName: "rows", predicate: DataGridRowDefDirective }], ngImport: i0, template: "<div *ngIf=\"(hasError$ | async)\" class=\"flex flex-col items-center justify-center gap-y-8\">\n <span i18n>Something has gone wrong!</span>\n <button (click)=\"retry()\" i18n mat-stroked-button>Retry</button>\n</div>\n<div *ngIf=\"(dataLoading$ | async)\" class=\"flex flex-col items-center justify-center gap-y-8\">\n <mat-spinner></mat-spinner>\n</div>\n<!-- if the dataSource input is used. It is possible the the hasError$ or loading$ property is === EMPTY. this would\nresults in an null as output. If the === false check is used this can result into the behavior that the data grid is\nnever shown. -->\n<!-- eslint-disable-next-line @angular-eslint/template/no-negated-async -->\n<table *ngIf=\"!(hasError$ | async) && !(dataLoading$ | async)\" class=\"w-full table-auto\">\n <thead *ngIf=\"header\">\n <tr>\n <th i18n>Label</th>\n <th i18n>Value</th>\n </tr>\n </thead>\n <tbody>\n <ng-template [ngForOf]=\"rows$ | async\" let-first=\"first\" let-row ngFor>\n <ng-template [ngIf]=\"!displayProperties || row.isSubHeader || (row.name && displayProperties.includes(row.name))\">\n <!-- region horizontal view -->\n <ng-template [ngIfElse]=\"normal\" [ngIf]=\"row.flip\">\n <tr>\n <td colspan=\"2\">\n <mat-divider></mat-divider>\n </td>\n </tr>\n <tr [attr.data-name]=\"row.name + '-header'\">\n <ng-container\n *ngTemplateOutlet=\"row.headerCell?.template ?? defaultHeaderCell; context: { $implicit: row.name }\"></ng-container>\n </tr>\n <tr [attr.data-name]=\"row.name + '-value'\">\n <ng-template [ngIfThen]=\"content\" [ngIf]=\"row.name\"></ng-template>\n </tr>\n <tr>\n <td colspan=\"2\">\n <mat-divider></mat-divider>\n </td>\n </tr>\n </ng-template>\n <!-- endregion -->\n <!-- region normal view -->\n <ng-template #normal>\n <tr *ngIf=\"!first && row.isSubHeader\">\n <td colspan=\"2\">\n <mat-divider></mat-divider>\n </td>\n </tr>\n <tr [attr.data-name]=\"row.name\" [ngClass]=\"{ 'sub-header': row.isSubHeader }\">\n <ng-container\n *ngTemplateOutlet=\"row.headerCell?.template ?? defaultHeaderCell; context: { $implicit: row.name }\"></ng-container>\n <ng-template [ngIfThen]=\"content\" [ngIf]=\"row.name\"></ng-template>\n </tr>\n </ng-template>\n <!-- endregion -->\n </ng-template>\n <ng-template #content>\n <td [attr.colspan]=\"row.flip ? 2 : 1\" [ngClass]=\"{\n 'h-20': row.editCell?.template && (isEditMode || isFormMode),\n }\" class=\"pl-8 pr-4 w-full\">\n <ng-template [ngIfThen]=\"editMode\" [ngIf]=\"row.editCell?.template && (isEditMode || isFormMode)\"></ng-template>\n <ng-template [ngIfThen]=\"viewMode\" [ngIf]=\"!row.editCell?.template || !isEditMode || !isFormMode\"></ng-template>\n </td>\n <ng-template #viewMode>\n <ng-container\n *ngTemplateOutlet=\"row.cell?.template ?? defaultCell;context: { $implicit: data$ | dataGridValue: row.name | async, data: data$ | async }\"></ng-container>\n </ng-template>\n <ng-template #editMode>\n <ng-container\n *ngTemplateOutlet=\"row.editCell?.template ?? row.cell?.template ?? defaultCell;context: { $implicit: data$ | dataGridValue: row.name | async, data: data$ | async }\"></ng-container>\n </ng-template>\n </ng-template>\n </ng-template>\n </tbody>\n <tfoot *ngIf=\"hasAnyEditCells\">\n <tr>\n <td colspan=\"2\">\n <ng-template [ngIfElse]=\"viewModeButton\" [ngIf]=\"isEditMode\">\n <div class=\"pt-8 flex flex-col gap-y-6\">\n <div class=\"flex flex-row gap-x-6 items-center justify-start\">\n <button (click)=\"submit()\" [disabled]=\"loading$ | async\" color=\"primary\" mat-raised-button type=\"button\">\n <span class=\"flex flex-row gap-x-6 items-center justify-center\">\n <span i18n>Save</span>\n <mat-spinner *ngIf=\"loading$ | async\" color=\"accent\" diameter=\"15\"></mat-spinner>\n </span>\n </button>\n <button (click)=\"reset()\" [disabled]=\"loading$ | async\" mat-stroked-button type=\"button\">\n <ng-container i18n>Reset</ng-container>\n </button>\n <button (click)=\"cancel()\" [disabled]=\"loading$ | async\" color=\"warn\" mat-stroked-button type=\"button\">\n <ng-container i18n>Cancel</ng-container>\n </button>\n <button (click)=\"logCurrentFormState()\" *ngIf=\"isDevMode\" mat-button type=\"button\">\n <ng-container i18n>Current Form State</ng-container>\n </button>\n </div>\n\n <ng-template rxapFormSubmitInvalid>\n <mat-error i18n>Ensure all formula fields are valid.</mat-error>\n </ng-template>\n\n <ng-template let-error rxapFormSubmitFailed>\n <mat-error>{{ error.message }}</mat-error>\n </ng-template>\n\n <ng-template rxapFormSubmitSuccessful>\n <span i18n>Submit successfully.</span>\n </ng-template>\n\n </div>\n </ng-template>\n <ng-template #viewModeButton>\n <div class=\"pt-8\">\n <button (click)=\"enableEditMode()\" color=\"primary\" mat-raised-button type=\"button\">\n <span class=\"flex flex-row gap-x-6 items-center justify-center\">\n <span i18n>Edit</span>\n <mat-spinner *ngIf=\"loading$ | async\" color=\"accent\" diameter=\"15\"></mat-spinner>\n </span>\n </button>\n </div>\n </ng-template>\n </td>\n </tr>\n </tfoot>\n</table>\n\n<ng-template #defaultCell let-value>\n <span>{{ value }}</span>\n</ng-template>\n<ng-template #defaultHeaderCell let-name>\n <th>{{ name }}</th>\n</ng-template>\n", styles: [":host ::ng-deep th{text-align:right;width:auto}\n"], dependencies: [{ kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i3.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "ngmodule", type: RxapFormsModule }, { kind: "directive", type: i2.FormSubmitFailedDirective, selector: "[rxapFormSubmitFailed]" }, { kind: "directive", type: i2.FormSubmitSuccessfulDirective, selector: "[rxapFormSubmitSuccessful]" }, { kind: "directive", type: i2.FormSubmitInvalidDirective, selector: "[rxapFormSubmitInvalid]" }, { kind: "pipe", type: DataGridValuePipe, name: "dataGridValue" }, { kind: "ngmodule", type: MatProgressSpinnerModule }, { kind: "component", type: i4.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }, { kind: "ngmodule", type: MatDividerModule }, { kind: "component", type: i5.MatDivider, selector: "mat-divider", inputs: ["vertical", "inset"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "directive", type: i6.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
138
346
  }
139
- __decorate([
140
- Required,
141
- __metadata("design:type", Object)
142
- ], DataGridReadonlyComponent.prototype, "data", void 0);
143
- __decorate([
144
- Required,
145
- __metadata("design:type", QueryList)
146
- ], DataGridReadonlyComponent.prototype, "rows", void 0);
147
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: DataGridReadonlyComponent, decorators: [{
347
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: DataGridComponent, decorators: [{
148
348
  type: Component,
149
- args: [{ selector: 'rxap-data-grid-readonly', changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'rxap-data-grid-readonly' }, template: "<table>\n <thead *ngIf=\"header\">\n <tr>\n <th>Label</th>\n <th>Wert</th>\n </tr>\n </thead>\n <tr *ngFor=\"let row of rows\">\n <ng-container\n *ngTemplateOutlet=\"\n row.headerCell ? row.headerCell.template : defaultHeaderCell;\n context: { $implicit: row.name }\n \"\n ></ng-container>\n <ng-container\n *ngTemplateOutlet=\"\n row.cell ? row.cell.template : defaultCell;\n context: { $implicit: data | getFromObject: row.name, data: data }\n \"\n ></ng-container>\n </tr>\n</table>\n\n<ng-template #defaultCell let-value>\n <td>{{ value }}</td>\n</ng-template>\n<ng-template #defaultHeaderCell let-name>\n <th>{{ name }}</th>\n</ng-template>\n" }]
150
- }], propDecorators: { header: [{
349
+ args: [{ selector: 'rxap-data-grid', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [
350
+ AsyncPipe,
351
+ NgIf,
352
+ NgFor,
353
+ MatButtonModule,
354
+ MatIconModule,
355
+ GetFromObjectPipe,
356
+ ReplacePipe,
357
+ EscapeQuotationMarkPipe,
358
+ RxapFormsModule,
359
+ DataGridValuePipe,
360
+ MatProgressSpinnerModule,
361
+ MatDividerModule,
362
+ NgTemplateOutlet,
363
+ MatFormFieldModule,
364
+ NgClass,
365
+ ], template: "<div *ngIf=\"(hasError$ | async)\" class=\"flex flex-col items-center justify-center gap-y-8\">\n <span i18n>Something has gone wrong!</span>\n <button (click)=\"retry()\" i18n mat-stroked-button>Retry</button>\n</div>\n<div *ngIf=\"(dataLoading$ | async)\" class=\"flex flex-col items-center justify-center gap-y-8\">\n <mat-spinner></mat-spinner>\n</div>\n<!-- if the dataSource input is used. It is possible the the hasError$ or loading$ property is === EMPTY. this would\nresults in an null as output. If the === false check is used this can result into the behavior that the data grid is\nnever shown. -->\n<!-- eslint-disable-next-line @angular-eslint/template/no-negated-async -->\n<table *ngIf=\"!(hasError$ | async) && !(dataLoading$ | async)\" class=\"w-full table-auto\">\n <thead *ngIf=\"header\">\n <tr>\n <th i18n>Label</th>\n <th i18n>Value</th>\n </tr>\n </thead>\n <tbody>\n <ng-template [ngForOf]=\"rows$ | async\" let-first=\"first\" let-row ngFor>\n <ng-template [ngIf]=\"!displayProperties || row.isSubHeader || (row.name && displayProperties.includes(row.name))\">\n <!-- region horizontal view -->\n <ng-template [ngIfElse]=\"normal\" [ngIf]=\"row.flip\">\n <tr>\n <td colspan=\"2\">\n <mat-divider></mat-divider>\n </td>\n </tr>\n <tr [attr.data-name]=\"row.name + '-header'\">\n <ng-container\n *ngTemplateOutlet=\"row.headerCell?.template ?? defaultHeaderCell; context: { $implicit: row.name }\"></ng-container>\n </tr>\n <tr [attr.data-name]=\"row.name + '-value'\">\n <ng-template [ngIfThen]=\"content\" [ngIf]=\"row.name\"></ng-template>\n </tr>\n <tr>\n <td colspan=\"2\">\n <mat-divider></mat-divider>\n </td>\n </tr>\n </ng-template>\n <!-- endregion -->\n <!-- region normal view -->\n <ng-template #normal>\n <tr *ngIf=\"!first && row.isSubHeader\">\n <td colspan=\"2\">\n <mat-divider></mat-divider>\n </td>\n </tr>\n <tr [attr.data-name]=\"row.name\" [ngClass]=\"{ 'sub-header': row.isSubHeader }\">\n <ng-container\n *ngTemplateOutlet=\"row.headerCell?.template ?? defaultHeaderCell; context: { $implicit: row.name }\"></ng-container>\n <ng-template [ngIfThen]=\"content\" [ngIf]=\"row.name\"></ng-template>\n </tr>\n </ng-template>\n <!-- endregion -->\n </ng-template>\n <ng-template #content>\n <td [attr.colspan]=\"row.flip ? 2 : 1\" [ngClass]=\"{\n 'h-20': row.editCell?.template && (isEditMode || isFormMode),\n }\" class=\"pl-8 pr-4 w-full\">\n <ng-template [ngIfThen]=\"editMode\" [ngIf]=\"row.editCell?.template && (isEditMode || isFormMode)\"></ng-template>\n <ng-template [ngIfThen]=\"viewMode\" [ngIf]=\"!row.editCell?.template || !isEditMode || !isFormMode\"></ng-template>\n </td>\n <ng-template #viewMode>\n <ng-container\n *ngTemplateOutlet=\"row.cell?.template ?? defaultCell;context: { $implicit: data$ | dataGridValue: row.name | async, data: data$ | async }\"></ng-container>\n </ng-template>\n <ng-template #editMode>\n <ng-container\n *ngTemplateOutlet=\"row.editCell?.template ?? row.cell?.template ?? defaultCell;context: { $implicit: data$ | dataGridValue: row.name | async, data: data$ | async }\"></ng-container>\n </ng-template>\n </ng-template>\n </ng-template>\n </tbody>\n <tfoot *ngIf=\"hasAnyEditCells\">\n <tr>\n <td colspan=\"2\">\n <ng-template [ngIfElse]=\"viewModeButton\" [ngIf]=\"isEditMode\">\n <div class=\"pt-8 flex flex-col gap-y-6\">\n <div class=\"flex flex-row gap-x-6 items-center justify-start\">\n <button (click)=\"submit()\" [disabled]=\"loading$ | async\" color=\"primary\" mat-raised-button type=\"button\">\n <span class=\"flex flex-row gap-x-6 items-center justify-center\">\n <span i18n>Save</span>\n <mat-spinner *ngIf=\"loading$ | async\" color=\"accent\" diameter=\"15\"></mat-spinner>\n </span>\n </button>\n <button (click)=\"reset()\" [disabled]=\"loading$ | async\" mat-stroked-button type=\"button\">\n <ng-container i18n>Reset</ng-container>\n </button>\n <button (click)=\"cancel()\" [disabled]=\"loading$ | async\" color=\"warn\" mat-stroked-button type=\"button\">\n <ng-container i18n>Cancel</ng-container>\n </button>\n <button (click)=\"logCurrentFormState()\" *ngIf=\"isDevMode\" mat-button type=\"button\">\n <ng-container i18n>Current Form State</ng-container>\n </button>\n </div>\n\n <ng-template rxapFormSubmitInvalid>\n <mat-error i18n>Ensure all formula fields are valid.</mat-error>\n </ng-template>\n\n <ng-template let-error rxapFormSubmitFailed>\n <mat-error>{{ error.message }}</mat-error>\n </ng-template>\n\n <ng-template rxapFormSubmitSuccessful>\n <span i18n>Submit successfully.</span>\n </ng-template>\n\n </div>\n </ng-template>\n <ng-template #viewModeButton>\n <div class=\"pt-8\">\n <button (click)=\"enableEditMode()\" color=\"primary\" mat-raised-button type=\"button\">\n <span class=\"flex flex-row gap-x-6 items-center justify-center\">\n <span i18n>Edit</span>\n <mat-spinner *ngIf=\"loading$ | async\" color=\"accent\" diameter=\"15\"></mat-spinner>\n </span>\n </button>\n </div>\n </ng-template>\n </td>\n </tr>\n </tfoot>\n</table>\n\n<ng-template #defaultCell let-value>\n <span>{{ value }}</span>\n</ng-template>\n<ng-template #defaultHeaderCell let-name>\n <th>{{ name }}</th>\n</ng-template>\n", styles: [":host ::ng-deep th{text-align:right;width:auto}\n"] }]
366
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i1.Router }, { type: i2.FormDirective, decorators: [{
367
+ type: Optional
368
+ }] }]; }, propDecorators: { header: [{
369
+ type: Input
370
+ }], dataSource: [{
371
+ type: Input
372
+ }], viewer: [{
151
373
  type: Input
152
374
  }], data: [{
153
375
  type: Input
376
+ }], displayProperties: [{
377
+ type: Input
154
378
  }], rows: [{
155
379
  type: ContentChildren,
156
380
  args: [DataGridRowDefDirective]
381
+ }], editModeChange: [{
382
+ type: Output
383
+ }], mode: [{
384
+ type: Input
157
385
  }] } });
158
386
 
159
- class DataGridReadonlyComponentModule {
160
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: DataGridReadonlyComponentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
161
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.2", ngImport: i0, type: DataGridReadonlyComponentModule, declarations: [DataGridReadonlyComponent], imports: [GetFromObjectPipeModule,
162
- CommonModule], exports: [DataGridReadonlyComponent,
163
- DataGridModule] }); }
164
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: DataGridReadonlyComponentModule, imports: [GetFromObjectPipeModule,
165
- CommonModule, DataGridModule] }); }
387
+ class DataGridModule {
388
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: DataGridModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
389
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.4", ngImport: i0, type: DataGridModule, imports: [DataGridComponent,
390
+ DataGridRowDefDirective,
391
+ DataGridHeaderCellDefDirective,
392
+ DataGridCellDefDirective,
393
+ DataGridEditCellDefDirective], exports: [DataGridComponent,
394
+ DataGridRowDefDirective,
395
+ DataGridHeaderCellDefDirective,
396
+ DataGridCellDefDirective,
397
+ DataGridEditCellDefDirective] }); }
398
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: DataGridModule, imports: [DataGridComponent] }); }
166
399
  }
167
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: DataGridReadonlyComponentModule, decorators: [{
400
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: DataGridModule, decorators: [{
168
401
  type: NgModule,
169
402
  args: [{
170
- exports: [
171
- DataGridReadonlyComponent,
172
- DataGridModule
173
- ],
174
403
  imports: [
175
- GetFromObjectPipeModule,
176
- CommonModule
404
+ DataGridComponent,
405
+ DataGridRowDefDirective,
406
+ DataGridHeaderCellDefDirective,
407
+ DataGridCellDefDirective,
408
+ DataGridEditCellDefDirective,
409
+ ],
410
+ exports: [
411
+ DataGridComponent,
412
+ DataGridRowDefDirective,
413
+ DataGridHeaderCellDefDirective,
414
+ DataGridCellDefDirective,
415
+ DataGridEditCellDefDirective,
177
416
  ],
178
- declarations: [
179
- DataGridReadonlyComponent
180
- ]
181
417
  }]
182
418
  }] });
183
419
 
@@ -185,5 +421,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImpor
185
421
  * Generated bundle index. Do not edit.
186
422
  */
187
423
 
188
- export { DataGridCellDefDirective, DataGridEditCellDefDirective, DataGridHeaderCellDefDirective, DataGridModule, DataGridReadonlyComponent, DataGridReadonlyComponentModule, DataGridRowDefDirective };
424
+ export { DataGridCellDefDirective, DataGridComponent, DataGridEditCellDefDirective, DataGridHeaderCellDefDirective, DataGridMode, DataGridModule, DataGridRowDefDirective, DataGridValuePipe };
189
425
  //# sourceMappingURL=rxap-data-grid.mjs.map