brainloper-ui 14.0.14 → 14.0.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/esm2020/src/app/modules/brainloper-ui/components/data-table/data-table.component.mjs +124 -85
- package/esm2020/src/app/modules/data/rolesAndPermissions.mjs +7 -2
- package/esm2020/src/app/modules/interfaces/common/Permissions.mjs +3 -1
- package/fesm2015/brainloper-ui.mjs +620 -573
- package/fesm2015/brainloper-ui.mjs.map +1 -1
- package/fesm2020/brainloper-ui.mjs +616 -571
- package/fesm2020/brainloper-ui.mjs.map +1 -1
- package/package.json +1 -1
- package/src/app/modules/brainloper-ui/components/data-table/data-table.component.d.ts +10 -8
- package/src/app/modules/interfaces/common/Permissions.d.ts +9 -3
package/package.json
CHANGED
|
@@ -55,6 +55,11 @@ export declare class DataTableComponent implements OnInit, OnChanges {
|
|
|
55
55
|
xslxSheetNameFields: string[];
|
|
56
56
|
xslxBodyFields: string;
|
|
57
57
|
xslxParams: Array<any>;
|
|
58
|
+
roleId: number;
|
|
59
|
+
moduleId: number;
|
|
60
|
+
subModuleId: number;
|
|
61
|
+
private hasAccessToAll;
|
|
62
|
+
private rolesAndPermissionUser;
|
|
58
63
|
clickRow: EventEmitter<any>;
|
|
59
64
|
add: EventEmitter<any>;
|
|
60
65
|
edit: EventEmitter<any>;
|
|
@@ -89,14 +94,11 @@ export declare class DataTableComponent implements OnInit, OnChanges {
|
|
|
89
94
|
page: number;
|
|
90
95
|
above: TooltipPosition[];
|
|
91
96
|
constructor(dialog: MatDialog, http: HttpService, message: MessageService, functionEter: FunctionsService, paginatorTranslate: MatPaginatorIntl, exportService: ExportDataService);
|
|
92
|
-
buttonsConfig:
|
|
93
|
-
action: string;
|
|
94
|
-
conditionShowHeader: () => boolean;
|
|
95
|
-
condition: () => boolean;
|
|
96
|
-
icon: string;
|
|
97
|
-
tooltip: any;
|
|
98
|
-
}[];
|
|
97
|
+
buttonsConfig: any[];
|
|
99
98
|
ngOnInit(): Promise<void>;
|
|
99
|
+
validateRolAndPermission(): void;
|
|
100
|
+
configureButtons(): void;
|
|
101
|
+
hasPermission(permission: string): boolean;
|
|
100
102
|
getDateTableByUrl(): Promise<unknown>;
|
|
101
103
|
validarParams(): void;
|
|
102
104
|
validateRules(): Promise<void>;
|
|
@@ -115,5 +117,5 @@ export declare class DataTableComponent implements OnInit, OnChanges {
|
|
|
115
117
|
applyFilters($event?: any): Promise<void>;
|
|
116
118
|
changePage($event: any): void;
|
|
117
119
|
static ɵfac: i0.ɵɵFactoryDeclaration<DataTableComponent, never>;
|
|
118
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DataTableComponent, "data-table", never, { "title": "title"; "columns": "columns"; "data": "data"; "combo": "combo"; "configuration": "configuration"; "reloadTable": "reloadTable"; "url": "url"; "params": "params"; "titleLoading": "titleLoading"; "messageLoading": "messageLoading"; "headerFileXlsm": "headerFileXlsm"; "headerFilters": "headerFilters"; "xslxTitleFields": "xslxTitleFields"; "xslxSheetNameFields": "xslxSheetNameFields"; "xslxBodyFields": "xslxBodyFields"; "xslxParams": "xslxParams"; }, { "clickRow": "clickRow"; "add": "add"; "edit": "edit"; "delete": "delete"; "print": "print"; "exportXslxByRow": "exportXslxByRow"; "active": "active"; "selected": "selected"; "view": "view"; "closeOrder": "closeOrder"; "packOff": "packOff"; "advance": "advance"; "income": "income"; "exit": "exit"; "internalData": "internalData"; "sendEmail": "sendEmail"; }, never, never, false>;
|
|
120
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DataTableComponent, "data-table", never, { "title": "title"; "columns": "columns"; "data": "data"; "combo": "combo"; "configuration": "configuration"; "reloadTable": "reloadTable"; "url": "url"; "params": "params"; "titleLoading": "titleLoading"; "messageLoading": "messageLoading"; "headerFileXlsm": "headerFileXlsm"; "headerFilters": "headerFilters"; "xslxTitleFields": "xslxTitleFields"; "xslxSheetNameFields": "xslxSheetNameFields"; "xslxBodyFields": "xslxBodyFields"; "xslxParams": "xslxParams"; "roleId": "roleId"; "moduleId": "moduleId"; "subModuleId": "subModuleId"; }, { "clickRow": "clickRow"; "add": "add"; "edit": "edit"; "delete": "delete"; "print": "print"; "exportXslxByRow": "exportXslxByRow"; "active": "active"; "selected": "selected"; "view": "view"; "closeOrder": "closeOrder"; "packOff": "packOff"; "advance": "advance"; "income": "income"; "exit": "exit"; "internalData": "internalData"; "sendEmail": "sendEmail"; }, never, never, false>;
|
|
119
121
|
}
|
|
@@ -13,13 +13,14 @@ interface Modules {
|
|
|
13
13
|
interface SubModules {
|
|
14
14
|
id: number;
|
|
15
15
|
name: string;
|
|
16
|
-
permissions:
|
|
16
|
+
permissions: IPermissions;
|
|
17
17
|
}
|
|
18
|
-
export interface
|
|
18
|
+
export interface IPermissions {
|
|
19
19
|
write?: boolean;
|
|
20
20
|
update?: boolean;
|
|
21
21
|
inactivate?: boolean;
|
|
22
22
|
activate?: boolean;
|
|
23
|
+
activateAndInactivate?: boolean;
|
|
23
24
|
readAll?: boolean;
|
|
24
25
|
readOwn?: boolean;
|
|
25
26
|
readTable?: boolean;
|
|
@@ -27,8 +28,13 @@ export interface Permissions {
|
|
|
27
28
|
readDetail?: boolean;
|
|
28
29
|
delete?: boolean;
|
|
29
30
|
closeOT?: boolean;
|
|
30
|
-
closeFOT?: boolean;
|
|
31
31
|
allocateResources?: boolean;
|
|
32
32
|
all?: boolean;
|
|
33
|
+
print?: boolean;
|
|
34
|
+
sendEmail?: boolean;
|
|
35
|
+
advance?: boolean;
|
|
36
|
+
export?: boolean;
|
|
37
|
+
}
|
|
38
|
+
export declare class IPermissions implements IPermissions {
|
|
33
39
|
}
|
|
34
40
|
export {};
|