@ecodev/natural 42.4.1 → 42.4.2
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/lib/modules/table-button/table-button.component.mjs +21 -6
- package/fesm2015/ecodev-natural.mjs +19 -3
- package/fesm2015/ecodev-natural.mjs.map +1 -1
- package/fesm2020/ecodev-natural.mjs +18 -3
- package/fesm2020/ecodev-natural.mjs.map +1 -1
- package/lib/modules/table-button/table-button.component.d.ts +9 -6
- package/package.json +1 -1
|
@@ -1,16 +1,18 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { Params, QueryParamsHandling, RouterLink } from '@angular/router';
|
|
2
3
|
import { ThemePalette } from '@angular/material/core';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
/**
|
|
5
6
|
* Button that fits well in a `<mat-table>` and support either
|
|
6
7
|
* route navigation via `navigate` or external URL via `href`.
|
|
7
8
|
*
|
|
9
|
+
* If neither `navigate` nor `href` has a meaningful value, then
|
|
10
|
+
* it will show the icon and/or label in `<span>` instead of a button
|
|
11
|
+
*
|
|
8
12
|
* External URL will always be opened in new tab.
|
|
9
13
|
*/
|
|
10
|
-
export declare class NaturalTableButtonComponent {
|
|
11
|
-
queryParams:
|
|
12
|
-
[k: string]: any;
|
|
13
|
-
};
|
|
14
|
+
export declare class NaturalTableButtonComponent implements OnChanges {
|
|
15
|
+
queryParams: Params;
|
|
14
16
|
queryParamsHandling: QueryParamsHandling;
|
|
15
17
|
label?: string | null;
|
|
16
18
|
icon?: string | null;
|
|
@@ -20,7 +22,8 @@ export declare class NaturalTableButtonComponent {
|
|
|
20
22
|
preserveFragment: boolean;
|
|
21
23
|
raised: boolean;
|
|
22
24
|
color: ThemePalette;
|
|
23
|
-
|
|
25
|
+
type: 'routerLink' | 'href' | 'none';
|
|
26
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
24
27
|
static ɵfac: i0.ɵɵFactoryDeclaration<NaturalTableButtonComponent, never>;
|
|
25
28
|
static ɵcmp: i0.ɵɵComponentDeclaration<NaturalTableButtonComponent, "natural-table-button", never, { "queryParams": "queryParams"; "queryParamsHandling": "queryParamsHandling"; "label": "label"; "icon": "icon"; "href": "href"; "navigate": "navigate"; "fragment": "fragment"; "preserveFragment": "preserveFragment"; "raised": "raised"; "color": "color"; }, {}, never, never>;
|
|
26
29
|
}
|