@elite.framework/ng.core 2.0.7 → 2.0.9
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/models/index.d.ts +10 -3
- package/package.json +5 -5
package/models/index.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ interface ActionDef<T> {
|
|
|
11
11
|
permissions?: string[];
|
|
12
12
|
action?: (item: T) => void | Promise<void>;
|
|
13
13
|
visible?: boolean;
|
|
14
|
+
splitActions?: MenuItem[];
|
|
14
15
|
}
|
|
15
16
|
|
|
16
17
|
declare class AttachmentDto {
|
|
@@ -24,13 +25,19 @@ declare class AttachmentDto {
|
|
|
24
25
|
link?: string;
|
|
25
26
|
}
|
|
26
27
|
|
|
28
|
+
type ButtonVariant = 'text' | 'outlined' | 'raised' | 'rounded';
|
|
29
|
+
type ButtonSeverity = 'primary' | 'secondary' | 'success' | 'info' | 'warn' | 'danger' | 'help' | 'contrast';
|
|
30
|
+
type ButtonSize = 'small' | 'large';
|
|
31
|
+
type IconPosition = 'left' | 'right';
|
|
27
32
|
interface ButtonConfig {
|
|
28
33
|
icon: string;
|
|
29
34
|
label: string;
|
|
35
|
+
type?: string;
|
|
36
|
+
disabled?: boolean;
|
|
30
37
|
position?: 'top' | 'bottom';
|
|
31
38
|
variant: 'text' | 'outlined' | 'raised' | 'rounded';
|
|
32
|
-
severity:
|
|
33
|
-
size: 'small' | '
|
|
39
|
+
severity: ButtonSeverity;
|
|
40
|
+
size: 'small' | 'large';
|
|
34
41
|
permission?: string;
|
|
35
42
|
visible?: boolean;
|
|
36
43
|
splitActions?: MenuItem[];
|
|
@@ -165,4 +172,4 @@ interface NgxPermission {
|
|
|
165
172
|
}
|
|
166
173
|
|
|
167
174
|
export { AttachmentDto, DEFAULT_REDIRECT_KEY, GeneralResponse, ListResultDto, PagedResultDto, Rest, checkHasProp };
|
|
168
|
-
export type { ActionDef, ButtonConfig, ColumnDef, ExceptFn, FilterDef, FilterType, NavigationCommandsFn, NavigationExtrasFn, NgxPermission, NgxPermissionsRouterData, NgxRedirectToNavigationParameters, OnlyFn, PaginatedResult, RedirectTo, RedirectToFn, Root, ValidationFn };
|
|
175
|
+
export type { ActionDef, ButtonConfig, ButtonSeverity, ButtonSize, ButtonVariant, ColumnDef, ExceptFn, FilterDef, FilterType, IconPosition, NavigationCommandsFn, NavigationExtrasFn, NgxPermission, NgxPermissionsRouterData, NgxRedirectToNavigationParameters, OnlyFn, PaginatedResult, RedirectTo, RedirectToFn, Root, ValidationFn };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elite.framework/ng.core",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.9",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": "^20.1.0",
|
|
6
6
|
"@angular/core": "^20.1.0"
|
|
@@ -20,14 +20,14 @@
|
|
|
20
20
|
"types": "./directives/index.d.ts",
|
|
21
21
|
"default": "./fesm2022/elite.framework-ng.core-directives.mjs"
|
|
22
22
|
},
|
|
23
|
-
"./interceptors": {
|
|
24
|
-
"types": "./interceptors/index.d.ts",
|
|
25
|
-
"default": "./fesm2022/elite.framework-ng.core-interceptors.mjs"
|
|
26
|
-
},
|
|
27
23
|
"./models": {
|
|
28
24
|
"types": "./models/index.d.ts",
|
|
29
25
|
"default": "./fesm2022/elite.framework-ng.core-models.mjs"
|
|
30
26
|
},
|
|
27
|
+
"./interceptors": {
|
|
28
|
+
"types": "./interceptors/index.d.ts",
|
|
29
|
+
"default": "./fesm2022/elite.framework-ng.core-interceptors.mjs"
|
|
30
|
+
},
|
|
31
31
|
"./pipes": {
|
|
32
32
|
"types": "./pipes/index.d.ts",
|
|
33
33
|
"default": "./fesm2022/elite.framework-ng.core-pipes.mjs"
|