ui-core-abv 0.3.82 → 0.4.1
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/fesm2022/ui-core-abv.mjs +852 -682
- package/fesm2022/ui-core-abv.mjs.map +1 -1
- package/lib/components/accordion/accordion.component.d.ts +11 -0
- package/lib/components/item-value/item-value.component.d.ts +22 -0
- package/lib/components/modal/side-modal/side-modal.component.d.ts +0 -1
- package/lib/components/modal/side-modal/sideModalConfig.model.d.ts +1 -0
- package/lib/components/short-table/short-table.component.d.ts +15 -0
- package/lib/components/table/table.component.d.ts +5 -8
- package/lib/components/table/table.models.d.ts +3 -14
- package/lib/components/tabs-button/tabs-button.component.d.ts +1 -0
- package/lib/components/uic-portlet-card/uic-portlet-card.component.d.ts +18 -7
- package/lib/helpers.d.ts +1 -0
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
- package/src/lib/styles/_mixins.scss +2 -2
- package/src/lib/styles/_tokens.scss +4 -1
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { UiBtnTab } from '../tabs-button/tabs-button.component';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class UICAccordionComponent {
|
|
5
|
+
tabs: UiBtnTab[];
|
|
6
|
+
activeTab: string;
|
|
7
|
+
activeTabChange: EventEmitter<string>;
|
|
8
|
+
changeTab(key: string): void;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UICAccordionComponent, never>;
|
|
10
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UICAccordionComponent, "ui-accordion", never, { "tabs": { "alias": "tabs"; "required": false; }; "activeTab": { "alias": "activeTab"; "required": false; }; }, { "activeTabChange": "activeTabChange"; }, never, ["*"], true, never>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { TableRow, TableRowData } from '../table/table.models';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class ItemValueComponent {
|
|
5
|
+
private readonly alers;
|
|
6
|
+
key: string | number;
|
|
7
|
+
type: string;
|
|
8
|
+
alignment: string;
|
|
9
|
+
row: TableRow;
|
|
10
|
+
disabled: boolean;
|
|
11
|
+
data: TableRowData | null;
|
|
12
|
+
switchValidation: string;
|
|
13
|
+
switchConfirmed: EventEmitter<boolean>;
|
|
14
|
+
expanded: boolean;
|
|
15
|
+
checked: boolean;
|
|
16
|
+
ngOnInit(): void;
|
|
17
|
+
switchHandler(rowId: string | number, value: boolean): void;
|
|
18
|
+
expand(click: MouseEvent): void;
|
|
19
|
+
copyText(text: string, click: MouseEvent): void;
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ItemValueComponent, never>;
|
|
21
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ItemValueComponent, "ui-item-value", never, { "key": { "alias": "key"; "required": false; }; "type": { "alias": "type"; "required": false; }; "alignment": { "alias": "alignment"; "required": false; }; "row": { "alias": "row"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "data": { "alias": "data"; "required": false; }; "switchValidation": { "alias": "switchValidation"; "required": false; }; }, { "switchConfirmed": "switchConfirmed"; }, never, never, true, never>;
|
|
22
|
+
}
|
|
@@ -16,7 +16,6 @@ export declare class UicSideModalComponent {
|
|
|
16
16
|
show: boolean;
|
|
17
17
|
myConfig: SideModalConfig;
|
|
18
18
|
ready: boolean;
|
|
19
|
-
title: string;
|
|
20
19
|
portalOutlet: CdkPortalOutlet;
|
|
21
20
|
constructor(modalRef: UiModalRef, component: Type<any>, congif: SideModalConfig, injector: Injector, modal: UicModalService);
|
|
22
21
|
ngOnInit(): void;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { TableColums, TableRow } from '../table/table.models';
|
|
2
|
+
import { UicPortletData } from '../uic-portlet-card/uic-portlet-card.component';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class UicShortTableComponent {
|
|
5
|
+
columns: TableColums[];
|
|
6
|
+
data: TableRow;
|
|
7
|
+
loading: boolean;
|
|
8
|
+
disabled: boolean;
|
|
9
|
+
cols: number;
|
|
10
|
+
portlet: UicPortletData[];
|
|
11
|
+
ngOnInit(): void;
|
|
12
|
+
apTableToPortlets(columns: TableColums[], row: TableRow): UicPortletData[];
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UicShortTableComponent, never>;
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UicShortTableComponent, "ui-short-table", never, { "columns": { "alias": "columns"; "required": false; }; "data": { "alias": "data"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "cols": { "alias": "cols"; "required": false; }; }, {}, never, never, true, never>;
|
|
15
|
+
}
|
|
@@ -30,8 +30,10 @@ export declare class UicTableComponent {
|
|
|
30
30
|
showSearchButton: boolean;
|
|
31
31
|
showTextPagination: boolean;
|
|
32
32
|
emptyMessage: string;
|
|
33
|
+
switchValidation: string;
|
|
33
34
|
nextButtonText: string;
|
|
34
35
|
previousButtonText: string;
|
|
36
|
+
mobilePortletCols: number;
|
|
35
37
|
searcherShowButtonText: boolean;
|
|
36
38
|
action: EventEmitter<TableAction>;
|
|
37
39
|
update: EventEmitter<TableFilters>;
|
|
@@ -49,16 +51,12 @@ export declare class UicTableComponent {
|
|
|
49
51
|
filter: string;
|
|
50
52
|
page: number;
|
|
51
53
|
fullViewRows: (string | number)[];
|
|
54
|
+
mobileView: boolean;
|
|
55
|
+
ngOnInit(): void;
|
|
52
56
|
getValue(data: TableRowData[], key: string): string;
|
|
53
|
-
getSubtext(data: TableRowData[], key: string): string;
|
|
54
|
-
isChecked(data: TableRowData[], key: string): boolean;
|
|
55
57
|
getMoreActions(actions: TableButton[], row: TableRowData[]): ActionMenuOption[];
|
|
56
58
|
getFontColor(data: TableRowData[], key: string): string;
|
|
57
|
-
getBackgroundColor(data: TableRowData[], key: string): import("ui-core-abv").BackgroundColors;
|
|
58
59
|
isValidRule(data: TableRowData[], key: string[] | undefined): boolean;
|
|
59
|
-
getIcon(data: TableRowData[], key: string, right?: boolean): string | null;
|
|
60
|
-
getList(data: TableRowData[], key: string): import("ui-core-abv").TableList[];
|
|
61
|
-
getUser(data: TableRowData[], key: string): import("ui-core-abv").TableUser | undefined;
|
|
62
60
|
sortClick(key: string): void;
|
|
63
61
|
sizeChabge(newSize: number): void;
|
|
64
62
|
pageChage(newPage: number): void;
|
|
@@ -71,11 +69,10 @@ export declare class UicTableComponent {
|
|
|
71
69
|
doAction(rowId: string | number, key: string, event?: MouseEvent): void;
|
|
72
70
|
resetCheckedIds(): void;
|
|
73
71
|
switchHandler(key: string | number, value: boolean, columName: string): void;
|
|
74
|
-
expand(rowRef: TableRow, event?: MouseEvent): void;
|
|
75
72
|
actionsRef?: ElementRef;
|
|
76
73
|
hasActions: boolean;
|
|
77
74
|
ngAfterContentInit(): void;
|
|
78
75
|
clickRow(id: number | string): void;
|
|
79
76
|
static ɵfac: i0.ɵɵFactoryDeclaration<UicTableComponent, never>;
|
|
80
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<UicTableComponent, "ui-table", never, { "columns": { "alias": "columns"; "required": false; }; "data": { "alias": "data"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "rowClickable": { "alias": "rowClickable"; "required": false; }; "rowExpandible": { "alias": "rowExpandible"; "required": false; }; "pages": { "alias": "pages"; "required": false; }; "size": { "alias": "size"; "required": false; }; "squeletonRows": { "alias": "squeletonRows"; "required": false; }; "buttonSize": { "alias": "buttonSize"; "required": false; }; "highlightedId": { "alias": "highlightedId"; "required": false; }; "headerText": { "alias": "headerText"; "required": false; }; "totalItems": { "alias": "totalItems"; "required": false; }; "alignment": { "alias": "alignment"; "required": false; }; "searchEnabled": { "alias": "searchEnabled"; "required": false; }; "searchLabel": { "alias": "searchLabel"; "required": false; }; "searchPlaceholder": { "alias": "searchPlaceholder"; "required": false; }; "headerClass": { "alias": "headerClass"; "required": false; }; "headerBackgroundColor": { "alias": "headerBackgroundColor"; "required": false; }; "striped": { "alias": "striped"; "required": false; }; "showPagination": { "alias": "showPagination"; "required": false; }; "searchOnKeydown": { "alias": "searchOnKeydown"; "required": false; }; "showEmptyMessage": { "alias": "showEmptyMessage"; "required": false; }; "showSearchButton": { "alias": "showSearchButton"; "required": false; }; "showTextPagination": { "alias": "showTextPagination"; "required": false; }; "emptyMessage": { "alias": "emptyMessage"; "required": false; }; "nextButtonText": { "alias": "nextButtonText"; "required": false; }; "previousButtonText": { "alias": "previousButtonText"; "required": false; }; "searcherShowButtonText": { "alias": "searcherShowButtonText"; "required": false; }; }, { "action": "action"; "update": "update"; "checkedChange": "checkedChange"; "switchChange": "switchChange"; "clickedRow": "clickedRow"; }, ["actionsRef"], ["[actions]", "[filters]"], true, never>;
|
|
77
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UicTableComponent, "ui-table", never, { "columns": { "alias": "columns"; "required": false; }; "data": { "alias": "data"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "rowClickable": { "alias": "rowClickable"; "required": false; }; "rowExpandible": { "alias": "rowExpandible"; "required": false; }; "pages": { "alias": "pages"; "required": false; }; "size": { "alias": "size"; "required": false; }; "squeletonRows": { "alias": "squeletonRows"; "required": false; }; "buttonSize": { "alias": "buttonSize"; "required": false; }; "highlightedId": { "alias": "highlightedId"; "required": false; }; "headerText": { "alias": "headerText"; "required": false; }; "totalItems": { "alias": "totalItems"; "required": false; }; "alignment": { "alias": "alignment"; "required": false; }; "searchEnabled": { "alias": "searchEnabled"; "required": false; }; "searchLabel": { "alias": "searchLabel"; "required": false; }; "searchPlaceholder": { "alias": "searchPlaceholder"; "required": false; }; "headerClass": { "alias": "headerClass"; "required": false; }; "headerBackgroundColor": { "alias": "headerBackgroundColor"; "required": false; }; "striped": { "alias": "striped"; "required": false; }; "showPagination": { "alias": "showPagination"; "required": false; }; "searchOnKeydown": { "alias": "searchOnKeydown"; "required": false; }; "showEmptyMessage": { "alias": "showEmptyMessage"; "required": false; }; "showSearchButton": { "alias": "showSearchButton"; "required": false; }; "showTextPagination": { "alias": "showTextPagination"; "required": false; }; "emptyMessage": { "alias": "emptyMessage"; "required": false; }; "switchValidation": { "alias": "switchValidation"; "required": false; }; "nextButtonText": { "alias": "nextButtonText"; "required": false; }; "previousButtonText": { "alias": "previousButtonText"; "required": false; }; "mobilePortletCols": { "alias": "mobilePortletCols"; "required": false; }; "searcherShowButtonText": { "alias": "searcherShowButtonText"; "required": false; }; }, { "action": "action"; "update": "update"; "checkedChange": "checkedChange"; "switchChange": "switchChange"; "clickedRow": "clickedRow"; }, ["actionsRef"], ["[actions]", "[filters]"], true, never>;
|
|
81
78
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ButtonColor, ButtonType } from "../button/button.component";
|
|
2
|
+
import { UicPortletData } from "../uic-portlet-card/uic-portlet-card.component";
|
|
2
3
|
export interface TableColums {
|
|
3
4
|
key: string;
|
|
4
5
|
label: string;
|
|
@@ -26,21 +27,9 @@ export interface TableRow {
|
|
|
26
27
|
id: number | string;
|
|
27
28
|
data: TableRowData[];
|
|
28
29
|
highlighted?: boolean;
|
|
29
|
-
expanded?: boolean;
|
|
30
30
|
}
|
|
31
|
-
export interface TableRowData {
|
|
31
|
+
export interface TableRowData extends UicPortletData {
|
|
32
32
|
key: string;
|
|
33
|
-
value?: string | number;
|
|
34
|
-
subtext?: string | number;
|
|
35
|
-
checked?: boolean;
|
|
36
|
-
list?: TableList[];
|
|
37
|
-
user?: TableUser;
|
|
38
|
-
icon?: string;
|
|
39
|
-
rightIcon?: string;
|
|
40
|
-
iconColor?: string;
|
|
41
|
-
textColor?: TableTextColors;
|
|
42
|
-
color?: BackgroundColors;
|
|
43
|
-
expanded?: boolean;
|
|
44
33
|
}
|
|
45
34
|
export interface TableList {
|
|
46
35
|
text: string;
|
|
@@ -59,7 +48,7 @@ export interface TableAction {
|
|
|
59
48
|
rowId: number | string;
|
|
60
49
|
key: string;
|
|
61
50
|
}
|
|
62
|
-
export type ColumnTypes = 'actions' | 'text' | 'list' | 'user' | 'checkbox' | 'icon-list' | 'status' | 'switch' | 'bigtext' | 'tag';
|
|
51
|
+
export type ColumnTypes = 'actions' | 'text' | 'list' | 'money' | 'copy' | 'user' | 'checkbox' | 'icon-list' | 'status' | 'switch' | 'bigtext' | 'date' | 'tag';
|
|
63
52
|
export type TableTextColors = 'primary' | 'red' | 'green' | 'blue' | 'yellow' | 'black' | 'grey';
|
|
64
53
|
export type BackgroundColors = 'primary' | 'secondary' | 'red' | 'green' | 'blue' | 'yellow' | 'black' | 'grey' | 'transparent' | 'white';
|
|
65
54
|
export interface TableFilters {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BackgroundColors, TableList, TableRowData, TableTextColors, TableUser } from '../table/table.models';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class UicPortletCardComponent {
|
|
4
4
|
title: string;
|
|
@@ -8,17 +8,28 @@ export declare class UicPortletCardComponent {
|
|
|
8
8
|
gap: number;
|
|
9
9
|
labelWeight: number;
|
|
10
10
|
valueWeight: number;
|
|
11
|
+
switchValidation: string;
|
|
12
|
+
finalData: TableRowData[];
|
|
13
|
+
ngOnInit(): void;
|
|
11
14
|
get gridTemplateColumns(): string | null;
|
|
12
15
|
copyText(text: string): void;
|
|
16
|
+
switchHandler(key: string, value: boolean): void;
|
|
13
17
|
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; }; "labelWeight": { "alias": "labelWeight"; "required": false; }; "valueWeight": { "alias": "valueWeight"; "required": false; }; }, {}, never, never, true, never>;
|
|
18
|
+
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; }; "switchValidation": { "alias": "switchValidation"; "required": false; }; }, {}, never, never, true, never>;
|
|
15
19
|
}
|
|
16
20
|
export interface UicPortletData {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
21
|
+
value?: string | number;
|
|
22
|
+
label?: string;
|
|
23
|
+
type?: string;
|
|
24
|
+
subtext?: string | number;
|
|
25
|
+
checked?: boolean;
|
|
26
|
+
list?: TableList[];
|
|
27
|
+
user?: TableUser;
|
|
22
28
|
icon?: string;
|
|
29
|
+
rightIcon?: string;
|
|
30
|
+
iconColor?: string;
|
|
31
|
+
textColor?: TableTextColors;
|
|
32
|
+
color?: BackgroundColors;
|
|
33
|
+
expanded?: boolean;
|
|
23
34
|
currencyCode?: string;
|
|
24
35
|
}
|
package/lib/helpers.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { TableColums, TableRowData } from "../public-api";
|
|
2
2
|
export declare function helperTableMapDatoToColums(data: Record<string, any>, headers: TableColums[]): TableRowData[];
|
|
3
3
|
export declare function helperFormMapFormdataToObject<T extends object>(formData: Record<string, any>, defaults: T): T;
|
|
4
|
+
export declare function isMobile(): boolean;
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ export * from './lib/components/dropdown-container/dropdown-container.component'
|
|
|
17
17
|
export * from './lib/components/dropdown-container/dropdown-close.directive';
|
|
18
18
|
export * from './lib/components/inputs/time-picker/time-picker.component';
|
|
19
19
|
export * from './lib/components/table/table.component';
|
|
20
|
+
export * from './lib/components/short-table/short-table.component';
|
|
20
21
|
export * from './lib/components/table/table.models';
|
|
21
22
|
export * from './lib/components/skeleton-loader/skeleton-loader.component';
|
|
22
23
|
export * from './lib/components/push-alerts/alert-container/alert-container.component';
|
|
@@ -29,6 +30,7 @@ export * from './lib/components/uic-portlet-card/uic-portlet-card.component';
|
|
|
29
30
|
export * from './lib/components/tabs-button/tabs-button.component';
|
|
30
31
|
export * from './lib/components/work-panel/work-panel.component';
|
|
31
32
|
export * from './lib/components/overlay-card/overlay-card.component';
|
|
33
|
+
export * from './lib/components/accordion/accordion.component';
|
|
32
34
|
export * from './lib/animations/animatios.index';
|
|
33
35
|
export * from './lib/components/dynamic-form/form.models';
|
|
34
36
|
export * from './lib/services/modal.service';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
@use './default_colors' as *;
|
|
3
|
-
|
|
3
|
+
@use './mixins' as mx;
|
|
4
4
|
:root {
|
|
5
5
|
// Grey palette
|
|
6
6
|
@each $shade, $color in $grey {
|
|
@@ -63,4 +63,7 @@
|
|
|
63
63
|
--disabled-color-placeholder: var(--grey-300);
|
|
64
64
|
--disabled-background: var(--grey-200);
|
|
65
65
|
|
|
66
|
+
--bp-mobile: 480px;
|
|
67
|
+
--bp-tablet: 768px;
|
|
68
|
+
|
|
66
69
|
}
|