@rxap/data-grid 12.1.0 → 13.0.0-next.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/esm2020/index.mjs +8 -0
  2. package/esm2020/lib/data-grid-cell-def.directive.mjs +22 -0
  3. package/esm2020/lib/data-grid-edit-cell-def.directive.mjs +22 -0
  4. package/esm2020/lib/data-grid-header-cell-def.directive.mjs +22 -0
  5. package/esm2020/lib/data-grid-row-def.directive.mjs +40 -0
  6. package/esm2020/lib/data-grid.component.module.mjs +35 -0
  7. package/esm2020/lib/readonly/data-grid-readonly.component.mjs +34 -0
  8. package/esm2020/lib/readonly/data-grid-readonly.component.module.mjs +33 -0
  9. package/esm2020/rxap-data-grid.mjs +5 -0
  10. package/fesm2015/rxap-data-grid.mjs +197 -0
  11. package/fesm2015/rxap-data-grid.mjs.map +1 -0
  12. package/{fesm2015/rxap-data-grid.js → fesm2020/rxap-data-grid.mjs} +25 -32
  13. package/fesm2020/rxap-data-grid.mjs.map +1 -0
  14. package/package.json +36 -21
  15. package/src/schematics/ng-add/index.js +1 -1
  16. package/src/schematics/ng-add/index.js.map +1 -1
  17. package/bundles/rxap-data-grid.umd.js +0 -558
  18. package/bundles/rxap-data-grid.umd.js.map +0 -1
  19. package/esm2015/index.js +0 -8
  20. package/esm2015/index.js.map +0 -1
  21. package/esm2015/lib/data-grid-cell-def.directive.js +0 -22
  22. package/esm2015/lib/data-grid-cell-def.directive.js.map +0 -1
  23. package/esm2015/lib/data-grid-edit-cell-def.directive.js +0 -22
  24. package/esm2015/lib/data-grid-edit-cell-def.directive.js.map +0 -1
  25. package/esm2015/lib/data-grid-header-cell-def.directive.js +0 -22
  26. package/esm2015/lib/data-grid-header-cell-def.directive.js.map +0 -1
  27. package/esm2015/lib/data-grid-row-def.directive.js +0 -40
  28. package/esm2015/lib/data-grid-row-def.directive.js.map +0 -1
  29. package/esm2015/lib/data-grid.component.module.js +0 -35
  30. package/esm2015/lib/data-grid.component.module.js.map +0 -1
  31. package/esm2015/lib/readonly/data-grid-readonly.component.js +0 -41
  32. package/esm2015/lib/readonly/data-grid-readonly.component.js.map +0 -1
  33. package/esm2015/lib/readonly/data-grid-readonly.component.module.js +0 -33
  34. package/esm2015/lib/readonly/data-grid-readonly.component.module.js.map +0 -1
  35. package/esm2015/rxap-data-grid.js +0 -5
  36. package/esm2015/rxap-data-grid.js.map +0 -1
  37. package/fesm2015/rxap-data-grid.js.map +0 -1
@@ -15,9 +15,9 @@ class DataGridCellDefDirective {
15
15
  return true;
16
16
  }
17
17
  }
18
- DataGridCellDefDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: DataGridCellDefDirective, deps: [{ token: TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
19
- DataGridCellDefDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.0.1", type: DataGridCellDefDirective, selector: "[rxapDataGridCellDef]", ngImport: i0 });
20
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: DataGridCellDefDirective, decorators: [{
18
+ DataGridCellDefDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: DataGridCellDefDirective, deps: [{ token: TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
19
+ DataGridCellDefDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.3", type: DataGridCellDefDirective, selector: "[rxapDataGridCellDef]", ngImport: i0 });
20
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: DataGridCellDefDirective, decorators: [{
21
21
  type: Directive,
22
22
  args: [{
23
23
  selector: '[rxapDataGridCellDef]',
@@ -35,9 +35,9 @@ class DataGridHeaderCellDefDirective {
35
35
  return true;
36
36
  }
37
37
  }
38
- DataGridHeaderCellDefDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: DataGridHeaderCellDefDirective, deps: [{ token: TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
39
- DataGridHeaderCellDefDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.0.1", type: DataGridHeaderCellDefDirective, selector: "[rxapDataGridHeaderCellDef]", ngImport: i0 });
40
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: DataGridHeaderCellDefDirective, decorators: [{
38
+ DataGridHeaderCellDefDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: DataGridHeaderCellDefDirective, deps: [{ token: TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
39
+ DataGridHeaderCellDefDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.3", type: DataGridHeaderCellDefDirective, selector: "[rxapDataGridHeaderCellDef]", ngImport: i0 });
40
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: DataGridHeaderCellDefDirective, decorators: [{
41
41
  type: Directive,
42
42
  args: [{
43
43
  selector: '[rxapDataGridHeaderCellDef]',
@@ -55,9 +55,9 @@ class DataGridEditCellDefDirective {
55
55
  return true;
56
56
  }
57
57
  }
58
- DataGridEditCellDefDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: DataGridEditCellDefDirective, deps: [{ token: TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
59
- DataGridEditCellDefDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.0.1", type: DataGridEditCellDefDirective, selector: "[rxapDataGridEditCellDef]", ngImport: i0 });
60
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: DataGridEditCellDefDirective, decorators: [{
58
+ DataGridEditCellDefDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: DataGridEditCellDefDirective, deps: [{ token: TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
59
+ DataGridEditCellDefDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.3", type: DataGridEditCellDefDirective, selector: "[rxapDataGridEditCellDef]", ngImport: i0 });
60
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: DataGridEditCellDefDirective, decorators: [{
61
61
  type: Directive,
62
62
  args: [{
63
63
  selector: '[rxapDataGridEditCellDef]'
@@ -72,13 +72,13 @@ class DataGridRowDefDirective {
72
72
  this.data = null;
73
73
  }
74
74
  }
75
- DataGridRowDefDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: DataGridRowDefDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
76
- DataGridRowDefDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.0.1", 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 });
75
+ DataGridRowDefDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: DataGridRowDefDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
76
+ DataGridRowDefDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.3", 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 });
77
77
  __decorate([
78
78
  Required,
79
79
  __metadata("design:type", String)
80
80
  ], DataGridRowDefDirective.prototype, "name", void 0);
81
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: DataGridRowDefDirective, decorators: [{
81
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: DataGridRowDefDirective, decorators: [{
82
82
  type: Directive,
83
83
  args: [{
84
84
  // tslint:disable-next-line:directive-selector
@@ -102,16 +102,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImpor
102
102
 
103
103
  class DataGridModule {
104
104
  }
105
- DataGridModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: DataGridModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
106
- DataGridModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: DataGridModule, declarations: [DataGridRowDefDirective,
105
+ DataGridModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: DataGridModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
106
+ DataGridModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: DataGridModule, declarations: [DataGridRowDefDirective,
107
107
  DataGridHeaderCellDefDirective,
108
108
  DataGridCellDefDirective,
109
109
  DataGridEditCellDefDirective], exports: [DataGridRowDefDirective,
110
110
  DataGridHeaderCellDefDirective,
111
111
  DataGridCellDefDirective,
112
112
  DataGridEditCellDefDirective] });
113
- DataGridModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: DataGridModule });
114
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: DataGridModule, decorators: [{
113
+ DataGridModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: DataGridModule });
114
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: DataGridModule, decorators: [{
115
115
  type: NgModule,
116
116
  args: [{
117
117
  declarations: [
@@ -134,8 +134,8 @@ class DataGridReadonlyComponent {
134
134
  this.header = true;
135
135
  }
136
136
  }
137
- DataGridReadonlyComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: DataGridReadonlyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
138
- DataGridReadonlyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.1", 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: [""], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], pipes: { "getFromObject": i2.GetFromObjectPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
137
+ DataGridReadonlyComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: DataGridReadonlyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
138
+ DataGridReadonlyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.3", 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: [""], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], pipes: { "getFromObject": i2.GetFromObjectPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
139
139
  __decorate([
140
140
  Required,
141
141
  __metadata("design:type", Object)
@@ -144,16 +144,9 @@ __decorate([
144
144
  Required,
145
145
  __metadata("design:type", QueryList)
146
146
  ], DataGridReadonlyComponent.prototype, "rows", void 0);
147
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: DataGridReadonlyComponent, decorators: [{
147
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: DataGridReadonlyComponent, decorators: [{
148
148
  type: Component,
149
- args: [{
150
- // tslint:disable-next-line:component-selector
151
- selector: 'rxap-data-grid-readonly',
152
- templateUrl: './data-grid-readonly.component.html',
153
- styleUrls: ['./data-grid-readonly.component.scss'],
154
- changeDetection: ChangeDetectionStrategy.OnPush,
155
- host: { class: 'rxap-data-grid-readonly' }
156
- }]
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", styles: [""] }]
157
150
  }], propDecorators: { header: [{
158
151
  type: Input
159
152
  }], data: [{
@@ -165,15 +158,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImpor
165
158
 
166
159
  class DataGridReadonlyComponentModule {
167
160
  }
168
- DataGridReadonlyComponentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: DataGridReadonlyComponentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
169
- DataGridReadonlyComponentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: DataGridReadonlyComponentModule, declarations: [DataGridReadonlyComponent], imports: [GetFromObjectPipeModule,
161
+ DataGridReadonlyComponentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: DataGridReadonlyComponentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
162
+ DataGridReadonlyComponentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: DataGridReadonlyComponentModule, declarations: [DataGridReadonlyComponent], imports: [GetFromObjectPipeModule,
170
163
  CommonModule], exports: [DataGridReadonlyComponent,
171
164
  DataGridModule] });
172
- DataGridReadonlyComponentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: DataGridReadonlyComponentModule, imports: [[
165
+ DataGridReadonlyComponentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: DataGridReadonlyComponentModule, imports: [[
173
166
  GetFromObjectPipeModule,
174
167
  CommonModule
175
168
  ], DataGridModule] });
176
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: DataGridReadonlyComponentModule, decorators: [{
169
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: DataGridReadonlyComponentModule, decorators: [{
177
170
  type: NgModule,
178
171
  args: [{
179
172
  exports: [
@@ -195,4 +188,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImpor
195
188
  */
196
189
 
197
190
  export { DataGridCellDefDirective, DataGridEditCellDefDirective, DataGridHeaderCellDefDirective, DataGridModule, DataGridReadonlyComponent, DataGridReadonlyComponentModule, DataGridRowDefDirective };
198
- //# sourceMappingURL=rxap-data-grid.js.map
191
+ //# sourceMappingURL=rxap-data-grid.mjs.map
@@ -0,0 +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/data-grid.component.module.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/lib/readonly/data-grid-readonly.component.module.ts","../../../../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})\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})\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})\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})\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 { NgModule } from '@angular/core';\nimport { DataGridRowDefDirective } from './data-grid-row-def.directive';\nimport { DataGridHeaderCellDefDirective } from './data-grid-header-cell-def.directive';\nimport { DataGridCellDefDirective } from './data-grid-cell-def.directive';\nimport { DataGridEditCellDefDirective } from './data-grid-edit-cell-def.directive';\n\n@NgModule({\n declarations: [\n DataGridRowDefDirective,\n DataGridHeaderCellDefDirective,\n DataGridCellDefDirective,\n DataGridEditCellDefDirective\n ],\n exports: [\n DataGridRowDefDirective,\n DataGridHeaderCellDefDirective,\n DataGridCellDefDirective,\n DataGridEditCellDefDirective\n ]\n})\nexport class DataGridModule {}\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';\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})\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","import { NgModule } from '@angular/core';\nimport { DataGridReadonlyComponent } from './data-grid-readonly.component';\nimport { DataGridModule } from '../data-grid.component.module';\nimport { CommonModule } from '@angular/common';\nimport { GetFromObjectPipeModule } from '@rxap/pipes';\n\n@NgModule({\n exports: [\n DataGridReadonlyComponent,\n DataGridModule\n ],\n imports: [\n GetFromObjectPipeModule,\n CommonModule\n ],\n declarations: [\n DataGridReadonlyComponent\n ]\n})\nexport class DataGridReadonlyComponentModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"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"}
package/package.json CHANGED
@@ -1,19 +1,21 @@
1
1
  {
2
2
  "name": "@rxap/data-grid",
3
- "version": "12.1.0",
3
+ "version": "13.0.0-next.2",
4
4
  "peerDependencies": {
5
- "@angular/cdk": "^12.0.1",
6
- "@angular/common": "^12.0.1",
7
- "@angular/core": "^12.0.1",
8
- "@angular/forms": "^12.0.1",
9
- "@angular/platform-browser": "^12.0.1",
10
- "@angular/router": "^12.0.1",
11
- "@rxap/definition": "^12.0.8",
12
- "@rxap/directives": "^12.1.2",
13
- "@rxap/forms": "^12.5.0",
14
- "@rxap/pipes": "^12.0.6",
15
- "@rxap/services": "^12.0.7",
16
- "@rxap/utilities": "^12.2.1",
5
+ "@angular-devkit/schematics": "^13.2.4",
6
+ "@angular/cdk": "^13.2.3",
7
+ "@angular/common": "^13.2.3",
8
+ "@angular/core": "^13.2.3",
9
+ "@angular/forms": "^13.2.3",
10
+ "@angular/platform-browser": "^13.2.3",
11
+ "@angular/platform-browser-dynamic": "^13.2.3",
12
+ "@angular/router": "^13.2.3",
13
+ "@rxap/definition": "^13.0.0-next.1",
14
+ "@rxap/directives": "^13.0.0-next.3",
15
+ "@rxap/forms": "^13.0.0-next.2",
16
+ "@rxap/pipes": "^13.0.0-next.2",
17
+ "@rxap/services": "^13.0.0-next.1",
18
+ "@rxap/utilities": "^13.0.0-next.1",
17
19
  "reflect-metadata": "^0.1.13",
18
20
  "rxjs": "^6.5.5"
19
21
  },
@@ -51,16 +53,29 @@
51
53
  "save": "dependencies"
52
54
  },
53
55
  "dependencies": {
54
- "@rxap/schematics-utilities": "^12.6.0",
55
- "tslib": "^2.2.0",
56
+ "@rxap/schematics-utilities": "^13.0.0-next.0",
57
+ "tslib": "^2.3.1",
56
58
  "uuid": "8.3.2",
57
- "@rxap/validator": "0.0.2"
59
+ "@rxap/validator": "1.0.0-next.0"
58
60
  },
59
- "main": "bundles/rxap-data-grid.umd.js",
60
- "module": "fesm2015/rxap-data-grid.js",
61
- "es2015": "fesm2015/rxap-data-grid.js",
62
- "esm2015": "esm2015/rxap-data-grid.js",
63
- "fesm2015": "fesm2015/rxap-data-grid.js",
61
+ "module": "fesm2015/rxap-data-grid.mjs",
62
+ "es2020": "fesm2020/rxap-data-grid.mjs",
63
+ "esm2020": "esm2020/rxap-data-grid.mjs",
64
+ "fesm2020": "fesm2020/rxap-data-grid.mjs",
65
+ "fesm2015": "fesm2015/rxap-data-grid.mjs",
64
66
  "typings": "rxap-data-grid.d.ts",
67
+ "exports": {
68
+ "./package.json": {
69
+ "default": "./package.json"
70
+ },
71
+ ".": {
72
+ "types": "./rxap-data-grid.d.ts",
73
+ "esm2020": "./esm2020/rxap-data-grid.mjs",
74
+ "es2020": "./fesm2020/rxap-data-grid.mjs",
75
+ "es2015": "./fesm2015/rxap-data-grid.mjs",
76
+ "node": "./fesm2015/rxap-data-grid.mjs",
77
+ "default": "./fesm2020/rxap-data-grid.mjs"
78
+ }
79
+ },
65
80
  "sideEffects": false
66
81
  }
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const schematics_utilities_1 = require("@rxap/schematics-utilities");
4
4
  function default_1() {
5
- return schematics_utilities_1.InstallPeerDependencies();
5
+ return (0, schematics_utilities_1.InstallPeerDependencies)();
6
6
  }
7
7
  exports.default = default_1;
8
8
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../libs/data-grid/src/schematics/ng-add/index.ts"],"names":[],"mappings":";;AACA,qEAAqE;AAErE;IACE,OAAO,8CAAuB,EAAE,CAAC;AACnC,CAAC;AAFD,4BAEC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../libs/data-grid/src/schematics/ng-add/index.ts"],"names":[],"mappings":";;AACA,qEAAqE;AAErE;IACE,OAAO,IAAA,8CAAuB,GAAE,CAAC;AACnC,CAAC;AAFD,4BAEC"}