@rxap/material-table-system 13.2.0 → 13.3.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.
- package/esm2020/index.mjs +3 -1
- package/esm2020/lib/cells/link-cell/link-cell.component.mjs +8 -3
- package/esm2020/lib/table-row-actions/decorators.mjs +6 -2
- package/esm2020/lib/table-row-actions/row-action-check.pipe.mjs +43 -0
- package/esm2020/lib/table-row-actions/table-row-action.directive.mjs +1 -1
- package/esm2020/lib/table-row-actions/table-row-action.method.mjs +12 -2
- package/esm2020/lib/table-row-actions/table-row-actions.module.mjs +8 -3
- package/esm2020/lib/table-row-actions/table-row-header-action.directive.mjs +1 -1
- package/esm2020/lib/table-row-actions/types.mjs +2 -0
- package/fesm2015/rxap-material-table-system.mjs +69 -6
- package/fesm2015/rxap-material-table-system.mjs.map +1 -1
- package/fesm2020/rxap-material-table-system.mjs +67 -6
- package/fesm2020/rxap-material-table-system.mjs.map +1 -1
- package/index.d.ts +2 -0
- package/lib/cells/link-cell/link-cell.component.d.ts +2 -1
- package/lib/table-row-actions/decorators.d.ts +3 -1
- package/lib/table-row-actions/row-action-check.pipe.d.ts +10 -0
- package/lib/table-row-actions/table-row-action.directive.d.ts +1 -1
- package/lib/table-row-actions/table-row-action.method.d.ts +3 -7
- package/lib/table-row-actions/table-row-actions.module.d.ts +8 -7
- package/lib/table-row-actions/table-row-header-action.directive.d.ts +1 -1
- package/lib/table-row-actions/types.d.ts +8 -0
- package/package.json +8 -9
package/index.d.ts
CHANGED
|
@@ -60,3 +60,5 @@ export * from './lib/table-row-actions/table-row-action-status';
|
|
|
60
60
|
export * from './lib/table-row-actions/table-row-actions.module';
|
|
61
61
|
export * from './lib/table-row-actions/table-row-header-action.directive';
|
|
62
62
|
export * from './lib/table-row-actions/tokens';
|
|
63
|
+
export * from './lib/table-row-actions/types';
|
|
64
|
+
export * from './lib/table-row-actions/row-action-check.pipe';
|
|
@@ -3,6 +3,7 @@ export declare class LinkCellComponent {
|
|
|
3
3
|
value: any;
|
|
4
4
|
get href(): string;
|
|
5
5
|
protocol?: 'tel' | 'mailto';
|
|
6
|
+
short: boolean;
|
|
6
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<LinkCellComponent, never>;
|
|
7
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<LinkCellComponent, "td[rxap-link-cell]", never, { "value": "rxap-link-cell"; "protocol": "protocol"; }, {}, never, ["*"]>;
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LinkCellComponent, "td[rxap-link-cell]", never, { "value": "rxap-link-cell"; "protocol": "protocol"; "short": "short"; }, {}, never, ["*"]>;
|
|
8
9
|
}
|
|
@@ -1,2 +1,4 @@
|
|
|
1
|
+
import { RowActionCheckFunction } from './types';
|
|
1
2
|
export declare const RXAP_TABLE_ACTION_METHOD_TYPE_METADATA = "rxap-table-action-method-type-metadata";
|
|
2
|
-
export declare
|
|
3
|
+
export declare const RXAP_TABLE_ACTION_METHOD_CHECK_FUNCTION_METADATA = "rxap-table-action-method-check-function-metadata";
|
|
4
|
+
export declare function TableActionMethod<Data = unknown>(type: string, checkFunction?: RowActionCheckFunction<Data>): (target: any) => void;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import { TableRowActionTypeMethod } from './types';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class RowActionCheckPipe<RowType> implements PipeTransform {
|
|
5
|
+
private readonly actionMethodList;
|
|
6
|
+
constructor(tableRowActionMethodList: Array<TableRowActionTypeMethod<RowType>> | TableRowActionTypeMethod<RowType> | null);
|
|
7
|
+
transform(value: RowType | RowType[], type: string): boolean;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RowActionCheckPipe<any>, [{ optional: true; }]>;
|
|
9
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<RowActionCheckPipe<any>, "rxapRowActionCheck">;
|
|
10
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ChangeDetectorRef, ViewContainerRef } from '@angular/core';
|
|
2
2
|
import { MatButton } from '@angular/material/button';
|
|
3
3
|
import { MatSnackBar } from '@angular/material/snack-bar';
|
|
4
|
-
import { TableRowActionMethod } from './table-row-action.method';
|
|
5
4
|
import { TableDataSourceDirective } from '../table-data-source.directive';
|
|
5
|
+
import { TableRowActionMethod } from './types';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
export declare class TableRowActionDirective<Data extends Record<string, any>> {
|
|
8
8
|
protected readonly cdr: ChangeDetectorRef;
|
|
@@ -1,9 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare type TableRowActionTypeSwitchMethod<Data extends Record<string, any>> = Method<any, {
|
|
3
|
-
element: Data;
|
|
4
|
-
type: string;
|
|
5
|
-
}>;
|
|
6
|
-
export declare type TableRowActionTypeMethod<Data extends Record<string, any>> = Method<any, Data>;
|
|
7
|
-
export declare type TableRowActionMethod<Data extends Record<string, any>> = TableRowActionTypeSwitchMethod<Data> | TableRowActionTypeMethod<Data>;
|
|
1
|
+
import { TableRowActionMethod, TableRowActionTypeMethod, TableRowActionTypeSwitchMethod, RowActionCheckFunction } from './types';
|
|
8
2
|
export declare function IsTableRowActionTypeSwitchMethod<Data extends Record<string, any>>(method: TableRowActionMethod<Data>): method is TableRowActionTypeSwitchMethod<Data>;
|
|
9
3
|
export declare function IsTableRowActionTypeMethod<Data extends Record<string, any>>(type: string): (method: TableRowActionMethod<Data>) => method is TableRowActionTypeMethod<Data>;
|
|
4
|
+
export declare function HasTableRowActionCheckFunction(method: TableRowActionMethod<any>): boolean;
|
|
5
|
+
export declare function GetTableRowActionCheckFunction<Data>(method: TableRowActionMethod<Data>): RowActionCheckFunction<Data>;
|
|
@@ -2,14 +2,15 @@ import * as i0 from "@angular/core";
|
|
|
2
2
|
import * as i1 from "./table-row-action.directive";
|
|
3
3
|
import * as i2 from "./table-row-action-executing.directive";
|
|
4
4
|
import * as i3 from "./table-row-header-action.directive";
|
|
5
|
-
import * as i4 from "
|
|
6
|
-
import * as i5 from "@angular/material/
|
|
7
|
-
import * as i6 from "@
|
|
8
|
-
import * as i7 from "@
|
|
9
|
-
import * as i8 from "@angular/material/
|
|
10
|
-
import * as i9 from "@angular/
|
|
5
|
+
import * as i4 from "./row-action-check.pipe";
|
|
6
|
+
import * as i5 from "@angular/material/tooltip";
|
|
7
|
+
import * as i6 from "@angular/material/button";
|
|
8
|
+
import * as i7 from "@rxap/components";
|
|
9
|
+
import * as i8 from "@angular/material/icon";
|
|
10
|
+
import * as i9 from "@angular/material/progress-bar";
|
|
11
|
+
import * as i10 from "@angular/common";
|
|
11
12
|
export declare class TableRowActionsModule {
|
|
12
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<TableRowActionsModule, never>;
|
|
13
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<TableRowActionsModule, [typeof i1.TableRowActionDirective, typeof i2.TableRowActionExecutingDirective, typeof i3.TableRowHeaderActionDirective], never, [typeof i1.TableRowActionDirective, typeof i3.TableRowHeaderActionDirective, typeof i2.TableRowActionExecutingDirective, typeof i4.
|
|
14
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<TableRowActionsModule, [typeof i1.TableRowActionDirective, typeof i2.TableRowActionExecutingDirective, typeof i3.TableRowHeaderActionDirective, typeof i4.RowActionCheckPipe], never, [typeof i1.TableRowActionDirective, typeof i3.TableRowHeaderActionDirective, typeof i2.TableRowActionExecutingDirective, typeof i4.RowActionCheckPipe, typeof i5.MatTooltipModule, typeof i6.MatButtonModule, typeof i7.ConfirmComponentModule, typeof i8.MatIconModule, typeof i9.MatProgressBarModule, typeof i10.CommonModule]>;
|
|
14
15
|
static ɵinj: i0.ɵɵInjectorDeclaration<TableRowActionsModule>;
|
|
15
16
|
}
|
|
@@ -2,9 +2,9 @@ import { ChangeDetectorRef, OnDestroy, OnInit, ViewContainerRef } from '@angular
|
|
|
2
2
|
import { MatButton } from '@angular/material/button';
|
|
3
3
|
import { MatSnackBar } from '@angular/material/snack-bar';
|
|
4
4
|
import { TableRowActionDirective } from './table-row-action.directive';
|
|
5
|
-
import { TableRowActionMethod } from './table-row-action.method';
|
|
6
5
|
import { TableDataSourceDirective } from '../table-data-source.directive';
|
|
7
6
|
import { SelectRowService } from '../select-row/select-row.service';
|
|
7
|
+
import { TableRowActionMethod } from './types';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
9
|
export declare class TableRowHeaderActionDirective<Data extends Record<string, any>> extends TableRowActionDirective<Data> implements OnInit, OnDestroy {
|
|
10
10
|
private readonly selectRowService;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Method } from '@rxap/utilities/rxjs';
|
|
2
|
+
export declare type RowActionCheckFunction<Data extends Record<string, any>> = (element: Data, index: number, array: Data[]) => boolean;
|
|
3
|
+
export declare type TableRowActionTypeSwitchMethod<Data extends Record<string, any>> = Method<any, {
|
|
4
|
+
element: Data;
|
|
5
|
+
type: string;
|
|
6
|
+
}>;
|
|
7
|
+
export declare type TableRowActionTypeMethod<Data extends Record<string, any>> = Method<any, Data>;
|
|
8
|
+
export declare type TableRowActionMethod<Data extends Record<string, any>> = TableRowActionTypeSwitchMethod<Data> | TableRowActionTypeMethod<Data>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rxap/material-table-system",
|
|
3
|
-
"version": "13.
|
|
3
|
+
"version": "13.3.0",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular-devkit/schematics": "^13.2.4",
|
|
6
6
|
"@angular/animations": "^13.2.3",
|
|
@@ -16,16 +16,16 @@
|
|
|
16
16
|
"@angular/router": "^13.2.3",
|
|
17
17
|
"@rxap/components": "^13.0.0",
|
|
18
18
|
"@rxap/config": "^13.1.3",
|
|
19
|
-
"@rxap/data-source": "^13.1.
|
|
19
|
+
"@rxap/data-source": "^13.1.1",
|
|
20
20
|
"@rxap/definition": "^13.0.0",
|
|
21
21
|
"@rxap/directives": "^13.0.0",
|
|
22
22
|
"@rxap/forms": "^13.0.0",
|
|
23
23
|
"@rxap/material-directives": "^13.0.0",
|
|
24
24
|
"@rxap/mixin": "^13.0.0",
|
|
25
|
-
"@rxap/open-api": "^13.
|
|
25
|
+
"@rxap/open-api": "^13.1.7",
|
|
26
26
|
"@rxap/remote-method": "^13.0.0",
|
|
27
|
-
"@rxap/services": "^13.0.
|
|
28
|
-
"@rxap/utilities": "^13.0.
|
|
27
|
+
"@rxap/services": "^13.0.1",
|
|
28
|
+
"@rxap/utilities": "^13.0.1",
|
|
29
29
|
"@rxap/window-system": "^13.0.0",
|
|
30
30
|
"@schematics/angular": "^13.2.4",
|
|
31
31
|
"joi": "^17.6.3",
|
|
@@ -56,7 +56,6 @@
|
|
|
56
56
|
"directory": "../../../dist/libs/material/table-system",
|
|
57
57
|
"access": "public"
|
|
58
58
|
},
|
|
59
|
-
"gitHead": "e75f92d806744f93d00f5abf69fb80cfec0ccace",
|
|
60
59
|
"license": "MIT",
|
|
61
60
|
"keywords": [
|
|
62
61
|
"rxap",
|
|
@@ -75,12 +74,12 @@
|
|
|
75
74
|
"save": "dependencies"
|
|
76
75
|
},
|
|
77
76
|
"dependencies": {
|
|
78
|
-
"@rxap/schematics-utilities": "^13.0.0
|
|
77
|
+
"@rxap/schematics-utilities": "^13.0.0",
|
|
79
78
|
"tslib": "^2.3.1",
|
|
80
|
-
"@rxap/schematics-ts-morph": "
|
|
79
|
+
"@rxap/schematics-ts-morph": "13.0.0",
|
|
81
80
|
"uuid": "8.3.2",
|
|
82
81
|
"@rxap/validator": "1.0.0",
|
|
83
|
-
"@rxap/schematics-open-api": "13.
|
|
82
|
+
"@rxap/schematics-open-api": "13.1.4",
|
|
84
83
|
"ajv-oai": "^1.2.1",
|
|
85
84
|
"openapi-types": "10.0.0"
|
|
86
85
|
},
|