@bnsights/bbsf-admin-portal 1.0.4 → 1.0.5

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.
Files changed (34) hide show
  1. package/bnsights-bbsf-admin-portal-1.0.5.tgz +0 -0
  2. package/bundles/bnsights-bbsf-admin-portal.umd.js +549 -392
  3. package/bundles/bnsights-bbsf-admin-portal.umd.js.map +1 -1
  4. package/esm2015/lib/Pages/account/account-routing.module.js +3 -1
  5. package/esm2015/lib/Pages/account/account.component.js +15 -6
  6. package/esm2015/lib/Pages/account/account.module.js +16 -8
  7. package/esm2015/lib/Pages/account/forgot-password/forgot-password.component.js +48 -0
  8. package/esm2015/lib/Pages/configurations/configuration/configuration.component.js +203 -184
  9. package/esm2015/lib/Pages/core/authentication/auth.service.js +1 -2
  10. package/esm2015/lib/Pages/localizations/localizations.component.js +2 -3
  11. package/esm2015/lib/Pages/lookups/lookup/lookup.component.js +2 -2
  12. package/esm2015/lib/Pages/providers/provider/provider.component.js +2 -1
  13. package/esm2015/lib/Pages/shared/Enums/ConfigurationScope.js +8 -0
  14. package/esm2015/lib/Pages/shared/Enums/ConfigurationType.js +8 -0
  15. package/esm2015/lib/Pages/shared/Enums/ConfigurationValueSource.js +6 -0
  16. package/esm2015/lib/Pages/shared/Services/AccountService.service.js +21 -0
  17. package/esm2015/lib/Pages/shared/models/AccountModels/forgotPasswordModel.js +6 -0
  18. package/esm2015/lib/Pages/users/users.component.js +3 -2
  19. package/esm2015/lib/masterlayout.component.js +1 -2
  20. package/fesm2015/bnsights-bbsf-admin-portal.js +546 -390
  21. package/fesm2015/bnsights-bbsf-admin-portal.js.map +1 -1
  22. package/lib/Pages/account/account.component.d.ts +5 -1
  23. package/lib/Pages/account/account.module.d.ts +8 -6
  24. package/lib/Pages/account/forgot-password/forgot-password.component.d.ts +20 -0
  25. package/lib/Pages/configurations/configuration/configuration.component.d.ts +11 -7
  26. package/lib/Pages/shared/Enums/ConfigurationScope.d.ts +5 -0
  27. package/lib/Pages/shared/Enums/ConfigurationType.d.ts +6 -0
  28. package/lib/Pages/shared/Enums/ConfigurationValueSource.d.ts +4 -0
  29. package/lib/Pages/shared/Services/AccountService.service.d.ts +10 -0
  30. package/lib/Pages/shared/models/AccountModels/forgotPasswordModel.d.ts +3 -0
  31. package/package.json +5 -3
  32. package/src/lib/assets/sass/core/components/_variables.scss +1 -1
  33. package/src/lib/assets/sass/custom-styles-rtl.scss +5 -0
  34. package/src/lib/assets/sass/custom-styles.scss +38 -0
@@ -1,8 +1,12 @@
1
1
  import { OnInit } from '@angular/core';
2
+ import { StylesBundleService, UtilityService } from '@bnsights/bbsf-utilities';
2
3
  import * as i0 from "@angular/core";
3
4
  export declare class AccountComponent implements OnInit {
4
- constructor();
5
+ private utilityService;
6
+ private stylesBundleService;
7
+ constructor(utilityService: UtilityService, stylesBundleService: StylesBundleService);
5
8
  ngOnInit(): void;
9
+ loadUI(): void;
6
10
  static ɵfac: i0.ɵɵFactoryDeclaration<AccountComponent, never>;
7
11
  static ɵcmp: i0.ɵɵComponentDeclaration<AccountComponent, "app-account", never, {}, {}, never, never>;
8
12
  }
@@ -2,13 +2,15 @@ import * as i0 from "@angular/core";
2
2
  import * as i1 from "./login/login.component";
3
3
  import * as i2 from "./register/register.component";
4
4
  import * as i3 from "./account.component";
5
- import * as i4 from "@angular/common";
6
- import * as i5 from "@angular/router";
7
- import * as i6 from "./account-routing.module";
8
- import * as i7 from "../shared/shared.module";
9
- import * as i8 from "@angular/forms";
5
+ import * as i4 from "./forgot-password/forgot-password.component";
6
+ import * as i5 from "@angular/common";
7
+ import * as i6 from "@angular/router";
8
+ import * as i7 from "./account-routing.module";
9
+ import * as i8 from "../shared/shared.module";
10
+ import * as i9 from "@angular/forms";
11
+ import * as i10 from "@bnsights/bbsf-controls";
10
12
  export declare class AccountModule {
11
13
  static ɵfac: i0.ɵɵFactoryDeclaration<AccountModule, never>;
12
- static ɵmod: i0.ɵɵNgModuleDeclaration<AccountModule, [typeof i1.LoginComponent, typeof i2.RegisterComponent, typeof i3.AccountComponent], [typeof i4.CommonModule, typeof i5.RouterModule, typeof i6.AccountRoutingModule, typeof i7.SharedModule, typeof i8.FormsModule, typeof i8.ReactiveFormsModule], never>;
14
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AccountModule, [typeof i1.LoginComponent, typeof i2.RegisterComponent, typeof i3.AccountComponent, typeof i4.ForgotPasswordComponent], [typeof i5.CommonModule, typeof i6.RouterModule, typeof i7.AccountRoutingModule, typeof i8.SharedModule, typeof i9.FormsModule, typeof i9.ReactiveFormsModule, typeof i10.BBSFControlsModule], never>;
13
15
  static ɵinj: i0.ɵɵInjectorDeclaration<AccountModule>;
14
16
  }
@@ -0,0 +1,20 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { FormGroup } from '@angular/forms';
3
+ import { FormOptions, TextBoxOptions } from '@bnsights/bbsf-controls';
4
+ import { UtilityService } from '@bnsights/bbsf-utilities';
5
+ import { Observable } from 'rxjs';
6
+ import { AccountService } from '../../shared/Services/AccountService.service';
7
+ import * as i0 from "@angular/core";
8
+ export declare class ForgotPasswordComponent implements OnInit {
9
+ utilityService: UtilityService;
10
+ private accountService;
11
+ forgotForm: FormGroup;
12
+ forgotFormOptions: FormOptions;
13
+ email: TextBoxOptions;
14
+ constructor(utilityService: UtilityService, accountService: AccountService);
15
+ ngOnInit(): void;
16
+ getForgotModel: () => any[];
17
+ getForgotFunction: (email: any) => Observable<any>;
18
+ static ɵfac: i0.ɵɵFactoryDeclaration<ForgotPasswordComponent, never>;
19
+ static ɵcmp: i0.ɵɵComponentDeclaration<ForgotPasswordComponent, "lib-forgot-password", never, {}, {}, never, never>;
20
+ }
@@ -45,6 +45,8 @@ export declare class ConfigurationComponent implements OnInit {
45
45
  ShowDropDownSource: boolean;
46
46
  ShowLookupItemsList: boolean;
47
47
  ShowSourceFunctionData: boolean;
48
+ showFunctionNotFoundError: boolean;
49
+ sourceFunctionDataNotLoaded: boolean;
48
50
  AddConfigurationForm: FormGroup;
49
51
  AddConfigurationFormOptions: FormOptions;
50
52
  Key: TextBoxOptions;
@@ -84,9 +86,9 @@ export declare class ConfigurationComponent implements OnInit {
84
86
  EditSourceFuncDefaultValue: DropdownOptions;
85
87
  ConfigurationId: number;
86
88
  ConfigurationValueType: number;
87
- EditConfigurationTypeName: string;
88
- EditConfigurationScopeName: string;
89
- EditConfigurationDDLSourceName: string;
89
+ EditConfigurationScopeID: number;
90
+ EditConfigurationTypeID: number;
91
+ EditConfigurationDDLSourceID: number;
90
92
  deleteConfigurationId: string;
91
93
  DeleteConfirmationOptions: ConfirmationModalOptions;
92
94
  deleteControlLoaded: boolean;
@@ -97,18 +99,20 @@ export declare class ConfigurationComponent implements OnInit {
97
99
  setConfigurationListResult(result: any): void;
98
100
  searchClientSide(searchValue: any): void;
99
101
  showAddConfigurationModal(AddConfigurationModal: any): void;
102
+ ChangeTypeValue(key: any): void;
103
+ ChangeSource(key: any): void;
104
+ removeFormControls(): void;
105
+ ChangeLookup(key: any): void;
100
106
  getAddConfigurationModel: () => any[];
101
107
  getAddConfigurationFunction: (AddModel: any) => Observable<any>;
102
108
  showEditConfigurationModal(configurationId: number, configurationIDEnc: string, EditConfigurationModal: any): void;
103
109
  getEditConfigurationModel: () => any[];
104
110
  getEditConfigurationFunction: (EditModel: any) => Observable<any>;
105
- ChangeScopeValue(key: any): void;
106
- ChangeTypeValue(key: any): void;
107
- ChangeSource(key: any): void;
108
- ChangeLookup(key: any): void;
109
111
  ChangeEditLookup(key: any): void;
112
+ ChangeScopeValue(key: any): void;
110
113
  resetConfigurationFlags(): void;
111
114
  SearchForFunction(isAdd?: boolean): void;
115
+ changeSourceFunction(): void;
112
116
  showDeleteConfigurationModal(configurationID: string): void;
113
117
  deleteConfiguration: (id: string) => Observable<any>;
114
118
  ngOnDestroy(): void;
@@ -0,0 +1,5 @@
1
+ export declare enum ConfigurationScope {
2
+ App = 6001,
3
+ PermissionSet = 6002,
4
+ User = 6003
5
+ }
@@ -0,0 +1,6 @@
1
+ export declare enum ConfigurationTypes {
2
+ Text = 31001,
3
+ DDL = 31002,
4
+ Toggle = 31003,
5
+ PV = 31004
6
+ }
@@ -0,0 +1,4 @@
1
+ export declare enum ConfigurationValueSource {
2
+ Lookup = 32001,
3
+ Function = 32002
4
+ }
@@ -0,0 +1,10 @@
1
+ import { RequestHandlerService } from "@bnsights/bbsf-utilities";
2
+ import * as i0 from "@angular/core";
3
+ export declare class AccountService {
4
+ private http;
5
+ ApiUrl: string;
6
+ constructor(http: RequestHandlerService);
7
+ forgotPassword(email: string): import("rxjs").Observable<ArrayBuffer>;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<AccountService, never>;
9
+ static ɵprov: i0.ɵɵInjectableDeclaration<AccountService>;
10
+ }
@@ -0,0 +1,3 @@
1
+ export declare class ForgotPasswordModel {
2
+ Username: string;
3
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bnsights/bbsf-admin-portal",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "peerDependencies": {
5
5
  "@agm/core": "^3.0.0-beta.0",
6
6
  "@angular-devkit/build-angular": "~12.2.12",
@@ -36,15 +36,16 @@
36
36
  "@angular/platform-browser": "~12.2.12",
37
37
  "@angular/platform-browser-dynamic": "~12.2.12",
38
38
  "@angular/router": "~12.2.12",
39
+ "@bnsights/bbsf-controls": "1.0.10",
40
+ "@bnsights/bbsf-utilities": "1.0.3",
39
41
  "@fortawesome/fontawesome-free": "^5.15.1",
40
42
  "@ng-bootstrap/ng-bootstrap": "^9.0.2",
41
43
  "@ngx-translate/core": "^13.0.0",
42
44
  "@popperjs/core": "^2.10.2",
45
+ "@sweetalert2/ngx-sweetalert2": "^10.0.0",
43
46
  "@types/file-saver": "^2.0.1",
44
47
  "angular-in-memory-web-api": "^0.11.0",
45
48
  "apexcharts": "^3.20.0",
46
- "@bnsights/bbsf-controls": "1.0.9",
47
- "@bnsights/bbsf-utilities": "1.0.2",
48
49
  "bootstrap": "^5.0.2",
49
50
  "clipboard": "^2.0.6",
50
51
  "file-saver": "^2.0.5",
@@ -63,6 +64,7 @@
63
64
  "perfect-scrollbar": "^1.5.0",
64
65
  "rxjs": "6.6.0",
65
66
  "socicon": "^3.0.5",
67
+ "sweetalert2": "^11.3.1",
66
68
  "tslib": "^2.0.0",
67
69
  "zone.js": "~0.11.4"
68
70
  },
@@ -276,7 +276,7 @@ $grid-breakpoints: (
276
276
  xs: 0,
277
277
  sm: 576px,
278
278
  md: 768px,
279
- lg: 992px,
279
+ lg: 990px,
280
280
  xl: 1200px,
281
281
  xxl: 1400px
282
282
  ) !default;
@@ -21,3 +21,8 @@ body, html {
21
21
  .home-search .svg.svg-icon-primary {
22
22
  right: 0px;
23
23
  }
24
+ /*users filters*/
25
+ .dropdown-menu-right {
26
+ right: auto !important;
27
+ left: 0 !important;
28
+ }
@@ -491,3 +491,41 @@ angular-editor.bnsights-control.form-control.is-invalid {
491
491
  angular-editor.bnsights-control.form-control {
492
492
  direction: ltr !important;
493
493
  }
494
+
495
+ .card-title .form-group {
496
+ margin-bottom: 0px;
497
+ }
498
+
499
+ .table .form-group {
500
+ margin-bottom: 0px;
501
+ }
502
+
503
+ .mat-checkbox-checked:not(.mat-checkbox-disabled).mat-accent .mat-ripple-element, .mat-checkbox:active:not(.mat-checkbox-disabled).mat-accent .mat-ripple-element {
504
+ background: #3699ff;
505
+ }
506
+
507
+
508
+ /*sweet alert*/
509
+
510
+ .swal2-popup.swal2-modal {
511
+ background-color: #1E1E2D;
512
+ box-shadow: 0 0.5rem 1rem rgb(0 0 0 / 10%);
513
+ color: white;
514
+ }
515
+
516
+ button.swal2-cancel {
517
+ color: #CDCDDE !important;
518
+ border-color: #1b1b29 !important;
519
+ background-color: #1b1b29 !important;
520
+ }
521
+
522
+ .swal2-close:focus, button.swal2-confirm:focus {
523
+ outline: 0;
524
+ box-shadow: none !important;
525
+ }
526
+
527
+ /*users filters*/
528
+ .dropdown-menu-right {
529
+ right: 0;
530
+ left: auto !important;
531
+ }