@rxap/data-grid 16.0.0-dev.2 → 16.0.0-dev.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.
@@ -1,9 +1,28 @@
1
1
  import * as i0 from '@angular/core';
2
- import { TemplateRef, Directive, Inject, Input, ContentChild, QueryList, Component, ChangeDetectionStrategy, ContentChildren } from '@angular/core';
2
+ import { TemplateRef, Directive, Inject, Input, ContentChild, Pipe, isDevMode, EventEmitter, QueryList, Component, ChangeDetectionStrategy, ViewEncapsulation, Optional, ContentChildren, Output, NgModule } from '@angular/core';
3
+ import { getFromObject, clone, Required } from '@rxap/utilities';
4
+ import { map, filter, tap, shareReplay, take } from 'rxjs/operators';
3
5
  import { __decorate, __metadata } from 'tslib';
4
- import { Required } from '@rxap/utilities';
5
- import { GetFromObjectPipe } from '@rxap/pipes';
6
- import { NgIf, NgFor, NgTemplateOutlet } from '@angular/common';
6
+ import * as i1 from '@angular/router';
7
+ import { ActivationEnd } from '@angular/router';
8
+ import * as i2 from '@rxap/forms';
9
+ import { RxapFormsModule } from '@rxap/forms';
10
+ import { ToggleSubject } from '@rxap/rxjs';
11
+ import { EMPTY, BehaviorSubject, merge, of, debounceTime, combineLatest } from 'rxjs';
12
+ import * as i3 from '@angular/material/button';
13
+ import { MatButtonModule } from '@angular/material/button';
14
+ import { MatIconModule } from '@angular/material/icon';
15
+ import { GetFromObjectPipe, ReplacePipe, EscapeQuotationMarkPipe } from '@rxap/pipes';
16
+ import * as i4 from '@angular/material/progress-spinner';
17
+ import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
18
+ import { FlexLayoutModule } from '@angular/flex-layout';
19
+ import * as i7 from '@angular/material/divider';
20
+ import { MatDividerModule } from '@angular/material/divider';
21
+ import { AsyncPipe, NgIf, NgFor, NgTemplateOutlet } from '@angular/common';
22
+ import * as i8 from '@angular/material/form-field';
23
+ import { MatFormFieldModule } from '@angular/material/form-field';
24
+ import * as i5 from '@angular/flex-layout/flex';
25
+ import * as i6 from '@angular/flex-layout/extended';
7
26
 
8
27
  class DataGridCellDefDirective {
9
28
  static ngTemplateContextGuard(dir, ctx) {
@@ -12,14 +31,14 @@ class DataGridCellDefDirective {
12
31
  constructor(template) {
13
32
  this.template = template;
14
33
  }
15
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: DataGridCellDefDirective, deps: [{ token: TemplateRef }], target: i0.ɵɵFactoryTarget.Directive }); }
16
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.2", type: DataGridCellDefDirective, isStandalone: true, selector: "[rxapDataGridCellDef]", ngImport: i0 }); }
34
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: DataGridCellDefDirective, deps: [{ token: TemplateRef }], target: i0.ɵɵFactoryTarget.Directive }); }
35
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.4", type: DataGridCellDefDirective, isStandalone: true, selector: "[rxapDataGridCellDef]", ngImport: i0 }); }
17
36
  }
18
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: DataGridCellDefDirective, decorators: [{
37
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: DataGridCellDefDirective, decorators: [{
19
38
  type: Directive,
20
39
  args: [{
21
40
  selector: '[rxapDataGridCellDef]',
22
- standalone: true
41
+ standalone: true,
23
42
  }]
24
43
  }], ctorParameters: function () { return [{ type: i0.TemplateRef, decorators: [{
25
44
  type: Inject,
@@ -33,14 +52,14 @@ class DataGridHeaderCellDefDirective {
33
52
  constructor(template) {
34
53
  this.template = template;
35
54
  }
36
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: DataGridHeaderCellDefDirective, deps: [{ token: TemplateRef }], target: i0.ɵɵFactoryTarget.Directive }); }
37
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.2", type: DataGridHeaderCellDefDirective, isStandalone: true, selector: "[rxapDataGridHeaderCellDef]", ngImport: i0 }); }
55
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: DataGridHeaderCellDefDirective, deps: [{ token: TemplateRef }], target: i0.ɵɵFactoryTarget.Directive }); }
56
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.4", type: DataGridHeaderCellDefDirective, isStandalone: true, selector: "[rxapDataGridHeaderCellDef]", ngImport: i0 }); }
38
57
  }
39
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: DataGridHeaderCellDefDirective, decorators: [{
58
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: DataGridHeaderCellDefDirective, decorators: [{
40
59
  type: Directive,
41
60
  args: [{
42
61
  selector: '[rxapDataGridHeaderCellDef]',
43
- standalone: true
62
+ standalone: true,
44
63
  }]
45
64
  }], ctorParameters: function () { return [{ type: i0.TemplateRef, decorators: [{
46
65
  type: Inject,
@@ -54,14 +73,14 @@ class DataGridEditCellDefDirective {
54
73
  constructor(template) {
55
74
  this.template = template;
56
75
  }
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, isStandalone: true, selector: "[rxapDataGridEditCellDef]", ngImport: i0 }); }
76
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: DataGridEditCellDefDirective, deps: [{ token: TemplateRef }], target: i0.ɵɵFactoryTarget.Directive }); }
77
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.4", type: DataGridEditCellDefDirective, isStandalone: true, selector: "[rxapDataGridEditCellDef]", ngImport: i0 }); }
59
78
  }
60
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: DataGridEditCellDefDirective, decorators: [{
79
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: DataGridEditCellDefDirective, decorators: [{
61
80
  type: Directive,
62
81
  args: [{
63
82
  selector: '[rxapDataGridEditCellDef]',
64
- standalone: true
83
+ standalone: true,
65
84
  }]
66
85
  }], ctorParameters: function () { return [{ type: i0.TemplateRef, decorators: [{
67
86
  type: Inject,
@@ -71,26 +90,43 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImpor
71
90
  class DataGridRowDefDirective {
72
91
  constructor() {
73
92
  this.data = null;
93
+ /**
94
+ * true - the header and content cell are "rotated" by 90°. The header is above the content cell and both have a
95
+ * colspan
96
+ *
97
+ * **flip: false**
98
+ * Label | Value
99
+ * --- | ---
100
+ * Header | Content
101
+ *
102
+ * **flip: true**
103
+ * Label | Value
104
+ * --- | ---
105
+ * Header (colspan 2)
106
+ * Content (colspan 2)
107
+ *
108
+ */
109
+ this.flip = false;
74
110
  }
75
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: DataGridRowDefDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
76
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.0.2", type: DataGridRowDefDirective, isStandalone: true, 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 }); }
111
+ get isSubHeader() {
112
+ return !this.name;
113
+ }
114
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: DataGridRowDefDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
115
+ 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 }); }
77
116
  }
78
- __decorate([
79
- Required,
80
- __metadata("design:type", String)
81
- ], DataGridRowDefDirective.prototype, "name", void 0);
82
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: DataGridRowDefDirective, decorators: [{
117
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: DataGridRowDefDirective, decorators: [{
83
118
  type: Directive,
84
119
  args: [{
85
- // tslint:disable-next-line:directive-selector
86
120
  selector: '[rxapDataGridRowDef]',
87
- standalone: true
121
+ standalone: true,
88
122
  }]
89
123
  }], propDecorators: { data: [{
90
124
  type: Input
91
125
  }], name: [{
92
126
  type: Input,
93
127
  args: ['rxapDataGridRowDef']
128
+ }], flip: [{
129
+ type: Input
94
130
  }], cell: [{
95
131
  type: ContentChild,
96
132
  args: [DataGridCellDefDirective]
@@ -102,36 +138,296 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImpor
102
138
  args: [DataGridEditCellDefDirective]
103
139
  }] } });
104
140
 
105
- class DataGridReadonlyComponent {
106
- constructor() {
107
- this.header = true;
141
+ class DataGridValuePipe {
142
+ transform(data, path) {
143
+ if (!path) {
144
+ throw new Error('FATAL: The path is required! Ensure the data grid row has a defined name property!');
145
+ }
146
+ return data.pipe(map(source => getFromObject(source, path)));
108
147
  }
109
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: DataGridReadonlyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
110
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.2", type: DataGridReadonlyComponent, isStandalone: true, 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: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "pipe", type: GetFromObjectPipe, name: "getFromObject" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
148
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: DataGridValuePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
149
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.1.4", ngImport: i0, type: DataGridValuePipe, isStandalone: true, name: "dataGridValue" }); }
150
+ }
151
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: DataGridValuePipe, decorators: [{
152
+ type: Pipe,
153
+ args: [{
154
+ name: 'dataGridValue',
155
+ standalone: true,
156
+ }]
157
+ }] });
158
+
159
+ var DataGridMode;
160
+ (function (DataGridMode) {
161
+ /**
162
+ * The view cell template is used to display the property value
163
+ */
164
+ DataGridMode["PLAIN"] = "plain";
165
+ /**
166
+ * The edit cell template is used to display the property value, but the form and all controls are marked as disabled
167
+ */
168
+ DataGridMode["FORM"] = "form";
169
+ })(DataGridMode || (DataGridMode = {}));
170
+ function IsDataGridMode(value) {
171
+ return [DataGridMode.PLAIN, DataGridMode.FORM].includes(value);
172
+ }
173
+ class DataGridComponent {
174
+ constructor(cdr, router, formDirective) {
175
+ this.cdr = cdr;
176
+ this.router = router;
177
+ this.formDirective = formDirective;
178
+ this.isDevMode = isDevMode();
179
+ this.header = false;
180
+ this.viewer = this;
181
+ this.displayProperties = null;
182
+ this.editModeChange = new EventEmitter();
183
+ this.rows$ = EMPTY;
184
+ this.hasError$ = EMPTY;
185
+ this.dataLoading$ = EMPTY;
186
+ this.loading$ = new ToggleSubject();
187
+ this._editMode$ = new BehaviorSubject(false);
188
+ this._mode$ = new BehaviorSubject(DataGridMode.PLAIN);
189
+ this._routerEventSubscription = null;
190
+ this.isEditMode$ = this._editMode$.asObservable();
191
+ this.mode$ = this._mode$.asObservable();
192
+ this.isFormMode$ = this.mode$.pipe(map(mode => mode === DataGridMode.FORM));
193
+ this.isPlainMode$ = this.mode$.pipe(map(mode => mode === DataGridMode.PLAIN));
194
+ }
195
+ set mode(value) {
196
+ if (IsDataGridMode(value)) {
197
+ this._mode$.next(value);
198
+ }
199
+ else {
200
+ throw new Error(`The data grid mode only support 'plain' and 'form' - given '${value}'`);
201
+ }
202
+ }
203
+ get isFormMode() {
204
+ return this._mode$.value === DataGridMode.FORM;
205
+ }
206
+ get hasAnyEditCells() {
207
+ return this.rows.some(row => !!row.editCell);
208
+ }
209
+ get isEditMode() {
210
+ return this._editMode$.value;
211
+ }
212
+ set editMode(value) {
213
+ this._editMode$.next(value);
214
+ }
215
+ /**
216
+ * @deprecated use the loading$ property instead
217
+ */
218
+ get loading() {
219
+ return this.loading$.value;
220
+ }
221
+ ngAfterContentInit() {
222
+ this.rows$ = merge(of(this.rows), this.rows.changes);
223
+ }
224
+ logCurrentFormState() {
225
+ console.log(clone(this.formDirective?.form.value));
226
+ }
227
+ ngOnInit() {
228
+ // resets the edit mode if this component is used in a sibling router path
229
+ // if not reset the edit mode is president after the route changes
230
+ this._routerEventSubscription = this.router.events.pipe(filter(event => event instanceof ActivationEnd), tap(() => this.disableEditMode())).subscribe();
231
+ if (this.dataSource && this.data) {
232
+ throw new Error('You can not use both dataSource and data input');
233
+ }
234
+ let data$ = EMPTY;
235
+ if (this.dataSource) {
236
+ data$ = this.dataSource.connect(this.viewer);
237
+ }
238
+ if (this.data) {
239
+ data$ = of(this.data);
240
+ }
241
+ if (data$ === EMPTY && isDevMode()) {
242
+ console.warn('No data source or data input provided');
243
+ }
244
+ this.data$ = data$.pipe(debounceTime(100), tap(data => this.data = data), tap(data => {
245
+ if (this.formDirective) {
246
+ this.formDirective.form.patchValue(data, {
247
+ coerce: true,
248
+ strict: true,
249
+ });
250
+ if (this.isFormMode) {
251
+ this.formDirective.form.disable();
252
+ }
253
+ }
254
+ }), shareReplay(1));
255
+ if (this.dataSource) {
256
+ this.hasError$ = this.dataSource.hasError$;
257
+ this.dataLoading$ = this.dataSource.loading$;
258
+ }
259
+ else {
260
+ this.hasError$ = of(false);
261
+ this.dataLoading$ = of(false);
262
+ }
263
+ if (this.formDirective && this.isFormMode) {
264
+ this.formDirective.form.disabledWhile(combineLatest([
265
+ this._editMode$,
266
+ this._mode$,
267
+ ]).pipe(map(([editMode, mode]) => !editMode && mode === 'form')), { onlySelf: false });
268
+ }
269
+ }
270
+ ngOnDestroy() {
271
+ this.dataSource?.disconnect(this.viewer);
272
+ this._routerEventSubscription?.unsubscribe();
273
+ }
274
+ enableEditMode() {
275
+ if (!this.formDirective) {
276
+ if (isDevMode()) {
277
+ console.warn('Can not enable edit mode without a form directive');
278
+ }
279
+ return;
280
+ }
281
+ this.editMode = true;
282
+ if (this.data) {
283
+ this.formDirective.form.patchValue(this.data, {
284
+ coerce: true,
285
+ strict: true,
286
+ });
287
+ }
288
+ }
289
+ disableEditMode() {
290
+ if (!this.formDirective) {
291
+ if (isDevMode()) {
292
+ console.warn('Can not enable edit mode without a form directive');
293
+ }
294
+ return;
295
+ }
296
+ this.editMode = false;
297
+ }
298
+ submit() {
299
+ if (!this.formDirective) {
300
+ if (isDevMode()) {
301
+ console.warn('Can not support without a form directive');
302
+ }
303
+ return;
304
+ }
305
+ this.loading$.enable();
306
+ this.formDirective.form.markAllAsDirty();
307
+ this.formDirective.form.markAllAsTouched();
308
+ this.formDirective.cdr.markForCheck();
309
+ this.formDirective.rxapSubmit.pipe(take(1), tap(() => {
310
+ this.disableEditMode();
311
+ })).subscribe();
312
+ this.formDirective.invalidSubmit.pipe(take(1), tap(() => {
313
+ this.loading$.disable();
314
+ })).subscribe();
315
+ this.formDirective.submitError$.pipe(filter(Boolean), // if the error is undefined we do not want to disable the loading
316
+ take(1), tap(() => {
317
+ this.loading$.disable();
318
+ })).subscribe();
319
+ this.formDirective.submitSuccessful$.pipe(take(1), tap(() => {
320
+ this.loading$.disable();
321
+ this.refresh();
322
+ })).subscribe();
323
+ this.formDirective.onSubmit(new Event('submit'));
324
+ }
325
+ reset() {
326
+ if (this.formDirective && this.data) {
327
+ this.formDirective.form.patchValue(this.data, {
328
+ coerce: true,
329
+ strict: true,
330
+ });
331
+ }
332
+ }
333
+ refresh() {
334
+ if (this.dataSource) {
335
+ this.dataSource.refresh();
336
+ }
337
+ else if (isDevMode()) {
338
+ console.warn('can not refresh the data. data source is not defined');
339
+ }
340
+ }
341
+ cancel() {
342
+ this.reset();
343
+ this.disableEditMode();
344
+ }
345
+ retry() {
346
+ this.refresh();
347
+ }
348
+ 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 }); }
349
+ 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=\"info-container\" fxLayout=\"column\" fxLayoutAlign=\"center center\"\n fxLayoutGap=\"32px\">\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=\"info-container\" fxLayout=\"column\" fxLayoutAlign=\"center center\"\n fxLayoutGap=\"32px\">\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=\"data-grid\">\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 <ng-template [ngIfElse]=\"normal\" [ngIf]=\"row.flip\">\n <tr>\n <td class=\"divider\" colspan=\"2\">\n <mat-divider></mat-divider>\n </td>\n </tr>\n <tr [attr.data-name]=\"row.name + '-header'\">\n <ng-container\n *ngTemplateOutlet=\"\n row.headerCell?.template ?? defaultHeaderCell;\n context: { $implicit: row.name }\n \"\n >\n </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 class=\"divider\" colspan=\"2\">\n <mat-divider></mat-divider>\n </td>\n </tr>\n </ng-template>\n <ng-template #normal>\n <tr *ngIf=\"!first && row.isSubHeader\">\n <td class=\"divider\" 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=\"\n row.headerCell?.template ?? defaultHeaderCell;\n context: { $implicit: row.name }\n \"\n >\n </ng-container>\n <ng-template [ngIfThen]=\"content\" [ngIf]=\"row.name\"></ng-template>\n </tr>\n </ng-template>\n </ng-template>\n <ng-template #content>\n <ng-template [ngIfElse]=\"readonlyCell\" [ngIfThen]=\"writeCell\" [ngIf]=\"row.editCell?.template\"></ng-template>\n <ng-template #writeCell>\n <ng-template #viewMode>\n <td [attr.colspan]=\"row.flip ? 2 : 1\" class=\"value\">\n <div>\n <ng-container\n *ngTemplateOutlet=\"\n row.cell?.template ?? defaultCell;\n context: { $implicit: data$ | dataGridValue: row.name | async, data: data$ | async }\n \"\n ></ng-container>\n </div>\n </td>\n </ng-template>\n <ng-template #editMode>\n <td [attr.colspan]=\"row.flip ? 2 : 1\" class=\"edit\">\n <div>\n <ng-container\n *ngTemplateOutlet=\"\n row.editCell?.template ?? row.cell?.template ?? defaultCell;\n context: { $implicit: data$ | dataGridValue: row.name | async, data: data$ | async }\n \"\n ></ng-container>\n </div>\n </td>\n </ng-template>\n <ng-template [ngIfElse]=\"viewMode\" [ngIfThen]=\"editMode\" [ngIf]=\"isEditMode || isFormMode\"></ng-template>\n </ng-template>\n <ng-template #readonlyCell>\n <td [attr.colspan]=\"row.flip ? 2 : 1\" class=\"value\">\n <div>\n <ng-container\n *ngTemplateOutlet=\"\n row.cell?.template ?? defaultCell;\n context: { $implicit: data$ | dataGridValue: row.name | async, data: data$ | async }\n \"\n ></ng-container>\n </div>\n </td>\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 fxLayout=\"column\" fxLayoutGap=\"24px\">\n <div fxLayout=\"row\" fxLayoutAlign=\"start center\" fxLayoutGap=\"24px\">\n <button (click)=\"submit()\" [disabled]=\"loading$ | async\" class=\"control-button\" color=\"primary\"\n mat-raised-button type=\"button\">\n <span fxLayout=\"row\" fxLayoutAlign=\"center center\" fxLayoutGap=\"24px\">\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\" class=\"control-button\" mat-stroked-button\n type=\"button\">\n <ng-container i18n>Reset</ng-container>\n </button>\n <button (click)=\"cancel()\" [disabled]=\"loading$ | async\" class=\"control-button\" color=\"warn\"\n mat-stroked-button type=\"button\">\n <ng-container i18n>Cancel</ng-container>\n </button>\n <button (click)=\"logCurrentFormState()\" *ngIf=\"isDevMode\" class=\"control-button\" mat-button\n type=\"button\">Current Form State\n </button>\n </div>\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 </div>\n </ng-template>\n <ng-template #viewModeButton>\n <button (click)=\"enableEditMode()\" class=\"control-button\" color=\"primary\" mat-raised-button type=\"button\">\n <span fxLayout=\"row\" fxLayoutAlign=\"center center\" fxLayoutGap=\"24px\">\n <span i18n>Edit</span>\n <mat-spinner *ngIf=\"loading$ | async\" color=\"accent\" diameter=\"15\"></mat-spinner>\n </span>\n </button>\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: [".info-container{padding:64px}.rxap-data-grid table.data-grid{border:0}.rxap-data-grid table.data-grid thead{padding-bottom:16px}.rxap-data-grid table.data-grid thead tr th{border-spacing:32px 16px}.rxap-data-grid table.data-grid tfoot .control-button{margin-top:24px;min-width:128px}.rxap-data-grid table.data-grid th{text-align:right;padding-right:24px}.rxap-data-grid table.data-grid tbody tr>th.sub-header{padding-bottom:12px;padding-right:24px;text-align:right}.rxap-data-grid table.data-grid tbody tr>th:first-child{text-align:right;font-weight:bolder;padding-right:24px}.rxap-data-grid table.data-grid tbody td.divider{padding:4px 0}\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: FlexLayoutModule }, { kind: "directive", type: i5.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "directive", type: i5.DefaultLayoutGapDirective, selector: " [fxLayoutGap], [fxLayoutGap.xs], [fxLayoutGap.sm], [fxLayoutGap.md], [fxLayoutGap.lg], [fxLayoutGap.xl], [fxLayoutGap.lt-sm], [fxLayoutGap.lt-md], [fxLayoutGap.lt-lg], [fxLayoutGap.lt-xl], [fxLayoutGap.gt-xs], [fxLayoutGap.gt-sm], [fxLayoutGap.gt-md], [fxLayoutGap.gt-lg]", inputs: ["fxLayoutGap", "fxLayoutGap.xs", "fxLayoutGap.sm", "fxLayoutGap.md", "fxLayoutGap.lg", "fxLayoutGap.xl", "fxLayoutGap.lt-sm", "fxLayoutGap.lt-md", "fxLayoutGap.lt-lg", "fxLayoutGap.lt-xl", "fxLayoutGap.gt-xs", "fxLayoutGap.gt-sm", "fxLayoutGap.gt-md", "fxLayoutGap.gt-lg"] }, { kind: "directive", type: i5.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { kind: "directive", type: i6.DefaultClassDirective, selector: " [ngClass], [ngClass.xs], [ngClass.sm], [ngClass.md], [ngClass.lg], [ngClass.xl], [ngClass.lt-sm], [ngClass.lt-md], [ngClass.lt-lg], [ngClass.lt-xl], [ngClass.gt-xs], [ngClass.gt-sm], [ngClass.gt-md], [ngClass.gt-lg]", inputs: ["ngClass", "ngClass.xs", "ngClass.sm", "ngClass.md", "ngClass.lg", "ngClass.xl", "ngClass.lt-sm", "ngClass.lt-md", "ngClass.lt-lg", "ngClass.lt-xl", "ngClass.gt-xs", "ngClass.gt-sm", "ngClass.gt-md", "ngClass.gt-lg"] }, { kind: "ngmodule", type: MatDividerModule }, { kind: "component", type: i7.MatDivider, selector: "mat-divider", inputs: ["vertical", "inset"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "directive", type: i8.MatError, selector: "mat-error, [matError]", inputs: ["id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
111
350
  }
112
- __decorate([
113
- Required,
114
- __metadata("design:type", Object)
115
- ], DataGridReadonlyComponent.prototype, "data", void 0);
116
351
  __decorate([
117
352
  Required,
118
353
  __metadata("design:type", QueryList)
119
- ], DataGridReadonlyComponent.prototype, "rows", void 0);
120
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: DataGridReadonlyComponent, decorators: [{
354
+ ], DataGridComponent.prototype, "rows", void 0);
355
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: DataGridComponent, decorators: [{
121
356
  type: Component,
122
- args: [{ selector: 'rxap-data-grid-readonly', changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'rxap-data-grid-readonly' }, standalone: true, imports: [NgIf, NgFor, NgTemplateOutlet, GetFromObjectPipe], 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" }]
123
- }], propDecorators: { header: [{
357
+ args: [{ selector: 'rxap-data-grid', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, standalone: true, imports: [
358
+ AsyncPipe,
359
+ NgIf,
360
+ NgFor,
361
+ MatButtonModule,
362
+ MatIconModule,
363
+ GetFromObjectPipe,
364
+ ReplacePipe,
365
+ EscapeQuotationMarkPipe,
366
+ RxapFormsModule,
367
+ DataGridValuePipe,
368
+ MatProgressSpinnerModule,
369
+ FlexLayoutModule,
370
+ MatDividerModule,
371
+ NgTemplateOutlet,
372
+ MatFormFieldModule,
373
+ ], template: "<div *ngIf=\"(hasError$ | async)\" class=\"info-container\" fxLayout=\"column\" fxLayoutAlign=\"center center\"\n fxLayoutGap=\"32px\">\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=\"info-container\" fxLayout=\"column\" fxLayoutAlign=\"center center\"\n fxLayoutGap=\"32px\">\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=\"data-grid\">\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 <ng-template [ngIfElse]=\"normal\" [ngIf]=\"row.flip\">\n <tr>\n <td class=\"divider\" colspan=\"2\">\n <mat-divider></mat-divider>\n </td>\n </tr>\n <tr [attr.data-name]=\"row.name + '-header'\">\n <ng-container\n *ngTemplateOutlet=\"\n row.headerCell?.template ?? defaultHeaderCell;\n context: { $implicit: row.name }\n \"\n >\n </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 class=\"divider\" colspan=\"2\">\n <mat-divider></mat-divider>\n </td>\n </tr>\n </ng-template>\n <ng-template #normal>\n <tr *ngIf=\"!first && row.isSubHeader\">\n <td class=\"divider\" 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=\"\n row.headerCell?.template ?? defaultHeaderCell;\n context: { $implicit: row.name }\n \"\n >\n </ng-container>\n <ng-template [ngIfThen]=\"content\" [ngIf]=\"row.name\"></ng-template>\n </tr>\n </ng-template>\n </ng-template>\n <ng-template #content>\n <ng-template [ngIfElse]=\"readonlyCell\" [ngIfThen]=\"writeCell\" [ngIf]=\"row.editCell?.template\"></ng-template>\n <ng-template #writeCell>\n <ng-template #viewMode>\n <td [attr.colspan]=\"row.flip ? 2 : 1\" class=\"value\">\n <div>\n <ng-container\n *ngTemplateOutlet=\"\n row.cell?.template ?? defaultCell;\n context: { $implicit: data$ | dataGridValue: row.name | async, data: data$ | async }\n \"\n ></ng-container>\n </div>\n </td>\n </ng-template>\n <ng-template #editMode>\n <td [attr.colspan]=\"row.flip ? 2 : 1\" class=\"edit\">\n <div>\n <ng-container\n *ngTemplateOutlet=\"\n row.editCell?.template ?? row.cell?.template ?? defaultCell;\n context: { $implicit: data$ | dataGridValue: row.name | async, data: data$ | async }\n \"\n ></ng-container>\n </div>\n </td>\n </ng-template>\n <ng-template [ngIfElse]=\"viewMode\" [ngIfThen]=\"editMode\" [ngIf]=\"isEditMode || isFormMode\"></ng-template>\n </ng-template>\n <ng-template #readonlyCell>\n <td [attr.colspan]=\"row.flip ? 2 : 1\" class=\"value\">\n <div>\n <ng-container\n *ngTemplateOutlet=\"\n row.cell?.template ?? defaultCell;\n context: { $implicit: data$ | dataGridValue: row.name | async, data: data$ | async }\n \"\n ></ng-container>\n </div>\n </td>\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 fxLayout=\"column\" fxLayoutGap=\"24px\">\n <div fxLayout=\"row\" fxLayoutAlign=\"start center\" fxLayoutGap=\"24px\">\n <button (click)=\"submit()\" [disabled]=\"loading$ | async\" class=\"control-button\" color=\"primary\"\n mat-raised-button type=\"button\">\n <span fxLayout=\"row\" fxLayoutAlign=\"center center\" fxLayoutGap=\"24px\">\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\" class=\"control-button\" mat-stroked-button\n type=\"button\">\n <ng-container i18n>Reset</ng-container>\n </button>\n <button (click)=\"cancel()\" [disabled]=\"loading$ | async\" class=\"control-button\" color=\"warn\"\n mat-stroked-button type=\"button\">\n <ng-container i18n>Cancel</ng-container>\n </button>\n <button (click)=\"logCurrentFormState()\" *ngIf=\"isDevMode\" class=\"control-button\" mat-button\n type=\"button\">Current Form State\n </button>\n </div>\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 </div>\n </ng-template>\n <ng-template #viewModeButton>\n <button (click)=\"enableEditMode()\" class=\"control-button\" color=\"primary\" mat-raised-button type=\"button\">\n <span fxLayout=\"row\" fxLayoutAlign=\"center center\" fxLayoutGap=\"24px\">\n <span i18n>Edit</span>\n <mat-spinner *ngIf=\"loading$ | async\" color=\"accent\" diameter=\"15\"></mat-spinner>\n </span>\n </button>\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: [".info-container{padding:64px}.rxap-data-grid table.data-grid{border:0}.rxap-data-grid table.data-grid thead{padding-bottom:16px}.rxap-data-grid table.data-grid thead tr th{border-spacing:32px 16px}.rxap-data-grid table.data-grid tfoot .control-button{margin-top:24px;min-width:128px}.rxap-data-grid table.data-grid th{text-align:right;padding-right:24px}.rxap-data-grid table.data-grid tbody tr>th.sub-header{padding-bottom:12px;padding-right:24px;text-align:right}.rxap-data-grid table.data-grid tbody tr>th:first-child{text-align:right;font-weight:bolder;padding-right:24px}.rxap-data-grid table.data-grid tbody td.divider{padding:4px 0}\n"] }]
374
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i1.Router }, { type: i2.FormDirective, decorators: [{
375
+ type: Optional
376
+ }] }]; }, propDecorators: { header: [{
377
+ type: Input
378
+ }], dataSource: [{
379
+ type: Input
380
+ }], viewer: [{
124
381
  type: Input
125
382
  }], data: [{
126
383
  type: Input
384
+ }], displayProperties: [{
385
+ type: Input
127
386
  }], rows: [{
128
387
  type: ContentChildren,
129
388
  args: [DataGridRowDefDirective]
389
+ }], editModeChange: [{
390
+ type: Output
391
+ }], mode: [{
392
+ type: Input
130
393
  }] } });
131
394
 
395
+ class DataGridModule {
396
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: DataGridModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
397
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.4", ngImport: i0, type: DataGridModule, imports: [DataGridComponent,
398
+ DataGridRowDefDirective,
399
+ DataGridHeaderCellDefDirective,
400
+ DataGridCellDefDirective,
401
+ DataGridEditCellDefDirective], exports: [DataGridComponent,
402
+ DataGridRowDefDirective,
403
+ DataGridHeaderCellDefDirective,
404
+ DataGridCellDefDirective,
405
+ DataGridEditCellDefDirective] }); }
406
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: DataGridModule, imports: [DataGridComponent] }); }
407
+ }
408
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: DataGridModule, decorators: [{
409
+ type: NgModule,
410
+ args: [{
411
+ imports: [
412
+ DataGridComponent,
413
+ DataGridRowDefDirective,
414
+ DataGridHeaderCellDefDirective,
415
+ DataGridCellDefDirective,
416
+ DataGridEditCellDefDirective,
417
+ ],
418
+ exports: [
419
+ DataGridComponent,
420
+ DataGridRowDefDirective,
421
+ DataGridHeaderCellDefDirective,
422
+ DataGridCellDefDirective,
423
+ DataGridEditCellDefDirective,
424
+ ],
425
+ }]
426
+ }] });
427
+
132
428
  /**
133
429
  * Generated bundle index. Do not edit.
134
430
  */
135
431
 
136
- export { DataGridCellDefDirective, DataGridEditCellDefDirective, DataGridHeaderCellDefDirective, DataGridReadonlyComponent, DataGridRowDefDirective };
432
+ export { DataGridCellDefDirective, DataGridComponent, DataGridEditCellDefDirective, DataGridHeaderCellDefDirective, DataGridMode, DataGridModule, DataGridRowDefDirective, DataGridValuePipe };
137
433
  //# sourceMappingURL=rxap-data-grid.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"rxap-data-grid.mjs","sources":["../../../../libs/data-grid/src/lib/data-grid-cell-def.directive.ts","../../../../libs/data-grid/src/lib/data-grid-header-cell-def.directive.ts","../../../../libs/data-grid/src/lib/data-grid-edit-cell-def.directive.ts","../../../../libs/data-grid/src/lib/data-grid-row-def.directive.ts","../../../../libs/data-grid/src/lib/readonly/data-grid-readonly.component.ts","../../../../libs/data-grid/src/lib/readonly/data-grid-readonly.component.html","../../../../libs/data-grid/src/rxap-data-grid.ts"],"sourcesContent":["import {\n Directive,\n TemplateRef,\n Inject\n} from '@angular/core';\n\nexport interface DataGridCellDefDirectiveContext<\n T extends Record<string, any> = Record<string, any>\n> {\n $implicit: T[keyof T];\n data: T;\n}\n\n@Directive({\n selector: '[rxapDataGridCellDef]',\n standalone: true\n})\nexport class DataGridCellDefDirective<T extends Record<string, any>> {\n public static ngTemplateContextGuard<T extends Record<string, any>>(\n dir: DataGridCellDefDirective<T>,\n ctx: any\n ): ctx is DataGridCellDefDirectiveContext<T> {\n return true;\n }\n\n $implicit!: T[keyof T];\n data!: T;\n\n constructor(\n @Inject(TemplateRef)\n public template: TemplateRef<DataGridCellDefDirectiveContext<T>>\n ) {}\n}\n","import {\n Directive,\n TemplateRef,\n Inject\n} from '@angular/core';\n\nexport interface DataGridHeaderCellDefDirectiveContext {\n $implicit: string;\n}\n\n@Directive({\n selector: '[rxapDataGridHeaderCellDef]',\n standalone: true\n})\nexport class DataGridHeaderCellDefDirective {\n public static ngTemplateContextGuard(\n dir: DataGridHeaderCellDefDirective,\n ctx: any\n ): ctx is DataGridHeaderCellDefDirectiveContext {\n return true;\n }\n\n constructor(\n @Inject(TemplateRef)\n public template: TemplateRef<DataGridHeaderCellDefDirectiveContext>\n ) {}\n}\n","import {\n Directive,\n Inject,\n TemplateRef\n} from '@angular/core';\nimport {\n FormDirective,\n RxapFormGroup\n} from '@rxap/forms';\n\nexport interface DataGridEditCellDefDirectiveContext<T extends Record<string, any> = Record<string, any>> {\n $implicit: RxapFormGroup<T>;\n formDirective: FormDirective<T>;\n}\n\n@Directive({\n selector: '[rxapDataGridEditCellDef]',\n standalone: true\n})\nexport class DataGridEditCellDefDirective<T extends Record<string, any>> {\n public static ngTemplateContextGuard<T extends Record<string, any>>(\n dir: DataGridEditCellDefDirective<T>,\n ctx: any\n ): ctx is DataGridEditCellDefDirectiveContext<T> {\n return true;\n }\n\n constructor(\n @Inject(TemplateRef)\n public template: TemplateRef<DataGridEditCellDefDirectiveContext<T>>\n ) {}\n}\n","import {\n Directive,\n Input,\n ContentChild\n} from '@angular/core';\nimport { DataGridCellDefDirective } from './data-grid-cell-def.directive';\nimport { DataGridHeaderCellDefDirective } from './data-grid-header-cell-def.directive';\nimport { Required } from '@rxap/utilities';\nimport { DataGridEditCellDefDirective } from './data-grid-edit-cell-def.directive';\n\n@Directive({\n // tslint:disable-next-line:directive-selector\n selector: '[rxapDataGridRowDef]',\n standalone: true\n})\nexport class DataGridRowDefDirective<T extends Record<string, any>> {\n\n @Input()\n public data: any | null = null;\n\n @Input('rxapDataGridRowDef')\n @Required\n public name!: string;\n\n @ContentChild(DataGridCellDefDirective)\n public cell?: DataGridCellDefDirective<T>;\n\n @ContentChild(DataGridHeaderCellDefDirective)\n public headerCell?: DataGridHeaderCellDefDirective;\n\n @ContentChild(DataGridEditCellDefDirective)\n public editCell?: DataGridEditCellDefDirective<T>;\n\n}\n","import {\n Component,\n ChangeDetectionStrategy,\n Input,\n ContentChildren,\n QueryList\n} from '@angular/core';\nimport { DataGridRowDefDirective } from '../data-grid-row-def.directive';\nimport { Required } from '@rxap/utilities';\nimport { GetFromObjectPipe } from '@rxap/pipes';\nimport {\n NgIf,\n NgFor,\n NgTemplateOutlet\n} from '@angular/common';\n\n@Component({\n // tslint:disable-next-line:component-selector\n selector: 'rxap-data-grid-readonly',\n templateUrl: './data-grid-readonly.component.html',\n styleUrls: [ './data-grid-readonly.component.scss' ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'rxap-data-grid-readonly' },\n standalone: true,\n imports: [ NgIf, NgFor, NgTemplateOutlet, GetFromObjectPipe ]\n})\nexport class DataGridReadonlyComponent<T extends Record<string, any>> {\n\n @Input()\n public header: boolean = true;\n\n @Input()\n @Required\n public data!: object;\n\n @ContentChildren(DataGridRowDefDirective)\n @Required\n public rows!: QueryList<DataGridRowDefDirective<T>>;\n}\n","<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","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;AAaA,MAIa,wBAAwB,CAAA;AAC5B,IAAA,OAAO,sBAAsB,CAClC,GAAgC,EAChC,GAAQ,EAAA;AAER,QAAA,OAAO,IAAI,CAAC;KACb;AAKD,IAAA,WAAA,CAES,QAAyD,EAAA;QAAzD,IAAQ,CAAA,QAAA,GAAR,QAAQ,CAAiD;KAC9D;AAdO,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,kBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,wBAAwB,kBAYzB,WAAW,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;kGAZV,wBAAwB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,uBAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA,EAAA;;2FAAxB,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBAJpC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAI,uBAAuB;AACnC,oBAAA,UAAU,EAAE,IAAI;AACjB,iBAAA,CAAA;;0BAaI,MAAM;2BAAC,WAAW,CAAA;;;ACnBvB,MAIa,8BAA8B,CAAA;AAClC,IAAA,OAAO,sBAAs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AAA,IAAA,EAAE,KAAK,EAAA,QAAA,EAAA,kBAAA,EAAA,MAAA,EAAA,CAAA,SAAA,EAAA,cAAA,EAAA,eAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAE,gBAAgB,EAAA,QAAA,EAAA,oBAAA,EAAA,MAAA,EAAA,CAAA,yBAAA,EAAA,kBAAA,EAAA,0BAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAE,iBAAiB,EAAA,IAAA,EAAA,eAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA,EAAA;;AAS5D,UAAA,CAAA;IADN,QAAQ;;AACY,CAAA,EAAA,yBAAA,CAAA,SAAA,EAAA,MAAA,EAAA,KAAA,CAAA,CAAA,CAAA;AAId,UAAA,CAAA;IADN,QAAQ;8BACK,SAAS,CAAA;AAA6B,CAAA,EAAA,yBAAA,CAAA,SAAA,EAAA,MAAA,EAAA,KAAA,CAAA,CAAA,CAAA;2FAXzC,yBAAyB,EAAA,UAAA,EAAA,CAAA;kBAVrC,SAAS;+BAES,yBAAyB,EAAA,eAAA,EAGzB,uBAAuB,CAAC,MAAM,QAC9B,EAAE,KAAK,EAAE,yBAAyB,EAAE,cACpC,IAAI,EAAA,OAAA,EACJ,CAAE,IAAI,EAAE,KAAK,EAAE,gBAAgB,EAAE,iBAAiB,CAAE,EAAA,QAAA,EAAA,+tBAAA,EAAA,CAAA;8BAK9D,MAAM,EAAA,CAAA;sBADZ,KAAK;gBAKC,IAAI,EAAA,CAAA;sBAFV,KAAK;gBAMC,IAAI,EAAA,CAAA;sBAFV,eAAe;uBAAC,uBAAuB,CAAA;;;AEnC1C;;AAEG;;;;"}
1
+ {"version":3,"file":"rxap-data-grid.mjs","sources":["../../../../../packages/angular/data-grid/src/lib/data-grid-cell-def.directive.ts","../../../../../packages/angular/data-grid/src/lib/data-grid-header-cell-def.directive.ts","../../../../../packages/angular/data-grid/src/lib/data-grid-edit-cell-def.directive.ts","../../../../../packages/angular/data-grid/src/lib/data-grid-row-def.directive.ts","../../../../../packages/angular/data-grid/src/lib/data-grid-value.pipe.ts","../../../../../packages/angular/data-grid/src/lib/data-grid.component.ts","../../../../../packages/angular/data-grid/src/lib/data-grid.component.html","../../../../../packages/angular/data-grid/src/lib/data-grid.module.ts","../../../../../packages/angular/data-grid/src/rxap-data-grid.ts"],"sourcesContent":["import {\n Directive,\n Inject,\n TemplateRef,\n} from '@angular/core';\n\nexport interface DataGridCellDefDirectiveContext<T extends Record<string, any> = Record<string, any>> {\n $implicit: T[keyof T];\n data: T;\n}\n\n@Directive({\n selector: '[rxapDataGridCellDef]',\n standalone: true,\n})\nexport class DataGridCellDefDirective<T extends Record<string, any>> {\n public static ngTemplateContextGuard<T extends Record<string, any>>(\n dir: DataGridCellDefDirective<T>,\n ctx: any,\n ): ctx is DataGridCellDefDirectiveContext<T> {\n return true;\n }\n\n $implicit!: T[keyof T];\n data!: T;\n\n constructor(\n @Inject(TemplateRef)\n public template: TemplateRef<DataGridCellDefDirectiveContext<T>>,\n ) {\n }\n}\n","import {\n Directive,\n Inject,\n TemplateRef,\n} from '@angular/core';\n\nexport interface DataGridHeaderCellDefDirectiveContext {\n $implicit: string;\n}\n\n@Directive({\n selector: '[rxapDataGridHeaderCellDef]',\n standalone: true,\n})\nexport class DataGridHeaderCellDefDirective {\n public static ngTemplateContextGuard(\n dir: DataGridHeaderCellDefDirective,\n ctx: any,\n ): ctx is DataGridHeaderCellDefDirectiveContext {\n return true;\n }\n\n constructor(\n @Inject(TemplateRef)\n public template: TemplateRef<DataGridHeaderCellDefDirectiveContext>,\n ) {\n }\n}\n","import {\n Directive,\n Inject,\n TemplateRef,\n} from '@angular/core';\n\nexport interface DataGridEditCellDefDirectiveContext<T extends Record<string, any> = Record<string, any>> {\n $implicit: T[keyof T];\n data: T;\n}\n\n@Directive({\n selector: '[rxapDataGridEditCellDef]',\n standalone: true,\n})\nexport class DataGridEditCellDefDirective<T extends Record<string, any>> {\n public static ngTemplateContextGuard<T extends Record<string, any>>(\n dir: DataGridEditCellDefDirective<T>,\n ctx: any,\n ): ctx is DataGridEditCellDefDirectiveContext<T> {\n return true;\n }\n\n constructor(\n @Inject(TemplateRef)\n public template: TemplateRef<DataGridEditCellDefDirectiveContext<T>>,\n ) {\n }\n}\n","import {\n ContentChild,\n Directive,\n Input,\n} from '@angular/core';\nimport { DataGridCellDefDirective } from './data-grid-cell-def.directive';\nimport { DataGridHeaderCellDefDirective } from './data-grid-header-cell-def.directive';\nimport { DataGridEditCellDefDirective } from './data-grid-edit-cell-def.directive';\n\n@Directive({\n selector: '[rxapDataGridRowDef]',\n standalone: true,\n})\nexport class DataGridRowDefDirective<T extends Record<string, any>> {\n\n @Input()\n public data: any | null = null;\n\n @Input('rxapDataGridRowDef')\n public name?: string;\n\n /**\n * true - the header and content cell are \"rotated\" by 90°. The header is above the content cell and both have a\n * colspan\n *\n * **flip: false**\n * Label | Value\n * --- | ---\n * Header | Content\n *\n * **flip: true**\n * Label | Value\n * --- | ---\n * Header (colspan 2)\n * Content (colspan 2)\n *\n */\n @Input()\n public flip = false;\n\n @ContentChild(DataGridCellDefDirective)\n public cell?: DataGridCellDefDirective<T>;\n\n @ContentChild(DataGridHeaderCellDefDirective)\n public headerCell?: DataGridHeaderCellDefDirective;\n\n @ContentChild(DataGridEditCellDefDirective)\n public editCell?: DataGridEditCellDefDirective<T>;\n\n public get isSubHeader() {\n return !this.name;\n }\n\n}\n","import {\n Pipe,\n PipeTransform,\n} from '@angular/core';\nimport { getFromObject } from '@rxap/utilities';\nimport { Observable } from 'rxjs';\nimport { map } from 'rxjs/operators';\n\n@Pipe({\n name: 'dataGridValue',\n standalone: true,\n})\nexport class DataGridValuePipe<T extends Record<string, unknown>> implements PipeTransform {\n\n public transform(data: Observable<T>, path?: string): Observable<unknown> {\n if (!path) {\n throw new Error('FATAL: The path is required! Ensure the data grid row has a defined name property!');\n }\n return data.pipe(\n map(source => getFromObject(source, path)),\n );\n }\n\n}\n","import {\n AfterContentInit,\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ContentChildren,\n EventEmitter,\n Input,\n isDevMode,\n OnDestroy,\n OnInit,\n Optional,\n Output,\n QueryList,\n ViewEncapsulation,\n} from '@angular/core';\nimport {\n ActivationEnd,\n Router,\n} from '@angular/router';\nimport type { BaseDataSource } from '@rxap/data-source';\nimport { BaseDataSourceViewer } from '@rxap/data-source';\nimport {\n FormDirective,\n RxapFormsModule,\n} from '@rxap/forms';\nimport {\n clone,\n Required,\n} from '@rxap/utilities';\nimport { ToggleSubject } from '@rxap/rxjs';\nimport {\n BehaviorSubject,\n combineLatest,\n debounceTime,\n EMPTY,\n merge,\n Observable,\n of,\n Subscription,\n} from 'rxjs';\nimport {\n filter,\n map,\n shareReplay,\n take,\n tap,\n} from 'rxjs/operators';\nimport { DataGridRowDefDirective } from './data-grid-row-def.directive';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatIconModule } from '@angular/material/icon';\nimport {\n EscapeQuotationMarkPipe,\n GetFromObjectPipe,\n ReplacePipe,\n} from '@rxap/pipes';\nimport { DataGridValuePipe } from './data-grid-value.pipe';\nimport { MatProgressSpinnerModule } from '@angular/material/progress-spinner';\nimport { FlexLayoutModule } from '@angular/flex-layout';\nimport { MatDividerModule } from '@angular/material/divider';\nimport {\n AsyncPipe,\n NgFor,\n NgIf,\n NgTemplateOutlet,\n} from '@angular/common';\nimport { MatFormFieldModule } from '@angular/material/form-field';\n\nexport enum DataGridMode {\n /**\n * The view cell template is used to display the property value\n */\n PLAIN = 'plain',\n /**\n * The edit cell template is used to display the property value, but the form and all controls are marked as disabled\n */\n FORM = 'form',\n}\n\nfunction IsDataGridMode(value: string): value is DataGridMode {\n return [ DataGridMode.PLAIN, DataGridMode.FORM ].includes(value as any);\n}\n\n@Component({\n selector: 'rxap-data-grid',\n templateUrl: './data-grid.component.html',\n styleUrls: [ './data-grid.component.scss' ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n standalone: true,\n imports: [\n AsyncPipe,\n NgIf,\n NgFor,\n MatButtonModule,\n MatIconModule,\n GetFromObjectPipe,\n ReplacePipe,\n EscapeQuotationMarkPipe,\n RxapFormsModule,\n DataGridValuePipe,\n MatProgressSpinnerModule,\n FlexLayoutModule,\n MatDividerModule,\n NgTemplateOutlet,\n MatFormFieldModule,\n ],\n})\nexport class DataGridComponent<T extends Record<string, any>> implements OnInit, OnDestroy, AfterContentInit {\n\n public isDevMode = isDevMode();\n\n @Input()\n public header = false;\n\n @Input()\n public dataSource?: BaseDataSource<T>;\n\n public data$!: Observable<T>;\n\n @Input()\n public viewer: BaseDataSourceViewer = this;\n\n @Input()\n public data?: T;\n\n @Input()\n public displayProperties: string[] | null = null;\n\n @ContentChildren(DataGridRowDefDirective)\n @Required\n public rows!: QueryList<DataGridRowDefDirective<T>>;\n @Output()\n public editModeChange = new EventEmitter<{ mode: boolean, data?: T, done: () => void }>();\n public rows$: Observable<QueryList<DataGridRowDefDirective<T>>> = EMPTY;\n public hasError$: Observable<boolean> = EMPTY;\n public dataLoading$: Observable<boolean> = EMPTY;\n public loading$ = new ToggleSubject();\n public readonly isEditMode$: Observable<boolean>;\n public readonly mode$: Observable<DataGridMode>;\n public readonly isFormMode$: Observable<boolean>;\n public readonly isPlainMode$: Observable<boolean>;\n private _editMode$ = new BehaviorSubject<boolean>(false);\n private _mode$ = new BehaviorSubject<DataGridMode>(DataGridMode.PLAIN);\n private _routerEventSubscription: Subscription | null = null;\n\n constructor(\n private readonly cdr: ChangeDetectorRef,\n private readonly router: Router,\n @Optional()\n private readonly formDirective?: FormDirective,\n ) {\n this.isEditMode$ = this._editMode$.asObservable();\n this.mode$ = this._mode$.asObservable();\n this.isFormMode$ = this.mode$.pipe(map(mode => mode === DataGridMode.FORM));\n this.isPlainMode$ = this.mode$.pipe(map(mode => mode === DataGridMode.PLAIN));\n }\n\n @Input()\n public set mode(value: DataGridMode | string) {\n if (IsDataGridMode(value)) {\n this._mode$.next(value);\n } else {\n throw new Error(`The data grid mode only support 'plain' and 'form' - given '${ value }'`);\n }\n }\n\n public get isFormMode() {\n return this._mode$.value === DataGridMode.FORM;\n }\n\n public get hasAnyEditCells() {\n return this.rows.some(row => !!row.editCell);\n }\n\n public get isEditMode() {\n return this._editMode$.value;\n }\n\n public set editMode(value: boolean) {\n this._editMode$.next(value);\n }\n\n /**\n * @deprecated use the loading$ property instead\n */\n public get loading() {\n return this.loading$.value;\n }\n\n public ngAfterContentInit() {\n this.rows$ = merge(\n of(this.rows),\n this.rows.changes,\n );\n }\n\n public logCurrentFormState() {\n console.log(clone(this.formDirective?.form.value));\n }\n\n public ngOnInit() {\n // resets the edit mode if this component is used in a sibling router path\n // if not reset the edit mode is president after the route changes\n this._routerEventSubscription = this.router.events.pipe(\n filter(event => event instanceof ActivationEnd),\n tap(() => this.disableEditMode()),\n ).subscribe();\n\n if (this.dataSource && this.data) {\n throw new Error('You can not use both dataSource and data input');\n }\n\n let data$: Observable<T> = EMPTY;\n\n if (this.dataSource) {\n data$ = this.dataSource.connect(this.viewer);\n }\n\n if (this.data) {\n data$ = of(this.data);\n }\n\n if (data$ === EMPTY && isDevMode()) {\n console.warn('No data source or data input provided');\n }\n\n this.data$ = data$.pipe(\n debounceTime(100),\n tap(data => this.data = data),\n tap(data => {\n if (this.formDirective) {\n this.formDirective.form.patchValue(data, {\n coerce: true,\n strict: true,\n });\n if (this.isFormMode) {\n this.formDirective.form.disable();\n }\n }\n }),\n shareReplay(1),\n );\n if (this.dataSource) {\n this.hasError$ = this.dataSource.hasError$;\n this.dataLoading$ = this.dataSource.loading$;\n } else {\n this.hasError$ = of(false);\n this.dataLoading$ = of(false);\n }\n if (this.formDirective && this.isFormMode) {\n this.formDirective.form.disabledWhile(combineLatest([\n this._editMode$,\n this._mode$,\n ]).pipe(\n map(([ editMode, mode ]) => !editMode && mode === 'form'),\n ), { onlySelf: false });\n }\n }\n\n public ngOnDestroy() {\n this.dataSource?.disconnect(this.viewer);\n this._routerEventSubscription?.unsubscribe();\n }\n\n public enableEditMode() {\n if (!this.formDirective) {\n if (isDevMode()) {\n console.warn('Can not enable edit mode without a form directive');\n }\n return;\n }\n this.editMode = true;\n if (this.data) {\n this.formDirective.form.patchValue(this.data, {\n coerce: true,\n strict: true,\n });\n }\n }\n\n public disableEditMode() {\n if (!this.formDirective) {\n if (isDevMode()) {\n console.warn('Can not enable edit mode without a form directive');\n }\n return;\n }\n this.editMode = false;\n }\n\n public submit() {\n if (!this.formDirective) {\n if (isDevMode()) {\n console.warn('Can not support without a form directive');\n }\n return;\n }\n this.loading$.enable();\n this.formDirective.form.markAllAsDirty();\n this.formDirective.form.markAllAsTouched();\n this.formDirective.cdr.markForCheck();\n this.formDirective.rxapSubmit.pipe(\n take(1),\n tap(() => {\n this.disableEditMode();\n }),\n ).subscribe();\n this.formDirective.invalidSubmit.pipe(\n take(1),\n tap(() => {\n this.loading$.disable();\n }),\n ).subscribe();\n this.formDirective.submitError$.pipe(\n filter(Boolean), // if the error is undefined we do not want to disable the loading\n take(1),\n tap(() => {\n this.loading$.disable();\n }),\n ).subscribe();\n this.formDirective.submitSuccessful$.pipe(\n take(1),\n tap(() => {\n this.loading$.disable();\n this.refresh();\n }),\n ).subscribe();\n this.formDirective.onSubmit(new Event('submit'));\n }\n\n public reset() {\n if (this.formDirective && this.data) {\n this.formDirective.form.patchValue(this.data, {\n coerce: true,\n strict: true,\n });\n }\n }\n\n public refresh() {\n if (this.dataSource) {\n this.dataSource.refresh();\n } else if (isDevMode()) {\n console.warn('can not refresh the data. data source is not defined');\n }\n }\n\n public cancel() {\n this.reset();\n this.disableEditMode();\n }\n\n retry() {\n this.refresh();\n }\n}\n","<div *ngIf=\"(hasError$ | async)\" class=\"info-container\" fxLayout=\"column\" fxLayoutAlign=\"center center\"\n fxLayoutGap=\"32px\">\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=\"info-container\" fxLayout=\"column\" fxLayoutAlign=\"center center\"\n fxLayoutGap=\"32px\">\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=\"data-grid\">\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 <ng-template [ngIfElse]=\"normal\" [ngIf]=\"row.flip\">\n <tr>\n <td class=\"divider\" colspan=\"2\">\n <mat-divider></mat-divider>\n </td>\n </tr>\n <tr [attr.data-name]=\"row.name + '-header'\">\n <ng-container\n *ngTemplateOutlet=\"\n row.headerCell?.template ?? defaultHeaderCell;\n context: { $implicit: row.name }\n \"\n >\n </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 class=\"divider\" colspan=\"2\">\n <mat-divider></mat-divider>\n </td>\n </tr>\n </ng-template>\n <ng-template #normal>\n <tr *ngIf=\"!first && row.isSubHeader\">\n <td class=\"divider\" 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=\"\n row.headerCell?.template ?? defaultHeaderCell;\n context: { $implicit: row.name }\n \"\n >\n </ng-container>\n <ng-template [ngIfThen]=\"content\" [ngIf]=\"row.name\"></ng-template>\n </tr>\n </ng-template>\n </ng-template>\n <ng-template #content>\n <ng-template [ngIfElse]=\"readonlyCell\" [ngIfThen]=\"writeCell\" [ngIf]=\"row.editCell?.template\"></ng-template>\n <ng-template #writeCell>\n <ng-template #viewMode>\n <td [attr.colspan]=\"row.flip ? 2 : 1\" class=\"value\">\n <div>\n <ng-container\n *ngTemplateOutlet=\"\n row.cell?.template ?? defaultCell;\n context: { $implicit: data$ | dataGridValue: row.name | async, data: data$ | async }\n \"\n ></ng-container>\n </div>\n </td>\n </ng-template>\n <ng-template #editMode>\n <td [attr.colspan]=\"row.flip ? 2 : 1\" class=\"edit\">\n <div>\n <ng-container\n *ngTemplateOutlet=\"\n row.editCell?.template ?? row.cell?.template ?? defaultCell;\n context: { $implicit: data$ | dataGridValue: row.name | async, data: data$ | async }\n \"\n ></ng-container>\n </div>\n </td>\n </ng-template>\n <ng-template [ngIfElse]=\"viewMode\" [ngIfThen]=\"editMode\" [ngIf]=\"isEditMode || isFormMode\"></ng-template>\n </ng-template>\n <ng-template #readonlyCell>\n <td [attr.colspan]=\"row.flip ? 2 : 1\" class=\"value\">\n <div>\n <ng-container\n *ngTemplateOutlet=\"\n row.cell?.template ?? defaultCell;\n context: { $implicit: data$ | dataGridValue: row.name | async, data: data$ | async }\n \"\n ></ng-container>\n </div>\n </td>\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 fxLayout=\"column\" fxLayoutGap=\"24px\">\n <div fxLayout=\"row\" fxLayoutAlign=\"start center\" fxLayoutGap=\"24px\">\n <button (click)=\"submit()\" [disabled]=\"loading$ | async\" class=\"control-button\" color=\"primary\"\n mat-raised-button type=\"button\">\n <span fxLayout=\"row\" fxLayoutAlign=\"center center\" fxLayoutGap=\"24px\">\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\" class=\"control-button\" mat-stroked-button\n type=\"button\">\n <ng-container i18n>Reset</ng-container>\n </button>\n <button (click)=\"cancel()\" [disabled]=\"loading$ | async\" class=\"control-button\" color=\"warn\"\n mat-stroked-button type=\"button\">\n <ng-container i18n>Cancel</ng-container>\n </button>\n <button (click)=\"logCurrentFormState()\" *ngIf=\"isDevMode\" class=\"control-button\" mat-button\n type=\"button\">Current Form State\n </button>\n </div>\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 </div>\n </ng-template>\n <ng-template #viewModeButton>\n <button (click)=\"enableEditMode()\" class=\"control-button\" color=\"primary\" mat-raised-button type=\"button\">\n <span fxLayout=\"row\" fxLayoutAlign=\"center center\" fxLayoutGap=\"24px\">\n <span i18n>Edit</span>\n <mat-spinner *ngIf=\"loading$ | async\" color=\"accent\" diameter=\"15\"></mat-spinner>\n </span>\n </button>\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","import { NgModule } from '@angular/core';\nimport { DataGridCellDefDirective } from './data-grid-cell-def.directive';\nimport { DataGridEditCellDefDirective } from './data-grid-edit-cell-def.directive';\nimport { DataGridComponent } from './data-grid.component';\nimport { DataGridHeaderCellDefDirective } from './data-grid-header-cell-def.directive';\nimport { DataGridRowDefDirective } from './data-grid-row-def.directive';\n\n@NgModule({\n imports: [\n DataGridComponent,\n DataGridRowDefDirective,\n DataGridHeaderCellDefDirective,\n DataGridCellDefDirective,\n DataGridEditCellDefDirective,\n ],\n exports: [\n DataGridComponent,\n DataGridRowDefDirective,\n DataGridHeaderCellDefDirective,\n DataGridCellDefDirective,\n DataGridEditCellDefDirective,\n ],\n})\nexport class DataGridModule {\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;MAea,wBAAwB,CAAA;AAC5B,IAAA,OAAO,sBAAsB,CAClC,GAAgC,EAChC,GAAQ,EAAA;AAER,QAAA,OAAO,IAAI,CAAC;KACb;AAKD,IAAA,WAAA,CAES,QAAyD,EAAA;QAAzD,IAAQ,CAAA,QAAA,GAAR,QAAQ,CAAiD;KAEjE;AAfU,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,kBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,wBAAwB,kBAYzB,WAAW,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;kGAZV,wBAAwB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,uBAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA,EAAA;;2FAAxB,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBAJpC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,uBAAuB;AACjC,oBAAA,UAAU,EAAE,IAAI;AACjB,iBAAA,CAAA;;0BAaI,MAAM;2BAAC,WAAW,CAAA;;;MCbV,8BAA8B,CAAA;AAClC,IAAA,OAAO,sBAAsB,CAClC,GAAmC,EACnC,GAAQ,EAAA;AAER,QAAA,OAAO,IAAI,CAAC;KACb;AAED,IAAA,WAAA,CAES,QAA4D,EAAA;QAA5D,IAAQ,CAAA,QAAA,GAAR,QAAQ,CAAoD;KAEpE;AAZU,IAA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