@rxap/data-grid 21.0.1-dev.1 → 22.0.0-dev.0

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 (48) hide show
  1. package/CHANGELOG.md +34 -0
  2. package/compodoc/changelog.html +32 -0
  3. package/compodoc/dependencies.html +10 -10
  4. package/compodoc/js/search/search_index.js +2 -2
  5. package/compodoc/properties.html +1 -1
  6. package/docs/documentation.json +100 -100
  7. package/docs/html/classes/DataGridCellDefDirective.html +2 -2
  8. package/docs/html/classes/DataGridComponent.html +5 -5
  9. package/docs/html/classes/DataGridEditCellDefDirective.html +2 -2
  10. package/docs/html/classes/DataGridHeaderCellDefDirective.html +2 -2
  11. package/docs/html/classes/DataGridRowDefDirective.html +3 -3
  12. package/docs/html/classes/DataGridValuePipe.html +2 -2
  13. package/docs/html/classes/IsEmptyPipe.html +2 -2
  14. package/docs/html/enums/DataGridMode.html +3 -3
  15. package/docs/html/index.html +2 -2
  16. package/docs/html/interfaces/DataGridCellDefDirectiveContext.html +2 -2
  17. package/docs/html/interfaces/DataGridEditCellDefDirectiveContext.html +2 -2
  18. package/docs/html/interfaces/DataGridHeaderCellDefDirectiveContext.html +2 -2
  19. package/docs/html/modules.html +1 -1
  20. package/docs/markdown/README.md +1 -1
  21. package/docs/markdown/classes/DataGridCellDefDirective.md +6 -6
  22. package/docs/markdown/classes/DataGridComponent.md +38 -38
  23. package/docs/markdown/classes/DataGridEditCellDefDirective.md +4 -4
  24. package/docs/markdown/classes/DataGridHeaderCellDefDirective.md +4 -4
  25. package/docs/markdown/classes/DataGridRowDefDirective.md +9 -9
  26. package/docs/markdown/classes/DataGridValuePipe.md +3 -3
  27. package/docs/markdown/classes/IsEmptyPipe.md +3 -3
  28. package/docs/markdown/enumerations/DataGridMode.md +4 -4
  29. package/docs/markdown/globals.md +2 -2
  30. package/docs/markdown/interfaces/DataGridCellDefDirectiveContext.md +4 -4
  31. package/docs/markdown/interfaces/DataGridEditCellDefDirectiveContext.md +4 -4
  32. package/docs/markdown/interfaces/DataGridHeaderCellDefDirectiveContext.md +3 -3
  33. package/docs/wiki/Class.DataGridCellDefDirective.md +5 -5
  34. package/docs/wiki/Class.DataGridComponent.md +37 -37
  35. package/docs/wiki/Class.DataGridEditCellDefDirective.md +3 -3
  36. package/docs/wiki/Class.DataGridHeaderCellDefDirective.md +3 -3
  37. package/docs/wiki/Class.DataGridRowDefDirective.md +8 -8
  38. package/docs/wiki/Class.DataGridValuePipe.md +2 -2
  39. package/docs/wiki/Class.IsEmptyPipe.md +2 -2
  40. package/docs/wiki/Enumeration.DataGridMode.md +3 -3
  41. package/docs/wiki/Interface.DataGridCellDefDirectiveContext.md +3 -3
  42. package/docs/wiki/Interface.DataGridEditCellDefDirectiveContext.md +3 -3
  43. package/docs/wiki/Interface.DataGridHeaderCellDefDirectiveContext.md +2 -2
  44. package/docs/wiki/globals.md +1 -1
  45. package/fesm2022/rxap-data-grid.mjs +803 -388
  46. package/fesm2022/rxap-data-grid.mjs.map +1 -1
  47. package/package.json +28 -28
  48. package/types/rxap-data-grid.d.ts +184 -137
@@ -1,147 +1,194 @@
1
- import * as _angular_core from '@angular/core';
2
- import { TemplateRef, PipeTransform, OnInit, OnDestroy } from '@angular/core';
3
- import { Observable } from 'rxjs';
4
- import { DataSource, DataSourceViewer } from '@rxap/pattern';
5
- import { ToggleSubject } from '@rxap/rxjs';
6
-
7
- interface DataGridCellDefDirectiveContext<T extends Record<string, any> = Record<string, any>> {
8
- $implicit: T[keyof T];
9
- data: T;
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ import * as i0 from "@angular/core";
5
+ import { OnDestroy, OnInit, PipeTransform, TemplateRef } from "@angular/core";
6
+ import { Observable } from "rxjs";
7
+ import { DataSource, DataSourceViewer } from "@rxap/pattern";
8
+ import { ToggleSubject } from "@rxap/rxjs";
9
+ export interface DataGridCellDefDirectiveContext<T extends Record<string, any> = Record<string, any>> {
10
+ $implicit: T[keyof T];
11
+ data: T;
10
12
  }
11
- declare class DataGridCellDefDirective<T extends Record<string, any>> {
12
- template: TemplateRef<DataGridCellDefDirectiveContext<T>>;
13
- static ngTemplateContextGuard<T extends Record<string, any>>(dir: DataGridCellDefDirective<T>, ctx: any): ctx is DataGridCellDefDirectiveContext<T>;
14
- $implicit: T[keyof T];
15
- data: T;
16
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<DataGridCellDefDirective<any>, never>;
17
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<DataGridCellDefDirective<any>, "[rxapDataGridCellDef]", never, {}, {}, never, never, true, never>;
13
+ export declare class DataGridCellDefDirective<T extends Record<string, any>> {
14
+ template: TemplateRef<DataGridCellDefDirectiveContext<T>>;
15
+ static ngTemplateContextGuard<T extends Record<string, any>>(dir: DataGridCellDefDirective<T>, ctx: any): ctx is DataGridCellDefDirectiveContext<T>;
16
+ $implicit: T[keyof T];
17
+ data: T;
18
+ static ɵfac: i0.ɵɵFactoryDeclaration<DataGridCellDefDirective<any>, never>;
19
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DataGridCellDefDirective<any>, "[rxapDataGridCellDef]", never, {}, {}, never, never, true, never>;
18
20
  }
19
-
20
- interface DataGridEditCellDefDirectiveContext<T extends Record<string, any> = Record<string, any>> {
21
- $implicit: T[keyof T];
22
- data: T;
21
+ export interface DataGridEditCellDefDirectiveContext<T extends Record<string, any> = Record<string, any>> {
22
+ $implicit: T[keyof T];
23
+ data: T;
23
24
  }
24
- declare class DataGridEditCellDefDirective<T extends Record<string, any>> {
25
- template: TemplateRef<DataGridEditCellDefDirectiveContext<T>>;
26
- static ngTemplateContextGuard<T extends Record<string, any>>(dir: DataGridEditCellDefDirective<T>, ctx: any): ctx is DataGridEditCellDefDirectiveContext<T>;
27
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<DataGridEditCellDefDirective<any>, never>;
28
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<DataGridEditCellDefDirective<any>, "[rxapDataGridEditCellDef]", never, {}, {}, never, never, true, never>;
25
+ export declare class DataGridEditCellDefDirective<T extends Record<string, any>> {
26
+ template: TemplateRef<DataGridEditCellDefDirectiveContext<T>>;
27
+ static ngTemplateContextGuard<T extends Record<string, any>>(dir: DataGridEditCellDefDirective<T>, ctx: any): ctx is DataGridEditCellDefDirectiveContext<T>;
28
+ static ɵfac: i0.ɵɵFactoryDeclaration<DataGridEditCellDefDirective<any>, never>;
29
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DataGridEditCellDefDirective<any>, "[rxapDataGridEditCellDef]", never, {}, {}, never, never, true, never>;
29
30
  }
30
-
31
- interface DataGridHeaderCellDefDirectiveContext {
32
- $implicit: string;
31
+ export interface DataGridHeaderCellDefDirectiveContext {
32
+ $implicit: string;
33
33
  }
34
- declare class DataGridHeaderCellDefDirective {
35
- template: TemplateRef<DataGridHeaderCellDefDirectiveContext>;
36
- static ngTemplateContextGuard(dir: DataGridHeaderCellDefDirective, ctx: any): ctx is DataGridHeaderCellDefDirectiveContext;
37
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<DataGridHeaderCellDefDirective, never>;
38
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<DataGridHeaderCellDefDirective, "[rxapDataGridHeaderCellDef]", never, {}, {}, never, never, true, never>;
34
+ export declare class DataGridHeaderCellDefDirective {
35
+ template: TemplateRef<DataGridHeaderCellDefDirectiveContext>;
36
+ static ngTemplateContextGuard(dir: DataGridHeaderCellDefDirective, ctx: any): ctx is DataGridHeaderCellDefDirectiveContext;
37
+ static ɵfac: i0.ɵɵFactoryDeclaration<DataGridHeaderCellDefDirective, never>;
38
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DataGridHeaderCellDefDirective, "[rxapDataGridHeaderCellDef]", never, {}, {}, never, never, true, never>;
39
39
  }
40
-
41
- declare class DataGridRowDefDirective<T extends Record<string, any>> {
42
- readonly data: _angular_core.InputSignal<any>;
43
- readonly name: _angular_core.InputSignal<string | undefined>;
44
- /**
45
- * true - the header and content cell are "rotated" by 90°. The header is above the content cell and both have a
46
- * colspan
47
- *
48
- * **flip: false**
49
- * Label | Value
50
- * --- | ---
51
- * Header | Content
52
- *
53
- * **flip: true**
54
- * Label | Value
55
- * --- | ---
56
- * Header (colspan 2)
57
- * Content (colspan 2)
58
- *
59
- */
60
- readonly flip: _angular_core.InputSignalWithTransform<boolean, any>;
61
- readonly cell: _angular_core.Signal<DataGridCellDefDirective<Record<string, any>> | undefined>;
62
- readonly headerCell: _angular_core.Signal<DataGridHeaderCellDefDirective | undefined>;
63
- readonly editCell: _angular_core.Signal<DataGridEditCellDefDirective<Record<string, any>> | undefined>;
64
- get isSubHeader(): boolean;
65
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<DataGridRowDefDirective<any>, never>;
66
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<DataGridRowDefDirective<any>, "[rxapDataGridRowDef]", never, { "data": { "alias": "data"; "required": false; "isSignal": true; }; "name": { "alias": "rxapDataGridRowDef"; "required": false; "isSignal": true; }; "flip": { "alias": "flip"; "required": false; "isSignal": true; }; }, {}, ["cell", "headerCell", "editCell"], never, true, never>;
40
+ export declare class DataGridRowDefDirective<T extends Record<string, any>> {
41
+ readonly data: import("@angular/core").InputSignal<any>;
42
+ readonly name: import("@angular/core").InputSignal<string | undefined>;
43
+ /**
44
+ * true - the header and content cell are "rotated" by 90°. The header is above the content cell and both have a
45
+ * colspan
46
+ *
47
+ * **flip: false**
48
+ * Label | Value
49
+ * --- | ---
50
+ * Header | Content
51
+ *
52
+ * **flip: true**
53
+ * Label | Value
54
+ * --- | ---
55
+ * Header (colspan 2)
56
+ * Content (colspan 2)
57
+ *
58
+ */
59
+ readonly flip: import("@angular/core").InputSignalWithTransform<boolean, any>;
60
+ readonly cell: import("@angular/core").Signal<DataGridCellDefDirective<Record<string, any>> | undefined>;
61
+ readonly headerCell: import("@angular/core").Signal<DataGridHeaderCellDefDirective | undefined>;
62
+ readonly editCell: import("@angular/core").Signal<DataGridEditCellDefDirective<Record<string, any>> | undefined>;
63
+ get isSubHeader(): boolean;
64
+ static ɵfac: i0.ɵɵFactoryDeclaration<DataGridRowDefDirective<any>, never>;
65
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DataGridRowDefDirective<any>, "[rxapDataGridRowDef]", never, {
66
+ "data": {
67
+ "alias": "data";
68
+ "required": false;
69
+ "isSignal": true;
70
+ };
71
+ "name": {
72
+ "alias": "rxapDataGridRowDef";
73
+ "required": false;
74
+ "isSignal": true;
75
+ };
76
+ "flip": {
77
+ "alias": "flip";
78
+ "required": false;
79
+ "isSignal": true;
80
+ };
81
+ }, {}, ["cell", "headerCell", "editCell"], never, true, never>;
67
82
  }
68
-
69
- declare class DataGridValuePipe<T extends Record<string, unknown>> implements PipeTransform {
70
- transform(data: Observable<T>, path?: string): Observable<unknown>;
71
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<DataGridValuePipe<any>, never>;
72
- static ɵpipe: _angular_core.ɵɵPipeDeclaration<DataGridValuePipe<any>, "dataGridValue", true>;
83
+ export declare class DataGridValuePipe<T extends Record<string, unknown>> implements PipeTransform {
84
+ transform(data: Observable<T>, path?: string): Observable<unknown>;
85
+ static ɵfac: i0.ɵɵFactoryDeclaration<DataGridValuePipe<any>, never>;
86
+ static ɵpipe: i0.ɵɵPipeDeclaration<DataGridValuePipe<any>, "dataGridValue", true>;
73
87
  }
74
-
75
- declare enum DataGridMode {
76
- /**
77
- * The view cell template is used to display the property value
78
- */
79
- PLAIN = "plain",
80
- /**
81
- * The edit cell template is used to display the property value, but the form and all controls are marked as disabled
82
- */
83
- FORM = "form"
88
+ export declare enum DataGridMode {
89
+ /**
90
+ * The view cell template is used to display the property value
91
+ */
92
+ PLAIN = "plain",
93
+ /**
94
+ * The edit cell template is used to display the property value, but the form and all controls are marked as disabled
95
+ */
96
+ FORM = "form"
84
97
  }
85
- declare class DataGridComponent<T extends Record<string, any>> implements OnInit, OnDestroy {
86
- private readonly router;
87
- private readonly formDirective;
88
- isDevMode: boolean;
89
- readonly header: _angular_core.InputSignalWithTransform<boolean, any>;
90
- readonly dataSource: _angular_core.InputSignal<DataSource<T, DataSourceViewer> | undefined>;
91
- data$: Observable<T>;
92
- readonly viewer: _angular_core.InputSignal<DataSourceViewer>;
93
- readonly data: _angular_core.InputSignal<T | undefined>;
94
- /**
95
- * The current data. Initialized from the data input and updated with the values emitted by the data source
96
- */
97
- protected readonly currentData: _angular_core.WritableSignal<T | undefined>;
98
- readonly displayProperties: _angular_core.InputSignal<string[] | null>;
99
- readonly hideEmptyProperties: _angular_core.InputSignalWithTransform<boolean, any>;
100
- readonly rows: _angular_core.Signal<readonly DataGridRowDefDirective<any>[]>;
101
- readonly editModeChange: _angular_core.OutputEmitterRef<{
102
- mode: boolean;
103
- data?: T;
104
- done: () => void;
105
- }>;
106
- readonly rows$: Observable<readonly DataGridRowDefDirective<any>[]>;
107
- hasError$: Observable<boolean>;
108
- dataLoading$: Observable<boolean>;
109
- loading$: ToggleSubject;
110
- readonly mode: _angular_core.InputSignalWithTransform<DataGridMode, string>;
111
- private readonly _editMode;
112
- readonly isEditMode$: Observable<boolean>;
113
- readonly mode$: Observable<DataGridMode>;
114
- readonly isFormMode$: Observable<boolean>;
115
- readonly isPlainMode$: Observable<boolean>;
116
- private _routerEventSubscription;
117
- get isFormModeOrHasAnyEditCells(): boolean;
118
- get isFormMode(): boolean;
119
- get hasAnyEditCells(): boolean;
120
- get isEditMode(): boolean;
121
- set editMode(value: boolean);
122
- /**
123
- * @deprecated use the loading$ property instead
124
- */
125
- get loading(): boolean;
126
- logCurrentFormState(): void;
127
- ngOnInit(): void;
128
- ngOnDestroy(): void;
129
- enableEditMode(skipPatchValue?: boolean): void;
130
- disableEditMode(): void;
131
- submit(): void;
132
- reset(): void;
133
- refresh(): void;
134
- cancel(): void;
135
- retry(): void;
136
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<DataGridComponent<any>, never>;
137
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<DataGridComponent<any>, "rxap-data-grid", never, { "header": { "alias": "header"; "required": false; "isSignal": true; }; "dataSource": { "alias": "dataSource"; "required": false; "isSignal": true; }; "viewer": { "alias": "viewer"; "required": false; "isSignal": true; }; "data": { "alias": "data"; "required": false; "isSignal": true; }; "displayProperties": { "alias": "displayProperties"; "required": false; "isSignal": true; }; "hideEmptyProperties": { "alias": "hideEmptyProperties"; "required": false; "isSignal": true; }; "mode": { "alias": "mode"; "required": false; "isSignal": true; }; }, { "editModeChange": "editModeChange"; }, ["rows"], never, true, never>;
98
+ export declare class DataGridComponent<T extends Record<string, any>> implements OnInit, OnDestroy {
99
+ private readonly router;
100
+ private readonly formDirective;
101
+ isDevMode: boolean;
102
+ readonly header: import("@angular/core").InputSignalWithTransform<boolean, any>;
103
+ readonly dataSource: import("@angular/core").InputSignal<DataSource<T, DataSourceViewer> | undefined>;
104
+ data$: Observable<T>;
105
+ readonly viewer: import("@angular/core").InputSignal<DataSourceViewer>;
106
+ readonly data: import("@angular/core").InputSignal<T | undefined>;
107
+ /**
108
+ * The current data. Initialized from the data input and updated with the values emitted by the data source
109
+ */
110
+ protected readonly currentData: import("@angular/core").WritableSignal<T | undefined>;
111
+ readonly displayProperties: import("@angular/core").InputSignal<string[] | null>;
112
+ readonly hideEmptyProperties: import("@angular/core").InputSignalWithTransform<boolean, any>;
113
+ readonly rows: import("@angular/core").Signal<readonly DataGridRowDefDirective<any>[]>;
114
+ readonly editModeChange: import("@angular/core").OutputEmitterRef<{
115
+ mode: boolean;
116
+ data?: T;
117
+ done: () => void;
118
+ }>;
119
+ readonly rows$: Observable<readonly DataGridRowDefDirective<any>[]>;
120
+ hasError$: Observable<boolean>;
121
+ dataLoading$: Observable<boolean>;
122
+ loading$: ToggleSubject;
123
+ readonly mode: import("@angular/core").InputSignalWithTransform<DataGridMode, string>;
124
+ private readonly _editMode;
125
+ readonly isEditMode$: Observable<boolean>;
126
+ readonly mode$: Observable<DataGridMode>;
127
+ readonly isFormMode$: Observable<boolean>;
128
+ readonly isPlainMode$: Observable<boolean>;
129
+ private _routerEventSubscription;
130
+ get isFormModeOrHasAnyEditCells(): boolean;
131
+ get isFormMode(): boolean;
132
+ get hasAnyEditCells(): boolean;
133
+ get isEditMode(): boolean;
134
+ set editMode(value: boolean);
135
+ /**
136
+ * @deprecated use the loading$ property instead
137
+ */
138
+ get loading(): boolean;
139
+ logCurrentFormState(): void;
140
+ ngOnInit(): void;
141
+ ngOnDestroy(): void;
142
+ enableEditMode(skipPatchValue?: boolean): void;
143
+ disableEditMode(): void;
144
+ submit(): void;
145
+ reset(): void;
146
+ refresh(): void;
147
+ cancel(): void;
148
+ retry(): void;
149
+ static ɵfac: i0.ɵɵFactoryDeclaration<DataGridComponent<any>, never>;
150
+ static ɵcmp: i0.ɵɵComponentDeclaration<DataGridComponent<any>, "rxap-data-grid", never, {
151
+ "header": {
152
+ "alias": "header";
153
+ "required": false;
154
+ "isSignal": true;
155
+ };
156
+ "dataSource": {
157
+ "alias": "dataSource";
158
+ "required": false;
159
+ "isSignal": true;
160
+ };
161
+ "viewer": {
162
+ "alias": "viewer";
163
+ "required": false;
164
+ "isSignal": true;
165
+ };
166
+ "data": {
167
+ "alias": "data";
168
+ "required": false;
169
+ "isSignal": true;
170
+ };
171
+ "displayProperties": {
172
+ "alias": "displayProperties";
173
+ "required": false;
174
+ "isSignal": true;
175
+ };
176
+ "hideEmptyProperties": {
177
+ "alias": "hideEmptyProperties";
178
+ "required": false;
179
+ "isSignal": true;
180
+ };
181
+ "mode": {
182
+ "alias": "mode";
183
+ "required": false;
184
+ "isSignal": true;
185
+ };
186
+ }, {
187
+ "editModeChange": "editModeChange";
188
+ }, ["rows"], never, true, never>;
138
189
  }
139
-
140
- declare class IsEmptyPipe<T extends Record<string, unknown>> implements PipeTransform {
141
- transform(data: Observable<T>, path?: string): Observable<boolean>;
142
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<IsEmptyPipe<any>, never>;
143
- static ɵpipe: _angular_core.ɵɵPipeDeclaration<IsEmptyPipe<any>, "isEmpty", true>;
144
- }
145
-
146
- export { DataGridCellDefDirective, DataGridComponent, DataGridEditCellDefDirective, DataGridHeaderCellDefDirective, DataGridMode, DataGridRowDefDirective, DataGridValuePipe, IsEmptyPipe };
147
- export type { DataGridCellDefDirectiveContext, DataGridEditCellDefDirectiveContext, DataGridHeaderCellDefDirectiveContext };
190
+ export declare class IsEmptyPipe<T extends Record<string, unknown>> implements PipeTransform {
191
+ transform(data: Observable<T>, path?: string): Observable<boolean>;
192
+ static ɵfac: i0.ɵɵFactoryDeclaration<IsEmptyPipe<any>, never>;
193
+ static ɵpipe: i0.ɵɵPipeDeclaration<IsEmptyPipe<any>, "isEmpty", true>;
194
+ }