ui-core-abv 0.3.1 → 0.3.15
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 +93 -9
- package/fesm2022/ui-core-abv.mjs.map +1 -1
- package/lib/components/push-alerts/tynyalert.helpers.d.ts +6 -0
- package/lib/components/table/table.component.d.ts +7 -1
- package/lib/components/table/table.models.d.ts +2 -1
- package/lib/components/tiny-alert/tiny-alert.model.d.ts +1 -0
- package/lib/services/push-alert.service.d.ts +1 -0
- package/lib/services/tiny-alert.service.d.ts +5 -0
- package/package.json +1 -1
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { AlertData } from '../tiny-alert/tiny-alert.model';
|
|
2
|
+
export declare function createTinySuccess(body: string, options?: Partial<AlertData>): AlertData;
|
|
3
|
+
export declare function createTinyError(body: string, options?: Partial<AlertData>): AlertData;
|
|
4
|
+
export declare function createTinyDelete(body: string, options?: Partial<AlertData>): AlertData;
|
|
5
|
+
export declare function createTinyWarning(body: string, options?: Partial<AlertData>): AlertData;
|
|
6
|
+
export declare function createTinyInfo(body: string, options?: Partial<AlertData>): AlertData;
|
|
@@ -7,6 +7,7 @@ export declare class UicTableComponent {
|
|
|
7
7
|
columns: TableColums[];
|
|
8
8
|
data: TableRow[];
|
|
9
9
|
loading: boolean;
|
|
10
|
+
disabled: boolean;
|
|
10
11
|
pages: number;
|
|
11
12
|
size: number;
|
|
12
13
|
squeletonRows: number;
|
|
@@ -29,6 +30,10 @@ export declare class UicTableComponent {
|
|
|
29
30
|
action: EventEmitter<TableAction>;
|
|
30
31
|
update: EventEmitter<TableFilters>;
|
|
31
32
|
checkedChange: EventEmitter<(string | number)[]>;
|
|
33
|
+
switchChange: EventEmitter<{
|
|
34
|
+
key: string | number;
|
|
35
|
+
value: boolean;
|
|
36
|
+
}>;
|
|
32
37
|
allSelected: boolean;
|
|
33
38
|
checkedIds: Set<string | number>;
|
|
34
39
|
sortKey: string;
|
|
@@ -36,6 +41,7 @@ export declare class UicTableComponent {
|
|
|
36
41
|
filter: string;
|
|
37
42
|
page: number;
|
|
38
43
|
getValue(data: TableRowData[], key: string): string;
|
|
44
|
+
isChecked(data: TableRowData[], key: string): boolean;
|
|
39
45
|
getMoreActions(actions: TableButton[], row: TableRowData[]): ActionMenuOption[];
|
|
40
46
|
getFontColor(data: TableRowData[], key: string): string;
|
|
41
47
|
getBackgroundColor(data: TableRowData[], key: string): import("ui-core-abv").BackgroundColors;
|
|
@@ -55,5 +61,5 @@ export declare class UicTableComponent {
|
|
|
55
61
|
doAction(rowId: string | number, key: string): void;
|
|
56
62
|
resetCheckedIds(): void;
|
|
57
63
|
static ɵfac: i0.ɵɵFactoryDeclaration<UicTableComponent, never>;
|
|
58
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<UicTableComponent, "ui-table", never, { "columns": { "alias": "columns"; "required": false; }; "data": { "alias": "data"; "required": false; }; "loading": { "alias": "loading"; "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; }; "showEmptyMessage": { "alias": "showEmptyMessage"; "required": false; }; "showSearchButton": { "alias": "showSearchButton"; "required": false; }; "emptyMessage": { "alias": "emptyMessage"; "required": false; }; "searcherShowButtonText": { "alias": "searcherShowButtonText"; "required": false; }; }, { "action": "action"; "update": "update"; "checkedChange": "checkedChange"; }, never, ["[actions]", "[filters]"], true, never>;
|
|
64
|
+
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; }; "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; }; "showEmptyMessage": { "alias": "showEmptyMessage"; "required": false; }; "showSearchButton": { "alias": "showSearchButton"; "required": false; }; "emptyMessage": { "alias": "emptyMessage"; "required": false; }; "searcherShowButtonText": { "alias": "searcherShowButtonText"; "required": false; }; }, { "action": "action"; "update": "update"; "checkedChange": "checkedChange"; "switchChange": "switchChange"; }, never, ["[actions]", "[filters]"], true, never>;
|
|
59
65
|
}
|
|
@@ -29,6 +29,7 @@ export interface TableRow {
|
|
|
29
29
|
export interface TableRowData {
|
|
30
30
|
key: string;
|
|
31
31
|
value?: string | number;
|
|
32
|
+
checked?: boolean;
|
|
32
33
|
list?: TableList[];
|
|
33
34
|
user?: TableUser;
|
|
34
35
|
icon?: string;
|
|
@@ -53,7 +54,7 @@ export interface TableAction {
|
|
|
53
54
|
rowId: number | string;
|
|
54
55
|
key: string;
|
|
55
56
|
}
|
|
56
|
-
export type ColumnTypes = 'actions' | 'text' | 'list' | 'user' | 'checkbox' | 'icon-list' | 'status';
|
|
57
|
+
export type ColumnTypes = 'actions' | 'text' | 'list' | 'user' | 'checkbox' | 'icon-list' | 'status' | 'switch';
|
|
57
58
|
export type TableTextColors = 'primary' | 'red' | 'green' | 'blue' | 'yellow' | 'black' | 'grey';
|
|
58
59
|
export type BackgroundColors = 'primary' | 'secondary' | 'red' | 'green' | 'blue' | 'yellow' | 'black' | 'grey' | 'transparent' | 'white';
|
|
59
60
|
export interface TableFilters {
|
|
@@ -7,6 +7,7 @@ export declare class UicPushAlertService {
|
|
|
7
7
|
show(alertData: AlertConfigParams): void;
|
|
8
8
|
success(message: string, options?: Partial<Alert>): void;
|
|
9
9
|
error(message: string, options?: Partial<Alert>): void;
|
|
10
|
+
warning(message: string, options?: Partial<Alert>): void;
|
|
10
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<UicPushAlertService, never>;
|
|
11
12
|
static ɵprov: i0.ɵɵInjectableDeclaration<UicPushAlertService>;
|
|
12
13
|
}
|
|
@@ -3,6 +3,11 @@ import * as i0 from "@angular/core";
|
|
|
3
3
|
export declare class UicTinyAlertService {
|
|
4
4
|
private readonly modal;
|
|
5
5
|
showAlert(data: AlertData): Promise<AlertResponse>;
|
|
6
|
+
success(message: string, options?: Partial<AlertData>): Promise<AlertResponse>;
|
|
7
|
+
error(message: string, options?: Partial<AlertData>): Promise<AlertResponse>;
|
|
8
|
+
warning(message: string, options?: Partial<AlertData>): Promise<AlertResponse>;
|
|
9
|
+
info(message: string, options?: Partial<AlertData>): Promise<AlertResponse>;
|
|
10
|
+
deleteConfirmation(message: string, options?: Partial<AlertData>): Promise<AlertResponse>;
|
|
6
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<UicTinyAlertService, never>;
|
|
7
12
|
static ɵprov: i0.ɵɵInjectableDeclaration<UicTinyAlertService>;
|
|
8
13
|
}
|