@elite.framework/ng.core 2.0.7 → 2.0.8

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 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,12 +25,16 @@ 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' | 'normal' | 'large';
31
+ type IconPosition = 'left' | 'right';
27
32
  interface ButtonConfig {
28
33
  icon: string;
29
34
  label: string;
30
35
  position?: 'top' | 'bottom';
31
36
  variant: 'text' | 'outlined' | 'raised' | 'rounded';
32
- severity: 'primary' | 'secondary' | 'success' | 'info' | 'warn' | 'danger' | 'help' | 'contrast';
37
+ severity: ButtonSeverity;
33
38
  size: 'small' | 'normal' | 'large';
34
39
  permission?: string;
35
40
  visible?: boolean;
@@ -165,4 +170,4 @@ interface NgxPermission {
165
170
  }
166
171
 
167
172
  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 };
173
+ 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.7",
3
+ "version": "2.0.8",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^20.1.0",
6
6
  "@angular/core": "^20.1.0"