@rxap/material-table-system 16.0.0-dev.29 → 16.0.0-dev.30
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 +6 -0
- package/README.md +1 -1
- package/esm2022/lib/table-row-actions/abstract-table-row-action.mjs +18 -6
- package/esm2022/lib/table-row-actions/table-row-header-action.directive.mjs +10 -6
- package/fesm2022/rxap-material-table-system.mjs +25 -9
- package/fesm2022/rxap-material-table-system.mjs.map +1 -1
- package/lib/table-row-actions/abstract-table-row-action.d.ts +11 -9
- package/lib/table-row-actions/table-row-header-action.directive.d.ts +4 -3
- package/package.json +6 -6
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Overlay } from '@angular/cdk/overlay';
|
|
2
|
-
import { ChangeDetectorRef, ElementRef, Injector, OnInit, ViewContainerRef } from '@angular/core';
|
|
2
|
+
import { ChangeDetectorRef, ElementRef, Injector, OnInit, Renderer2, ViewContainerRef } from '@angular/core';
|
|
3
3
|
import { MatIconButton } from '@angular/material/button';
|
|
4
4
|
import { ThemePalette } from '@angular/material/core';
|
|
5
5
|
import { MatSnackBar } from '@angular/material/snack-bar';
|
|
@@ -10,13 +10,14 @@ import { TableActionMethodOptions } from './decorators';
|
|
|
10
10
|
import { TableRowActionMethod } from './types';
|
|
11
11
|
import * as i0 from "@angular/core";
|
|
12
12
|
export declare abstract class AbstractTableRowAction<Data extends Record<string, any>> extends ConfirmDirective implements OnInit {
|
|
13
|
+
protected readonly renderer: Renderer2;
|
|
13
14
|
protected readonly cdr: ChangeDetectorRef;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
15
|
+
protected readonly vcr: ViewContainerRef;
|
|
16
|
+
protected readonly tableDataSourceDirective: TableDataSourceDirective;
|
|
17
|
+
protected readonly snackBar: MatSnackBar;
|
|
18
|
+
protected matButton: MatIconButton | null;
|
|
19
|
+
protected matTooltip: MatTooltip | null;
|
|
20
|
+
protected readonly injector: Injector;
|
|
20
21
|
abstract type: string;
|
|
21
22
|
errorMessage?: string;
|
|
22
23
|
successMessage?: string;
|
|
@@ -25,12 +26,13 @@ export declare abstract class AbstractTableRowAction<Data extends Record<string,
|
|
|
25
26
|
*/
|
|
26
27
|
refresh?: boolean;
|
|
27
28
|
color?: ThemePalette;
|
|
29
|
+
readonly isHeader: boolean;
|
|
28
30
|
protected options: TableActionMethodOptions | null;
|
|
29
31
|
private readonly executingDirective?;
|
|
30
32
|
private _currentStatus;
|
|
31
33
|
private readonly actionMethodList;
|
|
32
34
|
private _actionDisabled;
|
|
33
|
-
constructor(overlay: Overlay, elementRef: ElementRef, actionMethodList: Array<TableRowActionMethod<Data>> | TableRowActionMethod<Data>, cdr: ChangeDetectorRef, vcr: ViewContainerRef, tableDataSourceDirective: TableDataSourceDirective, snackBar: MatSnackBar, matButton: MatIconButton | null, matTooltip: MatTooltip | null, injector: Injector);
|
|
35
|
+
constructor(renderer: Renderer2, overlay: Overlay, elementRef: ElementRef, actionMethodList: Array<TableRowActionMethod<Data>> | TableRowActionMethod<Data>, cdr: ChangeDetectorRef, vcr: ViewContainerRef, tableDataSourceDirective: TableDataSourceDirective, snackBar: MatSnackBar, matButton: MatIconButton | null, matTooltip: MatTooltip | null, injector: Injector);
|
|
34
36
|
private _hasConfirmDirective;
|
|
35
37
|
set hasConfirmDirective(value: any);
|
|
36
38
|
ngOnInit(): void;
|
|
@@ -69,6 +71,6 @@ export declare abstract class AbstractTableRowAction<Data extends Record<string,
|
|
|
69
71
|
private findTypedActionMethod;
|
|
70
72
|
private setStatus;
|
|
71
73
|
private getTableActionOptions;
|
|
72
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AbstractTableRowAction<any>, [null, null, null, null, null, null, null, { optional: true; }, { optional: true; }, null]>;
|
|
74
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AbstractTableRowAction<any>, [null, null, null, null, null, null, null, null, { optional: true; }, { optional: true; }, null]>;
|
|
73
75
|
static ɵprov: i0.ɵɵInjectableDeclaration<AbstractTableRowAction<any>>;
|
|
74
76
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Overlay } from '@angular/cdk/overlay';
|
|
2
|
-
import { ChangeDetectorRef, ElementRef, Injector, OnDestroy, OnInit, ViewContainerRef } from '@angular/core';
|
|
2
|
+
import { ChangeDetectorRef, ElementRef, Injector, OnDestroy, OnInit, Renderer2, ViewContainerRef } from '@angular/core';
|
|
3
3
|
import { MatButton } from '@angular/material/button';
|
|
4
4
|
import { MatSnackBar } from '@angular/material/snack-bar';
|
|
5
5
|
import { MatTooltip } from '@angular/material/tooltip';
|
|
@@ -10,12 +10,13 @@ import { TableRowActionMethod } from './types';
|
|
|
10
10
|
import * as i0 from "@angular/core";
|
|
11
11
|
export declare class TableRowHeaderActionDirective<Data extends Record<string, any>> extends AbstractTableRowAction<Data> implements OnInit, OnDestroy {
|
|
12
12
|
private readonly selectRowService;
|
|
13
|
+
readonly isHeader = true;
|
|
13
14
|
private _subscription?;
|
|
14
|
-
constructor(overlay: Overlay, elementRef: ElementRef, actionMethod: TableRowActionMethod<Data>, cdr: ChangeDetectorRef, vcr: ViewContainerRef, tableDataSourceDirective: TableDataSourceDirective, snackBar: MatSnackBar, matButton: MatButton | null, matTooltip: MatTooltip | null, injector: Injector, selectRowService: SelectRowService<Data> | null);
|
|
15
|
+
constructor(renderer: Renderer2, overlay: Overlay, elementRef: ElementRef, actionMethod: TableRowActionMethod<Data>, cdr: ChangeDetectorRef, vcr: ViewContainerRef, tableDataSourceDirective: TableDataSourceDirective, snackBar: MatSnackBar, matButton: MatButton | null, matTooltip: MatTooltip | null, injector: Injector, selectRowService: SelectRowService<Data> | null);
|
|
15
16
|
ngOnDestroy(): void;
|
|
16
17
|
ngOnInit(): void;
|
|
17
18
|
protected getElementList(): Data[];
|
|
18
19
|
type: string;
|
|
19
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TableRowHeaderActionDirective<any>, [null, null, null, null, null, null, null, { optional: true; }, { optional: true; }, null, { optional: true; }]>;
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TableRowHeaderActionDirective<any>, [null, null, null, null, null, null, null, null, { optional: true; }, { optional: true; }, null, { optional: true; }]>;
|
|
20
21
|
static ɵdir: i0.ɵɵDirectiveDeclaration<TableRowHeaderActionDirective<any>, "button[rxapTableRowHeaderAction]", never, { "errorMessage": { "alias": "errorMessage"; "required": false; }; "successMessage": { "alias": "successMessage"; "required": false; }; "refresh": { "alias": "refresh"; "required": false; }; "color": { "alias": "color"; "required": false; }; "type": { "alias": "rxapTableRowHeaderAction"; "required": true; }; }, {}, never, never, true, never>;
|
|
21
22
|
}
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "16.0.0-dev.
|
|
2
|
+
"version": "16.0.0-dev.30",
|
|
3
3
|
"name": "@rxap/material-table-system",
|
|
4
4
|
"license": "GPL-3.0-or-later",
|
|
5
5
|
"dependencies": {
|
|
@@ -15,13 +15,13 @@
|
|
|
15
15
|
"@angular/material": "^16.1.4",
|
|
16
16
|
"@angular/router": "^16.1.4",
|
|
17
17
|
"@rxap/components": "^16.0.0-dev.23",
|
|
18
|
-
"@rxap/data-source": "^16.0.0-dev.
|
|
18
|
+
"@rxap/data-source": "^16.0.0-dev.33",
|
|
19
19
|
"@rxap/directives": "^16.0.0-dev.20",
|
|
20
20
|
"@rxap/forms": "^16.0.0-dev.21",
|
|
21
21
|
"@rxap/material-directives": "^16.0.0-dev.22",
|
|
22
22
|
"@rxap/pattern": "^1.1.0-dev.3",
|
|
23
23
|
"@rxap/reflect-metadata": "^1.0.1-dev.13",
|
|
24
|
-
"@rxap/rxjs": "^1.0
|
|
24
|
+
"@rxap/rxjs": "^1.1.0-dev.0",
|
|
25
25
|
"@rxap/utilities": "^16.0.0-dev.23",
|
|
26
26
|
"@rxap/window-system": "^16.0.0-dev.23",
|
|
27
27
|
"rxjs": "^7.8.1"
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
},
|
|
53
53
|
{
|
|
54
54
|
"package": "@rxap/data-source",
|
|
55
|
-
"version": "16.0.0-dev.
|
|
55
|
+
"version": "16.0.0-dev.33"
|
|
56
56
|
},
|
|
57
57
|
{
|
|
58
58
|
"package": "@rxap/directives",
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
},
|
|
85
85
|
{
|
|
86
86
|
"package": "@rxap/rxjs",
|
|
87
|
-
"version": "1.0
|
|
87
|
+
"version": "1.1.0-dev.0"
|
|
88
88
|
},
|
|
89
89
|
{
|
|
90
90
|
"package": "@rxap/utilities",
|
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
"directory": "packages/angular/material/table-system"
|
|
107
107
|
},
|
|
108
108
|
"sideEffects": false,
|
|
109
|
-
"gitHead": "
|
|
109
|
+
"gitHead": "742fac2d00c985d76973cbd70a95e1b1c0d1772a",
|
|
110
110
|
"module": "fesm2022/rxap-material-table-system.mjs",
|
|
111
111
|
"typings": "index.d.ts",
|
|
112
112
|
"exports": {
|