@c8y/ngx-components 1021.22.78 → 1021.22.86
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/branding/shared/data/store-branding.service.d.ts.map +1 -1
- package/branding/shared/lazy/branding/branding.component.d.ts.map +1 -1
- package/branding/shared/supports-branding.service.d.ts.map +1 -1
- package/core/login/login.component.d.ts.map +1 -1
- package/core/login/login.service.d.ts +1 -0
- package/core/login/login.service.d.ts.map +1 -1
- package/core/navigator/navigator-bottom/navigator-bottom.service.d.ts +3 -1
- package/core/navigator/navigator-bottom/navigator-bottom.service.d.ts.map +1 -1
- package/esm2022/branding/shared/data/store-branding.service.mjs +13 -4
- package/esm2022/branding/shared/lazy/branding/branding.component.mjs +4 -5
- package/esm2022/branding/shared/supports-branding.service.mjs +6 -3
- package/esm2022/core/login/login.component.mjs +2 -1
- package/esm2022/core/login/login.service.mjs +5 -1
- package/esm2022/core/navigator/navigator-bottom/navigator-bottom.service.mjs +13 -6
- package/esm2022/datapoint-selector/datapoint-selector.component.mjs +3 -3
- package/fesm2022/c8y-ngx-components-branding-shared-data.mjs +12 -3
- package/fesm2022/c8y-ngx-components-branding-shared-data.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-branding-shared-lazy.mjs +3 -4
- package/fesm2022/c8y-ngx-components-branding-shared-lazy.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-branding-shared.mjs +5 -2
- package/fesm2022/c8y-ngx-components-branding-shared.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-datapoint-selector.mjs +2 -2
- package/fesm2022/c8y-ngx-components-datapoint-selector.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components.mjs +15 -5
- package/fesm2022/c8y-ngx-components.mjs.map +1 -1
- package/locales/de.po +293 -7
- package/locales/es.po +294 -8
- package/locales/fr.po +294 -8
- package/locales/ja_JP.po +291 -14
- package/locales/ko.po +295 -9
- package/locales/locales.pot +4 -2
- package/locales/nl.po +292 -6
- package/locales/pl.po +295 -9
- package/locales/pt_BR.po +291 -5
- package/locales/zh_CN.po +293 -7
- package/locales/zh_TW.po +295 -9
- package/package.json +1 -1
|
@@ -13233,6 +13233,10 @@ class LoginService {
|
|
|
13233
13233
|
: gettext$1('SSO login failed. Contact the administrator.');
|
|
13234
13234
|
this.modalService.acknowledge(gettext$1('Login error'), body, Status.DANGER, gettext$1('OK'));
|
|
13235
13235
|
}
|
|
13236
|
+
async clearCookies() {
|
|
13237
|
+
// clear cookies but avoid redirect on logout
|
|
13238
|
+
return await this.cookieAuth.logout({ redirect: 'manual' });
|
|
13239
|
+
}
|
|
13236
13240
|
/**
|
|
13237
13241
|
* Sets the tenant to the client and updates the credentials on the
|
|
13238
13242
|
* auth strategy.
|
|
@@ -16877,6 +16881,7 @@ class LoginComponent {
|
|
|
16877
16881
|
await this.loginService.login();
|
|
16878
16882
|
}
|
|
16879
16883
|
catch (e) {
|
|
16884
|
+
await this.loginService.clearCookies();
|
|
16880
16885
|
const preferredLoginOptionType = this.loginService.loginMode.type;
|
|
16881
16886
|
if (preferredLoginOptionType === TenantLoginOptionType.OAUTH2) {
|
|
16882
16887
|
this.loginService.redirectToOauth();
|
|
@@ -22996,8 +23001,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.9", ngImpor
|
|
|
22996
23001
|
}] });
|
|
22997
23002
|
|
|
22998
23003
|
class NavigatorBottomService {
|
|
22999
|
-
constructor(options) {
|
|
23004
|
+
constructor(options, themeService) {
|
|
23000
23005
|
this.options = options;
|
|
23006
|
+
this.themeService = themeService;
|
|
23001
23007
|
this.navigatorLogoVariable = 'navigator-platform-logo';
|
|
23002
23008
|
this.navigatorLogoHeightVariable = 'navigator-platform-logo-height';
|
|
23003
23009
|
}
|
|
@@ -23005,11 +23011,15 @@ class NavigatorBottomService {
|
|
|
23005
23011
|
return this.options.get$('hidePowered').pipe(map(hidePowered => !!hidePowered));
|
|
23006
23012
|
}
|
|
23007
23013
|
hasCustomNavigatorLogoSet() {
|
|
23008
|
-
return
|
|
23014
|
+
return combineLatest([
|
|
23015
|
+
this.options.get$('brandingCSSVars'),
|
|
23016
|
+
this.themeService.currentlyAppliedTheme$
|
|
23017
|
+
]).pipe(map(([vars, theme]) => {
|
|
23009
23018
|
if (!vars || typeof vars !== 'object') {
|
|
23010
23019
|
return false;
|
|
23011
23020
|
}
|
|
23012
|
-
|
|
23021
|
+
const variableToLookFor = theme === 'dark' ? `dark-${this.navigatorLogoVariable}` : this.navigatorLogoVariable;
|
|
23022
|
+
if (typeof vars[variableToLookFor] === 'string') {
|
|
23013
23023
|
return true;
|
|
23014
23024
|
}
|
|
23015
23025
|
return false;
|
|
@@ -23021,7 +23031,7 @@ class NavigatorBottomService {
|
|
|
23021
23031
|
shouldShowDefaultPoweredBy() {
|
|
23022
23032
|
return combineLatest([this.hasHidePoweredSet(), this.hasCustomNavigatorLogoSet()]).pipe(map(([hidePowered, hasCustomLogo]) => !hidePowered && !hasCustomLogo));
|
|
23023
23033
|
}
|
|
23024
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: NavigatorBottomService, deps: [{ token: OptionsService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
23034
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: NavigatorBottomService, deps: [{ token: OptionsService }, { token: ThemeSwitcherService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
23025
23035
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: NavigatorBottomService, providedIn: 'root' }); }
|
|
23026
23036
|
}
|
|
23027
23037
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: NavigatorBottomService, decorators: [{
|
|
@@ -23029,7 +23039,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.9", ngImpor
|
|
|
23029
23039
|
args: [{
|
|
23030
23040
|
providedIn: 'root'
|
|
23031
23041
|
}]
|
|
23032
|
-
}], ctorParameters: () => [{ type: OptionsService }] });
|
|
23042
|
+
}], ctorParameters: () => [{ type: OptionsService }, { type: ThemeSwitcherService }] });
|
|
23033
23043
|
|
|
23034
23044
|
class NavigatorBottomComponent {
|
|
23035
23045
|
constructor(bottomService) {
|