spiderly 19.3.1 → 19.4.0-preview.1
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/README.md +17 -17
- package/fesm2022/spiderly.mjs +765 -1066
- package/fesm2022/spiderly.mjs.map +1 -1
- package/lib/components/auth/login/login.component.d.ts +3 -3
- package/lib/components/auth/partials/auth.component.d.ts +3 -4
- package/lib/components/auth/partials/login-verification.component.d.ts +2 -2
- package/lib/components/footer/footer.component.d.ts +2 -2
- package/lib/components/layout/layout.component.d.ts +3 -3
- package/lib/components/layout/profile-avatar/profile-avatar.component.d.ts +6 -6
- package/lib/components/layout/sidebar/menuitem.component.d.ts +5 -5
- package/lib/components/layout/sidebar/sidebar-menu.component.d.ts +5 -5
- package/lib/components/layout/sidemenu-topbar/sidemenu-topbar.component.d.ts +4 -4
- package/lib/components/layout/topbar/topbar.component.d.ts +3 -3
- package/lib/components/not-found/not-found.component.d.ts +2 -2
- package/lib/entities/security-entities.d.ts +6 -184
- package/lib/guards/auth.guard.d.ts +3 -3
- package/lib/guards/not-auth.guard.d.ts +2 -2
- package/lib/handlers/spiderly-error-handler.d.ts +2 -2
- package/lib/services/api.service.security.d.ts +5 -18
- package/lib/services/app-initializer.d.ts +2 -2
- package/lib/services/{app-layout-base.service.d.ts → app-layout.service.base.d.ts} +8 -8
- package/lib/services/{auth-base.service.d.ts → auth.service.base.d.ts} +6 -6
- package/lib/services/{config-base.service.d.ts → config.service.base.d.ts} +3 -4
- package/lib/services/spiderly-transloco-loader.d.ts +2 -2
- package/package.json +1 -1
- package/public-api.d.ts +3 -4
- package/styles/components/info-card/info-card.component.scss +60 -60
- package/styles/components/layout/profile-avatar/profile-avatar.component.scss +8 -8
- package/styles/components/layout/topbar/topbar.component.scss +38 -38
- package/styles/components/spiderly-data-table/spiderly-data-table.component.scss +48 -48
- package/styles/components/spiderly-data-view/spiderly-data-view.component.scss +55 -55
- package/styles/components/spiderly-panels/panel-body/panel-body.component.scss +8 -8
- package/styles/components/spiderly-panels/panel-footer/panel-footer.component.scss +16 -16
- package/styles/components/spiderly-panels/spiderly-panel/spiderly-panel.component.scss +87 -87
- package/styles/controls/base-controls.scss +16 -16
- package/styles/controls/spiderly-checkbox/spiderly-checkbox.component.scss +22 -22
- package/styles/styles/layout/_content.scss +14 -14
- package/styles/styles/layout/_footer.scss +11 -11
- package/styles/styles/layout/_main.scss +34 -34
- package/styles/styles/layout/_menu.scss +137 -137
- package/styles/styles/layout/_mixins.scss +13 -13
- package/styles/styles/layout/_preloading.scss +47 -47
- package/styles/styles/layout/_responsive.scss +102 -102
- package/styles/styles/layout/_spiderly-controls.scss +14 -14
- package/styles/styles/layout/_topbar.scss +235 -235
- package/styles/styles/layout/_typography.scss +63 -63
- package/styles/styles/layout/_utils.scss +19 -19
- package/styles/styles/layout/_variables.scss +908 -908
- package/styles/styles/layout/layout.scss +11 -11
- package/styles/styles/shared.scss +483 -483
- package/styles/styles/styles.scss +2 -2
- package/lib/components/base-details/role-base-details.component.d.ts +0 -43
|
@@ -3,9 +3,9 @@ import { ChangeDetectorRef, KeyValueDiffers, OnInit } from '@angular/core';
|
|
|
3
3
|
import { ActivatedRoute, Router } from '@angular/router';
|
|
4
4
|
import { TranslocoService } from '@jsverse/transloco';
|
|
5
5
|
import { Login } from '../../../entities/security-entities';
|
|
6
|
-
import {
|
|
6
|
+
import { AuthServiceBase } from '../../../services/auth.service.base';
|
|
7
7
|
import { BaseFormService } from '../../../services/base-form.service';
|
|
8
|
-
import {
|
|
8
|
+
import { ConfigServiceBase } from '../../../services/config.service.base';
|
|
9
9
|
import { SpiderlyMessageService } from '../../../services/spiderly-message.service';
|
|
10
10
|
import { BaseFormCopy } from '../../base-form/base-form copy';
|
|
11
11
|
import { SpiderlyFormGroup } from '../../spiderly-form-control/spiderly-form-control';
|
|
@@ -24,7 +24,7 @@ export declare class LoginComponent extends BaseFormCopy implements OnInit {
|
|
|
24
24
|
loginFormGroup: SpiderlyFormGroup<Login>;
|
|
25
25
|
companyName: string;
|
|
26
26
|
showEmailSentDialog: boolean;
|
|
27
|
-
constructor(differs: KeyValueDiffers, http: HttpClient, messageService: SpiderlyMessageService, changeDetectorRef: ChangeDetectorRef, router: Router, route: ActivatedRoute, translocoService: TranslocoService, baseFormService: BaseFormService, authService:
|
|
27
|
+
constructor(differs: KeyValueDiffers, http: HttpClient, messageService: SpiderlyMessageService, changeDetectorRef: ChangeDetectorRef, router: Router, route: ActivatedRoute, translocoService: TranslocoService, baseFormService: BaseFormService, authService: AuthServiceBase, config: ConfigServiceBase);
|
|
28
28
|
ngOnInit(): void;
|
|
29
29
|
initLoginFormGroup(model: Login): void;
|
|
30
30
|
companyNameChange(companyName: string): void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EventEmitter } from "@angular/core";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { AuthServiceBase } from "../../../services/auth.service.base";
|
|
3
|
+
import { ConfigServiceBase } from "../../../services/config.service.base";
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class AuthComponent {
|
|
6
6
|
private config;
|
|
@@ -8,10 +8,9 @@ export declare class AuthComponent {
|
|
|
8
8
|
private initCompanyAuthDialogDetailsSubscription;
|
|
9
9
|
onCompanyNameChange: EventEmitter<string>;
|
|
10
10
|
showGoogleAuth: boolean;
|
|
11
|
-
hasGoogleAuth: boolean;
|
|
12
11
|
companyName: string;
|
|
13
12
|
image: string;
|
|
14
|
-
constructor(config:
|
|
13
|
+
constructor(config: ConfigServiceBase, authService: AuthServiceBase);
|
|
15
14
|
ngOnInit(): void;
|
|
16
15
|
initCompanyDetails(): void;
|
|
17
16
|
onGoogleSignIn(googleWrapper: any): void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
2
|
import { TranslocoService } from '@jsverse/transloco';
|
|
3
3
|
import { SpiderlyMessageService } from '../../../services/spiderly-message.service';
|
|
4
|
-
import {
|
|
4
|
+
import { AuthServiceBase } from '../../../services/auth.service.base';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class LoginVerificationComponent implements OnInit {
|
|
7
7
|
private authService;
|
|
@@ -9,7 +9,7 @@ export declare class LoginVerificationComponent implements OnInit {
|
|
|
9
9
|
private translocoService;
|
|
10
10
|
email: string;
|
|
11
11
|
userId: number;
|
|
12
|
-
constructor(authService:
|
|
12
|
+
constructor(authService: AuthServiceBase, messageService: SpiderlyMessageService, translocoService: TranslocoService);
|
|
13
13
|
ngOnInit(): void;
|
|
14
14
|
resendVerificationToken(): void;
|
|
15
15
|
onCodeSubmit(event: string): void;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ConfigServiceBase } from '../../services/config.service.base';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class FooterComponent {
|
|
4
4
|
private config;
|
|
5
5
|
companyName: string;
|
|
6
|
-
constructor(config:
|
|
6
|
+
constructor(config: ConfigServiceBase);
|
|
7
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<FooterComponent, never>;
|
|
8
8
|
static ɵcmp: i0.ɵɵComponentDeclaration<FooterComponent, "footer", never, {}, {}, never, never, true, never>;
|
|
9
9
|
}
|
|
@@ -3,11 +3,11 @@ import { Router } from '@angular/router';
|
|
|
3
3
|
import { Subscription } from 'rxjs';
|
|
4
4
|
import { AppSidebarComponent } from './sidebar/sidebar.component';
|
|
5
5
|
import { SideMenuTopBarComponent } from './sidemenu-topbar/sidemenu-topbar.component';
|
|
6
|
-
import {
|
|
6
|
+
import { LayoutServiceBase } from '../../services/app-layout.service.base';
|
|
7
7
|
import { SpiderlyMenuItem } from './sidebar/sidebar-menu.component';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
9
|
export declare class SpiderlyLayoutComponent implements OnDestroy {
|
|
10
|
-
protected layoutService:
|
|
10
|
+
protected layoutService: LayoutServiceBase;
|
|
11
11
|
protected renderer: Renderer2;
|
|
12
12
|
protected router: Router;
|
|
13
13
|
menu: SpiderlyMenuItem[];
|
|
@@ -29,7 +29,7 @@ export declare class SpiderlyLayoutComponent implements OnDestroy {
|
|
|
29
29
|
appSidebar: AppSidebarComponent;
|
|
30
30
|
sidemenuTopbar: SideMenuTopBarComponent;
|
|
31
31
|
topbarmenu: ElementRef;
|
|
32
|
-
constructor(layoutService:
|
|
32
|
+
constructor(layoutService: LayoutServiceBase, renderer: Renderer2, router: Router);
|
|
33
33
|
ngOnInit(): void;
|
|
34
34
|
hideMenu(): void;
|
|
35
35
|
hideProfileMenu(): void;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { ElementRef, EventEmitter } from '@angular/core';
|
|
2
2
|
import { Router } from '@angular/router';
|
|
3
|
-
import {
|
|
3
|
+
import { LayoutServiceBase } from '../../../services/app-layout.service.base';
|
|
4
4
|
import { UserBase } from '../../../entities/security-entities';
|
|
5
|
-
import {
|
|
5
|
+
import { AuthServiceBase } from '../../../services/auth.service.base';
|
|
6
6
|
import { TranslocoService } from '@jsverse/transloco';
|
|
7
|
-
import {
|
|
7
|
+
import { ConfigServiceBase } from '../../../services/config.service.base';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
9
|
export declare class ProfileAvatarComponent {
|
|
10
|
-
layoutService:
|
|
10
|
+
layoutService: LayoutServiceBase;
|
|
11
11
|
private authService;
|
|
12
12
|
protected router: Router;
|
|
13
13
|
private translocoService;
|
|
14
|
-
config:
|
|
14
|
+
config: ConfigServiceBase;
|
|
15
15
|
isSideMenuLayout: boolean;
|
|
16
16
|
routeOnLargeProfileAvatarClick: boolean;
|
|
17
17
|
showLoginButton: boolean;
|
|
@@ -30,7 +30,7 @@ export declare class ProfileAvatarComponent {
|
|
|
30
30
|
notificationMenuItem: ProfileAvatarModalMenuItem;
|
|
31
31
|
menu: ElementRef;
|
|
32
32
|
topbarProfileDropdownMenuButton: ElementRef;
|
|
33
|
-
constructor(layoutService:
|
|
33
|
+
constructor(layoutService: LayoutServiceBase, authService: AuthServiceBase, router: Router, translocoService: TranslocoService, config: ConfigServiceBase);
|
|
34
34
|
ngOnInit(): Promise<void>;
|
|
35
35
|
onAfterNgOnInit: () => void;
|
|
36
36
|
onDocumentClick(event: any): void;
|
|
@@ -4,14 +4,14 @@ import { SidebarMenuService } from './sidebar-menu.service';
|
|
|
4
4
|
import { SpiderlyMenuItem } from './sidebar-menu.component';
|
|
5
5
|
import { AutoCompleteCompleteEvent } from 'primeng/autocomplete';
|
|
6
6
|
import { SpiderlyFormControl } from '../../spiderly-form-control/spiderly-form-control';
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
7
|
+
import { LayoutServiceBase } from '../../../services/app-layout.service.base';
|
|
8
|
+
import { AuthServiceBase } from '../../../services/auth.service.base';
|
|
9
9
|
import { ApiSecurityService } from '../../../services/api.service.security';
|
|
10
|
-
import {
|
|
10
|
+
import { ConfigServiceBase } from '../../../services/config.service.base';
|
|
11
11
|
import { Namebook } from '../../../entities/namebook';
|
|
12
12
|
import * as i0 from "@angular/core";
|
|
13
13
|
export declare class MenuitemComponent implements OnInit, OnDestroy {
|
|
14
|
-
layoutService:
|
|
14
|
+
layoutService: LayoutServiceBase;
|
|
15
15
|
private cd;
|
|
16
16
|
router: Router;
|
|
17
17
|
private menuService;
|
|
@@ -29,7 +29,7 @@ export declare class MenuitemComponent implements OnInit, OnDestroy {
|
|
|
29
29
|
key: string;
|
|
30
30
|
selectedPartner: SpiderlyFormControl<Namebook>;
|
|
31
31
|
partnerOptions: Namebook[];
|
|
32
|
-
constructor(layoutService:
|
|
32
|
+
constructor(layoutService: LayoutServiceBase, cd: ChangeDetectorRef, router: Router, menuService: SidebarMenuService, authService: AuthServiceBase, apiService: ApiSecurityService, config: ConfigServiceBase);
|
|
33
33
|
ngOnInit(): void;
|
|
34
34
|
updateActiveStateFromRoute(): void;
|
|
35
35
|
itemClick(event: Event): void;
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { TranslocoService } from '@jsverse/transloco';
|
|
2
2
|
import { OnInit } from '@angular/core';
|
|
3
3
|
import { MenuItem } from 'primeng/api';
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
4
|
+
import { LayoutServiceBase } from '../../../services/app-layout.service.base';
|
|
5
|
+
import { AuthServiceBase } from '../../../services/auth.service.base';
|
|
6
|
+
import { ConfigServiceBase } from '../../../services/config.service.base';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
export interface SpiderlyMenuItem extends MenuItem {
|
|
9
9
|
hasPermission?: (permissionCodes: string[]) => boolean;
|
|
10
10
|
showPartnerDialog?: boolean;
|
|
11
11
|
}
|
|
12
12
|
export declare class SidebarMenuComponent implements OnInit {
|
|
13
|
-
layoutService:
|
|
13
|
+
layoutService: LayoutServiceBase;
|
|
14
14
|
private authService;
|
|
15
15
|
private translocoService;
|
|
16
16
|
private config;
|
|
17
17
|
menu: SpiderlyMenuItem[];
|
|
18
|
-
constructor(layoutService:
|
|
18
|
+
constructor(layoutService: LayoutServiceBase, authService: AuthServiceBase, translocoService: TranslocoService, config: ConfigServiceBase);
|
|
19
19
|
ngOnInit(): void;
|
|
20
20
|
ngOnDestroy(): void;
|
|
21
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<SidebarMenuComponent, never>;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ConfigServiceBase } from '../../../services/config.service.base';
|
|
2
2
|
import { TranslocoService } from '@jsverse/transloco';
|
|
3
3
|
import { Router } from '@angular/router';
|
|
4
4
|
import { ElementRef } from '@angular/core';
|
|
5
|
-
import {
|
|
5
|
+
import { LayoutServiceBase } from '../../../services/app-layout.service.base';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
export declare class SideMenuTopBarComponent {
|
|
8
|
-
layoutService:
|
|
8
|
+
layoutService: LayoutServiceBase;
|
|
9
9
|
protected router: Router;
|
|
10
10
|
private config;
|
|
11
11
|
private translocoService;
|
|
12
12
|
companyName: string;
|
|
13
13
|
menuButton: ElementRef;
|
|
14
|
-
constructor(layoutService:
|
|
14
|
+
constructor(layoutService: LayoutServiceBase, router: Router, config: ConfigServiceBase, translocoService: TranslocoService);
|
|
15
15
|
ngOnInit(): Promise<void>;
|
|
16
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<SideMenuTopBarComponent, never>;
|
|
17
17
|
static ɵcmp: i0.ɵɵComponentDeclaration<SideMenuTopBarComponent, "spiderly-sidemenu-topbar", never, {}, {}, never, never, true, never>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ConfigServiceBase } from '../../../services/config.service.base';
|
|
2
2
|
import { SpiderlyMenuItem } from '../sidebar/sidebar-menu.component';
|
|
3
|
-
import {
|
|
3
|
+
import { AuthServiceBase } from '../../../services/auth.service.base';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class TopBarComponent {
|
|
6
6
|
private authService;
|
|
@@ -14,7 +14,7 @@ export declare class TopBarComponent {
|
|
|
14
14
|
*/
|
|
15
15
|
showHoverBgOnRootItems: boolean;
|
|
16
16
|
private permissionSubscription;
|
|
17
|
-
constructor(authService:
|
|
17
|
+
constructor(authService: AuthServiceBase, config: ConfigServiceBase);
|
|
18
18
|
ngOnInit(): void;
|
|
19
19
|
hideMenuItemsBasedOnPermissions: (menu: SpiderlyMenuItem[], currentUserPermissionCodes: string[]) => void;
|
|
20
20
|
ngOnDestroy(): void;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ConfigServiceBase } from '../../services/config.service.base';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class NotFoundComponent {
|
|
4
4
|
private config;
|
|
5
5
|
companyName: string;
|
|
6
6
|
logoPath: string;
|
|
7
|
-
constructor(config:
|
|
7
|
+
constructor(config: ConfigServiceBase);
|
|
8
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<NotFoundComponent, never>;
|
|
9
9
|
static ɵcmp: i0.ɵɵComponentDeclaration<NotFoundComponent, "not-found", never, {}, {}, never, never, true, never>;
|
|
10
10
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { BaseEntity } from "./base-entity";
|
|
2
|
-
import { Namebook } from "./namebook";
|
|
3
2
|
export declare class UserBase extends BaseEntity {
|
|
4
3
|
static readonly typeName: "UserBase";
|
|
5
4
|
id?: number;
|
|
@@ -17,46 +16,6 @@ export declare class UserBase extends BaseEntity {
|
|
|
17
16
|
};
|
|
18
17
|
};
|
|
19
18
|
}
|
|
20
|
-
export declare class RolePermission extends BaseEntity {
|
|
21
|
-
static readonly typeName: "RolePermission";
|
|
22
|
-
roleDisplayName?: string;
|
|
23
|
-
roleId?: number;
|
|
24
|
-
permissionDisplayName?: string;
|
|
25
|
-
permissionId?: number;
|
|
26
|
-
constructor({ roleDisplayName, roleId, permissionDisplayName, permissionId }?: {
|
|
27
|
-
roleDisplayName?: string;
|
|
28
|
-
roleId?: number;
|
|
29
|
-
permissionDisplayName?: string;
|
|
30
|
-
permissionId?: number;
|
|
31
|
-
});
|
|
32
|
-
static readonly schema: {
|
|
33
|
-
readonly roleDisplayName: {
|
|
34
|
-
readonly type: "string";
|
|
35
|
-
};
|
|
36
|
-
readonly roleId: {
|
|
37
|
-
readonly type: "number";
|
|
38
|
-
};
|
|
39
|
-
readonly permissionDisplayName: {
|
|
40
|
-
readonly type: "string";
|
|
41
|
-
};
|
|
42
|
-
readonly permissionId: {
|
|
43
|
-
readonly type: "number";
|
|
44
|
-
};
|
|
45
|
-
};
|
|
46
|
-
}
|
|
47
|
-
export declare class RolePermissionSaveBody extends BaseEntity {
|
|
48
|
-
static readonly typeName: "RolePermissionSaveBody";
|
|
49
|
-
rolePermissionDTO?: RolePermission;
|
|
50
|
-
constructor({ rolePermissionDTO }?: {
|
|
51
|
-
rolePermissionDTO?: RolePermission;
|
|
52
|
-
});
|
|
53
|
-
static readonly schema: {
|
|
54
|
-
readonly rolePermissionDTO: {
|
|
55
|
-
readonly type: "RolePermission";
|
|
56
|
-
readonly nestedConstructor: typeof RolePermission;
|
|
57
|
-
};
|
|
58
|
-
};
|
|
59
|
-
}
|
|
60
19
|
export declare class AuthResult extends BaseEntity {
|
|
61
20
|
static readonly typeName: "AuthResult";
|
|
62
21
|
userId?: number;
|
|
@@ -140,19 +99,6 @@ export declare class UserRole extends BaseEntity {
|
|
|
140
99
|
};
|
|
141
100
|
};
|
|
142
101
|
}
|
|
143
|
-
export declare class UserRoleSaveBody extends BaseEntity {
|
|
144
|
-
static readonly typeName: "UserRoleSaveBody";
|
|
145
|
-
userRoleDTO?: UserRole;
|
|
146
|
-
constructor({ userRoleDTO }?: {
|
|
147
|
-
userRoleDTO?: UserRole;
|
|
148
|
-
});
|
|
149
|
-
static readonly schema: {
|
|
150
|
-
readonly userRoleDTO: {
|
|
151
|
-
readonly type: "UserRole";
|
|
152
|
-
readonly nestedConstructor: typeof UserRole;
|
|
153
|
-
};
|
|
154
|
-
};
|
|
155
|
-
}
|
|
156
102
|
export declare class LoginVerificationToken extends BaseEntity {
|
|
157
103
|
static readonly typeName: "LoginVerificationToken";
|
|
158
104
|
email?: string;
|
|
@@ -214,139 +160,15 @@ export declare class RefreshTokenRequest extends BaseEntity {
|
|
|
214
160
|
};
|
|
215
161
|
};
|
|
216
162
|
}
|
|
217
|
-
export declare class
|
|
218
|
-
static readonly typeName: "
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
id?: number;
|
|
223
|
-
createdAt?: Date;
|
|
224
|
-
modifiedAt?: Date;
|
|
225
|
-
constructor({ name, description, version, id, createdAt, modifiedAt }?: {
|
|
226
|
-
name?: string;
|
|
227
|
-
description?: string;
|
|
228
|
-
version?: number;
|
|
229
|
-
id?: number;
|
|
230
|
-
createdAt?: Date;
|
|
231
|
-
modifiedAt?: Date;
|
|
232
|
-
});
|
|
233
|
-
static readonly schema: {
|
|
234
|
-
readonly name: {
|
|
235
|
-
readonly type: "string";
|
|
236
|
-
};
|
|
237
|
-
readonly description: {
|
|
238
|
-
readonly type: "string";
|
|
239
|
-
};
|
|
240
|
-
readonly version: {
|
|
241
|
-
readonly type: "number";
|
|
242
|
-
};
|
|
243
|
-
readonly id: {
|
|
244
|
-
readonly type: "number";
|
|
245
|
-
};
|
|
246
|
-
readonly createdAt: {
|
|
247
|
-
readonly type: "Date";
|
|
248
|
-
};
|
|
249
|
-
readonly modifiedAt: {
|
|
250
|
-
readonly type: "Date";
|
|
251
|
-
};
|
|
252
|
-
};
|
|
253
|
-
}
|
|
254
|
-
export declare class RoleMainUIForm extends BaseEntity {
|
|
255
|
-
static readonly typeName: "RoleMainUIForm";
|
|
256
|
-
roleDTO?: Role;
|
|
257
|
-
usersNamebookDTOList?: Namebook[];
|
|
258
|
-
permissionsIds?: number[];
|
|
259
|
-
constructor({ roleDTO, usersNamebookDTOList, permissionsIds }?: {
|
|
260
|
-
roleDTO?: Role;
|
|
261
|
-
usersNamebookDTOList?: Namebook[];
|
|
262
|
-
permissionsIds?: number[];
|
|
263
|
-
});
|
|
264
|
-
static readonly schema: {
|
|
265
|
-
readonly roleDTO: {
|
|
266
|
-
readonly type: "Role";
|
|
267
|
-
readonly nestedConstructor: typeof Role;
|
|
268
|
-
readonly isMainDTOForMainUIFormDTO: true;
|
|
269
|
-
};
|
|
270
|
-
readonly usersNamebookDTOList: {
|
|
271
|
-
readonly type: "Namebook[]";
|
|
272
|
-
readonly nestedConstructor: typeof Namebook;
|
|
273
|
-
};
|
|
274
|
-
readonly permissionsIds: {
|
|
275
|
-
readonly type: "number[]";
|
|
276
|
-
};
|
|
277
|
-
};
|
|
278
|
-
}
|
|
279
|
-
export declare class RoleSaveBody extends BaseEntity {
|
|
280
|
-
static readonly typeName: "RoleSaveBody";
|
|
281
|
-
roleDTO?: Role;
|
|
282
|
-
selectedPermissionsIds?: number[];
|
|
283
|
-
selectedUsersIds?: number[];
|
|
284
|
-
constructor({ roleDTO, selectedPermissionsIds, selectedUsersIds }?: {
|
|
285
|
-
roleDTO?: Role;
|
|
286
|
-
selectedPermissionsIds?: number[];
|
|
287
|
-
selectedUsersIds?: number[];
|
|
288
|
-
});
|
|
289
|
-
static readonly schema: {
|
|
290
|
-
readonly roleDTO: {
|
|
291
|
-
readonly type: "Role";
|
|
292
|
-
readonly nestedConstructor: typeof Role;
|
|
293
|
-
readonly isSaveBodyMainDTO: true;
|
|
294
|
-
};
|
|
295
|
-
readonly selectedPermissionsIds: {
|
|
296
|
-
readonly type: "number[]";
|
|
297
|
-
};
|
|
298
|
-
readonly selectedUsersIds: {
|
|
299
|
-
readonly type: "number[]";
|
|
300
|
-
};
|
|
301
|
-
};
|
|
302
|
-
}
|
|
303
|
-
export declare class Permission extends BaseEntity {
|
|
304
|
-
static readonly typeName: "Permission";
|
|
305
|
-
name?: string;
|
|
306
|
-
nameLatin?: string;
|
|
307
|
-
description?: string;
|
|
308
|
-
descriptionLatin?: string;
|
|
309
|
-
code?: string;
|
|
310
|
-
id?: number;
|
|
311
|
-
constructor({ name, nameLatin, description, descriptionLatin, code, id }?: {
|
|
312
|
-
name?: string;
|
|
313
|
-
nameLatin?: string;
|
|
314
|
-
description?: string;
|
|
315
|
-
descriptionLatin?: string;
|
|
316
|
-
code?: string;
|
|
317
|
-
id?: number;
|
|
163
|
+
export declare class SendLoginVerificationEmailResult extends BaseEntity {
|
|
164
|
+
static readonly typeName: "SendLoginVerificationEmailResult";
|
|
165
|
+
message?: string;
|
|
166
|
+
constructor({ message }?: {
|
|
167
|
+
message?: string;
|
|
318
168
|
});
|
|
319
169
|
static readonly schema: {
|
|
320
|
-
readonly
|
|
321
|
-
readonly type: "string";
|
|
322
|
-
};
|
|
323
|
-
readonly nameLatin: {
|
|
170
|
+
readonly message: {
|
|
324
171
|
readonly type: "string";
|
|
325
172
|
};
|
|
326
|
-
readonly description: {
|
|
327
|
-
readonly type: "string";
|
|
328
|
-
};
|
|
329
|
-
readonly descriptionLatin: {
|
|
330
|
-
readonly type: "string";
|
|
331
|
-
};
|
|
332
|
-
readonly code: {
|
|
333
|
-
readonly type: "string";
|
|
334
|
-
};
|
|
335
|
-
readonly id: {
|
|
336
|
-
readonly type: "number";
|
|
337
|
-
};
|
|
338
|
-
};
|
|
339
|
-
}
|
|
340
|
-
export declare class PermissionSaveBody extends BaseEntity {
|
|
341
|
-
static readonly typeName: "PermissionSaveBody";
|
|
342
|
-
permissionDTO?: Permission;
|
|
343
|
-
constructor({ permissionDTO }?: {
|
|
344
|
-
permissionDTO?: Permission;
|
|
345
|
-
});
|
|
346
|
-
static readonly schema: {
|
|
347
|
-
readonly permissionDTO: {
|
|
348
|
-
readonly type: "Permission";
|
|
349
|
-
readonly nestedConstructor: typeof Permission;
|
|
350
|
-
};
|
|
351
173
|
};
|
|
352
174
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { CanActivate, Router } from '@angular/router';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { AuthServiceBase } from '../services/auth.service.base';
|
|
4
|
+
import { ConfigServiceBase } from '../services/config.service.base';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class AuthGuard implements CanActivate {
|
|
7
7
|
private authService;
|
|
8
8
|
private router;
|
|
9
9
|
private config;
|
|
10
|
-
constructor(authService:
|
|
10
|
+
constructor(authService: AuthServiceBase, router: Router, config: ConfigServiceBase);
|
|
11
11
|
canActivate(): Observable<boolean>;
|
|
12
12
|
private checkAuth;
|
|
13
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<AuthGuard, never>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { CanActivate } from '@angular/router';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
|
-
import {
|
|
3
|
+
import { AuthServiceBase } from '../services/auth.service.base';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class NotAuthGuard implements CanActivate {
|
|
6
6
|
private authService;
|
|
7
|
-
constructor(authService:
|
|
7
|
+
constructor(authService: AuthServiceBase);
|
|
8
8
|
canActivate(): Observable<boolean>;
|
|
9
9
|
private checkAuth;
|
|
10
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<NotAuthGuard, never>;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { TranslocoService } from '@jsverse/transloco';
|
|
2
2
|
import { ErrorHandler } from '@angular/core';
|
|
3
3
|
import { SpiderlyMessageService } from '../services/spiderly-message.service';
|
|
4
|
-
import {
|
|
4
|
+
import { ConfigServiceBase } from '../services/config.service.base';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class SpiderlyErrorHandler implements ErrorHandler {
|
|
7
7
|
private messageService;
|
|
8
8
|
private translocoService;
|
|
9
9
|
private config;
|
|
10
|
-
constructor(messageService: SpiderlyMessageService, translocoService: TranslocoService, config:
|
|
10
|
+
constructor(messageService: SpiderlyMessageService, translocoService: TranslocoService, config: ConfigServiceBase);
|
|
11
11
|
handleError(error: any): void;
|
|
12
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<SpiderlyErrorHandler, never>;
|
|
13
13
|
static ɵprov: i0.ɵɵInjectableDeclaration<SpiderlyErrorHandler>;
|
|
@@ -1,32 +1,19 @@
|
|
|
1
1
|
import { HttpClient } from '@angular/common/http';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { Login, RefreshTokenRequest, AuthResult, Role, UserBase, ExternalProvider, VerificationTokenRequest, RoleSaveBody, RoleMainUIForm } from '../entities/security-entities';
|
|
6
|
-
import { ConfigBaseService } from './config-base.service';
|
|
7
|
-
import { PaginatedResult } from '../entities/paginated-result';
|
|
3
|
+
import { AuthResult, ExternalProvider, Login, RefreshTokenRequest, SendLoginVerificationEmailResult, UserBase, VerificationTokenRequest } from '../entities/security-entities';
|
|
4
|
+
import { ConfigServiceBase } from './config.service.base';
|
|
8
5
|
import * as i0 from "@angular/core";
|
|
9
6
|
export declare class ApiSecurityService {
|
|
10
7
|
protected http: HttpClient;
|
|
11
|
-
protected config:
|
|
12
|
-
constructor(http: HttpClient, config:
|
|
8
|
+
protected config: ConfigServiceBase;
|
|
9
|
+
constructor(http: HttpClient, config: ConfigServiceBase);
|
|
13
10
|
login: (request: VerificationTokenRequest) => Observable<AuthResult>;
|
|
14
11
|
loginExternal: (externalProviderDTO: ExternalProvider) => Observable<AuthResult>;
|
|
15
|
-
sendLoginVerificationEmail: (loginDTO: Login) => Observable<
|
|
12
|
+
sendLoginVerificationEmail: (loginDTO: Login) => Observable<SendLoginVerificationEmailResult>;
|
|
16
13
|
logout: (browserId: string) => Observable<any>;
|
|
17
14
|
refreshToken: (request: RefreshTokenRequest) => Observable<AuthResult>;
|
|
18
15
|
getCurrentUserBase: () => Observable<UserBase>;
|
|
19
16
|
getCurrentUserPermissionCodes: () => Observable<string[]>;
|
|
20
|
-
getPaginatedRoleList: (dto: Filter) => Observable<PaginatedResult>;
|
|
21
|
-
exportRoleListToExcel: (dto: Filter) => Observable<any>;
|
|
22
|
-
deleteRole: (id: number) => Observable<any>;
|
|
23
|
-
getRoleMainUIFormDTO: (id: number) => Observable<RoleMainUIForm>;
|
|
24
|
-
getRole: (id: number) => Observable<Role>;
|
|
25
|
-
saveRole: (dto: RoleSaveBody) => Observable<Role>;
|
|
26
|
-
getUsersNamebookListForRole: (roleId: number) => Observable<Namebook[]>;
|
|
27
|
-
getPermissionsDropdownListForRole: () => Observable<Namebook[]>;
|
|
28
|
-
getPermissionsNamebookListForRole: (roleId: number) => Observable<Namebook[]>;
|
|
29
|
-
getUsersAutocompleteListForRole: (limit: number, query: string) => Observable<Namebook[]>;
|
|
30
17
|
getUnreadNotificationsCountForCurrentUser: () => Observable<number>;
|
|
31
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<ApiSecurityService, never>;
|
|
32
19
|
static ɵprov: i0.ɵɵInjectableDeclaration<ApiSecurityService>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
|
-
import {
|
|
2
|
+
import { AuthServiceBase } from './auth.service.base';
|
|
3
3
|
import { AuthResult } from '../entities/security-entities';
|
|
4
|
-
export declare function authInitializer(authService:
|
|
4
|
+
export declare function authInitializer(authService: AuthServiceBase, platformId: any): () => Observable<AuthResult>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AuthServiceBase } from './auth.service.base';
|
|
2
2
|
import { ApiSecurityService } from './api.service.security';
|
|
3
3
|
import { OnDestroy } from '@angular/core';
|
|
4
4
|
import { BehaviorSubject, Observable, Subscription } from 'rxjs';
|
|
5
5
|
import { InitTopBarData } from '../entities/init-top-bar-data';
|
|
6
|
-
import {
|
|
6
|
+
import { ConfigServiceBase } from './config.service.base';
|
|
7
7
|
import { AutoCompleteCompleteEvent } from 'primeng/autocomplete';
|
|
8
8
|
import { Namebook } from '../entities/namebook';
|
|
9
9
|
import * as i0 from "@angular/core";
|
|
@@ -25,10 +25,10 @@ interface LayoutState {
|
|
|
25
25
|
staticMenuMobileActive: boolean;
|
|
26
26
|
menuHoverActive: boolean;
|
|
27
27
|
}
|
|
28
|
-
export declare class
|
|
28
|
+
export declare class LayoutServiceBase implements OnDestroy {
|
|
29
29
|
protected apiService: ApiSecurityService;
|
|
30
|
-
protected config:
|
|
31
|
-
protected authService:
|
|
30
|
+
protected config: ConfigServiceBase;
|
|
31
|
+
protected authService: AuthServiceBase;
|
|
32
32
|
userSubscription: Subscription;
|
|
33
33
|
protected _unreadNotificationsNumber: BehaviorSubject<number>;
|
|
34
34
|
unreadNotificationsCount$: Observable<number>;
|
|
@@ -38,7 +38,7 @@ export declare class LayoutBaseService implements OnDestroy {
|
|
|
38
38
|
private overlayOpen;
|
|
39
39
|
configUpdate$: Observable<AppConfig>;
|
|
40
40
|
overlayOpen$: Observable<any>;
|
|
41
|
-
constructor(apiService: ApiSecurityService, config:
|
|
41
|
+
constructor(apiService: ApiSecurityService, config: ConfigServiceBase, authService: AuthServiceBase);
|
|
42
42
|
initUnreadNotificationsCountForCurrentUser: () => void;
|
|
43
43
|
initUnreadNotificationsCountForCurrentUserObservable: () => Observable<any>;
|
|
44
44
|
setUnreadNotificationsCountForCurrentUser: () => Observable<any>;
|
|
@@ -54,7 +54,7 @@ export declare class LayoutBaseService implements OnDestroy {
|
|
|
54
54
|
searchPartners: (event: AutoCompleteCompleteEvent) => Observable<Namebook[]>;
|
|
55
55
|
partnersAutocompleteButtonClick: (selectedPartner: Namebook) => void;
|
|
56
56
|
ngOnDestroy(): void;
|
|
57
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
58
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<
|
|
57
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LayoutServiceBase, never>;
|
|
58
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<LayoutServiceBase>;
|
|
59
59
|
}
|
|
60
60
|
export {};
|
|
@@ -4,16 +4,16 @@ import { HttpClient } from '@angular/common/http';
|
|
|
4
4
|
import { BehaviorSubject, Observable } from 'rxjs';
|
|
5
5
|
import { SocialUser, SocialAuthService } from '@abacritt/angularx-social-login';
|
|
6
6
|
import { ExternalProvider, Login, VerificationTokenRequest, AuthResult, UserBase } from '../entities/security-entities';
|
|
7
|
-
import {
|
|
7
|
+
import { ConfigServiceBase } from './config.service.base';
|
|
8
8
|
import { ApiSecurityService } from './api.service.security';
|
|
9
9
|
import { InitCompanyAuthDialogDetails } from '../entities/init-company-auth-dialog-details';
|
|
10
10
|
import * as i0 from "@angular/core";
|
|
11
|
-
export declare class
|
|
11
|
+
export declare class AuthServiceBase implements OnDestroy {
|
|
12
12
|
protected router: Router;
|
|
13
13
|
protected http: HttpClient;
|
|
14
14
|
protected externalAuthService: SocialAuthService;
|
|
15
15
|
protected apiService: ApiSecurityService;
|
|
16
|
-
protected config:
|
|
16
|
+
protected config: ConfigServiceBase;
|
|
17
17
|
protected platformId: Object;
|
|
18
18
|
private readonly apiUrl;
|
|
19
19
|
private timer?;
|
|
@@ -25,7 +25,7 @@ export declare class AuthBaseService implements OnDestroy {
|
|
|
25
25
|
private extAuthChangeSub;
|
|
26
26
|
authChanged: Observable<boolean>;
|
|
27
27
|
extAuthChanged: Observable<SocialUser>;
|
|
28
|
-
constructor(router: Router, http: HttpClient, externalAuthService: SocialAuthService, apiService: ApiSecurityService, config:
|
|
28
|
+
constructor(router: Router, http: HttpClient, externalAuthService: SocialAuthService, apiService: ApiSecurityService, config: ConfigServiceBase, platformId: Object);
|
|
29
29
|
private storageEventListener;
|
|
30
30
|
sendLoginVerificationEmail(body: Login): Observable<any>;
|
|
31
31
|
login(body: VerificationTokenRequest): Observable<Promise<AuthResult>>;
|
|
@@ -49,6 +49,6 @@ export declare class AuthBaseService implements OnDestroy {
|
|
|
49
49
|
setCurrentUserPermissionCodes(): Observable<string[]>;
|
|
50
50
|
ngOnDestroy(): void;
|
|
51
51
|
onAfterNgOnDestroy: () => void;
|
|
52
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
53
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<
|
|
52
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AuthServiceBase, never>;
|
|
53
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AuthServiceBase>;
|
|
54
54
|
}
|