@bnsights/bbsf-admin-portal 1.1.0 → 1.1.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 +4 -0
- package/{bnsights-bbsf-admin-portal-1.1.0.tgz → bnsights-bbsf-admin-portal-1.1.1.tgz} +0 -0
- package/bundles/bnsights-bbsf-admin-portal.umd.js +60 -8
- package/bundles/bnsights-bbsf-admin-portal.umd.js.map +1 -1
- package/esm2015/lib/Pages/anonymouslayout/login/login.component.js +18 -5
- package/esm2015/lib/Pages/shared/Services/AccountService.service.js +4 -1
- package/fesm2015/bnsights-bbsf-admin-portal.js +40 -8
- package/fesm2015/bnsights-bbsf-admin-portal.js.map +1 -1
- package/lib/Pages/anonymouslayout/login/login.component.d.ts +5 -2
- package/lib/Pages/shared/Services/AccountService.service.d.ts +1 -0
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -5,6 +5,10 @@ BBSF Admin Portal package is part of BBSF 3 packages. It hosts all the angular m
|
|
|
5
5
|
For more info please visit [BBSF documentation](https://bnsightsprojects.visualstudio.com/BBSF%203/_wiki/wikis/BBSF-3.wiki/65/BBSF-Documentation)
|
|
6
6
|
|
|
7
7
|
# Change Log
|
|
8
|
+
## 1.1.1 / 29-11-2023
|
|
9
|
+
===================
|
|
10
|
+
* Update controls & Utilities version
|
|
11
|
+
|
|
8
12
|
## 1.1.0 / 19-11-2023
|
|
9
13
|
===================
|
|
10
14
|
* Update controls & Utilities version
|
|
Binary file
|
|
@@ -22342,6 +22342,9 @@
|
|
|
22342
22342
|
AccountService.prototype.login = function (model) {
|
|
22343
22343
|
return this.http.post(this.ApiUrl + 'Login', model);
|
|
22344
22344
|
};
|
|
22345
|
+
AccountService.prototype.loginWithWindowsAuthentication = function () {
|
|
22346
|
+
return this.http.get(this.ApiUrl + 'LoginWithWindowsAuthentication');
|
|
22347
|
+
};
|
|
22345
22348
|
return AccountService;
|
|
22346
22349
|
}());
|
|
22347
22350
|
AccountService$1.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: AccountService$1, deps: [{ token: i1__namespace.RequestHandlerService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
@@ -22354,13 +22357,14 @@
|
|
|
22354
22357
|
}], ctorParameters: function () { return [{ type: i1__namespace.RequestHandlerService }]; } });
|
|
22355
22358
|
|
|
22356
22359
|
var LoginComponent$1 = /** @class */ (function () {
|
|
22357
|
-
function LoginComponent(authService, accountService, router, route, utilityService) {
|
|
22360
|
+
function LoginComponent(authService, accountService, router, route, utilityService, environmentService) {
|
|
22358
22361
|
var _this = this;
|
|
22359
22362
|
this.authService = authService;
|
|
22360
22363
|
this.accountService = accountService;
|
|
22361
22364
|
this.router = router;
|
|
22362
22365
|
this.route = route;
|
|
22363
22366
|
this.utilityService = utilityService;
|
|
22367
|
+
this.environmentService = environmentService;
|
|
22364
22368
|
this.loginForm = new i11$1.FormGroup({});
|
|
22365
22369
|
this.loginFormOptions = new i6.FormOptions;
|
|
22366
22370
|
this.getLoginModel = function () {
|
|
@@ -22392,6 +22396,27 @@
|
|
|
22392
22396
|
};
|
|
22393
22397
|
}
|
|
22394
22398
|
LoginComponent.prototype.ngOnInit = function () {
|
|
22399
|
+
var _this = this;
|
|
22400
|
+
if (this.environmentService.getIsEnableWindowsAuthentication)
|
|
22401
|
+
this.accountService.loginWithWindowsAuthentication().subscribe(function (res) { return __awaiter(_this, void 0, void 0, function () {
|
|
22402
|
+
var result;
|
|
22403
|
+
return __generator(this, function (_a) {
|
|
22404
|
+
switch (_a.label) {
|
|
22405
|
+
case 0:
|
|
22406
|
+
result = res;
|
|
22407
|
+
this.utilityService.stopBlockUI();
|
|
22408
|
+
return [4 /*yield*/, this.authService.handleAccessToken(result.val)];
|
|
22409
|
+
case 1:
|
|
22410
|
+
_a.sent();
|
|
22411
|
+
this.router.navigate([this.authService.getUrl()]);
|
|
22412
|
+
return [2 /*return*/];
|
|
22413
|
+
}
|
|
22414
|
+
});
|
|
22415
|
+
}); });
|
|
22416
|
+
else
|
|
22417
|
+
this.loadLoginForm();
|
|
22418
|
+
};
|
|
22419
|
+
LoginComponent.prototype.loadLoginForm = function () {
|
|
22395
22420
|
this.loginForm = new i11$1.FormGroup({});
|
|
22396
22421
|
this.loginFormOptions = new i6.FormOptions();
|
|
22397
22422
|
this.loginFormOptions.FormGroup = this.loginForm;
|
|
@@ -22411,19 +22436,20 @@
|
|
|
22411
22436
|
this.password.LabelKey = "Password";
|
|
22412
22437
|
this.password.Type = i6.InputType.Password;
|
|
22413
22438
|
this.password.IsRequired = true;
|
|
22439
|
+
this.loadPage = true;
|
|
22414
22440
|
this.utilityService.stopBlockUI();
|
|
22415
22441
|
};
|
|
22416
22442
|
return LoginComponent;
|
|
22417
22443
|
}());
|
|
22418
|
-
LoginComponent$1.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: LoginComponent$1, deps: [{ token: i1__namespace.AuthService }, { token: AccountService$1 }, { token: i1__namespace$1.Router }, { token: i1__namespace$1.ActivatedRoute }, { token: i1__namespace.UtilityService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
22419
|
-
LoginComponent$1.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", type: LoginComponent$1, selector: "app-login", ngImport: i0__namespace, template: "\r\n<block-ui></block-ui>\r\n<div class=\"form w-100\" novalidate=\"novalidate\" id=\"kt_sign_in_form\">\r\n <input type=\"hidden\" name=\"ReturnUrl\" value=\"@Model.ReturnUrl\" />\r\n <div class=\"text-center mb-10\">\r\n <h1 class=\"text-dark mb-3\"> {{utilityService.getResourceValue(\"Login\")}} </h1>\r\n </div>\r\n <BBSF-Form [options]=\"loginFormOptions\">\r\n <div class=\"fv-row mb-10\">\r\n <BBSF-TextBox [options]=\"email\" [group]=\"loginForm\"></BBSF-TextBox>\r\n </div>\r\n <div class=\"fv-row mb-10\">\r\n <BBSF-TextBox [options]=\"password\" [group]=\"loginForm\"></BBSF-TextBox>\r\n <div class=\"text-right\">\r\n <a href=\"/Admin/account/forgotPassword\" class=\"link-primary fs-6 fw-bolder mt-2\">{{utilityService.getResourceValue(\"ForgotPassword\")}}</a>\r\n </div>\r\n </div>\r\n <div class=\"fv-row mb-10\" *ngIf=\"error\">\r\n <span class=\"text-danger\">\r\n {{error}}\r\n </span>\r\n </div>\r\n\r\n <div class=\"text-center\">\r\n <button type=\"submit\" class=\"btn btn-primary btn-sm\">\r\n {{utilityService.getResourceValue(\"Login\")}}\r\n </button>\r\n </div>\r\n </BBSF-Form>\r\n</div>\r\n", components: [{ type: i5__namespace$1.BlockUIComponent, selector: "block-ui", inputs: ["name", "template", "message", "delayStart", "delayStop"] }, { type: i6__namespace.FormComponent, selector: "BBSF-Form", inputs: ["options"], outputs: ["OnChange"] }, { type: i6__namespace.TextboxComponent, selector: "BBSF-TextBox", inputs: ["group", "options"], outputs: ["OnChange", "OnBlur"] }], directives: [{ type: i10__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
22444
|
+
LoginComponent$1.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: LoginComponent$1, deps: [{ token: i1__namespace.AuthService }, { token: AccountService$1 }, { token: i1__namespace$1.Router }, { token: i1__namespace$1.ActivatedRoute }, { token: i1__namespace.UtilityService }, { token: i1__namespace.EnvironmentService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
22445
|
+
LoginComponent$1.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", type: LoginComponent$1, selector: "app-login", ngImport: i0__namespace, template: "\r\n<block-ui></block-ui>\r\n<div class=\"form w-100\" novalidate=\"novalidate\" id=\"kt_sign_in_form\" *ngIf=\"loadPage\">\r\n <input type=\"hidden\" name=\"ReturnUrl\" value=\"@Model.ReturnUrl\" />\r\n <div class=\"text-center mb-10\">\r\n <h1 class=\"text-dark mb-3\"> {{utilityService.getResourceValue(\"Login\")}} </h1>\r\n </div>\r\n <BBSF-Form [options]=\"loginFormOptions\">\r\n <div class=\"fv-row mb-10\">\r\n <BBSF-TextBox [options]=\"email\" [group]=\"loginForm\"></BBSF-TextBox>\r\n </div>\r\n <div class=\"fv-row mb-10\">\r\n <BBSF-TextBox [options]=\"password\" [group]=\"loginForm\"></BBSF-TextBox>\r\n <div class=\"text-right\">\r\n <a href=\"/Admin/account/forgotPassword\" class=\"link-primary fs-6 fw-bolder mt-2\">{{utilityService.getResourceValue(\"ForgotPassword\")}}</a>\r\n </div>\r\n </div>\r\n <div class=\"fv-row mb-10\" *ngIf=\"error\">\r\n <span class=\"text-danger\">\r\n {{error}}\r\n </span>\r\n </div>\r\n\r\n <div class=\"text-center\">\r\n <button type=\"submit\" class=\"btn btn-primary btn-sm\">\r\n {{utilityService.getResourceValue(\"Login\")}}\r\n </button>\r\n </div>\r\n </BBSF-Form>\r\n</div>\r\n", components: [{ type: i5__namespace$1.BlockUIComponent, selector: "block-ui", inputs: ["name", "template", "message", "delayStart", "delayStop"] }, { type: i6__namespace.FormComponent, selector: "BBSF-Form", inputs: ["options"], outputs: ["OnChange"] }, { type: i6__namespace.TextboxComponent, selector: "BBSF-TextBox", inputs: ["group", "options"], outputs: ["OnChange", "OnBlur"] }], directives: [{ type: i10__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
22420
22446
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: LoginComponent$1, decorators: [{
|
|
22421
22447
|
type: i0.Component,
|
|
22422
22448
|
args: [{
|
|
22423
22449
|
selector: 'app-login',
|
|
22424
22450
|
templateUrl: './login.component.html'
|
|
22425
22451
|
}]
|
|
22426
|
-
}], ctorParameters: function () { return [{ type: i1__namespace.AuthService }, { type: AccountService$1 }, { type: i1__namespace$1.Router }, { type: i1__namespace$1.ActivatedRoute }, { type: i1__namespace.UtilityService }]; } });
|
|
22452
|
+
}], ctorParameters: function () { return [{ type: i1__namespace.AuthService }, { type: AccountService$1 }, { type: i1__namespace$1.Router }, { type: i1__namespace$1.ActivatedRoute }, { type: i1__namespace.UtilityService }, { type: i1__namespace.EnvironmentService }]; } });
|
|
22427
22453
|
|
|
22428
22454
|
var AnonymousLayoutService$1 = /** @class */ (function () {
|
|
22429
22455
|
function AnonymousLayoutService(accountService, router, http, authService, stylesBundleService, translate) {
|
|
@@ -31323,6 +31349,9 @@
|
|
|
31323
31349
|
AccountService.prototype.login = function (model) {
|
|
31324
31350
|
return this.http.post(this.ApiUrl + 'Login', model);
|
|
31325
31351
|
};
|
|
31352
|
+
AccountService.prototype.loginWithWindowsAuthentication = function () {
|
|
31353
|
+
return this.http.get(this.ApiUrl + 'LoginWithWindowsAuthentication');
|
|
31354
|
+
};
|
|
31326
31355
|
return AccountService;
|
|
31327
31356
|
}());
|
|
31328
31357
|
AccountService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: AccountService, deps: [{ token: i1__namespace.RequestHandlerService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
@@ -31413,13 +31442,14 @@
|
|
|
31413
31442
|
}], ctorParameters: function () { return [{ type: i1__namespace.UtilityService }, { type: i1__namespace.StylesBundleService }, { type: i1__namespace.EnvironmentService }, { type: AnonymousLayoutService }, { type: i1__namespace.BBSFTranslateService }, { type: i1__namespace.MasterLayoutService }, { type: i1__namespace.AppearanceConfigurationService }]; } });
|
|
31414
31443
|
|
|
31415
31444
|
var LoginComponent = /** @class */ (function () {
|
|
31416
|
-
function LoginComponent(authService, accountService, router, route, utilityService) {
|
|
31445
|
+
function LoginComponent(authService, accountService, router, route, utilityService, environmentService) {
|
|
31417
31446
|
var _this = this;
|
|
31418
31447
|
this.authService = authService;
|
|
31419
31448
|
this.accountService = accountService;
|
|
31420
31449
|
this.router = router;
|
|
31421
31450
|
this.route = route;
|
|
31422
31451
|
this.utilityService = utilityService;
|
|
31452
|
+
this.environmentService = environmentService;
|
|
31423
31453
|
this.loginForm = new i11$1.FormGroup({});
|
|
31424
31454
|
this.loginFormOptions = new i6.FormOptions;
|
|
31425
31455
|
this.getLoginModel = function () {
|
|
@@ -31451,6 +31481,27 @@
|
|
|
31451
31481
|
};
|
|
31452
31482
|
}
|
|
31453
31483
|
LoginComponent.prototype.ngOnInit = function () {
|
|
31484
|
+
var _this = this;
|
|
31485
|
+
if (this.environmentService.getIsEnableWindowsAuthentication)
|
|
31486
|
+
this.accountService.loginWithWindowsAuthentication().subscribe(function (res) { return __awaiter(_this, void 0, void 0, function () {
|
|
31487
|
+
var result;
|
|
31488
|
+
return __generator(this, function (_a) {
|
|
31489
|
+
switch (_a.label) {
|
|
31490
|
+
case 0:
|
|
31491
|
+
result = res;
|
|
31492
|
+
this.utilityService.stopBlockUI();
|
|
31493
|
+
return [4 /*yield*/, this.authService.handleAccessToken(result.val)];
|
|
31494
|
+
case 1:
|
|
31495
|
+
_a.sent();
|
|
31496
|
+
this.router.navigate([this.authService.getUrl()]);
|
|
31497
|
+
return [2 /*return*/];
|
|
31498
|
+
}
|
|
31499
|
+
});
|
|
31500
|
+
}); });
|
|
31501
|
+
else
|
|
31502
|
+
this.loadLoginForm();
|
|
31503
|
+
};
|
|
31504
|
+
LoginComponent.prototype.loadLoginForm = function () {
|
|
31454
31505
|
this.loginForm = new i11$1.FormGroup({});
|
|
31455
31506
|
this.loginFormOptions = new i6.FormOptions();
|
|
31456
31507
|
this.loginFormOptions.FormGroup = this.loginForm;
|
|
@@ -31470,19 +31521,20 @@
|
|
|
31470
31521
|
this.password.LabelKey = "Password";
|
|
31471
31522
|
this.password.Type = i6.InputType.Password;
|
|
31472
31523
|
this.password.IsRequired = true;
|
|
31524
|
+
this.loadPage = true;
|
|
31473
31525
|
this.utilityService.stopBlockUI();
|
|
31474
31526
|
};
|
|
31475
31527
|
return LoginComponent;
|
|
31476
31528
|
}());
|
|
31477
|
-
LoginComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: LoginComponent, deps: [{ token: i1__namespace.AuthService }, { token: AccountService }, { token: i1__namespace$1.Router }, { token: i1__namespace$1.ActivatedRoute }, { token: i1__namespace.UtilityService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
31478
|
-
LoginComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", type: LoginComponent, selector: "app-login", ngImport: i0__namespace, template: "\r\n<block-ui></block-ui>\r\n<div class=\"form w-100\" novalidate=\"novalidate\" id=\"kt_sign_in_form\">\r\n <input type=\"hidden\" name=\"ReturnUrl\" value=\"@Model.ReturnUrl\" />\r\n <div class=\"text-center mb-10\">\r\n <h1 class=\"text-dark mb-3\"> {{utilityService.getResourceValue(\"Login\")}} </h1>\r\n </div>\r\n <BBSF-Form [options]=\"loginFormOptions\">\r\n <div class=\"fv-row mb-10\">\r\n <BBSF-TextBox [options]=\"email\" [group]=\"loginForm\"></BBSF-TextBox>\r\n </div>\r\n <div class=\"fv-row mb-10\">\r\n <BBSF-TextBox [options]=\"password\" [group]=\"loginForm\"></BBSF-TextBox>\r\n <div class=\"text-right\">\r\n <a href=\"/Admin/account/forgotPassword\" class=\"link-primary fs-6 fw-bolder mt-2\">{{utilityService.getResourceValue(\"ForgotPassword\")}}</a>\r\n </div>\r\n </div>\r\n <div class=\"fv-row mb-10\" *ngIf=\"error\">\r\n <span class=\"text-danger\">\r\n {{error}}\r\n </span>\r\n </div>\r\n\r\n <div class=\"text-center\">\r\n <button type=\"submit\" class=\"btn btn-primary btn-sm\">\r\n {{utilityService.getResourceValue(\"Login\")}}\r\n </button>\r\n </div>\r\n </BBSF-Form>\r\n</div>\r\n", components: [{ type: i5__namespace$1.BlockUIComponent, selector: "block-ui", inputs: ["name", "template", "message", "delayStart", "delayStop"] }, { type: i6__namespace.FormComponent, selector: "BBSF-Form", inputs: ["options"], outputs: ["OnChange"] }, { type: i6__namespace.TextboxComponent, selector: "BBSF-TextBox", inputs: ["group", "options"], outputs: ["OnChange", "OnBlur"] }], directives: [{ type: i10__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
31529
|
+
LoginComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: LoginComponent, deps: [{ token: i1__namespace.AuthService }, { token: AccountService }, { token: i1__namespace$1.Router }, { token: i1__namespace$1.ActivatedRoute }, { token: i1__namespace.UtilityService }, { token: i1__namespace.EnvironmentService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
31530
|
+
LoginComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", type: LoginComponent, selector: "app-login", ngImport: i0__namespace, template: "\r\n<block-ui></block-ui>\r\n<div class=\"form w-100\" novalidate=\"novalidate\" id=\"kt_sign_in_form\" *ngIf=\"loadPage\">\r\n <input type=\"hidden\" name=\"ReturnUrl\" value=\"@Model.ReturnUrl\" />\r\n <div class=\"text-center mb-10\">\r\n <h1 class=\"text-dark mb-3\"> {{utilityService.getResourceValue(\"Login\")}} </h1>\r\n </div>\r\n <BBSF-Form [options]=\"loginFormOptions\">\r\n <div class=\"fv-row mb-10\">\r\n <BBSF-TextBox [options]=\"email\" [group]=\"loginForm\"></BBSF-TextBox>\r\n </div>\r\n <div class=\"fv-row mb-10\">\r\n <BBSF-TextBox [options]=\"password\" [group]=\"loginForm\"></BBSF-TextBox>\r\n <div class=\"text-right\">\r\n <a href=\"/Admin/account/forgotPassword\" class=\"link-primary fs-6 fw-bolder mt-2\">{{utilityService.getResourceValue(\"ForgotPassword\")}}</a>\r\n </div>\r\n </div>\r\n <div class=\"fv-row mb-10\" *ngIf=\"error\">\r\n <span class=\"text-danger\">\r\n {{error}}\r\n </span>\r\n </div>\r\n\r\n <div class=\"text-center\">\r\n <button type=\"submit\" class=\"btn btn-primary btn-sm\">\r\n {{utilityService.getResourceValue(\"Login\")}}\r\n </button>\r\n </div>\r\n </BBSF-Form>\r\n</div>\r\n", components: [{ type: i5__namespace$1.BlockUIComponent, selector: "block-ui", inputs: ["name", "template", "message", "delayStart", "delayStop"] }, { type: i6__namespace.FormComponent, selector: "BBSF-Form", inputs: ["options"], outputs: ["OnChange"] }, { type: i6__namespace.TextboxComponent, selector: "BBSF-TextBox", inputs: ["group", "options"], outputs: ["OnChange", "OnBlur"] }], directives: [{ type: i10__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
31479
31531
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: LoginComponent, decorators: [{
|
|
31480
31532
|
type: i0.Component,
|
|
31481
31533
|
args: [{
|
|
31482
31534
|
selector: 'app-login',
|
|
31483
31535
|
templateUrl: './login.component.html'
|
|
31484
31536
|
}]
|
|
31485
|
-
}], ctorParameters: function () { return [{ type: i1__namespace.AuthService }, { type: AccountService }, { type: i1__namespace$1.Router }, { type: i1__namespace$1.ActivatedRoute }, { type: i1__namespace.UtilityService }]; } });
|
|
31537
|
+
}], ctorParameters: function () { return [{ type: i1__namespace.AuthService }, { type: AccountService }, { type: i1__namespace$1.Router }, { type: i1__namespace$1.ActivatedRoute }, { type: i1__namespace.UtilityService }, { type: i1__namespace.EnvironmentService }]; } });
|
|
31486
31538
|
|
|
31487
31539
|
var GlobalErrorHandler = /** @class */ (function () {
|
|
31488
31540
|
function GlobalErrorHandler(injector, zone) {
|