ngx-techlify-core 14.8.1 → 14.9.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/esm2020/lib/base-model/techlify-listing-component.class.mjs +20 -1
- package/esm2020/lib/core/authentication.service.mjs +10 -4
- package/esm2020/lib/forgot-password/forgot-password.component.mjs +7 -5
- package/esm2020/lib/techlify-update/techlify-update-form/techlify-update-form.component.mjs +7 -5
- package/esm2020/lib/techlify-update/techlify-update-history/techlify-update-history.component.mjs +4 -3
- package/esm2020/lib/techlify-update/techlify-updates-list/techlify-updates-list.component.mjs +4 -3
- package/esm2020/lib/techlify-update/techlify-updates-teaser/techlify-updates-teaser.component.mjs +60 -0
- package/esm2020/lib/techlify-update/techlify-updates-teaser/techlify-updates-teaser.module.mjs +34 -0
- package/esm2020/lib/user/current-user.service.mjs +18 -2
- package/esm2020/lib/user/user-view.component.mjs +3 -3
- package/esm2020/lib/user/users-view-all.component.mjs +16 -4
- package/esm2020/public-api.mjs +4 -1
- package/fesm2015/ngx-techlify-core.mjs +5503 -5367
- package/fesm2015/ngx-techlify-core.mjs.map +1 -1
- package/fesm2020/ngx-techlify-core.mjs +5484 -5353
- package/fesm2020/ngx-techlify-core.mjs.map +1 -1
- package/lib/base-model/techlify-listing-component.class.d.ts +5 -10
- package/lib/core/authentication.service.d.ts +3 -1
- package/lib/techlify-update/techlify-updates-teaser/techlify-updates-teaser.component.d.ts +20 -0
- package/lib/techlify-update/techlify-updates-teaser/techlify-updates-teaser.module.d.ts +11 -0
- package/lib/user/current-user.service.d.ts +11 -0
- package/lib/user/users-view-all.component.d.ts +6 -0
- package/package.json +1 -1
- package/public-api.d.ts +3 -0
|
@@ -15,10 +15,11 @@ export declare abstract class TechlifyListingControllerInterface {
|
|
|
15
15
|
perPage: number;
|
|
16
16
|
lastPage: number;
|
|
17
17
|
isWorking: boolean;
|
|
18
|
+
filterForm: any;
|
|
18
19
|
/**
|
|
19
20
|
* Function that listens for any changes in the form group to apply the filters
|
|
20
21
|
*/
|
|
21
|
-
|
|
22
|
+
listenForChanges(): void;
|
|
22
23
|
/**
|
|
23
24
|
* Function that loads the main models of the application
|
|
24
25
|
*/
|
|
@@ -33,15 +34,9 @@ export declare abstract class TechlifyListingControllerInterface {
|
|
|
33
34
|
*/
|
|
34
35
|
onScroll(): void;
|
|
35
36
|
/**
|
|
36
|
-
*
|
|
37
|
+
* Reset the filter.
|
|
37
38
|
*
|
|
38
|
-
* @param
|
|
39
|
+
* @param field
|
|
39
40
|
*/
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* Function used to pop up the delete form for the model
|
|
43
|
-
*
|
|
44
|
-
* @param model
|
|
45
|
-
*/
|
|
46
|
-
abstract deleteForm(model: any): void;
|
|
41
|
+
resetFilter(field: string): void;
|
|
47
42
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
2
|
import { Credentials, CredentialsService } from './credentials.service';
|
|
3
3
|
import { HttpService } from './http.service';
|
|
4
|
+
import { CurrentUserService } from "../user";
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
/**
|
|
6
7
|
* Provides a base for authentication workflow.
|
|
@@ -9,7 +10,8 @@ import * as i0 from "@angular/core";
|
|
|
9
10
|
export declare class AuthenticationService {
|
|
10
11
|
private credentialsService;
|
|
11
12
|
private http;
|
|
12
|
-
|
|
13
|
+
private currentUserService;
|
|
14
|
+
constructor(credentialsService: CredentialsService, http: HttpService, currentUserService: CurrentUserService);
|
|
13
15
|
/**
|
|
14
16
|
* Authenticates the user.
|
|
15
17
|
* @param context The login parameters.
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { Router } from '@angular/router';
|
|
3
|
+
import { TechlifyUpdateService } from '../techlify-update.service';
|
|
4
|
+
import { ErrorHandlerService } from '../../core';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class TechlifyUpdatesTeaserComponent implements OnInit {
|
|
7
|
+
private techlifyUpdateService;
|
|
8
|
+
private errorHandler;
|
|
9
|
+
private router;
|
|
10
|
+
updates: any[];
|
|
11
|
+
rootNavUrl: string;
|
|
12
|
+
perPage: number;
|
|
13
|
+
constructor(techlifyUpdateService: TechlifyUpdateService, errorHandler: ErrorHandlerService, router: Router);
|
|
14
|
+
ngOnInit(): void;
|
|
15
|
+
fetchUpdates(): Promise<void>;
|
|
16
|
+
openUpdateHistory(): void;
|
|
17
|
+
createUpdateViewRecord(update: any): Promise<void>;
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TechlifyUpdatesTeaserComponent, never>;
|
|
19
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TechlifyUpdatesTeaserComponent, "app-techlify-updates-teaser", never, { "rootNavUrl": "rootNavUrl"; "perPage": "perPage"; }, {}, never, never, false>;
|
|
20
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./techlify-updates-teaser.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "../../read-more/read-more.module";
|
|
5
|
+
import * as i4 from "@angular/flex-layout";
|
|
6
|
+
import * as i5 from "../../material.module";
|
|
7
|
+
export declare class TechlifyUpdatesTeaserModule {
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TechlifyUpdatesTeaserModule, never>;
|
|
9
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<TechlifyUpdatesTeaserModule, [typeof i1.TechlifyUpdatesTeaserComponent], [typeof i2.CommonModule, typeof i3.ReadMoreModule, typeof i4.FlexLayoutModule, typeof i5.MaterialModule], [typeof i1.TechlifyUpdatesTeaserComponent]>;
|
|
10
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<TechlifyUpdatesTeaserModule>;
|
|
11
|
+
}
|
|
@@ -15,7 +15,18 @@ export declare class CurrentUserService {
|
|
|
15
15
|
private data;
|
|
16
16
|
/**Deprecated stop using for new projects */
|
|
17
17
|
private userSub;
|
|
18
|
+
private isLoggedIn;
|
|
18
19
|
constructor(http: HttpService, storage: StorageService);
|
|
20
|
+
/**
|
|
21
|
+
* Get the login status of the user.
|
|
22
|
+
*/
|
|
23
|
+
getAuthStatus(): Observable<boolean>;
|
|
24
|
+
/**
|
|
25
|
+
* Update the login status of the user.
|
|
26
|
+
*
|
|
27
|
+
* @param val The next value of the isLoggedIn.
|
|
28
|
+
*/
|
|
29
|
+
updateAuthStatus(val: boolean): void;
|
|
19
30
|
/**
|
|
20
31
|
* Returns an user if present, otherwise a empty user
|
|
21
32
|
* @returns {User} user
|
|
@@ -51,6 +51,12 @@ export declare class UsersViewAllComponent implements OnInit {
|
|
|
51
51
|
onSortChange(sort: Sort): void;
|
|
52
52
|
reload(): void;
|
|
53
53
|
onScroll(): void;
|
|
54
|
+
/**
|
|
55
|
+
* Get the user type for the current client.
|
|
56
|
+
*
|
|
57
|
+
* @param user User
|
|
58
|
+
*/
|
|
59
|
+
getUserType(user: any): string;
|
|
54
60
|
static ɵfac: i0.ɵɵFactoryDeclaration<UsersViewAllComponent, never>;
|
|
55
61
|
static ɵcmp: i0.ɵɵComponentDeclaration<UsersViewAllComponent, "app-users-view-all", never, { "clientId": "clientId"; "title": "title"; }, {}, never, never, false>;
|
|
56
62
|
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -51,6 +51,9 @@ export * from './lib/techlify-update/techlify-update.module';
|
|
|
51
51
|
export * from './lib/techlify-update/techlify-update-history/techlify-update-history.module';
|
|
52
52
|
export * from './lib/techlify-update/update-notifier/update-notifier.module';
|
|
53
53
|
export * from './lib/techlify-update/update-notifier/update-notifier.component';
|
|
54
|
+
export * from './lib/techlify-update/techlify-update.service';
|
|
55
|
+
export * from './lib/techlify-update/techlify-updates-teaser/techlify-updates-teaser.module';
|
|
56
|
+
export * from './lib/techlify-update/techlify-updates-teaser/techlify-updates-teaser.component';
|
|
54
57
|
export * from './lib/export-excel/export-excel-button/export-excel-button.component';
|
|
55
58
|
export * from './lib/export-excel/export-excel.module';
|
|
56
59
|
export * from './lib/audit-log/audit-log-for-model/audit-log-for-model.component';
|