ngx-techlify-core 14.9.5 → 14.10.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.
@@ -1,7 +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
+ import { CurrentUserService } from "../user/current-user.service";
5
5
  import * as i0 from "@angular/core";
6
6
  /**
7
7
  * Provides a base for authentication workflow.
@@ -0,0 +1,20 @@
1
+ import { OnInit, EventEmitter } from '@angular/core';
2
+ import { User } from '../user.model';
3
+ import { UserService } from '../user.service';
4
+ import { AlertService } from '../../core';
5
+ import { CurrentUserService } from '../current-user.service';
6
+ import * as i0 from "@angular/core";
7
+ export declare class UserEnableButtonComponent implements OnInit {
8
+ private service;
9
+ private alertService;
10
+ currentUserService: CurrentUserService;
11
+ user: any;
12
+ currentUser: User;
13
+ onSave: EventEmitter<User>;
14
+ constructor(service: UserService, alertService: AlertService, currentUserService: CurrentUserService);
15
+ ngOnInit(): void;
16
+ enableUser(): void;
17
+ disableUser(): void;
18
+ static ɵfac: i0.ɵɵFactoryDeclaration<UserEnableButtonComponent, never>;
19
+ static ɵcmp: i0.ɵɵComponentDeclaration<UserEnableButtonComponent, "app-user-enable-button", never, { "user": "user"; }, { "onSave": "onSave"; }, never, never, false>;
20
+ }
@@ -3,24 +3,25 @@ import * as i1 from "./users-view-all.component";
3
3
  import * as i2 from "./user-form.component";
4
4
  import * as i3 from "./user-explore.component";
5
5
  import * as i4 from "./user-view.component";
6
- import * as i5 from "@angular/common";
7
- import * as i6 from "./user.routes";
8
- import * as i7 from "../material.module";
9
- import * as i8 from "@angular/flex-layout";
10
- import * as i9 from "@angular/forms";
11
- import * as i10 from "../file-dropper/file-dropper.module";
12
- import * as i11 from "../document-viewer/document-viewer.module";
13
- import * as i12 from "ngx-infinite-scroll";
14
- import * as i13 from "../login-history-for-user/login-history-for-user.module";
15
- import * as i14 from "../audit-log/audit-log-list/audit-log-list.module";
16
- import * as i15 from "@angular/material/tabs";
17
- import * as i16 from "../searchable-selector/searchable-selector.module";
18
- import * as i17 from "@angular/material/progress-bar";
19
- import * as i18 from "@angular/material/table";
20
- import * as i19 from "@angular/material/sort";
21
- import * as i20 from "../data-table/data-table.module";
6
+ import * as i5 from "./user-enable-button-component/user-enable-button.component";
7
+ import * as i6 from "@angular/common";
8
+ import * as i7 from "./user.routes";
9
+ import * as i8 from "../material.module";
10
+ import * as i9 from "@angular/flex-layout";
11
+ import * as i10 from "@angular/forms";
12
+ import * as i11 from "../file-dropper/file-dropper.module";
13
+ import * as i12 from "../document-viewer/document-viewer.module";
14
+ import * as i13 from "ngx-infinite-scroll";
15
+ import * as i14 from "../login-history-for-user/login-history-for-user.module";
16
+ import * as i15 from "../audit-log/audit-log-list/audit-log-list.module";
17
+ import * as i16 from "@angular/material/tabs";
18
+ import * as i17 from "../searchable-selector/searchable-selector.module";
19
+ import * as i18 from "@angular/material/progress-bar";
20
+ import * as i19 from "@angular/material/table";
21
+ import * as i20 from "@angular/material/sort";
22
+ import * as i21 from "../data-table/data-table.module";
22
23
  export declare class UserModule {
23
24
  static ɵfac: i0.ɵɵFactoryDeclaration<UserModule, never>;
24
- static ɵmod: i0.ɵɵNgModuleDeclaration<UserModule, [typeof i1.UsersViewAllComponent, typeof i2.UserFormComponent, typeof i3.UserExploreComponent, typeof i4.UserViewComponent], [typeof i5.CommonModule, typeof i6.UserRoutingProvider, typeof i7.MaterialModule, typeof i8.FlexLayoutModule, typeof i9.FormsModule, typeof i9.ReactiveFormsModule, typeof i10.FileDropperModule, typeof i11.DocumentViewerModule, typeof i12.InfiniteScrollModule, typeof i13.LoginHistoryForUserModule, typeof i14.AuditLogListModule, typeof i15.MatTabsModule, typeof i16.SearchableSelectorModule, typeof i17.MatProgressBarModule, typeof i18.MatTableModule, typeof i19.MatSortModule, typeof i20.DataTableModule], [typeof i1.UsersViewAllComponent]>;
25
+ static ɵmod: i0.ɵɵNgModuleDeclaration<UserModule, [typeof i1.UsersViewAllComponent, typeof i2.UserFormComponent, typeof i3.UserExploreComponent, typeof i4.UserViewComponent, typeof i5.UserEnableButtonComponent], [typeof i6.CommonModule, typeof i7.UserRoutingProvider, typeof i8.MaterialModule, typeof i9.FlexLayoutModule, typeof i10.FormsModule, typeof i10.ReactiveFormsModule, typeof i11.FileDropperModule, typeof i12.DocumentViewerModule, typeof i13.InfiniteScrollModule, typeof i14.LoginHistoryForUserModule, typeof i15.AuditLogListModule, typeof i16.MatTabsModule, typeof i17.SearchableSelectorModule, typeof i18.MatProgressBarModule, typeof i19.MatTableModule, typeof i20.MatSortModule, typeof i21.DataTableModule], [typeof i1.UsersViewAllComponent, typeof i5.UserEnableButtonComponent]>;
25
26
  static ɵinj: i0.ɵɵInjectorDeclaration<UserModule>;
26
27
  }
@@ -8,6 +8,8 @@ export declare class UserService {
8
8
  createUser(model: any): Promise<Object>;
9
9
  updateUser(model: any): Promise<Object>;
10
10
  deleteUser(id: any, data: any): Promise<Object>;
11
+ enable(user: any): Promise<Object>;
12
+ disable(user: any): Promise<Object>;
11
13
  static ɵfac: i0.ɵɵFactoryDeclaration<UserService, never>;
12
14
  static ɵprov: i0.ɵɵInjectableDeclaration<UserService>;
13
15
  }
@@ -21,6 +21,7 @@ export declare class UsersViewAllComponent implements OnInit {
21
21
  private fb;
22
22
  private requestHelperService;
23
23
  clientId: number;
24
+ userTypeIds: number[];
24
25
  currentUser: User;
25
26
  isWorking: boolean;
26
27
  displayItemAddDialog: boolean;
@@ -37,11 +38,6 @@ export declare class UsersViewAllComponent implements OnInit {
37
38
  private createForm;
38
39
  loadData(): void;
39
40
  resetPassword(event: any): Promise<void>;
40
- /**
41
- * Enable or disable the user.
42
- * @param event Event data to identify the action and user.
43
- */
44
- enableOrDisableUser(event: any): void;
45
41
  createOrEditUser(user?: any): void;
46
42
  deleteUser(user: any): void;
47
43
  /**
@@ -58,5 +54,5 @@ export declare class UsersViewAllComponent implements OnInit {
58
54
  */
59
55
  getUserType(user: any): string;
60
56
  static ɵfac: i0.ɵɵFactoryDeclaration<UsersViewAllComponent, never>;
61
- static ɵcmp: i0.ɵɵComponentDeclaration<UsersViewAllComponent, "app-users-view-all", never, { "clientId": "clientId"; "title": "title"; }, {}, never, never, false>;
57
+ static ɵcmp: i0.ɵɵComponentDeclaration<UsersViewAllComponent, "app-users-view-all", never, { "clientId": "clientId"; "userTypeIds": "userTypeIds"; "title": "title"; }, {}, never, never, false>;
62
58
  }
package/package.json CHANGED
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "name": "ngx-techlify-core",
3
- "version": "14.9.5",
3
+ "version": "14.10.0",
4
4
  "peerDependencies": {
5
- "@angular/common": ">=11",
6
- "@angular/core": ">=11",
7
- "@angular/animations": ">=11",
8
- "@angular/compiler": ">=11",
9
- "@angular/forms": ">=11",
10
- "@angular/platform-browser": ">=11",
11
- "@angular/platform-browser-dynamic": ">=11",
12
- "@angular/router": ">=11",
13
- "@angular/material": ">=11",
14
- "@angular/cdk": ">=11",
5
+ "@angular/common": ">=14",
6
+ "@angular/core": ">=14",
7
+ "@angular/animations": ">=14",
8
+ "@angular/compiler": ">=14",
9
+ "@angular/forms": ">=14",
10
+ "@angular/platform-browser": ">=14",
11
+ "@angular/platform-browser-dynamic": ">=14",
12
+ "@angular/router": ">=14",
13
+ "@angular/material": ">=14",
14
+ "@angular/cdk": ">=14",
15
15
  "rxjs": ">=6.6.0",
16
16
  "zone.js": ">=0.11"
17
17
  },
package/public-api.d.ts CHANGED
@@ -105,6 +105,7 @@ export * from './lib/user-config';
105
105
  export * from './lib/user-selector';
106
106
  export * from './lib/data-table/data-table.component';
107
107
  export * from './lib/data-table/data-table.model';
108
+ export * from './lib/user/user-enable-button-component/user-enable-button.component';
108
109
  export * from './lib/user';
109
110
  export * from './lib/change-password/change-password.module';
110
111
  export * from './lib/forgot-password/forgot-password.module';