@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
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../libs/data-grid/src/index.ts"],"names":[],"mappings":"AAAA,cAAc,oCAAoC,CAAC;AACnD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,yCAAyC,CAAC;AACxD,cAAc,mCAAmC,CAAC;AAClD,cAAc,kCAAkC,CAAC;AACjD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,oDAAoD,CAAC","sourcesContent":["export * from './lib/data-grid-cell-def.directive';\nexport * from './lib/data-grid-header-cell-def.directive';\nexport * from './lib/data-grid-edit-cell-def.directive';\nexport * from './lib/data-grid-row-def.directive';\nexport * from './lib/data-grid.component.module';\nexport * from './lib/readonly/data-grid-readonly.component';\nexport * from './lib/readonly/data-grid-readonly.component.module';\n"]}
@@ -1,22 +0,0 @@
1
- import { Directive, TemplateRef, Inject } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export class DataGridCellDefDirective {
4
- constructor(template) {
5
- this.template = template;
6
- }
7
- static ngTemplateContextGuard(dir, ctx) {
8
- return true;
9
- }
10
- }
11
- DataGridCellDefDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: DataGridCellDefDirective, deps: [{ token: TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
12
- DataGridCellDefDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.0.1", type: DataGridCellDefDirective, selector: "[rxapDataGridCellDef]", ngImport: i0 });
13
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: DataGridCellDefDirective, decorators: [{
14
- type: Directive,
15
- args: [{
16
- selector: '[rxapDataGridCellDef]',
17
- }]
18
- }], ctorParameters: function () { return [{ type: i0.TemplateRef, decorators: [{
19
- type: Inject,
20
- args: [TemplateRef]
21
- }] }]; } });
22
- //# sourceMappingURL=data-grid-cell-def.directive.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"data-grid-cell-def.directive.js","sourceRoot":"","sources":["../../../../../libs/data-grid/src/lib/data-grid-cell-def.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,WAAW,EACX,MAAM,EACP,MAAM,eAAe,CAAC;;AAYvB,MAAM,OAAO,wBAAwB;IAWnC,YAES,QAAyD;QAAzD,aAAQ,GAAR,QAAQ,CAAiD;IAC/D,CAAC;IAbG,MAAM,CAAC,sBAAsB,CAClC,GAAgC,EAChC,GAAQ;QAER,OAAO,IAAI,CAAC;IACd,CAAC;;qHANU,wBAAwB,kBAYzB,WAAW;yGAZV,wBAAwB;2FAAxB,wBAAwB;kBAHpC,SAAS;mBAAC;oBACT,QAAQ,EAAE,uBAAuB;iBAClC;;0BAaI,MAAM;2BAAC,WAAW","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"]}
@@ -1,22 +0,0 @@
1
- import { Directive, Inject, TemplateRef } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export class DataGridEditCellDefDirective {
4
- constructor(template) {
5
- this.template = template;
6
- }
7
- static ngTemplateContextGuard(dir, ctx) {
8
- return true;
9
- }
10
- }
11
- DataGridEditCellDefDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: DataGridEditCellDefDirective, deps: [{ token: TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
12
- DataGridEditCellDefDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.0.1", type: DataGridEditCellDefDirective, selector: "[rxapDataGridEditCellDef]", ngImport: i0 });
13
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: DataGridEditCellDefDirective, decorators: [{
14
- type: Directive,
15
- args: [{
16
- selector: '[rxapDataGridEditCellDef]'
17
- }]
18
- }], ctorParameters: function () { return [{ type: i0.TemplateRef, decorators: [{
19
- type: Inject,
20
- args: [TemplateRef]
21
- }] }]; } });
22
- //# sourceMappingURL=data-grid-edit-cell-def.directive.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"data-grid-edit-cell-def.directive.js","sourceRoot":"","sources":["../../../../../libs/data-grid/src/lib/data-grid-edit-cell-def.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,MAAM,EACN,WAAW,EACZ,MAAM,eAAe,CAAC;;AAcvB,MAAM,OAAO,4BAA4B;IAQvC,YAES,QAA6D;QAA7D,aAAQ,GAAR,QAAQ,CAAqD;IACnE,CAAC;IAVG,MAAM,CAAC,sBAAsB,CAClC,GAAoC,EACpC,GAAQ;QAER,OAAO,IAAI,CAAC;IACd,CAAC;;yHANU,4BAA4B,kBAS7B,WAAW;6GATV,4BAA4B;2FAA5B,4BAA4B;kBAHxC,SAAS;mBAAC;oBACT,QAAQ,EAAE,2BAA2B;iBACtC;;0BAUI,MAAM;2BAAC,WAAW","sourcesContent":["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"]}
@@ -1,22 +0,0 @@
1
- import { Directive, TemplateRef, Inject } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export class DataGridHeaderCellDefDirective {
4
- constructor(template) {
5
- this.template = template;
6
- }
7
- static ngTemplateContextGuard(dir, ctx) {
8
- return true;
9
- }
10
- }
11
- DataGridHeaderCellDefDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: DataGridHeaderCellDefDirective, deps: [{ token: TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
12
- DataGridHeaderCellDefDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.0.1", type: DataGridHeaderCellDefDirective, selector: "[rxapDataGridHeaderCellDef]", ngImport: i0 });
13
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: DataGridHeaderCellDefDirective, decorators: [{
14
- type: Directive,
15
- args: [{
16
- selector: '[rxapDataGridHeaderCellDef]',
17
- }]
18
- }], ctorParameters: function () { return [{ type: i0.TemplateRef, decorators: [{
19
- type: Inject,
20
- args: [TemplateRef]
21
- }] }]; } });
22
- //# sourceMappingURL=data-grid-header-cell-def.directive.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"data-grid-header-cell-def.directive.js","sourceRoot":"","sources":["../../../../../libs/data-grid/src/lib/data-grid-header-cell-def.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,WAAW,EACX,MAAM,EACP,MAAM,eAAe,CAAC;;AASvB,MAAM,OAAO,8BAA8B;IAQzC,YAES,QAA4D;QAA5D,aAAQ,GAAR,QAAQ,CAAoD;IAClE,CAAC;IAVG,MAAM,CAAC,sBAAsB,CAClC,GAAmC,EACnC,GAAQ;QAER,OAAO,IAAI,CAAC;IACd,CAAC;;2HANU,8BAA8B,kBAS/B,WAAW;+GATV,8BAA8B;2FAA9B,8BAA8B;kBAH1C,SAAS;mBAAC;oBACT,QAAQ,EAAE,6BAA6B;iBACxC;;0BAUI,MAAM;2BAAC,WAAW","sourcesContent":["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"]}
@@ -1,40 +0,0 @@
1
- import { __decorate, __metadata } from "tslib";
2
- import { Directive, Input, ContentChild } from '@angular/core';
3
- import { DataGridCellDefDirective } from './data-grid-cell-def.directive';
4
- import { DataGridHeaderCellDefDirective } from './data-grid-header-cell-def.directive';
5
- import { Required } from '@rxap/utilities';
6
- import { DataGridEditCellDefDirective } from './data-grid-edit-cell-def.directive';
7
- import * as i0 from "@angular/core";
8
- export class DataGridRowDefDirective {
9
- constructor() {
10
- this.data = null;
11
- }
12
- }
13
- DataGridRowDefDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: DataGridRowDefDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
14
- 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 });
15
- __decorate([
16
- Required,
17
- __metadata("design:type", String)
18
- ], DataGridRowDefDirective.prototype, "name", void 0);
19
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: DataGridRowDefDirective, decorators: [{
20
- type: Directive,
21
- args: [{
22
- // tslint:disable-next-line:directive-selector
23
- selector: '[rxapDataGridRowDef]'
24
- }]
25
- }], propDecorators: { data: [{
26
- type: Input
27
- }], name: [{
28
- type: Input,
29
- args: ['rxapDataGridRowDef']
30
- }], cell: [{
31
- type: ContentChild,
32
- args: [DataGridCellDefDirective]
33
- }], headerCell: [{
34
- type: ContentChild,
35
- args: [DataGridHeaderCellDefDirective]
36
- }], editCell: [{
37
- type: ContentChild,
38
- args: [DataGridEditCellDefDirective]
39
- }] } });
40
- //# sourceMappingURL=data-grid-row-def.directive.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"data-grid-row-def.directive.js","sourceRoot":"","sources":["../../../../../libs/data-grid/src/lib/data-grid-row-def.directive.ts"],"names":[],"mappings":";AAAA,OAAO,EACL,SAAS,EACT,KAAK,EACL,YAAY,EACb,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,wBAAwB,EAAE,MAAM,gCAAgC,CAAC;AAC1E,OAAO,EAAE,8BAA8B,EAAE,MAAM,uCAAuC,CAAC;AACvF,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,4BAA4B,EAAE,MAAM,qCAAqC,CAAC;;AAMnF,MAAM,OAAO,uBAAuB;IAJpC;QAOS,SAAI,GAAe,IAAI,CAAC;KAehC;;oHAlBY,uBAAuB;wGAAvB,uBAAuB,8JASpB,wBAAwB,6EAGxB,8BAA8B,2EAG9B,4BAA4B;AAR1C;IADC,QAAQ;;qDACY;2FAPV,uBAAuB;kBAJnC,SAAS;mBAAC;oBACT,8CAA8C;oBAC9C,QAAQ,EAAE,sBAAsB;iBACjC;8BAIQ,IAAI;sBADV,KAAK;gBAKC,IAAI;sBAFV,KAAK;uBAAC,oBAAoB;gBAKpB,IAAI;sBADV,YAAY;uBAAC,wBAAwB;gBAI/B,UAAU;sBADhB,YAAY;uBAAC,8BAA8B;gBAIrC,QAAQ;sBADd,YAAY;uBAAC,4BAA4B","sourcesContent":["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"]}
@@ -1,35 +0,0 @@
1
- import { NgModule } from '@angular/core';
2
- import { DataGridRowDefDirective } from './data-grid-row-def.directive';
3
- import { DataGridHeaderCellDefDirective } from './data-grid-header-cell-def.directive';
4
- import { DataGridCellDefDirective } from './data-grid-cell-def.directive';
5
- import { DataGridEditCellDefDirective } from './data-grid-edit-cell-def.directive';
6
- import * as i0 from "@angular/core";
7
- export class DataGridModule {
8
- }
9
- DataGridModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: DataGridModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
10
- DataGridModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: DataGridModule, declarations: [DataGridRowDefDirective,
11
- DataGridHeaderCellDefDirective,
12
- DataGridCellDefDirective,
13
- DataGridEditCellDefDirective], exports: [DataGridRowDefDirective,
14
- DataGridHeaderCellDefDirective,
15
- DataGridCellDefDirective,
16
- DataGridEditCellDefDirective] });
17
- DataGridModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: DataGridModule });
18
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: DataGridModule, decorators: [{
19
- type: NgModule,
20
- args: [{
21
- declarations: [
22
- DataGridRowDefDirective,
23
- DataGridHeaderCellDefDirective,
24
- DataGridCellDefDirective,
25
- DataGridEditCellDefDirective
26
- ],
27
- exports: [
28
- DataGridRowDefDirective,
29
- DataGridHeaderCellDefDirective,
30
- DataGridCellDefDirective,
31
- DataGridEditCellDefDirective
32
- ]
33
- }]
34
- }] });
35
- //# sourceMappingURL=data-grid.component.module.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"data-grid.component.module.js","sourceRoot":"","sources":["../../../../../libs/data-grid/src/lib/data-grid.component.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AACxE,OAAO,EAAE,8BAA8B,EAAE,MAAM,uCAAuC,CAAC;AACvF,OAAO,EAAE,wBAAwB,EAAE,MAAM,gCAAgC,CAAC;AAC1E,OAAO,EAAE,4BAA4B,EAAE,MAAM,qCAAqC,CAAC;;AAgBnF,MAAM,OAAO,cAAc;;2GAAd,cAAc;4GAAd,cAAc,iBAZvB,uBAAuB;QACvB,8BAA8B;QAC9B,wBAAwB;QACxB,4BAA4B,aAG5B,uBAAuB;QACvB,8BAA8B;QAC9B,wBAAwB;QACxB,4BAA4B;4GAGnB,cAAc;2FAAd,cAAc;kBAd1B,QAAQ;mBAAC;oBACR,YAAY,EAAE;wBACZ,uBAAuB;wBACvB,8BAA8B;wBAC9B,wBAAwB;wBACxB,4BAA4B;qBAC7B;oBACD,OAAO,EAAO;wBACZ,uBAAuB;wBACvB,8BAA8B;wBAC9B,wBAAwB;wBACxB,4BAA4B;qBAC7B;iBACF","sourcesContent":["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"]}
@@ -1,41 +0,0 @@
1
- import { __decorate, __metadata } from "tslib";
2
- import { Component, ChangeDetectionStrategy, Input, ContentChildren, QueryList } from '@angular/core';
3
- import { DataGridRowDefDirective } from '../data-grid-row-def.directive';
4
- import { Required } from '@rxap/utilities';
5
- import * as i0 from "@angular/core";
6
- import * as i1 from "@angular/common";
7
- import * as i2 from "@rxap/pipes";
8
- export class DataGridReadonlyComponent {
9
- constructor() {
10
- this.header = true;
11
- }
12
- }
13
- DataGridReadonlyComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: DataGridReadonlyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
14
- 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 });
15
- __decorate([
16
- Required,
17
- __metadata("design:type", Object)
18
- ], DataGridReadonlyComponent.prototype, "data", void 0);
19
- __decorate([
20
- Required,
21
- __metadata("design:type", QueryList)
22
- ], DataGridReadonlyComponent.prototype, "rows", void 0);
23
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: DataGridReadonlyComponent, decorators: [{
24
- type: Component,
25
- args: [{
26
- // tslint:disable-next-line:component-selector
27
- selector: 'rxap-data-grid-readonly',
28
- templateUrl: './data-grid-readonly.component.html',
29
- styleUrls: ['./data-grid-readonly.component.scss'],
30
- changeDetection: ChangeDetectionStrategy.OnPush,
31
- host: { class: 'rxap-data-grid-readonly' }
32
- }]
33
- }], propDecorators: { header: [{
34
- type: Input
35
- }], data: [{
36
- type: Input
37
- }], rows: [{
38
- type: ContentChildren,
39
- args: [DataGridRowDefDirective]
40
- }] } });
41
- //# sourceMappingURL=data-grid-readonly.component.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"data-grid-readonly.component.js","sourceRoot":"","sources":["../../../../../../libs/data-grid/src/lib/readonly/data-grid-readonly.component.ts","../../../../../../libs/data-grid/src/lib/readonly/data-grid-readonly.component.html"],"names":[],"mappings":";AAAA,OAAO,EACL,SAAS,EACT,uBAAuB,EACvB,KAAK,EACL,eAAe,EACf,SAAS,EACV,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,uBAAuB,EAAE,MAAM,gCAAgC,CAAC;AACzE,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;;;;AAU3C,MAAM,OAAO,yBAAyB;IARtC;QAWS,WAAM,GAAY,IAAI,CAAC;KAS/B;;sHAZY,yBAAyB;0GAAzB,yBAAyB,qLASnB,uBAAuB,6BC3B1C,+tBA6BA;ADJE;IADC,QAAQ;;uDACY;AAIrB;IADC,QAAQ;8BACK,SAAS;uDAA6B;2FAXzC,yBAAyB;kBARrC,SAAS;mBAAC;oBACT,8CAA8C;oBAC9C,QAAQ,EAAS,yBAAyB;oBAC1C,WAAW,EAAM,qCAAqC;oBACtD,SAAS,EAAQ,CAAE,qCAAqC,CAAE;oBAC1D,eAAe,EAAE,uBAAuB,CAAC,MAAM;oBAC/C,IAAI,EAAa,EAAE,KAAK,EAAE,yBAAyB,EAAE;iBACtD;8BAIQ,MAAM;sBADZ,KAAK;gBAKC,IAAI;sBAFV,KAAK;gBAMC,IAAI;sBAFV,eAAe;uBAAC,uBAAuB","sourcesContent":["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"]}
@@ -1,33 +0,0 @@
1
- import { NgModule } from '@angular/core';
2
- import { DataGridReadonlyComponent } from './data-grid-readonly.component';
3
- import { DataGridModule } from '../data-grid.component.module';
4
- import { CommonModule } from '@angular/common';
5
- import { GetFromObjectPipeModule } from '@rxap/pipes';
6
- import * as i0 from "@angular/core";
7
- export class DataGridReadonlyComponentModule {
8
- }
9
- DataGridReadonlyComponentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: DataGridReadonlyComponentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
10
- DataGridReadonlyComponentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: DataGridReadonlyComponentModule, declarations: [DataGridReadonlyComponent], imports: [GetFromObjectPipeModule,
11
- CommonModule], exports: [DataGridReadonlyComponent,
12
- DataGridModule] });
13
- DataGridReadonlyComponentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: DataGridReadonlyComponentModule, imports: [[
14
- GetFromObjectPipeModule,
15
- CommonModule
16
- ], DataGridModule] });
17
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImport: i0, type: DataGridReadonlyComponentModule, decorators: [{
18
- type: NgModule,
19
- args: [{
20
- exports: [
21
- DataGridReadonlyComponent,
22
- DataGridModule
23
- ],
24
- imports: [
25
- GetFromObjectPipeModule,
26
- CommonModule
27
- ],
28
- declarations: [
29
- DataGridReadonlyComponent
30
- ]
31
- }]
32
- }] });
33
- //# sourceMappingURL=data-grid-readonly.component.module.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"data-grid-readonly.component.module.js","sourceRoot":"","sources":["../../../../../../libs/data-grid/src/lib/readonly/data-grid-readonly.component.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;;AAetD,MAAM,OAAO,+BAA+B;;4HAA/B,+BAA+B;6HAA/B,+BAA+B,iBAHxC,yBAAyB,aAJzB,uBAAuB;QACvB,YAAY,aALZ,yBAAyB;QACzB,cAAc;6HAUL,+BAA+B,YARjC;YACP,uBAAuB;YACvB,YAAY;SACb,EALC,cAAc;2FAUL,+BAA+B;kBAb3C,QAAQ;mBAAC;oBACR,OAAO,EAAE;wBACP,yBAAyB;wBACzB,cAAc;qBACf;oBACD,OAAO,EAAE;wBACP,uBAAuB;wBACvB,YAAY;qBACb;oBACD,YAAY,EAAE;wBACZ,yBAAyB;qBAC1B;iBACF","sourcesContent":["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"]}
@@ -1,5 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- export * from './index';
5
- //# sourceMappingURL=rxap-data-grid.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"rxap-data-grid.js","sourceRoot":"","sources":["../../../../libs/data-grid/src/rxap-data-grid.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,SAAS,CAAC","sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"rxap-data-grid.js","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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"}