ngx-techlify-core 18.13.0 → 18.16.0
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/company-information/company-info-display/company-info-display.component.mjs +10 -3
- package/esm2022/lib/techlify-company-switcher/techlify-company-switcher/techlify-company-switcher.component.mjs +3 -3
- package/esm2022/lib/user/user-enable-button-component/user-enable-button.component.mjs +42 -13
- package/esm2022/lib/user-menu/user-menu.component.mjs +39 -0
- package/esm2022/lib/user-menu/user-menu.module.mjs +28 -0
- package/esm2022/public-api.mjs +3 -1
- package/fesm2022/ngx-techlify-core.mjs +96 -14
- package/fesm2022/ngx-techlify-core.mjs.map +1 -1
- package/lib/company-information/company-info-display/company-info-display.component.d.ts +3 -0
- package/lib/file-dropper/file-dropper.component.d.ts +1 -1
- package/lib/user/user-enable-button-component/user-enable-button.component.d.ts +3 -1
- package/lib/user-menu/user-menu.component.d.ts +17 -0
- package/lib/user-menu/user-menu.module.d.ts +13 -0
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
|
@@ -1,6 +1,9 @@
|
|
|
1
|
+
import { CurrentUserService } from '../../user';
|
|
1
2
|
import * as i0 from "@angular/core";
|
|
2
3
|
export declare class CompanyInfoDisplayComponent {
|
|
4
|
+
private currentUserService;
|
|
3
5
|
client: any;
|
|
6
|
+
constructor(currentUserService: CurrentUserService);
|
|
4
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<CompanyInfoDisplayComponent, never>;
|
|
5
8
|
static ɵcmp: i0.ɵɵComponentDeclaration<CompanyInfoDisplayComponent, "app-company-info-display", never, { "client": { "alias": "client"; "required": false; }; }, {}, never, never, true, never>;
|
|
6
9
|
}
|
|
@@ -26,7 +26,7 @@ export declare class FileDropperComponent implements OnInit {
|
|
|
26
26
|
/**Method to add files in the array */
|
|
27
27
|
addFiles(fileArray: any): void;
|
|
28
28
|
/**Method to sort the files in asc */
|
|
29
|
-
sortFiles(a: any, b: any):
|
|
29
|
+
sortFiles(a: any, b: any): 0 | 1 | -1;
|
|
30
30
|
/**Method tp validate the file size */
|
|
31
31
|
fileSizeAllowed(file: any): boolean;
|
|
32
32
|
/**Method invokes when the drop box is clicked to upload the file */
|
|
@@ -3,16 +3,18 @@ import { User } from '../user.model';
|
|
|
3
3
|
import { UserService } from '../user.service';
|
|
4
4
|
import { AlertService } from '../../core';
|
|
5
5
|
import { CurrentUserService } from '../current-user.service';
|
|
6
|
+
import { MatDialog } from '@angular/material/dialog';
|
|
6
7
|
import * as i0 from "@angular/core";
|
|
7
8
|
export declare class UserEnableButtonComponent implements OnInit {
|
|
8
9
|
private service;
|
|
9
10
|
private alertService;
|
|
10
11
|
currentUserService: CurrentUserService;
|
|
12
|
+
private dialog;
|
|
11
13
|
user: any;
|
|
12
14
|
isUseIcons: boolean;
|
|
13
15
|
currentUser: User;
|
|
14
16
|
onSave: EventEmitter<User>;
|
|
15
|
-
constructor(service: UserService, alertService: AlertService, currentUserService: CurrentUserService);
|
|
17
|
+
constructor(service: UserService, alertService: AlertService, currentUserService: CurrentUserService, dialog: MatDialog);
|
|
16
18
|
ngOnInit(): void;
|
|
17
19
|
enableUser(): void;
|
|
18
20
|
disableUser(): void;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Router } from '@angular/router';
|
|
2
|
+
import { User } from '../user';
|
|
3
|
+
import { AlertService, AuthenticationService, CredentialsService, ErrorHandlerService } from '../core';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class UserMenuComponent {
|
|
6
|
+
private router;
|
|
7
|
+
private errorHandler;
|
|
8
|
+
private alertService;
|
|
9
|
+
private credentialsService;
|
|
10
|
+
private authenticationService;
|
|
11
|
+
user: User;
|
|
12
|
+
constructor(router: Router, errorHandler: ErrorHandlerService, alertService: AlertService, credentialsService: CredentialsService, authenticationService: AuthenticationService);
|
|
13
|
+
get username(): string | null;
|
|
14
|
+
logout(): Promise<void>;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UserMenuComponent, never>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UserMenuComponent, "app-user-menu", never, {}, {}, never, never, false, never>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./user-menu.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "@angular/material/button";
|
|
5
|
+
import * as i4 from "@angular/material/menu";
|
|
6
|
+
import * as i5 from "@angular/router";
|
|
7
|
+
import * as i6 from "../techlify-company-switcher/techlify-company-switcher.module";
|
|
8
|
+
import * as i7 from "@angular/material/icon";
|
|
9
|
+
export declare class UserMenuModule {
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UserMenuModule, never>;
|
|
11
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<UserMenuModule, [typeof i1.UserMenuComponent], [typeof i2.CommonModule, typeof i3.MatButton, typeof i4.MatMenu, typeof i4.MatMenuItem, typeof i5.RouterLink, typeof i4.MatMenuTrigger, typeof i6.TechlifyCompanySwitcherModule, typeof i7.MatIcon], [typeof i1.UserMenuComponent]>;
|
|
12
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<UserMenuModule>;
|
|
13
|
+
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -136,3 +136,5 @@ export * from './lib/app-admin/app-admin.module';
|
|
|
136
136
|
export * from './lib/app-admin/app-admin-home/app-admin-home.component';
|
|
137
137
|
export * from './lib/app-admin/tenant/tenant-list-widget/tenant-list-widget.component';
|
|
138
138
|
export * from './lib/pipes/wrap.pipe';
|
|
139
|
+
export * from './lib/user-menu/user-menu.module';
|
|
140
|
+
export * from './lib/user-menu/user-menu.component';
|