@sumaris-net/ngx-components 2.12.24 → 2.12.25
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/esm2022/src/app/core/table/async-table.class.mjs +2 -2
- package/esm2022/src/app/core/table/column/nav-actions-column.component.mjs +30 -3
- package/esm2022/src/app/core/table/entities-async-table-datasource.class.mjs +2 -2
- package/esm2022/src/app/core/table/testing/table.testing.mjs +1 -1
- package/fesm2022/sumaris-net.ngx-components.mjs +30 -5
- package/fesm2022/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +1 -1
- package/src/app/core/table/column/nav-actions-column.component.d.ts +15 -1
- package/src/assets/manifest.json +1 -1
- package/src/theme/_ngx-components.table.scss +3 -1
package/package.json
CHANGED
|
@@ -4,10 +4,20 @@ import { MatColumnDef, MatTable } from '@angular/material/table';
|
|
|
4
4
|
import { MatMenuTrigger } from '@angular/material/menu';
|
|
5
5
|
import { AppTable } from '../table.class';
|
|
6
6
|
import { AppAsyncTable } from '../async-table.class';
|
|
7
|
+
import { Subject, Subscription } from 'rxjs';
|
|
7
8
|
import * as i0 from "@angular/core";
|
|
8
9
|
export declare class NavActionsColumnComponent<T extends TableElement<any> | AsyncTableElement<any> = TableElement<any>> implements OnInit, OnDestroy {
|
|
9
10
|
private matTable;
|
|
10
11
|
private cd;
|
|
12
|
+
_subscription: Subscription;
|
|
13
|
+
_forwardEventSubject: Subject<{
|
|
14
|
+
event: Event;
|
|
15
|
+
row: T;
|
|
16
|
+
}>;
|
|
17
|
+
_backwardEventSubject: Subject<{
|
|
18
|
+
event: Event;
|
|
19
|
+
row: T;
|
|
20
|
+
}>;
|
|
11
21
|
columnDef: MatColumnDef;
|
|
12
22
|
matMenuTrigger: MatMenuTrigger;
|
|
13
23
|
appTable: AppTable<any> | AppAsyncTable<any>;
|
|
@@ -21,12 +31,16 @@ export declare class NavActionsColumnComponent<T extends TableElement<any> | Asy
|
|
|
21
31
|
cellTemplate: TemplateRef<{
|
|
22
32
|
$implicit: T;
|
|
23
33
|
}>;
|
|
34
|
+
throttleTime: number;
|
|
24
35
|
optionsClick: EventEmitter<Event>;
|
|
25
36
|
constructor(matTable: MatTable<any>, cd: ChangeDetectorRef, appTable: AppTable<any>, appAsyncTable: AppAsyncTable<any>);
|
|
26
37
|
ngOnInit(): void;
|
|
27
38
|
ngOnDestroy(): void;
|
|
39
|
+
protected cancelOrDelete(event: Event, row: T): void;
|
|
40
|
+
protected confirmAndForward(event: Event, row: T): void;
|
|
41
|
+
protected confirmAndBackward(event: Event, row: T): void;
|
|
28
42
|
static ɵfac: i0.ɵɵFactoryDeclaration<NavActionsColumnComponent<any>, [null, null, { optional: true; }, { optional: true; }]>;
|
|
29
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NavActionsColumnComponent<any>, "app-nav-actions-column", never, { "appTable": { "alias": "appTable"; "required": false; }; "matColumnDef": { "alias": "matColumnDef"; "required": false; }; "style": { "alias": "style"; "required": false; }; "stickyEnd": { "alias": "stickyEnd"; "required": false; }; "showPending": { "alias": "showPending"; "required": false; }; "dirtyIcon": { "alias": "dirtyIcon"; "required": false; }; "optionsTitle": { "alias": "optionsTitle"; "required": false; }; "classList": { "alias": "class"; "required": false; }; "cellTemplate": { "alias": "cellTemplate"; "required": false; }; }, { "optionsClick": "optionsClick"; }, never, ["[matHeader]", "[matFooter]", "[matHeader]", "[matFooter]"], false, never>;
|
|
43
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NavActionsColumnComponent<any>, "app-nav-actions-column", never, { "appTable": { "alias": "appTable"; "required": false; }; "matColumnDef": { "alias": "matColumnDef"; "required": false; }; "style": { "alias": "style"; "required": false; }; "stickyEnd": { "alias": "stickyEnd"; "required": false; }; "showPending": { "alias": "showPending"; "required": false; }; "dirtyIcon": { "alias": "dirtyIcon"; "required": false; }; "optionsTitle": { "alias": "optionsTitle"; "required": false; }; "classList": { "alias": "class"; "required": false; }; "cellTemplate": { "alias": "cellTemplate"; "required": false; }; "throttleTime": { "alias": "throttleTime"; "required": false; }; }, { "optionsClick": "optionsClick"; }, never, ["[matHeader]", "[matFooter]", "[matHeader]", "[matFooter]"], false, never>;
|
|
30
44
|
static ngAcceptInputType_stickyEnd: unknown;
|
|
31
45
|
static ngAcceptInputType_showPending: unknown;
|
|
32
46
|
}
|
package/src/assets/manifest.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "ngx-sumaris-components",
|
|
3
3
|
"short_name": "ngx-sumaris-components",
|
|
4
4
|
"manifest_version": 1,
|
|
5
|
-
"version": "2.12.
|
|
5
|
+
"version": "2.12.25",
|
|
6
6
|
"default_locale": "fr",
|
|
7
7
|
"description": "Angular components for building beautiful and responsive Apps",
|
|
8
8
|
"icons": [{
|
|
@@ -134,7 +134,9 @@
|
|
|
134
134
|
}
|
|
135
135
|
|
|
136
136
|
/* Add a start padding to content (but not the cell itself) (e.g. tables with odd/event style - like BatchGroupsTable) */
|
|
137
|
-
&.mat-mdc-cell-content-start-padding
|
|
137
|
+
&.mat-mdc-cell-content-start-padding,
|
|
138
|
+
&.mat-mdc-cell-content-padding-start,
|
|
139
|
+
{
|
|
138
140
|
// Reset start padding here (only apply cell's content)
|
|
139
141
|
padding-inline-start: 0;
|
|
140
142
|
|