keevo-components 0.6.4 → 0.7.0
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/esm2020/lib/api/services/notification.service.mjs +67 -0
- package/esm2020/lib/table/table.component.mjs +2 -5
- package/esm2020/public-api.mjs +2 -1
- package/fesm2015/keevo-components.mjs +64 -11
- package/fesm2015/keevo-components.mjs.map +1 -1
- package/fesm2020/keevo-components.mjs +72 -11
- package/fesm2020/keevo-components.mjs.map +1 -1
- package/lib/api/services/notification.service.d.ts +25 -0
- package/lib/table/table.component.d.ts +1 -2
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ConfirmationService, MessageService } from "primeng/api";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export interface QuestionConfig {
|
|
4
|
+
type?: 'question' | 'alert';
|
|
5
|
+
message: string;
|
|
6
|
+
accept?: Function;
|
|
7
|
+
reject?: Function;
|
|
8
|
+
}
|
|
9
|
+
export interface DialogConfig {
|
|
10
|
+
type: 'info' | 'alert' | 'error';
|
|
11
|
+
message: string;
|
|
12
|
+
}
|
|
13
|
+
export declare class NotificationService {
|
|
14
|
+
private readonly confirmationService;
|
|
15
|
+
private readonly messageService;
|
|
16
|
+
constructor(confirmationService: ConfirmationService, messageService: MessageService);
|
|
17
|
+
question(config: QuestionConfig): void;
|
|
18
|
+
dialog(config: DialogConfig): void;
|
|
19
|
+
toastSuccess(message: string): void;
|
|
20
|
+
toastInfo(message: string): void;
|
|
21
|
+
toastWarn(message: string): void;
|
|
22
|
+
toastError(message: string): void;
|
|
23
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NotificationService, never>;
|
|
24
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<NotificationService>;
|
|
25
|
+
}
|
|
@@ -27,7 +27,6 @@ export declare class TableComponent implements OnInit {
|
|
|
27
27
|
dataSource: any;
|
|
28
28
|
selectedItems: any;
|
|
29
29
|
totalRecords: number;
|
|
30
|
-
lazy: boolean;
|
|
31
30
|
paginator: boolean;
|
|
32
31
|
rowsPerPageOptions: number[];
|
|
33
32
|
rows: number;
|
|
@@ -45,5 +44,5 @@ export declare class TableComponent implements OnInit {
|
|
|
45
44
|
transformValue(rowData: any, col: TableConfigColumn): any;
|
|
46
45
|
adjustTableSize(): void;
|
|
47
46
|
static ɵfac: i0.ɵɵFactoryDeclaration<TableComponent, never>;
|
|
48
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TableComponent, "kv-table", never, { "setConfig": "config"; "dataSource": "dataSource"; "selectedItems": "selectedItems"; "totalRecords": "totalRecords"; "
|
|
47
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TableComponent, "kv-table", never, { "setConfig": "config"; "dataSource": "dataSource"; "selectedItems": "selectedItems"; "totalRecords": "totalRecords"; "paginator": "paginator"; "rowsPerPageOptions": "rowsPerPageOptions"; "rows": "rows"; }, { "onActiveItem": "onActiveItem"; "onPaginate": "onPaginate"; "onSelectionChange": "onSelectionChange"; }, ["templates"], never, false, never>;
|
|
49
48
|
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -31,3 +31,4 @@ export * from './lib/api/helpers/component-providers';
|
|
|
31
31
|
export * from './lib/api/helpers/translate-primeng';
|
|
32
32
|
export * from './lib/api/services/component.service';
|
|
33
33
|
export * from './lib/api/services/object.service';
|
|
34
|
+
export * from './lib/api/services/notification.service';
|