@bnsights/bbsf-admin-portal 1.2.27 → 1.2.28
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
CHANGED
|
@@ -4,6 +4,14 @@ BBSF Admin Portal package is part of BBSF 3 packages. It hosts all the angular m
|
|
|
4
4
|
|
|
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
|
+
## 1.2.28 / 25-08-2026
|
|
8
|
+
|
|
9
|
+
====================
|
|
10
|
+
|
|
11
|
+
- App version displayed in the layout footer and anonymous layout is now read from the environment configuration (`BBSF_AppVersion` set by the consumer app in `appsettings.json`) via `EnvironmentService.getAppVersion()`.
|
|
12
|
+
- Removed the legacy `<meta name="AppVersion">` DOM lookup and the asynchronous version loading race.
|
|
13
|
+
- Update Utilities package to 1.2.11.
|
|
14
|
+
|
|
7
15
|
## 1.2.27 / 19-08-2026
|
|
8
16
|
|
|
9
17
|
=====================
|
|
@@ -3122,8 +3122,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImpo
|
|
|
3122
3122
|
|
|
3123
3123
|
//import { default as config } from "../../../../../../package.json";
|
|
3124
3124
|
class FooterComponent {
|
|
3125
|
-
constructor(layout) {
|
|
3125
|
+
constructor(layout, environmentService) {
|
|
3126
3126
|
this.layout = layout;
|
|
3127
|
+
this.environmentService = environmentService;
|
|
3127
3128
|
this.footerContainerCssClasses = '';
|
|
3128
3129
|
this.appVersion = "";
|
|
3129
3130
|
this.adminPortalVersion = "";
|
|
@@ -3131,22 +3132,22 @@ class FooterComponent {
|
|
|
3131
3132
|
this.currentYear = currentDate.getFullYear().toString();
|
|
3132
3133
|
}
|
|
3133
3134
|
ngOnInit() {
|
|
3134
|
-
var
|
|
3135
|
-
if (
|
|
3136
|
-
this.appVersion = "V" +
|
|
3135
|
+
var version = this.environmentService.getAppVersion();
|
|
3136
|
+
if (version)
|
|
3137
|
+
this.appVersion = "V" + version;
|
|
3137
3138
|
//var adminVersion = config.version;
|
|
3138
3139
|
//if (adminVersion)
|
|
3139
3140
|
// this.adminPortalVersion ="Admin Portal V" + adminVersion;
|
|
3140
3141
|
this.footerContainerCssClasses =
|
|
3141
3142
|
this.layout.getStringCSSClasses('footerContainer');
|
|
3142
3143
|
}
|
|
3143
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: FooterComponent, deps: [{ token: LayoutService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3144
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: FooterComponent, deps: [{ token: LayoutService }, { token: i1$1.EnvironmentService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3144
3145
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.25", type: FooterComponent, isStandalone: false, selector: "app-footer", ngImport: i0, template: "<div [ngClass]=\"footerContainerCssClasses\"\r\n class=\"\r\n d-flex\r\n flex-column flex-md-row\r\n align-items-center\r\n justify-content-between\r\n container-fluid\r\n \">\r\n <!-- begin::Copyright -->\r\n <div class=\"text-dark order-2 order-md-1\">\r\n <a class=\"text-gray-800 text-hover-primary cursor-pointer\" href=\"https://bnsights.com\"\r\n target=\"_blank\">\r\n Bnsights\r\n </a>\r\n <span class=\"text-muted fw-bold me-2\"> 2021 \u00A9 </span>\r\n <span>{{appVersion}} </span>\r\n\r\n\r\n </div>\r\n <!-- end::Copyright -->\r\n\r\n</div>\r\n", dependencies: [{ kind: "directive", type: i5.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] }); }
|
|
3145
3146
|
}
|
|
3146
3147
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: FooterComponent, decorators: [{
|
|
3147
3148
|
type: Component,
|
|
3148
3149
|
args: [{ selector: 'app-footer', standalone: false, template: "<div [ngClass]=\"footerContainerCssClasses\"\r\n class=\"\r\n d-flex\r\n flex-column flex-md-row\r\n align-items-center\r\n justify-content-between\r\n container-fluid\r\n \">\r\n <!-- begin::Copyright -->\r\n <div class=\"text-dark order-2 order-md-1\">\r\n <a class=\"text-gray-800 text-hover-primary cursor-pointer\" href=\"https://bnsights.com\"\r\n target=\"_blank\">\r\n Bnsights\r\n </a>\r\n <span class=\"text-muted fw-bold me-2\"> 2021 \u00A9 </span>\r\n <span>{{appVersion}} </span>\r\n\r\n\r\n </div>\r\n <!-- end::Copyright -->\r\n\r\n</div>\r\n" }]
|
|
3149
|
-
}], ctorParameters: () => [{ type: LayoutService }] });
|
|
3150
|
+
}], ctorParameters: () => [{ type: LayoutService }, { type: i1$1.EnvironmentService }] });
|
|
3150
3151
|
|
|
3151
3152
|
const defaultScrollTopOptions = {
|
|
3152
3153
|
offset: 200,
|
|
@@ -23207,9 +23208,9 @@ class anonymouslayoutComponent {
|
|
|
23207
23208
|
this.translateService.onLangChange.subscribe((event) => {
|
|
23208
23209
|
this.masterLayoutService.reloadComponent();
|
|
23209
23210
|
});
|
|
23210
|
-
var
|
|
23211
|
-
if (
|
|
23212
|
-
this.appVersion = "V " +
|
|
23211
|
+
var version = this.environmentService.getAppVersion();
|
|
23212
|
+
if (version)
|
|
23213
|
+
this.appVersion = "V " + version;
|
|
23213
23214
|
let theme = this.appearanceConfigurationService.getLayoutTheme();
|
|
23214
23215
|
this.stylesBundleService.loadThemesColor(theme, "BBSF-Anonymous.css", "BBSF-Anonymous-light.css");
|
|
23215
23216
|
this.logo = this.appearanceConfigurationService.getLogo();
|