brainloper-ui 14.0.13 → 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "brainloper-ui",
3
- "version": "14.0.13",
3
+ "version": "14.0.15",
4
4
  "private": false,
5
5
  "dependencies": {
6
6
  "@angular-material-components/file-input": "^8.0.0",
package/public_api.d.ts CHANGED
@@ -47,4 +47,5 @@ export * from './src/app/modules/interfaces/buttons/button-lavel-edit';
47
47
  export * from './src/app/modules/interfaces/buttons/button-icon';
48
48
  export * from './src/app/modules/interfaces/data-table/rules';
49
49
  export * from './src/app/modules/interfaces/enum/enumActions';
50
- export * from './src/app/modules/interfaces/enum/enumRules';
50
+ export * from './src/app/modules/interfaces/common/Permissions';
51
+ export * from './src/app/modules/data/rolesAndPermissions';
@@ -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
  }
@@ -0,0 +1,2 @@
1
+ import { RolesAndPermissions } from "../interfaces/common/Permissions";
2
+ export declare const modulesByRol: Array<RolesAndPermissions>;
@@ -0,0 +1,40 @@
1
+ export declare class RolesAndPermissions {
2
+ id: number;
3
+ name: string;
4
+ modules?: Modules[];
5
+ hasAccessToAll?: boolean;
6
+ }
7
+ interface Modules {
8
+ id: number;
9
+ name?: string;
10
+ subModules?: SubModules[];
11
+ hasAccessToAll?: boolean;
12
+ }
13
+ interface SubModules {
14
+ id: number;
15
+ name: string;
16
+ permissions: IPermissions;
17
+ }
18
+ export interface IPermissions {
19
+ write?: boolean;
20
+ update?: boolean;
21
+ inactivate?: boolean;
22
+ activate?: boolean;
23
+ activateAndInactivate?: boolean;
24
+ readAll?: boolean;
25
+ readOwn?: boolean;
26
+ readTable?: boolean;
27
+ readCombo?: boolean;
28
+ readDetail?: boolean;
29
+ delete?: boolean;
30
+ closeOT?: boolean;
31
+ allocateResources?: boolean;
32
+ all?: boolean;
33
+ print?: boolean;
34
+ sendEmail?: boolean;
35
+ advance?: boolean;
36
+ export?: boolean;
37
+ }
38
+ export declare class IPermissions implements IPermissions {
39
+ }
40
+ export {};