asp-lib 1.1.4 → 1.1.6
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/esm2022/lib/asp-lib.module.mjs +5 -2
- package/esm2022/lib/assign-roles/assign-roles.component.mjs +48 -18
- package/esm2022/lib/change-password/change-password.component.mjs +1 -1
- package/esm2022/lib/entity-admin/entity-admin.component.mjs +9 -5
- package/esm2022/lib/form/form.component.mjs +44 -11
- package/esm2022/lib/header/header.component.mjs +2 -2
- package/esm2022/lib/items-selector/items-selector.component.mjs +15 -4
- package/esm2022/lib/items-viewer/items-viewer.component.mjs +5 -2
- package/esm2022/lib/menu-admin/menu-admin.component.mjs +3 -3
- package/esm2022/lib/nested-items-selector/nested-items-selector.component.mjs +1 -1
- package/esm2022/lib/role-menu-options/role-menu-options.component.mjs +208 -0
- package/esm2022/lib/select/select.component.mjs +3 -3
- package/esm2022/lib/tree/tree.component.mjs +3 -3
- package/esm2022/lib/utils/services/SecurityServicesDefault.mjs +10 -2
- package/fesm2022/asp-lib.mjs +427 -134
- package/fesm2022/asp-lib.mjs.map +1 -1
- package/lib/asp-lib.module.d.ts +18 -17
- package/lib/assign-roles/assign-roles.component.d.ts +10 -6
- package/lib/form/form.component.d.ts +6 -2
- package/lib/items-selector/items-selector.component.d.ts +2 -1
- package/lib/items-viewer/items-viewer.component.d.ts +2 -1
- package/lib/role-menu-options/role-menu-options.component.d.ts +85 -0
- package/lib/utils/services/SecurityServicesDefault.d.ts +5 -1
- package/package.json +1 -1
package/lib/asp-lib.module.d.ts
CHANGED
|
@@ -37,24 +37,25 @@ import * as i35 from "./form-2/form-2.component";
|
|
|
37
37
|
import * as i36 from "./nested-items-selector/nested-items-selector.component";
|
|
38
38
|
import * as i37 from "./pipes/translate.pipe";
|
|
39
39
|
import * as i38 from "./change-password/change-password.component";
|
|
40
|
-
import * as i39 from "
|
|
41
|
-
import * as i40 from "@angular/
|
|
42
|
-
import * as i41 from "@angular/
|
|
43
|
-
import * as i42 from "@angular/
|
|
44
|
-
import * as i43 from "@angular/material/
|
|
45
|
-
import * as i44 from "@angular/material/
|
|
46
|
-
import * as i45 from "@angular/material/
|
|
47
|
-
import * as i46 from "@angular/material/
|
|
48
|
-
import * as i47 from "@angular/material/
|
|
49
|
-
import * as i48 from "@angular/
|
|
50
|
-
import * as i49 from "@
|
|
51
|
-
import * as i50 from "@angular
|
|
52
|
-
import * as i51 from "@angular/material/
|
|
53
|
-
import * as i52 from "@angular/
|
|
54
|
-
import * as i53 from "@angular/
|
|
55
|
-
import * as i54 from "@angular/material/
|
|
40
|
+
import * as i39 from "./role-menu-options/role-menu-options.component";
|
|
41
|
+
import * as i40 from "@angular/common";
|
|
42
|
+
import * as i41 from "@angular/material/radio";
|
|
43
|
+
import * as i42 from "@angular/forms";
|
|
44
|
+
import * as i43 from "@angular/material/form-field";
|
|
45
|
+
import * as i44 from "@angular/material/input";
|
|
46
|
+
import * as i45 from "@angular/material/paginator";
|
|
47
|
+
import * as i46 from "@angular/material/tabs";
|
|
48
|
+
import * as i47 from "@angular/material/menu";
|
|
49
|
+
import * as i48 from "@angular/material/checkbox";
|
|
50
|
+
import * as i49 from "@angular/cdk/drag-drop";
|
|
51
|
+
import * as i50 from "@kolkov/angular-editor";
|
|
52
|
+
import * as i51 from "@angular/material/dialog";
|
|
53
|
+
import * as i52 from "@angular/material/tree";
|
|
54
|
+
import * as i53 from "@angular/common/http";
|
|
55
|
+
import * as i54 from "@angular/material/tooltip";
|
|
56
|
+
import * as i55 from "@angular/material/select";
|
|
56
57
|
export declare class AspLibModule {
|
|
57
58
|
static ɵfac: i0.ɵɵFactoryDeclaration<AspLibModule, never>;
|
|
58
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<AspLibModule, [typeof i1.AspLibComponent, typeof i2.MenuComponent, typeof i3.ApplicationMenuComponent, typeof i4.DropdownComponent, typeof i5.SecurityAdminComponent, typeof i6.ItemsViewerComponent, typeof i7.InputComponent, typeof i8.SelectComponent, typeof i9.EntityAdminComponent, typeof i10.HeaderComponent, typeof i11.RecentsDropdownComponent, typeof i12.NotificationsComponent, typeof i13.CompanyDropdownComponent, typeof i14.UserDropdownComponent, typeof i15.RadioGroupComponent, typeof i16.BasicItemComponent, typeof i17.RoleCardComponent, typeof i18.ItemsSelectorComponent, typeof i19.CheckboxComponent, typeof i20.CheckboxFieldComponent, typeof i21.FormComponent, typeof i22.ResourceActionsComponent, typeof i23.AssignRolesComponent, typeof i24.RoleInfoComponent, typeof i25.MenuAdminComponent, typeof i26.LoaderComponent, typeof i27.SnackbarComponent, typeof i28.RadioButtonComponent, typeof i29.MenuChildReportComponent, typeof i30.TreeComponent, typeof i31.MultiOptionDialogComponent, typeof i32.MoveMenuOptionComponent, typeof i33.ListComponent, typeof i34.ModulesAdminComponent, typeof i35.Form2Component, typeof i36.NestedItemsSelectorComponent, typeof i37.TranslatePipe, typeof i38.ChangePasswordComponent], [typeof
|
|
59
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AspLibModule, [typeof i1.AspLibComponent, typeof i2.MenuComponent, typeof i3.ApplicationMenuComponent, typeof i4.DropdownComponent, typeof i5.SecurityAdminComponent, typeof i6.ItemsViewerComponent, typeof i7.InputComponent, typeof i8.SelectComponent, typeof i9.EntityAdminComponent, typeof i10.HeaderComponent, typeof i11.RecentsDropdownComponent, typeof i12.NotificationsComponent, typeof i13.CompanyDropdownComponent, typeof i14.UserDropdownComponent, typeof i15.RadioGroupComponent, typeof i16.BasicItemComponent, typeof i17.RoleCardComponent, typeof i18.ItemsSelectorComponent, typeof i19.CheckboxComponent, typeof i20.CheckboxFieldComponent, typeof i21.FormComponent, typeof i22.ResourceActionsComponent, typeof i23.AssignRolesComponent, typeof i24.RoleInfoComponent, typeof i25.MenuAdminComponent, typeof i26.LoaderComponent, typeof i27.SnackbarComponent, typeof i28.RadioButtonComponent, typeof i29.MenuChildReportComponent, typeof i30.TreeComponent, typeof i31.MultiOptionDialogComponent, typeof i32.MoveMenuOptionComponent, typeof i33.ListComponent, typeof i34.ModulesAdminComponent, typeof i35.Form2Component, typeof i36.NestedItemsSelectorComponent, typeof i37.TranslatePipe, typeof i38.ChangePasswordComponent, typeof i39.RoleMenuOptionsComponent], [typeof i40.CommonModule, typeof i41.MatRadioModule, typeof i42.FormsModule, typeof i42.ReactiveFormsModule, typeof i43.MatFormFieldModule, typeof i44.MatInputModule, typeof i45.MatPaginatorModule, typeof i46.MatTabsModule, typeof i47.MatMenuModule, typeof i48.MatCheckboxModule, typeof i49.DragDropModule, typeof i50.AngularEditorModule, typeof i51.MatDialogModule, typeof i52.MatTreeModule, typeof i53.HttpClientModule, typeof i54.MatTooltipModule, typeof i55.MatSelectModule], [typeof i1.AspLibComponent, typeof i2.MenuComponent, typeof i3.ApplicationMenuComponent, typeof i4.DropdownComponent, typeof i5.SecurityAdminComponent, typeof i6.ItemsViewerComponent, typeof i7.InputComponent, typeof i8.SelectComponent, typeof i9.EntityAdminComponent, typeof i10.HeaderComponent, typeof i11.RecentsDropdownComponent, typeof i12.NotificationsComponent, typeof i13.CompanyDropdownComponent, typeof i14.UserDropdownComponent, typeof i15.RadioGroupComponent, typeof i16.BasicItemComponent, typeof i17.RoleCardComponent, typeof i18.ItemsSelectorComponent, typeof i20.CheckboxFieldComponent, typeof i19.CheckboxComponent, typeof i29.MenuChildReportComponent]>;
|
|
59
60
|
static ɵinj: i0.ɵɵInjectorDeclaration<AspLibModule>;
|
|
60
61
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { CdkDragDrop } from '@angular/cdk/drag-drop';
|
|
2
|
+
import { OnInit } from '@angular/core';
|
|
2
3
|
import { MatDialogRef } from '@angular/material/dialog';
|
|
3
4
|
import { SecurityAdminService } from '../services/security-admin.service';
|
|
4
5
|
import { FormControl } from '@angular/forms';
|
|
@@ -9,7 +10,7 @@ interface Entity {
|
|
|
9
10
|
name: string;
|
|
10
11
|
entityType: "Customer" | "User";
|
|
11
12
|
}
|
|
12
|
-
export declare class AssignRolesComponent {
|
|
13
|
+
export declare class AssignRolesComponent implements OnInit {
|
|
13
14
|
dialogRef: MatDialogRef<AssignRolesComponent>;
|
|
14
15
|
data: {
|
|
15
16
|
theme: string;
|
|
@@ -18,7 +19,8 @@ export declare class AssignRolesComponent {
|
|
|
18
19
|
private securityAdminService;
|
|
19
20
|
private snackbar;
|
|
20
21
|
theme: string;
|
|
21
|
-
|
|
22
|
+
allRoles: any[];
|
|
23
|
+
filteredAvailableRoles: any[];
|
|
22
24
|
dropHover: boolean;
|
|
23
25
|
assigned: Set<string | number>;
|
|
24
26
|
search: FormControl<string | null>;
|
|
@@ -30,6 +32,12 @@ export declare class AssignRolesComponent {
|
|
|
30
32
|
get dragOptions(): any[];
|
|
31
33
|
get droppedItems(): any[];
|
|
32
34
|
get entityName(): string;
|
|
35
|
+
constructor(dialogRef: MatDialogRef<AssignRolesComponent>, data: {
|
|
36
|
+
theme: string;
|
|
37
|
+
entityType: "Customer" | "User";
|
|
38
|
+
}, securityAdminService: SecurityAdminService, snackbar: SnackbarService);
|
|
39
|
+
ngOnInit(): void;
|
|
40
|
+
filterAvailableRoles(searchTerm: string): void;
|
|
33
41
|
removeRole(role: any): void;
|
|
34
42
|
uiActions: {
|
|
35
43
|
icon: string;
|
|
@@ -37,10 +45,6 @@ export declare class AssignRolesComponent {
|
|
|
37
45
|
}[];
|
|
38
46
|
drop(event: CdkDragDrop<any[]>): void;
|
|
39
47
|
setDropHover(value: boolean): void;
|
|
40
|
-
constructor(dialogRef: MatDialogRef<AssignRolesComponent>, data: {
|
|
41
|
-
theme: string;
|
|
42
|
-
entityType: "Customer" | "User";
|
|
43
|
-
}, securityAdminService: SecurityAdminService, snackbar: SnackbarService);
|
|
44
48
|
loadAssignedRoles(): void;
|
|
45
49
|
loadRoleOptions(): void;
|
|
46
50
|
onSave(): void;
|
|
@@ -3,10 +3,12 @@ import { EventEmitter, OnChanges, OnInit, SimpleChanges, Type } from '@angular/c
|
|
|
3
3
|
import { MatDialog } from '@angular/material/dialog';
|
|
4
4
|
import { FormField } from '../interfaces/interfaces';
|
|
5
5
|
import { HttpClient } from '@angular/common/http';
|
|
6
|
+
import { SecurityServices } from '../utils/services/SecurityServicesDefault';
|
|
6
7
|
import * as i0 from "@angular/core";
|
|
7
8
|
export declare class FormComponent implements OnInit, OnChanges {
|
|
8
9
|
dialog: MatDialog;
|
|
9
10
|
private http;
|
|
11
|
+
private securityServices;
|
|
10
12
|
form: FormField[];
|
|
11
13
|
formControls: any;
|
|
12
14
|
formActions: any[];
|
|
@@ -14,6 +16,7 @@ export declare class FormComponent implements OnInit, OnChanges {
|
|
|
14
16
|
title: string;
|
|
15
17
|
icon: string;
|
|
16
18
|
entityObject: any;
|
|
19
|
+
formType: string;
|
|
17
20
|
saveClick: EventEmitter<any>;
|
|
18
21
|
dropItemsList1: any;
|
|
19
22
|
dragOptionsList1: any;
|
|
@@ -56,9 +59,10 @@ export declare class FormComponent implements OnInit, OnChanges {
|
|
|
56
59
|
removeDroppedItem(item: any): void;
|
|
57
60
|
removeDroppedItemMO(item: any): void;
|
|
58
61
|
setupItem(item: any): void;
|
|
59
|
-
constructor(dialog: MatDialog, http: HttpClient);
|
|
62
|
+
constructor(dialog: MatDialog, http: HttpClient, securityServices: SecurityServices);
|
|
60
63
|
getFormControl(field: any): any;
|
|
61
64
|
isActive(checkbox: FormField): any;
|
|
65
|
+
openRoleMenuOptionsModal(): void;
|
|
62
66
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormComponent, never>;
|
|
63
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FormComponent, "lib-form", never, { "form": { "alias": "form"; "required": false; }; "formControls": { "alias": "formControls"; "required": false; }; "formActions": { "alias": "formActions"; "required": false; }; "theme": { "alias": "theme"; "required": false; }; "title": { "alias": "title"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "entityObject": { "alias": "entityObject"; "required": false; }; }, { "saveClick": "saveClick"; }, never, never, false, never>;
|
|
67
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormComponent, "lib-form", never, { "form": { "alias": "form"; "required": false; }; "formControls": { "alias": "formControls"; "required": false; }; "formActions": { "alias": "formActions"; "required": false; }; "theme": { "alias": "theme"; "required": false; }; "title": { "alias": "title"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "entityObject": { "alias": "entityObject"; "required": false; }; "formType": { "alias": "formType"; "required": false; }; }, { "saveClick": "saveClick"; }, never, never, false, never>;
|
|
64
68
|
}
|
|
@@ -17,6 +17,7 @@ export declare class ItemsSelectorComponent implements OnInit {
|
|
|
17
17
|
showPaginator: boolean;
|
|
18
18
|
saveClick: EventEmitter<any[]>;
|
|
19
19
|
hidden: boolean;
|
|
20
|
+
itemType: string;
|
|
20
21
|
get display(): "none" | "flex";
|
|
21
22
|
selectionIds: Set<number | string>;
|
|
22
23
|
loadedItems: any[];
|
|
@@ -32,5 +33,5 @@ export declare class ItemsSelectorComponent implements OnInit {
|
|
|
32
33
|
get selectionItems(): any[];
|
|
33
34
|
save(): void;
|
|
34
35
|
static ɵfac: i0.ɵɵFactoryDeclaration<ItemsSelectorComponent, never>;
|
|
35
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ItemsSelectorComponent, "lib-items-selector", never, { "items": { "alias": "items"; "required": false; }; "listTitle": { "alias": "listTitle"; "required": false; }; "theme": { "alias": "theme"; "required": false; }; "selectionTitle": { "alias": "selectionTitle"; "required": false; }; "initialSelection": { "alias": "initialSelection"; "required": false; }; "listEndpoint": { "alias": "listEndpoint"; "required": false; }; "reloadSelectionSubject": { "alias": "reloadSelectionSubject"; "required": false; }; "itemLabelMap": { "alias": "itemLabelMap"; "required": false; }; "selectionEndpoint": { "alias": "selectionEndpoint"; "required": false; }; "showPaginator": { "alias": "showPaginator"; "required": false; }; "hidden": { "alias": "hidden"; "required": false; }; }, { "saveClick": "saveClick"; }, never, never, false, never>;
|
|
36
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ItemsSelectorComponent, "lib-items-selector", never, { "items": { "alias": "items"; "required": false; }; "listTitle": { "alias": "listTitle"; "required": false; }; "theme": { "alias": "theme"; "required": false; }; "selectionTitle": { "alias": "selectionTitle"; "required": false; }; "initialSelection": { "alias": "initialSelection"; "required": false; }; "listEndpoint": { "alias": "listEndpoint"; "required": false; }; "reloadSelectionSubject": { "alias": "reloadSelectionSubject"; "required": false; }; "itemLabelMap": { "alias": "itemLabelMap"; "required": false; }; "selectionEndpoint": { "alias": "selectionEndpoint"; "required": false; }; "showPaginator": { "alias": "showPaginator"; "required": false; }; "hidden": { "alias": "hidden"; "required": false; }; "itemType": { "alias": "itemType"; "required": false; }; }, { "saveClick": "saveClick"; }, never, never, false, never>;
|
|
36
37
|
}
|
|
@@ -46,6 +46,7 @@ export declare class ItemsViewerComponent implements OnInit, OnChanges {
|
|
|
46
46
|
}[];
|
|
47
47
|
emptyPlaceholder: string;
|
|
48
48
|
itemLabelMap: any;
|
|
49
|
+
itemType: string;
|
|
49
50
|
selectItem: EventEmitter<any>;
|
|
50
51
|
toggleItem: EventEmitter<any>;
|
|
51
52
|
addClick: EventEmitter<any>;
|
|
@@ -96,5 +97,5 @@ export declare class ItemsViewerComponent implements OnInit, OnChanges {
|
|
|
96
97
|
itemControl(item: any): any;
|
|
97
98
|
checkboxChange(event: any, id: number): void;
|
|
98
99
|
static ɵfac: i0.ɵɵFactoryDeclaration<ItemsViewerComponent, never>;
|
|
99
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ItemsViewerComponent, "lib-items-viewer", never, { "icon": { "alias": "icon"; "required": false; }; "theme": { "alias": "theme"; "required": false; }; "title": { "alias": "title"; "required": false; }; "itemIcon": { "alias": "itemIcon"; "required": false; }; "items": { "alias": "items"; "required": false; }; "entityUiComponent": { "alias": "entityUiComponent"; "required": false; }; "uiComponentInputs": { "alias": "uiComponentInputs"; "required": false; }; "searchFilter": { "alias": "searchFilter"; "required": false; }; "showCreateButton": { "alias": "showCreateButton"; "required": false; }; "showOrderButtons": { "alias": "showOrderButtons"; "required": false; }; "selectedItem": { "alias": "selectedItem"; "required": false; }; "selectionIds": { "alias": "selectionIds"; "required": false; }; "multipleSelection": { "alias": "multipleSelection"; "required": false; }; "showSelectedAtTop": { "alias": "showSelectedAtTop"; "required": false; }; "itemControls": { "alias": "itemControls"; "required": false; }; "showPaginator": { "alias": "showPaginator"; "required": false; }; "draggableItems": { "alias": "draggableItems"; "required": false; }; "showSearch": { "alias": "showSearch"; "required": false; }; "listEndpoint": { "alias": "listEndpoint"; "required": false; }; "itemsEndpoint": { "alias": "itemsEndpoint"; "required": false; }; "listRequestMapping": { "alias": "listRequestMapping"; "required": false; }; "endpointParams": { "alias": "endpointParams"; "required": false; }; "reloadSubject": { "alias": "reloadSubject"; "required": false; }; "externalLoading": { "alias": "externalLoading"; "required": false; }; "orderProperties": { "alias": "orderProperties"; "required": false; }; "emptyPlaceholder": { "alias": "emptyPlaceholder"; "required": false; }; "itemLabelMap": { "alias": "itemLabelMap"; "required": false; }; "pageSize": { "alias": "pageSize"; "required": false; }; "style": { "alias": "style"; "required": false; }; }, { "selectItem": "selectItem"; "toggleItem": "toggleItem"; "addClick": "addClick"; "itemsLoaded": "itemsLoaded"; }, never, never, false, never>;
|
|
100
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ItemsViewerComponent, "lib-items-viewer", never, { "icon": { "alias": "icon"; "required": false; }; "theme": { "alias": "theme"; "required": false; }; "title": { "alias": "title"; "required": false; }; "itemIcon": { "alias": "itemIcon"; "required": false; }; "items": { "alias": "items"; "required": false; }; "entityUiComponent": { "alias": "entityUiComponent"; "required": false; }; "uiComponentInputs": { "alias": "uiComponentInputs"; "required": false; }; "searchFilter": { "alias": "searchFilter"; "required": false; }; "showCreateButton": { "alias": "showCreateButton"; "required": false; }; "showOrderButtons": { "alias": "showOrderButtons"; "required": false; }; "selectedItem": { "alias": "selectedItem"; "required": false; }; "selectionIds": { "alias": "selectionIds"; "required": false; }; "multipleSelection": { "alias": "multipleSelection"; "required": false; }; "showSelectedAtTop": { "alias": "showSelectedAtTop"; "required": false; }; "itemControls": { "alias": "itemControls"; "required": false; }; "showPaginator": { "alias": "showPaginator"; "required": false; }; "draggableItems": { "alias": "draggableItems"; "required": false; }; "showSearch": { "alias": "showSearch"; "required": false; }; "listEndpoint": { "alias": "listEndpoint"; "required": false; }; "itemsEndpoint": { "alias": "itemsEndpoint"; "required": false; }; "listRequestMapping": { "alias": "listRequestMapping"; "required": false; }; "endpointParams": { "alias": "endpointParams"; "required": false; }; "reloadSubject": { "alias": "reloadSubject"; "required": false; }; "externalLoading": { "alias": "externalLoading"; "required": false; }; "orderProperties": { "alias": "orderProperties"; "required": false; }; "emptyPlaceholder": { "alias": "emptyPlaceholder"; "required": false; }; "itemLabelMap": { "alias": "itemLabelMap"; "required": false; }; "itemType": { "alias": "itemType"; "required": false; }; "pageSize": { "alias": "pageSize"; "required": false; }; "style": { "alias": "style"; "required": false; }; }, { "selectItem": "selectItem"; "toggleItem": "toggleItem"; "addClick": "addClick"; "itemsLoaded": "itemsLoaded"; }, never, never, false, never>;
|
|
100
101
|
}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { MatDialogRef } from '@angular/material/dialog';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
interface AppInfo {
|
|
5
|
+
id: number;
|
|
6
|
+
name: string;
|
|
7
|
+
description?: string;
|
|
8
|
+
welcomeMessage?: string;
|
|
9
|
+
icon?: string;
|
|
10
|
+
url?: string;
|
|
11
|
+
}
|
|
12
|
+
interface Module {
|
|
13
|
+
id: number;
|
|
14
|
+
name: string;
|
|
15
|
+
icon: string;
|
|
16
|
+
defaultOption: string;
|
|
17
|
+
options: {
|
|
18
|
+
id: string;
|
|
19
|
+
name: string;
|
|
20
|
+
}[];
|
|
21
|
+
permissions: MenuOption[];
|
|
22
|
+
appId?: number;
|
|
23
|
+
}
|
|
24
|
+
interface MenuOption {
|
|
25
|
+
id: number;
|
|
26
|
+
label: string;
|
|
27
|
+
baseUrl?: string;
|
|
28
|
+
icon?: string;
|
|
29
|
+
tab?: string;
|
|
30
|
+
parentId: number | null;
|
|
31
|
+
tabType?: string;
|
|
32
|
+
appId: AppInfo;
|
|
33
|
+
welcomeMessage?: string;
|
|
34
|
+
description?: string;
|
|
35
|
+
metaData?: string;
|
|
36
|
+
orderId?: string;
|
|
37
|
+
childrenOptions?: string;
|
|
38
|
+
typeOption?: string;
|
|
39
|
+
serverSorting?: string;
|
|
40
|
+
showAdmin?: string;
|
|
41
|
+
baseUrl2?: string;
|
|
42
|
+
disabled?: string;
|
|
43
|
+
validFlag?: string;
|
|
44
|
+
format?: string;
|
|
45
|
+
checked?: boolean;
|
|
46
|
+
indeterminate?: boolean;
|
|
47
|
+
children?: MenuOption[];
|
|
48
|
+
expanded?: boolean;
|
|
49
|
+
wiseUrl?: boolean | null;
|
|
50
|
+
jformsUrl?: boolean | null;
|
|
51
|
+
dataAvailability?: any;
|
|
52
|
+
welcomeName?: any;
|
|
53
|
+
childrenOption?: any;
|
|
54
|
+
}
|
|
55
|
+
export declare class RoleMenuOptionsComponent implements OnInit {
|
|
56
|
+
dialogRef: MatDialogRef<RoleMenuOptionsComponent>;
|
|
57
|
+
data: any;
|
|
58
|
+
selectedModule: Module | null;
|
|
59
|
+
modules: Module[];
|
|
60
|
+
menuOptions: MenuOption[];
|
|
61
|
+
filteredMenuOptions: MenuOption[];
|
|
62
|
+
loading: boolean;
|
|
63
|
+
loadingOptions: boolean;
|
|
64
|
+
assignedMenuOptions: Set<string | number>;
|
|
65
|
+
constructor(dialogRef: MatDialogRef<RoleMenuOptionsComponent>, data: any);
|
|
66
|
+
ngOnInit(): void;
|
|
67
|
+
loadModules(): void;
|
|
68
|
+
loadMenuOptions(): void;
|
|
69
|
+
mapMenuOption(option: any, level?: number): MenuOption;
|
|
70
|
+
filterMenuOptionsByModule(): void;
|
|
71
|
+
selectModule(module: Module): void;
|
|
72
|
+
toggleOption(option: MenuOption): void;
|
|
73
|
+
updateChildrenChecked(option: MenuOption, checked: boolean): void;
|
|
74
|
+
updateParentChecked(option: MenuOption): void;
|
|
75
|
+
findParentOption(parentId: number | null): MenuOption | null;
|
|
76
|
+
toggleExpanded(option: MenuOption): void;
|
|
77
|
+
trackByOptionId(index: number, option: MenuOption): number;
|
|
78
|
+
cancel(): void;
|
|
79
|
+
save(): void;
|
|
80
|
+
getSelectedOptions(options: MenuOption[]): MenuOption[];
|
|
81
|
+
updateIndeterminateState(option: MenuOption): void;
|
|
82
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RoleMenuOptionsComponent, never>;
|
|
83
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RoleMenuOptionsComponent, "lib-role-menu-options", never, {}, {}, never, never, false, never>;
|
|
84
|
+
}
|
|
85
|
+
export {};
|
|
@@ -4,7 +4,9 @@ import * as i0 from "@angular/core";
|
|
|
4
4
|
export declare class SecurityServices {
|
|
5
5
|
private http;
|
|
6
6
|
static readonly HISTORY = "/security/secure/gethistory";
|
|
7
|
-
static readonly MODULES = "/security/secure/
|
|
7
|
+
static readonly MODULES = "/security/secure/modulelist";
|
|
8
|
+
static readonly MENU_OPTIONS = "/security/secure/optionlist";
|
|
9
|
+
static readonly MODULES_BY_USER = "/security/secure/modulesbyuser";
|
|
8
10
|
static readonly MODULE_OPTION = "/security/secure/optionsbymodule";
|
|
9
11
|
static readonly COMPANIES_INFO = "/security/secure/getCompaniesInfo";
|
|
10
12
|
static readonly VERIFY_AUTH = "/security/secure/validatesession";
|
|
@@ -18,7 +20,9 @@ export declare class SecurityServices {
|
|
|
18
20
|
static readonly SET_DEFAULT_AGENCY = "/security/secure/setdefault";
|
|
19
21
|
constructor(http: HttpClient);
|
|
20
22
|
getHistory(baseUrl: string): Observable<Object>;
|
|
23
|
+
getModulesByUser(baseUrl: string): Observable<Object>;
|
|
21
24
|
getModules(baseUrl: string): Observable<Object>;
|
|
25
|
+
getMenuOptions(baseUrl: string): Observable<Object>;
|
|
22
26
|
menuModuleSelected(baseUrl: string, appId: any): Observable<Object>;
|
|
23
27
|
getCompaniesInfo(baseUrl: string): Observable<Object>;
|
|
24
28
|
isAuthenticated(baseUrl: string): Observable<Object>;
|