@rxap/data-grid 16.0.0-dev.2 → 16.0.0-dev.21
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.
- package/CHANGELOG.md +307 -0
- package/LICENSE +621 -27
- package/LICENSE.md +621 -0
- package/README.md +7 -22
- package/esm2022/index.mjs +4 -2
- package/esm2022/lib/data-grid-cell-def.directive.mjs +7 -8
- package/esm2022/lib/data-grid-edit-cell-def.directive.mjs +7 -8
- package/esm2022/lib/data-grid-header-cell-def.directive.mjs +7 -8
- package/esm2022/lib/data-grid-row-def.directive.mjs +29 -15
- package/esm2022/lib/data-grid-value.pipe.mjs +22 -0
- package/esm2022/lib/data-grid.component.mjs +251 -0
- package/esm2022/lib/data-grid.module.mjs +40 -0
- package/esm2022/rxap-data-grid.mjs +1 -1
- package/fesm2022/rxap-data-grid.mjs +327 -43
- package/fesm2022/rxap-data-grid.mjs.map +1 -1
- package/index.d.ts +3 -1
- package/lib/data-grid-edit-cell-def.directive.d.ts +2 -3
- package/lib/data-grid-row-def.directive.d.ts +20 -2
- package/lib/data-grid-value.pipe.d.ts +8 -0
- package/lib/data-grid.component.d.ts +70 -0
- package/lib/data-grid.module.d.ts +11 -0
- package/package.json +73 -51
- package/theme.css +1 -0
- package/collection.json +0 -10
- package/esm2022/lib/readonly/data-grid-readonly.component.mjs +0 -35
- package/lib/readonly/data-grid-readonly.component.d.ts +0 -10
- package/migration.json +0 -4
- package/src/schematics/ng-add/index.d.ts +0 -2
- package/src/schematics/ng-add/index.js +0 -8
- package/src/schematics/ng-add/index.js.map +0 -1
- package/src/schematics/ng-add/schema.json +0 -7
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { TemplateRef } from '@angular/core';
|
|
2
|
-
import { FormDirective, RxapFormGroup } from '@rxap/forms';
|
|
3
2
|
import * as i0 from "@angular/core";
|
|
4
3
|
export interface DataGridEditCellDefDirectiveContext<T extends Record<string, any> = Record<string, any>> {
|
|
5
|
-
$implicit:
|
|
6
|
-
|
|
4
|
+
$implicit: T[keyof T];
|
|
5
|
+
data: T;
|
|
7
6
|
}
|
|
8
7
|
export declare class DataGridEditCellDefDirective<T extends Record<string, any>> {
|
|
9
8
|
template: TemplateRef<DataGridEditCellDefDirectiveContext<T>>;
|
|
@@ -4,10 +4,28 @@ import { DataGridEditCellDefDirective } from './data-grid-edit-cell-def.directiv
|
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class DataGridRowDefDirective<T extends Record<string, any>> {
|
|
6
6
|
data: any | null;
|
|
7
|
-
name
|
|
7
|
+
name?: string;
|
|
8
|
+
/**
|
|
9
|
+
* true - the header and content cell are "rotated" by 90°. The header is above the content cell and both have a
|
|
10
|
+
* colspan
|
|
11
|
+
*
|
|
12
|
+
* **flip: false**
|
|
13
|
+
* Label | Value
|
|
14
|
+
* --- | ---
|
|
15
|
+
* Header | Content
|
|
16
|
+
*
|
|
17
|
+
* **flip: true**
|
|
18
|
+
* Label | Value
|
|
19
|
+
* --- | ---
|
|
20
|
+
* Header (colspan 2)
|
|
21
|
+
* Content (colspan 2)
|
|
22
|
+
*
|
|
23
|
+
*/
|
|
24
|
+
flip: boolean;
|
|
8
25
|
cell?: DataGridCellDefDirective<T>;
|
|
9
26
|
headerCell?: DataGridHeaderCellDefDirective;
|
|
10
27
|
editCell?: DataGridEditCellDefDirective<T>;
|
|
28
|
+
get isSubHeader(): boolean;
|
|
11
29
|
static ɵfac: i0.ɵɵFactoryDeclaration<DataGridRowDefDirective<any>, never>;
|
|
12
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<DataGridRowDefDirective<any>, "[rxapDataGridRowDef]", never, { "data": { "alias": "data"; "required": false; }; "name": { "alias": "rxapDataGridRowDef"; "required": false; }; }, {}, ["cell", "headerCell", "editCell"], never, true, never>;
|
|
30
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DataGridRowDefDirective<any>, "[rxapDataGridRowDef]", never, { "data": { "alias": "data"; "required": false; }; "name": { "alias": "rxapDataGridRowDef"; "required": false; }; "flip": { "alias": "flip"; "required": false; }; }, {}, ["cell", "headerCell", "editCell"], never, true, never>;
|
|
13
31
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class DataGridValuePipe<T extends Record<string, unknown>> implements PipeTransform {
|
|
5
|
+
transform(data: Observable<T>, path?: string): Observable<unknown>;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DataGridValuePipe<any>, never>;
|
|
7
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<DataGridValuePipe<any>, "dataGridValue", true>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { AfterContentInit, ChangeDetectorRef, EventEmitter, OnDestroy, OnInit, QueryList } from '@angular/core';
|
|
2
|
+
import { Router } from '@angular/router';
|
|
3
|
+
import { FormDirective } from '@rxap/forms';
|
|
4
|
+
import { DataSource, DataSourceViewer } from '@rxap/pattern';
|
|
5
|
+
import { ToggleSubject } from '@rxap/rxjs';
|
|
6
|
+
import { Observable } from 'rxjs';
|
|
7
|
+
import { DataGridRowDefDirective } from './data-grid-row-def.directive';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
export declare enum DataGridMode {
|
|
10
|
+
/**
|
|
11
|
+
* The view cell template is used to display the property value
|
|
12
|
+
*/
|
|
13
|
+
PLAIN = "plain",
|
|
14
|
+
/**
|
|
15
|
+
* The edit cell template is used to display the property value, but the form and all controls are marked as disabled
|
|
16
|
+
*/
|
|
17
|
+
FORM = "form"
|
|
18
|
+
}
|
|
19
|
+
export declare class DataGridComponent<T extends Record<string, any>> implements OnInit, OnDestroy, AfterContentInit {
|
|
20
|
+
private readonly cdr;
|
|
21
|
+
private readonly router;
|
|
22
|
+
private readonly formDirective?;
|
|
23
|
+
isDevMode: boolean;
|
|
24
|
+
header: boolean;
|
|
25
|
+
dataSource?: DataSource<T>;
|
|
26
|
+
data$: Observable<T>;
|
|
27
|
+
viewer: DataSourceViewer;
|
|
28
|
+
data?: T;
|
|
29
|
+
displayProperties: string[] | null;
|
|
30
|
+
rows: QueryList<DataGridRowDefDirective<T>>;
|
|
31
|
+
editModeChange: EventEmitter<{
|
|
32
|
+
mode: boolean;
|
|
33
|
+
data?: T | undefined;
|
|
34
|
+
done: () => void;
|
|
35
|
+
}>;
|
|
36
|
+
rows$: Observable<QueryList<DataGridRowDefDirective<T>>>;
|
|
37
|
+
hasError$: Observable<boolean>;
|
|
38
|
+
dataLoading$: Observable<boolean>;
|
|
39
|
+
loading$: ToggleSubject;
|
|
40
|
+
readonly isEditMode$: Observable<boolean>;
|
|
41
|
+
readonly mode$: Observable<DataGridMode>;
|
|
42
|
+
readonly isFormMode$: Observable<boolean>;
|
|
43
|
+
readonly isPlainMode$: Observable<boolean>;
|
|
44
|
+
private _editMode$;
|
|
45
|
+
private _mode$;
|
|
46
|
+
private _routerEventSubscription;
|
|
47
|
+
constructor(cdr: ChangeDetectorRef, router: Router, formDirective?: FormDirective<any> | undefined);
|
|
48
|
+
set mode(value: DataGridMode | string);
|
|
49
|
+
get isFormMode(): boolean;
|
|
50
|
+
get hasAnyEditCells(): boolean;
|
|
51
|
+
get isEditMode(): boolean;
|
|
52
|
+
set editMode(value: boolean);
|
|
53
|
+
/**
|
|
54
|
+
* @deprecated use the loading$ property instead
|
|
55
|
+
*/
|
|
56
|
+
get loading(): boolean;
|
|
57
|
+
ngAfterContentInit(): void;
|
|
58
|
+
logCurrentFormState(): void;
|
|
59
|
+
ngOnInit(): void;
|
|
60
|
+
ngOnDestroy(): void;
|
|
61
|
+
enableEditMode(): void;
|
|
62
|
+
disableEditMode(): void;
|
|
63
|
+
submit(): void;
|
|
64
|
+
reset(): void;
|
|
65
|
+
refresh(): void;
|
|
66
|
+
cancel(): void;
|
|
67
|
+
retry(): void;
|
|
68
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DataGridComponent<any>, [null, null, { optional: true; }]>;
|
|
69
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DataGridComponent<any>, "rxap-data-grid", never, { "header": { "alias": "header"; "required": false; }; "dataSource": { "alias": "dataSource"; "required": false; }; "viewer": { "alias": "viewer"; "required": false; }; "data": { "alias": "data"; "required": false; }; "displayProperties": { "alias": "displayProperties"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; }, { "editModeChange": "editModeChange"; }, ["rows"], never, true, never>;
|
|
70
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./data-grid.component";
|
|
3
|
+
import * as i2 from "./data-grid-row-def.directive";
|
|
4
|
+
import * as i3 from "./data-grid-header-cell-def.directive";
|
|
5
|
+
import * as i4 from "./data-grid-cell-def.directive";
|
|
6
|
+
import * as i5 from "./data-grid-edit-cell-def.directive";
|
|
7
|
+
export declare class DataGridModule {
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DataGridModule, never>;
|
|
9
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DataGridModule, never, [typeof i1.DataGridComponent, typeof i2.DataGridRowDefDirective, typeof i3.DataGridHeaderCellDefDirective, typeof i4.DataGridCellDefDirective, typeof i5.DataGridEditCellDefDirective], [typeof i1.DataGridComponent, typeof i2.DataGridRowDefDirective, typeof i3.DataGridHeaderCellDefDirective, typeof i4.DataGridCellDefDirective, typeof i5.DataGridEditCellDefDirective]>;
|
|
10
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<DataGridModule>;
|
|
11
|
+
}
|
package/package.json
CHANGED
|
@@ -1,61 +1,83 @@
|
|
|
1
1
|
{
|
|
2
|
+
"version": "16.0.0-dev.21",
|
|
2
3
|
"name": "@rxap/data-grid",
|
|
3
|
-
"
|
|
4
|
+
"license": "GPL-3.0-or-later",
|
|
5
|
+
"dependencies": {
|
|
6
|
+
"tslib": "2.6.2"
|
|
7
|
+
},
|
|
4
8
|
"peerDependencies": {
|
|
5
|
-
"@angular
|
|
6
|
-
"@angular/
|
|
7
|
-
"@angular/
|
|
8
|
-
"@angular/
|
|
9
|
-
"@
|
|
10
|
-
"@
|
|
11
|
-
"@
|
|
12
|
-
"@
|
|
13
|
-
"@rxap/
|
|
14
|
-
"
|
|
15
|
-
"@rxap/
|
|
16
|
-
"@rxap/pipes": "^16.0.0-dev.2",
|
|
17
|
-
"@rxap/services": "^16.0.0-dev.2",
|
|
18
|
-
"@rxap/utilities": "^16.0.0-dev.1",
|
|
19
|
-
"reflect-metadata": "^0.1.13",
|
|
20
|
-
"rxjs": "^6.6.0"
|
|
9
|
+
"@angular/common": "^16.1.4",
|
|
10
|
+
"@angular/core": "^16.1.4",
|
|
11
|
+
"@angular/material": "^16.1.4",
|
|
12
|
+
"@angular/router": "^16.1.4",
|
|
13
|
+
"@rxap/forms": "^16.0.0-dev.20",
|
|
14
|
+
"@rxap/pattern": "^1.1.0-dev.2",
|
|
15
|
+
"@rxap/pipes": "^16.0.0-dev.17",
|
|
16
|
+
"@rxap/rxjs": "^1.0.1-dev.13",
|
|
17
|
+
"@rxap/utilities": "^16.0.0-dev.23",
|
|
18
|
+
"rxjs": "^7.8.1",
|
|
19
|
+
"@rxap/material-form-system": "16.0.0-dev.21"
|
|
21
20
|
},
|
|
22
|
-
"
|
|
23
|
-
|
|
24
|
-
"
|
|
25
|
-
"packageGroup": [
|
|
26
|
-
"@rxap/data-grid",
|
|
27
|
-
"@rxap/definition",
|
|
28
|
-
"@rxap/directives",
|
|
29
|
-
"@rxap/forms",
|
|
30
|
-
"@rxap/pipes",
|
|
31
|
-
"@rxap/services",
|
|
32
|
-
"@rxap/utilities"
|
|
33
|
-
]
|
|
21
|
+
"author": {
|
|
22
|
+
"name": "Merzough Münker",
|
|
23
|
+
"email": "mmuenker@digitaix.com"
|
|
34
24
|
},
|
|
35
|
-
"publishConfig": {
|
|
36
|
-
"directory": "../../dist/libs/data-grid",
|
|
37
|
-
"access": "public"
|
|
38
|
-
},
|
|
39
|
-
"license": "MIT",
|
|
40
|
-
"keywords": [
|
|
41
|
-
"rxap",
|
|
42
|
-
"angular"
|
|
43
|
-
],
|
|
44
|
-
"repository": "git@gitlab.com:rxap/packages.git",
|
|
45
|
-
"homepage": "https://gitlab.com/rxap/packages/libs/data-grid",
|
|
46
|
-
"author": "Merzough Münker",
|
|
47
|
-
"private": false,
|
|
48
25
|
"bugs": {
|
|
49
26
|
"url": "https://gitlab.com/rxap/packages/-/issues",
|
|
50
27
|
"email": "incoming+rxap-packages-14898188-issue-@incoming.gitlab.com"
|
|
51
28
|
},
|
|
52
|
-
"
|
|
53
|
-
|
|
29
|
+
"homepage": "https:/gitlab.com/rxap/packages/packages/angular/data-grid",
|
|
30
|
+
"keywords": [
|
|
31
|
+
"angular",
|
|
32
|
+
"angular-data-grid",
|
|
33
|
+
"data-grid",
|
|
34
|
+
"ngx",
|
|
35
|
+
"packages",
|
|
36
|
+
"rxap"
|
|
37
|
+
],
|
|
38
|
+
"nx-migrations": {
|
|
39
|
+
"packageGroup": [
|
|
40
|
+
{
|
|
41
|
+
"package": "@rxap/data-source",
|
|
42
|
+
"version": "16.0.0-dev.27"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"package": "@rxap/forms",
|
|
46
|
+
"version": "16.0.0-dev.20"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"package": "@rxap/material-form-system",
|
|
50
|
+
"version": "16.0.0-dev.19"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"package": "@rxap/pattern",
|
|
54
|
+
"version": "1.1.0-dev.2"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"package": "@rxap/pipes",
|
|
58
|
+
"version": "16.0.0-dev.17"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"package": "@rxap/rxjs",
|
|
62
|
+
"version": "1.0.1-dev.13"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"package": "@rxap/utilities",
|
|
66
|
+
"version": "16.0.0-dev.23"
|
|
67
|
+
}
|
|
68
|
+
]
|
|
54
69
|
},
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
"
|
|
70
|
+
"publishConfig": {
|
|
71
|
+
"access": "public",
|
|
72
|
+
"directory": "../../../dist/packages/angular/data-grid"
|
|
73
|
+
},
|
|
74
|
+
"repository": {
|
|
75
|
+
"type": "git",
|
|
76
|
+
"url": "https://gitlab.com/rxap/packages.git",
|
|
77
|
+
"directory": "packages/angular/data-grid"
|
|
58
78
|
},
|
|
79
|
+
"sideEffects": false,
|
|
80
|
+
"gitHead": "68411f5a5ebbd4f29fa2316a7c9f04250cbd5d97",
|
|
59
81
|
"module": "fesm2022/rxap-data-grid.mjs",
|
|
60
82
|
"typings": "index.d.ts",
|
|
61
83
|
"exports": {
|
|
@@ -67,7 +89,7 @@
|
|
|
67
89
|
"esm2022": "./esm2022/rxap-data-grid.mjs",
|
|
68
90
|
"esm": "./esm2022/rxap-data-grid.mjs",
|
|
69
91
|
"default": "./fesm2022/rxap-data-grid.mjs"
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
}
|
|
92
|
+
},
|
|
93
|
+
"./theme": "./theme.css"
|
|
94
|
+
}
|
|
95
|
+
}
|
package/theme.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.visible{visibility:visible}.collapse{visibility:collapse}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.block{display:block}.inline{display:inline}.flex{display:flex}.table{display:table}.grid{display:grid}.contents{display:contents}.hidden{display:none}.h-20{height:5rem}.w-full{width:100%}.table-auto{table-layout:auto}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-center{justify-content:center}.gap-4{gap:1rem}.gap-8{gap:2rem}.gap-x-6{-moz-column-gap:1.5rem;column-gap:1.5rem}.gap-y-6{row-gap:1.5rem}.gap-y-8{row-gap:2rem}.whitespace-nowrap{white-space:nowrap}.p-10{padding:2.5rem}.py-4{padding-top:1rem;padding-bottom:1rem}.pl-8{padding-left:2rem}.pr-4{padding-right:1rem}.pt-8{padding-top:2rem}.text-2xl{font-size:1.5rem;line-height:2rem}.uppercase{text-transform:uppercase}.lowercase{text-transform:lowercase}.capitalize{text-transform:capitalize}.ordinal{--tw-ordinal:ordinal;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.text-red-700{--tw-text-opacity:1;color:rgb(185 28 28/var(--tw-text-opacity))}.invert{--tw-invert:invert(100%)}.filter,.invert{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}
|
package/collection.json
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"schematics": {
|
|
3
|
-
"ng-add": {
|
|
4
|
-
"description": "Setup the package @rxap/data-grid for the workspace.",
|
|
5
|
-
"factory": "./src/schematics/ng-add/index",
|
|
6
|
-
"schema": "./src/schematics/ng-add/schema.json"
|
|
7
|
-
}
|
|
8
|
-
},
|
|
9
|
-
"$schema": "../../node_modules/@angular-devkit/schematics/collection-schema.json"
|
|
10
|
-
}
|
|
@@ -1,35 +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 { GetFromObjectPipe } from '@rxap/pipes';
|
|
6
|
-
import { NgIf, NgFor, NgTemplateOutlet } from '@angular/common';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
class DataGridReadonlyComponent {
|
|
9
|
-
constructor() {
|
|
10
|
-
this.header = true;
|
|
11
|
-
}
|
|
12
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: DataGridReadonlyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
13
|
-
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 }); }
|
|
14
|
-
}
|
|
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
|
-
export { DataGridReadonlyComponent };
|
|
24
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: DataGridReadonlyComponent, decorators: [{
|
|
25
|
-
type: Component,
|
|
26
|
-
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" }]
|
|
27
|
-
}], propDecorators: { header: [{
|
|
28
|
-
type: Input
|
|
29
|
-
}], data: [{
|
|
30
|
-
type: Input
|
|
31
|
-
}], rows: [{
|
|
32
|
-
type: ContentChildren,
|
|
33
|
-
args: [DataGridRowDefDirective]
|
|
34
|
-
}] } });
|
|
35
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0YS1ncmlkLXJlYWRvbmx5LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvZGF0YS1ncmlkL3NyYy9saWIvcmVhZG9ubHkvZGF0YS1ncmlkLXJlYWRvbmx5LmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvZGF0YS1ncmlkL3NyYy9saWIvcmVhZG9ubHkvZGF0YS1ncmlkLXJlYWRvbmx5LmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQ0wsU0FBUyxFQUNULHVCQUF1QixFQUN2QixLQUFLLEVBQ0wsZUFBZSxFQUNmLFNBQVMsRUFDVixNQUFNLGVBQWUsQ0FBQztBQUN2QixPQUFPLEVBQUUsdUJBQXVCLEVBQUUsTUFBTSxnQ0FBZ0MsQ0FBQztBQUN6RSxPQUFPLEVBQUUsUUFBUSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDM0MsT0FBTyxFQUFFLGlCQUFpQixFQUFFLE1BQU0sYUFBYSxDQUFDO0FBQ2hELE9BQU8sRUFDTCxJQUFJLEVBQ0osS0FBSyxFQUNMLGdCQUFnQixFQUNqQixNQUFNLGlCQUFpQixDQUFDOztBQUV6QixNQVVhLHlCQUF5QjtJQVZ0QztRQWFTLFdBQU0sR0FBWSxJQUFJLENBQUM7S0FTL0I7OEdBWlkseUJBQXlCO2tHQUF6Qix5QkFBeUIseU1BU25CLHVCQUF1Qiw2QkNuQzFDLCt0QkE2QkEsMERETHFCLElBQUksNkZBQUUsS0FB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gb2Ygcm93c1wiPlxuICAgIDxuZy1jb250YWluZXJcbiAgICAgICpuZ1RlbXBsYXRlT3V0bGV0PVwiXG4gICAgICAgICAgcm93LmhlYWRlckNlbGwgPyByb3cuaGVhZGVyQ2VsbC50ZW1wbGF0ZSA6IGRlZmF1bHRIZWFkZXJDZWxsO1xuICAgICAgICAgIGNvbnRleHQ6IHsgJGltcGxpY2l0OiByb3cubmFtZSB9XG4gICAgICAgIFwiXG4gICAgPjwvbmctY29udGFpbmVyPlxuICAgIDxuZy1jb250YWluZXJcbiAgICAgICpuZ1RlbXBsYXRlT3V0bGV0PVwiXG4gICAgICAgICAgcm93LmNlbGwgPyByb3cuY2VsbC50ZW1wbGF0ZSA6IGRlZmF1bHRDZWxsO1xuICAgICAgICAgIGNvbnRleHQ6IHsgJGltcGxpY2l0OiBkYXRhIHwgZ2V0RnJvbU9iamVjdDogcm93Lm5hbWUsIGRhdGE6IGRhdGEgfVxuICAgICAgICBcIlxuICAgID48L25nLWNvbnRhaW5lcj5cbiAgPC90cj5cbjwvdGFibGU+XG5cbjxuZy10ZW1wbGF0ZSAjZGVmYXVsdENlbGwgbGV0LXZhbHVlPlxuICA8dGQ+e3sgdmFsdWUgfX08L3RkPlxuPC9uZy10ZW1wbGF0ZT5cbjxuZy10ZW1wbGF0ZSAjZGVmYXVsdEhlYWRlckNlbGwgbGV0LW5hbWU+XG4gIDx0aD57eyBuYW1lIH19PC90aD5cbjwvbmctdGVtcGxhdGU+XG4iXX0=
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { QueryList } from '@angular/core';
|
|
2
|
-
import { DataGridRowDefDirective } from '../data-grid-row-def.directive';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class DataGridReadonlyComponent<T extends Record<string, any>> {
|
|
5
|
-
header: boolean;
|
|
6
|
-
data: object;
|
|
7
|
-
rows: QueryList<DataGridRowDefDirective<T>>;
|
|
8
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DataGridReadonlyComponent<any>, never>;
|
|
9
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DataGridReadonlyComponent<any>, "rxap-data-grid-readonly", never, { "header": { "alias": "header"; "required": false; }; "data": { "alias": "data"; "required": false; }; }, {}, ["rows"], never, true, never>;
|
|
10
|
-
}
|
package/migration.json
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const schematics_utilities_1 = require("@rxap/schematics-utilities");
|
|
4
|
-
function default_1() {
|
|
5
|
-
return (0, schematics_utilities_1.InstallPeerDependencies)();
|
|
6
|
-
}
|
|
7
|
-
exports.default = default_1;
|
|
8
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|