asp-lib 1.0.4 → 1.0.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/application-menu/application-menu.component.mjs +4 -3
- package/esm2022/lib/asp-lib.module.mjs +150 -8
- package/esm2022/lib/assets/menu-data/menuDataTest.mjs +2077 -0
- package/esm2022/lib/assign-roles/assign-roles.component.mjs +151 -0
- package/esm2022/lib/basic-item/basic-item.component.mjs +32 -0
- package/esm2022/lib/checkbox/checkbox.component.mjs +29 -0
- package/esm2022/lib/checkbox-field/checkbox-field.component.mjs +28 -0
- package/esm2022/lib/company-dropdown/company-dropdown.component.mjs +75 -0
- package/esm2022/lib/dropdown/dropdown.component.mjs +3 -3
- package/esm2022/lib/form/form.component.mjs +131 -0
- package/esm2022/lib/header/header.component.mjs +67 -0
- package/esm2022/lib/input/input.component.mjs +65 -0
- package/esm2022/lib/interfaces/interfaces.mjs +1 -1
- package/esm2022/lib/items-selector/items-selector.component.mjs +79 -0
- package/esm2022/lib/items-viewer/items-viewer.component.mjs +222 -53
- package/esm2022/lib/list/list.component.mjs +11 -0
- package/esm2022/lib/loader/loader.component.mjs +45 -0
- package/esm2022/lib/menu/menu.component.mjs +4 -5
- package/esm2022/lib/menu-admin/menu-admin.component.mjs +281 -0
- package/esm2022/lib/move-menu-option/move-menu-option.component.mjs +58 -0
- package/esm2022/lib/multi-option-dialog/multi-option-dialog.component.mjs +31 -0
- package/esm2022/lib/notifications/notifications.component.mjs +67 -0
- package/esm2022/lib/radio-button/radio-button.component.mjs +19 -0
- package/esm2022/lib/radio-group/radio-group.component.mjs +56 -0
- package/esm2022/lib/recents-dropdown/recents-dropdown.component.mjs +76 -0
- package/esm2022/lib/resource-actions/resource-actions.component.mjs +79 -0
- package/esm2022/lib/role-card/role-card.component.mjs +40 -0
- package/esm2022/lib/role-info/role-info.component.mjs +75 -0
- package/esm2022/lib/security-admin/security-admin.component.mjs +259 -20
- package/esm2022/lib/select/select.component.mjs +100 -0
- package/esm2022/lib/services/dialog.service.mjs +27 -0
- package/esm2022/lib/services/security-admin.service.mjs +194 -0
- package/esm2022/lib/services/snackbar.service.mjs +41 -0
- package/esm2022/lib/snackbar/snackbar.component.mjs +26 -0
- package/esm2022/lib/tree/tree.component.mjs +73 -0
- package/esm2022/lib/user-dropdown/user-dropdown.component.mjs +57 -0
- package/esm2022/lib/users-admin/users-admin.component.mjs +269 -0
- package/esm2022/public-api.mjs +15 -1
- package/fesm2022/asp-lib.mjs +4789 -87
- package/fesm2022/asp-lib.mjs.map +1 -1
- package/lib/asp-lib.module.d.ts +42 -7
- package/lib/assets/menu-data/menuDataTest.d.ts +103 -0
- package/lib/assign-roles/assign-roles.component.d.ts +55 -0
- package/lib/basic-item/basic-item.component.d.ts +18 -0
- package/lib/checkbox/checkbox.component.d.ts +11 -0
- package/lib/checkbox-field/checkbox-field.component.d.ts +11 -0
- package/lib/company-dropdown/company-dropdown.component.d.ts +21 -0
- package/lib/form/form.component.d.ts +45 -0
- package/lib/header/header.component.d.ts +48 -0
- package/lib/input/input.component.d.ts +25 -0
- package/lib/interfaces/interfaces.d.ts +40 -0
- package/lib/items-selector/items-selector.component.d.ts +29 -0
- package/lib/items-viewer/items-viewer.component.d.ts +83 -10
- package/lib/list/list.component.d.ts +5 -0
- package/lib/loader/loader.component.d.ts +13 -0
- package/lib/menu/menu.component.d.ts +12 -1
- package/lib/menu-admin/menu-admin.component.d.ts +64 -0
- package/lib/move-menu-option/move-menu-option.component.d.ts +28 -0
- package/lib/multi-option-dialog/multi-option-dialog.component.d.ts +27 -0
- package/lib/notifications/notifications.component.d.ts +18 -0
- package/lib/radio-button/radio-button.component.d.ts +7 -0
- package/lib/radio-group/radio-group.component.d.ts +20 -0
- package/lib/recents-dropdown/recents-dropdown.component.d.ts +25 -0
- package/lib/resource-actions/resource-actions.component.d.ts +46 -0
- package/lib/role-card/role-card.component.d.ts +16 -0
- package/lib/role-info/role-info.component.d.ts +36 -0
- package/lib/security-admin/security-admin.component.d.ts +71 -6
- package/lib/select/select.component.d.ts +38 -0
- package/lib/services/dialog.service.d.ts +17 -0
- package/lib/services/security-admin.service.d.ts +91 -0
- package/lib/services/snackbar.service.d.ts +16 -0
- package/lib/snackbar/snackbar.component.d.ts +16 -0
- package/lib/tree/tree.component.d.ts +35 -0
- package/lib/user-dropdown/user-dropdown.component.d.ts +16 -0
- package/lib/users-admin/users-admin.component.d.ts +78 -0
- package/package.json +1 -1
- package/public-api.d.ts +14 -0
- package/src/lib/assets/fonts/fonts/asp-lib-icons.eot +0 -0
- package/src/lib/assets/fonts/fonts/asp-lib-icons.svg +46 -26
- package/src/lib/assets/fonts/fonts/asp-lib-icons.ttf +0 -0
- package/src/lib/assets/fonts/fonts/asp-lib-icons.woff +0 -0
- package/src/lib/assets/fonts/selection.json +1 -1
- package/src/lib/assets/fonts/style.css +138 -78
- package/src/lib/assets/menu-data/menuDataTest.ts +2239 -0
- package/src/lib/assets/theme.css +96 -5
package/lib/asp-lib.module.d.ts
CHANGED
|
@@ -5,14 +5,49 @@ import * as i3 from "./application-menu/application-menu.component";
|
|
|
5
5
|
import * as i4 from "./dropdown/dropdown.component";
|
|
6
6
|
import * as i5 from "./security-admin/security-admin.component";
|
|
7
7
|
import * as i6 from "./items-viewer/items-viewer.component";
|
|
8
|
-
import * as i7 from "
|
|
9
|
-
import * as i8 from "
|
|
10
|
-
import * as i9 from "
|
|
11
|
-
import * as i10 from "
|
|
12
|
-
import * as i11 from "
|
|
13
|
-
import * as i12 from "
|
|
8
|
+
import * as i7 from "./input/input.component";
|
|
9
|
+
import * as i8 from "./select/select.component";
|
|
10
|
+
import * as i9 from "./users-admin/users-admin.component";
|
|
11
|
+
import * as i10 from "./header/header.component";
|
|
12
|
+
import * as i11 from "./recents-dropdown/recents-dropdown.component";
|
|
13
|
+
import * as i12 from "./notifications/notifications.component";
|
|
14
|
+
import * as i13 from "./company-dropdown/company-dropdown.component";
|
|
15
|
+
import * as i14 from "./user-dropdown/user-dropdown.component";
|
|
16
|
+
import * as i15 from "./radio-group/radio-group.component";
|
|
17
|
+
import * as i16 from "./basic-item/basic-item.component";
|
|
18
|
+
import * as i17 from "./role-card/role-card.component";
|
|
19
|
+
import * as i18 from "./items-selector/items-selector.component";
|
|
20
|
+
import * as i19 from "./checkbox/checkbox.component";
|
|
21
|
+
import * as i20 from "./checkbox-field/checkbox-field.component";
|
|
22
|
+
import * as i21 from "./form/form.component";
|
|
23
|
+
import * as i22 from "./resource-actions/resource-actions.component";
|
|
24
|
+
import * as i23 from "./assign-roles/assign-roles.component";
|
|
25
|
+
import * as i24 from "./role-info/role-info.component";
|
|
26
|
+
import * as i25 from "./menu-admin/menu-admin.component";
|
|
27
|
+
import * as i26 from "./loader/loader.component";
|
|
28
|
+
import * as i27 from "./snackbar/snackbar.component";
|
|
29
|
+
import * as i28 from "./radio-button/radio-button.component";
|
|
30
|
+
import * as i29 from "./tree/tree.component";
|
|
31
|
+
import * as i30 from "./multi-option-dialog/multi-option-dialog.component";
|
|
32
|
+
import * as i31 from "./move-menu-option/move-menu-option.component";
|
|
33
|
+
import * as i32 from "./list/list.component";
|
|
34
|
+
import * as i33 from "@angular/common";
|
|
35
|
+
import * as i34 from "@angular/platform-browser/animations";
|
|
36
|
+
import * as i35 from "@angular/material/radio";
|
|
37
|
+
import * as i36 from "@angular/forms";
|
|
38
|
+
import * as i37 from "@angular/material/form-field";
|
|
39
|
+
import * as i38 from "@angular/material/input";
|
|
40
|
+
import * as i39 from "@angular/material/paginator";
|
|
41
|
+
import * as i40 from "@angular/material/tabs";
|
|
42
|
+
import * as i41 from "@angular/material/menu";
|
|
43
|
+
import * as i42 from "@angular/material/checkbox";
|
|
44
|
+
import * as i43 from "@angular/cdk/drag-drop";
|
|
45
|
+
import * as i44 from "@angular/material/dialog";
|
|
46
|
+
import * as i45 from "@angular/material/tree";
|
|
47
|
+
import * as i46 from "@angular/common/http";
|
|
48
|
+
import * as i47 from "@kolkov/angular-editor";
|
|
14
49
|
export declare class AspLibModule {
|
|
15
50
|
static ɵfac: i0.ɵɵFactoryDeclaration<AspLibModule, never>;
|
|
16
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<AspLibModule, [typeof i1.AspLibComponent, typeof i2.MenuComponent, typeof i3.ApplicationMenuComponent, typeof i4.DropdownComponent, typeof i5.SecurityAdminComponent, typeof i6.ItemsViewerComponent], [typeof
|
|
51
|
+
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.UsersAdminComponent, 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.TreeComponent, typeof i30.MultiOptionDialogComponent, typeof i31.MoveMenuOptionComponent, typeof i32.ListComponent], [typeof i33.CommonModule, typeof i34.BrowserAnimationsModule, typeof i35.MatRadioModule, typeof i36.FormsModule, typeof i36.ReactiveFormsModule, typeof i37.MatFormFieldModule, typeof i38.MatInputModule, typeof i39.MatPaginatorModule, typeof i40.MatTabsModule, typeof i41.MatMenuModule, typeof i42.MatCheckboxModule, typeof i43.DragDropModule, typeof i44.MatDialogModule, typeof i45.MatTreeModule, typeof i46.HttpClientModule, typeof i47.AngularEditorModule], [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.UsersAdminComponent, 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]>;
|
|
17
52
|
static ɵinj: i0.ɵɵInjectorDeclaration<AspLibModule>;
|
|
18
53
|
}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
export declare const menuData: {
|
|
2
|
+
categories: {
|
|
3
|
+
id: number;
|
|
4
|
+
parentId: null;
|
|
5
|
+
label: string;
|
|
6
|
+
options: ({
|
|
7
|
+
id: number;
|
|
8
|
+
label: string;
|
|
9
|
+
baseUrl: null;
|
|
10
|
+
icon: null;
|
|
11
|
+
parentId: null;
|
|
12
|
+
children: {
|
|
13
|
+
id: number;
|
|
14
|
+
categoryId: null;
|
|
15
|
+
label: string;
|
|
16
|
+
baseUrl: null;
|
|
17
|
+
icon: null;
|
|
18
|
+
parentId: number;
|
|
19
|
+
children: ({
|
|
20
|
+
id: number;
|
|
21
|
+
label: string;
|
|
22
|
+
baseUrl: string;
|
|
23
|
+
icon: null;
|
|
24
|
+
parentId: number;
|
|
25
|
+
children: never[];
|
|
26
|
+
categoryId?: undefined;
|
|
27
|
+
} | {
|
|
28
|
+
id: number;
|
|
29
|
+
categoryId: number;
|
|
30
|
+
label: string;
|
|
31
|
+
baseUrl: string;
|
|
32
|
+
icon: null;
|
|
33
|
+
parentId: number;
|
|
34
|
+
children: never[];
|
|
35
|
+
})[];
|
|
36
|
+
}[];
|
|
37
|
+
} | {
|
|
38
|
+
id: number;
|
|
39
|
+
label: string;
|
|
40
|
+
baseUrl: null;
|
|
41
|
+
icon: null;
|
|
42
|
+
parentId: null;
|
|
43
|
+
children: {
|
|
44
|
+
id: number;
|
|
45
|
+
label: string;
|
|
46
|
+
baseUrl: string;
|
|
47
|
+
icon: null;
|
|
48
|
+
parentId: number;
|
|
49
|
+
children: never[];
|
|
50
|
+
}[];
|
|
51
|
+
} | {
|
|
52
|
+
id: number;
|
|
53
|
+
label: string;
|
|
54
|
+
baseUrl: null;
|
|
55
|
+
icon: null;
|
|
56
|
+
parentId: null;
|
|
57
|
+
children: {
|
|
58
|
+
id: number;
|
|
59
|
+
label: string;
|
|
60
|
+
baseUrl: null;
|
|
61
|
+
icon: null;
|
|
62
|
+
parentId: number;
|
|
63
|
+
children: {
|
|
64
|
+
id: number;
|
|
65
|
+
label: string;
|
|
66
|
+
baseUrl: null;
|
|
67
|
+
icon: null;
|
|
68
|
+
parentId: number;
|
|
69
|
+
children: {
|
|
70
|
+
id: number;
|
|
71
|
+
label: string;
|
|
72
|
+
baseUrl: string;
|
|
73
|
+
icon: null;
|
|
74
|
+
parentId: number;
|
|
75
|
+
children: never[];
|
|
76
|
+
}[];
|
|
77
|
+
}[];
|
|
78
|
+
}[];
|
|
79
|
+
})[];
|
|
80
|
+
}[];
|
|
81
|
+
};
|
|
82
|
+
export declare const dropdownRecentOptions: {
|
|
83
|
+
id: number;
|
|
84
|
+
label: string;
|
|
85
|
+
icon: string;
|
|
86
|
+
date: string;
|
|
87
|
+
}[];
|
|
88
|
+
export declare const dropdownNotificationOptions: {
|
|
89
|
+
id: number;
|
|
90
|
+
name: string;
|
|
91
|
+
label: string;
|
|
92
|
+
description: string;
|
|
93
|
+
time: string;
|
|
94
|
+
}[];
|
|
95
|
+
export declare const dropdownCompaniesOptions: {
|
|
96
|
+
id: number;
|
|
97
|
+
name: string;
|
|
98
|
+
icon: string;
|
|
99
|
+
agencies: {
|
|
100
|
+
id: number;
|
|
101
|
+
name: string;
|
|
102
|
+
}[];
|
|
103
|
+
}[];
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { CdkDragDrop } from '@angular/cdk/drag-drop';
|
|
2
|
+
import { MatDialogRef } from '@angular/material/dialog';
|
|
3
|
+
import { SecurityAdminService } from '../services/security-admin.service';
|
|
4
|
+
import { FormControl } from '@angular/forms';
|
|
5
|
+
import { SnackbarService } from '../services/snackbar.service';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
interface Entity {
|
|
8
|
+
id: number;
|
|
9
|
+
name: string;
|
|
10
|
+
entityType: "Customer" | "User";
|
|
11
|
+
}
|
|
12
|
+
export declare class AssignRolesComponent {
|
|
13
|
+
dialogRef: MatDialogRef<AssignRolesComponent>;
|
|
14
|
+
data: {
|
|
15
|
+
theme: string;
|
|
16
|
+
entityType: "Customer" | "User";
|
|
17
|
+
};
|
|
18
|
+
private securityAdminService;
|
|
19
|
+
private snackbar;
|
|
20
|
+
theme: string;
|
|
21
|
+
roles: any[];
|
|
22
|
+
dropHover: boolean;
|
|
23
|
+
assigned: Set<string | number>;
|
|
24
|
+
search: FormControl<string | null>;
|
|
25
|
+
loadingOptions: boolean;
|
|
26
|
+
loadingSelection: boolean;
|
|
27
|
+
entity: Entity;
|
|
28
|
+
dropItemsList1: any;
|
|
29
|
+
dragOptionsList1: any;
|
|
30
|
+
get dragOptions(): any[];
|
|
31
|
+
get droppedItems(): any[];
|
|
32
|
+
get entityName(): string;
|
|
33
|
+
removeRole(role: any): void;
|
|
34
|
+
uiActions: {
|
|
35
|
+
icon: string;
|
|
36
|
+
callback: (role: any) => void;
|
|
37
|
+
}[];
|
|
38
|
+
drop(event: CdkDragDrop<any[]>): void;
|
|
39
|
+
setDropHover(value: boolean): void;
|
|
40
|
+
constructor(dialogRef: MatDialogRef<AssignRolesComponent>, data: {
|
|
41
|
+
theme: string;
|
|
42
|
+
entityType: "Customer" | "User";
|
|
43
|
+
}, securityAdminService: SecurityAdminService, snackbar: SnackbarService);
|
|
44
|
+
loadAssignedRoles(): void;
|
|
45
|
+
loadRoleOptions(): void;
|
|
46
|
+
onSave(): void;
|
|
47
|
+
onClose(): void;
|
|
48
|
+
roleActions: {
|
|
49
|
+
icon: string;
|
|
50
|
+
callback: (role: any) => void;
|
|
51
|
+
}[];
|
|
52
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AssignRolesComponent, never>;
|
|
53
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AssignRolesComponent, "lib-assign-roles", never, {}, {}, never, never, false, never>;
|
|
54
|
+
}
|
|
55
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
interface ItemButton {
|
|
3
|
+
icon: string;
|
|
4
|
+
button?: boolean;
|
|
5
|
+
callback?: any;
|
|
6
|
+
}
|
|
7
|
+
export declare class BasicItemComponent {
|
|
8
|
+
object: any;
|
|
9
|
+
icon: string;
|
|
10
|
+
theme: string;
|
|
11
|
+
itemOptions: ItemButton[];
|
|
12
|
+
draggable: boolean;
|
|
13
|
+
constructor();
|
|
14
|
+
get hasIcon(): boolean;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BasicItemComponent, never>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BasicItemComponent, "lib-basic-item", never, { "object": { "alias": "object"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "theme": { "alias": "theme"; "required": false; }; "itemOptions": { "alias": "itemOptions"; "required": false; }; "draggable": { "alias": "draggable"; "required": false; }; }, {}, never, never, false, never>;
|
|
17
|
+
}
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class CheckboxComponent {
|
|
4
|
+
checked: boolean;
|
|
5
|
+
inputChange: EventEmitter<any>;
|
|
6
|
+
name: string;
|
|
7
|
+
label: string;
|
|
8
|
+
theme: string;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CheckboxComponent, never>;
|
|
10
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CheckboxComponent, "lib-checkbox", never, { "checked": { "alias": "checked"; "required": false; }; "name": { "alias": "name"; "required": false; }; "label": { "alias": "label"; "required": false; }; "theme": { "alias": "theme"; "required": false; }; }, { "inputChange": "inputChange"; }, never, never, false, never>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { FormControl } from '@angular/forms';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class CheckboxFieldComponent {
|
|
4
|
+
control: FormControl;
|
|
5
|
+
theme: string;
|
|
6
|
+
label: string;
|
|
7
|
+
name: string;
|
|
8
|
+
checkboxChange($event: any): void;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CheckboxFieldComponent, never>;
|
|
10
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CheckboxFieldComponent, "lib-checkbox-field", never, { "control": { "alias": "control"; "required": false; }; "theme": { "alias": "theme"; "required": false; }; "label": { "alias": "label"; "required": false; }; "name": { "alias": "name"; "required": false; }; }, {}, never, never, false, never>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ElementRef, EventEmitter } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class CompanyDropdownComponent {
|
|
4
|
+
private elementRef;
|
|
5
|
+
companies: any[];
|
|
6
|
+
optionSelected: EventEmitter<any>;
|
|
7
|
+
isOpen: boolean;
|
|
8
|
+
selectedOption: any;
|
|
9
|
+
fadeInOut: string;
|
|
10
|
+
isCompanyOpen: boolean;
|
|
11
|
+
constructor(elementRef: ElementRef);
|
|
12
|
+
onClick(targetElement: HTMLElement): void;
|
|
13
|
+
toggleDropdownHandler(): void;
|
|
14
|
+
selectCompany(option: any): void;
|
|
15
|
+
toggleOverlayHandler(event: MouseEvent): void;
|
|
16
|
+
handleDropdownClick(event: MouseEvent): void;
|
|
17
|
+
toggleCompaniesHandler(event: MouseEvent): void;
|
|
18
|
+
toggleSelectCompanysHandler(company: any, event: MouseEvent): void;
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CompanyDropdownComponent, never>;
|
|
20
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CompanyDropdownComponent, "lib-company-dropdown", never, { "companies": { "alias": "companies"; "required": false; }; }, { "optionSelected": "optionSelected"; }, never, never, false, never>;
|
|
21
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { CdkDragDrop } from '@angular/cdk/drag-drop';
|
|
2
|
+
import { EventEmitter, OnChanges, OnInit, SimpleChanges, Type } from '@angular/core';
|
|
3
|
+
import { MatDialog } from '@angular/material/dialog';
|
|
4
|
+
import { FormField } from '../interfaces/interfaces';
|
|
5
|
+
import { HttpClient } from '@angular/common/http';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class FormComponent implements OnInit, OnChanges {
|
|
8
|
+
dialog: MatDialog;
|
|
9
|
+
private http;
|
|
10
|
+
form: FormField[];
|
|
11
|
+
formControls: any;
|
|
12
|
+
formActions: any[];
|
|
13
|
+
theme: string;
|
|
14
|
+
title: string;
|
|
15
|
+
icon: string;
|
|
16
|
+
entityObject: any;
|
|
17
|
+
saveClick: EventEmitter<any>;
|
|
18
|
+
dropItemsList1: any;
|
|
19
|
+
dragOptionsList1: any;
|
|
20
|
+
assigned: Set<string | number>;
|
|
21
|
+
dropHover: boolean;
|
|
22
|
+
loadingDragOptions: boolean;
|
|
23
|
+
loadedDragOptions: any[];
|
|
24
|
+
loadingDroppedOptions: boolean;
|
|
25
|
+
get hasRadioButtons(): boolean;
|
|
26
|
+
get hasCheckBoxes(): boolean;
|
|
27
|
+
get hasDragAndDrop(): boolean;
|
|
28
|
+
get dragDropField(): FormField | undefined;
|
|
29
|
+
get dragDropFieldOptions(): any[] | undefined;
|
|
30
|
+
get dragOptions(): any[];
|
|
31
|
+
get droppedItems(): any[];
|
|
32
|
+
get isCreating(): boolean;
|
|
33
|
+
get dropItemSetupUi(): Type<any> | undefined;
|
|
34
|
+
entityFormInputs(types: string[]): FormField[];
|
|
35
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
36
|
+
ngOnInit(): void;
|
|
37
|
+
drop(event: CdkDragDrop<any[]>): void;
|
|
38
|
+
setDropHover(value: boolean): void;
|
|
39
|
+
removeDroppedItem(item: any): void;
|
|
40
|
+
setupItem(item: any): void;
|
|
41
|
+
constructor(dialog: MatDialog, http: HttpClient);
|
|
42
|
+
getFormControl(field: any): any;
|
|
43
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormComponent, never>;
|
|
44
|
+
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>;
|
|
45
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { Data } from '@angular/router';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export interface DropdownOptions {
|
|
5
|
+
id: number;
|
|
6
|
+
label: string;
|
|
7
|
+
parentId: any;
|
|
8
|
+
options: DropdownOptionCatergory[];
|
|
9
|
+
}
|
|
10
|
+
export interface DropdownOptionCatergory {
|
|
11
|
+
label: string;
|
|
12
|
+
icon: string;
|
|
13
|
+
}
|
|
14
|
+
export declare class HeaderComponent {
|
|
15
|
+
appLogo: string;
|
|
16
|
+
theme: string;
|
|
17
|
+
returnClick: EventEmitter<any>;
|
|
18
|
+
showBackButton: boolean;
|
|
19
|
+
menuData: Data;
|
|
20
|
+
dropdownOptions: {
|
|
21
|
+
id: number;
|
|
22
|
+
label: string;
|
|
23
|
+
icon: string;
|
|
24
|
+
date: string;
|
|
25
|
+
}[];
|
|
26
|
+
notificationOptions: {
|
|
27
|
+
id: number;
|
|
28
|
+
name: string;
|
|
29
|
+
label: string;
|
|
30
|
+
description: string;
|
|
31
|
+
time: string;
|
|
32
|
+
}[];
|
|
33
|
+
companiesDropdown: {
|
|
34
|
+
id: number;
|
|
35
|
+
name: string;
|
|
36
|
+
icon: string;
|
|
37
|
+
agencies: {
|
|
38
|
+
id: number;
|
|
39
|
+
name: string;
|
|
40
|
+
}[];
|
|
41
|
+
}[];
|
|
42
|
+
selectedOption: any;
|
|
43
|
+
dropdownOptionsMenu: DropdownOptions[];
|
|
44
|
+
handleOptionSelected(option: any): void;
|
|
45
|
+
arrowClick($event: MouseEvent): void;
|
|
46
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HeaderComponent, never>;
|
|
47
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<HeaderComponent, "lib-header", never, { "appLogo": { "alias": "appLogo"; "required": false; }; "theme": { "alias": "theme"; "required": false; }; "showBackButton": { "alias": "showBackButton"; "required": false; }; "menuData": { "alias": "menuData"; "required": false; }; }, { "returnClick": "returnClick"; }, never, never, false, never>;
|
|
48
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { FormControl } from '@angular/forms';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class InputComponent {
|
|
5
|
+
name: string;
|
|
6
|
+
label: string;
|
|
7
|
+
icon?: string;
|
|
8
|
+
iconPosition?: string;
|
|
9
|
+
className?: string;
|
|
10
|
+
formControl: FormControl;
|
|
11
|
+
theme: string;
|
|
12
|
+
appereance: string;
|
|
13
|
+
clearButton: boolean;
|
|
14
|
+
keyup: EventEmitter<any>;
|
|
15
|
+
hostStyle: any;
|
|
16
|
+
set style(styleInput: {
|
|
17
|
+
[key: string]: any;
|
|
18
|
+
});
|
|
19
|
+
get hasIcon(): boolean;
|
|
20
|
+
get showClearButton(): boolean;
|
|
21
|
+
clearValue(): void;
|
|
22
|
+
keyupHandler(event: any): void;
|
|
23
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InputComponent, never>;
|
|
24
|
+
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; }; "style": { "alias": "style"; "required": false; }; }, { "keyup": "keyup"; }, never, never, false, never>;
|
|
25
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Type } from "@angular/core";
|
|
1
2
|
export interface DropdownOptionCatergory {
|
|
2
3
|
label: string;
|
|
3
4
|
icon: string;
|
|
@@ -8,3 +9,42 @@ export interface DropdownOptions {
|
|
|
8
9
|
parentId: any;
|
|
9
10
|
options: DropdownOptionCatergory[];
|
|
10
11
|
}
|
|
12
|
+
export interface FormField {
|
|
13
|
+
label: string;
|
|
14
|
+
name: string;
|
|
15
|
+
type: 'text' | 'select' | 'radiobutton' | 'checkbox' | string;
|
|
16
|
+
options?: any[];
|
|
17
|
+
optionsEndpoint?: string;
|
|
18
|
+
selectionEndpoint?: string;
|
|
19
|
+
style?: any;
|
|
20
|
+
dropLabel?: string;
|
|
21
|
+
dropTitle?: string;
|
|
22
|
+
dragTitle?: string;
|
|
23
|
+
dragLabel?: string;
|
|
24
|
+
setupUi?: Type<any>;
|
|
25
|
+
icon?: string;
|
|
26
|
+
class?: string;
|
|
27
|
+
}
|
|
28
|
+
export interface RequestDetails {
|
|
29
|
+
endpoint: string;
|
|
30
|
+
mapParams: Function;
|
|
31
|
+
mapResponse?: Function;
|
|
32
|
+
}
|
|
33
|
+
export interface Category {
|
|
34
|
+
id: number;
|
|
35
|
+
parentId: number | null;
|
|
36
|
+
label: string;
|
|
37
|
+
options: any[];
|
|
38
|
+
}
|
|
39
|
+
export interface Data {
|
|
40
|
+
categories: Category[];
|
|
41
|
+
}
|
|
42
|
+
export interface TreeNode {
|
|
43
|
+
id: number | null;
|
|
44
|
+
parentId: number | null;
|
|
45
|
+
ancestorIds: (number | null)[];
|
|
46
|
+
label?: string;
|
|
47
|
+
name?: string;
|
|
48
|
+
children: TreeNode[];
|
|
49
|
+
level?: number;
|
|
50
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class ItemsSelectorComponent implements OnChanges {
|
|
5
|
+
private http;
|
|
6
|
+
items: any[];
|
|
7
|
+
listTitle: string;
|
|
8
|
+
theme: string;
|
|
9
|
+
selectionTitle: string;
|
|
10
|
+
initialSelection: any[];
|
|
11
|
+
listEndpoint: string;
|
|
12
|
+
selectionEndpoint: string;
|
|
13
|
+
saveClick: EventEmitter<any[]>;
|
|
14
|
+
selectionIds: Set<number | string>;
|
|
15
|
+
loadedItems: any[];
|
|
16
|
+
loadingSelection: boolean;
|
|
17
|
+
constructor(http: HttpClient);
|
|
18
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
19
|
+
toggleItem({ id, checked }: {
|
|
20
|
+
id: number;
|
|
21
|
+
checked: boolean;
|
|
22
|
+
}): void;
|
|
23
|
+
selectItem(item: any): void;
|
|
24
|
+
loadItems(newItems: any): void;
|
|
25
|
+
get selectionItems(): any[];
|
|
26
|
+
save(): void;
|
|
27
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ItemsSelectorComponent, never>;
|
|
28
|
+
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; }; "selectionEndpoint": { "alias": "selectionEndpoint"; "required": false; }; }, { "saveClick": "saveClick"; }, never, never, false, never>;
|
|
29
|
+
}
|
|
@@ -1,16 +1,89 @@
|
|
|
1
|
+
import { EventEmitter, OnChanges, OnInit, SimpleChanges, Type } from '@angular/core';
|
|
2
|
+
import { FormControl } from '@angular/forms';
|
|
3
|
+
import { HttpClient } from '@angular/common/http';
|
|
4
|
+
import { Subject } from 'rxjs';
|
|
5
|
+
import { SnackbarService } from '../services/snackbar.service';
|
|
1
6
|
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class ItemsViewerComponent {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
7
|
+
export declare class ItemsViewerComponent implements OnInit, OnChanges {
|
|
8
|
+
private http;
|
|
9
|
+
private snackbar;
|
|
10
|
+
icon: string;
|
|
11
|
+
theme: string;
|
|
12
|
+
title: string;
|
|
13
|
+
itemIcon: string;
|
|
14
|
+
items: any[];
|
|
15
|
+
entityUiComponent: Type<any> | null;
|
|
16
|
+
uiComponentInputs: {
|
|
17
|
+
[key: string]: any;
|
|
18
|
+
};
|
|
19
|
+
searchFilter?: Function;
|
|
20
|
+
showCreateButton: boolean;
|
|
21
|
+
showOrderButtons: boolean;
|
|
22
|
+
selectedItem: any;
|
|
23
|
+
selectionIds: Set<string | number>;
|
|
24
|
+
multipleSelection: boolean;
|
|
25
|
+
showSelectedAtTop: boolean;
|
|
26
|
+
itemControls: {
|
|
27
|
+
[key: number | string]: any;
|
|
28
|
+
};
|
|
29
|
+
showPaginator: boolean;
|
|
30
|
+
draggableItems: boolean;
|
|
31
|
+
showSearch: boolean;
|
|
32
|
+
listEndpoint: string;
|
|
33
|
+
endpointParams: string;
|
|
34
|
+
reloadSubject?: Subject<boolean>;
|
|
35
|
+
externalLoading: boolean;
|
|
36
|
+
orderProperties: {
|
|
37
|
+
property: string;
|
|
38
|
+
ascIcon: string;
|
|
39
|
+
descIcon: string;
|
|
6
40
|
}[];
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
41
|
+
selectItem: EventEmitter<any>;
|
|
42
|
+
toggleItem: EventEmitter<any>;
|
|
43
|
+
addClick: EventEmitter<any>;
|
|
44
|
+
itemsLoaded: EventEmitter<any>;
|
|
45
|
+
hostStyle: any;
|
|
46
|
+
orderPropertyIcon: {
|
|
47
|
+
[property: string]: string;
|
|
10
48
|
};
|
|
11
|
-
|
|
12
|
-
|
|
49
|
+
currentOrder: {
|
|
50
|
+
property: string;
|
|
51
|
+
asc: boolean;
|
|
52
|
+
};
|
|
53
|
+
orderItems: Subject<any>;
|
|
54
|
+
search: FormControl<string | null>;
|
|
55
|
+
currentPage: number;
|
|
56
|
+
pageSizeUsers: number;
|
|
57
|
+
pageIndexUsers: number;
|
|
58
|
+
lengthUsers: number;
|
|
59
|
+
pageEvent: any;
|
|
60
|
+
filterItems: Set<number>;
|
|
61
|
+
loadedItems: any[];
|
|
62
|
+
loadingStatus: boolean;
|
|
63
|
+
get hasTitle(): boolean;
|
|
64
|
+
get hasIcon(): boolean;
|
|
65
|
+
get hasOrderButtons(): boolean;
|
|
66
|
+
get loading(): boolean;
|
|
67
|
+
get isDynamic(): boolean;
|
|
68
|
+
set style(styleInput: {
|
|
69
|
+
[key: string]: any;
|
|
70
|
+
});
|
|
71
|
+
get listItems(): any[];
|
|
72
|
+
getOrderIcon(property: string): string;
|
|
73
|
+
constructor(http: HttpClient, snackbar: SnackbarService);
|
|
74
|
+
isItemSelected(item: any): boolean;
|
|
75
|
+
loadItems(): void;
|
|
76
|
+
ngOnInit(): void;
|
|
77
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
78
|
+
setOrder(property: any): void;
|
|
13
79
|
selectUser(user: any): void;
|
|
80
|
+
getServerDataUsers(event: any): void;
|
|
81
|
+
getUiComponentInputs(item: any): {
|
|
82
|
+
object: any;
|
|
83
|
+
};
|
|
84
|
+
hasFormControl(item: any): boolean;
|
|
85
|
+
itemControl(item: any): any;
|
|
86
|
+
checkboxChange(event: any, id: number): void;
|
|
14
87
|
static ɵfac: i0.ɵɵFactoryDeclaration<ItemsViewerComponent, never>;
|
|
15
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ItemsViewerComponent, "lib-items-viewer", never, {}, {}, never, never, false, never>;
|
|
88
|
+
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; }; "endpointParams": { "alias": "endpointParams"; "required": false; }; "reloadSubject": { "alias": "reloadSubject"; "required": false; }; "externalLoading": { "alias": "externalLoading"; "required": false; }; "orderProperties": { "alias": "orderProperties"; "required": false; }; "style": { "alias": "style"; "required": false; }; }, { "selectItem": "selectItem"; "toggleItem": "toggleItem"; "addClick": "addClick"; "itemsLoaded": "itemsLoaded"; }, never, never, false, never>;
|
|
16
89
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class LoaderComponent implements OnChanges {
|
|
4
|
+
theme: string;
|
|
5
|
+
loading: boolean;
|
|
6
|
+
type: "spinner" | "bar";
|
|
7
|
+
loadingStatus: boolean;
|
|
8
|
+
startedAt: any;
|
|
9
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
10
|
+
get loadingByType(): boolean;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LoaderComponent, never>;
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LoaderComponent, "lib-loader", never, { "theme": { "alias": "theme"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "type": { "alias": "type"; "required": false; }; }, {}, never, never, false, never>;
|
|
13
|
+
}
|
|
@@ -1,9 +1,20 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
|
+
export interface Option {
|
|
3
|
+
baseUrl: string;
|
|
4
|
+
children: Option[];
|
|
5
|
+
icon: string | null;
|
|
6
|
+
id: number;
|
|
7
|
+
label: string;
|
|
8
|
+
parentId: number;
|
|
9
|
+
}
|
|
2
10
|
export interface Category {
|
|
3
11
|
id: number;
|
|
4
12
|
parentId: number | null;
|
|
5
13
|
label: string;
|
|
6
|
-
options:
|
|
14
|
+
options: Option[];
|
|
15
|
+
}
|
|
16
|
+
export interface Data {
|
|
17
|
+
categories: Category[];
|
|
7
18
|
}
|
|
8
19
|
export declare class MenuComponent {
|
|
9
20
|
dropdownOptions: any;
|