ui-core-abv 0.3.76 → 0.3.82

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.
@@ -16,6 +16,6 @@ export declare class UicButtonComponent {
16
16
  static ɵfac: i0.ɵɵFactoryDeclaration<UicButtonComponent, never>;
17
17
  static ɵcmp: i0.ɵɵComponentDeclaration<UicButtonComponent, "ui-button", never, { "text": { "alias": "text"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "rightIcon": { "alias": "rightIcon"; "required": false; }; "iconOnly": { "alias": "iconOnly"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "size": { "alias": "size"; "required": false; }; "type": { "alias": "type"; "required": false; }; "color": { "alias": "color"; "required": false; }; }, {}, never, ["*"], true, never>;
18
18
  }
19
- export type ButtonColor = 'primary' | 'secondary' | 'red' | 'green' | 'blue' | 'yellow' | 'black' | 'grey';
19
+ export type ButtonColor = 'primary' | 'secondary' | 'red' | 'green' | 'blue' | 'yellow' | 'black' | 'grey' | 'white';
20
20
  export type ButtonSize = 't' | 's' | 'm' | 'l' | 'g';
21
21
  export type ButtonType = 'filled' | 'bordered' | 'ghost';
@@ -56,7 +56,7 @@ export declare class UicTableComponent {
56
56
  getFontColor(data: TableRowData[], key: string): string;
57
57
  getBackgroundColor(data: TableRowData[], key: string): import("ui-core-abv").BackgroundColors;
58
58
  isValidRule(data: TableRowData[], key: string[] | undefined): boolean;
59
- getIcon(data: TableRowData[], key: string): string | null;
59
+ getIcon(data: TableRowData[], key: string, right?: boolean): string | null;
60
60
  getList(data: TableRowData[], key: string): import("ui-core-abv").TableList[];
61
61
  getUser(data: TableRowData[], key: string): import("ui-core-abv").TableUser | undefined;
62
62
  sortClick(key: string): void;
@@ -71,6 +71,7 @@ export declare class UicTableComponent {
71
71
  doAction(rowId: string | number, key: string, event?: MouseEvent): void;
72
72
  resetCheckedIds(): void;
73
73
  switchHandler(key: string | number, value: boolean, columName: string): void;
74
+ expand(rowRef: TableRow, event?: MouseEvent): void;
74
75
  actionsRef?: ElementRef;
75
76
  hasActions: boolean;
76
77
  ngAfterContentInit(): void;
@@ -1,12 +1,13 @@
1
1
  import { ButtonColor, ButtonType } from "../button/button.component";
2
2
  export interface TableColums {
3
- label: string;
4
3
  key: string;
4
+ label: string;
5
5
  width?: number;
6
6
  align?: 'flex-start' | 'flex-end' | 'center';
7
- type: ColumnTypes;
7
+ type?: ColumnTypes;
8
8
  sortEnable?: boolean;
9
9
  actions?: TableButton[];
10
+ hideOn?: 'small' | 'medium';
10
11
  moreActions?: {
11
12
  icon?: string;
12
13
  actions: TableButton[];
@@ -25,6 +26,7 @@ export interface TableRow {
25
26
  id: number | string;
26
27
  data: TableRowData[];
27
28
  highlighted?: boolean;
29
+ expanded?: boolean;
28
30
  }
29
31
  export interface TableRowData {
30
32
  key: string;
@@ -34,9 +36,11 @@ export interface TableRowData {
34
36
  list?: TableList[];
35
37
  user?: TableUser;
36
38
  icon?: string;
39
+ rightIcon?: string;
37
40
  iconColor?: string;
38
41
  textColor?: TableTextColors;
39
42
  color?: BackgroundColors;
43
+ expanded?: boolean;
40
44
  }
41
45
  export interface TableList {
42
46
  text: string;
@@ -55,7 +59,7 @@ export interface TableAction {
55
59
  rowId: number | string;
56
60
  key: string;
57
61
  }
58
- export type ColumnTypes = 'actions' | 'text' | 'list' | 'user' | 'checkbox' | 'icon-list' | 'status' | 'switch';
62
+ export type ColumnTypes = 'actions' | 'text' | 'list' | 'user' | 'checkbox' | 'icon-list' | 'status' | 'switch' | 'bigtext' | 'tag';
59
63
  export type TableTextColors = 'primary' | 'red' | 'green' | 'blue' | 'yellow' | 'black' | 'grey';
60
64
  export type BackgroundColors = 'primary' | 'secondary' | 'red' | 'green' | 'blue' | 'yellow' | 'black' | 'grey' | 'transparent' | 'white';
61
65
  export interface TableFilters {
@@ -3,21 +3,21 @@ import * as i0 from "@angular/core";
3
3
  export declare class UicPortletCardComponent {
4
4
  title: string;
5
5
  data: UicPortletData[];
6
- /** Layout mode: horizontal keeps label/value in a row; vertical stacks label over value. */
7
6
  layout: 'horizontal' | 'vertical';
8
- /** Columns for vertical grid layout. */
9
7
  cols: number;
10
8
  gap: number;
9
+ labelWeight: number;
10
+ valueWeight: number;
11
11
  get gridTemplateColumns(): string | null;
12
12
  copyText(text: string): void;
13
13
  static ɵfac: i0.ɵɵFactoryDeclaration<UicPortletCardComponent, never>;
14
- static ɵcmp: i0.ɵɵComponentDeclaration<UicPortletCardComponent, "ui-portlet-card", never, { "title": { "alias": "title"; "required": false; }; "data": { "alias": "data"; "required": false; }; "layout": { "alias": "layout"; "required": false; }; "cols": { "alias": "cols"; "required": false; }; "gap": { "alias": "gap"; "required": false; }; }, {}, never, never, true, never>;
14
+ static ɵcmp: i0.ɵɵComponentDeclaration<UicPortletCardComponent, "ui-portlet-card", never, { "title": { "alias": "title"; "required": false; }; "data": { "alias": "data"; "required": false; }; "layout": { "alias": "layout"; "required": false; }; "cols": { "alias": "cols"; "required": false; }; "gap": { "alias": "gap"; "required": false; }; "labelWeight": { "alias": "labelWeight"; "required": false; }; "valueWeight": { "alias": "valueWeight"; "required": false; }; }, {}, never, never, true, never>;
15
15
  }
16
16
  export interface UicPortletData {
17
17
  label: string;
18
18
  value: string | number | boolean;
19
19
  subtext?: string;
20
- type: 'text' | 'money' | 'status' | 'tag' | 'date' | 'copy';
20
+ type?: 'text' | 'money' | 'status' | 'tag' | 'date' | 'copy';
21
21
  color?: ButtonColor;
22
22
  icon?: string;
23
23
  currencyCode?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ui-core-abv",
3
- "version": "0.3.76",
3
+ "version": "0.3.82",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=19.2.0 <21.0.0",
6
6
  "@angular/core": ">=19.2.0 <21.0.0",
@@ -1,5 +1,5 @@
1
- $breakpoint-md: 480px !default;
2
- $breakpoint-tablet: 768px !default;
1
+ $breakpoint-md: 480px !default;
2
+ $breakpoint-tablet: 768px !default;
3
3
 
4
4
  @mixin mobile {
5
5
  @media (max-width: #{$breakpoint-md - 1}) {
@@ -17,4 +17,4 @@ $breakpoint-tablet: 768px !default;
17
17
  @media (min-width: #{$breakpoint-tablet}) {
18
18
  @content;
19
19
  }
20
- }
20
+ }