@rxap/material-table-system 12.4.1 → 12.5.3
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/bundles/rxap-material-table-system.umd.js +99 -12
- package/bundles/rxap-material-table-system.umd.js.map +1 -1
- package/esm2015/index.js +1 -0
- package/esm2015/index.js.map +1 -1
- package/esm2015/lib/persistent-paginator.directive.js +63 -0
- package/esm2015/lib/persistent-paginator.directive.js.map +1 -0
- package/esm2015/lib/table-filter/filter-header-row.directive.js +4 -4
- package/esm2015/lib/table-filter/filter-header-row.directive.js.map +1 -1
- package/esm2015/lib/table-filter/table-filter.service.js +5 -0
- package/esm2015/lib/table-filter/table-filter.service.js.map +1 -1
- package/esm2015/lib/table-row-actions/table-row-action.directive.js +21 -6
- package/esm2015/lib/table-row-actions/table-row-action.directive.js.map +1 -1
- package/fesm2015/rxap-material-table-system.js +88 -9
- package/fesm2015/rxap-material-table-system.js.map +1 -1
- package/index.d.ts +1 -0
- package/lib/persistent-paginator.directive.d.ts +23 -0
- package/lib/table-filter/table-filter.service.d.ts +1 -0
- package/lib/table-row-actions/table-row-action.directive.d.ts +16 -0
- package/package.json +6 -6
package/index.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ export * from './lib/select-row/tokens';
|
|
|
17
17
|
export * from './lib/row-animation';
|
|
18
18
|
export * from './lib/table-data-source.directive';
|
|
19
19
|
export * from './lib/table-row-metadata';
|
|
20
|
+
export * from './lib/persistent-paginator.directive';
|
|
20
21
|
export * from './lib/table-filter/filter-header-row.directive';
|
|
21
22
|
export * from './lib/table-filter/table-filter.module';
|
|
22
23
|
export * from './lib/table-filter/table-filter.service';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { MatPaginator } from '@angular/material/paginator';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class PersistentPaginatorDirective implements OnInit, OnDestroy {
|
|
5
|
+
private readonly matPaginator;
|
|
6
|
+
id?: string;
|
|
7
|
+
private _subscription?;
|
|
8
|
+
constructor(matPaginator: MatPaginator);
|
|
9
|
+
ngOnInit(): void;
|
|
10
|
+
ngOnDestroy(): void;
|
|
11
|
+
getKey(): string;
|
|
12
|
+
storeConfig(): void;
|
|
13
|
+
restoreConfig(): {
|
|
14
|
+
pageSize: number;
|
|
15
|
+
} | null;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PersistentPaginatorDirective, never>;
|
|
17
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<PersistentPaginatorDirective, "mat-paginator[rxapPersistent]", never, { "id": "id"; }, {}, never>;
|
|
18
|
+
}
|
|
19
|
+
export declare class PersistentPaginatorDirectiveModule {
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PersistentPaginatorDirectiveModule, never>;
|
|
21
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<PersistentPaginatorDirectiveModule, [typeof PersistentPaginatorDirective], never, [typeof PersistentPaginatorDirective]>;
|
|
22
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<PersistentPaginatorDirectiveModule>;
|
|
23
|
+
}
|
|
@@ -7,6 +7,7 @@ export declare class TableFilterService implements FilterLike, OnDestroy {
|
|
|
7
7
|
current: Record<string, any>;
|
|
8
8
|
private _subscription;
|
|
9
9
|
constructor();
|
|
10
|
+
setMap(map: Record<string, any>): void;
|
|
10
11
|
set(key: string, value: any): void;
|
|
11
12
|
remove(key: string): void;
|
|
12
13
|
ngOnDestroy(): void;
|
|
@@ -23,6 +23,7 @@ export declare class TableRowActionDirective<Data extends Record<string, any>> {
|
|
|
23
23
|
private readonly executingDirective?;
|
|
24
24
|
private _currentStatus;
|
|
25
25
|
private readonly actionMethodList;
|
|
26
|
+
private _actionDisabled;
|
|
26
27
|
constructor(actionMethodList: Array<TableRowActionMethod<Data>> | TableRowActionMethod<Data>, cdr: ChangeDetectorRef, vcr: ViewContainerRef, tableDataSourceDirective: TableDataSourceDirective, snackBar: MatSnackBar, matButton: MatButton | null);
|
|
27
28
|
onConfirmed(): Promise<void>;
|
|
28
29
|
onClick($event: Event): Promise<void>;
|
|
@@ -40,7 +41,22 @@ export declare class TableRowActionDirective<Data extends Record<string, any>> {
|
|
|
40
41
|
* @private
|
|
41
42
|
*/
|
|
42
43
|
private findTypedActionMethod;
|
|
44
|
+
/**
|
|
45
|
+
* Disables the action. If the button is pressed the action is NOT executed
|
|
46
|
+
*
|
|
47
|
+
* Hint: the button is set to disabled = true to prevent any conflict with
|
|
48
|
+
* extern button enable features linke : rxapHasEnablePermission
|
|
49
|
+
* @protected
|
|
50
|
+
*/
|
|
43
51
|
protected setButtonDisabled(): void;
|
|
52
|
+
/**
|
|
53
|
+
* Enables the action. If the button is pressed the action is executed
|
|
54
|
+
*
|
|
55
|
+
* TODO : find a way to communicate the disabled state between the features
|
|
56
|
+
* Hint: the button is set to disabled = false to prevent any conflict with
|
|
57
|
+
* extern button enable features linke : rxapHasEnablePermission
|
|
58
|
+
* @protected
|
|
59
|
+
*/
|
|
44
60
|
protected setButtonEnabled(): void;
|
|
45
61
|
private setStatus;
|
|
46
62
|
static ɵfac: i0.ɵɵFactoryDeclaration<TableRowActionDirective<any>, [null, null, null, null, null, { optional: true; }]>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rxap/material-table-system",
|
|
3
|
-
"version": "12.
|
|
3
|
+
"version": "12.5.3",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular-devkit/schematics": "^12.2.9",
|
|
6
6
|
"@angular/animations": "^12.0.1",
|
|
@@ -15,17 +15,17 @@
|
|
|
15
15
|
"@angular/router": "^12.0.1",
|
|
16
16
|
"@rxap/components": "^12.0.10",
|
|
17
17
|
"@rxap/config": "^12.3.0",
|
|
18
|
-
"@rxap/data-source": "^12.1.
|
|
18
|
+
"@rxap/data-source": "^12.1.4",
|
|
19
19
|
"@rxap/definition": "^12.0.8",
|
|
20
|
-
"@rxap/directives": "^12.
|
|
21
|
-
"@rxap/forms": "^12.
|
|
20
|
+
"@rxap/directives": "^12.3.0",
|
|
21
|
+
"@rxap/forms": "^12.7.3",
|
|
22
22
|
"@rxap/material-directives": "^12.0.7",
|
|
23
23
|
"@rxap/mixin": "^12.0.7",
|
|
24
|
-
"@rxap/open-api": "^12.
|
|
24
|
+
"@rxap/open-api": "^12.2.5",
|
|
25
25
|
"@rxap/remote-method": "^12.0.9",
|
|
26
26
|
"@rxap/services": "^12.0.8",
|
|
27
27
|
"@rxap/utilities": "^12.2.2",
|
|
28
|
-
"@rxap/window-system": "^12.0
|
|
28
|
+
"@rxap/window-system": "^12.1.0",
|
|
29
29
|
"@schematics/angular": "^12.2.9",
|
|
30
30
|
"reflect-metadata": "^0.1.13",
|
|
31
31
|
"rxjs": "^6.5.5"
|