@rxap/data-grid 16.0.0-dev.2 → 16.0.0-dev.4
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 +201 -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 +263 -0
- package/esm2022/lib/data-grid.module.mjs +40 -0
- package/esm2022/rxap-data-grid.mjs +1 -1
- package/fesm2022/rxap-data-grid.mjs +335 -39
- 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 +71 -0
- package/lib/data-grid.module.d.ts +11 -0
- package/package.json +61 -45
- package/LICENSE +0 -27
- 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
package/index.d.ts
CHANGED
|
@@ -2,4 +2,6 @@ export * from './lib/data-grid-cell-def.directive';
|
|
|
2
2
|
export * from './lib/data-grid-header-cell-def.directive';
|
|
3
3
|
export * from './lib/data-grid-edit-cell-def.directive';
|
|
4
4
|
export * from './lib/data-grid-row-def.directive';
|
|
5
|
-
export * from './lib/
|
|
5
|
+
export * from './lib/data-grid-value.pipe';
|
|
6
|
+
export * from './lib/data-grid.component';
|
|
7
|
+
export * from './lib/data-grid.module';
|
|
@@ -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,71 @@
|
|
|
1
|
+
import { AfterContentInit, ChangeDetectorRef, EventEmitter, OnDestroy, OnInit, QueryList } from '@angular/core';
|
|
2
|
+
import { Router } from '@angular/router';
|
|
3
|
+
import type { BaseDataSource } from '@rxap/data-source';
|
|
4
|
+
import { BaseDataSourceViewer } from '@rxap/data-source';
|
|
5
|
+
import { FormDirective } from '@rxap/forms';
|
|
6
|
+
import { ToggleSubject } from '@rxap/rxjs';
|
|
7
|
+
import { Observable } from 'rxjs';
|
|
8
|
+
import { DataGridRowDefDirective } from './data-grid-row-def.directive';
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
10
|
+
export declare enum DataGridMode {
|
|
11
|
+
/**
|
|
12
|
+
* The view cell template is used to display the property value
|
|
13
|
+
*/
|
|
14
|
+
PLAIN = "plain",
|
|
15
|
+
/**
|
|
16
|
+
* The edit cell template is used to display the property value, but the form and all controls are marked as disabled
|
|
17
|
+
*/
|
|
18
|
+
FORM = "form"
|
|
19
|
+
}
|
|
20
|
+
export declare class DataGridComponent<T extends Record<string, any>> implements OnInit, OnDestroy, AfterContentInit {
|
|
21
|
+
private readonly cdr;
|
|
22
|
+
private readonly router;
|
|
23
|
+
private readonly formDirective?;
|
|
24
|
+
isDevMode: boolean;
|
|
25
|
+
header: boolean;
|
|
26
|
+
dataSource?: BaseDataSource<T>;
|
|
27
|
+
data$: Observable<T>;
|
|
28
|
+
viewer: BaseDataSourceViewer;
|
|
29
|
+
data?: T;
|
|
30
|
+
displayProperties: string[] | null;
|
|
31
|
+
rows: QueryList<DataGridRowDefDirective<T>>;
|
|
32
|
+
editModeChange: EventEmitter<{
|
|
33
|
+
mode: boolean;
|
|
34
|
+
data?: T | undefined;
|
|
35
|
+
done: () => void;
|
|
36
|
+
}>;
|
|
37
|
+
rows$: Observable<QueryList<DataGridRowDefDirective<T>>>;
|
|
38
|
+
hasError$: Observable<boolean>;
|
|
39
|
+
dataLoading$: Observable<boolean>;
|
|
40
|
+
loading$: ToggleSubject;
|
|
41
|
+
readonly isEditMode$: Observable<boolean>;
|
|
42
|
+
readonly mode$: Observable<DataGridMode>;
|
|
43
|
+
readonly isFormMode$: Observable<boolean>;
|
|
44
|
+
readonly isPlainMode$: Observable<boolean>;
|
|
45
|
+
private _editMode$;
|
|
46
|
+
private _mode$;
|
|
47
|
+
private _routerEventSubscription;
|
|
48
|
+
constructor(cdr: ChangeDetectorRef, router: Router, formDirective?: FormDirective<any> | undefined);
|
|
49
|
+
set mode(value: DataGridMode | string);
|
|
50
|
+
get isFormMode(): boolean;
|
|
51
|
+
get hasAnyEditCells(): boolean;
|
|
52
|
+
get isEditMode(): boolean;
|
|
53
|
+
set editMode(value: boolean);
|
|
54
|
+
/**
|
|
55
|
+
* @deprecated use the loading$ property instead
|
|
56
|
+
*/
|
|
57
|
+
get loading(): boolean;
|
|
58
|
+
ngAfterContentInit(): void;
|
|
59
|
+
logCurrentFormState(): void;
|
|
60
|
+
ngOnInit(): void;
|
|
61
|
+
ngOnDestroy(): void;
|
|
62
|
+
enableEditMode(): void;
|
|
63
|
+
disableEditMode(): void;
|
|
64
|
+
submit(): void;
|
|
65
|
+
reset(): void;
|
|
66
|
+
refresh(): void;
|
|
67
|
+
cancel(): void;
|
|
68
|
+
retry(): void;
|
|
69
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DataGridComponent<any>, [null, null, { optional: true; }]>;
|
|
70
|
+
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>;
|
|
71
|
+
}
|
|
@@ -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,78 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rxap/data-grid",
|
|
3
|
-
"version": "16.0.0-dev.
|
|
3
|
+
"version": "16.0.0-dev.4",
|
|
4
4
|
"peerDependencies": {
|
|
5
|
-
"@angular
|
|
6
|
-
"@angular/
|
|
7
|
-
"@angular/
|
|
8
|
-
"@angular/
|
|
9
|
-
"@angular/
|
|
10
|
-
"@
|
|
11
|
-
"@
|
|
12
|
-
"@
|
|
13
|
-
"@rxap/
|
|
14
|
-
"@rxap/
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
"@rxap/
|
|
18
|
-
"@rxap/utilities": "^16.0.0-dev.1",
|
|
19
|
-
"reflect-metadata": "^0.1.13",
|
|
20
|
-
"rxjs": "^6.6.0"
|
|
5
|
+
"@angular/common": "^16.1.4",
|
|
6
|
+
"@angular/core": "^16.1.4",
|
|
7
|
+
"@angular/flex-layout": "^15.0.0-beta.42",
|
|
8
|
+
"@angular/material": "^16.1.4",
|
|
9
|
+
"@angular/router": "^16.1.4",
|
|
10
|
+
"@rxap/data-source": "^16.0.0-dev.5",
|
|
11
|
+
"@rxap/forms": "^16.0.0-dev.4",
|
|
12
|
+
"@rxap/pipes": "^16.0.0-dev.4",
|
|
13
|
+
"@rxap/rxjs": "^1.0.1-dev.0",
|
|
14
|
+
"@rxap/utilities": "^16.0.0-dev.2",
|
|
15
|
+
"rxjs": "^7.8.0",
|
|
16
|
+
"workspace": "1.0.0",
|
|
17
|
+
"@rxap/material-form-system": "16.0.0-dev.5"
|
|
21
18
|
},
|
|
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
|
-
]
|
|
19
|
+
"sideEffects": false,
|
|
20
|
+
"dependencies": {
|
|
21
|
+
"tslib": "2.5.3"
|
|
34
22
|
},
|
|
35
23
|
"publishConfig": {
|
|
36
|
-
"
|
|
37
|
-
"
|
|
24
|
+
"access": "public",
|
|
25
|
+
"directory": "../../../dist/packages/angular/data-grid"
|
|
38
26
|
},
|
|
39
|
-
"license": "MIT",
|
|
40
27
|
"keywords": [
|
|
41
28
|
"rxap",
|
|
42
|
-
"angular"
|
|
29
|
+
"angular",
|
|
30
|
+
"ngx"
|
|
43
31
|
],
|
|
44
|
-
"
|
|
45
|
-
"homepage": "https://gitlab.com/rxap/packages/libs/data-grid",
|
|
46
|
-
"author": "Merzough Münker",
|
|
47
|
-
"private": false,
|
|
32
|
+
"homepage": "https:/gitlab.com/rxap/packages/packages/angular/data-grid",
|
|
48
33
|
"bugs": {
|
|
49
34
|
"url": "https://gitlab.com/rxap/packages/-/issues",
|
|
50
35
|
"email": "incoming+rxap-packages-14898188-issue-@incoming.gitlab.com"
|
|
51
36
|
},
|
|
52
|
-
"
|
|
53
|
-
|
|
37
|
+
"license": "GPL-3.0-or-later",
|
|
38
|
+
"repository": {
|
|
39
|
+
"type": "git",
|
|
40
|
+
"url": "https://gitlab.com/rxap/packages.git",
|
|
41
|
+
"directory": "packages/angular/data-grid"
|
|
54
42
|
},
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
"
|
|
43
|
+
"author": {
|
|
44
|
+
"name": "Merzough Münker",
|
|
45
|
+
"email": "mmuenker@digitaix.com"
|
|
58
46
|
},
|
|
47
|
+
"nx-migrations": {
|
|
48
|
+
"packageGroup": [
|
|
49
|
+
{
|
|
50
|
+
"package": "@rxap/data-source",
|
|
51
|
+
"version": "16.0.0-dev.5"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"package": "@rxap/forms",
|
|
55
|
+
"version": "16.0.0-dev.4"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"package": "@rxap/pipes",
|
|
59
|
+
"version": "16.0.0-dev.4"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"package": "@rxap/rxjs",
|
|
63
|
+
"version": "1.0.1-dev.0"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"package": "@rxap/utilities",
|
|
67
|
+
"version": "16.0.0-dev.2"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"package": "@rxap/material-form-system",
|
|
71
|
+
"version": "16.0.0-dev.4"
|
|
72
|
+
}
|
|
73
|
+
]
|
|
74
|
+
},
|
|
75
|
+
"gitHead": "9ad96f2d4db9225ab199d03fc172efff52609d5d",
|
|
59
76
|
"module": "fesm2022/rxap-data-grid.mjs",
|
|
60
77
|
"typings": "index.d.ts",
|
|
61
78
|
"exports": {
|
|
@@ -68,6 +85,5 @@
|
|
|
68
85
|
"esm": "./esm2022/rxap-data-grid.mjs",
|
|
69
86
|
"default": "./fesm2022/rxap-data-grid.mjs"
|
|
70
87
|
}
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
}
|
|
88
|
+
}
|
|
89
|
+
}
|
package/LICENSE
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
Copyright (c) 2021, Merzough Münker
|
|
2
|
-
All rights reserved.
|
|
3
|
-
|
|
4
|
-
Redistribution and use in source and binary forms, with or without
|
|
5
|
-
modification, are permitted provided that the following conditions are met:
|
|
6
|
-
1. Redistributions of source code must retain the above copyright
|
|
7
|
-
notice, this list of conditions and the following disclaimer.
|
|
8
|
-
2. Redistributions in binary form must reproduce the above copyright
|
|
9
|
-
notice, this list of conditions and the following disclaimer in the
|
|
10
|
-
documentation and/or other materials provided with the distribution.
|
|
11
|
-
3. All advertising materials mentioning features or use of this software
|
|
12
|
-
must display the following acknowledgement:
|
|
13
|
-
This product includes software developed by the Merzough Münker.
|
|
14
|
-
4. Neither the name of the <organization> nor the
|
|
15
|
-
names of its contributors may be used to endorse or promote products
|
|
16
|
-
derived from this software without specific prior written permission.
|
|
17
|
-
|
|
18
|
-
THIS SOFTWARE IS PROVIDED BY <COPYRIGHT HOLDER> ''AS IS'' AND ANY
|
|
19
|
-
EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
20
|
-
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
21
|
-
DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY
|
|
22
|
-
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
23
|
-
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
|
24
|
-
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
|
25
|
-
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
26
|
-
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
27
|
-
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0YS1ncmlkLXJlYWRvbmx5LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvZGF0YS1ncmlkL3NyYy9saWIvcmVhZG9ubHkvZGF0YS1ncmlkLXJlYWRvbmx5LmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvZGF0YS1ncmlkL3NyYy9saWIvcmVhZG9ubHkvZGF0YS1ncmlkLXJlYWRvbmx5LmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPLEVBQ0wsU0FBUyxFQUNULHVCQUF1QixFQUN2QixLQUFLLEVBQ0wsZUFBZSxFQUNmLFNBQVMsRUFDVixNQUFNLGVBQWUsQ0FBQztBQUN2QixPQUFPLEVBQUUsdUJBQXVCLEVBQUUsTUFBTSxnQ0FBZ0MsQ0FBQztBQUN6RSxPQUFPLEVBQUUsUUFBUSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDM0MsT0FBTyxFQUFFLGlCQUFpQixFQUFFLE1BQU0sYUFBYSxDQUFDO0FBQ2hELE9BQU8sRUFDTCxJQUFJLEVBQ0osS0FBSyxFQUNMLGdCQUFnQixFQUNqQixNQUFNLGlCQUFpQixDQUFDOztBQUV6QixNQVVhLHlCQUF5QjtJQVZ0QztRQWFTLFdBQU0sR0FBWSxJQUFJLENBQUM7S0FTL0I7OEdBWlkseUJBQXlCO2tHQUF6Qix5QkFBeUIseU1BU25CLHVCQUF1Qiw2QkNuQzFDLCt0QkE2QkEsMERETHFCLElBQUksNkZBQU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ldCByb3cgb2Ygcm93c1wiPlxuICAgIDxuZy1jb250YWluZXJcbiAgICAgICpuZ1RlbXBsYXRlT3V0bGV0PVwiXG4gICAgICAgICAgcm93LmhlYWRlckNlbGwgPyByb3cuaGVhZGVyQ2VsbC50ZW1wbGF0ZSA6IGRlZmF1bHRIZWFkZXJDZWxsO1xuICAgICAgICAgIGNvbnRleHQ6IHsgJGltcGxpY2l0OiByb3cubmFtZSB9XG4gICAgICAgIFwiXG4gICAgPjwvbmctY29udGFpbmVyPlxuICAgIDxuZy1jb250YWluZXJcbiAgICAgICpuZ1RlbXBsYXRlT3V0bGV0PVwiXG4gICAgICAgICAgcm93LmNlbGwgPyByb3cuY2VsbC50ZW1wbGF0ZSA6IGRlZmF1bHRDZWxsO1xuICAgICAgICAgIGNvbnRleHQ6IHsgJGltcGxpY2l0OiBkYXRhIHwgZ2V0RnJvbU9iamVjdDogcm93Lm5hbWUsIGRhdGE6IGRhdGEgfVxuICAgICAgICBcIlxuICAgID48L25nLWNvbnRhaW5lcj5cbiAgPC90cj5cbjwvdGFibGU+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"}
|