asp-lib 1.0.30 → 1.0.32
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/assign-roles/assign-roles.component.mjs +1 -1
- package/esm2022/lib/company-dropdown/company-dropdown.component.mjs +3 -3
- package/esm2022/lib/entity-admin/entity-admin.component.mjs +23 -9
- package/esm2022/lib/form/form.component.mjs +70 -3
- package/esm2022/lib/form-2/form-2.component.mjs +1 -1
- package/esm2022/lib/header/header.component.mjs +2 -2
- package/esm2022/lib/input/input.component.mjs +6 -3
- package/esm2022/lib/interfaces/interfaces.mjs +1 -1
- package/esm2022/lib/items-viewer/items-viewer.component.mjs +1 -1
- package/esm2022/lib/menu/menu.component.mjs +3 -3
- package/esm2022/lib/menu-admin/menu-admin.component.mjs +3 -3
- package/esm2022/lib/security-admin/security-admin.component.mjs +5 -2
- package/esm2022/lib/services/security-admin.service.mjs +5 -2
- package/esm2022/lib/user-dropdown/user-dropdown.component.mjs +22 -12
- package/esm2022/lib/utils/services/SecurityServicesDefault.mjs +6 -2
- package/fesm2022/asp-lib.mjs +141 -37
- package/fesm2022/asp-lib.mjs.map +1 -1
- package/lib/form/form.component.d.ts +15 -0
- package/lib/input/input.component.d.ts +2 -1
- package/lib/interfaces/interfaces.d.ts +6 -1
- package/lib/security-admin/security-admin.component.d.ts +9 -0
- package/lib/services/security-admin.service.d.ts +1 -0
- package/lib/user-dropdown/user-dropdown.component.d.ts +3 -3
- package/lib/utils/services/SecurityServicesDefault.d.ts +3 -1
- package/package.json +1 -1
|
@@ -17,18 +17,30 @@ export declare class FormComponent implements OnInit, OnChanges {
|
|
|
17
17
|
saveClick: EventEmitter<any>;
|
|
18
18
|
dropItemsList1: any;
|
|
19
19
|
dragOptionsList1: any;
|
|
20
|
+
dropItemsListMO: any;
|
|
21
|
+
dragOptionsListMO: any;
|
|
20
22
|
assigned: Set<string | number>;
|
|
23
|
+
assignedMO: Set<string | number>;
|
|
21
24
|
dropHover: boolean;
|
|
25
|
+
dropHoverMO: boolean;
|
|
22
26
|
loadingDragOptions: boolean;
|
|
27
|
+
loadingMenuOptionsDragOptions: boolean;
|
|
23
28
|
loadedDragOptions: any[];
|
|
29
|
+
loadedMenuOptionsDragOptions: any[];
|
|
24
30
|
loadingDroppedOptions: boolean;
|
|
31
|
+
loadingDroppedOptionsMO: boolean;
|
|
25
32
|
get hasRadioButtons(): boolean;
|
|
26
33
|
get hasCheckBoxes(): boolean;
|
|
27
34
|
get hasDragAndDrop(): boolean;
|
|
35
|
+
get hasMenuOptionsDragAndDrop(): boolean;
|
|
28
36
|
get dragDropField(): FormField | undefined;
|
|
29
37
|
get dragDropFieldOptions(): any[] | undefined;
|
|
30
38
|
get dragOptions(): any[];
|
|
31
39
|
get droppedItems(): any[];
|
|
40
|
+
get dragMenuOptionsDropField(): FormField | undefined;
|
|
41
|
+
get dragMenuOptionsDropFieldOptions(): any[] | undefined;
|
|
42
|
+
get dragMenuOptionsOptions(): any[];
|
|
43
|
+
get droppedItemsMenuOptions(): any[];
|
|
32
44
|
get isCreating(): boolean;
|
|
33
45
|
get dropItemSetupUi(): Type<any> | undefined;
|
|
34
46
|
entityFormInputs(types: string[]): FormField[];
|
|
@@ -38,8 +50,11 @@ export declare class FormComponent implements OnInit, OnChanges {
|
|
|
38
50
|
ngOnChanges(changes: SimpleChanges): void;
|
|
39
51
|
ngOnInit(): void;
|
|
40
52
|
drop(event: CdkDragDrop<any[]>): void;
|
|
53
|
+
dropMO(event: CdkDragDrop<any[]>): void;
|
|
41
54
|
setDropHover(value: boolean): void;
|
|
55
|
+
setDropHoverMO(value: boolean): void;
|
|
42
56
|
removeDroppedItem(item: any): void;
|
|
57
|
+
removeDroppedItemMO(item: any): void;
|
|
43
58
|
setupItem(item: any): void;
|
|
44
59
|
constructor(dialog: MatDialog, http: HttpClient);
|
|
45
60
|
getFormControl(field: any): any;
|
|
@@ -12,6 +12,7 @@ export declare class InputComponent {
|
|
|
12
12
|
appereance: string;
|
|
13
13
|
clearButton: boolean;
|
|
14
14
|
disabled?: boolean;
|
|
15
|
+
type: string;
|
|
15
16
|
keyup: EventEmitter<any>;
|
|
16
17
|
hostStyle: any;
|
|
17
18
|
set style(styleInput: {
|
|
@@ -23,5 +24,5 @@ export declare class InputComponent {
|
|
|
23
24
|
clearValue(): void;
|
|
24
25
|
keyupHandler(event: any): void;
|
|
25
26
|
static ɵfac: i0.ɵɵFactoryDeclaration<InputComponent, never>;
|
|
26
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<InputComponent, "lib-input", never, { "name": { "alias": "name"; "required": false; }; "label": { "alias": "label"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "iconPosition": { "alias": "iconPosition"; "required": false; }; "className": { "alias": "className"; "required": false; }; "formControl": { "alias": "formControl"; "required": false; }; "theme": { "alias": "theme"; "required": false; }; "appereance": { "alias": "appereance"; "required": false; }; "clearButton": { "alias": "clearButton"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "style": { "alias": "style"; "required": false; }; }, { "keyup": "keyup"; }, never, never, false, never>;
|
|
27
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<InputComponent, "lib-input", never, { "name": { "alias": "name"; "required": false; }; "label": { "alias": "label"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "iconPosition": { "alias": "iconPosition"; "required": false; }; "className": { "alias": "className"; "required": false; }; "formControl": { "alias": "formControl"; "required": false; }; "theme": { "alias": "theme"; "required": false; }; "appereance": { "alias": "appereance"; "required": false; }; "clearButton": { "alias": "clearButton"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "type": { "alias": "type"; "required": false; }; "style": { "alias": "style"; "required": false; }; }, { "keyup": "keyup"; }, never, never, false, never>;
|
|
27
28
|
}
|
|
@@ -28,6 +28,8 @@ export interface FormField {
|
|
|
28
28
|
requiresNewValue?: boolean;
|
|
29
29
|
creationRequired?: boolean;
|
|
30
30
|
readOnly?: boolean;
|
|
31
|
+
inputType?: string;
|
|
32
|
+
drags?: any[];
|
|
31
33
|
}
|
|
32
34
|
export interface RequestDetails {
|
|
33
35
|
endpoint: string;
|
|
@@ -73,11 +75,13 @@ export interface SecurityEndpoints {
|
|
|
73
75
|
usersByCustomer?: SecurityEndpoint;
|
|
74
76
|
listResources?: SecurityEndpoint;
|
|
75
77
|
resourcesByRole?: SecurityEndpoint;
|
|
78
|
+
optionsbyrole?: SecurityEndpoint;
|
|
76
79
|
rolesByUser?: SecurityEndpoint;
|
|
77
80
|
assignUserRole?: SecurityEndpoint;
|
|
78
81
|
rolesByCustomer?: SecurityEndpoint;
|
|
79
82
|
assignCustomerRole?: SecurityEndpoint;
|
|
80
|
-
|
|
83
|
+
assignResources?: SecurityEndpoint;
|
|
84
|
+
assignoptions?: SecurityEndpoint;
|
|
81
85
|
savePermissions?: SecurityEndpoint;
|
|
82
86
|
usersByRole?: SecurityEndpoint;
|
|
83
87
|
assignRoleUsers?: SecurityEndpoint;
|
|
@@ -96,4 +100,5 @@ export interface SecurityEndpoints {
|
|
|
96
100
|
assignUserAgencies?: SecurityEndpoint;
|
|
97
101
|
listAllAgencies?: SecurityEndpoint;
|
|
98
102
|
assignCustomerUsers?: SecurityEndpoint;
|
|
103
|
+
parentoptions?: SecurityEndpoint;
|
|
99
104
|
}
|
|
@@ -33,6 +33,15 @@ export declare class SecurityAdminComponent implements OnInit {
|
|
|
33
33
|
setupUi: typeof ResourceActionsComponent;
|
|
34
34
|
optionsEndpoint: string | import("../interfaces/interfaces").SecurityEndpoint;
|
|
35
35
|
};
|
|
36
|
+
menuOptionsField: {
|
|
37
|
+
label: string;
|
|
38
|
+
dropLabel: string;
|
|
39
|
+
name: string;
|
|
40
|
+
type: string;
|
|
41
|
+
dragTitle: string;
|
|
42
|
+
setupUi: typeof ResourceActionsComponent;
|
|
43
|
+
optionsEndpoint: string | import("../interfaces/interfaces").SecurityEndpoint;
|
|
44
|
+
};
|
|
36
45
|
resetItemSelected: Subject<boolean>;
|
|
37
46
|
assignRoles: (entityType: "Customer" | "User") => void;
|
|
38
47
|
userActions: {
|
|
@@ -57,6 +57,7 @@ export declare class SecurityAdminService {
|
|
|
57
57
|
selectRole(role: any): void;
|
|
58
58
|
saveItem(endpoint: string, updatedItem: any): Observable<Object>;
|
|
59
59
|
assignResource(roleId: number, resources: any[]): Observable<Object>;
|
|
60
|
+
assignOptions(roleId: number, options: any[]): Observable<Object>;
|
|
60
61
|
savePermissions(permissions: any[]): Observable<Object>;
|
|
61
62
|
getMenuTree(): Observable<Object>;
|
|
62
63
|
getAppModules(): Observable<Object>;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { ElementRef } from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { SecurityServices } from '../utils/services/SecurityServicesDefault';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class UserDropdownComponent {
|
|
5
5
|
private elementRef;
|
|
6
|
-
private
|
|
6
|
+
private services;
|
|
7
7
|
isUserDropdownOpen: boolean;
|
|
8
8
|
fadeInOut: string;
|
|
9
|
-
constructor(elementRef: ElementRef,
|
|
9
|
+
constructor(elementRef: ElementRef, services: SecurityServices);
|
|
10
10
|
onClick(targetElement: HTMLElement): void;
|
|
11
11
|
get username(): string | null;
|
|
12
12
|
openUserDropdownHandler(): void;
|
|
@@ -4,11 +4,12 @@ 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/modulesbyuser";
|
|
8
8
|
static readonly MODULE_OPTION = "/security/secure/optionsbymodule";
|
|
9
9
|
static readonly COMPANIES_INFO = "/security/secure/getCompaniesInfo";
|
|
10
10
|
static readonly VERIFY_AUTH = "/security/secure/validatesession";
|
|
11
11
|
static readonly RESOURCES_BY_USER = "/security/secure/resourcesbyuser";
|
|
12
|
+
static readonly LOGOUT = "/security/secure/logOut";
|
|
12
13
|
constructor(http: HttpClient);
|
|
13
14
|
getHistory(baseUrl: string): Observable<Object>;
|
|
14
15
|
getModules(baseUrl: string): Observable<Object>;
|
|
@@ -16,6 +17,7 @@ export declare class SecurityServices {
|
|
|
16
17
|
getCompaniesInfo(baseUrl: string): Observable<Object>;
|
|
17
18
|
isAuthenticated(baseUrl: string): Observable<Object>;
|
|
18
19
|
getResourcesByUser(baseUrl: string): Observable<Object>;
|
|
20
|
+
logOut(baseUrl: string): Observable<Object>;
|
|
19
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<SecurityServices, never>;
|
|
20
22
|
static ɵprov: i0.ɵɵInjectableDeclaration<SecurityServices>;
|
|
21
23
|
}
|